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