ndsc-vue-quill 25.12.3012 → 26.1.2015

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,41 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,e.NdscVueQuill=n(e.Vue))})(this,function(e){"use strict";const n=(o,r)=>{const s=o.__vccOpts||o;for(const[t,d]of r)s[t]=d;return s},i={class:"card"},l=n(Object.assign({name:"ndsc-vue-quill"},{props:{msg:String},setup(o){const r=e.ref(0);return(s,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",null,e.toDisplayString(o.msg),1),e.createElementVNode("div",i,[e.createElementVNode("button",{type:"button",onClick:t[0]||(t[0]=d=>r.value++)},"count is "+e.toDisplayString(r.value),1),t[1]||(t[1]=e.createElementVNode("p",null,[e.createTextVNode(" Edit "),e.createElementVNode("code",null,"components/HelloWorld.vue"),e.createTextVNode(" to test HMR ")],-1))]),t[2]||(t[2]=e.createElementVNode("p",null,[e.createTextVNode(" Check out "),e.createElementVNode("a",{href:"https://vuejs.org/guide/quick-start.html#local",target:"_blank"},"create-vue"),e.createTextVNode(", the official Vue + Vite starter ")],-1)),t[3]||(t[3]=e.createElementVNode("p",null,[e.createTextVNode(" Learn more about IDE Support for Vue in the "),e.createElementVNode("a",{href:"https://vuejs.org/guide/scaling-up/tooling.html#ide-support",target:"_blank"},"Vue Docs Scaling up Guide"),e.createTextVNode(". ")],-1)),t[4]||(t[4]=e.createElementVNode("p",{class:"read-the-docs"},"Click on the Vite and Vue logos to learn more",-1))],64))}}),[["__scopeId","data-v-29174652"]]);return l.install=function(o){o.component(l.name,l)},l});
1
+ (function(ut,vt){typeof exports=="object"&&typeof module<"u"?module.exports=vt(require("vue")):typeof define=="function"&&define.amd?define(["vue"],vt):(ut=typeof globalThis<"u"?globalThis:ut||self,ut.NdscVueQuill=vt(ut.Vue))})(this,function(ut){"use strict";var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(it){return it&&it.__esModule&&Object.prototype.hasOwnProperty.call(it,"default")?it.default:it}var gt={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(it,ct){(function(b,d){it.exports=d()})(typeof self<"u"?self:vt,function(){return function(I){var b={};function d(P){if(b[P])return b[P].exports;var w=b[P]={i:P,l:!1,exports:{}};return I[P].call(w.exports,w,w.exports,d),w.l=!0,w.exports}return d.m=I,d.c=b,d.d=function(P,w,_){d.o(P,w)||Object.defineProperty(P,w,{configurable:!1,enumerable:!0,get:_})},d.n=function(P){var w=P&&P.__esModule?function(){return P.default}:function(){return P};return d.d(w,"a",w),w},d.o=function(P,w){return Object.prototype.hasOwnProperty.call(P,w)},d.p="",d(d.s=109)}([function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(17),w=d(18),_=d(19),y=d(45),v=d(46),c=d(47),o=d(48),t=d(49),e=d(12),u=d(32),l=d(33),a=d(31),r=d(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:P.default,Format:w.default,Leaf:_.default,Embed:o.default,Scroll:y.default,Block:c.default,Inline:v.default,Text:t.default,Attributor:{Attribute:e.default,Class:u.default,Style:l.default,Store:a.default}};b.default=i},function(I,b,d){var P=this&&this.__extends||function(){var a=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){a(r,i);function f(){this.constructor=r}r.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=function(a){P(r,a);function r(i){var f=this;return i="[Parchment] "+i,f=a.call(this,i)||this,f.message=i,f.name=f.constructor.name,f}return r}(Error);b.ParchmentError=w;var _={},y={},v={},c={};b.DATA_KEY="__blot";var o;(function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"})(o=b.Scope||(b.Scope={}));function t(a,r){var i=u(a);if(i==null)throw new w("Unable to create "+a+" blot");var f=i,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:f.create(r);return new f(n,r)}b.create=t;function e(a,r){return r===void 0&&(r=!1),a==null?null:a[b.DATA_KEY]!=null?a[b.DATA_KEY].blot:r?e(a.parentNode,r):null}b.find=e;function u(a,r){r===void 0&&(r=o.ANY);var i;if(typeof a=="string")i=c[a]||_[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)i=c.text;else if(typeof a=="number")a&o.LEVEL&o.BLOCK?i=c.block:a&o.LEVEL&o.INLINE&&(i=c.inline);else if(a instanceof HTMLElement){var f=(a.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=y[f[n]],i)break;i=i||v[a.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}b.query=u;function l(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];if(a.length>1)return a.map(function(n){return l(n)});var i=a[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new w("Invalid definition");if(i.blotName==="abstract")throw new w("Cannot register abstract class");if(c[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){(v[n]==null||i.className==null)&&(v[n]=i)})}return i}b.register=l},function(I,b,d){var P=d(51),w=d(11),_=d(3),y=d(20),v="\0",c=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};c.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))},c.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},c.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)},c.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(w(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},c.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},c.prototype.filter=function(o){return this.ops.filter(o)},c.prototype.forEach=function(o){this.ops.forEach(o)},c.prototype.map=function(o){return this.ops.map(o)},c.prototype.partition=function(o){var t=[],e=[];return this.forEach(function(u){var l=o(u)?t:e;l.push(u)}),[t,e]},c.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},c.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+y.length(t):t.delete?o-t.delete:o},0)},c.prototype.length=function(){return this.reduce(function(o,t){return o+y.length(t)},0)},c.prototype.slice=function(o,t){o=o||0,typeof t!="number"&&(t=1/0);for(var e=[],u=y.iterator(this.ops),l=0;l<t&&u.hasNext();){var a;l<o?a=u.next(o-l):(a=u.next(t-l),e.push(a)),l+=y.length(a)}return new c(e)},c.prototype.compose=function(o){var t=y.iterator(this.ops),e=y.iterator(o.ops),u=[],l=e.peek();if(l!=null&&typeof l.retain=="number"&&l.attributes==null){for(var a=l.retain;t.peekType()==="insert"&&t.peekLength()<=a;)a-=t.peekLength(),u.push(t.next());l.retain-a>0&&e.next(l.retain-a)}for(var r=new c(u);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 s={};typeof f.retain=="number"?s.retain=i:s.insert=f.insert;var A=y.attributes.compose(f.attributes,n.attributes,typeof f.retain=="number");if(A&&(s.attributes=A),r.push(s),!e.hasNext()&&w(r.ops[r.ops.length-1],s)){var g=new c(t.rest());return r.concat(g).chop()}}else typeof n.delete=="number"&&typeof f.retain=="number"&&r.push(n)}return r.chop()},c.prototype.concat=function(o){var t=new c(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},c.prototype.diff=function(o,t){if(this.ops===o.ops)return new c;var e=[this,o].map(function(i){return i.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:v;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),u=new c,l=P(e[0],e[1],t),a=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 P.INSERT:n=Math.min(r.peekLength(),f),u.push(r.next(n));break;case P.DELETE:n=Math.min(f,a.peekLength()),a.next(n),u.delete(n);break;case P.EQUAL:n=Math.min(a.peekLength(),r.peekLength(),f);var s=a.next(n),A=r.next(n);w(s.insert,A.insert)?u.retain(n,y.attributes.diff(s.attributes,A.attributes)):u.push(A).delete(n);break}f-=n}}),u.chop()},c.prototype.eachLine=function(o,t){t=t||`
7
+ `;for(var e=y.iterator(this.ops),u=new c,l=0;e.hasNext();){if(e.peekType()!=="insert")return;var a=e.peek(),r=y.length(a)-e.peekLength(),i=typeof a.insert=="string"?a.insert.indexOf(t,r)-r:-1;if(i<0)u.push(e.next());else if(i>0)u.push(e.next(i));else{if(o(u,e.next(1).attributes||{},l)===!1)return;l+=1,u=new c}}u.length()>0&&o(u,{},l)},c.prototype.transform=function(o,t){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);for(var e=y.iterator(this.ops),u=y.iterator(o.ops),l=new c;e.hasNext()||u.hasNext();)if(e.peekType()==="insert"&&(t||u.peekType()!=="insert"))l.retain(y.length(e.next()));else if(u.peekType()==="insert")l.push(u.next());else{var a=Math.min(e.peekLength(),u.peekLength()),r=e.next(a),i=u.next(a);if(r.delete)continue;i.delete?l.push(i):l.retain(a,y.attributes.transform(r.attributes,i.attributes,t))}return l.chop()},c.prototype.transformPosition=function(o,t){t=!!t;for(var e=y.iterator(this.ops),u=0;e.hasNext()&&u<=o;){var l=e.peekLength(),a=e.peekType();if(e.next(),a==="delete"){o-=Math.min(l,o-u);continue}else a==="insert"&&(u<o||!t)&&(o+=l);u+=l}return o},I.exports=c},function(I,b){var d=Object.prototype.hasOwnProperty,P=Object.prototype.toString,w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=function(e){return typeof Array.isArray=="function"?Array.isArray(e):P.call(e)==="[object Array]"},v=function(e){if(!e||P.call(e)!=="[object Object]")return!1;var u=d.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&d.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!u&&!l)return!1;var a;for(a in e);return typeof a>"u"||d.call(e,a)},c=function(e,u){w&&u.name==="__proto__"?w(e,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):e[u.name]=u.newValue},o=function(e,u){if(u==="__proto__")if(d.call(e,u)){if(_)return _(e,u).value}else return;return e[u]};I.exports=function t(){var e,u,l,a,r,i,f=arguments[0],n=1,s=arguments.length,A=!1;for(typeof f=="boolean"&&(A=f,f=arguments[1]||{},n=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});n<s;++n)if(e=arguments[n],e!=null)for(u in e)l=o(f,u),a=o(e,u),f!==a&&(A&&a&&(v(a)||(r=y(a)))?(r?(r=!1,i=l&&y(l)?l:[]):i=l&&v(l)?l:{},c(f,{name:u,newValue:t(A,i,a)})):typeof a<"u"&&c(f,{name:u,newValue:a}));return f}},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BlockEmbed=b.bubbleFormats=void 0;var P=function(){function h(p,k){for(var T=0;T<k.length;T++){var L=k[T];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(p,L.key,L)}}return function(p,k,T){return k&&h(p.prototype,k),T&&h(p,T),p}}(),w=function h(p,k,T){p===null&&(p=Function.prototype);var L=Object.getOwnPropertyDescriptor(p,k);if(L===void 0){var D=Object.getPrototypeOf(p);return D===null?void 0:h(D,k,T)}else{if("value"in L)return L.value;var C=L.get;return C===void 0?void 0:C.call(T)}},_=d(3),y=f(_),v=d(2),c=f(v),o=d(0),t=f(o),e=d(16),u=f(e),l=d(6),a=f(l),r=d(7),i=f(r);function f(h){return h&&h.__esModule?h:{default:h}}function n(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function s(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function A(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var g=1,O=function(h){A(p,h);function p(){return n(this,p),s(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return P(p,[{key:"attach",value:function(){w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(T,L){var D=t.default.query(T,t.default.Scope.BLOCK_ATTRIBUTE);D!=null&&this.attributes.attribute(D,L)}},{key:"formatAt",value:function(T,L,D,C){this.format(D,C)}},{key:"insertAt",value:function(T,L,D){if(typeof L=="string"&&L.endsWith(`
8
+ `)){var C=t.default.create(N.blotName);this.parent.insertBefore(C,T===0?this:this.next),C.insertAt(0,L.slice(0,-1))}else w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,T,L,D)}}]),p}(t.default.Embed);O.scope=t.default.Scope.BLOCK_BLOT;var N=function(h){A(p,h);function p(k){n(this,p);var T=s(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,k));return T.cache={},T}return P(p,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(T,L){return L.length()===0?T:T.insert(L.value(),m(L))},new c.default).insert(`
9
+ `,m(this))),this.cache.delta}},{key:"deleteAt",value:function(T,L){w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"deleteAt",this).call(this,T,L),this.cache={}}},{key:"formatAt",value:function(T,L,D,C){L<=0||(t.default.query(D,t.default.Scope.BLOCK)?T+L===this.length()&&this.format(D,C):w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"formatAt",this).call(this,T,Math.min(L,this.length()-T-1),D,C),this.cache={})}},{key:"insertAt",value:function(T,L,D){if(D!=null)return w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,T,L,D);if(L.length!==0){var C=L.split(`
10
+ `),Z=C.shift();Z.length>0&&(T<this.length()-1||this.children.tail==null?w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,Math.min(T,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var M=this;C.reduce(function(R,E){return M=M.split(R,!0),M.insertAt(0,E),E.length},T+Z.length)}}},{key:"insertBefore",value:function(T,L){var D=this.children.head;w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertBefore",this).call(this,T,L),D instanceof u.default&&D.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(T,L){w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"moveChildren",this).call(this,T,L),this.cache={}}},{key:"optimize",value:function(T){w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,T),this.cache={}}},{key:"path",value:function(T){return w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"path",this).call(this,T,!0)}},{key:"removeChild",value:function(T){w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"removeChild",this).call(this,T),this.cache={}}},{key:"split",value:function(T){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(L&&(T===0||T>=this.length()-g)){var D=this.clone();return T===0?(this.parent.insertBefore(D,this),this):(this.parent.insertBefore(D,this.next),D)}else{var C=w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"split",this).call(this,T,L);return this.cache={},C}}}]),p}(t.default.Block);N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[a.default,t.default.Embed,i.default];function m(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h==null||(typeof h.formats=="function"&&(p=(0,y.default)(p,h.formats())),h.parent==null||h.parent.blotName=="scroll"||h.parent.statics.scope!==h.statics.scope)?p:m(h.parent,p)}b.bubbleFormats=m,b.BlockEmbed=O,b.default=N},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.overload=b.expandConfig=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},w=function(){function M(R,E){var S=[],q=!0,F=!1,B=void 0;try{for(var x=R[Symbol.iterator](),j;!(q=(j=x.next()).done)&&(S.push(j.value),!(E&&S.length===E));q=!0);}catch(U){F=!0,B=U}finally{try{!q&&x.return&&x.return()}finally{if(F)throw B}}return S}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return M(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function M(R,E){for(var S=0;S<E.length;S++){var q=E[S];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(R,q.key,q)}}return function(R,E,S){return E&&M(R.prototype,E),S&&M(R,S),R}}();d(50);var y=d(2),v=m(y),c=d(14),o=m(c),t=d(8),e=m(t),u=d(9),l=m(u),a=d(0),r=m(a),i=d(15),f=m(i),n=d(3),s=m(n),A=d(10),g=m(A),O=d(34),N=m(O);function m(M){return M&&M.__esModule?M:{default:M}}function h(M,R,E){return R in M?Object.defineProperty(M,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):M[R]=E,M}function p(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}var k=(0,g.default)("quill"),T=function(){_(M,null,[{key:"debug",value:function(E){E===!0&&(E="log"),g.default.level(E)}},{key:"find",value:function(E){return E.__quill||r.default.find(E)}},{key:"import",value:function(E){return this.imports[E]==null&&k.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,S){var q=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof E!="string"){var B=E.attrName||E.blotName;typeof B=="string"?this.register("formats/"+B,E,S):Object.keys(E).forEach(function(x){q.register(x,E[x],S)})}else this.imports[E]!=null&&!F&&k.warn("Overwriting "+E+" with",S),this.imports[E]=S,(E.startsWith("blots/")||E.startsWith("formats/"))&&S.blotName!=="abstract"?r.default.register(S):E.startsWith("modules")&&typeof S.register=="function"&&S.register()}}]);function M(R){var E=this,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(p(this,M),this.options=L(R,S),this.container=this.options.container,this.container==null)return k.error("Invalid Quill container",R);this.options.debug&&M.debug(this.options.debug);var q=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(B){B===e.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(B,x){var j=E.selection.lastRange,U=j&&j.length===0?j.index:void 0;D.call(E,function(){return E.editor.update(null,x,U)},B)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+q+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return _(M,[{key:"addContainer",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof E=="string"){var q=E;E=document.createElement("div"),E.classList.add(q)}return this.container.insertBefore(E,S),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,S,q){var F=this,B=C(E,S,q),x=w(B,4);return E=x[0],S=x[1],q=x[3],D.call(this,function(){return F.editor.deleteText(E,S)},q,E,-1*S)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(E),this.container.classList.toggle("ql-disabled",!E)}},{key:"focus",value:function(){var E=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=E,this.scrollIntoView()}},{key:"format",value:function(E,S){var q=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.default.sources.API;return D.call(this,function(){var B=q.getSelection(!0),x=new v.default;if(B==null)return x;if(r.default.query(E,r.default.Scope.BLOCK))x=q.editor.formatLine(B.index,B.length,h({},E,S));else{if(B.length===0)return q.selection.format(E,S),x;x=q.editor.formatText(B.index,B.length,h({},E,S))}return q.setSelection(B,e.default.sources.SILENT),x},F)}},{key:"formatLine",value:function(E,S,q,F,B){var x=this,j=void 0,U=C(E,S,q,F,B),H=w(U,4);return E=H[0],S=H[1],j=H[2],B=H[3],D.call(this,function(){return x.editor.formatLine(E,S,j)},B,E,0)}},{key:"formatText",value:function(E,S,q,F,B){var x=this,j=void 0,U=C(E,S,q,F,B),H=w(U,4);return E=H[0],S=H[1],j=H[2],B=H[3],D.call(this,function(){return x.editor.formatText(E,S,j)},B,E,0)}},{key:"getBounds",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=void 0;typeof E=="number"?q=this.selection.getBounds(E,S):q=this.selection.getBounds(E.index,E.length);var F=this.container.getBoundingClientRect();return{bottom:q.bottom-F.top,height:q.height,left:q.left-F.left,right:q.right-F.left,top:q.top-F.top,width:q.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,q=C(E,S),F=w(q,2);return E=F[0],S=F[1],this.editor.getContents(E,S)}},{key:"getFormat",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof E=="number"?this.editor.getFormat(E,S):this.editor.getFormat(E.index,E.length)}},{key:"getIndex",value:function(E){return E.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(E){return this.scroll.leaf(E)}},{key:"getLine",value:function(E){return this.scroll.line(E)}},{key:"getLines",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof E!="number"?this.scroll.lines(E.index,E.length):this.scroll.lines(E,S)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return E&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,q=C(E,S),F=w(q,2);return E=F[0],S=F[1],this.editor.getText(E,S)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,S,q){var F=this,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M.sources.API;return D.call(this,function(){return F.editor.insertEmbed(E,S,q)},B,E)}},{key:"insertText",value:function(E,S,q,F,B){var x=this,j=void 0,U=C(E,0,q,F,B),H=w(U,4);return E=H[0],j=H[2],B=H[3],D.call(this,function(){return x.editor.insertText(E,S,j)},B,E,S.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(E,S,q){this.clipboard.dangerouslyPasteHTML(E,S,q)}},{key:"removeFormat",value:function(E,S,q){var F=this,B=C(E,S,q),x=w(B,4);return E=x[0],S=x[1],q=x[3],D.call(this,function(){return F.editor.removeFormat(E,S)},q,E)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var S=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return D.call(this,function(){E=new v.default(E);var F=S.getLength(),B=S.editor.deleteText(0,F),x=S.editor.applyDelta(E),j=x.ops[x.ops.length-1];j!=null&&typeof j.insert=="string"&&j.insert[j.insert.length-1]===`
11
+ `&&(S.editor.deleteText(S.getLength()-1,1),x.delete(1));var U=B.compose(x);return U},q)}},{key:"setSelection",value:function(E,S,q){if(E==null)this.selection.setRange(null,S||M.sources.API);else{var F=C(E,S,q),B=w(F,4);E=B[0],S=B[1],q=B[3],this.selection.setRange(new i.Range(E,S),q),q!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,q=new v.default().insert(E);return this.setContents(q,S)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,S=this.scroll.update(E);return this.selection.update(E),S}},{key:"updateContents",value:function(E){var S=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return D.call(this,function(){return E=new v.default(E),S.editor.applyDelta(E,q)},q,!0)}}]),M}();T.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},T.events=e.default.events,T.sources=e.default.sources,T.version="1.3.7",T.imports={delta:v.default,parchment:r.default,"core/module":l.default,"core/theme":N.default};function L(M,R){if(R=(0,s.default)(!0,{container:M,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===T.DEFAULTS.theme)R.theme=N.default;else if(R.theme=T.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var E=(0,s.default)(!0,{},R.theme.DEFAULTS);[E,R].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(B){F.modules[B]===!0&&(F.modules[B]={})})});var S=Object.keys(E.modules).concat(Object.keys(R.modules)),q=S.reduce(function(F,B){var x=T.import("modules/"+B);return x==null?k.error("Cannot load "+B+" module. Are you sure you registered it?"):F[B]=x.DEFAULTS||{},F},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,s.default)(!0,{},T.DEFAULTS,{modules:q},E,R),["bounds","container","scrollingContainer"].forEach(function(F){typeof R[F]=="string"&&(R[F]=document.querySelector(R[F]))}),R.modules=Object.keys(R.modules).reduce(function(F,B){return R.modules[B]&&(F[B]=R.modules[B]),F},{}),R}function D(M,R,E,S){if(this.options.strict&&!this.isEnabled()&&R===e.default.sources.USER)return new v.default;var q=E==null?null:this.getSelection(),F=this.editor.delta,B=M();if(q!=null&&(E===!0&&(E=q.index),S==null?q=Z(q,B,R):S!==0&&(q=Z(q,E,S,R)),this.setSelection(q,e.default.sources.SILENT)),B.length()>0){var x,j=[e.default.events.TEXT_CHANGE,B,F,R];if((x=this.emitter).emit.apply(x,[e.default.events.EDITOR_CHANGE].concat(j)),R!==e.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,j)}}return B}function C(M,R,E,S,q){var F={};return typeof M.index=="number"&&typeof M.length=="number"?typeof R!="number"?(q=S,S=E,E=R,R=M.length,M=M.index):(R=M.length,M=M.index):typeof R!="number"&&(q=S,S=E,E=R,R=0),(typeof E>"u"?"undefined":P(E))==="object"?(F=E,q=S):typeof E=="string"&&(S!=null?F[E]=S:q=E),q=q||e.default.sources.API,[M,R,F,q]}function Z(M,R,E,S){if(M==null)return null;var q=void 0,F=void 0;if(R instanceof v.default){var B=[M.index,M.index+M.length].map(function(H){return R.transformPosition(H,S!==e.default.sources.USER)}),x=w(B,2);q=x[0],F=x[1]}else{var j=[M.index,M.index+M.length].map(function(H){return H<R||H===R&&S===e.default.sources.USER?H:E>=0?H+E:Math.max(R,H+E)}),U=w(j,2);q=U[0],F=U[1]}return new i.Range(q,F-q)}b.expandConfig=L,b.overload=C,b.default=T},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function a(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&&a(r.prototype,i),f&&a(r,f),r}}(),w=function a(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:a(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},_=d(7),y=o(_),v=d(0),c=o(v);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function e(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function u(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var l=function(a){u(r,a);function r(){return t(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"formatAt",value:function(f,n,s,A){if(r.compare(this.statics.blotName,s)<0&&c.default.query(s,c.default.Scope.BLOT)){var g=this.isolate(f,n);A&&g.wrap(s,A)}else w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,s,A)}},{key:"optimize",value:function(f){if(w(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 s=r.order.indexOf(f),A=r.order.indexOf(n);return s>=0||A>=0?s-A:f===n?0:f<n?-1:1}}]),r}(c.default.Inline);l.allowedChildren=[l,c.default.Embed,y.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],b.default=l},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(0),w=_(P);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 v(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 c(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){c(e,t);function e(){return y(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(w.default.Text);b.default=o},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function i(f,n){for(var s=0;s<n.length;s++){var A=n[s];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,n,s){return n&&i(f.prototype,n),s&&i(f,s),f}}(),w=function i(f,n,s){f===null&&(f=Function.prototype);var A=Object.getOwnPropertyDescriptor(f,n);if(A===void 0){var g=Object.getPrototypeOf(f);return g===null?void 0:i(g,n,s)}else{if("value"in A)return A.value;var O=A.get;return O===void 0?void 0:O.call(s)}},_=d(54),y=o(_),v=d(10),c=o(v);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 u(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,c.default)("quill:events"),a=["selectionchange","mousedown","mouseup","click"];a.forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),s=0;s<f;s++)n[s]=arguments[s];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){if(A.__quill&&A.__quill.emitter){var g;(g=A.__quill.emitter).handleDOM.apply(g,n)}})})});var r=function(i){u(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 P(f,[{key:"emit",value:function(){l.log.apply(l,arguments),w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(s){for(var A=arguments.length,g=Array(A>1?A-1:0),O=1;O<A;O++)g[O-1]=arguments[O];(this.listeners[s.type]||[]).forEach(function(N){var m=N.node,h=N.handler;(s.target===m||m.contains(s.target))&&h.apply(void 0,[s].concat(g))})}},{key:"listenDOM",value:function(s,A,g){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push({node:A,handler:g})}}]),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"},b.default=r},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});function P(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}var w=function _(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P(this,_),this.quill=y,this.options=v};w.DEFAULTS={},b.default=w},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=["error","warn","log","info"],w="warn";function _(v){if(P.indexOf(v)<=P.indexOf(w)){for(var c,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(c=console)[v].apply(c,t)}}function y(v){return P.reduce(function(c,o){return c[o]=_.bind(console,o,v),c},{})}_.level=y.level=function(v){w=v},b.default=y},function(I,b,d){var P=Array.prototype.slice,w=d(52),_=d(53),y=I.exports=function(t,e,u){return u||(u={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||typeof t!="object"&&typeof e!="object"?u.strict?t===e:t==e:o(t,e,u)};function v(t){return t==null}function c(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,u){var l,a;if(v(t)||v(e)||t.prototype!==e.prototype)return!1;if(_(t))return _(e)?(t=P.call(t),e=P.call(e),y(t,e,u)):!1;if(c(t)){if(!c(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=w(t),i=w(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(a=r[l],!y(t[a],e[a],u))return!1;return typeof t==typeof e}},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(1),w=function(){function _(y,v,c){c===void 0&&(c={}),this.attrName=y,this.keyName=v;var o=P.Scope.TYPE&P.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&P.Scope.LEVEL|o:this.scope=P.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return _.keys=function(y){return[].map.call(y.attributes,function(v){return v.name})},_.prototype.add=function(y,v){return this.canAdd(y,v)?(y.setAttribute(this.keyName,v),!0):!1},_.prototype.canAdd=function(y,v){var c=P.query(y,P.Scope.BLOT&(this.scope|P.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof v=="string"?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1},_.prototype.remove=function(y){y.removeAttribute(this.keyName)},_.prototype.value=function(y){var v=y.getAttribute(this.keyName);return this.canAdd(y,v)&&v?v:""},_}();b.default=w},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.Code=void 0;var P=function(){function O(N,m){var h=[],p=!0,k=!1,T=void 0;try{for(var L=N[Symbol.iterator](),D;!(p=(D=L.next()).done)&&(h.push(D.value),!(m&&h.length===m));p=!0);}catch(C){k=!0,T=C}finally{try{!p&&L.return&&L.return()}finally{if(k)throw T}}return h}return function(N,m){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return O(N,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function O(N,m){for(var h=0;h<m.length;h++){var p=m[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(N,p.key,p)}}return function(N,m,h){return m&&O(N.prototype,m),h&&O(N,h),N}}(),_=function O(N,m,h){N===null&&(N=Function.prototype);var p=Object.getOwnPropertyDescriptor(N,m);if(p===void 0){var k=Object.getPrototypeOf(N);return k===null?void 0:O(k,m,h)}else{if("value"in p)return p.value;var T=p.get;return T===void 0?void 0:T.call(h)}},y=d(2),v=i(y),c=d(0),o=i(c),t=d(4),e=i(t),u=d(6),l=i(u),a=d(7),r=i(a);function i(O){return O&&O.__esModule?O:{default:O}}function f(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function n(O,N){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:O}function s(O,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);O.prototype=Object.create(N&&N.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(O,N):O.__proto__=N)}var A=function(O){s(N,O);function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return N}(l.default);A.blotName="code",A.tagName="CODE";var g=function(O){s(N,O);function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return w(N,[{key:"delta",value:function(){var h=this,p=this.domNode.textContent;return p.endsWith(`
12
+ `)&&(p=p.slice(0,-1)),p.split(`
13
+ `).reduce(function(k,T){return k.insert(T).insert(`
14
+ `,h.formats())},new v.default)}},{key:"format",value:function(h,p){if(!(h===this.statics.blotName&&p)){var k=this.descendant(r.default,this.length()-1),T=P(k,1),L=T[0];L!=null&&L.deleteAt(L.length()-1,1),_(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,h,p)}}},{key:"formatAt",value:function(h,p,k,T){if(p!==0&&!(o.default.query(k,o.default.Scope.BLOCK)==null||k===this.statics.blotName&&T===this.statics.formats(this.domNode))){var L=this.newlineIndex(h);if(!(L<0||L>=h+p)){var D=this.newlineIndex(h,!0)+1,C=L-D+1,Z=this.isolate(D,C),M=Z.next;Z.format(k,T),M instanceof N&&M.formatAt(0,h-D+p-C,k,T)}}}},{key:"insertAt",value:function(h,p,k){if(k==null){var T=this.descendant(r.default,h),L=P(T,2),D=L[0],C=L[1];D.insertAt(C,p)}}},{key:"length",value:function(){var h=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
15
+ `)?h:h+1}},{key:"newlineIndex",value:function(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(p)return this.domNode.textContent.slice(0,h).lastIndexOf(`
16
+ `);var k=this.domNode.textContent.slice(h).indexOf(`
17
+ `);return k>-1?h+k:-1}},{key:"optimize",value:function(h){this.domNode.textContent.endsWith(`
18
+ `)||this.appendChild(o.default.create("text",`
19
+ `)),_(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,h);var p=this.next;p!=null&&p.prev===this&&p.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===p.statics.formats(p.domNode)&&(p.optimize(h),p.moveChildren(this),p.remove())}},{key:"replace",value:function(h){_(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,h),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(p){var k=o.default.find(p);k==null?p.parentNode.removeChild(p):k instanceof o.default.Embed?k.remove():k.unwrap()})}}],[{key:"create",value:function(h){var p=_(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,h);return p.setAttribute("spellcheck",!1),p}},{key:"formats",value:function(){return!0}}]),N}(e.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",b.Code=A,b.default=g},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},w=function(){function M(R,E){var S=[],q=!0,F=!1,B=void 0;try{for(var x=R[Symbol.iterator](),j;!(q=(j=x.next()).done)&&(S.push(j.value),!(E&&S.length===E));q=!0);}catch(U){F=!0,B=U}finally{try{!q&&x.return&&x.return()}finally{if(F)throw B}}return S}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return M(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function M(R,E){for(var S=0;S<E.length;S++){var q=E[S];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(R,q.key,q)}}return function(R,E,S){return E&&M(R.prototype,E),S&&M(R,S),R}}(),y=d(2),v=p(y),c=d(20),o=p(c),t=d(0),e=p(t),u=d(13),l=p(u),a=d(24),r=p(a),i=d(4),f=p(i),n=d(16),s=p(n),A=d(21),g=p(A),O=d(11),N=p(O),m=d(3),h=p(m);function p(M){return M&&M.__esModule?M:{default:M}}function k(M,R,E){return R in M?Object.defineProperty(M,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):M[R]=E,M}function T(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}var L=/^[ -~]*$/,D=function(){function M(R){T(this,M),this.scroll=R,this.delta=this.getDelta()}return _(M,[{key:"applyDelta",value:function(E){var S=this,q=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),E=Z(E),E.reduce(function(B,x){var j=x.retain||x.delete||x.insert.length||1,U=x.attributes||{};if(x.insert!=null){if(typeof x.insert=="string"){var H=x.insert;H.endsWith(`
20
+ `)&&q&&(q=!1,H=H.slice(0,-1)),B>=F&&!H.endsWith(`
21
+ `)&&(q=!0),S.scroll.insertAt(B,H);var V=S.scroll.line(B),Y=w(V,2),X=Y[0],Q=Y[1],nt=(0,h.default)({},(0,i.bubbleFormats)(X));if(X instanceof f.default){var rt=X.descendant(e.default.Leaf,Q),ft=w(rt,1),at=ft[0];nt=(0,h.default)(nt,(0,i.bubbleFormats)(at))}U=o.default.attributes.diff(nt,U)||{}}else if(P(x.insert)==="object"){var z=Object.keys(x.insert)[0];if(z==null)return B;S.scroll.insertAt(B,z,x.insert[z])}F+=j}return Object.keys(U).forEach(function(K){S.scroll.formatAt(B,j,K,U[K])}),B+j},0),E.reduce(function(B,x){return typeof x.delete=="number"?(S.scroll.deleteAt(B,x.delete),B):B+(x.retain||x.insert.length||1)},0),this.scroll.batchEnd(),this.update(E)}},{key:"deleteText",value:function(E,S){return this.scroll.deleteAt(E,S),this.update(new v.default().retain(E).delete(S))}},{key:"formatLine",value:function(E,S){var q=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(B){if(!(q.scroll.whitelist!=null&&!q.scroll.whitelist[B])){var x=q.scroll.lines(E,Math.max(S,1)),j=S;x.forEach(function(U){var H=U.length();if(!(U instanceof l.default))U.format(B,F[B]);else{var V=E-U.offset(q.scroll),Y=U.newlineIndex(V+j)-V+1;U.formatAt(V,Y,B,F[B])}j-=H})}}),this.scroll.optimize(),this.update(new v.default().retain(E).retain(S,(0,g.default)(F)))}},{key:"formatText",value:function(E,S){var q=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(B){q.scroll.formatAt(E,S,B,F[B])}),this.update(new v.default().retain(E).retain(S,(0,g.default)(F)))}},{key:"getContents",value:function(E,S){return this.delta.slice(E,E+S)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(E,S){return E.concat(S.delta())},new v.default)}},{key:"getFormat",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=[],F=[];S===0?this.scroll.path(E).forEach(function(x){var j=w(x,1),U=j[0];U instanceof f.default?q.push(U):U instanceof e.default.Leaf&&F.push(U)}):(q=this.scroll.lines(E,S),F=this.scroll.descendants(e.default.Leaf,E,S));var B=[q,F].map(function(x){if(x.length===0)return{};for(var j=(0,i.bubbleFormats)(x.shift());Object.keys(j).length>0;){var U=x.shift();if(U==null)return j;j=C((0,i.bubbleFormats)(U),j)}return j});return h.default.apply(h.default,B)}},{key:"getText",value:function(E,S){return this.getContents(E,S).filter(function(q){return typeof q.insert=="string"}).map(function(q){return q.insert}).join("")}},{key:"insertEmbed",value:function(E,S,q){return this.scroll.insertAt(E,S,q),this.update(new v.default().retain(E).insert(k({},S,q)))}},{key:"insertText",value:function(E,S){var q=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return S=S.replace(/\r\n/g,`
22
+ `).replace(/\r/g,`
23
+ `),this.scroll.insertAt(E,S),Object.keys(F).forEach(function(B){q.scroll.formatAt(E,S.length,B,F[B])}),this.update(new v.default().retain(E).insert(S,(0,g.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var E=this.scroll.children.head;return E.statics.blotName!==f.default.blotName||E.children.length>1?!1:E.children.head instanceof s.default}},{key:"removeFormat",value:function(E,S){var q=this.getText(E,S),F=this.scroll.line(E+S),B=w(F,2),x=B[0],j=B[1],U=0,H=new v.default;x!=null&&(x instanceof l.default?U=x.newlineIndex(j)-j+1:U=x.length()-j,H=x.delta().slice(j,j+U-1).insert(`
24
+ `));var V=this.getContents(E,S+U),Y=V.diff(new v.default().insert(q).concat(H)),X=new v.default().retain(E).concat(Y);return this.applyDelta(X)}},{key:"update",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(S.length===1&&S[0].type==="characterData"&&S[0].target.data.match(L)&&e.default.find(S[0].target)){var B=e.default.find(S[0].target),x=(0,i.bubbleFormats)(B),j=B.offset(this.scroll),U=S[0].oldValue.replace(r.default.CONTENTS,""),H=new v.default().insert(U),V=new v.default().insert(B.value()),Y=new v.default().retain(j).concat(H.diff(V,q));E=Y.reduce(function(X,Q){return Q.insert?X.insert(Q.insert,x):X.push(Q)},new v.default),this.delta=F.compose(E)}else this.delta=this.getDelta(),(!E||!(0,N.default)(F.compose(E),this.delta))&&(E=F.diff(this.delta,q));return E}}]),M}();function C(M,R){return Object.keys(R).reduce(function(E,S){return M[S]==null||(R[S]===M[S]?E[S]=R[S]:Array.isArray(R[S])?R[S].indexOf(M[S])<0&&(E[S]=R[S].concat([M[S]])):E[S]=[R[S],M[S]]),E},{})}function Z(M){return M.reduce(function(R,E){if(E.insert===1){var S=(0,g.default)(E.attributes);return delete S.image,R.insert({image:E.attributes.image},S)}if(E.attributes!=null&&(E.attributes.list===!0||E.attributes.bullet===!0)&&(E=(0,g.default)(E),E.attributes.list?E.attributes.list="ordered":(E.attributes.list="bullet",delete E.attributes.bullet)),typeof E.insert=="string"){var q=E.insert.replace(/\r\n/g,`
25
+ `).replace(/\r/g,`
26
+ `);return R.insert(q,E.attributes)}return R.push(E)},new v.default)}b.default=D},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.Range=void 0;var P=function(){function O(N,m){var h=[],p=!0,k=!1,T=void 0;try{for(var L=N[Symbol.iterator](),D;!(p=(D=L.next()).done)&&(h.push(D.value),!(m&&h.length===m));p=!0);}catch(C){k=!0,T=C}finally{try{!p&&L.return&&L.return()}finally{if(k)throw T}}return h}return function(N,m){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return O(N,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function O(N,m){for(var h=0;h<m.length;h++){var p=m[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(N,p.key,p)}}return function(N,m,h){return m&&O(N.prototype,m),h&&O(N,h),N}}(),_=d(0),y=r(_),v=d(21),c=r(v),o=d(11),t=r(o),e=d(8),u=r(e),l=d(10),a=r(l);function r(O){return O&&O.__esModule?O:{default:O}}function i(O){if(Array.isArray(O)){for(var N=0,m=Array(O.length);N<O.length;N++)m[N]=O[N];return m}else return Array.from(O)}function f(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}var n=(0,a.default)("quill:selection"),s=function O(N){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,O),this.index=N,this.length=m},A=function(){function O(N,m){var h=this;f(this,O),this.emitter=m,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){h.mouseDown||setTimeout(h.update.bind(h,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(p,k){p===u.default.events.TEXT_CHANGE&&k.length()>0&&h.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(h.hasFocus()){var p=h.getNativeRange();p!=null&&p.start.node!==h.cursor.textNode&&h.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(p.start.node,p.start.offset,p.end.node,p.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(p,k){if(k.range){var T=k.range,L=T.startNode,D=T.startOffset,C=T.endNode,Z=T.endOffset;h.setNativeRange(L,D,C,Z)}}),this.update(u.default.sources.SILENT)}return w(O,[{key:"handleComposition",value:function(){var m=this;this.root.addEventListener("compositionstart",function(){m.composing=!0}),this.root.addEventListener("compositionend",function(){if(m.composing=!1,m.cursor.parent){var h=m.cursor.restore();if(!h)return;setTimeout(function(){m.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var m=this;this.emitter.listenDOM("mousedown",document.body,function(){m.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){m.mouseDown=!1,m.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(m,h){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[m])){this.scroll.update();var p=this.getNativeRange();if(!(p==null||!p.native.collapsed||y.default.query(m,y.default.Scope.BLOCK))){if(p.start.node!==this.cursor.textNode){var k=y.default.find(p.start.node,!1);if(k==null)return;if(k instanceof y.default.Leaf){var T=k.split(p.start.offset);k.parent.insertBefore(this.cursor,T)}else k.insertBefore(this.cursor,p.start.node);this.cursor.attach()}this.cursor.format(m,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(m){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,p=this.scroll.length();m=Math.min(m,p-1),h=Math.min(m+h,p-1)-m;var k=void 0,T=this.scroll.leaf(m),L=P(T,2),D=L[0],C=L[1];if(D==null)return null;var Z=D.position(C,!0),M=P(Z,2);k=M[0],C=M[1];var R=document.createRange();if(h>0){R.setStart(k,C);var E=this.scroll.leaf(m+h),S=P(E,2);if(D=S[0],C=S[1],D==null)return null;var q=D.position(C,!0),F=P(q,2);return k=F[0],C=F[1],R.setEnd(k,C),R.getBoundingClientRect()}else{var B="left",x=void 0;return k instanceof Text?(C<k.data.length?(R.setStart(k,C),R.setEnd(k,C+1)):(R.setStart(k,C-1),R.setEnd(k,C),B="right"),x=R.getBoundingClientRect()):(x=D.domNode.getBoundingClientRect(),C>0&&(B="right")),{bottom:x.top+x.height,height:x.height,left:x[B],right:x[B],top:x.top,width:0}}}},{key:"getNativeRange",value:function(){var m=document.getSelection();if(m==null||m.rangeCount<=0)return null;var h=m.getRangeAt(0);if(h==null)return null;var p=this.normalizeNative(h);return n.info("getNativeRange",p),p}},{key:"getRange",value:function(){var m=this.getNativeRange();if(m==null)return[null,null];var h=this.normalizedToRange(m);return[h,m]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(m){var h=this,p=[[m.start.node,m.start.offset]];m.native.collapsed||p.push([m.end.node,m.end.offset]);var k=p.map(function(D){var C=P(D,2),Z=C[0],M=C[1],R=y.default.find(Z,!0),E=R.offset(h.scroll);return M===0?E:R instanceof y.default.Container?E+R.length():E+R.index(Z,M)}),T=Math.min(Math.max.apply(Math,i(k)),this.scroll.length()-1),L=Math.min.apply(Math,[T].concat(i(k)));return new s(L,T-L)}},{key:"normalizeNative",value:function(m){if(!g(this.root,m.startContainer)||!m.collapsed&&!g(this.root,m.endContainer))return null;var h={start:{node:m.startContainer,offset:m.startOffset},end:{node:m.endContainer,offset:m.endOffset},native:m};return[h.start,h.end].forEach(function(p){for(var k=p.node,T=p.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>T)k=k.childNodes[T],T=0;else if(k.childNodes.length===T)k=k.lastChild,T=k instanceof Text?k.data.length:k.childNodes.length+1;else break;p.node=k,p.offset=T}),h}},{key:"rangeToNative",value:function(m){var h=this,p=m.collapsed?[m.index]:[m.index,m.index+m.length],k=[],T=this.scroll.length();return p.forEach(function(L,D){L=Math.min(T-1,L);var C=void 0,Z=h.scroll.leaf(L),M=P(Z,2),R=M[0],E=M[1],S=R.position(E,D!==0),q=P(S,2);C=q[0],E=q[1],k.push(C,E)}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(m){var h=this.lastRange;if(h!=null){var p=this.getBounds(h.index,h.length);if(p!=null){var k=this.scroll.length()-1,T=this.scroll.line(Math.min(h.index,k)),L=P(T,1),D=L[0],C=D;if(h.length>0){var Z=this.scroll.line(Math.min(h.index+h.length,k)),M=P(Z,1);C=M[0]}if(!(D==null||C==null)){var R=m.getBoundingClientRect();p.top<R.top?m.scrollTop-=R.top-p.top:p.bottom>R.bottom&&(m.scrollTop+=p.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(m,h){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",m,h,p,k),!(m!=null&&(this.root.parentNode==null||m.parentNode==null||p.parentNode==null))){var L=document.getSelection();if(L!=null)if(m!=null){this.hasFocus()||this.root.focus();var D=(this.getNativeRange()||{}).native;if(D==null||T||m!==D.startContainer||h!==D.startOffset||p!==D.endContainer||k!==D.endOffset){m.tagName=="BR"&&(h=[].indexOf.call(m.parentNode.childNodes,m),m=m.parentNode),p.tagName=="BR"&&(k=[].indexOf.call(p.parentNode.childNodes,p),p=p.parentNode);var C=document.createRange();C.setStart(m,h),C.setEnd(p,k),L.removeAllRanges(),L.addRange(C)}}else L.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(m){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof h=="string"&&(p=h,h=!1),n.info("setRange",m),m!=null){var k=this.rangeToNative(m);this.setNativeRange.apply(this,i(k).concat([h]))}else this.setNativeRange(null);this.update(p)}},{key:"update",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,h=this.lastRange,p=this.getRange(),k=P(p,2),T=k[0],L=k[1];if(this.lastRange=T,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(h,this.lastRange)){var D;!this.composing&&L!=null&&L.native.collapsed&&L.start.node!==this.cursor.textNode&&this.cursor.restore();var C=[u.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),m];if((D=this.emitter).emit.apply(D,[u.default.events.EDITOR_CHANGE].concat(C)),m!==u.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,C)}}}}]),O}();function g(O,N){try{N.parentNode}catch{return!1}return N instanceof Text&&(N=N.parentNode),O.contains(N)}b.Range=s,b.default=A},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),w=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=d(0),y=v(_);function v(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return P(l,[{key:"insertInto",value:function(r,i){r.children.length===0?w(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",b.default=e},function(I,b,d){var P=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(44),_=d(30),y=d(1),v=function(o){P(t,o);function t(e){var u=o.call(this,e)||this;return u.build(),u}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 w.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=c(u);e.insertBefore(l,e.children.head||void 0)}catch(a){if(a instanceof y.ParchmentError)return;throw a}})},t.prototype.deleteAt=function(e,u){if(e===0&&u===this.length())return this.remove();this.children.forEachAt(e,u,function(l,a,r){l.deleteAt(a,r)})},t.prototype.descendant=function(e,u){var l=this.children.find(u),a=l[0],r=l[1];return e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e?[a,r]:a instanceof t?a.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,u,l){u===void 0&&(u=0),l===void 0&&(l=Number.MAX_VALUE);var a=[],r=l;return this.children.forEachAt(u,l,function(i,f,n){(e.blotName==null&&e(i)||e.blotName!=null&&i instanceof e)&&a.push(i),i instanceof t&&(a=a.concat(i.descendants(e,f,r))),r-=n}),a},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,u,l,a){this.children.forEachAt(e,u,function(r,i,f){r.formatAt(i,f,l,a)})},t.prototype.insertAt=function(e,u,l){var a=this.children.find(e),r=a[0],i=a[1];if(r)r.insertAt(i,u,l);else{var f=l==null?y.create("text",u):y.create(u,l);this.appendChild(f)}},t.prototype.insertBefore=function(e,u){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,u)},t.prototype.length=function(){return this.children.reduce(function(e,u){return e+u.length()},0)},t.prototype.moveChildren=function(e,u){this.children.forEach(function(l){e.insertBefore(l,u)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var u=y.create(this.statics.defaultChild);this.appendChild(u),u.optimize(e)}else this.remove()},t.prototype.path=function(e,u){u===void 0&&(u=!1);var l=this.children.find(e,u),a=l[0],r=l[1],i=[[this,e]];return a instanceof t?i.concat(a.path(r,u)):(a!=null&&i.push([a,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,u){if(u===void 0&&(u=!1),!u){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(a,r,i){a=a.split(r,u),l.appendChild(a)}),l},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,u){var l=this,a=[],r=[];e.forEach(function(i){i.target===l.domNode&&i.type==="childList"&&(a.push.apply(a,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()}}),a.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=c(i);(n.next!=f||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,f||void 0))})},t}(_.default);function c(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(u){t.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}b.default=v},function(I,b,d){var P=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(12),_=d(31),y=d(17),v=d(1),c=function(o){P(t,o);function t(e){var u=o.call(this,e)||this;return u.attributes=new _.default(u.domNode),u}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,u){var l=v.query(e);l instanceof w.default?this.attributes.attribute(l,u):u&&l!=null&&(e!==this.statics.blotName||this.formats()[e]!==u)&&this.replaceWith(e,u)},t.prototype.formats=function(){var e=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(e[this.statics.blotName]=u),e},t.prototype.replaceWith=function(e,u){var l=o.prototype.replaceWith.call(this,e,u);return this.attributes.copy(l),l},t.prototype.update=function(e,u){var l=this;o.prototype.update.call(this,e,u),e.some(function(a){return a.target===l.domNode&&a.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(e,u){var l=o.prototype.wrap.call(this,e,u);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(y.default);b.default=c},function(I,b,d){var P=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){v(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(30),_=d(1),y=function(v){P(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.value=function(o){return!0},c.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},c.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},c.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},c.scope=_.Scope.INLINE_BLOT,c}(w.default);b.default=y},function(I,b,d){var P=d(11),w=d(3),_={attributes:{compose:function(v,c,o){typeof v!="object"&&(v={}),typeof c!="object"&&(c={});var t=w(!0,{},c);o||(t=Object.keys(t).reduce(function(u,l){return t[l]!=null&&(u[l]=t[l]),u},{}));for(var e in v)v[e]!==void 0&&c[e]===void 0&&(t[e]=v[e]);return Object.keys(t).length>0?t:void 0},diff:function(v,c){typeof v!="object"&&(v={}),typeof c!="object"&&(c={});var o=Object.keys(v).concat(Object.keys(c)).reduce(function(t,e){return P(v[e],c[e])||(t[e]=c[e]===void 0?null:c[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(v,c,o){if(typeof v!="object")return c;if(typeof c=="object"){if(!o)return c;var t=Object.keys(c).reduce(function(e,u){return v[u]===void 0&&(e[u]=c[u]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(v){return new y(v)},length:function(v){return typeof v.delete=="number"?v.delete:typeof v.retain=="number"?v.retain:typeof v.insert=="string"?v.insert.length:1}};function y(v){this.ops=v,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(v){v||(v=1/0);var c=this.ops[this.index];if(c){var o=this.offset,t=_.length(c);if(v>=t-o?(v=t-o,this.index+=1,this.offset=0):this.offset+=v,typeof c.delete=="number")return{delete:v};var e={};return c.attributes&&(e.attributes=c.attributes),typeof c.retain=="number"?e.retain=v:typeof c.insert=="string"?e.insert=c.insert.substr(o,v):e.insert=c.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 v=this.offset,c=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=v,this.index=c,[o].concat(t)}else return[]},I.exports=_},function(I,b){var d=function(){function P(l,a){return a!=null&&l instanceof a}var w;try{w=Map}catch{w=function(){}}var _;try{_=Set}catch{_=function(){}}var y;try{y=Promise}catch{y=function(){}}function v(l,a,r,i,f){typeof a=="object"&&(r=a.depth,i=a.prototype,f=a.includeNonEnumerable,a=a.circular);var n=[],s=[],A=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof r>"u"&&(r=1/0);function g(O,N){if(O===null)return null;if(N===0)return O;var m,h;if(typeof O!="object")return O;if(P(O,w))m=new w;else if(P(O,_))m=new _;else if(P(O,y))m=new y(function(R,E){O.then(function(S){R(g(S,N-1))},function(S){E(g(S,N-1))})});else if(v.__isArray(O))m=[];else if(v.__isRegExp(O))m=new RegExp(O.source,u(O)),O.lastIndex&&(m.lastIndex=O.lastIndex);else if(v.__isDate(O))m=new Date(O.getTime());else{if(A&&Buffer.isBuffer(O))return Buffer.allocUnsafe?m=Buffer.allocUnsafe(O.length):m=new Buffer(O.length),O.copy(m),m;P(O,Error)?m=Object.create(O):typeof i>"u"?(h=Object.getPrototypeOf(O),m=Object.create(h)):(m=Object.create(i),h=i)}if(a){var p=n.indexOf(O);if(p!=-1)return s[p];n.push(O),s.push(m)}P(O,w)&&O.forEach(function(R,E){var S=g(E,N-1),q=g(R,N-1);m.set(S,q)}),P(O,_)&&O.forEach(function(R){var E=g(R,N-1);m.add(E)});for(var k in O){var T;h&&(T=Object.getOwnPropertyDescriptor(h,k)),!(T&&T.set==null)&&(m[k]=g(O[k],N-1))}if(Object.getOwnPropertySymbols)for(var L=Object.getOwnPropertySymbols(O),k=0;k<L.length;k++){var D=L[k],C=Object.getOwnPropertyDescriptor(O,D);C&&!C.enumerable&&!f||(m[D]=g(O[D],N-1),C.enumerable||Object.defineProperty(m,D,{enumerable:!1}))}if(f)for(var Z=Object.getOwnPropertyNames(O),k=0;k<Z.length;k++){var M=Z[k],C=Object.getOwnPropertyDescriptor(O,M);C&&C.enumerable||(m[M]=g(O[M],N-1),Object.defineProperty(m,M,{enumerable:!1}))}return m}return g(l,r)}v.clonePrototype=function(a){if(a===null)return null;var r=function(){};return r.prototype=a,new r};function c(l){return Object.prototype.toString.call(l)}v.__objToStr=c;function o(l){return typeof l=="object"&&c(l)==="[object Date]"}v.__isDate=o;function t(l){return typeof l=="object"&&c(l)==="[object Array]"}v.__isArray=t;function e(l){return typeof l=="object"&&c(l)==="[object RegExp]"}v.__isRegExp=e;function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return v.__getRegExpFlags=u,v}();typeof I=="object"&&I.exports&&(I.exports=d)},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function m(h,p){var k=[],T=!0,L=!1,D=void 0;try{for(var C=h[Symbol.iterator](),Z;!(T=(Z=C.next()).done)&&(k.push(Z.value),!(p&&k.length===p));T=!0);}catch(M){L=!0,D=M}finally{try{!T&&C.return&&C.return()}finally{if(L)throw D}}return k}return function(h,p){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return m(h,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function m(h,p){for(var k=0;k<p.length;k++){var T=p[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}return function(h,p,k){return p&&m(h.prototype,p),k&&m(h,k),h}}(),_=function m(h,p,k){h===null&&(h=Function.prototype);var T=Object.getOwnPropertyDescriptor(h,p);if(T===void 0){var L=Object.getPrototypeOf(h);return L===null?void 0:m(L,p,k)}else{if("value"in T)return T.value;var D=T.get;return D===void 0?void 0:D.call(k)}},y=d(0),v=n(y),c=d(8),o=n(c),t=d(4),e=n(t),u=d(16),l=n(u),a=d(13),r=n(a),i=d(25),f=n(i);function n(m){return m&&m.__esModule?m:{default:m}}function s(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}function A(m,h){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:m}function g(m,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);m.prototype=Object.create(h&&h.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(m,h):m.__proto__=h)}function O(m){return m instanceof e.default||m instanceof t.BlockEmbed}var N=function(m){g(h,m);function h(p,k){s(this,h);var T=A(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,p));return T.emitter=k.emitter,Array.isArray(k.whitelist)&&(T.whitelist=k.whitelist.reduce(function(L,D){return L[D]=!0,L},{})),T.domNode.addEventListener("DOMNodeInserted",function(){}),T.optimize(),T.enable(),T}return w(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,T){var L=this.line(k),D=P(L,2),C=D[0],Z=D[1],M=this.line(k+T),R=P(M,1),E=R[0];if(_(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,k,T),E!=null&&C!==E&&Z>0){if(C instanceof t.BlockEmbed||E instanceof t.BlockEmbed){this.optimize();return}if(C instanceof r.default){var S=C.newlineIndex(C.length(),!0);if(S>-1&&(C=C.split(S+1),C===E)){this.optimize();return}}else if(E instanceof r.default){var q=E.newlineIndex(0);q>-1&&E.split(q+1)}var F=E.children.head instanceof l.default?null:E.children.head;C.moveChildren(E,F),C.remove()}this.optimize()}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",k)}},{key:"formatAt",value:function(k,T,L,D){this.whitelist!=null&&!this.whitelist[L]||(_(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,k,T,L,D),this.optimize())}},{key:"insertAt",value:function(k,T,L){if(!(L!=null&&this.whitelist!=null&&!this.whitelist[T])){if(k>=this.length())if(L==null||v.default.query(T,v.default.Scope.BLOCK)==null){var D=v.default.create(this.statics.defaultChild);this.appendChild(D),L==null&&T.endsWith(`
27
+ `)&&(T=T.slice(0,-1)),D.insertAt(0,T,L)}else{var C=v.default.create(T,L);this.appendChild(C)}else _(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,k,T,L);this.optimize()}}},{key:"insertBefore",value:function(k,T){if(k.statics.scope===v.default.Scope.INLINE_BLOT){var L=v.default.create(this.statics.defaultChild);L.appendChild(k),k=L}_(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,k,T)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(O,k)}},{key:"lines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,L=function D(C,Z,M){var R=[],E=M;return C.children.forEachAt(Z,M,function(S,q,F){O(S)?R.push(S):S instanceof v.default.Container&&(R=R.concat(D(S,q,E))),E-=F}),R};return L(this,k,T)}},{key:"optimize",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(_(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,k,T),k.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,k,T))}},{key:"path",value:function(k){return _(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(this.batch!==!0){var T=o.default.sources.USER;typeof k=="string"&&(T=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,T,k),_(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,T,k)}}}]),h}(v.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[e.default,t.BlockEmbed,f.default],b.default=N},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.SHORTKEY=b.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},w=function(){function x(j,U){var H=[],V=!0,Y=!1,X=void 0;try{for(var Q=j[Symbol.iterator](),nt;!(V=(nt=Q.next()).done)&&(H.push(nt.value),!(U&&H.length===U));V=!0);}catch(rt){Y=!0,X=rt}finally{try{!V&&Q.return&&Q.return()}finally{if(Y)throw X}}return H}return function(j,U){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return x(j,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function x(j,U){for(var H=0;H<U.length;H++){var V=U[H];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(j,V.key,V)}}return function(j,U,H){return U&&x(j.prototype,U),H&&x(j,H),j}}(),y=d(21),v=m(y),c=d(11),o=m(c),t=d(3),e=m(t),u=d(2),l=m(u),a=d(20),r=m(a),i=d(0),f=m(i),n=d(5),s=m(n),A=d(10),g=m(A),O=d(9),N=m(O);function m(x){return x&&x.__esModule?x:{default:x}}function h(x,j,U){return j in x?Object.defineProperty(x,j,{value:U,enumerable:!0,configurable:!0,writable:!0}):x[j]=U,x}function p(x,j){if(!(x instanceof j))throw new TypeError("Cannot call a class as a function")}function k(x,j){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:x}function T(x,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);x.prototype=Object.create(j&&j.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(x,j):x.__proto__=j)}var L=(0,g.default)("quill:keyboard"),D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(x){T(j,x),_(j,null,[{key:"match",value:function(H,V){return V=B(V),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Y){return!!V[Y]!==H[Y]&&V[Y]!==null})?!1:V.key===(H.which||H.keyCode)}}]);function j(U,H){p(this,j);var V=k(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,U,H));return V.bindings={},Object.keys(V.options.bindings).forEach(function(Y){Y==="list autofill"&&U.scroll.whitelist!=null&&!U.scroll.whitelist.list||V.options.bindings[Y]&&V.addBinding(V.options.bindings[Y])}),V.addBinding({key:j.keys.ENTER,shiftKey:null},S),V.addBinding({key:j.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0},M),V.addBinding({key:j.keys.DELETE},{collapsed:!0},R)):(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},M),V.addBinding({key:j.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),V.addBinding({key:j.keys.BACKSPACE},{collapsed:!1},E),V.addBinding({key:j.keys.DELETE},{collapsed:!1},E),V.addBinding({key:j.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},M),V.listen(),V}return _(j,[{key:"addBinding",value:function(H){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},X=B(H);if(X==null||X.key==null)return L.warn("Attempted to add invalid keyboard binding",X);typeof V=="function"&&(V={handler:V}),typeof Y=="function"&&(Y={handler:Y}),X=(0,e.default)(X,V,Y),this.bindings[X.key]=this.bindings[X.key]||[],this.bindings[X.key].push(X)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var Y=V.which||V.keyCode,X=(H.bindings[Y]||[]).filter(function(lt){return j.match(V,lt)});if(X.length!==0){var Q=H.quill.getSelection();if(!(Q==null||!H.quill.hasFocus())){var nt=H.quill.getLine(Q.index),rt=w(nt,2),ft=rt[0],at=rt[1],z=H.quill.getLeaf(Q.index),K=w(z,2),W=K[0],G=K[1],$=Q.length===0?[W,G]:H.quill.getLeaf(Q.index+Q.length),J=w($,2),tt=J[0],et=J[1],st=W instanceof f.default.Text?W.value().slice(0,G):"",ht=tt instanceof f.default.Text?tt.value().slice(et):"",ot={collapsed:Q.length===0,empty:Q.length===0&&ft.length()<=1,format:H.quill.getFormat(Q),offset:at,prefix:st,suffix:ht},Nt=X.some(function(lt){if(lt.collapsed!=null&&lt.collapsed!==ot.collapsed||lt.empty!=null&&lt.empty!==ot.empty||lt.offset!=null&&lt.offset!==ot.offset)return!1;if(Array.isArray(lt.format)){if(lt.format.every(function(dt){return ot.format[dt]==null}))return!1}else if(P(lt.format)==="object"&&!Object.keys(lt.format).every(function(dt){return lt.format[dt]===!0?ot.format[dt]!=null:lt.format[dt]===!1?ot.format[dt]==null:(0,o.default)(lt.format[dt],ot.format[dt])}))return!1;return lt.prefix!=null&&!lt.prefix.test(ot.prefix)||lt.suffix!=null&&!lt.suffix.test(ot.suffix)?!1:lt.handler.call(H,Q,ot)!==!0});Nt&&V.preventDefault()}}}})}}]),j}(N.default);C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","+1",s.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","-1",s.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(j,U){U.format.indent!=null?this.quill.format("indent","-1",s.default.sources.USER):U.format.list!=null&&this.quill.format("list",!1,s.default.sources.USER)}},"indent code-block":q(!0),"outdent code-block":q(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(j){this.quill.deleteText(j.index-1,1,s.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(j){this.quill.history.cutoff();var U=new l.default().retain(j.index).delete(j.length).insert(" ");this.quill.updateContents(U,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index+1,s.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(j,U){this.quill.format("list",!1,s.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,s.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(j){var U=this.quill.getLine(j.index),H=w(U,2),V=H[0],Y=H[1],X=(0,e.default)({},V.formats(),{list:"checked"}),Q=new l.default().retain(j.index).insert(`
28
+ `,X).retain(V.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(j,U){var H=this.quill.getLine(j.index),V=w(H,2),Y=V[0],X=V[1],Q=new l.default().retain(j.index).insert(`
29
+ `,U.format).retain(Y.length()-X-1).retain(1,{header:null});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(j,U){var H=U.prefix.length,V=this.quill.getLine(j.index),Y=w(V,2),X=Y[0],Q=Y[1];if(Q>H)return!0;var nt=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":nt="unchecked";break;case"[x]":nt="checked";break;case"-":case"*":nt="bullet";break;default:nt="ordered"}this.quill.insertText(j.index," ",s.default.sources.USER),this.quill.history.cutoff();var rt=new l.default().retain(j.index-Q).delete(H+1).retain(X.length()-2-Q).retain(1,{list:nt});this.quill.updateContents(rt,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index-H,s.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(j){var U=this.quill.getLine(j.index),H=w(U,2),V=H[0],Y=H[1],X=new l.default().retain(j.index+V.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(X,s.default.sources.USER)}},"embed left":Z(C.keys.LEFT,!1),"embed left shift":Z(C.keys.LEFT,!0),"embed right":Z(C.keys.RIGHT,!1),"embed right shift":Z(C.keys.RIGHT,!0)}};function Z(x,j){var U,H=x===C.keys.LEFT?"prefix":"suffix";return U={key:x,shiftKey:j,altKey:null},h(U,H,/^$/),h(U,"handler",function(Y){var X=Y.index;x===C.keys.RIGHT&&(X+=Y.length+1);var Q=this.quill.getLeaf(X),nt=w(Q,1),rt=nt[0];return rt instanceof f.default.Embed?(x===C.keys.LEFT?j?this.quill.setSelection(Y.index-1,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index-1,s.default.sources.USER):j?this.quill.setSelection(Y.index,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index+Y.length+1,s.default.sources.USER),!1):!0}),U}function M(x,j){if(!(x.index===0||this.quill.getLength()<=1)){var U=this.quill.getLine(x.index),H=w(U,1),V=H[0],Y={};if(j.offset===0){var X=this.quill.getLine(x.index-1),Q=w(X,1),nt=Q[0];if(nt!=null&&nt.length()>1){var rt=V.formats(),ft=this.quill.getFormat(x.index-1,1);Y=r.default.attributes.diff(rt,ft)||{}}}var at=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(j.prefix)?2:1;this.quill.deleteText(x.index-at,at,s.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(x.index-at,at,Y,s.default.sources.USER),this.quill.focus()}}function R(x,j){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(j.suffix)?2:1;if(!(x.index>=this.quill.getLength()-U)){var H={},V=0,Y=this.quill.getLine(x.index),X=w(Y,1),Q=X[0];if(j.offset>=Q.length()-1){var nt=this.quill.getLine(x.index+1),rt=w(nt,1),ft=rt[0];if(ft){var at=Q.formats(),z=this.quill.getFormat(x.index,1);H=r.default.attributes.diff(at,z)||{},V=ft.length()}}this.quill.deleteText(x.index,U,s.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(x.index+V-1,U,H,s.default.sources.USER)}}function E(x){var j=this.quill.getLines(x),U={};if(j.length>1){var H=j[0].formats(),V=j[j.length-1].formats();U=r.default.attributes.diff(V,H)||{}}this.quill.deleteText(x,s.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(x.index,1,U,s.default.sources.USER),this.quill.setSelection(x.index,s.default.sources.SILENT),this.quill.focus()}function S(x,j){var U=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var H=Object.keys(j.format).reduce(function(V,Y){return f.default.query(Y,f.default.Scope.BLOCK)&&!Array.isArray(j.format[Y])&&(V[Y]=j.format[Y]),V},{});this.quill.insertText(x.index,`
30
+ `,H,s.default.sources.USER),this.quill.setSelection(x.index+1,s.default.sources.SILENT),this.quill.focus(),Object.keys(j.format).forEach(function(V){H[V]==null&&(Array.isArray(j.format[V])||V!=="link"&&U.quill.format(V,j.format[V],s.default.sources.USER))})}function q(x){return{key:C.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(U){var H=f.default.query("code-block"),V=U.index,Y=U.length,X=this.quill.scroll.descendant(H,V),Q=w(X,2),nt=Q[0],rt=Q[1];if(nt!=null){var ft=this.quill.getIndex(nt),at=nt.newlineIndex(rt,!0)+1,z=nt.newlineIndex(ft+rt+Y),K=nt.domNode.textContent.slice(at,z).split(`
31
+ `);rt=0,K.forEach(function(W,G){x?(nt.insertAt(at+rt,H.TAB),rt+=H.TAB.length,G===0?V+=H.TAB.length:Y+=H.TAB.length):W.startsWith(H.TAB)&&(nt.deleteAt(at+rt,H.TAB.length),rt-=H.TAB.length,G===0?V-=H.TAB.length:Y-=H.TAB.length),rt+=W.length+1}),this.quill.update(s.default.sources.USER),this.quill.setSelection(V,Y,s.default.sources.SILENT)}}}}function F(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],s.default.sources.USER)}}}function B(x){if(typeof x=="string"||typeof x=="number")return B({key:x});if((typeof x>"u"?"undefined":P(x))==="object"&&(x=(0,v.default)(x,!1)),typeof x.key=="string")if(C.keys[x.key.toUpperCase()]!=null)x.key=C.keys[x.key.toUpperCase()];else if(x.key.length===1)x.key=x.key.toUpperCase().charCodeAt(0);else return null;return x.shortKey&&(x[D]=x.shortKey,delete x.shortKey),x}b.default=C,b.SHORTKEY=D},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function r(i,f){var n=[],s=!0,A=!1,g=void 0;try{for(var O=i[Symbol.iterator](),N;!(s=(N=O.next()).done)&&(n.push(N.value),!(f&&n.length===f));s=!0);}catch(m){A=!0,g=m}finally{try{!s&&O.return&&O.return()}finally{if(A)throw g}}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")}}(),w=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},_=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),y=d(0),v=t(y),c=d(7),o=t(c);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 u(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 a=function(r){l(i,r),_(i,null,[{key:"value",value:function(){}}]);function i(f,n){e(this,i);var s=u(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return s.selection=n,s.textNode=document.createTextNode(i.CONTENTS),s.domNode.appendChild(s.textNode),s._length=0,s}return _(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,s){if(this._length!==0)return w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,s);for(var A=this,g=0;A!=null&&A.statics.scope!==v.default.Scope.BLOCK_BLOT;)g+=A.offset(A.parent),A=A.parent;A!=null&&(this._length=i.CONTENTS.length,A.optimize(),A.formatAt(g,i.CONTENTS.length,n,s),this._length=0)}},{key:"index",value:function(n,s){return n===this.textNode?0:w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){w(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,s=this.selection.getNativeRange(),A=void 0,g=void 0,O=void 0;if(s!=null&&s.start.node===n&&s.end.node===n){var N=[n,s.start.offset,s.end.offset];A=N[0],g=N[1],O=N[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 m=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(A=this.next.domNode,this.next.insertAt(0,m),this.textNode.data=i.CONTENTS):(this.textNode.data=m,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),g!=null){var h=[g,O].map(function(k){return Math.max(0,Math.min(A.data.length,k-1))}),p=P(h,2);return g=p[0],O=p[1],{startNode:A,startOffset:g,endNode:A,endOffset:O}}}}},{key:"update",value:function(n,s){var A=this;if(n.some(function(O){return O.type==="characterData"&&O.target===A.textNode})){var g=this.restore();g&&(s.range=g)}}},{key:"value",value:function(){return""}}]),i}(v.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\uFEFF",b.default=a},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(0),w=v(P),_=d(4),y=v(_);function v(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(w.default.Container);e.allowedChildren=[y.default,_.BlockEmbed,e],b.default=e},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.ColorStyle=b.ColorClass=b.ColorAttributor=void 0;var P=function(){function a(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&&a(r.prototype,i),f&&a(r,f),r}}(),w=function a(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:a(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},_=d(0),y=v(_);function v(a){return a&&a.__esModule?a:{default:a}}function c(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function o(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function t(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var e=function(a){t(r,a);function r(){return c(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"value",value:function(f){var n=w(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(s){return("00"+parseInt(s).toString(16)).slice(-2)}).join("")):n}}]),r}(y.default.Attributor.Style),u=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),l=new e("color","color",{scope:y.default.Scope.INLINE});b.ColorAttributor=e,b.ColorClass=u,b.ColorStyle=l},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.sanitize=b.default=void 0;var P=function(){function l(a,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(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),w=function l(a,r,i){a===null&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(f===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,r,i)}else{if("value"in f)return f.value;var s=f.get;return s===void 0?void 0:s.call(i)}},_=d(6),y=v(_);function v(l){return l&&l.__esModule?l:{default:l}}function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function t(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var e=function(l){t(a,l);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=w(a.__proto__||Object.getPrototypeOf(a),"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 u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),a}(y.default);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(l,a){var r=document.createElement("a");r.href=l;var i=r.href.slice(0,r.href.indexOf(":"));return a.indexOf(i)>-1}b.default=e,b.sanitize=u},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},w=function(){function a(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&&a(r.prototype,i),f&&a(r,f),r}}(),_=d(23),y=o(_),v=d(107),c=o(v);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}var e=0;function u(a,r){a.setAttribute(r,a.getAttribute(r)!=="true")}var l=function(){function a(r){var i=this;t(this,a),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 w(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(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(s){switch(s.keyCode){case y.default.keys.ENTER:f.selectItem(n,!0),s.preventDefault();break;case y.default.keys.ESCAPE:f.escape(),s.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=c.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 s=i.buildItem(n);f.appendChild(s),n.selected===!0&&i.selectItem(s)}),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":P(Event))==="object"){var s=document.createEvent("Event");s.initEvent("change",!0,!0),this.select.dispatchEvent(s)}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)}}]),a}();b.default=l},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(0),w=L(P),_=d(5),y=L(_),v=d(4),c=L(v),o=d(16),t=L(o),e=d(25),u=L(e),l=d(24),a=L(l),r=d(35),i=L(r),f=d(6),n=L(f),s=d(22),A=L(s),g=d(7),O=L(g),N=d(55),m=L(N),h=d(42),p=L(h),k=d(23),T=L(k);function L(D){return D&&D.__esModule?D:{default:D}}y.default.register({"blots/block":c.default,"blots/block/embed":v.BlockEmbed,"blots/break":t.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":O.default,"modules/clipboard":m.default,"modules/history":p.default,"modules/keyboard":T.default}),w.default.register(c.default,t.default,a.default,n.default,A.default,O.default),b.default=y.default},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(1),w=function(){function _(y){this.domNode=y,this.domNode[P.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 P.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?v=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?v=document.createElement(y):v=document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},_.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},_.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return P.create(y)},_.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},_.prototype.deleteAt=function(y,v){var c=this.isolate(y,v);c.remove()},_.prototype.formatAt=function(y,v,c,o){var t=this.isolate(y,v);if(P.query(c,P.Scope.BLOT)!=null&&o)t.wrap(c,o);else if(P.query(c,P.Scope.ATTRIBUTE)!=null){var e=P.create(this.statics.scope);t.wrap(e),e.format(c,o)}},_.prototype.insertAt=function(y,v,c){var o=c==null?P.create("text",v):P.create(v,c),t=this.split(y);this.parent.insertBefore(o,t)},_.prototype.insertInto=function(y,v){v===void 0&&(v=null),this.parent!=null&&this.parent.children.remove(this);var c=null;y.children.insertBefore(this,v),v!=null&&(c=v.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=c)&&y.domNode.insertBefore(this.domNode,c),this.parent=y,this.attach()},_.prototype.isolate=function(y,v){var c=this.split(y);return c.split(v),c},_.prototype.length=function(){return 1},_.prototype.offset=function(y){return y===void 0&&(y=this.parent),this.parent==null||this==y?0:this.parent.children.offset(this)+this.parent.offset(y)},_.prototype.optimize=function(y){this.domNode[P.DATA_KEY]!=null&&delete this.domNode[P.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,v){var c=typeof y=="string"?P.create(y,v):y;return c.replace(this),c},_.prototype.split=function(y,v){return y===0?this:this.next},_.prototype.update=function(y,v){},_.prototype.wrap=function(y,v){var c=typeof y=="string"?P.create(y,v):y;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},_.blotName="abstract",_}();b.default=w},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(12),w=d(32),_=d(33),y=d(1),v=function(){function c(o){this.attributes={},this.domNode=o,this.build()}return c.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])},c.prototype.build=function(){var o=this;this.attributes={};var t=P.default.keys(this.domNode),e=w.default.keys(this.domNode),u=_.default.keys(this.domNode);t.concat(e).concat(u).forEach(function(l){var a=y.query(l,y.Scope.ATTRIBUTE);a instanceof P.default&&(o.attributes[a.attrName]=a)})},c.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var u=t.attributes[e].value(t.domNode);o.format(e,u)})},c.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={}},c.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},{})},c}();b.default=v},function(I,b,d){var P=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){v(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(12);function _(v,c){var o=v.getAttribute("class")||"";return o.split(/\s+/).filter(function(t){return t.indexOf(c+"-")===0})}var y=function(v){P(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},c.prototype.add=function(o,t){return this.canAdd(o,t)?(this.remove(o),o.classList.add(this.keyName+"-"+t),!0):!1},c.prototype.remove=function(o){var t=_(o,this.keyName);t.forEach(function(e){o.classList.remove(e)}),o.classList.length===0&&o.removeAttribute("class")},c.prototype.value=function(o){var t=_(o,this.keyName)[0]||"",e=t.slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},c}(w.default);b.default=y},function(I,b,d){var P=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){v(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(12);function _(v){var c=v.split("-"),o=c.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return c[0]+o}var y=function(v){P(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},c.prototype.add=function(o,t){return this.canAdd(o,t)?(o.style[_(this.keyName)]=t,!0):!1},c.prototype.remove=function(o){o.style[_(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},c.prototype.value=function(o){var t=o.style[_(this.keyName)];return this.canAdd(o,t)?t:""},c}(w.default);b.default=y},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function y(v,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,t.key,t)}}return function(v,c,o){return c&&y(v.prototype,c),o&&y(v,o),v}}();function w(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(v,c){w(this,y),this.quill=v,this.options=c,this.modules={}}return P(y,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(o){c.modules[o]==null&&c.addModule(o)})}},{key:"addModule",value:function(c){var o=this.quill.constructor.import("modules/"+c);return this.modules[c]=new o(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),y}();_.DEFAULTS={modules:{}},_.themes={default:_},b.default=_},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),w=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},_=d(0),y=o(_),v=d(7),c=o(v);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 u(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",a=function(r){u(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(s){n.contentNode.appendChild(s)}),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 P(i,[{key:"index",value:function(n,s){return n===this.leftGuard?0:n===this.rightGuard?1:w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"restore",value:function(n){var s=void 0,A=void 0,g=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var O=this.prev.length();this.prev.insertAt(O,g),s={startNode:this.prev.domNode,startOffset:O+g.length}}else A=document.createTextNode(g),this.parent.insertBefore(y.default.create(A),this),s={startNode:A,startOffset:g.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,g),s={startNode:this.next.domNode,startOffset:g.length}):(A=document.createTextNode(g),this.parent.insertBefore(y.default.create(A),this.next),s={startNode:A,startOffset:g.length}));return n.data=l,s}},{key:"update",value:function(n,s){var A=this;n.forEach(function(g){if(g.type==="characterData"&&(g.target===A.leftGuard||g.target===A.rightGuard)){var O=A.restore(g.target);O&&(s.range=O)}})}}]),i}(y.default.Embed);b.default=a},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.AlignStyle=b.AlignClass=b.AlignAttribute=void 0;var P=d(0),w=_(P);function _(t){return t&&t.__esModule?t:{default:t}}var y={scope:w.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new w.default.Attributor.Attribute("align","align",y),c=new w.default.Attributor.Class("align","ql-align",y),o=new w.default.Attributor.Style("align","text-align",y);b.AlignAttribute=v,b.AlignClass=c,b.AlignStyle=o},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.BackgroundStyle=b.BackgroundClass=void 0;var P=d(0),w=y(P),_=d(26);function y(o){return o&&o.__esModule?o:{default:o}}var v=new w.default.Attributor.Class("background","ql-bg",{scope:w.default.Scope.INLINE}),c=new _.ColorAttributor("background","background-color",{scope:w.default.Scope.INLINE});b.BackgroundClass=v,b.BackgroundStyle=c},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.DirectionStyle=b.DirectionClass=b.DirectionAttribute=void 0;var P=d(0),w=_(P);function _(t){return t&&t.__esModule?t:{default:t}}var y={scope:w.default.Scope.BLOCK,whitelist:["rtl"]},v=new w.default.Attributor.Attribute("direction","dir",y),c=new w.default.Attributor.Class("direction","ql-direction",y),o=new w.default.Attributor.Style("direction","direction",y);b.DirectionAttribute=v,b.DirectionClass=c,b.DirectionStyle=o},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.FontClass=b.FontStyle=void 0;var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),w=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},_=d(0),y=v(_);function v(r){return r&&r.__esModule?r:{default:r}}function c(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"]},u=new y.default.Attributor.Class("font","ql-font",e),l=function(r){t(i,r);function i(){return c(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return P(i,[{key:"value",value:function(n){return w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(y.default.Attributor.Style),a=new l("font","font-family",e);b.FontStyle=a,b.FontClass=u},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.SizeStyle=b.SizeClass=void 0;var P=d(0),w=_(P);function _(c){return c&&c.__esModule?c:{default:c}}var y=new w.default.Attributor.Class("size","ql-size",{scope:w.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new w.default.Attributor.Style("size","font-size",{scope:w.default.Scope.INLINE,whitelist:["10px","18px","32px"]});b.SizeClass=y,b.SizeStyle=v},function(I,b,d){I.exports={align:{"":d(76),center:d(77),right:d(78),justify:d(79)},background:d(80),blockquote:d(81),bold:d(82),clean:d(83),code:d(58),"code-block":d(58),color:d(84),direction:{"":d(85),rtl:d(86)},float:{center:d(87),full:d(88),left:d(89),right:d(90)},formula:d(91),header:{1:d(92),2:d(93)},italic:d(94),image:d(95),indent:{"+1":d(96),"-1":d(97)},link:d(98),list:{ordered:d(99),bullet:d(100),check:d(101)},script:{sub:d(102),super:d(103)},strike:d(104),underline:d(105),video:d(106)}},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.getLastChangeIndex=b.default=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),w=d(0),_=t(w),y=d(5),v=t(y),c=d(9),o=t(c);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 u(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 a=function(f){l(n,f);function n(s,A){e(this,n);var g=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,s,A));return g.lastRecorded=0,g.ignoreChange=!1,g.clear(),g.quill.on(v.default.events.EDITOR_CHANGE,function(O,N,m,h){O!==v.default.events.TEXT_CHANGE||g.ignoreChange||(!g.options.userOnly||h===v.default.sources.USER?g.record(N,m):g.transform(N))}),g.quill.keyboard.addBinding({key:"Z",shortKey:!0},g.undo.bind(g)),g.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},g.redo.bind(g)),/Win/i.test(navigator.platform)&&g.quill.keyboard.addBinding({key:"Y",shortKey:!0},g.redo.bind(g)),g}return P(n,[{key:"change",value:function(A,g){if(this.stack[A].length!==0){var O=this.stack[A].pop();this.stack[g].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[A],v.default.sources.USER),this.ignoreChange=!1;var N=i(O[A]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,g){if(A.ops.length!==0){this.stack.redo=[];var O=this.quill.getContents().diff(g),N=Date.now();if(this.lastRecorded+this.options.delay>N&&this.stack.undo.length>0){var m=this.stack.undo.pop();O=O.compose(m.undo),A=m.redo.compose(A)}else this.lastRecorded=N;this.stack.undo.push({redo:A,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)}),this.stack.redo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);a.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(s){return _.default.query(s,_.default.Scope.BLOCK)!=null}):!1}function i(f){var n=f.reduce(function(A,g){return A+=g.delete||0,A},0),s=f.length()-n;return r(f)&&(s-=1),s}b.default=a,b.getLastChangeIndex=i},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BaseTooltip=void 0;var P=function(){function S(q,F){for(var B=0;B<F.length;B++){var x=F[B];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(q,x.key,x)}}return function(q,F,B){return F&&S(q.prototype,F),B&&S(q,B),q}}(),w=function S(q,F,B){q===null&&(q=Function.prototype);var x=Object.getOwnPropertyDescriptor(q,F);if(x===void 0){var j=Object.getPrototypeOf(q);return j===null?void 0:S(j,F,B)}else{if("value"in x)return x.value;var U=x.get;return U===void 0?void 0:U.call(B)}},_=d(3),y=N(_),v=d(2),c=N(v),o=d(8),t=N(o),e=d(23),u=N(e),l=d(34),a=N(l),r=d(59),i=N(r),f=d(60),n=N(f),s=d(28),A=N(s),g=d(61),O=N(g);function N(S){return S&&S.__esModule?S:{default:S}}function m(S,q){if(!(S instanceof q))throw new TypeError("Cannot call a class as a function")}function h(S,q){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:S}function p(S,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);S.prototype=Object.create(q&&q.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(S,q):S.__proto__=q)}var k=[!1,"center","right","justify"],T=["#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"],L=[!1,"serif","monospace"],D=["1","2","3",!1],C=["small",!1,"large","huge"],Z=function(S){p(q,S);function q(F,B){m(this,q);var x=h(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,F,B)),j=function U(H){if(!document.body.contains(F.root))return document.body.removeEventListener("click",U);x.tooltip!=null&&!x.tooltip.root.contains(H.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),x.pickers!=null&&x.pickers.forEach(function(V){V.container.contains(H.target)||V.close()})};return F.emitter.listenDOM("click",document.body,j),x}return P(q,[{key:"addModule",value:function(B){var x=w(q.prototype.__proto__||Object.getPrototypeOf(q.prototype),"addModule",this).call(this,B);return B==="toolbar"&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(B,x){B.forEach(function(j){var U=j.getAttribute("class")||"";U.split(/\s+/).forEach(function(H){if(H.startsWith("ql-")&&(H=H.slice(3),x[H]!=null))if(H==="direction")j.innerHTML=x[H][""]+x[H].rtl;else if(typeof x[H]=="string")j.innerHTML=x[H];else{var V=j.value||"";V!=null&&x[H][V]&&(j.innerHTML=x[H][V])}})})}},{key:"buildPickers",value:function(B,x){var j=this;this.pickers=B.map(function(H){if(H.classList.contains("ql-align"))return H.querySelector("option")==null&&E(H,k),new n.default(H,x.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var V=H.classList.contains("ql-background")?"background":"color";return H.querySelector("option")==null&&E(H,T,V==="background"?"#ffffff":"#000000"),new i.default(H,x[V])}else return H.querySelector("option")==null&&(H.classList.contains("ql-font")?E(H,L):H.classList.contains("ql-header")?E(H,D):H.classList.contains("ql-size")&&E(H,C)),new A.default(H)});var U=function(){j.pickers.forEach(function(V){V.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,U)}}]),q}(a.default);Z.DEFAULTS=(0,y.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var q=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var B=new FileReader;B.onload=function(x){var j=q.quill.getSelection(!0);q.quill.updateContents(new c.default().retain(j.index).delete(j.length).insert({image:x.target.result}),t.default.sources.USER),q.quill.setSelection(j.index+1,t.default.sources.SILENT),F.value=""},B.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var M=function(S){p(q,S);function q(F,B){m(this,q);var x=h(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,F,B));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}return P(q,[{key:"listen",value:function(){var B=this;this.textbox.addEventListener("keydown",function(x){u.default.match(x,"enter")?(B.save(),x.preventDefault()):u.default.match(x,"escape")&&(B.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),x!=null?this.textbox.value=x:B!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+B)||""),this.root.setAttribute("data-mode",B)}},{key:"restoreFocus",value:function(){var B=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=B}},{key:"save",value:function(){var B=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var x=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",B,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",B,t.default.sources.USER)),this.quill.root.scrollTop=x;break}case"video":B=R(B);case"formula":{if(!B)break;var j=this.quill.getSelection(!0);if(j!=null){var U=j.index+j.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),B,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(U+1," ",t.default.sources.USER),this.quill.setSelection(U+2,t.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),q}(O.default);function R(S){var q=S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return q?(q[1]||"https")+"://www.youtube.com/embed/"+q[2]+"?showinfo=0":(q=S.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(q[1]||"https")+"://player.vimeo.com/video/"+q[2]+"/":S}function E(S,q){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;q.forEach(function(B){var x=document.createElement("option");B===F?x.setAttribute("selected","selected"):x.setAttribute("value",B),S.appendChild(x)})}b.BaseTooltip=M,b.default=Z},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function w(){this.head=this.tail=null,this.length=0}return w.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))},w.prototype.contains=function(_){for(var y,v=this.iterator();y=v();)if(y===_)return!0;return!1},w.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)},w.prototype.offset=function(_){for(var y=0,v=this.head;v!=null;){if(v===_)return y;y+=v.length(),v=v.next}return-1},w.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)},w.prototype.iterator=function(_){return _===void 0&&(_=this.head),function(){var y=_;return _!=null&&(_=_.next),y}},w.prototype.find=function(_,y){y===void 0&&(y=!1);for(var v,c=this.iterator();v=c();){var o=v.length();if(_<o||y&&_===o&&(v.next==null||v.next.length()!==0))return[v,_];_-=o}return[null,0]},w.prototype.forEach=function(_){for(var y,v=this.iterator();y=v();)_(y)},w.prototype.forEachAt=function(_,y,v){if(!(y<=0))for(var c=this.find(_),o=c[0],t=c[1],e,u=_-t,l=this.iterator(o);(e=l())&&u<_+y;){var a=e.length();_>u?v(e,_-u,Math.min(y,u+a-_)):v(e,0,Math.min(a,_+y-u)),u+=a}},w.prototype.map=function(_){return this.reduce(function(y,v){return y.push(_(v)),y},[])},w.prototype.reduce=function(_,y){for(var v,c=this.iterator();v=c();)y=_(y,v);return y},w}();b.default=P},function(I,b,d){var P=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(17),_=d(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},v=100,c=function(o){P(t,o);function t(e){var u=o.call(this,e)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,y),u.attach(),u}return t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,u){this.update(),e===0&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,e,u)},t.prototype.formatAt=function(e,u,l,a){this.update(),o.prototype.formatAt.call(this,e,u,l,a)},t.prototype.insertAt=function(e,u,l){this.update(),o.prototype.insertAt.call(this,e,u,l)},t.prototype.optimize=function(e,u){var l=this;e===void 0&&(e=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var r=function(s,A){A===void 0&&(A=!0),!(s==null||s===l)&&s.domNode.parentNode!=null&&(s.domNode[_.DATA_KEY].mutations==null&&(s.domNode[_.DATA_KEY].mutations=[]),A&&r(s.parent))},i=function(s){s.domNode[_.DATA_KEY]==null||s.domNode[_.DATA_KEY].mutations==null||(s instanceof w.default&&s.children.forEach(i),s.optimize(u))},f=e,n=0;f.length>0;n+=1){if(n>=v)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(s){var A=_.find(s.target,!0);A!=null&&(A.domNode===s.target&&(s.type==="childList"?(r(_.find(s.previousSibling,!1)),[].forEach.call(s.addedNodes,function(g){var O=_.find(g,!1);r(O,!1),O instanceof w.default&&O.children.forEach(function(N){r(N,!1)})})):s.type==="attributes"&&r(A.prev)),r(A))}),this.children.forEach(i),f=[].slice.call(this.observer.takeRecords()),a=f.slice();a.length>0;)e.push(a.pop())}},t.prototype.update=function(e,u){var l=this;u===void 0&&(u={}),e=e||this.observer.takeRecords(),e.map(function(a){var r=_.find(a.target,!0);return r==null?null:r.domNode[_.DATA_KEY].mutations==null?(r.domNode[_.DATA_KEY].mutations=[a],r):(r.domNode[_.DATA_KEY].mutations.push(a),null)}).forEach(function(a){a==null||a===l||a.domNode[_.DATA_KEY]==null||a.update(a.domNode[_.DATA_KEY].mutations||[],u)}),this.domNode[_.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[_.DATA_KEY].mutations,u),this.optimize(e,u)},t.blotName="scroll",t.defaultChild="block",t.scope=_.Scope.BLOCK_BLOT,t.tagName="DIV",t}(w.default);b.default=c},function(I,b,d){var P=this&&this.__extends||function(){var c=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){c(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(18),_=d(1);function y(c,o){if(Object.keys(c).length!==Object.keys(o).length)return!1;for(var t in c)if(c[t]!==o[t])return!1;return!0}var v=function(c){P(o,c);function o(){return c!==null&&c.apply(this,arguments)||this}return o.formats=function(t){if(t.tagName!==o.tagName)return c.formats.call(this,t)},o.prototype.format=function(t,e){var u=this;t===this.statics.blotName&&!e?(this.children.forEach(function(l){l instanceof w.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap()):c.prototype.format.call(this,t,e)},o.prototype.formatAt=function(t,e,u,l){if(this.formats()[u]!=null||_.query(u,_.Scope.ATTRIBUTE)){var a=this.isolate(t,e);a.format(u,l)}else c.prototype.formatAt.call(this,t,e,u,l)},o.prototype.optimize=function(t){c.prototype.optimize.call(this,t);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&y(e,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=_.Scope.INLINE_BLOT,o.tagName="SPAN",o}(w.default);b.default=v},function(I,b,d){var P=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){v(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(18),_=d(1),y=function(v){P(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.formats=function(o){var t=_.query(c.blotName).tagName;if(o.tagName!==t)return v.formats.call(this,o)},c.prototype.format=function(o,t){_.query(o,_.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!t?this.replaceWith(c.blotName):v.prototype.format.call(this,o,t))},c.prototype.formatAt=function(o,t,e,u){_.query(e,_.Scope.BLOCK)!=null?this.format(e,u):v.prototype.formatAt.call(this,o,t,e,u)},c.prototype.insertAt=function(o,t,e){if(e==null||_.query(t,_.Scope.INLINE)!=null)v.prototype.insertAt.call(this,o,t,e);else{var u=this.split(o),l=_.create(t,e);u.parent.insertBefore(l,u)}},c.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,o,t)},c.blotName="block",c.scope=_.Scope.BLOCK_BLOT,c.tagName="P",c}(w.default);b.default=y},function(I,b,d){var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,c){v.__proto__=c}||function(v,c){for(var o in c)c.hasOwnProperty(o)&&(v[o]=c[o])};return function(v,c){y(v,c);function o(){this.constructor=v}v.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(19),_=function(y){P(v,y);function v(){return y!==null&&y.apply(this,arguments)||this}return v.formats=function(c){},v.prototype.format=function(c,o){y.prototype.formatAt.call(this,0,this.length(),c,o)},v.prototype.formatAt=function(c,o,t,e){c===0&&o===this.length()?this.format(t,e):y.prototype.formatAt.call(this,c,o,t,e)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v}(w.default);b.default=_},function(I,b,d){var P=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){v(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(b,"__esModule",{value:!0});var w=d(19),_=d(1),y=function(v){P(c,v);function c(o){var t=v.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return c.create=function(o){return document.createTextNode(o)},c.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},c.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},c.prototype.index=function(o,t){return this.domNode===o?t:-1},c.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):v.prototype.insertAt.call(this,o,t,e)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(o){v.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(o,t){return[this.domNode,o]},c.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},c.prototype.update=function(o,t){var e=this;o.some(function(u){return u.type==="characterData"&&u.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=_.Scope.INLINE_BLOT,c}(w.default);b.default=y},function(I,b,d){var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var w=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,y){return arguments.length>1&&!this.contains(_)==!y?y:w.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 v=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>v.length)&&(y=v.length),y-=_.length;var c=v.indexOf(_,y);return c!==-1&&c===y}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof y!="function")throw new TypeError("predicate must be a function");for(var v=Object(this),c=v.length>>>0,o=arguments[1],t,e=0;e<c;e++)if(t=v[e],y.call(o,t,e,v))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(I,b){var d=-1,P=1,w=0;function _(n,s,A){if(n==s)return n?[[w,n]]:[];(A<0||n.length<A)&&(A=null);var g=o(n,s),O=n.substring(0,g);n=n.substring(g),s=s.substring(g),g=t(n,s);var N=n.substring(n.length-g);n=n.substring(0,n.length-g),s=s.substring(0,s.length-g);var m=y(n,s);return O&&m.unshift([w,O]),N&&m.push([w,N]),u(m),A!=null&&(m=r(m,A)),m=i(m),m}function y(n,s){var A;if(!n)return[[P,s]];if(!s)return[[d,n]];var g=n.length>s.length?n:s,O=n.length>s.length?s:n,N=g.indexOf(O);if(N!=-1)return A=[[P,g.substring(0,N)],[w,O],[P,g.substring(N+O.length)]],n.length>s.length&&(A[0][0]=A[2][0]=d),A;if(O.length==1)return[[d,n],[P,s]];var m=e(n,s);if(m){var h=m[0],p=m[1],k=m[2],T=m[3],L=m[4],D=_(h,k),C=_(p,T);return D.concat([[w,L]],C)}return v(n,s)}function v(n,s){for(var A=n.length,g=s.length,O=Math.ceil((A+g)/2),N=O,m=2*O,h=new Array(m),p=new Array(m),k=0;k<m;k++)h[k]=-1,p[k]=-1;h[N+1]=0,p[N+1]=0;for(var T=A-g,L=T%2!=0,D=0,C=0,Z=0,M=0,R=0;R<O;R++){for(var E=-R+D;E<=R-C;E+=2){var S=N+E,q;E==-R||E!=R&&h[S-1]<h[S+1]?q=h[S+1]:q=h[S-1]+1;for(var F=q-E;q<A&&F<g&&n.charAt(q)==s.charAt(F);)q++,F++;if(h[S]=q,q>A)C+=2;else if(F>g)D+=2;else if(L){var B=N+T-E;if(B>=0&&B<m&&p[B]!=-1){var x=A-p[B];if(q>=x)return c(n,s,q,F)}}}for(var j=-R+Z;j<=R-M;j+=2){var B=N+j,x;j==-R||j!=R&&p[B-1]<p[B+1]?x=p[B+1]:x=p[B-1]+1;for(var U=x-j;x<A&&U<g&&n.charAt(A-x-1)==s.charAt(g-U-1);)x++,U++;if(p[B]=x,x>A)M+=2;else if(U>g)Z+=2;else if(!L){var S=N+T-j;if(S>=0&&S<m&&h[S]!=-1){var q=h[S],F=N+q-S;if(x=A-x,q>=x)return c(n,s,q,F)}}}}return[[d,n],[P,s]]}function c(n,s,A,g){var O=n.substring(0,A),N=s.substring(0,g),m=n.substring(A),h=s.substring(g),p=_(O,N),k=_(m,h);return p.concat(k)}function o(n,s){if(!n||!s||n.charAt(0)!=s.charAt(0))return 0;for(var A=0,g=Math.min(n.length,s.length),O=g,N=0;A<O;)n.substring(N,O)==s.substring(N,O)?(A=O,N=A):g=O,O=Math.floor((g-A)/2+A);return O}function t(n,s){if(!n||!s||n.charAt(n.length-1)!=s.charAt(s.length-1))return 0;for(var A=0,g=Math.min(n.length,s.length),O=g,N=0;A<O;)n.substring(n.length-O,n.length-N)==s.substring(s.length-O,s.length-N)?(A=O,N=A):g=O,O=Math.floor((g-A)/2+A);return O}function e(n,s){var A=n.length>s.length?n:s,g=n.length>s.length?s:n;if(A.length<4||g.length*2<A.length)return null;function O(C,Z,M){for(var R=C.substring(M,M+Math.floor(C.length/4)),E=-1,S="",q,F,B,x;(E=Z.indexOf(R,E+1))!=-1;){var j=o(C.substring(M),Z.substring(E)),U=t(C.substring(0,M),Z.substring(0,E));S.length<U+j&&(S=Z.substring(E-U,E)+Z.substring(E,E+j),q=C.substring(0,M-U),F=C.substring(M+j),B=Z.substring(0,E-U),x=Z.substring(E+j))}return S.length*2>=C.length?[q,F,B,x,S]:null}var N=O(A,g,Math.ceil(A.length/4)),m=O(A,g,Math.ceil(A.length/2)),h;if(!N&&!m)return null;m?N?h=N[4].length>m[4].length?N:m:h=m:h=N;var p,k,T,L;n.length>s.length?(p=h[0],k=h[1],T=h[2],L=h[3]):(T=h[0],L=h[1],p=h[2],k=h[3]);var D=h[4];return[p,k,T,L,D]}function u(n){n.push([w,""]);for(var s=0,A=0,g=0,O="",N="",m;s<n.length;)switch(n[s][0]){case P:g++,N+=n[s][1],s++;break;case d:A++,O+=n[s][1],s++;break;case w:A+g>1?(A!==0&&g!==0&&(m=o(N,O),m!==0&&(s-A-g>0&&n[s-A-g-1][0]==w?n[s-A-g-1][1]+=N.substring(0,m):(n.splice(0,0,[w,N.substring(0,m)]),s++),N=N.substring(m),O=O.substring(m)),m=t(N,O),m!==0&&(n[s][1]=N.substring(N.length-m)+n[s][1],N=N.substring(0,N.length-m),O=O.substring(0,O.length-m))),A===0?n.splice(s-g,A+g,[P,N]):g===0?n.splice(s-A,A+g,[d,O]):n.splice(s-A-g,A+g,[d,O],[P,N]),s=s-A-g+(A?1:0)+(g?1:0)+1):s!==0&&n[s-1][0]==w?(n[s-1][1]+=n[s][1],n.splice(s,1)):s++,g=0,A=0,O="",N="";break}n[n.length-1][1]===""&&n.pop();var h=!1;for(s=1;s<n.length-1;)n[s-1][0]==w&&n[s+1][0]==w&&(n[s][1].substring(n[s][1].length-n[s-1][1].length)==n[s-1][1]?(n[s][1]=n[s-1][1]+n[s][1].substring(0,n[s][1].length-n[s-1][1].length),n[s+1][1]=n[s-1][1]+n[s+1][1],n.splice(s-1,1),h=!0):n[s][1].substring(0,n[s+1][1].length)==n[s+1][1]&&(n[s-1][1]+=n[s+1][1],n[s][1]=n[s][1].substring(n[s+1][1].length)+n[s+1][1],n.splice(s+1,1),h=!0)),s++;h&&u(n)}var l=_;l.INSERT=P,l.DELETE=d,l.EQUAL=w,I.exports=l;function a(n,s){if(s===0)return[w,n];for(var A=0,g=0;g<n.length;g++){var O=n[g];if(O[0]===d||O[0]===w){var N=A+O[1].length;if(s===N)return[g+1,n];if(s<N){n=n.slice();var m=s-A,h=[O[0],O[1].slice(0,m)],p=[O[0],O[1].slice(m)];return n.splice(g,1,h,p),[g+1,n]}else A=N}}throw new Error("cursor_pos is out of bounds!")}function r(n,s){var A=a(n,s),g=A[1],O=A[0],N=g[O],m=g[O+1];if(N==null)return n;if(N[0]!==w)return n;if(m!=null&&N[1]+m[1]===m[1]+N[1])return g.splice(O,2,m,N),f(g,O,2);if(m!=null&&m[1].indexOf(N[1])===0){g.splice(O,2,[m[0],N[1]],[0,N[1]]);var h=m[1].slice(N[1].length);return h.length>0&&g.splice(O+2,0,[m[0],h]),f(g,O,3)}else return n}function i(n){for(var s=!1,A=function(m){return m.charCodeAt(0)>=56320&&m.charCodeAt(0)<=57343},g=function(m){return m.charCodeAt(m.length-1)>=55296&&m.charCodeAt(m.length-1)<=56319},O=2;O<n.length;O+=1)n[O-2][0]===w&&g(n[O-2][1])&&n[O-1][0]===d&&A(n[O-1][1])&&n[O][0]===P&&A(n[O][1])&&(s=!0,n[O-1][1]=n[O-2][1].slice(-1)+n[O-1][1],n[O][1]=n[O-2][1].slice(-1)+n[O][1],n[O-2][1]=n[O-2][1].slice(0,-1));if(!s)return n;for(var N=[],O=0;O<n.length;O+=1)n[O][1].length>0&&N.push(n[O]);return N}function f(n,s,A){for(var g=s+A-1;g>=0&&g>=s-1;g--)if(g+1<n.length){var O=n[g],N=n[g+1];O[0]===N[1]&&n.splice(g,2,[O[0],O[1]+N[1]])}return n}},function(I,b){b=I.exports=typeof Object.keys=="function"?Object.keys:d,b.shim=d;function d(P){var w=[];for(var _ in P)w.push(_);return w}},function(I,b){var d=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";b=I.exports=d?P:w,b.supported=P;function P(_){return Object.prototype.toString.call(_)=="[object Arguments]"}b.unsupported=w;function w(_){return _&&typeof _=="object"&&typeof _.length=="number"&&Object.prototype.hasOwnProperty.call(_,"callee")&&!Object.prototype.propertyIsEnumerable.call(_,"callee")||!1}},function(I,b){var d=Object.prototype.hasOwnProperty,P="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(P=!1));function _(v,c,o){this.fn=v,this.context=c,this.once=o||!1}function y(){this._events=new w,this._eventsCount=0}y.prototype.eventNames=function(){var c=[],o,t;if(this._eventsCount===0)return c;for(t in o=this._events)d.call(o,t)&&c.push(P?t.slice(1):t);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(o)):c},y.prototype.listeners=function(c,o){var t=P?P+c:c,e=this._events[t];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var u=0,l=e.length,a=new Array(l);u<l;u++)a[u]=e[u].fn;return a},y.prototype.emit=function(c,o,t,e,u,l){var a=P?P+c:c;if(!this._events[a])return!1;var r=this._events[a],i=arguments.length,f,n;if(r.fn){switch(r.once&&this.removeListener(c,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,u),!0;case 6:return r.fn.call(r.context,o,t,e,u,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 s=r.length,A;for(n=0;n<s;n++)switch(r[n].once&&this.removeListener(c,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(A=1,f=new Array(i-1);A<i;A++)f[A-1]=arguments[A];r[n].fn.apply(r[n].context,f)}}return!0},y.prototype.on=function(c,o,t){var e=new _(o,t||this),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},y.prototype.once=function(c,o,t){var e=new _(o,t||this,!0),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},y.prototype.removeListener=function(c,o,t,e){var u=P?P+c:c;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new w:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!e||l.once)&&(!t||l.context===t)&&(--this._eventsCount===0?this._events=new w:delete this._events[u]);else{for(var a=0,r=[],i=l.length;a<i;a++)(l[a].fn!==o||e&&!l[a].once||t&&l[a].context!==t)&&r.push(l[a]);r.length?this._events[u]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new w:delete this._events[u]}return this},y.prototype.removeAllListeners=function(c){var o;return c?(o=P?P+c:c,this._events[o]&&(--this._eventsCount===0?this._events=new w:delete this._events[o])):(this._events=new w,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=P,y.EventEmitter=y,typeof I<"u"&&(I.exports=y)},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.matchText=b.matchSpacing=b.matchNewline=b.matchBlot=b.matchAttributor=b.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},w=function(){function z(K,W){var G=[],$=!0,J=!1,tt=void 0;try{for(var et=K[Symbol.iterator](),st;!($=(st=et.next()).done)&&(G.push(st.value),!(W&&G.length===W));$=!0);}catch(ht){J=!0,tt=ht}finally{try{!$&&et.return&&et.return()}finally{if(J)throw tt}}return G}return function(K,W){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return z(K,W);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function z(K,W){for(var G=0;G<W.length;G++){var $=W[G];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(K,$.key,$)}}return function(K,W,G){return W&&z(K.prototype,W),G&&z(K,G),K}}(),y=d(3),v=p(y),c=d(2),o=p(c),t=d(0),e=p(t),u=d(5),l=p(u),a=d(10),r=p(a),i=d(9),f=p(i),n=d(36),s=d(37),A=d(13),g=p(A),O=d(26),N=d(38),m=d(39),h=d(40);function p(z){return z&&z.__esModule?z:{default:z}}function k(z,K,W){return K in z?Object.defineProperty(z,K,{value:W,enumerable:!0,configurable:!0,writable:!0}):z[K]=W,z}function T(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}function L(z,K){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:z}function D(z,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(z,K):z.__proto__=K)}var C=(0,r.default)("quill:clipboard"),Z="__ql-matcher",M=[[Node.TEXT_NODE,at],[Node.TEXT_NODE,nt],["br",Y],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,ft],["li",Q],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",X]],R=[n.AlignAttribute,N.DirectionAttribute].reduce(function(z,K){return z[K.keyName]=K,z},{}),E=[n.AlignStyle,s.BackgroundStyle,O.ColorStyle,N.DirectionStyle,m.FontStyle,h.SizeStyle].reduce(function(z,K){return z[K.keyName]=K,z},{}),S=function(z){D(K,z);function K(W,G){T(this,K);var $=L(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,W,G));return $.quill.root.addEventListener("paste",$.onPaste.bind($)),$.container=$.quill.addContainer("ql-clipboard"),$.container.setAttribute("contenteditable",!0),$.container.setAttribute("tabindex",-1),$.matchers=[],M.concat($.options.matchers).forEach(function(J){var tt=w(J,2),et=tt[0],st=tt[1];!G.matchVisual&&st===rt||$.addMatcher(et,st)}),$}return _(K,[{key:"addMatcher",value:function(G,$){this.matchers.push([G,$])}},{key:"convert",value:function(G){if(typeof G=="string")return this.container.innerHTML=G.replace(/\>\r?\n +\</g,"><"),this.convert();var $=this.quill.getFormat(this.quill.selection.savedRange.index);if($[g.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",new o.default().insert(J,k({},g.default.blotName,$[g.default.blotName]))}var tt=this.prepareMatching(),et=w(tt,2),st=et[0],ht=et[1],ot=j(this.container,st,ht);return B(ot,`
33
+ `)&&ot.ops[ot.ops.length-1].attributes==null&&(ot=ot.compose(new o.default().retain(ot.length()-1).delete(1))),C.log("convert",this.container.innerHTML,ot),this.container.innerHTML="",ot}},{key:"dangerouslyPasteHTML",value:function(G,$){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof G=="string")this.quill.setContents(this.convert(G),$),this.quill.setSelection(0,l.default.sources.SILENT);else{var tt=this.convert($);this.quill.updateContents(new o.default().retain(G).concat(tt),J),this.quill.setSelection(G+tt.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(G){var $=this;if(!(G.defaultPrevented||!this.quill.isEnabled())){var J=this.quill.getSelection(),tt=new o.default().retain(J.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){tt=tt.concat($.convert()).delete(J.length),$.quill.updateContents(tt,l.default.sources.USER),$.quill.setSelection(tt.length()-J.length,l.default.sources.SILENT),$.quill.scrollingContainer.scrollTop=et,$.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,$=[],J=[];return this.matchers.forEach(function(tt){var et=w(tt,2),st=et[0],ht=et[1];switch(st){case Node.TEXT_NODE:J.push(ht);break;case Node.ELEMENT_NODE:$.push(ht);break;default:[].forEach.call(G.container.querySelectorAll(st),function(ot){ot[Z]=ot[Z]||[],ot[Z].push(ht)});break}}),[$,J]}}]),K}(f.default);S.DEFAULTS={matchers:[],matchVisual:!0};function q(z,K,W){return(typeof K>"u"?"undefined":P(K))==="object"?Object.keys(K).reduce(function(G,$){return q(G,$,K[$])},z):z.reduce(function(G,$){return $.attributes&&$.attributes[K]?G.push($):G.insert($.insert,(0,v.default)({},k({},K,W),$.attributes))},new o.default)}function F(z){if(z.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return z[K]||(z[K]=window.getComputedStyle(z))}function B(z,K){for(var W="",G=z.ops.length-1;G>=0&&W.length<K.length;--G){var $=z.ops[G];if(typeof $.insert!="string")break;W=$.insert+W}return W.slice(-1*K.length)===K}function x(z){if(z.childNodes.length===0)return!1;var K=F(z);return["block","list-item"].indexOf(K.display)>-1}function j(z,K,W){return z.nodeType===z.TEXT_NODE?W.reduce(function(G,$){return $(z,G)},new o.default):z.nodeType===z.ELEMENT_NODE?[].reduce.call(z.childNodes||[],function(G,$){var J=j($,K,W);return $.nodeType===z.ELEMENT_NODE&&(J=K.reduce(function(tt,et){return et($,tt)},J),J=($[Z]||[]).reduce(function(tt,et){return et($,tt)},J)),G.concat(J)},new o.default):new o.default}function U(z,K,W){return q(W,z,!0)}function H(z,K){var W=e.default.Attributor.Attribute.keys(z),G=e.default.Attributor.Class.keys(z),$=e.default.Attributor.Style.keys(z),J={};return W.concat(G).concat($).forEach(function(tt){var et=e.default.query(tt,e.default.Scope.ATTRIBUTE);et!=null&&(J[et.attrName]=et.value(z),J[et.attrName])||(et=R[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(z)||void 0),et=E[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(et=E[tt],J[et.attrName]=et.value(z)||void 0))}),Object.keys(J).length>0&&(K=q(K,J)),K}function V(z,K){var W=e.default.query(z);if(W==null)return K;if(W.prototype instanceof e.default.Embed){var G={},$=W.value(z);$!=null&&(G[W.blotName]=$,K=new o.default().insert(G,W.formats(z)))}else typeof W.formats=="function"&&(K=q(K,W.blotName,W.formats(z)));return K}function Y(z,K){return B(K,`
34
+ `)||K.insert(`
35
+ `),K}function X(){return new o.default}function Q(z,K){var W=e.default.query(z);if(W==null||W.blotName!=="list-item"||!B(K,`
36
+ `))return K;for(var G=-1,$=z.parentNode;!$.classList.contains("ql-clipboard");)(e.default.query($)||{}).blotName==="list"&&(G+=1),$=$.parentNode;return G<=0?K:K.compose(new o.default().retain(K.length()-1).retain(1,{indent:G}))}function nt(z,K){return B(K,`
37
+ `)||(x(z)||K.length()>0&&z.nextSibling&&x(z.nextSibling))&&K.insert(`
38
+ `),K}function rt(z,K){if(x(z)&&z.nextElementSibling!=null&&!B(K,`
39
+
40
+ `)){var W=z.offsetHeight+parseFloat(F(z).marginTop)+parseFloat(F(z).marginBottom);z.nextElementSibling.offsetTop>z.offsetTop+W*1.5&&K.insert(`
41
+ `)}return K}function ft(z,K){var W={},G=z.style||{};return G.fontStyle&&F(z).fontStyle==="italic"&&(W.italic=!0),G.fontWeight&&(F(z).fontWeight.startsWith("bold")||parseInt(F(z).fontWeight)>=700)&&(W.bold=!0),Object.keys(W).length>0&&(K=q(K,W)),parseFloat(G.textIndent||0)>0&&(K=new o.default().insert(" ").concat(K)),K}function at(z,K){var W=z.data;if(z.parentNode.tagName==="O:P")return K.insert(W.trim());if(W.trim().length===0&&z.parentNode.classList.contains("ql-clipboard"))return K;if(!F(z.parentNode).whiteSpace.startsWith("pre")){var G=function(J,tt){return tt=tt.replace(/[^\u00a0]/g,""),tt.length<1&&J?" ":tt};W=W.replace(/\r\n/g," ").replace(/\n/g," "),W=W.replace(/\s\s+/g,G.bind(G,!0)),(z.previousSibling==null&&x(z.parentNode)||z.previousSibling!=null&&x(z.previousSibling))&&(W=W.replace(/^\s+/,G.bind(G,!1))),(z.nextSibling==null&&x(z.parentNode)||z.nextSibling!=null&&x(z.nextSibling))&&(W=W.replace(/\s+$/,G.bind(G,!1)))}return K.insert(W)}b.default=S,b.matchAttributor=H,b.matchBlot=V,b.matchNewline=nt,b.matchSpacing=rt,b.matchText=at},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),w=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=d(6),y=v(_);function v(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return P(l,[{key:"optimize",value:function(r){w(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 w(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"],b.default=e},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.addControls=b.default=void 0;var P=function(){function h(p,k){var T=[],L=!0,D=!1,C=void 0;try{for(var Z=p[Symbol.iterator](),M;!(L=(M=Z.next()).done)&&(T.push(M.value),!(k&&T.length===k));L=!0);}catch(R){D=!0,C=R}finally{try{!L&&Z.return&&Z.return()}finally{if(D)throw C}}return T}return function(p,k){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return h(p,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function h(p,k){for(var T=0;T<k.length;T++){var L=k[T];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(p,L.key,L)}}return function(p,k,T){return k&&h(p.prototype,k),T&&h(p,T),p}}(),_=d(2),y=r(_),v=d(0),c=r(v),o=d(5),t=r(o),e=d(10),u=r(e),l=d(9),a=r(l);function r(h){return h&&h.__esModule?h:{default:h}}function i(h,p,k){return p in h?Object.defineProperty(h,p,{value:k,enumerable:!0,configurable:!0,writable:!0}):h[p]=k,h}function f(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function n(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function s(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var A=(0,u.default)("quill:toolbar"),g=function(h){s(p,h);function p(k,T){f(this,p);var L=n(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,k,T));if(Array.isArray(L.options.container)){var D=document.createElement("div");N(D,L.options.container),k.container.parentNode.insertBefore(D,k.container),L.container=D}else typeof L.options.container=="string"?L.container=document.querySelector(L.options.container):L.container=L.options.container;if(!(L.container instanceof HTMLElement)){var C;return C=A.error("Container required for toolbar",L.options),n(L,C)}return L.container.classList.add("ql-toolbar"),L.controls=[],L.handlers={},Object.keys(L.options.handlers).forEach(function(Z){L.addHandler(Z,L.options.handlers[Z])}),[].forEach.call(L.container.querySelectorAll("button, select"),function(Z){L.attach(Z)}),L.quill.on(t.default.events.EDITOR_CHANGE,function(Z,M){Z===t.default.events.SELECTION_CHANGE&&L.update(M)}),L.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var Z=L.quill.selection.getRange(),M=P(Z,1),R=M[0];L.update(R)}),L}return w(p,[{key:"addHandler",value:function(T,L){this.handlers[T]=L}},{key:"attach",value:function(T){var L=this,D=[].find.call(T.classList,function(Z){return Z.indexOf("ql-")===0});if(D){if(D=D.slice(3),T.tagName==="BUTTON"&&T.setAttribute("type","button"),this.handlers[D]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[D]==null){A.warn("ignoring attaching to disabled format",D,T);return}if(c.default.query(D)==null){A.warn("ignoring attaching to nonexistent format",D,T);return}}var C=T.tagName==="SELECT"?"change":"click";T.addEventListener(C,function(Z){var M=void 0;if(T.tagName==="SELECT"){if(T.selectedIndex<0)return;var R=T.options[T.selectedIndex];R.hasAttribute("selected")?M=!1:M=R.value||!1}else T.classList.contains("ql-active")?M=!1:M=T.value||!T.hasAttribute("value"),Z.preventDefault();L.quill.focus();var E=L.quill.selection.getRange(),S=P(E,1),q=S[0];if(L.handlers[D]!=null)L.handlers[D].call(L,M);else if(c.default.query(D).prototype instanceof c.default.Embed){if(M=prompt("Enter "+D),!M)return;L.quill.updateContents(new y.default().retain(q.index).delete(q.length).insert(i({},D,M)),t.default.sources.USER)}else L.quill.format(D,M,t.default.sources.USER);L.update(q)}),this.controls.push([D,T])}}},{key:"update",value:function(T){var L=T==null?{}:this.quill.getFormat(T);this.controls.forEach(function(D){var C=P(D,2),Z=C[0],M=C[1];if(M.tagName==="SELECT"){var R=void 0;if(T==null)R=null;else if(L[Z]==null)R=M.querySelector("option[selected]");else if(!Array.isArray(L[Z])){var E=L[Z];typeof E=="string"&&(E=E.replace(/\"/g,'\\"')),R=M.querySelector('option[value="'+E+'"]')}R==null?(M.value="",M.selectedIndex=-1):R.selected=!0}else if(T==null)M.classList.remove("ql-active");else if(M.hasAttribute("value")){var S=L[Z]===M.getAttribute("value")||L[Z]!=null&&L[Z].toString()===M.getAttribute("value")||L[Z]==null&&!M.getAttribute("value");M.classList.toggle("ql-active",S)}else M.classList.toggle("ql-active",L[Z]!=null)})}}]),p}(a.default);g.DEFAULTS={};function O(h,p,k){var T=document.createElement("button");T.setAttribute("type","button"),T.classList.add("ql-"+p),k!=null&&(T.value=k),h.appendChild(T)}function N(h,p){Array.isArray(p[0])||(p=[p]),p.forEach(function(k){var T=document.createElement("span");T.classList.add("ql-formats"),k.forEach(function(L){if(typeof L=="string")O(T,L);else{var D=Object.keys(L)[0],C=L[D];Array.isArray(C)?m(T,D,C):O(T,D,C)}}),h.appendChild(T)})}function m(h,p,k){var T=document.createElement("select");T.classList.add("ql-"+p),k.forEach(function(L){var D=document.createElement("option");L!==!1?D.setAttribute("value",L):D.setAttribute("selected","selected"),T.appendChild(D)}),h.appendChild(T)}g.DEFAULTS={container:null,handlers:{clean:function(){var p=this,k=this.quill.getSelection();if(k!=null)if(k.length==0){var T=this.quill.getFormat();Object.keys(T).forEach(function(L){c.default.query(L,c.default.Scope.INLINE)!=null&&p.quill.format(L,!1)})}else this.quill.removeFormat(k,t.default.sources.USER)},direction:function(p){var k=this.quill.getFormat().align;p==="rtl"&&k==null?this.quill.format("align","right",t.default.sources.USER):!p&&k==="right"&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",p,t.default.sources.USER)},indent:function(p){var k=this.quill.getSelection(),T=this.quill.getFormat(k),L=parseInt(T.indent||0);if(p==="+1"||p==="-1"){var D=p==="+1"?1:-1;T.direction==="rtl"&&(D*=-1),this.quill.format("indent",L+D,t.default.sources.USER)}},link:function(p){p===!0&&(p=prompt("Enter link URL:")),this.quill.format("link",p,t.default.sources.USER)},list:function(p){var k=this.quill.getSelection(),T=this.quill.getFormat(k);p==="check"?T.list==="checked"||T.list==="unchecked"?this.quill.format("list",!1,t.default.sources.USER):this.quill.format("list","unchecked",t.default.sources.USER):this.quill.format("list",p,t.default.sources.USER)}}},b.default=g,b.addControls=N},function(I,b){I.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(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),w=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=d(28),y=v(_);function v(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(a,r){c(this,l);var i=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));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 P(l,[{key:"buildItem",value:function(r){var i=w(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){w(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);b.default=e},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),w=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=d(28),y=v(_);function v(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(a,r){c(this,l);var i=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));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 P(l,[{key:"selectItem",value:function(r,i){w(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);b.default=e},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function y(v,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,t.key,t)}}return function(v,c,o){return c&&y(v.prototype,c),o&&y(v,o),v}}();function w(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(v,c){var o=this;w(this,y),this.quill=v,this.boundsContainer=c||document.body,this.root=v.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 P(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var o=c.left+c.width/2-this.root.offsetWidth/2,t=c.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(),u=this.root.getBoundingClientRect(),l=0;if(u.right>e.right&&(l=e.right-u.right,this.root.style.left=o+l+"px"),u.left<e.left&&(l=e.left-u.left,this.root.style.left=o+l+"px"),u.bottom>e.bottom){var a=u.bottom-u.top,r=c.bottom-c.top+a;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}();b.default=_},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function m(h,p){var k=[],T=!0,L=!1,D=void 0;try{for(var C=h[Symbol.iterator](),Z;!(T=(Z=C.next()).done)&&(k.push(Z.value),!(p&&k.length===p));T=!0);}catch(M){L=!0,D=M}finally{try{!T&&C.return&&C.return()}finally{if(L)throw D}}return k}return function(h,p){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return m(h,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function m(h,p,k){h===null&&(h=Function.prototype);var T=Object.getOwnPropertyDescriptor(h,p);if(T===void 0){var L=Object.getPrototypeOf(h);return L===null?void 0:m(L,p,k)}else{if("value"in T)return T.value;var D=T.get;return D===void 0?void 0:D.call(k)}},_=function(){function m(h,p){for(var k=0;k<p.length;k++){var T=p[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}return function(h,p,k){return p&&m(h.prototype,p),k&&m(h,k),h}}(),y=d(3),v=f(y),c=d(8),o=f(c),t=d(43),e=f(t),u=d(27),l=f(u),a=d(15),r=d(41),i=f(r);function f(m){return m&&m.__esModule?m:{default:m}}function n(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}function s(m,h){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:m}function A(m,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);m.prototype=Object.create(h&&h.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(m,h):m.__proto__=h)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(m){A(h,m);function h(p,k){n(this,h),k.modules.toolbar!=null&&k.modules.toolbar.container==null&&(k.modules.toolbar.container=g);var T=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,p,k));return T.quill.container.classList.add("ql-snow"),T}return _(h,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),i.default),this.tooltip=new N(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(T,L){k.handlers.link.call(k,!L.format.link)})}}]),h}(e.default);O.DEFAULTS=(0,v.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(h){if(h){var p=this.quill.getSelection();if(p==null||p.length==0)return;var k=this.quill.getText(p);/^\S+@\S+\.\S+$/.test(k)&&k.indexOf("mailto:")!==0&&(k="mailto:"+k);var T=this.quill.theme.tooltip;T.edit("link",k)}else this.quill.format("link",!1)}}}}});var N=function(m){A(h,m);function h(p,k){n(this,h);var T=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,p,k));return T.preview=T.root.querySelector("a.ql-preview"),T}return _(h,[{key:"listen",value:function(){var k=this;w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(T){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),T.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(T){if(k.linkRange!=null){var L=k.linkRange;k.restoreFocus(),k.quill.formatText(L,"link",!1,o.default.sources.USER),delete k.linkRange}T.preventDefault(),k.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(T,L,D){if(T!=null){if(T.length===0&&D===o.default.sources.USER){var C=k.quill.scroll.descendant(l.default,T.index),Z=P(C,2),M=Z[0],R=Z[1];if(M!=null){k.linkRange=new a.Range(T.index-R,M.length());var E=l.default.formats(M.domNode);k.preview.textContent=E,k.preview.setAttribute("href",E),k.show(),k.position(k.quill.getBounds(k.linkRange));return}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),h}(t.BaseTooltip);N.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(""),b.default=O},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(29),w=$(P),_=d(36),y=d(38),v=d(64),c=d(65),o=$(c),t=d(66),e=$(t),u=d(67),l=$(u),a=d(37),r=d(26),i=d(39),f=d(40),n=d(56),s=$(n),A=d(68),g=$(A),O=d(27),N=$(O),m=d(69),h=$(m),p=d(70),k=$(p),T=d(71),L=$(T),D=d(72),C=$(D),Z=d(73),M=$(Z),R=d(13),E=$(R),S=d(74),q=$(S),F=d(75),B=$(F),x=d(57),j=$(x),U=d(41),H=$(U),V=d(28),Y=$(V),X=d(59),Q=$(X),nt=d(60),rt=$(nt),ft=d(61),at=$(ft),z=d(108),K=$(z),W=d(62),G=$(W);function $(J){return J&&J.__esModule?J:{default:J}}w.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":_.AlignClass,"attributors/class/background":a.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":a.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":f.SizeStyle},!0),w.default.register({"formats/align":_.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":v.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":f.SizeClass,"formats/blockquote":o.default,"formats/code-block":E.default,"formats/header":e.default,"formats/list":l.default,"formats/bold":s.default,"formats/code":R.Code,"formats/italic":g.default,"formats/link":N.default,"formats/script":h.default,"formats/strike":k.default,"formats/underline":L.default,"formats/image":C.default,"formats/video":M.default,"formats/list/item":u.ListItem,"modules/formula":q.default,"modules/syntax":B.default,"modules/toolbar":j.default,"themes/bubble":K.default,"themes/snow":G.default,"ui/icons":H.default,"ui/picker":Y.default,"ui/icon-picker":rt.default,"ui/color-picker":Q.default,"ui/tooltip":at.default},!0),b.default=w.default},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.IndentClass=void 0;var P=function(){function l(a,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(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),w=function l(a,r,i){a===null&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(f===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,r,i)}else{if("value"in f)return f.value;var s=f.get;return s===void 0?void 0:s.call(i)}},_=d(0),y=v(_);function v(l){return l&&l.__esModule?l:{default:l}}function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function t(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var e=function(l){t(a,l);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{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):w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,f)||w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,i))||void 0}}]),a}(y.default.Attributor.Class),u=new e("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});b.IndentClass=u},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(4),w=_(P);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 v(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 c(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){c(e,t);function e(){return y(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(w.default);o.blotName="blockquote",o.tagName="blockquote",b.default=o},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function e(u,l){for(var a=0;a<l.length;a++){var r=l[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,l,a){return l&&e(u.prototype,l),a&&e(u,a),u}}(),w=d(4),_=y(w);function y(e){return e&&e.__esModule?e:{default:e}}function v(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function c(e,u){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:e}function o(e,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(e,u):e.__proto__=u)}var t=function(e){o(u,e);function u(){return v(this,u),c(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return P(u,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),u}(_.default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],b.default=t},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.ListItem=void 0;var P=function(){function n(s,A){for(var g=0;g<A.length;g++){var O=A[g];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(s,O.key,O)}}return function(s,A,g){return A&&n(s.prototype,A),g&&n(s,g),s}}(),w=function n(s,A,g){s===null&&(s=Function.prototype);var O=Object.getOwnPropertyDescriptor(s,A);if(O===void 0){var N=Object.getPrototypeOf(s);return N===null?void 0:n(N,A,g)}else{if("value"in O)return O.value;var m=O.get;return m===void 0?void 0:m.call(g)}},_=d(0),y=e(_),v=d(4),c=e(v),o=d(25),t=e(o);function e(n){return n&&n.__esModule?n:{default:n}}function u(n,s,A){return s in n?Object.defineProperty(n,s,{value:A,enumerable:!0,configurable:!0,writable:!0}):n[s]=A,n}function l(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")}function a(n,s){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:n}function r(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(n,s):n.__proto__=s)}var i=function(n){r(s,n);function s(){return l(this,s),a(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return P(s,[{key:"format",value:function(g,O){g===f.blotName&&!O?this.replaceWith(y.default.create(this.statics.scope)):w(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,g,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():w(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(g,O){return this.parent.isolate(this.offset(this.parent),this.length()),g===this.parent.statics.blotName?(this.parent.replaceWith(g,O),this):(this.parent.unwrap(),w(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replaceWith",this).call(this,g,O))}}],[{key:"formats",value:function(g){return g.tagName===this.tagName?void 0:w(s.__proto__||Object.getPrototypeOf(s),"formats",this).call(this,g)}}]),s}(c.default);i.blotName="list-item",i.tagName="LI";var f=function(n){r(s,n),P(s,null,[{key:"create",value:function(g){var O=g==="ordered"?"OL":"UL",N=w(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,O);return(g==="checked"||g==="unchecked")&&N.setAttribute("data-checked",g==="checked"),N}},{key:"formats",value:function(g){if(g.tagName==="OL")return"ordered";if(g.tagName==="UL")return g.hasAttribute("data-checked")?g.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function s(A){l(this,s);var g=a(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,A)),O=function(m){if(m.target.parentNode===A){var h=g.statics.formats(A),p=y.default.find(m.target);h==="checked"?p.format("list","unchecked"):h==="unchecked"&&p.format("list","checked")}};return A.addEventListener("touchstart",O),A.addEventListener("mousedown",O),g}return P(s,[{key:"format",value:function(g,O){this.children.length>0&&this.children.tail.format(g,O)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(g,O){if(g instanceof i)w(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertBefore",this).call(this,g,O);else{var N=O==null?this.length():O.offset(this),m=this.split(N);m.parent.insertBefore(g,m)}}},{key:"optimize",value:function(g){w(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,g);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(g){if(g.statics.blotName!==this.statics.blotName){var O=y.default.create(this.statics.defaultChild);g.moveChildren(O),this.appendChild(O)}w(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replace",this).call(this,g)}}]),s}(t.default);f.blotName="list",f.scope=y.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[i],b.ListItem=i,b.default=f},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(56),w=_(P);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 v(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 c(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){c(e,t);function e(){return y(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(w.default);o.blotName="italic",o.tagName=["EM","I"],b.default=o},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),w=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=d(6),y=v(_);function v(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return P(l,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):w(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"],b.default=e},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(6),w=_(P);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 v(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 c(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){c(e,t);function e(){return y(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(w.default);o.blotName="strike",o.tagName="S",b.default=o},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=d(6),w=_(P);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 v(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 c(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){c(e,t);function e(){return y(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(w.default);o.blotName="underline",o.tagName="U",b.default=o},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function a(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&&a(r.prototype,i),f&&a(r,f),r}}(),w=function a(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:a(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},_=d(0),y=c(_),v=d(27);function c(a){return a&&a.__esModule?a:{default:a}}function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function e(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var u=["alt","height","width"],l=function(a){e(r,a);function r(){return o(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=w(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 u.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),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,v.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",b.default=l},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function a(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&&a(r.prototype,i),f&&a(r,f),r}}(),w=function a(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:a(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},_=d(4),y=d(27),v=c(y);function c(a){return a&&a.__esModule?a:{default:a}}function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function e(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var u=["height","width"],l=function(a){e(r,a);function r(){return o(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=w(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 u.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),n},{})}},{key:"sanitize",value:function(f){return v.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(_.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",b.default=l},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.FormulaBlot=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),w=function f(n,s,A){n===null&&(n=Function.prototype);var g=Object.getOwnPropertyDescriptor(n,s);if(g===void 0){var O=Object.getPrototypeOf(n);return O===null?void 0:f(O,s,A)}else{if("value"in g)return g.value;var N=g.get;return N===void 0?void 0:N.call(A)}},_=d(35),y=e(_),v=d(5),c=e(v),o=d(9),t=e(o);function e(f){return f&&f.__esModule?f:{default:f}}function u(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 a(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){a(n,f);function n(){return u(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return P(n,null,[{key:"create",value:function(A){var g=w(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,A);return typeof A=="string"&&(window.katex.render(A,g,{throwOnError:!1,errorColor:"#f00"}),g.setAttribute("data-value",A)),g}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),n}(y.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){a(n,f),P(n,null,[{key:"register",value:function(){c.default.register(r,!0)}}]);function n(){u(this,n);var s=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return s}return n}(t.default);b.FormulaBlot=r,b.default=i},function(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.CodeToken=b.CodeBlock=void 0;var P=function(){function A(g,O){for(var N=0;N<O.length;N++){var m=O[N];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,O,N){return O&&A(g.prototype,O),N&&A(g,N),g}}(),w=function A(g,O,N){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,O);if(m===void 0){var h=Object.getPrototypeOf(g);return h===null?void 0:A(h,O,N)}else{if("value"in m)return m.value;var p=m.get;return p===void 0?void 0:p.call(N)}},_=d(0),y=l(_),v=d(5),c=l(v),o=d(9),t=l(o),e=d(13),u=l(e);function l(A){return A&&A.__esModule?A:{default:A}}function a(A,g){if(!(A instanceof g))throw new TypeError("Cannot call a class as a function")}function r(A,g){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:A}function i(A,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);A.prototype=Object.create(g&&g.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(A,g):A.__proto__=g)}var f=function(A){i(g,A);function g(){return a(this,g),r(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return P(g,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var m=this.domNode.textContent;this.cachedText!==m&&((m.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=N(m),this.domNode.normalize(),this.attach()),this.cachedText=m)}}]),g}(u.default);f.className="ql-syntax";var n=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),s=function(A){i(g,A),P(g,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(f,!0)}}]);function g(O,N){a(this,g);var m=r(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,O,N));if(typeof m.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var h=null;return m.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(h),h=setTimeout(function(){m.highlight(),h=null},m.options.interval)}),m.highlight(),m}return P(g,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var m=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(h){h.highlight(N.options.highlight)}),this.quill.update(c.default.sources.SILENT),m!=null&&this.quill.setSelection(m,c.default.sources.SILENT)}}}]),g}(t.default);s.DEFAULTS={highlight:function(){return window.hljs==null?null:function(A){var g=window.hljs.highlightAuto(A);return g.value}}(),interval:1e3},b.CodeBlock=f,b.CodeToken=n,b.default=s},function(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b){I.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(I,b,d){Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BubbleTooltip=void 0;var P=function g(O,N,m){O===null&&(O=Function.prototype);var h=Object.getOwnPropertyDescriptor(O,N);if(h===void 0){var p=Object.getPrototypeOf(O);return p===null?void 0:g(p,N,m)}else{if("value"in h)return h.value;var k=h.get;return k===void 0?void 0:k.call(m)}},w=function(){function g(O,N){for(var m=0;m<N.length;m++){var h=N[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(O,h.key,h)}}return function(O,N,m){return N&&g(O.prototype,N),m&&g(O,m),O}}(),_=d(3),y=a(_),v=d(8),c=a(v),o=d(43),t=a(o),e=d(15),u=d(41),l=a(u);function a(g){return g&&g.__esModule?g:{default:g}}function r(g,O){if(!(g instanceof O))throw new TypeError("Cannot call a class as a function")}function i(g,O){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:g}function f(g,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);g.prototype=Object.create(O&&O.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(g,O):g.__proto__=O)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],s=function(g){f(O,g);function O(N,m){r(this,O),m.modules.toolbar!=null&&m.modules.toolbar.container==null&&(m.modules.toolbar.container=n);var h=i(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,m));return h.quill.container.classList.add("ql-bubble"),h}return w(O,[{key:"extendToolbar",value:function(m){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(m.container),this.buildButtons([].slice.call(m.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(m.container.querySelectorAll("select")),l.default)}}]),O}(t.default);s.DEFAULTS=(0,y.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(g){f(O,g);function O(N,m){r(this,O);var h=i(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,m));return h.quill.on(c.default.events.EDITOR_CHANGE,function(p,k,T,L){if(p===c.default.events.SELECTION_CHANGE)if(k!=null&&k.length>0&&L===c.default.sources.USER){h.show(),h.root.style.left="0px",h.root.style.width="",h.root.style.width=h.root.offsetWidth+"px";var D=h.quill.getLines(k.index,k.length);if(D.length===1)h.position(h.quill.getBounds(k));else{var C=D[D.length-1],Z=h.quill.getIndex(C),M=Math.min(C.length()-1,k.index+k.length-Z),R=h.quill.getBounds(new e.Range(Z,M));h.position(R)}}else document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide()}),h}return w(O,[{key:"listen",value:function(){var m=this;P(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){m.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!m.root.classList.contains("ql-hidden")){var h=m.quill.getSelection();h!=null&&m.position(m.quill.getBounds(h))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(m){var h=P(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,m),p=this.root.querySelector(".ql-tooltip-arrow");if(p.style.marginLeft="",h===0)return h;p.style.marginLeft=-1*h-p.offsetWidth/2+"px"}}]),O}(o.BaseTooltip);A.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(""),b.BubbleTooltip=A,b.default=s},function(I,b,d){I.exports=d(63)}]).default})})(gt);var _t=gt.exports;const mt=bt(_t),Ot=(it,ct)=>{const I=it.__vccOpts||it;for(const[b,d]of ct)I[b]=d;return I},Et={theme:"snow",boundary:document.body,modules:{toolbar:[["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:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},kt={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(it,ct){const I={editorOption:{},quill:null};let b="";ut.watch(()=>it.value,_=>{I.quill&&(_&&_!==b?(b=_,I.quill.pasteHTML(_)):_||I.quill.setText(""))}),ut.watch(()=>it.content,_=>{I.quill&&(_&&_!==b?(b=_,I.quill.pasteHTML(_)):_||I.quill.setText(""))}),ut.watch(()=>it.disabled,_=>{I.quill&&I.quill.enable(!_)});const d=ut.ref(null),P=(_,y)=>{for(const v in y)!_[v]||v!=="modules"?_[v]=y[v]:P(_[v],y[v]);return _},w=()=>{d.value&&(I.editorOption=P(Et,it.options),I.editorOption.readOnly=!!it.disabled,I.quill=new mt(d.value,I.editorOption),it.value&&I.quill.pasteHTML(it.value),I.quill.on("selection-change",_=>{_?ct.emit("focus",I.quill):ct.emit("blur",I.quill)}),I.quill.on("text-change",()=>{it.disabled&&I.quill.enable(!1);let _=d.value.children[0].innerHTML;const y=I.quill,v=I.quill.getText();_==="<p><br></p>"&&(_=""),b=_,ct.emit("update:value",b),ct.emit("change",{html:_,text:v,quill:y})}),ct.emit("ready",I.quill))};return ut.onBeforeUnmount(()=>{const _=d.value.previousSibling;_&&_.nodeType===1&&_.className.indexOf("ql-toolbar")>-1&&_.parentNode.removeChild(_)}),ut.onMounted(()=>{w()}),ut.onUnmounted(()=>{I.quill=null}),{editor:d}}},At={ref:"editor"};function wt(it,ct,I,b,d,P){return ut.openBlock(),ut.createElementBlock("section",At,null,512)}const pt=Ot(kt,[["render",wt]]);pt.install=function(it){it.component(pt.name,pt)};const yt=Object.assign({name:"ndsc-vue-quill"},{props:{value:{type:String,default:""},placeholder:{type:String,default:"请输入"}},emits:["update:value"],setup(it,{emit:ct}){const I=it,b=ct,d=mt.import("attributors/style/size");d.whitelist=["10px","12px","14px","16px","18px","20px","24px","32px","48px"],mt.register(d,!0);const P=ut.reactive({content:"",_content:"",editorOption:{placeholder:I.placeholder,modules:{toolbar:[[{color:[]},{background:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{header:[1,2,3,4,5,6,!1]}],[{align:[]}],["clean"],["image"],[{size:d.whitelist}]]}},disabled:!0}),w=c=>{console.log("editor blur!",c)},_=c=>{console.log("editor focus!",c)},y=c=>{console.log("editor ready!",c)},v=({quill:c,html:o,text:t})=>{console.log("editor change!",c,o,t),P._content=o,b("update:value",o)};return(c,o)=>(ut.openBlock(),ut.createBlock(ut.unref(pt),{value:P.content,"onUpdate:value":o[0]||(o[0]=t=>P.content=t),options:P.editorOption,onBlur:o[1]||(o[1]=t=>w(t)),onFocus:o[2]||(o[2]=t=>_(t)),onReady:o[3]||(o[3]=t=>y(t)),onChange:o[4]||(o[4]=t=>v(t))},null,8,["value","options"]))}});return yt.install=function(it){it.component(yt.name,yt)},yt});