yifengyide/public/dist/assets/notice-03d33a2e.js

55 lines
258 KiB
JavaScript

import{ab as kt,ac as tr,d as er,o as nr,ad as dr,a as Zt,s as Ze,E as Un,ae as vr,r as Gn,n as pr,h as Qt,b as Dn,c as yr,w as Lt,e as Ot,f as ke,A as gr,j as Zn,z as Wn,x as mr,af as br,ag as _r,ah as Or,a2 as Er,Z as Ar,$ as wr,a0 as Tr,a1 as kr,U as Nr,ai as Sr,aj as xr,_ as Pr}from"./index-7b3f5fdc.js";import{c as qr}from"./index-a832a56d.js";import{V as Lr}from"./index-a513db85.js";import{a as Rr}from"./index-e96dc078.js";import{w as jr}from"./index-354ab616.js";import{w as Ir}from"./index-81f068f9.js";import{j as Mr}from"./index-d0b57c12.js";var rr={exports:{}};/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/(function(R,U){(function(p,d){R.exports=d()})(typeof self<"u"?self:kt,function(){return function(m){var p={};function d(E){if(p[E])return p[E].exports;var b=p[E]={i:E,l:!1,exports:{}};return m[E].call(b.exports,b,b.exports,d),b.l=!0,b.exports}return d.m=m,d.c=p,d.d=function(E,b,O){d.o(E,b)||Object.defineProperty(E,b,{configurable:!1,enumerable:!0,get:O})},d.n=function(E){var b=E&&E.__esModule?function(){return E.default}:function(){return E};return d.d(b,"a",b),b},d.o=function(E,b){return Object.prototype.hasOwnProperty.call(E,b)},d.p="",d(d.s=109)}([function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(17),b=d(18),O=d(19),y=d(45),g=d(46),h=d(47),o=d(48),n=d(49),e=d(12),f=d(32),a=d(33),u=d(31),r=d(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:E.default,Format:b.default,Leaf:O.default,Embed:o.default,Scroll:y.default,Block:h.default,Inline:g.default,Text:n.default,Attributor:{Attribute:e.default,Class:f.default,Style:a.default,Store:u.default}};p.default=i},function(m,p,d){var E=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var c in i)i.hasOwnProperty(c)&&(r[c]=i[c])};return function(r,i){u(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=function(u){E(r,u);function r(i){var c=this;return i="[Parchment] "+i,c=u.call(this,i)||this,c.message=i,c.name=c.constructor.name,c}return r}(Error);p.ParchmentError=b;var O={},y={},g={},h={};p.DATA_KEY="__blot";var o;(function(u){u[u.TYPE=3]="TYPE",u[u.LEVEL=12]="LEVEL",u[u.ATTRIBUTE=13]="ATTRIBUTE",u[u.BLOT=14]="BLOT",u[u.INLINE=7]="INLINE",u[u.BLOCK=11]="BLOCK",u[u.BLOCK_BLOT=10]="BLOCK_BLOT",u[u.INLINE_BLOT=6]="INLINE_BLOT",u[u.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",u[u.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",u[u.ANY=15]="ANY"})(o=p.Scope||(p.Scope={}));function n(u,r){var i=f(u);if(i==null)throw new b("Unable to create "+u+" blot");var c=i,t=u instanceof Node||u.nodeType===Node.TEXT_NODE?u:c.create(r);return new c(t,r)}p.create=n;function e(u,r){return r===void 0&&(r=!1),u==null?null:u[p.DATA_KEY]!=null?u[p.DATA_KEY].blot:r?e(u.parentNode,r):null}p.find=e;function f(u,r){r===void 0&&(r=o.ANY);var i;if(typeof u=="string")i=h[u]||O[u];else if(u instanceof Text||u.nodeType===Node.TEXT_NODE)i=h.text;else if(typeof u=="number")u&o.LEVEL&o.BLOCK?i=h.block:u&o.LEVEL&o.INLINE&&(i=h.inline);else if(u instanceof HTMLElement){var c=(u.getAttribute("class")||"").split(/\s+/);for(var t in c)if(i=y[c[t]],i)break;i=i||g[u.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}p.query=f;function a(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];if(u.length>1)return u.map(function(t){return a(t)});var i=u[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new b("Invalid definition");if(i.blotName==="abstract")throw new b("Cannot register abstract class");if(h[i.blotName||i.attrName]=i,typeof i.keyName=="string")O[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(t){return t.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var c=Array.isArray(i.tagName)?i.tagName:[i.tagName];c.forEach(function(t){(g[t]==null||i.className==null)&&(g[t]=i)})}return i}p.register=a},function(m,p,d){var E=d(51),b=d(11),O=d(3),y=d(20),g=String.fromCharCode(0),h=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};h.prototype.insert=function(o,n){var e={};return o.length===0?this:(e.insert=o,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(e.attributes=n),this.push(e))},h.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},h.prototype.retain=function(o,n){if(o<=0)return this;var e={retain:o};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(e.attributes=n),this.push(e)},h.prototype.push=function(o){var n=this.ops.length,e=this.ops[n-1];if(o=O(!0,{},o),typeof e=="object"){if(typeof o.delete=="number"&&typeof e.delete=="number")return this.ops[n-1]={delete:e.delete+o.delete},this;if(typeof e.delete=="number"&&o.insert!=null&&(n-=1,e=this.ops[n-1],typeof e!="object"))return this.ops.unshift(o),this;if(b(o.attributes,e.attributes)){if(typeof o.insert=="string"&&typeof e.insert=="string")return this.ops[n-1]={insert:e.insert+o.insert},typeof o.attributes=="object"&&(this.ops[n-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof e.retain=="number")return this.ops[n-1]={retain:e.retain+o.retain},typeof o.attributes=="object"&&(this.ops[n-1].attributes=o.attributes),this}}return n===this.ops.length?this.ops.push(o):this.ops.splice(n,0,o),this},h.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},h.prototype.filter=function(o){return this.ops.filter(o)},h.prototype.forEach=function(o){this.ops.forEach(o)},h.prototype.map=function(o){return this.ops.map(o)},h.prototype.partition=function(o){var n=[],e=[];return this.forEach(function(f){var a=o(f)?n:e;a.push(f)}),[n,e]},h.prototype.reduce=function(o,n){return this.ops.reduce(o,n)},h.prototype.changeLength=function(){return this.reduce(function(o,n){return n.insert?o+y.length(n):n.delete?o-n.delete:o},0)},h.prototype.length=function(){return this.reduce(function(o,n){return o+y.length(n)},0)},h.prototype.slice=function(o,n){o=o||0,typeof n!="number"&&(n=1/0);for(var e=[],f=y.iterator(this.ops),a=0;a<n&&f.hasNext();){var u;a<o?u=f.next(o-a):(u=f.next(n-a),e.push(u)),a+=y.length(u)}return new h(e)},h.prototype.compose=function(o){var n=y.iterator(this.ops),e=y.iterator(o.ops),f=[],a=e.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){for(var u=a.retain;n.peekType()==="insert"&&n.peekLength()<=u;)u-=n.peekLength(),f.push(n.next());a.retain-u>0&&e.next(a.retain-u)}for(var r=new h(f);n.hasNext()||e.hasNext();)if(e.peekType()==="insert")r.push(e.next());else if(n.peekType()==="delete")r.push(n.next());else{var i=Math.min(n.peekLength(),e.peekLength()),c=n.next(i),t=e.next(i);if(typeof t.retain=="number"){var s={};typeof c.retain=="number"?s.retain=i:s.insert=c.insert;var k=y.attributes.compose(c.attributes,t.attributes,typeof c.retain=="number");if(k&&(s.attributes=k),r.push(s),!e.hasNext()&&b(r.ops[r.ops.length-1],s)){var w=new h(n.rest());return r.concat(w).chop()}}else typeof t.delete=="number"&&typeof c.retain=="number"&&r.push(t)}return r.chop()},h.prototype.concat=function(o){var n=new h(this.ops.slice());return o.ops.length>0&&(n.push(o.ops[0]),n.ops=n.ops.concat(o.ops.slice(1))),n},h.prototype.diff=function(o,n){if(this.ops===o.ops)return new h;var e=[this,o].map(function(i){return i.map(function(c){if(c.insert!=null)return typeof c.insert=="string"?c.insert:g;var t=i===o?"on":"with";throw new Error("diff() called "+t+" non-document")}).join("")}),f=new h,a=E(e[0],e[1],n),u=y.iterator(this.ops),r=y.iterator(o.ops);return a.forEach(function(i){for(var c=i[1].length;c>0;){var t=0;switch(i[0]){case E.INSERT:t=Math.min(r.peekLength(),c),f.push(r.next(t));break;case E.DELETE:t=Math.min(c,u.peekLength()),u.next(t),f.delete(t);break;case E.EQUAL:t=Math.min(u.peekLength(),r.peekLength(),c);var s=u.next(t),k=r.next(t);b(s.insert,k.insert)?f.retain(t,y.attributes.diff(s.attributes,k.attributes)):f.push(k).delete(t);break}c-=t}}),f.chop()},h.prototype.eachLine=function(o,n){n=n||`
`;for(var e=y.iterator(this.ops),f=new h,a=0;e.hasNext();){if(e.peekType()!=="insert")return;var u=e.peek(),r=y.length(u)-e.peekLength(),i=typeof u.insert=="string"?u.insert.indexOf(n,r)-r:-1;if(i<0)f.push(e.next());else if(i>0)f.push(e.next(i));else{if(o(f,e.next(1).attributes||{},a)===!1)return;a+=1,f=new h}}f.length()>0&&o(f,{},a)},h.prototype.transform=function(o,n){if(n=!!n,typeof o=="number")return this.transformPosition(o,n);for(var e=y.iterator(this.ops),f=y.iterator(o.ops),a=new h;e.hasNext()||f.hasNext();)if(e.peekType()==="insert"&&(n||f.peekType()!=="insert"))a.retain(y.length(e.next()));else if(f.peekType()==="insert")a.push(f.next());else{var u=Math.min(e.peekLength(),f.peekLength()),r=e.next(u),i=f.next(u);if(r.delete)continue;i.delete?a.push(i):a.retain(u,y.attributes.transform(r.attributes,i.attributes,n))}return a.chop()},h.prototype.transformPosition=function(o,n){n=!!n;for(var e=y.iterator(this.ops),f=0;e.hasNext()&&f<=o;){var a=e.peekLength(),u=e.peekType();if(e.next(),u==="delete"){o-=Math.min(a,o-f);continue}else u==="insert"&&(f<o||!n)&&(o+=a);f+=a}return o},m.exports=h},function(m,p){var d=Object.prototype.hasOwnProperty,E=Object.prototype.toString,b=Object.defineProperty,O=Object.getOwnPropertyDescriptor,y=function(e){return typeof Array.isArray=="function"?Array.isArray(e):E.call(e)==="[object Array]"},g=function(e){if(!e||E.call(e)!=="[object Object]")return!1;var f=d.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&d.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!f&&!a)return!1;var u;for(u in e);return typeof u>"u"||d.call(e,u)},h=function(e,f){b&&f.name==="__proto__"?b(e,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):e[f.name]=f.newValue},o=function(e,f){if(f==="__proto__")if(d.call(e,f)){if(O)return O(e,f).value}else return;return e[f]};m.exports=function n(){var e,f,a,u,r,i,c=arguments[0],t=1,s=arguments.length,k=!1;for(typeof c=="boolean"&&(k=c,c=arguments[1]||{},t=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});t<s;++t)if(e=arguments[t],e!=null)for(f in e)a=o(c,f),u=o(e,f),c!==u&&(k&&u&&(g(u)||(r=y(u)))?(r?(r=!1,i=a&&y(a)?a:[]):i=a&&g(a)?a:{},h(c,{name:f,newValue:n(k,i,u)})):typeof u<"u"&&h(c,{name:f,newValue:u}));return c}},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BlockEmbed=p.bubbleFormats=void 0;var E=function(){function v(_,N){for(var q=0;q<N.length;q++){var D=N[q];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,D.key,D)}}return function(_,N,q){return N&&v(_.prototype,N),q&&v(_,q),_}}(),b=function v(_,N,q){_===null&&(_=Function.prototype);var D=Object.getOwnPropertyDescriptor(_,N);if(D===void 0){var z=Object.getPrototypeOf(_);return z===null?void 0:v(z,N,q)}else{if("value"in D)return D.value;var K=D.get;return K===void 0?void 0:K.call(q)}},O=d(3),y=c(O),g=d(2),h=c(g),o=d(0),n=c(o),e=d(16),f=c(e),a=d(6),u=c(a),r=d(7),i=c(r);function c(v){return v&&v.__esModule?v:{default:v}}function t(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function s(v,_){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:v}function k(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);v.prototype=Object.create(_&&_.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(v,_):v.__proto__=_)}var w=1,T=function(v){k(_,v);function _(){return t(this,_),s(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return E(_,[{key:"attach",value:function(){b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"attach",this).call(this),this.attributes=new n.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new h.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(q,D){var z=n.default.query(q,n.default.Scope.BLOCK_ATTRIBUTE);z!=null&&this.attributes.attribute(z,D)}},{key:"formatAt",value:function(q,D,z,K){this.format(z,K)}},{key:"insertAt",value:function(q,D,z){if(typeof D=="string"&&D.endsWith(`
`)){var K=n.default.create(P.blotName);this.parent.insertBefore(K,q===0?this:this.next),K.insertAt(0,D.slice(0,-1))}else b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,q,D,z)}}]),_}(n.default.Embed);T.scope=n.default.Scope.BLOCK_BLOT;var P=function(v){k(_,v);function _(N){t(this,_);var q=s(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,N));return q.cache={},q}return E(_,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(n.default.Leaf).reduce(function(q,D){return D.length()===0?q:q.insert(D.value(),A(D))},new h.default).insert(`
`,A(this))),this.cache.delta}},{key:"deleteAt",value:function(q,D){b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,q,D),this.cache={}}},{key:"formatAt",value:function(q,D,z,K){D<=0||(n.default.query(z,n.default.Scope.BLOCK)?q+D===this.length()&&this.format(z,K):b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,q,Math.min(D,this.length()-q-1),z,K),this.cache={})}},{key:"insertAt",value:function(q,D,z){if(z!=null)return b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,q,D,z);if(D.length!==0){var K=D.split(`
`),Y=K.shift();Y.length>0&&(q<this.length()-1||this.children.tail==null?b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,Math.min(q,this.length()-1),Y):this.children.tail.insertAt(this.children.tail.length(),Y),this.cache={});var H=this;K.reduce(function(j,S){return H=H.split(j,!0),H.insertAt(0,S),S.length},q+Y.length)}}},{key:"insertBefore",value:function(q,D){var z=this.children.head;b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,q,D),z instanceof f.default&&z.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(q,D){b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"moveChildren",this).call(this,q,D),this.cache={}}},{key:"optimize",value:function(q){b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,q),this.cache={}}},{key:"path",value:function(q){return b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,q,!0)}},{key:"removeChild",value:function(q){b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"removeChild",this).call(this,q),this.cache={}}},{key:"split",value:function(q){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D&&(q===0||q>=this.length()-w)){var z=this.clone();return q===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var K=b(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"split",this).call(this,q,D);return this.cache={},K}}}]),_}(n.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[u.default,n.default.Embed,i.default];function A(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v==null||(typeof v.formats=="function"&&(_=(0,y.default)(_,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?_:A(v.parent,_)}p.bubbleFormats=A,p.BlockEmbed=T,p.default=P},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.overload=p.expandConfig=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},b=function(){function H(j,S){var I=[],M=!0,$=!1,C=void 0;try{for(var L=j[Symbol.iterator](),F;!(M=(F=L.next()).done)&&(I.push(F.value),!(S&&I.length===S));M=!0);}catch(V){$=!0,C=V}finally{try{!M&&L.return&&L.return()}finally{if($)throw C}}return I}return function(j,S){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return H(j,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function H(j,S){for(var I=0;I<S.length;I++){var M=S[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(j,M.key,M)}}return function(j,S,I){return S&&H(j.prototype,S),I&&H(j,I),j}}();d(50);var y=d(2),g=A(y),h=d(14),o=A(h),n=d(8),e=A(n),f=d(9),a=A(f),u=d(0),r=A(u),i=d(15),c=A(i),t=d(3),s=A(t),k=d(10),w=A(k),T=d(34),P=A(T);function A(H){return H&&H.__esModule?H:{default:H}}function v(H,j,S){return j in H?Object.defineProperty(H,j,{value:S,enumerable:!0,configurable:!0,writable:!0}):H[j]=S,H}function _(H,j){if(!(H instanceof j))throw new TypeError("Cannot call a class as a function")}var N=(0,w.default)("quill"),q=function(){O(H,null,[{key:"debug",value:function(S){S===!0&&(S="log"),w.default.level(S)}},{key:"find",value:function(S){return S.__quill||r.default.find(S)}},{key:"import",value:function(S){return this.imports[S]==null&&N.error("Cannot import "+S+". Are you sure it was registered?"),this.imports[S]}},{key:"register",value:function(S,I){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof S!="string"){var C=S.attrName||S.blotName;typeof C=="string"?this.register("formats/"+C,S,I):Object.keys(S).forEach(function(L){M.register(L,S[L],I)})}else this.imports[S]!=null&&!$&&N.warn("Overwriting "+S+" with",I),this.imports[S]=I,(S.startsWith("blots/")||S.startsWith("formats/"))&&I.blotName!=="abstract"?r.default.register(I):S.startsWith("modules")&&typeof I.register=="function"&&I.register()}}]);function H(j){var S=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_(this,H),this.options=D(j,I),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",j);this.options.debug&&H.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new e.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new c.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(e.default.events.EDITOR_CHANGE,function(C){C===e.default.events.TEXT_CHANGE&&S.root.classList.toggle("ql-blank",S.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(C,L){var F=S.selection.lastRange,V=F&&F.length===0?F.index:void 0;z.call(S,function(){return S.editor.update(null,L,V)},C)});var $=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents($),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return O(H,[{key:"addContainer",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof S=="string"){var M=S;S=document.createElement("div"),S.classList.add(M)}return this.container.insertBefore(S,I),S}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(S,I,M){var $=this,C=K(S,I,M),L=b(C,4);return S=L[0],I=L[1],M=L[3],z.call(this,function(){return $.editor.deleteText(S,I)},M,S,-1*I)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(S),this.container.classList.toggle("ql-disabled",!S)}},{key:"focus",value:function(){var S=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=S,this.scrollIntoView()}},{key:"format",value:function(S,I){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.default.sources.API;return z.call(this,function(){var C=M.getSelection(!0),L=new g.default;if(C==null)return L;if(r.default.query(S,r.default.Scope.BLOCK))L=M.editor.formatLine(C.index,C.length,v({},S,I));else{if(C.length===0)return M.selection.format(S,I),L;L=M.editor.formatText(C.index,C.length,v({},S,I))}return M.setSelection(C,e.default.sources.SILENT),L},$)}},{key:"formatLine",value:function(S,I,M,$,C){var L=this,F=void 0,V=K(S,I,M,$,C),G=b(V,4);return S=G[0],I=G[1],F=G[2],C=G[3],z.call(this,function(){return L.editor.formatLine(S,I,F)},C,S,0)}},{key:"formatText",value:function(S,I,M,$,C){var L=this,F=void 0,V=K(S,I,M,$,C),G=b(V,4);return S=G[0],I=G[1],F=G[2],C=G[3],z.call(this,function(){return L.editor.formatText(S,I,F)},C,S,0)}},{key:"getBounds",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof S=="number"?M=this.selection.getBounds(S,I):M=this.selection.getBounds(S.index,S.length);var $=this.container.getBoundingClientRect();return{bottom:M.bottom-$.top,height:M.height,left:M.left-$.left,right:M.right-$.left,top:M.top-$.top,width:M.width}}},{key:"getContents",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,M=K(S,I),$=b(M,2);return S=$[0],I=$[1],this.editor.getContents(S,I)}},{key:"getFormat",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof S=="number"?this.editor.getFormat(S,I):this.editor.getFormat(S.index,S.length)}},{key:"getIndex",value:function(S){return S.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(S){return this.scroll.leaf(S)}},{key:"getLine",value:function(S){return this.scroll.line(S)}},{key:"getLines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof S!="number"?this.scroll.lines(S.index,S.length):this.scroll.lines(S,I)}},{key:"getModule",value:function(S){return this.theme.modules[S]}},{key:"getSelection",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return S&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,M=K(S,I),$=b(M,2);return S=$[0],I=$[1],this.editor.getText(S,I)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(S,I,M){var $=this,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H.sources.API;return z.call(this,function(){return $.editor.insertEmbed(S,I,M)},C,S)}},{key:"insertText",value:function(S,I,M,$,C){var L=this,F=void 0,V=K(S,0,M,$,C),G=b(V,4);return S=G[0],F=G[2],C=G[3],z.call(this,function(){return L.editor.insertText(S,I,F)},C,S,I.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(S,I,M){this.clipboard.dangerouslyPasteHTML(S,I,M)}},{key:"removeFormat",value:function(S,I,M){var $=this,C=K(S,I,M),L=b(C,4);return S=L[0],I=L[1],M=L[3],z.call(this,function(){return $.editor.removeFormat(S,I)},M,S)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(S){var I=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return z.call(this,function(){S=new g.default(S);var $=I.getLength(),C=I.editor.deleteText(0,$),L=I.editor.applyDelta(S),F=L.ops[L.ops.length-1];F!=null&&typeof F.insert=="string"&&F.insert[F.insert.length-1]===`
`&&(I.editor.deleteText(I.getLength()-1,1),L.delete(1));var V=C.compose(L);return V},M)}},{key:"setSelection",value:function(S,I,M){if(S==null)this.selection.setRange(null,I||H.sources.API);else{var $=K(S,I,M),C=b($,4);S=C[0],I=C[1],M=C[3],this.selection.setRange(new i.Range(S,I),M),M!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,M=new g.default().insert(S);return this.setContents(M,I)}},{key:"update",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,I=this.scroll.update(S);return this.selection.update(S),I}},{key:"updateContents",value:function(S){var I=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return z.call(this,function(){return S=new g.default(S),I.editor.applyDelta(S,M)},M,!0)}}]),H}();q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=e.default.events,q.sources=e.default.sources,q.version="1.3.7",q.imports={delta:g.default,parchment:r.default,"core/module":a.default,"core/theme":P.default};function D(H,j){if(j=(0,s.default)(!0,{container:H,modules:{clipboard:!0,keyboard:!0,history:!0}},j),!j.theme||j.theme===q.DEFAULTS.theme)j.theme=P.default;else if(j.theme=q.import("themes/"+j.theme),j.theme==null)throw new Error("Invalid theme "+j.theme+". Did you register it?");var S=(0,s.default)(!0,{},j.theme.DEFAULTS);[S,j].forEach(function($){$.modules=$.modules||{},Object.keys($.modules).forEach(function(C){$.modules[C]===!0&&($.modules[C]={})})});var I=Object.keys(S.modules).concat(Object.keys(j.modules)),M=I.reduce(function($,C){var L=q.import("modules/"+C);return L==null?N.error("Cannot load "+C+" module. Are you sure you registered it?"):$[C]=L.DEFAULTS||{},$},{});return j.modules!=null&&j.modules.toolbar&&j.modules.toolbar.constructor!==Object&&(j.modules.toolbar={container:j.modules.toolbar}),j=(0,s.default)(!0,{},q.DEFAULTS,{modules:M},S,j),["bounds","container","scrollingContainer"].forEach(function($){typeof j[$]=="string"&&(j[$]=document.querySelector(j[$]))}),j.modules=Object.keys(j.modules).reduce(function($,C){return j.modules[C]&&($[C]=j.modules[C]),$},{}),j}function z(H,j,S,I){if(this.options.strict&&!this.isEnabled()&&j===e.default.sources.USER)return new g.default;var M=S==null?null:this.getSelection(),$=this.editor.delta,C=H();if(M!=null&&(S===!0&&(S=M.index),I==null?M=Y(M,C,j):I!==0&&(M=Y(M,S,I,j)),this.setSelection(M,e.default.sources.SILENT)),C.length()>0){var L,F=[e.default.events.TEXT_CHANGE,C,$,j];if((L=this.emitter).emit.apply(L,[e.default.events.EDITOR_CHANGE].concat(F)),j!==e.default.sources.SILENT){var V;(V=this.emitter).emit.apply(V,F)}}return C}function K(H,j,S,I,M){var $={};return typeof H.index=="number"&&typeof H.length=="number"?typeof j!="number"?(M=I,I=S,S=j,j=H.length,H=H.index):(j=H.length,H=H.index):typeof j!="number"&&(M=I,I=S,S=j,j=0),(typeof S>"u"?"undefined":E(S))==="object"?($=S,M=I):typeof S=="string"&&(I!=null?$[S]=I:M=S),M=M||e.default.sources.API,[H,j,$,M]}function Y(H,j,S,I){if(H==null)return null;var M=void 0,$=void 0;if(j instanceof g.default){var C=[H.index,H.index+H.length].map(function(G){return j.transformPosition(G,I!==e.default.sources.USER)}),L=b(C,2);M=L[0],$=L[1]}else{var F=[H.index,H.index+H.length].map(function(G){return G<j||G===j&&I===e.default.sources.USER?G:S>=0?G+S:Math.max(j,G+S)}),V=b(F,2);M=V[0],$=V[1]}return new i.Range(M,$-M)}p.expandConfig=D,p.overload=K,p.default=q},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function u(r,i){for(var c=0;c<i.length;c++){var t=i[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,c){return i&&u(r.prototype,i),c&&u(r,c),r}}(),b=function u(r,i,c){r===null&&(r=Function.prototype);var t=Object.getOwnPropertyDescriptor(r,i);if(t===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:u(s,i,c)}else{if("value"in t)return t.value;var k=t.get;return k===void 0?void 0:k.call(c)}},O=d(7),y=o(O),g=d(0),h=o(g);function o(u){return u&&u.__esModule?u:{default:u}}function n(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function e(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function f(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var a=function(u){f(r,u);function r(){return n(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"formatAt",value:function(c,t,s,k){if(r.compare(this.statics.blotName,s)<0&&h.default.query(s,h.default.Scope.BLOT)){var w=this.isolate(c,t);k&&w.wrap(s,k)}else b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,c,t,s,k)}},{key:"optimize",value:function(c){if(b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,c),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}],[{key:"compare",value:function(c,t){var s=r.order.indexOf(c),k=r.order.indexOf(t);return s>=0||k>=0?s-k:c===t?0:c<t?-1:1}}]),r}(h.default.Inline);a.allowedChildren=[a,h.default.Embed,y.default],a.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],p.default=a},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(0),b=O(E);function O(n){return n&&n.__esModule?n:{default:n}}function y(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function g(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function h(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var o=function(n){h(e,n);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default.Text);p.default=o},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function i(c,t){for(var s=0;s<t.length;s++){var k=t[s];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(c,k.key,k)}}return function(c,t,s){return t&&i(c.prototype,t),s&&i(c,s),c}}(),b=function i(c,t,s){c===null&&(c=Function.prototype);var k=Object.getOwnPropertyDescriptor(c,t);if(k===void 0){var w=Object.getPrototypeOf(c);return w===null?void 0:i(w,t,s)}else{if("value"in k)return k.value;var T=k.get;return T===void 0?void 0:T.call(s)}},O=d(54),y=o(O),g=d(10),h=o(g);function o(i){return i&&i.__esModule?i:{default:i}}function n(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")}function e(i,c){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:i}function f(i,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);i.prototype=Object.create(c&&c.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(i,c):i.__proto__=c)}var a=(0,h.default)("quill:events"),u=["selectionchange","mousedown","mouseup","click"];u.forEach(function(i){document.addEventListener(i,function(){for(var c=arguments.length,t=Array(c),s=0;s<c;s++)t[s]=arguments[s];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var w;(w=k.__quill.emitter).handleDOM.apply(w,t)}})})});var r=function(i){f(c,i);function c(){n(this,c);var t=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return t.listeners={},t.on("error",a.error),t}return E(c,[{key:"emit",value:function(){a.log.apply(a,arguments),b(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(s){for(var k=arguments.length,w=Array(k>1?k-1:0),T=1;T<k;T++)w[T-1]=arguments[T];(this.listeners[s.type]||[]).forEach(function(P){var A=P.node,v=P.handler;(s.target===A||A.contains(s.target))&&v.apply(void 0,[s].concat(w))})}},{key:"listenDOM",value:function(s,k,w){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push({node:k,handler:w})}}]),c}(y.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},p.default=r},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});function E(O,y){if(!(O instanceof y))throw new TypeError("Cannot call a class as a function")}var b=function O(y){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(this,O),this.quill=y,this.options=g};b.DEFAULTS={},p.default=b},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=["error","warn","log","info"],b="warn";function O(g){if(E.indexOf(g)<=E.indexOf(b)){for(var h,o=arguments.length,n=Array(o>1?o-1:0),e=1;e<o;e++)n[e-1]=arguments[e];(h=console)[g].apply(h,n)}}function y(g){return E.reduce(function(h,o){return h[o]=O.bind(console,o,g),h},{})}O.level=y.level=function(g){b=g},p.default=y},function(m,p,d){var E=Array.prototype.slice,b=d(52),O=d(53),y=m.exports=function(n,e,f){return f||(f={}),n===e?!0:n instanceof Date&&e instanceof Date?n.getTime()===e.getTime():!n||!e||typeof n!="object"&&typeof e!="object"?f.strict?n===e:n==e:o(n,e,f)};function g(n){return n==null}function h(n){return!(!n||typeof n!="object"||typeof n.length!="number"||typeof n.copy!="function"||typeof n.slice!="function"||n.length>0&&typeof n[0]!="number")}function o(n,e,f){var a,u;if(g(n)||g(e)||n.prototype!==e.prototype)return!1;if(O(n))return O(e)?(n=E.call(n),e=E.call(e),y(n,e,f)):!1;if(h(n)){if(!h(e)||n.length!==e.length)return!1;for(a=0;a<n.length;a++)if(n[a]!==e[a])return!1;return!0}try{var r=b(n),i=b(e)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),a=r.length-1;a>=0;a--)if(r[a]!=i[a])return!1;for(a=r.length-1;a>=0;a--)if(u=r[a],!y(n[u],e[u],f))return!1;return typeof n==typeof e}},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(1),b=function(){function O(y,g,h){h===void 0&&(h={}),this.attrName=y,this.keyName=g;var o=E.Scope.TYPE&E.Scope.ATTRIBUTE;h.scope!=null?this.scope=h.scope&E.Scope.LEVEL|o:this.scope=E.Scope.ATTRIBUTE,h.whitelist!=null&&(this.whitelist=h.whitelist)}return O.keys=function(y){return[].map.call(y.attributes,function(g){return g.name})},O.prototype.add=function(y,g){return this.canAdd(y,g)?(y.setAttribute(this.keyName,g),!0):!1},O.prototype.canAdd=function(y,g){var h=E.query(y,E.Scope.BLOT&(this.scope|E.Scope.TYPE));return h==null?!1:this.whitelist==null?!0:typeof g=="string"?this.whitelist.indexOf(g.replace(/["']/g,""))>-1:this.whitelist.indexOf(g)>-1},O.prototype.remove=function(y){y.removeAttribute(this.keyName)},O.prototype.value=function(y){var g=y.getAttribute(this.keyName);return this.canAdd(y,g)&&g?g:""},O}();p.default=b},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Code=void 0;var E=function(){function T(P,A){var v=[],_=!0,N=!1,q=void 0;try{for(var D=P[Symbol.iterator](),z;!(_=(z=D.next()).done)&&(v.push(z.value),!(A&&v.length===A));_=!0);}catch(K){N=!0,q=K}finally{try{!_&&D.return&&D.return()}finally{if(N)throw q}}return v}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function T(P,A){for(var v=0;v<A.length;v++){var _=A[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(P,_.key,_)}}return function(P,A,v){return A&&T(P.prototype,A),v&&T(P,v),P}}(),O=function T(P,A,v){P===null&&(P=Function.prototype);var _=Object.getOwnPropertyDescriptor(P,A);if(_===void 0){var N=Object.getPrototypeOf(P);return N===null?void 0:T(N,A,v)}else{if("value"in _)return _.value;var q=_.get;return q===void 0?void 0:q.call(v)}},y=d(2),g=i(y),h=d(0),o=i(h),n=d(4),e=i(n),f=d(6),a=i(f),u=d(7),r=i(u);function i(T){return T&&T.__esModule?T:{default:T}}function c(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}function t(T,P){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:T}function s(T,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);T.prototype=Object.create(P&&P.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(T,P):T.__proto__=P)}var k=function(T){s(P,T);function P(){return c(this,P),t(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(a.default);k.blotName="code",k.tagName="CODE";var w=function(T){s(P,T);function P(){return c(this,P),t(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return b(P,[{key:"delta",value:function(){var v=this,_=this.domNode.textContent;return _.endsWith(`
`)&&(_=_.slice(0,-1)),_.split(`
`).reduce(function(N,q){return N.insert(q).insert(`
`,v.formats())},new g.default)}},{key:"format",value:function(v,_){if(!(v===this.statics.blotName&&_)){var N=this.descendant(r.default,this.length()-1),q=E(N,1),D=q[0];D!=null&&D.deleteAt(D.length()-1,1),O(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,v,_)}}},{key:"formatAt",value:function(v,_,N,q){if(_!==0&&!(o.default.query(N,o.default.Scope.BLOCK)==null||N===this.statics.blotName&&q===this.statics.formats(this.domNode))){var D=this.newlineIndex(v);if(!(D<0||D>=v+_)){var z=this.newlineIndex(v,!0)+1,K=D-z+1,Y=this.isolate(z,K),H=Y.next;Y.format(N,q),H instanceof P&&H.formatAt(0,v-z+_-K,N,q)}}}},{key:"insertAt",value:function(v,_,N){if(N==null){var q=this.descendant(r.default,v),D=E(q,2),z=D[0],K=D[1];z.insertAt(K,_)}}},{key:"length",value:function(){var v=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?v:v+1}},{key:"newlineIndex",value:function(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_)return this.domNode.textContent.slice(0,v).lastIndexOf(`
`);var N=this.domNode.textContent.slice(v).indexOf(`
`);return N>-1?v+N:-1}},{key:"optimize",value:function(v){this.domNode.textContent.endsWith(`
`)||this.appendChild(o.default.create("text",`
`)),O(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,v);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===_.statics.formats(_.domNode)&&(_.optimize(v),_.moveChildren(this),_.remove())}},{key:"replace",value:function(v){O(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(_){var N=o.default.find(_);N==null?_.parentNode.removeChild(_):N instanceof o.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(v){var _=O(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,v);return _.setAttribute("spellcheck",!1),_}},{key:"formats",value:function(){return!0}}]),P}(e.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",p.Code=k,p.default=w},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},b=function(){function H(j,S){var I=[],M=!0,$=!1,C=void 0;try{for(var L=j[Symbol.iterator](),F;!(M=(F=L.next()).done)&&(I.push(F.value),!(S&&I.length===S));M=!0);}catch(V){$=!0,C=V}finally{try{!M&&L.return&&L.return()}finally{if($)throw C}}return I}return function(j,S){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return H(j,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function H(j,S){for(var I=0;I<S.length;I++){var M=S[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(j,M.key,M)}}return function(j,S,I){return S&&H(j.prototype,S),I&&H(j,I),j}}(),y=d(2),g=_(y),h=d(20),o=_(h),n=d(0),e=_(n),f=d(13),a=_(f),u=d(24),r=_(u),i=d(4),c=_(i),t=d(16),s=_(t),k=d(21),w=_(k),T=d(11),P=_(T),A=d(3),v=_(A);function _(H){return H&&H.__esModule?H:{default:H}}function N(H,j,S){return j in H?Object.defineProperty(H,j,{value:S,enumerable:!0,configurable:!0,writable:!0}):H[j]=S,H}function q(H,j){if(!(H instanceof j))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,z=function(){function H(j){q(this,H),this.scroll=j,this.delta=this.getDelta()}return O(H,[{key:"applyDelta",value:function(S){var I=this,M=!1;this.scroll.update();var $=this.scroll.length();return this.scroll.batchStart(),S=Y(S),S.reduce(function(C,L){var F=L.retain||L.delete||L.insert.length||1,V=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var G=L.insert;G.endsWith(`
`)&&M&&(M=!1,G=G.slice(0,-1)),C>=$&&!G.endsWith(`
`)&&(M=!0),I.scroll.insertAt(C,G);var X=I.scroll.line(C),nt=b(X,2),it=nt[0],at=nt[1],ft=(0,v.default)({},(0,i.bubbleFormats)(it));if(it instanceof c.default){var ht=it.descendant(e.default.Leaf,at),mt=b(ht,1),gt=mt[0];ft=(0,v.default)(ft,(0,i.bubbleFormats)(gt))}V=o.default.attributes.diff(ft,V)||{}}else if(E(L.insert)==="object"){var W=Object.keys(L.insert)[0];if(W==null)return C;I.scroll.insertAt(C,W,L.insert[W])}$+=F}return Object.keys(V).forEach(function(Q){I.scroll.formatAt(C,F,Q,V[Q])}),C+F},0),S.reduce(function(C,L){return typeof L.delete=="number"?(I.scroll.deleteAt(C,L.delete),C):C+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(S)}},{key:"deleteText",value:function(S,I){return this.scroll.deleteAt(S,I),this.update(new g.default().retain(S).delete(I))}},{key:"formatLine",value:function(S,I){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys($).forEach(function(C){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[C])){var L=M.scroll.lines(S,Math.max(I,1)),F=I;L.forEach(function(V){var G=V.length();if(!(V instanceof a.default))V.format(C,$[C]);else{var X=S-V.offset(M.scroll),nt=V.newlineIndex(X+F)-X+1;V.formatAt(X,nt,C,$[C])}F-=G})}}),this.scroll.optimize(),this.update(new g.default().retain(S).retain(I,(0,w.default)($)))}},{key:"formatText",value:function(S,I){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys($).forEach(function(C){M.scroll.formatAt(S,I,C,$[C])}),this.update(new g.default().retain(S).retain(I,(0,w.default)($)))}},{key:"getContents",value:function(S,I){return this.delta.slice(S,S+I)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(S,I){return S.concat(I.delta())},new g.default)}},{key:"getFormat",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],$=[];I===0?this.scroll.path(S).forEach(function(L){var F=b(L,1),V=F[0];V instanceof c.default?M.push(V):V instanceof e.default.Leaf&&$.push(V)}):(M=this.scroll.lines(S,I),$=this.scroll.descendants(e.default.Leaf,S,I));var C=[M,$].map(function(L){if(L.length===0)return{};for(var F=(0,i.bubbleFormats)(L.shift());Object.keys(F).length>0;){var V=L.shift();if(V==null)return F;F=K((0,i.bubbleFormats)(V),F)}return F});return v.default.apply(v.default,C)}},{key:"getText",value:function(S,I){return this.getContents(S,I).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(S,I,M){return this.scroll.insertAt(S,I,M),this.update(new g.default().retain(S).insert(N({},I,M)))}},{key:"insertText",value:function(S,I){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return I=I.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(S,I),Object.keys($).forEach(function(C){M.scroll.formatAt(S,I.length,C,$[C])}),this.update(new g.default().retain(S).insert(I,(0,w.default)($)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var S=this.scroll.children.head;return S.statics.blotName!==c.default.blotName||S.children.length>1?!1:S.children.head instanceof s.default}},{key:"removeFormat",value:function(S,I){var M=this.getText(S,I),$=this.scroll.line(S+I),C=b($,2),L=C[0],F=C[1],V=0,G=new g.default;L!=null&&(L instanceof a.default?V=L.newlineIndex(F)-F+1:V=L.length()-F,G=L.delta().slice(F,F+V-1).insert(`
`));var X=this.getContents(S,I+V),nt=X.diff(new g.default().insert(M).concat(G)),it=new g.default().retain(S).concat(nt);return this.applyDelta(it)}},{key:"update",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,$=this.delta;if(I.length===1&&I[0].type==="characterData"&&I[0].target.data.match(D)&&e.default.find(I[0].target)){var C=e.default.find(I[0].target),L=(0,i.bubbleFormats)(C),F=C.offset(this.scroll),V=I[0].oldValue.replace(r.default.CONTENTS,""),G=new g.default().insert(V),X=new g.default().insert(C.value()),nt=new g.default().retain(F).concat(G.diff(X,M));S=nt.reduce(function(it,at){return at.insert?it.insert(at.insert,L):it.push(at)},new g.default),this.delta=$.compose(S)}else this.delta=this.getDelta(),(!S||!(0,P.default)($.compose(S),this.delta))&&(S=$.diff(this.delta,M));return S}}]),H}();function K(H,j){return Object.keys(j).reduce(function(S,I){return H[I]==null||(j[I]===H[I]?S[I]=j[I]:Array.isArray(j[I])?j[I].indexOf(H[I])<0&&(S[I]=j[I].concat([H[I]])):S[I]=[j[I],H[I]]),S},{})}function Y(H){return H.reduce(function(j,S){if(S.insert===1){var I=(0,w.default)(S.attributes);return delete I.image,j.insert({image:S.attributes.image},I)}if(S.attributes!=null&&(S.attributes.list===!0||S.attributes.bullet===!0)&&(S=(0,w.default)(S),S.attributes.list?S.attributes.list="ordered":(S.attributes.list="bullet",delete S.attributes.bullet)),typeof S.insert=="string"){var M=S.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return j.insert(M,S.attributes)}return j.push(S)},new g.default)}p.default=z},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Range=void 0;var E=function(){function T(P,A){var v=[],_=!0,N=!1,q=void 0;try{for(var D=P[Symbol.iterator](),z;!(_=(z=D.next()).done)&&(v.push(z.value),!(A&&v.length===A));_=!0);}catch(K){N=!0,q=K}finally{try{!_&&D.return&&D.return()}finally{if(N)throw q}}return v}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function T(P,A){for(var v=0;v<A.length;v++){var _=A[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(P,_.key,_)}}return function(P,A,v){return A&&T(P.prototype,A),v&&T(P,v),P}}(),O=d(0),y=r(O),g=d(21),h=r(g),o=d(11),n=r(o),e=d(8),f=r(e),a=d(10),u=r(a);function r(T){return T&&T.__esModule?T:{default:T}}function i(T){if(Array.isArray(T)){for(var P=0,A=Array(T.length);P<T.length;P++)A[P]=T[P];return A}else return Array.from(T)}function c(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}var t=(0,u.default)("quill:selection"),s=function T(P){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;c(this,T),this.index=P,this.length=A},k=function(){function T(P,A){var v=this;c(this,T),this.emitter=A,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){v.mouseDown||setTimeout(v.update.bind(v,f.default.sources.USER),1)}),this.emitter.on(f.default.events.EDITOR_CHANGE,function(_,N){_===f.default.events.TEXT_CHANGE&&N.length()>0&&v.update(f.default.sources.SILENT)}),this.emitter.on(f.default.events.SCROLL_BEFORE_UPDATE,function(){if(v.hasFocus()){var _=v.getNativeRange();_!=null&&_.start.node!==v.cursor.textNode&&v.emitter.once(f.default.events.SCROLL_UPDATE,function(){try{v.setNativeRange(_.start.node,_.start.offset,_.end.node,_.end.offset)}catch{}})}}),this.emitter.on(f.default.events.SCROLL_OPTIMIZE,function(_,N){if(N.range){var q=N.range,D=q.startNode,z=q.startOffset,K=q.endNode,Y=q.endOffset;v.setNativeRange(D,z,K,Y)}}),this.update(f.default.sources.SILENT)}return b(T,[{key:"handleComposition",value:function(){var A=this;this.root.addEventListener("compositionstart",function(){A.composing=!0}),this.root.addEventListener("compositionend",function(){if(A.composing=!1,A.cursor.parent){var v=A.cursor.restore();if(!v)return;setTimeout(function(){A.setNativeRange(v.startNode,v.startOffset,v.endNode,v.endOffset)},1)}})}},{key:"handleDragging",value:function(){var A=this;this.emitter.listenDOM("mousedown",document.body,function(){A.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){A.mouseDown=!1,A.update(f.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(A,v){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[A])){this.scroll.update();var _=this.getNativeRange();if(!(_==null||!_.native.collapsed||y.default.query(A,y.default.Scope.BLOCK))){if(_.start.node!==this.cursor.textNode){var N=y.default.find(_.start.node,!1);if(N==null)return;if(N instanceof y.default.Leaf){var q=N.split(_.start.offset);N.parent.insertBefore(this.cursor,q)}else N.insertBefore(this.cursor,_.start.node);this.cursor.attach()}this.cursor.format(A,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(A){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=this.scroll.length();A=Math.min(A,_-1),v=Math.min(A+v,_-1)-A;var N=void 0,q=this.scroll.leaf(A),D=E(q,2),z=D[0],K=D[1];if(z==null)return null;var Y=z.position(K,!0),H=E(Y,2);N=H[0],K=H[1];var j=document.createRange();if(v>0){j.setStart(N,K);var S=this.scroll.leaf(A+v),I=E(S,2);if(z=I[0],K=I[1],z==null)return null;var M=z.position(K,!0),$=E(M,2);return N=$[0],K=$[1],j.setEnd(N,K),j.getBoundingClientRect()}else{var C="left",L=void 0;return N instanceof Text?(K<N.data.length?(j.setStart(N,K),j.setEnd(N,K+1)):(j.setStart(N,K-1),j.setEnd(N,K),C="right"),L=j.getBoundingClientRect()):(L=z.domNode.getBoundingClientRect(),K>0&&(C="right")),{bottom:L.top+L.height,height:L.height,left:L[C],right:L[C],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var A=document.getSelection();if(A==null||A.rangeCount<=0)return null;var v=A.getRangeAt(0);if(v==null)return null;var _=this.normalizeNative(v);return t.info("getNativeRange",_),_}},{key:"getRange",value:function(){var A=this.getNativeRange();if(A==null)return[null,null];var v=this.normalizedToRange(A);return[v,A]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(A){var v=this,_=[[A.start.node,A.start.offset]];A.native.collapsed||_.push([A.end.node,A.end.offset]);var N=_.map(function(z){var K=E(z,2),Y=K[0],H=K[1],j=y.default.find(Y,!0),S=j.offset(v.scroll);return H===0?S:j instanceof y.default.Container?S+j.length():S+j.index(Y,H)}),q=Math.min(Math.max.apply(Math,i(N)),this.scroll.length()-1),D=Math.min.apply(Math,[q].concat(i(N)));return new s(D,q-D)}},{key:"normalizeNative",value:function(A){if(!w(this.root,A.startContainer)||!A.collapsed&&!w(this.root,A.endContainer))return null;var v={start:{node:A.startContainer,offset:A.startOffset},end:{node:A.endContainer,offset:A.endOffset},native:A};return[v.start,v.end].forEach(function(_){for(var N=_.node,q=_.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>q)N=N.childNodes[q],q=0;else if(N.childNodes.length===q)N=N.lastChild,q=N instanceof Text?N.data.length:N.childNodes.length+1;else break;_.node=N,_.offset=q}),v}},{key:"rangeToNative",value:function(A){var v=this,_=A.collapsed?[A.index]:[A.index,A.index+A.length],N=[],q=this.scroll.length();return _.forEach(function(D,z){D=Math.min(q-1,D);var K=void 0,Y=v.scroll.leaf(D),H=E(Y,2),j=H[0],S=H[1],I=j.position(S,z!==0),M=E(I,2);K=M[0],S=M[1],N.push(K,S)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(A){var v=this.lastRange;if(v!=null){var _=this.getBounds(v.index,v.length);if(_!=null){var N=this.scroll.length()-1,q=this.scroll.line(Math.min(v.index,N)),D=E(q,1),z=D[0],K=z;if(v.length>0){var Y=this.scroll.line(Math.min(v.index+v.length,N)),H=E(Y,1);K=H[0]}if(!(z==null||K==null)){var j=A.getBoundingClientRect();_.top<j.top?A.scrollTop-=j.top-_.top:_.bottom>j.bottom&&(A.scrollTop+=_.bottom-j.bottom)}}}}},{key:"setNativeRange",value:function(A,v){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(t.info("setNativeRange",A,v,_,N),!(A!=null&&(this.root.parentNode==null||A.parentNode==null||_.parentNode==null))){var D=document.getSelection();if(D!=null)if(A!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||q||A!==z.startContainer||v!==z.startOffset||_!==z.endContainer||N!==z.endOffset){A.tagName=="BR"&&(v=[].indexOf.call(A.parentNode.childNodes,A),A=A.parentNode),_.tagName=="BR"&&(N=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode);var K=document.createRange();K.setStart(A,v),K.setEnd(_,N),D.removeAllRanges(),D.addRange(K)}}else D.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(A){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.default.sources.API;if(typeof v=="string"&&(_=v,v=!1),t.info("setRange",A),A!=null){var N=this.rangeToNative(A);this.setNativeRange.apply(this,i(N).concat([v]))}else this.setNativeRange(null);this.update(_)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f.default.sources.USER,v=this.lastRange,_=this.getRange(),N=E(_,2),q=N[0],D=N[1];if(this.lastRange=q,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,n.default)(v,this.lastRange)){var z;!this.composing&&D!=null&&D.native.collapsed&&D.start.node!==this.cursor.textNode&&this.cursor.restore();var K=[f.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(v),A];if((z=this.emitter).emit.apply(z,[f.default.events.EDITOR_CHANGE].concat(K)),A!==f.default.sources.SILENT){var Y;(Y=this.emitter).emit.apply(Y,K)}}}}]),T}();function w(T,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),T.contains(P)}p.Range=s,p.default=k},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function f(a,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,u,r){return u&&f(a.prototype,u),r&&f(a,r),a}}(),b=function f(a,u,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,u);if(i===void 0){var c=Object.getPrototypeOf(a);return c===null?void 0:f(c,u,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},O=d(0),y=g(O);function g(f){return f&&f.__esModule?f:{default:f}}function h(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")}function o(f,a){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:f}function n(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}var e=function(f){n(a,f);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return E(a,[{key:"insertInto",value:function(r,i){r.children.length===0?b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),a}(y.default.Embed);e.blotName="break",e.tagName="BR",p.default=e},function(m,p,d){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var f in e)e.hasOwnProperty(f)&&(n[f]=e[f])};return function(n,e){o(n,e);function f(){this.constructor=n}n.prototype=e===null?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(44),O=d(30),y=d(1),g=function(o){E(n,o);function n(e){var f=o.call(this,e)||this;return f.build(),f}return n.prototype.appendChild=function(e){this.insertBefore(e)},n.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},n.prototype.build=function(){var e=this;this.children=new b.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(f){try{var a=h(f);e.insertBefore(a,e.children.head||void 0)}catch(u){if(u instanceof y.ParchmentError)return;throw u}})},n.prototype.deleteAt=function(e,f){if(e===0&&f===this.length())return this.remove();this.children.forEachAt(e,f,function(a,u,r){a.deleteAt(u,r)})},n.prototype.descendant=function(e,f){var a=this.children.find(f),u=a[0],r=a[1];return e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e?[u,r]:u instanceof n?u.descendant(e,r):[null,-1]},n.prototype.descendants=function(e,f,a){f===void 0&&(f=0),a===void 0&&(a=Number.MAX_VALUE);var u=[],r=a;return this.children.forEachAt(f,a,function(i,c,t){(e.blotName==null&&e(i)||e.blotName!=null&&i instanceof e)&&u.push(i),i instanceof n&&(u=u.concat(i.descendants(e,c,r))),r-=t}),u},n.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},n.prototype.formatAt=function(e,f,a,u){this.children.forEachAt(e,f,function(r,i,c){r.formatAt(i,c,a,u)})},n.prototype.insertAt=function(e,f,a){var u=this.children.find(e),r=u[0],i=u[1];if(r)r.insertAt(i,f,a);else{var c=a==null?y.create("text",f):y.create(f,a);this.appendChild(c)}},n.prototype.insertBefore=function(e,f){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(a){return e instanceof a}))throw new y.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,f)},n.prototype.length=function(){return this.children.reduce(function(e,f){return e+f.length()},0)},n.prototype.moveChildren=function(e,f){this.children.forEach(function(a){e.insertBefore(a,f)})},n.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var f=y.create(this.statics.defaultChild);this.appendChild(f),f.optimize(e)}else this.remove()},n.prototype.path=function(e,f){f===void 0&&(f=!1);var a=this.children.find(e,f),u=a[0],r=a[1],i=[[this,e]];return u instanceof n?i.concat(u.path(r,f)):(u!=null&&i.push([u,r]),i)},n.prototype.removeChild=function(e){this.children.remove(e)},n.prototype.replace=function(e){e instanceof n&&e.moveChildren(this),o.prototype.replace.call(this,e)},n.prototype.split=function(e,f){if(f===void 0&&(f=!1),!f){if(e===0)return this;if(e===this.length())return this.next}var a=this.clone();return this.parent.insertBefore(a,this.next),this.children.forEachAt(e,this.length(),function(u,r,i){u=u.split(r,f),a.appendChild(u)}),a},n.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},n.prototype.update=function(e,f){var a=this,u=[],r=[];e.forEach(function(i){i.target===a.domNode&&i.type==="childList"&&(u.push.apply(u,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var c=y.find(i);c!=null&&(c.domNode.parentNode==null||c.domNode.parentNode===a.domNode)&&c.detach()}}),u.filter(function(i){return i.parentNode==a.domNode}).sort(function(i,c){return i===c?0:i.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var c=null;i.nextSibling!=null&&(c=y.find(i.nextSibling));var t=h(i);(t.next!=c||t.next==null)&&(t.parent!=null&&t.parent.removeChild(a),a.insertBefore(t,c||void 0))})},n}(O.default);function h(o){var n=y.find(o);if(n==null)try{n=y.create(o)}catch{n=y.create(y.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(f){n.domNode.appendChild(f)}),o.parentNode&&o.parentNode.replaceChild(n.domNode,o),n.attach()}return n}p.default=g},function(m,p,d){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var f in e)e.hasOwnProperty(f)&&(n[f]=e[f])};return function(n,e){o(n,e);function f(){this.constructor=n}n.prototype=e===null?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(12),O=d(31),y=d(17),g=d(1),h=function(o){E(n,o);function n(e){var f=o.call(this,e)||this;return f.attributes=new O.default(f.domNode),f}return n.formats=function(e){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()},n.prototype.format=function(e,f){var a=g.query(e);a instanceof b.default?this.attributes.attribute(a,f):f&&a!=null&&(e!==this.statics.blotName||this.formats()[e]!==f)&&this.replaceWith(e,f)},n.prototype.formats=function(){var e=this.attributes.values(),f=this.statics.formats(this.domNode);return f!=null&&(e[this.statics.blotName]=f),e},n.prototype.replaceWith=function(e,f){var a=o.prototype.replaceWith.call(this,e,f);return this.attributes.copy(a),a},n.prototype.update=function(e,f){var a=this;o.prototype.update.call(this,e,f),e.some(function(u){return u.target===a.domNode&&u.type==="attributes"})&&this.attributes.build()},n.prototype.wrap=function(e,f){var a=o.prototype.wrap.call(this,e,f);return a instanceof n&&a.statics.scope===this.statics.scope&&this.attributes.move(a),a},n}(y.default);p.default=h},function(m,p,d){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var n in o)o.hasOwnProperty(n)&&(h[n]=o[n])};return function(h,o){g(h,o);function n(){this.constructor=h}h.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(30),O=d(1),y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.value=function(o){return!0},h.prototype.index=function(o,n){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1},h.prototype.position=function(o,n){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},h.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},h.scope=O.Scope.INLINE_BLOT,h}(b.default);p.default=y},function(m,p,d){var E=d(11),b=d(3),O={attributes:{compose:function(g,h,o){typeof g!="object"&&(g={}),typeof h!="object"&&(h={});var n=b(!0,{},h);o||(n=Object.keys(n).reduce(function(f,a){return n[a]!=null&&(f[a]=n[a]),f},{}));for(var e in g)g[e]!==void 0&&h[e]===void 0&&(n[e]=g[e]);return Object.keys(n).length>0?n:void 0},diff:function(g,h){typeof g!="object"&&(g={}),typeof h!="object"&&(h={});var o=Object.keys(g).concat(Object.keys(h)).reduce(function(n,e){return E(g[e],h[e])||(n[e]=h[e]===void 0?null:h[e]),n},{});return Object.keys(o).length>0?o:void 0},transform:function(g,h,o){if(typeof g!="object")return h;if(typeof h=="object"){if(!o)return h;var n=Object.keys(h).reduce(function(e,f){return g[f]===void 0&&(e[f]=h[f]),e},{});return Object.keys(n).length>0?n:void 0}}},iterator:function(g){return new y(g)},length:function(g){return typeof g.delete=="number"?g.delete:typeof g.retain=="number"?g.retain:typeof g.insert=="string"?g.insert.length:1}};function y(g){this.ops=g,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(g){g||(g=1/0);var h=this.ops[this.index];if(h){var o=this.offset,n=O.length(h);if(g>=n-o?(g=n-o,this.index+=1,this.offset=0):this.offset+=g,typeof h.delete=="number")return{delete:g};var e={};return h.attributes&&(e.attributes=h.attributes),typeof h.retain=="number"?e.retain=g:typeof h.insert=="string"?e.insert=h.insert.substr(o,g):e.insert=h.insert,e}else return{retain:1/0}},y.prototype.peek=function(){return this.ops[this.index]},y.prototype.peekLength=function(){return this.ops[this.index]?O.length(this.ops[this.index])-this.offset:1/0},y.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},y.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var g=this.offset,h=this.index,o=this.next(),n=this.ops.slice(this.index);return this.offset=g,this.index=h,[o].concat(n)}else return[]},m.exports=O},function(m,p){var d=function(){function E(a,u){return u!=null&&a instanceof u}var b;try{b=Map}catch{b=function(){}}var O;try{O=Set}catch{O=function(){}}var y;try{y=Promise}catch{y=function(){}}function g(a,u,r,i,c){typeof u=="object"&&(r=u.depth,i=u.prototype,c=u.includeNonEnumerable,u=u.circular);var t=[],s=[],k=typeof Buffer<"u";typeof u>"u"&&(u=!0),typeof r>"u"&&(r=1/0);function w(T,P){if(T===null)return null;if(P===0)return T;var A,v;if(typeof T!="object")return T;if(E(T,b))A=new b;else if(E(T,O))A=new O;else if(E(T,y))A=new y(function(j,S){T.then(function(I){j(w(I,P-1))},function(I){S(w(I,P-1))})});else if(g.__isArray(T))A=[];else if(g.__isRegExp(T))A=new RegExp(T.source,f(T)),T.lastIndex&&(A.lastIndex=T.lastIndex);else if(g.__isDate(T))A=new Date(T.getTime());else{if(k&&Buffer.isBuffer(T))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(T.length):A=new Buffer(T.length),T.copy(A),A;E(T,Error)?A=Object.create(T):typeof i>"u"?(v=Object.getPrototypeOf(T),A=Object.create(v)):(A=Object.create(i),v=i)}if(u){var _=t.indexOf(T);if(_!=-1)return s[_];t.push(T),s.push(A)}E(T,b)&&T.forEach(function(j,S){var I=w(S,P-1),M=w(j,P-1);A.set(I,M)}),E(T,O)&&T.forEach(function(j){var S=w(j,P-1);A.add(S)});for(var N in T){var q;v&&(q=Object.getOwnPropertyDescriptor(v,N)),!(q&&q.set==null)&&(A[N]=w(T[N],P-1))}if(Object.getOwnPropertySymbols)for(var D=Object.getOwnPropertySymbols(T),N=0;N<D.length;N++){var z=D[N],K=Object.getOwnPropertyDescriptor(T,z);K&&!K.enumerable&&!c||(A[z]=w(T[z],P-1),K.enumerable||Object.defineProperty(A,z,{enumerable:!1}))}if(c)for(var Y=Object.getOwnPropertyNames(T),N=0;N<Y.length;N++){var H=Y[N],K=Object.getOwnPropertyDescriptor(T,H);K&&K.enumerable||(A[H]=w(T[H],P-1),Object.defineProperty(A,H,{enumerable:!1}))}return A}return w(a,r)}g.clonePrototype=function(u){if(u===null)return null;var r=function(){};return r.prototype=u,new r};function h(a){return Object.prototype.toString.call(a)}g.__objToStr=h;function o(a){return typeof a=="object"&&h(a)==="[object Date]"}g.__isDate=o;function n(a){return typeof a=="object"&&h(a)==="[object Array]"}g.__isArray=n;function e(a){return typeof a=="object"&&h(a)==="[object RegExp]"}g.__isRegExp=e;function f(a){var u="";return a.global&&(u+="g"),a.ignoreCase&&(u+="i"),a.multiline&&(u+="m"),u}return g.__getRegExpFlags=f,g}();typeof m=="object"&&m.exports&&(m.exports=d)},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function A(v,_){var N=[],q=!0,D=!1,z=void 0;try{for(var K=v[Symbol.iterator](),Y;!(q=(Y=K.next()).done)&&(N.push(Y.value),!(_&&N.length===_));q=!0);}catch(H){D=!0,z=H}finally{try{!q&&K.return&&K.return()}finally{if(D)throw z}}return N}return function(v,_){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return A(v,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function A(v,_){for(var N=0;N<_.length;N++){var q=_[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(v,q.key,q)}}return function(v,_,N){return _&&A(v.prototype,_),N&&A(v,N),v}}(),O=function A(v,_,N){v===null&&(v=Function.prototype);var q=Object.getOwnPropertyDescriptor(v,_);if(q===void 0){var D=Object.getPrototypeOf(v);return D===null?void 0:A(D,_,N)}else{if("value"in q)return q.value;var z=q.get;return z===void 0?void 0:z.call(N)}},y=d(0),g=t(y),h=d(8),o=t(h),n=d(4),e=t(n),f=d(16),a=t(f),u=d(13),r=t(u),i=d(25),c=t(i);function t(A){return A&&A.__esModule?A:{default:A}}function s(A,v){if(!(A instanceof v))throw new TypeError("Cannot call a class as a function")}function k(A,v){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:A}function w(A,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);A.prototype=Object.create(v&&v.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(A,v):A.__proto__=v)}function T(A){return A instanceof e.default||A instanceof n.BlockEmbed}var P=function(A){w(v,A);function v(_,N){s(this,v);var q=k(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_));return q.emitter=N.emitter,Array.isArray(N.whitelist)&&(q.whitelist=N.whitelist.reduce(function(D,z){return D[z]=!0,D},{})),q.domNode.addEventListener("DOMNodeInserted",function(){}),q.optimize(),q.enable(),q}return b(v,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,q){var D=this.line(N),z=E(D,2),K=z[0],Y=z[1],H=this.line(N+q),j=E(H,1),S=j[0];if(O(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,N,q),S!=null&&K!==S&&Y>0){if(K instanceof n.BlockEmbed||S instanceof n.BlockEmbed){this.optimize();return}if(K instanceof r.default){var I=K.newlineIndex(K.length(),!0);if(I>-1&&(K=K.split(I+1),K===S)){this.optimize();return}}else if(S instanceof r.default){var M=S.newlineIndex(0);M>-1&&S.split(M+1)}var $=S.children.head instanceof a.default?null:S.children.head;K.moveChildren(S,$),K.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,q,D,z){this.whitelist!=null&&!this.whitelist[D]||(O(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,N,q,D,z),this.optimize())}},{key:"insertAt",value:function(N,q,D){if(!(D!=null&&this.whitelist!=null&&!this.whitelist[q])){if(N>=this.length())if(D==null||g.default.query(q,g.default.Scope.BLOCK)==null){var z=g.default.create(this.statics.defaultChild);this.appendChild(z),D==null&&q.endsWith(`
`)&&(q=q.slice(0,-1)),z.insertAt(0,q,D)}else{var K=g.default.create(q,D);this.appendChild(K)}else O(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,N,q,D);this.optimize()}}},{key:"insertBefore",value:function(N,q){if(N.statics.scope===g.default.Scope.INLINE_BLOT){var D=g.default.create(this.statics.defaultChild);D.appendChild(N),N=D}O(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,N,q)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(T,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,D=function z(K,Y,H){var j=[],S=H;return K.children.forEachAt(Y,H,function(I,M,$){T(I)?j.push(I):I instanceof g.default.Container&&(j=j.concat(z(I,M,S))),S-=$}),j};return D(this,N,q)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(O(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,N,q),N.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,N,q))}},{key:"path",value:function(N){return O(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var q=o.default.sources.USER;typeof N=="string"&&(q=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,q,N),O(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,q,N)}}}]),v}(g.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[e.default,n.BlockEmbed,c.default],p.default=P},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.SHORTKEY=p.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},b=function(){function L(F,V){var G=[],X=!0,nt=!1,it=void 0;try{for(var at=F[Symbol.iterator](),ft;!(X=(ft=at.next()).done)&&(G.push(ft.value),!(V&&G.length===V));X=!0);}catch(ht){nt=!0,it=ht}finally{try{!X&&at.return&&at.return()}finally{if(nt)throw it}}return G}return function(F,V){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return L(F,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function L(F,V){for(var G=0;G<V.length;G++){var X=V[G];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(F,X.key,X)}}return function(F,V,G){return V&&L(F.prototype,V),G&&L(F,G),F}}(),y=d(21),g=A(y),h=d(11),o=A(h),n=d(3),e=A(n),f=d(2),a=A(f),u=d(20),r=A(u),i=d(0),c=A(i),t=d(5),s=A(t),k=d(10),w=A(k),T=d(9),P=A(T);function A(L){return L&&L.__esModule?L:{default:L}}function v(L,F,V){return F in L?Object.defineProperty(L,F,{value:V,enumerable:!0,configurable:!0,writable:!0}):L[F]=V,L}function _(L,F){if(!(L instanceof F))throw new TypeError("Cannot call a class as a function")}function N(L,F){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:L}function q(L,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);L.prototype=Object.create(F&&F.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(L,F):L.__proto__=F)}var D=(0,w.default)("quill:keyboard"),z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",K=function(L){q(F,L),O(F,null,[{key:"match",value:function(G,X){return X=C(X),["altKey","ctrlKey","metaKey","shiftKey"].some(function(nt){return!!X[nt]!==G[nt]&&X[nt]!==null})?!1:X.key===(G.which||G.keyCode)}}]);function F(V,G){_(this,F);var X=N(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,V,G));return X.bindings={},Object.keys(X.options.bindings).forEach(function(nt){nt==="list autofill"&&V.scroll.whitelist!=null&&!V.scroll.whitelist.list||X.options.bindings[nt]&&X.addBinding(X.options.bindings[nt])}),X.addBinding({key:F.keys.ENTER,shiftKey:null},I),X.addBinding({key:F.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(X.addBinding({key:F.keys.BACKSPACE},{collapsed:!0},H),X.addBinding({key:F.keys.DELETE},{collapsed:!0},j)):(X.addBinding({key:F.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},H),X.addBinding({key:F.keys.DELETE},{collapsed:!0,suffix:/^.?$/},j)),X.addBinding({key:F.keys.BACKSPACE},{collapsed:!1},S),X.addBinding({key:F.keys.DELETE},{collapsed:!1},S),X.addBinding({key:F.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},H),X.listen(),X}return O(F,[{key:"addBinding",value:function(G){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},it=C(G);if(it==null||it.key==null)return D.warn("Attempted to add invalid keyboard binding",it);typeof X=="function"&&(X={handler:X}),typeof nt=="function"&&(nt={handler:nt}),it=(0,e.default)(it,X,nt),this.bindings[it.key]=this.bindings[it.key]||[],this.bindings[it.key].push(it)}},{key:"listen",value:function(){var G=this;this.quill.root.addEventListener("keydown",function(X){if(!X.defaultPrevented){var nt=X.which||X.keyCode,it=(G.bindings[nt]||[]).filter(function(dt){return F.match(X,dt)});if(it.length!==0){var at=G.quill.getSelection();if(!(at==null||!G.quill.hasFocus())){var ft=G.quill.getLine(at.index),ht=b(ft,2),mt=ht[0],gt=ht[1],W=G.quill.getLeaf(at.index),Q=b(W,2),tt=Q[0],et=Q[1],J=at.length===0?[tt,et]:G.quill.getLeaf(at.index+at.length),st=b(J,2),ot=st[0],lt=st[1],Nt=tt instanceof c.default.Text?tt.value().slice(0,et):"",Et=ot instanceof c.default.Text?ot.value().slice(lt):"",pt={collapsed:at.length===0,empty:at.length===0&&mt.length()<=1,format:G.quill.getFormat(at),offset:gt,prefix:Nt,suffix:Et},Xt=it.some(function(dt){if(dt.collapsed!=null&&dt.collapsed!==pt.collapsed||dt.empty!=null&&dt.empty!==pt.empty||dt.offset!=null&&dt.offset!==pt.offset)return!1;if(Array.isArray(dt.format)){if(dt.format.every(function(Mt){return pt.format[Mt]==null}))return!1}else if(E(dt.format)==="object"&&!Object.keys(dt.format).every(function(Mt){return dt.format[Mt]===!0?pt.format[Mt]!=null:dt.format[Mt]===!1?pt.format[Mt]==null:(0,o.default)(dt.format[Mt],pt.format[Mt])}))return!1;return dt.prefix!=null&&!dt.prefix.test(pt.prefix)||dt.suffix!=null&&!dt.suffix.test(pt.suffix)?!1:dt.handler.call(G,at,pt)!==!0});Xt&&X.preventDefault()}}}})}}]),F}(P.default);K.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},K.DEFAULTS={bindings:{bold:$("bold"),italic:$("italic"),underline:$("underline"),indent:{key:K.keys.TAB,format:["blockquote","indent","list"],handler:function(F,V){if(V.collapsed&&V.offset!==0)return!0;this.quill.format("indent","+1",s.default.sources.USER)}},outdent:{key:K.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(F,V){if(V.collapsed&&V.offset!==0)return!0;this.quill.format("indent","-1",s.default.sources.USER)}},"outdent backspace":{key:K.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(F,V){V.format.indent!=null?this.quill.format("indent","-1",s.default.sources.USER):V.format.list!=null&&this.quill.format("list",!1,s.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:K.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(F){this.quill.deleteText(F.index-1,1,s.default.sources.USER)}},tab:{key:K.keys.TAB,handler:function(F){this.quill.history.cutoff();var V=new a.default().retain(F.index).delete(F.length).insert(" ");this.quill.updateContents(V,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index+1,s.default.sources.SILENT)}},"list empty enter":{key:K.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(F,V){this.quill.format("list",!1,s.default.sources.USER),V.format.indent&&this.quill.format("indent",!1,s.default.sources.USER)}},"checklist enter":{key:K.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(F){var V=this.quill.getLine(F.index),G=b(V,2),X=G[0],nt=G[1],it=(0,e.default)({},X.formats(),{list:"checked"}),at=new a.default().retain(F.index).insert(`
`,it).retain(X.length()-nt-1).retain(1,{list:"unchecked"});this.quill.updateContents(at,s.default.sources.USER),this.quill.setSelection(F.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:K.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(F,V){var G=this.quill.getLine(F.index),X=b(G,2),nt=X[0],it=X[1],at=new a.default().retain(F.index).insert(`
`,V.format).retain(nt.length()-it-1).retain(1,{header:null});this.quill.updateContents(at,s.default.sources.USER),this.quill.setSelection(F.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(F,V){var G=V.prefix.length,X=this.quill.getLine(F.index),nt=b(X,2),it=nt[0],at=nt[1];if(at>G)return!0;var ft=void 0;switch(V.prefix.trim()){case"[]":case"[ ]":ft="unchecked";break;case"[x]":ft="checked";break;case"-":case"*":ft="bullet";break;default:ft="ordered"}this.quill.insertText(F.index," ",s.default.sources.USER),this.quill.history.cutoff();var ht=new a.default().retain(F.index-at).delete(G+1).retain(it.length()-2-at).retain(1,{list:ft});this.quill.updateContents(ht,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index-G,s.default.sources.SILENT)}},"code exit":{key:K.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(F){var V=this.quill.getLine(F.index),G=b(V,2),X=G[0],nt=G[1],it=new a.default().retain(F.index+X.length()-nt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(it,s.default.sources.USER)}},"embed left":Y(K.keys.LEFT,!1),"embed left shift":Y(K.keys.LEFT,!0),"embed right":Y(K.keys.RIGHT,!1),"embed right shift":Y(K.keys.RIGHT,!0)}};function Y(L,F){var V,G=L===K.keys.LEFT?"prefix":"suffix";return V={key:L,shiftKey:F,altKey:null},v(V,G,/^$/),v(V,"handler",function(nt){var it=nt.index;L===K.keys.RIGHT&&(it+=nt.length+1);var at=this.quill.getLeaf(it),ft=b(at,1),ht=ft[0];return ht instanceof c.default.Embed?(L===K.keys.LEFT?F?this.quill.setSelection(nt.index-1,nt.length+1,s.default.sources.USER):this.quill.setSelection(nt.index-1,s.default.sources.USER):F?this.quill.setSelection(nt.index,nt.length+1,s.default.sources.USER):this.quill.setSelection(nt.index+nt.length+1,s.default.sources.USER),!1):!0}),V}function H(L,F){if(!(L.index===0||this.quill.getLength()<=1)){var V=this.quill.getLine(L.index),G=b(V,1),X=G[0],nt={};if(F.offset===0){var it=this.quill.getLine(L.index-1),at=b(it,1),ft=at[0];if(ft!=null&&ft.length()>1){var ht=X.formats(),mt=this.quill.getFormat(L.index-1,1);nt=r.default.attributes.diff(ht,mt)||{}}}var gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(F.prefix)?2:1;this.quill.deleteText(L.index-gt,gt,s.default.sources.USER),Object.keys(nt).length>0&&this.quill.formatLine(L.index-gt,gt,nt,s.default.sources.USER),this.quill.focus()}}function j(L,F){var V=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(F.suffix)?2:1;if(!(L.index>=this.quill.getLength()-V)){var G={},X=0,nt=this.quill.getLine(L.index),it=b(nt,1),at=it[0];if(F.offset>=at.length()-1){var ft=this.quill.getLine(L.index+1),ht=b(ft,1),mt=ht[0];if(mt){var gt=at.formats(),W=this.quill.getFormat(L.index,1);G=r.default.attributes.diff(gt,W)||{},X=mt.length()}}this.quill.deleteText(L.index,V,s.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(L.index+X-1,V,G,s.default.sources.USER)}}function S(L){var F=this.quill.getLines(L),V={};if(F.length>1){var G=F[0].formats(),X=F[F.length-1].formats();V=r.default.attributes.diff(X,G)||{}}this.quill.deleteText(L,s.default.sources.USER),Object.keys(V).length>0&&this.quill.formatLine(L.index,1,V,s.default.sources.USER),this.quill.setSelection(L.index,s.default.sources.SILENT),this.quill.focus()}function I(L,F){var V=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var G=Object.keys(F.format).reduce(function(X,nt){return c.default.query(nt,c.default.Scope.BLOCK)&&!Array.isArray(F.format[nt])&&(X[nt]=F.format[nt]),X},{});this.quill.insertText(L.index,`
`,G,s.default.sources.USER),this.quill.setSelection(L.index+1,s.default.sources.SILENT),this.quill.focus(),Object.keys(F.format).forEach(function(X){G[X]==null&&(Array.isArray(F.format[X])||X!=="link"&&V.quill.format(X,F.format[X],s.default.sources.USER))})}function M(L){return{key:K.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(V){var G=c.default.query("code-block"),X=V.index,nt=V.length,it=this.quill.scroll.descendant(G,X),at=b(it,2),ft=at[0],ht=at[1];if(ft!=null){var mt=this.quill.getIndex(ft),gt=ft.newlineIndex(ht,!0)+1,W=ft.newlineIndex(mt+ht+nt),Q=ft.domNode.textContent.slice(gt,W).split(`
`);ht=0,Q.forEach(function(tt,et){L?(ft.insertAt(gt+ht,G.TAB),ht+=G.TAB.length,et===0?X+=G.TAB.length:nt+=G.TAB.length):tt.startsWith(G.TAB)&&(ft.deleteAt(gt+ht,G.TAB.length),ht-=G.TAB.length,et===0?X-=G.TAB.length:nt-=G.TAB.length),ht+=tt.length+1}),this.quill.update(s.default.sources.USER),this.quill.setSelection(X,nt,s.default.sources.SILENT)}}}}function $(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(V,G){this.quill.format(L,!G.format[L],s.default.sources.USER)}}}function C(L){if(typeof L=="string"||typeof L=="number")return C({key:L});if((typeof L>"u"?"undefined":E(L))==="object"&&(L=(0,g.default)(L,!1)),typeof L.key=="string")if(K.keys[L.key.toUpperCase()]!=null)L.key=K.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[z]=L.shortKey,delete L.shortKey),L}p.default=K,p.SHORTKEY=z},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function r(i,c){var t=[],s=!0,k=!1,w=void 0;try{for(var T=i[Symbol.iterator](),P;!(s=(P=T.next()).done)&&(t.push(P.value),!(c&&t.length===c));s=!0);}catch(A){k=!0,w=A}finally{try{!s&&T.return&&T.return()}finally{if(k)throw w}}return t}return function(i,c){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function r(i,c,t){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,c);if(s===void 0){var k=Object.getPrototypeOf(i);return k===null?void 0:r(k,c,t)}else{if("value"in s)return s.value;var w=s.get;return w===void 0?void 0:w.call(t)}},O=function(){function r(i,c){for(var t=0;t<c.length;t++){var s=c[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,c,t){return c&&r(i.prototype,c),t&&r(i,t),i}}(),y=d(0),g=n(y),h=d(7),o=n(h);function n(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 f(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 a(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var u=function(r){a(i,r),O(i,null,[{key:"value",value:function(){}}]);function i(c,t){e(this,i);var s=f(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,c));return s.selection=t,s.textNode=document.createTextNode(i.CONTENTS),s.domNode.appendChild(s.textNode),s._length=0,s}return O(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(t,s){if(this._length!==0)return b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,t,s);for(var k=this,w=0;k!=null&&k.statics.scope!==g.default.Scope.BLOCK_BLOT;)w+=k.offset(k.parent),k=k.parent;k!=null&&(this._length=i.CONTENTS.length,k.optimize(),k.formatAt(w,i.CONTENTS.length,t,s),this._length=0)}},{key:"index",value:function(t,s){return t===this.textNode?0:b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,t,s)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var t=this.textNode,s=this.selection.getNativeRange(),k=void 0,w=void 0,T=void 0;if(s!=null&&s.start.node===t&&s.end.node===t){var P=[t,s.start.offset,s.end.offset];k=P[0],w=P[1],T=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var A=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(k=this.next.domNode,this.next.insertAt(0,A),this.textNode.data=i.CONTENTS):(this.textNode.data=A,this.parent.insertBefore(g.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),w!=null){var v=[w,T].map(function(N){return Math.max(0,Math.min(k.data.length,N-1))}),_=E(v,2);return w=_[0],T=_[1],{startNode:k,startOffset:w,endNode:k,endOffset:T}}}}},{key:"update",value:function(t,s){var k=this;if(t.some(function(T){return T.type==="characterData"&&T.target===k.textNode})){var w=this.restore();w&&(s.range=w)}}},{key:"value",value:function(){return""}}]),i}(g.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\uFEFF",p.default=u},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(0),b=g(E),O=d(4),y=g(O);function g(f){return f&&f.__esModule?f:{default:f}}function h(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")}function o(f,a){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:f}function n(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}var e=function(f){n(a,f);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(b.default.Container);e.allowedChildren=[y.default,O.BlockEmbed,e],p.default=e},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.ColorStyle=p.ColorClass=p.ColorAttributor=void 0;var E=function(){function u(r,i){for(var c=0;c<i.length;c++){var t=i[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,c){return i&&u(r.prototype,i),c&&u(r,c),r}}(),b=function u(r,i,c){r===null&&(r=Function.prototype);var t=Object.getOwnPropertyDescriptor(r,i);if(t===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:u(s,i,c)}else{if("value"in t)return t.value;var k=t.get;return k===void 0?void 0:k.call(c)}},O=d(0),y=g(O);function g(u){return u&&u.__esModule?u:{default:u}}function h(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function o(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function n(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var e=function(u){n(r,u);function r(){return h(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"value",value:function(c){var t=b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,c);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+t.split(",").map(function(s){return("00"+parseInt(s).toString(16)).slice(-2)}).join("")):t}}]),r}(y.default.Attributor.Style),f=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),a=new e("color","color",{scope:y.default.Scope.INLINE});p.ColorAttributor=e,p.ColorClass=f,p.ColorStyle=a},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.sanitize=p.default=void 0;var E=function(){function a(u,r){for(var i=0;i<r.length;i++){var c=r[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}return function(u,r,i){return r&&a(u.prototype,r),i&&a(u,i),u}}(),b=function a(u,r,i){u===null&&(u=Function.prototype);var c=Object.getOwnPropertyDescriptor(u,r);if(c===void 0){var t=Object.getPrototypeOf(u);return t===null?void 0:a(t,r,i)}else{if("value"in c)return c.value;var s=c.get;return s===void 0?void 0:s.call(i)}},O=d(6),y=g(O);function g(a){return a&&a.__esModule?a:{default:a}}function h(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function o(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function n(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var e=function(a){n(u,a);function u(){return h(this,u),o(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return E(u,[{key:"format",value:function(i,c){if(i!==this.statics.blotName||!c)return b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,i,c);c=this.constructor.sanitize(c),this.domNode.setAttribute("href",c)}}],[{key:"create",value:function(i){var c=b(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,i);return i=this.sanitize(i),c.setAttribute("href",i),c.setAttribute("rel","noopener noreferrer"),c.setAttribute("target","_blank"),c}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return f(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),u}(y.default);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function f(a,u){var r=document.createElement("a");r.href=a;var i=r.href.slice(0,r.href.indexOf(":"));return u.indexOf(i)>-1}p.default=e,p.sanitize=f},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},b=function(){function u(r,i){for(var c=0;c<i.length;c++){var t=i[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,c){return i&&u(r.prototype,i),c&&u(r,c),r}}(),O=d(23),y=o(O),g=d(107),h=o(g);function o(u){return u&&u.__esModule?u:{default:u}}function n(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}var e=0;function f(u,r){u.setAttribute(r,u.getAttribute(r)!=="true")}var a=function(){function u(r){var i=this;n(this,u),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(c){switch(c.keyCode){case y.default.keys.ENTER:i.togglePicker();break;case y.default.keys.ESCAPE:i.escape(),c.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return b(u,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),f(this.label,"aria-expanded"),f(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var c=this,t=document.createElement("span");return t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item"),i.hasAttribute("value")&&t.setAttribute("data-value",i.getAttribute("value")),i.textContent&&t.setAttribute("data-label",i.textContent),t.addEventListener("click",function(){c.selectItem(t,!0)}),t.addEventListener("keydown",function(s){switch(s.keyCode){case y.default.keys.ENTER:c.selectItem(t,!0),s.preventDefault();break;case y.default.keys.ESCAPE:c.escape(),s.preventDefault();break}}),t}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=h.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,c=document.createElement("span");c.classList.add("ql-picker-options"),c.setAttribute("aria-hidden","true"),c.tabIndex="-1",c.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",c.id),this.options=c,[].slice.call(this.select.options).forEach(function(t){var s=i.buildItem(t);c.appendChild(s),t.selected===!0&&i.selectItem(s)}),this.container.appendChild(c)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(c){i.container.setAttribute(c.name,c.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 c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.container.querySelector(".ql-selected");if(i!==t&&(t!=null&&t.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"),c))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":E(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 c=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(c)}else this.selectItem(null);var t=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}]),u}();p.default=a},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(0),b=D(E),O=d(5),y=D(O),g=d(4),h=D(g),o=d(16),n=D(o),e=d(25),f=D(e),a=d(24),u=D(a),r=d(35),i=D(r),c=d(6),t=D(c),s=d(22),k=D(s),w=d(7),T=D(w),P=d(55),A=D(P),v=d(42),_=D(v),N=d(23),q=D(N);function D(z){return z&&z.__esModule?z:{default:z}}y.default.register({"blots/block":h.default,"blots/block/embed":g.BlockEmbed,"blots/break":n.default,"blots/container":f.default,"blots/cursor":u.default,"blots/embed":i.default,"blots/inline":t.default,"blots/scroll":k.default,"blots/text":T.default,"modules/clipboard":A.default,"modules/history":_.default,"modules/keyboard":q.default}),b.default.register(h.default,n.default,u.default,t.default,k.default,T.default),p.default=y.default},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(1),b=function(){function O(y){this.domNode=y,this.domNode[E.DATA_KEY]={blot:this}}return Object.defineProperty(O.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),O.create=function(y){if(this.tagName==null)throw new E.ParchmentError("Blot definition missing tagName");var g;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?g=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?g=document.createElement(y):g=document.createElement(this.tagName[0])):g=document.createElement(this.tagName),this.className&&g.classList.add(this.className),g},O.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},O.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return E.create(y)},O.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[E.DATA_KEY]},O.prototype.deleteAt=function(y,g){var h=this.isolate(y,g);h.remove()},O.prototype.formatAt=function(y,g,h,o){var n=this.isolate(y,g);if(E.query(h,E.Scope.BLOT)!=null&&o)n.wrap(h,o);else if(E.query(h,E.Scope.ATTRIBUTE)!=null){var e=E.create(this.statics.scope);n.wrap(e),e.format(h,o)}},O.prototype.insertAt=function(y,g,h){var o=h==null?E.create("text",g):E.create(g,h),n=this.split(y);this.parent.insertBefore(o,n)},O.prototype.insertInto=function(y,g){g===void 0&&(g=null),this.parent!=null&&this.parent.children.remove(this);var h=null;y.children.insertBefore(this,g),g!=null&&(h=g.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=h)&&y.domNode.insertBefore(this.domNode,h),this.parent=y,this.attach()},O.prototype.isolate=function(y,g){var h=this.split(y);return h.split(g),h},O.prototype.length=function(){return 1},O.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)},O.prototype.optimize=function(y){this.domNode[E.DATA_KEY]!=null&&delete this.domNode[E.DATA_KEY].mutations},O.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},O.prototype.replace=function(y){y.parent!=null&&(y.parent.insertBefore(this,y.next),y.remove())},O.prototype.replaceWith=function(y,g){var h=typeof y=="string"?E.create(y,g):y;return h.replace(this),h},O.prototype.split=function(y,g){return y===0?this:this.next},O.prototype.update=function(y,g){},O.prototype.wrap=function(y,g){var h=typeof y=="string"?E.create(y,g):y;return this.parent!=null&&this.parent.insertBefore(h,this.next),h.appendChild(this),h},O.blotName="abstract",O}();p.default=b},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(12),b=d(32),O=d(33),y=d(1),g=function(){function h(o){this.attributes={},this.domNode=o,this.build()}return h.prototype.attribute=function(o,n){n?o.add(this.domNode,n)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},h.prototype.build=function(){var o=this;this.attributes={};var n=E.default.keys(this.domNode),e=b.default.keys(this.domNode),f=O.default.keys(this.domNode);n.concat(e).concat(f).forEach(function(a){var u=y.query(a,y.Scope.ATTRIBUTE);u instanceof E.default&&(o.attributes[u.attrName]=u)})},h.prototype.copy=function(o){var n=this;Object.keys(this.attributes).forEach(function(e){var f=n.attributes[e].value(n.domNode);o.format(e,f)})},h.prototype.move=function(o){var n=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){n.attributes[e].remove(n.domNode)}),this.attributes={}},h.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(n,e){return n[e]=o.attributes[e].value(o.domNode),n},{})},h}();p.default=g},function(m,p,d){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var n in o)o.hasOwnProperty(n)&&(h[n]=o[n])};return function(h,o){g(h,o);function n(){this.constructor=h}h.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(12);function O(g,h){var o=g.getAttribute("class")||"";return o.split(/\s+/).filter(function(n){return n.indexOf(h+"-")===0})}var y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(n){return n.split("-").slice(0,-1).join("-")})},h.prototype.add=function(o,n){return this.canAdd(o,n)?(this.remove(o),o.classList.add(this.keyName+"-"+n),!0):!1},h.prototype.remove=function(o){var n=O(o,this.keyName);n.forEach(function(e){o.classList.remove(e)}),o.classList.length===0&&o.removeAttribute("class")},h.prototype.value=function(o){var n=O(o,this.keyName)[0]||"",e=n.slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},h}(b.default);p.default=y},function(m,p,d){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var n in o)o.hasOwnProperty(n)&&(h[n]=o[n])};return function(h,o){g(h,o);function n(){this.constructor=h}h.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(12);function O(g){var h=g.split("-"),o=h.slice(1).map(function(n){return n[0].toUpperCase()+n.slice(1)}).join("");return h[0]+o}var y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(n){var e=n.split(":");return e[0].trim()})},h.prototype.add=function(o,n){return this.canAdd(o,n)?(o.style[O(this.keyName)]=n,!0):!1},h.prototype.remove=function(o){o.style[O(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},h.prototype.value=function(o){var n=o.style[O(this.keyName)];return this.canAdd(o,n)?n:""},h}(b.default);p.default=y},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function y(g,h){for(var o=0;o<h.length;o++){var n=h[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(g,n.key,n)}}return function(g,h,o){return h&&y(g.prototype,h),o&&y(g,o),g}}();function b(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}var O=function(){function y(g,h){b(this,y),this.quill=g,this.options=h,this.modules={}}return E(y,[{key:"init",value:function(){var h=this;Object.keys(this.options.modules).forEach(function(o){h.modules[o]==null&&h.addModule(o)})}},{key:"addModule",value:function(h){var o=this.quill.constructor.import("modules/"+h);return this.modules[h]=new o(this.quill,this.options.modules[h]||{}),this.modules[h]}}]),y}();O.DEFAULTS={modules:{}},O.themes={default:O},p.default=O},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function r(i,c){for(var t=0;t<c.length;t++){var s=c[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,c,t){return c&&r(i.prototype,c),t&&r(i,t),i}}(),b=function r(i,c,t){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,c);if(s===void 0){var k=Object.getPrototypeOf(i);return k===null?void 0:r(k,c,t)}else{if("value"in s)return s.value;var w=s.get;return w===void 0?void 0:w.call(t)}},O=d(0),y=o(O),g=d(7),h=o(g);function o(r){return r&&r.__esModule?r:{default:r}}function n(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 f(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="\uFEFF",u=function(r){f(i,r);function i(c){n(this,i);var t=e(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,c));return t.contentNode=document.createElement("span"),t.contentNode.setAttribute("contenteditable",!1),[].slice.call(t.domNode.childNodes).forEach(function(s){t.contentNode.appendChild(s)}),t.leftGuard=document.createTextNode(a),t.rightGuard=document.createTextNode(a),t.domNode.appendChild(t.leftGuard),t.domNode.appendChild(t.contentNode),t.domNode.appendChild(t.rightGuard),t}return E(i,[{key:"index",value:function(t,s){return t===this.leftGuard?0:t===this.rightGuard?1:b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,t,s)}},{key:"restore",value:function(t){var s=void 0,k=void 0,w=t.data.split(a).join("");if(t===this.leftGuard)if(this.prev instanceof h.default){var T=this.prev.length();this.prev.insertAt(T,w),s={startNode:this.prev.domNode,startOffset:T+w.length}}else k=document.createTextNode(w),this.parent.insertBefore(y.default.create(k),this),s={startNode:k,startOffset:w.length};else t===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,w),s={startNode:this.next.domNode,startOffset:w.length}):(k=document.createTextNode(w),this.parent.insertBefore(y.default.create(k),this.next),s={startNode:k,startOffset:w.length}));return t.data=a,s}},{key:"update",value:function(t,s){var k=this;t.forEach(function(w){if(w.type==="characterData"&&(w.target===k.leftGuard||w.target===k.rightGuard)){var T=k.restore(w.target);T&&(s.range=T)}})}}]),i}(y.default.Embed);p.default=u},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.AlignStyle=p.AlignClass=p.AlignAttribute=void 0;var E=d(0),b=O(E);function O(n){return n&&n.__esModule?n:{default:n}}var y={scope:b.default.Scope.BLOCK,whitelist:["right","center","justify"]},g=new b.default.Attributor.Attribute("align","align",y),h=new b.default.Attributor.Class("align","ql-align",y),o=new b.default.Attributor.Style("align","text-align",y);p.AlignAttribute=g,p.AlignClass=h,p.AlignStyle=o},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.BackgroundStyle=p.BackgroundClass=void 0;var E=d(0),b=y(E),O=d(26);function y(o){return o&&o.__esModule?o:{default:o}}var g=new b.default.Attributor.Class("background","ql-bg",{scope:b.default.Scope.INLINE}),h=new O.ColorAttributor("background","background-color",{scope:b.default.Scope.INLINE});p.BackgroundClass=g,p.BackgroundStyle=h},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.DirectionStyle=p.DirectionClass=p.DirectionAttribute=void 0;var E=d(0),b=O(E);function O(n){return n&&n.__esModule?n:{default:n}}var y={scope:b.default.Scope.BLOCK,whitelist:["rtl"]},g=new b.default.Attributor.Attribute("direction","dir",y),h=new b.default.Attributor.Class("direction","ql-direction",y),o=new b.default.Attributor.Style("direction","direction",y);p.DirectionAttribute=g,p.DirectionClass=h,p.DirectionStyle=o},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.FontClass=p.FontStyle=void 0;var E=function(){function r(i,c){for(var t=0;t<c.length;t++){var s=c[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,c,t){return c&&r(i.prototype,c),t&&r(i,t),i}}(),b=function r(i,c,t){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,c);if(s===void 0){var k=Object.getPrototypeOf(i);return k===null?void 0:r(k,c,t)}else{if("value"in s)return s.value;var w=s.get;return w===void 0?void 0:w.call(t)}},O=d(0),y=g(O);function g(r){return r&&r.__esModule?r:{default:r}}function h(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function n(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"]},f=new y.default.Attributor.Class("font","ql-font",e),a=function(r){n(i,r);function i(){return h(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return E(i,[{key:"value",value:function(t){return b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),i}(y.default.Attributor.Style),u=new a("font","font-family",e);p.FontStyle=u,p.FontClass=f},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.SizeStyle=p.SizeClass=void 0;var E=d(0),b=O(E);function O(h){return h&&h.__esModule?h:{default:h}}var y=new b.default.Attributor.Class("size","ql-size",{scope:b.default.Scope.INLINE,whitelist:["small","large","huge"]}),g=new b.default.Attributor.Style("size","font-size",{scope:b.default.Scope.INLINE,whitelist:["10px","18px","32px"]});p.SizeClass=y,p.SizeStyle=g},function(m,p,d){m.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(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.getLastChangeIndex=p.default=void 0;var E=function(){function c(t,s){for(var k=0;k<s.length;k++){var w=s[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(t,w.key,w)}}return function(t,s,k){return s&&c(t.prototype,s),k&&c(t,k),t}}(),b=d(0),O=n(b),y=d(5),g=n(y),h=d(9),o=n(h);function n(c){return c&&c.__esModule?c:{default:c}}function e(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function f(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function a(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var u=function(c){a(t,c);function t(s,k){e(this,t);var w=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,s,k));return w.lastRecorded=0,w.ignoreChange=!1,w.clear(),w.quill.on(g.default.events.EDITOR_CHANGE,function(T,P,A,v){T!==g.default.events.TEXT_CHANGE||w.ignoreChange||(!w.options.userOnly||v===g.default.sources.USER?w.record(P,A):w.transform(P))}),w.quill.keyboard.addBinding({key:"Z",shortKey:!0},w.undo.bind(w)),w.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},w.redo.bind(w)),/Win/i.test(navigator.platform)&&w.quill.keyboard.addBinding({key:"Y",shortKey:!0},w.redo.bind(w)),w}return E(t,[{key:"change",value:function(k,w){if(this.stack[k].length!==0){var T=this.stack[k].pop();this.stack[w].push(T),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(T[k],g.default.sources.USER),this.ignoreChange=!1;var P=i(T[k]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,w){if(k.ops.length!==0){this.stack.redo=[];var T=this.quill.getContents().diff(w),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var A=this.stack.undo.pop();T=T.compose(A.undo),k=A.redo.compose(k)}else this.lastRecorded=P;this.stack.undo.push({redo:k,undo:T}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(w){w.undo=k.transform(w.undo,!0),w.redo=k.transform(w.redo,!0)}),this.stack.redo.forEach(function(w){w.undo=k.transform(w.undo,!0),w.redo=k.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(o.default);u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(c){var t=c.ops[c.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
`):t.attributes!=null?Object.keys(t.attributes).some(function(s){return O.default.query(s,O.default.Scope.BLOCK)!=null}):!1}function i(c){var t=c.reduce(function(k,w){return k+=w.delete||0,k},0),s=c.length()-t;return r(c)&&(s-=1),s}p.default=u,p.getLastChangeIndex=i},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BaseTooltip=void 0;var E=function(){function I(M,$){for(var C=0;C<$.length;C++){var L=$[C];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(M,L.key,L)}}return function(M,$,C){return $&&I(M.prototype,$),C&&I(M,C),M}}(),b=function I(M,$,C){M===null&&(M=Function.prototype);var L=Object.getOwnPropertyDescriptor(M,$);if(L===void 0){var F=Object.getPrototypeOf(M);return F===null?void 0:I(F,$,C)}else{if("value"in L)return L.value;var V=L.get;return V===void 0?void 0:V.call(C)}},O=d(3),y=P(O),g=d(2),h=P(g),o=d(8),n=P(o),e=d(23),f=P(e),a=d(34),u=P(a),r=d(59),i=P(r),c=d(60),t=P(c),s=d(28),k=P(s),w=d(61),T=P(w);function P(I){return I&&I.__esModule?I:{default:I}}function A(I,M){if(!(I instanceof M))throw new TypeError("Cannot call a class as a function")}function v(I,M){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:I}function _(I,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);I.prototype=Object.create(M&&M.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(I,M):I.__proto__=M)}var N=[!1,"center","right","justify"],q=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],D=[!1,"serif","monospace"],z=["1","2","3",!1],K=["small",!1,"large","huge"],Y=function(I){_(M,I);function M($,C){A(this,M);var L=v(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,$,C)),F=function V(G){if(!document.body.contains($.root))return document.body.removeEventListener("click",V);L.tooltip!=null&&!L.tooltip.root.contains(G.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(X){X.container.contains(G.target)||X.close()})};return $.emitter.listenDOM("click",document.body,F),L}return E(M,[{key:"addModule",value:function(C){var L=b(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,C);return C==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(C,L){C.forEach(function(F){var V=F.getAttribute("class")||"";V.split(/\s+/).forEach(function(G){if(G.startsWith("ql-")&&(G=G.slice(3),L[G]!=null))if(G==="direction")F.innerHTML=L[G][""]+L[G].rtl;else if(typeof L[G]=="string")F.innerHTML=L[G];else{var X=F.value||"";X!=null&&L[G][X]&&(F.innerHTML=L[G][X])}})})}},{key:"buildPickers",value:function(C,L){var F=this;this.pickers=C.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&S(G,N),new t.default(G,L.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var X=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&S(G,q,X==="background"?"#ffffff":"#000000"),new i.default(G,L[X])}else return G.querySelector("option")==null&&(G.classList.contains("ql-font")?S(G,D):G.classList.contains("ql-header")?S(G,z):G.classList.contains("ql-size")&&S(G,K)),new k.default(G)});var V=function(){F.pickers.forEach(function(X){X.update()})};this.quill.on(n.default.events.EDITOR_CHANGE,V)}}]),M}(u.default);Y.DEFAULTS=(0,y.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,$=this.container.querySelector("input.ql-image[type=file]");$==null&&($=document.createElement("input"),$.setAttribute("type","file"),$.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),$.classList.add("ql-image"),$.addEventListener("change",function(){if($.files!=null&&$.files[0]!=null){var C=new FileReader;C.onload=function(L){var F=M.quill.getSelection(!0);M.quill.updateContents(new h.default().retain(F.index).delete(F.length).insert({image:L.target.result}),n.default.sources.USER),M.quill.setSelection(F.index+1,n.default.sources.SILENT),$.value=""},C.readAsDataURL($.files[0])}}),this.container.appendChild($)),$.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var H=function(I){_(M,I);function M($,C){A(this,M);var L=v(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,$,C));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return E(M,[{key:"listen",value:function(){var C=this;this.textbox.addEventListener("keydown",function(L){f.default.match(L,"enter")?(C.save(),L.preventDefault()):f.default.match(L,"escape")&&(C.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:C!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+C)||""),this.root.setAttribute("data-mode",C)}},{key:"restoreFocus",value:function(){var C=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=C}},{key:"save",value:function(){var C=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",C,n.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",C,n.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":C=j(C);case"formula":{if(!C)break;var F=this.quill.getSelection(!0);if(F!=null){var V=F.index+F.length;this.quill.insertEmbed(V,this.root.getAttribute("data-mode"),C,n.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(V+1," ",n.default.sources.USER),this.quill.setSelection(V+2,n.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M}(T.default);function j(I){var M=I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=I.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":I}function S(I,M){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(C){var L=document.createElement("option");C===$?L.setAttribute("selected","selected"):L.setAttribute("value",C),I.appendChild(L)})}p.BaseTooltip=H,p.default=Y},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function b(){this.head=this.tail=null,this.length=0}return b.prototype.append=function(){for(var O=[],y=0;y<arguments.length;y++)O[y]=arguments[y];this.insertBefore(O[0],null),O.length>1&&this.append.apply(this,O.slice(1))},b.prototype.contains=function(O){for(var y,g=this.iterator();y=g();)if(y===O)return!0;return!1},b.prototype.insertBefore=function(O,y){O&&(O.next=y,y!=null?(O.prev=y.prev,y.prev!=null&&(y.prev.next=O),y.prev=O,y===this.head&&(this.head=O)):this.tail!=null?(this.tail.next=O,O.prev=this.tail,this.tail=O):(O.prev=null,this.head=this.tail=O),this.length+=1)},b.prototype.offset=function(O){for(var y=0,g=this.head;g!=null;){if(g===O)return y;y+=g.length(),g=g.next}return-1},b.prototype.remove=function(O){this.contains(O)&&(O.prev!=null&&(O.prev.next=O.next),O.next!=null&&(O.next.prev=O.prev),O===this.head&&(this.head=O.next),O===this.tail&&(this.tail=O.prev),this.length-=1)},b.prototype.iterator=function(O){return O===void 0&&(O=this.head),function(){var y=O;return O!=null&&(O=O.next),y}},b.prototype.find=function(O,y){y===void 0&&(y=!1);for(var g,h=this.iterator();g=h();){var o=g.length();if(O<o||y&&O===o&&(g.next==null||g.next.length()!==0))return[g,O];O-=o}return[null,0]},b.prototype.forEach=function(O){for(var y,g=this.iterator();y=g();)O(y)},b.prototype.forEachAt=function(O,y,g){if(!(y<=0))for(var h=this.find(O),o=h[0],n=h[1],e,f=O-n,a=this.iterator(o);(e=a())&&f<O+y;){var u=e.length();O>f?g(e,O-f,Math.min(y,f+u-O)):g(e,0,Math.min(u,O+y-f)),f+=u}},b.prototype.map=function(O){return this.reduce(function(y,g){return y.push(O(g)),y},[])},b.prototype.reduce=function(O,y){for(var g,h=this.iterator();g=h();)y=O(y,g);return y},b}();p.default=E},function(m,p,d){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var f in e)e.hasOwnProperty(f)&&(n[f]=e[f])};return function(n,e){o(n,e);function f(){this.constructor=n}n.prototype=e===null?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(17),O=d(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},g=100,h=function(o){E(n,o);function n(e){var f=o.call(this,e)||this;return f.scroll=f,f.observer=new MutationObserver(function(a){f.update(a)}),f.observer.observe(f.domNode,y),f.attach(),f}return n.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},n.prototype.deleteAt=function(e,f){this.update(),e===0&&f===this.length()?this.children.forEach(function(a){a.remove()}):o.prototype.deleteAt.call(this,e,f)},n.prototype.formatAt=function(e,f,a,u){this.update(),o.prototype.formatAt.call(this,e,f,a,u)},n.prototype.insertAt=function(e,f,a){this.update(),o.prototype.insertAt.call(this,e,f,a)},n.prototype.optimize=function(e,f){var a=this;e===void 0&&(e=[]),f===void 0&&(f={}),o.prototype.optimize.call(this,f);for(var u=[].slice.call(this.observer.takeRecords());u.length>0;)e.push(u.pop());for(var r=function(s,k){k===void 0&&(k=!0),!(s==null||s===a)&&s.domNode.parentNode!=null&&(s.domNode[O.DATA_KEY].mutations==null&&(s.domNode[O.DATA_KEY].mutations=[]),k&&r(s.parent))},i=function(s){s.domNode[O.DATA_KEY]==null||s.domNode[O.DATA_KEY].mutations==null||(s instanceof b.default&&s.children.forEach(i),s.optimize(f))},c=e,t=0;c.length>0;t+=1){if(t>=g)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(s){var k=O.find(s.target,!0);k!=null&&(k.domNode===s.target&&(s.type==="childList"?(r(O.find(s.previousSibling,!1)),[].forEach.call(s.addedNodes,function(w){var T=O.find(w,!1);r(T,!1),T instanceof b.default&&T.children.forEach(function(P){r(P,!1)})})):s.type==="attributes"&&r(k.prev)),r(k))}),this.children.forEach(i),c=[].slice.call(this.observer.takeRecords()),u=c.slice();u.length>0;)e.push(u.pop())}},n.prototype.update=function(e,f){var a=this;f===void 0&&(f={}),e=e||this.observer.takeRecords(),e.map(function(u){var r=O.find(u.target,!0);return r==null?null:r.domNode[O.DATA_KEY].mutations==null?(r.domNode[O.DATA_KEY].mutations=[u],r):(r.domNode[O.DATA_KEY].mutations.push(u),null)}).forEach(function(u){u==null||u===a||u.domNode[O.DATA_KEY]==null||u.update(u.domNode[O.DATA_KEY].mutations||[],f)}),this.domNode[O.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[O.DATA_KEY].mutations,f),this.optimize(e,f)},n.blotName="scroll",n.defaultChild="block",n.scope=O.Scope.BLOCK_BLOT,n.tagName="DIV",n}(b.default);p.default=h},function(m,p,d){var E=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var e in n)n.hasOwnProperty(e)&&(o[e]=n[e])};return function(o,n){h(o,n);function e(){this.constructor=o}o.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(18),O=d(1);function y(h,o){if(Object.keys(h).length!==Object.keys(o).length)return!1;for(var n in h)if(h[n]!==o[n])return!1;return!0}var g=function(h){E(o,h);function o(){return h!==null&&h.apply(this,arguments)||this}return o.formats=function(n){if(n.tagName!==o.tagName)return h.formats.call(this,n)},o.prototype.format=function(n,e){var f=this;n===this.statics.blotName&&!e?(this.children.forEach(function(a){a instanceof b.default||(a=a.wrap(o.blotName,!0)),f.attributes.copy(a)}),this.unwrap()):h.prototype.format.call(this,n,e)},o.prototype.formatAt=function(n,e,f,a){if(this.formats()[f]!=null||O.query(f,O.Scope.ATTRIBUTE)){var u=this.isolate(n,e);u.format(f,a)}else h.prototype.formatAt.call(this,n,e,f,a)},o.prototype.optimize=function(n){h.prototype.optimize.call(this,n);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var f=this.next;f instanceof o&&f.prev===this&&y(e,f.formats())&&(f.moveChildren(this),f.remove())},o.blotName="inline",o.scope=O.Scope.INLINE_BLOT,o.tagName="SPAN",o}(b.default);p.default=g},function(m,p,d){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var n in o)o.hasOwnProperty(n)&&(h[n]=o[n])};return function(h,o){g(h,o);function n(){this.constructor=h}h.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(18),O=d(1),y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.formats=function(o){var n=O.query(h.blotName).tagName;if(o.tagName!==n)return g.formats.call(this,o)},h.prototype.format=function(o,n){O.query(o,O.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!n?this.replaceWith(h.blotName):g.prototype.format.call(this,o,n))},h.prototype.formatAt=function(o,n,e,f){O.query(e,O.Scope.BLOCK)!=null?this.format(e,f):g.prototype.formatAt.call(this,o,n,e,f)},h.prototype.insertAt=function(o,n,e){if(e==null||O.query(n,O.Scope.INLINE)!=null)g.prototype.insertAt.call(this,o,n,e);else{var f=this.split(o),a=O.create(n,e);f.parent.insertBefore(a,f)}},h.prototype.update=function(o,n){navigator.userAgent.match(/Trident/)?this.build():g.prototype.update.call(this,o,n)},h.blotName="block",h.scope=O.Scope.BLOCK_BLOT,h.tagName="P",h}(b.default);p.default=y},function(m,p,d){var E=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,h){g.__proto__=h}||function(g,h){for(var o in h)h.hasOwnProperty(o)&&(g[o]=h[o])};return function(g,h){y(g,h);function o(){this.constructor=g}g.prototype=h===null?Object.create(h):(o.prototype=h.prototype,new o)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(19),O=function(y){E(g,y);function g(){return y!==null&&y.apply(this,arguments)||this}return g.formats=function(h){},g.prototype.format=function(h,o){y.prototype.formatAt.call(this,0,this.length(),h,o)},g.prototype.formatAt=function(h,o,n,e){h===0&&o===this.length()?this.format(n,e):y.prototype.formatAt.call(this,h,o,n,e)},g.prototype.formats=function(){return this.statics.formats(this.domNode)},g}(b.default);p.default=O},function(m,p,d){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var n in o)o.hasOwnProperty(n)&&(h[n]=o[n])};return function(h,o){g(h,o);function n(){this.constructor=h}h.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(p,"__esModule",{value:!0});var b=d(19),O=d(1),y=function(g){E(h,g);function h(o){var n=g.call(this,o)||this;return n.text=n.statics.value(n.domNode),n}return h.create=function(o){return document.createTextNode(o)},h.value=function(o){var n=o.data;return n.normalize&&(n=n.normalize()),n},h.prototype.deleteAt=function(o,n){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+n)},h.prototype.index=function(o,n){return this.domNode===o?n:-1},h.prototype.insertAt=function(o,n,e){e==null?(this.text=this.text.slice(0,o)+n+this.text.slice(o),this.domNode.data=this.text):g.prototype.insertAt.call(this,o,n,e)},h.prototype.length=function(){return this.text.length},h.prototype.optimize=function(o){g.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},h.prototype.position=function(o,n){return[this.domNode,o]},h.prototype.split=function(o,n){if(n===void 0&&(n=!1),!n){if(o===0)return this;if(o===this.length())return this.next}var e=O.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},h.prototype.update=function(o,n){var e=this;o.some(function(f){return f.type==="characterData"&&f.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},h.prototype.value=function(){return this.text},h.blotName="text",h.scope=O.Scope.INLINE_BLOT,h}(b.default);p.default=y},function(m,p,d){var E=document.createElement("div");if(E.classList.toggle("test-class",!1),E.classList.contains("test-class")){var b=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(O,y){return arguments.length>1&&!this.contains(O)==!y?y:b.call(this,O)}}String.prototype.startsWith||(String.prototype.startsWith=function(O,y){return y=y||0,this.substr(y,O.length)===O}),String.prototype.endsWith||(String.prototype.endsWith=function(O,y){var g=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>g.length)&&(y=g.length),y-=O.length;var h=g.indexOf(O,y);return h!==-1&&h===y}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof y!="function")throw new TypeError("predicate must be a function");for(var g=Object(this),h=g.length>>>0,o=arguments[1],n,e=0;e<h;e++)if(n=g[e],y.call(o,n,e,g))return n}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(m,p){var d=-1,E=1,b=0;function O(t,s,k){if(t==s)return t?[[b,t]]:[];(k<0||t.length<k)&&(k=null);var w=o(t,s),T=t.substring(0,w);t=t.substring(w),s=s.substring(w),w=n(t,s);var P=t.substring(t.length-w);t=t.substring(0,t.length-w),s=s.substring(0,s.length-w);var A=y(t,s);return T&&A.unshift([b,T]),P&&A.push([b,P]),f(A),k!=null&&(A=r(A,k)),A=i(A),A}function y(t,s){var k;if(!t)return[[E,s]];if(!s)return[[d,t]];var w=t.length>s.length?t:s,T=t.length>s.length?s:t,P=w.indexOf(T);if(P!=-1)return k=[[E,w.substring(0,P)],[b,T],[E,w.substring(P+T.length)]],t.length>s.length&&(k[0][0]=k[2][0]=d),k;if(T.length==1)return[[d,t],[E,s]];var A=e(t,s);if(A){var v=A[0],_=A[1],N=A[2],q=A[3],D=A[4],z=O(v,N),K=O(_,q);return z.concat([[b,D]],K)}return g(t,s)}function g(t,s){for(var k=t.length,w=s.length,T=Math.ceil((k+w)/2),P=T,A=2*T,v=new Array(A),_=new Array(A),N=0;N<A;N++)v[N]=-1,_[N]=-1;v[P+1]=0,_[P+1]=0;for(var q=k-w,D=q%2!=0,z=0,K=0,Y=0,H=0,j=0;j<T;j++){for(var S=-j+z;S<=j-K;S+=2){var I=P+S,M;S==-j||S!=j&&v[I-1]<v[I+1]?M=v[I+1]:M=v[I-1]+1;for(var $=M-S;M<k&&$<w&&t.charAt(M)==s.charAt($);)M++,$++;if(v[I]=M,M>k)K+=2;else if($>w)z+=2;else if(D){var C=P+q-S;if(C>=0&&C<A&&_[C]!=-1){var L=k-_[C];if(M>=L)return h(t,s,M,$)}}}for(var F=-j+Y;F<=j-H;F+=2){var C=P+F,L;F==-j||F!=j&&_[C-1]<_[C+1]?L=_[C+1]:L=_[C-1]+1;for(var V=L-F;L<k&&V<w&&t.charAt(k-L-1)==s.charAt(w-V-1);)L++,V++;if(_[C]=L,L>k)H+=2;else if(V>w)Y+=2;else if(!D){var I=P+q-F;if(I>=0&&I<A&&v[I]!=-1){var M=v[I],$=P+M-I;if(L=k-L,M>=L)return h(t,s,M,$)}}}}return[[d,t],[E,s]]}function h(t,s,k,w){var T=t.substring(0,k),P=s.substring(0,w),A=t.substring(k),v=s.substring(w),_=O(T,P),N=O(A,v);return _.concat(N)}function o(t,s){if(!t||!s||t.charAt(0)!=s.charAt(0))return 0;for(var k=0,w=Math.min(t.length,s.length),T=w,P=0;k<T;)t.substring(P,T)==s.substring(P,T)?(k=T,P=k):w=T,T=Math.floor((w-k)/2+k);return T}function n(t,s){if(!t||!s||t.charAt(t.length-1)!=s.charAt(s.length-1))return 0;for(var k=0,w=Math.min(t.length,s.length),T=w,P=0;k<T;)t.substring(t.length-T,t.length-P)==s.substring(s.length-T,s.length-P)?(k=T,P=k):w=T,T=Math.floor((w-k)/2+k);return T}function e(t,s){var k=t.length>s.length?t:s,w=t.length>s.length?s:t;if(k.length<4||w.length*2<k.length)return null;function T(K,Y,H){for(var j=K.substring(H,H+Math.floor(K.length/4)),S=-1,I="",M,$,C,L;(S=Y.indexOf(j,S+1))!=-1;){var F=o(K.substring(H),Y.substring(S)),V=n(K.substring(0,H),Y.substring(0,S));I.length<V+F&&(I=Y.substring(S-V,S)+Y.substring(S,S+F),M=K.substring(0,H-V),$=K.substring(H+F),C=Y.substring(0,S-V),L=Y.substring(S+F))}return I.length*2>=K.length?[M,$,C,L,I]:null}var P=T(k,w,Math.ceil(k.length/4)),A=T(k,w,Math.ceil(k.length/2)),v;if(!P&&!A)return null;A?P?v=P[4].length>A[4].length?P:A:v=A:v=P;var _,N,q,D;t.length>s.length?(_=v[0],N=v[1],q=v[2],D=v[3]):(q=v[0],D=v[1],_=v[2],N=v[3]);var z=v[4];return[_,N,q,D,z]}function f(t){t.push([b,""]);for(var s=0,k=0,w=0,T="",P="",A;s<t.length;)switch(t[s][0]){case E:w++,P+=t[s][1],s++;break;case d:k++,T+=t[s][1],s++;break;case b:k+w>1?(k!==0&&w!==0&&(A=o(P,T),A!==0&&(s-k-w>0&&t[s-k-w-1][0]==b?t[s-k-w-1][1]+=P.substring(0,A):(t.splice(0,0,[b,P.substring(0,A)]),s++),P=P.substring(A),T=T.substring(A)),A=n(P,T),A!==0&&(t[s][1]=P.substring(P.length-A)+t[s][1],P=P.substring(0,P.length-A),T=T.substring(0,T.length-A))),k===0?t.splice(s-w,k+w,[E,P]):w===0?t.splice(s-k,k+w,[d,T]):t.splice(s-k-w,k+w,[d,T],[E,P]),s=s-k-w+(k?1:0)+(w?1:0)+1):s!==0&&t[s-1][0]==b?(t[s-1][1]+=t[s][1],t.splice(s,1)):s++,w=0,k=0,T="",P="";break}t[t.length-1][1]===""&&t.pop();var v=!1;for(s=1;s<t.length-1;)t[s-1][0]==b&&t[s+1][0]==b&&(t[s][1].substring(t[s][1].length-t[s-1][1].length)==t[s-1][1]?(t[s][1]=t[s-1][1]+t[s][1].substring(0,t[s][1].length-t[s-1][1].length),t[s+1][1]=t[s-1][1]+t[s+1][1],t.splice(s-1,1),v=!0):t[s][1].substring(0,t[s+1][1].length)==t[s+1][1]&&(t[s-1][1]+=t[s+1][1],t[s][1]=t[s][1].substring(t[s+1][1].length)+t[s+1][1],t.splice(s+1,1),v=!0)),s++;v&&f(t)}var a=O;a.INSERT=E,a.DELETE=d,a.EQUAL=b,m.exports=a;function u(t,s){if(s===0)return[b,t];for(var k=0,w=0;w<t.length;w++){var T=t[w];if(T[0]===d||T[0]===b){var P=k+T[1].length;if(s===P)return[w+1,t];if(s<P){t=t.slice();var A=s-k,v=[T[0],T[1].slice(0,A)],_=[T[0],T[1].slice(A)];return t.splice(w,1,v,_),[w+1,t]}else k=P}}throw new Error("cursor_pos is out of bounds!")}function r(t,s){var k=u(t,s),w=k[1],T=k[0],P=w[T],A=w[T+1];if(P==null)return t;if(P[0]!==b)return t;if(A!=null&&P[1]+A[1]===A[1]+P[1])return w.splice(T,2,A,P),c(w,T,2);if(A!=null&&A[1].indexOf(P[1])===0){w.splice(T,2,[A[0],P[1]],[0,P[1]]);var v=A[1].slice(P[1].length);return v.length>0&&w.splice(T+2,0,[A[0],v]),c(w,T,3)}else return t}function i(t){for(var s=!1,k=function(A){return A.charCodeAt(0)>=56320&&A.charCodeAt(0)<=57343},w=function(A){return A.charCodeAt(A.length-1)>=55296&&A.charCodeAt(A.length-1)<=56319},T=2;T<t.length;T+=1)t[T-2][0]===b&&w(t[T-2][1])&&t[T-1][0]===d&&k(t[T-1][1])&&t[T][0]===E&&k(t[T][1])&&(s=!0,t[T-1][1]=t[T-2][1].slice(-1)+t[T-1][1],t[T][1]=t[T-2][1].slice(-1)+t[T][1],t[T-2][1]=t[T-2][1].slice(0,-1));if(!s)return t;for(var P=[],T=0;T<t.length;T+=1)t[T][1].length>0&&P.push(t[T]);return P}function c(t,s,k){for(var w=s+k-1;w>=0&&w>=s-1;w--)if(w+1<t.length){var T=t[w],P=t[w+1];T[0]===P[1]&&t.splice(w,2,[T[0],T[1]+P[1]])}return t}},function(m,p){p=m.exports=typeof Object.keys=="function"?Object.keys:d,p.shim=d;function d(E){var b=[];for(var O in E)b.push(O);return b}},function(m,p){var d=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";p=m.exports=d?E:b,p.supported=E;function E(O){return Object.prototype.toString.call(O)=="[object Arguments]"}p.unsupported=b;function b(O){return O&&typeof O=="object"&&typeof O.length=="number"&&Object.prototype.hasOwnProperty.call(O,"callee")&&!Object.prototype.propertyIsEnumerable.call(O,"callee")||!1}},function(m,p){var d=Object.prototype.hasOwnProperty,E="~";function b(){}Object.create&&(b.prototype=Object.create(null),new b().__proto__||(E=!1));function O(g,h,o){this.fn=g,this.context=h,this.once=o||!1}function y(){this._events=new b,this._eventsCount=0}y.prototype.eventNames=function(){var h=[],o,n;if(this._eventsCount===0)return h;for(n in o=this._events)d.call(o,n)&&h.push(E?n.slice(1):n);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(o)):h},y.prototype.listeners=function(h,o){var n=E?E+h:h,e=this._events[n];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var f=0,a=e.length,u=new Array(a);f<a;f++)u[f]=e[f].fn;return u},y.prototype.emit=function(h,o,n,e,f,a){var u=E?E+h:h;if(!this._events[u])return!1;var r=this._events[u],i=arguments.length,c,t;if(r.fn){switch(r.once&&this.removeListener(h,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,n),!0;case 4:return r.fn.call(r.context,o,n,e),!0;case 5:return r.fn.call(r.context,o,n,e,f),!0;case 6:return r.fn.call(r.context,o,n,e,f,a),!0}for(t=1,c=new Array(i-1);t<i;t++)c[t-1]=arguments[t];r.fn.apply(r.context,c)}else{var s=r.length,k;for(t=0;t<s;t++)switch(r[t].once&&this.removeListener(h,r[t].fn,void 0,!0),i){case 1:r[t].fn.call(r[t].context);break;case 2:r[t].fn.call(r[t].context,o);break;case 3:r[t].fn.call(r[t].context,o,n);break;case 4:r[t].fn.call(r[t].context,o,n,e);break;default:if(!c)for(k=1,c=new Array(i-1);k<i;k++)c[k-1]=arguments[k];r[t].fn.apply(r[t].context,c)}}return!0},y.prototype.on=function(h,o,n){var e=new O(o,n||this),f=E?E+h:h;return this._events[f]?this._events[f].fn?this._events[f]=[this._events[f],e]:this._events[f].push(e):(this._events[f]=e,this._eventsCount++),this},y.prototype.once=function(h,o,n){var e=new O(o,n||this,!0),f=E?E+h:h;return this._events[f]?this._events[f].fn?this._events[f]=[this._events[f],e]:this._events[f].push(e):(this._events[f]=e,this._eventsCount++),this},y.prototype.removeListener=function(h,o,n,e){var f=E?E+h:h;if(!this._events[f])return this;if(!o)return--this._eventsCount===0?this._events=new b:delete this._events[f],this;var a=this._events[f];if(a.fn)a.fn===o&&(!e||a.once)&&(!n||a.context===n)&&(--this._eventsCount===0?this._events=new b:delete this._events[f]);else{for(var u=0,r=[],i=a.length;u<i;u++)(a[u].fn!==o||e&&!a[u].once||n&&a[u].context!==n)&&r.push(a[u]);r.length?this._events[f]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new b:delete this._events[f]}return this},y.prototype.removeAllListeners=function(h){var o;return h?(o=E?E+h:h,this._events[o]&&(--this._eventsCount===0?this._events=new b:delete this._events[o])):(this._events=new b,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=E,y.EventEmitter=y,typeof m<"u"&&(m.exports=y)},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.matchText=p.matchSpacing=p.matchNewline=p.matchBlot=p.matchAttributor=p.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},b=function(){function W(Q,tt){var et=[],J=!0,st=!1,ot=void 0;try{for(var lt=Q[Symbol.iterator](),Nt;!(J=(Nt=lt.next()).done)&&(et.push(Nt.value),!(tt&&et.length===tt));J=!0);}catch(Et){st=!0,ot=Et}finally{try{!J&&lt.return&&lt.return()}finally{if(st)throw ot}}return et}return function(Q,tt){if(Array.isArray(Q))return Q;if(Symbol.iterator in Object(Q))return W(Q,tt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function W(Q,tt){for(var et=0;et<tt.length;et++){var J=tt[et];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Q,J.key,J)}}return function(Q,tt,et){return tt&&W(Q.prototype,tt),et&&W(Q,et),Q}}(),y=d(3),g=_(y),h=d(2),o=_(h),n=d(0),e=_(n),f=d(5),a=_(f),u=d(10),r=_(u),i=d(9),c=_(i),t=d(36),s=d(37),k=d(13),w=_(k),T=d(26),P=d(38),A=d(39),v=d(40);function _(W){return W&&W.__esModule?W:{default:W}}function N(W,Q,tt){return Q in W?Object.defineProperty(W,Q,{value:tt,enumerable:!0,configurable:!0,writable:!0}):W[Q]=tt,W}function q(W,Q){if(!(W instanceof Q))throw new TypeError("Cannot call a class as a function")}function D(W,Q){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q&&(typeof Q=="object"||typeof Q=="function")?Q:W}function z(W,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Q);W.prototype=Object.create(Q&&Q.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Q&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Q):W.__proto__=Q)}var K=(0,r.default)("quill:clipboard"),Y="__ql-matcher",H=[[Node.TEXT_NODE,gt],[Node.TEXT_NODE,ft],["br",nt],[Node.ELEMENT_NODE,ft],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,ht],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,mt],["li",at],["b",V.bind(V,"bold")],["i",V.bind(V,"italic")],["style",it]],j=[t.AlignAttribute,P.DirectionAttribute].reduce(function(W,Q){return W[Q.keyName]=Q,W},{}),S=[t.AlignStyle,s.BackgroundStyle,T.ColorStyle,P.DirectionStyle,A.FontStyle,v.SizeStyle].reduce(function(W,Q){return W[Q.keyName]=Q,W},{}),I=function(W){z(Q,W);function Q(tt,et){q(this,Q);var J=D(this,(Q.__proto__||Object.getPrototypeOf(Q)).call(this,tt,et));return J.quill.root.addEventListener("paste",J.onPaste.bind(J)),J.container=J.quill.addContainer("ql-clipboard"),J.container.setAttribute("contenteditable",!0),J.container.setAttribute("tabindex",-1),J.matchers=[],H.concat(J.options.matchers).forEach(function(st){var ot=b(st,2),lt=ot[0],Nt=ot[1];!et.matchVisual&&Nt===ht||J.addMatcher(lt,Nt)}),J}return O(Q,[{key:"addMatcher",value:function(et,J){this.matchers.push([et,J])}},{key:"convert",value:function(et){if(typeof et=="string")return this.container.innerHTML=et.replace(/\>\r?\n +\</g,"><"),this.convert();var J=this.quill.getFormat(this.quill.selection.savedRange.index);if(J[w.default.blotName]){var st=this.container.innerText;return this.container.innerHTML="",new o.default().insert(st,N({},w.default.blotName,J[w.default.blotName]))}var ot=this.prepareMatching(),lt=b(ot,2),Nt=lt[0],Et=lt[1],pt=F(this.container,Nt,Et);return C(pt,`
`)&&pt.ops[pt.ops.length-1].attributes==null&&(pt=pt.compose(new o.default().retain(pt.length()-1).delete(1))),K.log("convert",this.container.innerHTML,pt),this.container.innerHTML="",pt}},{key:"dangerouslyPasteHTML",value:function(et,J){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;if(typeof et=="string")this.quill.setContents(this.convert(et),J),this.quill.setSelection(0,a.default.sources.SILENT);else{var ot=this.convert(J);this.quill.updateContents(new o.default().retain(et).concat(ot),st),this.quill.setSelection(et+ot.length(),a.default.sources.SILENT)}}},{key:"onPaste",value:function(et){var J=this;if(!(et.defaultPrevented||!this.quill.isEnabled())){var st=this.quill.getSelection(),ot=new o.default().retain(st.index),lt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(a.default.sources.SILENT),setTimeout(function(){ot=ot.concat(J.convert()).delete(st.length),J.quill.updateContents(ot,a.default.sources.USER),J.quill.setSelection(ot.length()-st.length,a.default.sources.SILENT),J.quill.scrollingContainer.scrollTop=lt,J.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var et=this,J=[],st=[];return this.matchers.forEach(function(ot){var lt=b(ot,2),Nt=lt[0],Et=lt[1];switch(Nt){case Node.TEXT_NODE:st.push(Et);break;case Node.ELEMENT_NODE:J.push(Et);break;default:[].forEach.call(et.container.querySelectorAll(Nt),function(pt){pt[Y]=pt[Y]||[],pt[Y].push(Et)});break}}),[J,st]}}]),Q}(c.default);I.DEFAULTS={matchers:[],matchVisual:!0};function M(W,Q,tt){return(typeof Q>"u"?"undefined":E(Q))==="object"?Object.keys(Q).reduce(function(et,J){return M(et,J,Q[J])},W):W.reduce(function(et,J){return J.attributes&&J.attributes[Q]?et.push(J):et.insert(J.insert,(0,g.default)({},N({},Q,tt),J.attributes))},new o.default)}function $(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var Q="__ql-computed-style";return W[Q]||(W[Q]=window.getComputedStyle(W))}function C(W,Q){for(var tt="",et=W.ops.length-1;et>=0&&tt.length<Q.length;--et){var J=W.ops[et];if(typeof J.insert!="string")break;tt=J.insert+tt}return tt.slice(-1*Q.length)===Q}function L(W){if(W.childNodes.length===0)return!1;var Q=$(W);return["block","list-item"].indexOf(Q.display)>-1}function F(W,Q,tt){return W.nodeType===W.TEXT_NODE?tt.reduce(function(et,J){return J(W,et)},new o.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(et,J){var st=F(J,Q,tt);return J.nodeType===W.ELEMENT_NODE&&(st=Q.reduce(function(ot,lt){return lt(J,ot)},st),st=(J[Y]||[]).reduce(function(ot,lt){return lt(J,ot)},st)),et.concat(st)},new o.default):new o.default}function V(W,Q,tt){return M(tt,W,!0)}function G(W,Q){var tt=e.default.Attributor.Attribute.keys(W),et=e.default.Attributor.Class.keys(W),J=e.default.Attributor.Style.keys(W),st={};return tt.concat(et).concat(J).forEach(function(ot){var lt=e.default.query(ot,e.default.Scope.ATTRIBUTE);lt!=null&&(st[lt.attrName]=lt.value(W),st[lt.attrName])||(lt=j[ot],lt!=null&&(lt.attrName===ot||lt.keyName===ot)&&(st[lt.attrName]=lt.value(W)||void 0),lt=S[ot],lt!=null&&(lt.attrName===ot||lt.keyName===ot)&&(lt=S[ot],st[lt.attrName]=lt.value(W)||void 0))}),Object.keys(st).length>0&&(Q=M(Q,st)),Q}function X(W,Q){var tt=e.default.query(W);if(tt==null)return Q;if(tt.prototype instanceof e.default.Embed){var et={},J=tt.value(W);J!=null&&(et[tt.blotName]=J,Q=new o.default().insert(et,tt.formats(W)))}else typeof tt.formats=="function"&&(Q=M(Q,tt.blotName,tt.formats(W)));return Q}function nt(W,Q){return C(Q,`
`)||Q.insert(`
`),Q}function it(){return new o.default}function at(W,Q){var tt=e.default.query(W);if(tt==null||tt.blotName!=="list-item"||!C(Q,`
`))return Q;for(var et=-1,J=W.parentNode;!J.classList.contains("ql-clipboard");)(e.default.query(J)||{}).blotName==="list"&&(et+=1),J=J.parentNode;return et<=0?Q:Q.compose(new o.default().retain(Q.length()-1).retain(1,{indent:et}))}function ft(W,Q){return C(Q,`
`)||(L(W)||Q.length()>0&&W.nextSibling&&L(W.nextSibling))&&Q.insert(`
`),Q}function ht(W,Q){if(L(W)&&W.nextElementSibling!=null&&!C(Q,`
`)){var tt=W.offsetHeight+parseFloat($(W).marginTop)+parseFloat($(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+tt*1.5&&Q.insert(`
`)}return Q}function mt(W,Q){var tt={},et=W.style||{};return et.fontStyle&&$(W).fontStyle==="italic"&&(tt.italic=!0),et.fontWeight&&($(W).fontWeight.startsWith("bold")||parseInt($(W).fontWeight)>=700)&&(tt.bold=!0),Object.keys(tt).length>0&&(Q=M(Q,tt)),parseFloat(et.textIndent||0)>0&&(Q=new o.default().insert(" ").concat(Q)),Q}function gt(W,Q){var tt=W.data;if(W.parentNode.tagName==="O:P")return Q.insert(tt.trim());if(tt.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return Q;if(!$(W.parentNode).whiteSpace.startsWith("pre")){var et=function(st,ot){return ot=ot.replace(/[^\u00a0]/g,""),ot.length<1&&st?" ":ot};tt=tt.replace(/\r\n/g," ").replace(/\n/g," "),tt=tt.replace(/\s\s+/g,et.bind(et,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(tt=tt.replace(/^\s+/,et.bind(et,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(tt=tt.replace(/\s+$/,et.bind(et,!1)))}return Q.insert(tt)}p.default=I,p.matchAttributor=G,p.matchBlot=X,p.matchNewline=ft,p.matchSpacing=ht,p.matchText=gt},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function f(a,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,u,r){return u&&f(a.prototype,u),r&&f(a,r),a}}(),b=function f(a,u,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,u);if(i===void 0){var c=Object.getPrototypeOf(a);return c===null?void 0:f(c,u,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},O=d(6),y=g(O);function g(f){return f&&f.__esModule?f:{default:f}}function h(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")}function o(f,a){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:f}function n(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}var e=function(f){n(a,f);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return E(a,[{key:"optimize",value:function(r){b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return b(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),a}(y.default);e.blotName="bold",e.tagName=["STRONG","B"],p.default=e},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.addControls=p.default=void 0;var E=function(){function v(_,N){var q=[],D=!0,z=!1,K=void 0;try{for(var Y=_[Symbol.iterator](),H;!(D=(H=Y.next()).done)&&(q.push(H.value),!(N&&q.length===N));D=!0);}catch(j){z=!0,K=j}finally{try{!D&&Y.return&&Y.return()}finally{if(z)throw K}}return q}return function(_,N){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return v(_,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function v(_,N){for(var q=0;q<N.length;q++){var D=N[q];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,D.key,D)}}return function(_,N,q){return N&&v(_.prototype,N),q&&v(_,q),_}}(),O=d(2),y=r(O),g=d(0),h=r(g),o=d(5),n=r(o),e=d(10),f=r(e),a=d(9),u=r(a);function r(v){return v&&v.__esModule?v:{default:v}}function i(v,_,N){return _ in v?Object.defineProperty(v,_,{value:N,enumerable:!0,configurable:!0,writable:!0}):v[_]=N,v}function c(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function t(v,_){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:v}function s(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);v.prototype=Object.create(_&&_.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(v,_):v.__proto__=_)}var k=(0,f.default)("quill:toolbar"),w=function(v){s(_,v);function _(N,q){c(this,_);var D=t(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,N,q));if(Array.isArray(D.options.container)){var z=document.createElement("div");P(z,D.options.container),N.container.parentNode.insertBefore(z,N.container),D.container=z}else typeof D.options.container=="string"?D.container=document.querySelector(D.options.container):D.container=D.options.container;if(!(D.container instanceof HTMLElement)){var K;return K=k.error("Container required for toolbar",D.options),t(D,K)}return D.container.classList.add("ql-toolbar"),D.controls=[],D.handlers={},Object.keys(D.options.handlers).forEach(function(Y){D.addHandler(Y,D.options.handlers[Y])}),[].forEach.call(D.container.querySelectorAll("button, select"),function(Y){D.attach(Y)}),D.quill.on(n.default.events.EDITOR_CHANGE,function(Y,H){Y===n.default.events.SELECTION_CHANGE&&D.update(H)}),D.quill.on(n.default.events.SCROLL_OPTIMIZE,function(){var Y=D.quill.selection.getRange(),H=E(Y,1),j=H[0];D.update(j)}),D}return b(_,[{key:"addHandler",value:function(q,D){this.handlers[q]=D}},{key:"attach",value:function(q){var D=this,z=[].find.call(q.classList,function(Y){return Y.indexOf("ql-")===0});if(z){if(z=z.slice(3),q.tagName==="BUTTON"&&q.setAttribute("type","button"),this.handlers[z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[z]==null){k.warn("ignoring attaching to disabled format",z,q);return}if(h.default.query(z)==null){k.warn("ignoring attaching to nonexistent format",z,q);return}}var K=q.tagName==="SELECT"?"change":"click";q.addEventListener(K,function(Y){var H=void 0;if(q.tagName==="SELECT"){if(q.selectedIndex<0)return;var j=q.options[q.selectedIndex];j.hasAttribute("selected")?H=!1:H=j.value||!1}else q.classList.contains("ql-active")?H=!1:H=q.value||!q.hasAttribute("value"),Y.preventDefault();D.quill.focus();var S=D.quill.selection.getRange(),I=E(S,1),M=I[0];if(D.handlers[z]!=null)D.handlers[z].call(D,H);else if(h.default.query(z).prototype instanceof h.default.Embed){if(H=prompt("Enter "+z),!H)return;D.quill.updateContents(new y.default().retain(M.index).delete(M.length).insert(i({},z,H)),n.default.sources.USER)}else D.quill.format(z,H,n.default.sources.USER);D.update(M)}),this.controls.push([z,q])}}},{key:"update",value:function(q){var D=q==null?{}:this.quill.getFormat(q);this.controls.forEach(function(z){var K=E(z,2),Y=K[0],H=K[1];if(H.tagName==="SELECT"){var j=void 0;if(q==null)j=null;else if(D[Y]==null)j=H.querySelector("option[selected]");else if(!Array.isArray(D[Y])){var S=D[Y];typeof S=="string"&&(S=S.replace(/\"/g,'\\"')),j=H.querySelector('option[value="'+S+'"]')}j==null?(H.value="",H.selectedIndex=-1):j.selected=!0}else if(q==null)H.classList.remove("ql-active");else if(H.hasAttribute("value")){var I=D[Y]===H.getAttribute("value")||D[Y]!=null&&D[Y].toString()===H.getAttribute("value")||D[Y]==null&&!H.getAttribute("value");H.classList.toggle("ql-active",I)}else H.classList.toggle("ql-active",D[Y]!=null)})}}]),_}(u.default);w.DEFAULTS={};function T(v,_,N){var q=document.createElement("button");q.setAttribute("type","button"),q.classList.add("ql-"+_),N!=null&&(q.value=N),v.appendChild(q)}function P(v,_){Array.isArray(_[0])||(_=[_]),_.forEach(function(N){var q=document.createElement("span");q.classList.add("ql-formats"),N.forEach(function(D){if(typeof D=="string")T(q,D);else{var z=Object.keys(D)[0],K=D[z];Array.isArray(K)?A(q,z,K):T(q,z,K)}}),v.appendChild(q)})}function A(v,_,N){var q=document.createElement("select");q.classList.add("ql-"+_),N.forEach(function(D){var z=document.createElement("option");D!==!1?z.setAttribute("value",D):z.setAttribute("selected","selected"),q.appendChild(z)}),v.appendChild(q)}w.DEFAULTS={container:null,handlers:{clean:function(){var _=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var q=this.quill.getFormat();Object.keys(q).forEach(function(D){h.default.query(D,h.default.Scope.INLINE)!=null&&_.quill.format(D,!1)})}else this.quill.removeFormat(N,n.default.sources.USER)},direction:function(_){var N=this.quill.getFormat().align;_==="rtl"&&N==null?this.quill.format("align","right",n.default.sources.USER):!_&&N==="right"&&this.quill.format("align",!1,n.default.sources.USER),this.quill.format("direction",_,n.default.sources.USER)},indent:function(_){var N=this.quill.getSelection(),q=this.quill.getFormat(N),D=parseInt(q.indent||0);if(_==="+1"||_==="-1"){var z=_==="+1"?1:-1;q.direction==="rtl"&&(z*=-1),this.quill.format("indent",D+z,n.default.sources.USER)}},link:function(_){_===!0&&(_=prompt("Enter link URL:")),this.quill.format("link",_,n.default.sources.USER)},list:function(_){var N=this.quill.getSelection(),q=this.quill.getFormat(N);_==="check"?q.list==="checked"||q.list==="unchecked"?this.quill.format("list",!1,n.default.sources.USER):this.quill.format("list","unchecked",n.default.sources.USER):this.quill.format("list",_,n.default.sources.USER)}}},p.default=w,p.addControls=P},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function f(a,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,u,r){return u&&f(a.prototype,u),r&&f(a,r),a}}(),b=function f(a,u,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,u);if(i===void 0){var c=Object.getPrototypeOf(a);return c===null?void 0:f(c,u,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},O=d(28),y=g(O);function g(f){return f&&f.__esModule?f:{default:f}}function h(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")}function o(f,a){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:f}function n(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}var e=function(f){n(a,f);function a(u,r){h(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,u));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(c){c.classList.add("ql-primary")}),i}return E(a,[{key:"buildItem",value:function(r){var i=b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i);var c=this.label.querySelector(".ql-color-label"),t=r&&r.getAttribute("data-value")||"";c&&(c.tagName==="line"?c.style.stroke=t:c.style.fill=t)}}]),a}(y.default);p.default=e},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function f(a,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,u,r){return u&&f(a.prototype,u),r&&f(a,r),a}}(),b=function f(a,u,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,u);if(i===void 0){var c=Object.getPrototypeOf(a);return c===null?void 0:f(c,u,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},O=d(28),y=g(O);function g(f){return f&&f.__esModule?f:{default:f}}function h(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")}function o(f,a){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:f}function n(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}var e=function(f){n(a,f);function a(u,r){h(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,u));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(c){c.innerHTML=r[c.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return E(a,[{key:"selectItem",value:function(r,i){b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),a}(y.default);p.default=e},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function y(g,h){for(var o=0;o<h.length;o++){var n=h[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(g,n.key,n)}}return function(g,h,o){return h&&y(g.prototype,h),o&&y(g,o),g}}();function b(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}var O=function(){function y(g,h){var o=this;b(this,y),this.quill=g,this.boundsContainer=h||document.body,this.root=g.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return E(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(h){var o=h.left+h.width/2-this.root.offsetWidth/2,n=h.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),f=this.root.getBoundingClientRect(),a=0;if(f.right>e.right&&(a=e.right-f.right,this.root.style.left=o+a+"px"),f.left<e.left&&(a=e.left-f.left,this.root.style.left=o+a+"px"),f.bottom>e.bottom){var u=f.bottom-f.top,r=h.bottom-h.top+u;this.root.style.top=n-r+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),y}();p.default=O},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function A(v,_){var N=[],q=!0,D=!1,z=void 0;try{for(var K=v[Symbol.iterator](),Y;!(q=(Y=K.next()).done)&&(N.push(Y.value),!(_&&N.length===_));q=!0);}catch(H){D=!0,z=H}finally{try{!q&&K.return&&K.return()}finally{if(D)throw z}}return N}return function(v,_){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return A(v,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function A(v,_,N){v===null&&(v=Function.prototype);var q=Object.getOwnPropertyDescriptor(v,_);if(q===void 0){var D=Object.getPrototypeOf(v);return D===null?void 0:A(D,_,N)}else{if("value"in q)return q.value;var z=q.get;return z===void 0?void 0:z.call(N)}},O=function(){function A(v,_){for(var N=0;N<_.length;N++){var q=_[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(v,q.key,q)}}return function(v,_,N){return _&&A(v.prototype,_),N&&A(v,N),v}}(),y=d(3),g=c(y),h=d(8),o=c(h),n=d(43),e=c(n),f=d(27),a=c(f),u=d(15),r=d(41),i=c(r);function c(A){return A&&A.__esModule?A:{default:A}}function t(A,v){if(!(A instanceof v))throw new TypeError("Cannot call a class as a function")}function s(A,v){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:A}function k(A,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);A.prototype=Object.create(v&&v.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(A,v):A.__proto__=v)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],T=function(A){k(v,A);function v(_,N){t(this,v),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=w);var q=s(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_,N));return q.quill.container.classList.add("ql-snow"),q}return O(v,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),i.default),this.tooltip=new P(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(q,D){N.handlers.link.call(N,!D.format.link)})}}]),v}(e.default);T.DEFAULTS=(0,g.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(v){if(v){var _=this.quill.getSelection();if(_==null||_.length==0)return;var N=this.quill.getText(_);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var q=this.quill.theme.tooltip;q.edit("link",N)}else this.quill.format("link",!1)}}}}});var P=function(A){k(v,A);function v(_,N){t(this,v);var q=s(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_,N));return q.preview=q.root.querySelector("a.ql-preview"),q}return O(v,[{key:"listen",value:function(){var N=this;b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(q){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),q.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(q){if(N.linkRange!=null){var D=N.linkRange;N.restoreFocus(),N.quill.formatText(D,"link",!1,o.default.sources.USER),delete N.linkRange}q.preventDefault(),N.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(q,D,z){if(q!=null){if(q.length===0&&z===o.default.sources.USER){var K=N.quill.scroll.descendant(a.default,q.index),Y=E(K,2),H=Y[0],j=Y[1];if(H!=null){N.linkRange=new u.Range(q.index-j,H.length());var S=a.default.formats(H.domNode);N.preview.textContent=S,N.preview.setAttribute("href",S),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),v}(n.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),p.default=T},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(29),b=J(E),O=d(36),y=d(38),g=d(64),h=d(65),o=J(h),n=d(66),e=J(n),f=d(67),a=J(f),u=d(37),r=d(26),i=d(39),c=d(40),t=d(56),s=J(t),k=d(68),w=J(k),T=d(27),P=J(T),A=d(69),v=J(A),_=d(70),N=J(_),q=d(71),D=J(q),z=d(72),K=J(z),Y=d(73),H=J(Y),j=d(13),S=J(j),I=d(74),M=J(I),$=d(75),C=J($),L=d(57),F=J(L),V=d(41),G=J(V),X=d(28),nt=J(X),it=d(59),at=J(it),ft=d(60),ht=J(ft),mt=d(61),gt=J(mt),W=d(108),Q=J(W),tt=d(62),et=J(tt);function J(st){return st&&st.__esModule?st:{default:st}}b.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":O.AlignClass,"attributors/class/background":u.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":y.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":c.SizeClass,"attributors/style/align":O.AlignStyle,"attributors/style/background":u.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":c.SizeStyle},!0),b.default.register({"formats/align":O.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":g.IndentClass,"formats/background":u.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":c.SizeClass,"formats/blockquote":o.default,"formats/code-block":S.default,"formats/header":e.default,"formats/list":a.default,"formats/bold":s.default,"formats/code":j.Code,"formats/italic":w.default,"formats/link":P.default,"formats/script":v.default,"formats/strike":N.default,"formats/underline":D.default,"formats/image":K.default,"formats/video":H.default,"formats/list/item":f.ListItem,"modules/formula":M.default,"modules/syntax":C.default,"modules/toolbar":F.default,"themes/bubble":Q.default,"themes/snow":et.default,"ui/icons":G.default,"ui/picker":nt.default,"ui/icon-picker":ht.default,"ui/color-picker":at.default,"ui/tooltip":gt.default},!0),p.default=b.default},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.IndentClass=void 0;var E=function(){function a(u,r){for(var i=0;i<r.length;i++){var c=r[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}return function(u,r,i){return r&&a(u.prototype,r),i&&a(u,i),u}}(),b=function a(u,r,i){u===null&&(u=Function.prototype);var c=Object.getOwnPropertyDescriptor(u,r);if(c===void 0){var t=Object.getPrototypeOf(u);return t===null?void 0:a(t,r,i)}else{if("value"in c)return c.value;var s=c.get;return s===void 0?void 0:s.call(i)}},O=d(0),y=g(O);function g(a){return a&&a.__esModule?a:{default:a}}function h(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function o(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function n(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var e=function(a){n(u,a);function u(){return h(this,u),o(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return E(u,[{key:"add",value:function(i,c){if(c==="+1"||c==="-1"){var t=this.value(i)||0;c=c==="+1"?t+1:t-1}return c===0?(this.remove(i),!0):b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"add",this).call(this,i,c)}},{key:"canAdd",value:function(i,c){return b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,i,c)||b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,i,parseInt(c))}},{key:"value",value:function(i){return parseInt(b(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,i))||void 0}}]),u}(y.default.Attributor.Class),f=new e("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});p.IndentClass=f},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(4),b=O(E);function O(n){return n&&n.__esModule?n:{default:n}}function y(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function g(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function h(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var o=function(n){h(e,n);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default);o.blotName="blockquote",o.tagName="blockquote",p.default=o},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function e(f,a){for(var u=0;u<a.length;u++){var r=a[u];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}return function(f,a,u){return a&&e(f.prototype,a),u&&e(f,u),f}}(),b=d(4),O=y(b);function y(e){return e&&e.__esModule?e:{default:e}}function g(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function")}function h(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:e}function o(e,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}var n=function(e){o(f,e);function f(){return g(this,f),h(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return E(f,null,[{key:"formats",value:function(u){return this.tagName.indexOf(u.tagName)+1}}]),f}(O.default);n.blotName="header",n.tagName=["H1","H2","H3","H4","H5","H6"],p.default=n},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.ListItem=void 0;var E=function(){function t(s,k){for(var w=0;w<k.length;w++){var T=k[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(s,T.key,T)}}return function(s,k,w){return k&&t(s.prototype,k),w&&t(s,w),s}}(),b=function t(s,k,w){s===null&&(s=Function.prototype);var T=Object.getOwnPropertyDescriptor(s,k);if(T===void 0){var P=Object.getPrototypeOf(s);return P===null?void 0:t(P,k,w)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(w)}},O=d(0),y=e(O),g=d(4),h=e(g),o=d(25),n=e(o);function e(t){return t&&t.__esModule?t:{default:t}}function f(t,s,k){return s in t?Object.defineProperty(t,s,{value:k,enumerable:!0,configurable:!0,writable:!0}):t[s]=k,t}function a(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function u(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function r(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var i=function(t){r(s,t);function s(){return a(this,s),u(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return E(s,[{key:"format",value:function(w,T){w===c.blotName&&!T?this.replaceWith(y.default.create(this.statics.scope)):b(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,w,T)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():b(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(w,T){return this.parent.isolate(this.offset(this.parent),this.length()),w===this.parent.statics.blotName?(this.parent.replaceWith(w,T),this):(this.parent.unwrap(),b(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replaceWith",this).call(this,w,T))}}],[{key:"formats",value:function(w){return w.tagName===this.tagName?void 0:b(s.__proto__||Object.getPrototypeOf(s),"formats",this).call(this,w)}}]),s}(h.default);i.blotName="list-item",i.tagName="LI";var c=function(t){r(s,t),E(s,null,[{key:"create",value:function(w){var T=w==="ordered"?"OL":"UL",P=b(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,T);return(w==="checked"||w==="unchecked")&&P.setAttribute("data-checked",w==="checked"),P}},{key:"formats",value:function(w){if(w.tagName==="OL")return"ordered";if(w.tagName==="UL")return w.hasAttribute("data-checked")?w.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function s(k){a(this,s);var w=u(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,k)),T=function(A){if(A.target.parentNode===k){var v=w.statics.formats(k),_=y.default.find(A.target);v==="checked"?_.format("list","unchecked"):v==="unchecked"&&_.format("list","checked")}};return k.addEventListener("touchstart",T),k.addEventListener("mousedown",T),w}return E(s,[{key:"format",value:function(w,T){this.children.length>0&&this.children.tail.format(w,T)}},{key:"formats",value:function(){return f({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,T){if(w instanceof i)b(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertBefore",this).call(this,w,T);else{var P=T==null?this.length():T.offset(this),A=this.split(P);A.parent.insertBefore(w,A)}}},{key:"optimize",value:function(w){b(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,w);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&T.domNode.tagName===this.domNode.tagName&&T.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(T.moveChildren(this),T.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var T=y.default.create(this.statics.defaultChild);w.moveChildren(T),this.appendChild(T)}b(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replace",this).call(this,w)}}]),s}(n.default);c.blotName="list",c.scope=y.default.Scope.BLOCK_BLOT,c.tagName=["OL","UL"],c.defaultChild="list-item",c.allowedChildren=[i],p.ListItem=i,p.default=c},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(56),b=O(E);function O(n){return n&&n.__esModule?n:{default:n}}function y(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function g(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function h(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var o=function(n){h(e,n);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default);o.blotName="italic",o.tagName=["EM","I"],p.default=o},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function f(a,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,u,r){return u&&f(a.prototype,u),r&&f(a,r),a}}(),b=function f(a,u,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,u);if(i===void 0){var c=Object.getPrototypeOf(a);return c===null?void 0:f(c,u,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},O=d(6),y=g(O);function g(f){return f&&f.__esModule?f:{default:f}}function h(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")}function o(f,a){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:f}function n(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}var e=function(f){n(a,f);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return E(a,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):b(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),a}(y.default);e.blotName="script",e.tagName=["SUB","SUP"],p.default=e},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(6),b=O(E);function O(n){return n&&n.__esModule?n:{default:n}}function y(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function g(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function h(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var o=function(n){h(e,n);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default);o.blotName="strike",o.tagName="S",p.default=o},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=d(6),b=O(E);function O(n){return n&&n.__esModule?n:{default:n}}function y(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function g(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function h(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var o=function(n){h(e,n);function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(b.default);o.blotName="underline",o.tagName="U",p.default=o},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function u(r,i){for(var c=0;c<i.length;c++){var t=i[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,c){return i&&u(r.prototype,i),c&&u(r,c),r}}(),b=function u(r,i,c){r===null&&(r=Function.prototype);var t=Object.getOwnPropertyDescriptor(r,i);if(t===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:u(s,i,c)}else{if("value"in t)return t.value;var k=t.get;return k===void 0?void 0:k.call(c)}},O=d(0),y=h(O),g=d(27);function h(u){return u&&u.__esModule?u:{default:u}}function o(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function n(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function e(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var f=["alt","height","width"],a=function(u){e(r,u);function r(){return o(this,r),n(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(c,t){f.indexOf(c)>-1?t?this.domNode.setAttribute(c,t):this.domNode.removeAttribute(c):b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,c,t)}}],[{key:"create",value:function(c){var t=b(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,c);return typeof c=="string"&&t.setAttribute("src",this.sanitize(c)),t}},{key:"formats",value:function(c){return f.reduce(function(t,s){return c.hasAttribute(s)&&(t[s]=c.getAttribute(s)),t},{})}},{key:"match",value:function(c){return/\.(jpe?g|gif|png)$/.test(c)||/^data:image\/.+;base64/.test(c)}},{key:"sanitize",value:function(c){return(0,g.sanitize)(c,["http","https","data"])?c:"//:0"}},{key:"value",value:function(c){return c.getAttribute("src")}}]),r}(y.default.Embed);a.blotName="image",a.tagName="IMG",p.default=a},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function u(r,i){for(var c=0;c<i.length;c++){var t=i[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,c){return i&&u(r.prototype,i),c&&u(r,c),r}}(),b=function u(r,i,c){r===null&&(r=Function.prototype);var t=Object.getOwnPropertyDescriptor(r,i);if(t===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:u(s,i,c)}else{if("value"in t)return t.value;var k=t.get;return k===void 0?void 0:k.call(c)}},O=d(4),y=d(27),g=h(y);function h(u){return u&&u.__esModule?u:{default:u}}function o(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function n(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function e(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var f=["height","width"],a=function(u){e(r,u);function r(){return o(this,r),n(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(c,t){f.indexOf(c)>-1?t?this.domNode.setAttribute(c,t):this.domNode.removeAttribute(c):b(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,c,t)}}],[{key:"create",value:function(c){var t=b(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,c);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen",!0),t.setAttribute("src",this.sanitize(c)),t}},{key:"formats",value:function(c){return f.reduce(function(t,s){return c.hasAttribute(s)&&(t[s]=c.getAttribute(s)),t},{})}},{key:"sanitize",value:function(c){return g.default.sanitize(c)}},{key:"value",value:function(c){return c.getAttribute("src")}}]),r}(O.BlockEmbed);a.blotName="video",a.className="ql-video",a.tagName="IFRAME",p.default=a},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.FormulaBlot=void 0;var E=function(){function c(t,s){for(var k=0;k<s.length;k++){var w=s[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(t,w.key,w)}}return function(t,s,k){return s&&c(t.prototype,s),k&&c(t,k),t}}(),b=function c(t,s,k){t===null&&(t=Function.prototype);var w=Object.getOwnPropertyDescriptor(t,s);if(w===void 0){var T=Object.getPrototypeOf(t);return T===null?void 0:c(T,s,k)}else{if("value"in w)return w.value;var P=w.get;return P===void 0?void 0:P.call(k)}},O=d(35),y=e(O),g=d(5),h=e(g),o=d(9),n=e(o);function e(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function a(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function u(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var r=function(c){u(t,c);function t(){return f(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return E(t,null,[{key:"create",value:function(k){var w=b(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,w,{throwOnError:!1,errorColor:"#f00"}),w.setAttribute("data-value",k)),w}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),t}(y.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(c){u(t,c),E(t,null,[{key:"register",value:function(){h.default.register(r,!0)}}]);function t(){f(this,t);var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return s}return t}(n.default);p.FormulaBlot=r,p.default=i},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.CodeToken=p.CodeBlock=void 0;var E=function(){function k(w,T){for(var P=0;P<T.length;P++){var A=T[P];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,P){return T&&k(w.prototype,T),P&&k(w,P),w}}(),b=function k(w,T,P){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var v=Object.getPrototypeOf(w);return v===null?void 0:k(v,T,P)}else{if("value"in A)return A.value;var _=A.get;return _===void 0?void 0:_.call(P)}},O=d(0),y=a(O),g=d(5),h=a(g),o=d(9),n=a(o),e=d(13),f=a(e);function a(k){return k&&k.__esModule?k:{default:k}}function u(k,w){if(!(k instanceof w))throw new TypeError("Cannot call a class as a function")}function r(k,w){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:k}function i(k,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);k.prototype=Object.create(w&&w.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(k,w):k.__proto__=w)}var c=function(k){i(w,k);function w(){return u(this,w),r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return E(w,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var A=this.domNode.textContent;this.cachedText!==A&&((A.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(A),this.domNode.normalize(),this.attach()),this.cachedText=A)}}]),w}(f.default);c.className="ql-syntax";var t=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),s=function(k){i(w,k),E(w,null,[{key:"register",value:function(){h.default.register(t,!0),h.default.register(c,!0)}}]);function w(T,P){u(this,w);var A=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T,P));if(typeof A.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var v=null;return A.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(v),v=setTimeout(function(){A.highlight(),v=null},A.options.interval)}),A.highlight(),A}return E(w,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var A=this.quill.getSelection();this.quill.scroll.descendants(c).forEach(function(v){v.highlight(P.options.highlight)}),this.quill.update(h.default.sources.SILENT),A!=null&&this.quill.setSelection(A,h.default.sources.SILENT)}}}]),w}(n.default);s.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var w=window.hljs.highlightAuto(k);return w.value}}(),interval:1e3},p.CodeBlock=c,p.CodeToken=t,p.default=s},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(m,p){m.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(m,p){m.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(m,p){m.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(m,p){m.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(m,p){m.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(m,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BubbleTooltip=void 0;var E=function w(T,P,A){T===null&&(T=Function.prototype);var v=Object.getOwnPropertyDescriptor(T,P);if(v===void 0){var _=Object.getPrototypeOf(T);return _===null?void 0:w(_,P,A)}else{if("value"in v)return v.value;var N=v.get;return N===void 0?void 0:N.call(A)}},b=function(){function w(T,P){for(var A=0;A<P.length;A++){var v=P[A];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(T,v.key,v)}}return function(T,P,A){return P&&w(T.prototype,P),A&&w(T,A),T}}(),O=d(3),y=u(O),g=d(8),h=u(g),o=d(43),n=u(o),e=d(15),f=d(41),a=u(f);function u(w){return w&&w.__esModule?w:{default:w}}function r(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function i(w,T){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:w}function c(w,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T)}var t=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],s=function(w){c(T,w);function T(P,A){r(this,T),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=t);var v=i(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,P,A));return v.quill.container.classList.add("ql-bubble"),v}return b(T,[{key:"extendToolbar",value:function(A){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(A.container),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),a.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),a.default)}}]),T}(n.default);s.DEFAULTS=(0,y.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){T?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(w){c(T,w);function T(P,A){r(this,T);var v=i(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,P,A));return v.quill.on(h.default.events.EDITOR_CHANGE,function(_,N,q,D){if(_===h.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&D===h.default.sources.USER){v.show(),v.root.style.left="0px",v.root.style.width="",v.root.style.width=v.root.offsetWidth+"px";var z=v.quill.getLines(N.index,N.length);if(z.length===1)v.position(v.quill.getBounds(N));else{var K=z[z.length-1],Y=v.quill.getIndex(K),H=Math.min(K.length()-1,N.index+N.length-Y),j=v.quill.getBounds(new e.Range(Y,H));v.position(j)}}else document.activeElement!==v.textbox&&v.quill.hasFocus()&&v.hide()}),v}return b(T,[{key:"listen",value:function(){var A=this;E(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){A.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!A.root.classList.contains("ql-hidden")){var v=A.quill.getSelection();v!=null&&A.position(A.quill.getBounds(v))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(A){var v=E(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,A),_=this.root.querySelector(".ql-tooltip-arrow");if(_.style.marginLeft="",v===0)return v;_.style.marginLeft=-1*v-_.offsetWidth/2+"px"}}]),T}(o.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),p.BubbleTooltip=k,p.default=s},function(m,p,d){m.exports=d(63)}]).default})})(rr);var Dr=rr.exports;const Bn=tr(Dr);var zt=-1,Ct=1,It=0;function Se(R,U,m,p){if(R===U)return R?[[It,R]]:[];if(m!=null){var d=Hr(R,U,m);if(d)return d}var E=zn(R,U),b=R.substring(0,E);R=R.substring(E),U=U.substring(E),E=Kn(R,U);var O=R.substring(R.length-E);R=R.substring(0,R.length-E),U=U.substring(0,U.length-E);var y=Br(R,U);return b&&y.unshift([It,b]),O&&y.push([It,O]),ir(y,p),y}function Br(R,U){var m;if(!R)return[[Ct,U]];if(!U)return[[zt,R]];var p=R.length>U.length?R:U,d=R.length>U.length?U:R,E=p.indexOf(d);if(E!==-1)return m=[[Ct,p.substring(0,E)],[It,d],[Ct,p.substring(E+d.length)]],R.length>U.length&&(m[0][0]=m[2][0]=zt),m;if(d.length===1)return[[zt,R],[Ct,U]];var b=Fr(R,U);if(b){var O=b[0],y=b[1],g=b[2],h=b[3],o=b[4],n=Se(O,g),e=Se(y,h);return n.concat([[It,o]],e)}return Cr(R,U)}function Cr(R,U){for(var m=R.length,p=U.length,d=Math.ceil((m+p)/2),E=d,b=2*d,O=new Array(b),y=new Array(b),g=0;g<b;g++)O[g]=-1,y[g]=-1;O[E+1]=0,y[E+1]=0;for(var h=m-p,o=h%2!==0,n=0,e=0,f=0,a=0,u=0;u<d;u++){for(var r=-u+n;r<=u-e;r+=2){var i=E+r,c;r===-u||r!==u&&O[i-1]<O[i+1]?c=O[i+1]:c=O[i-1]+1;for(var t=c-r;c<m&&t<p&&R.charAt(c)===U.charAt(t);)c++,t++;if(O[i]=c,c>m)e+=2;else if(t>p)n+=2;else if(o){var s=E+h-r;if(s>=0&&s<b&&y[s]!==-1){var k=m-y[s];if(c>=k)return Yn(R,U,c,t)}}}for(var w=-u+f;w<=u-a;w+=2){var s=E+w,k;w===-u||w!==u&&y[s-1]<y[s+1]?k=y[s+1]:k=y[s-1]+1;for(var T=k-w;k<m&&T<p&&R.charAt(m-k-1)===U.charAt(p-T-1);)k++,T++;if(y[s]=k,k>m)a+=2;else if(T>p)f+=2;else if(!o){var i=E+h-w;if(i>=0&&i<b&&O[i]!==-1){var c=O[i],t=E+c-i;if(k=m-k,c>=k)return Yn(R,U,c,t)}}}}return[[zt,R],[Ct,U]]}function Yn(R,U,m,p){var d=R.substring(0,m),E=U.substring(0,p),b=R.substring(m),O=U.substring(p),y=Se(d,E),g=Se(b,O);return y.concat(g)}function zn(R,U){if(!R||!U||R.charAt(0)!==U.charAt(0))return 0;for(var m=0,p=Math.min(R.length,U.length),d=p,E=0;m<d;)R.substring(E,d)==U.substring(E,d)?(m=d,E=m):p=d,d=Math.floor((p-m)/2+m);return or(R.charCodeAt(d-1))&&d--,d}function Kn(R,U){if(!R||!U||R.slice(-1)!==U.slice(-1))return 0;for(var m=0,p=Math.min(R.length,U.length),d=p,E=0;m<d;)R.substring(R.length-d,R.length-E)==U.substring(U.length-d,U.length-E)?(m=d,E=m):p=d,d=Math.floor((p-m)/2+m);return ar(R.charCodeAt(R.length-d))&&d--,d}function Fr(R,U){var m=R.length>U.length?R:U,p=R.length>U.length?U:R;if(m.length<4||p.length*2<m.length)return null;function d(e,f,a){for(var u=e.substring(a,a+Math.floor(e.length/4)),r=-1,i="",c,t,s,k;(r=f.indexOf(u,r+1))!==-1;){var w=zn(e.substring(a),f.substring(r)),T=Kn(e.substring(0,a),f.substring(0,r));i.length<T+w&&(i=f.substring(r-T,r)+f.substring(r,r+w),c=e.substring(0,a-T),t=e.substring(a+w),s=f.substring(0,r-T),k=f.substring(r+w))}return i.length*2>=e.length?[c,t,s,k,i]:null}var E=d(m,p,Math.ceil(m.length/4)),b=d(m,p,Math.ceil(m.length/2)),O;if(!E&&!b)return null;b?E?O=E[4].length>b[4].length?E:b:O=b:O=E;var y,g,h,o;R.length>U.length?(y=O[0],g=O[1],h=O[2],o=O[3]):(h=O[0],o=O[1],y=O[2],g=O[3]);var n=O[4];return[y,g,h,o,n]}function ir(R,U){R.push([It,""]);for(var m=0,p=0,d=0,E="",b="",O;m<R.length;){if(m<R.length-1&&!R[m][1]){R.splice(m,1);continue}switch(R[m][0]){case Ct:d++,b+=R[m][1],m++;break;case zt:p++,E+=R[m][1],m++;break;case It:var y=m-d-p-1;if(U){if(y>=0&&ur(R[y][1])){var g=R[y][1].slice(-1);if(R[y][1]=R[y][1].slice(0,-1),E=g+E,b=g+b,!R[y][1]){R.splice(y,1),m--;var h=y-1;R[h]&&R[h][0]===Ct&&(d++,b=R[h][1]+b,h--),R[h]&&R[h][0]===zt&&(p++,E=R[h][1]+E,h--),y=h}}if(lr(R[m][1])){var g=R[m][1].charAt(0);R[m][1]=R[m][1].slice(1),E+=g,b+=g}}if(m<R.length-1&&!R[m][1]){R.splice(m,1);break}if(E.length>0||b.length>0){E.length>0&&b.length>0&&(O=zn(b,E),O!==0&&(y>=0?R[y][1]+=b.substring(0,O):(R.splice(0,0,[It,b.substring(0,O)]),m++),b=b.substring(O),E=E.substring(O)),O=Kn(b,E),O!==0&&(R[m][1]=b.substring(b.length-O)+R[m][1],b=b.substring(0,b.length-O),E=E.substring(0,E.length-O)));var o=d+p;E.length===0&&b.length===0?(R.splice(m-o,o),m=m-o):E.length===0?(R.splice(m-o,o,[Ct,b]),m=m-o+1):b.length===0?(R.splice(m-o,o,[zt,E]),m=m-o+1):(R.splice(m-o,o,[zt,E],[Ct,b]),m=m-o+2)}m!==0&&R[m-1][0]===It?(R[m-1][1]+=R[m][1],R.splice(m,1)):m++,d=0,p=0,E="",b="";break}}R[R.length-1][1]===""&&R.pop();var n=!1;for(m=1;m<R.length-1;)R[m-1][0]===It&&R[m+1][0]===It&&(R[m][1].substring(R[m][1].length-R[m-1][1].length)===R[m-1][1]?(R[m][1]=R[m-1][1]+R[m][1].substring(0,R[m][1].length-R[m-1][1].length),R[m+1][1]=R[m-1][1]+R[m+1][1],R.splice(m-1,1),n=!0):R[m][1].substring(0,R[m+1][1].length)==R[m+1][1]&&(R[m-1][1]+=R[m+1][1],R[m][1]=R[m][1].substring(R[m+1][1].length)+R[m+1][1],R.splice(m+1,1),n=!0)),m++;n&&ir(R,U)}function or(R){return R>=55296&&R<=56319}function ar(R){return R>=56320&&R<=57343}function lr(R){return ar(R.charCodeAt(0))}function ur(R){return or(R.charCodeAt(R.length-1))}function Ur(R){for(var U=[],m=0;m<R.length;m++)R[m][1].length>0&&U.push(R[m]);return U}function Cn(R,U,m,p){return ur(R)||lr(p)?null:Ur([[It,R],[zt,U],[Ct,m],[It,p]])}function Hr(R,U,m){var p=typeof m=="number"?{index:m,length:0}:m.oldRange,d=typeof m=="number"?null:m.newRange,E=R.length,b=U.length;if(p.length===0&&(d===null||d.length===0)){var O=p.index,y=R.slice(0,O),g=R.slice(O),h=d?d.index:null;t:{var o=O+b-E;if(h!==null&&h!==o||o<0||o>b)break t;var n=U.slice(0,o),e=U.slice(o);if(e!==g)break t;var f=Math.min(O,o),a=y.slice(0,f),u=n.slice(0,f);if(a!==u)break t;var r=y.slice(f),i=n.slice(f);return Cn(a,r,i,g)}t:{if(h!==null&&h!==O)break t;var c=O,n=U.slice(0,c),e=U.slice(c);if(n!==y)break t;var t=Math.min(E-c,b-c),s=g.slice(g.length-t),k=e.slice(e.length-t);if(s!==k)break t;var r=g.slice(0,g.length-t),i=e.slice(0,e.length-t);return Cn(y,r,i,s)}}if(p.length>0&&d&&d.length===0)t:{var a=R.slice(0,p.index),s=R.slice(p.index+p.length),f=a.length,t=s.length;if(b<f+t)break t;var u=U.slice(0,f),k=U.slice(b-t);if(a!==u||s!==k)break t;var r=R.slice(f,E-t),i=U.slice(f,b-t);return Cn(a,r,i,s)}return null}function Qe(R,U,m){return Se(R,U,m,!0)}Qe.INSERT=Ct;Qe.DELETE=zt;Qe.EQUAL=It;var zr=Qe,We={exports:{}};We.exports;(function(R,U){var m=200,p="__lodash_hash_undefined__",d=9007199254740991,E="[object Arguments]",b="[object Array]",O="[object Boolean]",y="[object Date]",g="[object Error]",h="[object Function]",o="[object GeneratorFunction]",n="[object Map]",e="[object Number]",f="[object Object]",a="[object Promise]",u="[object RegExp]",r="[object Set]",i="[object String]",c="[object Symbol]",t="[object WeakMap]",s="[object ArrayBuffer]",k="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",P="[object Int8Array]",A="[object Int16Array]",v="[object Int32Array]",_="[object Uint8Array]",N="[object Uint8ClampedArray]",q="[object Uint16Array]",D="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,Y=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,j={};j[E]=j[b]=j[s]=j[k]=j[O]=j[y]=j[w]=j[T]=j[P]=j[A]=j[v]=j[n]=j[e]=j[f]=j[u]=j[r]=j[i]=j[c]=j[_]=j[N]=j[q]=j[D]=!0,j[g]=j[h]=j[t]=!1;var S=typeof kt=="object"&&kt&&kt.Object===Object&&kt,I=typeof self=="object"&&self&&self.Object===Object&&self,M=S||I||Function("return this")(),$=U&&!U.nodeType&&U,C=$&&!0&&R&&!R.nodeType&&R,L=C&&C.exports===$;function F(l,x){return l.set(x[0],x[1]),l}function V(l,x){return l.add(x),l}function G(l,x){for(var B=-1,Z=l?l.length:0;++B<Z&&x(l[B],B,l)!==!1;);return l}function X(l,x){for(var B=-1,Z=x.length,ut=l.length;++B<Z;)l[ut+B]=x[B];return l}function nt(l,x,B,Z){var ut=-1,rt=l?l.length:0;for(Z&&rt&&(B=l[++ut]);++ut<rt;)B=x(B,l[ut],ut,l);return B}function it(l,x){for(var B=-1,Z=Array(l);++B<l;)Z[B]=x(B);return Z}function at(l,x){return l==null?void 0:l[x]}function ft(l){var x=!1;if(l!=null&&typeof l.toString!="function")try{x=!!(l+"")}catch{}return x}function ht(l){var x=-1,B=Array(l.size);return l.forEach(function(Z,ut){B[++x]=[ut,Z]}),B}function mt(l,x){return function(B){return l(x(B))}}function gt(l){var x=-1,B=Array(l.size);return l.forEach(function(Z){B[++x]=Z}),B}var W=Array.prototype,Q=Function.prototype,tt=Object.prototype,et=M["__core-js_shared__"],J=function(){var l=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),st=Q.toString,ot=tt.hasOwnProperty,lt=tt.toString,Nt=RegExp("^"+st.call(ot).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=L?M.Buffer:void 0,pt=M.Symbol,Xt=M.Uint8Array,dt=mt(Object.getPrototypeOf,Object),Mt=Object.create,Pe=tt.propertyIsEnumerable,Xe=W.splice,de=Object.getOwnPropertySymbols,oe=Et?Et.isBuffer:void 0,qe=mt(Object.keys,Object),ae=Bt(M,"DataView"),Jt=Bt(M,"Map"),Dt=Bt(M,"Promise"),le=Bt(M,"Set"),ve=Bt(M,"WeakMap"),te=Bt(Object,"create"),pe=qt(ae),ee=qt(Jt),ye=qt(Dt),ge=qt(le),me=qt(ve),Wt=pt?pt.prototype:void 0,Le=Wt?Wt.valueOf:void 0;function Kt(l){var x=-1,B=l?l.length:0;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function Je(){this.__data__=te?te(null):{}}function tn(l){return this.has(l)&&delete this.__data__[l]}function en(l){var x=this.__data__;if(te){var B=x[l];return B===p?void 0:B}return ot.call(x,l)?x[l]:void 0}function Re(l){var x=this.__data__;return te?x[l]!==void 0:ot.call(x,l)}function be(l,x){var B=this.__data__;return B[l]=te&&x===void 0?p:x,this}Kt.prototype.clear=Je,Kt.prototype.delete=tn,Kt.prototype.get=en,Kt.prototype.has=Re,Kt.prototype.set=be;function At(l){var x=-1,B=l?l.length:0;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function nn(){this.__data__=[]}function rn(l){var x=this.__data__,B=se(x,l);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():Xe.call(x,B,1),!0}function on(l){var x=this.__data__,B=se(x,l);return B<0?void 0:x[B][1]}function an(l){return se(this.__data__,l)>-1}function ln(l,x){var B=this.__data__,Z=se(B,l);return Z<0?B.push([l,x]):B[Z][1]=x,this}At.prototype.clear=nn,At.prototype.delete=rn,At.prototype.get=on,At.prototype.has=an,At.prototype.set=ln;function St(l){var x=-1,B=l?l.length:0;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function un(){this.__data__={hash:new Kt,map:new(Jt||At),string:new Kt}}function sn(l){return re(this,l).delete(l)}function fn(l){return re(this,l).get(l)}function cn(l){return re(this,l).has(l)}function hn(l,x){return re(this,l).set(l,x),this}St.prototype.clear=un,St.prototype.delete=sn,St.prototype.get=fn,St.prototype.has=cn,St.prototype.set=hn;function Rt(l){this.__data__=new At(l)}function dn(){this.__data__=new At}function vn(l){return this.__data__.delete(l)}function pn(l){return this.__data__.get(l)}function yn(l){return this.__data__.has(l)}function gn(l,x){var B=this.__data__;if(B instanceof At){var Z=B.__data__;if(!Jt||Z.length<m-1)return Z.push([l,x]),this;B=this.__data__=new St(Z)}return B.set(l,x),this}Rt.prototype.clear=dn,Rt.prototype.delete=vn,Rt.prototype.get=pn,Rt.prototype.has=yn,Rt.prototype.set=gn;function ue(l,x){var B=Ae(l)||ce(l)?it(l.length,String):[],Z=B.length,ut=!!Z;for(var rt in l)(x||ot.call(l,rt))&&!(ut&&(rt=="length"||qn(rt,Z)))&&B.push(rt);return B}function je(l,x,B){var Z=l[x];(!(ot.call(l,x)&&Ce(Z,B))||B===void 0&&!(x in l))&&(l[x]=B)}function se(l,x){for(var B=l.length;B--;)if(Ce(l[B][0],x))return B;return-1}function Ft(l,x){return l&&Ee(x,Te(x),l)}function _e(l,x,B,Z,ut,rt,ct){var vt;if(Z&&(vt=rt?Z(l,ut,rt,ct):Z(l)),vt!==void 0)return vt;if(!Ht(l))return l;var bt=Ae(l);if(bt){if(vt=xn(l),!x)return kn(l,vt)}else{var yt=Vt(l),xt=yt==h||yt==o;if(Fe(l))return fe(l,x);if(yt==f||yt==E||xt&&!rt){if(ft(l))return rt?l:{};if(vt=Ut(xt?{}:l),!x)return Nn(l,Ft(vt,l))}else{if(!j[yt])return rt?l:{};vt=Pn(l,yt,_e,x)}}ct||(ct=new Rt);var jt=ct.get(l);if(jt)return jt;if(ct.set(l,vt),!bt)var _t=B?Sn(l):Te(l);return G(_t||l,function(Pt,wt){_t&&(wt=Pt,Pt=l[wt]),je(vt,wt,_e(Pt,x,B,Z,wt,l,ct))}),vt}function mn(l){return Ht(l)?Mt(l):{}}function bn(l,x,B){var Z=x(l);return Ae(l)?Z:X(Z,B(l))}function _n(l){return lt.call(l)}function On(l){if(!Ht(l)||Rn(l))return!1;var x=we(l)||ft(l)?Nt:Y;return x.test(qt(l))}function En(l){if(!De(l))return qe(l);var x=[];for(var B in Object(l))ot.call(l,B)&&B!="constructor"&&x.push(B);return x}function fe(l,x){if(x)return l.slice();var B=new l.constructor(l.length);return l.copy(B),B}function Oe(l){var x=new l.constructor(l.byteLength);return new Xt(x).set(new Xt(l)),x}function ne(l,x){var B=x?Oe(l.buffer):l.buffer;return new l.constructor(B,l.byteOffset,l.byteLength)}function Ie(l,x,B){var Z=x?B(ht(l),!0):ht(l);return nt(Z,F,new l.constructor)}function Me(l){var x=new l.constructor(l.source,K.exec(l));return x.lastIndex=l.lastIndex,x}function An(l,x,B){var Z=x?B(gt(l),!0):gt(l);return nt(Z,V,new l.constructor)}function wn(l){return Le?Object(Le.call(l)):{}}function Tn(l,x){var B=x?Oe(l.buffer):l.buffer;return new l.constructor(B,l.byteOffset,l.length)}function kn(l,x){var B=-1,Z=l.length;for(x||(x=Array(Z));++B<Z;)x[B]=l[B];return x}function Ee(l,x,B,Z){B||(B={});for(var ut=-1,rt=x.length;++ut<rt;){var ct=x[ut],vt=Z?Z(B[ct],l[ct],ct,B,l):void 0;je(B,ct,vt===void 0?l[ct]:vt)}return B}function Nn(l,x){return Ee(l,$t(l),x)}function Sn(l){return bn(l,Te,$t)}function re(l,x){var B=l.__data__;return Ln(x)?B[typeof x=="string"?"string":"hash"]:B.map}function Bt(l,x){var B=at(l,x);return On(B)?B:void 0}var $t=de?mt(de,Object):In,Vt=_n;(ae&&Vt(new ae(new ArrayBuffer(1)))!=k||Jt&&Vt(new Jt)!=n||Dt&&Vt(Dt.resolve())!=a||le&&Vt(new le)!=r||ve&&Vt(new ve)!=t)&&(Vt=function(l){var x=lt.call(l),B=x==f?l.constructor:void 0,Z=B?qt(B):void 0;if(Z)switch(Z){case pe:return k;case ee:return n;case ye:return a;case ge:return r;case me:return t}return x});function xn(l){var x=l.length,B=l.constructor(x);return x&&typeof l[0]=="string"&&ot.call(l,"index")&&(B.index=l.index,B.input=l.input),B}function Ut(l){return typeof l.constructor=="function"&&!De(l)?mn(dt(l)):{}}function Pn(l,x,B,Z){var ut=l.constructor;switch(x){case s:return Oe(l);case O:case y:return new ut(+l);case k:return ne(l,Z);case w:case T:case P:case A:case v:case _:case N:case q:case D:return Tn(l,Z);case n:return Ie(l,Z,B);case e:case i:return new ut(l);case u:return Me(l);case r:return An(l,Z,B);case c:return wn(l)}}function qn(l,x){return x=x??d,!!x&&(typeof l=="number"||H.test(l))&&l>-1&&l%1==0&&l<x}function Ln(l){var x=typeof l;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?l!=="__proto__":l===null}function Rn(l){return!!J&&J in l}function De(l){var x=l&&l.constructor,B=typeof x=="function"&&x.prototype||tt;return l===B}function qt(l){if(l!=null){try{return st.call(l)}catch{}try{return l+""}catch{}}return""}function Be(l){return _e(l,!0,!0)}function Ce(l,x){return l===x||l!==l&&x!==x}function ce(l){return jn(l)&&ot.call(l,"callee")&&(!Pe.call(l,"callee")||lt.call(l)==E)}var Ae=Array.isArray;function he(l){return l!=null&&Ue(l.length)&&!we(l)}function jn(l){return He(l)&&he(l)}var Fe=oe||Mn;function we(l){var x=Ht(l)?lt.call(l):"";return x==h||x==o}function Ue(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=d}function Ht(l){var x=typeof l;return!!l&&(x=="object"||x=="function")}function He(l){return!!l&&typeof l=="object"}function Te(l){return he(l)?ue(l):En(l)}function In(){return[]}function Mn(){return!1}R.exports=Be})(We,We.exports);var sr=We.exports,Ye={exports:{}};Ye.exports;(function(R,U){var m=200,p="__lodash_hash_undefined__",d=1,E=2,b=9007199254740991,O="[object Arguments]",y="[object Array]",g="[object AsyncFunction]",h="[object Boolean]",o="[object Date]",n="[object Error]",e="[object Function]",f="[object GeneratorFunction]",a="[object Map]",u="[object Number]",r="[object Null]",i="[object Object]",c="[object Promise]",t="[object Proxy]",s="[object RegExp]",k="[object Set]",w="[object String]",T="[object Symbol]",P="[object Undefined]",A="[object WeakMap]",v="[object ArrayBuffer]",_="[object DataView]",N="[object Float32Array]",q="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",K="[object Int32Array]",Y="[object Uint8Array]",H="[object Uint8ClampedArray]",j="[object Uint16Array]",S="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,C={};C[N]=C[q]=C[D]=C[z]=C[K]=C[Y]=C[H]=C[j]=C[S]=!0,C[O]=C[y]=C[v]=C[h]=C[_]=C[o]=C[n]=C[e]=C[a]=C[u]=C[i]=C[s]=C[k]=C[w]=C[A]=!1;var L=typeof kt=="object"&&kt&&kt.Object===Object&&kt,F=typeof self=="object"&&self&&self.Object===Object&&self,V=L||F||Function("return this")(),G=U&&!U.nodeType&&U,X=G&&!0&&R&&!R.nodeType&&R,nt=X&&X.exports===G,it=nt&&L.process,at=function(){try{return it&&it.binding&&it.binding("util")}catch{}}(),ft=at&&at.isTypedArray;function ht(l,x){for(var B=-1,Z=l==null?0:l.length,ut=0,rt=[];++B<Z;){var ct=l[B];x(ct,B,l)&&(rt[ut++]=ct)}return rt}function mt(l,x){for(var B=-1,Z=x.length,ut=l.length;++B<Z;)l[ut+B]=x[B];return l}function gt(l,x){for(var B=-1,Z=l==null?0:l.length;++B<Z;)if(x(l[B],B,l))return!0;return!1}function W(l,x){for(var B=-1,Z=Array(l);++B<l;)Z[B]=x(B);return Z}function Q(l){return function(x){return l(x)}}function tt(l,x){return l.has(x)}function et(l,x){return l==null?void 0:l[x]}function J(l){var x=-1,B=Array(l.size);return l.forEach(function(Z,ut){B[++x]=[ut,Z]}),B}function st(l,x){return function(B){return l(x(B))}}function ot(l){var x=-1,B=Array(l.size);return l.forEach(function(Z){B[++x]=Z}),B}var lt=Array.prototype,Nt=Function.prototype,Et=Object.prototype,pt=V["__core-js_shared__"],Xt=Nt.toString,dt=Et.hasOwnProperty,Mt=function(){var l=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Pe=Et.toString,Xe=RegExp("^"+Xt.call(dt).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=nt?V.Buffer:void 0,oe=V.Symbol,qe=V.Uint8Array,ae=Et.propertyIsEnumerable,Jt=lt.splice,Dt=oe?oe.toStringTag:void 0,le=Object.getOwnPropertySymbols,ve=de?de.isBuffer:void 0,te=st(Object.keys,Object),pe=$t(V,"DataView"),ee=$t(V,"Map"),ye=$t(V,"Promise"),ge=$t(V,"Set"),me=$t(V,"WeakMap"),Wt=$t(Object,"create"),Le=qt(pe),Kt=qt(ee),Je=qt(ye),tn=qt(ge),en=qt(me),Re=oe?oe.prototype:void 0,be=Re?Re.valueOf:void 0;function At(l){var x=-1,B=l==null?0:l.length;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function nn(){this.__data__=Wt?Wt(null):{},this.size=0}function rn(l){var x=this.has(l)&&delete this.__data__[l];return this.size-=x?1:0,x}function on(l){var x=this.__data__;if(Wt){var B=x[l];return B===p?void 0:B}return dt.call(x,l)?x[l]:void 0}function an(l){var x=this.__data__;return Wt?x[l]!==void 0:dt.call(x,l)}function ln(l,x){var B=this.__data__;return this.size+=this.has(l)?0:1,B[l]=Wt&&x===void 0?p:x,this}At.prototype.clear=nn,At.prototype.delete=rn,At.prototype.get=on,At.prototype.has=an,At.prototype.set=ln;function St(l){var x=-1,B=l==null?0:l.length;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function un(){this.__data__=[],this.size=0}function sn(l){var x=this.__data__,B=fe(x,l);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():Jt.call(x,B,1),--this.size,!0}function fn(l){var x=this.__data__,B=fe(x,l);return B<0?void 0:x[B][1]}function cn(l){return fe(this.__data__,l)>-1}function hn(l,x){var B=this.__data__,Z=fe(B,l);return Z<0?(++this.size,B.push([l,x])):B[Z][1]=x,this}St.prototype.clear=un,St.prototype.delete=sn,St.prototype.get=fn,St.prototype.has=cn,St.prototype.set=hn;function Rt(l){var x=-1,B=l==null?0:l.length;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function dn(){this.size=0,this.__data__={hash:new At,map:new(ee||St),string:new At}}function vn(l){var x=Bt(this,l).delete(l);return this.size-=x?1:0,x}function pn(l){return Bt(this,l).get(l)}function yn(l){return Bt(this,l).has(l)}function gn(l,x){var B=Bt(this,l),Z=B.size;return B.set(l,x),this.size+=B.size==Z?0:1,this}Rt.prototype.clear=dn,Rt.prototype.delete=vn,Rt.prototype.get=pn,Rt.prototype.has=yn,Rt.prototype.set=gn;function ue(l){var x=-1,B=l==null?0:l.length;for(this.__data__=new Rt;++x<B;)this.add(l[x])}function je(l){return this.__data__.set(l,p),this}function se(l){return this.__data__.has(l)}ue.prototype.add=ue.prototype.push=je,ue.prototype.has=se;function Ft(l){var x=this.__data__=new St(l);this.size=x.size}function _e(){this.__data__=new St,this.size=0}function mn(l){var x=this.__data__,B=x.delete(l);return this.size=x.size,B}function bn(l){return this.__data__.get(l)}function _n(l){return this.__data__.has(l)}function On(l,x){var B=this.__data__;if(B instanceof St){var Z=B.__data__;if(!ee||Z.length<m-1)return Z.push([l,x]),this.size=++B.size,this;B=this.__data__=new Rt(Z)}return B.set(l,x),this.size=B.size,this}Ft.prototype.clear=_e,Ft.prototype.delete=mn,Ft.prototype.get=bn,Ft.prototype.has=_n,Ft.prototype.set=On;function En(l,x){var B=ce(l),Z=!B&&Ce(l),ut=!B&&!Z&&he(l),rt=!B&&!Z&&!ut&&He(l),ct=B||Z||ut||rt,vt=ct?W(l.length,String):[],bt=vt.length;for(var yt in l)(x||dt.call(l,yt))&&!(ct&&(yt=="length"||ut&&(yt=="offset"||yt=="parent")||rt&&(yt=="buffer"||yt=="byteLength"||yt=="byteOffset")||Pn(yt,bt)))&&vt.push(yt);return vt}function fe(l,x){for(var B=l.length;B--;)if(Be(l[B][0],x))return B;return-1}function Oe(l,x,B){var Z=x(l);return ce(l)?Z:mt(Z,B(l))}function ne(l){return l==null?l===void 0?P:r:Dt&&Dt in Object(l)?Vt(l):De(l)}function Ie(l){return Ht(l)&&ne(l)==O}function Me(l,x,B,Z,ut){return l===x?!0:l==null||x==null||!Ht(l)&&!Ht(x)?l!==l&&x!==x:An(l,x,B,Z,Me,ut)}function An(l,x,B,Z,ut,rt){var ct=ce(l),vt=ce(x),bt=ct?y:Ut(l),yt=vt?y:Ut(x);bt=bt==O?i:bt,yt=yt==O?i:yt;var xt=bt==i,jt=yt==i,_t=bt==yt;if(_t&&he(l)){if(!he(x))return!1;ct=!0,xt=!1}if(_t&&!xt)return rt||(rt=new Ft),ct||He(l)?Ee(l,x,B,Z,ut,rt):Nn(l,x,bt,B,Z,ut,rt);if(!(B&d)){var Pt=xt&&dt.call(l,"__wrapped__"),wt=jt&&dt.call(x,"__wrapped__");if(Pt||wt){var Yt=Pt?l.value():l,Gt=wt?x.value():x;return rt||(rt=new Ft),ut(Yt,Gt,B,Z,rt)}}return _t?(rt||(rt=new Ft),Sn(l,x,B,Z,ut,rt)):!1}function wn(l){if(!Ue(l)||Ln(l))return!1;var x=Fe(l)?Xe:M;return x.test(qt(l))}function Tn(l){return Ht(l)&&we(l.length)&&!!C[ne(l)]}function kn(l){if(!Rn(l))return te(l);var x=[];for(var B in Object(l))dt.call(l,B)&&B!="constructor"&&x.push(B);return x}function Ee(l,x,B,Z,ut,rt){var ct=B&d,vt=l.length,bt=x.length;if(vt!=bt&&!(ct&&bt>vt))return!1;var yt=rt.get(l);if(yt&&rt.get(x))return yt==x;var xt=-1,jt=!0,_t=B&E?new ue:void 0;for(rt.set(l,x),rt.set(x,l);++xt<vt;){var Pt=l[xt],wt=x[xt];if(Z)var Yt=ct?Z(wt,Pt,xt,x,l,rt):Z(Pt,wt,xt,l,x,rt);if(Yt!==void 0){if(Yt)continue;jt=!1;break}if(_t){if(!gt(x,function(Gt,ie){if(!tt(_t,ie)&&(Pt===Gt||ut(Pt,Gt,B,Z,rt)))return _t.push(ie)})){jt=!1;break}}else if(!(Pt===wt||ut(Pt,wt,B,Z,rt))){jt=!1;break}}return rt.delete(l),rt.delete(x),jt}function Nn(l,x,B,Z,ut,rt,ct){switch(B){case _:if(l.byteLength!=x.byteLength||l.byteOffset!=x.byteOffset)return!1;l=l.buffer,x=x.buffer;case v:return!(l.byteLength!=x.byteLength||!rt(new qe(l),new qe(x)));case h:case o:case u:return Be(+l,+x);case n:return l.name==x.name&&l.message==x.message;case s:case w:return l==x+"";case a:var vt=J;case k:var bt=Z&d;if(vt||(vt=ot),l.size!=x.size&&!bt)return!1;var yt=ct.get(l);if(yt)return yt==x;Z|=E,ct.set(l,x);var xt=Ee(vt(l),vt(x),Z,ut,rt,ct);return ct.delete(l),xt;case T:if(be)return be.call(l)==be.call(x)}return!1}function Sn(l,x,B,Z,ut,rt){var ct=B&d,vt=re(l),bt=vt.length,yt=re(x),xt=yt.length;if(bt!=xt&&!ct)return!1;for(var jt=bt;jt--;){var _t=vt[jt];if(!(ct?_t in x:dt.call(x,_t)))return!1}var Pt=rt.get(l);if(Pt&&rt.get(x))return Pt==x;var wt=!0;rt.set(l,x),rt.set(x,l);for(var Yt=ct;++jt<bt;){_t=vt[jt];var Gt=l[_t],ie=x[_t];if(Z)var Vn=ct?Z(ie,Gt,_t,x,l,rt):Z(Gt,ie,_t,l,x,rt);if(!(Vn===void 0?Gt===ie||ut(Gt,ie,B,Z,rt):Vn)){wt=!1;break}Yt||(Yt=_t=="constructor")}if(wt&&!Yt){var ze=l.constructor,Ke=x.constructor;ze!=Ke&&"constructor"in l&&"constructor"in x&&!(typeof ze=="function"&&ze instanceof ze&&typeof Ke=="function"&&Ke instanceof Ke)&&(wt=!1)}return rt.delete(l),rt.delete(x),wt}function re(l){return Oe(l,Te,xn)}function Bt(l,x){var B=l.__data__;return qn(x)?B[typeof x=="string"?"string":"hash"]:B.map}function $t(l,x){var B=et(l,x);return wn(B)?B:void 0}function Vt(l){var x=dt.call(l,Dt),B=l[Dt];try{l[Dt]=void 0;var Z=!0}catch{}var ut=Pe.call(l);return Z&&(x?l[Dt]=B:delete l[Dt]),ut}var xn=le?function(l){return l==null?[]:(l=Object(l),ht(le(l),function(x){return ae.call(l,x)}))}:In,Ut=ne;(pe&&Ut(new pe(new ArrayBuffer(1)))!=_||ee&&Ut(new ee)!=a||ye&&Ut(ye.resolve())!=c||ge&&Ut(new ge)!=k||me&&Ut(new me)!=A)&&(Ut=function(l){var x=ne(l),B=x==i?l.constructor:void 0,Z=B?qt(B):"";if(Z)switch(Z){case Le:return _;case Kt:return a;case Je:return c;case tn:return k;case en:return A}return x});function Pn(l,x){return x=x??b,!!x&&(typeof l=="number"||$.test(l))&&l>-1&&l%1==0&&l<x}function qn(l){var x=typeof l;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?l!=="__proto__":l===null}function Ln(l){return!!Mt&&Mt in l}function Rn(l){var x=l&&l.constructor,B=typeof x=="function"&&x.prototype||Et;return l===B}function De(l){return Pe.call(l)}function qt(l){if(l!=null){try{return Xt.call(l)}catch{}try{return l+""}catch{}}return""}function Be(l,x){return l===x||l!==l&&x!==x}var Ce=Ie(function(){return arguments}())?Ie:function(l){return Ht(l)&&dt.call(l,"callee")&&!ae.call(l,"callee")},ce=Array.isArray;function Ae(l){return l!=null&&we(l.length)&&!Fe(l)}var he=ve||Mn;function jn(l,x){return Me(l,x)}function Fe(l){if(!Ue(l))return!1;var x=ne(l);return x==e||x==f||x==g||x==t}function we(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=b}function Ue(l){var x=typeof l;return l!=null&&(x=="object"||x=="function")}function Ht(l){return l!=null&&typeof l=="object"}var He=ft?Q(ft):Tn;function Te(l){return Ae(l)?En(l):kn(l)}function In(){return[]}function Mn(){return!1}R.exports=jn})(Ye,Ye.exports);var fr=Ye.exports,$n={},cr=kt&&kt.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty($n,"__esModule",{value:!0});var Kr=cr(sr),$r=cr(fr),Hn;(function(R){function U(E,b,O){E===void 0&&(E={}),b===void 0&&(b={}),typeof E!="object"&&(E={}),typeof b!="object"&&(b={});var y=Kr.default(b);O||(y=Object.keys(y).reduce(function(h,o){return y[o]!=null&&(h[o]=y[o]),h},{}));for(var g in E)E[g]!==void 0&&b[g]===void 0&&(y[g]=E[g]);return Object.keys(y).length>0?y:void 0}R.compose=U;function m(E,b){E===void 0&&(E={}),b===void 0&&(b={}),typeof E!="object"&&(E={}),typeof b!="object"&&(b={});var O=Object.keys(E).concat(Object.keys(b)).reduce(function(y,g){return $r.default(E[g],b[g])||(y[g]=b[g]===void 0?null:b[g]),y},{});return Object.keys(O).length>0?O:void 0}R.diff=m;function p(E,b){E===void 0&&(E={}),b===void 0&&(b={}),E=E||{};var O=Object.keys(b).reduce(function(y,g){return b[g]!==E[g]&&E[g]!==void 0&&(y[g]=b[g]),y},{});return Object.keys(E).reduce(function(y,g){return E[g]!==b[g]&&b[g]===void 0&&(y[g]=null),y},O)}R.invert=p;function d(E,b,O){if(O===void 0&&(O=!1),typeof E!="object")return b;if(typeof b=="object"){if(!O)return b;var y=Object.keys(b).reduce(function(g,h){return E[h]===void 0&&(g[h]=b[h]),g},{});return Object.keys(y).length>0?y:void 0}}R.transform=d})(Hn||(Hn={}));$n.default=Hn;var $e={},Ve={},Qn;function Vr(){if(Qn)return Ve;Qn=1;var R=kt&&kt.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ve,"__esModule",{value:!0});var U=R(hr()),m=function(){function p(d){this.ops=d,this.index=0,this.offset=0}return p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(d){d||(d=1/0);var E=this.ops[this.index];if(E){var b=this.offset,O=U.default.length(E);if(d>=O-b?(d=O-b,this.index+=1,this.offset=0):this.offset+=d,typeof E.delete=="number")return{delete:d};var y={};return E.attributes&&(y.attributes=E.attributes),typeof E.retain=="number"?y.retain=d:typeof E.insert=="string"?y.insert=E.insert.substr(b,d):y.insert=E.insert,y}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?U.default.length(this.ops[this.index])-this.offset:1/0},p.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},p.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,E=this.index,b=this.next(),O=this.ops.slice(this.index);return this.offset=d,this.index=E,[b].concat(O)}else return[]},p}();return Ve.default=m,Ve}var Xn;function hr(){if(Xn)return $e;Xn=1;var R=kt&&kt.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty($e,"__esModule",{value:!0});var U=R(Vr()),m;return function(p){function d(b){return new U.default(b)}p.iterator=d;function E(b){return typeof b.delete=="number"?b.delete:typeof b.retain=="number"?b.retain:typeof b.insert=="string"?b.insert.length:1}p.length=E}(m||(m={})),$e.default=m,$e}var xe=kt&&kt.__importDefault||function(R){return R&&R.__esModule?R:{default:R}},Ge=xe(zr),Gr=xe(sr),Fn=xe(fr),Ne=xe($n),Tt=xe(hr()),Zr=String.fromCharCode(0),Wr=function(){function R(U){Array.isArray(U)?this.ops=U:U!=null&&Array.isArray(U.ops)?this.ops=U.ops:this.ops=[]}return R.prototype.insert=function(U,m){var p={};return typeof U=="string"&&U.length===0?this:(p.insert=U,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(p.attributes=m),this.push(p))},R.prototype.delete=function(U){return U<=0?this:this.push({delete:U})},R.prototype.retain=function(U,m){if(U<=0)return this;var p={retain:U};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(p.attributes=m),this.push(p)},R.prototype.push=function(U){var m=this.ops.length,p=this.ops[m-1];if(U=Gr.default(U),typeof p=="object"){if(typeof U.delete=="number"&&typeof p.delete=="number")return this.ops[m-1]={delete:p.delete+U.delete},this;if(typeof p.delete=="number"&&U.insert!=null&&(m-=1,p=this.ops[m-1],typeof p!="object"))return this.ops.unshift(U),this;if(Fn.default(U.attributes,p.attributes)){if(typeof U.insert=="string"&&typeof p.insert=="string")return this.ops[m-1]={insert:p.insert+U.insert},typeof U.attributes=="object"&&(this.ops[m-1].attributes=U.attributes),this;if(typeof U.retain=="number"&&typeof p.retain=="number")return this.ops[m-1]={retain:p.retain+U.retain},typeof U.attributes=="object"&&(this.ops[m-1].attributes=U.attributes),this}}return m===this.ops.length?this.ops.push(U):this.ops.splice(m,0,U),this},R.prototype.chop=function(){var U=this.ops[this.ops.length-1];return U&&U.retain&&!U.attributes&&this.ops.pop(),this},R.prototype.filter=function(U){return this.ops.filter(U)},R.prototype.forEach=function(U){this.ops.forEach(U)},R.prototype.map=function(U){return this.ops.map(U)},R.prototype.partition=function(U){var m=[],p=[];return this.forEach(function(d){var E=U(d)?m:p;E.push(d)}),[m,p]},R.prototype.reduce=function(U,m){return this.ops.reduce(U,m)},R.prototype.changeLength=function(){return this.reduce(function(U,m){return m.insert?U+Tt.default.length(m):m.delete?U-m.delete:U},0)},R.prototype.length=function(){return this.reduce(function(U,m){return U+Tt.default.length(m)},0)},R.prototype.slice=function(U,m){U===void 0&&(U=0),m===void 0&&(m=1/0);for(var p=[],d=Tt.default.iterator(this.ops),E=0;E<m&&d.hasNext();){var b=void 0;E<U?b=d.next(U-E):(b=d.next(m-E),p.push(b)),E+=Tt.default.length(b)}return new R(p)},R.prototype.compose=function(U){var m=Tt.default.iterator(this.ops),p=Tt.default.iterator(U.ops),d=[],E=p.peek();if(E!=null&&typeof E.retain=="number"&&E.attributes==null){for(var b=E.retain;m.peekType()==="insert"&&m.peekLength()<=b;)b-=m.peekLength(),d.push(m.next());E.retain-b>0&&p.next(E.retain-b)}for(var O=new R(d);m.hasNext()||p.hasNext();)if(p.peekType()==="insert")O.push(p.next());else if(m.peekType()==="delete")O.push(m.next());else{var y=Math.min(m.peekLength(),p.peekLength()),g=m.next(y),h=p.next(y);if(typeof h.retain=="number"){var o={};typeof g.retain=="number"?o.retain=y:o.insert=g.insert;var n=Ne.default.compose(g.attributes,h.attributes,typeof g.retain=="number");if(n&&(o.attributes=n),O.push(o),!p.hasNext()&&Fn.default(O.ops[O.ops.length-1],o)){var e=new R(m.rest());return O.concat(e).chop()}}else typeof h.delete=="number"&&typeof g.retain=="number"&&O.push(h)}return O.chop()},R.prototype.concat=function(U){var m=new R(this.ops.slice());return U.ops.length>0&&(m.push(U.ops[0]),m.ops=m.ops.concat(U.ops.slice(1))),m},R.prototype.diff=function(U,m){if(this.ops===U.ops)return new R;var p=[this,U].map(function(y){return y.map(function(g){if(g.insert!=null)return typeof g.insert=="string"?g.insert:Zr;var h=y===U?"on":"with";throw new Error("diff() called "+h+" non-document")}).join("")}),d=new R,E=Ge.default(p[0],p[1],m),b=Tt.default.iterator(this.ops),O=Tt.default.iterator(U.ops);return E.forEach(function(y){for(var g=y[1].length;g>0;){var h=0;switch(y[0]){case Ge.default.INSERT:h=Math.min(O.peekLength(),g),d.push(O.next(h));break;case Ge.default.DELETE:h=Math.min(g,b.peekLength()),b.next(h),d.delete(h);break;case Ge.default.EQUAL:h=Math.min(b.peekLength(),O.peekLength(),g);var o=b.next(h),n=O.next(h);Fn.default(o.insert,n.insert)?d.retain(h,Ne.default.diff(o.attributes,n.attributes)):d.push(n).delete(h);break}g-=h}}),d.chop()},R.prototype.eachLine=function(U,m){m===void 0&&(m=`
`);for(var p=Tt.default.iterator(this.ops),d=new R,E=0;p.hasNext();){if(p.peekType()!=="insert")return;var b=p.peek(),O=Tt.default.length(b)-p.peekLength(),y=typeof b.insert=="string"?b.insert.indexOf(m,O)-O:-1;if(y<0)d.push(p.next());else if(y>0)d.push(p.next(y));else{if(U(d,p.next(1).attributes||{},E)===!1)return;E+=1,d=new R}}d.length()>0&&U(d,{},E)},R.prototype.invert=function(U){var m=new R;return this.reduce(function(p,d){if(d.insert)m.delete(Tt.default.length(d));else{if(d.retain&&d.attributes==null)return m.retain(d.retain),p+d.retain;if(d.delete||d.retain&&d.attributes){var E=d.delete||d.retain,b=U.slice(p,p+E);return b.forEach(function(O){d.delete?m.push(O):d.retain&&d.attributes&&m.retain(Tt.default.length(O),Ne.default.invert(d.attributes,O.attributes))}),p+E}}return p},0),m.chop()},R.prototype.transform=function(U,m){if(m===void 0&&(m=!1),m=!!m,typeof U=="number")return this.transformPosition(U,m);for(var p=U,d=Tt.default.iterator(this.ops),E=Tt.default.iterator(p.ops),b=new R;d.hasNext()||E.hasNext();)if(d.peekType()==="insert"&&(m||E.peekType()!=="insert"))b.retain(Tt.default.length(d.next()));else if(E.peekType()==="insert")b.push(E.next());else{var O=Math.min(d.peekLength(),E.peekLength()),y=d.next(O),g=E.next(O);if(y.delete)continue;g.delete?b.push(g):b.retain(O,Ne.default.transform(y.attributes,g.attributes,m))}return b.chop()},R.prototype.transformPosition=function(U,m){m===void 0&&(m=!1),m=!!m;for(var p=Tt.default.iterator(this.ops),d=0;p.hasNext()&&d<=U;){var E=p.peekLength(),b=p.peekType();if(p.next(),b==="delete"){U-=Math.min(E,U-d);continue}else b==="insert"&&(d<U||!m)&&(U+=E);d+=E}return U},R.Op=Tt.default,R.AttributeMap=Ne.default,R}(),Yr=Wr;const Qr=tr(Yr);/*!
* VueQuill @vueup/vue-quill v1.2.0
* https://vueup.github.io/vue-quill/
*
* Includes quill v1.3.7
* https://quilljs.com/
*
* Copyright (c) 2023 Ahmad Luthfi Masruri
* Released under the MIT license
* Date: 2023-05-12T08:44:03.742Z
*/const Jn={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},Xr=er({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:R=>["delta","html","text"].includes(R)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:R=>["snow","bubble",""].includes(R)},toolbar:{type:[String,Array,Object],required:!1,validator:R=>typeof R=="string"&&R!==""?R.charAt(0)==="#"?!0:Object.keys(Jn).indexOf(R)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(R,U)=>{nr(()=>{E()}),dr(()=>{m=null});let m,p;const d=Zt(),E=()=>{var v;if(d.value){if(p=b(),R.modules)if(Array.isArray(R.modules))for(const _ of R.modules)Bn.register(`modules/${_.name}`,_.module);else Bn.register(`modules/${R.modules.name}`,R.modules.module);m=new Bn(d.value,p),c(R.content),m.on("text-change",o),m.on("selection-change",e),m.on("editor-change",f),R.theme!=="bubble"&&d.value.classList.remove("ql-bubble"),R.theme!=="snow"&&d.value.classList.remove("ql-snow"),(v=m.getModule("toolbar"))===null||v===void 0||v.container.addEventListener("mousedown",_=>{_.preventDefault()}),U.emit("ready",m)}},b=()=>{const v={};if(R.theme!==""&&(v.theme=R.theme),R.readOnly&&(v.readOnly=R.readOnly),R.placeholder&&(v.placeholder=R.placeholder),R.toolbar&&R.toolbar!==""&&(v.modules={toolbar:(()=>{if(typeof R.toolbar=="object")return R.toolbar;if(typeof R.toolbar=="string")return R.toolbar.charAt(0)==="#"?R.toolbar:Jn[R.toolbar]})()}),R.modules){const _=(()=>{var N,q;const D={};if(Array.isArray(R.modules))for(const z of R.modules)D[z.name]=(N=z.options)!==null&&N!==void 0?N:{};else D[R.modules.name]=(q=R.modules.options)!==null&&q!==void 0?q:{};return D})();v.modules=Object.assign({},v.modules,_)}return Object.assign({},R.globalOptions,R.options,v)},O=v=>typeof v=="object"&&v?v.slice():v,y=v=>Object.values(v.ops).some(_=>!_.retain||Object.keys(_).length!==1);let g;const h=v=>{if(typeof g==typeof v){if(v===g)return!0;if(typeof v=="object"&&v&&typeof g=="object"&&g)return!y(g.diff(v))}return!1},o=(v,_,N)=>{g=O(i()),h(R.content)||U.emit("update:content",g),U.emit("textChange",{delta:v,oldContents:_,source:N})},n=Zt(),e=(v,_,N)=>{n.value=!!(m!=null&&m.hasFocus()),U.emit("selectionChange",{range:v,oldRange:_,source:N})};Ze(n,v=>{v?U.emit("focus",d):U.emit("blur",d)});const f=(...v)=>{v[0]==="text-change"&&U.emit("editorChange",{name:v[0],delta:v[1],oldContents:v[2],source:v[3]}),v[0]==="selection-change"&&U.emit("editorChange",{name:v[0],range:v[1],oldRange:v[2],source:v[3]})},a=()=>d.value,u=()=>{var v;return(v=m==null?void 0:m.getModule("toolbar"))===null||v===void 0?void 0:v.container},r=()=>{if(m)return m;throw`The quill editor hasn't been instantiated yet,
make sure to call this method when the editor ready
or use v-on:ready="onReady(quill)" event instead.`},i=(v,_)=>R.contentType==="html"?k():R.contentType==="text"?t(v,_):m==null?void 0:m.getContents(v,_),c=(v,_="api")=>{const N=v||(R.contentType==="delta"?new Qr:"");R.contentType==="html"?w(N):R.contentType==="text"?s(N,_):m==null||m.setContents(N,_),g=O(N)},t=(v,_)=>{var N;return(N=m==null?void 0:m.getText(v,_))!==null&&N!==void 0?N:""},s=(v,_="api")=>{m==null||m.setText(v,_)},k=()=>{var v;return(v=m==null?void 0:m.root.innerHTML)!==null&&v!==void 0?v:""},w=v=>{m&&(m.root.innerHTML=v)},T=(v,_="api")=>{const N=m==null?void 0:m.clipboard.convert(v);N&&(m==null||m.setContents(N,_))},P=()=>{m==null||m.focus()},A=()=>{Un(()=>{var v;!U.slots.toolbar&&m&&((v=m.getModule("toolbar"))===null||v===void 0||v.container.remove()),E()})};return Ze(()=>R.content,v=>{if(!m||!v||h(v))return;const _=m.getSelection();_&&Un(()=>m==null?void 0:m.setSelection(_)),c(v)},{deep:!0}),Ze(()=>R.enable,v=>{m&&m.enable(v)}),{editor:d,getEditor:a,getToolbar:u,getQuill:r,getContents:i,setContents:c,getHTML:k,setHTML:w,pasteHTML:T,focus:P,getText:t,setText:s,reinit:A}},render(){var R,U;return[(U=(R=this.$slots).toolbar)===null||U===void 0?void 0:U.call(R),vr("div",{ref:"editor",...this.$attrs})]}});const Jr={style:{padding:"10px"}},ti={key:0},ei={key:1},ni=["onClick"],ri={class:"editor"},ii=er({__name:"notice",setup(R){const U=Zt(""),m=Zt(null),d=Zt({theme:"bubble",modules:{toolbar:{container:[["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{align:[]}],[{size:["small",!1,"large","huge"]}],[{font:[]}],[{header:[1,2,3,4,5,6,!1]}],[{direction:"ltl"}],[{direction:"rtl"}],[{indent:"-1"},{indent:"+1"}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],["blockquote","code-block"],["clean"],["link","image","video"]],handlers:{image:()=>{const t=document.createElement("input");t.setAttribute("type","file"),t.setAttribute("accept","image/*"),t.click(),t.onchange=async()=>{const s=t.files?t.files[0]:null;if(s){const k=new FormData;k.append("file",s);try{const w=await Sr(k),T=xr(m.value).getQuill();if(T){const P=T.getSelection(!0);T.insertEmbed(P.index,"image",w.data.fullurl)}}catch{alert("图片上传失败")}}}}}}}}),E=[{Choice:".ql-insertMetric",title:"跳转配置"},{Choice:".ql-bold",title:"加粗"},{Choice:".ql-italic",title:"斜体"},{Choice:".ql-underline",title:"下划线"},{Choice:".ql-header",title:"段落格式"},{Choice:".ql-strike",title:"删除线"},{Choice:".ql-blockquote",title:"块引用"},{Choice:".ql-code",title:"插入代码"},{Choice:".ql-code-block",title:"插入代码段"},{Choice:".ql-font",title:"字体"},{Choice:".ql-size",title:"字体大小"},{Choice:'.ql-list[value="ordered"]',title:"编号列表"},{Choice:'.ql-list[value="bullet"]',title:"项目列表"},{Choice:".ql-direction",title:"文本方向"},{Choice:'.ql-header[value="1"]',title:"h1"},{Choice:'.ql-header[value="2"]',title:"h2"},{Choice:".ql-align",title:"对齐方式"},{Choice:".ql-color",title:"字体颜色"},{Choice:".ql-background",title:"背景颜色"},{Choice:".ql-image",title:"图像"},{Choice:".ql-video",title:"视频"},{Choice:".ql-link",title:"添加链接"},{Choice:".ql-formula",title:"插入公式"},{Choice:".ql-clean",title:"清除字体格式"},{Choice:'.ql-script[value="sub"]',title:"下标"},{Choice:'.ql-script[value="super"]',title:"上标"},{Choice:'.ql-indent[value="-1"]',title:"向左缩进"},{Choice:'.ql-indent[value="+1"]',title:"向右缩进"},{Choice:".ql-header .ql-picker-label",title:"标题大小"},{Choice:'.ql-header .ql-picker-item[data-value="1"]',title:"标题一"},{Choice:'.ql-header .ql-picker-item[data-value="2"]',title:"标题二"},{Choice:'.ql-header .ql-picker-item[data-value="3"]',title:"标题三"},{Choice:'.ql-header .ql-picker-item[data-value="4"]',title:"标题四"},{Choice:'.ql-header .ql-picker-item[data-value="5"]',title:"标题五"},{Choice:'.ql-header .ql-picker-item[data-value="6"]',title:"标题六"},{Choice:".ql-header .ql-picker-item:last-child",title:"标准"},{Choice:'.ql-size .ql-picker-item[data-value="small"]',title:"小号"},{Choice:'.ql-size .ql-picker-item[data-value="large"]',title:"大号"},{Choice:'.ql-size .ql-picker-item[data-value="huge"]',title:"超大号"},{Choice:".ql-size .ql-picker-item:nth-child(2)",title:"标准"},{Choice:".ql-align .ql-picker-item:first-child",title:"居左对齐"},{Choice:'.ql-align .ql-picker-item[data-value="center"]',title:"居中对齐"},{Choice:'.ql-align .ql-picker-item[data-value="right"]',title:"居右对齐"},{Choice:'.ql-align .ql-picker-item[data-value="justify"]',title:"两端对齐"}],b=()=>{for(let t of E){let s=document.querySelector(".editor "+t.Choice);s&&s.setAttribute("title",t.title)}},O=t=>{t.preventDefault();const s=t.clipboardData;if(!s)return;s.types.includes("Files")&&Array.from(s.files).forEach(w=>{})},y=t=>{n.current=t.current,n.limit=t.limit,a()},g=Zt([]),h=Zt(!1),o=Zt(1),n=Gn({current:1,limit:10,total:1}),e=Gn({title:"",author:"",content:"",status:1});nr(()=>{a(),Un(()=>{m.value&&m.value.getQuill()&&(b(),m.value.getQuill().root.addEventListener("paste",O,!1))})});const f=()=>{e.id=void 0,e.title="",e.author="",e.content="",U.value="",e.status=1,o.value=1,h.value=!0},a=()=>{pr({page:n.current,size:n.limit}).then(t=>{t.code==1?(g.value=t.data.data,n.total=t.data.count):Qt.msg(t.msg,{icon:2})})},u=t=>{h.value=!0,e.id=t.id,e.title=t.title,e.author=t.author,e.content=t.content,U.value=t.content,e.status=parseInt(t.status.toString()),o.value=2};Ze(U,t=>{e.content=t});const r=async t=>{const s=await br({id:t.id});s.code==1?(Qt.msg("删除成功!",{icon:1}),a()):Qt.msg(s.msg,{icon:2})},i=[{title:"公告标题",width:"180px",key:"title"},{title:"作者",width:"120px",key:"author"},{title:"公告内容",width:"280px",key:"content",ellipsisTooltip:!0},{title:"发布时间",width:"180px",key:"createtime"},{title:"状态",width:"100px",customSlot:"status",key:"status"},{title:"操作",width:"120px",customSlot:"operator",key:"operator",align:"center",fixed:"right"}],c=Zt([{text:"确认",callback:async()=>{if(e.title==""){Qt.msg("公告标题不能为空!",{icon:2});return}if(e.author==""){Qt.msg("作者不能为空!",{icon:2});return}if(e.content==""){Qt.msg("公告内容不能为空!",{icon:2});return}const t=o.value==1?await _r(e):await Or(e);t.code==1?(Qt.msg("提交成功!",{icon:1}),h.value=!1,a()):Qt.msg(t.msg,{icon:2})}},{text:"取消",callback:()=>{h.value=!1}}]);return(t,s)=>{const k=Er,w=Ir,T=jr,P=Rr,A=Lr,v=Ar,_=wr,N=Tr,q=kr,D=Mr,z=qr,K=Nr;return Dn(),yr(z,{style:{padding:"20px"}},{default:Lt(()=>[Ot(A,null,{default:Lt(()=>[ke("div",Jr,[s[7]||(s[7]=ke("span",{style:{"font-size":"18px","vertical-align":"center","margin-right":"20px"}},"通知公告",-1)),Ot(k,{type:"primary",onClick:s[0]||(s[0]=Y=>f()),size:"sm"},{default:Lt(()=>s[6]||(s[6]=[gr("新增公告")])),_:1})]),Ot(P,{page:n,height:"600px",size:"lg",onChange:y,columns:i,"data-source":g.value},{status:Lt(({data:Y})=>[Y.status==1?(Dn(),Zn("span",ti,"已发布")):Wn("",!0),Y.status==0?(Dn(),Zn("span",ei,"已隐藏")):Wn("",!0)]),operator:Lt(({data:Y})=>[Ot(T,{size:"lg"},{default:Lt(()=>[ke("span",{style:{color:"#00A394",cursor:"pointer"},onClick:H=>u(Y)},"编辑",8,ni),Ot(w,{trigger:"click",content:"确定要删除吗?",onConfirm:H=>r(Y)},{default:Lt(()=>s[8]||(s[8]=[ke("span",{style:{color:"#00A394",cursor:"pointer"}},"删除",-1)])),_:2},1032,["onConfirm"])]),_:2},1024)]),_:1},8,["page","data-source"])]),_:1}),Ot(K,{modelValue:h.value,"onUpdate:modelValue":s[5]||(s[5]=Y=>h.value=Y),title:o.value==1?"新增公告":"编辑公告",type:4,shade:!0,area:["950px","100%"],btn:c.value},{default:Lt(()=>[Ot(z,{fluid:"true",style:{padding:"20px"}},{default:Lt(()=>[Ot(D,{model:e},{default:Lt(()=>[Ot(_,{required:"",label:"公告标题",prop:"title"},{default:Lt(()=>[Ot(v,{modelValue:e.title,"onUpdate:modelValue":s[1]||(s[1]=Y=>e.title=Y),placeholder:"请输入公告标题"},null,8,["modelValue"])]),_:1}),Ot(_,{required:"",label:"作者",prop:"author"},{default:Lt(()=>[Ot(v,{modelValue:e.author,"onUpdate:modelValue":s[2]||(s[2]=Y=>e.author=Y),placeholder:"请输入作者"},null,8,["modelValue"])]),_:1}),Ot(_,{required:"",label:"公告内容",prop:"content"},{default:Lt(()=>[ke("div",ri,[Ot(mr(Xr),{ref_key:"editorRef",ref:m,content:U.value,"onUpdate:content":s[3]||(s[3]=Y=>U.value=Y),options:d.value,contentType:"html"},null,8,["content","options"])])]),_:1}),Ot(_,{required:"",label:"状态",prop:"status"},{default:Lt(()=>[Ot(q,{modelValue:e.status,"onUpdate:modelValue":s[4]||(s[4]=Y=>e.status=Y),placeholder:"请选择"},{default:Lt(()=>[Ot(N,{value:0,label:"隐藏"}),Ot(N,{value:1,label:"显示"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1})]),_:1},8,["modelValue","title","btn"])]),_:1})}}});const hi=Pr(ii,[["__scopeId","data-v-f637a2e3"]]);export{hi as default};