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