You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

55 lines
251 KiB

  1. import{j as or,s as ar,E as lr,k as Hn,G as Rn,H as ur,I as zn}from"./index-5dca7a6a.js";import{b as sr,d as Zt}from"./api-2fe5baa7.js";var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zn(q){return q&&q.__esModule&&Object.prototype.hasOwnProperty.call(q,"default")?q.default:q}var Wn={exports:{}};/*!
  2. * Quill Editor v1.3.7
  3. * https://quilljs.com/
  4. * Copyright (c) 2014, Jason Chen
  5. * Copyright (c) 2013, salesforce.com
  6. */(function(q,U){(function(p,c){q.exports=c()})(typeof self<"u"?self:Tt,function(){return function(m){var p={};function c(E){if(p[E])return p[E].exports;var b=p[E]={i:E,l:!1,exports:{}};return m[E].call(b.exports,b,b.exports,c),b.l=!0,b.exports}return c.m=m,c.c=p,c.d=function(E,b,_){c.o(E,b)||Object.defineProperty(E,b,{configurable:!1,enumerable:!0,get:_})},c.n=function(E){var b=E&&E.__esModule?function(){return E.default}:function(){return E};return c.d(b,"a",b),b},c.o=function(E,b){return Object.prototype.hasOwnProperty.call(E,b)},c.p="",c(c.s=109)}([function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(17),b=c(18),_=c(19),y=c(45),g=c(46),h=c(47),o=c(48),t=c(49),e=c(12),s=c(32),l=c(33),u=c(31),r=c(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:E.default,Format:b.default,Leaf:_.default,Embed:o.default,Scroll:y.default,Block:h.default,Inline:g.default,Text:t.default,Attributor:{Attribute:e.default,Class:s.default,Style:l.default,Store:u.default}};p.default=i},function(m,p,c){var E=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])};return function(r,i){u(r,i);function f(){this.constructor=r}r.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=function(u){E(r,u);function r(i){var f=this;return i="[Parchment] "+i,f=u.call(this,i)||this,f.message=i,f.name=f.constructor.name,f}return r}(Error);p.ParchmentError=b;var _={},y={},g={},h={};p.DATA_KEY="__blot";var o;(function(u){u[u.TYPE=3]="TYPE",u[u.LEVEL=12]="LEVEL",u[u.ATTRIBUTE=13]="ATTRIBUTE",u[u.BLOT=14]="BLOT",u[u.INLINE=7]="INLINE",u[u.BLOCK=11]="BLOCK",u[u.BLOCK_BLOT=10]="BLOCK_BLOT",u[u.INLINE_BLOT=6]="INLINE_BLOT",u[u.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",u[u.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",u[u.ANY=15]="ANY"})(o=p.Scope||(p.Scope={}));function t(u,r){var i=s(u);if(i==null)throw new b("Unable to create "+u+" blot");var f=i,n=u instanceof Node||u.nodeType===Node.TEXT_NODE?u:f.create(r);return new f(n,r)}p.create=t;function e(u,r){return r===void 0&&(r=!1),u==null?null:u[p.DATA_KEY]!=null?u[p.DATA_KEY].blot:r?e(u.parentNode,r):null}p.find=e;function s(u,r){r===void 0&&(r=o.ANY);var i;if(typeof u=="string")i=h[u]||_[u];else if(u instanceof Text||u.nodeType===Node.TEXT_NODE)i=h.text;else if(typeof u=="number")u&o.LEVEL&o.BLOCK?i=h.block:u&o.LEVEL&o.INLINE&&(i=h.inline);else if(u instanceof HTMLElement){var f=(u.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=y[f[n]],i)break;i=i||g[u.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}p.query=s;function l(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];if(u.length>1)return u.map(function(n){return l(n)});var i=u[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new b("Invalid definition");if(i.blotName==="abstract")throw new b("Cannot register abstract class");if(h[i.blotName||i.attrName]=i,typeof i.keyName=="string")_[i.keyName]=i;else if(i.className!=null&&(y[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(n){return n.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var f=Array.isArray(i.tagName)?i.tagName:[i.tagName];f.forEach(function(n){(g[n]==null||i.className==null)&&(g[n]=i)})}return i}p.register=l},function(m,p,c){var E=c(51),b=c(11),_=c(3),y=c(20),g=String.fromCharCode(0),h=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};h.prototype.insert=function(o,t){var e={};return o.length===0?this:(e.insert=o,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},h.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},h.prototype.retain=function(o,t){if(o<=0)return this;var e={retain:o};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},h.prototype.push=function(o){var t=this.ops.length,e=this.ops[t-1];if(o=_(!0,{},o),typeof e=="object"){if(typeof o.delete=="number"&&typeof e.delete=="number")return this.ops[t-1]={delete:e.delete+o.delete},this;if(typeof e.delete=="number"&&o.insert!=null&&(t-=1,e=this.ops[t-1],typeof e!="object"))return this.ops.unshift(o),this;if(b(o.attributes,e.attributes)){if(typeof o.insert=="string"&&typeof e.insert=="string")return this.ops[t-1]={insert:e.insert+o.insert},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof e.retain=="number")return this.ops[t-1]={retain:e.retain+o.retain},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this},h.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},h.prototype.filter=function(o){return this.ops.filter(o)},h.prototype.forEach=function(o){this.ops.forEach(o)},h.prototype.map=function(o){return this.ops.map(o)},h.prototype.partition=function(o){var t=[],e=[];return this.forEach(function(s){var l=o(s)?t:e;l.push(s)}),[t,e]},h.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},h.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+y.length(t):t.delete?o-t.delete:o},0)},h.prototype.length=function(){return this.reduce(function(o,t){return o+y.length(t)},0)},h.prototype.slice=function(o,t){o=o||0,typeof t!="number"&&(t=1/0);for(var e=[],s=y.iterator(this.ops),l=0;l<t&&s.hasNext();){var u;l<o?u=s.next(o-l):(u=s.next(t-l),e.push(u)),l+=y.length(u)}return new h(e)},h.prototype.compose=function(o){var t=y.iterator(this.ops),e=y.iterator(o.ops),s=[],l=e.peek();if(l!=null&&typeof l.retain=="number"&&l.attributes==null){for(var u=l.retain;t.peekType()==="insert"&&t.peekLength()<=u;)u-=t.peekLength(),s.push(t.next());l.retain-u>0&&e.next(l.retain-u)}for(var r=new h(s);t.hasNext()||e.hasNext();)if(e.peekType()==="insert")r.push(e.next());else if(t.peekType()==="delete")r.push(t.next());else{var i=Math.min(t.peekLength(),e.peekLength()),f=t.next(i),n=e.next(i);if(typeof n.retain=="number"){var d={};typeof f.retain=="number"?d.retain=i:d.insert=f.insert;var k=y.attributes.compose(f.attributes,n.attributes,typeof f.retain=="number");if(k&&(d.attributes=k),r.push(d),!e.hasNext()&&b(r.ops[r.ops.length-1],d)){var w=new h(t.rest());return r.concat(w).chop()}}else typeof n.delete=="number"&&typeof f.retain=="number"&&r.push(n)}return r.chop()},h.prototype.concat=function(o){var t=new h(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},h.prototype.diff=function(o,t){if(this.ops===o.ops)return new h;var e=[this,o].map(function(i){return i.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:g;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),s=new h,l=E(e[0],e[1],t),u=y.iterator(this.ops),r=y.iterator(o.ops);return l.forEach(function(i){for(var f=i[1].length;f>0;){var n=0;switch(i[0]){case E.INSERT:n=Math.min(r.peekLength(),f),s.push(r.next(n));break;case E.DELETE:n=Math.min(f,u.peekLength()),u.next(n),s.delete(n);break;case E.EQUAL:n=Math.min(u.peekLength(),r.peekLength(),f);var d=u.next(n),k=r.next(n);b(d.insert,k.insert)?s.retain(n,y.attributes.diff(d.attributes,k.attributes)):s.push(k).delete(n);break}f-=n}}),s.chop()},h.prototype.eachLine=function(o,t){t=t||`
  7. `;for(var e=y.iterator(this.ops),s=new h,l=0;e.hasNext();){if(e.peekType()!=="insert")return;var u=e.peek(),r=y.length(u)-e.peekLength(),i=typeof u.insert=="string"?u.insert.indexOf(t,r)-r:-1;if(i<0)s.push(e.next());else if(i>0)s.push(e.next(i));else{if(o(s,e.next(1).attributes||{},l)===!1)return;l+=1,s=new h}}s.length()>0&&o(s,{},l)},h.prototype.transform=function(o,t){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);for(var e=y.iterator(this.ops),s=y.iterator(o.ops),l=new h;e.hasNext()||s.hasNext();)if(e.peekType()==="insert"&&(t||s.peekType()!=="insert"))l.retain(y.length(e.next()));else if(s.peekType()==="insert")l.push(s.next());else{var u=Math.min(e.peekLength(),s.peekLength()),r=e.next(u),i=s.next(u);if(r.delete)continue;i.delete?l.push(i):l.retain(u,y.attributes.transform(r.attributes,i.attributes,t))}return l.chop()},h.prototype.transformPosition=function(o,t){t=!!t;for(var e=y.iterator(this.ops),s=0;e.hasNext()&&s<=o;){var l=e.peekLength(),u=e.peekType();if(e.next(),u==="delete"){o-=Math.min(l,o-s);continue}else u==="insert"&&(s<o||!t)&&(o+=l);s+=l}return o},m.exports=h},function(m,p){var c=Object.prototype.hasOwnProperty,E=Object.prototype.toString,b=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=function(e){return typeof Array.isArray=="function"?Array.isArray(e):E.call(e)==="[object Array]"},g=function(e){if(!e||E.call(e)!=="[object Object]")return!1;var s=c.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&c.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!s&&!l)return!1;var u;for(u in e);return typeof u>"u"||c.call(e,u)},h=function(e,s){b&&s.name==="__proto__"?b(e,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):e[s.name]=s.newValue},o=function(e,s){if(s==="__proto__")if(c.call(e,s)){if(_)return _(e,s).value}else return;return e[s]};m.exports=function t(){var e,s,l,u,r,i,f=arguments[0],n=1,d=arguments.length,k=!1;for(typeof f=="boolean"&&(k=f,f=arguments[1]||{},n=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});n<d;++n)if(e=arguments[n],e!=null)for(s in e)l=o(f,s),u=o(e,s),f!==u&&(k&&u&&(g(u)||(r=y(u)))?(r?(r=!1,i=l&&y(l)?l:[]):i=l&&g(l)?l:{},h(f,{name:s,newValue:t(k,i,u)})):typeof u<"u"&&h(f,{name:s,newValue:u}));return f}},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BlockEmbed=p.bubbleFormats=void 0;var E=function(){function v(O,N){for(var L=0;L<N.length;L++){var D=N[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(O,D.key,D)}}return function(O,N,L){return N&&v(O.prototype,N),L&&v(O,L),O}}(),b=function v(O,N,L){O===null&&(O=Function.prototype);var D=Object.getOwnPropertyDescriptor(O,N);if(D===void 0){var z=Object.getPrototypeOf(O);return z===null?void 0:v(z,N,L)}else{if("value"in D)return D.value;var $=D.get;return $===void 0?void 0:$.call(L)}},_=c(3),y=f(_),g=c(2),h=f(g),o=c(0),t=f(o),e=c(16),s=f(e),l=c(6),u=f(l),r=c(7),i=f(r);function f(v){return v&&v.__esModule?v:{default:v}}function n(v,O){if(!(v instanceof O))throw new TypeError("Cannot call a class as a function")}function d(v,O){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:v}function k(v,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);v.prototype=Object.create(O&&O.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(v,O):v.__proto__=O)}var w=1,T=function(v){k(O,v);function O(){return n(this,O),d(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return E(O,[{key:"attach",value:function(){b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new h.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(L,D){var z=t.default.query(L,t.default.Scope.BLOCK_ATTRIBUTE);z!=null&&this.attributes.attribute(z,D)}},{key:"formatAt",value:function(L,D,z,$){this.format(z,$)}},{key:"insertAt",value:function(L,D,z){if(typeof D=="string"&&D.endsWith(`
  8. `)){var $=t.default.create(P.blotName);this.parent.insertBefore($,L===0?this:this.next),$.insertAt(0,D.slice(0,-1))}else b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,L,D,z)}}]),O}(t.default.Embed);T.scope=t.default.Scope.BLOCK_BLOT;var P=function(v){k(O,v);function O(N){n(this,O);var L=d(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N));return L.cache={},L}return E(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(L,D){return D.length()===0?L:L.insert(D.value(),A(D))},new h.default).insert(`
  9. `,A(this))),this.cache.delta}},{key:"deleteAt",value:function(L,D){b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,L,D),this.cache={}}},{key:"formatAt",value:function(L,D,z,$){D<=0||(t.default.query(z,t.default.Scope.BLOCK)?L+D===this.length()&&this.format(z,$):b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,L,Math.min(D,this.length()-L-1),z,$),this.cache={})}},{key:"insertAt",value:function(L,D,z){if(z!=null)return b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,L,D,z);if(D.length!==0){var $=D.split(`
  10. `),J=$.shift();J.length>0&&(L<this.length()-1||this.children.tail==null?b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(L,this.length()-1),J):this.children.tail.insertAt(this.children.tail.length(),J),this.cache={});var H=this;$.reduce(function(j,S){return H=H.split(j,!0),H.insertAt(0,S),S.length},L+J.length)}}},{key:"insertBefore",value:function(L,D){var z=this.children.head;b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,L,D),z instanceof s.default&&z.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(L,D){b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,L,D),this.cache={}}},{key:"optimize",value:function(L){b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,L),this.cache={}}},{key:"path",value:function(L){return b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,L,!0)}},{key:"removeChild",value:function(L){b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,L),this.cache={}}},{key:"split",value:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D&&(L===0||L>=this.length()-w)){var z=this.clone();return L===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var $=b(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,L,D);return this.cache={},$}}}]),O}(t.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[u.default,t.default.Embed,i.default];function A(v){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v==null||(typeof v.formats=="function"&&(O=(0,y.default)(O,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?O:A(v.parent,O)}p.bubbleFormats=A,p.BlockEmbed=T,p.default=P},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.overload=p.expandConfig=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},b=function(){function H(j,S){var I=[],M=!0,K=!1,C=void 0;try{for(var R=j[Symbol.iterator](),F;!(M=(F=R.next()).done)&&(I.push(F.value),!(S&&I.length===S));M=!0);}catch(G){K=!0,C=G}finally{try{!M&&R.return&&R.return()}finally{if(K)throw C}}return I}return function(j,S){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return H(j,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function H(j,S){for(var I=0;I<S.length;I++){var M=S[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(j,M.key,M)}}return function(j,S,I){return S&&H(j.prototype,S),I&&H(j,I),j}}();c(50);var y=c(2),g=A(y),h=c(14),o=A(h),t=c(8),e=A(t),s=c(9),l=A(s),u=c(0),r=A(u),i=c(15),f=A(i),n=c(3),d=A(n),k=c(10),w=A(k),T=c(34),P=A(T);function A(H){return H&&H.__esModule?H:{default:H}}function v(H,j,S){return j in H?Object.defineProperty(H,j,{value:S,enumerable:!0,configurable:!0,writable:!0}):H[j]=S,H}function O(H,j){if(!(H instanceof j))throw new TypeError("Cannot call a class as a function")}var N=(0,w.default)("quill"),L=function(){_(H,null,[{key:"debug",value:function(S){S===!0&&(S="log"),w.default.level(S)}},{key:"find",value:function(S){return S.__quill||r.default.find(S)}},{key:"import",value:function(S){return this.imports[S]==null&&N.error("Cannot import "+S+". Are you sure it was registered?"),this.imports[S]}},{key:"register",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof S!="string"){var C=S.attrName||S.blotName;typeof C=="string"?this.register("formats/"+C,S,I):Object.keys(S).forEach(function(R){M.register(R,S[R],I)})}else this.imports[S]!=null&&!K&&N.warn("Overwriting "+S+" with",I),this.imports[S]=I,(S.startsWith("blots/")||S.startsWith("formats/"))&&I.blotName!=="abstract"?r.default.register(I):S.startsWith("modules")&&typeof I.register=="function"&&I.register()}}]);function H(j){var S=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,H),this.options=D(j,I),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",j);this.options.debug&&H.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new e.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new f.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(C){C===e.default.events.TEXT_CHANGE&&S.root.classList.toggle("ql-blank",S.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(C,R){var F=S.selection.lastRange,G=F&&F.length===0?F.index:void 0;z.call(S,function(){return S.editor.update(null,R,G)},C)});var K=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents(K),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return _(H,[{key:"addContainer",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof S=="string"){var M=S;S=document.createElement("div"),S.classList.add(M)}return this.container.insertBefore(S,I),S}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(S,I,M){var K=this,C=$(S,I,M),R=b(C,4);return S=R[0],I=R[1],M=R[3],z.call(this,function(){return K.editor.deleteText(S,I)},M,S,-1*I)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(S),this.container.classList.toggle("ql-disabled",!S)}},{key:"focus",value:function(){var S=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=S,this.scrollIntoView()}},{key:"format",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.default.sources.API;return z.call(this,function(){var C=M.getSelection(!0),R=new g.default;if(C==null)return R;if(r.default.query(S,r.default.Scope.BLOCK))R=M.editor.formatLine(C.index,C.length,v({},S,I));else{if(C.length===0)return M.selection.format(S,I),R;R=M.editor.formatText(C.index,C.length,v({},S,I))}return M.setSelection(C,e.default.sources.SILENT),R},K)}},{key:"formatLine",value:function(S,I,M,K,C){var R=this,F=void 0,G=$(S,I,M,K,C),V=b(G,4);return S=V[0],I=V[1],F=V[2],C=V[3],z.call(this,function(){return R.editor.formatLine(S,I,F)},C,S,0)}},{key:"formatText",value:function(S,I,M,K,C){var R=this,F=void 0,G=$(S,I,M,K,C),V=b(G,4);return S=V[0],I=V[1],F=V[2],C=V[3],z.call(this,function(){return R.editor.formatText(S,I,F)},C,S,0)}},{key:"getBounds",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof S=="number"?M=this.selection.getBounds(S,I):M=this.selection.getBounds(S.index,S.length);var K=this.container.getBoundingClientRect();return{bottom:M.bottom-K.top,height:M.height,left:M.left-K.left,right:M.right-K.left,top:M.top-K.top,width:M.width}}},{key:"getContents",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,M=$(S,I),K=b(M,2);return S=K[0],I=K[1],this.editor.getContents(S,I)}},{key:"getFormat",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof S=="number"?this.editor.getFormat(S,I):this.editor.getFormat(S.index,S.length)}},{key:"getIndex",value:function(S){return S.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(S){return this.scroll.leaf(S)}},{key:"getLine",value:function(S){return this.scroll.line(S)}},{key:"getLines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof S!="number"?this.scroll.lines(S.index,S.length):this.scroll.lines(S,I)}},{key:"getModule",value:function(S){return this.theme.modules[S]}},{key:"getSelection",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return S&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,M=$(S,I),K=b(M,2);return S=K[0],I=K[1],this.editor.getText(S,I)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(S,I,M){var K=this,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H.sources.API;return z.call(this,function(){return K.editor.insertEmbed(S,I,M)},C,S)}},{key:"insertText",value:function(S,I,M,K,C){var R=this,F=void 0,G=$(S,0,M,K,C),V=b(G,4);return S=V[0],F=V[2],C=V[3],z.call(this,function(){return R.editor.insertText(S,I,F)},C,S,I.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(S,I,M){this.clipboard.dangerouslyPasteHTML(S,I,M)}},{key:"removeFormat",value:function(S,I,M){var K=this,C=$(S,I,M),R=b(C,4);return S=R[0],I=R[1],M=R[3],z.call(this,function(){return K.editor.removeFormat(S,I)},M,S)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(S){var I=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return z.call(this,function(){S=new g.default(S);var K=I.getLength(),C=I.editor.deleteText(0,K),R=I.editor.applyDelta(S),F=R.ops[R.ops.length-1];F!=null&&typeof F.insert=="string"&&F.insert[F.insert.length-1]===`
  11. `&&(I.editor.deleteText(I.getLength()-1,1),R.delete(1));var G=C.compose(R);return G},M)}},{key:"setSelection",value:function(S,I,M){if(S==null)this.selection.setRange(null,I||H.sources.API);else{var K=$(S,I,M),C=b(K,4);S=C[0],I=C[1],M=C[3],this.selection.setRange(new i.Range(S,I),M),M!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,M=new g.default().insert(S);return this.setContents(M,I)}},{key:"update",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,I=this.scroll.update(S);return this.selection.update(S),I}},{key:"updateContents",value:function(S){var I=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return z.call(this,function(){return S=new g.default(S),I.editor.applyDelta(S,M)},M,!0)}}]),H}();L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=e.default.events,L.sources=e.default.sources,L.version="1.3.7",L.imports={delta:g.default,parchment:r.default,"core/module":l.default,"core/theme":P.default};function D(H,j){if(j=(0,d.default)(!0,{container:H,modules:{clipboard:!0,keyboard:!0,history:!0}},j),!j.theme||j.theme===L.DEFAULTS.theme)j.theme=P.default;else if(j.theme=L.import("themes/"+j.theme),j.theme==null)throw new Error("Invalid theme "+j.theme+". Did you register it?");var S=(0,d.default)(!0,{},j.theme.DEFAULTS);[S,j].forEach(function(K){K.modules=K.modules||{},Object.keys(K.modules).forEach(function(C){K.modules[C]===!0&&(K.modules[C]={})})});var I=Object.keys(S.modules).concat(Object.keys(j.modules)),M=I.reduce(function(K,C){var R=L.import("modules/"+C);return R==null?N.error("Cannot load "+C+" module. Are you sure you registered it?"):K[C]=R.DEFAULTS||{},K},{});return j.modules!=null&&j.modules.toolbar&&j.modules.toolbar.constructor!==Object&&(j.modules.toolbar={container:j.modules.toolbar}),j=(0,d.default)(!0,{},L.DEFAULTS,{modules:M},S,j),["bounds","container","scrollingContainer"].forEach(function(K){typeof j[K]=="string"&&(j[K]=document.querySelector(j[K]))}),j.modules=Object.keys(j.modules).reduce(function(K,C){return j.modules[C]&&(K[C]=j.modules[C]),K},{}),j}function z(H,j,S,I){if(this.options.strict&&!this.isEnabled()&&j===e.default.sources.USER)return new g.default;var M=S==null?null:this.getSelection(),K=this.editor.delta,C=H();if(M!=null&&(S===!0&&(S=M.index),I==null?M=J(M,C,j):I!==0&&(M=J(M,S,I,j)),this.setSelection(M,e.default.sources.SILENT)),C.length()>0){var R,F=[e.default.events.TEXT_CHANGE,C,K,j];if((R=this.emitter).emit.apply(R,[e.default.events.EDITOR_CHANGE].concat(F)),j!==e.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,F)}}return C}function $(H,j,S,I,M){var K={};return typeof H.index=="number"&&typeof H.length=="number"?typeof j!="number"?(M=I,I=S,S=j,j=H.length,H=H.index):(j=H.length,H=H.index):typeof j!="number"&&(M=I,I=S,S=j,j=0),(typeof S>"u"?"undefined":E(S))==="object"?(K=S,M=I):typeof S=="string"&&(I!=null?K[S]=I:M=S),M=M||e.default.sources.API,[H,j,K,M]}function J(H,j,S,I){if(H==null)return null;var M=void 0,K=void 0;if(j instanceof g.default){var C=[H.index,H.index+H.length].map(function(V){return j.transformPosition(V,I!==e.default.sources.USER)}),R=b(C,2);M=R[0],K=R[1]}else{var F=[H.index,H.index+H.length].map(function(V){return V<j||V===j&&I===e.default.sources.USER?V:S>=0?V+S:Math.max(j,V+S)}),G=b(F,2);M=G[0],K=G[1]}return new i.Range(M,K-M)}p.expandConfig=D,p.overload=$,p.default=L},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),b=function u(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:u(d,i,f)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(f)}},_=c(7),y=o(_),g=c(0),h=o(g);function o(u){return u&&u.__esModule?u:{default:u}}function t(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function e(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function s(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var l=function(u){s(r,u);function r(){return t(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"formatAt",value:function(f,n,d,k){if(r.compare(this.statics.blotName,d)<0&&h.default.query(d,h.default.Scope.BLOT)){var w=this.isolate(f,n);k&&w.wrap(d,k)}else b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,d,k)}},{key:"optimize",value:function(f){if(b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.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(f,n){var d=r.order.indexOf(f),k=r.order.indexOf(n);return d>=0||k>=0?d-k:f===n?0:f<n?-1:1}}]),r}(h.default.Inline);l.allowedChildren=[l,h.default.Embed,y.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],p.default=l},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(0),b=_(E);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(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 h(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 o=function(t){h(e,t);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default.Text);p.default=o},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function i(f,n){for(var d=0;d<n.length;d++){var k=n[d];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(f,k.key,k)}}return function(f,n,d){return n&&i(f.prototype,n),d&&i(f,d),f}}(),b=function i(f,n,d){f===null&&(f=Function.prototype);var k=Object.getOwnPropertyDescriptor(f,n);if(k===void 0){var w=Object.getPrototypeOf(f);return w===null?void 0:i(w,n,d)}else{if("value"in k)return k.value;var T=k.get;return T===void 0?void 0:T.call(d)}},_=c(54),y=o(_),g=c(10),h=o(g);function o(i){return i&&i.__esModule?i:{default:i}}function t(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}function e(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:i}function s(i,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}var l=(0,h.default)("quill:events"),u=["selectionchange","mousedown","mouseup","click"];u.forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),d=0;d<f;d++)n[d]=arguments[d];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var w;(w=k.__quill.emitter).handleDOM.apply(w,n)}})})});var r=function(i){s(f,i);function f(){t(this,f);var n=e(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",l.error),n}return E(f,[{key:"emit",value:function(){l.log.apply(l,arguments),b(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(d){for(var k=arguments.length,w=Array(k>1?k-1:0),T=1;T<k;T++)w[T-1]=arguments[T];(this.listeners[d.type]||[]).forEach(function(P){var A=P.node,v=P.handler;(d.target===A||A.contains(d.target))&&v.apply(void 0,[d].concat(w))})}},{key:"listenDOM",value:function(d,k,w){this.listeners[d]||(this.listeners[d]=[]),this.listeners[d].push({node:k,handler:w})}}]),f}(y.default);r.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"},r.sources={API:"api",SILENT:"silent",USER:"user"},p.default=r},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});function E(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}var b=function _(y){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(this,_),this.quill=y,this.options=g};b.DEFAULTS={},p.default=b},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=["error","warn","log","info"],b="warn";function _(g){if(E.indexOf(g)<=E.indexOf(b)){for(var h,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(h=console)[g].apply(h,t)}}function y(g){return E.reduce(function(h,o){return h[o]=_.bind(console,o,g),h},{})}_.level=y.level=function(g){b=g},p.default=y},function(m,p,c){var E=Array.prototype.slice,b=c(52),_=c(53),y=m.exports=function(t,e,s){return s||(s={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||typeof t!="object"&&typeof e!="object"?s.strict?t===e:t==e:o(t,e,s)};function g(t){return t==null}function h(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 o(t,e,s){var l,u;if(g(t)||g(e)||t.prototype!==e.prototype)return!1;if(_(t))return _(e)?(t=E.call(t),e=E.call(e),y(t,e,s)):!1;if(h(t)){if(!h(e)||t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var r=b(t),i=b(e)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),l=r.length-1;l>=0;l--)if(r[l]!=i[l])return!1;for(l=r.length-1;l>=0;l--)if(u=r[l],!y(t[u],e[u],s))return!1;return typeof t==typeof e}},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(1),b=function(){function _(y,g,h){h===void 0&&(h={}),this.attrName=y,this.keyName=g;var o=E.Scope.TYPE&E.Scope.ATTRIBUTE;h.scope!=null?this.scope=h.scope&E.Scope.LEVEL|o:this.scope=E.Scope.ATTRIBUTE,h.whitelist!=null&&(this.whitelist=h.whitelist)}return _.keys=function(y){return[].map.call(y.attributes,function(g){return g.name})},_.prototype.add=function(y,g){return this.canAdd(y,g)?(y.setAttribute(this.keyName,g),!0):!1},_.prototype.canAdd=function(y,g){var h=E.query(y,E.Scope.BLOT&(this.scope|E.Scope.TYPE));return h==null?!1:this.whitelist==null?!0:typeof g=="string"?this.whitelist.indexOf(g.replace(/["']/g,""))>-1:this.whitelist.indexOf(g)>-1},_.prototype.remove=function(y){y.removeAttribute(this.keyName)},_.prototype.value=function(y){var g=y.getAttribute(this.keyName);return this.canAdd(y,g)&&g?g:""},_}();p.default=b},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Code=void 0;var E=function(){function T(P,A){var v=[],O=!0,N=!1,L=void 0;try{for(var D=P[Symbol.iterator](),z;!(O=(z=D.next()).done)&&(v.push(z.value),!(A&&v.length===A));O=!0);}catch($){N=!0,L=$}finally{try{!O&&D.return&&D.return()}finally{if(N)throw L}}return v}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function T(P,A){for(var v=0;v<A.length;v++){var O=A[v];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(P,O.key,O)}}return function(P,A,v){return A&&T(P.prototype,A),v&&T(P,v),P}}(),_=function T(P,A,v){P===null&&(P=Function.prototype);var O=Object.getOwnPropertyDescriptor(P,A);if(O===void 0){var N=Object.getPrototypeOf(P);return N===null?void 0:T(N,A,v)}else{if("value"in O)return O.value;var L=O.get;return L===void 0?void 0:L.call(v)}},y=c(2),g=i(y),h=c(0),o=i(h),t=c(4),e=i(t),s=c(6),l=i(s),u=c(7),r=i(u);function i(T){return T&&T.__esModule?T:{default:T}}function f(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}function n(T,P){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:T}function d(T,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);T.prototype=Object.create(P&&P.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(T,P):T.__proto__=P)}var k=function(T){d(P,T);function P(){return f(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(l.default);k.blotName="code",k.tagName="CODE";var w=function(T){d(P,T);function P(){return f(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return b(P,[{key:"delta",value:function(){var v=this,O=this.domNode.textContent;return O.endsWith(`
  12. `)&&(O=O.slice(0,-1)),O.split(`
  13. `).reduce(function(N,L){return N.insert(L).insert(`
  14. `,v.formats())},new g.default)}},{key:"format",value:function(v,O){if(!(v===this.statics.blotName&&O)){var N=this.descendant(r.default,this.length()-1),L=E(N,1),D=L[0];D!=null&&D.deleteAt(D.length()-1,1),_(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,v,O)}}},{key:"formatAt",value:function(v,O,N,L){if(O!==0&&!(o.default.query(N,o.default.Scope.BLOCK)==null||N===this.statics.blotName&&L===this.statics.formats(this.domNode))){var D=this.newlineIndex(v);if(!(D<0||D>=v+O)){var z=this.newlineIndex(v,!0)+1,$=D-z+1,J=this.isolate(z,$),H=J.next;J.format(N,L),H instanceof P&&H.formatAt(0,v-z+O-$,N,L)}}}},{key:"insertAt",value:function(v,O,N){if(N==null){var L=this.descendant(r.default,v),D=E(L,2),z=D[0],$=D[1];z.insertAt($,O)}}},{key:"length",value:function(){var v=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
  15. `)?v:v+1}},{key:"newlineIndex",value:function(v){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,v).lastIndexOf(`
  16. `);var N=this.domNode.textContent.slice(v).indexOf(`
  17. `);return N>-1?v+N:-1}},{key:"optimize",value:function(v){this.domNode.textContent.endsWith(`
  18. `)||this.appendChild(o.default.create("text",`
  19. `)),_(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,v);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(v),O.moveChildren(this),O.remove())}},{key:"replace",value:function(v){_(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var N=o.default.find(O);N==null?O.parentNode.removeChild(O):N instanceof o.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(v){var O=_(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,v);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),P}(e.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",p.Code=k,p.default=w},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},b=function(){function H(j,S){var I=[],M=!0,K=!1,C=void 0;try{for(var R=j[Symbol.iterator](),F;!(M=(F=R.next()).done)&&(I.push(F.value),!(S&&I.length===S));M=!0);}catch(G){K=!0,C=G}finally{try{!M&&R.return&&R.return()}finally{if(K)throw C}}return I}return function(j,S){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return H(j,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function H(j,S){for(var I=0;I<S.length;I++){var M=S[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(j,M.key,M)}}return function(j,S,I){return S&&H(j.prototype,S),I&&H(j,I),j}}(),y=c(2),g=O(y),h=c(20),o=O(h),t=c(0),e=O(t),s=c(13),l=O(s),u=c(24),r=O(u),i=c(4),f=O(i),n=c(16),d=O(n),k=c(21),w=O(k),T=c(11),P=O(T),A=c(3),v=O(A);function O(H){return H&&H.__esModule?H:{default:H}}function N(H,j,S){return j in H?Object.defineProperty(H,j,{value:S,enumerable:!0,configurable:!0,writable:!0}):H[j]=S,H}function L(H,j){if(!(H instanceof j))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,z=function(){function H(j){L(this,H),this.scroll=j,this.delta=this.getDelta()}return _(H,[{key:"applyDelta",value:function(S){var I=this,M=!1;this.scroll.update();var K=this.scroll.length();return this.scroll.batchStart(),S=J(S),S.reduce(function(C,R){var F=R.retain||R.delete||R.insert.length||1,G=R.attributes||{};if(R.insert!=null){if(typeof R.insert=="string"){var V=R.insert;V.endsWith(`
  20. `)&&M&&(M=!1,V=V.slice(0,-1)),C>=K&&!V.endsWith(`
  21. `)&&(M=!0),I.scroll.insertAt(C,V);var X=I.scroll.line(C),nt=b(X,2),it=nt[0],at=nt[1],ft=(0,v.default)({},(0,i.bubbleFormats)(it));if(it instanceof f.default){var ht=it.descendant(e.default.Leaf,at),mt=b(ht,1),gt=mt[0];ft=(0,v.default)(ft,(0,i.bubbleFormats)(gt))}G=o.default.attributes.diff(ft,G)||{}}else if(E(R.insert)==="object"){var W=Object.keys(R.insert)[0];if(W==null)return C;I.scroll.insertAt(C,W,R.insert[W])}K+=F}return Object.keys(G).forEach(function(Y){I.scroll.formatAt(C,F,Y,G[Y])}),C+F},0),S.reduce(function(C,R){return typeof R.delete=="number"?(I.scroll.deleteAt(C,R.delete),C):C+(R.retain||R.insert.length||1)},0),this.scroll.batchEnd(),this.update(S)}},{key:"deleteText",value:function(S,I){return this.scroll.deleteAt(S,I),this.update(new g.default().retain(S).delete(I))}},{key:"formatLine",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(K).forEach(function(C){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[C])){var R=M.scroll.lines(S,Math.max(I,1)),F=I;R.forEach(function(G){var V=G.length();if(!(G instanceof l.default))G.format(C,K[C]);else{var X=S-G.offset(M.scroll),nt=G.newlineIndex(X+F)-X+1;G.formatAt(X,nt,C,K[C])}F-=V})}}),this.scroll.optimize(),this.update(new g.default().retain(S).retain(I,(0,w.default)(K)))}},{key:"formatText",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(K).forEach(function(C){M.scroll.formatAt(S,I,C,K[C])}),this.update(new g.default().retain(S).retain(I,(0,w.default)(K)))}},{key:"getContents",value:function(S,I){return this.delta.slice(S,S+I)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(S,I){return S.concat(I.delta())},new g.default)}},{key:"getFormat",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],K=[];I===0?this.scroll.path(S).forEach(function(R){var F=b(R,1),G=F[0];G instanceof f.default?M.push(G):G instanceof e.default.Leaf&&K.push(G)}):(M=this.scroll.lines(S,I),K=this.scroll.descendants(e.default.Leaf,S,I));var C=[M,K].map(function(R){if(R.length===0)return{};for(var F=(0,i.bubbleFormats)(R.shift());Object.keys(F).length>0;){var G=R.shift();if(G==null)return F;F=$((0,i.bubbleFormats)(G),F)}return F});return v.default.apply(v.default,C)}},{key:"getText",value:function(S,I){return this.getContents(S,I).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(S,I,M){return this.scroll.insertAt(S,I,M),this.update(new g.default().retain(S).insert(N({},I,M)))}},{key:"insertText",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return I=I.replace(/\r\n/g,`
  22. `).replace(/\r/g,`
  23. `),this.scroll.insertAt(S,I),Object.keys(K).forEach(function(C){M.scroll.formatAt(S,I.length,C,K[C])}),this.update(new g.default().retain(S).insert(I,(0,w.default)(K)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var S=this.scroll.children.head;return S.statics.blotName!==f.default.blotName||S.children.length>1?!1:S.children.head instanceof d.default}},{key:"removeFormat",value:function(S,I){var M=this.getText(S,I),K=this.scroll.line(S+I),C=b(K,2),R=C[0],F=C[1],G=0,V=new g.default;R!=null&&(R instanceof l.default?G=R.newlineIndex(F)-F+1:G=R.length()-F,V=R.delta().slice(F,F+G-1).insert(`
  24. `));var X=this.getContents(S,I+G),nt=X.diff(new g.default().insert(M).concat(V)),it=new g.default().retain(S).concat(nt);return this.applyDelta(it)}},{key:"update",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,K=this.delta;if(I.length===1&&I[0].type==="characterData"&&I[0].target.data.match(D)&&e.default.find(I[0].target)){var C=e.default.find(I[0].target),R=(0,i.bubbleFormats)(C),F=C.offset(this.scroll),G=I[0].oldValue.replace(r.default.CONTENTS,""),V=new g.default().insert(G),X=new g.default().insert(C.value()),nt=new g.default().retain(F).concat(V.diff(X,M));S=nt.reduce(function(it,at){return at.insert?it.insert(at.insert,R):it.push(at)},new g.default),this.delta=K.compose(S)}else this.delta=this.getDelta(),(!S||!(0,P.default)(K.compose(S),this.delta))&&(S=K.diff(this.delta,M));return S}}]),H}();function $(H,j){return Object.keys(j).reduce(function(S,I){return H[I]==null||(j[I]===H[I]?S[I]=j[I]:Array.isArray(j[I])?j[I].indexOf(H[I])<0&&(S[I]=j[I].concat([H[I]])):S[I]=[j[I],H[I]]),S},{})}function J(H){return H.reduce(function(j,S){if(S.insert===1){var I=(0,w.default)(S.attributes);return delete I.image,j.insert({image:S.attributes.image},I)}if(S.attributes!=null&&(S.attributes.list===!0||S.attributes.bullet===!0)&&(S=(0,w.default)(S),S.attributes.list?S.attributes.list="ordered":(S.attributes.list="bullet",delete S.attributes.bullet)),typeof S.insert=="string"){var M=S.insert.replace(/\r\n/g,`
  25. `).replace(/\r/g,`
  26. `);return j.insert(M,S.attributes)}return j.push(S)},new g.default)}p.default=z},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Range=void 0;var E=function(){function T(P,A){var v=[],O=!0,N=!1,L=void 0;try{for(var D=P[Symbol.iterator](),z;!(O=(z=D.next()).done)&&(v.push(z.value),!(A&&v.length===A));O=!0);}catch($){N=!0,L=$}finally{try{!O&&D.return&&D.return()}finally{if(N)throw L}}return v}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function T(P,A){for(var v=0;v<A.length;v++){var O=A[v];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(P,O.key,O)}}return function(P,A,v){return A&&T(P.prototype,A),v&&T(P,v),P}}(),_=c(0),y=r(_),g=c(21),h=r(g),o=c(11),t=r(o),e=c(8),s=r(e),l=c(10),u=r(l);function r(T){return T&&T.__esModule?T:{default:T}}function i(T){if(Array.isArray(T)){for(var P=0,A=Array(T.length);P<T.length;P++)A[P]=T[P];return A}else return Array.from(T)}function f(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}var n=(0,u.default)("quill:selection"),d=function T(P){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,T),this.index=P,this.length=A},k=function(){function T(P,A){var v=this;f(this,T),this.emitter=A,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new d(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){v.mouseDown||setTimeout(v.update.bind(v,s.default.sources.USER),1)}),this.emitter.on(s.default.events.EDITOR_CHANGE,function(O,N){O===s.default.events.TEXT_CHANGE&&N.length()>0&&v.update(s.default.sources.SILENT)}),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,function(){if(v.hasFocus()){var O=v.getNativeRange();O!=null&&O.start.node!==v.cursor.textNode&&v.emitter.once(s.default.events.SCROLL_UPDATE,function(){try{v.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,function(O,N){if(N.range){var L=N.range,D=L.startNode,z=L.startOffset,$=L.endNode,J=L.endOffset;v.setNativeRange(D,z,$,J)}}),this.update(s.default.sources.SILENT)}return b(T,[{key:"handleComposition",value:function(){var A=this;this.root.addEventListener("compositionstart",function(){A.composing=!0}),this.root.addEventListener("compositionend",function(){if(A.composing=!1,A.cursor.parent){var v=A.cursor.restore();if(!v)return;setTimeout(function(){A.setNativeRange(v.startNode,v.startOffset,v.endNode,v.endOffset)},1)}})}},{key:"handleDragging",value:function(){var A=this;this.emitter.listenDOM("mousedown",document.body,function(){A.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){A.mouseDown=!1,A.update(s.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(A,v){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[A])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||y.default.query(A,y.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=y.default.find(O.start.node,!1);if(N==null)return;if(N instanceof y.default.Leaf){var L=N.split(O.start.offset);N.parent.insertBefore(this.cursor,L)}else N.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(A,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(A){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();A=Math.min(A,O-1),v=Math.min(A+v,O-1)-A;var N=void 0,L=this.scroll.leaf(A),D=E(L,2),z=D[0],$=D[1];if(z==null)return null;var J=z.position($,!0),H=E(J,2);N=H[0],$=H[1];var j=document.createRange();if(v>0){j.setStart(N,$);var S=this.scroll.leaf(A+v),I=E(S,2);if(z=I[0],$=I[1],z==null)return null;var M=z.position($,!0),K=E(M,2);return N=K[0],$=K[1],j.setEnd(N,$),j.getBoundingClientRect()}else{var C="left",R=void 0;return N instanceof Text?($<N.data.length?(j.setStart(N,$),j.setEnd(N,$+1)):(j.setStart(N,$-1),j.setEnd(N,$),C="right"),R=j.getBoundingClientRect()):(R=z.domNode.getBoundingClientRect(),$>0&&(C="right")),{bottom:R.top+R.height,height:R.height,left:R[C],right:R[C],top:R.top,width:0}}}},{key:"getNativeRange",value:function(){var A=document.getSelection();if(A==null||A.rangeCount<=0)return null;var v=A.getRangeAt(0);if(v==null)return null;var O=this.normalizeNative(v);return n.info("getNativeRange",O),O}},{key:"getRange",value:function(){var A=this.getNativeRange();if(A==null)return[null,null];var v=this.normalizedToRange(A);return[v,A]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(A){var v=this,O=[[A.start.node,A.start.offset]];A.native.collapsed||O.push([A.end.node,A.end.offset]);var N=O.map(function(z){var $=E(z,2),J=$[0],H=$[1],j=y.default.find(J,!0),S=j.offset(v.scroll);return H===0?S:j instanceof y.default.Container?S+j.length():S+j.index(J,H)}),L=Math.min(Math.max.apply(Math,i(N)),this.scroll.length()-1),D=Math.min.apply(Math,[L].concat(i(N)));return new d(D,L-D)}},{key:"normalizeNative",value:function(A){if(!w(this.root,A.startContainer)||!A.collapsed&&!w(this.root,A.endContainer))return null;var v={start:{node:A.startContainer,offset:A.startOffset},end:{node:A.endContainer,offset:A.endOffset},native:A};return[v.start,v.end].forEach(function(O){for(var N=O.node,L=O.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>L)N=N.childNodes[L],L=0;else if(N.childNodes.length===L)N=N.lastChild,L=N instanceof Text?N.data.length:N.childNodes.length+1;else break;O.node=N,O.offset=L}),v}},{key:"rangeToNative",value:function(A){var v=this,O=A.collapsed?[A.index]:[A.index,A.index+A.length],N=[],L=this.scroll.length();return O.forEach(function(D,z){D=Math.min(L-1,D);var $=void 0,J=v.scroll.leaf(D),H=E(J,2),j=H[0],S=H[1],I=j.position(S,z!==0),M=E(I,2);$=M[0],S=M[1],N.push($,S)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(A){var v=this.lastRange;if(v!=null){var O=this.getBounds(v.index,v.length);if(O!=null){var N=this.scroll.length()-1,L=this.scroll.line(Math.min(v.index,N)),D=E(L,1),z=D[0],$=z;if(v.length>0){var J=this.scroll.line(Math.min(v.index+v.length,N)),H=E(J,1);$=H[0]}if(!(z==null||$==null)){var j=A.getBoundingClientRect();O.top<j.top?A.scrollTop-=j.top-O.top:O.bottom>j.bottom&&(A.scrollTop+=O.bottom-j.bottom)}}}}},{key:"setNativeRange",value:function(A,v){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",A,v,O,N),!(A!=null&&(this.root.parentNode==null||A.parentNode==null||O.parentNode==null))){var D=document.getSelection();if(D!=null)if(A!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||L||A!==z.startContainer||v!==z.startOffset||O!==z.endContainer||N!==z.endOffset){A.tagName=="BR"&&(v=[].indexOf.call(A.parentNode.childNodes,A),A=A.parentNode),O.tagName=="BR"&&(N=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var $=document.createRange();$.setStart(A,v),$.setEnd(O,N),D.removeAllRanges(),D.addRange($)}}else D.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(A){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.default.sources.API;if(typeof v=="string"&&(O=v,v=!1),n.info("setRange",A),A!=null){var N=this.rangeToNative(A);this.setNativeRange.apply(this,i(N).concat([v]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.default.sources.USER,v=this.lastRange,O=this.getRange(),N=E(O,2),L=N[0],D=N[1];if(this.lastRange=L,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(v,this.lastRange)){var z;!this.composing&&D!=null&&D.native.collapsed&&D.start.node!==this.cursor.textNode&&this.cursor.restore();var $=[s.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(v),A];if((z=this.emitter).emit.apply(z,[s.default.events.EDITOR_CHANGE].concat($)),A!==s.default.sources.SILENT){var J;(J=this.emitter).emit.apply(J,$)}}}}]),T}();function w(T,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),T.contains(P)}p.Range=d,p.default=k},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(l,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,u,r){return u&&s(l.prototype,u),r&&s(l,r),l}}(),b=function s(l,u,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,u);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:s(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=c(0),y=g(_);function g(s){return s&&s.__esModule?s:{default:s}}function h(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:s}function t(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}var e=function(s){t(l,s);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return E(l,[{key:"insertInto",value:function(r,i){r.children.length===0?b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(y.default.Embed);e.blotName="break",e.tagName="BR",p.default=e},function(m,p,c){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])};return function(t,e){o(t,e);function s(){this.constructor=t}t.prototype=e===null?Object.create(e):(s.prototype=e.prototype,new s)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(44),_=c(30),y=c(1),g=function(o){E(t,o);function t(e){var s=o.call(this,e)||this;return s.build(),s}return t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new b.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(s){try{var l=h(s);e.insertBefore(l,e.children.head||void 0)}catch(u){if(u instanceof y.ParchmentError)return;throw u}})},t.prototype.deleteAt=function(e,s){if(e===0&&s===this.length())return this.remove();this.children.forEachAt(e,s,function(l,u,r){l.deleteAt(u,r)})},t.prototype.descendant=function(e,s){var l=this.children.find(s),u=l[0],r=l[1];return e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e?[u,r]:u instanceof t?u.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,s,l){s===void 0&&(s=0),l===void 0&&(l=Number.MAX_VALUE);var u=[],r=l;return this.children.forEachAt(s,l,function(i,f,n){(e.blotName==null&&e(i)||e.blotName!=null&&i instanceof e)&&u.push(i),i instanceof t&&(u=u.concat(i.descendants(e,f,r))),r-=n}),u},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,s,l,u){this.children.forEachAt(e,s,function(r,i,f){r.formatAt(i,f,l,u)})},t.prototype.insertAt=function(e,s,l){var u=this.children.find(e),r=u[0],i=u[1];if(r)r.insertAt(i,s,l);else{var f=l==null?y.create("text",s):y.create(s,l);this.appendChild(f)}},t.prototype.insertBefore=function(e,s){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(l){return e instanceof l}))throw new y.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,s)},t.prototype.length=function(){return this.children.reduce(function(e,s){return e+s.length()},0)},t.prototype.moveChildren=function(e,s){this.children.forEach(function(l){e.insertBefore(l,s)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var s=y.create(this.statics.defaultChild);this.appendChild(s),s.optimize(e)}else this.remove()},t.prototype.path=function(e,s){s===void 0&&(s=!1);var l=this.children.find(e,s),u=l[0],r=l[1],i=[[this,e]];return u instanceof t?i.concat(u.path(r,s)):(u!=null&&i.push([u,r]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),o.prototype.replace.call(this,e)},t.prototype.split=function(e,s){if(s===void 0&&(s=!1),!s){if(e===0)return this;if(e===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(e,this.length(),function(u,r,i){u=u.split(r,s),l.appendChild(u)}),l},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,s){var l=this,u=[],r=[];e.forEach(function(i){i.target===l.domNode&&i.type==="childList"&&(u.push.apply(u,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=y.find(i);f!=null&&(f.domNode.parentNode==null||f.domNode.parentNode===l.domNode)&&f.detach()}}),u.filter(function(i){return i.parentNode==l.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;i.nextSibling!=null&&(f=y.find(i.nextSibling));var n=h(i);(n.next!=f||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,f||void 0))})},t}(_.default);function h(o){var t=y.find(o);if(t==null)try{t=y.create(o)}catch{t=y.create(y.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(s){t.domNode.appendChild(s)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}p.default=g},function(m,p,c){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])};return function(t,e){o(t,e);function s(){this.constructor=t}t.prototype=e===null?Object.create(e):(s.prototype=e.prototype,new s)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(12),_=c(31),y=c(17),g=c(1),h=function(o){E(t,o);function t(e){var s=o.call(this,e)||this;return s.attributes=new _.default(s.domNode),s}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,s){var l=g.query(e);l instanceof b.default?this.attributes.attribute(l,s):s&&l!=null&&(e!==this.statics.blotName||this.formats()[e]!==s)&&this.replaceWith(e,s)},t.prototype.formats=function(){var e=this.attributes.values(),s=this.statics.formats(this.domNode);return s!=null&&(e[this.statics.blotName]=s),e},t.prototype.replaceWith=function(e,s){var l=o.prototype.replaceWith.call(this,e,s);return this.attributes.copy(l),l},t.prototype.update=function(e,s){var l=this;o.prototype.update.call(this,e,s),e.some(function(u){return u.target===l.domNode&&u.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(e,s){var l=o.prototype.wrap.call(this,e,s);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(y.default);p.default=h},function(m,p,c){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){g(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(30),_=c(1),y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.value=function(o){return!0},h.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},h.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},h.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},h.scope=_.Scope.INLINE_BLOT,h}(b.default);p.default=y},function(m,p,c){var E=c(11),b=c(3),_={attributes:{compose:function(g,h,o){typeof g!="object"&&(g={}),typeof h!="object"&&(h={});var t=b(!0,{},h);o||(t=Object.keys(t).reduce(function(s,l){return t[l]!=null&&(s[l]=t[l]),s},{}));for(var e in g)g[e]!==void 0&&h[e]===void 0&&(t[e]=g[e]);return Object.keys(t).length>0?t:void 0},diff:function(g,h){typeof g!="object"&&(g={}),typeof h!="object"&&(h={});var o=Object.keys(g).concat(Object.keys(h)).reduce(function(t,e){return E(g[e],h[e])||(t[e]=h[e]===void 0?null:h[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(g,h,o){if(typeof g!="object")return h;if(typeof h=="object"){if(!o)return h;var t=Object.keys(h).reduce(function(e,s){return g[s]===void 0&&(e[s]=h[s]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(g){return new y(g)},length:function(g){return typeof g.delete=="number"?g.delete:typeof g.retain=="number"?g.retain:typeof g.insert=="string"?g.insert.length:1}};function y(g){this.ops=g,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(g){g||(g=1/0);var h=this.ops[this.index];if(h){var o=this.offset,t=_.length(h);if(g>=t-o?(g=t-o,this.index+=1,this.offset=0):this.offset+=g,typeof h.delete=="number")return{delete:g};var e={};return h.attributes&&(e.attributes=h.attributes),typeof h.retain=="number"?e.retain=g:typeof h.insert=="string"?e.insert=h.insert.substr(o,g):e.insert=h.insert,e}else return{retain:1/0}},y.prototype.peek=function(){return this.ops[this.index]},y.prototype.peekLength=function(){return this.ops[this.index]?_.length(this.ops[this.index])-this.offset:1/0},y.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},y.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var g=this.offset,h=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=g,this.index=h,[o].concat(t)}else return[]},m.exports=_},function(m,p){var c=function(){function E(l,u){return u!=null&&l instanceof u}var b;try{b=Map}catch{b=function(){}}var _;try{_=Set}catch{_=function(){}}var y;try{y=Promise}catch{y=function(){}}function g(l,u,r,i,f){typeof u=="object"&&(r=u.depth,i=u.prototype,f=u.includeNonEnumerable,u=u.circular);var n=[],d=[],k=typeof Buffer<"u";typeof u>"u"&&(u=!0),typeof r>"u"&&(r=1/0);function w(T,P){if(T===null)return null;if(P===0)return T;var A,v;if(typeof T!="object")return T;if(E(T,b))A=new b;else if(E(T,_))A=new _;else if(E(T,y))A=new y(function(j,S){T.then(function(I){j(w(I,P-1))},function(I){S(w(I,P-1))})});else if(g.__isArray(T))A=[];else if(g.__isRegExp(T))A=new RegExp(T.source,s(T)),T.lastIndex&&(A.lastIndex=T.lastIndex);else if(g.__isDate(T))A=new Date(T.getTime());else{if(k&&Buffer.isBuffer(T))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(T.length):A=new Buffer(T.length),T.copy(A),A;E(T,Error)?A=Object.create(T):typeof i>"u"?(v=Object.getPrototypeOf(T),A=Object.create(v)):(A=Object.create(i),v=i)}if(u){var O=n.indexOf(T);if(O!=-1)return d[O];n.push(T),d.push(A)}E(T,b)&&T.forEach(function(j,S){var I=w(S,P-1),M=w(j,P-1);A.set(I,M)}),E(T,_)&&T.forEach(function(j){var S=w(j,P-1);A.add(S)});for(var N in T){var L;v&&(L=Object.getOwnPropertyDescriptor(v,N)),!(L&&L.set==null)&&(A[N]=w(T[N],P-1))}if(Object.getOwnPropertySymbols)for(var D=Object.getOwnPropertySymbols(T),N=0;N<D.length;N++){var z=D[N],$=Object.getOwnPropertyDescriptor(T,z);$&&!$.enumerable&&!f||(A[z]=w(T[z],P-1),$.enumerable||Object.defineProperty(A,z,{enumerable:!1}))}if(f)for(var J=Object.getOwnPropertyNames(T),N=0;N<J.length;N++){var H=J[N],$=Object.getOwnPropertyDescriptor(T,H);$&&$.enumerable||(A[H]=w(T[H],P-1),Object.defineProperty(A,H,{enumerable:!1}))}return A}return w(l,r)}g.clonePrototype=function(u){if(u===null)return null;var r=function(){};return r.prototype=u,new r};function h(l){return Object.prototype.toString.call(l)}g.__objToStr=h;function o(l){return typeof l=="object"&&h(l)==="[object Date]"}g.__isDate=o;function t(l){return typeof l=="object"&&h(l)==="[object Array]"}g.__isArray=t;function e(l){return typeof l=="object"&&h(l)==="[object RegExp]"}g.__isRegExp=e;function s(l){var u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),u}return g.__getRegExpFlags=s,g}();typeof m=="object"&&m.exports&&(m.exports=c)},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function A(v,O){var N=[],L=!0,D=!1,z=void 0;try{for(var $=v[Symbol.iterator](),J;!(L=(J=$.next()).done)&&(N.push(J.value),!(O&&N.length===O));L=!0);}catch(H){D=!0,z=H}finally{try{!L&&$.return&&$.return()}finally{if(D)throw z}}return N}return function(v,O){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return A(v,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function A(v,O){for(var N=0;N<O.length;N++){var L=O[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(v,L.key,L)}}return function(v,O,N){return O&&A(v.prototype,O),N&&A(v,N),v}}(),_=function A(v,O,N){v===null&&(v=Function.prototype);var L=Object.getOwnPropertyDescriptor(v,O);if(L===void 0){var D=Object.getPrototypeOf(v);return D===null?void 0:A(D,O,N)}else{if("value"in L)return L.value;var z=L.get;return z===void 0?void 0:z.call(N)}},y=c(0),g=n(y),h=c(8),o=n(h),t=c(4),e=n(t),s=c(16),l=n(s),u=c(13),r=n(u),i=c(25),f=n(i);function n(A){return A&&A.__esModule?A:{default:A}}function d(A,v){if(!(A instanceof v))throw new TypeError("Cannot call a class as a function")}function k(A,v){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:A}function w(A,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);A.prototype=Object.create(v&&v.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(A,v):A.__proto__=v)}function T(A){return A instanceof e.default||A instanceof t.BlockEmbed}var P=function(A){w(v,A);function v(O,N){d(this,v);var L=k(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,O));return L.emitter=N.emitter,Array.isArray(N.whitelist)&&(L.whitelist=N.whitelist.reduce(function(D,z){return D[z]=!0,D},{})),L.domNode.addEventListener("DOMNodeInserted",function(){}),L.optimize(),L.enable(),L}return b(v,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,L){var D=this.line(N),z=E(D,2),$=z[0],J=z[1],H=this.line(N+L),j=E(H,1),S=j[0];if(_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,N,L),S!=null&&$!==S&&J>0){if($ instanceof t.BlockEmbed||S instanceof t.BlockEmbed){this.optimize();return}if($ instanceof r.default){var I=$.newlineIndex($.length(),!0);if(I>-1&&($=$.split(I+1),$===S)){this.optimize();return}}else if(S instanceof r.default){var M=S.newlineIndex(0);M>-1&&S.split(M+1)}var K=S.children.head instanceof l.default?null:S.children.head;$.moveChildren(S,K),$.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,L,D,z){this.whitelist!=null&&!this.whitelist[D]||(_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,N,L,D,z),this.optimize())}},{key:"insertAt",value:function(N,L,D){if(!(D!=null&&this.whitelist!=null&&!this.whitelist[L])){if(N>=this.length())if(D==null||g.default.query(L,g.default.Scope.BLOCK)==null){var z=g.default.create(this.statics.defaultChild);this.appendChild(z),D==null&&L.endsWith(`
  27. `)&&(L=L.slice(0,-1)),z.insertAt(0,L,D)}else{var $=g.default.create(L,D);this.appendChild($)}else _(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,N,L,D);this.optimize()}}},{key:"insertBefore",value:function(N,L){if(N.statics.scope===g.default.Scope.INLINE_BLOT){var D=g.default.create(this.statics.defaultChild);D.appendChild(N),N=D}_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,N,L)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(T,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,D=function z($,J,H){var j=[],S=H;return $.children.forEachAt(J,H,function(I,M,K){T(I)?j.push(I):I instanceof g.default.Container&&(j=j.concat(z(I,M,S))),S-=K}),j};return D(this,N,L)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,N,L),N.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,N,L))}},{key:"path",value:function(N){return _(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var L=o.default.sources.USER;typeof N=="string"&&(L=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,L,N),_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,L,N)}}}]),v}(g.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[e.default,t.BlockEmbed,f.default],p.default=P},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.SHORTKEY=p.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},b=function(){function R(F,G){var V=[],X=!0,nt=!1,it=void 0;try{for(var at=F[Symbol.iterator](),ft;!(X=(ft=at.next()).done)&&(V.push(ft.value),!(G&&V.length===G));X=!0);}catch(ht){nt=!0,it=ht}finally{try{!X&&at.return&&at.return()}finally{if(nt)throw it}}return V}return function(F,G){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return R(F,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function R(F,G){for(var V=0;V<G.length;V++){var X=G[V];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(F,X.key,X)}}return function(F,G,V){return G&&R(F.prototype,G),V&&R(F,V),F}}(),y=c(21),g=A(y),h=c(11),o=A(h),t=c(3),e=A(t),s=c(2),l=A(s),u=c(20),r=A(u),i=c(0),f=A(i),n=c(5),d=A(n),k=c(10),w=A(k),T=c(9),P=A(T);function A(R){return R&&R.__esModule?R:{default:R}}function v(R,F,G){return F in R?Object.defineProperty(R,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[F]=G,R}function O(R,F){if(!(R instanceof F))throw new TypeError("Cannot call a class as a function")}function N(R,F){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:R}function L(R,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);R.prototype=Object.create(F&&F.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(R,F):R.__proto__=F)}var D=(0,w.default)("quill:keyboard"),z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",$=function(R){L(F,R),_(F,null,[{key:"match",value:function(V,X){return X=C(X),["altKey","ctrlKey","metaKey","shiftKey"].some(function(nt){return!!X[nt]!==V[nt]&&X[nt]!==null})?!1:X.key===(V.which||V.keyCode)}}]);function F(G,V){O(this,F);var X=N(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,G,V));return X.bindings={},Object.keys(X.options.bindings).forEach(function(nt){nt==="list autofill"&&G.scroll.whitelist!=null&&!G.scroll.whitelist.list||X.options.bindings[nt]&&X.addBinding(X.options.bindings[nt])}),X.addBinding({key:F.keys.ENTER,shiftKey:null},I),X.addBinding({key:F.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(X.addBinding({key:F.keys.BACKSPACE},{collapsed:!0},H),X.addBinding({key:F.keys.DELETE},{collapsed:!0},j)):(X.addBinding({key:F.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},H),X.addBinding({key:F.keys.DELETE},{collapsed:!0,suffix:/^.?$/},j)),X.addBinding({key:F.keys.BACKSPACE},{collapsed:!1},S),X.addBinding({key:F.keys.DELETE},{collapsed:!1},S),X.addBinding({key:F.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},H),X.listen(),X}return _(F,[{key:"addBinding",value:function(V){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},it=C(V);if(it==null||it.key==null)return D.warn("Attempted to add invalid keyboard binding",it);typeof X=="function"&&(X={handler:X}),typeof nt=="function"&&(nt={handler:nt}),it=(0,e.default)(it,X,nt),this.bindings[it.key]=this.bindings[it.key]||[],this.bindings[it.key].push(it)}},{key:"listen",value:function(){var V=this;this.quill.root.addEventListener("keydown",function(X){if(!X.defaultPrevented){var nt=X.which||X.keyCode,it=(V.bindings[nt]||[]).filter(function(dt){return F.match(X,dt)});if(it.length!==0){var at=V.quill.getSelection();if(!(at==null||!V.quill.hasFocus())){var ft=V.quill.getLine(at.index),ht=b(ft,2),mt=ht[0],gt=ht[1],W=V.quill.getLeaf(at.index),Y=b(W,2),tt=Y[0],et=Y[1],Q=at.length===0?[tt,et]:V.quill.getLeaf(at.index+at.length),st=b(Q,2),ot=st[0],lt=st[1],kt=tt instanceof f.default.Text?tt.value().slice(0,et):"",Ot=ot instanceof f.default.Text?ot.value().slice(lt):"",pt={collapsed:at.length===0,empty:at.length===0&&mt.length()<=1,format:V.quill.getFormat(at),offset:gt,prefix:kt,suffix:Ot},Wt=it.some(function(dt){if(dt.collapsed!=null&&dt.collapsed!==pt.collapsed||dt.empty!=null&&dt.empty!==pt.empty||dt.offset!=null&&dt.offset!==pt.offset)return!1;if(Array.isArray(dt.format)){if(dt.format.every(function(jt){return pt.format[jt]==null}))return!1}else if(E(dt.format)==="object"&&!Object.keys(dt.format).every(function(jt){return dt.format[jt]===!0?pt.format[jt]!=null:dt.format[jt]===!1?pt.format[jt]==null:(0,o.default)(dt.format[jt],pt.format[jt])}))return!1;return dt.prefix!=null&&!dt.prefix.test(pt.prefix)||dt.suffix!=null&&!dt.suffix.test(pt.suffix)?!1:dt.handler.call(V,at,pt)!==!0});Wt&&X.preventDefault()}}}})}}]),F}(P.default);$.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},$.DEFAULTS={bindings:{bold:K("bold"),italic:K("italic"),underline:K("underline"),indent:{key:$.keys.TAB,format:["blockquote","indent","list"],handler:function(F,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:$.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(F,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:$.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(F,G){G.format.indent!=null?this.quill.format("indent","-1",d.default.sources.USER):G.format.list!=null&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:$.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(F){this.quill.deleteText(F.index-1,1,d.default.sources.USER)}},tab:{key:$.keys.TAB,handler:function(F){this.quill.history.cutoff();var G=new l.default().retain(F.index).delete(F.length).insert(" ");this.quill.updateContents(G,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index+1,d.default.sources.SILENT)}},"list empty enter":{key:$.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(F,G){this.quill.format("list",!1,d.default.sources.USER),G.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:$.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(F){var G=this.quill.getLine(F.index),V=b(G,2),X=V[0],nt=V[1],it=(0,e.default)({},X.formats(),{list:"checked"}),at=new l.default().retain(F.index).insert(`
  28. `,it).retain(X.length()-nt-1).retain(1,{list:"unchecked"});this.quill.updateContents(at,d.default.sources.USER),this.quill.setSelection(F.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:$.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(F,G){var V=this.quill.getLine(F.index),X=b(V,2),nt=X[0],it=X[1],at=new l.default().retain(F.index).insert(`
  29. `,G.format).retain(nt.length()-it-1).retain(1,{header:null});this.quill.updateContents(at,d.default.sources.USER),this.quill.setSelection(F.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(F,G){var V=G.prefix.length,X=this.quill.getLine(F.index),nt=b(X,2),it=nt[0],at=nt[1];if(at>V)return!0;var ft=void 0;switch(G.prefix.trim()){case"[]":case"[ ]":ft="unchecked";break;case"[x]":ft="checked";break;case"-":case"*":ft="bullet";break;default:ft="ordered"}this.quill.insertText(F.index," ",d.default.sources.USER),this.quill.history.cutoff();var ht=new l.default().retain(F.index-at).delete(V+1).retain(it.length()-2-at).retain(1,{list:ft});this.quill.updateContents(ht,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index-V,d.default.sources.SILENT)}},"code exit":{key:$.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(F){var G=this.quill.getLine(F.index),V=b(G,2),X=V[0],nt=V[1],it=new l.default().retain(F.index+X.length()-nt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(it,d.default.sources.USER)}},"embed left":J($.keys.LEFT,!1),"embed left shift":J($.keys.LEFT,!0),"embed right":J($.keys.RIGHT,!1),"embed right shift":J($.keys.RIGHT,!0)}};function J(R,F){var G,V=R===$.keys.LEFT?"prefix":"suffix";return G={key:R,shiftKey:F,altKey:null},v(G,V,/^$/),v(G,"handler",function(nt){var it=nt.index;R===$.keys.RIGHT&&(it+=nt.length+1);var at=this.quill.getLeaf(it),ft=b(at,1),ht=ft[0];return ht instanceof f.default.Embed?(R===$.keys.LEFT?F?this.quill.setSelection(nt.index-1,nt.length+1,d.default.sources.USER):this.quill.setSelection(nt.index-1,d.default.sources.USER):F?this.quill.setSelection(nt.index,nt.length+1,d.default.sources.USER):this.quill.setSelection(nt.index+nt.length+1,d.default.sources.USER),!1):!0}),G}function H(R,F){if(!(R.index===0||this.quill.getLength()<=1)){var G=this.quill.getLine(R.index),V=b(G,1),X=V[0],nt={};if(F.offset===0){var it=this.quill.getLine(R.index-1),at=b(it,1),ft=at[0];if(ft!=null&&ft.length()>1){var ht=X.formats(),mt=this.quill.getFormat(R.index-1,1);nt=r.default.attributes.diff(ht,mt)||{}}}var gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(F.prefix)?2:1;this.quill.deleteText(R.index-gt,gt,d.default.sources.USER),Object.keys(nt).length>0&&this.quill.formatLine(R.index-gt,gt,nt,d.default.sources.USER),this.quill.focus()}}function j(R,F){var G=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(F.suffix)?2:1;if(!(R.index>=this.quill.getLength()-G)){var V={},X=0,nt=this.quill.getLine(R.index),it=b(nt,1),at=it[0];if(F.offset>=at.length()-1){var ft=this.quill.getLine(R.index+1),ht=b(ft,1),mt=ht[0];if(mt){var gt=at.formats(),W=this.quill.getFormat(R.index,1);V=r.default.attributes.diff(gt,W)||{},X=mt.length()}}this.quill.deleteText(R.index,G,d.default.sources.USER),Object.keys(V).length>0&&this.quill.formatLine(R.index+X-1,G,V,d.default.sources.USER)}}function S(R){var F=this.quill.getLines(R),G={};if(F.length>1){var V=F[0].formats(),X=F[F.length-1].formats();G=r.default.attributes.diff(X,V)||{}}this.quill.deleteText(R,d.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(R.index,1,G,d.default.sources.USER),this.quill.setSelection(R.index,d.default.sources.SILENT),this.quill.focus()}function I(R,F){var G=this;R.length>0&&this.quill.scroll.deleteAt(R.index,R.length);var V=Object.keys(F.format).reduce(function(X,nt){return f.default.query(nt,f.default.Scope.BLOCK)&&!Array.isArray(F.format[nt])&&(X[nt]=F.format[nt]),X},{});this.quill.insertText(R.index,`
  30. `,V,d.default.sources.USER),this.quill.setSelection(R.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(F.format).forEach(function(X){V[X]==null&&(Array.isArray(F.format[X])||X!=="link"&&G.quill.format(X,F.format[X],d.default.sources.USER))})}function M(R){return{key:$.keys.TAB,shiftKey:!R,format:{"code-block":!0},handler:function(G){var V=f.default.query("code-block"),X=G.index,nt=G.length,it=this.quill.scroll.descendant(V,X),at=b(it,2),ft=at[0],ht=at[1];if(ft!=null){var mt=this.quill.getIndex(ft),gt=ft.newlineIndex(ht,!0)+1,W=ft.newlineIndex(mt+ht+nt),Y=ft.domNode.textContent.slice(gt,W).split(`
  31. `);ht=0,Y.forEach(function(tt,et){R?(ft.insertAt(gt+ht,V.TAB),ht+=V.TAB.length,et===0?X+=V.TAB.length:nt+=V.TAB.length):tt.startsWith(V.TAB)&&(ft.deleteAt(gt+ht,V.TAB.length),ht-=V.TAB.length,et===0?X-=V.TAB.length:nt-=V.TAB.length),ht+=tt.length+1}),this.quill.update(d.default.sources.USER),this.quill.setSelection(X,nt,d.default.sources.SILENT)}}}}function K(R){return{key:R[0].toUpperCase(),shortKey:!0,handler:function(G,V){this.quill.format(R,!V.format[R],d.default.sources.USER)}}}function C(R){if(typeof R=="string"||typeof R=="number")return C({key:R});if((typeof R>"u"?"undefined":E(R))==="object"&&(R=(0,g.default)(R,!1)),typeof R.key=="string")if($.keys[R.key.toUpperCase()]!=null)R.key=$.keys[R.key.toUpperCase()];else if(R.key.length===1)R.key=R.key.toUpperCase().charCodeAt(0);else return null;return R.shortKey&&(R[z]=R.shortKey,delete R.shortKey),R}p.default=$,p.SHORTKEY=z},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function r(i,f){var n=[],d=!0,k=!1,w=void 0;try{for(var T=i[Symbol.iterator](),P;!(d=(P=T.next()).done)&&(n.push(P.value),!(f&&n.length===f));d=!0);}catch(A){k=!0,w=A}finally{try{!d&&T.return&&T.return()}finally{if(k)throw w}}return n}return function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function r(i,f,n){i===null&&(i=Function.prototype);var d=Object.getOwnPropertyDescriptor(i,f);if(d===void 0){var k=Object.getPrototypeOf(i);return k===null?void 0:r(k,f,n)}else{if("value"in d)return d.value;var w=d.get;return w===void 0?void 0:w.call(n)}},_=function(){function r(i,f){for(var n=0;n<f.length;n++){var d=f[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),y=c(0),g=t(y),h=c(7),o=t(h);function t(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function s(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function l(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var u=function(r){l(i,r),_(i,null,[{key:"value",value:function(){}}]);function i(f,n){e(this,i);var d=s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return d.selection=n,d.textNode=document.createTextNode(i.CONTENTS),d.domNode.appendChild(d.textNode),d._length=0,d}return _(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,d){if(this._length!==0)return b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,d);for(var k=this,w=0;k!=null&&k.statics.scope!==g.default.Scope.BLOCK_BLOT;)w+=k.offset(k.parent),k=k.parent;k!=null&&(this._length=i.CONTENTS.length,k.optimize(),k.formatAt(w,i.CONTENTS.length,n,d),this._length=0)}},{key:"index",value:function(n,d){return n===this.textNode?0:b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,d)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,d=this.selection.getNativeRange(),k=void 0,w=void 0,T=void 0;if(d!=null&&d.start.node===n&&d.end.node===n){var P=[n,d.start.offset,d.end.offset];k=P[0],w=P[1],T=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var A=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(k=this.next.domNode,this.next.insertAt(0,A),this.textNode.data=i.CONTENTS):(this.textNode.data=A,this.parent.insertBefore(g.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),w!=null){var v=[w,T].map(function(N){return Math.max(0,Math.min(k.data.length,N-1))}),O=E(v,2);return w=O[0],T=O[1],{startNode:k,startOffset:w,endNode:k,endOffset:T}}}}},{key:"update",value:function(n,d){var k=this;if(n.some(function(T){return T.type==="characterData"&&T.target===k.textNode})){var w=this.restore();w&&(d.range=w)}}},{key:"value",value:function(){return""}}]),i}(g.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\uFEFF",p.default=u},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(0),b=g(E),_=c(4),y=g(_);function g(s){return s&&s.__esModule?s:{default:s}}function h(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:s}function t(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}var e=function(s){t(l,s);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(b.default.Container);e.allowedChildren=[y.default,_.BlockEmbed,e],p.default=e},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.ColorStyle=p.ColorClass=p.ColorAttributor=void 0;var E=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),b=function u(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:u(d,i,f)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(f)}},_=c(0),y=g(_);function g(u){return u&&u.__esModule?u:{default:u}}function h(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function o(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function t(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var e=function(u){t(r,u);function r(){return h(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"value",value:function(f){var n=b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(d){return("00"+parseInt(d).toString(16)).slice(-2)}).join("")):n}}]),r}(y.default.Attributor.Style),s=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),l=new e("color","color",{scope:y.default.Scope.INLINE});p.ColorAttributor=e,p.ColorClass=s,p.ColorStyle=l},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.sanitize=p.default=void 0;var E=function(){function l(u,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,r,i){return r&&l(u.prototype,r),i&&l(u,i),u}}(),b=function l(u,r,i){u===null&&(u=Function.prototype);var f=Object.getOwnPropertyDescriptor(u,r);if(f===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:l(n,r,i)}else{if("value"in f)return f.value;var d=f.get;return d===void 0?void 0:d.call(i)}},_=c(6),y=g(_);function g(l){return l&&l.__esModule?l:{default:l}}function h(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function o(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:l}function t(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}var e=function(l){t(u,l);function u(){return h(this,u),o(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return E(u,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=b(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return s(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),u}(y.default);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function s(l,u){var r=document.createElement("a");r.href=l;var i=r.href.slice(0,r.href.indexOf(":"));return u.indexOf(i)>-1}p.default=e,p.sanitize=s},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},b=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),_=c(23),y=o(_),g=c(107),h=o(g);function o(u){return u&&u.__esModule?u:{default:u}}function t(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}var e=0;function s(u,r){u.setAttribute(r,u.getAttribute(r)!=="true")}var l=function(){function u(r){var i=this;t(this,u),this.select=r,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(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case y.default.keys.ENTER:i.togglePicker();break;case y.default.keys.ESCAPE:i.escape(),f.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return b(u,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(d){switch(d.keyCode){case y.default.keys.ENTER:f.selectItem(n,!0),d.preventDefault();break;case y.default.keys.ESCAPE:f.escape(),d.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=h.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var d=i.buildItem(n);f.appendChild(d),n.selected===!0&&i.selectItem(d)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.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(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(i!==n&&(n!=null&&n.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":E(Event))==="object"){var d=document.createEvent("Event");d.initEvent("change",!0,!0),this.select.dispatchEvent(d)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),u}();p.default=l},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(0),b=D(E),_=c(5),y=D(_),g=c(4),h=D(g),o=c(16),t=D(o),e=c(25),s=D(e),l=c(24),u=D(l),r=c(35),i=D(r),f=c(6),n=D(f),d=c(22),k=D(d),w=c(7),T=D(w),P=c(55),A=D(P),v=c(42),O=D(v),N=c(23),L=D(N);function D(z){return z&&z.__esModule?z:{default:z}}y.default.register({"blots/block":h.default,"blots/block/embed":g.BlockEmbed,"blots/break":t.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":k.default,"blots/text":T.default,"modules/clipboard":A.default,"modules/history":O.default,"modules/keyboard":L.default}),b.default.register(h.default,t.default,u.default,n.default,k.default,T.default),p.default=y.default},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(1),b=function(){function _(y){this.domNode=y,this.domNode[E.DATA_KEY]={blot:this}}return Object.defineProperty(_.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),_.create=function(y){if(this.tagName==null)throw new E.ParchmentError("Blot definition missing tagName");var g;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?g=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?g=document.createElement(y):g=document.createElement(this.tagName[0])):g=document.createElement(this.tagName),this.className&&g.classList.add(this.className),g},_.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},_.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return E.create(y)},_.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[E.DATA_KEY]},_.prototype.deleteAt=function(y,g){var h=this.isolate(y,g);h.remove()},_.prototype.formatAt=function(y,g,h,o){var t=this.isolate(y,g);if(E.query(h,E.Scope.BLOT)!=null&&o)t.wrap(h,o);else if(E.query(h,E.Scope.ATTRIBUTE)!=null){var e=E.create(this.statics.scope);t.wrap(e),e.format(h,o)}},_.prototype.insertAt=function(y,g,h){var o=h==null?E.create("text",g):E.create(g,h),t=this.split(y);this.parent.insertBefore(o,t)},_.prototype.insertInto=function(y,g){g===void 0&&(g=null),this.parent!=null&&this.parent.children.remove(this);var h=null;y.children.insertBefore(this,g),g!=null&&(h=g.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=h)&&y.domNode.insertBefore(this.domNode,h),this.parent=y,this.attach()},_.prototype.isolate=function(y,g){var h=this.split(y);return h.split(g),h},_.prototype.length=function(){return 1},_.prototype.offset=function(y){return y===void 0&&(y=this.parent),this.parent==null||this==y?0:this.parent.children.offset(this)+this.parent.offset(y)},_.prototype.optimize=function(y){this.domNode[E.DATA_KEY]!=null&&delete this.domNode[E.DATA_KEY].mutations},_.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},_.prototype.replace=function(y){y.parent!=null&&(y.parent.insertBefore(this,y.next),y.remove())},_.prototype.replaceWith=function(y,g){var h=typeof y=="string"?E.create(y,g):y;return h.replace(this),h},_.prototype.split=function(y,g){return y===0?this:this.next},_.prototype.update=function(y,g){},_.prototype.wrap=function(y,g){var h=typeof y=="string"?E.create(y,g):y;return this.parent!=null&&this.parent.insertBefore(h,this.next),h.appendChild(this),h},_.blotName="abstract",_}();p.default=b},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(12),b=c(32),_=c(33),y=c(1),g=function(){function h(o){this.attributes={},this.domNode=o,this.build()}return h.prototype.attribute=function(o,t){t?o.add(this.domNode,t)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},h.prototype.build=function(){var o=this;this.attributes={};var t=E.default.keys(this.domNode),e=b.default.keys(this.domNode),s=_.default.keys(this.domNode);t.concat(e).concat(s).forEach(function(l){var u=y.query(l,y.Scope.ATTRIBUTE);u instanceof E.default&&(o.attributes[u.attrName]=u)})},h.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var s=t.attributes[e].value(t.domNode);o.format(e,s)})},h.prototype.move=function(o){var t=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},h.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=o.attributes[e].value(o.domNode),t},{})},h}();p.default=g},function(m,p,c){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){g(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(12);function _(g,h){var o=g.getAttribute("class")||"";return o.split(/\s+/).filter(function(t){return t.indexOf(h+"-")===0})}var y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},h.prototype.add=function(o,t){return this.canAdd(o,t)?(this.remove(o),o.classList.add(this.keyName+"-"+t),!0):!1},h.prototype.remove=function(o){var t=_(o,this.keyName);t.forEach(function(e){o.classList.remove(e)}),o.classList.length===0&&o.removeAttribute("class")},h.prototype.value=function(o){var t=_(o,this.keyName)[0]||"",e=t.slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},h}(b.default);p.default=y},function(m,p,c){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){g(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(12);function _(g){var h=g.split("-"),o=h.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return h[0]+o}var y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},h.prototype.add=function(o,t){return this.canAdd(o,t)?(o.style[_(this.keyName)]=t,!0):!1},h.prototype.remove=function(o){o.style[_(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},h.prototype.value=function(o){var t=o.style[_(this.keyName)];return this.canAdd(o,t)?t:""},h}(b.default);p.default=y},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function y(g,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(g,t.key,t)}}return function(g,h,o){return h&&y(g.prototype,h),o&&y(g,o),g}}();function b(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(g,h){b(this,y),this.quill=g,this.options=h,this.modules={}}return E(y,[{key:"init",value:function(){var h=this;Object.keys(this.options.modules).forEach(function(o){h.modules[o]==null&&h.addModule(o)})}},{key:"addModule",value:function(h){var o=this.quill.constructor.import("modules/"+h);return this.modules[h]=new o(this.quill,this.options.modules[h]||{}),this.modules[h]}}]),y}();_.DEFAULTS={modules:{}},_.themes={default:_},p.default=_},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function r(i,f){for(var n=0;n<f.length;n++){var d=f[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),b=function r(i,f,n){i===null&&(i=Function.prototype);var d=Object.getOwnPropertyDescriptor(i,f);if(d===void 0){var k=Object.getPrototypeOf(i);return k===null?void 0:r(k,f,n)}else{if("value"in d)return d.value;var w=d.get;return w===void 0?void 0:w.call(n)}},_=c(0),y=o(_),g=c(7),h=o(g);function o(r){return r&&r.__esModule?r:{default:r}}function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function e(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function s(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var l="\uFEFF",u=function(r){s(i,r);function i(f){t(this,i);var n=e(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(d){n.contentNode.appendChild(d)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return E(i,[{key:"index",value:function(n,d){return n===this.leftGuard?0:n===this.rightGuard?1:b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,d)}},{key:"restore",value:function(n){var d=void 0,k=void 0,w=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof h.default){var T=this.prev.length();this.prev.insertAt(T,w),d={startNode:this.prev.domNode,startOffset:T+w.length}}else k=document.createTextNode(w),this.parent.insertBefore(y.default.create(k),this),d={startNode:k,startOffset:w.length};else n===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,w),d={startNode:this.next.domNode,startOffset:w.length}):(k=document.createTextNode(w),this.parent.insertBefore(y.default.create(k),this.next),d={startNode:k,startOffset:w.length}));return n.data=l,d}},{key:"update",value:function(n,d){var k=this;n.forEach(function(w){if(w.type==="characterData"&&(w.target===k.leftGuard||w.target===k.rightGuard)){var T=k.restore(w.target);T&&(d.range=T)}})}}]),i}(y.default.Embed);p.default=u},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.AlignStyle=p.AlignClass=p.AlignAttribute=void 0;var E=c(0),b=_(E);function _(t){return t&&t.__esModule?t:{default:t}}var y={scope:b.default.Scope.BLOCK,whitelist:["right","center","justify"]},g=new b.default.Attributor.Attribute("align","align",y),h=new b.default.Attributor.Class("align","ql-align",y),o=new b.default.Attributor.Style("align","text-align",y);p.AlignAttribute=g,p.AlignClass=h,p.AlignStyle=o},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.BackgroundStyle=p.BackgroundClass=void 0;var E=c(0),b=y(E),_=c(26);function y(o){return o&&o.__esModule?o:{default:o}}var g=new b.default.Attributor.Class("background","ql-bg",{scope:b.default.Scope.INLINE}),h=new _.ColorAttributor("background","background-color",{scope:b.default.Scope.INLINE});p.BackgroundClass=g,p.BackgroundStyle=h},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.DirectionStyle=p.DirectionClass=p.DirectionAttribute=void 0;var E=c(0),b=_(E);function _(t){return t&&t.__esModule?t:{default:t}}var y={scope:b.default.Scope.BLOCK,whitelist:["rtl"]},g=new b.default.Attributor.Attribute("direction","dir",y),h=new b.default.Attributor.Class("direction","ql-direction",y),o=new b.default.Attributor.Style("direction","direction",y);p.DirectionAttribute=g,p.DirectionClass=h,p.DirectionStyle=o},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.FontClass=p.FontStyle=void 0;var E=function(){function r(i,f){for(var n=0;n<f.length;n++){var d=f[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),b=function r(i,f,n){i===null&&(i=Function.prototype);var d=Object.getOwnPropertyDescriptor(i,f);if(d===void 0){var k=Object.getPrototypeOf(i);return k===null?void 0:r(k,f,n)}else{if("value"in d)return d.value;var w=d.get;return w===void 0?void 0:w.call(n)}},_=c(0),y=g(_);function g(r){return r&&r.__esModule?r:{default:r}}function h(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function t(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var e={scope:y.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new y.default.Attributor.Class("font","ql-font",e),l=function(r){t(i,r);function i(){return h(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return E(i,[{key:"value",value:function(n){return b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(y.default.Attributor.Style),u=new l("font","font-family",e);p.FontStyle=u,p.FontClass=s},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.SizeStyle=p.SizeClass=void 0;var E=c(0),b=_(E);function _(h){return h&&h.__esModule?h:{default:h}}var y=new b.default.Attributor.Class("size","ql-size",{scope:b.default.Scope.INLINE,whitelist:["small","large","huge"]}),g=new b.default.Attributor.Style("size","font-size",{scope:b.default.Scope.INLINE,whitelist:["10px","18px","32px"]});p.SizeClass=y,p.SizeStyle=g},function(m,p,c){m.exports={align:{"":c(76),center:c(77),right:c(78),justify:c(79)},background:c(80),blockquote:c(81),bold:c(82),clean:c(83),code:c(58),"code-block":c(58),color:c(84),direction:{"":c(85),rtl:c(86)},float:{center:c(87),full:c(88),left:c(89),right:c(90)},formula:c(91),header:{1:c(92),2:c(93)},italic:c(94),image:c(95),indent:{"+1":c(96),"-1":c(97)},link:c(98),list:{ordered:c(99),bullet:c(100),check:c(101)},script:{sub:c(102),super:c(103)},strike:c(104),underline:c(105),video:c(106)}},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.getLastChangeIndex=p.default=void 0;var E=function(){function f(n,d){for(var k=0;k<d.length;k++){var w=d[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,d,k){return d&&f(n.prototype,d),k&&f(n,k),n}}(),b=c(0),_=t(b),y=c(5),g=t(y),h=c(9),o=t(h);function t(f){return f&&f.__esModule?f:{default:f}}function e(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function s(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function l(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var u=function(f){l(n,f);function n(d,k){e(this,n);var w=s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,d,k));return w.lastRecorded=0,w.ignoreChange=!1,w.clear(),w.quill.on(g.default.events.EDITOR_CHANGE,function(T,P,A,v){T!==g.default.events.TEXT_CHANGE||w.ignoreChange||(!w.options.userOnly||v===g.default.sources.USER?w.record(P,A):w.transform(P))}),w.quill.keyboard.addBinding({key:"Z",shortKey:!0},w.undo.bind(w)),w.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},w.redo.bind(w)),/Win/i.test(navigator.platform)&&w.quill.keyboard.addBinding({key:"Y",shortKey:!0},w.redo.bind(w)),w}return E(n,[{key:"change",value:function(k,w){if(this.stack[k].length!==0){var T=this.stack[k].pop();this.stack[w].push(T),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(T[k],g.default.sources.USER),this.ignoreChange=!1;var P=i(T[k]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,w){if(k.ops.length!==0){this.stack.redo=[];var T=this.quill.getContents().diff(w),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var A=this.stack.undo.pop();T=T.compose(A.undo),k=A.redo.compose(k)}else this.lastRecorded=P;this.stack.undo.push({redo:k,undo:T}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(w){w.undo=k.transform(w.undo,!0),w.redo=k.transform(w.redo,!0)}),this.stack.redo.forEach(function(w){w.undo=k.transform(w.undo,!0),w.redo=k.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(f){var n=f.ops[f.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
  32. `):n.attributes!=null?Object.keys(n.attributes).some(function(d){return _.default.query(d,_.default.Scope.BLOCK)!=null}):!1}function i(f){var n=f.reduce(function(k,w){return k+=w.delete||0,k},0),d=f.length()-n;return r(f)&&(d-=1),d}p.default=u,p.getLastChangeIndex=i},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BaseTooltip=void 0;var E=function(){function I(M,K){for(var C=0;C<K.length;C++){var R=K[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(M,R.key,R)}}return function(M,K,C){return K&&I(M.prototype,K),C&&I(M,C),M}}(),b=function I(M,K,C){M===null&&(M=Function.prototype);var R=Object.getOwnPropertyDescriptor(M,K);if(R===void 0){var F=Object.getPrototypeOf(M);return F===null?void 0:I(F,K,C)}else{if("value"in R)return R.value;var G=R.get;return G===void 0?void 0:G.call(C)}},_=c(3),y=P(_),g=c(2),h=P(g),o=c(8),t=P(o),e=c(23),s=P(e),l=c(34),u=P(l),r=c(59),i=P(r),f=c(60),n=P(f),d=c(28),k=P(d),w=c(61),T=P(w);function P(I){return I&&I.__esModule?I:{default:I}}function A(I,M){if(!(I instanceof M))throw new TypeError("Cannot call a class as a function")}function v(I,M){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:I}function O(I,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);I.prototype=Object.create(M&&M.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(I,M):I.__proto__=M)}var N=[!1,"center","right","justify"],L=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],D=[!1,"serif","monospace"],z=["1","2","3",!1],$=["small",!1,"large","huge"],J=function(I){O(M,I);function M(K,C){A(this,M);var R=v(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,K,C)),F=function G(V){if(!document.body.contains(K.root))return document.body.removeEventListener("click",G);R.tooltip!=null&&!R.tooltip.root.contains(V.target)&&document.activeElement!==R.tooltip.textbox&&!R.quill.hasFocus()&&R.tooltip.hide(),R.pickers!=null&&R.pickers.forEach(function(X){X.container.contains(V.target)||X.close()})};return K.emitter.listenDOM("click",document.body,F),R}return E(M,[{key:"addModule",value:function(C){var R=b(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,C);return C==="toolbar"&&this.extendToolbar(R),R}},{key:"buildButtons",value:function(C,R){C.forEach(function(F){var G=F.getAttribute("class")||"";G.split(/\s+/).forEach(function(V){if(V.startsWith("ql-")&&(V=V.slice(3),R[V]!=null))if(V==="direction")F.innerHTML=R[V][""]+R[V].rtl;else if(typeof R[V]=="string")F.innerHTML=R[V];else{var X=F.value||"";X!=null&&R[V][X]&&(F.innerHTML=R[V][X])}})})}},{key:"buildPickers",value:function(C,R){var F=this;this.pickers=C.map(function(V){if(V.classList.contains("ql-align"))return V.querySelector("option")==null&&S(V,N),new n.default(V,R.align);if(V.classList.contains("ql-background")||V.classList.contains("ql-color")){var X=V.classList.contains("ql-background")?"background":"color";return V.querySelector("option")==null&&S(V,L,X==="background"?"#ffffff":"#000000"),new i.default(V,R[X])}else return V.querySelector("option")==null&&(V.classList.contains("ql-font")?S(V,D):V.classList.contains("ql-header")?S(V,z):V.classList.contains("ql-size")&&S(V,$)),new k.default(V)});var G=function(){F.pickers.forEach(function(X){X.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,G)}}]),M}(u.default);J.DEFAULTS=(0,y.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,K=this.container.querySelector("input.ql-image[type=file]");K==null&&(K=document.createElement("input"),K.setAttribute("type","file"),K.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),K.classList.add("ql-image"),K.addEventListener("change",function(){if(K.files!=null&&K.files[0]!=null){var C=new FileReader;C.onload=function(R){var F=M.quill.getSelection(!0);M.quill.updateContents(new h.default().retain(F.index).delete(F.length).insert({image:R.target.result}),t.default.sources.USER),M.quill.setSelection(F.index+1,t.default.sources.SILENT),K.value=""},C.readAsDataURL(K.files[0])}}),this.container.appendChild(K)),K.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var H=function(I){O(M,I);function M(K,C){A(this,M);var R=v(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,K,C));return R.textbox=R.root.querySelector('input[type="text"]'),R.listen(),R}return E(M,[{key:"listen",value:function(){var C=this;this.textbox.addEventListener("keydown",function(R){s.default.match(R,"enter")?(C.save(),R.preventDefault()):s.default.match(R,"escape")&&(C.cancel(),R.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),R!=null?this.textbox.value=R:C!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+C)||""),this.root.setAttribute("data-mode",C)}},{key:"restoreFocus",value:function(){var C=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=C}},{key:"save",value:function(){var C=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var R=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",C,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",C,t.default.sources.USER)),this.quill.root.scrollTop=R;break}case"video":C=j(C);case"formula":{if(!C)break;var F=this.quill.getSelection(!0);if(F!=null){var G=F.index+F.length;this.quill.insertEmbed(G,this.root.getAttribute("data-mode"),C,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(G+1," ",t.default.sources.USER),this.quill.setSelection(G+2,t.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M}(T.default);function j(I){var M=I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=I.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":I}function S(I,M){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(C){var R=document.createElement("option");C===K?R.setAttribute("selected","selected"):R.setAttribute("value",C),I.appendChild(R)})}p.BaseTooltip=H,p.default=J},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function b(){this.head=this.tail=null,this.length=0}return b.prototype.append=function(){for(var _=[],y=0;y<arguments.length;y++)_[y]=arguments[y];this.insertBefore(_[0],null),_.length>1&&this.append.apply(this,_.slice(1))},b.prototype.contains=function(_){for(var y,g=this.iterator();y=g();)if(y===_)return!0;return!1},b.prototype.insertBefore=function(_,y){_&&(_.next=y,y!=null?(_.prev=y.prev,y.prev!=null&&(y.prev.next=_),y.prev=_,y===this.head&&(this.head=_)):this.tail!=null?(this.tail.next=_,_.prev=this.tail,this.tail=_):(_.prev=null,this.head=this.tail=_),this.length+=1)},b.prototype.offset=function(_){for(var y=0,g=this.head;g!=null;){if(g===_)return y;y+=g.length(),g=g.next}return-1},b.prototype.remove=function(_){this.contains(_)&&(_.prev!=null&&(_.prev.next=_.next),_.next!=null&&(_.next.prev=_.prev),_===this.head&&(this.head=_.next),_===this.tail&&(this.tail=_.prev),this.length-=1)},b.prototype.iterator=function(_){return _===void 0&&(_=this.head),function(){var y=_;return _!=null&&(_=_.next),y}},b.prototype.find=function(_,y){y===void 0&&(y=!1);for(var g,h=this.iterator();g=h();){var o=g.length();if(_<o||y&&_===o&&(g.next==null||g.next.length()!==0))return[g,_];_-=o}return[null,0]},b.prototype.forEach=function(_){for(var y,g=this.iterator();y=g();)_(y)},b.prototype.forEachAt=function(_,y,g){if(!(y<=0))for(var h=this.find(_),o=h[0],t=h[1],e,s=_-t,l=this.iterator(o);(e=l())&&s<_+y;){var u=e.length();_>s?g(e,_-s,Math.min(y,s+u-_)):g(e,0,Math.min(u,_+y-s)),s+=u}},b.prototype.map=function(_){return this.reduce(function(y,g){return y.push(_(g)),y},[])},b.prototype.reduce=function(_,y){for(var g,h=this.iterator();g=h();)y=_(y,g);return y},b}();p.default=E},function(m,p,c){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])};return function(t,e){o(t,e);function s(){this.constructor=t}t.prototype=e===null?Object.create(e):(s.prototype=e.prototype,new s)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(17),_=c(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},g=100,h=function(o){E(t,o);function t(e){var s=o.call(this,e)||this;return s.scroll=s,s.observer=new MutationObserver(function(l){s.update(l)}),s.observer.observe(s.domNode,y),s.attach(),s}return t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,s){this.update(),e===0&&s===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,e,s)},t.prototype.formatAt=function(e,s,l,u){this.update(),o.prototype.formatAt.call(this,e,s,l,u)},t.prototype.insertAt=function(e,s,l){this.update(),o.prototype.insertAt.call(this,e,s,l)},t.prototype.optimize=function(e,s){var l=this;e===void 0&&(e=[]),s===void 0&&(s={}),o.prototype.optimize.call(this,s);for(var u=[].slice.call(this.observer.takeRecords());u.length>0;)e.push(u.pop());for(var r=function(d,k){k===void 0&&(k=!0),!(d==null||d===l)&&d.domNode.parentNode!=null&&(d.domNode[_.DATA_KEY].mutations==null&&(d.domNode[_.DATA_KEY].mutations=[]),k&&r(d.parent))},i=function(d){d.domNode[_.DATA_KEY]==null||d.domNode[_.DATA_KEY].mutations==null||(d instanceof b.default&&d.children.forEach(i),d.optimize(s))},f=e,n=0;f.length>0;n+=1){if(n>=g)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(d){var k=_.find(d.target,!0);k!=null&&(k.domNode===d.target&&(d.type==="childList"?(r(_.find(d.previousSibling,!1)),[].forEach.call(d.addedNodes,function(w){var T=_.find(w,!1);r(T,!1),T instanceof b.default&&T.children.forEach(function(P){r(P,!1)})})):d.type==="attributes"&&r(k.prev)),r(k))}),this.children.forEach(i),f=[].slice.call(this.observer.takeRecords()),u=f.slice();u.length>0;)e.push(u.pop())}},t.prototype.update=function(e,s){var l=this;s===void 0&&(s={}),e=e||this.observer.takeRecords(),e.map(function(u){var r=_.find(u.target,!0);return r==null?null:r.domNode[_.DATA_KEY].mutations==null?(r.domNode[_.DATA_KEY].mutations=[u],r):(r.domNode[_.DATA_KEY].mutations.push(u),null)}).forEach(function(u){u==null||u===l||u.domNode[_.DATA_KEY]==null||u.update(u.domNode[_.DATA_KEY].mutations||[],s)}),this.domNode[_.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[_.DATA_KEY].mutations,s),this.optimize(e,s)},t.blotName="scroll",t.defaultChild="block",t.scope=_.Scope.BLOCK_BLOT,t.tagName="DIV",t}(b.default);p.default=h},function(m,p,c){var E=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])};return function(o,t){h(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(18),_=c(1);function y(h,o){if(Object.keys(h).length!==Object.keys(o).length)return!1;for(var t in h)if(h[t]!==o[t])return!1;return!0}var g=function(h){E(o,h);function o(){return h!==null&&h.apply(this,arguments)||this}return o.formats=function(t){if(t.tagName!==o.tagName)return h.formats.call(this,t)},o.prototype.format=function(t,e){var s=this;t===this.statics.blotName&&!e?(this.children.forEach(function(l){l instanceof b.default||(l=l.wrap(o.blotName,!0)),s.attributes.copy(l)}),this.unwrap()):h.prototype.format.call(this,t,e)},o.prototype.formatAt=function(t,e,s,l){if(this.formats()[s]!=null||_.query(s,_.Scope.ATTRIBUTE)){var u=this.isolate(t,e);u.format(s,l)}else h.prototype.formatAt.call(this,t,e,s,l)},o.prototype.optimize=function(t){h.prototype.optimize.call(this,t);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var s=this.next;s instanceof o&&s.prev===this&&y(e,s.formats())&&(s.moveChildren(this),s.remove())},o.blotName="inline",o.scope=_.Scope.INLINE_BLOT,o.tagName="SPAN",o}(b.default);p.default=g},function(m,p,c){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){g(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(18),_=c(1),y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.formats=function(o){var t=_.query(h.blotName).tagName;if(o.tagName!==t)return g.formats.call(this,o)},h.prototype.format=function(o,t){_.query(o,_.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!t?this.replaceWith(h.blotName):g.prototype.format.call(this,o,t))},h.prototype.formatAt=function(o,t,e,s){_.query(e,_.Scope.BLOCK)!=null?this.format(e,s):g.prototype.formatAt.call(this,o,t,e,s)},h.prototype.insertAt=function(o,t,e){if(e==null||_.query(t,_.Scope.INLINE)!=null)g.prototype.insertAt.call(this,o,t,e);else{var s=this.split(o),l=_.create(t,e);s.parent.insertBefore(l,s)}},h.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():g.prototype.update.call(this,o,t)},h.blotName="block",h.scope=_.Scope.BLOCK_BLOT,h.tagName="P",h}(b.default);p.default=y},function(m,p,c){var E=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,h){g.__proto__=h}||function(g,h){for(var o in h)h.hasOwnProperty(o)&&(g[o]=h[o])};return function(g,h){y(g,h);function o(){this.constructor=g}g.prototype=h===null?Object.create(h):(o.prototype=h.prototype,new o)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(19),_=function(y){E(g,y);function g(){return y!==null&&y.apply(this,arguments)||this}return g.formats=function(h){},g.prototype.format=function(h,o){y.prototype.formatAt.call(this,0,this.length(),h,o)},g.prototype.formatAt=function(h,o,t,e){h===0&&o===this.length()?this.format(t,e):y.prototype.formatAt.call(this,h,o,t,e)},g.prototype.formats=function(){return this.statics.formats(this.domNode)},g}(b.default);p.default=_},function(m,p,c){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){g(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=c(19),_=c(1),y=function(g){E(h,g);function h(o){var t=g.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return h.create=function(o){return document.createTextNode(o)},h.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},h.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},h.prototype.index=function(o,t){return this.domNode===o?t:-1},h.prototype.insertAt=function(o,t,e){e==null?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):g.prototype.insertAt.call(this,o,t,e)},h.prototype.length=function(){return this.text.length},h.prototype.optimize=function(o){g.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},h.prototype.position=function(o,t){return[this.domNode,o]},h.prototype.split=function(o,t){if(t===void 0&&(t=!1),!t){if(o===0)return this;if(o===this.length())return this.next}var e=_.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},h.prototype.update=function(o,t){var e=this;o.some(function(s){return s.type==="characterData"&&s.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},h.prototype.value=function(){return this.text},h.blotName="text",h.scope=_.Scope.INLINE_BLOT,h}(b.default);p.default=y},function(m,p,c){var E=document.createElement("div");if(E.classList.toggle("test-class",!1),E.classList.contains("test-class")){var b=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,y){return arguments.length>1&&!this.contains(_)==!y?y:b.call(this,_)}}String.prototype.startsWith||(String.prototype.startsWith=function(_,y){return y=y||0,this.substr(y,_.length)===_}),String.prototype.endsWith||(String.prototype.endsWith=function(_,y){var g=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>g.length)&&(y=g.length),y-=_.length;var h=g.indexOf(_,y);return h!==-1&&h===y}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof y!="function")throw new TypeError("predicate must be a function");for(var g=Object(this),h=g.length>>>0,o=arguments[1],t,e=0;e<h;e++)if(t=g[e],y.call(o,t,e,g))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(m,p){var c=-1,E=1,b=0;function _(n,d,k){if(n==d)return n?[[b,n]]:[];(k<0||n.length<k)&&(k=null);var w=o(n,d),T=n.substring(0,w);n=n.substring(w),d=d.substring(w),w=t(n,d);var P=n.substring(n.length-w);n=n.substring(0,n.length-w),d=d.substring(0,d.length-w);var A=y(n,d);return T&&A.unshift([b,T]),P&&A.push([b,P]),s(A),k!=null&&(A=r(A,k)),A=i(A),A}function y(n,d){var k;if(!n)return[[E,d]];if(!d)return[[c,n]];var w=n.length>d.length?n:d,T=n.length>d.length?d:n,P=w.indexOf(T);if(P!=-1)return k=[[E,w.substring(0,P)],[b,T],[E,w.substring(P+T.length)]],n.length>d.length&&(k[0][0]=k[2][0]=c),k;if(T.length==1)return[[c,n],[E,d]];var A=e(n,d);if(A){var v=A[0],O=A[1],N=A[2],L=A[3],D=A[4],z=_(v,N),$=_(O,L);return z.concat([[b,D]],$)}return g(n,d)}function g(n,d){for(var k=n.length,w=d.length,T=Math.ceil((k+w)/2),P=T,A=2*T,v=new Array(A),O=new Array(A),N=0;N<A;N++)v[N]=-1,O[N]=-1;v[P+1]=0,O[P+1]=0;for(var L=k-w,D=L%2!=0,z=0,$=0,J=0,H=0,j=0;j<T;j++){for(var S=-j+z;S<=j-$;S+=2){var I=P+S,M;S==-j||S!=j&&v[I-1]<v[I+1]?M=v[I+1]:M=v[I-1]+1;for(var K=M-S;M<k&&K<w&&n.charAt(M)==d.charAt(K);)M++,K++;if(v[I]=M,M>k)$+=2;else if(K>w)z+=2;else if(D){var C=P+L-S;if(C>=0&&C<A&&O[C]!=-1){var R=k-O[C];if(M>=R)return h(n,d,M,K)}}}for(var F=-j+J;F<=j-H;F+=2){var C=P+F,R;F==-j||F!=j&&O[C-1]<O[C+1]?R=O[C+1]:R=O[C-1]+1;for(var G=R-F;R<k&&G<w&&n.charAt(k-R-1)==d.charAt(w-G-1);)R++,G++;if(O[C]=R,R>k)H+=2;else if(G>w)J+=2;else if(!D){var I=P+L-F;if(I>=0&&I<A&&v[I]!=-1){var M=v[I],K=P+M-I;if(R=k-R,M>=R)return h(n,d,M,K)}}}}return[[c,n],[E,d]]}function h(n,d,k,w){var T=n.substring(0,k),P=d.substring(0,w),A=n.substring(k),v=d.substring(w),O=_(T,P),N=_(A,v);return O.concat(N)}function o(n,d){if(!n||!d||n.charAt(0)!=d.charAt(0))return 0;for(var k=0,w=Math.min(n.length,d.length),T=w,P=0;k<T;)n.substring(P,T)==d.substring(P,T)?(k=T,P=k):w=T,T=Math.floor((w-k)/2+k);return T}function t(n,d){if(!n||!d||n.charAt(n.length-1)!=d.charAt(d.length-1))return 0;for(var k=0,w=Math.min(n.length,d.length),T=w,P=0;k<T;)n.substring(n.length-T,n.length-P)==d.substring(d.length-T,d.length-P)?(k=T,P=k):w=T,T=Math.floor((w-k)/2+k);return T}function e(n,d){var k=n.length>d.length?n:d,w=n.length>d.length?d:n;if(k.length<4||w.length*2<k.length)return null;function T($,J,H){for(var j=$.substring(H,H+Math.floor($.length/4)),S=-1,I="",M,K,C,R;(S=J.indexOf(j,S+1))!=-1;){var F=o($.substring(H),J.substring(S)),G=t($.substring(0,H),J.substring(0,S));I.length<G+F&&(I=J.substring(S-G,S)+J.substring(S,S+F),M=$.substring(0,H-G),K=$.substring(H+F),C=J.substring(0,S-G),R=J.substring(S+F))}return I.length*2>=$.length?[M,K,C,R,I]:null}var P=T(k,w,Math.ceil(k.length/4)),A=T(k,w,Math.ceil(k.length/2)),v;if(!P&&!A)return null;A?P?v=P[4].length>A[4].length?P:A:v=A:v=P;var O,N,L,D;n.length>d.length?(O=v[0],N=v[1],L=v[2],D=v[3]):(L=v[0],D=v[1],O=v[2],N=v[3]);var z=v[4];return[O,N,L,D,z]}function s(n){n.push([b,""]);for(var d=0,k=0,w=0,T="",P="",A;d<n.length;)switch(n[d][0]){case E:w++,P+=n[d][1],d++;break;case c:k++,T+=n[d][1],d++;break;case b:k+w>1?(k!==0&&w!==0&&(A=o(P,T),A!==0&&(d-k-w>0&&n[d-k-w-1][0]==b?n[d-k-w-1][1]+=P.substring(0,A):(n.splice(0,0,[b,P.substring(0,A)]),d++),P=P.substring(A),T=T.substring(A)),A=t(P,T),A!==0&&(n[d][1]=P.substring(P.length-A)+n[d][1],P=P.substring(0,P.length-A),T=T.substring(0,T.length-A))),k===0?n.splice(d-w,k+w,[E,P]):w===0?n.splice(d-k,k+w,[c,T]):n.splice(d-k-w,k+w,[c,T],[E,P]),d=d-k-w+(k?1:0)+(w?1:0)+1):d!==0&&n[d-1][0]==b?(n[d-1][1]+=n[d][1],n.splice(d,1)):d++,w=0,k=0,T="",P="";break}n[n.length-1][1]===""&&n.pop();var v=!1;for(d=1;d<n.length-1;)n[d-1][0]==b&&n[d+1][0]==b&&(n[d][1].substring(n[d][1].length-n[d-1][1].length)==n[d-1][1]?(n[d][1]=n[d-1][1]+n[d][1].substring(0,n[d][1].length-n[d-1][1].length),n[d+1][1]=n[d-1][1]+n[d+1][1],n.splice(d-1,1),v=!0):n[d][1].substring(0,n[d+1][1].length)==n[d+1][1]&&(n[d-1][1]+=n[d+1][1],n[d][1]=n[d][1].substring(n[d+1][1].length)+n[d+1][1],n.splice(d+1,1),v=!0)),d++;v&&s(n)}var l=_;l.INSERT=E,l.DELETE=c,l.EQUAL=b,m.exports=l;function u(n,d){if(d===0)return[b,n];for(var k=0,w=0;w<n.length;w++){var T=n[w];if(T[0]===c||T[0]===b){var P=k+T[1].length;if(d===P)return[w+1,n];if(d<P){n=n.slice();var A=d-k,v=[T[0],T[1].slice(0,A)],O=[T[0],T[1].slice(A)];return n.splice(w,1,v,O),[w+1,n]}else k=P}}throw new Error("cursor_pos is out of bounds!")}function r(n,d){var k=u(n,d),w=k[1],T=k[0],P=w[T],A=w[T+1];if(P==null)return n;if(P[0]!==b)return n;if(A!=null&&P[1]+A[1]===A[1]+P[1])return w.splice(T,2,A,P),f(w,T,2);if(A!=null&&A[1].indexOf(P[1])===0){w.splice(T,2,[A[0],P[1]],[0,P[1]]);var v=A[1].slice(P[1].length);return v.length>0&&w.splice(T+2,0,[A[0],v]),f(w,T,3)}else return n}function i(n){for(var d=!1,k=function(A){return A.charCodeAt(0)>=56320&&A.charCodeAt(0)<=57343},w=function(A){return A.charCodeAt(A.length-1)>=55296&&A.charCodeAt(A.length-1)<=56319},T=2;T<n.length;T+=1)n[T-2][0]===b&&w(n[T-2][1])&&n[T-1][0]===c&&k(n[T-1][1])&&n[T][0]===E&&k(n[T][1])&&(d=!0,n[T-1][1]=n[T-2][1].slice(-1)+n[T-1][1],n[T][1]=n[T-2][1].slice(-1)+n[T][1],n[T-2][1]=n[T-2][1].slice(0,-1));if(!d)return n;for(var P=[],T=0;T<n.length;T+=1)n[T][1].length>0&&P.push(n[T]);return P}function f(n,d,k){for(var w=d+k-1;w>=0&&w>=d-1;w--)if(w+1<n.length){var T=n[w],P=n[w+1];T[0]===P[1]&&n.splice(w,2,[T[0],T[1]+P[1]])}return n}},function(m,p){p=m.exports=typeof Object.keys=="function"?Object.keys:c,p.shim=c;function c(E){var b=[];for(var _ in E)b.push(_);return b}},function(m,p){var c=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";p=m.exports=c?E:b,p.supported=E;function E(_){return Object.prototype.toString.call(_)=="[object Arguments]"}p.unsupported=b;function b(_){return _&&typeof _=="object"&&typeof _.length=="number"&&Object.prototype.hasOwnProperty.call(_,"callee")&&!Object.prototype.propertyIsEnumerable.call(_,"callee")||!1}},function(m,p){var c=Object.prototype.hasOwnProperty,E="~";function b(){}Object.create&&(b.prototype=Object.create(null),new b().__proto__||(E=!1));function _(g,h,o){this.fn=g,this.context=h,this.once=o||!1}function y(){this._events=new b,this._eventsCount=0}y.prototype.eventNames=function(){var h=[],o,t;if(this._eventsCount===0)return h;for(t in o=this._events)c.call(o,t)&&h.push(E?t.slice(1):t);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(o)):h},y.prototype.listeners=function(h,o){var t=E?E+h:h,e=this._events[t];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var s=0,l=e.length,u=new Array(l);s<l;s++)u[s]=e[s].fn;return u},y.prototype.emit=function(h,o,t,e,s,l){var u=E?E+h:h;if(!this._events[u])return!1;var r=this._events[u],i=arguments.length,f,n;if(r.fn){switch(r.once&&this.removeListener(h,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,t),!0;case 4:return r.fn.call(r.context,o,t,e),!0;case 5:return r.fn.call(r.context,o,t,e,s),!0;case 6:return r.fn.call(r.context,o,t,e,s,l),!0}for(n=1,f=new Array(i-1);n<i;n++)f[n-1]=arguments[n];r.fn.apply(r.context,f)}else{var d=r.length,k;for(n=0;n<d;n++)switch(r[n].once&&this.removeListener(h,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,t);break;case 4:r[n].fn.call(r[n].context,o,t,e);break;default:if(!f)for(k=1,f=new Array(i-1);k<i;k++)f[k-1]=arguments[k];r[n].fn.apply(r[n].context,f)}}return!0},y.prototype.on=function(h,o,t){var e=new _(o,t||this),s=E?E+h:h;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],e]:this._events[s].push(e):(this._events[s]=e,this._eventsCount++),this},y.prototype.once=function(h,o,t){var e=new _(o,t||this,!0),s=E?E+h:h;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],e]:this._events[s].push(e):(this._events[s]=e,this._eventsCount++),this},y.prototype.removeListener=function(h,o,t,e){var s=E?E+h:h;if(!this._events[s])return this;if(!o)return--this._eventsCount===0?this._events=new b:delete this._events[s],this;var l=this._events[s];if(l.fn)l.fn===o&&(!e||l.once)&&(!t||l.context===t)&&(--this._eventsCount===0?this._events=new b:delete this._events[s]);else{for(var u=0,r=[],i=l.length;u<i;u++)(l[u].fn!==o||e&&!l[u].once||t&&l[u].context!==t)&&r.push(l[u]);r.length?this._events[s]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new b:delete this._events[s]}return this},y.prototype.removeAllListeners=function(h){var o;return h?(o=E?E+h:h,this._events[o]&&(--this._eventsCount===0?this._events=new b:delete this._events[o])):(this._events=new b,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=E,y.EventEmitter=y,typeof m<"u"&&(m.exports=y)},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.matchText=p.matchSpacing=p.matchNewline=p.matchBlot=p.matchAttributor=p.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},b=function(){function W(Y,tt){var et=[],Q=!0,st=!1,ot=void 0;try{for(var lt=Y[Symbol.iterator](),kt;!(Q=(kt=lt.next()).done)&&(et.push(kt.value),!(tt&&et.length===tt));Q=!0);}catch(Ot){st=!0,ot=Ot}finally{try{!Q&&lt.return&&lt.return()}finally{if(st)throw ot}}return et}return function(Y,tt){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return W(Y,tt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function W(Y,tt){for(var et=0;et<tt.length;et++){var Q=tt[et];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(Y,Q.key,Q)}}return function(Y,tt,et){return tt&&W(Y.prototype,tt),et&&W(Y,et),Y}}(),y=c(3),g=O(y),h=c(2),o=O(h),t=c(0),e=O(t),s=c(5),l=O(s),u=c(10),r=O(u),i=c(9),f=O(i),n=c(36),d=c(37),k=c(13),w=O(k),T=c(26),P=c(38),A=c(39),v=c(40);function O(W){return W&&W.__esModule?W:{default:W}}function N(W,Y,tt){return Y in W?Object.defineProperty(W,Y,{value:tt,enumerable:!0,configurable:!0,writable:!0}):W[Y]=tt,W}function L(W,Y){if(!(W instanceof Y))throw new TypeError("Cannot call a class as a function")}function D(W,Y){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:W}function z(W,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);W.prototype=Object.create(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Y):W.__proto__=Y)}var $=(0,r.default)("quill:clipboard"),J="__ql-matcher",H=[[Node.TEXT_NODE,gt],[Node.TEXT_NODE,ft],["br",nt],[Node.ELEMENT_NODE,ft],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,ht],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,mt],["li",at],["b",G.bind(G,"bold")],["i",G.bind(G,"italic")],["style",it]],j=[n.AlignAttribute,P.DirectionAttribute].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),S=[n.AlignStyle,d.BackgroundStyle,T.ColorStyle,P.DirectionStyle,A.FontStyle,v.SizeStyle].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),I=function(W){z(Y,W);function Y(tt,et){L(this,Y);var Q=D(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,tt,et));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=[],H.concat(Q.options.matchers).forEach(function(st){var ot=b(st,2),lt=ot[0],kt=ot[1];!et.matchVisual&&kt===ht||Q.addMatcher(lt,kt)}),Q}return _(Y,[{key:"addMatcher",value:function(et,Q){this.matchers.push([et,Q])}},{key:"convert",value:function(et){if(typeof et=="string")return this.container.innerHTML=et.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[w.default.blotName]){var st=this.container.innerText;return this.container.innerHTML="",new o.default().insert(st,N({},w.default.blotName,Q[w.default.blotName]))}var ot=this.prepareMatching(),lt=b(ot,2),kt=lt[0],Ot=lt[1],pt=F(this.container,kt,Ot);return C(pt,`
  33. `)&&pt.ops[pt.ops.length-1].attributes==null&&(pt=pt.compose(new o.default().retain(pt.length()-1).delete(1))),$.log("convert",this.container.innerHTML,pt),this.container.innerHTML="",pt}},{key:"dangerouslyPasteHTML",value:function(et,Q){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof et=="string")this.quill.setContents(this.convert(et),Q),this.quill.setSelection(0,l.default.sources.SILENT);else{var ot=this.convert(Q);this.quill.updateContents(new o.default().retain(et).concat(ot),st),this.quill.setSelection(et+ot.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(et){var Q=this;if(!(et.defaultPrevented||!this.quill.isEnabled())){var st=this.quill.getSelection(),ot=new o.default().retain(st.index),lt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){ot=ot.concat(Q.convert()).delete(st.length),Q.quill.updateContents(ot,l.default.sources.USER),Q.quill.setSelection(ot.length()-st.length,l.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=lt,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var et=this,Q=[],st=[];return this.matchers.forEach(function(ot){var lt=b(ot,2),kt=lt[0],Ot=lt[1];switch(kt){case Node.TEXT_NODE:st.push(Ot);break;case Node.ELEMENT_NODE:Q.push(Ot);break;default:[].forEach.call(et.container.querySelectorAll(kt),function(pt){pt[J]=pt[J]||[],pt[J].push(Ot)});break}}),[Q,st]}}]),Y}(f.default);I.DEFAULTS={matchers:[],matchVisual:!0};function M(W,Y,tt){return(typeof Y>"u"?"undefined":E(Y))==="object"?Object.keys(Y).reduce(function(et,Q){return M(et,Q,Y[Q])},W):W.reduce(function(et,Q){return Q.attributes&&Q.attributes[Y]?et.push(Q):et.insert(Q.insert,(0,g.default)({},N({},Y,tt),Q.attributes))},new o.default)}function K(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var Y="__ql-computed-style";return W[Y]||(W[Y]=window.getComputedStyle(W))}function C(W,Y){for(var tt="",et=W.ops.length-1;et>=0&&tt.length<Y.length;--et){var Q=W.ops[et];if(typeof Q.insert!="string")break;tt=Q.insert+tt}return tt.slice(-1*Y.length)===Y}function R(W){if(W.childNodes.length===0)return!1;var Y=K(W);return["block","list-item"].indexOf(Y.display)>-1}function F(W,Y,tt){return W.nodeType===W.TEXT_NODE?tt.reduce(function(et,Q){return Q(W,et)},new o.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(et,Q){var st=F(Q,Y,tt);return Q.nodeType===W.ELEMENT_NODE&&(st=Y.reduce(function(ot,lt){return lt(Q,ot)},st),st=(Q[J]||[]).reduce(function(ot,lt){return lt(Q,ot)},st)),et.concat(st)},new o.default):new o.default}function G(W,Y,tt){return M(tt,W,!0)}function V(W,Y){var tt=e.default.Attributor.Attribute.keys(W),et=e.default.Attributor.Class.keys(W),Q=e.default.Attributor.Style.keys(W),st={};return tt.concat(et).concat(Q).forEach(function(ot){var lt=e.default.query(ot,e.default.Scope.ATTRIBUTE);lt!=null&&(st[lt.attrName]=lt.value(W),st[lt.attrName])||(lt=j[ot],lt!=null&&(lt.attrName===ot||lt.keyName===ot)&&(st[lt.attrName]=lt.value(W)||void 0),lt=S[ot],lt!=null&&(lt.attrName===ot||lt.keyName===ot)&&(lt=S[ot],st[lt.attrName]=lt.value(W)||void 0))}),Object.keys(st).length>0&&(Y=M(Y,st)),Y}function X(W,Y){var tt=e.default.query(W);if(tt==null)return Y;if(tt.prototype instanceof e.default.Embed){var et={},Q=tt.value(W);Q!=null&&(et[tt.blotName]=Q,Y=new o.default().insert(et,tt.formats(W)))}else typeof tt.formats=="function"&&(Y=M(Y,tt.blotName,tt.formats(W)));return Y}function nt(W,Y){return C(Y,`
  34. `)||Y.insert(`
  35. `),Y}function it(){return new o.default}function at(W,Y){var tt=e.default.query(W);if(tt==null||tt.blotName!=="list-item"||!C(Y,`
  36. `))return Y;for(var et=-1,Q=W.parentNode;!Q.classList.contains("ql-clipboard");)(e.default.query(Q)||{}).blotName==="list"&&(et+=1),Q=Q.parentNode;return et<=0?Y:Y.compose(new o.default().retain(Y.length()-1).retain(1,{indent:et}))}function ft(W,Y){return C(Y,`
  37. `)||(R(W)||Y.length()>0&&W.nextSibling&&R(W.nextSibling))&&Y.insert(`
  38. `),Y}function ht(W,Y){if(R(W)&&W.nextElementSibling!=null&&!C(Y,`
  39. `)){var tt=W.offsetHeight+parseFloat(K(W).marginTop)+parseFloat(K(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+tt*1.5&&Y.insert(`
  40. `)}return Y}function mt(W,Y){var tt={},et=W.style||{};return et.fontStyle&&K(W).fontStyle==="italic"&&(tt.italic=!0),et.fontWeight&&(K(W).fontWeight.startsWith("bold")||parseInt(K(W).fontWeight)>=700)&&(tt.bold=!0),Object.keys(tt).length>0&&(Y=M(Y,tt)),parseFloat(et.textIndent||0)>0&&(Y=new o.default().insert(" ").concat(Y)),Y}function gt(W,Y){var tt=W.data;if(W.parentNode.tagName==="O:P")return Y.insert(tt.trim());if(tt.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return Y;if(!K(W.parentNode).whiteSpace.startsWith("pre")){var et=function(st,ot){return ot=ot.replace(/[^\u00a0]/g,""),ot.length<1&&st?" ":ot};tt=tt.replace(/\r\n/g," ").replace(/\n/g," "),tt=tt.replace(/\s\s+/g,et.bind(et,!0)),(W.previousSibling==null&&R(W.parentNode)||W.previousSibling!=null&&R(W.previousSibling))&&(tt=tt.replace(/^\s+/,et.bind(et,!1))),(W.nextSibling==null&&R(W.parentNode)||W.nextSibling!=null&&R(W.nextSibling))&&(tt=tt.replace(/\s+$/,et.bind(et,!1)))}return Y.insert(tt)}p.default=I,p.matchAttributor=V,p.matchBlot=X,p.matchNewline=ft,p.matchSpacing=ht,p.matchText=gt},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(l,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,u,r){return u&&s(l.prototype,u),r&&s(l,r),l}}(),b=function s(l,u,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,u);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:s(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=c(6),y=g(_);function g(s){return s&&s.__esModule?s:{default:s}}function h(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:s}function t(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}var e=function(s){t(l,s);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return E(l,[{key:"optimize",value:function(r){b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return b(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(y.default);e.blotName="bold",e.tagName=["STRONG","B"],p.default=e},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.addControls=p.default=void 0;var E=function(){function v(O,N){var L=[],D=!0,z=!1,$=void 0;try{for(var J=O[Symbol.iterator](),H;!(D=(H=J.next()).done)&&(L.push(H.value),!(N&&L.length===N));D=!0);}catch(j){z=!0,$=j}finally{try{!D&&J.return&&J.return()}finally{if(z)throw $}}return L}return function(O,N){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return v(O,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function v(O,N){for(var L=0;L<N.length;L++){var D=N[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(O,D.key,D)}}return function(O,N,L){return N&&v(O.prototype,N),L&&v(O,L),O}}(),_=c(2),y=r(_),g=c(0),h=r(g),o=c(5),t=r(o),e=c(10),s=r(e),l=c(9),u=r(l);function r(v){return v&&v.__esModule?v:{default:v}}function i(v,O,N){return O in v?Object.defineProperty(v,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):v[O]=N,v}function f(v,O){if(!(v instanceof O))throw new TypeError("Cannot call a class as a function")}function n(v,O){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:v}function d(v,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);v.prototype=Object.create(O&&O.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(v,O):v.__proto__=O)}var k=(0,s.default)("quill:toolbar"),w=function(v){d(O,v);function O(N,L){f(this,O);var D=n(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,L));if(Array.isArray(D.options.container)){var z=document.createElement("div");P(z,D.options.container),N.container.parentNode.insertBefore(z,N.container),D.container=z}else typeof D.options.container=="string"?D.container=document.querySelector(D.options.container):D.container=D.options.container;if(!(D.container instanceof HTMLElement)){var $;return $=k.error("Container required for toolbar",D.options),n(D,$)}return D.container.classList.add("ql-toolbar"),D.controls=[],D.handlers={},Object.keys(D.options.handlers).forEach(function(J){D.addHandler(J,D.options.handlers[J])}),[].forEach.call(D.container.querySelectorAll("button, select"),function(J){D.attach(J)}),D.quill.on(t.default.events.EDITOR_CHANGE,function(J,H){J===t.default.events.SELECTION_CHANGE&&D.update(H)}),D.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var J=D.quill.selection.getRange(),H=E(J,1),j=H[0];D.update(j)}),D}return b(O,[{key:"addHandler",value:function(L,D){this.handlers[L]=D}},{key:"attach",value:function(L){var D=this,z=[].find.call(L.classList,function(J){return J.indexOf("ql-")===0});if(z){if(z=z.slice(3),L.tagName==="BUTTON"&&L.setAttribute("type","button"),this.handlers[z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[z]==null){k.warn("ignoring attaching to disabled format",z,L);return}if(h.default.query(z)==null){k.warn("ignoring attaching to nonexistent format",z,L);return}}var $=L.tagName==="SELECT"?"change":"click";L.addEventListener($,function(J){var H=void 0;if(L.tagName==="SELECT"){if(L.selectedIndex<0)return;var j=L.options[L.selectedIndex];j.hasAttribute("selected")?H=!1:H=j.value||!1}else L.classList.contains("ql-active")?H=!1:H=L.value||!L.hasAttribute("value"),J.preventDefault();D.quill.focus();var S=D.quill.selection.getRange(),I=E(S,1),M=I[0];if(D.handlers[z]!=null)D.handlers[z].call(D,H);else if(h.default.query(z).prototype instanceof h.default.Embed){if(H=prompt("Enter "+z),!H)return;D.quill.updateContents(new y.default().retain(M.index).delete(M.length).insert(i({},z,H)),t.default.sources.USER)}else D.quill.format(z,H,t.default.sources.USER);D.update(M)}),this.controls.push([z,L])}}},{key:"update",value:function(L){var D=L==null?{}:this.quill.getFormat(L);this.controls.forEach(function(z){var $=E(z,2),J=$[0],H=$[1];if(H.tagName==="SELECT"){var j=void 0;if(L==null)j=null;else if(D[J]==null)j=H.querySelector("option[selected]");else if(!Array.isArray(D[J])){var S=D[J];typeof S=="string"&&(S=S.replace(/\"/g,'\\"')),j=H.querySelector('option[value="'+S+'"]')}j==null?(H.value="",H.selectedIndex=-1):j.selected=!0}else if(L==null)H.classList.remove("ql-active");else if(H.hasAttribute("value")){var I=D[J]===H.getAttribute("value")||D[J]!=null&&D[J].toString()===H.getAttribute("value")||D[J]==null&&!H.getAttribute("value");H.classList.toggle("ql-active",I)}else H.classList.toggle("ql-active",D[J]!=null)})}}]),O}(u.default);w.DEFAULTS={};function T(v,O,N){var L=document.createElement("button");L.setAttribute("type","button"),L.classList.add("ql-"+O),N!=null&&(L.value=N),v.appendChild(L)}function P(v,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(N){var L=document.createElement("span");L.classList.add("ql-formats"),N.forEach(function(D){if(typeof D=="string")T(L,D);else{var z=Object.keys(D)[0],$=D[z];Array.isArray($)?A(L,z,$):T(L,z,$)}}),v.appendChild(L)})}function A(v,O,N){var L=document.createElement("select");L.classList.add("ql-"+O),N.forEach(function(D){var z=document.createElement("option");D!==!1?z.setAttribute("value",D):z.setAttribute("selected","selected"),L.appendChild(z)}),v.appendChild(L)}w.DEFAULTS={container:null,handlers:{clean:function(){var O=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var L=this.quill.getFormat();Object.keys(L).forEach(function(D){h.default.query(D,h.default.Scope.INLINE)!=null&&O.quill.format(D,!1)})}else this.quill.removeFormat(N,t.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",t.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",O,t.default.sources.USER)},indent:function(O){var N=this.quill.getSelection(),L=this.quill.getFormat(N),D=parseInt(L.indent||0);if(O==="+1"||O==="-1"){var z=O==="+1"?1:-1;L.direction==="rtl"&&(z*=-1),this.quill.format("indent",D+z,t.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,t.default.sources.USER)},list:function(O){var N=this.quill.getSelection(),L=this.quill.getFormat(N);O==="check"?L.list==="checked"||L.list==="unchecked"?this.quill.format("list",!1,t.default.sources.USER):this.quill.format("list","unchecked",t.default.sources.USER):this.quill.format("list",O,t.default.sources.USER)}}},p.default=w,p.addControls=P},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(l,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,u,r){return u&&s(l.prototype,u),r&&s(l,r),l}}(),b=function s(l,u,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,u);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:s(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=c(28),y=g(_);function g(s){return s&&s.__esModule?s:{default:s}}function h(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:s}function t(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}var e=function(s){t(l,s);function l(u,r){h(this,l);var i=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,u));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")}),i}return E(l,[{key:"buildItem",value:function(r){var i=b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i);var f=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";f&&(f.tagName==="line"?f.style.stroke=n:f.style.fill=n)}}]),l}(y.default);p.default=e},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(l,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,u,r){return u&&s(l.prototype,u),r&&s(l,r),l}}(),b=function s(l,u,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,u);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:s(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=c(28),y=g(_);function g(s){return s&&s.__esModule?s:{default:s}}function h(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:s}function t(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}var e=function(s){t(l,s);function l(u,r){h(this,l);var i=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,u));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=r[f.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return E(l,[{key:"selectItem",value:function(r,i){b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),l}(y.default);p.default=e},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function y(g,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(g,t.key,t)}}return function(g,h,o){return h&&y(g.prototype,h),o&&y(g,o),g}}();function b(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(g,h){var o=this;b(this,y),this.quill=g,this.boundsContainer=h||document.body,this.root=g.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return E(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(h){var o=h.left+h.width/2-this.root.offsetWidth/2,t=h.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),s=this.root.getBoundingClientRect(),l=0;if(s.right>e.right&&(l=e.right-s.right,this.root.style.left=o+l+"px"),s.left<e.left&&(l=e.left-s.left,this.root.style.left=o+l+"px"),s.bottom>e.bottom){var u=s.bottom-s.top,r=h.bottom-h.top+u;this.root.style.top=t-r+"px",this.root.classList.add("ql-flip")}return l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),y}();p.default=_},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function A(v,O){var N=[],L=!0,D=!1,z=void 0;try{for(var $=v[Symbol.iterator](),J;!(L=(J=$.next()).done)&&(N.push(J.value),!(O&&N.length===O));L=!0);}catch(H){D=!0,z=H}finally{try{!L&&$.return&&$.return()}finally{if(D)throw z}}return N}return function(v,O){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return A(v,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function A(v,O,N){v===null&&(v=Function.prototype);var L=Object.getOwnPropertyDescriptor(v,O);if(L===void 0){var D=Object.getPrototypeOf(v);return D===null?void 0:A(D,O,N)}else{if("value"in L)return L.value;var z=L.get;return z===void 0?void 0:z.call(N)}},_=function(){function A(v,O){for(var N=0;N<O.length;N++){var L=O[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(v,L.key,L)}}return function(v,O,N){return O&&A(v.prototype,O),N&&A(v,N),v}}(),y=c(3),g=f(y),h=c(8),o=f(h),t=c(43),e=f(t),s=c(27),l=f(s),u=c(15),r=c(41),i=f(r);function f(A){return A&&A.__esModule?A:{default:A}}function n(A,v){if(!(A instanceof v))throw new TypeError("Cannot call a class as a function")}function d(A,v){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:A}function k(A,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);A.prototype=Object.create(v&&v.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(A,v):A.__proto__=v)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],T=function(A){k(v,A);function v(O,N){n(this,v),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=w);var L=d(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,O,N));return L.quill.container.classList.add("ql-snow"),L}return _(v,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),i.default),this.tooltip=new P(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(L,D){N.handlers.link.call(N,!D.format.link)})}}]),v}(e.default);T.DEFAULTS=(0,g.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(v){if(v){var O=this.quill.getSelection();if(O==null||O.length==0)return;var N=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var L=this.quill.theme.tooltip;L.edit("link",N)}else this.quill.format("link",!1)}}}}});var P=function(A){k(v,A);function v(O,N){n(this,v);var L=d(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,O,N));return L.preview=L.root.querySelector("a.ql-preview"),L}return _(v,[{key:"listen",value:function(){var N=this;b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(L){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),L.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(L){if(N.linkRange!=null){var D=N.linkRange;N.restoreFocus(),N.quill.formatText(D,"link",!1,o.default.sources.USER),delete N.linkRange}L.preventDefault(),N.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(L,D,z){if(L!=null){if(L.length===0&&z===o.default.sources.USER){var $=N.quill.scroll.descendant(l.default,L.index),J=E($,2),H=J[0],j=J[1];if(H!=null){N.linkRange=new u.Range(L.index-j,H.length());var S=l.default.formats(H.domNode);N.preview.textContent=S,N.preview.setAttribute("href",S),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),v}(t.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),p.default=T},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(29),b=Q(E),_=c(36),y=c(38),g=c(64),h=c(65),o=Q(h),t=c(66),e=Q(t),s=c(67),l=Q(s),u=c(37),r=c(26),i=c(39),f=c(40),n=c(56),d=Q(n),k=c(68),w=Q(k),T=c(27),P=Q(T),A=c(69),v=Q(A),O=c(70),N=Q(O),L=c(71),D=Q(L),z=c(72),$=Q(z),J=c(73),H=Q(J),j=c(13),S=Q(j),I=c(74),M=Q(I),K=c(75),C=Q(K),R=c(57),F=Q(R),G=c(41),V=Q(G),X=c(28),nt=Q(X),it=c(59),at=Q(it),ft=c(60),ht=Q(ft),mt=c(61),gt=Q(mt),W=c(108),Y=Q(W),tt=c(62),et=Q(tt);function Q(st){return st&&st.__esModule?st:{default:st}}b.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":_.AlignClass,"attributors/class/background":u.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":y.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":_.AlignStyle,"attributors/style/background":u.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":f.SizeStyle},!0),b.default.register({"formats/align":_.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":g.IndentClass,"formats/background":u.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":f.SizeClass,"formats/blockquote":o.default,"formats/code-block":S.default,"formats/header":e.default,"formats/list":l.default,"formats/bold":d.default,"formats/code":j.Code,"formats/italic":w.default,"formats/link":P.default,"formats/script":v.default,"formats/strike":N.default,"formats/underline":D.default,"formats/image":$.default,"formats/video":H.default,"formats/list/item":s.ListItem,"modules/formula":M.default,"modules/syntax":C.default,"modules/toolbar":F.default,"themes/bubble":Y.default,"themes/snow":et.default,"ui/icons":V.default,"ui/picker":nt.default,"ui/icon-picker":ht.default,"ui/color-picker":at.default,"ui/tooltip":gt.default},!0),p.default=b.default},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.IndentClass=void 0;var E=function(){function l(u,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,r,i){return r&&l(u.prototype,r),i&&l(u,i),u}}(),b=function l(u,r,i){u===null&&(u=Function.prototype);var f=Object.getOwnPropertyDescriptor(u,r);if(f===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:l(n,r,i)}else{if("value"in f)return f.value;var d=f.get;return d===void 0?void 0:d.call(i)}},_=c(0),y=g(_);function g(l){return l&&l.__esModule?l:{default:l}}function h(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function o(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:l}function t(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}var e=function(l){t(u,l);function u(){return h(this,u),o(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return E(u,[{key:"add",value:function(i,f){if(f==="+1"||f==="-1"){var n=this.value(i)||0;f=f==="+1"?n+1:n-1}return f===0?(this.remove(i),!0):b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,i,f)||b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,i))||void 0}}]),u}(y.default.Attributor.Class),s=new e("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});p.IndentClass=s},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(4),b=_(E);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(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 h(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 o=function(t){h(e,t);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default);o.blotName="blockquote",o.tagName="blockquote",p.default=o},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function e(s,l){for(var u=0;u<l.length;u++){var r=l[u];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(s,r.key,r)}}return function(s,l,u){return l&&e(s.prototype,l),u&&e(s,u),s}}(),b=c(4),_=y(b);function y(e){return e&&e.__esModule?e:{default:e}}function g(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function h(e,s){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:e}function o(e,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);e.prototype=Object.create(s&&s.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(e,s):e.__proto__=s)}var t=function(e){o(s,e);function s(){return g(this,s),h(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return E(s,null,[{key:"formats",value:function(u){return this.tagName.indexOf(u.tagName)+1}}]),s}(_.default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],p.default=t},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.ListItem=void 0;var E=function(){function n(d,k){for(var w=0;w<k.length;w++){var T=k[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(d,T.key,T)}}return function(d,k,w){return k&&n(d.prototype,k),w&&n(d,w),d}}(),b=function n(d,k,w){d===null&&(d=Function.prototype);var T=Object.getOwnPropertyDescriptor(d,k);if(T===void 0){var P=Object.getPrototypeOf(d);return P===null?void 0:n(P,k,w)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(w)}},_=c(0),y=e(_),g=c(4),h=e(g),o=c(25),t=e(o);function e(n){return n&&n.__esModule?n:{default:n}}function s(n,d,k){return d in n?Object.defineProperty(n,d,{value:k,enumerable:!0,configurable:!0,writable:!0}):n[d]=k,n}function l(n,d){if(!(n instanceof d))throw new TypeError("Cannot call a class as a function")}function u(n,d){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:n}function r(n,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);n.prototype=Object.create(d&&d.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(n,d):n.__proto__=d)}var i=function(n){r(d,n);function d(){return l(this,d),u(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return E(d,[{key:"format",value:function(w,T){w===f.blotName&&!T?this.replaceWith(y.default.create(this.statics.scope)):b(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,w,T)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():b(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(w,T){return this.parent.isolate(this.offset(this.parent),this.length()),w===this.parent.statics.blotName?(this.parent.replaceWith(w,T),this):(this.parent.unwrap(),b(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replaceWith",this).call(this,w,T))}}],[{key:"formats",value:function(w){return w.tagName===this.tagName?void 0:b(d.__proto__||Object.getPrototypeOf(d),"formats",this).call(this,w)}}]),d}(h.default);i.blotName="list-item",i.tagName="LI";var f=function(n){r(d,n),E(d,null,[{key:"create",value:function(w){var T=w==="ordered"?"OL":"UL",P=b(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,T);return(w==="checked"||w==="unchecked")&&P.setAttribute("data-checked",w==="checked"),P}},{key:"formats",value:function(w){if(w.tagName==="OL")return"ordered";if(w.tagName==="UL")return w.hasAttribute("data-checked")?w.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function d(k){l(this,d);var w=u(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,k)),T=function(A){if(A.target.parentNode===k){var v=w.statics.formats(k),O=y.default.find(A.target);v==="checked"?O.format("list","unchecked"):v==="unchecked"&&O.format("list","checked")}};return k.addEventListener("touchstart",T),k.addEventListener("mousedown",T),w}return E(d,[{key:"format",value:function(w,T){this.children.length>0&&this.children.tail.format(w,T)}},{key:"formats",value:function(){return s({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,T){if(w instanceof i)b(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,w,T);else{var P=T==null?this.length():T.offset(this),A=this.split(P);A.parent.insertBefore(w,A)}}},{key:"optimize",value:function(w){b(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,w);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&T.domNode.tagName===this.domNode.tagName&&T.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(T.moveChildren(this),T.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var T=y.default.create(this.statics.defaultChild);w.moveChildren(T),this.appendChild(T)}b(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replace",this).call(this,w)}}]),d}(t.default);f.blotName="list",f.scope=y.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[i],p.ListItem=i,p.default=f},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(56),b=_(E);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(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 h(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 o=function(t){h(e,t);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default);o.blotName="italic",o.tagName=["EM","I"],p.default=o},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(l,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,u,r){return u&&s(l.prototype,u),r&&s(l,r),l}}(),b=function s(l,u,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,u);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:s(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=c(6),y=g(_);function g(s){return s&&s.__esModule?s:{default:s}}function h(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:s}function t(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}var e=function(s){t(l,s);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return E(l,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):b(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),l}(y.default);e.blotName="script",e.tagName=["SUB","SUP"],p.default=e},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(6),b=_(E);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(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 h(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 o=function(t){h(e,t);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default);o.blotName="strike",o.tagName="S",p.default=o},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=c(6),b=_(E);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(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 h(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 o=function(t){h(e,t);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default);o.blotName="underline",o.tagName="U",p.default=o},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),b=function u(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:u(d,i,f)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(f)}},_=c(0),y=h(_),g=c(27);function h(u){return u&&u.__esModule?u:{default:u}}function o(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function t(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function e(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var s=["alt","height","width"],l=function(u){e(r,u);function r(){return o(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(f,n){s.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=b(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return typeof f=="string"&&n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return s.reduce(function(n,d){return f.hasAttribute(d)&&(n[d]=f.getAttribute(d)),n},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,g.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(y.default.Embed);l.blotName="image",l.tagName="IMG",p.default=l},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),b=function u(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:u(d,i,f)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(f)}},_=c(4),y=c(27),g=h(y);function h(u){return u&&u.__esModule?u:{default:u}}function o(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function t(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function e(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var s=["height","width"],l=function(u){e(r,u);function r(){return o(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(f,n){s.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=b(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return s.reduce(function(n,d){return f.hasAttribute(d)&&(n[d]=f.getAttribute(d)),n},{})}},{key:"sanitize",value:function(f){return g.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(_.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",p.default=l},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.FormulaBlot=void 0;var E=function(){function f(n,d){for(var k=0;k<d.length;k++){var w=d[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,d,k){return d&&f(n.prototype,d),k&&f(n,k),n}}(),b=function f(n,d,k){n===null&&(n=Function.prototype);var w=Object.getOwnPropertyDescriptor(n,d);if(w===void 0){var T=Object.getPrototypeOf(n);return T===null?void 0:f(T,d,k)}else{if("value"in w)return w.value;var P=w.get;return P===void 0?void 0:P.call(k)}},_=c(35),y=e(_),g=c(5),h=e(g),o=c(9),t=e(o);function e(f){return f&&f.__esModule?f:{default:f}}function s(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function l(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function u(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var r=function(f){u(n,f);function n(){return s(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return E(n,null,[{key:"create",value:function(k){var w=b(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,w,{throwOnError:!1,errorColor:"#f00"}),w.setAttribute("data-value",k)),w}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),n}(y.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){u(n,f),E(n,null,[{key:"register",value:function(){h.default.register(r,!0)}}]);function n(){s(this,n);var d=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return d}return n}(t.default);p.FormulaBlot=r,p.default=i},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.CodeToken=p.CodeBlock=void 0;var E=function(){function k(w,T){for(var P=0;P<T.length;P++){var A=T[P];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,P){return T&&k(w.prototype,T),P&&k(w,P),w}}(),b=function k(w,T,P){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var v=Object.getPrototypeOf(w);return v===null?void 0:k(v,T,P)}else{if("value"in A)return A.value;var O=A.get;return O===void 0?void 0:O.call(P)}},_=c(0),y=l(_),g=c(5),h=l(g),o=c(9),t=l(o),e=c(13),s=l(e);function l(k){return k&&k.__esModule?k:{default:k}}function u(k,w){if(!(k instanceof w))throw new TypeError("Cannot call a class as a function")}function r(k,w){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:k}function i(k,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);k.prototype=Object.create(w&&w.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(k,w):k.__proto__=w)}var f=function(k){i(w,k);function w(){return u(this,w),r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return E(w,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var A=this.domNode.textContent;this.cachedText!==A&&((A.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(A),this.domNode.normalize(),this.attach()),this.cachedText=A)}}]),w}(s.default);f.className="ql-syntax";var n=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),d=function(k){i(w,k),E(w,null,[{key:"register",value:function(){h.default.register(n,!0),h.default.register(f,!0)}}]);function w(T,P){u(this,w);var A=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T,P));if(typeof A.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var v=null;return A.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(v),v=setTimeout(function(){A.highlight(),v=null},A.options.interval)}),A.highlight(),A}return E(w,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var A=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(v){v.highlight(P.options.highlight)}),this.quill.update(h.default.sources.SILENT),A!=null&&this.quill.setSelection(A,h.default.sources.SILENT)}}}]),w}(t.default);d.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var w=window.hljs.highlightAuto(k);return w.value}}(),interval:1e3},p.CodeBlock=f,p.CodeToken=n,p.default=d},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(m,p){m.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(m,p){m.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(m,p){m.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(m,p){m.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(m,p,c){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BubbleTooltip=void 0;var E=function w(T,P,A){T===null&&(T=Function.prototype);var v=Object.getOwnPropertyDescriptor(T,P);if(v===void 0){var O=Object.getPrototypeOf(T);return O===null?void 0:w(O,P,A)}else{if("value"in v)return v.value;var N=v.get;return N===void 0?void 0:N.call(A)}},b=function(){function w(T,P){for(var A=0;A<P.length;A++){var v=P[A];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(T,v.key,v)}}return function(T,P,A){return P&&w(T.prototype,P),A&&w(T,A),T}}(),_=c(3),y=u(_),g=c(8),h=u(g),o=c(43),t=u(o),e=c(15),s=c(41),l=u(s);function u(w){return w&&w.__esModule?w:{default:w}}function r(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function i(w,T){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:w}function f(w,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],d=function(w){f(T,w);function T(P,A){r(this,T),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=n);var v=i(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,P,A));return v.quill.container.classList.add("ql-bubble"),v}return b(T,[{key:"extendToolbar",value:function(A){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(A.container),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),l.default)}}]),T}(t.default);d.DEFAULTS=(0,y.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){T?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(w){f(T,w);function T(P,A){r(this,T);var v=i(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,P,A));return v.quill.on(h.default.events.EDITOR_CHANGE,function(O,N,L,D){if(O===h.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&D===h.default.sources.USER){v.show(),v.root.style.left="0px",v.root.style.width="",v.root.style.width=v.root.offsetWidth+"px";var z=v.quill.getLines(N.index,N.length);if(z.length===1)v.position(v.quill.getBounds(N));else{var $=z[z.length-1],J=v.quill.getIndex($),H=Math.min($.length()-1,N.index+N.length-J),j=v.quill.getBounds(new e.Range(J,H));v.position(j)}}else document.activeElement!==v.textbox&&v.quill.hasFocus()&&v.hide()}),v}return b(T,[{key:"listen",value:function(){var A=this;E(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){A.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!A.root.classList.contains("ql-hidden")){var v=A.quill.getSelection();v!=null&&A.position(A.quill.getBounds(v))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(A){var v=E(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,A),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",v===0)return v;O.style.marginLeft=-1*v-O.offsetWidth/2+"px"}}]),T}(o.BaseTooltip);k.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(""),p.BubbleTooltip=k,p.default=d},function(m,p,c){m.exports=c(63)}]).default})})(Wn);var fr=Wn.exports;const jn=Zn(fr);var Ut=-1,Dt=1,Rt=0;function we(q,U,m,p){if(q===U)return q?[[Rt,q]]:[];if(m!=null){var c=pr(q,U,m);if(c)return c}var E=Bn(q,U),b=q.substring(0,E);q=q.substring(E),U=U.substring(E),E=Cn(q,U);var _=q.substring(q.length-E);q=q.substring(0,q.length-E),U=U.substring(0,U.length-E);var y=cr(q,U);return b&&y.unshift([Rt,b]),_&&y.push([Rt,_]),Yn(y,p),y}function cr(q,U){var m;if(!q)return[[Dt,U]];if(!U)return[[Ut,q]];var p=q.length>U.length?q:U,c=q.length>U.length?U:q,E=p.indexOf(c);if(E!==-1)return m=[[Dt,p.substring(0,E)],[Rt,c],[Dt,p.substring(E+c.length)]],q.length>U.length&&(m[0][0]=m[2][0]=Ut),m;if(c.length===1)return[[Ut,q],[Dt,U]];var b=dr(q,U);if(b){var _=b[0],y=b[1],g=b[2],h=b[3],o=b[4],t=we(_,g),e=we(y,h);return t.concat([[Rt,o]],e)}return hr(q,U)}function hr(q,U){for(var m=q.length,p=U.length,c=Math.ceil((m+p)/2),E=c,b=2*c,_=new Array(b),y=new Array(b),g=0;g<b;g++)_[g]=-1,y[g]=-1;_[E+1]=0,y[E+1]=0;for(var h=m-p,o=h%2!==0,t=0,e=0,s=0,l=0,u=0;u<c;u++){for(var r=-u+t;r<=u-e;r+=2){var i=E+r,f;r===-u||r!==u&&_[i-1]<_[i+1]?f=_[i+1]:f=_[i-1]+1;for(var n=f-r;f<m&&n<p&&q.charAt(f)===U.charAt(n);)f++,n++;if(_[i]=f,f>m)e+=2;else if(n>p)t+=2;else if(o){var d=E+h-r;if(d>=0&&d<b&&y[d]!==-1){var k=m-y[d];if(f>=k)return Kn(q,U,f,n)}}}for(var w=-u+s;w<=u-l;w+=2){var d=E+w,k;w===-u||w!==u&&y[d-1]<y[d+1]?k=y[d+1]:k=y[d-1]+1;for(var T=k-w;k<m&&T<p&&q.charAt(m-k-1)===U.charAt(p-T-1);)k++,T++;if(y[d]=k,k>m)l+=2;else if(T>p)s+=2;else if(!o){var i=E+h-w;if(i>=0&&i<b&&_[i]!==-1){var f=_[i],n=E+f-i;if(k=m-k,f>=k)return Kn(q,U,f,n)}}}}return[[Ut,q],[Dt,U]]}function Kn(q,U,m,p){var c=q.substring(0,m),E=U.substring(0,p),b=q.substring(m),_=U.substring(p),y=we(c,E),g=we(b,_);return y.concat(g)}function Bn(q,U){if(!q||!U||q.charAt(0)!==U.charAt(0))return 0;for(var m=0,p=Math.min(q.length,U.length),c=p,E=0;m<c;)q.substring(E,c)==U.substring(E,c)?(m=c,E=m):p=c,c=Math.floor((p-m)/2+m);return Xn(q.charCodeAt(c-1))&&c--,c}function Cn(q,U){if(!q||!U||q.slice(-1)!==U.slice(-1))return 0;for(var m=0,p=Math.min(q.length,U.length),c=p,E=0;m<c;)q.substring(q.length-c,q.length-E)==U.substring(U.length-c,U.length-E)?(m=c,E=m):p=c,c=Math.floor((p-m)/2+m);return Qn(q.charCodeAt(q.length-c))&&c--,c}function dr(q,U){var m=q.length>U.length?q:U,p=q.length>U.length?U:q;if(m.length<4||p.length*2<m.length)return null;function c(e,s,l){for(var u=e.substring(l,l+Math.floor(e.length/4)),r=-1,i="",f,n,d,k;(r=s.indexOf(u,r+1))!==-1;){var w=Bn(e.substring(l),s.substring(r)),T=Cn(e.substring(0,l),s.substring(0,r));i.length<T+w&&(i=s.substring(r-T,r)+s.substring(r,r+w),f=e.substring(0,l-T),n=e.substring(l+w),d=s.substring(0,r-T),k=s.substring(r+w))}return i.length*2>=e.length?[f,n,d,k,i]:null}var E=c(m,p,Math.ceil(m.length/4)),b=c(m,p,Math.ceil(m.length/2)),_;if(!E&&!b)return null;b?E?_=E[4].length>b[4].length?E:b:_=b:_=E;var y,g,h,o;q.length>U.length?(y=_[0],g=_[1],h=_[2],o=_[3]):(h=_[0],o=_[1],y=_[2],g=_[3]);var t=_[4];return[y,g,h,o,t]}function Yn(q,U){q.push([Rt,""]);for(var m=0,p=0,c=0,E="",b="",_;m<q.length;){if(m<q.length-1&&!q[m][1]){q.splice(m,1);continue}switch(q[m][0]){case Dt:c++,b+=q[m][1],m++;break;case Ut:p++,E+=q[m][1],m++;break;case Rt:var y=m-c-p-1;if(U){if(y>=0&&tr(q[y][1])){var g=q[y][1].slice(-1);if(q[y][1]=q[y][1].slice(0,-1),E=g+E,b=g+b,!q[y][1]){q.splice(y,1),m--;var h=y-1;q[h]&&q[h][0]===Dt&&(c++,b=q[h][1]+b,h--),q[h]&&q[h][0]===Ut&&(p++,E=q[h][1]+E,h--),y=h}}if(Jn(q[m][1])){var g=q[m][1].charAt(0);q[m][1]=q[m][1].slice(1),E+=g,b+=g}}if(m<q.length-1&&!q[m][1]){q.splice(m,1);break}if(E.length>0||b.length>0){E.length>0&&b.length>0&&(_=Bn(b,E),_!==0&&(y>=0?q[y][1]+=b.substring(0,_):(q.splice(0,0,[Rt,b.substring(0,_)]),m++),b=b.substring(_),E=E.substring(_)),_=Cn(b,E),_!==0&&(q[m][1]=b.substring(b.length-_)+q[m][1],b=b.substring(0,b.length-_),E=E.substring(0,E.length-_)));var o=c+p;E.length===0&&b.length===0?(q.splice(m-o,o),m=m-o):E.length===0?(q.splice(m-o,o,[Dt,b]),m=m-o+1):b.length===0?(q.splice(m-o,o,[Ut,E]),m=m-o+1):(q.splice(m-o,o,[Ut,E],[Dt,b]),m=m-o+2)}m!==0&&q[m-1][0]===Rt?(q[m-1][1]+=q[m][1],q.splice(m,1)):m++,c=0,p=0,E="",b="";break}}q[q.length-1][1]===""&&q.pop();var t=!1;for(m=1;m<q.length-1;)q[m-1][0]===Rt&&q[m+1][0]===Rt&&(q[m][1].substring(q[m][1].length-q[m-1][1].length)===q[m-1][1]?(q[m][1]=q[m-1][1]+q[m][1].substring(0,q[m][1].length-q[m-1][1].length),q[m+1][1]=q[m-1][1]+q[m+1][1],q.splice(m-1,1),t=!0):q[m][1].substring(0,q[m+1][1].length)==q[m+1][1]&&(q[m-1][1]+=q[m+1][1],q[m][1]=q[m][1].substring(q[m+1][1].length)+q[m+1][1],q.splice(m+1,1),t=!0)),m++;t&&Yn(q,U)}function Xn(q){return q>=55296&&q<=56319}function Qn(q){return q>=56320&&q<=57343}function Jn(q){return Qn(q.charCodeAt(0))}function tr(q){return Xn(q.charCodeAt(q.length-1))}function vr(q){for(var U=[],m=0;m<q.length;m++)q[m][1].length>0&&U.push(q[m]);return U}function In(q,U,m,p){return tr(q)||Jn(p)?null:vr([[Rt,q],[Ut,U],[Dt,m],[Rt,p]])}function pr(q,U,m){var p=typeof m=="number"?{index:m,length:0}:m.oldRange,c=typeof m=="number"?null:m.newRange,E=q.length,b=U.length;if(p.length===0&&(c===null||c.length===0)){var _=p.index,y=q.slice(0,_),g=q.slice(_),h=c?c.index:null;t:{var o=_+b-E;if(h!==null&&h!==o||o<0||o>b)break t;var t=U.slice(0,o),e=U.slice(o);if(e!==g)break t;var s=Math.min(_,o),l=y.slice(0,s),u=t.slice(0,s);if(l!==u)break t;var r=y.slice(s),i=t.slice(s);return In(l,r,i,g)}t:{if(h!==null&&h!==_)break t;var f=_,t=U.slice(0,f),e=U.slice(f);if(t!==y)break t;var n=Math.min(E-f,b-f),d=g.slice(g.length-n),k=e.slice(e.length-n);if(d!==k)break t;var r=g.slice(0,g.length-n),i=e.slice(0,e.length-n);return In(y,r,i,d)}}if(p.length>0&&c&&c.length===0)t:{var l=q.slice(0,p.index),d=q.slice(p.index+p.length),s=l.length,n=d.length;if(b<s+n)break t;var u=U.slice(0,s),k=U.slice(b-n);if(l!==u||d!==k)break t;var r=q.slice(s,E-n),i=U.slice(s,b-n);return In(l,r,i,d)}return null}function Ge(q,U,m){return we(q,U,m,!0)}Ge.INSERT=Dt;Ge.DELETE=Ut;Ge.EQUAL=Rt;var yr=Ge,Ke={exports:{}};Ke.exports;(function(q,U){var m=200,p="__lodash_hash_undefined__",c=9007199254740991,E="[object Arguments]",b="[object Array]",_="[object Boolean]",y="[object Date]",g="[object Error]",h="[object Function]",o="[object GeneratorFunction]",t="[object Map]",e="[object Number]",s="[object Object]",l="[object Promise]",u="[object RegExp]",r="[object Set]",i="[object String]",f="[object Symbol]",n="[object WeakMap]",d="[object ArrayBuffer]",k="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",P="[object Int8Array]",A="[object Int16Array]",v="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",L="[object Uint16Array]",D="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,$=/\w*$/,J=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,j={};j[E]=j[b]=j[d]=j[k]=j[_]=j[y]=j[w]=j[T]=j[P]=j[A]=j[v]=j[t]=j[e]=j[s]=j[u]=j[r]=j[i]=j[f]=j[O]=j[N]=j[L]=j[D]=!0,j[g]=j[h]=j[n]=!1;var S=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,I=typeof self=="object"&&self&&self.Object===Object&&self,M=S||I||Function("return this")(),K=U&&!U.nodeType&&U,C=K&&!0&&q&&!q.nodeType&&q,R=C&&C.exports===K;function F(a,x){return a.set(x[0],x[1]),a}function G(a,x){return a.add(x),a}function V(a,x){for(var B=-1,Z=a?a.length:0;++B<Z&&x(a[B],B,a)!==!1;);return a}function X(a,x){for(var B=-1,Z=x.length,ut=a.length;++B<Z;)a[ut+B]=x[B];return a}function nt(a,x,B,Z){var ut=-1,rt=a?a.length:0;for(Z&&rt&&(B=a[++ut]);++ut<rt;)B=x(B,a[ut],ut,a);return B}function it(a,x){for(var B=-1,Z=Array(a);++B<a;)Z[B]=x(B);return Z}function at(a,x){return a==null?void 0:a[x]}function ft(a){var x=!1;if(a!=null&&typeof a.toString!="function")try{x=!!(a+"")}catch{}return x}function ht(a){var x=-1,B=Array(a.size);return a.forEach(function(Z,ut){B[++x]=[ut,Z]}),B}function mt(a,x){return function(B){return a(x(B))}}function gt(a){var x=-1,B=Array(a.size);return a.forEach(function(Z){B[++x]=Z}),B}var W=Array.prototype,Y=Function.prototype,tt=Object.prototype,et=M["__core-js_shared__"],Q=function(){var a=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),st=Y.toString,ot=tt.hasOwnProperty,lt=tt.toString,kt=RegExp("^"+st.call(ot).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=R?M.Buffer:void 0,pt=M.Symbol,Wt=M.Uint8Array,dt=mt(Object.getPrototypeOf,Object),jt=Object.create,ke=tt.propertyIsEnumerable,Ze=W.splice,fe=Object.getOwnPropertySymbols,ne=Ot?Ot.isBuffer:void 0,Ne=mt(Object.keys,Object),re=Mt(M,"DataView"),Yt=Mt(M,"Map"),It=Mt(M,"Promise"),ie=Mt(M,"Set"),ce=Mt(M,"WeakMap"),Xt=Mt(Object,"create"),he=Pt(re),Qt=Pt(Yt),de=Pt(It),ve=Pt(ie),pe=Pt(ce),Gt=pt?pt.prototype:void 0,Se=Gt?Gt.valueOf:void 0;function Ht(a){var x=-1,B=a?a.length:0;for(this.clear();++x<B;){var Z=a[x];this.set(Z[0],Z[1])}}function We(){this.__data__=Xt?Xt(null):{}}function Ye(a){return this.has(a)&&delete this.__data__[a]}function Xe(a){var x=this.__data__;if(Xt){var B=x[a];return B===p?void 0:B}return ot.call(x,a)?x[a]:void 0}function xe(a){var x=this.__data__;return Xt?x[a]!==void 0:ot.call(x,a)}function ye(a,x){var B=this.__data__;return B[a]=Xt&&x===void 0?p:x,this}Ht.prototype.clear=We,Ht.prototype.delete=Ye,Ht.prototype.get=Xe,Ht.prototype.has=xe,Ht.prototype.set=ye;function Et(a){var x=-1,B=a?a.length:0;for(this.clear();++x<B;){var Z=a[x];this.set(Z[0],Z[1])}}function Qe(){this.__data__=[]}function Je(a){var x=this.__data__,B=ae(x,a);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():Ze.call(x,B,1),!0}function tn(a){var x=this.__data__,B=ae(x,a);return B<0?void 0:x[B][1]}function en(a){return ae(this.__data__,a)>-1}function nn(a,x){var B=this.__data__,Z=ae(B,a);return Z<0?B.push([a,x]):B[Z][1]=x,this}Et.prototype.clear=Qe,Et.prototype.delete=Je,Et.prototype.get=tn,Et.prototype.has=en,Et.prototype.set=nn;function Nt(a){var x=-1,B=a?a.length:0;for(this.clear();++x<B;){var Z=a[x];this.set(Z[0],Z[1])}}function rn(){this.__data__={hash:new Ht,map:new(Yt||Et),string:new Ht}}function on(a){return te(this,a).delete(a)}function an(a){return te(this,a).get(a)}function ln(a){return te(this,a).has(a)}function un(a,x){return te(this,a).set(a,x),this}Nt.prototype.clear=rn,Nt.prototype.delete=on,Nt.prototype.get=an,Nt.prototype.has=ln,Nt.prototype.set=un;function Lt(a){this.__data__=new Et(a)}function sn(){this.__data__=new Et}function fn(a){return this.__data__.delete(a)}function cn(a){return this.__data__.get(a)}function hn(a){return this.__data__.has(a)}function dn(a,x){var B=this.__data__;if(B instanceof Et){var Z=B.__data__;if(!Yt||Z.length<m-1)return Z.push([a,x]),this;B=this.__data__=new Nt(Z)}return B.set(a,x),this}Lt.prototype.clear=sn,Lt.prototype.delete=fn,Lt.prototype.get=cn,Lt.prototype.has=hn,Lt.prototype.set=dn;function oe(a,x){var B=_e(a)||ue(a)?it(a.length,String):[],Z=B.length,ut=!!Z;for(var rt in a)(x||ot.call(a,rt))&&!(ut&&(rt=="length"||Nn(rt,Z)))&&B.push(rt);return B}function Pe(a,x,B){var Z=a[x];(!(ot.call(a,x)&&Ie(Z,B))||B===void 0&&!(x in a))&&(a[x]=B)}function ae(a,x){for(var B=a.length;B--;)if(Ie(a[B][0],x))return B;return-1}function Bt(a,x){return a&&be(x,Ee(x),a)}function ge(a,x,B,Z,ut,rt,ct){var vt;if(Z&&(vt=rt?Z(a,ut,rt,ct):Z(a)),vt!==void 0)return vt;if(!Ft(a))return a;var bt=_e(a);if(bt){if(vt=Tn(a),!x)return En(a,vt)}else{var yt=Kt(a),St=yt==h||yt==o;if(Me(a))return le(a,x);if(yt==s||yt==E||St&&!rt){if(ft(a))return rt?a:{};if(vt=Ct(St?{}:a),!x)return An(a,Bt(vt,a))}else{if(!j[yt])return rt?a:{};vt=kn(a,yt,ge,x)}}ct||(ct=new Lt);var qt=ct.get(a);if(qt)return qt;if(ct.set(a,vt),!bt)var _t=B?wn(a):Ee(a);return V(_t||a,function(xt,At){_t&&(At=xt,xt=a[At]),Pe(vt,At,ge(xt,x,B,Z,At,a,ct))}),vt}function vn(a){return Ft(a)?jt(a):{}}function pn(a,x,B){var Z=x(a);return _e(a)?Z:X(Z,B(a))}function yn(a){return lt.call(a)}function gn(a){if(!Ft(a)||xn(a))return!1;var x=Oe(a)||ft(a)?kt:J;return x.test(Pt(a))}function mn(a){if(!Re(a))return Ne(a);var x=[];for(var B in Object(a))ot.call(a,B)&&B!="constructor"&&x.push(B);return x}function le(a,x){if(x)return a.slice();var B=new a.constructor(a.length);return a.copy(B),B}function me(a){var x=new a.constructor(a.byteLength);return new Wt(x).set(new Wt(a)),x}function Jt(a,x){var B=x?me(a.buffer):a.buffer;return new a.constructor(B,a.byteOffset,a.byteLength)}function Le(a,x,B){var Z=x?B(ht(a),!0):ht(a);return nt(Z,F,new a.constructor)}function qe(a){var x=new a.constructor(a.source,$.exec(a));return x.lastIndex=a.lastIndex,x}function bn(a,x,B){var Z=x?B(gt(a),!0):gt(a);return nt(Z,G,new a.constructor)}function _n(a){return Se?Object(Se.call(a)):{}}function On(a,x){var B=x?me(a.buffer):a.buffer;return new a.constructor(B,a.byteOffset,a.length)}function En(a,x){var B=-1,Z=a.length;for(x||(x=Array(Z));++B<Z;)x[B]=a[B];return x}function be(a,x,B,Z){B||(B={});for(var ut=-1,rt=x.length;++ut<rt;){var ct=x[ut],vt=Z?Z(B[ct],a[ct],ct,B,a):void 0;Pe(B,ct,vt===void 0?a[ct]:vt)}return B}function An(a,x){return be(a,zt(a),x)}function wn(a){return pn(a,Ee,zt)}function te(a,x){var B=a.__data__;return Sn(x)?B[typeof x=="string"?"string":"hash"]:B.map}function Mt(a,x){var B=at(a,x);return gn(B)?B:void 0}var zt=fe?mt(fe,Object):Ln,Kt=yn;(re&&Kt(new re(new ArrayBuffer(1)))!=k||Yt&&Kt(new Yt)!=t||It&&Kt(It.resolve())!=l||ie&&Kt(new ie)!=r||ce&&Kt(new ce)!=n)&&(Kt=function(a){var x=lt.call(a),B=x==s?a.constructor:void 0,Z=B?Pt(B):void 0;if(Z)switch(Z){case he:return k;case Qt:return t;case de:return l;case ve:return r;case pe:return n}return x});function Tn(a){var x=a.length,B=a.constructor(x);return x&&typeof a[0]=="string"&&ot.call(a,"index")&&(B.index=a.index,B.input=a.input),B}function Ct(a){return typeof a.constructor=="function"&&!Re(a)?vn(dt(a)):{}}function kn(a,x,B,Z){var ut=a.constructor;switch(x){case d:return me(a);case _:case y:return new ut(+a);case k:return Jt(a,Z);case w:case T:case P:case A:case v:case O:case N:case L:case D:return On(a,Z);case t:return Le(a,Z,B);case e:case i:return new ut(a);case u:return qe(a);case r:return bn(a,Z,B);case f:return _n(a)}}function Nn(a,x){return x=x??c,!!x&&(typeof a=="number"||H.test(a))&&a>-1&&a%1==0&&a<x}function Sn(a){var x=typeof a;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?a!=="__proto__":a===null}function xn(a){return!!Q&&Q in a}function Re(a){var x=a&&a.constructor,B=typeof x=="function"&&x.prototype||tt;return a===B}function Pt(a){if(a!=null){try{return st.call(a)}catch{}try{return a+""}catch{}}return""}function je(a){return ge(a,!0,!0)}function Ie(a,x){return a===x||a!==a&&x!==x}function ue(a){return Pn(a)&&ot.call(a,"callee")&&(!ke.call(a,"callee")||lt.call(a)==E)}var _e=Array.isArray;function se(a){return a!=null&&De(a.length)&&!Oe(a)}function Pn(a){return Be(a)&&se(a)}var Me=ne||qn;function Oe(a){var x=Ft(a)?lt.call(a):"";return x==h||x==o}function De(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=c}function Ft(a){var x=typeof a;return!!a&&(x=="object"||x=="function")}function Be(a){return!!a&&typeof a=="object"}function Ee(a){return se(a)?oe(a):mn(a)}function Ln(){return[]}function qn(){return!1}q.exports=je})(Ke,Ke.exports);var er=Ke.exports,$e={exports:{}};$e.exports;(function(q,U){var m=200,p="__lodash_hash_undefined__",c=1,E=2,b=9007199254740991,_="[object Arguments]",y="[object Array]",g="[object AsyncFunction]",h="[object Boolean]",o="[object Date]",t="[object Error]",e="[object Function]",s="[object GeneratorFunction]",l="[object Map]",u="[object Number]",r="[object Null]",i="[object Object]",f="[object Promise]",n="[object Proxy]",d="[object RegExp]",k="[object Set]",w="[object String]",T="[object Symbol]",P="[object Undefined]",A="[object WeakMap]",v="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",L="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",$="[object Int32Array]",J="[object Uint8Array]",H="[object Uint8ClampedArray]",j="[object Uint16Array]",S="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,C={};C[N]=C[L]=C[D]=C[z]=C[$]=C[J]=C[H]=C[j]=C[S]=!0,C[_]=C[y]=C[v]=C[h]=C[O]=C[o]=C[t]=C[e]=C[l]=C[u]=C[i]=C[d]=C[k]=C[w]=C[A]=!1;var R=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,F=typeof self=="object"&&self&&self.Object===Object&&self,G=R||F||Function("return this")(),V=U&&!U.nodeType&&U,X=V&&!0&&q&&!q.nodeType&&q,nt=X&&X.exports===V,it=nt&&R.process,at=function(){try{return it&&it.binding&&it.binding("util")}catch{}}(),ft=at&&at.isTypedArray;function ht(a,x){for(var B=-1,Z=a==null?0:a.length,ut=0,rt=[];++B<Z;){var ct=a[B];x(ct,B,a)&&(rt[ut++]=ct)}return rt}function mt(a,x){for(var B=-1,Z=x.length,ut=a.length;++B<Z;)a[ut+B]=x[B];return a}function gt(a,x){for(var B=-1,Z=a==null?0:a.length;++B<Z;)if(x(a[B],B,a))return!0;return!1}function W(a,x){for(var B=-1,Z=Array(a);++B<a;)Z[B]=x(B);return Z}function Y(a){return function(x){return a(x)}}function tt(a,x){return a.has(x)}function et(a,x){return a==null?void 0:a[x]}function Q(a){var x=-1,B=Array(a.size);return a.forEach(function(Z,ut){B[++x]=[ut,Z]}),B}function st(a,x){return function(B){return a(x(B))}}function ot(a){var x=-1,B=Array(a.size);return a.forEach(function(Z){B[++x]=Z}),B}var lt=Array.prototype,kt=Function.prototype,Ot=Object.prototype,pt=G["__core-js_shared__"],Wt=kt.toString,dt=Ot.hasOwnProperty,jt=function(){var a=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),ke=Ot.toString,Ze=RegExp("^"+Wt.call(dt).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fe=nt?G.Buffer:void 0,ne=G.Symbol,Ne=G.Uint8Array,re=Ot.propertyIsEnumerable,Yt=lt.splice,It=ne?ne.toStringTag:void 0,ie=Object.getOwnPropertySymbols,ce=fe?fe.isBuffer:void 0,Xt=st(Object.keys,Object),he=zt(G,"DataView"),Qt=zt(G,"Map"),de=zt(G,"Promise"),ve=zt(G,"Set"),pe=zt(G,"WeakMap"),Gt=zt(Object,"create"),Se=Pt(he),Ht=Pt(Qt),We=Pt(de),Ye=Pt(ve),Xe=Pt(pe),xe=ne?ne.prototype:void 0,ye=xe?xe.valueOf:void 0;function Et(a){var x=-1,B=a==null?0:a.length;for(this.clear();++x<B;){var Z=a[x];this.set(Z[0],Z[1])}}function Qe(){this.__data__=Gt?Gt(null):{},this.size=0}function Je(a){var x=this.has(a)&&delete this.__data__[a];return this.size-=x?1:0,x}function tn(a){var x=this.__data__;if(Gt){var B=x[a];return B===p?void 0:B}return dt.call(x,a)?x[a]:void 0}function en(a){var x=this.__data__;return Gt?x[a]!==void 0:dt.call(x,a)}function nn(a,x){var B=this.__data__;return this.size+=this.has(a)?0:1,B[a]=Gt&&x===void 0?p:x,this}Et.prototype.clear=Qe,Et.prototype.delete=Je,Et.prototype.get=tn,Et.prototype.has=en,Et.prototype.set=nn;function Nt(a){var x=-1,B=a==null?0:a.length;for(this.clear();++x<B;){var Z=a[x];this.set(Z[0],Z[1])}}function rn(){this.__data__=[],this.size=0}function on(a){var x=this.__data__,B=le(x,a);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():Yt.call(x,B,1),--this.size,!0}function an(a){var x=this.__data__,B=le(x,a);return B<0?void 0:x[B][1]}function ln(a){return le(this.__data__,a)>-1}function un(a,x){var B=this.__data__,Z=le(B,a);return Z<0?(++this.size,B.push([a,x])):B[Z][1]=x,this}Nt.prototype.clear=rn,Nt.prototype.delete=on,Nt.prototype.get=an,Nt.prototype.has=ln,Nt.prototype.set=un;function Lt(a){var x=-1,B=a==null?0:a.length;for(this.clear();++x<B;){var Z=a[x];this.set(Z[0],Z[1])}}function sn(){this.size=0,this.__data__={hash:new Et,map:new(Qt||Nt),string:new Et}}function fn(a){var x=Mt(this,a).delete(a);return this.size-=x?1:0,x}function cn(a){return Mt(this,a).get(a)}function hn(a){return Mt(this,a).has(a)}function dn(a,x){var B=Mt(this,a),Z=B.size;return B.set(a,x),this.size+=B.size==Z?0:1,this}Lt.prototype.clear=sn,Lt.prototype.delete=fn,Lt.prototype.get=cn,Lt.prototype.has=hn,Lt.prototype.set=dn;function oe(a){var x=-1,B=a==null?0:a.length;for(this.__data__=new Lt;++x<B;)this.add(a[x])}function Pe(a){return this.__data__.set(a,p),this}function ae(a){return this.__data__.has(a)}oe.prototype.add=oe.prototype.push=Pe,oe.prototype.has=ae;function Bt(a){var x=this.__data__=new Nt(a);this.size=x.size}function ge(){this.__data__=new Nt,this.size=0}function vn(a){var x=this.__data__,B=x.delete(a);return this.size=x.size,B}function pn(a){return this.__data__.get(a)}function yn(a){return this.__data__.has(a)}function gn(a,x){var B=this.__data__;if(B instanceof Nt){var Z=B.__data__;if(!Qt||Z.length<m-1)return Z.push([a,x]),this.size=++B.size,this;B=this.__data__=new Lt(Z)}return B.set(a,x),this.size=B.size,this}Bt.prototype.clear=ge,Bt.prototype.delete=vn,Bt.prototype.get=pn,Bt.prototype.has=yn,Bt.prototype.set=gn;function mn(a,x){var B=ue(a),Z=!B&&Ie(a),ut=!B&&!Z&&se(a),rt=!B&&!Z&&!ut&&Be(a),ct=B||Z||ut||rt,vt=ct?W(a.length,String):[],bt=vt.length;for(var yt in a)(x||dt.call(a,yt))&&!(ct&&(yt=="length"||ut&&(yt=="offset"||yt=="parent")||rt&&(yt=="buffer"||yt=="byteLength"||yt=="byteOffset")||kn(yt,bt)))&&vt.push(yt);return vt}function le(a,x){for(var B=a.length;B--;)if(je(a[B][0],x))return B;return-1}function me(a,x,B){var Z=x(a);return ue(a)?Z:mt(Z,B(a))}function Jt(a){return a==null?a===void 0?P:r:It&&It in Object(a)?Kt(a):Re(a)}function Le(a){return Ft(a)&&Jt(a)==_}function qe(a,x,B,Z,ut){return a===x?!0:a==null||x==null||!Ft(a)&&!Ft(x)?a!==a&&x!==x:bn(a,x,B,Z,qe,ut)}function bn(a,x,B,Z,ut,rt){var ct=ue(a),vt=ue(x),bt=ct?y:Ct(a),yt=vt?y:Ct(x);bt=bt==_?i:bt,yt=yt==_?i:yt;var St=bt==i,qt=yt==i,_t=bt==yt;if(_t&&se(a)){if(!se(x))return!1;ct=!0,St=!1}if(_t&&!St)return rt||(rt=new Bt),ct||Be(a)?be(a,x,B,Z,ut,rt):An(a,x,bt,B,Z,ut,rt);if(!(B&c)){var xt=St&&dt.call(a,"__wrapped__"),At=qt&&dt.call(x,"__wrapped__");if(xt||At){var Vt=xt?a.value():a,$t=At?x.value():x;return rt||(rt=new Bt),ut(Vt,$t,B,Z,rt)}}return _t?(rt||(rt=new Bt),wn(a,x,B,Z,ut,rt)):!1}function _n(a){if(!De(a)||Sn(a))return!1;var x=Me(a)?Ze:M;return x.test(Pt(a))}function On(a){return Ft(a)&&Oe(a.length)&&!!C[Jt(a)]}function En(a){if(!xn(a))return Xt(a);var x=[];for(var B in Object(a))dt.call(a,B)&&B!="constructor"&&x.push(B);return x}function be(a,x,B,Z,ut,rt){var ct=B&c,vt=a.length,bt=x.length;if(vt!=bt&&!(ct&&bt>vt))return!1;var yt=rt.get(a);if(yt&&rt.get(x))return yt==x;var St=-1,qt=!0,_t=B&E?new oe:void 0;for(rt.set(a,x),rt.set(x,a);++St<vt;){var xt=a[St],At=x[St];if(Z)var Vt=ct?Z(At,xt,St,x,a,rt):Z(xt,At,St,a,x,rt);if(Vt!==void 0){if(Vt)continue;qt=!1;break}if(_t){if(!gt(x,function($t,ee){if(!tt(_t,ee)&&(xt===$t||ut(xt,$t,B,Z,rt)))return _t.push(ee)})){qt=!1;break}}else if(!(xt===At||ut(xt,At,B,Z,rt))){qt=!1;break}}return rt.delete(a),rt.delete(x),qt}function An(a,x,B,Z,ut,rt,ct){switch(B){case O:if(a.byteLength!=x.byteLength||a.byteOffset!=x.byteOffset)return!1;a=a.buffer,x=x.buffer;case v:return!(a.byteLength!=x.byteLength||!rt(new Ne(a),new Ne(x)));case h:case o:case u:return je(+a,+x);case t:return a.name==x.name&&a.message==x.message;case d:case w:return a==x+"";case l:var vt=Q;case k:var bt=Z&c;if(vt||(vt=ot),a.size!=x.size&&!bt)return!1;var yt=ct.get(a);if(yt)return yt==x;Z|=E,ct.set(a,x);var St=be(vt(a),vt(x),Z,ut,rt,ct);return ct.delete(a),St;case T:if(ye)return ye.call(a)==ye.call(x)}return!1}function wn(a,x,B,Z,ut,rt){var ct=B&c,vt=te(a),bt=vt.length,yt=te(x),St=yt.length;if(bt!=St&&!ct)return!1;for(var qt=bt;qt--;){var _t=vt[qt];if(!(ct?_t in x:dt.call(x,_t)))return!1}var xt=rt.get(a);if(xt&&rt.get(x))return xt==x;var At=!0;rt.set(a,x),rt.set(x,a);for(var Vt=ct;++qt<bt;){_t=vt[qt];var $t=a[_t],ee=x[_t];if(Z)var Un=ct?Z(ee,$t,_t,x,a,rt):Z($t,ee,_t,a,x,rt);if(!(Un===void 0?$t===ee||ut($t,ee,B,Z,rt):Un)){At=!1;break}Vt||(Vt=_t=="constructor")}if(At&&!Vt){var Ce=a.constructor,Fe=x.constructor;Ce!=Fe&&"constructor"in a&&"constructor"in x&&!(typeof Ce=="function"&&Ce instanceof Ce&&typeof Fe=="function"&&Fe instanceof Fe)&&(At=!1)}return rt.delete(a),rt.delete(x),At}function te(a){return me(a,Ee,Tn)}function Mt(a,x){var B=a.__data__;return Nn(x)?B[typeof x=="string"?"string":"hash"]:B.map}function zt(a,x){var B=et(a,x);return _n(B)?B:void 0}function Kt(a){var x=dt.call(a,It),B=a[It];try{a[It]=void 0;var Z=!0}catch{}var ut=ke.call(a);return Z&&(x?a[It]=B:delete a[It]),ut}var Tn=ie?function(a){return a==null?[]:(a=Object(a),ht(ie(a),function(x){return re.call(a,x)}))}:Ln,Ct=Jt;(he&&Ct(new he(new ArrayBuffer(1)))!=O||Qt&&Ct(new Qt)!=l||de&&Ct(de.resolve())!=f||ve&&Ct(new ve)!=k||pe&&Ct(new pe)!=A)&&(Ct=function(a){var x=Jt(a),B=x==i?a.constructor:void 0,Z=B?Pt(B):"";if(Z)switch(Z){case Se:return O;case Ht:return l;case We:return f;case Ye:return k;case Xe:return A}return x});function kn(a,x){return x=x??b,!!x&&(typeof a=="number"||K.test(a))&&a>-1&&a%1==0&&a<x}function Nn(a){var x=typeof a;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?a!=="__proto__":a===null}function Sn(a){return!!jt&&jt in a}function xn(a){var x=a&&a.constructor,B=typeof x=="function"&&x.prototype||Ot;return a===B}function Re(a){return ke.call(a)}function Pt(a){if(a!=null){try{return Wt.call(a)}catch{}try{return a+""}catch{}}return""}function je(a,x){return a===x||a!==a&&x!==x}var Ie=Le(function(){return arguments}())?Le:function(a){return Ft(a)&&dt.call(a,"callee")&&!re.call(a,"callee")},ue=Array.isArray;function _e(a){return a!=null&&Oe(a.length)&&!Me(a)}var se=ce||qn;function Pn(a,x){return qe(a,x)}function Me(a){if(!De(a))return!1;var x=Jt(a);return x==e||x==s||x==g||x==n}function Oe(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=b}function De(a){var x=typeof a;return a!=null&&(x=="object"||x=="function")}function Ft(a){return a!=null&&typeof a=="object"}var Be=ft?Y(ft):On;function Ee(a){return _e(a)?mn(a):En(a)}function Ln(){return[]}function qn(){return!1}q.exports=Pn})($e,$e.exports);var nr=$e.exports,Fn={},rr=Tt&&Tt.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(Fn,"__esModule",{value:!0});var gr=rr(er),mr=rr(nr),Dn;(function(q){function U(E,b,_){E===void 0&&(E={}),b===void 0&&(b={}),typeof E!="object"&&(E={}),typeof b!="object"&&(b={});var y=gr.default(b);_||(y=Object.keys(y).reduce(function(h,o){return y[o]!=null&&(h[o]=y[o]),h},{}));for(var g in E)E[g]!==void 0&&b[g]===void 0&&(y[g]=E[g]);return Object.keys(y).length>0?y:void 0}q.compose=U;function m(E,b){E===void 0&&(E={}),b===void 0&&(b={}),typeof E!="object"&&(E={}),typeof b!="object"&&(b={});var _=Object.keys(E).concat(Object.keys(b)).reduce(function(y,g){return mr.default(E[g],b[g])||(y[g]=b[g]===void 0?null:b[g]),y},{});return Object.keys(_).length>0?_:void 0}q.diff=m;function p(E,b){E===void 0&&(E={}),b===void 0&&(b={}),E=E||{};var _=Object.keys(b).reduce(function(y,g){return b[g]!==E[g]&&E[g]!==void 0&&(y[g]=b[g]),y},{});return Object.keys(E).reduce(function(y,g){return E[g]!==b[g]&&b[g]===void 0&&(y[g]=null),y},_)}q.invert=p;function c(E,b,_){if(_===void 0&&(_=!1),typeof E!="object")return b;if(typeof b=="object"){if(!_)return b;var y=Object.keys(b).reduce(function(g,h){return E[h]===void 0&&(g[h]=b[h]),g},{});return Object.keys(y).length>0?y:void 0}}q.transform=c})(Dn||(Dn={}));Fn.default=Dn;var Ue={},He={},$n;function br(){if($n)return He;$n=1;var q=Tt&&Tt.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(He,"__esModule",{value:!0});var U=q(ir()),m=function(){function p(c){this.ops=c,this.index=0,this.offset=0}return p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(c){c||(c=1/0);var E=this.ops[this.index];if(E){var b=this.offset,_=U.default.length(E);if(c>=_-b?(c=_-b,this.index+=1,this.offset=0):this.offset+=c,typeof E.delete=="number")return{delete:c};var y={};return E.attributes&&(y.attributes=E.attributes),typeof E.retain=="number"?y.retain=c:typeof E.insert=="string"?y.insert=E.insert.substr(b,c):y.insert=E.insert,y}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?U.default.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 c=this.offset,E=this.index,b=this.next(),_=this.ops.slice(this.index);return this.offset=c,this.index=E,[b].concat(_)}else return[]},p}();return He.default=m,He}var Gn;function ir(){if(Gn)return Ue;Gn=1;var q=Tt&&Tt.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ue,"__esModule",{value:!0});var U=q(br()),m;return function(p){function c(b){return new U.default(b)}p.iterator=c;function E(b){return typeof b.delete=="number"?b.delete:typeof b.retain=="number"?b.retain:typeof b.insert=="string"?b.insert.length:1}p.length=E}(m||(m={})),Ue.default=m,Ue}var Te=Tt&&Tt.__importDefault||function(q){return q&&q.__esModule?q:{default:q}},ze=Te(yr),_r=Te(er),Mn=Te(nr),Ae=Te(Fn),wt=Te(ir()),Or=String.fromCharCode(0),Er=function(){function q(U){Array.isArray(U)?this.ops=U:U!=null&&Array.isArray(U.ops)?this.ops=U.ops:this.ops=[]}return q.prototype.insert=function(U,m){var p={};return typeof U=="string"&&U.length===0?this:(p.insert=U,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(p.attributes=m),this.push(p))},q.prototype.delete=function(U){return U<=0?this:this.push({delete:U})},q.prototype.retain=function(U,m){if(U<=0)return this;var p={retain:U};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(p.attributes=m),this.push(p)},q.prototype.push=function(U){var m=this.ops.length,p=this.ops[m-1];if(U=_r.default(U),typeof p=="object"){if(typeof U.delete=="number"&&typeof p.delete=="number")return this.ops[m-1]={delete:p.delete+U.delete},this;if(typeof p.delete=="number"&&U.insert!=null&&(m-=1,p=this.ops[m-1],typeof p!="object"))return this.ops.unshift(U),this;if(Mn.default(U.attributes,p.attributes)){if(typeof U.insert=="string"&&typeof p.insert=="string")return this.ops[m-1]={insert:p.insert+U.insert},typeof U.attributes=="object"&&(this.ops[m-1].attributes=U.attributes),this;if(typeof U.retain=="number"&&typeof p.retain=="number")return this.ops[m-1]={retain:p.retain+U.retain},typeof U.attributes=="object"&&(this.ops[m-1].attributes=U.attributes),this}}return m===this.ops.length?this.ops.push(U):this.ops.splice(m,0,U),this},q.prototype.chop=function(){var U=this.ops[this.ops.length-1];return U&&U.retain&&!U.attributes&&this.ops.pop(),this},q.prototype.filter=function(U){return this.ops.filter(U)},q.prototype.forEach=function(U){this.ops.forEach(U)},q.prototype.map=function(U){return this.ops.map(U)},q.prototype.partition=function(U){var m=[],p=[];return this.forEach(function(c){var E=U(c)?m:p;E.push(c)}),[m,p]},q.prototype.reduce=function(U,m){return this.ops.reduce(U,m)},q.prototype.changeLength=function(){return this.reduce(function(U,m){return m.insert?U+wt.default.length(m):m.delete?U-m.delete:U},0)},q.prototype.length=function(){return this.reduce(function(U,m){return U+wt.default.length(m)},0)},q.prototype.slice=function(U,m){U===void 0&&(U=0),m===void 0&&(m=1/0);for(var p=[],c=wt.default.iterator(this.ops),E=0;E<m&&c.hasNext();){var b=void 0;E<U?b=c.next(U-E):(b=c.next(m-E),p.push(b)),E+=wt.default.length(b)}return new q(p)},q.prototype.compose=function(U){var m=wt.default.iterator(this.ops),p=wt.default.iterator(U.ops),c=[],E=p.peek();if(E!=null&&typeof E.retain=="number"&&E.attributes==null){for(var b=E.retain;m.peekType()==="insert"&&m.peekLength()<=b;)b-=m.peekLength(),c.push(m.next());E.retain-b>0&&p.next(E.retain-b)}for(var _=new q(c);m.hasNext()||p.hasNext();)if(p.peekType()==="insert")_.push(p.next());else if(m.peekType()==="delete")_.push(m.next());else{var y=Math.min(m.peekLength(),p.peekLength()),g=m.next(y),h=p.next(y);if(typeof h.retain=="number"){var o={};typeof g.retain=="number"?o.retain=y:o.insert=g.insert;var t=Ae.default.compose(g.attributes,h.attributes,typeof g.retain=="number");if(t&&(o.attributes=t),_.push(o),!p.hasNext()&&Mn.default(_.ops[_.ops.length-1],o)){var e=new q(m.rest());return _.concat(e).chop()}}else typeof h.delete=="number"&&typeof g.retain=="number"&&_.push(h)}return _.chop()},q.prototype.concat=function(U){var m=new q(this.ops.slice());return U.ops.length>0&&(m.push(U.ops[0]),m.ops=m.ops.concat(U.ops.slice(1))),m},q.prototype.diff=function(U,m){if(this.ops===U.ops)return new q;var p=[this,U].map(function(y){return y.map(function(g){if(g.insert!=null)return typeof g.insert=="string"?g.insert:Or;var h=y===U?"on":"with";throw new Error("diff() called "+h+" non-document")}).join("")}),c=new q,E=ze.default(p[0],p[1],m),b=wt.default.iterator(this.ops),_=wt.default.iterator(U.ops);return E.forEach(function(y){for(var g=y[1].length;g>0;){var h=0;switch(y[0]){case ze.default.INSERT:h=Math.min(_.peekLength(),g),c.push(_.next(h));break;case ze.default.DELETE:h=Math.min(g,b.peekLength()),b.next(h),c.delete(h);break;case ze.default.EQUAL:h=Math.min(b.peekLength(),_.peekLength(),g);var o=b.next(h),t=_.next(h);Mn.default(o.insert,t.insert)?c.retain(h,Ae.default.diff(o.attributes,t.attributes)):c.push(t).delete(h);break}g-=h}}),c.chop()},q.prototype.eachLine=function(U,m){m===void 0&&(m=`
  41. `);for(var p=wt.default.iterator(this.ops),c=new q,E=0;p.hasNext();){if(p.peekType()!=="insert")return;var b=p.peek(),_=wt.default.length(b)-p.peekLength(),y=typeof b.insert=="string"?b.insert.indexOf(m,_)-_:-1;if(y<0)c.push(p.next());else if(y>0)c.push(p.next(y));else{if(U(c,p.next(1).attributes||{},E)===!1)return;E+=1,c=new q}}c.length()>0&&U(c,{},E)},q.prototype.invert=function(U){var m=new q;return this.reduce(function(p,c){if(c.insert)m.delete(wt.default.length(c));else{if(c.retain&&c.attributes==null)return m.retain(c.retain),p+c.retain;if(c.delete||c.retain&&c.attributes){var E=c.delete||c.retain,b=U.slice(p,p+E);return b.forEach(function(_){c.delete?m.push(_):c.retain&&c.attributes&&m.retain(wt.default.length(_),Ae.default.invert(c.attributes,_.attributes))}),p+E}}return p},0),m.chop()},q.prototype.transform=function(U,m){if(m===void 0&&(m=!1),m=!!m,typeof U=="number")return this.transformPosition(U,m);for(var p=U,c=wt.default.iterator(this.ops),E=wt.default.iterator(p.ops),b=new q;c.hasNext()||E.hasNext();)if(c.peekType()==="insert"&&(m||E.peekType()!=="insert"))b.retain(wt.default.length(c.next()));else if(E.peekType()==="insert")b.push(E.next());else{var _=Math.min(c.peekLength(),E.peekLength()),y=c.next(_),g=E.next(_);if(y.delete)continue;g.delete?b.push(g):b.retain(_,Ae.default.transform(y.attributes,g.attributes,m))}return b.chop()},q.prototype.transformPosition=function(U,m){m===void 0&&(m=!1),m=!!m;for(var p=wt.default.iterator(this.ops),c=0;p.hasNext()&&c<=U;){var E=p.peekLength(),b=p.peekType();if(p.next(),b==="delete"){U-=Math.min(E,U-c);continue}else b==="insert"&&(c<U||!m)&&(U+=E);c+=E}return U},q.Op=wt.default,q.AttributeMap=Ae.default,q}(),Ar=Er;const wr=Zn(Ar);/*!
  42. * VueQuill @vueup/vue-quill v1.2.0
  43. * https://vueup.github.io/vue-quill/
  44. *
  45. * Includes quill v1.3.7
  46. * https://quilljs.com/
  47. *
  48. * Copyright (c) 2023 Ahmad Luthfi Masruri
  49. * Released under the MIT license
  50. * Date: 2023-05-12T08:44:03.742Z
  51. */const Vn={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},Nr=or({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:q=>["delta","html","text"].includes(q)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:q=>["snow","bubble",""].includes(q)},toolbar:{type:[String,Array,Object],required:!1,validator:q=>typeof q=="string"&&q!==""?q.charAt(0)==="#"?!0:Object.keys(Vn).indexOf(q)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(q,U)=>{ar(()=>{E()}),lr(()=>{m=null});let m,p;const c=Hn(),E=()=>{var v;if(c.value){if(p=b(),q.modules)if(Array.isArray(q.modules))for(const O of q.modules)jn.register(`modules/${O.name}`,O.module);else jn.register(`modules/${q.modules.name}`,q.modules.module);m=new jn(c.value,p),f(q.content),m.on("text-change",o),m.on("selection-change",e),m.on("editor-change",s),q.theme!=="bubble"&&c.value.classList.remove("ql-bubble"),q.theme!=="snow"&&c.value.classList.remove("ql-snow"),(v=m.getModule("toolbar"))===null||v===void 0||v.container.addEventListener("mousedown",O=>{O.preventDefault()}),U.emit("ready",m)}},b=()=>{const v={};if(q.theme!==""&&(v.theme=q.theme),q.readOnly&&(v.readOnly=q.readOnly),q.placeholder&&(v.placeholder=q.placeholder),q.toolbar&&q.toolbar!==""&&(v.modules={toolbar:(()=>{if(typeof q.toolbar=="object")return q.toolbar;if(typeof q.toolbar=="string")return q.toolbar.charAt(0)==="#"?q.toolbar:Vn[q.toolbar]})()}),q.modules){const O=(()=>{var N,L;const D={};if(Array.isArray(q.modules))for(const z of q.modules)D[z.name]=(N=z.options)!==null&&N!==void 0?N:{};else D[q.modules.name]=(L=q.modules.options)!==null&&L!==void 0?L:{};return D})();v.modules=Object.assign({},v.modules,O)}return Object.assign({},q.globalOptions,q.options,v)},_=v=>typeof v=="object"&&v?v.slice():v,y=v=>Object.values(v.ops).some(O=>!O.retain||Object.keys(O).length!==1);let g;const h=v=>{if(typeof g==typeof v){if(v===g)return!0;if(typeof v=="object"&&v&&typeof g=="object"&&g)return!y(g.diff(v))}return!1},o=(v,O,N)=>{g=_(i()),h(q.content)||U.emit("update:content",g),U.emit("textChange",{delta:v,oldContents:O,source:N})},t=Hn(),e=(v,O,N)=>{t.value=!!(m!=null&&m.hasFocus()),U.emit("selectionChange",{range:v,oldRange:O,source:N})};Rn(t,v=>{v?U.emit("focus",c):U.emit("blur",c)});const s=(...v)=>{v[0]==="text-change"&&U.emit("editorChange",{name:v[0],delta:v[1],oldContents:v[2],source:v[3]}),v[0]==="selection-change"&&U.emit("editorChange",{name:v[0],range:v[1],oldRange:v[2],source:v[3]})},l=()=>c.value,u=()=>{var v;return(v=m==null?void 0:m.getModule("toolbar"))===null||v===void 0?void 0:v.container},r=()=>{if(m)return m;throw`The quill editor hasn't been instantiated yet,
  52. make sure to call this method when the editor ready
  53. or use v-on:ready="onReady(quill)" event instead.`},i=(v,O)=>q.contentType==="html"?k():q.contentType==="text"?n(v,O):m==null?void 0:m.getContents(v,O),f=(v,O="api")=>{const N=v||(q.contentType==="delta"?new wr:"");q.contentType==="html"?w(N):q.contentType==="text"?d(N,O):m==null||m.setContents(N,O),g=_(N)},n=(v,O)=>{var N;return(N=m==null?void 0:m.getText(v,O))!==null&&N!==void 0?N:""},d=(v,O="api")=>{m==null||m.setText(v,O)},k=()=>{var v;return(v=m==null?void 0:m.root.innerHTML)!==null&&v!==void 0?v:""},w=v=>{m&&(m.root.innerHTML=v)},T=(v,O="api")=>{const N=m==null?void 0:m.clipboard.convert(v);N&&(m==null||m.setContents(N,O))},P=()=>{m==null||m.focus()},A=()=>{zn(()=>{var v;!U.slots.toolbar&&m&&((v=m.getModule("toolbar"))===null||v===void 0||v.container.remove()),E()})};return Rn(()=>q.content,v=>{if(!m||!v||h(v))return;const O=m.getSelection();O&&zn(()=>m==null?void 0:m.setSelection(O)),f(v)},{deep:!0}),Rn(()=>q.enable,v=>{m&&m.enable(v)}),{editor:c,getEditor:l,getToolbar:u,getQuill:r,getContents:i,setContents:f,getHTML:k,setHTML:w,pasteHTML:T,focus:P,getText:n,setText:d,reinit:A}},render(){var q,U;return[(U=(q=this.$slots).toolbar)===null||U===void 0?void 0:U.call(q),ur("div",{ref:"editor",...this.$attrs})]}}),Ve=sr.create({baseURL:"https://api.drawise.net/",timeout:1e5,headers:{"Content-Type":"multipart/form-data"}});async function Sr(q,U){const m={headers:{Authorization:Zt()?`token ${Zt()}`:void 0},params:U};return Ve.get(q,m)}async function xr(q,U){const m={headers:{Authorization:Zt()?`token ${Zt()}`:void 0}};return Ve.post(q,U,m)}async function Pr(q,U){const m={headers:{Authorization:Zt()?`token ${Zt()}`:void 0}};return Ve.put(q,U,m)}async function Lr(q){const U={headers:{Authorization:Zt()?`token ${Zt()}`:void 0}};return Ve.delete(q,U)}export{Nr as Q,Pr as a,Sr as g,xr as p,Lr as r};