OwlCyberSecurity - MANAGER
Edit File: Editor.BtkW3JD6.js
var Qt=Object.defineProperty;var Xt=(U,P,O)=>P in U?Qt(U,P,{enumerable:!0,configurable:!0,writable:!0,value:O}):U[P]=O;var Ct=(U,P,O)=>(Xt(U,typeof P!="symbol"?P+"":P,O),O);import{d as Ut,u as Jt,y as Bt,b as te}from"./links.BdfvOpfI.js";import{_ as _t,l as ee,k as ne}from"./default-i18n.Bd0Z306Z.js";import{B as re,S as ie}from"./index.BQgiQQKQ.js";import{a as oe}from"./Caret.iRBf3wcH.js";import{o as mt,c as gt,a as ct,x as wt,H as le,d as At,q as jt,F as Dt,K as ae,N as Tt,t as xt,C as Nt,O as kt}from"./vue.esm-bundler.CWQFYt9y.js";import{_ as $t}from"./_plugin-vue_export-helper.BN1snXvA.js";const Ot="all-in-one-seo-pack",se=U=>{const P=Ut();if(!P.tags.length)return[];const O=P.context[U];if(!O)return P.tags.filter(p=>!p.context||p.context.includes("all"));const h=[];let s=[];if(O.forEach(p=>{P.tags.filter(f=>f.id===p).forEach(f=>{if(f.context){if(!f.context.includes("all")&&!f.context.includes(U))return;h.push(f.id)}f&&!f.deprecated&&s.push({...f})})}),h.length){const p=[];s.forEach((v,f)=>{h.includes(v.id)&&!v.context&&p.push(f)});for(let v=p.length-1;0<=v;v--)s.splice(p[v],1)}const N=Jt(),g=N.aioseo.postData.postTypes.find(p=>p.name+"Title"===U||p.name+"Description"===U||"breadcrumbs-post-type-"+p.name===U);if(g&&(s=s.map(p=>(p.name=p.name.replace("Post",g.singular),p.description=p.description.replace("page/post",g.singular.toLowerCase()),p)),g.name==="product")){const p=s.findIndex(v=>v.id==="post_excerpt");p!==-1&&(s[p].name=_t("Product Short Description",Ot),s[p].description=_t("A short description for your product.",Ot),s[p].value=_t("Sample short description for your product.",Ot))}const m=N.aioseo.postData.taxonomies.find(p=>p.name+"Title"===U||p.name+"Description"===U||"breadcrumbs-taxonomy-"+p.name===U);return m&&(s=s.map(p=>(p.name=p.name.replace("Category",m.singular),p))),(U==="dateTitle"||U==="dateDescription")&&(s=s.map(p=>(p.name=p.name.replace("Category",_t("Archive",Ot)),p.name=p.name.replace("Post",_t("Archive",Ot)),p.description=p.description.replace("page/post",_t("archive",Ot)),p))),s.sort((p,v)=>p.name<v.name?-1:p.name>v.name?1:0)},ue=(U,P,O)=>{switch(O){case"title":switch(U){case"taxonomies":return["taxonomy_title","separator_sa","site_title"];case"archives":switch(P){case"author":return["author_name","separator_sa","site_title"];case"search":return["search_term","separator_sa","site_title"];case"date":default:return["archive_title","separator_sa","site_title"]}default:return["post_title","separator_sa","site_title"]}case"description":switch(U){case"taxonomies":return["taxonomy_title","separator_sa","taxonomy_description"];case"attachment":return["attachment_caption","separator_sa","site_title"];case"archives":switch(P){case"author":return["author_name","separator_sa","site_title"];case"search":return["search_term","separator_sa","site_title"];case"date":default:return["archive_title","separator_sa","site_title"]}default:return P==="attachment"?["attachment_caption","separator_sa","site_title"]:P==="product"?["post_excerpt","post_content"]:["post_excerpt","post_content","separator_sa"]}}},Ft={context:se,getDefaultTags:ue},fe=U=>{const{invalidClosingTags:P,invalidOpeningTags:O,tagNamePattern:h}=zt(U);let s=U;return P.forEach(N=>{s=`<${N.match(h)[1]}>`+s}),O.forEach(N=>{const g=N.match(h)[1];s=s+`</${g}>`}),s},ce=(U,P)=>{const{invalidClosingTags:O,invalidOpeningTags:h,tagNamePattern:s}=zt(U);return O.forEach(N=>{const g=N.match(s)[1],m=new RegExp(`^<${g}>`);P=P.replace(m,"")}),h.forEach(N=>{const g=N.match(s)[1],m=new RegExp(`<\\/${g}>$`);P=P.replace(m,"")}),P},zt=U=>{const P=new RegExp(/(<[^<>]*>)/),O=new RegExp(/<\s?\/[^<>]*>/),h=new RegExp(/<\s?\/?([^<\s>]*).*>/),s=U.split(P),N=[];s.forEach(v=>{v.match(P)&&N.push(v)});const g=[];N.forEach((v,f)=>{if(!v)return;if(v.match(O)){g.push(v),N[f]="";return}const o=v.match(h)[1];let t=!1;N.forEach((e,u)=>{if(f===u||!e||t||!e.match(O))return;const l=e.match(h)[1];if(o===l){N[f]="",N[u]="",t=!0;return}g.push(v),N[f]=""})});const m=[],p=[];return g.forEach(v=>{if(v.match(P)){if(v.match(O)){p.push(v);return}m.push(v)}}),{invalidClosingTags:p,invalidOpeningTags:m,tagNamePattern:h}};var Vt={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */(function(U,P){(function(h,s){U.exports=s()})(typeof self<"u"?self:ee,function(){return function(O){var h={};function s(N){if(h[N])return h[N].exports;var g=h[N]={i:N,l:!1,exports:{}};return O[N].call(g.exports,g,g.exports,s),g.l=!0,g.exports}return s.m=O,s.c=h,s.d=function(N,g,m){s.o(N,g)||Object.defineProperty(N,g,{configurable:!1,enumerable:!0,get:m})},s.n=function(N){var g=N&&N.__esModule?function(){return N.default}:function(){return N};return s.d(g,"a",g),g},s.o=function(N,g){return Object.prototype.hasOwnProperty.call(N,g)},s.p="",s(s.s=109)}([function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(17),g=s(18),m=s(19),p=s(45),v=s(46),f=s(47),o=s(48),t=s(49),e=s(12),u=s(32),l=s(33),a=s(31),r=s(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:N.default,Format:g.default,Leaf:m.default,Embed:o.default,Scroll:p.default,Block:f.default,Inline:v.default,Text:t.default,Attributor:{Attribute:e.default,Class:u.default,Style:l.default,Store:a.default}};h.default=i},function(O,h,s){var N=this&&this.__extends||function(){var a=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){a(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=function(a){N(r,a);function r(i){var c=this;return i="[Parchment] "+i,c=a.call(this,i)||this,c.message=i,c.name=c.constructor.name,c}return r}(Error);h.ParchmentError=g;var m={},p={},v={},f={};h.DATA_KEY="__blot";var o;(function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"})(o=h.Scope||(h.Scope={}));function t(a,r){var i=u(a);if(i==null)throw new g("Unable to create "+a+" blot");var c=i,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:c.create(r);return new c(n,r)}h.create=t;function e(a,r){return r===void 0&&(r=!1),a==null?null:a[h.DATA_KEY]!=null?a[h.DATA_KEY].blot:r?e(a.parentNode,r):null}h.find=e;function u(a,r){r===void 0&&(r=o.ANY);var i;if(typeof a=="string")i=f[a]||m[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)i=f.text;else if(typeof a=="number")a&o.LEVEL&o.BLOCK?i=f.block:a&o.LEVEL&o.INLINE&&(i=f.inline);else if(a instanceof HTMLElement){var c=(a.getAttribute("class")||"").split(/\s+/);for(var n in c)if(i=p[c[n]],i)break;i=i||v[a.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}h.query=u;function l(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];if(a.length>1)return a.map(function(n){return l(n)});var i=a[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new g("Invalid definition");if(i.blotName==="abstract")throw new g("Cannot register abstract class");if(f[i.blotName||i.attrName]=i,typeof i.keyName=="string")m[i.keyName]=i;else if(i.className!=null&&(p[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(n){return n.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var c=Array.isArray(i.tagName)?i.tagName:[i.tagName];c.forEach(function(n){(v[n]==null||i.className==null)&&(v[n]=i)})}return i}h.register=l},function(O,h,s){var N=s(51),g=s(11),m=s(3),p=s(20),v="\0",f=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};f.prototype.insert=function(o,t){var e={};return o.length===0?this:(e.insert=o,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},f.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},f.prototype.retain=function(o,t){if(o<=0)return this;var e={retain:o};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},f.prototype.push=function(o){var t=this.ops.length,e=this.ops[t-1];if(o=m(!0,{},o),typeof e=="object"){if(typeof o.delete=="number"&&typeof e.delete=="number")return this.ops[t-1]={delete:e.delete+o.delete},this;if(typeof e.delete=="number"&&o.insert!=null&&(t-=1,e=this.ops[t-1],typeof e!="object"))return this.ops.unshift(o),this;if(g(o.attributes,e.attributes)){if(typeof o.insert=="string"&&typeof e.insert=="string")return this.ops[t-1]={insert:e.insert+o.insert},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof e.retain=="number")return this.ops[t-1]={retain:e.retain+o.retain},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this},f.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},f.prototype.filter=function(o){return this.ops.filter(o)},f.prototype.forEach=function(o){this.ops.forEach(o)},f.prototype.map=function(o){return this.ops.map(o)},f.prototype.partition=function(o){var t=[],e=[];return this.forEach(function(u){var l=o(u)?t:e;l.push(u)}),[t,e]},f.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},f.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+p.length(t):t.delete?o-t.delete:o},0)},f.prototype.length=function(){return this.reduce(function(o,t){return o+p.length(t)},0)},f.prototype.slice=function(o,t){o=o||0,typeof t!="number"&&(t=1/0);for(var e=[],u=p.iterator(this.ops),l=0;l<t&&u.hasNext();){var a;l<o?a=u.next(o-l):(a=u.next(t-l),e.push(a)),l+=p.length(a)}return new f(e)},f.prototype.compose=function(o){var t=p.iterator(this.ops),e=p.iterator(o.ops),u=[],l=e.peek();if(l!=null&&typeof l.retain=="number"&&l.attributes==null){for(var a=l.retain;t.peekType()==="insert"&&t.peekLength()<=a;)a-=t.peekLength(),u.push(t.next());l.retain-a>0&&e.next(l.retain-a)}for(var r=new f(u);t.hasNext()||e.hasNext();)if(e.peekType()==="insert")r.push(e.next());else if(t.peekType()==="delete")r.push(t.next());else{var i=Math.min(t.peekLength(),e.peekLength()),c=t.next(i),n=e.next(i);if(typeof n.retain=="number"){var d={};typeof c.retain=="number"?d.retain=i:d.insert=c.insert;var A=p.attributes.compose(c.attributes,n.attributes,typeof c.retain=="number");if(A&&(d.attributes=A),r.push(d),!e.hasNext()&&g(r.ops[r.ops.length-1],d)){var E=new f(t.rest());return r.concat(E).chop()}}else typeof n.delete=="number"&&typeof c.retain=="number"&&r.push(n)}return r.chop()},f.prototype.concat=function(o){var t=new f(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},f.prototype.diff=function(o,t){if(this.ops===o.ops)return new f;var e=[this,o].map(function(i){return i.map(function(c){if(c.insert!=null)return typeof c.insert=="string"?c.insert:v;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),u=new f,l=N(e[0],e[1],t),a=p.iterator(this.ops),r=p.iterator(o.ops);return l.forEach(function(i){for(var c=i[1].length;c>0;){var n=0;switch(i[0]){case N.INSERT:n=Math.min(r.peekLength(),c),u.push(r.next(n));break;case N.DELETE:n=Math.min(c,a.peekLength()),a.next(n),u.delete(n);break;case N.EQUAL:n=Math.min(a.peekLength(),r.peekLength(),c);var d=a.next(n),A=r.next(n);g(d.insert,A.insert)?u.retain(n,p.attributes.diff(d.attributes,A.attributes)):u.push(A).delete(n);break}c-=n}}),u.chop()},f.prototype.eachLine=function(o,t){t=t||` `;for(var e=p.iterator(this.ops),u=new f,l=0;e.hasNext();){if(e.peekType()!=="insert")return;var a=e.peek(),r=p.length(a)-e.peekLength(),i=typeof a.insert=="string"?a.insert.indexOf(t,r)-r:-1;if(i<0)u.push(e.next());else if(i>0)u.push(e.next(i));else{if(o(u,e.next(1).attributes||{},l)===!1)return;l+=1,u=new f}}u.length()>0&&o(u,{},l)},f.prototype.transform=function(o,t){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);for(var e=p.iterator(this.ops),u=p.iterator(o.ops),l=new f;e.hasNext()||u.hasNext();)if(e.peekType()==="insert"&&(t||u.peekType()!=="insert"))l.retain(p.length(e.next()));else if(u.peekType()==="insert")l.push(u.next());else{var a=Math.min(e.peekLength(),u.peekLength()),r=e.next(a),i=u.next(a);if(r.delete)continue;i.delete?l.push(i):l.retain(a,p.attributes.transform(r.attributes,i.attributes,t))}return l.chop()},f.prototype.transformPosition=function(o,t){t=!!t;for(var e=p.iterator(this.ops),u=0;e.hasNext()&&u<=o;){var l=e.peekLength(),a=e.peekType();if(e.next(),a==="delete"){o-=Math.min(l,o-u);continue}else a==="insert"&&(u<o||!t)&&(o+=l);u+=l}return o},O.exports=f},function(O,h){var s=Object.prototype.hasOwnProperty,N=Object.prototype.toString,g=Object.defineProperty,m=Object.getOwnPropertyDescriptor,p=function(e){return typeof Array.isArray=="function"?Array.isArray(e):N.call(e)==="[object Array]"},v=function(e){if(!e||N.call(e)!=="[object Object]")return!1;var u=s.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&s.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!u&&!l)return!1;var a;for(a in e);return typeof a>"u"||s.call(e,a)},f=function(e,u){g&&u.name==="__proto__"?g(e,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):e[u.name]=u.newValue},o=function(e,u){if(u==="__proto__")if(s.call(e,u)){if(m)return m(e,u).value}else return;return e[u]};O.exports=function t(){var e,u,l,a,r,i,c=arguments[0],n=1,d=arguments.length,A=!1;for(typeof c=="boolean"&&(A=c,c=arguments[1]||{},n=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});n<d;++n)if(e=arguments[n],e!=null)for(u in e)l=o(c,u),a=o(e,u),c!==a&&(A&&a&&(v(a)||(r=p(a)))?(r?(r=!1,i=l&&p(l)?l:[]):i=l&&v(l)?l:{},f(c,{name:u,newValue:t(A,i,a)})):typeof a<"u"&&f(c,{name:u,newValue:a}));return c}},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.BlockEmbed=h.bubbleFormats=void 0;var N=function(){function y(b,w){for(var S=0;S<w.length;S++){var R=w[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(b,R.key,R)}}return function(b,w,S){return w&&y(b.prototype,w),S&&y(b,S),b}}(),g=function y(b,w,S){b===null&&(b=Function.prototype);var R=Object.getOwnPropertyDescriptor(b,w);if(R===void 0){var D=Object.getPrototypeOf(b);return D===null?void 0:y(D,w,S)}else{if("value"in R)return R.value;var F=R.get;return F===void 0?void 0:F.call(S)}},m=s(3),p=c(m),v=s(2),f=c(v),o=s(0),t=c(o),e=s(16),u=c(e),l=s(6),a=c(l),r=s(7),i=c(r);function c(y){return y&&y.__esModule?y:{default:y}}function n(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function d(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function A(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var E=1,T=function(y){A(b,y);function b(){return n(this,b),d(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return N(b,[{key:"attach",value:function(){g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new f.default().insert(this.value(),(0,p.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(S,R){var D=t.default.query(S,t.default.Scope.BLOCK_ATTRIBUTE);D!=null&&this.attributes.attribute(D,R)}},{key:"formatAt",value:function(S,R,D,F){this.format(D,F)}},{key:"insertAt",value:function(S,R,D){if(typeof R=="string"&&R.endsWith(` `)){var F=t.default.create(x.blotName);this.parent.insertBefore(F,S===0?this:this.next),F.insertAt(0,R.slice(0,-1))}else g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,S,R,D)}}]),b}(t.default.Embed);T.scope=t.default.Scope.BLOCK_BLOT;var x=function(y){A(b,y);function b(w){n(this,b);var S=d(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,w));return S.cache={},S}return N(b,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(S,R){return R.length()===0?S:S.insert(R.value(),_(R))},new f.default).insert(` `,_(this))),this.cache.delta}},{key:"deleteAt",value:function(S,R){g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"deleteAt",this).call(this,S,R),this.cache={}}},{key:"formatAt",value:function(S,R,D,F){R<=0||(t.default.query(D,t.default.Scope.BLOCK)?S+R===this.length()&&this.format(D,F):g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"formatAt",this).call(this,S,Math.min(R,this.length()-S-1),D,F),this.cache={})}},{key:"insertAt",value:function(S,R,D){if(D!=null)return g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,S,R,D);if(R.length!==0){var F=R.split(` `),Z=F.shift();Z.length>0&&(S<this.length()-1||this.children.tail==null?g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,Math.min(S,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var B=this;F.reduce(function(M,k){return B=B.split(M,!0),B.insertAt(0,k),k.length},S+Z.length)}}},{key:"insertBefore",value:function(S,R){var D=this.children.head;g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,S,R),D instanceof u.default&&D.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(S,R){g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"moveChildren",this).call(this,S,R),this.cache={}}},{key:"optimize",value:function(S){g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,S),this.cache={}}},{key:"path",value:function(S){return g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"path",this).call(this,S,!0)}},{key:"removeChild",value:function(S){g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"removeChild",this).call(this,S),this.cache={}}},{key:"split",value:function(S){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(S===0||S>=this.length()-E)){var D=this.clone();return S===0?(this.parent.insertBefore(D,this),this):(this.parent.insertBefore(D,this.next),D)}else{var F=g(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"split",this).call(this,S,R);return this.cache={},F}}}]),b}(t.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[a.default,t.default.Embed,i.default];function _(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return y==null||(typeof y.formats=="function"&&(b=(0,p.default)(b,y.formats())),y.parent==null||y.parent.blotName=="scroll"||y.parent.statics.scope!==y.statics.scope)?b:_(y.parent,b)}h.bubbleFormats=_,h.BlockEmbed=T,h.default=x},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.overload=h.expandConfig=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g=function(){function B(M,k){var q=[],I=!0,H=!1,j=void 0;try{for(var L=M[Symbol.iterator](),C;!(I=(C=L.next()).done)&&(q.push(C.value),!(k&&q.length===k));I=!0);}catch($){H=!0,j=$}finally{try{!I&&L.return&&L.return()}finally{if(H)throw j}}return q}return function(M,k){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return B(M,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function B(M,k){for(var q=0;q<k.length;q++){var I=k[q];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(M,I.key,I)}}return function(M,k,q){return k&&B(M.prototype,k),q&&B(M,q),M}}();s(50);var p=s(2),v=_(p),f=s(14),o=_(f),t=s(8),e=_(t),u=s(9),l=_(u),a=s(0),r=_(a),i=s(15),c=_(i),n=s(3),d=_(n),A=s(10),E=_(A),T=s(34),x=_(T);function _(B){return B&&B.__esModule?B:{default:B}}function y(B,M,k){return M in B?Object.defineProperty(B,M,{value:k,enumerable:!0,configurable:!0,writable:!0}):B[M]=k,B}function b(B,M){if(!(B instanceof M))throw new TypeError("Cannot call a class as a function")}var w=(0,E.default)("quill"),S=function(){m(B,null,[{key:"debug",value:function(k){k===!0&&(k="log"),E.default.level(k)}},{key:"find",value:function(k){return k.__quill||r.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&w.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,q){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var j=k.attrName||k.blotName;typeof j=="string"?this.register("formats/"+j,k,q):Object.keys(k).forEach(function(L){I.register(L,k[L],q)})}else this.imports[k]!=null&&!H&&w.warn("Overwriting "+k+" with",q),this.imports[k]=q,(k.startsWith("blots/")||k.startsWith("formats/"))&&q.blotName!=="abstract"?r.default.register(q):k.startsWith("modules")&&typeof q.register=="function"&&q.register()}}]);function B(M){var k=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(b(this,B),this.options=R(M,q),this.container=this.options.container,this.container==null)return w.error("Invalid Quill container",M);this.options.debug&&B.debug(this.options.debug);var I=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(j){j===e.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(j,L){var C=k.selection.lastRange,$=C&&C.length===0?C.index:void 0;D.call(k,function(){return k.editor.update(null,L,$)},j)});var H=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+I+"<p><br></p></div>");this.setContents(H),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return m(B,[{key:"addContainer",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var I=k;k=document.createElement("div"),k.classList.add(I)}return this.container.insertBefore(k,q),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,q,I){var H=this,j=F(k,q,I),L=g(j,4);return k=L[0],q=L[1],I=L[3],D.call(this,function(){return H.editor.deleteText(k,q)},I,k,-1*q)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,q){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.default.sources.API;return D.call(this,function(){var j=I.getSelection(!0),L=new v.default;if(j==null)return L;if(r.default.query(k,r.default.Scope.BLOCK))L=I.editor.formatLine(j.index,j.length,y({},k,q));else{if(j.length===0)return I.selection.format(k,q),L;L=I.editor.formatText(j.index,j.length,y({},k,q))}return I.setSelection(j,e.default.sources.SILENT),L},H)}},{key:"formatLine",value:function(k,q,I,H,j){var L=this,C=void 0,$=F(k,q,I,H,j),z=g($,4);return k=z[0],q=z[1],C=z[2],j=z[3],D.call(this,function(){return L.editor.formatLine(k,q,C)},j,k,0)}},{key:"formatText",value:function(k,q,I,H,j){var L=this,C=void 0,$=F(k,q,I,H,j),z=g($,4);return k=z[0],q=z[1],C=z[2],j=z[3],D.call(this,function(){return L.editor.formatText(k,q,C)},j,k,0)}},{key:"getBounds",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=void 0;typeof k=="number"?I=this.selection.getBounds(k,q):I=this.selection.getBounds(k.index,k.length);var H=this.container.getBoundingClientRect();return{bottom:I.bottom-H.top,height:I.height,left:I.left-H.left,right:I.right-H.left,top:I.top-H.top,width:I.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,I=F(k,q),H=g(I,2);return k=H[0],q=H[1],this.editor.getContents(k,q)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,q):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,q)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,I=F(k,q),H=g(I,2);return k=H[0],q=H[1],this.editor.getText(k,q)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,q,I){var H=this,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:B.sources.API;return D.call(this,function(){return H.editor.insertEmbed(k,q,I)},j,k)}},{key:"insertText",value:function(k,q,I,H,j){var L=this,C=void 0,$=F(k,0,I,H,j),z=g($,4);return k=z[0],C=z[2],j=z[3],D.call(this,function(){return L.editor.insertText(k,q,C)},j,k,q.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(k,q,I){this.clipboard.dangerouslyPasteHTML(k,q,I)}},{key:"removeFormat",value:function(k,q,I){var H=this,j=F(k,q,I),L=g(j,4);return k=L[0],q=L[1],I=L[3],D.call(this,function(){return H.editor.removeFormat(k,q)},I,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var q=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return D.call(this,function(){k=new v.default(k);var H=q.getLength(),j=q.editor.deleteText(0,H),L=q.editor.applyDelta(k),C=L.ops[L.ops.length-1];C!=null&&typeof C.insert=="string"&&C.insert[C.insert.length-1]===` `&&(q.editor.deleteText(q.getLength()-1,1),L.delete(1));var $=j.compose(L);return $},I)}},{key:"setSelection",value:function(k,q,I){if(k==null)this.selection.setRange(null,q||B.sources.API);else{var H=F(k,q,I),j=g(H,4);k=j[0],q=j[1],I=j[3],this.selection.setRange(new i.Range(k,q),I),I!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,I=new v.default().insert(k);return this.setContents(I,q)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,q=this.scroll.update(k);return this.selection.update(k),q}},{key:"updateContents",value:function(k){var q=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return D.call(this,function(){return k=new v.default(k),q.editor.applyDelta(k,I)},I,!0)}}]),B}();S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=e.default.events,S.sources=e.default.sources,S.version="1.3.7",S.imports={delta:v.default,parchment:r.default,"core/module":l.default,"core/theme":x.default};function R(B,M){if(M=(0,d.default)(!0,{container:B,modules:{clipboard:!0,keyboard:!0,history:!0}},M),!M.theme||M.theme===S.DEFAULTS.theme)M.theme=x.default;else if(M.theme=S.import("themes/"+M.theme),M.theme==null)throw new Error("Invalid theme "+M.theme+". Did you register it?");var k=(0,d.default)(!0,{},M.theme.DEFAULTS);[k,M].forEach(function(H){H.modules=H.modules||{},Object.keys(H.modules).forEach(function(j){H.modules[j]===!0&&(H.modules[j]={})})});var q=Object.keys(k.modules).concat(Object.keys(M.modules)),I=q.reduce(function(H,j){var L=S.import("modules/"+j);return L==null?w.error("Cannot load "+j+" module. Are you sure you registered it?"):H[j]=L.DEFAULTS||{},H},{});return M.modules!=null&&M.modules.toolbar&&M.modules.toolbar.constructor!==Object&&(M.modules.toolbar={container:M.modules.toolbar}),M=(0,d.default)(!0,{},S.DEFAULTS,{modules:I},k,M),["bounds","container","scrollingContainer"].forEach(function(H){typeof M[H]=="string"&&(M[H]=document.querySelector(M[H]))}),M.modules=Object.keys(M.modules).reduce(function(H,j){return M.modules[j]&&(H[j]=M.modules[j]),H},{}),M}function D(B,M,k,q){if(this.options.strict&&!this.isEnabled()&&M===e.default.sources.USER)return new v.default;var I=k==null?null:this.getSelection(),H=this.editor.delta,j=B();if(I!=null&&(k===!0&&(k=I.index),q==null?I=Z(I,j,M):q!==0&&(I=Z(I,k,q,M)),this.setSelection(I,e.default.sources.SILENT)),j.length()>0){var L,C=[e.default.events.TEXT_CHANGE,j,H,M];if((L=this.emitter).emit.apply(L,[e.default.events.EDITOR_CHANGE].concat(C)),M!==e.default.sources.SILENT){var $;($=this.emitter).emit.apply($,C)}}return j}function F(B,M,k,q,I){var H={};return typeof B.index=="number"&&typeof B.length=="number"?typeof M!="number"?(I=q,q=k,k=M,M=B.length,B=B.index):(M=B.length,B=B.index):typeof M!="number"&&(I=q,q=k,k=M,M=0),(typeof k>"u"?"undefined":N(k))==="object"?(H=k,I=q):typeof k=="string"&&(q!=null?H[k]=q:I=k),I=I||e.default.sources.API,[B,M,H,I]}function Z(B,M,k,q){if(B==null)return null;var I=void 0,H=void 0;if(M instanceof v.default){var j=[B.index,B.index+B.length].map(function(z){return M.transformPosition(z,q!==e.default.sources.USER)}),L=g(j,2);I=L[0],H=L[1]}else{var C=[B.index,B.index+B.length].map(function(z){return z<M||z===M&&q===e.default.sources.USER?z:k>=0?z+k:Math.max(M,z+k)}),$=g(C,2);I=$[0],H=$[1]}return new i.Range(I,H-I)}h.expandConfig=R,h.overload=F,h.default=S},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function a(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&a(r.prototype,i),c&&a(r,c),r}}(),g=function a(r,i,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:a(d,i,c)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(c)}},m=s(7),p=o(m),v=s(0),f=o(v);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function e(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function u(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var l=function(a){u(r,a);function r(){return t(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return N(r,[{key:"formatAt",value:function(c,n,d,A){if(r.compare(this.statics.blotName,d)<0&&f.default.query(d,f.default.Scope.BLOT)){var E=this.isolate(c,n);A&&E.wrap(d,A)}else g(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,c,n,d,A)}},{key:"optimize",value:function(c){if(g(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 n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(c,n){var d=r.order.indexOf(c),A=r.order.indexOf(n);return d>=0||A>=0?d-A:c===n?0:c<n?-1:1}}]),r}(f.default.Inline);l.allowedChildren=[l,f.default.Embed,p.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],h.default=l},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(0),g=m(N);function m(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function f(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){f(e,t);function e(){return p(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default.Text);h.default=o},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function i(c,n){for(var d=0;d<n.length;d++){var A=n[d];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(c,A.key,A)}}return function(c,n,d){return n&&i(c.prototype,n),d&&i(c,d),c}}(),g=function i(c,n,d){c===null&&(c=Function.prototype);var A=Object.getOwnPropertyDescriptor(c,n);if(A===void 0){var E=Object.getPrototypeOf(c);return E===null?void 0:i(E,n,d)}else{if("value"in A)return A.value;var T=A.get;return T===void 0?void 0:T.call(d)}},m=s(54),p=o(m),v=s(10),f=o(v);function o(i){return i&&i.__esModule?i:{default:i}}function t(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 u(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 l=(0,f.default)("quill:events"),a=["selectionchange","mousedown","mouseup","click"];a.forEach(function(i){document.addEventListener(i,function(){for(var c=arguments.length,n=Array(c),d=0;d<c;d++)n[d]=arguments[d];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){if(A.__quill&&A.__quill.emitter){var E;(E=A.__quill.emitter).handleDOM.apply(E,n)}})})});var r=function(i){u(c,i);function c(){t(this,c);var n=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return n.listeners={},n.on("error",l.error),n}return N(c,[{key:"emit",value:function(){l.log.apply(l,arguments),g(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(d){for(var A=arguments.length,E=Array(A>1?A-1:0),T=1;T<A;T++)E[T-1]=arguments[T];(this.listeners[d.type]||[]).forEach(function(x){var _=x.node,y=x.handler;(d.target===_||_.contains(d.target))&&y.apply(void 0,[d].concat(E))})}},{key:"listenDOM",value:function(d,A,E){this.listeners[d]||(this.listeners[d]=[]),this.listeners[d].push({node:A,handler:E})}}]),c}(p.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"},h.default=r},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});function N(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}var g=function m(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};N(this,m),this.quill=p,this.options=v};g.DEFAULTS={},h.default=g},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=["error","warn","log","info"],g="warn";function m(v){if(N.indexOf(v)<=N.indexOf(g)){for(var f,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(f=console)[v].apply(f,t)}}function p(v){return N.reduce(function(f,o){return f[o]=m.bind(console,o,v),f},{})}m.level=p.level=function(v){g=v},h.default=p},function(O,h,s){var N=Array.prototype.slice,g=s(52),m=s(53),p=O.exports=function(t,e,u){return u||(u={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||typeof t!="object"&&typeof e!="object"?u.strict?t===e:t==e:o(t,e,u)};function v(t){return t==null}function f(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function o(t,e,u){var l,a;if(v(t)||v(e)||t.prototype!==e.prototype)return!1;if(m(t))return m(e)?(t=N.call(t),e=N.call(e),p(t,e,u)):!1;if(f(t)){if(!f(e)||t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var r=g(t),i=g(e)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),l=r.length-1;l>=0;l--)if(r[l]!=i[l])return!1;for(l=r.length-1;l>=0;l--)if(a=r[l],!p(t[a],e[a],u))return!1;return typeof t==typeof e}},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(1),g=function(){function m(p,v,f){f===void 0&&(f={}),this.attrName=p,this.keyName=v;var o=N.Scope.TYPE&N.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&N.Scope.LEVEL|o:this.scope=N.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return m.keys=function(p){return[].map.call(p.attributes,function(v){return v.name})},m.prototype.add=function(p,v){return this.canAdd(p,v)?(p.setAttribute(this.keyName,v),!0):!1},m.prototype.canAdd=function(p,v){var f=N.query(p,N.Scope.BLOT&(this.scope|N.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof v=="string"?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1},m.prototype.remove=function(p){p.removeAttribute(this.keyName)},m.prototype.value=function(p){var v=p.getAttribute(this.keyName);return this.canAdd(p,v)&&v?v:""},m}();h.default=g},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.Code=void 0;var N=function(){function T(x,_){var y=[],b=!0,w=!1,S=void 0;try{for(var R=x[Symbol.iterator](),D;!(b=(D=R.next()).done)&&(y.push(D.value),!(_&&y.length===_));b=!0);}catch(F){w=!0,S=F}finally{try{!b&&R.return&&R.return()}finally{if(w)throw S}}return y}return function(x,_){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return T(x,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function T(x,_){for(var y=0;y<_.length;y++){var b=_[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,b.key,b)}}return function(x,_,y){return _&&T(x.prototype,_),y&&T(x,y),x}}(),m=function T(x,_,y){x===null&&(x=Function.prototype);var b=Object.getOwnPropertyDescriptor(x,_);if(b===void 0){var w=Object.getPrototypeOf(x);return w===null?void 0:T(w,_,y)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(y)}},p=s(2),v=i(p),f=s(0),o=i(f),t=s(4),e=i(t),u=s(6),l=i(u),a=s(7),r=i(a);function i(T){return T&&T.__esModule?T:{default:T}}function c(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function n(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function d(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var A=function(T){d(x,T);function x(){return c(this,x),n(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return x}(l.default);A.blotName="code",A.tagName="CODE";var E=function(T){d(x,T);function x(){return c(this,x),n(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return g(x,[{key:"delta",value:function(){var y=this,b=this.domNode.textContent;return b.endsWith(` `)&&(b=b.slice(0,-1)),b.split(` `).reduce(function(w,S){return w.insert(S).insert(` `,y.formats())},new v.default)}},{key:"format",value:function(y,b){if(!(y===this.statics.blotName&&b)){var w=this.descendant(r.default,this.length()-1),S=N(w,1),R=S[0];R!=null&&R.deleteAt(R.length()-1,1),m(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,y,b)}}},{key:"formatAt",value:function(y,b,w,S){if(b!==0&&!(o.default.query(w,o.default.Scope.BLOCK)==null||w===this.statics.blotName&&S===this.statics.formats(this.domNode))){var R=this.newlineIndex(y);if(!(R<0||R>=y+b)){var D=this.newlineIndex(y,!0)+1,F=R-D+1,Z=this.isolate(D,F),B=Z.next;Z.format(w,S),B instanceof x&&B.formatAt(0,y-D+b-F,w,S)}}}},{key:"insertAt",value:function(y,b,w){if(w==null){var S=this.descendant(r.default,y),R=N(S,2),D=R[0],F=R[1];D.insertAt(F,b)}}},{key:"length",value:function(){var y=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?y:y+1}},{key:"newlineIndex",value:function(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(b)return this.domNode.textContent.slice(0,y).lastIndexOf(` `);var w=this.domNode.textContent.slice(y).indexOf(` `);return w>-1?y+w:-1}},{key:"optimize",value:function(y){this.domNode.textContent.endsWith(` `)||this.appendChild(o.default.create("text",` `)),m(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,y);var b=this.next;b!=null&&b.prev===this&&b.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===b.statics.formats(b.domNode)&&(b.optimize(y),b.moveChildren(this),b.remove())}},{key:"replace",value:function(y){m(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,y),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(b){var w=o.default.find(b);w==null?b.parentNode.removeChild(b):w instanceof o.default.Embed?w.remove():w.unwrap()})}}],[{key:"create",value:function(y){var b=m(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,y);return b.setAttribute("spellcheck",!1),b}},{key:"formats",value:function(){return!0}}]),x}(e.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",h.Code=A,h.default=E},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g=function(){function B(M,k){var q=[],I=!0,H=!1,j=void 0;try{for(var L=M[Symbol.iterator](),C;!(I=(C=L.next()).done)&&(q.push(C.value),!(k&&q.length===k));I=!0);}catch($){H=!0,j=$}finally{try{!I&&L.return&&L.return()}finally{if(H)throw j}}return q}return function(M,k){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return B(M,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function B(M,k){for(var q=0;q<k.length;q++){var I=k[q];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(M,I.key,I)}}return function(M,k,q){return k&&B(M.prototype,k),q&&B(M,q),M}}(),p=s(2),v=b(p),f=s(20),o=b(f),t=s(0),e=b(t),u=s(13),l=b(u),a=s(24),r=b(a),i=s(4),c=b(i),n=s(16),d=b(n),A=s(21),E=b(A),T=s(11),x=b(T),_=s(3),y=b(_);function b(B){return B&&B.__esModule?B:{default:B}}function w(B,M,k){return M in B?Object.defineProperty(B,M,{value:k,enumerable:!0,configurable:!0,writable:!0}):B[M]=k,B}function S(B,M){if(!(B instanceof M))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,D=function(){function B(M){S(this,B),this.scroll=M,this.delta=this.getDelta()}return m(B,[{key:"applyDelta",value:function(k){var q=this,I=!1;this.scroll.update();var H=this.scroll.length();return this.scroll.batchStart(),k=Z(k),k.reduce(function(j,L){var C=L.retain||L.delete||L.insert.length||1,$=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var z=L.insert;z.endsWith(` `)&&I&&(I=!1,z=z.slice(0,-1)),j>=H&&!z.endsWith(` `)&&(I=!0),q.scroll.insertAt(j,z);var W=q.scroll.line(j),X=g(W,2),J=X[0],tt=X[1],lt=(0,y.default)({},(0,i.bubbleFormats)(J));if(J instanceof c.default){var at=J.descendant(e.default.Leaf,tt),ht=g(at,1),ft=ht[0];lt=(0,y.default)(lt,(0,i.bubbleFormats)(ft))}$=o.default.attributes.diff(lt,$)||{}}else if(N(L.insert)==="object"){var V=Object.keys(L.insert)[0];if(V==null)return j;q.scroll.insertAt(j,V,L.insert[V])}H+=C}return Object.keys($).forEach(function(K){q.scroll.formatAt(j,C,K,$[K])}),j+C},0),k.reduce(function(j,L){return typeof L.delete=="number"?(q.scroll.deleteAt(j,L.delete),j):j+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(k)}},{key:"deleteText",value:function(k,q){return this.scroll.deleteAt(k,q),this.update(new v.default().retain(k).delete(q))}},{key:"formatLine",value:function(k,q){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(H).forEach(function(j){if(!(I.scroll.whitelist!=null&&!I.scroll.whitelist[j])){var L=I.scroll.lines(k,Math.max(q,1)),C=q;L.forEach(function($){var z=$.length();if(!($ instanceof l.default))$.format(j,H[j]);else{var W=k-$.offset(I.scroll),X=$.newlineIndex(W+C)-W+1;$.formatAt(W,X,j,H[j])}C-=z})}}),this.scroll.optimize(),this.update(new v.default().retain(k).retain(q,(0,E.default)(H)))}},{key:"formatText",value:function(k,q){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(H).forEach(function(j){I.scroll.formatAt(k,q,j,H[j])}),this.update(new v.default().retain(k).retain(q,(0,E.default)(H)))}},{key:"getContents",value:function(k,q){return this.delta.slice(k,k+q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(k,q){return k.concat(q.delta())},new v.default)}},{key:"getFormat",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=[],H=[];q===0?this.scroll.path(k).forEach(function(L){var C=g(L,1),$=C[0];$ instanceof c.default?I.push($):$ instanceof e.default.Leaf&&H.push($)}):(I=this.scroll.lines(k,q),H=this.scroll.descendants(e.default.Leaf,k,q));var j=[I,H].map(function(L){if(L.length===0)return{};for(var C=(0,i.bubbleFormats)(L.shift());Object.keys(C).length>0;){var $=L.shift();if($==null)return C;C=F((0,i.bubbleFormats)($),C)}return C});return y.default.apply(y.default,j)}},{key:"getText",value:function(k,q){return this.getContents(k,q).filter(function(I){return typeof I.insert=="string"}).map(function(I){return I.insert}).join("")}},{key:"insertEmbed",value:function(k,q,I){return this.scroll.insertAt(k,q,I),this.update(new v.default().retain(k).insert(w({},q,I)))}},{key:"insertText",value:function(k,q){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q=q.replace(/\r\n/g,` `).replace(/\r/g,` `),this.scroll.insertAt(k,q),Object.keys(H).forEach(function(j){I.scroll.formatAt(k,q.length,j,H[j])}),this.update(new v.default().retain(k).insert(q,(0,E.default)(H)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==c.default.blotName||k.children.length>1?!1:k.children.head instanceof d.default}},{key:"removeFormat",value:function(k,q){var I=this.getText(k,q),H=this.scroll.line(k+q),j=g(H,2),L=j[0],C=j[1],$=0,z=new v.default;L!=null&&(L instanceof l.default?$=L.newlineIndex(C)-C+1:$=L.length()-C,z=L.delta().slice(C,C+$-1).insert(` `));var W=this.getContents(k,q+$),X=W.diff(new v.default().insert(I).concat(z)),J=new v.default().retain(k).concat(X);return this.applyDelta(J)}},{key:"update",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,H=this.delta;if(q.length===1&&q[0].type==="characterData"&&q[0].target.data.match(R)&&e.default.find(q[0].target)){var j=e.default.find(q[0].target),L=(0,i.bubbleFormats)(j),C=j.offset(this.scroll),$=q[0].oldValue.replace(r.default.CONTENTS,""),z=new v.default().insert($),W=new v.default().insert(j.value()),X=new v.default().retain(C).concat(z.diff(W,I));k=X.reduce(function(J,tt){return tt.insert?J.insert(tt.insert,L):J.push(tt)},new v.default),this.delta=H.compose(k)}else this.delta=this.getDelta(),(!k||!(0,x.default)(H.compose(k),this.delta))&&(k=H.diff(this.delta,I));return k}}]),B}();function F(B,M){return Object.keys(M).reduce(function(k,q){return B[q]==null||(M[q]===B[q]?k[q]=M[q]:Array.isArray(M[q])?M[q].indexOf(B[q])<0&&(k[q]=M[q].concat([B[q]])):k[q]=[M[q],B[q]]),k},{})}function Z(B){return B.reduce(function(M,k){if(k.insert===1){var q=(0,E.default)(k.attributes);return delete q.image,M.insert({image:k.attributes.image},q)}if(k.attributes!=null&&(k.attributes.list===!0||k.attributes.bullet===!0)&&(k=(0,E.default)(k),k.attributes.list?k.attributes.list="ordered":(k.attributes.list="bullet",delete k.attributes.bullet)),typeof k.insert=="string"){var I=k.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return M.insert(I,k.attributes)}return M.push(k)},new v.default)}h.default=D},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.Range=void 0;var N=function(){function T(x,_){var y=[],b=!0,w=!1,S=void 0;try{for(var R=x[Symbol.iterator](),D;!(b=(D=R.next()).done)&&(y.push(D.value),!(_&&y.length===_));b=!0);}catch(F){w=!0,S=F}finally{try{!b&&R.return&&R.return()}finally{if(w)throw S}}return y}return function(x,_){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return T(x,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function T(x,_){for(var y=0;y<_.length;y++){var b=_[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,b.key,b)}}return function(x,_,y){return _&&T(x.prototype,_),y&&T(x,y),x}}(),m=s(0),p=r(m),v=s(21),f=r(v),o=s(11),t=r(o),e=s(8),u=r(e),l=s(10),a=r(l);function r(T){return T&&T.__esModule?T:{default:T}}function i(T){if(Array.isArray(T)){for(var x=0,_=Array(T.length);x<T.length;x++)_[x]=T[x];return _}else return Array.from(T)}function c(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}var n=(0,a.default)("quill:selection"),d=function T(x){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;c(this,T),this.index=x,this.length=_},A=function(){function T(x,_){var y=this;c(this,T),this.emitter=_,this.scroll=x,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=new d(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){y.mouseDown||setTimeout(y.update.bind(y,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(b,w){b===u.default.events.TEXT_CHANGE&&w.length()>0&&y.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(y.hasFocus()){var b=y.getNativeRange();b!=null&&b.start.node!==y.cursor.textNode&&y.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{y.setNativeRange(b.start.node,b.start.offset,b.end.node,b.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(b,w){if(w.range){var S=w.range,R=S.startNode,D=S.startOffset,F=S.endNode,Z=S.endOffset;y.setNativeRange(R,D,F,Z)}}),this.update(u.default.sources.SILENT)}return g(T,[{key:"handleComposition",value:function(){var _=this;this.root.addEventListener("compositionstart",function(){_.composing=!0}),this.root.addEventListener("compositionend",function(){if(_.composing=!1,_.cursor.parent){var y=_.cursor.restore();if(!y)return;setTimeout(function(){_.setNativeRange(y.startNode,y.startOffset,y.endNode,y.endOffset)},1)}})}},{key:"handleDragging",value:function(){var _=this;this.emitter.listenDOM("mousedown",document.body,function(){_.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){_.mouseDown=!1,_.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(_,y){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[_])){this.scroll.update();var b=this.getNativeRange();if(!(b==null||!b.native.collapsed||p.default.query(_,p.default.Scope.BLOCK))){if(b.start.node!==this.cursor.textNode){var w=p.default.find(b.start.node,!1);if(w==null)return;if(w instanceof p.default.Leaf){var S=w.split(b.start.offset);w.parent.insertBefore(this.cursor,S)}else w.insertBefore(this.cursor,b.start.node);this.cursor.attach()}this.cursor.format(_,y),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(_){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=this.scroll.length();_=Math.min(_,b-1),y=Math.min(_+y,b-1)-_;var w=void 0,S=this.scroll.leaf(_),R=N(S,2),D=R[0],F=R[1];if(D==null)return null;var Z=D.position(F,!0),B=N(Z,2);w=B[0],F=B[1];var M=document.createRange();if(y>0){M.setStart(w,F);var k=this.scroll.leaf(_+y),q=N(k,2);if(D=q[0],F=q[1],D==null)return null;var I=D.position(F,!0),H=N(I,2);return w=H[0],F=H[1],M.setEnd(w,F),M.getBoundingClientRect()}else{var j="left",L=void 0;return w instanceof Text?(F<w.data.length?(M.setStart(w,F),M.setEnd(w,F+1)):(M.setStart(w,F-1),M.setEnd(w,F),j="right"),L=M.getBoundingClientRect()):(L=D.domNode.getBoundingClientRect(),F>0&&(j="right")),{bottom:L.top+L.height,height:L.height,left:L[j],right:L[j],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var _=document.getSelection();if(_==null||_.rangeCount<=0)return null;var y=_.getRangeAt(0);if(y==null)return null;var b=this.normalizeNative(y);return n.info("getNativeRange",b),b}},{key:"getRange",value:function(){var _=this.getNativeRange();if(_==null)return[null,null];var y=this.normalizedToRange(_);return[y,_]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(_){var y=this,b=[[_.start.node,_.start.offset]];_.native.collapsed||b.push([_.end.node,_.end.offset]);var w=b.map(function(D){var F=N(D,2),Z=F[0],B=F[1],M=p.default.find(Z,!0),k=M.offset(y.scroll);return B===0?k:M instanceof p.default.Container?k+M.length():k+M.index(Z,B)}),S=Math.min(Math.max.apply(Math,i(w)),this.scroll.length()-1),R=Math.min.apply(Math,[S].concat(i(w)));return new d(R,S-R)}},{key:"normalizeNative",value:function(_){if(!E(this.root,_.startContainer)||!_.collapsed&&!E(this.root,_.endContainer))return null;var y={start:{node:_.startContainer,offset:_.startOffset},end:{node:_.endContainer,offset:_.endOffset},native:_};return[y.start,y.end].forEach(function(b){for(var w=b.node,S=b.offset;!(w instanceof Text)&&w.childNodes.length>0;)if(w.childNodes.length>S)w=w.childNodes[S],S=0;else if(w.childNodes.length===S)w=w.lastChild,S=w instanceof Text?w.data.length:w.childNodes.length+1;else break;b.node=w,b.offset=S}),y}},{key:"rangeToNative",value:function(_){var y=this,b=_.collapsed?[_.index]:[_.index,_.index+_.length],w=[],S=this.scroll.length();return b.forEach(function(R,D){R=Math.min(S-1,R);var F=void 0,Z=y.scroll.leaf(R),B=N(Z,2),M=B[0],k=B[1],q=M.position(k,D!==0),I=N(q,2);F=I[0],k=I[1],w.push(F,k)}),w.length<2&&(w=w.concat(w)),w}},{key:"scrollIntoView",value:function(_){var y=this.lastRange;if(y!=null){var b=this.getBounds(y.index,y.length);if(b!=null){var w=this.scroll.length()-1,S=this.scroll.line(Math.min(y.index,w)),R=N(S,1),D=R[0],F=D;if(y.length>0){var Z=this.scroll.line(Math.min(y.index+y.length,w)),B=N(Z,1);F=B[0]}if(!(D==null||F==null)){var M=_.getBoundingClientRect();b.top<M.top?_.scrollTop-=M.top-b.top:b.bottom>M.bottom&&(_.scrollTop+=b.bottom-M.bottom)}}}}},{key:"setNativeRange",value:function(_,y){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:y,S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",_,y,b,w),!(_!=null&&(this.root.parentNode==null||_.parentNode==null||b.parentNode==null))){var R=document.getSelection();if(R!=null)if(_!=null){this.hasFocus()||this.root.focus();var D=(this.getNativeRange()||{}).native;if(D==null||S||_!==D.startContainer||y!==D.startOffset||b!==D.endContainer||w!==D.endOffset){_.tagName=="BR"&&(y=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode),b.tagName=="BR"&&(w=[].indexOf.call(b.parentNode.childNodes,b),b=b.parentNode);var F=document.createRange();F.setStart(_,y),F.setEnd(b,w),R.removeAllRanges(),R.addRange(F)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(_){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof y=="string"&&(b=y,y=!1),n.info("setRange",_),_!=null){var w=this.rangeToNative(_);this.setNativeRange.apply(this,i(w).concat([y]))}else this.setNativeRange(null);this.update(b)}},{key:"update",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,y=this.lastRange,b=this.getRange(),w=N(b,2),S=w[0],R=w[1];if(this.lastRange=S,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(y,this.lastRange)){var D;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var F=[u.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(y),_];if((D=this.emitter).emit.apply(D,[u.default.events.EDITOR_CHANGE].concat(F)),_!==u.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,F)}}}}]),T}();function E(T,x){try{x.parentNode}catch{return!1}return x instanceof Text&&(x=x.parentNode),T.contains(x)}h.Range=d,h.default=A},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),g=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:u(c,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},m=s(0),p=v(m);function v(u){return u&&u.__esModule?u:{default:u}}function f(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return f(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,[{key:"insertInto",value:function(r,i){r.children.length===0?g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(p.default.Embed);e.blotName="break",e.tagName="BR",h.default=e},function(O,h,s){var N=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(44),m=s(30),p=s(1),v=function(o){N(t,o);function t(e){var u=o.call(this,e)||this;return u.build(),u}return t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new g.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=f(u);e.insertBefore(l,e.children.head||void 0)}catch(a){if(a instanceof p.ParchmentError)return;throw a}})},t.prototype.deleteAt=function(e,u){if(e===0&&u===this.length())return this.remove();this.children.forEachAt(e,u,function(l,a,r){l.deleteAt(a,r)})},t.prototype.descendant=function(e,u){var l=this.children.find(u),a=l[0],r=l[1];return e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e?[a,r]:a instanceof t?a.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,u,l){u===void 0&&(u=0),l===void 0&&(l=Number.MAX_VALUE);var a=[],r=l;return this.children.forEachAt(u,l,function(i,c,n){(e.blotName==null&&e(i)||e.blotName!=null&&i instanceof e)&&a.push(i),i instanceof t&&(a=a.concat(i.descendants(e,c,r))),r-=n}),a},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,u,l,a){this.children.forEachAt(e,u,function(r,i,c){r.formatAt(i,c,l,a)})},t.prototype.insertAt=function(e,u,l){var a=this.children.find(e),r=a[0],i=a[1];if(r)r.insertAt(i,u,l);else{var c=l==null?p.create("text",u):p.create(u,l);this.appendChild(c)}},t.prototype.insertBefore=function(e,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(l){return e instanceof l}))throw new p.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,u)},t.prototype.length=function(){return this.children.reduce(function(e,u){return e+u.length()},0)},t.prototype.moveChildren=function(e,u){this.children.forEach(function(l){e.insertBefore(l,u)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var u=p.create(this.statics.defaultChild);this.appendChild(u),u.optimize(e)}else this.remove()},t.prototype.path=function(e,u){u===void 0&&(u=!1);var l=this.children.find(e,u),a=l[0],r=l[1],i=[[this,e]];return a instanceof t?i.concat(a.path(r,u)):(a!=null&&i.push([a,r]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),o.prototype.replace.call(this,e)},t.prototype.split=function(e,u){if(u===void 0&&(u=!1),!u){if(e===0)return this;if(e===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(e,this.length(),function(a,r,i){a=a.split(r,u),l.appendChild(a)}),l},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,u){var l=this,a=[],r=[];e.forEach(function(i){i.target===l.domNode&&i.type==="childList"&&(a.push.apply(a,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var c=p.find(i);c!=null&&(c.domNode.parentNode==null||c.domNode.parentNode===l.domNode)&&c.detach()}}),a.filter(function(i){return i.parentNode==l.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=p.find(i.nextSibling));var n=f(i);(n.next!=c||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,c||void 0))})},t}(m.default);function f(o){var t=p.find(o);if(t==null)try{t=p.create(o)}catch{t=p.create(p.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){t.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}h.default=v},function(O,h,s){var N=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(12),m=s(31),p=s(17),v=s(1),f=function(o){N(t,o);function t(e){var u=o.call(this,e)||this;return u.attributes=new m.default(u.domNode),u}return t.formats=function(e){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()},t.prototype.format=function(e,u){var l=v.query(e);l instanceof g.default?this.attributes.attribute(l,u):u&&l!=null&&(e!==this.statics.blotName||this.formats()[e]!==u)&&this.replaceWith(e,u)},t.prototype.formats=function(){var e=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(e[this.statics.blotName]=u),e},t.prototype.replaceWith=function(e,u){var l=o.prototype.replaceWith.call(this,e,u);return this.attributes.copy(l),l},t.prototype.update=function(e,u){var l=this;o.prototype.update.call(this,e,u),e.some(function(a){return a.target===l.domNode&&a.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(e,u){var l=o.prototype.wrap.call(this,e,u);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(p.default);h.default=f},function(O,h,s){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var t in o)o.hasOwnProperty(t)&&(f[t]=o[t])};return function(f,o){v(f,o);function t(){this.constructor=f}f.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(30),m=s(1),p=function(v){N(f,v);function f(){return v!==null&&v.apply(this,arguments)||this}return f.value=function(o){return!0},f.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},f.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},f.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},f.scope=m.Scope.INLINE_BLOT,f}(g.default);h.default=p},function(O,h,s){var N=s(11),g=s(3),m={attributes:{compose:function(v,f,o){typeof v!="object"&&(v={}),typeof f!="object"&&(f={});var t=g(!0,{},f);o||(t=Object.keys(t).reduce(function(u,l){return t[l]!=null&&(u[l]=t[l]),u},{}));for(var e in v)v[e]!==void 0&&f[e]===void 0&&(t[e]=v[e]);return Object.keys(t).length>0?t:void 0},diff:function(v,f){typeof v!="object"&&(v={}),typeof f!="object"&&(f={});var o=Object.keys(v).concat(Object.keys(f)).reduce(function(t,e){return N(v[e],f[e])||(t[e]=f[e]===void 0?null:f[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(v,f,o){if(typeof v!="object")return f;if(typeof f=="object"){if(!o)return f;var t=Object.keys(f).reduce(function(e,u){return v[u]===void 0&&(e[u]=f[u]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(v){return new p(v)},length:function(v){return typeof v.delete=="number"?v.delete:typeof v.retain=="number"?v.retain:typeof v.insert=="string"?v.insert.length:1}};function p(v){this.ops=v,this.index=0,this.offset=0}p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(v){v||(v=1/0);var f=this.ops[this.index];if(f){var o=this.offset,t=m.length(f);if(v>=t-o?(v=t-o,this.index+=1,this.offset=0):this.offset+=v,typeof f.delete=="number")return{delete:v};var e={};return f.attributes&&(e.attributes=f.attributes),typeof f.retain=="number"?e.retain=v:typeof f.insert=="string"?e.insert=f.insert.substr(o,v):e.insert=f.insert,e}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?m.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 v=this.offset,f=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=v,this.index=f,[o].concat(t)}else return[]},O.exports=m},function(O,h){var s=function(){function N(l,a){return a!=null&&l instanceof a}var g;try{g=Map}catch{g=function(){}}var m;try{m=Set}catch{m=function(){}}var p;try{p=Promise}catch{p=function(){}}function v(l,a,r,i,c){typeof a=="object"&&(r=a.depth,i=a.prototype,c=a.includeNonEnumerable,a=a.circular);var n=[],d=[],A=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof r>"u"&&(r=1/0);function E(T,x){if(T===null)return null;if(x===0)return T;var _,y;if(typeof T!="object")return T;if(N(T,g))_=new g;else if(N(T,m))_=new m;else if(N(T,p))_=new p(function(M,k){T.then(function(q){M(E(q,x-1))},function(q){k(E(q,x-1))})});else if(v.__isArray(T))_=[];else if(v.__isRegExp(T))_=new RegExp(T.source,u(T)),T.lastIndex&&(_.lastIndex=T.lastIndex);else if(v.__isDate(T))_=new Date(T.getTime());else{if(A&&Buffer.isBuffer(T))return Buffer.allocUnsafe?_=Buffer.allocUnsafe(T.length):_=new Buffer(T.length),T.copy(_),_;N(T,Error)?_=Object.create(T):typeof i>"u"?(y=Object.getPrototypeOf(T),_=Object.create(y)):(_=Object.create(i),y=i)}if(a){var b=n.indexOf(T);if(b!=-1)return d[b];n.push(T),d.push(_)}N(T,g)&&T.forEach(function(M,k){var q=E(k,x-1),I=E(M,x-1);_.set(q,I)}),N(T,m)&&T.forEach(function(M){var k=E(M,x-1);_.add(k)});for(var w in T){var S;y&&(S=Object.getOwnPropertyDescriptor(y,w)),!(S&&S.set==null)&&(_[w]=E(T[w],x-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(T),w=0;w<R.length;w++){var D=R[w],F=Object.getOwnPropertyDescriptor(T,D);F&&!F.enumerable&&!c||(_[D]=E(T[D],x-1),F.enumerable||Object.defineProperty(_,D,{enumerable:!1}))}if(c)for(var Z=Object.getOwnPropertyNames(T),w=0;w<Z.length;w++){var B=Z[w],F=Object.getOwnPropertyDescriptor(T,B);F&&F.enumerable||(_[B]=E(T[B],x-1),Object.defineProperty(_,B,{enumerable:!1}))}return _}return E(l,r)}v.clonePrototype=function(a){if(a===null)return null;var r=function(){};return r.prototype=a,new r};function f(l){return Object.prototype.toString.call(l)}v.__objToStr=f;function o(l){return typeof l=="object"&&f(l)==="[object Date]"}v.__isDate=o;function t(l){return typeof l=="object"&&f(l)==="[object Array]"}v.__isArray=t;function e(l){return typeof l=="object"&&f(l)==="[object RegExp]"}v.__isRegExp=e;function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return v.__getRegExpFlags=u,v}();typeof O=="object"&&O.exports&&(O.exports=s)},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function _(y,b){var w=[],S=!0,R=!1,D=void 0;try{for(var F=y[Symbol.iterator](),Z;!(S=(Z=F.next()).done)&&(w.push(Z.value),!(b&&w.length===b));S=!0);}catch(B){R=!0,D=B}finally{try{!S&&F.return&&F.return()}finally{if(R)throw D}}return w}return function(y,b){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return _(y,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function _(y,b){for(var w=0;w<b.length;w++){var S=b[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}return function(y,b,w){return b&&_(y.prototype,b),w&&_(y,w),y}}(),m=function _(y,b,w){y===null&&(y=Function.prototype);var S=Object.getOwnPropertyDescriptor(y,b);if(S===void 0){var R=Object.getPrototypeOf(y);return R===null?void 0:_(R,b,w)}else{if("value"in S)return S.value;var D=S.get;return D===void 0?void 0:D.call(w)}},p=s(0),v=n(p),f=s(8),o=n(f),t=s(4),e=n(t),u=s(16),l=n(u),a=s(13),r=n(a),i=s(25),c=n(i);function n(_){return _&&_.__esModule?_:{default:_}}function d(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function A(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function E(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}function T(_){return _ instanceof e.default||_ instanceof t.BlockEmbed}var x=function(_){E(y,_);function y(b,w){d(this,y);var S=A(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b));return S.emitter=w.emitter,Array.isArray(w.whitelist)&&(S.whitelist=w.whitelist.reduce(function(R,D){return R[D]=!0,R},{})),S.domNode.addEventListener("DOMNodeInserted",function(){}),S.optimize(),S.enable(),S}return g(y,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(w,S){var R=this.line(w),D=N(R,2),F=D[0],Z=D[1],B=this.line(w+S),M=N(B,1),k=M[0];if(m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"deleteAt",this).call(this,w,S),k!=null&&F!==k&&Z>0){if(F instanceof t.BlockEmbed||k instanceof t.BlockEmbed){this.optimize();return}if(F instanceof r.default){var q=F.newlineIndex(F.length(),!0);if(q>-1&&(F=F.split(q+1),F===k)){this.optimize();return}}else if(k instanceof r.default){var I=k.newlineIndex(0);I>-1&&k.split(I+1)}var H=k.children.head instanceof l.default?null:k.children.head;F.moveChildren(k,H),F.remove()}this.optimize()}},{key:"enable",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",w)}},{key:"formatAt",value:function(w,S,R,D){this.whitelist!=null&&!this.whitelist[R]||(m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,w,S,R,D),this.optimize())}},{key:"insertAt",value:function(w,S,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[S])){if(w>=this.length())if(R==null||v.default.query(S,v.default.Scope.BLOCK)==null){var D=v.default.create(this.statics.defaultChild);this.appendChild(D),R==null&&S.endsWith(` `)&&(S=S.slice(0,-1)),D.insertAt(0,S,R)}else{var F=v.default.create(S,R);this.appendChild(F)}else m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,w,S,R);this.optimize()}}},{key:"insertBefore",value:function(w,S){if(w.statics.scope===v.default.Scope.INLINE_BLOT){var R=v.default.create(this.statics.defaultChild);R.appendChild(w),w=R}m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,w,S)}},{key:"leaf",value:function(w){return this.path(w).pop()||[null,-1]}},{key:"line",value:function(w){return w===this.length()?this.line(w-1):this.descendant(T,w)}},{key:"lines",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function D(F,Z,B){var M=[],k=B;return F.children.forEachAt(Z,B,function(q,I,H){T(q)?M.push(q):q instanceof v.default.Container&&(M=M.concat(D(q,I,k))),k-=H}),M};return R(this,w,S)}},{key:"optimize",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,w,S),w.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,w,S))}},{key:"path",value:function(w){return m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"path",this).call(this,w).slice(1)}},{key:"update",value:function(w){if(this.batch!==!0){var S=o.default.sources.USER;typeof w=="string"&&(S=w),Array.isArray(w)||(w=this.observer.takeRecords()),w.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,S,w),m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"update",this).call(this,w.concat([])),w.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,S,w)}}}]),y}(v.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[e.default,t.BlockEmbed,c.default],h.default=x},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.SHORTKEY=h.default=void 0;var N=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},g=function(){function L(C,$){var z=[],W=!0,X=!1,J=void 0;try{for(var tt=C[Symbol.iterator](),lt;!(W=(lt=tt.next()).done)&&(z.push(lt.value),!($&&z.length===$));W=!0);}catch(at){X=!0,J=at}finally{try{!W&&tt.return&&tt.return()}finally{if(X)throw J}}return z}return function(C,$){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return L(C,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function L(C,$){for(var z=0;z<$.length;z++){var W=$[z];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(C,W.key,W)}}return function(C,$,z){return $&&L(C.prototype,$),z&&L(C,z),C}}(),p=s(21),v=_(p),f=s(11),o=_(f),t=s(3),e=_(t),u=s(2),l=_(u),a=s(20),r=_(a),i=s(0),c=_(i),n=s(5),d=_(n),A=s(10),E=_(A),T=s(9),x=_(T);function _(L){return L&&L.__esModule?L:{default:L}}function y(L,C,$){return C in L?Object.defineProperty(L,C,{value:$,enumerable:!0,configurable:!0,writable:!0}):L[C]=$,L}function b(L,C){if(!(L instanceof C))throw new TypeError("Cannot call a class as a function")}function w(L,C){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:L}function S(L,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);L.prototype=Object.create(C&&C.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(L,C):L.__proto__=C)}var R=(0,E.default)("quill:keyboard"),D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",F=function(L){S(C,L),m(C,null,[{key:"match",value:function(z,W){return W=j(W),["altKey","ctrlKey","metaKey","shiftKey"].some(function(X){return!!W[X]!==z[X]&&W[X]!==null})?!1:W.key===(z.which||z.keyCode)}}]);function C($,z){b(this,C);var W=w(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,$,z));return W.bindings={},Object.keys(W.options.bindings).forEach(function(X){X==="list autofill"&&$.scroll.whitelist!=null&&!$.scroll.whitelist.list||W.options.bindings[X]&&W.addBinding(W.options.bindings[X])}),W.addBinding({key:C.keys.ENTER,shiftKey:null},q),W.addBinding({key:C.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(W.addBinding({key:C.keys.BACKSPACE},{collapsed:!0},B),W.addBinding({key:C.keys.DELETE},{collapsed:!0},M)):(W.addBinding({key:C.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},B),W.addBinding({key:C.keys.DELETE},{collapsed:!0,suffix:/^.?$/},M)),W.addBinding({key:C.keys.BACKSPACE},{collapsed:!1},k),W.addBinding({key:C.keys.DELETE},{collapsed:!1},k),W.addBinding({key:C.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},B),W.listen(),W}return m(C,[{key:"addBinding",value:function(z){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},J=j(z);if(J==null||J.key==null)return R.warn("Attempted to add invalid keyboard binding",J);typeof W=="function"&&(W={handler:W}),typeof X=="function"&&(X={handler:X}),J=(0,e.default)(J,W,X),this.bindings[J.key]=this.bindings[J.key]||[],this.bindings[J.key].push(J)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(W){if(!W.defaultPrevented){var X=W.which||W.keyCode,J=(z.bindings[X]||[]).filter(function(ut){return C.match(W,ut)});if(J.length!==0){var tt=z.quill.getSelection();if(!(tt==null||!z.quill.hasFocus())){var lt=z.quill.getLine(tt.index),at=g(lt,2),ht=at[0],ft=at[1],V=z.quill.getLeaf(tt.index),K=g(V,2),Y=K[0],Q=K[1],G=tt.length===0?[Y,Q]:z.quill.getLeaf(tt.index+tt.length),nt=g(G,2),rt=nt[0],it=nt[1],dt=Y instanceof c.default.Text?Y.value().slice(0,Q):"",pt=rt instanceof c.default.Text?rt.value().slice(it):"",st={collapsed:tt.length===0,empty:tt.length===0&&ht.length()<=1,format:z.quill.getFormat(tt),offset:ft,prefix:dt,suffix:pt},Yt=J.some(function(ut){if(ut.collapsed!=null&&ut.collapsed!==st.collapsed||ut.empty!=null&&ut.empty!==st.empty||ut.offset!=null&&ut.offset!==st.offset)return!1;if(Array.isArray(ut.format)){if(ut.format.every(function(yt){return st.format[yt]==null}))return!1}else if(N(ut.format)==="object"&&!Object.keys(ut.format).every(function(yt){return ut.format[yt]===!0?st.format[yt]!=null:ut.format[yt]===!1?st.format[yt]==null:(0,o.default)(ut.format[yt],st.format[yt])}))return!1;return ut.prefix!=null&&!ut.prefix.test(st.prefix)||ut.suffix!=null&&!ut.suffix.test(st.suffix)?!1:ut.handler.call(z,tt,st)!==!0});Yt&&W.preventDefault()}}}})}}]),C}(x.default);F.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},F.DEFAULTS={bindings:{bold:H("bold"),italic:H("italic"),underline:H("underline"),indent:{key:F.keys.TAB,format:["blockquote","indent","list"],handler:function(C,$){if($.collapsed&&$.offset!==0)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:F.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(C,$){if($.collapsed&&$.offset!==0)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:F.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(C,$){$.format.indent!=null?this.quill.format("indent","-1",d.default.sources.USER):$.format.list!=null&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":I(!0),"outdent code-block":I(!1),"remove tab":{key:F.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(C){this.quill.deleteText(C.index-1,1,d.default.sources.USER)}},tab:{key:F.keys.TAB,handler:function(C){this.quill.history.cutoff();var $=new l.default().retain(C.index).delete(C.length).insert(" ");this.quill.updateContents($,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index+1,d.default.sources.SILENT)}},"list empty enter":{key:F.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(C,$){this.quill.format("list",!1,d.default.sources.USER),$.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:F.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(C){var $=this.quill.getLine(C.index),z=g($,2),W=z[0],X=z[1],J=(0,e.default)({},W.formats(),{list:"checked"}),tt=new l.default().retain(C.index).insert(` `,J).retain(W.length()-X-1).retain(1,{list:"unchecked"});this.quill.updateContents(tt,d.default.sources.USER),this.quill.setSelection(C.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:F.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(C,$){var z=this.quill.getLine(C.index),W=g(z,2),X=W[0],J=W[1],tt=new l.default().retain(C.index).insert(` `,$.format).retain(X.length()-J-1).retain(1,{header:null});this.quill.updateContents(tt,d.default.sources.USER),this.quill.setSelection(C.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(C,$){var z=$.prefix.length,W=this.quill.getLine(C.index),X=g(W,2),J=X[0],tt=X[1];if(tt>z)return!0;var lt=void 0;switch($.prefix.trim()){case"[]":case"[ ]":lt="unchecked";break;case"[x]":lt="checked";break;case"-":case"*":lt="bullet";break;default:lt="ordered"}this.quill.insertText(C.index," ",d.default.sources.USER),this.quill.history.cutoff();var at=new l.default().retain(C.index-tt).delete(z+1).retain(J.length()-2-tt).retain(1,{list:lt});this.quill.updateContents(at,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index-z,d.default.sources.SILENT)}},"code exit":{key:F.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(C){var $=this.quill.getLine(C.index),z=g($,2),W=z[0],X=z[1],J=new l.default().retain(C.index+W.length()-X-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(J,d.default.sources.USER)}},"embed left":Z(F.keys.LEFT,!1),"embed left shift":Z(F.keys.LEFT,!0),"embed right":Z(F.keys.RIGHT,!1),"embed right shift":Z(F.keys.RIGHT,!0)}};function Z(L,C){var $,z=L===F.keys.LEFT?"prefix":"suffix";return $={key:L,shiftKey:C,altKey:null},y($,z,/^$/),y($,"handler",function(X){var J=X.index;L===F.keys.RIGHT&&(J+=X.length+1);var tt=this.quill.getLeaf(J),lt=g(tt,1),at=lt[0];return at instanceof c.default.Embed?(L===F.keys.LEFT?C?this.quill.setSelection(X.index-1,X.length+1,d.default.sources.USER):this.quill.setSelection(X.index-1,d.default.sources.USER):C?this.quill.setSelection(X.index,X.length+1,d.default.sources.USER):this.quill.setSelection(X.index+X.length+1,d.default.sources.USER),!1):!0}),$}function B(L,C){if(!(L.index===0||this.quill.getLength()<=1)){var $=this.quill.getLine(L.index),z=g($,1),W=z[0],X={};if(C.offset===0){var J=this.quill.getLine(L.index-1),tt=g(J,1),lt=tt[0];if(lt!=null&<.length()>1){var at=W.formats(),ht=this.quill.getFormat(L.index-1,1);X=r.default.attributes.diff(at,ht)||{}}}var ft=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(C.prefix)?2:1;this.quill.deleteText(L.index-ft,ft,d.default.sources.USER),Object.keys(X).length>0&&this.quill.formatLine(L.index-ft,ft,X,d.default.sources.USER),this.quill.focus()}}function M(L,C){var $=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(C.suffix)?2:1;if(!(L.index>=this.quill.getLength()-$)){var z={},W=0,X=this.quill.getLine(L.index),J=g(X,1),tt=J[0];if(C.offset>=tt.length()-1){var lt=this.quill.getLine(L.index+1),at=g(lt,1),ht=at[0];if(ht){var ft=tt.formats(),V=this.quill.getFormat(L.index,1);z=r.default.attributes.diff(ft,V)||{},W=ht.length()}}this.quill.deleteText(L.index,$,d.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(L.index+W-1,$,z,d.default.sources.USER)}}function k(L){var C=this.quill.getLines(L),$={};if(C.length>1){var z=C[0].formats(),W=C[C.length-1].formats();$=r.default.attributes.diff(W,z)||{}}this.quill.deleteText(L,d.default.sources.USER),Object.keys($).length>0&&this.quill.formatLine(L.index,1,$,d.default.sources.USER),this.quill.setSelection(L.index,d.default.sources.SILENT),this.quill.focus()}function q(L,C){var $=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var z=Object.keys(C.format).reduce(function(W,X){return c.default.query(X,c.default.Scope.BLOCK)&&!Array.isArray(C.format[X])&&(W[X]=C.format[X]),W},{});this.quill.insertText(L.index,` `,z,d.default.sources.USER),this.quill.setSelection(L.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(C.format).forEach(function(W){z[W]==null&&(Array.isArray(C.format[W])||W!=="link"&&$.quill.format(W,C.format[W],d.default.sources.USER))})}function I(L){return{key:F.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function($){var z=c.default.query("code-block"),W=$.index,X=$.length,J=this.quill.scroll.descendant(z,W),tt=g(J,2),lt=tt[0],at=tt[1];if(lt!=null){var ht=this.quill.getIndex(lt),ft=lt.newlineIndex(at,!0)+1,V=lt.newlineIndex(ht+at+X),K=lt.domNode.textContent.slice(ft,V).split(` `);at=0,K.forEach(function(Y,Q){L?(lt.insertAt(ft+at,z.TAB),at+=z.TAB.length,Q===0?W+=z.TAB.length:X+=z.TAB.length):Y.startsWith(z.TAB)&&(lt.deleteAt(ft+at,z.TAB.length),at-=z.TAB.length,Q===0?W-=z.TAB.length:X-=z.TAB.length),at+=Y.length+1}),this.quill.update(d.default.sources.USER),this.quill.setSelection(W,X,d.default.sources.SILENT)}}}}function H(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function($,z){this.quill.format(L,!z.format[L],d.default.sources.USER)}}}function j(L){if(typeof L=="string"||typeof L=="number")return j({key:L});if((typeof L>"u"?"undefined":N(L))==="object"&&(L=(0,v.default)(L,!1)),typeof L.key=="string")if(F.keys[L.key.toUpperCase()]!=null)L.key=F.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[D]=L.shortKey,delete L.shortKey),L}h.default=F,h.SHORTKEY=D},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function r(i,c){var n=[],d=!0,A=!1,E=void 0;try{for(var T=i[Symbol.iterator](),x;!(d=(x=T.next()).done)&&(n.push(x.value),!(c&&n.length===c));d=!0);}catch(_){A=!0,E=_}finally{try{!d&&T.return&&T.return()}finally{if(A)throw E}}return n}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")}}(),g=function r(i,c,n){i===null&&(i=Function.prototype);var d=Object.getOwnPropertyDescriptor(i,c);if(d===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,c,n)}else{if("value"in d)return d.value;var E=d.get;return E===void 0?void 0:E.call(n)}},m=function(){function r(i,c){for(var n=0;n<c.length;n++){var d=c[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,c,n){return c&&r(i.prototype,c),n&&r(i,n),i}}(),p=s(0),v=t(p),f=s(7),o=t(f);function t(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function l(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var a=function(r){l(i,r),m(i,null,[{key:"value",value:function(){}}]);function i(c,n){e(this,i);var d=u(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,c));return d.selection=n,d.textNode=document.createTextNode(i.CONTENTS),d.domNode.appendChild(d.textNode),d._length=0,d}return m(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,d){if(this._length!==0)return g(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,d);for(var A=this,E=0;A!=null&&A.statics.scope!==v.default.Scope.BLOCK_BLOT;)E+=A.offset(A.parent),A=A.parent;A!=null&&(this._length=i.CONTENTS.length,A.optimize(),A.formatAt(E,i.CONTENTS.length,n,d),this._length=0)}},{key:"index",value:function(n,d){return n===this.textNode?0:g(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,d)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){g(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,d=this.selection.getNativeRange(),A=void 0,E=void 0,T=void 0;if(d!=null&&d.start.node===n&&d.end.node===n){var x=[n,d.start.offset,d.end.offset];A=x[0],E=x[1],T=x[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 _=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(A=this.next.domNode,this.next.insertAt(0,_),this.textNode.data=i.CONTENTS):(this.textNode.data=_,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var y=[E,T].map(function(w){return Math.max(0,Math.min(A.data.length,w-1))}),b=N(y,2);return E=b[0],T=b[1],{startNode:A,startOffset:E,endNode:A,endOffset:T}}}}},{key:"update",value:function(n,d){var A=this;if(n.some(function(T){return T.type==="characterData"&&T.target===A.textNode})){var E=this.restore();E&&(d.range=E)}}},{key:"value",value:function(){return""}}]),i}(v.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\uFEFF",h.default=a},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(0),g=v(N),m=s(4),p=v(m);function v(u){return u&&u.__esModule?u:{default:u}}function f(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return f(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(g.default.Container);e.allowedChildren=[p.default,m.BlockEmbed,e],h.default=e},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.ColorStyle=h.ColorClass=h.ColorAttributor=void 0;var N=function(){function a(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&a(r.prototype,i),c&&a(r,c),r}}(),g=function a(r,i,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:a(d,i,c)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(c)}},m=s(0),p=v(m);function v(a){return a&&a.__esModule?a:{default:a}}function f(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function o(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function t(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var e=function(a){t(r,a);function r(){return f(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return N(r,[{key:"value",value:function(c){var n=g(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,c);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(d){return("00"+parseInt(d).toString(16)).slice(-2)}).join("")):n}}]),r}(p.default.Attributor.Style),u=new p.default.Attributor.Class("color","ql-color",{scope:p.default.Scope.INLINE}),l=new e("color","color",{scope:p.default.Scope.INLINE});h.ColorAttributor=e,h.ColorClass=u,h.ColorStyle=l},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.sanitize=h.default=void 0;var N=function(){function l(a,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(a,c.key,c)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),g=function l(a,r,i){a===null&&(a=Function.prototype);var c=Object.getOwnPropertyDescriptor(a,r);if(c===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,r,i)}else{if("value"in c)return c.value;var d=c.get;return d===void 0?void 0:d.call(i)}},m=s(6),p=v(m);function v(l){return l&&l.__esModule?l:{default:l}}function f(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function t(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var e=function(l){t(a,l);function a(){return f(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return N(a,[{key:"format",value:function(i,c){if(i!==this.statics.blotName||!c)return g(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,i,c);c=this.constructor.sanitize(c),this.domNode.setAttribute("href",c)}}],[{key:"create",value:function(i){var c=g(a.__proto__||Object.getPrototypeOf(a),"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 u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),a}(p.default);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(l,a){var r=document.createElement("a");r.href=l;var i=r.href.slice(0,r.href.indexOf(":"));return a.indexOf(i)>-1}h.default=e,h.sanitize=u},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g=function(){function a(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&a(r.prototype,i),c&&a(r,c),r}}(),m=s(23),p=o(m),v=s(107),f=o(v);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}var e=0;function u(a,r){a.setAttribute(r,a.getAttribute(r)!=="true")}var l=function(){function a(r){var i=this;t(this,a),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(c){switch(c.keyCode){case p.default.keys.ENTER:i.togglePicker();break;case p.default.keys.ESCAPE:i.escape(),c.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return g(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var c=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){c.selectItem(n,!0)}),n.addEventListener("keydown",function(d){switch(d.keyCode){case p.default.keys.ENTER:c.selectItem(n,!0),d.preventDefault();break;case p.default.keys.ESCAPE:c.escape(),d.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=f.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(n){var d=i.buildItem(n);c.appendChild(d),n.selected===!0&&i.selectItem(d)}),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,n=this.container.querySelector(".ql-selected");if(i!==n&&(n!=null&&n.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),c))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":N(Event))==="object"){var d=document.createEvent("Event");d.initEvent("change",!0,!0),this.select.dispatchEvent(d)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var 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 n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();h.default=l},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(0),g=R(N),m=s(5),p=R(m),v=s(4),f=R(v),o=s(16),t=R(o),e=s(25),u=R(e),l=s(24),a=R(l),r=s(35),i=R(r),c=s(6),n=R(c),d=s(22),A=R(d),E=s(7),T=R(E),x=s(55),_=R(x),y=s(42),b=R(y),w=s(23),S=R(w);function R(D){return D&&D.__esModule?D:{default:D}}p.default.register({"blots/block":f.default,"blots/block/embed":v.BlockEmbed,"blots/break":t.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":T.default,"modules/clipboard":_.default,"modules/history":b.default,"modules/keyboard":S.default}),g.default.register(f.default,t.default,a.default,n.default,A.default,T.default),h.default=p.default},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(1),g=function(){function m(p){this.domNode=p,this.domNode[N.DATA_KEY]={blot:this}}return Object.defineProperty(m.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),m.create=function(p){if(this.tagName==null)throw new N.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?(typeof p=="string"&&(p=p.toUpperCase(),parseInt(p).toString()===p&&(p=parseInt(p))),typeof p=="number"?v=document.createElement(this.tagName[p-1]):this.tagName.indexOf(p)>-1?v=document.createElement(p):v=document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},m.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},m.prototype.clone=function(){var p=this.domNode.cloneNode(!1);return N.create(p)},m.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[N.DATA_KEY]},m.prototype.deleteAt=function(p,v){var f=this.isolate(p,v);f.remove()},m.prototype.formatAt=function(p,v,f,o){var t=this.isolate(p,v);if(N.query(f,N.Scope.BLOT)!=null&&o)t.wrap(f,o);else if(N.query(f,N.Scope.ATTRIBUTE)!=null){var e=N.create(this.statics.scope);t.wrap(e),e.format(f,o)}},m.prototype.insertAt=function(p,v,f){var o=f==null?N.create("text",v):N.create(v,f),t=this.split(p);this.parent.insertBefore(o,t)},m.prototype.insertInto=function(p,v){v===void 0&&(v=null),this.parent!=null&&this.parent.children.remove(this);var f=null;p.children.insertBefore(this,v),v!=null&&(f=v.domNode),(this.domNode.parentNode!=p.domNode||this.domNode.nextSibling!=f)&&p.domNode.insertBefore(this.domNode,f),this.parent=p,this.attach()},m.prototype.isolate=function(p,v){var f=this.split(p);return f.split(v),f},m.prototype.length=function(){return 1},m.prototype.offset=function(p){return p===void 0&&(p=this.parent),this.parent==null||this==p?0:this.parent.children.offset(this)+this.parent.offset(p)},m.prototype.optimize=function(p){this.domNode[N.DATA_KEY]!=null&&delete this.domNode[N.DATA_KEY].mutations},m.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},m.prototype.replace=function(p){p.parent!=null&&(p.parent.insertBefore(this,p.next),p.remove())},m.prototype.replaceWith=function(p,v){var f=typeof p=="string"?N.create(p,v):p;return f.replace(this),f},m.prototype.split=function(p,v){return p===0?this:this.next},m.prototype.update=function(p,v){},m.prototype.wrap=function(p,v){var f=typeof p=="string"?N.create(p,v):p;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},m.blotName="abstract",m}();h.default=g},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(12),g=s(32),m=s(33),p=s(1),v=function(){function f(o){this.attributes={},this.domNode=o,this.build()}return f.prototype.attribute=function(o,t){t?o.add(this.domNode,t)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},f.prototype.build=function(){var o=this;this.attributes={};var t=N.default.keys(this.domNode),e=g.default.keys(this.domNode),u=m.default.keys(this.domNode);t.concat(e).concat(u).forEach(function(l){var a=p.query(l,p.Scope.ATTRIBUTE);a instanceof N.default&&(o.attributes[a.attrName]=a)})},f.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var u=t.attributes[e].value(t.domNode);o.format(e,u)})},f.prototype.move=function(o){var t=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},f.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=o.attributes[e].value(o.domNode),t},{})},f}();h.default=v},function(O,h,s){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var t in o)o.hasOwnProperty(t)&&(f[t]=o[t])};return function(f,o){v(f,o);function t(){this.constructor=f}f.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(12);function m(v,f){var o=v.getAttribute("class")||"";return o.split(/\s+/).filter(function(t){return t.indexOf(f+"-")===0})}var p=function(v){N(f,v);function f(){return v!==null&&v.apply(this,arguments)||this}return f.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},f.prototype.add=function(o,t){return this.canAdd(o,t)?(this.remove(o),o.classList.add(this.keyName+"-"+t),!0):!1},f.prototype.remove=function(o){var t=m(o,this.keyName);t.forEach(function(e){o.classList.remove(e)}),o.classList.length===0&&o.removeAttribute("class")},f.prototype.value=function(o){var t=m(o,this.keyName)[0]||"",e=t.slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},f}(g.default);h.default=p},function(O,h,s){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var t in o)o.hasOwnProperty(t)&&(f[t]=o[t])};return function(f,o){v(f,o);function t(){this.constructor=f}f.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(12);function m(v){var f=v.split("-"),o=f.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return f[0]+o}var p=function(v){N(f,v);function f(){return v!==null&&v.apply(this,arguments)||this}return f.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},f.prototype.add=function(o,t){return this.canAdd(o,t)?(o.style[m(this.keyName)]=t,!0):!1},f.prototype.remove=function(o){o.style[m(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},f.prototype.value=function(o){var t=o.style[m(this.keyName)];return this.canAdd(o,t)?t:""},f}(g.default);h.default=p},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function p(v,f){for(var o=0;o<f.length;o++){var t=f[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,t.key,t)}}return function(v,f,o){return f&&p(v.prototype,f),o&&p(v,o),v}}();function g(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}var m=function(){function p(v,f){g(this,p),this.quill=v,this.options=f,this.modules={}}return N(p,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(o){f.modules[o]==null&&f.addModule(o)})}},{key:"addModule",value:function(f){var o=this.quill.constructor.import("modules/"+f);return this.modules[f]=new o(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),p}();m.DEFAULTS={modules:{}},m.themes={default:m},h.default=m},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function r(i,c){for(var n=0;n<c.length;n++){var d=c[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,c,n){return c&&r(i.prototype,c),n&&r(i,n),i}}(),g=function r(i,c,n){i===null&&(i=Function.prototype);var d=Object.getOwnPropertyDescriptor(i,c);if(d===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,c,n)}else{if("value"in d)return d.value;var E=d.get;return E===void 0?void 0:E.call(n)}},m=s(0),p=o(m),v=s(7),f=o(v);function o(r){return r&&r.__esModule?r:{default:r}}function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function e(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function u(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var l="\uFEFF",a=function(r){u(i,r);function i(c){t(this,i);var n=e(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,c));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(d){n.contentNode.appendChild(d)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return N(i,[{key:"index",value:function(n,d){return n===this.leftGuard?0:n===this.rightGuard?1:g(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,d)}},{key:"restore",value:function(n){var d=void 0,A=void 0,E=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof f.default){var T=this.prev.length();this.prev.insertAt(T,E),d={startNode:this.prev.domNode,startOffset:T+E.length}}else A=document.createTextNode(E),this.parent.insertBefore(p.default.create(A),this),d={startNode:A,startOffset:E.length};else n===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,E),d={startNode:this.next.domNode,startOffset:E.length}):(A=document.createTextNode(E),this.parent.insertBefore(p.default.create(A),this.next),d={startNode:A,startOffset:E.length}));return n.data=l,d}},{key:"update",value:function(n,d){var A=this;n.forEach(function(E){if(E.type==="characterData"&&(E.target===A.leftGuard||E.target===A.rightGuard)){var T=A.restore(E.target);T&&(d.range=T)}})}}]),i}(p.default.Embed);h.default=a},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.AlignStyle=h.AlignClass=h.AlignAttribute=void 0;var N=s(0),g=m(N);function m(t){return t&&t.__esModule?t:{default:t}}var p={scope:g.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new g.default.Attributor.Attribute("align","align",p),f=new g.default.Attributor.Class("align","ql-align",p),o=new g.default.Attributor.Style("align","text-align",p);h.AlignAttribute=v,h.AlignClass=f,h.AlignStyle=o},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.BackgroundStyle=h.BackgroundClass=void 0;var N=s(0),g=p(N),m=s(26);function p(o){return o&&o.__esModule?o:{default:o}}var v=new g.default.Attributor.Class("background","ql-bg",{scope:g.default.Scope.INLINE}),f=new m.ColorAttributor("background","background-color",{scope:g.default.Scope.INLINE});h.BackgroundClass=v,h.BackgroundStyle=f},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.DirectionStyle=h.DirectionClass=h.DirectionAttribute=void 0;var N=s(0),g=m(N);function m(t){return t&&t.__esModule?t:{default:t}}var p={scope:g.default.Scope.BLOCK,whitelist:["rtl"]},v=new g.default.Attributor.Attribute("direction","dir",p),f=new g.default.Attributor.Class("direction","ql-direction",p),o=new g.default.Attributor.Style("direction","direction",p);h.DirectionAttribute=v,h.DirectionClass=f,h.DirectionStyle=o},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.FontClass=h.FontStyle=void 0;var N=function(){function r(i,c){for(var n=0;n<c.length;n++){var d=c[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,c,n){return c&&r(i.prototype,c),n&&r(i,n),i}}(),g=function r(i,c,n){i===null&&(i=Function.prototype);var d=Object.getOwnPropertyDescriptor(i,c);if(d===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,c,n)}else{if("value"in d)return d.value;var E=d.get;return E===void 0?void 0:E.call(n)}},m=s(0),p=v(m);function v(r){return r&&r.__esModule?r:{default:r}}function f(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function t(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var e={scope:p.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new p.default.Attributor.Class("font","ql-font",e),l=function(r){t(i,r);function i(){return f(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return N(i,[{key:"value",value:function(n){return g(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(p.default.Attributor.Style),a=new l("font","font-family",e);h.FontStyle=a,h.FontClass=u},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.SizeStyle=h.SizeClass=void 0;var N=s(0),g=m(N);function m(f){return f&&f.__esModule?f:{default:f}}var p=new g.default.Attributor.Class("size","ql-size",{scope:g.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new g.default.Attributor.Style("size","font-size",{scope:g.default.Scope.INLINE,whitelist:["10px","18px","32px"]});h.SizeClass=p,h.SizeStyle=v},function(O,h,s){O.exports={align:{"":s(76),center:s(77),right:s(78),justify:s(79)},background:s(80),blockquote:s(81),bold:s(82),clean:s(83),code:s(58),"code-block":s(58),color:s(84),direction:{"":s(85),rtl:s(86)},float:{center:s(87),full:s(88),left:s(89),right:s(90)},formula:s(91),header:{1:s(92),2:s(93)},italic:s(94),image:s(95),indent:{"+1":s(96),"-1":s(97)},link:s(98),list:{ordered:s(99),bullet:s(100),check:s(101)},script:{sub:s(102),super:s(103)},strike:s(104),underline:s(105),video:s(106)}},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.getLastChangeIndex=h.default=void 0;var N=function(){function c(n,d){for(var A=0;A<d.length;A++){var E=d[A];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(n,E.key,E)}}return function(n,d,A){return d&&c(n.prototype,d),A&&c(n,A),n}}(),g=s(0),m=t(g),p=s(5),v=t(p),f=s(9),o=t(f);function t(c){return c&&c.__esModule?c:{default:c}}function e(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function u(c,n){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:c}function l(c,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);c.prototype=Object.create(n&&n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(c,n):c.__proto__=n)}var a=function(c){l(n,c);function n(d,A){e(this,n);var E=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,d,A));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(v.default.events.EDITOR_CHANGE,function(T,x,_,y){T!==v.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||y===v.default.sources.USER?E.record(x,_):E.transform(x))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return N(n,[{key:"change",value:function(A,E){if(this.stack[A].length!==0){var T=this.stack[A].pop();this.stack[E].push(T),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(T[A],v.default.sources.USER),this.ignoreChange=!1;var x=i(T[A]);this.quill.setSelection(x)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,E){if(A.ops.length!==0){this.stack.redo=[];var T=this.quill.getContents().diff(E),x=Date.now();if(this.lastRecorded+this.options.delay>x&&this.stack.undo.length>0){var _=this.stack.undo.pop();T=T.compose(_.undo),A=_.redo.compose(A)}else this.lastRecorded=x;this.stack.undo.push({redo:A,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(A){this.stack.undo.forEach(function(E){E.undo=A.transform(E.undo,!0),E.redo=A.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=A.transform(E.undo,!0),E.redo=A.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(c){var n=c.ops[c.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(` `):n.attributes!=null?Object.keys(n.attributes).some(function(d){return m.default.query(d,m.default.Scope.BLOCK)!=null}):!1}function i(c){var n=c.reduce(function(A,E){return A+=E.delete||0,A},0),d=c.length()-n;return r(c)&&(d-=1),d}h.default=a,h.getLastChangeIndex=i},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.BaseTooltip=void 0;var N=function(){function q(I,H){for(var j=0;j<H.length;j++){var L=H[j];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}return function(I,H,j){return H&&q(I.prototype,H),j&&q(I,j),I}}(),g=function q(I,H,j){I===null&&(I=Function.prototype);var L=Object.getOwnPropertyDescriptor(I,H);if(L===void 0){var C=Object.getPrototypeOf(I);return C===null?void 0:q(C,H,j)}else{if("value"in L)return L.value;var $=L.get;return $===void 0?void 0:$.call(j)}},m=s(3),p=x(m),v=s(2),f=x(v),o=s(8),t=x(o),e=s(23),u=x(e),l=s(34),a=x(l),r=s(59),i=x(r),c=s(60),n=x(c),d=s(28),A=x(d),E=s(61),T=x(E);function x(q){return q&&q.__esModule?q:{default:q}}function _(q,I){if(!(q instanceof I))throw new TypeError("Cannot call a class as a function")}function y(q,I){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:q}function b(q,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);q.prototype=Object.create(I&&I.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(q,I):q.__proto__=I)}var w=[!1,"center","right","justify"],S=["#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"],R=[!1,"serif","monospace"],D=["1","2","3",!1],F=["small",!1,"large","huge"],Z=function(q){b(I,q);function I(H,j){_(this,I);var L=y(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,H,j)),C=function $(z){if(!document.body.contains(H.root))return document.body.removeEventListener("click",$);L.tooltip!=null&&!L.tooltip.root.contains(z.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(W){W.container.contains(z.target)||W.close()})};return H.emitter.listenDOM("click",document.body,C),L}return N(I,[{key:"addModule",value:function(j){var L=g(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"addModule",this).call(this,j);return j==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(j,L){j.forEach(function(C){var $=C.getAttribute("class")||"";$.split(/\s+/).forEach(function(z){if(z.startsWith("ql-")&&(z=z.slice(3),L[z]!=null))if(z==="direction")C.innerHTML=L[z][""]+L[z].rtl;else if(typeof L[z]=="string")C.innerHTML=L[z];else{var W=C.value||"";W!=null&&L[z][W]&&(C.innerHTML=L[z][W])}})})}},{key:"buildPickers",value:function(j,L){var C=this;this.pickers=j.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&k(z,w),new n.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var W=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&k(z,S,W==="background"?"#ffffff":"#000000"),new i.default(z,L[W])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?k(z,R):z.classList.contains("ql-header")?k(z,D):z.classList.contains("ql-size")&&k(z,F)),new A.default(z)});var $=function(){C.pickers.forEach(function(W){W.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,$)}}]),I}(a.default);Z.DEFAULTS=(0,p.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var I=this,H=this.container.querySelector("input.ql-image[type=file]");H==null&&(H=document.createElement("input"),H.setAttribute("type","file"),H.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),H.classList.add("ql-image"),H.addEventListener("change",function(){if(H.files!=null&&H.files[0]!=null){var j=new FileReader;j.onload=function(L){var C=I.quill.getSelection(!0);I.quill.updateContents(new f.default().retain(C.index).delete(C.length).insert({image:L.target.result}),t.default.sources.USER),I.quill.setSelection(C.index+1,t.default.sources.SILENT),H.value=""},j.readAsDataURL(H.files[0])}}),this.container.appendChild(H)),H.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var B=function(q){b(I,q);function I(H,j){_(this,I);var L=y(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,H,j));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return N(I,[{key:"listen",value:function(){var j=this;this.textbox.addEventListener("keydown",function(L){u.default.match(L,"enter")?(j.save(),L.preventDefault()):u.default.match(L,"escape")&&(j.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var j=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:j!==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-"+j)||""),this.root.setAttribute("data-mode",j)}},{key:"restoreFocus",value:function(){var j=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=j}},{key:"save",value:function(){var j=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",j,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",j,t.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":j=M(j);case"formula":{if(!j)break;var C=this.quill.getSelection(!0);if(C!=null){var $=C.index+C.length;this.quill.insertEmbed($,this.root.getAttribute("data-mode"),j,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText($+1," ",t.default.sources.USER),this.quill.setSelection($+2,t.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),I}(T.default);function M(q){var I=q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return I?(I[1]||"https")+"://www.youtube.com/embed/"+I[2]+"?showinfo=0":(I=q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(I[1]||"https")+"://player.vimeo.com/video/"+I[2]+"/":q}function k(q,I){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;I.forEach(function(j){var L=document.createElement("option");j===H?L.setAttribute("selected","selected"):L.setAttribute("value",j),q.appendChild(L)})}h.BaseTooltip=B,h.default=Z},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function g(){this.head=this.tail=null,this.length=0}return g.prototype.append=function(){for(var m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];this.insertBefore(m[0],null),m.length>1&&this.append.apply(this,m.slice(1))},g.prototype.contains=function(m){for(var p,v=this.iterator();p=v();)if(p===m)return!0;return!1},g.prototype.insertBefore=function(m,p){m&&(m.next=p,p!=null?(m.prev=p.prev,p.prev!=null&&(p.prev.next=m),p.prev=m,p===this.head&&(this.head=m)):this.tail!=null?(this.tail.next=m,m.prev=this.tail,this.tail=m):(m.prev=null,this.head=this.tail=m),this.length+=1)},g.prototype.offset=function(m){for(var p=0,v=this.head;v!=null;){if(v===m)return p;p+=v.length(),v=v.next}return-1},g.prototype.remove=function(m){this.contains(m)&&(m.prev!=null&&(m.prev.next=m.next),m.next!=null&&(m.next.prev=m.prev),m===this.head&&(this.head=m.next),m===this.tail&&(this.tail=m.prev),this.length-=1)},g.prototype.iterator=function(m){return m===void 0&&(m=this.head),function(){var p=m;return m!=null&&(m=m.next),p}},g.prototype.find=function(m,p){p===void 0&&(p=!1);for(var v,f=this.iterator();v=f();){var o=v.length();if(m<o||p&&m===o&&(v.next==null||v.next.length()!==0))return[v,m];m-=o}return[null,0]},g.prototype.forEach=function(m){for(var p,v=this.iterator();p=v();)m(p)},g.prototype.forEachAt=function(m,p,v){if(!(p<=0))for(var f=this.find(m),o=f[0],t=f[1],e,u=m-t,l=this.iterator(o);(e=l())&&u<m+p;){var a=e.length();m>u?v(e,m-u,Math.min(p,u+a-m)):v(e,0,Math.min(a,m+p-u)),u+=a}},g.prototype.map=function(m){return this.reduce(function(p,v){return p.push(m(v)),p},[])},g.prototype.reduce=function(m,p){for(var v,f=this.iterator();v=f();)p=m(p,v);return p},g}();h.default=N},function(O,h,s){var N=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(17),m=s(1),p={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},v=100,f=function(o){N(t,o);function t(e){var u=o.call(this,e)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,p),u.attach(),u}return t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,u){this.update(),e===0&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,e,u)},t.prototype.formatAt=function(e,u,l,a){this.update(),o.prototype.formatAt.call(this,e,u,l,a)},t.prototype.insertAt=function(e,u,l){this.update(),o.prototype.insertAt.call(this,e,u,l)},t.prototype.optimize=function(e,u){var l=this;e===void 0&&(e=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var r=function(d,A){A===void 0&&(A=!0),!(d==null||d===l)&&d.domNode.parentNode!=null&&(d.domNode[m.DATA_KEY].mutations==null&&(d.domNode[m.DATA_KEY].mutations=[]),A&&r(d.parent))},i=function(d){d.domNode[m.DATA_KEY]==null||d.domNode[m.DATA_KEY].mutations==null||(d instanceof g.default&&d.children.forEach(i),d.optimize(u))},c=e,n=0;c.length>0;n+=1){if(n>=v)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(d){var A=m.find(d.target,!0);A!=null&&(A.domNode===d.target&&(d.type==="childList"?(r(m.find(d.previousSibling,!1)),[].forEach.call(d.addedNodes,function(E){var T=m.find(E,!1);r(T,!1),T instanceof g.default&&T.children.forEach(function(x){r(x,!1)})})):d.type==="attributes"&&r(A.prev)),r(A))}),this.children.forEach(i),c=[].slice.call(this.observer.takeRecords()),a=c.slice();a.length>0;)e.push(a.pop())}},t.prototype.update=function(e,u){var l=this;u===void 0&&(u={}),e=e||this.observer.takeRecords(),e.map(function(a){var r=m.find(a.target,!0);return r==null?null:r.domNode[m.DATA_KEY].mutations==null?(r.domNode[m.DATA_KEY].mutations=[a],r):(r.domNode[m.DATA_KEY].mutations.push(a),null)}).forEach(function(a){a==null||a===l||a.domNode[m.DATA_KEY]==null||a.update(a.domNode[m.DATA_KEY].mutations||[],u)}),this.domNode[m.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[m.DATA_KEY].mutations,u),this.optimize(e,u)},t.blotName="scroll",t.defaultChild="block",t.scope=m.Scope.BLOCK_BLOT,t.tagName="DIV",t}(g.default);h.default=f},function(O,h,s){var N=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])};return function(o,t){f(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(18),m=s(1);function p(f,o){if(Object.keys(f).length!==Object.keys(o).length)return!1;for(var t in f)if(f[t]!==o[t])return!1;return!0}var v=function(f){N(o,f);function o(){return f!==null&&f.apply(this,arguments)||this}return o.formats=function(t){if(t.tagName!==o.tagName)return f.formats.call(this,t)},o.prototype.format=function(t,e){var u=this;t===this.statics.blotName&&!e?(this.children.forEach(function(l){l instanceof g.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap()):f.prototype.format.call(this,t,e)},o.prototype.formatAt=function(t,e,u,l){if(this.formats()[u]!=null||m.query(u,m.Scope.ATTRIBUTE)){var a=this.isolate(t,e);a.format(u,l)}else f.prototype.formatAt.call(this,t,e,u,l)},o.prototype.optimize=function(t){f.prototype.optimize.call(this,t);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&p(e,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=m.Scope.INLINE_BLOT,o.tagName="SPAN",o}(g.default);h.default=v},function(O,h,s){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var t in o)o.hasOwnProperty(t)&&(f[t]=o[t])};return function(f,o){v(f,o);function t(){this.constructor=f}f.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(18),m=s(1),p=function(v){N(f,v);function f(){return v!==null&&v.apply(this,arguments)||this}return f.formats=function(o){var t=m.query(f.blotName).tagName;if(o.tagName!==t)return v.formats.call(this,o)},f.prototype.format=function(o,t){m.query(o,m.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!t?this.replaceWith(f.blotName):v.prototype.format.call(this,o,t))},f.prototype.formatAt=function(o,t,e,u){m.query(e,m.Scope.BLOCK)!=null?this.format(e,u):v.prototype.formatAt.call(this,o,t,e,u)},f.prototype.insertAt=function(o,t,e){if(e==null||m.query(t,m.Scope.INLINE)!=null)v.prototype.insertAt.call(this,o,t,e);else{var u=this.split(o),l=m.create(t,e);u.parent.insertBefore(l,u)}},f.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,o,t)},f.blotName="block",f.scope=m.Scope.BLOCK_BLOT,f.tagName="P",f}(g.default);h.default=p},function(O,h,s){var N=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,f){v.__proto__=f}||function(v,f){for(var o in f)f.hasOwnProperty(o)&&(v[o]=f[o])};return function(v,f){p(v,f);function o(){this.constructor=v}v.prototype=f===null?Object.create(f):(o.prototype=f.prototype,new o)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(19),m=function(p){N(v,p);function v(){return p!==null&&p.apply(this,arguments)||this}return v.formats=function(f){},v.prototype.format=function(f,o){p.prototype.formatAt.call(this,0,this.length(),f,o)},v.prototype.formatAt=function(f,o,t,e){f===0&&o===this.length()?this.format(t,e):p.prototype.formatAt.call(this,f,o,t,e)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v}(g.default);h.default=m},function(O,h,s){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var t in o)o.hasOwnProperty(t)&&(f[t]=o[t])};return function(f,o){v(f,o);function t(){this.constructor=f}f.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(h,"__esModule",{value:!0});var g=s(19),m=s(1),p=function(v){N(f,v);function f(o){var t=v.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return f.create=function(o){return document.createTextNode(o)},f.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},f.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},f.prototype.index=function(o,t){return this.domNode===o?t:-1},f.prototype.insertAt=function(o,t,e){e==null?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):v.prototype.insertAt.call(this,o,t,e)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(o){v.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(o,t){return[this.domNode,o]},f.prototype.split=function(o,t){if(t===void 0&&(t=!1),!t){if(o===0)return this;if(o===this.length())return this.next}var e=m.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},f.prototype.update=function(o,t){var e=this;o.some(function(u){return u.type==="characterData"&&u.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=m.Scope.INLINE_BLOT,f}(g.default);h.default=p},function(O,h,s){var N=document.createElement("div");if(N.classList.toggle("test-class",!1),N.classList.contains("test-class")){var g=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(m,p){return arguments.length>1&&!this.contains(m)==!p?p:g.call(this,m)}}String.prototype.startsWith||(String.prototype.startsWith=function(m,p){return p=p||0,this.substr(p,m.length)===m}),String.prototype.endsWith||(String.prototype.endsWith=function(m,p){var v=this.toString();(typeof p!="number"||!isFinite(p)||Math.floor(p)!==p||p>v.length)&&(p=v.length),p-=m.length;var f=v.indexOf(m,p);return f!==-1&&f===p}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(p){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof p!="function")throw new TypeError("predicate must be a function");for(var v=Object(this),f=v.length>>>0,o=arguments[1],t,e=0;e<f;e++)if(t=v[e],p.call(o,t,e,v))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(O,h){var s=-1,N=1,g=0;function m(n,d,A){if(n==d)return n?[[g,n]]:[];(A<0||n.length<A)&&(A=null);var E=o(n,d),T=n.substring(0,E);n=n.substring(E),d=d.substring(E),E=t(n,d);var x=n.substring(n.length-E);n=n.substring(0,n.length-E),d=d.substring(0,d.length-E);var _=p(n,d);return T&&_.unshift([g,T]),x&&_.push([g,x]),u(_),A!=null&&(_=r(_,A)),_=i(_),_}function p(n,d){var A;if(!n)return[[N,d]];if(!d)return[[s,n]];var E=n.length>d.length?n:d,T=n.length>d.length?d:n,x=E.indexOf(T);if(x!=-1)return A=[[N,E.substring(0,x)],[g,T],[N,E.substring(x+T.length)]],n.length>d.length&&(A[0][0]=A[2][0]=s),A;if(T.length==1)return[[s,n],[N,d]];var _=e(n,d);if(_){var y=_[0],b=_[1],w=_[2],S=_[3],R=_[4],D=m(y,w),F=m(b,S);return D.concat([[g,R]],F)}return v(n,d)}function v(n,d){for(var A=n.length,E=d.length,T=Math.ceil((A+E)/2),x=T,_=2*T,y=new Array(_),b=new Array(_),w=0;w<_;w++)y[w]=-1,b[w]=-1;y[x+1]=0,b[x+1]=0;for(var S=A-E,R=S%2!=0,D=0,F=0,Z=0,B=0,M=0;M<T;M++){for(var k=-M+D;k<=M-F;k+=2){var q=x+k,I;k==-M||k!=M&&y[q-1]<y[q+1]?I=y[q+1]:I=y[q-1]+1;for(var H=I-k;I<A&&H<E&&n.charAt(I)==d.charAt(H);)I++,H++;if(y[q]=I,I>A)F+=2;else if(H>E)D+=2;else if(R){var j=x+S-k;if(j>=0&&j<_&&b[j]!=-1){var L=A-b[j];if(I>=L)return f(n,d,I,H)}}}for(var C=-M+Z;C<=M-B;C+=2){var j=x+C,L;C==-M||C!=M&&b[j-1]<b[j+1]?L=b[j+1]:L=b[j-1]+1;for(var $=L-C;L<A&&$<E&&n.charAt(A-L-1)==d.charAt(E-$-1);)L++,$++;if(b[j]=L,L>A)B+=2;else if($>E)Z+=2;else if(!R){var q=x+S-C;if(q>=0&&q<_&&y[q]!=-1){var I=y[q],H=x+I-q;if(L=A-L,I>=L)return f(n,d,I,H)}}}}return[[s,n],[N,d]]}function f(n,d,A,E){var T=n.substring(0,A),x=d.substring(0,E),_=n.substring(A),y=d.substring(E),b=m(T,x),w=m(_,y);return b.concat(w)}function o(n,d){if(!n||!d||n.charAt(0)!=d.charAt(0))return 0;for(var A=0,E=Math.min(n.length,d.length),T=E,x=0;A<T;)n.substring(x,T)==d.substring(x,T)?(A=T,x=A):E=T,T=Math.floor((E-A)/2+A);return T}function t(n,d){if(!n||!d||n.charAt(n.length-1)!=d.charAt(d.length-1))return 0;for(var A=0,E=Math.min(n.length,d.length),T=E,x=0;A<T;)n.substring(n.length-T,n.length-x)==d.substring(d.length-T,d.length-x)?(A=T,x=A):E=T,T=Math.floor((E-A)/2+A);return T}function e(n,d){var A=n.length>d.length?n:d,E=n.length>d.length?d:n;if(A.length<4||E.length*2<A.length)return null;function T(F,Z,B){for(var M=F.substring(B,B+Math.floor(F.length/4)),k=-1,q="",I,H,j,L;(k=Z.indexOf(M,k+1))!=-1;){var C=o(F.substring(B),Z.substring(k)),$=t(F.substring(0,B),Z.substring(0,k));q.length<$+C&&(q=Z.substring(k-$,k)+Z.substring(k,k+C),I=F.substring(0,B-$),H=F.substring(B+C),j=Z.substring(0,k-$),L=Z.substring(k+C))}return q.length*2>=F.length?[I,H,j,L,q]:null}var x=T(A,E,Math.ceil(A.length/4)),_=T(A,E,Math.ceil(A.length/2)),y;if(!x&&!_)return null;_?x?y=x[4].length>_[4].length?x:_:y=_:y=x;var b,w,S,R;n.length>d.length?(b=y[0],w=y[1],S=y[2],R=y[3]):(S=y[0],R=y[1],b=y[2],w=y[3]);var D=y[4];return[b,w,S,R,D]}function u(n){n.push([g,""]);for(var d=0,A=0,E=0,T="",x="",_;d<n.length;)switch(n[d][0]){case N:E++,x+=n[d][1],d++;break;case s:A++,T+=n[d][1],d++;break;case g:A+E>1?(A!==0&&E!==0&&(_=o(x,T),_!==0&&(d-A-E>0&&n[d-A-E-1][0]==g?n[d-A-E-1][1]+=x.substring(0,_):(n.splice(0,0,[g,x.substring(0,_)]),d++),x=x.substring(_),T=T.substring(_)),_=t(x,T),_!==0&&(n[d][1]=x.substring(x.length-_)+n[d][1],x=x.substring(0,x.length-_),T=T.substring(0,T.length-_))),A===0?n.splice(d-E,A+E,[N,x]):E===0?n.splice(d-A,A+E,[s,T]):n.splice(d-A-E,A+E,[s,T],[N,x]),d=d-A-E+(A?1:0)+(E?1:0)+1):d!==0&&n[d-1][0]==g?(n[d-1][1]+=n[d][1],n.splice(d,1)):d++,E=0,A=0,T="",x="";break}n[n.length-1][1]===""&&n.pop();var y=!1;for(d=1;d<n.length-1;)n[d-1][0]==g&&n[d+1][0]==g&&(n[d][1].substring(n[d][1].length-n[d-1][1].length)==n[d-1][1]?(n[d][1]=n[d-1][1]+n[d][1].substring(0,n[d][1].length-n[d-1][1].length),n[d+1][1]=n[d-1][1]+n[d+1][1],n.splice(d-1,1),y=!0):n[d][1].substring(0,n[d+1][1].length)==n[d+1][1]&&(n[d-1][1]+=n[d+1][1],n[d][1]=n[d][1].substring(n[d+1][1].length)+n[d+1][1],n.splice(d+1,1),y=!0)),d++;y&&u(n)}var l=m;l.INSERT=N,l.DELETE=s,l.EQUAL=g,O.exports=l;function a(n,d){if(d===0)return[g,n];for(var A=0,E=0;E<n.length;E++){var T=n[E];if(T[0]===s||T[0]===g){var x=A+T[1].length;if(d===x)return[E+1,n];if(d<x){n=n.slice();var _=d-A,y=[T[0],T[1].slice(0,_)],b=[T[0],T[1].slice(_)];return n.splice(E,1,y,b),[E+1,n]}else A=x}}throw new Error("cursor_pos is out of bounds!")}function r(n,d){var A=a(n,d),E=A[1],T=A[0],x=E[T],_=E[T+1];if(x==null)return n;if(x[0]!==g)return n;if(_!=null&&x[1]+_[1]===_[1]+x[1])return E.splice(T,2,_,x),c(E,T,2);if(_!=null&&_[1].indexOf(x[1])===0){E.splice(T,2,[_[0],x[1]],[0,x[1]]);var y=_[1].slice(x[1].length);return y.length>0&&E.splice(T+2,0,[_[0],y]),c(E,T,3)}else return n}function i(n){for(var d=!1,A=function(_){return _.charCodeAt(0)>=56320&&_.charCodeAt(0)<=57343},E=function(_){return _.charCodeAt(_.length-1)>=55296&&_.charCodeAt(_.length-1)<=56319},T=2;T<n.length;T+=1)n[T-2][0]===g&&E(n[T-2][1])&&n[T-1][0]===s&&A(n[T-1][1])&&n[T][0]===N&&A(n[T][1])&&(d=!0,n[T-1][1]=n[T-2][1].slice(-1)+n[T-1][1],n[T][1]=n[T-2][1].slice(-1)+n[T][1],n[T-2][1]=n[T-2][1].slice(0,-1));if(!d)return n;for(var x=[],T=0;T<n.length;T+=1)n[T][1].length>0&&x.push(n[T]);return x}function c(n,d,A){for(var E=d+A-1;E>=0&&E>=d-1;E--)if(E+1<n.length){var T=n[E],x=n[E+1];T[0]===x[1]&&n.splice(E,2,[T[0],T[1]+x[1]])}return n}},function(O,h){h=O.exports=typeof Object.keys=="function"?Object.keys:s,h.shim=s;function s(N){var g=[];for(var m in N)g.push(m);return g}},function(O,h){var s=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";h=O.exports=s?N:g,h.supported=N;function N(m){return Object.prototype.toString.call(m)=="[object Arguments]"}h.unsupported=g;function g(m){return m&&typeof m=="object"&&typeof m.length=="number"&&Object.prototype.hasOwnProperty.call(m,"callee")&&!Object.prototype.propertyIsEnumerable.call(m,"callee")||!1}},function(O,h){var s=Object.prototype.hasOwnProperty,N="~";function g(){}Object.create&&(g.prototype=Object.create(null),new g().__proto__||(N=!1));function m(v,f,o){this.fn=v,this.context=f,this.once=o||!1}function p(){this._events=new g,this._eventsCount=0}p.prototype.eventNames=function(){var f=[],o,t;if(this._eventsCount===0)return f;for(t in o=this._events)s.call(o,t)&&f.push(N?t.slice(1):t);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(o)):f},p.prototype.listeners=function(f,o){var t=N?N+f:f,e=this._events[t];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var u=0,l=e.length,a=new Array(l);u<l;u++)a[u]=e[u].fn;return a},p.prototype.emit=function(f,o,t,e,u,l){var a=N?N+f:f;if(!this._events[a])return!1;var r=this._events[a],i=arguments.length,c,n;if(r.fn){switch(r.once&&this.removeListener(f,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,t),!0;case 4:return r.fn.call(r.context,o,t,e),!0;case 5:return r.fn.call(r.context,o,t,e,u),!0;case 6:return r.fn.call(r.context,o,t,e,u,l),!0}for(n=1,c=new Array(i-1);n<i;n++)c[n-1]=arguments[n];r.fn.apply(r.context,c)}else{var d=r.length,A;for(n=0;n<d;n++)switch(r[n].once&&this.removeListener(f,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,t);break;case 4:r[n].fn.call(r[n].context,o,t,e);break;default:if(!c)for(A=1,c=new Array(i-1);A<i;A++)c[A-1]=arguments[A];r[n].fn.apply(r[n].context,c)}}return!0},p.prototype.on=function(f,o,t){var e=new m(o,t||this),u=N?N+f:f;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},p.prototype.once=function(f,o,t){var e=new m(o,t||this,!0),u=N?N+f:f;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},p.prototype.removeListener=function(f,o,t,e){var u=N?N+f:f;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new g:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!e||l.once)&&(!t||l.context===t)&&(--this._eventsCount===0?this._events=new g:delete this._events[u]);else{for(var a=0,r=[],i=l.length;a<i;a++)(l[a].fn!==o||e&&!l[a].once||t&&l[a].context!==t)&&r.push(l[a]);r.length?this._events[u]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new g:delete this._events[u]}return this},p.prototype.removeAllListeners=function(f){var o;return f?(o=N?N+f:f,this._events[o]&&(--this._eventsCount===0?this._events=new g:delete this._events[o])):(this._events=new g,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prototype.setMaxListeners=function(){return this},p.prefixed=N,p.EventEmitter=p,typeof O<"u"&&(O.exports=p)},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.matchText=h.matchSpacing=h.matchNewline=h.matchBlot=h.matchAttributor=h.default=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},g=function(){function V(K,Y){var Q=[],G=!0,nt=!1,rt=void 0;try{for(var it=K[Symbol.iterator](),dt;!(G=(dt=it.next()).done)&&(Q.push(dt.value),!(Y&&Q.length===Y));G=!0);}catch(pt){nt=!0,rt=pt}finally{try{!G&&it.return&&it.return()}finally{if(nt)throw rt}}return Q}return function(K,Y){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return V(K,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function V(K,Y){for(var Q=0;Q<Y.length;Q++){var G=Y[Q];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(K,G.key,G)}}return function(K,Y,Q){return Y&&V(K.prototype,Y),Q&&V(K,Q),K}}(),p=s(3),v=b(p),f=s(2),o=b(f),t=s(0),e=b(t),u=s(5),l=b(u),a=s(10),r=b(a),i=s(9),c=b(i),n=s(36),d=s(37),A=s(13),E=b(A),T=s(26),x=s(38),_=s(39),y=s(40);function b(V){return V&&V.__esModule?V:{default:V}}function w(V,K,Y){return K in V?Object.defineProperty(V,K,{value:Y,enumerable:!0,configurable:!0,writable:!0}):V[K]=Y,V}function S(V,K){if(!(V instanceof K))throw new TypeError("Cannot call a class as a function")}function R(V,K){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:V}function D(V,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);V.prototype=Object.create(K&&K.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(V,K):V.__proto__=K)}var F=(0,r.default)("quill:clipboard"),Z="__ql-matcher",B=[[Node.TEXT_NODE,ft],[Node.TEXT_NODE,lt],["br",X],[Node.ELEMENT_NODE,lt],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,at],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,ht],["li",tt],["b",$.bind($,"bold")],["i",$.bind($,"italic")],["style",J]],M=[n.AlignAttribute,x.DirectionAttribute].reduce(function(V,K){return V[K.keyName]=K,V},{}),k=[n.AlignStyle,d.BackgroundStyle,T.ColorStyle,x.DirectionStyle,_.FontStyle,y.SizeStyle].reduce(function(V,K){return V[K.keyName]=K,V},{}),q=function(V){D(K,V);function K(Y,Q){S(this,K);var G=R(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Y,Q));return G.quill.root.addEventListener("paste",G.onPaste.bind(G)),G.container=G.quill.addContainer("ql-clipboard"),G.container.setAttribute("contenteditable",!0),G.container.setAttribute("tabindex",-1),G.matchers=[],B.concat(G.options.matchers).forEach(function(nt){var rt=g(nt,2),it=rt[0],dt=rt[1];!Q.matchVisual&&dt===at||G.addMatcher(it,dt)}),G}return m(K,[{key:"addMatcher",value:function(Q,G){this.matchers.push([Q,G])}},{key:"convert",value:function(Q){if(typeof Q=="string")return this.container.innerHTML=Q.replace(/\>\r?\n +\</g,"><"),this.convert();var G=this.quill.getFormat(this.quill.selection.savedRange.index);if(G[E.default.blotName]){var nt=this.container.innerText;return this.container.innerHTML="",new o.default().insert(nt,w({},E.default.blotName,G[E.default.blotName]))}var rt=this.prepareMatching(),it=g(rt,2),dt=it[0],pt=it[1],st=C(this.container,dt,pt);return j(st,` `)&&st.ops[st.ops.length-1].attributes==null&&(st=st.compose(new o.default().retain(st.length()-1).delete(1))),F.log("convert",this.container.innerHTML,st),this.container.innerHTML="",st}},{key:"dangerouslyPasteHTML",value:function(Q,G){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof Q=="string")this.quill.setContents(this.convert(Q),G),this.quill.setSelection(0,l.default.sources.SILENT);else{var rt=this.convert(G);this.quill.updateContents(new o.default().retain(Q).concat(rt),nt),this.quill.setSelection(Q+rt.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(Q){var G=this;if(!(Q.defaultPrevented||!this.quill.isEnabled())){var nt=this.quill.getSelection(),rt=new o.default().retain(nt.index),it=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){rt=rt.concat(G.convert()).delete(nt.length),G.quill.updateContents(rt,l.default.sources.USER),G.quill.setSelection(rt.length()-nt.length,l.default.sources.SILENT),G.quill.scrollingContainer.scrollTop=it,G.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Q=this,G=[],nt=[];return this.matchers.forEach(function(rt){var it=g(rt,2),dt=it[0],pt=it[1];switch(dt){case Node.TEXT_NODE:nt.push(pt);break;case Node.ELEMENT_NODE:G.push(pt);break;default:[].forEach.call(Q.container.querySelectorAll(dt),function(st){st[Z]=st[Z]||[],st[Z].push(pt)});break}}),[G,nt]}}]),K}(c.default);q.DEFAULTS={matchers:[],matchVisual:!0};function I(V,K,Y){return(typeof K>"u"?"undefined":N(K))==="object"?Object.keys(K).reduce(function(Q,G){return I(Q,G,K[G])},V):V.reduce(function(Q,G){return G.attributes&&G.attributes[K]?Q.push(G):Q.insert(G.insert,(0,v.default)({},w({},K,Y),G.attributes))},new o.default)}function H(V){if(V.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return V[K]||(V[K]=window.getComputedStyle(V))}function j(V,K){for(var Y="",Q=V.ops.length-1;Q>=0&&Y.length<K.length;--Q){var G=V.ops[Q];if(typeof G.insert!="string")break;Y=G.insert+Y}return Y.slice(-1*K.length)===K}function L(V){if(V.childNodes.length===0)return!1;var K=H(V);return["block","list-item"].indexOf(K.display)>-1}function C(V,K,Y){return V.nodeType===V.TEXT_NODE?Y.reduce(function(Q,G){return G(V,Q)},new o.default):V.nodeType===V.ELEMENT_NODE?[].reduce.call(V.childNodes||[],function(Q,G){var nt=C(G,K,Y);return G.nodeType===V.ELEMENT_NODE&&(nt=K.reduce(function(rt,it){return it(G,rt)},nt),nt=(G[Z]||[]).reduce(function(rt,it){return it(G,rt)},nt)),Q.concat(nt)},new o.default):new o.default}function $(V,K,Y){return I(Y,V,!0)}function z(V,K){var Y=e.default.Attributor.Attribute.keys(V),Q=e.default.Attributor.Class.keys(V),G=e.default.Attributor.Style.keys(V),nt={};return Y.concat(Q).concat(G).forEach(function(rt){var it=e.default.query(rt,e.default.Scope.ATTRIBUTE);it!=null&&(nt[it.attrName]=it.value(V),nt[it.attrName])||(it=M[rt],it!=null&&(it.attrName===rt||it.keyName===rt)&&(nt[it.attrName]=it.value(V)||void 0),it=k[rt],it!=null&&(it.attrName===rt||it.keyName===rt)&&(it=k[rt],nt[it.attrName]=it.value(V)||void 0))}),Object.keys(nt).length>0&&(K=I(K,nt)),K}function W(V,K){var Y=e.default.query(V);if(Y==null)return K;if(Y.prototype instanceof e.default.Embed){var Q={},G=Y.value(V);G!=null&&(Q[Y.blotName]=G,K=new o.default().insert(Q,Y.formats(V)))}else typeof Y.formats=="function"&&(K=I(K,Y.blotName,Y.formats(V)));return K}function X(V,K){return j(K,` `)||K.insert(` `),K}function J(){return new o.default}function tt(V,K){var Y=e.default.query(V);if(Y==null||Y.blotName!=="list-item"||!j(K,` `))return K;for(var Q=-1,G=V.parentNode;!G.classList.contains("ql-clipboard");)(e.default.query(G)||{}).blotName==="list"&&(Q+=1),G=G.parentNode;return Q<=0?K:K.compose(new o.default().retain(K.length()-1).retain(1,{indent:Q}))}function lt(V,K){return j(K,` `)||(L(V)||K.length()>0&&V.nextSibling&&L(V.nextSibling))&&K.insert(` `),K}function at(V,K){if(L(V)&&V.nextElementSibling!=null&&!j(K,` `)){var Y=V.offsetHeight+parseFloat(H(V).marginTop)+parseFloat(H(V).marginBottom);V.nextElementSibling.offsetTop>V.offsetTop+Y*1.5&&K.insert(` `)}return K}function ht(V,K){var Y={},Q=V.style||{};return Q.fontStyle&&H(V).fontStyle==="italic"&&(Y.italic=!0),Q.fontWeight&&(H(V).fontWeight.startsWith("bold")||parseInt(H(V).fontWeight)>=700)&&(Y.bold=!0),Object.keys(Y).length>0&&(K=I(K,Y)),parseFloat(Q.textIndent||0)>0&&(K=new o.default().insert(" ").concat(K)),K}function ft(V,K){var Y=V.data;if(V.parentNode.tagName==="O:P")return K.insert(Y.trim());if(Y.trim().length===0&&V.parentNode.classList.contains("ql-clipboard"))return K;if(!H(V.parentNode).whiteSpace.startsWith("pre")){var Q=function(nt,rt){return rt=rt.replace(/[^\u00a0]/g,""),rt.length<1&&nt?" ":rt};Y=Y.replace(/\r\n/g," ").replace(/\n/g," "),Y=Y.replace(/\s\s+/g,Q.bind(Q,!0)),(V.previousSibling==null&&L(V.parentNode)||V.previousSibling!=null&&L(V.previousSibling))&&(Y=Y.replace(/^\s+/,Q.bind(Q,!1))),(V.nextSibling==null&&L(V.parentNode)||V.nextSibling!=null&&L(V.nextSibling))&&(Y=Y.replace(/\s+$/,Q.bind(Q,!1)))}return K.insert(Y)}h.default=q,h.matchAttributor=z,h.matchBlot=W,h.matchNewline=lt,h.matchSpacing=at,h.matchText=ft},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),g=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:u(c,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},m=s(6),p=v(m);function v(u){return u&&u.__esModule?u:{default:u}}function f(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return f(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,[{key:"optimize",value:function(r){g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return g(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(p.default);e.blotName="bold",e.tagName=["STRONG","B"],h.default=e},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.addControls=h.default=void 0;var N=function(){function y(b,w){var S=[],R=!0,D=!1,F=void 0;try{for(var Z=b[Symbol.iterator](),B;!(R=(B=Z.next()).done)&&(S.push(B.value),!(w&&S.length===w));R=!0);}catch(M){D=!0,F=M}finally{try{!R&&Z.return&&Z.return()}finally{if(D)throw F}}return S}return function(b,w){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return y(b,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function y(b,w){for(var S=0;S<w.length;S++){var R=w[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(b,R.key,R)}}return function(b,w,S){return w&&y(b.prototype,w),S&&y(b,S),b}}(),m=s(2),p=r(m),v=s(0),f=r(v),o=s(5),t=r(o),e=s(10),u=r(e),l=s(9),a=r(l);function r(y){return y&&y.__esModule?y:{default:y}}function i(y,b,w){return b in y?Object.defineProperty(y,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):y[b]=w,y}function c(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function n(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function d(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var A=(0,u.default)("quill:toolbar"),E=function(y){d(b,y);function b(w,S){c(this,b);var R=n(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,w,S));if(Array.isArray(R.options.container)){var D=document.createElement("div");x(D,R.options.container),w.container.parentNode.insertBefore(D,w.container),R.container=D}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var F;return F=A.error("Container required for toolbar",R.options),n(R,F)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(Z){R.addHandler(Z,R.options.handlers[Z])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(Z){R.attach(Z)}),R.quill.on(t.default.events.EDITOR_CHANGE,function(Z,B){Z===t.default.events.SELECTION_CHANGE&&R.update(B)}),R.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var Z=R.quill.selection.getRange(),B=N(Z,1),M=B[0];R.update(M)}),R}return g(b,[{key:"addHandler",value:function(S,R){this.handlers[S]=R}},{key:"attach",value:function(S){var R=this,D=[].find.call(S.classList,function(Z){return Z.indexOf("ql-")===0});if(D){if(D=D.slice(3),S.tagName==="BUTTON"&&S.setAttribute("type","button"),this.handlers[D]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[D]==null){A.warn("ignoring attaching to disabled format",D,S);return}if(f.default.query(D)==null){A.warn("ignoring attaching to nonexistent format",D,S);return}}var F=S.tagName==="SELECT"?"change":"click";S.addEventListener(F,function(Z){var B=void 0;if(S.tagName==="SELECT"){if(S.selectedIndex<0)return;var M=S.options[S.selectedIndex];M.hasAttribute("selected")?B=!1:B=M.value||!1}else S.classList.contains("ql-active")?B=!1:B=S.value||!S.hasAttribute("value"),Z.preventDefault();R.quill.focus();var k=R.quill.selection.getRange(),q=N(k,1),I=q[0];if(R.handlers[D]!=null)R.handlers[D].call(R,B);else if(f.default.query(D).prototype instanceof f.default.Embed){if(B=prompt("Enter "+D),!B)return;R.quill.updateContents(new p.default().retain(I.index).delete(I.length).insert(i({},D,B)),t.default.sources.USER)}else R.quill.format(D,B,t.default.sources.USER);R.update(I)}),this.controls.push([D,S])}}},{key:"update",value:function(S){var R=S==null?{}:this.quill.getFormat(S);this.controls.forEach(function(D){var F=N(D,2),Z=F[0],B=F[1];if(B.tagName==="SELECT"){var M=void 0;if(S==null)M=null;else if(R[Z]==null)M=B.querySelector("option[selected]");else if(!Array.isArray(R[Z])){var k=R[Z];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),M=B.querySelector('option[value="'+k+'"]')}M==null?(B.value="",B.selectedIndex=-1):M.selected=!0}else if(S==null)B.classList.remove("ql-active");else if(B.hasAttribute("value")){var q=R[Z]===B.getAttribute("value")||R[Z]!=null&&R[Z].toString()===B.getAttribute("value")||R[Z]==null&&!B.getAttribute("value");B.classList.toggle("ql-active",q)}else B.classList.toggle("ql-active",R[Z]!=null)})}}]),b}(a.default);E.DEFAULTS={};function T(y,b,w){var S=document.createElement("button");S.setAttribute("type","button"),S.classList.add("ql-"+b),w!=null&&(S.value=w),y.appendChild(S)}function x(y,b){Array.isArray(b[0])||(b=[b]),b.forEach(function(w){var S=document.createElement("span");S.classList.add("ql-formats"),w.forEach(function(R){if(typeof R=="string")T(S,R);else{var D=Object.keys(R)[0],F=R[D];Array.isArray(F)?_(S,D,F):T(S,D,F)}}),y.appendChild(S)})}function _(y,b,w){var S=document.createElement("select");S.classList.add("ql-"+b),w.forEach(function(R){var D=document.createElement("option");R!==!1?D.setAttribute("value",R):D.setAttribute("selected","selected"),S.appendChild(D)}),y.appendChild(S)}E.DEFAULTS={container:null,handlers:{clean:function(){var b=this,w=this.quill.getSelection();if(w!=null)if(w.length==0){var S=this.quill.getFormat();Object.keys(S).forEach(function(R){f.default.query(R,f.default.Scope.INLINE)!=null&&b.quill.format(R,!1)})}else this.quill.removeFormat(w,t.default.sources.USER)},direction:function(b){var w=this.quill.getFormat().align;b==="rtl"&&w==null?this.quill.format("align","right",t.default.sources.USER):!b&&w==="right"&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",b,t.default.sources.USER)},indent:function(b){var w=this.quill.getSelection(),S=this.quill.getFormat(w),R=parseInt(S.indent||0);if(b==="+1"||b==="-1"){var D=b==="+1"?1:-1;S.direction==="rtl"&&(D*=-1),this.quill.format("indent",R+D,t.default.sources.USER)}},link:function(b){b===!0&&(b=prompt("Enter link URL:")),this.quill.format("link",b,t.default.sources.USER)},list:function(b){var w=this.quill.getSelection(),S=this.quill.getFormat(w);b==="check"?S.list==="checked"||S.list==="unchecked"?this.quill.format("list",!1,t.default.sources.USER):this.quill.format("list","unchecked",t.default.sources.USER):this.quill.format("list",b,t.default.sources.USER)}}},h.default=E,h.addControls=x},function(O,h){O.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(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),g=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:u(c,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},m=s(28),p=v(m);function v(u){return u&&u.__esModule?u:{default:u}}function f(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(a,r){f(this,l);var i=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(c){c.classList.add("ql-primary")}),i}return N(l,[{key:"buildItem",value:function(r){var i=g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i);var c=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";c&&(c.tagName==="line"?c.style.stroke=n:c.style.fill=n)}}]),l}(p.default);h.default=e},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),g=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:u(c,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},m=s(28),p=v(m);function v(u){return u&&u.__esModule?u:{default:u}}function f(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(a,r){f(this,l);var i=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(c){c.innerHTML=r[c.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return N(l,[{key:"selectItem",value:function(r,i){g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),l}(p.default);h.default=e},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function p(v,f){for(var o=0;o<f.length;o++){var t=f[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,t.key,t)}}return function(v,f,o){return f&&p(v.prototype,f),o&&p(v,o),v}}();function g(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}var m=function(){function p(v,f){var o=this;g(this,p),this.quill=v,this.boundsContainer=f||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return N(p,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var o=f.left+f.width/2-this.root.offsetWidth/2,t=f.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),l=0;if(u.right>e.right&&(l=e.right-u.right,this.root.style.left=o+l+"px"),u.left<e.left&&(l=e.left-u.left,this.root.style.left=o+l+"px"),u.bottom>e.bottom){var a=u.bottom-u.top,r=f.bottom-f.top+a;this.root.style.top=t-r+"px",this.root.classList.add("ql-flip")}return l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),p}();h.default=m},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function _(y,b){var w=[],S=!0,R=!1,D=void 0;try{for(var F=y[Symbol.iterator](),Z;!(S=(Z=F.next()).done)&&(w.push(Z.value),!(b&&w.length===b));S=!0);}catch(B){R=!0,D=B}finally{try{!S&&F.return&&F.return()}finally{if(R)throw D}}return w}return function(y,b){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return _(y,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function _(y,b,w){y===null&&(y=Function.prototype);var S=Object.getOwnPropertyDescriptor(y,b);if(S===void 0){var R=Object.getPrototypeOf(y);return R===null?void 0:_(R,b,w)}else{if("value"in S)return S.value;var D=S.get;return D===void 0?void 0:D.call(w)}},m=function(){function _(y,b){for(var w=0;w<b.length;w++){var S=b[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}return function(y,b,w){return b&&_(y.prototype,b),w&&_(y,w),y}}(),p=s(3),v=c(p),f=s(8),o=c(f),t=s(43),e=c(t),u=s(27),l=c(u),a=s(15),r=s(41),i=c(r);function c(_){return _&&_.__esModule?_:{default:_}}function n(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function d(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function A(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],T=function(_){A(y,_);function y(b,w){n(this,y),w.modules.toolbar!=null&&w.modules.toolbar.container==null&&(w.modules.toolbar.container=E);var S=d(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b,w));return S.quill.container.classList.add("ql-snow"),S}return m(y,[{key:"extendToolbar",value:function(w){w.container.classList.add("ql-snow"),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),i.default),this.tooltip=new x(this.quill,this.options.bounds),w.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(S,R){w.handlers.link.call(w,!R.format.link)})}}]),y}(e.default);T.DEFAULTS=(0,v.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(y){if(y){var b=this.quill.getSelection();if(b==null||b.length==0)return;var w=this.quill.getText(b);/^\S+@\S+\.\S+$/.test(w)&&w.indexOf("mailto:")!==0&&(w="mailto:"+w);var S=this.quill.theme.tooltip;S.edit("link",w)}else this.quill.format("link",!1)}}}}});var x=function(_){A(y,_);function y(b,w){n(this,y);var S=d(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b,w));return S.preview=S.root.querySelector("a.ql-preview"),S}return m(y,[{key:"listen",value:function(){var w=this;g(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(S){w.root.classList.contains("ql-editing")?w.save():w.edit("link",w.preview.textContent),S.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(S){if(w.linkRange!=null){var R=w.linkRange;w.restoreFocus(),w.quill.formatText(R,"link",!1,o.default.sources.USER),delete w.linkRange}S.preventDefault(),w.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(S,R,D){if(S!=null){if(S.length===0&&D===o.default.sources.USER){var F=w.quill.scroll.descendant(l.default,S.index),Z=N(F,2),B=Z[0],M=Z[1];if(B!=null){w.linkRange=new a.Range(S.index-M,B.length());var k=l.default.formats(B.domNode);w.preview.textContent=k,w.preview.setAttribute("href",k),w.show(),w.position(w.quill.getBounds(w.linkRange));return}}else delete w.linkRange;w.hide()}})}},{key:"show",value:function(){g(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),y}(t.BaseTooltip);x.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(""),h.default=T},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(29),g=G(N),m=s(36),p=s(38),v=s(64),f=s(65),o=G(f),t=s(66),e=G(t),u=s(67),l=G(u),a=s(37),r=s(26),i=s(39),c=s(40),n=s(56),d=G(n),A=s(68),E=G(A),T=s(27),x=G(T),_=s(69),y=G(_),b=s(70),w=G(b),S=s(71),R=G(S),D=s(72),F=G(D),Z=s(73),B=G(Z),M=s(13),k=G(M),q=s(74),I=G(q),H=s(75),j=G(H),L=s(57),C=G(L),$=s(41),z=G($),W=s(28),X=G(W),J=s(59),tt=G(J),lt=s(60),at=G(lt),ht=s(61),ft=G(ht),V=s(108),K=G(V),Y=s(62),Q=G(Y);function G(nt){return nt&&nt.__esModule?nt:{default:nt}}g.default.register({"attributors/attribute/direction":p.DirectionAttribute,"attributors/class/align":m.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":p.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":c.SizeClass,"attributors/style/align":m.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":p.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":c.SizeStyle},!0),g.default.register({"formats/align":m.AlignClass,"formats/direction":p.DirectionClass,"formats/indent":v.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":c.SizeClass,"formats/blockquote":o.default,"formats/code-block":k.default,"formats/header":e.default,"formats/list":l.default,"formats/bold":d.default,"formats/code":M.Code,"formats/italic":E.default,"formats/link":x.default,"formats/script":y.default,"formats/strike":w.default,"formats/underline":R.default,"formats/image":F.default,"formats/video":B.default,"formats/list/item":u.ListItem,"modules/formula":I.default,"modules/syntax":j.default,"modules/toolbar":C.default,"themes/bubble":K.default,"themes/snow":Q.default,"ui/icons":z.default,"ui/picker":X.default,"ui/icon-picker":at.default,"ui/color-picker":tt.default,"ui/tooltip":ft.default},!0),h.default=g.default},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.IndentClass=void 0;var N=function(){function l(a,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(a,c.key,c)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),g=function l(a,r,i){a===null&&(a=Function.prototype);var c=Object.getOwnPropertyDescriptor(a,r);if(c===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,r,i)}else{if("value"in c)return c.value;var d=c.get;return d===void 0?void 0:d.call(i)}},m=s(0),p=v(m);function v(l){return l&&l.__esModule?l:{default:l}}function f(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function t(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var e=function(l){t(a,l);function a(){return f(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return N(a,[{key:"add",value:function(i,c){if(c==="+1"||c==="-1"){var n=this.value(i)||0;c=c==="+1"?n+1:n-1}return c===0?(this.remove(i),!0):g(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,i,c)}},{key:"canAdd",value:function(i,c){return g(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,c)||g(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,parseInt(c))}},{key:"value",value:function(i){return parseInt(g(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,i))||void 0}}]),a}(p.default.Attributor.Class),u=new e("indent","ql-indent",{scope:p.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});h.IndentClass=u},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(4),g=m(N);function m(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function f(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){f(e,t);function e(){return p(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default);o.blotName="blockquote",o.tagName="blockquote",h.default=o},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function e(u,l){for(var a=0;a<l.length;a++){var r=l[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,l,a){return l&&e(u.prototype,l),a&&e(u,a),u}}(),g=s(4),m=p(g);function p(e){return e&&e.__esModule?e:{default:e}}function v(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function f(e,u){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:e}function o(e,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(e,u):e.__proto__=u)}var t=function(e){o(u,e);function u(){return v(this,u),f(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return N(u,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),u}(m.default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],h.default=t},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.ListItem=void 0;var N=function(){function n(d,A){for(var E=0;E<A.length;E++){var T=A[E];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(d,T.key,T)}}return function(d,A,E){return A&&n(d.prototype,A),E&&n(d,E),d}}(),g=function n(d,A,E){d===null&&(d=Function.prototype);var T=Object.getOwnPropertyDescriptor(d,A);if(T===void 0){var x=Object.getPrototypeOf(d);return x===null?void 0:n(x,A,E)}else{if("value"in T)return T.value;var _=T.get;return _===void 0?void 0:_.call(E)}},m=s(0),p=e(m),v=s(4),f=e(v),o=s(25),t=e(o);function e(n){return n&&n.__esModule?n:{default:n}}function u(n,d,A){return d in n?Object.defineProperty(n,d,{value:A,enumerable:!0,configurable:!0,writable:!0}):n[d]=A,n}function l(n,d){if(!(n instanceof d))throw new TypeError("Cannot call a class as a function")}function a(n,d){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:n}function r(n,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);n.prototype=Object.create(d&&d.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(n,d):n.__proto__=d)}var i=function(n){r(d,n);function d(){return l(this,d),a(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return N(d,[{key:"format",value:function(E,T){E===c.blotName&&!T?this.replaceWith(p.default.create(this.statics.scope)):g(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,E,T)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():g(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,T){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,T),this):(this.parent.unwrap(),g(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replaceWith",this).call(this,E,T))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:g(d.__proto__||Object.getPrototypeOf(d),"formats",this).call(this,E)}}]),d}(f.default);i.blotName="list-item",i.tagName="LI";var c=function(n){r(d,n),N(d,null,[{key:"create",value:function(E){var T=E==="ordered"?"OL":"UL",x=g(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,T);return(E==="checked"||E==="unchecked")&&x.setAttribute("data-checked",E==="checked"),x}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function d(A){l(this,d);var E=a(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,A)),T=function(_){if(_.target.parentNode===A){var y=E.statics.formats(A),b=p.default.find(_.target);y==="checked"?b.format("list","unchecked"):y==="unchecked"&&b.format("list","checked")}};return A.addEventListener("touchstart",T),A.addEventListener("mousedown",T),E}return N(d,[{key:"format",value:function(E,T){this.children.length>0&&this.children.tail.format(E,T)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,T){if(E instanceof i)g(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,E,T);else{var x=T==null?this.length():T.offset(this),_=this.split(x);_.parent.insertBefore(E,_)}}},{key:"optimize",value:function(E){g(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,E);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(E){if(E.statics.blotName!==this.statics.blotName){var T=p.default.create(this.statics.defaultChild);E.moveChildren(T),this.appendChild(T)}g(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replace",this).call(this,E)}}]),d}(t.default);c.blotName="list",c.scope=p.default.Scope.BLOCK_BLOT,c.tagName=["OL","UL"],c.defaultChild="list-item",c.allowedChildren=[i],h.ListItem=i,h.default=c},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(56),g=m(N);function m(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function f(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){f(e,t);function e(){return p(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default);o.blotName="italic",o.tagName=["EM","I"],h.default=o},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),g=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:u(c,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},m=s(6),p=v(m);function v(u){return u&&u.__esModule?u:{default:u}}function f(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return f(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):g(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),l}(p.default);e.blotName="script",e.tagName=["SUB","SUP"],h.default=e},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(6),g=m(N);function m(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function f(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){f(e,t);function e(){return p(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default);o.blotName="strike",o.tagName="S",h.default=o},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=s(6),g=m(N);function m(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function f(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){f(e,t);function e(){return p(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default);o.blotName="underline",o.tagName="U",h.default=o},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function a(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&a(r.prototype,i),c&&a(r,c),r}}(),g=function a(r,i,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:a(d,i,c)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(c)}},m=s(0),p=f(m),v=s(27);function f(a){return a&&a.__esModule?a:{default:a}}function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function e(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var u=["alt","height","width"],l=function(a){e(r,a);function r(){return o(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return N(r,[{key:"format",value:function(c,n){u.indexOf(c)>-1?n?this.domNode.setAttribute(c,n):this.domNode.removeAttribute(c):g(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,c,n)}}],[{key:"create",value:function(c){var n=g(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,c);return typeof c=="string"&&n.setAttribute("src",this.sanitize(c)),n}},{key:"formats",value:function(c){return u.reduce(function(n,d){return c.hasAttribute(d)&&(n[d]=c.getAttribute(d)),n},{})}},{key:"match",value:function(c){return/\.(jpe?g|gif|png)$/.test(c)||/^data:image\/.+;base64/.test(c)}},{key:"sanitize",value:function(c){return(0,v.sanitize)(c,["http","https","data"])?c:"//:0"}},{key:"value",value:function(c){return c.getAttribute("src")}}]),r}(p.default.Embed);l.blotName="image",l.tagName="IMG",h.default=l},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0});var N=function(){function a(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&a(r.prototype,i),c&&a(r,c),r}}(),g=function a(r,i,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:a(d,i,c)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(c)}},m=s(4),p=s(27),v=f(p);function f(a){return a&&a.__esModule?a:{default:a}}function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function e(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var u=["height","width"],l=function(a){e(r,a);function r(){return o(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return N(r,[{key:"format",value:function(c,n){u.indexOf(c)>-1?n?this.domNode.setAttribute(c,n):this.domNode.removeAttribute(c):g(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,c,n)}}],[{key:"create",value:function(c){var n=g(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,c);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(c)),n}},{key:"formats",value:function(c){return u.reduce(function(n,d){return c.hasAttribute(d)&&(n[d]=c.getAttribute(d)),n},{})}},{key:"sanitize",value:function(c){return v.default.sanitize(c)}},{key:"value",value:function(c){return c.getAttribute("src")}}]),r}(m.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",h.default=l},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.FormulaBlot=void 0;var N=function(){function c(n,d){for(var A=0;A<d.length;A++){var E=d[A];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(n,E.key,E)}}return function(n,d,A){return d&&c(n.prototype,d),A&&c(n,A),n}}(),g=function c(n,d,A){n===null&&(n=Function.prototype);var E=Object.getOwnPropertyDescriptor(n,d);if(E===void 0){var T=Object.getPrototypeOf(n);return T===null?void 0:c(T,d,A)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(A)}},m=s(35),p=e(m),v=s(5),f=e(v),o=s(9),t=e(o);function e(c){return c&&c.__esModule?c:{default:c}}function u(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function l(c,n){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:c}function a(c,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);c.prototype=Object.create(n&&n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(c,n):c.__proto__=n)}var r=function(c){a(n,c);function n(){return u(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return N(n,null,[{key:"create",value:function(A){var E=g(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,A);return typeof A=="string"&&(window.katex.render(A,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",A)),E}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),n}(p.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(c){a(n,c),N(n,null,[{key:"register",value:function(){f.default.register(r,!0)}}]);function n(){u(this,n);var d=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return d}return n}(t.default);h.FormulaBlot=r,h.default=i},function(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.CodeToken=h.CodeBlock=void 0;var N=function(){function A(E,T){for(var x=0;x<T.length;x++){var _=T[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(E,_.key,_)}}return function(E,T,x){return T&&A(E.prototype,T),x&&A(E,x),E}}(),g=function A(E,T,x){E===null&&(E=Function.prototype);var _=Object.getOwnPropertyDescriptor(E,T);if(_===void 0){var y=Object.getPrototypeOf(E);return y===null?void 0:A(y,T,x)}else{if("value"in _)return _.value;var b=_.get;return b===void 0?void 0:b.call(x)}},m=s(0),p=l(m),v=s(5),f=l(v),o=s(9),t=l(o),e=s(13),u=l(e);function l(A){return A&&A.__esModule?A:{default:A}}function a(A,E){if(!(A instanceof E))throw new TypeError("Cannot call a class as a function")}function r(A,E){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:A}function i(A,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);A.prototype=Object.create(E&&E.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(A,E):A.__proto__=E)}var c=function(A){i(E,A);function E(){return a(this,E),r(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return N(E,[{key:"replaceWith",value:function(x){this.domNode.textContent=this.domNode.textContent,this.attach(),g(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,x)}},{key:"highlight",value:function(x){var _=this.domNode.textContent;this.cachedText!==_&&((_.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=x(_),this.domNode.normalize(),this.attach()),this.cachedText=_)}}]),E}(u.default);c.className="ql-syntax";var n=new p.default.Attributor.Class("token","hljs",{scope:p.default.Scope.INLINE}),d=function(A){i(E,A),N(E,null,[{key:"register",value:function(){f.default.register(n,!0),f.default.register(c,!0)}}]);function E(T,x){a(this,E);var _=r(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,T,x));if(typeof _.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var y=null;return _.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(y),y=setTimeout(function(){_.highlight(),y=null},_.options.interval)}),_.highlight(),_}return N(E,[{key:"highlight",value:function(){var x=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var _=this.quill.getSelection();this.quill.scroll.descendants(c).forEach(function(y){y.highlight(x.options.highlight)}),this.quill.update(f.default.sources.SILENT),_!=null&&this.quill.setSelection(_,f.default.sources.SILENT)}}}]),E}(t.default);d.DEFAULTS={highlight:function(){return window.hljs==null?null:function(A){var E=window.hljs.highlightAuto(A);return E.value}}(),interval:1e3},h.CodeBlock=c,h.CodeToken=n,h.default=d},function(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h){O.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(O,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.BubbleTooltip=void 0;var N=function E(T,x,_){T===null&&(T=Function.prototype);var y=Object.getOwnPropertyDescriptor(T,x);if(y===void 0){var b=Object.getPrototypeOf(T);return b===null?void 0:E(b,x,_)}else{if("value"in y)return y.value;var w=y.get;return w===void 0?void 0:w.call(_)}},g=function(){function E(T,x){for(var _=0;_<x.length;_++){var y=x[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(T,y.key,y)}}return function(T,x,_){return x&&E(T.prototype,x),_&&E(T,_),T}}(),m=s(3),p=a(m),v=s(8),f=a(v),o=s(43),t=a(o),e=s(15),u=s(41),l=a(u);function a(E){return E&&E.__esModule?E:{default:E}}function r(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")}function i(E,T){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:E}function c(E,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);E.prototype=Object.create(T&&T.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(E,T):E.__proto__=T)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],d=function(E){c(T,E);function T(x,_){r(this,T),_.modules.toolbar!=null&&_.modules.toolbar.container==null&&(_.modules.toolbar.container=n);var y=i(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,x,_));return y.quill.container.classList.add("ql-bubble"),y}return g(T,[{key:"extendToolbar",value:function(_){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(_.container),this.buildButtons([].slice.call(_.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(_.container.querySelectorAll("select")),l.default)}}]),T}(t.default);d.DEFAULTS=(0,p.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){T?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(E){c(T,E);function T(x,_){r(this,T);var y=i(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,x,_));return y.quill.on(f.default.events.EDITOR_CHANGE,function(b,w,S,R){if(b===f.default.events.SELECTION_CHANGE)if(w!=null&&w.length>0&&R===f.default.sources.USER){y.show(),y.root.style.left="0px",y.root.style.width="",y.root.style.width=y.root.offsetWidth+"px";var D=y.quill.getLines(w.index,w.length);if(D.length===1)y.position(y.quill.getBounds(w));else{var F=D[D.length-1],Z=y.quill.getIndex(F),B=Math.min(F.length()-1,w.index+w.length-Z),M=y.quill.getBounds(new e.Range(Z,B));y.position(M)}}else document.activeElement!==y.textbox&&y.quill.hasFocus()&&y.hide()}),y}return g(T,[{key:"listen",value:function(){var _=this;N(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){_.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!_.root.classList.contains("ql-hidden")){var y=_.quill.getSelection();y!=null&&_.position(_.quill.getBounds(y))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(_){var y=N(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,_),b=this.root.querySelector(".ql-tooltip-arrow");if(b.style.marginLeft="",y===0)return y;b.style.marginLeft=-1*y-b.offsetWidth/2+"px"}}]),T}(o.BaseTooltip);A.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),h.BubbleTooltip=A,h.default=d},function(O,h,s){O.exports=s(63)}]).default})})(Vt);var he=Vt.exports;const et=ne(he);class de{constructor(P,O){this.quill=P,this.options={defaultLength:1,...O},this.container=O.container,P.on("text-change",this.update.bind(this)),this.update()}update(){for(;this.container.firstChild;)this.container.removeChild(this.container.firstChild);const P=this.quill.getLines();if(this.options.defaultLength>P.length)for(let s=P.length;this.options.defaultLength>s;s++)P.push({});let O=0;for(let s=0;s<P.length;s++){const N=P[s].domNode?P[s].domNode.offsetHeight:25,g=document.createElement("div");g.style.minHeight=`${N}px`,g.innerHTML=s+1,this.container.appendChild(g),O+=N}const h=this.quill.container.querySelector(".ql-editor");if(h){const s=window.getComputedStyle(h);h.style.minHeight=`${O+parseInt(s.getPropertyValue("padding-top"))+parseInt(s.getPropertyValue("padding-bottom"))}px`}}}et.register("modules/lineNumbers",de,!0);const pe=(U,P,O)=>{const h=U;return Object.keys(P).forEach(s=>{-1<O.indexOf(s)?h.dataset[s]=P[s]:delete h.dataset[s]}),h},Ht=(U,P)=>P.reduce((O,h)=>{const s=U.lastIndexOf(h);return s>O.mentionCharIndex?{mentionChar:h,mentionCharIndex:s}:{mentionChar:O.mentionChar,mentionCharIndex:O.mentionCharIndex}},{mentionChar:null,mentionCharIndex:-1}),ve=(U,P)=>P.test(U),ye=(U,P,O)=>-1<U?!(O&&!(U===0||P[U-1].match(/\s/g))):!1,me=et.import("blots/embed");class bt extends me{constructor(P){super(P),this.clickHandler=this.clickHandler.bind(this),P.addEventListener("click",this.clickHandler)}static getQuillInstance(P){let O=et.find(P);if(O){for(;O.parent;)O=O.parent;return O.domNode.parentNode?et.find(O.domNode.parentNode):null}}clickHandler(){const P=bt.getQuillInstance(this.domNode),O=P.getModule("mention");if(O.currentBlot=this,O.currentNode=this.domNode,O.isOpen)return this.domNode.querySelector(".aioseo-tag .tag-toggle svg").classList.remove("rotated"),O.hideMentionList();this.domNode.querySelector(".aioseo-tag .tag-toggle svg").classList.add("rotated"),O.mentionCharPos=this.offset(P.scroll),O.options.source("",O.renderList.bind(O,this.domNode.dataset.denotationChar),this.domNode.dataset.denotationChar)}static create(P){const O=super.create(),h=document.createElement("span");if(h.className="ql-mention-denotation-char",h.innerHTML=P.denotationChar,O.appendChild(h),O.innerHTML+=P.value,P.custom&&P.customValue){let s=O.querySelector(".tag-custom");if(!s){s=document.createElement("span"),s.classList.add("tag-custom");const N=O.querySelector(".tag-name");N.parentNode.insertBefore(s,N.nextSibling)}s.innerText=" - "+(P.customValue||"")}return setTimeout(()=>{const s=bt.getQuillInstance(O);if(s){const N=s.getModule("mention");N.currentNode=O}},0),bt.setDataValues(O,P)}static setDataValues(P,O){const h=P;return Object.keys(O).forEach(s=>{h.dataset[s]=O[s]}),h}static value(P){return P.dataset}format(P,O){P==="customValue"&&O?this.domNode.dataset.customValue=O:super.format(P,O)}}bt.blotName="mention";bt.tagName="span";bt.className="mention";et.register(bt);const vt={TAB:9,ENTER:13,ESCAPE:27,UP:38,DOWN:40};class ge{constructor(P,O){this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.activeElement=null,this.currentBlot=null,this.currentNode=null,this.quill=P,this.silentInsert=!1,this.insertingCustomItem=!1,this.options={source:null,renderItem(m){return`${m.value}`},onSelect(m,p){p(m)},mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:1e3,offsetTop:2,offsetLeft:0,isolateCharacter:!1,fixMentionsToQuill:!1,defaultMenuOrientation:"bottom",dataAttributes:["id","value","denotationChar","link","target"],linkTarget:"_blank",onOpen(){return!0},onClose(){return!0},listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0},Object.assign(this.options,O,{dataAttributes:Array.isArray(O.dataAttributes)?this.options.dataAttributes.concat(O.dataAttributes):this.options.dataAttributes}),this.mentionContainer=document.createElement("div"),this.mentionContainer.className=this.options.mentionContainerClass?this.options.mentionContainerClass:"",this.mentionContainer.style.cssText="display: none; position: absolute;",this.mentionContainer.onmousemove=this.onContainerMouseMove.bind(this),this.options.fixMentionsToQuill&&(this.mentionContainer.style.width="auto"),this.customFieldInput=document.createElement("div"),this.customFieldInput.className=this.options.mentionPrependClassCustom?this.options.mentionPrependClassCustom:"",this.customFieldInput.innerHTML=this.options.customFieldInput||"",this.mentionContainer.appendChild(this.customFieldInput),this.mentionSearch=document.createElement("div"),this.mentionSearch.className=this.options.mentionPrependClass?this.options.mentionPrependClass:"",this.mentionSearch.innerHTML=this.options.prependMentionList||"",this.mentionContainer.appendChild(this.mentionSearch);const h=this.mentionSearch.querySelector(".aioseo-trash");h&&h.addEventListener("click",()=>{this.currentBlot.remove(),this.hideMentionList(),this.removeOrphanedMentionChar()}),this.customFieldInput.addEventListener("click",m=>{this.activeElement=m.target;const p=m.target.querySelector("input");p&&setTimeout(()=>{p.focus()},0)});const s=this.customFieldInput.querySelector("input");s&&s.addEventListener("input",m=>{if(this.currentNode){let p=this.currentNode.querySelector(".tag-custom");if(!p){p=document.createElement("span"),p.classList.add("tag-custom");const v=this.currentNode.querySelector(".tag-name");v.parentNode.insertBefore(p,v.nextSibling)}p.innerText=m.target.value?" - "+m.target.value:"",this.currentBlot=et.find(this.currentNode),this.currentBlot.format("customValue",m.target.value)}}),this.customFieldInput.addEventListener("keydown",m=>{m.keyCode===13&&(this.hideMentionList(),this.removeOrphanedMentionChar()),m.keyCode===27&&(this.hideMentionList(),this.removeOrphanedMentionChar()),m.keyCode===32&&m.preventDefault()}),this.mentionSearch.addEventListener("click",m=>{this.activeElement=m.target}),this.mentionSearch.addEventListener("keydown",m=>{m.keyCode===40&&this.nextItem(),m.keyCode===38&&this.prevItem(),m.keyCode===13&&this.selectItem(),m.keyCode===27&&this.hideMentionList()});const N=this.mentionSearch.querySelector("input");N&&N.addEventListener("input",m=>{const p=this.getTextBeforeCursor(),{mentionChar:v}=Ht(p,this.options.mentionDenotationChars);if(!v&&!this.currentBlot)return;const f=v||this.currentBlot.domNode.dataset.denotationChar;this.options.source(m.target.value,this.renderList.bind(this,f),f)}),this.mentionList=document.createElement("ul"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList);const g=document.createElement("div");g.className="aioseo-documentation-link",g.innerHTML=this.options.documentationDiv||"",g.addEventListener("click",m=>{this.activeElement=m.target}),this.mentionContainer.appendChild(g),this.quill.container.appendChild(this.mentionContainer),P.on("text-change",this.onTextChange.bind(this)),P.on("selection-change",this.onSelectionChange.bind(this)),P.keyboard.addBinding({key:vt.TAB},this.selectHandler.bind(this)),P.keyboard.bindings[vt.TAB].unshift(P.keyboard.bindings[vt.TAB].pop()),P.keyboard.addBinding({key:vt.ENTER},this.selectHandler.bind(this)),P.keyboard.bindings[vt.ENTER].unshift(P.keyboard.bindings[vt.ENTER].pop()),P.keyboard.addBinding({key:vt.ESCAPE},this.escapeHandler.bind(this)),P.keyboard.addBinding({key:vt.UP},this.upHandler.bind(this)),P.keyboard.addBinding({key:vt.DOWN},this.downHandler.bind(this)),P.clipboard.addMatcher(Node.TEXT_NODE,this.clipboardHandler.bind(this))}selectHandler(){return this.isOpen?(this.selectItem(),!1):!0}escapeHandler(){return this.isOpen?(this.hideMentionList(),this.removeOrphanedMentionChar(),!1):!0}removeOrphanedMentionChar(P=!1){let O=!1;!P&&!this.quill.hasFocus()&&(this.quill.focus(),O=!0);const h=this.getTextBeforeCursor();h.charAt(h.length-1)==="#"&&this.quill.deleteText(this.quill.getSelection().index-1,1,et.sources.USER),O&&this.quill.blur()}upHandler(){return this.isOpen?(this.prevItem(),!1):!0}downHandler(){return this.isOpen?(this.nextItem(),!1):!0}clipboardHandler(P,O){if(typeof P.data!="string")return;const h=new RegExp(`${this.options.mentionDenotationChars.join("|")}[A-Za-z_-]+`,"g"),s=P.data.match(h);if(s&&0<s.length){const N=[];let g=P.data;this.mentionCharPos=0,s.forEach(m=>{const p=m.charAt(0),v=m.substr(1).split("-"),f=v[0];delete v[0];const o=v.filter(a=>a).join("-"),t=this.options.source(f,this.renderList.bind(this,p),p,!0,o||null);if(!t)return;const e={denotationChar:this.options.showDenotationChar?p:"",...t};o!==void 0&&(e.customValue=o);const u=g.split(m),l=u.shift();N.push({insert:l}),N.push({insert:{mention:e}}),g=u.join(m)}),N.push({insert:g}),O.ops=N}return O}showMentionList(){if(this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.setMentionContainerPosition(),this.customFieldInput.style.display="none",this.currentNode&&this.currentNode.dataset.custom){this.customFieldInput.style.display="block";const O=this.customFieldInput&&this.customFieldInput.querySelector("input"),h=this.currentNode.querySelector(".tag-custom");O&&h&&(O.value=h.innerText.replace(" - ",""))}const P=this.mentionSearch.querySelector(".aioseo-trash");P&&(P.style.display="block",this.currentBlot||(P.style.display="none")),this.setIsOpen(!0)}hideMentionList(){document.querySelectorAll(".aioseo-tag .tag-toggle svg").forEach(s=>{s.classList.remove("rotated")});const O=this.mentionSearch&&this.mentionSearch.querySelector("input");O&&(O.value="");const h=this.customFieldInput&&this.customFieldInput.querySelector("input");h&&(h.value=""),this.currentBlot=null,this.currentNode=null,this.mentionContainer.style.display="none",this.setIsOpen(!1)}highlightItem(P=!0){if(this.mentionList.childNodes[this.itemIndex]){for(let O=0;O<this.mentionList.childNodes.length;O+=1)this.mentionList.childNodes[O].classList.remove("selected");if(this.mentionList.childNodes[this.itemIndex].classList.add("selected"),P){const O=this.mentionList.childNodes[this.itemIndex].offsetHeight,h=this.itemIndex*O,s=this.mentionContainer.scrollTop,N=s+this.mentionContainer.offsetHeight;h<s?this.mentionContainer.scrollTop=h:h>N-O&&(this.mentionContainer.scrollTop+=h-N+O)}}}getItemData(){const{link:P}=this.mentionList.childNodes[this.itemIndex].dataset,O=typeof P<"u",h=this.mentionList.childNodes[this.itemIndex].dataset.target;return O&&(this.mentionList.childNodes[this.itemIndex].dataset.value=`<a href="${P}" target=${h||this.options.linkTarget}>${this.mentionList.childNodes[this.itemIndex].dataset.value}`),this.mentionList.childNodes[this.itemIndex].dataset}onContainerMouseMove(){this.suspendMouseEnter=!1}selectItem(){const P=this.getItemData();if(!P.id)return this.hideMentionList();this.options.onSelect(P,O=>{this.insertItem(O)}),P.custom||this.hideMentionList()}insertItem(P){const O=P;if(O===null)return;this.options.showDenotationChar||(O.denotationChar=""),P.custom&&(this.insertingCustomItem=!0,setTimeout(()=>{this.insertingCustomItem=!1},50),this.customFieldInput.style.display="block",this.customFieldInput.click());const h=this.mentionCharPos;this.quill.deleteText(this.mentionCharPos,this.cursorPos-this.mentionCharPos,et.sources.USER),this.quill.insertEmbed(h,"mention",O,et.sources.USER),this.options.spaceAfterInsert?(this.quill.insertText(h+1," ",et.sources.USER),this.quill.setSelection(h+2,et.sources.USER)):this.quill.setSelection(h+1,et.sources.USER),P.custom||this.hideMentionList()}onItemMouseEnter(P){if(this.suspendMouseEnter)return;const O=Number(P.target.dataset.index);!Number.isNaN(O)&&O!==this.itemIndex&&(this.itemIndex=O,this.highlightItem(!1))}onItemClick(P){P.preventDefault(),P.stopImmediatePropagation(),this.itemIndex=P.currentTarget.dataset.index,this.highlightItem(),this.selectItem()}renderList(P,O,h,s=!1,N=!1){if(this.mentionList.innerHTML="",O&&0<O.length){if(this.values=O,this.values.length===1&&(this.values[0].name===h||this.values[0].id===h)){if(s)return this.values[0];this.insertItem(this.values[0]);return}else if(s){const g=this.values.find(m=>m.name===h||m.id===h);if(g)return g}else if(N){const g=this.values.find(m=>m.name===h||m.id===h);g&&this.insertItem(g)}for(let g=0;g<O.length;g+=1){const m=document.createElement("li");m.className=this.options.listItemClass?this.options.listItemClass:"",m.dataset.index=g,m.innerHTML=this.options.renderItem(O[g],h),m.onmouseenter=this.onItemMouseEnter.bind(this),m.dataset.denotationChar=P,m.onclick=this.onItemClick.bind(this),this.mentionList.appendChild(pe(m,O[g],this.options.dataAttributes))}this.itemIndex=0,this.highlightItem()}else{const g=document.createElement("li");g.className=this.options.listItemClassNoMatch?this.options.listItemClassNoMatch:"",g.innerHTML=this.options.renderItemNoMatch(),this.mentionList.appendChild(g)}this.showMentionList()}nextItem(){this.itemIndex=(this.itemIndex+1)%this.values.length,this.suspendMouseEnter=!0,this.highlightItem()}prevItem(){this.itemIndex=(this.itemIndex+this.values.length-1)%this.values.length,this.suspendMouseEnter=!0,this.highlightItem()}containerBottomIsNotVisible(){return this.mentionContainer.getBoundingClientRect().bottom>window.innerHeight}containerRightIsNotVisible(P,O){return this.options.fixMentionsToQuill?!1:O.width<P+this.mentionContainer.offsetWidth}setIsOpen(P){this.isOpen!==P&&(P?this.options.onOpen():this.options.onClose(),this.isOpen=P)}setMentionContainerPosition(){const P=this.quill.container.getBoundingClientRect(),O=this.quill.getBounds(this.mentionCharPos),h=this.mentionContainer.offsetHeight;let s=this.options.offsetTop,N=this.options.offsetLeft;if(this.options.fixMentionsToQuill?this.mentionContainer.style.right="0px":N+=O.left,this.containerRightIsNotVisible(N,P)){const g=this.mentionContainer.offsetWidth+this.options.offsetLeft;N=P.width-g}if(this.options.defaultMenuOrientation==="top"){if(this.options.fixMentionsToQuill?s=-1*(h+this.options.offsetTop):s=O.top-(h+this.options.offsetTop),0>=s+P.top){let g=this.options.offsetTop;this.options.fixMentionsToQuill?g+=P.height:g+=O.bottom,s=g}}else if(this.options.fixMentionsToQuill?s+=P.height:s+=O.bottom,this.containerBottomIsNotVisible(s,P)){let g=this.options.offsetTop*-1;this.options.fixMentionsToQuill||(g+=O.top),s=g-h}0<=s?this.options.mentionContainerClass.split(" ").forEach(g=>{this.mentionContainer.classList.add(`${g}-bottom`),this.mentionContainer.classList.remove(`${g}-top`)}):this.options.mentionContainerClass.split(" ").forEach(g=>{this.mentionContainer.classList.add(`${g}-top`),this.mentionContainer.classList.remove(`${g}-bottom`)}),this.mentionContainer.style.top=`${s}px`,this.mentionContainer.style.left=`${N}px`,this.mentionContainer.style.visibility="visible"}getTextBeforeCursor(){const P=Math.max(0,this.cursorPos-this.options.maxChars);return this.quill.getText(P,this.cursorPos-P)}onSomethingChange(){const P=this.quill.getSelection();if(P===null||this.insertingCustomItem)return;this.cursorPos=P.index;const O=this.getTextBeforeCursor(),{mentionChar:h,mentionCharIndex:s}=Ht(O,this.options.mentionDenotationChars);if(ye(s,O,this.options.isolateCharacter)){const N=this.cursorPos-(O.length-s);this.mentionCharPos=N;const g=O.substring(s+h.length);g.length>=this.options.minChars&&ve(g,this.options.allowedChars)?this.options.source(g,this.renderList.bind(this,h),h):this.hideMentionList()}else this.hideMentionList()}onTextChange(P,O,h){h==="user"&&this.onSomethingChange()}onSelectionChange(P){P&&P.length===0?this.onSomethingChange():setTimeout(()=>{this.activeElement?this.activeElement.classList.contains("aioseo-tag-custom")||(this.activeElement=null):this.hideMentionList()},0)}}et.register("modules/mention",ge);const be=et.import("modules/clipboard"),Pt=et.import("formats/code"),Et=et.import("delta");class _e extends be{onPaste(P){const O=this,h=this.options,s=this.quill.getSelection(),N=this.quill.scrollingContainer.scrollTop;let g=new Et().retain(s.index);P.defaultPrevented||!this.quill.isEnabled()||(this.container.focus(),this.quill.selection.update(et.sources.SILENT),setTimeout(function(){g=g.concat(O.convert()).delete(s.length),h.newLines===!1&&g.ops.map(function(m){return typeof m.insert=="string"&&(m.insert=m.insert.replace(/(\r\n|\n|\r)/gm," ")),m}),O.quill.updateContents(g,et.sources.USER),O.quill.setSelection(g.length()-s.length,et.sources.SILENT),O.quill.scrollingContainer.scrollTop=N,O.quill.focus()},1))}convert(P){if(typeof P=="string")return this.container.innerHTML=P.replace(/>\r?\n +</g,"><"),this.convert();const O=this.quill.getFormat(this.quill.selection.savedRange.index);if(O[Pt.blotName]){const g=this.container.innerText;return this.container.innerHTML="",new Et().insert(g,{[Pt.blotName]:O[Pt.blotName]})}const[h,s]=this.prepareMatching();s[0]=Te;let N=Kt(this.container,h,s);return Ee(N,` `)&&N.ops[N.ops.length-1].attributes===null&&(N=N.compose(new Et().retain(N.length()-1).delete(1))),this.container.innerHTML="",N}}const Oe="__ql-matcher";function Kt(U,P,O){return U.nodeType===U.TEXT_NODE?O.reduce(function(s,N){return N(U,s)},new Et):U.nodeType===U.ELEMENT_NODE?[].reduce.call(U.childNodes||[],(h,s)=>{let N=Kt(s,P,O);return s.nodeType===U.ELEMENT_NODE&&(N=P.reduce(function(g,m){return m(s,g)},N),N=(s[Oe]||[]).reduce(function(g,m){return m(s,g)},N)),h.concat(N)},new Et):new Et}function Ee(U,P){let O="";for(let h=U.ops.length-1;0<=h&&O.length<P.length;--h){const s=U.ops[h];if(typeof s.insert!="string")break;O=s.insert+O}return O.slice(-1*P.length)===P}function Te(U,P){let O=U.data;if(U.parentNode.tagName==="O:P")return P.insert(O.trim());if(!Wt(U.parentNode).whiteSpace.startsWith("pre")){const h=function(s,N){return N=N.replace(/[^\u00a0]/g,""),1>N.length&&s?" ":N};O=O.replace(/\r\n/g," ").replace(/\n/g," "),O=O.replace(/\s\s+/g,h.bind(h,!0)),(U.previousSibling===null&&St(U.parentNode)||U.previousSibling!==null&&St(U.previousSibling))&&(O=O.replace(/^\s+/,h.bind(h,!1))),(U.nextSibling===null&&St(U.parentNode)||U.nextSibling!==null&&St(U.nextSibling))&&(O=O.replace(/\s+$/,h.bind(h,!1)))}return P.insert(O)}function Wt(U){if(U.nodeType!==Node.ELEMENT_NODE)return{};const P="__ql-computed-style";return U[P]||(U[P]=window.getComputedStyle(U))}function St(U){if(U.childNodes.length===0)return!1;const P=Wt(U);return-1<["block","list-item"].indexOf(P.display)}et.register("modules/clipboard",_e,!0);class Ne{constructor(P,O){this.quill=P,this.options=O,this.container=document.querySelector(O.container),P.on("text-change",this.update.bind(this)),this.update()}calculate(){let P=this.quill.getText()?this.quill.root.innerHTML:"";const O=document.createRange().createContextualFragment(P),h=document.createRange().createContextualFragment("");O.childNodes.forEach(N=>{if(N.tagName!=="P")return;N.childNodes.forEach(m=>{if(m.nodeType===3){h.appendChild(m.cloneNode(!0));return}if(m.tagName==="SPAN"){const p=m.querySelector(".aioseo-tag .tag-name");if(p){const v=this.options.tags.find(t=>t.name===p.textContent),f=typeof v.valueText=="string"?Bt.decode(v.valueText):v.valueText,o=document.createTextNode(f);h.appendChild(o)}}});const g=document.createElement("br");h.appendChild(g)}),h.normalize();const s=document.createElement("div");return s.appendChild(h.cloneNode(!0)),P=s.innerHTML.replace(/ /gi," ").replace(/<br\s*[/]?>/gi,this.single?"":` `).trim(),{length:Bt.decode(P).length,text:P}}update(){const{length:P}=this.calculate();let O=this.options.unit;P!==1&&(O+="s"),this.container&&(this.container.innerText=P+" "+O)}}et.register("modules/counter",Ne);const ke=et.import("modules/toolbar");class Zt extends ke{}Zt.DEFAULTS.handlers.autoLink=function(){const U=this.quill.getSelection(),P=this.quill.getModule("autoLink"),O=this.quill.getContents();O.ops.forEach(h=>{h.attributes&&h.attributes.link&&delete h.attributes.link}),this.quill.setContents(O,et.sources.SILENT),this.quill.setSelection(U,et.sources.SILENT),this.quill.format("link",P.options.url,et.sources.USER)};et.register("modules/toolbar",Zt,!0);class we{constructor(P,O){this.quill=P,this.options=O,this.container=document.querySelector(O.container)}}et.register("modules/autoLink",we,!0);const It=(U,P,O)=>(U.forEach(h=>{O[h]&&P.setAttribute(h,O[h]),h==="data-*"&&Object.keys(O).forEach(s=>{s.indexOf("data-")===0&&P.setAttribute(s,O[s])})}),P),Rt=(U,P)=>U.reduce((O,h)=>(P.hasAttribute(h)&&(O[h]=P.getAttribute(h)),h==="data-*"&&Object.keys(P.dataset).forEach(s=>{s="data-"+s.replace(/[A-Z]/g,N=>`-${N.toLowerCase()}`),O[s]=P.getAttribute(s)}),O),{}),Ae=et.import("formats/link"),qt=["href","rel","target","class","data-*","style"];class Gt extends Ae{static create(P){typeof P=="string"&&(P=this.linkAttributesCache);const O=It(qt,super.create(P),P);return qt.forEach(h=>{h==="href"&&(P[h]=this.sanitize(P[h]),O.setAttribute(h,P[h]))}),this.linkAttributesCache=P,O}static formats(P){return Rt(qt,P)}}Ct(Gt,"linkAttributesCache",{});et.register("formats/link",Gt,!0);const Lt=["style","class","data-*"],xe=et.import("blots/inline");class Mt extends xe{static create(P){return It(Lt,super.create(P),P)}static formats(P){return Rt(Lt,P)}}Mt.blotName="aioseoInline";Mt.tagName="aioseo-inline";et.register("formats/aioseoInline",Mt,!0);const Se=et.import("formats/italic");class Le extends Se{static create(P){return It(Lt,super.create(P),P)}static formats(P){return Rt(Lt,P)}}et.register("formats/italic",Le,!0);class Pe{constructor(P){P.container.style.whiteSpace="pre-line"}}et.register("modules/preserveWhiteSpace",Pe);const qe={},Ie={viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-plus"},Re=ct("path",{d:"M6 0.00115967H4V4.00116H0V6.00116H4V10.0012H6V6.00116H10V4.00116H6V0.00115967Z",fill:"currentColor"},null,-1),Me=[Re];function Ce(U,P){return mt(),gt("svg",Ie,Me)}const Be=$t(qe,[["render",Ce]]),ot=[],je={setup(){return{postEditorStore:te(),tagsStore:Ut()}},emits:["counter","selection-change","updateEditor","focus","blur","update:modelValue"],components:{BaseInput:re,SvgCaret:oe,SvgPlus:Be,SvgTrash:ie},props:{modelValue:{type:String,default:""},minimumLineNumbers:{type:Number,default(){return 5}},single:Boolean,lineNumbers:Boolean,allowTags:Boolean,disabled:Boolean,tagsContext:String,forceUpdates:Boolean,monospace:Boolean,defaultMenuOrientation:String,description:Boolean,showToolbar:Boolean,preserveWhitespace:Boolean,autoLink:{type:[Object,Boolean],default(){return!1}}},data(){return{tags:Ft,localTags:[],quill:null,html:"",insertExact:!1,cachedPhrase:"",strings:{searchPlaceholder:this.$t.__("Search for an item...",this.$td),enterCustomFieldName:this.$t.__("Enter a custom field/taxonomy name...",this.$td),learnMoreSmartTags:this.$t.__("Learn more about Smart Tags",this.$td),removeSmartTag:this.$t.__("Remove Smart Tag",this.$td)}}},watch:{disabled(){this.disabled?ot[this._uid].disable():ot[this._uid].enable()},modelValue(){this.forceUpdates&&this.startup(!0)},"tagsStore.liveTags":{deep:!0,handler(){this.localTags=this.getTags();const U=ot[this._uid].getModule("counter");U&&(U.options.tags=this.localTags,this.$emit("counter",U.calculate()))}},tags:{deep:!0,handler(){const U=this.getTags();JSON.stringify(this.localTags)!==JSON.stringify(U)&&(this.localTags=U,this.startup(!0))}}},methods:{emitPasteEvent(U){this.$emit("paste",U)},getTags(){return(this.tagsContext?[...Ft.context(this.tagsContext)]:[...this.tagsStore.tags].filter(P=>!P.deprecated)).map((P,O)=>{const h=this.postEditorStore.currentPost&&this.tagsStore.liveTags[P.id]||P.value;return{...P,valueText:h,value:this.$refs["select-template"][O]?this.$refs["select-template"][O].innerHTML:"",menuHtml:this.$refs["menu-template"][O]?this.$refs["menu-template"][O].innerHTML:""}})},update(){if(this.allowTags){const s=ot[this._uid].getModule("counter");this.$emit("counter",s.calculate())}let U=ot[this._uid].getText()?ot[this._uid].root.innerHTML:"";const P=document.createRange().createContextualFragment(U),O=document.createRange().createContextualFragment("");P.childNodes.forEach(s=>{if(s.tagName!=="P")return;s.childNodes.forEach(g=>{if(g.nodeType===3){O.appendChild(g.cloneNode(!0));return}if(g.tagName==="SPAN"&&this.allowTags){const m=g.querySelector(".aioseo-tag");if(m){const p=m.querySelector(".tag-name");if(p){const v=this.localTags.find(o=>o.name===p.textContent);if(v.custom){const o=m.querySelector(".tag-custom");if(o){const t=document.createTextNode(`#${v.id}-${o.innerText.replace(" - ","")}`);O.appendChild(t);return}}const f=document.createTextNode(`#${v.id}`);O.appendChild(f)}}}});const N=document.createElement("br");O.appendChild(N)}),O.normalize();const h=document.createElement("div");h.appendChild(O.cloneNode(!0)),U=h.innerHTML.replace(/<br\s*[/]?>/gi,this.single?"":` `).trim(),U=U.replace(/ /gi," ").trim(),this.$emit("update:modelValue",U)},insertToCursor(U){ot[this._uid].focus(),ot[this._uid].insertText(ot[this._uid].getSelection().index,U,et.sources.USER),ot[this._uid].setSelection(ot[this._uid].getSelection().index+U.length,et.sources.USER)},insertTag(U){const P=ot[this._uid].getModule("mention");P.removeOrphanedMentionChar();const O=P.getTextBeforeCursor();this.insertExact=!0;const h=U?this.localTags.find(g=>g.id===U):null;let s=h?`#${h.id}`:O.charAt(O.length-1)==="#"?"":"#";const N=ot[this._uid].getContents(0,P.cursorPos);N.ops.length&&(typeof N.ops.pop().insert!="string"||!O.match(/\s$/))&&(s=" "+s),ot[this._uid].focus(),U&&P.removeOrphanedMentionChar(),ot[this._uid].insertText(ot[this._uid].getSelection().index,s,et.sources.USER),ot[this._uid].setSelection(ot[this._uid].getSelection().index+s.length,et.sources.USER),this.insertExact=!1,U?P.hideMentionList():setTimeout(()=>{P.mentionCharPos=ot[this._uid].getSelection().index-1,P.silentInsert=!0,P.showMentionList()},0)},maybeCloseMenu(U){const P=U.target;if(P.classList.contains("aioseo-tag")||P.closest(".aioseo-tag")||P.closest(".add-tags"))return;if(P.classList.contains("ql-mention-list-container")||P.closest(".ql-mention-list-container")){const h=P.classList.contains("prepend-icon")?P:P.closest(".prepend-icon");h&&h.nextSibling.focus();return}const O=ot[this._uid].getModule("mention");O.isOpen&&(O.hideMentionList(),O.removeOrphanedMentionChar())},async startup(U=!1){if(this.allowTags&&!this.$refs["tag-search"])return;ot[this._uid]=this.startQuill(),U&&ot[this._uid].setText("");let P=this.modelValue;P&&P.length&&P.match(/#[^\s]*$/)&&(P=P.trim()+" "),P=P&&(this.single?P.replace(` `," "):"<p>"+P.split(` `).map(s=>s===""?"<br>":s).join("</p><p>")+"</p>");const O=ot[this._uid].clipboard.convert(P);ot[this._uid].setContents(O);const h=ot[this._uid].getModule("mention");if(h&&h.removeOrphanedMentionChar(!0),this.allowTags){const s=ot[this._uid].getModule("counter");this.$emit("counter",s.calculate())}this.removeTrailingNewLine(),await this.$nextTick(),ot[this._uid].on("text-change",()=>this.update()),ot[this._uid].on("selection-change",(s,N,g)=>{g==="api"&&this.update(),s?this.$emit("focus",ot[this._uid]):this.$emit("blur",ot[this._uid]),this.$emit("selection-change",{range:s,oldRange:N,source:g})}),document.addEventListener("click",this.maybeCloseMenu),this.disabled&&ot[this._uid].disable(),U||ot[this._uid].history.clear()},startQuill(){return new et(this.$refs.quill,{modules:{toolbar:this.showToolbar?["bold","italic","underline","autoLink"]:[],lineNumbers:this.lineNumbers?{container:this.$refs["line-numbers"],defaultLength:this.minimumLineNumbers}:null,mention:this.allowTags?{defaultMenuOrientation:this.defaultMenuOrientation||"bottom",dataAttributes:["id","value","denotationChar","link","target","custom","customValue"],allowedChars:/^[A-Za-z\s_]*$/,mentionDenotationChars:["#"],spaceAfterInsert:!0,mentionPrependClass:"aioseo-tag-search",mentionPrependClassCustom:"aioseo-tag-custom",prependMentionList:this.$refs["tag-search"].innerHTML,customFieldInput:this.$refs["tag-custom"].innerHTML,documentationDiv:this.$refs["documentation-div"].innerHTML,listItemClassNoMatch:"aioseo-tag-no-match",renderItemNoMatch(){return"No matches found"},renderItem(U){return`${U.menuHtml}`},source:(U,P,O,h=!1,s="")=>{const N=[...this.localTags];if(N[0].custom&&(N[0].customValue=s),U.length===0)return P(N,U,h,this.insertExact);const g=[];for(let m=0;m<N.length;m++)(~N[m].name.toLowerCase().indexOf(U.toLowerCase())||~N[m].id.toLowerCase().indexOf(U.toLowerCase()))&&g.push(N[m]);return P(g,U,h,this.insertExact)}}:{},counter:this.allowTags?{tags:this.localTags}:null,clipboard:{newLines:!this.single},autoLink:{enabled:!!this.autoLink,...this.autoLink},keyboard:{bindings:{enter:{key:13,handler:()=>!this.single}}},preserveWhiteSpace:this.preserveWhitespace},theme:"snow",formats:this.showToolbar?["bold","underline","italic","link","list","autoLink","aioseoInline"]:["mention"]})},setPhrase(U){this.cachedPhrase=U,U=fe(U),U=U.replace(/<span([^>]*)>/g,"<aioseo-inline$1>").replace(/<\/span>/g,"</aioseo-inline>");const P=ot[this._uid].clipboard.convert(U);ot[this._uid].setContents(P)},getPhrase(){return ot[this._uid].getText()},getPhraseWithFormats(){return ot[this._uid].getContents()},getPhraseHtml(){let U=ot[this._uid].root.childNodes[0].innerHTML;return U=U.replace(/<aioseo-inline([^>]*)>/g,"<span$1>").replace(/<\/aioseo-inline>/g,"</span>"),U=ce(this.cachedPhrase,U),U},removeTrailingNewLine(){const U=document.querySelector(".aioseo-editor-description .ql-editor");this.description&&U&&(U.innerHTML=U.innerHTML.replace(/<p><br><\/p>$/i,""))}},mounted(){this.localTags=this.getTags(),this.startup(!0),this.tagsContext&&window.aioseoBus.$on("updateEditor"+this.tagsContext,U=>{U!==this._uid&&this.startup(!0)})},beforeUnmount(){document.removeEventListener("click",this.maybeCloseMenu)},unmounted(){this.tagsContext&&window.aioseoBus.$emit("updateEditor"+this.tagsContext,this._uid)}},De={class:"aioseo-editor"},Fe={key:0,ref:"line-numbers",class:"aioseo-line-numbers"},He={key:1,class:"aioseo-append-icon"},Ue={key:2,class:"aioseo-append-button"},$e={class:"aioseo-tag"},ze={class:"tag-name"},Ve={key:0,class:"tag-custom"},Ke={class:"tag-toggle"},We={class:"aioseo-tag-item"},Ze={class:"aioseo-tag-title"},Ge={class:"aioseo-tag-description"},Ye={ref:"tag-search"},Qe={ref:"tag-custom"},Xe=["innerHTML"];function Je(U,P,O,h,s,N){const g=wt("svg-caret"),m=wt("svg-plus"),p=wt("base-input"),v=wt("svg-trash");return mt(),gt("div",De,[ct("div",{class:le([{"aioseo-editor-line-numbers":O.lineNumbers},{"aioseo-editor-single":O.single},{"aioseo-editor-monospace":O.monospace},{"aioseo-editor-description":O.description}]),ref:"quill",onPaste:P[0]||(P[0]=(...f)=>N.emitPasteEvent&&N.emitPasteEvent(...f))},null,34),O.lineNumbers?(mt(),gt("div",Fe,null,512)):At("",!0),U.$slots["append-icon"]?(mt(),gt("div",He,[jt(U.$slots,"append-icon")])):At("",!0),U.$slots["append-button"]?(mt(),gt("div",Ue,[jt(U.$slots,"append-button")])):At("",!0),(mt(!0),gt(Dt,null,ae(s.tags.context(O.tagsContext),(f,o)=>(mt(),gt(Dt,{key:o},[Tt(ct("div",{ref_for:!0,ref:"select-template"},[ct("span",$e,[ct("span",ze,xt(f.name),1),f.custom&&f.customValue?(mt(),gt("span",Ve," - "+xt(f.customValue),1)):At("",!0),ct("span",Ke,[Nt(g)])])],512),[[kt,!1]]),Tt(ct("div",{ref_for:!0,ref:"menu-template"},[ct("div",We,[ct("div",null,[Nt(m)]),ct("div",null,[ct("div",Ze,xt(f.name),1),ct("div",Ge,xt(f.description),1)])])],512),[[kt,!1]])],64))),128)),Tt(ct("div",Ye,[Nt(p,{size:"medium",placeholder:s.strings.searchPlaceholder,prependIcon:"search"},null,8,["placeholder"]),Nt(v)],512),[[kt,!1]]),Tt(ct("div",Qe,[Nt(p,{size:"small",placeholder:s.strings.enterCustomFieldName},null,8,["placeholder"])],512),[[kt,!1]]),Tt(ct("div",{ref:"documentation-div",innerHTML:U.$links.getDocLink(s.strings.learnMoreSmartTags,"smartTags",!0)},null,8,Xe),[[kt,!1]])])}const sn=$t(je,[["render",Je]]);export{sn as B,Be as S,Ft as t};