@pdftron/pdfjs-express 8.7.4 → 8.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/public/core/22.chunk.js +7 -7
  3. package/public/core/23.chunk.js +7 -7
  4. package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
  5. package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
  6. package/public/core/AzurePartRetriever.chunk.js +2 -2
  7. package/public/core/ContentEdit.chunk.js +28 -26
  8. package/public/core/ExternalAnnotationMerger.chunk.js +13 -13
  9. package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
  10. package/public/core/HttpPartRetriever.chunk.js +12 -11
  11. package/public/core/IOSPartRetriever.chunk.js +2 -3
  12. package/public/core/LocalPartRetriever.chunk.js +4 -4
  13. package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
  14. package/public/core/PDFInfoVersion1.chunk.js +16 -15
  15. package/public/core/SelectionInfoOld.chunk.js +14 -14
  16. package/public/core/StreamingPartRetriever.chunk.js +9 -9
  17. package/public/core/WebDBPartRetriever.chunk.js +2 -2
  18. package/public/core/WebViewerServerPartRetriever.chunk.js +41 -40
  19. package/public/core/WinRTPartRetriever.chunk.js +2 -2
  20. package/public/core/pdfjs/PDFJSDocumentType.js +1620 -1621
  21. package/public/core/pdfjs/pdf.worker.js +947 -937
  22. package/public/core/pdfjs/pikaday.chunk.js +32 -32
  23. package/public/core/pdfjs/vendors.pikaday.chunk.js +34 -33
  24. package/public/core/pikaday.chunk.js +34 -33
  25. package/public/core/vendors.ascii85.chunk.js +6 -6
  26. package/public/core/vendors.ascii85.quill.chunk.js +34 -31
  27. package/public/core/vendors.pako.chunk.js +80 -76
  28. package/public/core/vendors.quill.chunk.js +421 -409
  29. package/public/core/webviewer-core.min.js +2811 -2708
  30. package/public/ui/style.css +1 -1
  31. package/public/ui/style.css.map +1 -1
  32. package/public/ui/webviewer-ui.min.js +6 -6
  33. package/public/ui/webviewer-ui.min.js.map +1 -1
  34. package/webviewer.min.js +1 -1
@@ -1,410 +1,422 @@
1
1
  /** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
2
- (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{377:function(ia,ba,e){(function(e){(function(e,ba){ia.exports=ba()})("undefined"!==typeof self?self:this,function(){return function(e){function x(da){if(ba[da])return ba[da].exports;var aa=ba[da]={i:da,l:!1,exports:{}};e[da].call(aa.exports,aa,aa.exports,x);aa.l=!0;return aa.exports}var ba={};x.m=e;x.c=ba;x.d=function(e,aa,w){x.o(e,aa)||Object.defineProperty(e,aa,{configurable:!1,enumerable:!0,get:w})};x.n=function(e){var aa=
3
- e&&e.__esModule?function(){return e["default"]}:function(){return e};x.d(aa,"a",aa);return aa};x.o=function(e,x){return Object.prototype.hasOwnProperty.call(e,x)};x.p="";return x(x.s=109)}([function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});e=ca(17);var x=ca(18),aa=ca(19),w=ca(45),y=ca(46),n=ca(47),h=ca(48),f=ca(49),r=ca(12),z=ca(32),fa=ca(33),ha=ca(31);ca=ca(1);ba.default={Scope:ca.Scope,create:ca.create,find:ca.find,query:ca.query,register:ca.register,Container:e.default,Format:x.default,
4
- Leaf:aa.default,Embed:h.default,Scroll:w.default,Block:n.default,Inline:y.default,Text:f.default,Attributor:{Attribute:r.default,Class:z.default,Style:fa.default,Store:ha.default}}},function(e,ba){function x(e,f){void 0===f&&(f=!1);return null==e?null:null!=e[ba.DATA_KEY]?e[ba.DATA_KEY].blot:f?x(e.parentNode,f):null}function da(e,w){void 0===w&&(w=z.ANY);if("string"===typeof e)var x=r[e]||n[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)x=r.text;else if("number"===typeof e)e&z.LEVEL&z.BLOCK?
5
- x=r.block:e&z.LEVEL&z.INLINE&&(x=r.inline);else if(e instanceof HTMLElement){var y=(e.getAttribute("class")||"").split(/\s+/),aa;for(aa in y)if(x=h[y[aa]])break;x=x||f[e.tagName]}return null==x?null:w&z.LEVEL&x.scope&&w&z.TYPE&x.scope?x:null}function aa(){for(var e=[],w=0;w<arguments.length;w++)e[w]=arguments[w];if(1<e.length)return e.map(function(e){return aa(e)});var x=e[0];if("string"!==typeof x.blotName&&"string"!==typeof x.attrName)throw new y("Invalid definition");if("abstract"===x.blotName)throw new y("Cannot register abstract class");
6
- r[x.blotName||x.attrName]=x;"string"===typeof x.keyName?n[x.keyName]=x:(null!=x.className&&(h[x.className]=x),null!=x.tagName&&(Array.isArray(x.tagName)?x.tagName=x.tagName.map(function(e){return e.toUpperCase()}):x.tagName=x.tagName.toUpperCase(),(Array.isArray(x.tagName)?x.tagName:[x.tagName]).forEach(function(e){if(null==f[e]||null==x.className)f[e]=x})));return x}var w=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,
7
- 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=function(e){function f(f){f="[Parchment] "+f;var h=e.call(this,f)||this;h.message=f;h.name=h.constructor.name;return h}w(f,e);return f}(Error);ba.ParchmentError=y;var n={},h={},f={},r={};ba.DATA_KEY="__blot";var z;(function(e){e[e.TYPE=3]="TYPE";e[e.LEVEL=12]=
8
- "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"})(z=ba.Scope||(ba.Scope={}));ba.create=function(e,f){var h=da(e);if(null==h)throw new y("Unable to create "+e+" blot");e=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:h.create(f);return new h(e,f)};ba.find=x;ba.query=da;ba.register=
9
- aa},function(e,ba,ca){function x(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var aa=ca(51),w=ca(11),y=ca(3),n=ca(20),h=String.fromCharCode(0);x.prototype.insert=function(e,h){var f={};if(0===e.length)return this;f.insert=e;null!=h&&"object"===typeof h&&0<Object.keys(h).length&&(f.attributes=h);return this.push(f)};x.prototype["delete"]=function(e){return 0>=e?this:this.push({"delete":e})};x.prototype.retain=function(e,h){if(0>=e)return this;e={retain:e};
10
- null!=h&&"object"===typeof h&&0<Object.keys(h).length&&(e.attributes=h);return this.push(e)};x.prototype.push=function(e){var f=this.ops.length,h=this.ops[f-1];e=y(!0,{},e);if("object"===typeof h){if("number"===typeof e["delete"]&&"number"===typeof h["delete"])return this.ops[f-1]={"delete":h["delete"]+e["delete"]},this;if("number"===typeof h["delete"]&&null!=e.insert&&(--f,h=this.ops[f-1],"object"!==typeof h))return this.ops.unshift(e),this;if(w(e.attributes,h.attributes)){if("string"===typeof e.insert&&
11
- "string"===typeof h.insert)return this.ops[f-1]={insert:h.insert+e.insert},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof h.retain)return this.ops[f-1]={retain:h.retain+e.retain},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this}}f===this.ops.length?this.ops.push(e):this.ops.splice(f,0,e);return this};x.prototype.chop=function(){var e=this.ops[this.ops.length-1];e&&e.retain&&!e.attributes&&this.ops.pop();
12
- return this};x.prototype.filter=function(e){return this.ops.filter(e)};x.prototype.forEach=function(e){this.ops.forEach(e)};x.prototype.map=function(e){return this.ops.map(e)};x.prototype.partition=function(e){var f=[],h=[];this.forEach(function(n){(e(n)?f:h).push(n)});return[f,h]};x.prototype.reduce=function(e,h){return this.ops.reduce(e,h)};x.prototype.changeLength=function(){return this.reduce(function(e,h){return h.insert?e+n.length(h):h.delete?e-h.delete:e},0)};x.prototype.length=function(){return this.reduce(function(e,
13
- h){return e+n.length(h)},0)};x.prototype.slice=function(e,h){e=e||0;"number"!==typeof h&&(h=Infinity);for(var f=[],r=n.iterator(this.ops),w=0;w<h&&r.hasNext();){if(w<e)var y=r.next(e-w);else y=r.next(h-w),f.push(y);w+=n.length(y)}return new x(f)};x.prototype.compose=function(e){var f=n.iterator(this.ops);e=n.iterator(e.ops);var h=[],y=e.peek();if(null!=y&&"number"===typeof y.retain&&null==y.attributes){for(var aa=y.retain;"insert"===f.peekType()&&f.peekLength()<=aa;)aa-=f.peekLength(),h.push(f.next());
14
- 0<y.retain-aa&&e.next(y.retain-aa)}for(h=new x(h);f.hasNext()||e.hasNext();)if("insert"===e.peekType())h.push(e.next());else if("delete"===f.peekType())h.push(f.next());else{aa=Math.min(f.peekLength(),e.peekLength());var da=f.next(aa),ba=e.next(aa);if("number"===typeof ba.retain){y={};"number"===typeof da.retain?y.retain=aa:y.insert=da.insert;if(aa=n.attributes.compose(da.attributes,ba.attributes,"number"===typeof da.retain))y.attributes=aa;h.push(y);if(!e.hasNext()&&w(h.ops[h.ops.length-1],y))return f=
15
- new x(f.rest()),h.concat(f).chop()}else"number"===typeof ba["delete"]&&"number"===typeof da.retain&&h.push(ba)}return h.chop()};x.prototype.concat=function(e){var f=new x(this.ops.slice());0<e.ops.length&&(f.push(e.ops[0]),f.ops=f.ops.concat(e.ops.slice(1)));return f};x.prototype.diff=function(e,r){if(this.ops===e.ops)return new x;var f=[this,e].map(function(f){return f.map(function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:h;throw Error("diff() called "+(f===e?"on":"with")+" non-document");
16
- }).join("")}),y=new x;r=aa(f[0],f[1],r);var da=n.iterator(this.ops),ba=n.iterator(e.ops);r.forEach(function(e){for(var f=e[1].length;0<f;){var h=0;switch(e[0]){case aa.INSERT:h=Math.min(ba.peekLength(),f);y.push(ba.next(h));break;case aa.DELETE:h=Math.min(f,da.peekLength());da.next(h);y["delete"](h);break;case aa.EQUAL:h=Math.min(da.peekLength(),ba.peekLength(),f);var r=da.next(h),x=ba.next(h);if(w(r.insert,x.insert))y.retain(h,n.attributes.diff(r.attributes,x.attributes));else y.push(x)["delete"](h)}f-=
17
- h}});return y.chop()};x.prototype.eachLine=function(e,h){h=h||"\n";for(var f=n.iterator(this.ops),r=new x,w=0;f.hasNext();){if("insert"!==f.peekType())return;var y=f.peek(),aa=n.length(y)-f.peekLength();y="string"===typeof y.insert?y.insert.indexOf(h,aa)-aa:-1;if(0>y)r.push(f.next());else if(0<y)r.push(f.next(y));else{if(!1===e(r,f.next(1).attributes||{},w))return;w+=1;r=new x}}0<r.length()&&e(r,{},w)};x.prototype.transform=function(e,h){h=!!h;if("number"===typeof e)return this.transformPosition(e,
18
- h);var f=n.iterator(this.ops);e=n.iterator(e.ops);for(var r=new x;f.hasNext()||e.hasNext();)if("insert"!==f.peekType()||!h&&"insert"===e.peekType())if("insert"===e.peekType())r.push(e.next());else{var w=Math.min(f.peekLength(),e.peekLength()),y=f.next(w),aa=e.next(w);y["delete"]||(aa["delete"]?r.push(aa):r.retain(w,n.attributes.transform(y.attributes,aa.attributes,h)))}else r.retain(n.length(f.next()));return r.chop()};x.prototype.transformPosition=function(e,h){h=!!h;for(var f=n.iterator(this.ops),
19
- r=0;f.hasNext()&&r<=e;){var w=f.peekLength(),x=f.peekType();f.next();"delete"===x?e-=Math.min(w,e-r):("insert"===x&&(r<e||!h)&&(e+=w),r+=w)}return e};e.exports=x},function(e){function x(e,n){if("__proto__"===n){if(!w.call(e,n))return;if(h)return h(e,n).value}return e[n]}function ba(e,h){n&&"__proto__"===h.name?n(e,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):e[h.name]=h.newValue}function da(e){if(!e||"[object Object]"!==y.call(e))return!1;var f=w.call(e,"constructor"),h=e.constructor&&
20
- e.constructor.prototype&&w.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!f&&!h)return!1;for(var n in e);return"undefined"===typeof n||w.call(e,n)}function aa(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===y.call(e)}var w=Object.prototype.hasOwnProperty,y=Object.prototype.toString,n=Object.defineProperty,h=Object.getOwnPropertyDescriptor;e.exports=function r(){var e,h,n=arguments[0],w=1,y=arguments.length,ca=!1;"boolean"===typeof n&&(ca=n,n=arguments[1]||
21
- {},w=2);if(null==n||"object"!==typeof n&&"function"!==typeof n)n={};for(;w<y;++w){var ha=arguments[w];if(null!=ha)for(e in ha){var ea=x(n,e);var ia=x(ha,e);n!==ia&&(ca&&ia&&(da(ia)||(h=aa(ia)))?(h?(h=!1,ea=ea&&aa(ea)?ea:[]):ea=ea&&da(ea)?ea:{},ba(n,{name:e,newValue:r(ca,ea,ia)})):"undefined"!==typeof ia&&ba(n,{name:e,newValue:ia}))}}return n}},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");
22
- }function w(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)}function n(e){var f=
23
- 1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return f;"function"===typeof e.formats&&(f=(0,r.default)(f,e.formats()));return null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?f:n(e.parent,f)}Object.defineProperty(ba,"__esModule",{value:!0});ba.default=ba.BlockEmbed=ba.bubbleFormats=void 0;var h=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,
24
- n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),f=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)}};e=ca(3);var r=x(e);e=ca(2);var z=x(e);e=ca(0);var fa=x(e);e=ca(16);var ha=x(e);e=ca(6);e=x(e);ca=ca(7);ca=x(ca);var ea=function(e){function n(){aa(this,n);return w(this,(n.__proto__||
25
- Object.getPrototypeOf(n)).apply(this,arguments))}y(n,e);h(n,[{key:"attach",value:function(){f(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"attach",this).call(this);this.attributes=new fa.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new z.default).insert(this.value(),(0,r.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,f){e=fa.default.query(e,fa.default.Scope.BLOCK_ATTRIBUTE);null!=e&&this.attributes.attribute(e,f)}},
26
- {key:"formatAt",value:function(e,f,h,n){this.format(h,n)}},{key:"insertAt",value:function(e,h,r){"string"===typeof h&&h.endsWith("\n")?(r=fa.default.create(ia.blotName),this.parent.insertBefore(r,0===e?this:this.next),r.insertAt(0,h.slice(0,-1))):f(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"insertAt",this).call(this,e,h,r)}}]);return n}(fa.default.Embed);ea.scope=fa.default.Scope.BLOCK_BLOT;var ia=function(e){function r(e){aa(this,r);e=w(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,
27
- e));e.cache={};return e}y(r,e);h(r,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(fa.default.Leaf).reduce(function(e,f){return 0===f.length()?e:e.insert(f.value(),n(f))},new z.default).insert("\n",n(this)));return this.cache.delta}},{key:"deleteAt",value:function(e,h){f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"deleteAt",this).call(this,e,h);this.cache={}}},{key:"formatAt",value:function(e,h,n,w){0>=h||(fa.default.query(n,fa.default.Scope.BLOCK)?
28
- e+h===this.length()&&this.format(n,w):f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,e,Math.min(h,this.length()-e-1),n,w),this.cache={})}},{key:"insertAt",value:function(e,h,n){if(null!=n)return f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertAt",this).call(this,e,h,n);if(0!==h.length){h=h.split("\n");n=h.shift();0<n.length&&(e<this.length()-1||null==this.children.tail?f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertAt",
29
- this).call(this,Math.min(e,this.length()-1),n):this.children.tail.insertAt(this.children.tail.length(),n),this.cache={});var w=this;h.reduce(function(e,f){w=w.split(e,!0);w.insertAt(0,f);return f.length},e+n.length)}}},{key:"insertBefore",value:function(e,h){var n=this.children.head;f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertBefore",this).call(this,e,h);n instanceof ha.default&&n.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=
30
- f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",value:function(e,h){f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"moveChildren",this).call(this,e,h);this.cache={}}},{key:"optimize",value:function(e){f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,e);this.cache={}}},{key:"path",value:function(e){return f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),
31
- "path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"removeChild",this).call(this,e);this.cache={}}},{key:"split",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(h&&(0===e||e>=this.length()-1)){h=this.clone();if(0===e)return this.parent.insertBefore(h,this),this;this.parent.insertBefore(h,this.next);return h}h=f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"split",this).call(this,
32
- e,h);this.cache={};return h}}]);return r}(fa.default.Block);ia.blotName="block";ia.tagName="P";ia.defaultChild="break";ia.allowedChildren=[e.default,fa.default.Embed,ca.default];ba.bubbleFormats=n;ba.BlockEmbed=ea;ba.default=ia},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}function w(e,f){f=(0,ra.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,
33
- history:!0}},f);if(f.theme&&f.theme!==va.DEFAULTS.theme){if(f.theme=va.import("themes/"+f.theme),null==f.theme)throw Error("Invalid theme "+f.theme+". Did you register it?");}else f.theme=Da.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=va.import("modules/"+f);null==h?qa.error("Cannot load "+
34
- 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,{},va.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 y(e,
35
- f,n,r){if(this.options.strict&&!this.isEnabled()&&f===ea.default.sources.USER)return new fa.default;var w=null==n?null:this.getSelection(),x=this.editor.delta;e=e();null!=w&&(!0===n&&(n=w.index),null==r?w=h(w,e,f):0!==r&&(w=h(w,n,r,f)),this.setSelection(w,ea.default.sources.SILENT));if(0<e.length()){var z;n=[ea.default.events.TEXT_CHANGE,e,x,f];(z=this.emitter).emit.apply(z,[ea.default.events.EDITOR_CHANGE].concat(n));if(f!==ea.default.sources.SILENT){var y;(y=this.emitter).emit.apply(y,n)}}return e}
36
- function n(e,h,n,r,w){var x={};"number"===typeof e.index&&"number"===typeof e.length?("number"!==typeof h?(w=r,r=n,n=h,h=e.length):h=e.length,e=e.index):"number"!==typeof h&&(w=r,r=n,n=h,h=0);"object"===("undefined"===typeof n?"undefined":f(n))?(x=n,w=r):"string"===typeof n&&(null!=r?x[n]=r:w=n);w=w||ea.default.sources.API;return[e,h,x,w]}function h(e,f,h,n){if(null==e)return null;var w=void 0,x=void 0;f instanceof fa.default?(w=[e.index,e.index+e.length].map(function(e){return f.transformPosition(e,
37
- n!==ea.default.sources.USER)}),e=r(w,2),w=e[0],x=e[1]):(w=[e.index,e.index+e.length].map(function(e){return e<f||e===f&&n===ea.default.sources.USER?e:0<=h?e+h:Math.max(f,e+h)}),e=r(w,2),w=e[0],x=e[1]);return new la.Range(w,x-w)}Object.defineProperty(ba,"__esModule",{value:!0});ba.default=ba.overload=ba.expandConfig=void 0;var f="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?
38
- "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](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==f);n=!0);}catch(Ba){r=!0,w=Ba}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");}}(),z=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=
39
- 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}}();ca(50);e=ca(2);var fa=x(e);e=ca(14);var ha=x(e);e=ca(8);var ea=x(e);e=ca(9);e=x(e);var ia=ca(0),ma=x(ia),la=ca(15),na=x(la);ia=ca(3);var ra=x(ia);ia=ca(10);var sa=x(ia);ca=ca(34);var Da=x(ca),qa=(0,sa.default)("quill"),va=function(){function e(f){var h=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof
40
- e))throw new TypeError("Cannot call a class as a function");this.options=w(f,n);this.container=this.options.container;if(null==this.container)return qa.error("Invalid Quill container",f);this.options.debug&&e.debug(this.options.debug);n=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=
41
- this.options.scrollingContainer||this.root;this.emitter=new ea.default;this.scroll=ma.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ha.default(this.scroll);this.selection=new na.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(ea.default.events.EDITOR_CHANGE,
42
- function(e){e===ea.default.events.TEXT_CHANGE&&h.root.classList.toggle("ql-blank",h.editor.isBlank())});this.emitter.on(ea.default.events.SCROLL_UPDATE,function(e,f){var n=h.selection.lastRange,r=n&&0===n.length?n.index:void 0;y.call(h,function(){return h.editor.update(null,f,r)},e)});n=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+n+"<p><br></p></div>");this.setContents(n);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);
43
- this.options.readOnly&&this.disable()}z(e,null,[{key:"debug",value:function(e){!0===e&&(e="log");sa.default.level(e)}},{key:"find",value:function(e){return e.__quill||ma.default.find(e)}},{key:"import",value:function(e){null==this.imports[e]&&qa.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?
44
- this.register("formats/"+n,e,f):Object.keys(e).forEach(function(n){h.register(n,e[n],f)})):(null==this.imports[e]||n||qa.warn("Overwriting "+e+" with",f),this.imports[e]=f,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==f.blotName?ma.default.register(f):e.startsWith("modules")&&"function"===typeof f.register&&f.register())}}]);z(e,[{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");
45
- e.classList.add(h)}this.container.insertBefore(e,f);return e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,f,h){var w=this;h=n(e,f,h);h=r(h,4);e=h[0];f=h[1];h=h[3];return y.call(this,function(){return w.editor.deleteText(e,f)},h,e,-1*f)}},{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",
46
- !e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=e;this.scrollIntoView()}},{key:"format",value:function(e,f){var h=this;return y.call(this,function(){var n=h.getSelection(!0),r=new fa.default;if(null==n)return r;if(ma.default.query(e,ma.default.Scope.BLOCK))r=h.editor.formatLine(n.index,n.length,aa({},e,f));else{if(0===n.length)return h.selection.format(e,f),r;r=h.editor.formatText(n.index,n.length,aa({},e,f))}h.setSelection(n,
47
- ea.default.sources.SILENT);return r},2<arguments.length&&void 0!==arguments[2]?arguments[2]:ea.default.sources.API)}},{key:"formatLine",value:function(e,f,h,w,x){var z=this,aa=void 0;h=n(e,f,h,w,x);h=r(h,4);e=h[0];f=h[1];aa=h[2];x=h[3];return y.call(this,function(){return z.editor.formatLine(e,f,aa)},x,e,0)}},{key:"formatText",value:function(e,f,h,w,x){var z=this,aa=void 0;h=n(e,f,h,w,x);h=r(h,4);e=h[0];f=h[1];aa=h[2];x=h[3];return y.call(this,function(){return z.editor.formatText(e,f,aa)},x,e,0)}},
48
- {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]:
49
- this.getLength()-e;e=n(e,f);f=r(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",
50
- 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]&&
51
- 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=n(e,f);f=r(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,h,n){var r=this;return y.call(this,function(){return r.editor.insertEmbed(f,h,n)},
52
- 3<arguments.length&&void 0!==arguments[3]?arguments[3]:e.sources.API,f)}},{key:"insertText",value:function(e,f,h,w,x){var z=this,aa=void 0;h=n(e,0,h,w,x);h=r(h,4);e=h[0];aa=h[2];x=h[3];return y.call(this,function(){return z.editor.insertText(e,f,aa)},x,e,f.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,
53
- 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(e,f,h){var w=this;h=n(e,f,h);h=r(h,4);e=h[0];f=h[1];h=h[3];return y.call(this,function(){return w.editor.removeFormat(e,f)},h,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var f=this;return y.call(this,
54
- function(){e=new fa.default(e);var h=f.getLength();h=f.editor.deleteText(0,h);var n=f.editor.applyDelta(e),r=n.ops[n.ops.length-1];null!=r&&"string"===typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(f.editor.deleteText(f.getLength()-1,1),n.delete(1));return h.compose(n)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:ea.default.sources.API)}},{key:"setSelection",value:function(f,h,w){null==f?this.selection.setRange(null,h||e.sources.API):(f=n(f,h,w),w=r(f,4),f=w[0],h=w[1],w=w[3],this.selection.setRange(new la.Range(f,
55
- h),w),w!==ea.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ea.default.sources.API,h=(new fa.default).insert(e);return this.setContents(h,f)}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:ea.default.sources.USER,f=this.scroll.update(e);this.selection.update(e);return f}},{key:"updateContents",value:function(e){var f=this,h=
56
- 1<arguments.length&&void 0!==arguments[1]?arguments[1]:ea.default.sources.API;return y.call(this,function(){e=new fa.default(e);return f.editor.applyDelta(e,h)},h,!0)}}]);return e}();va.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};va.events=ea.default.events;va.sources=ea.default.sources;va.version="1.3.7";va.imports={delta:fa.default,parchment:ma.default,"core/module":e.default,"core/theme":Da.default};ba.expandConfig=
57
- w;ba.overload=n;ba.default=va},function(e,ba,ca){function x(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ba,"__esModule",{value:!0});var aa=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=
58
- n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=(e=ca(7))&&e.__esModule?e:{default:e};var y=(ca=ca(0))&&ca.__esModule?ca:{default:ca};ca=
59
- function(e){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}x(f,e);aa(f,[{key:"formatAt",value:function(e,h,x,aa){0>f.compare(this.statics.blotName,x)&&y.default.query(x,y.default.Scope.BLOT)?(e=this.isolate(e,h),aa&&e.wrap(x,aa)):w(f.prototype.__proto__||
60
- Object.getPrototypeOf(f.prototype),"formatAt",this).call(this,e,h,x,aa)}},{key:"optimize",value:function(e){w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,e);this.parent instanceof f&&0<f.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,h){var r=f.order.indexOf(e),w=f.order.indexOf(h);return 0<=r||0<=w?r-w:e===h?0:e<h?-1:1}}]);
61
- return f}(y.default.Inline);ca.allowedChildren=[ca,y.default.Embed,e.default];ca.order="cursor inline underline strike italic bold script link code".split(" ");ba.default=ca},function(e,ba,ca){function x(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=
62
- w)}Object.defineProperty(ba,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).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}x(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(0)).default.Text);ba.default=e},function(e,ba,ca){function x(e,
63
- h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ba,"__esModule",{value:!0});var 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);
64
- Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=(e=ca(54))&&e.__esModule?e:{default:e};ca=(ca=ca(10))&&ca.__esModule?ca:{default:ca};var y=(0,ca.default)("quill:events");["selectionchange","mousedown",
65
- "mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,h=Array(e),w=0;w<e;w++)h[w]=arguments[w];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){if(e.__quill&&e.__quill.emitter){var f;(f=e.__quill.emitter).handleDOM.apply(f,h)}})})});ca=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var e=(f.__proto__||Object.getPrototypeOf(f)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
66
- e=!e||"object"!==typeof e&&"function"!==typeof e?this:e;e.listeners={};e.on("error",y.error);return e}x(f,e);aa(f,[{key:"emit",value:function(){y.log.apply(y,arguments);w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var f=arguments.length,h=Array(1<f?f-1:0),r=1;r<f;r++)h[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach(function(f){var r=f.node;f=f.handler;(e.target===r||r.contains(e.target))&&f.apply(void 0,
67
- [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 f}(e.default);ca.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"};ca.sources={API:"api",SILENT:"silent",USER:"user"};ba.default=ca},function(e,ba){Object.defineProperty(ba,"__esModule",{value:!0});
68
- e=function aa(e){var w=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof aa))throw new TypeError("Cannot call a class as a function");this.quill=e;this.options=w};e.DEFAULTS={};ba.default=e},function(e,ba){function x(e){if(aa.indexOf(e)<=aa.indexOf(w)){for(var n,h=arguments.length,f=Array(1<h?h-1:0),r=1;r<h;r++)f[r-1]=arguments[r];(n=console)[e].apply(n,f)}}function da(e){return aa.reduce(function(n,h){n[h]=x.bind(console,h,e);return n},{})}Object.defineProperty(ba,"__esModule",
69
- {value:!0});var aa=["error","warn","log","info"],w="warn";x.level=da.level=function(e){w=e};ba.default=da},function(e,ba,ca){function x(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 aa(e,r,z){var f;if(null===e||void 0===e||null===r||void 0===r||e.prototype!==r.prototype)return!1;if(n(e)){if(!n(r))return!1;e=w.call(e);r=w.call(r);return h(e,r,z)}if(x(e)){if(!x(r)||e.length!==r.length)return!1;
70
- for(f=0;f<e.length;f++)if(e[f]!==r[f])return!1;return!0}try{var aa=y(e);var da=y(r)}catch(pa){return!1}if(aa.length!=da.length)return!1;aa.sort();da.sort();for(f=aa.length-1;0<=f;f--)if(aa[f]!=da[f])return!1;for(f=aa.length-1;0<=f;f--)if(da=aa[f],!h(e[da],r[da],z))return!1;return typeof e===typeof r}var w=Array.prototype.slice,y=ca(52),n=ca(53),h=e.exports=function(e,h,n){n||(n={});return e===h?!0:e instanceof Date&&h instanceof Date?e.getTime()===h.getTime():!e||!h||"object"!=typeof e&&"object"!=
71
- typeof h?n.strict?e===h:e==h:aa(e,h,n)}},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});var x=ca(1);e=function(){function e(e,y,n){void 0===n&&(n={});this.attrName=e;this.keyName=y;e=x.Scope.TYPE&x.Scope.ATTRIBUTE;this.scope=null!=n.scope?n.scope&x.Scope.LEVEL|e:x.Scope.ATTRIBUTE;null!=n.whitelist&&(this.whitelist=n.whitelist)}e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})};e.prototype.add=function(e,x){if(!this.canAdd(e,x))return!1;e.setAttribute(this.keyName,
72
- x);return!0};e.prototype.canAdd=function(e,y){return null==x.query(e,x.Scope.BLOT&(this.scope|x.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof y?-1<this.whitelist.indexOf(y.replace(/["']/g,"")):-1<this.whitelist.indexOf(y)};e.prototype.remove=function(e){e.removeAttribute(this.keyName)};e.prototype.value=function(e){var w=e.getAttribute(this.keyName);return this.canAdd(e,w)&&w?w:""};return e}();ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,
73
- f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(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?
74
- Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(ba,"__esModule",{value:!0});ba.default=ba.Code=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](),z;!(n=(z=x.next()).done)&&(h.push(z.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");
75
- }}(),h=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}}(),f=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)}};e=ca(2);
76
- var r=x(e);e=ca(0);var z=x(e);e=ca(4);e=x(e);var fa=ca(6);fa=x(fa);ca=ca(7);var ea=x(ca);ca=function(e){function f(){aa(this,f);return w(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}y(f,e);return f}(fa.default);ca.blotName="code";ca.tagName="CODE";e=function(e){function x(){aa(this,x);return w(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}y(x,e);h(x,[{key:"delta",value:function(){var e=this,f=this.domNode.textContent;f.endsWith("\n")&&(f=f.slice(0,-1));
77
- return f.split("\n").reduce(function(f,h){return f.insert(h).insert("\n",e.formats())},new r.default)}},{key:"format",value:function(e,h){if(e!==this.statics.blotName||!h){var r=this.descendant(ea.default,this.length()-1);r=n(r,1)[0];null!=r&&r.deleteAt(r.length()-1,1);f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,e,h)}}},{key:"formatAt",value:function(e,f,h,n){if(0!==f&&null!=z.default.query(h,z.default.Scope.BLOCK)&&(h!==this.statics.blotName||n!==this.statics.formats(this.domNode))){var r=
78
- this.newlineIndex(e);if(!(0>r||r>=e+f)){var w=this.newlineIndex(e,!0)+1;r=r-w+1;var y=this.isolate(w,r),aa=y.next;y.format(h,n);aa instanceof x&&aa.formatAt(0,e-w+f-r,h,n)}}}},{key:"insertAt",value:function(e,f,h){null==h&&(e=this.descendant(ea.default,e),e=n(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,
79
- 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(z.default.create("text","\n"));f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,e);var h=this.next;null!=h&&h.prev===this&&h.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===h.statics.formats(h.domNode)&&(h.optimize(e),h.moveChildren(this),h.remove())}},
80
- {key:"replace",value:function(e){f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,e);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var f=z.default.find(e);null==f?e.parentNode.removeChild(e):f instanceof z.default.Embed?f.remove():f.unwrap()})}}],[{key:"create",value:function(e){e=f(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,e);e.setAttribute("spellcheck",!1);return e}},{key:"formats",value:function(){return!0}}]);return x}(e.default);
81
- e.blotName="code-block";e.tagName="PRE";e.TAB=" ";ba.Code=ca;ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}function w(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 y(e){return e.reduce(function(e,
82
- f){if(1===f.insert){var h=(0,na.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,na.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 r.default)}Object.defineProperty(ba,"__esModule",{value:!0});var n=
83
- "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},h=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](),z;!(n=(z=x.next()).done)&&(h.push(z.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;
84
- }}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),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,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();e=ca(2);var r=x(e);e=ca(20);var z=x(e);e=ca(0);var fa=x(e);e=ca(13);var ea=x(e);e=ca(24);var ha=x(e),ia=ca(4),ma=x(ia);e=ca(16);var la=x(e);e=ca(21);var na=x(e);e=ca(11);
85
- var ra=x(e);ca=ca(3);var sa=x(ca),Da=/^[ -~]*$/;ca=function(){function e(f){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.scroll=f;this.delta=this.getDelta()}f(e,[{key:"applyDelta",value:function(e){var f=this,r=!1;this.scroll.update();var w=this.scroll.length();this.scroll.batchStart();e=y(e);e.reduce(function(e,x){var y=x.retain||x.delete||x.insert.length||1,aa=x.attributes||{};if(null!=x.insert){if("string"===typeof x.insert){x=x.insert;x.endsWith("\n")&&
86
- r&&(r=!1,x=x.slice(0,-1));e>=w&&!x.endsWith("\n")&&(r=!0);f.scroll.insertAt(e,x);x=f.scroll.line(e);x=h(x,2);var da=x[0],ba=x[1];x=(0,sa.default)({},(0,ia.bubbleFormats)(da));da instanceof ma.default&&(da=da.descendant(fa.default.Leaf,ba),da=h(da,1)[0],x=(0,sa.default)(x,(0,ia.bubbleFormats)(da)));aa=z.default.attributes.diff(x,aa)||{}}else if("object"===n(x.insert)){da=Object.keys(x.insert)[0];if(null==da)return e;f.scroll.insertAt(e,da,x.insert[da])}w+=y}Object.keys(aa).forEach(function(h){f.scroll.formatAt(e,
87
- y,h,aa[h])});return e+y},0);e.reduce(function(e,h){return"number"===typeof h.delete?(f.scroll.deleteAt(e,h.delete),e):e+(h.retain||h.insert.length||1)},0);this.scroll.batchEnd();return this.update(e)}},{key:"deleteText",value:function(e,f){this.scroll.deleteAt(e,f);return this.update((new r.default).retain(e).delete(f))}},{key:"formatLine",value:function(e,f){var h=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(n).forEach(function(r){if(null==h.scroll.whitelist||
88
- h.scroll.whitelist[r]){var w=h.scroll.lines(e,Math.max(f,1)),x=f;w.forEach(function(f){var w=f.length();if(f instanceof ea.default){var z=e-f.offset(h.scroll),y=f.newlineIndex(z+x)-z+1;f.formatAt(z,y,r,n[r])}else f.format(r,n[r]);x-=w})}});this.scroll.optimize();return this.update((new r.default).retain(e).retain(f,(0,na.default)(n)))}},{key:"formatText",value:function(e,f){var h=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach(function(r){h.scroll.formatAt(e,
89
- f,r,n[r])});return this.update((new r.default).retain(e).retain(f,(0,na.default)(n)))}},{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 r.default)}},{key:"getFormat",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===f?this.scroll.path(e).forEach(function(e){e=h(e,1)[0];e instanceof ma.default?n.push(e):e instanceof fa.default.Leaf&&
90
- r.push(e)}):(n=this.scroll.lines(e,f),r=this.scroll.descendants(fa.default.Leaf,e,f));f=[n,r].map(function(e){if(0===e.length)return{};for(var f=(0,ia.bubbleFormats)(e.shift());0<Object.keys(f).length;){var h=e.shift();if(null==h)break;f=w((0,ia.bubbleFormats)(h),f)}return f});return sa.default.apply(sa.default,f)}},{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,
91
- f,h){this.scroll.insertAt(e,f,h);return this.update((new r.default).retain(e).insert(aa({},f,h)))}},{key:"insertText",value:function(e,f){var h=this,n=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(n).forEach(function(r){h.scroll.formatAt(e,f.length,r,n[r])});return this.update((new r.default).retain(e).insert(f,(0,na.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
92
- if(1<this.scroll.children.length)return!1;var e=this.scroll.children.head;return e.statics.blotName!==ma.default.blotName||1<e.children.length?!1:e.children.head instanceof la.default}},{key:"removeFormat",value:function(e,f){var n=this.getText(e,f),w=this.scroll.line(e+f),x=h(w,2);w=x[0];x=x[1];var z=0,y=new r.default;null!=w&&(z=w instanceof ea.default?w.newlineIndex(x)-x+1:w.length()-x,y=w.delta().slice(x,x+z-1).insert("\n"));f=this.getContents(e,f+z).diff((new r.default).insert(n).concat(y));
93
- e=(new r.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,n=this.delta;if(1===f.length&&"characterData"===f[0].type&&f[0].target.data.match(Da)&&fa.default.find(f[0].target)){var w=fa.default.find(f[0].target),x=(0,ia.bubbleFormats)(w),z=w.offset(this.scroll);f=f[0].oldValue.replace(ha.default.CONTENTS,"");f=(new r.default).insert(f);
94
- w=(new r.default).insert(w.value());e=(new r.default).retain(z).concat(f.diff(w,h)).reduce(function(e,f){return f.insert?e.insert(f.insert,x):e.push(f)},new r.default);this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,ra.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,h));return e}}]);return e}();ba.default=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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)}
95
- function w(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function y(e,f){try{f.parentNode}catch(la){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 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](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==
96
- 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");}}(),h=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}}();e=ca(0);var f=x(e);e=ca(21);var r=x(e);e=ca(11);var z=x(e);e=ca(8);var fa=
97
- x(e);ca=ca(10);ca=x(ca);var ea=(0,ca.default)("quill:selection"),ha=function la(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;w(this,la);this.index=e;this.length=f};ca=function(){function e(h,n){var r=this;w(this,e);this.emitter=n;this.scroll=h;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=f.default.create("cursor",this);this.lastRange=this.savedRange=new ha(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",
98
- document,function(){r.mouseDown||setTimeout(r.update.bind(r,fa.default.sources.USER),1)});this.emitter.on(fa.default.events.EDITOR_CHANGE,function(e,f){e===fa.default.events.TEXT_CHANGE&&0<f.length()&&r.update(fa.default.sources.SILENT)});this.emitter.on(fa.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(fa.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,
99
- e.end.offset)}catch(Da){}})}});this.emitter.on(fa.default.events.SCROLL_OPTIMIZE,function(e,f){f.range&&(e=f.range,r.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset))});this.update(fa.default.sources.SILENT)}h(e,[{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,
100
- 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(fa.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,h){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=
101
- this.getNativeRange();if(null!=n&&n.native.collapsed&&!f.default.query(e,f.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=f.default.find(n.start.node,!1);if(null==r)return;r instanceof f.default.Leaf?(n=r.split(n.start.offset),r.parent.insertBefore(this.cursor,n)):r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,h);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",
102
- 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 r=n(h,2);h=r[0];var w=r[1];if(null==h)return null;r=h.position(w,!0);r=n(r,2);var x=r[0];w=r[1];r=document.createRange();if(0<f){r.setStart(x,w);f=this.scroll.leaf(e+f);f=n(f,2);h=f[0];w=f[1];if(null==h)return null;f=h.position(w,!0);f=n(f,2);x=f[0];w=f[1];r.setEnd(x,w);return r.getBoundingClientRect()}f="left";x instanceof Text?
103
- (w<x.data.length?(r.setStart(x,w),r.setEnd(x,w+1)):(r.setStart(x,w-1),r.setEnd(x,w),f="right"),h=r.getBoundingClientRect()):(h=h.domNode.getBoundingClientRect(),0<w&&(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);ea.info("getNativeRange",e);return e}},{key:"getRange",value:function(){var e=
104
- 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 h=this,r=[[e.start.node,e.start.offset]];e.native.collapsed||r.push([e.end.node,e.end.offset]);r=r.map(function(e){var r=n(e,2);e=r[0];r=r[1];var w=f.default.find(e,!0),x=w.offset(h.scroll);return 0===r?x:w instanceof f.default.Container?x+w.length():x+w.index(e,r)});e=Math.min(Math.max.apply(Math,
105
- aa(r)),this.scroll.length()-1);r=Math.min.apply(Math,[e].concat(aa(r)));return new ha(r,e-r)}},{key:"normalizeNative",value:function(e){if(!y(this.root,e.startContainer)||!e.collapsed&&!y(this.root,e.endContainer))return null;e={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};[e.start,e.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===
106
- h)f=f.lastChild,h=f instanceof Text?f.data.length:f.childNodes.length+1;else break;e.node=f;e.offset=h});return e}},{key:"rangeToNative",value:function(e){var f=this;e=e.collapsed?[e.index]:[e.index,e.index+e.length];var h=[],r=this.scroll.length();e.forEach(function(e,w){e=Math.min(r-1,e);e=f.scroll.leaf(e);var x=n(e,2);e=x[1];w=x[0].position(e,0!==w);e=n(w,2);w=e[0];e=e[1];h.push(w,e)});2>h.length&&(h=h.concat(h));return h}},{key:"scrollIntoView",value:function(e){var f=this.lastRange;if(null!=
107
- f){var h=this.getBounds(f.index,f.length);if(null!=h){var r=this.scroll.length()-1,w=this.scroll.line(Math.min(f.index,r)),x=w=n(w,1)[0];0<f.length&&(f=this.scroll.line(Math.min(f.index+f.length,r)),x=n(f,1)[0]);null!=w&&null!=x&&(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]?
108
- arguments[3]:f,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ea.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&&
109
- (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]:fa.default.sources.API;"string"===typeof f&&(h=f,f=!1);ea.info("setRange",e);if(null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,
110
- aa(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]:fa.default.sources.USER,f=this.lastRange,h=this.getRange();h=n(h,2);var w=h[1];this.lastRange=h[0];null!=this.lastRange&&(this.savedRange=this.lastRange);if(!(0,z.default)(f,this.lastRange)){var x;!this.composing&&null!=w&&w.native.collapsed&&w.start.node!==this.cursor.textNode&&this.cursor.restore();f=[fa.default.events.SELECTION_CHANGE,(0,
111
- r.default)(this.lastRange),(0,r.default)(f),e];(x=this.emitter).emit.apply(x,[fa.default.events.EDITOR_CHANGE].concat(f));if(e!==fa.default.sources.SILENT){var y;(y=this.emitter).emit.apply(y,f)}}}}]);return e}();ba.Range=ha;ba.default=ca},function(e,ba,ca){function x(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});
112
- n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(ba,"__esModule",{value:!0});var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function r(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),
113
- null!==e)return r(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};e=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}x(h,e);aa(h,[{key:"insertInto",value:function(e,n){0===e.children.length?
114
- w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ca(0)).default.Embed);e.blotName="break";e.tagName="BR";ba.default=e},function(e,ba,ca){function x(e){var h=y.find(e);if(null==h)try{h=y.create(e)}catch(f){h=y.create(y.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){h.domNode.appendChild(e)}),
115
- e.parentNode&&e.parentNode.replaceChild(h.domNode,e),h.attach()}return h}var aa=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(h,f){function n(){this.constructor=h}e(h,f);h.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});var w=ca(44);e=ca(30);var y=ca(1);ca=function(e){function h(f){f=
116
- e.call(this,f)||this;f.build();return f}aa(h,e);h.prototype.appendChild=function(e){this.insertBefore(e)};h.prototype.attach=function(){e.prototype.attach.call(this);this.children.forEach(function(e){e.attach()})};h.prototype.build=function(){var e=this;this.children=new w.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(f){try{var h=x(f);e.insertBefore(h,e.children.head||void 0)}catch(fa){if(!(fa instanceof y.ParchmentError))throw fa;}})};h.prototype.deleteAt=function(e,
117
- h){if(0===e&&h===this.length())return this.remove();this.children.forEachAt(e,h,function(e,f,h){e.deleteAt(f,h)})};h.prototype.descendant=function(e,n){var f=this.children.find(n);n=f[0];f=f[1];return null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e?[n,f]:n instanceof h?n.descendant(e,f):[null,-1]};h.prototype.descendants=function(e,n,w){void 0===n&&(n=0);void 0===w&&(w=Number.MAX_VALUE);var f=[],r=w;this.children.forEachAt(n,w,function(n,w,x){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof
118
- e)&&f.push(n);n instanceof h&&(f=f.concat(n.descendants(e,w,r)));r-=x});return f};h.prototype.detach=function(){this.children.forEach(function(e){e.detach()});e.prototype.detach.call(this)};h.prototype.formatAt=function(e,h,n,w){this.children.forEachAt(e,h,function(e,f,h){e.formatAt(f,h,n,w)})};h.prototype.insertAt=function(e,h,n){var f=this.children.find(e);e=f[0];f=f[1];e?e.insertAt(f,h,n):(h=null==n?y.create("text",h):y.create(h,n),this.appendChild(h))};h.prototype.insertBefore=function(e,h){if(null!=
119
- this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(f){return e instanceof f}))throw new y.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,h)};h.prototype.length=function(){return this.children.reduce(function(e,h){return e+h.length()},0)};h.prototype.moveChildren=function(e,h){this.children.forEach(function(f){e.insertBefore(f,h)})};h.prototype.optimize=function(f){e.prototype.optimize.call(this,f);if(0===this.children.length)if(null!=
120
- this.statics.defaultChild){var h=y.create(this.statics.defaultChild);this.appendChild(h);h.optimize(f)}else this.remove()};h.prototype.path=function(e,n){void 0===n&&(n=!1);var f=this.children.find(e,n),r=f[0];f=f[1];e=[[this,e]];if(r instanceof h)return e.concat(r.path(f,n));null!=r&&e.push([r,f]);return e};h.prototype.removeChild=function(e){this.children.remove(e)};h.prototype.replace=function(f){f instanceof h&&f.moveChildren(this);e.prototype.replace.call(this,f)};h.prototype.split=function(e,
121
- h){void 0===h&&(h=!1);if(!h){if(0===e)return this;if(e===this.length())return this.next}var f=this.clone();this.parent.insertBefore(f,this.next);this.children.forEachAt(e,this.length(),function(e,n){e=e.split(n,h);f.appendChild(e)});return f};h.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};h.prototype.update=function(e){var f=this,h=[],n=[];e.forEach(function(e){e.target===f.domNode&&"childList"===e.type&&(h.push.apply(h,e.addedNodes),n.push.apply(n,e.removedNodes))});
122
- n.forEach(function(e){null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY||(e=y.find(e),null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==f.domNode||e.detach()))});h.filter(function(e){return e.parentNode==f.domNode}).sort(function(e,f){return e===f?0:e.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var h=null;null!=e.nextSibling&&(h=y.find(e.nextSibling));e=x(e);if(e.next!=h||null==
123
- e.next)null!=e.parent&&e.parent.removeChild(f),f.insertBefore(e,h||void 0)})};return h}(e.default);ba.default=ca},function(e,ba,ca){var x=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(h,f){function n(){this.constructor=h}e(h,f);h.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});
124
- var aa=ca(12),w=ca(31);e=ca(17);var y=ca(1);ca=function(e){function h(f){f=e.call(this,f)||this;f.attributes=new w.default(f.domNode);return f}x(h,e);h.formats=function(e){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()};h.prototype.format=function(e,h){var f=y.query(e);f instanceof aa.default?this.attributes.attribute(f,h):h&&(null==f||e===this.statics.blotName&&this.formats()[e]===h||this.replaceWith(e,h))};h.prototype.formats=function(){var e=
125
- this.attributes.values(),h=this.statics.formats(this.domNode);null!=h&&(e[this.statics.blotName]=h);return e};h.prototype.replaceWith=function(f,h){f=e.prototype.replaceWith.call(this,f,h);this.attributes.copy(f);return f};h.prototype.update=function(f,h){var n=this;e.prototype.update.call(this,f,h);f.some(function(e){return e.target===n.domNode&&"attributes"===e.type})&&this.attributes.build()};h.prototype.wrap=function(f,n){f=e.prototype.wrap.call(this,f,n);f instanceof h&&f.statics.scope===this.statics.scope&&
126
- this.attributes.move(f);return f};return h}(e.default);ba.default=ca},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&(e[h]=n[h])};return function(w,n){function h(){this.constructor=w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=ca(30);var aa=ca(1);ca=function(e){function w(){return null!==
127
- e&&e.apply(this,arguments)||this}x(w,e);w.value=function(){return!0};w.prototype.index=function(e,h){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(h,1):-1};w.prototype.position=function(e){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<e&&(h+=1);return[this.parent.domNode,h]};w.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e};w.scope=aa.Scope.INLINE_BLOT;
128
- return w}(e.default);ba.default=ca},function(e,ba,ca){function x(e){this.ops=e;this.offset=this.index=0}var aa=ca(11),w=ca(3),y={attributes:{compose:function(e,h,f){"object"!==typeof e&&(e={});"object"!==typeof h&&(h={});var n=w(!0,{},h);f||(n=Object.keys(n).reduce(function(e,f){null!=n[f]&&(e[f]=n[f]);return e},{}));for(var x in e)void 0!==e[x]&&void 0===h[x]&&(n[x]=e[x]);return 0<Object.keys(n).length?n:void 0},diff:function(e,h){"object"!==typeof e&&(e={});"object"!==typeof h&&(h={});var f=Object.keys(e).concat(Object.keys(h)).reduce(function(f,
129
- n){aa(e[n],h[n])||(f[n]=void 0===h[n]?null:h[n]);return f},{});return 0<Object.keys(f).length?f:void 0},transform:function(e,h,f){if("object"!==typeof e)return h;if("object"===typeof h){if(!f)return h;f=Object.keys(h).reduce(function(f,n){void 0===e[n]&&(f[n]=h[n]);return f},{});return 0<Object.keys(f).length?f:void 0}}},iterator:function(e){return new x(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:
130
- 1}};x.prototype.hasNext=function(){return Infinity>this.peekLength()};x.prototype.next=function(e){e||(e=Infinity);var h=this.ops[this.index];if(h){var f=this.offset,n=y.length(h);e>=n-f?(e=n-f,this.index+=1,this.offset=0):this.offset+=e;if("number"===typeof h["delete"])return{"delete":e};n={};h.attributes&&(n.attributes=h.attributes);"number"===typeof h.retain?n.retain=e:n.insert="string"===typeof h.insert?h.insert.substr(f,e):h.insert;return n}return{retain:Infinity}};x.prototype.peek=function(){return this.ops[this.index]};
131
- x.prototype.peekLength=function(){return this.ops[this.index]?y.length(this.ops[this.index])-this.offset:Infinity};x.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"};x.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,h=this.index,f=this.next(),r=this.ops.slice(this.index);this.offset=
132
- e;this.index=h;return[f].concat(r)}return[]};e.exports=y},function(x){var ba=function(){function x(e,h){return null!=h&&e instanceof h}function da(f,r,z,aa,ba){function fa(f,z){if(null===f)return null;if(0===z||"object"!=typeof f)return f;if(x(f,y))var ja=new y;else if(x(f,n))ja=new n;else if(x(f,h))ja=new h(function(e,h){f.then(function(f){e(fa(f,z-1))},function(e){h(fa(e,z-1))})});else if(da.__isArray(f))ja=[];else if(da.__isRegExp(f))ja=new RegExp(f.source,w(f)),f.lastIndex&&(ja.lastIndex=f.lastIndex);
133
- else if(da.__isDate(f))ja=new Date(f.getTime());else{if(ha&&e.isBuffer(f))return ja=e.allocUnsafe?e.allocUnsafe(f.length):new e(f.length),f.copy(ja),ja;if(x(f,Error))ja=Object.create(f);else if("undefined"==typeof aa){var ia=Object.getPrototypeOf(f);ja=Object.create(ia)}else ja=Object.create(aa),ia=aa}if(r){var qa=ca.indexOf(f);if(-1!=qa)return ea[qa];ca.push(f);ea.push(ja)}x(f,y)&&f.forEach(function(e,f){f=fa(f,z-1);e=fa(e,z-1);ja.set(f,e)});x(f,n)&&f.forEach(function(e){e=fa(e,z-1);ja.add(e)});
134
- for(var ka in f){var la;ia&&(la=Object.getOwnPropertyDescriptor(ia,ka));la&&null==la.set||(ja[ka]=fa(f[ka],z-1))}if(Object.getOwnPropertySymbols)for(qa=Object.getOwnPropertySymbols(f),ka=0;ka<qa.length;ka++)if(la=qa[ka],ia=Object.getOwnPropertyDescriptor(f,la),!ia||ia.enumerable||ba)ja[la]=fa(f[la],z-1),ia.enumerable||Object.defineProperty(ja,la,{enumerable:!1});if(ba)for(qa=Object.getOwnPropertyNames(f),ka=0;ka<qa.length;ka++)la=qa[ka],ia=Object.getOwnPropertyDescriptor(f,la),ia&&ia.enumerable||
135
- (ja[la]=fa(f[la],z-1),Object.defineProperty(ja,la,{enumerable:!1}));return ja}"object"===typeof r&&(z=r.depth,aa=r.prototype,ba=r.includeNonEnumerable,r=r.circular);var ca=[],ea=[],ha="undefined"!=typeof e;"undefined"==typeof r&&(r=!0);"undefined"==typeof z&&(z=Infinity);return fa(f,z)}function aa(e){return Object.prototype.toString.call(e)}function w(e){var f="";e.global&&(f+="g");e.ignoreCase&&(f+="i");e.multiline&&(f+="m");return f}try{var y=Map}catch(f){y=function(){}}try{var n=Set}catch(f){n=
136
- function(){}}try{var h=Promise}catch(f){h=function(){}}da.clonePrototype=function(e){function f(){}if(null===e)return null;f.prototype=e;return new f};da.__objToStr=aa;da.__isDate=function(e){return"object"===typeof e&&"[object Date]"===aa(e)};da.__isArray=function(e){return"object"===typeof e&&"[object Array]"===aa(e)};da.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===aa(e)};da.__getRegExpFlags=w;return da}();"object"===typeof x&&x.exports&&(x.exports=ba)},function(e,ba,ca){function x(e){return e&&
137
- e.__esModule?e:{default:e}}function aa(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 w(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__=
138
- f)}function y(e){return e instanceof ea.default||e instanceof fa.BlockEmbed}Object.defineProperty(ba,"__esModule",{value:!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](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==f);n=!0);}catch(oa){r=!0,w=oa}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");
139
- }}(),h=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}}(),f=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)}};e=ca(0);
140
- var r=x(e);e=ca(8);var z=x(e),fa=ca(4),ea=x(fa);e=ca(16);var ha=x(e);e=ca(13);var ia=x(e);ca=ca(25);ca=x(ca);e=function(e){function x(e,f){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");e=aa(this,(x.__proto__||Object.getPrototypeOf(x)).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}w(x,e);h(x,
141
- [{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},{key:"deleteAt",value:function(e,h){var r=this.line(e),w=n(r,2);r=w[0];var z=w[1];w=this.line(e+h);w=n(w,1)[0];f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"deleteAt",this).call(this,e,h);if(null!=w&&r!==w&&0<z){if(r instanceof fa.BlockEmbed||w instanceof fa.BlockEmbed){this.optimize();return}if(r instanceof ia.default){if(e=r.newlineIndex(r.length(),!0),-1<e&&(r=r.split(e+
142
- 1),r===w)){this.optimize();return}}else w instanceof ia.default&&(e=w.newlineIndex(0),-1<e&&w.split(e+1));r.moveChildren(w,w.children.head instanceof ha.default?null:w.children.head);r.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,h,n,r){if(null==this.whitelist||this.whitelist[n])f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",
143
- this).call(this,e,h,n,r),this.optimize()}},{key:"insertAt",value:function(e,h,n){if(null==n||null==this.whitelist||this.whitelist[h])e>=this.length()?null==n||null==r.default.query(h,r.default.Scope.BLOCK)?(e=r.default.create(this.statics.defaultChild),this.appendChild(e),null==n&&h.endsWith("\n")&&(h=h.slice(0,-1)),e.insertAt(0,h,n)):(h=r.default.create(h,n),this.appendChild(h)):f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,e,h,n),this.optimize()}},{key:"insertBefore",
144
- value:function(e,h){if(e.statics.scope===r.default.Scope.INLINE_BLOT){var n=r.default.create(this.statics.defaultChild);n.appendChild(e);e=n}f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,e,h)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(y,e)}},{key:"lines",value:function(){return function va(e,f,h){var n=[],w=h;e.children.forEachAt(f,h,function(e,
145
- f,h){y(e)?n.push(e):e instanceof r.default.Container&&(n=n.concat(va(e,f,w)));w-=h});return n}(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]:[],h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,e,h),0<
146
- e.length&&this.emitter.emit(z.default.events.SCROLL_OPTIMIZE,e,h))}},{key:"path",value:function(e){return f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var h=z.default.sources.USER;"string"===typeof e&&(h=e);Array.isArray(e)||(e=this.observer.takeRecords());0<e.length&&this.emitter.emit(z.default.events.SCROLL_BEFORE_UPDATE,h,e);f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"update",
147
- this).call(this,e.concat([]));0<e.length&&this.emitter.emit(z.default.events.SCROLL_UPDATE,h,e)}}}]);return x}(r.default.Scroll);e.blotName="scroll";e.className="ql-editor";e.tagName="DIV";e.defaultChild="block";e.allowedChildren=[ea.default,fa.BlockEmbed,ca.default];ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}function w(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
148
- 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)}function n(e,f){var h,n=e===ya.keys.LEFT?"prefix":"suffix";return h={key:e,shiftKey:f,altKey:null},aa(h,n,/^$/),aa(h,"handler",function(h){var n=
149
- h.index;e===ya.keys.RIGHT&&(n+=h.length+1);n=this.quill.getLeaf(n);if(!(ma(n,1)[0]instanceof va.default.Embed))return!0;e===ya.keys.LEFT?f?this.quill.setSelection(h.index-1,h.length+1,oa.default.sources.USER):this.quill.setSelection(h.index-1,oa.default.sources.USER):f?this.quill.setSelection(h.index,h.length+1,oa.default.sources.USER):this.quill.setSelection(h.index+h.length+1,oa.default.sources.USER);return!1}),h}function h(e,f){if(!(0===e.index||1>=this.quill.getLength())){var h=this.quill.getLine(e.index),
150
- n=ma(h,1)[0];h={};if(0===f.offset){var r=this.quill.getLine(e.index-1);r=ma(r,1)[0];null!=r&&1<r.length()&&(h=n.formats(),n=this.quill.getFormat(e.index-1,1),h=qa.default.attributes.diff(h,n)||{})}f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(f.prefix)?2:1;this.quill.deleteText(e.index-f,f,oa.default.sources.USER);0<Object.keys(h).length&&this.quill.formatLine(e.index-f,f,h,oa.default.sources.USER);this.quill.focus()}}function f(e,f){var h=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(f.suffix)?2:1;if(!(e.index>=
151
- this.quill.getLength()-h)){var n={},r=0,w=this.quill.getLine(e.index);w=ma(w,1)[0];f.offset>=w.length()-1&&(f=this.quill.getLine(e.index+1),f=ma(f,1)[0])&&(n=w.formats(),r=this.quill.getFormat(e.index,1),n=qa.default.attributes.diff(n,r)||{},r=f.length());this.quill.deleteText(e.index,h,oa.default.sources.USER);0<Object.keys(n).length&&this.quill.formatLine(e.index+r-1,h,n,oa.default.sources.USER)}}function r(e){var f=this.quill.getLines(e),h={};1<f.length&&(h=f[0].formats(),f=f[f.length-1].formats(),
152
- h=qa.default.attributes.diff(f,h)||{});this.quill.deleteText(e,oa.default.sources.USER);0<Object.keys(h).length&&this.quill.formatLine(e.index,1,h,oa.default.sources.USER);this.quill.setSelection(e.index,oa.default.sources.SILENT);this.quill.focus()}function z(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){va.default.query(h,va.default.Scope.BLOCK)&&!Array.isArray(f.format[h])&&(e[h]=f.format[h]);return e},{});this.quill.insertText(e.index,
153
- "\n",n,oa.default.sources.USER);this.quill.setSelection(e.index+1,oa.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],oa.default.sources.USER))})}function fa(e){return{key:ya.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(f){var h=va.default.query("code-block"),n=f.index,r=f.length;f=this.quill.scroll.descendant(h,n);f=ma(f,2);var w=f[0],x=f[1];if(null!=w){f=this.quill.getIndex(w);
154
- var z=w.newlineIndex(x,!0)+1;f=w.newlineIndex(f+x+r);f=w.domNode.textContent.slice(z,f).split("\n");x=0;f.forEach(function(f,y){e?(w.insertAt(z+x,h.TAB),x+=h.TAB.length,0===y?n+=h.TAB.length:r+=h.TAB.length):f.startsWith(h.TAB)&&(w.deleteAt(z+x,h.TAB.length),x-=h.TAB.length,0===y?n-=h.TAB.length:r-=h.TAB.length);x+=f.length+1});this.quill.update(oa.default.sources.USER);this.quill.setSelection(n,r,oa.default.sources.SILENT)}}}}function ea(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(f,
155
- h){this.quill.format(e,!h.format[e],oa.default.sources.USER)}}}function ha(e){if("string"===typeof e||"number"===typeof e)return ha({key:e});"object"===("undefined"===typeof e?"undefined":ia(e))&&(e=(0,na.default)(e,!1));if("string"===typeof e.key)if(null!=ya.keys[e.key.toUpperCase()])e.key=ya.keys[e.key.toUpperCase()];else if(1===e.key.length)e.key=e.key.toUpperCase().charCodeAt(0);else return null;e.shortKey&&(e[Ca]=e.shortKey,delete e.shortKey);return e}Object.defineProperty(ba,"__esModule",{value:!0});
156
- ba.SHORTKEY=ba.default=void 0;var ia="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},ma=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](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==f);n=!0);}catch(xa){r=!0,w=xa}finally{try{if(!n&&
157
- x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),la=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}}();e=ca(21);var na=x(e);e=ca(11);var ra=x(e);e=ca(3);var sa=x(e);e=ca(2);var Da=x(e);e=ca(20);var qa=x(e);e=ca(0);var va=
158
- x(e);e=ca(5);var oa=x(e);e=ca(10);e=x(e);ca=ca(9);ca=x(ca);var ua=(0,e.default)("quill:keyboard"),Ca=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ya=function(e){function n(e,x){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var y=w(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,x));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])});
159
- y.addBinding({key:n.keys.ENTER,shiftKey:null},z);y.addBinding({key:n.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(y.addBinding({key:n.keys.BACKSPACE},{collapsed:!0},h),y.addBinding({key:n.keys.DELETE},{collapsed:!0},f)):(y.addBinding({key:n.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},h),y.addBinding({key:n.keys.DELETE},{collapsed:!0,suffix:/^.?$/},f));y.addBinding({key:n.keys.BACKSPACE},{collapsed:!1},r);y.addBinding({key:n.keys.DELETE},{collapsed:!1},
160
- r);y.addBinding({key:n.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},h);y.listen();return y}y(n,e);la(n,null,[{key:"match",value:function(e,f){f=ha(f);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(h){return!!f[h]!==e[h]&&null!==f[h]})?!1:f.key===(e.which||e.keyCode)}}]);la(n,[{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=
161
- ha(e);if(null==n||null==n.key)return ua.warn("Attempted to add invalid keyboard binding",n);"function"===typeof f&&(f={handler:f});"function"===typeof h&&(h={handler:h});n=(0,sa.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 n.match(f,e)});if(0!==h.length){var r=e.quill.getSelection();
162
- if(null!=r&&e.quill.hasFocus()){var w=e.quill.getLine(r.index),x=ma(w,2);w=x[0];x=x[1];var z=e.quill.getLeaf(r.index),y=ma(z,2);z=y[0];y=y[1];var aa=0===r.length?[z,y]:e.quill.getLeaf(r.index+r.length),da=ma(aa,2);aa=da[0];da=da[1];z=z instanceof va.default.Text?z.value().slice(0,y):"";y=aa instanceof va.default.Text?aa.value().slice(da):"";var ba={collapsed:0===r.length,empty:0===r.length&&1>=w.length(),format:e.quill.getFormat(r),offset:x,prefix:z,suffix:y};h.some(function(f){if(null!=f.collapsed&&
163
- f.collapsed!==ba.collapsed||null!=f.empty&&f.empty!==ba.empty||null!=f.offset&&f.offset!==ba.offset)return!1;if(Array.isArray(f.format)){if(f.format.every(function(e){return null==ba.format[e]}))return!1}else if("object"===ia(f.format)&&!Object.keys(f.format).every(function(e){return!0===f.format[e]?null!=ba.format[e]:!1===f.format[e]?null==ba.format[e]:(0,ra.default)(f.format[e],ba.format[e])}))return!1;return null!=f.prefix&&!f.prefix.test(ba.prefix)||null!=f.suffix&&!f.suffix.test(ba.suffix)?!1:
164
- !0!==f.handler.call(e,r,ba)})&&f.preventDefault()}}}})}}]);return n}(ca.default);ya.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};ya.DEFAULTS={bindings:{bold:ea("bold"),italic:ea("italic"),underline:ea("underline"),indent:{key:ya.keys.TAB,format:["blockquote","indent","list"],handler:function(e,f){if(f.collapsed&&0!==f.offset)return!0;this.quill.format("indent","+1",oa.default.sources.USER)}},outdent:{key:ya.keys.TAB,shiftKey:!0,format:["blockquote","indent",
165
- "list"],handler:function(e,f){if(f.collapsed&&0!==f.offset)return!0;this.quill.format("indent","-1",oa.default.sources.USER)}},"outdent backspace":{key:ya.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",oa.default.sources.USER):null!=f.format.list&&this.quill.format("list",!1,oa.default.sources.USER)}},"indent code-block":fa(!0),"outdent code-block":fa(!1),
166
- "remove tab":{key:ya.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,oa.default.sources.USER)}},tab:{key:ya.keys.TAB,handler:function(e){this.quill.history.cutoff();var f=(new Da.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(f,oa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(e.index+1,oa.default.sources.SILENT)}},"list empty enter":{key:ya.keys.ENTER,collapsed:!0,format:["list"],empty:!0,
167
- handler:function(e,f){this.quill.format("list",!1,oa.default.sources.USER);f.format.indent&&this.quill.format("indent",!1,oa.default.sources.USER)}},"checklist enter":{key:ya.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var f=this.quill.getLine(e.index),h=ma(f,2);f=h[0];h=h[1];var n=(0,sa.default)({},f.formats(),{list:"checked"});f=(new Da.default).retain(e.index).insert("\n",n).retain(f.length()-h-1).retain(1,{list:"unchecked"});this.quill.updateContents(f,oa.default.sources.USER);
168
- this.quill.setSelection(e.index+1,oa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:ya.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,f){var h=this.quill.getLine(e.index),n=ma(h,2);h=n[0];n=n[1];f=(new Da.default).retain(e.index).insert("\n",f.format).retain(h.length()-n-1).retain(1,{header:null});this.quill.updateContents(f,oa.default.sources.USER);this.quill.setSelection(e.index+1,oa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",
169
- 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=ma(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," ",oa.default.sources.USER);this.quill.history.cutoff();f=(new Da.default).retain(e.index-r).delete(h+1).retain(n.length()-2-r).retain(1,
170
- {list:f});this.quill.updateContents(f,oa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(e.index-h,oa.default.sources.SILENT)}},"code exit":{key:ya.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var f=this.quill.getLine(e.index),h=ma(f,2);f=h[0];h=h[1];e=(new Da.default).retain(e.index+f.length()-h-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(e,oa.default.sources.USER)}},"embed left":n(ya.keys.LEFT,
171
- !1),"embed left shift":n(ya.keys.LEFT,!0),"embed right":n(ya.keys.RIGHT,!1),"embed right shift":n(ya.keys.RIGHT,!0)}};ba.default=ya;ba.SHORTKEY=Ca},function(e,ba,ca){function x(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ba,
172
- "__esModule",{value:!0});var aa=function(){return function(e,h){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var f=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(f.push(y.value),!h||f.length!==h);n=!0);}catch(la){r=!0,w=la}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return f}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),w=function ka(e,h,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,
173
- h);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return ka(e,h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?void 0:h.call(n)}},y=function(){function e(e,h){for(var n=0;n<h.length;n++){var r=h[n];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(e,r.key,r)}}return function(h,n,r){n&&e(h.prototype,n);r&&e(h,r);return h}}(),n=(e=ca(0))&&e.__esModule?e:{default:e},h=(ca=ca(7))&&ca.__esModule?ca:{default:ca};ca=function(e){function r(e,
174
- h){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");e=(r.__proto__||Object.getPrototypeOf(r)).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=h;e.textNode=document.createTextNode(r.CONTENTS);e.domNode.appendChild(e.textNode);e._length=0;return e}x(r,e);y(r,null,[{key:"value",value:function(){}}]);y(r,[{key:"detach",value:function(){null!=this.parent&&
175
- this.parent.removeChild(this)}},{key:"format",value:function(e,h){if(0!==this._length)return w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,e,h);for(var x=this,y=0;null!=x&&x.statics.scope!==n.default.Scope.BLOCK_BLOT;)y+=x.offset(x.parent),x=x.parent;null!=x&&(this._length=r.CONTENTS.length,x.optimize(),x.formatAt(y,r.CONTENTS.length,e,h),this._length=0)}},{key:"index",value:function(e,h){return e===this.textNode?0:w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),
176
- "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(){w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,w=this.selection.getNativeRange(),x=void 0,y=void 0,z=void 0;null!=w&&w.start.node===e&&w.end.node===
177
- e&&(z=[e,w.start.offset,w.end.offset],x=z[0],y=z[1],z=z[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==r.CONTENTS&&(e=this.textNode.data.split(r.CONTENTS).join(""),this.next instanceof h.default?(x=this.next.domNode,this.next.insertAt(0,e),this.textNode.data=r.CONTENTS):(this.textNode.data=e,this.parent.insertBefore(n.default.create(this.textNode),this),this.textNode=document.createTextNode(r.CONTENTS),
178
- this.domNode.appendChild(this.textNode)));this.remove();if(null!=y)return y=[y,z].map(function(e){return Math.max(0,Math.min(x.data.length,e-1))}),z=aa(y,2),y=z[0],z=z[1],{startNode:x,startOffset:y,endNode:x,endOffset:z}}}},{key:"update",value:function(e,h){var n=this;e.some(function(e){return"characterData"===e.type&&e.target===n.textNode})&&(e=this.restore())&&(h.range=e)}},{key:"value",value:function(){return""}}]);return r}(n.default.Embed);ca.blotName="cursor";ca.className="ql-cursor";ca.tagName=
179
- "span";ca.CONTENTS="\ufeff";ba.default=ca},function(e,ba,ca){function x(e,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);e.prototype=Object.create(x&&x.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(e,x):e.__proto__=x)}Object.defineProperty(ba,"__esModule",{value:!0});e=(e=ca(0))&&e.__esModule?e:{default:e};var aa=(ca=ca(4))&&ca.__esModule?ca:
180
- {default:ca};e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).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}x(w,e);return w}(e.default.Container);e.allowedChildren=[aa.default,ca.BlockEmbed,e];ba.default=e},function(e,ba,ca){function x(e,h){if("function"!==typeof h&&
181
- null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ba,"__esModule",{value:!0});ba.ColorStyle=ba.ColorClass=ba.ColorAttributor=void 0;var 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
182
- n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}},y=function(e){return e&&e.__esModule?e:{default:e}}(ca(0));e=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
183
- 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}x(f,e);aa(f,[{key:"value",value:function(e){e=w(f.prototype.__proto__||Object.getPrototypeOf(f.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("")}}]);
184
- return f}(y.default.Attributor.Style);ca=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE});y=new e("color","color",{scope:y.default.Scope.INLINE});ba.ColorAttributor=e;ba.ColorClass=ca;ba.ColorStyle=y},function(e,ba,ca){function x(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&
185
- (Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}function aa(e,h){var f=document.createElement("a");f.href=e;e=f.href.slice(0,f.href.indexOf(":"));return-1<h.indexOf(e)}Object.defineProperty(ba,"__esModule",{value:!0});ba.sanitize=ba.default=void 0;var 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(h,f,n){f&&e(h.prototype,f);n&&e(h,n);
186
- return h}}(),y=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=function(e){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");
187
- return!e||"object"!==typeof e&&"function"!==typeof e?this:e}x(f,e);w(f,[{key:"format",value:function(e,h){if(e!==this.statics.blotName||!h)return y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,e,h);h=this.constructor.sanitize(h);this.domNode.setAttribute("href",h)}}],[{key:"create",value:function(e){var h=y(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,e);e=this.sanitize(e);h.setAttribute("href",e);h.setAttribute("rel","noopener noreferrer");
188
- h.setAttribute("target","_blank");return h}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return aa(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ca(6)).default);e.blotName="link";e.tagName="A";e.SANITIZED_URL="about:blank";e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];ba.default=e;ba.sanitize=aa},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});var x="function"===
189
- 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},aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];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=(e=ca(23))&&e.__esModule?e:{default:e},y=(ca=ca(107))&&ca.__esModule?
190
- ca:{default:ca},n=0;ca=function(){function e(f){var h=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.select=f;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(){h.togglePicker()});this.label.addEventListener("keydown",function(e){switch(e.keyCode){case w.default.keys.ENTER:h.togglePicker();break;
191
- case w.default.keys.ESCAPE:h.escape(),e.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}aa(e,[{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 f=this,h=document.createElement("span");h.tabIndex="0";h.setAttribute("role",
192
- "button");h.classList.add("ql-picker-item");e.hasAttribute("value")&&h.setAttribute("data-value",e.getAttribute("value"));e.textContent&&h.setAttribute("data-label",e.textContent);h.addEventListener("click",function(){f.selectItem(h,!0)});h.addEventListener("keydown",function(e){switch(e.keyCode){case w.default.keys.ENTER:f.selectItem(h,!0);e.preventDefault();break;case w.default.keys.ESCAPE:f.escape(),e.preventDefault()}});return h}},{key:"buildLabel",value:function(){var e=document.createElement("span");
193
- e.classList.add("ql-picker-label");e.innerHTML=y.default;e.tabIndex="0";e.setAttribute("role","button");e.setAttribute("aria-expanded","false");this.container.appendChild(e);return e}},{key:"buildOptions",value:function(){var e=this,h=document.createElement("span");h.classList.add("ql-picker-options");h.setAttribute("aria-hidden","true");h.tabIndex="-1";h.id="ql-picker-options-"+n;n+=1;this.label.setAttribute("aria-controls",h.id);this.options=h;[].slice.call(this.select.options).forEach(function(f){var n=
194
- e.buildItem(f);h.appendChild(n);!0===f.selected&&e.selectItem(n)});this.container.appendChild(h)}},{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");
195
- 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")):
196
- 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":x(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 h=
197
- this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex];this.selectItem(h)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=e&&e!==this.select.querySelector("option[selected]"))}}]);return e}();ba.default=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(ba,"__esModule",{value:!0});e=ca(0);e=x(e);var aa=ca(5);aa=x(aa);var w=ca(4),y=x(w),n=ca(16);n=x(n);
198
- var h=ca(25);h=x(h);var f=ca(24);f=x(f);var r=ca(35);r=x(r);var z=ca(6);z=x(z);var fa=ca(22);fa=x(fa);var ea=ca(7);ea=x(ea);var ha=ca(55);ha=x(ha);var ia=ca(42);ia=x(ia);ca=ca(23);aa.default.register({"blots/block":y.default,"blots/block/embed":w.BlockEmbed,"blots/break":n.default,"blots/container":h.default,"blots/cursor":f.default,"blots/embed":r.default,"blots/inline":z.default,"blots/scroll":fa.default,"blots/text":ea.default,"modules/clipboard":ha.default,"modules/history":ia.default,"modules/keyboard":x(ca).default});
199
- e.default.register(y.default,n.default,f.default,z.default,fa.default,ea.default);ba.default=aa.default},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});var x=ca(1);e=function(){function e(e){this.domNode=e;this.domNode[x.DATA_KEY]={blot:this}}Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0});e.create=function(e){if(null==this.tagName)throw new x.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?
200
- ("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),e="number"===typeof e?document.createElement(this.tagName[e-1]):-1<this.tagName.indexOf(e)?document.createElement(e):document.createElement(this.tagName[0])):e=document.createElement(this.tagName);this.className&&e.classList.add(this.className);return e};e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return x.create(e)};
201
- e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[x.DATA_KEY]};e.prototype.deleteAt=function(e,x){this.isolate(e,x).remove()};e.prototype.formatAt=function(e,y,n,h){e=this.isolate(e,y);null!=x.query(n,x.Scope.BLOT)&&h?e.wrap(n,h):null!=x.query(n,x.Scope.ATTRIBUTE)&&(y=x.create(this.statics.scope),e.wrap(y),y.format(n,h))};e.prototype.insertAt=function(e,y,n){y=null==n?x.create("text",y):x.create(y,n);e=this.split(e);this.parent.insertBefore(y,e)};e.prototype.insertInto=
202
- function(e,x){void 0===x&&(x=null);null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,x);null!=x&&(n=x.domNode);this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n);this.parent=e;this.attach()};e.prototype.isolate=function(e,x){e=this.split(e);e.split(x);return e};e.prototype.length=function(){return 1};e.prototype.offset=function(e){void 0===e&&(e=this.parent);return null==this.parent||this==e?0:this.parent.children.offset(this)+
203
- this.parent.offset(e)};e.prototype.optimize=function(){null!=this.domNode[x.DATA_KEY]&&delete this.domNode[x.DATA_KEY].mutations};e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())};e.prototype.replaceWith=function(e,y){e="string"===typeof e?x.create(e,y):e;e.replace(this);return e};e.prototype.split=function(e){return 0===e?this:
204
- this.next};e.prototype.update=function(){};e.prototype.wrap=function(e,y){e="string"===typeof e?x.create(e,y):e;null!=this.parent&&this.parent.insertBefore(e,this.next);e.appendChild(this);return e};e.blotName="abstract";return e}();ba.default=e},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});var x=ca(12),aa=ca(32),w=ca(33),y=ca(1);e=function(){function e(e){this.attributes={};this.domNode=e;this.build()}e.prototype.attribute=function(e,f){f?e.add(this.domNode,f)&&(null!=e.value(this.domNode)?
205
- this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])};e.prototype.build=function(){var e=this;this.attributes={};var f=x.default.keys(this.domNode),n=aa.default.keys(this.domNode),z=w.default.keys(this.domNode);f.concat(n).concat(z).forEach(function(f){f=y.query(f,y.Scope.ATTRIBUTE);f instanceof x.default&&(e.attributes[f.attrName]=f)})};e.prototype.copy=function(e){var f=this;Object.keys(this.attributes).forEach(function(h){var n=
206
- f.attributes[h].value(f.domNode);e.format(h,n)})};e.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={}};e.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 e}();ba.default=e},function(e,ba,ca){function x(e,x){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(x+
207
- "-")})}var aa=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&(e[h]=n[h])};return function(w,n){function h(){this.constructor=w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}aa(w,e);w.keys=function(e){return(e.getAttribute("class")||
208
- "").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})};w.prototype.add=function(e,h){if(!this.canAdd(e,h))return!1;this.remove(e);e.classList.add(this.keyName+"-"+h);return!0};w.prototype.remove=function(e){x(e,this.keyName).forEach(function(h){e.classList.remove(h)});0===e.classList.length&&e.removeAttribute("class")};w.prototype.value=function(e){var h=(x(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,h)?h:""};return w}(ca(12).default);ba.default=
209
- e},function(e,ba,ca){function x(e){e=e.split("-");var w=e.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return e[0]+w}var aa=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&(e[h]=n[h])};return function(w,n){function h(){this.constructor=w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",
210
- {value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}aa(w,e);w.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})};w.prototype.add=function(e,h){if(!this.canAdd(e,h))return!1;e.style[x(this.keyName)]=h;return!0};w.prototype.remove=function(e){e.style[x(this.keyName)]="";e.getAttribute("style")||e.removeAttribute("style")};w.prototype.value=function(e){var h=e.style[x(this.keyName)];return this.canAdd(e,h)?
211
- h:""};return w}(ca(12).default);ba.default=e},function(e,ba){Object.defineProperty(ba,"__esModule",{value:!0});var x=function(){function e(e,w){for(var x=0;x<w.length;x++){var n=w[x];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(x,w,y){w&&e(x.prototype,w);y&&e(x,y);return x}}();e=function(){function e(x,w){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.quill=x;this.options=w;this.modules=
212
- {}}x(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(w){null==e.modules[w]&&e.addModule(w)})}},{key:"addModule",value:function(e){var w=this.quill.constructor.import("modules/"+e);this.modules[e]=new w(this.quill,this.options.modules[e]||{});return this.modules[e]}}]);return e}();e.DEFAULTS={modules:{}};e.themes={"default":e};ba.default=e},function(e,ba,ca){function x(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
213
- return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function aa(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ba,"__esModule",{value:!0});var w=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=
214
- 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}}(),y=function ka(e,h,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,h);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return ka(e,h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?void 0:h.call(n)}},n=(e=ca(0))&&e.__esModule?e:{default:e},h=(ca=ca(7))&&ca.__esModule?ca:{default:ca};ca=function(e){function r(e){if(!(this instanceof
215
- r))throw new TypeError("Cannot call a class as a function");var h=x(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));h.contentNode=document.createElement("span");h.contentNode.setAttribute("contenteditable",!1);[].slice.call(h.domNode.childNodes).forEach(function(e){h.contentNode.appendChild(e)});h.leftGuard=document.createTextNode("\ufeff");h.rightGuard=document.createTextNode("\ufeff");h.domNode.appendChild(h.leftGuard);h.domNode.appendChild(h.contentNode);h.domNode.appendChild(h.rightGuard);
216
- return h}aa(r,e);w(r,[{key:"index",value:function(e,h){return e===this.leftGuard?0:e===this.rightGuard?1:y(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,e,h)}},{key:"restore",value:function(e){var r=void 0,w=e.data.split("\ufeff").join("");e===this.leftGuard?this.prev instanceof h.default?(r=this.prev.length(),this.prev.insertAt(r,w),r={startNode:this.prev.domNode,startOffset:r+w.length}):(r=document.createTextNode(w),this.parent.insertBefore(n.default.create(r),
217
- this),r={startNode:r,startOffset:w.length}):e===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,w),r={startNode:this.next.domNode,startOffset:w.length}):(r=document.createTextNode(w),this.parent.insertBefore(n.default.create(r),this.next),r={startNode:r,startOffset:w.length}));e.data="\ufeff";return r}},{key:"update",value:function(e,h){var n=this;e.forEach(function(e){"characterData"!==e.type||e.target!==n.leftGuard&&e.target!==n.rightGuard||!(e=n.restore(e.target))||(h.range=
218
- e)})}}]);return r}(n.default.Embed);ba.default=ca},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});ba.AlignStyle=ba.AlignClass=ba.AlignAttribute=void 0;var x=(e=ca(0))&&e.__esModule?e:{default:e};var aa={scope:x.default.Scope.BLOCK,whitelist:["right","center","justify"]};e=new x.default.Attributor.Attribute("align","align",aa);ca=new x.default.Attributor.Class("align","ql-align",aa);x=new x.default.Attributor.Style("align","text-align",aa);ba.AlignAttribute=e;ba.AlignClass=ca;
219
- ba.AlignStyle=x},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});ba.BackgroundStyle=ba.BackgroundClass=void 0;e=(e=ca(0))&&e.__esModule?e:{default:e};var x=ca(26);ca=new e.default.Attributor.Class("background","ql-bg",{scope:e.default.Scope.INLINE});e=new x.ColorAttributor("background","background-color",{scope:e.default.Scope.INLINE});ba.BackgroundClass=ca;ba.BackgroundStyle=e},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});ba.DirectionStyle=ba.DirectionClass=
220
- ba.DirectionAttribute=void 0;var x=(e=ca(0))&&e.__esModule?e:{default:e};var aa={scope:x.default.Scope.BLOCK,whitelist:["rtl"]};e=new x.default.Attributor.Attribute("direction","dir",aa);ca=new x.default.Attributor.Class("direction","ql-direction",aa);x=new x.default.Attributor.Style("direction","direction",aa);ba.DirectionAttribute=e;ba.DirectionClass=ca;ba.DirectionStyle=x},function(e,ba,ca){function x(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+
221
- typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ba,"__esModule",{value:!0});ba.FontClass=ba.FontStyle=void 0;var 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(h,f,n){f&&e(h.prototype,f);n&&e(h,
222
- n);return h}}(),w=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};ca=function(e){return e&&e.__esModule?e:{default:e}}(ca(0));var y={scope:ca.default.Scope.INLINE,whitelist:["serif","monospace"]};e=new ca.default.Attributor.Class("font","ql-font",y);ca=new (function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
223
- 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}x(f,e);aa(f,[{key:"value",value:function(e){return w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]);return f}(ca.default.Attributor.Style))("font","font-family",y);ba.FontStyle=ca;ba.FontClass=e},function(e,ba,ca){Object.defineProperty(ba,
224
- "__esModule",{value:!0});ba.SizeStyle=ba.SizeClass=void 0;ca=(e=ca(0))&&e.__esModule?e:{default:e};e=new ca.default.Attributor.Class("size","ql-size",{scope:ca.default.Scope.INLINE,whitelist:["small","large","huge"]});ca=new ca.default.Attributor.Style("size","font-size",{scope:ca.default.Scope.INLINE,whitelist:["10px","18px","32px"]});ba.SizeClass=e;ba.SizeStyle=ca},function(e,ba,ca){e.exports={align:{"":ca(76),center:ca(77),right:ca(78),justify:ca(79)},background:ca(80),blockquote:ca(81),bold:ca(82),
225
- clean:ca(83),code:ca(58),"code-block":ca(58),color:ca(84),direction:{"":ca(85),rtl:ca(86)},"float":{center:ca(87),full:ca(88),left:ca(89),right:ca(90)},formula:ca(91),header:{1:ca(92),2:ca(93)},italic:ca(94),image:ca(95),indent:{"+1":ca(96),"-1":ca(97)},link:ca(98),list:{ordered:ca(99),bullet:ca(100),check:ca(101)},script:{sub:ca(102),"super":ca(103)},strike:ca(104),underline:ca(105),video:ca(106)}},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
226
- return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function w(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){e=e.ops[e.ops.length-1];return null==e?!1:null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=
227
- e.attributes?Object.keys(e.attributes).some(function(e){return null!=f.default.query(e,f.default.Scope.BLOCK)}):!1}function n(e){var f=e.reduce(function(e,f){return e+=f.delete||0},0);f=e.length()-f;y(e)&&--f;return f}Object.defineProperty(ba,"__esModule",{value:!0});ba.getLastChangeIndex=ba.default=void 0;var h=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,
228
- h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();e=ca(0);var f=x(e);e=ca(5);var r=x(e);ca=ca(9);ca=function(e){function f(e,h){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var n=aa(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));n.lastRecorded=0;n.ignoreChange=!1;n.clear();n.quill.on(r.default.events.EDITOR_CHANGE,function(e,f,h,w){e!==r.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&w!==r.default.sources.USER?n.transform(f):n.record(f,
229
- h))});n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n));n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n));/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n));return n}w(f,e);h(f,[{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],r.default.sources.USER);this.ignoreChange=!1;e=n(h[e]);
230
- 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&&
231
- 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 f}(x(ca).default);ca.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ba.default=ca;ba.getLastChangeIndex=n},function(e,
232
- ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(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,
233
- enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}function n(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 h=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=
234
- 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}}(),f=function ya(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 ya(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ca(3);e=x(e);var r=ca(2),z=x(r);r=ca(8);var fa=x(r);r=ca(23);var ea=x(r);r=ca(34);r=x(r);
235
- var ha=ca(59),ia=x(ha);ha=ca(60);var ma=x(ha);ha=ca(28);var la=x(ha);ca=ca(61);ha=x(ca);var na=[!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(" "),sa=[!1,"serif","monospace"],Da=["1","2","3",!1],qa=["small",!1,"large","huge"];
236
- ca=function(e){function r(e,f){aa(this,r);var h=w(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,f));e.emitter.listenDOM("click",document.body,function Ga(f){if(!document.body.contains(e.root))return document.body.removeEventListener("click",Ga);null==h.tooltip||h.tooltip.root.contains(f.target)||document.activeElement===h.tooltip.textbox||h.quill.hasFocus()||h.tooltip.hide();null!=h.pickers&&h.pickers.forEach(function(e){e.container.contains(f.target)||e.close()})});return h}y(r,e);h(r,
237
- [{key:"addModule",value:function(e){var h=f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"addModule",this).call(this,e);"toolbar"===e&&this.extendToolbar(h);return h}},{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=
238
- 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")&&n(e,na),new ma.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")&&n(e,ra,"background"===h?"#ffffff":"#000000");return new ia.default(e,f[h])}null==e.querySelector("option")&&(e.classList.contains("ql-font")?
239
- n(e,sa):e.classList.contains("ql-header")?n(e,Da):e.classList.contains("ql-size")&&n(e,qa));return new la.default(e)});this.quill.on(fa.default.events.EDITOR_CHANGE,function(){h.pickers.forEach(function(e){e.update()})})}}]);return r}(r.default);ca.DEFAULTS=(0,e.default)(!0,{},r.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"),
240
- 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 z.default).retain(n.index).delete(n.length).insert({image:h.target.result}),fa.default.sources.USER);e.quill.setSelection(n.index+1,fa.default.sources.SILENT);f.value=""};h.readAsDataURL(f.files[0])}}),
241
- this.container.appendChild(f));f.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});e=function(e){function f(e,h){aa(this,f);e=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));e.textbox=e.root.querySelector('input[type="text"]');e.listen();return e}y(f,e);h(f,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(f){ea.default.match(f,"enter")?(e.save(),f.preventDefault()):ea.default.match(f,"escape")&&(e.cancel(),f.preventDefault())})}},
242
- {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",
243
- 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,fa.default.sources.USER),delete this.linkRange):(this.restoreFocus(),
244
- this.quill.format("link",e,fa.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!=
245
- f&&(f=f.index+f.length,this.quill.insertEmbed(f,this.root.getAttribute("data-mode"),e,fa.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(f+1," ",fa.default.sources.USER),this.quill.setSelection(f+2,fa.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return f}(ha.default);ba.BaseTooltip=e;ba.default=ca},function(e,ba){Object.defineProperty(ba,"__esModule",{value:!0});e=function(){function e(){this.head=this.tail=null;this.length=0}e.prototype.append=
246
- function(){for(var e=[],x=0;x<arguments.length;x++)e[x]=arguments[x];this.insertBefore(e[0],null);1<e.length&&this.append.apply(this,e.slice(1))};e.prototype.contains=function(e){for(var x,w=this.iterator();x=w();)if(x===e)return!0;return!1};e.prototype.insertBefore=function(e,x){e&&(e.next=x,null!=x?(e.prev=x.prev,null!=x.prev&&(x.prev.next=e),x.prev=e,x===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)};
247
- e.prototype.offset=function(e){for(var x=0,w=this.head;null!=w;){if(w===e)return x;x+=w.length();w=w.next}return-1};e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),--this.length)};e.prototype.iterator=function(e){void 0===e&&(e=this.head);return function(){var x=e;null!=e&&(e=e.next);return x}};e.prototype.find=function(e,x){void 0===x&&(x=!1);for(var w,y=this.iterator();w=
248
- y();){var n=w.length();if(e<n||x&&e===n&&(null==w.next||0!==w.next.length()))return[w,e];e-=n}return[null,0]};e.prototype.forEach=function(e){for(var x,w=this.iterator();x=w();)e(x)};e.prototype.forEachAt=function(e,x,w){if(!(0>=x))for(var y=this.find(e),n=e-y[1],h=this.iterator(y[0]);(y=h())&&n<e+x;){var f=y.length();e>n?w(y,e-n,Math.min(x,n+f-e)):w(y,0,Math.min(f,e+x-n));n+=f}};e.prototype.map=function(e){return this.reduce(function(x,w){x.push(e(w));return x},[])};e.prototype.reduce=function(e,
249
- x){for(var w,y=this.iterator();w=y();)x=e(x,w);return x};return e}();ba.default=e},function(e,ba,ca){var x=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(h,f){function n(){this.constructor=h}e(h,f);h.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});var aa=ca(17),w=ca(1),y=
250
- {attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};e=function(e){function h(f){var h=e.call(this,f)||this;h.scroll=h;h.observer=new MutationObserver(function(e){h.update(e)});h.observer.observe(h.domNode,y);h.attach();return h}x(h,e);h.prototype.detach=function(){e.prototype.detach.call(this);this.observer.disconnect()};h.prototype.deleteAt=function(f,h){this.update();0===f&&h===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,
251
- f,h)};h.prototype.formatAt=function(f,h,n,w){this.update();e.prototype.formatAt.call(this,f,h,n,w)};h.prototype.insertAt=function(f,h,n){this.update();e.prototype.insertAt.call(this,f,h,n)};h.prototype.optimize=function(f,h){function n(e){null!=e.domNode[w.DATA_KEY]&&null!=e.domNode[w.DATA_KEY].mutations&&(e instanceof aa.default&&e.children.forEach(n),e.optimize(h))}function r(e,f){void 0===f&&(f=!0);null!=e&&e!==x&&null!=e.domNode.parentNode&&(null==e.domNode[w.DATA_KEY].mutations&&(e.domNode[w.DATA_KEY].mutations=
252
- []),f&&r(e.parent))}var x=this;void 0===f&&(f=[]);void 0===h&&(h={});e.prototype.optimize.call(this,h);for(var y=[].slice.call(this.observer.takeRecords());0<y.length;)f.push(y.pop());for(var ba=f,da=0;0<ba.length;da+=1){if(100<=da)throw Error("[Parchment] Maximum optimize iterations reached");ba.forEach(function(e){var f=w.find(e.target,!0);null!=f&&(f.domNode===e.target&&("childList"===e.type?(r(w.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){e=w.find(e,!1);r(e,!1);e instanceof
253
- aa.default&&e.children.forEach(function(e){r(e,!1)})})):"attributes"===e.type&&r(f.prev)),r(f))});this.children.forEach(n);ba=[].slice.call(this.observer.takeRecords());for(y=ba.slice();0<y.length;)f.push(y.pop())}};h.prototype.update=function(f,h){var n=this;void 0===h&&(h={});f=f||this.observer.takeRecords();f.map(function(e){var f=w.find(e.target,!0);if(null==f)return null;if(null==f.domNode[w.DATA_KEY].mutations)return f.domNode[w.DATA_KEY].mutations=[e],f;f.domNode[w.DATA_KEY].mutations.push(e);
254
- return null}).forEach(function(e){null!=e&&e!==n&&null!=e.domNode[w.DATA_KEY]&&e.update(e.domNode[w.DATA_KEY].mutations||[],h)});null!=this.domNode[w.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,h);this.optimize(f,h)};h.blotName="scroll";h.defaultChild="block";h.scope=w.Scope.BLOCK_BLOT;h.tagName="DIV";return h}(aa.default);ba.default=e},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,
255
- h){e.__proto__=h}||function(e,h){for(var f in h)h.hasOwnProperty(f)&&(e[f]=h[f])};return function(n,h){function f(){this.constructor=n}e(n,h);n.prototype=null===h?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(ba,"__esModule",{value:!0});var aa=ca(18),w=ca(1);e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}x(n,e);n.formats=function(h){if(h.tagName!==n.tagName)return e.formats.call(this,h)};n.prototype.format=function(h,f){var r=this;h!==this.statics.blotName||
256
- f?e.prototype.format.call(this,h,f):(this.children.forEach(function(e){e instanceof aa.default||(e=e.wrap(n.blotName,!0));r.attributes.copy(e)}),this.unwrap())};n.prototype.formatAt=function(h,f,n,x){null!=this.formats()[n]||w.query(n,w.Scope.ATTRIBUTE)?this.isolate(h,f).format(n,x):e.prototype.formatAt.call(this,h,f,n,x)};n.prototype.optimize=function(h){e.prototype.optimize.call(this,h);h=this.formats();if(0===Object.keys(h).length)return this.unwrap();var f=this.next,r;if(r=f instanceof n&&f.prev===
257
- this)a:if(r=f.formats(),Object.keys(h).length!==Object.keys(r).length)r=!1;else{for(var w in h)if(h[w]!==r[w]){r=!1;break a}r=!0}r&&(f.moveChildren(this),f.remove())};n.blotName="inline";n.scope=w.Scope.INLINE_BLOT;n.tagName="SPAN";return n}(aa.default);ba.default=e},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&(e[h]=n[h])};return function(w,n){function h(){this.constructor=
258
- w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=ca(18);var aa=ca(1);ca=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}x(w,e);w.formats=function(n){var h=aa.query(w.blotName).tagName;if(n.tagName!==h)return e.formats.call(this,n)};w.prototype.format=function(n,h){null!=aa.query(n,aa.Scope.BLOCK)&&(n!==this.statics.blotName||h?e.prototype.format.call(this,n,h):this.replaceWith(w.blotName))};
259
- w.prototype.formatAt=function(n,h,f,r){null!=aa.query(f,aa.Scope.BLOCK)?this.format(f,r):e.prototype.formatAt.call(this,n,h,f,r)};w.prototype.insertAt=function(n,h,f){null==f||null!=aa.query(h,aa.Scope.INLINE)?e.prototype.insertAt.call(this,n,h,f):(n=this.split(n),h=aa.create(h,f),n.parent.insertBefore(h,n))};w.prototype.update=function(n,h){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,n,h)};w.blotName="block";w.scope=aa.Scope.BLOCK_BLOT;w.tagName="P";return w}(e.default);
260
- ba.default=ca},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,x){e.__proto__=x}||function(e,x){for(var n in x)x.hasOwnProperty(n)&&(e[n]=x[n])};return function(w,x){function n(){this.constructor=w}e(w,x);w.prototype=null===x?Object.create(x):(n.prototype=x.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}x(w,e);w.formats=
261
- function(){};w.prototype.format=function(w,n){e.prototype.formatAt.call(this,0,this.length(),w,n)};w.prototype.formatAt=function(w,n,h,f){0===w&&n===this.length()?this.format(h,f):e.prototype.formatAt.call(this,w,n,h,f)};w.prototype.formats=function(){return this.statics.formats(this.domNode)};return w}(ca(19).default);ba.default=e},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&
262
- (e[h]=n[h])};return function(w,n){function h(){this.constructor=w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=ca(19);var aa=ca(1);ca=function(e){function w(n){n=e.call(this,n)||this;n.text=n.statics.value(n.domNode);return n}x(w,e);w.create=function(e){return document.createTextNode(e)};w.value=function(e){e=e.data;e.normalize&&(e=e.normalize());return e};w.prototype.deleteAt=function(e,h){this.domNode.data=this.text=
263
- this.text.slice(0,e)+this.text.slice(e+h)};w.prototype.index=function(e,h){return this.domNode===e?h:-1};w.prototype.insertAt=function(n,h,f){null==f?(this.text=this.text.slice(0,n)+h+this.text.slice(n),this.domNode.data=this.text):e.prototype.insertAt.call(this,n,h,f)};w.prototype.length=function(){return this.text.length};w.prototype.optimize=function(n){e.prototype.optimize.call(this,n);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof w&&this.next.prev===
264
- this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};w.prototype.position=function(e){return[this.domNode,e]};w.prototype.split=function(e,h){void 0===h&&(h=!1);if(!h){if(0===e)return this;if(e===this.length())return this.next}e=aa.create(this.domNode.splitText(e));this.parent.insertBefore(e,this.next);this.text=this.statics.value(this.domNode);return e};w.prototype.update=function(e){var h=this;e.some(function(e){return"characterData"===e.type&&e.target===h.domNode})&&(this.text=
265
- this.statics.value(this.domNode))};w.prototype.value=function(){return this.text};w.blotName="text";w.scope=aa.Scope.INLINE_BLOT;return w}(e.default);ba.default=ca},function(){var e=document.createElement("div");e.classList.toggle("test-class",!1);if(e.classList.contains("test-class")){var ba=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,x){return 1<arguments.length&&!this.contains(e)===!x?x:ba.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,
266
- x){return this.substr(x||0,e.length)===e});String.prototype.endsWith||(String.prototype.endsWith=function(e,x){var aa=this.toString();if("number"!==typeof x||!isFinite(x)||Math.floor(x)!==x||x>aa.length)x=aa.length;x-=e.length;e=aa.indexOf(e,x);return-1!==e&&e===x});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e,x){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");
267
- for(var aa=Object(this),w=aa.length>>>0,y,n=0;n<w;n++)if(y=aa[n],e.call(x,y,n,aa))return y}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(e){function x(e,r,x){if(e==r)return e?[[0,e]]:[];if(0>x||e.length<x)x=null;var y=aa(e,r),z=e.substring(0,y);e=e.substring(y);r=r.substring(y);y=w(e,r);var da=e.substring(e.length-y);e=e.substring(0,e.length-y);r=r.substring(0,r.length-y);e=ba(e,
268
- r);z&&e.unshift([0,z]);da&&e.push([0,da]);n(e);null!=x&&(e=h(e,x));return e=f(e)}function ba(e,f){if(!e)return[[1,f]];if(!f)return[[-1,e]];var h=e.length>f.length?e:f;var n=e.length>f.length?f:e,r=h.indexOf(n);if(-1!=r)return h=[[1,h.substring(0,r)],[0,n],[1,h.substring(r+n.length)]],e.length>f.length&&(h[0][0]=h[2][0]=-1),h;if(1==n.length)return[[-1,e],[1,f]];if(h=y(e,f))return f=h[1],n=h[3],e=h[4],h=x(h[0],h[2]),f=x(f,n),h.concat([[0,e]],f);a:{h=e.length;n=f.length;r=Math.ceil((h+n)/2);for(var w=
269
- 2*r,z=Array(w),aa=Array(w),ba=0;ba<w;ba++)z[ba]=-1,aa[ba]=-1;z[r+1]=0;aa[r+1]=0;ba=h-n;for(var fa=0!=ba%2,ca=0,ea=0,ha=0,ia=0,ua=0;ua<r;ua++){for(var Ca=-ua+ca;Ca<=ua-ea;Ca+=2){var ya=r+Ca;var Ea=Ca==-ua||Ca!=ua&&z[ya-1]<z[ya+1]?z[ya+1]:z[ya-1]+1;for(var Aa=Ea-Ca;Ea<h&&Aa<n&&e.charAt(Ea)==f.charAt(Aa);)Ea++,Aa++;z[ya]=Ea;if(Ea>h)ea+=2;else if(Aa>n)ca+=2;else if(fa&&(ya=r+ba-Ca,0<=ya&&ya<w&&-1!=aa[ya])){var Fa=h-aa[ya];if(Ea>=Fa){e=da(e,f,Ea,Aa);break a}}}for(Ca=-ua+ha;Ca<=ua-ia;Ca+=2){ya=r+Ca;Fa=
270
- Ca==-ua||Ca!=ua&&aa[ya-1]<aa[ya+1]?aa[ya+1]:aa[ya-1]+1;for(Ea=Fa-Ca;Fa<h&&Ea<n&&e.charAt(h-Fa-1)==f.charAt(n-Ea-1);)Fa++,Ea++;aa[ya]=Fa;if(Fa>h)ia+=2;else if(Ea>n)ha+=2;else if(!fa&&(ya=r+ba-Ca,0<=ya&&ya<w&&-1!=z[ya]&&(Ea=z[ya],Aa=r+Ea-ya,Fa=h-Fa,Ea>=Fa))){e=da(e,f,Ea,Aa);break a}}}e=[[-1,e],[1,f]]}return e}function da(e,f,h,n){var r=e.substring(h),w=f.substring(n);e=x(e.substring(0,h),f.substring(0,n));r=x(r,w);return e.concat(r)}function aa(e,f){if(!e||!f||e.charAt(0)!=f.charAt(0))return 0;for(var h=
271
- 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 w(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 y(e,f){function h(e,f,h){for(var n=e.substring(h,h+Math.floor(e.length/4)),r=-1,x="",y,z,ba,da;-1!=(r=f.indexOf(n,r+1));){var fa=
272
- aa(e.substring(h),f.substring(r)),ca=w(e.substring(0,h),f.substring(0,r));x.length<ca+fa&&(x=f.substring(r-ca,r)+f.substring(r,r+fa),y=e.substring(0,h-ca),z=e.substring(h+fa),ba=f.substring(0,r-ca),da=f.substring(r+fa))}return 2*x.length>=e.length?[y,z,ba,da,x]:null}var n=e.length>f.length?e:f,r=e.length>f.length?f:e;if(4>n.length||2*r.length<n.length)return null;var x=h(n,r,Math.ceil(n.length/4));n=h(n,r,Math.ceil(n.length/2));if(x||n)x=n?x?x[4].length>n[4].length?x:n:n:x;else return null;e.length>
273
- f.length?(e=x[0],f=x[1],n=x[2],r=x[3]):(n=x[0],r=x[1],e=x[2],f=x[3]);return[e,f,n,r,x[4]]}function n(e){e.push([0,""]);for(var f=0,h=0,r=0,x="",y="",z;f<e.length;)switch(e[f][0]){case 1:r++;y+=e[f][1];f++;break;case -1:h++;x+=e[f][1];f++;break;case 0:1<h+r?(0!==h&&0!==r&&(z=aa(y,x),0!==z&&(0<f-h-r&&0==e[f-h-r-1][0]?e[f-h-r-1][1]+=y.substring(0,z):(e.splice(0,0,[0,y.substring(0,z)]),f++),y=y.substring(z),x=x.substring(z)),z=w(y,x),0!==z&&(e[f][1]=y.substring(y.length-z)+e[f][1],y=y.substring(0,y.length-
274
- z),x=x.substring(0,x.length-z))),0===h?e.splice(f-r,h+r,[1,y]):0===r?e.splice(f-h,h+r,[-1,x]):e.splice(f-h-r,h+r,[-1,x],[1,y]),f=f-h-r+(h?1:0)+(r?1:0)+1):0!==f&&0==e[f-1][0]?(e[f-1][1]+=e[f][1],e.splice(f,1)):f++,h=r=0,y=x=""}""===e[e.length-1][1]&&e.pop();h=!1;for(f=1;f<e.length-1;)0==e[f-1][0]&&0==e[f+1][0]&&(e[f][1].substring(e[f][1].length-e[f-1][1].length)==e[f-1][1]?(e[f][1]=e[f-1][1]+e[f][1].substring(0,e[f][1].length-e[f-1][1].length),e[f+1][1]=e[f-1][1]+e[f+1][1],e.splice(f-1,1),h=!0):e[f][1].substring(0,
275
- e[f+1][1].length)==e[f+1][1]&&(e[f-1][1]+=e[f+1][1],e[f][1]=e[f][1].substring(e[f+1][1].length)+e[f+1][1],e.splice(f+1,1),h=!0)),f++;h&&n(e)}function h(e,f){a:{var h=e;if(0===f)var n=[0,h];else{var w=0;for(n=0;n<h.length;n++){var x=h[n];if(-1===x[0]||0===x[0]){var y=w+x[1].length;if(f===y){n=[n+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(n,1,f,x);n=[n+1,h];break a}w=y}}throw Error("cursor_pos is out of bounds!");}}h=n[1];n=n[0];f=h[n];x=h[n+1];return null==
276
- f||0!==f[0]?e:null!=x&&f[1]+x[1]===x[1]+f[1]?(h.splice(n,2,x,f),r(h,n,2)):null!=x&&0===x[1].indexOf(f[1])?(h.splice(n,2,[x[0],f[1]],[0,f[1]]),e=x[1].slice(f[1].length),0<e.length&&h.splice(n+2,0,[x[0],e]),r(h,n,3)):e}function f(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])&&
277
- (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 r(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}x.INSERT=1;x.DELETE=-1;x.EQUAL=0;e.exports=x},function(e,ba){function x(e){var x=[],w;for(w in e)x.push(w);return x}ba=e.exports="function"===typeof Object.keys?Object.keys:
278
- x;ba.shim=x},function(e,ba){function x(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function da(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}ba="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ba=e.exports=ba?x:da;ba.supported=x;ba.unsupported=da},function(e){function x(){}function ba(e,n,h){this.fn=e;this.context=n;this.once=
279
- h||!1}function da(){this._events=new x;this._eventsCount=0}var aa=Object.prototype.hasOwnProperty,w="~";Object.create&&(x.prototype=Object.create(null),(new x).__proto__||(w=!1));da.prototype.eventNames=function(){var e=[],n,h;if(0===this._eventsCount)return e;for(h in n=this._events)aa.call(n,h)&&e.push(w?h.slice(1):h);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(n)):e};da.prototype.listeners=function(e,n){e=this._events[w?w+e:e];if(n)return!!e;if(!e)return[];if(e.fn)return[e.fn];
280
- n=0;for(var h=e.length,f=Array(h);n<h;n++)f[n]=e[n].fn;return f};da.prototype.emit=function(e,n,h,f,r,x){var y=w?w+e:e;if(!this._events[y])return!1;y=this._events[y];var z=arguments.length,aa;if(y.fn){y.once&&this.removeListener(e,y.fn,void 0,!0);switch(z){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,n),!0;case 3:return y.fn.call(y.context,n,h),!0;case 4:return y.fn.call(y.context,n,h,f),!0;case 5:return y.fn.call(y.context,n,h,f,r),!0;case 6:return y.fn.call(y.context,
281
- n,h,f,r,x),!0}var ba=1;for(aa=Array(z-1);ba<z;ba++)aa[ba-1]=arguments[ba];y.fn.apply(y.context,aa)}else{var da=y.length;for(ba=0;ba<da;ba++)switch(y[ba].once&&this.removeListener(e,y[ba].fn,void 0,!0),z){case 1:y[ba].fn.call(y[ba].context);break;case 2:y[ba].fn.call(y[ba].context,n);break;case 3:y[ba].fn.call(y[ba].context,n,h);break;case 4:y[ba].fn.call(y[ba].context,n,h,f);break;default:if(!aa){var ca=1;for(aa=Array(z-1);ca<z;ca++)aa[ca-1]=arguments[ca]}y[ba].fn.apply(y[ba].context,aa)}}return!0};
282
- da.prototype.on=function(e,n,h){n=new ba(n,h||this);e=w?w+e:e;this._events[e]?this._events[e].fn?this._events[e]=[this._events[e],n]:this._events[e].push(n):(this._events[e]=n,this._eventsCount++);return this};da.prototype.once=function(e,n,h){n=new ba(n,h||this,!0);e=w?w+e:e;this._events[e]?this._events[e].fn?this._events[e]=[this._events[e],n]:this._events[e].push(n):(this._events[e]=n,this._eventsCount++);return this};da.prototype.removeListener=function(e,n,h,f){e=w?w+e:e;if(!this._events[e])return this;
283
- if(!n)return 0===--this._eventsCount?this._events=new x:delete this._events[e],this;var r=this._events[e];if(r.fn)r.fn!==n||f&&!r.once||h&&r.context!==h||(0===--this._eventsCount?this._events=new x:delete this._events[e]);else{for(var y=0,aa=[],ba=r.length;y<ba;y++)(r[y].fn!==n||f&&!r[y].once||h&&r[y].context!==h)&&aa.push(r[y]);aa.length?this._events[e]=1===aa.length?aa[0]:aa:0===--this._eventsCount?this._events=new x:delete this._events[e]}return this};da.prototype.removeAllListeners=function(e){e?
284
- (e=w?w+e:e,this._events[e]&&(0===--this._eventsCount?this._events=new x:delete this._events[e])):(this._events=new x,this._eventsCount=0);return this};da.prototype.off=da.prototype.removeListener;da.prototype.addListener=da.prototype.on;da.prototype.setMaxListeners=function(){return this};da.prefixed=w;da.EventEmitter=da;"undefined"!==typeof e&&(e.exports=da)},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,
285
- configurable:!0,writable:!0}):e[f]=h;return e}function w(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,
286
- f):e.__proto__=f)}function n(e,f,h){return"object"===("undefined"===typeof f?"undefined":na(f))?Object.keys(f).reduce(function(e,h){return n(e,h,f[h])},e):e.reduce(function(e,n){return n.attributes&&n.attributes[f]?e.push(n):e.insert(n.insert,(0,Da.default)({},aa({},f,h),n.attributes))},new qa.default)}function h(e){return e.nodeType!==Node.ELEMENT_NODE?{}:e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function f(e,f){for(var h="",n=e.ops.length-1;0<=n&&h.length<f.length;--n){var r=
287
- e.ops[n];if("string"!==typeof r.insert)break;h=r.insert+h}return h.slice(-1*f.length)===f}function r(e){if(0===e.childNodes.length)return!1;e=h(e);return-1<["block","list-item"].indexOf(e.display)}function z(e,f,h){return e.nodeType===e.TEXT_NODE?h.reduce(function(f,h){return h(e,f)},new qa.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],function(n,r){var w=z(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,
288
- f){return f(r,e)},w));return n.concat(w)},new qa.default):new qa.default}function fa(e,f,h){return n(h,e,!0)}function ea(e,f){var h=va.default.Attributor.Attribute.keys(e),r=va.default.Attributor.Class.keys(e),w=va.default.Attributor.Style.keys(e),x={};h.concat(r).concat(w).forEach(function(f){var h=va.default.query(f,va.default.Scope.ATTRIBUTE);if(null!=h&&(x[h.attrName]=h.value(e),x[h.attrName]))return;h=Ja[f];null==h||h.attrName!==f&&h.keyName!==f||(x[h.attrName]=h.value(e)||void 0);h=za[f];null==
289
- h||h.attrName!==f&&h.keyName!==f||(h=za[f],x[h.attrName]=h.value(e)||void 0)});0<Object.keys(x).length&&(f=n(f,x));return f}function ha(e,f){var h=va.default.query(e);if(null==h)return f;if(h.prototype instanceof va.default.Embed){var r={},w=h.value(e);null!=w&&(r[h.blotName]=w,f=(new qa.default).insert(r,h.formats(e)))}else"function"===typeof h.formats&&(f=n(f,h.blotName,h.formats(e)));return f}function ia(e,h){f(h,"\n")||(r(e)||0<h.length()&&e.nextSibling&&r(e.nextSibling))&&h.insert("\n");return h}
290
- function ma(e,n){if(r(e)&&null!=e.nextElementSibling&&!f(n,"\n\n")){var w=e.offsetHeight+parseFloat(h(e).marginTop)+parseFloat(h(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*w&&n.insert("\n")}return n}function la(e,f){var n=e.data;if("O:P"===e.parentNode.tagName)return f.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return f;if(!h(e.parentNode).whiteSpace.startsWith("pre")){var w=function(e,f){f=f.replace(/[^\u00a0]/g,"");return 1>f.length&&
291
- e?" ":f};n=n.replace(/\r\n/g," ").replace(/\n/g," ");n=n.replace(/\s\s+/g,w.bind(w,!0));if(null==e.previousSibling&&r(e.parentNode)||null!=e.previousSibling&&r(e.previousSibling))n=n.replace(/^\s+/,w.bind(w,!1));if(null==e.nextSibling&&r(e.parentNode)||null!=e.nextSibling&&r(e.nextSibling))n=n.replace(/\s+$/,w.bind(w,!1))}return f.insert(n)}Object.defineProperty(ba,"__esModule",{value:!0});ba.matchText=ba.matchSpacing=ba.matchNewline=ba.matchBlot=ba.matchAttributor=ba.default=void 0;var na="function"===
292
- 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(Pa){r=!0,w=Pa}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
293
- }}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),sa=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}}();e=ca(3);var Da=x(e);e=ca(2);var qa=x(e);e=ca(0);var va=x(e);e=ca(5);var oa=x(e);e=ca(10);e=x(e);var ua=ca(9);ua=x(ua);var Ca=ca(36),ya=ca(37),Ea=ca(13),Aa=x(Ea);Ea=
294
- ca(26);var Fa=ca(38),Ga=ca(39);ca=ca(40);var Ba=(0,e.default)("quill:clipboard"),Ia=[[Node.TEXT_NODE,la],[Node.TEXT_NODE,ia],["br",function(e,h){f(h,"\n")||h.insert("\n");return h}],[Node.ELEMENT_NODE,ia],[Node.ELEMENT_NODE,ha],[Node.ELEMENT_NODE,ma],[Node.ELEMENT_NODE,ea],[Node.ELEMENT_NODE,function(e,f){var r={},w=e.style||{};w.fontStyle&&"italic"===h(e).fontStyle&&(r.italic=!0);w.fontWeight&&(h(e).fontWeight.startsWith("bold")||700<=parseInt(h(e).fontWeight))&&(r.bold=!0);0<Object.keys(r).length&&
295
- (f=n(f,r));0<parseFloat(w.textIndent||0)&&(f=(new qa.default).insert("\t").concat(f));return f}],["li",function(e,h){var n=va.default.query(e);if(null==n||"list-item"!==n.blotName||!f(h,"\n"))return h;n=-1;for(e=e.parentNode;!e.classList.contains("ql-clipboard");)"list"===(va.default.query(e)||{}).blotName&&(n+=1),e=e.parentNode;return 0>=n?h:h.compose((new qa.default).retain(h.length()-1).retain(1,{indent:n}))}],["b",fa.bind(fa,"bold")],["i",fa.bind(fa,"italic")],["style",function(){return new qa.default}]],
296
- Ja=[Ca.AlignAttribute,Fa.DirectionAttribute].reduce(function(e,f){e[f.keyName]=f;return e},{}),za=[Ca.AlignStyle,ya.BackgroundStyle,Ea.ColorStyle,Fa.DirectionStyle,Ga.FontStyle,ca.SizeStyle].reduce(function(e,f){e[f.keyName]=f;return e},{});ca=function(e){function h(e,f){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var n=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,f));n.quill.root.addEventListener("paste",n.onPaste.bind(n));n.container=n.quill.addContainer("ql-clipboard");
297
- n.container.setAttribute("contenteditable",!0);n.container.setAttribute("tabindex",-1);n.matchers=[];Ia.concat(n.options.matchers).forEach(function(e){e=ra(e,2);var h=e[1];(f.matchVisual||h!==ma)&&n.addMatcher(e[0],h)});return n}y(h,e);sa(h,[{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);
298
- if(e[Aa.default.blotName]){var h=this.container.innerText;this.container.innerHTML="";return(new qa.default).insert(h,aa({},Aa.default.blotName,e[Aa.default.blotName]))}e=this.prepareMatching();e=ra(e,2);e=z(this.container,e[0],e[1]);f(e,"\n")&&null==e.ops[e.ops.length-1].attributes&&(e=e.compose((new qa.default).retain(e.length()-1).delete(1)));Ba.log("convert",this.container.innerHTML,e);this.container.innerHTML="";return e}},{key:"dangerouslyPasteHTML",value:function(e,f){var h=2<arguments.length&&
299
- void 0!==arguments[2]?arguments[2]:oa.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),f),this.quill.setSelection(0,oa.default.sources.SILENT);else{var n=this.convert(f);this.quill.updateContents((new qa.default).retain(e).concat(n),h);this.quill.setSelection(e+n.length(),oa.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var f=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var h=this.quill.getSelection(),n=(new qa.default).retain(h.index),r=this.quill.scrollingContainer.scrollTop;
300
- this.container.focus();this.quill.selection.update(oa.default.sources.SILENT);setTimeout(function(){n=n.concat(f.convert()).delete(h.length);f.quill.updateContents(n,oa.default.sources.USER);f.quill.setSelection(n.length()-h.length,oa.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);
301
- 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 h}(ua.default);ca.DEFAULTS={matchers:[],matchVisual:!0};ba.default=ca;ba.matchAttributor=ea;ba.matchBlot=ha;ba.matchNewline=ia;ba.matchSpacing=ma;ba.matchText=la},function(e,ba,ca){function x(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=
302
- Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(ba,"__esModule",{value:!0});var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function r(e,h,f){null===e&&(e=Function.prototype);
303
- var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return r(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};e=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"!==
304
- typeof e?this:e}x(h,e);aa(h,[{key:"optimize",value:function(e){w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,e);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return w(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ca(6)).default);e.blotName="bold";e.tagName=["STRONG",
305
- "B"];ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}function w(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 "+
306
- 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 n(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 h(e,h){Array.isArray(h[0])||(h=[h]);h.forEach(function(h){var r=document.createElement("span");r.classList.add("ql-formats");h.forEach(function(e){if("string"===
307
- typeof e)n(r,e);else{var h=Object.keys(e)[0];e=e[h];Array.isArray(e)?f(r,h,e):n(r,h,e)}});e.appendChild(r)})}function f(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 r=function(){return function(e,f){if(Array.isArray(e))return e;
308
- 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(oa){r=!0,w=oa}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");}}(),z=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,
309
- n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();e=ca(2);var fa=x(e);e=ca(0);var ea=x(e);e=ca(5);var ha=x(e);e=ca(10);e=x(e);ca=ca(9);ca=x(ca);var ia=(0,e.default)("quill:toolbar");ca=function(e){function f(e,n){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var x=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,n));Array.isArray(x.options.container)?(n=document.createElement("div"),h(n,x.options.container),e.container.parentNode.insertBefore(n,
310
- e.container),x.container=n):x.container="string"===typeof x.options.container?document.querySelector(x.options.container):x.options.container;if(!(x.container instanceof HTMLElement)){var y;return y=ia.error("Container required for toolbar",x.options),w(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)});
311
- 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=r(e,1)[0];x.update(e)});return x}y(f,e);z(f,[{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==
312
- this.handlers[h]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[h]){ia.warn("ignoring attaching to disabled format",h,e);return}if(null==ea.default.query(h)){ia.warn("ignoring attaching to nonexistent format",h,e);return}}e.addEventListener("SELECT"===e.tagName?"change":"click",function(n){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"),
313
- n.preventDefault();f.quill.focus();n=f.quill.selection.getRange();n=r(n,1)[0];if(null!=f.handlers[h])f.handlers[h].call(f,w);else if(ea.default.query(h).prototype instanceof ea.default.Embed){w=prompt("Enter "+h);if(!w)return;f.quill.updateContents((new fa.default).retain(n.index).delete(n.length).insert(aa({},h,w)),ha.default.sources.USER)}else f.quill.format(h,w,ha.default.sources.USER);f.update(n)});this.controls.push([h,e])}}},{key:"update",value:function(e){var f=null==e?{}:this.quill.getFormat(e);
314
- this.controls.forEach(function(h){h=r(h,2);var n=h[0];h=h[1];if("SELECT"===h.tagName){var w=void 0;null==e?w=null:null==f[n]?w=h.querySelector("option[selected]"):Array.isArray(f[n])||(n=f[n],"string"===typeof n&&(n=n.replace(/"/g,'\\"')),w=h.querySelector('option[value="'+n+'"]'));null==w?(h.value="",h.selectedIndex=-1):w.selected=!0}else null==e?h.classList.remove("ql-active"):h.hasAttribute("value")?(n=f[n]===h.getAttribute("value")||null!=f[n]&&f[n].toString()===h.getAttribute("value")||null==
315
- f[n]&&!h.getAttribute("value"),h.classList.toggle("ql-active",n)):h.classList.toggle("ql-active",null!=f[n])})}}]);return f}(ca.default);ca.DEFAULTS={};ca.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!=ea.default.query(f,ea.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;
316
- "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",
317
- 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=ca;ba.addControls=h},function(e){e.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>'},
318
- function(e,ba,ca){function x(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function aa(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ba,
319
- "__esModule",{value:!0});var 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(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),y=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?
320
- void 0:f.call(r)}};e=function(e){function f(e,h){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");e=x(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e));e.label.innerHTML=h;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}aa(f,e);w(f,[{key:"buildItem",value:function(e){var h=y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"buildItem",
321
- this).call(this,e);h.style.backgroundColor=e.getAttribute("value")||"";return h}},{key:"selectItem",value:function(e,h){y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,e,h);h=this.label.querySelector(".ql-color-label");e=e?e.getAttribute("data-value")||"":"";h&&("line"===h.tagName?h.style.stroke=e:h.style.fill=e)}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ca(28)).default);ba.default=e},function(e,ba,ca){function x(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
322
- return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function aa(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ba,"__esModule",{value:!0});var w=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=
323
- n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),y=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=function(e){function f(e,h){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
324
- e=x(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e));e.container.classList.add("ql-icon-picker");[].forEach.call(e.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=h[e.getAttribute("data-value")||""]});e.defaultItem=e.container.querySelector(".ql-selected");e.selectItem(e.defaultItem);return e}aa(f,e);w(f,[{key:"selectItem",value:function(e,h){y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,e,h);e=e||this.defaultItem;this.label.innerHTML=
325
- e.innerHTML}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ca(28)).default);ba.default=e},function(e,ba){Object.defineProperty(ba,"__esModule",{value:!0});var x=function(){function e(e,w){for(var x=0;x<w.length;x++){var n=w[x];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(x,w,y){w&&e(x.prototype,w);y&&e(x,y);return x}}();e=function(){function e(x,w){var y=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
326
- this.quill=x;this.boundsContainer=w||document.body;this.root=x.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){y.root.style.marginTop=-1*y.quill.root.scrollTop+"px"});this.hide()}x(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var w=e.left+e.width/2-this.root.offsetWidth/2,x=e.bottom+this.quill.root.scrollTop;this.root.style.left=
327
- w+"px";this.root.style.top=x+"px";this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),h=this.root.getBoundingClientRect(),f=0;h.right>n.right&&(f=n.right-h.right,this.root.style.left=w+f+"px");h.left<n.left&&(f=n.left-h.left,this.root.style.left=w+f+"px");h.bottom>n.bottom&&(this.root.style.top=x-(e.bottom-e.top+(h.bottom-h.top))+"px",this.root.classList.add("ql-flip"));return f}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
328
- return e}();ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(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=
329
- 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 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(ya){r=!0,w=ya}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
330
- }}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),h=function va(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 va(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}},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,
331
- n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();e=ca(3);e=x(e);var r=ca(8),z=x(r);r=ca(43);var fa=x(r),ea=ca(27),ha=x(ea),ia=ca(15);ca=ca(41);var ma=x(ca),la=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ca=function(e){function h(e,f){aa(this,h);null!=f.modules.toolbar&&null==f.modules.toolbar.container&&(f.modules.toolbar.container=la);e=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,f));e.quill.container.classList.add("ql-snow");
332
- return e}y(h,e);f(h,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow");this.buildButtons([].slice.call(e.container.querySelectorAll("button")),ma.default);this.buildPickers([].slice.call(e.container.querySelectorAll("select")),ma.default);this.tooltip=new na(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 h}(fa.default);ca.DEFAULTS=
333
- (0,e.default)(!0,{},fa.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 na=function(e){function r(e,f){aa(this,r);e=w(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,f));e.preview=e.root.querySelector("a.ql-preview");return e}y(r,e);f(r,[{key:"listen",
334
- value:function(){var e=this;h(r.prototype.__proto__||Object.getPrototypeOf(r.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,z.default.sources.USER);delete e.linkRange}f.preventDefault();
335
- e.hide()});this.quill.on(z.default.events.SELECTION_CHANGE,function(f,h,r){if(null!=f){if(0===f.length&&r===z.default.sources.USER){if(h=e.quill.scroll.descendant(ha.default,f.index),r=n(h,2),h=r[0],r=r[1],null!=h){e.linkRange=new ia.Range(f.index-r,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(){h(r.prototype.__proto__||
336
- Object.getPrototypeOf(r.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return r}(r.BaseTooltip);na.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=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(ba,"__esModule",{value:!0});
337
- e=ca(29);e=x(e);var aa=ca(36),w=ca(38),y=ca(64),n=ca(65);n=x(n);var h=ca(66);h=x(h);var f=ca(67),r=x(f),z=ca(37),fa=ca(26),ea=ca(39),ha=ca(40),ia=ca(56);ia=x(ia);var ma=ca(68);ma=x(ma);var la=ca(27);la=x(la);var na=ca(69);na=x(na);var ra=ca(70);ra=x(ra);var sa=ca(71);sa=x(sa);var Da=ca(72);Da=x(Da);var qa=ca(73);qa=x(qa);var va=ca(13),oa=x(va),ua=ca(74);ua=x(ua);var Ca=ca(75);Ca=x(Ca);var ya=ca(57);ya=x(ya);var Ea=ca(41);Ea=x(Ea);var Aa=ca(28);Aa=x(Aa);var Fa=ca(59);Fa=x(Fa);var Ga=ca(60);Ga=x(Ga);
338
- var Ba=ca(61);Ba=x(Ba);var Ia=ca(108);Ia=x(Ia);ca=ca(62);ca=x(ca);e.default.register({"attributors/attribute/direction":w.DirectionAttribute,"attributors/class/align":aa.AlignClass,"attributors/class/background":z.BackgroundClass,"attributors/class/color":fa.ColorClass,"attributors/class/direction":w.DirectionClass,"attributors/class/font":ea.FontClass,"attributors/class/size":ha.SizeClass,"attributors/style/align":aa.AlignStyle,"attributors/style/background":z.BackgroundStyle,"attributors/style/color":fa.ColorStyle,
339
- "attributors/style/direction":w.DirectionStyle,"attributors/style/font":ea.FontStyle,"attributors/style/size":ha.SizeStyle},!0);e.default.register({"formats/align":aa.AlignClass,"formats/direction":w.DirectionClass,"formats/indent":y.IndentClass,"formats/background":z.BackgroundStyle,"formats/color":fa.ColorStyle,"formats/font":ea.FontClass,"formats/size":ha.SizeClass,"formats/blockquote":n.default,"formats/code-block":oa.default,"formats/header":h.default,"formats/list":r.default,"formats/bold":ia.default,
340
- "formats/code":va.Code,"formats/italic":ma.default,"formats/link":la.default,"formats/script":na.default,"formats/strike":ra.default,"formats/underline":sa.default,"formats/image":Da.default,"formats/video":qa.default,"formats/list/item":f.ListItem,"modules/formula":ua.default,"modules/syntax":Ca.default,"modules/toolbar":ya.default,"themes/bubble":Ia.default,"themes/snow":ca.default,"ui/icons":Ea.default,"ui/picker":Aa.default,"ui/icon-picker":Ga.default,"ui/color-picker":Fa.default,"ui/tooltip":Ba.default},
341
- !0);ba.default=e.default},function(e,ba,ca){function x(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(ba,"__esModule",{value:!0});ba.IndentClass=void 0;var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];
342
- n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function r(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return r(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};e=function(e){return e&&e.__esModule?e:{default:e}}(ca(0));e=new (function(e){function h(){if(!(this instanceof
343
- 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}x(h,e);aa(h,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var f=this.value(e)||0;n="+1"===n?f+1:f-1}return 0===n?(this.remove(e),!0):w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"add",this).call(this,
344
- e,n)}},{key:"canAdd",value:function(e,n){return w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"canAdd",this).call(this,e,n)||w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,e))||void 0}}]);return h}(e.default.Attributor.Class))("indent","ql-indent",{scope:e.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,
345
- 8]});ba.IndentClass=e},function(e,ba,ca){function x(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ba,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");
346
- var e=(w.__proto__||Object.getPrototypeOf(w)).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}x(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(4)).default);e.blotName="blockquote";e.tagName="blockquote";ba.default=e},function(e,ba,ca){function x(e,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+
347
- typeof x);e.prototype=Object.create(x&&x.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(e,x):e.__proto__=x)}Object.defineProperty(ba,"__esModule",{value:!0});var aa=function(){function e(e,n){for(var h=0;h<n.length;h++){var f=n[h];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(w,n,h){n&&e(w.prototype,n);h&&e(w,h);return w}}();e=function(e){function w(){if(!(this instanceof
348
- w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).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}x(w,e);aa(w,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(4)).default);e.blotName="header";e.tagName="H1 H2 H3 H4 H5 H6".split(" ");
349
- ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(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&&
350
- 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 n=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=function ma(e,f,h){null===
351
- e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return ma(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ca(0);var f=x(e);e=ca(4);e=x(e);ca=ca(25);ca=x(ca);var r=function(e){function r(){aa(this,r);return w(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}y(r,e);n(r,[{key:"format",value:function(e,n){e!==z.blotName||n?h(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),
352
- "format",this).call(this,e,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():h(r.prototype.__proto__||Object.getPrototypeOf(r.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 h(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),
353
- "replaceWith",this).call(this,e,f)}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:h(r.__proto__||Object.getPrototypeOf(r),"formats",this).call(this,e)}}]);return r}(e.default);r.blotName="list-item";r.tagName="LI";var z=function(e){function x(e){function h(h){if(h.target.parentNode===e){var r=n.statics.formats(e);h=f.default.find(h.target);"checked"===r?h.format("list","unchecked"):"unchecked"===r&&h.format("list","checked")}}aa(this,x);var n=w(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,
354
- e));e.addEventListener("touchstart",h);e.addEventListener("mousedown",h);return n}y(x,e);n(x,null,[{key:"create",value:function(e){var f="ordered"===e?"OL":"UL";f=h(x.__proto__||Object.getPrototypeOf(x),"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":
355
- "bullet"}}]);n(x,[{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 r?h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,e,f):(f=null==f?this.length():f.offset(this),
356
- f=this.split(f),f.parent.insertBefore(e,f))}},{key:"optimize",value:function(e){h(x.prototype.__proto__||Object.getPrototypeOf(x.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 n=f.default.create(this.statics.defaultChild);
357
- e.moveChildren(n);this.appendChild(n)}h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,e)}}]);return x}(ca.default);z.blotName="list";z.scope=f.default.Scope.BLOCK_BLOT;z.tagName=["OL","UL"];z.defaultChild="list-item";z.allowedChildren=[r];ba.ListItem=r;ba.default=z},function(e,ba,ca){function x(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,
358
- {constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ba,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).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?
359
- this:e}x(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(56)).default);e.blotName="italic";e.tagName=["EM","I"];ba.default=e},function(e,ba,ca){function x(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(ba,
360
- "__esModule",{value:!0});var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function r(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return r(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?
361
- void 0:h.call(f)}};e=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}x(h,e);aa(h,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):w(h.__proto__||
362
- Object.getPrototypeOf(h),"create",this).call(this,e)}},{key:"formats",value:function(e){if("SUB"===e.tagName)return"sub";if("SUP"===e.tagName)return"super"}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ca(6)).default);e.blotName="script";e.tagName=["SUB","SUP"];ba.default=e},function(e,ba,ca){function x(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,
363
- enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ba,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).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}x(w,e);
364
- return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(6)).default);e.blotName="strike";e.tagName="S";ba.default=e},function(e,ba,ca){function x(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ba,"__esModule",{value:!0});
365
- e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).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}x(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(6)).default);e.blotName="underline";e.tagName="U";ba.default=e},function(e,ba,ca){function x(e,f){if("function"!==
366
- 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 aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,
367
- n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),w=function fa(e,n,w){null===e&&(e=Function.prototype);var f=Object.getOwnPropertyDescriptor(e,n);if(void 0===f){if(e=Object.getPrototypeOf(e),null!==e)return fa(e,n,w)}else{if("value"in f)return f.value;n=f.get;return void 0===n?void 0:n.call(w)}};e=function(e){return e&&e.__esModule?e:{default:e}}(ca(0));var y=ca(27),n=["alt","height","width"];ca=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
368
- 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}x(f,e);aa(f,[{key:"format",value:function(e,r){-1<n.indexOf(e)?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,e,r)}}],[{key:"create",value:function(e){var n=w(f.__proto__||Object.getPrototypeOf(f),
369
- "create",this).call(this,e);"string"===typeof e&&n.setAttribute("src",this.sanitize(e));return n}},{key:"formats",value:function(e){return n.reduce(function(f,n){e.hasAttribute(n)&&(f[n]=e.getAttribute(n));return f},{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,y.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]);return f}(e.default.Embed);
370
- ca.blotName="image";ca.tagName="IMG";ba.default=ca},function(e,ba,ca){function x(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 aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=
371
- h[f];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 fa(e,n,w){null===e&&(e=Function.prototype);var f=Object.getOwnPropertyDescriptor(e,n);if(void 0===f){if(e=Object.getPrototypeOf(e),null!==e)return fa(e,n,w)}else{if("value"in f)return f.value;n=f.get;return void 0===n?void 0:n.call(w)}};e=ca(4);var y=function(e){return e&&e.__esModule?e:{default:e}}(ca(27)),
372
- n=["height","width"];ca=function(e){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}x(f,e);aa(f,[{key:"format",value:function(e,r){-1<n.indexOf(e)?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):w(f.prototype.__proto__||
373
- Object.getPrototypeOf(f.prototype),"format",this).call(this,e,r)}}],[{key:"create",value:function(e){var n=w(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,e);n.setAttribute("frameborder","0");n.setAttribute("allowfullscreen",!0);n.setAttribute("src",this.sanitize(e));return n}},{key:"formats",value:function(e){return n.reduce(function(f,n){e.hasAttribute(n)&&(f[n]=e.getAttribute(n));return f},{})}},{key:"sanitize",value:function(e){return y.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]);
374
- return f}(e.BlockEmbed);ca.blotName="video";ca.className="ql-video";ca.tagName="IFRAME";ba.default=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(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 "+
375
- 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 n=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,
376
- n);return f}}(),h=function ma(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 ma(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ca(35);e=x(e);var f=ca(5),r=x(f);ca=ca(9);ca=x(ca);var z=function(e){function f(){aa(this,f);return w(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}y(f,e);n(f,null,[{key:"create",value:function(e){var n=h(f.__proto__||
377
- Object.getPrototypeOf(f),"create",this).call(this,e);"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e));return n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]);return f}(e.default);z.blotName="formula";z.className="ql-formula";z.tagName="SPAN";ca=function(e){function f(){aa(this,f);var e=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
378
- return e}y(f,e);n(f,null,[{key:"register",value:function(){r.default.register(z,!0)}}]);return f}(ca.default);ba.FormulaBlot=z;ba.default=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(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"!==
379
- 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 n=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
380
- 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=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)}};e=ca(0);e=x(e);var f=ca(5),r=x(f);f=ca(9);f=x(f);ca=ca(13);var z=function(e){function f(){aa(this,f);return w(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,
381
- arguments))}y(f,e);n(f,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent;this.attach();h(f.prototype.__proto__||Object.getPrototypeOf(f.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 f}(x(ca).default);z.className="ql-syntax";var ea=new e.default.Attributor.Class("token",
382
- "hljs",{scope:e.default.Scope.INLINE});ca=function(e){function f(e,h){aa(this,f);var n=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));if("function"!==typeof n.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var x=null;n.quill.on(r.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(x);x=setTimeout(function(){n.highlight();x=null},n.options.interval)});n.highlight();return n}y(f,e);n(f,null,[{key:"register",
383
- value:function(){r.default.register(ea,!0);r.default.register(z,!0)}}]);n(f,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(r.default.sources.USER);var f=this.quill.getSelection();this.quill.scroll.descendants(z).forEach(function(f){f.highlight(e.options.highlight)});this.quill.update(r.default.sources.SILENT);null!=f&&this.quill.setSelection(f,r.default.sources.SILENT)}}}]);return f}(f.default);ca.DEFAULTS={highlight:function(){return null==window.hljs?
384
- null:function(e){return window.hljs.highlightAuto(e).value}}(),interval:1E3};ba.CodeBlock=z;ba.CodeToken=ea;ba.default=ca},function(e){e.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(e){e.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>'},
385
- function(e){e.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(e){e.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(e){e.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>'},
386
- function(e){e.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(e){e.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>'},
387
- function(e){e.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(e){e.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>'},
388
- function(e){e.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(e){e.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>'},
389
- function(e){e.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(e){e.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(e){e.exports=
390
- '<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(e){e.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>'},
391
- function(e){e.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>'},
392
- function(e){e.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>'},
393
- function(e){e.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>'},
394
- function(e){e.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(e){e.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(e){e.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>'},
395
- function(e){e.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(e){e.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>'},
396
- function(e){e.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>'},
397
- function(e){e.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(e){e.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>'},
398
- function(e){e.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>'},
399
- function(e){e.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>'},
400
- function(e){e.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>'},
401
- function(e){e.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(e){e.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>'},
402
- function(e){e.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(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==
403
- 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});ba.default=ba.BubbleTooltip=void 0;var n=function sa(e,f,h){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,
404
- 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)}},h=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}}();e=ca(3);e=x(e);var f=ca(8),r=x(f);f=ca(43);var z=x(f),ea=ca(15);ca=ca(41);var ha=x(ca),ja=[["bold","italic",
405
- "link"],[{header:1},{header:2},"blockquote"]];ca=function(e){function f(e,h){aa(this,f);null!=h.modules.toolbar&&null==h.modules.toolbar.container&&(h.modules.toolbar.container=ja);e=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));e.quill.container.classList.add("ql-bubble");return e}y(f,e);h(f,[{key:"extendToolbar",value:function(e){this.tooltip=new ia(this.quill,this.options.bounds);this.tooltip.root.appendChild(e.container);this.buildButtons([].slice.call(e.container.querySelectorAll("button")),
406
- ha.default);this.buildPickers([].slice.call(e.container.querySelectorAll("select")),ha.default)}}]);return f}(z.default);ca.DEFAULTS=(0,e.default)(!0,{},z.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var ia=function(e){function f(e,h){aa(this,f);var n=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));n.quill.on(r.default.events.EDITOR_CHANGE,function(e,f,h,w){e===r.default.events.SELECTION_CHANGE&&
407
- (null!=f&&0<f.length&&w===r.default.sources.USER?(n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px",e=n.quill.getLines(f.index,f.length),1===e.length?n.position(n.quill.getBounds(f)):(h=e[e.length-1],e=n.quill.getIndex(h),f=Math.min(h.length()-1,f.index+f.length-e),f=n.quill.getBounds(new ea.Range(e,f)),n.position(f))):document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide())});return n}y(f,e);h(f,[{key:"listen",value:function(){var e=this;n(f.prototype.__proto__||
408
- Object.getPrototypeOf(f.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")});this.quill.on(r.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=n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),
409
- "position",this).call(this,e);var h=this.root.querySelector(".ql-tooltip-arrow");h.style.marginLeft="";if(0===e)return e;h.style.marginLeft=-1*e-h.offsetWidth/2+"px"}}]);return f}(f.BaseTooltip);ia.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=ia;ba.default=ca},function(e,ba,ca){e.exports=ca(63)}])["default"]})}).call(this,
410
- e(455).Buffer)}}]);}).call(this || window)
2
+ (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{377:function(Ba,ua,r){(function(pa){(function(ka,ma){Ba.exports=ma()})("undefined"!==typeof self?self:this,function(){return function(ka){function ma(ea){if(fa[ea])return fa[ea].exports;var z=fa[ea]={i:ea,l:!1,exports:{}};ka[ea].call(z.exports,z,z.exports,ma);z.l=!0;return z.exports}var fa={};ma.m=ka;ma.c=fa;ma.d=function(ea,z,x){ma.o(ea,z)||Object.defineProperty(ea,z,{configurable:!1,enumerable:!0,get:x})};ma.n=function(ea){var z=
3
+ ea&&ea.__esModule?function(){return ea["default"]}:function(){return ea};ma.d(z,"a",z);return z};ma.o=function(ea,z){return Object.prototype.hasOwnProperty.call(ea,z)};ma.p="";return ma(ma.s=109)}([function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(17);var ea=fa(18),z=fa(19),x=fa(45),y=fa(46),f=fa(47),e=fa(48),a=fa(49),b=fa(12),h=fa(32),n=fa(33),ba=fa(31);fa=fa(1);ma.default={Scope:fa.Scope,create:fa.create,find:fa.find,query:fa.query,register:fa.register,Container:ka.default,
4
+ Format:ea.default,Leaf:z.default,Embed:e.default,Scroll:x.default,Block:f.default,Inline:y.default,Text:a.default,Attributor:{Attribute:b.default,Class:h.default,Style:n.default,Store:ba.default}}},function(ka,ma){function fa(n,ba){void 0===ba&&(ba=!1);return null==n?null:null!=n[ma.DATA_KEY]?n[ma.DATA_KEY].blot:ba?fa(n.parentNode,ba):null}function ea(n,ba){void 0===ba&&(ba=h.ANY);if("string"===typeof n)var w=b[n]||f[n];else if(n instanceof Text||n.nodeType===Node.TEXT_NODE)w=b.text;else if("number"===
5
+ typeof n)n&h.LEVEL&h.BLOCK?w=b.block:n&h.LEVEL&h.INLINE&&(w=b.inline);else if(n instanceof HTMLElement){var da=(n.getAttribute("class")||"").split(/\s+/),ja;for(ja in da)if(w=e[da[ja]])break;w=w||a[n.tagName]}return null==w?null:ba&h.LEVEL&w.scope&&ba&h.TYPE&w.scope?w:null}function z(){for(var n=[],ba=0;ba<arguments.length;ba++)n[ba]=arguments[ba];if(1<n.length)return n.map(function(da){return z(da)});var w=n[0];if("string"!==typeof w.blotName&&"string"!==typeof w.attrName)throw new y("Invalid definition");
6
+ if("abstract"===w.blotName)throw new y("Cannot register abstract class");b[w.blotName||w.attrName]=w;"string"===typeof w.keyName?f[w.keyName]=w:(null!=w.className&&(e[w.className]=w),null!=w.tagName&&(Array.isArray(w.tagName)?w.tagName=w.tagName.map(function(da){return da.toUpperCase()}):w.tagName=w.tagName.toUpperCase(),(Array.isArray(w.tagName)?w.tagName:[w.tagName]).forEach(function(da){if(null==a[da]||null==w.className)a[da]=w})));return w}var x=this&&this.__extends||function(){var n=Object.setPrototypeOf||
7
+ {__proto__:[]}instanceof Array&&function(ba,w){ba.__proto__=w}||function(ba,w){for(var da in w)w.hasOwnProperty(da)&&(ba[da]=w[da])};return function(ba,w){function da(){this.constructor=ba}n(ba,w);ba.prototype=null===w?Object.create(w):(da.prototype=w.prototype,new da)}}();Object.defineProperty(ma,"__esModule",{value:!0});var y=function(n){function ba(w){w="[Parchment] "+w;var da=n.call(this,w)||this;da.message=w;da.name=da.constructor.name;return da}x(ba,n);return ba}(Error);ma.ParchmentError=y;
8
+ var f={},e={},a={},b={};ma.DATA_KEY="__blot";var h;(function(n){n[n.TYPE=3]="TYPE";n[n.LEVEL=12]="LEVEL";n[n.ATTRIBUTE=13]="ATTRIBUTE";n[n.BLOT=14]="BLOT";n[n.INLINE=7]="INLINE";n[n.BLOCK=11]="BLOCK";n[n.BLOCK_BLOT=10]="BLOCK_BLOT";n[n.INLINE_BLOT=6]="INLINE_BLOT";n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";n[n.ANY=15]="ANY"})(h=ma.Scope||(ma.Scope={}));ma.create=function(n,ba){var w=ea(n);if(null==w)throw new y("Unable to create "+n+" blot");n=n instanceof
9
+ Node||n.nodeType===Node.TEXT_NODE?n:w.create(ba);return new w(n,ba)};ma.find=fa;ma.query=ea;ma.register=z},function(ka,ma,fa){function ea(a){Array.isArray(a)?this.ops=a:null!=a&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]}var z=fa(51),x=fa(11),y=fa(3),f=fa(20),e=String.fromCharCode(0);ea.prototype.insert=function(a,b){var h={};if(0===a.length)return this;h.insert=a;null!=b&&"object"===typeof b&&0<Object.keys(b).length&&(h.attributes=b);return this.push(h)};ea.prototype["delete"]=function(a){return 0>=
10
+ a?this:this.push({"delete":a})};ea.prototype.retain=function(a,b){if(0>=a)return this;a={retain:a};null!=b&&"object"===typeof b&&0<Object.keys(b).length&&(a.attributes=b);return this.push(a)};ea.prototype.push=function(a){var b=this.ops.length,h=this.ops[b-1];a=y(!0,{},a);if("object"===typeof h){if("number"===typeof a["delete"]&&"number"===typeof h["delete"])return this.ops[b-1]={"delete":h["delete"]+a["delete"]},this;if("number"===typeof h["delete"]&&null!=a.insert&&(--b,h=this.ops[b-1],"object"!==
11
+ typeof h))return this.ops.unshift(a),this;if(x(a.attributes,h.attributes)){if("string"===typeof a.insert&&"string"===typeof h.insert)return this.ops[b-1]={insert:h.insert+a.insert},"object"===typeof a.attributes&&(this.ops[b-1].attributes=a.attributes),this;if("number"===typeof a.retain&&"number"===typeof h.retain)return this.ops[b-1]={retain:h.retain+a.retain},"object"===typeof a.attributes&&(this.ops[b-1].attributes=a.attributes),this}}b===this.ops.length?this.ops.push(a):this.ops.splice(b,0,a);
12
+ return this};ea.prototype.chop=function(){var a=this.ops[this.ops.length-1];a&&a.retain&&!a.attributes&&this.ops.pop();return this};ea.prototype.filter=function(a){return this.ops.filter(a)};ea.prototype.forEach=function(a){this.ops.forEach(a)};ea.prototype.map=function(a){return this.ops.map(a)};ea.prototype.partition=function(a){var b=[],h=[];this.forEach(function(n){(a(n)?b:h).push(n)});return[b,h]};ea.prototype.reduce=function(a,b){return this.ops.reduce(a,b)};ea.prototype.changeLength=function(){return this.reduce(function(a,
13
+ b){return b.insert?a+f.length(b):b.delete?a-b.delete:a},0)};ea.prototype.length=function(){return this.reduce(function(a,b){return a+f.length(b)},0)};ea.prototype.slice=function(a,b){a=a||0;"number"!==typeof b&&(b=Infinity);for(var h=[],n=f.iterator(this.ops),ba=0;ba<b&&n.hasNext();){if(ba<a)var w=n.next(a-ba);else w=n.next(b-ba),h.push(w);ba+=f.length(w)}return new ea(h)};ea.prototype.compose=function(a){var b=f.iterator(this.ops);a=f.iterator(a.ops);var h=[],n=a.peek();if(null!=n&&"number"===typeof n.retain&&
14
+ null==n.attributes){for(var ba=n.retain;"insert"===b.peekType()&&b.peekLength()<=ba;)ba-=b.peekLength(),h.push(b.next());0<n.retain-ba&&a.next(n.retain-ba)}for(h=new ea(h);b.hasNext()||a.hasNext();)if("insert"===a.peekType())h.push(a.next());else if("delete"===b.peekType())h.push(b.next());else{ba=Math.min(b.peekLength(),a.peekLength());var w=b.next(ba),da=a.next(ba);if("number"===typeof da.retain){n={};"number"===typeof w.retain?n.retain=ba:n.insert=w.insert;if(ba=f.attributes.compose(w.attributes,
15
+ da.attributes,"number"===typeof w.retain))n.attributes=ba;h.push(n);if(!a.hasNext()&&x(h.ops[h.ops.length-1],n))return b=new ea(b.rest()),h.concat(b).chop()}else"number"===typeof da["delete"]&&"number"===typeof w.retain&&h.push(da)}return h.chop()};ea.prototype.concat=function(a){var b=new ea(this.ops.slice());0<a.ops.length&&(b.push(a.ops[0]),b.ops=b.ops.concat(a.ops.slice(1)));return b};ea.prototype.diff=function(a,b){if(this.ops===a.ops)return new ea;var h=[this,a].map(function(da){return da.map(function(ja){if(null!=
16
+ ja.insert)return"string"===typeof ja.insert?ja.insert:e;throw Error("diff() called "+(da===a?"on":"with")+" non-document");}).join("")}),n=new ea;b=z(h[0],h[1],b);var ba=f.iterator(this.ops),w=f.iterator(a.ops);b.forEach(function(da){for(var ja=da[1].length;0<ja;){var aa=0;switch(da[0]){case z.INSERT:aa=Math.min(w.peekLength(),ja);n.push(w.next(aa));break;case z.DELETE:aa=Math.min(ja,ba.peekLength());ba.next(aa);n["delete"](aa);break;case z.EQUAL:aa=Math.min(ba.peekLength(),w.peekLength(),ja);var ca=
17
+ ba.next(aa),ia=w.next(aa);if(x(ca.insert,ia.insert))n.retain(aa,f.attributes.diff(ca.attributes,ia.attributes));else n.push(ia)["delete"](aa)}ja-=aa}});return n.chop()};ea.prototype.eachLine=function(a,b){b=b||"\n";for(var h=f.iterator(this.ops),n=new ea,ba=0;h.hasNext();){if("insert"!==h.peekType())return;var w=h.peek(),da=f.length(w)-h.peekLength();w="string"===typeof w.insert?w.insert.indexOf(b,da)-da:-1;if(0>w)n.push(h.next());else if(0<w)n.push(h.next(w));else{if(!1===a(n,h.next(1).attributes||
18
+ {},ba))return;ba+=1;n=new ea}}0<n.length()&&a(n,{},ba)};ea.prototype.transform=function(a,b){b=!!b;if("number"===typeof a)return this.transformPosition(a,b);var h=f.iterator(this.ops);a=f.iterator(a.ops);for(var n=new ea;h.hasNext()||a.hasNext();)if("insert"!==h.peekType()||!b&&"insert"===a.peekType())if("insert"===a.peekType())n.push(a.next());else{var ba=Math.min(h.peekLength(),a.peekLength()),w=h.next(ba),da=a.next(ba);w["delete"]||(da["delete"]?n.push(da):n.retain(ba,f.attributes.transform(w.attributes,
19
+ da.attributes,b)))}else n.retain(f.length(h.next()));return n.chop()};ea.prototype.transformPosition=function(a,b){b=!!b;for(var h=f.iterator(this.ops),n=0;h.hasNext()&&n<=a;){var ba=h.peekLength(),w=h.peekType();h.next();"delete"===w?a-=Math.min(ba,a-n):("insert"===w&&(n<a||!b)&&(a+=ba),n+=ba)}return a};ka.exports=ea},function(ka){function ma(a,b){if("__proto__"===b){if(!x.call(a,b))return;if(e)return e(a,b).value}return a[b]}function fa(a,b){f&&"__proto__"===b.name?f(a,b.name,{enumerable:!0,configurable:!0,
20
+ value:b.newValue,writable:!0}):a[b.name]=b.newValue}function ea(a){if(!a||"[object Object]"!==y.call(a))return!1;var b=x.call(a,"constructor"),h=a.constructor&&a.constructor.prototype&&x.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!b&&!h)return!1;for(var n in a);return"undefined"===typeof n||x.call(a,n)}function z(a){return"function"===typeof Array.isArray?Array.isArray(a):"[object Array]"===y.call(a)}var x=Object.prototype.hasOwnProperty,y=Object.prototype.toString,f=Object.defineProperty,
21
+ e=Object.getOwnPropertyDescriptor;ka.exports=function b(){var h,n,ba=arguments[0],w=1,da=arguments.length,ja=!1;"boolean"===typeof ba&&(ja=ba,ba=arguments[1]||{},w=2);if(null==ba||"object"!==typeof ba&&"function"!==typeof ba)ba={};for(;w<da;++w){var aa=arguments[w];if(null!=aa)for(h in aa){var ca=ma(ba,h);var ia=ma(aa,h);ba!==ia&&(ja&&ia&&(ea(ia)||(n=z(ia)))?(n?(n=!1,ca=ca&&z(ca)?ca:[]):ca=ca&&ea(ca)?ca:{},fa(ba,{name:h,newValue:b(ja,ca,ia)})):"undefined"!==typeof ia&&fa(ba,{name:h,newValue:ia}))}}return ba}},
22
+ function(ka,ma,fa){function ea(ja){return ja&&ja.__esModule?ja:{default:ja}}function z(ja,aa){if(!(ja instanceof aa))throw new TypeError("Cannot call a class as a function");}function x(ja,aa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?ja:aa}function y(ja,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+typeof aa);ja.prototype=
23
+ Object.create(aa&&aa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,aa):ja.__proto__=aa)}function f(ja){var aa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==ja)return aa;"function"===typeof ja.formats&&(aa=(0,b.default)(aa,ja.formats()));return null==ja.parent||"scroll"==ja.parent.blotName||ja.parent.statics.scope!==ja.statics.scope?aa:f(ja.parent,aa)}Object.defineProperty(ma,"__esModule",{value:!0});
24
+ ma.default=ma.BlockEmbed=ma.bubbleFormats=void 0;var e=function(){function ja(aa,ca){for(var ia=0;ia<ca.length;ia++){var ha=ca[ia];ha.enumerable=ha.enumerable||!1;ha.configurable=!0;"value"in ha&&(ha.writable=!0);Object.defineProperty(aa,ha.key,ha)}}return function(aa,ca,ia){ca&&ja(aa.prototype,ca);ia&&ja(aa,ia);return aa}}(),a=function ha(aa,ca,ia){null===aa&&(aa=Function.prototype);var la=Object.getOwnPropertyDescriptor(aa,ca);if(void 0===la){if(aa=Object.getPrototypeOf(aa),null!==aa)return ha(aa,
25
+ ca,ia)}else{if("value"in la)return la.value;ca=la.get;return void 0===ca?void 0:ca.call(ia)}};ka=fa(3);var b=ea(ka);ka=fa(2);var h=ea(ka);ka=fa(0);var n=ea(ka);ka=fa(16);var ba=ea(ka);ka=fa(6);ka=ea(ka);fa=fa(7);fa=ea(fa);var w=function(aa){function ca(){z(this,ca);return x(this,(ca.__proto__||Object.getPrototypeOf(ca)).apply(this,arguments))}y(ca,aa);e(ca,[{key:"attach",value:function(){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"attach",this).call(this);this.attributes=new n.default.Attributor.Store(this.domNode)}},
26
+ {key:"delta",value:function(){return(new h.default).insert(this.value(),(0,b.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(ia,ha){ia=n.default.query(ia,n.default.Scope.BLOCK_ATTRIBUTE);null!=ia&&this.attributes.attribute(ia,ha)}},{key:"formatAt",value:function(ia,ha,la,na){this.format(la,na)}},{key:"insertAt",value:function(ia,ha,la){"string"===typeof ha&&ha.endsWith("\n")?(la=n.default.create(da.blotName),this.parent.insertBefore(la,0===ia?this:this.next),la.insertAt(0,
27
+ ha.slice(0,-1))):a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertAt",this).call(this,ia,ha,la)}}]);return ca}(n.default.Embed);w.scope=n.default.Scope.BLOCK_BLOT;var da=function(aa){function ca(ia){z(this,ca);ia=x(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,ia));ia.cache={};return ia}y(ca,aa);e(ca,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(n.default.Leaf).reduce(function(ia,ha){return 0===ha.length()?ia:ia.insert(ha.value(),
28
+ f(ha))},new h.default).insert("\n",f(this)));return this.cache.delta}},{key:"deleteAt",value:function(ia,ha){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"deleteAt",this).call(this,ia,ha);this.cache={}}},{key:"formatAt",value:function(ia,ha,la,na){0>=ha||(n.default.query(la,n.default.Scope.BLOCK)?ia+ha===this.length()&&this.format(la,na):a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"formatAt",this).call(this,ia,Math.min(ha,this.length()-ia-1),la,na),this.cache={})}},
29
+ {key:"insertAt",value:function(ia,ha,la){if(null!=la)return a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertAt",this).call(this,ia,ha,la);if(0!==ha.length){ha=ha.split("\n");la=ha.shift();0<la.length&&(ia<this.length()-1||null==this.children.tail?a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertAt",this).call(this,Math.min(ia,this.length()-1),la):this.children.tail.insertAt(this.children.tail.length(),la),this.cache={});var na=this;ha.reduce(function(qa,ra){na=
30
+ na.split(qa,!0);na.insertAt(0,ra);return ra.length},ia+la.length)}}},{key:"insertBefore",value:function(ia,ha){var la=this.children.head;a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertBefore",this).call(this,ia,ha);la instanceof ba.default&&la.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",
31
+ value:function(ia,ha){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"moveChildren",this).call(this,ia,ha);this.cache={}}},{key:"optimize",value:function(ia){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"optimize",this).call(this,ia);this.cache={}}},{key:"path",value:function(ia){return a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"path",this).call(this,ia,!0)}},{key:"removeChild",value:function(ia){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),
32
+ "removeChild",this).call(this,ia);this.cache={}}},{key:"split",value:function(ia){var ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(ha&&(0===ia||ia>=this.length()-1)){ha=this.clone();if(0===ia)return this.parent.insertBefore(ha,this),this;this.parent.insertBefore(ha,this.next);return ha}ha=a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"split",this).call(this,ia,ha);this.cache={};return ha}}]);return ca}(n.default.Block);da.blotName="block";da.tagName="P";da.defaultChild=
33
+ "break";da.allowedChildren=[ka.default,n.default.Embed,fa.default];ma.bubbleFormats=f;ma.BlockEmbed=w;ma.default=da},function(ka,ma,fa){function ea(ra){return ra&&ra.__esModule?ra:{default:ra}}function z(ra,ta,va){ta in ra?Object.defineProperty(ra,ta,{value:va,enumerable:!0,configurable:!0,writable:!0}):ra[ta]=va;return ra}function x(ra,ta){ta=(0,ia.default)(!0,{container:ra,modules:{clipboard:!0,keyboard:!0,history:!0}},ta);if(ta.theme&&ta.theme!==qa.DEFAULTS.theme){if(ta.theme=qa.import("themes/"+
34
+ ta.theme),null==ta.theme)throw Error("Invalid theme "+ta.theme+". Did you register it?");}else ta.theme=la.default;ra=(0,ia.default)(!0,{},ta.theme.DEFAULTS);[ra,ta].forEach(function(oa){oa.modules=oa.modules||{};Object.keys(oa.modules).forEach(function(wa){!0===oa.modules[wa]&&(oa.modules[wa]={})})});var va=Object.keys(ra.modules).concat(Object.keys(ta.modules)).reduce(function(oa,wa){var Da=qa.import("modules/"+wa);null==Da?na.error("Cannot load "+wa+" module. Are you sure you registered it?"):
35
+ oa[wa]=Da.DEFAULTS||{};return oa},{});null!=ta.modules&&ta.modules.toolbar&&ta.modules.toolbar.constructor!==Object&&(ta.modules.toolbar={container:ta.modules.toolbar});ta=(0,ia.default)(!0,{},qa.DEFAULTS,{modules:va},ra,ta);["bounds","container","scrollingContainer"].forEach(function(oa){"string"===typeof ta[oa]&&(ta[oa]=document.querySelector(ta[oa]))});ta.modules=Object.keys(ta.modules).reduce(function(oa,wa){ta.modules[wa]&&(oa[wa]=ta.modules[wa]);return oa},{});return ta}function y(ra,ta,va,
36
+ oa){if(this.options.strict&&!this.isEnabled()&&ta===w.default.sources.USER)return new n.default;var wa=null==va?null:this.getSelection(),Da=this.editor.delta;ra=ra();null!=wa&&(!0===va&&(va=wa.index),null==oa?wa=e(wa,ra,ta):0!==oa&&(wa=e(wa,va,oa,ta)),this.setSelection(wa,w.default.sources.SILENT));if(0<ra.length()){var Ha;va=[w.default.events.TEXT_CHANGE,ra,Da,ta];(Ha=this.emitter).emit.apply(Ha,[w.default.events.EDITOR_CHANGE].concat(va));if(ta!==w.default.sources.SILENT){var La;(La=this.emitter).emit.apply(La,
37
+ va)}}return ra}function f(ra,ta,va,oa,wa){var Da={};"number"===typeof ra.index&&"number"===typeof ra.length?("number"!==typeof ta&&(wa=oa,oa=va,va=ta),ta=ra.length,ra=ra.index):"number"!==typeof ta&&(wa=oa,oa=va,va=ta,ta=0);"object"===("undefined"===typeof va?"undefined":a(va))?(Da=va,wa=oa):"string"===typeof va&&(null!=oa?Da[va]=oa:wa=va);wa=wa||w.default.sources.API;return[ra,ta,Da,wa]}function e(ra,ta,va,oa){if(null==ra)return null;var wa=void 0,Da=void 0;ta instanceof n.default?(wa=[ra.index,
38
+ ra.index+ra.length].map(function(Ha){return ta.transformPosition(Ha,oa!==w.default.sources.USER)}),ra=b(wa,2),wa=ra[0],Da=ra[1]):(wa=[ra.index,ra.index+ra.length].map(function(Ha){return Ha<ta||Ha===ta&&oa===w.default.sources.USER?Ha:0<=va?Ha+va:Math.max(ta,Ha+va)}),ra=b(wa,2),wa=ra[0],Da=ra[1]);return new aa.Range(wa,Da-wa)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.overload=ma.expandConfig=void 0;var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(ra){return typeof ra}:
39
+ function(ra){return ra&&"function"===typeof Symbol&&ra.constructor===Symbol&&ra!==Symbol.prototype?"symbol":typeof ra},b=function(){return function(ra,ta){if(Array.isArray(ra))return ra;if(Symbol.iterator in Object(ra)){var va=[],oa=!0,wa=!1,Da=void 0;try{for(var Ha=ra[Symbol.iterator](),La;!(oa=(La=Ha.next()).done)&&(va.push(La.value),!ta||va.length!==ta);oa=!0);}catch(Ca){wa=!0,Da=Ca}finally{try{if(!oa&&Ha["return"])Ha["return"]()}finally{if(wa)throw Da;}}return va}throw new TypeError("Invalid attempt to destructure non-iterable instance");
40
+ }}(),h=function(){function ra(ta,va){for(var oa=0;oa<va.length;oa++){var wa=va[oa];wa.enumerable=wa.enumerable||!1;wa.configurable=!0;"value"in wa&&(wa.writable=!0);Object.defineProperty(ta,wa.key,wa)}}return function(ta,va,oa){va&&ra(ta.prototype,va);oa&&ra(ta,oa);return ta}}();fa(50);ka=fa(2);var n=ea(ka);ka=fa(14);var ba=ea(ka);ka=fa(8);var w=ea(ka);ka=fa(9);ka=ea(ka);var da=fa(0),ja=ea(da),aa=fa(15),ca=ea(aa);da=fa(3);var ia=ea(da);da=fa(10);var ha=ea(da);fa=fa(34);var la=ea(fa),na=(0,ha.default)("quill"),
41
+ qa=function(){function ra(ta){var va=this,oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof ra))throw new TypeError("Cannot call a class as a function");this.options=x(ta,oa);this.container=this.options.container;if(null==this.container)return na.error("Invalid Quill container",ta);this.options.debug&&ra.debug(this.options.debug);oa=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=
42
+ this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.root.setAttribute("data-gramm",!1);this.scrollingContainer=this.options.scrollingContainer||this.root;this.emitter=new w.default;this.scroll=ja.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ba.default(this.scroll);this.selection=new ca.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=
43
+ this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(w.default.events.EDITOR_CHANGE,function(wa){wa===w.default.events.TEXT_CHANGE&&va.root.classList.toggle("ql-blank",va.editor.isBlank())});this.emitter.on(w.default.events.SCROLL_UPDATE,function(wa,Da){var Ha=va.selection.lastRange,La=Ha&&0===Ha.length?Ha.index:void 0;y.call(va,function(){return va.editor.update(null,Da,La)},wa)});oa=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+
44
+ oa+"<p><br></p></div>");this.setContents(oa);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}h(ra,null,[{key:"debug",value:function(ta){!0===ta&&(ta="log");ha.default.level(ta)}},{key:"find",value:function(ta){return ta.__quill||ja.default.find(ta)}},{key:"import",value:function(ta){null==this.imports[ta]&&na.error("Cannot import "+ta+". Are you sure it was registered?");return this.imports[ta]}},
45
+ {key:"register",value:function(ta,va){var oa=this,wa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof ta?(wa=ta.attrName||ta.blotName,"string"===typeof wa?this.register("formats/"+wa,ta,va):Object.keys(ta).forEach(function(Da){oa.register(Da,ta[Da],va)})):(null==this.imports[ta]||wa||na.warn("Overwriting "+ta+" with",va),this.imports[ta]=va,(ta.startsWith("blots/")||ta.startsWith("formats/"))&&"abstract"!==va.blotName?ja.default.register(va):ta.startsWith("modules")&&"function"===
46
+ typeof va.register&&va.register())}}]);h(ra,[{key:"addContainer",value:function(ta){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof ta){var oa=ta;ta=document.createElement("div");ta.classList.add(oa)}this.container.insertBefore(ta,va);return ta}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ta,va,oa){var wa=this;oa=f(ta,va,oa);oa=b(oa,4);ta=oa[0];va=oa[1];oa=oa[3];return y.call(this,function(){return wa.editor.deleteText(ta,
47
+ va)},oa,ta,-1*va)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ta=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(ta);this.container.classList.toggle("ql-disabled",!ta)}},{key:"focus",value:function(){var ta=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=ta;this.scrollIntoView()}},{key:"format",value:function(ta,va){var oa=this;return y.call(this,function(){var wa=oa.getSelection(!0),
48
+ Da=new n.default;if(null==wa)return Da;if(ja.default.query(ta,ja.default.Scope.BLOCK))Da=oa.editor.formatLine(wa.index,wa.length,z({},ta,va));else{if(0===wa.length)return oa.selection.format(ta,va),Da;Da=oa.editor.formatText(wa.index,wa.length,z({},ta,va))}oa.setSelection(wa,w.default.sources.SILENT);return Da},2<arguments.length&&void 0!==arguments[2]?arguments[2]:w.default.sources.API)}},{key:"formatLine",value:function(ta,va,oa,wa,Da){var Ha=this,La=void 0;oa=f(ta,va,oa,wa,Da);oa=b(oa,4);ta=oa[0];
49
+ va=oa[1];La=oa[2];Da=oa[3];return y.call(this,function(){return Ha.editor.formatLine(ta,va,La)},Da,ta,0)}},{key:"formatText",value:function(ta,va,oa,wa,Da){var Ha=this,La=void 0;oa=f(ta,va,oa,wa,Da);oa=b(oa,4);ta=oa[0];va=oa[1];La=oa[2];Da=oa[3];return y.call(this,function(){return Ha.editor.formatText(ta,va,La)},Da,ta,0)}},{key:"getBounds",value:function(ta){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;va="number"===typeof ta?this.selection.getBounds(ta,va):this.selection.getBounds(ta.index,
50
+ ta.length);var oa=this.container.getBoundingClientRect();return{bottom:va.bottom-oa.top,height:va.height,left:va.left-oa.left,right:va.right-oa.left,top:va.top-oa.top,width:va.width}}},{key:"getContents",value:function(){var ta=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ta;ta=f(ta,va);va=b(ta,2);ta=va[0];va=va[1];return this.editor.getContents(ta,va)}},{key:"getFormat",value:function(){var ta=0<arguments.length&&
51
+ void 0!==arguments[0]?arguments[0]:this.getSelection(!0),va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof ta?this.editor.getFormat(ta,va):this.editor.getFormat(ta.index,ta.length)}},{key:"getIndex",value:function(ta){return ta.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ta){return this.scroll.leaf(ta)}},{key:"getLine",value:function(ta){return this.scroll.line(ta)}},{key:"getLines",value:function(){var ta=
52
+ 0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof ta?this.scroll.lines(ta.index,ta.length):this.scroll.lines(ta,va)}},{key:"getModule",value:function(ta){return this.theme.modules[ta]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function(){var ta=0<arguments.length&&
53
+ void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ta;ta=f(ta,va);va=b(ta,2);ta=va[0];va=va[1];return this.editor.getText(ta,va)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ta,va,oa){var wa=this;return y.call(this,function(){return wa.editor.insertEmbed(ta,va,oa)},3<arguments.length&&void 0!==arguments[3]?arguments[3]:ra.sources.API,ta)}},{key:"insertText",value:function(ta,va,
54
+ oa,wa,Da){var Ha=this,La=void 0;oa=f(ta,0,oa,wa,Da);oa=b(oa,4);ta=oa[0];La=oa[2];Da=oa[3];return y.call(this,function(){return Ha.editor.insertText(ta,va,La)},Da,ta,va.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,
55
+ arguments)}},{key:"pasteHTML",value:function(ta,va,oa){this.clipboard.dangerouslyPasteHTML(ta,va,oa)}},{key:"removeFormat",value:function(ta,va,oa){var wa=this;oa=f(ta,va,oa);oa=b(oa,4);ta=oa[0];va=oa[1];oa=oa[3];return y.call(this,function(){return wa.editor.removeFormat(ta,va)},oa,ta)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ta){var va=this;return y.call(this,function(){ta=new n.default(ta);var oa=va.getLength();
56
+ oa=va.editor.deleteText(0,oa);var wa=va.editor.applyDelta(ta),Da=wa.ops[wa.ops.length-1];null!=Da&&"string"===typeof Da.insert&&"\n"===Da.insert[Da.insert.length-1]&&(va.editor.deleteText(va.getLength()-1,1),wa.delete(1));return oa.compose(wa)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API)}},{key:"setSelection",value:function(ta,va,oa){null==ta?this.selection.setRange(null,va||ra.sources.API):(ta=f(ta,va,oa),oa=b(ta,4),ta=oa[0],va=oa[1],oa=oa[3],this.selection.setRange(new aa.Range(ta,
57
+ va),oa),oa!==w.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(ta){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API,oa=(new n.default).insert(ta);return this.setContents(oa,va)}},{key:"update",value:function(){var ta=0<arguments.length&&void 0!==arguments[0]?arguments[0]:w.default.sources.USER,va=this.scroll.update(ta);this.selection.update(ta);return va}},{key:"updateContents",value:function(ta){var va=
58
+ this,oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API;return y.call(this,function(){ta=new n.default(ta);return va.editor.applyDelta(ta,oa)},oa,!0)}}]);return ra}();qa.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};qa.events=w.default.events;qa.sources=w.default.sources;qa.version="1.3.7";qa.imports={delta:n.default,parchment:ja.default,"core/module":ka.default,"core/theme":la.default};ma.expandConfig=
59
+ x;ma.overload=f;ma.default=qa},function(ka,ma,fa){function ea(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=
60
+ h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),x=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};ka=(ka=fa(7))&&ka.__esModule?ka:{default:ka};var y=(fa=fa(0))&&fa.__esModule?fa:{default:fa};
61
+ fa=function(e){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?this:b}ea(a,e);z(a,[{key:"formatAt",value:function(b,h,n,ba){0>a.compare(this.statics.blotName,n)&&y.default.query(n,y.default.Scope.BLOT)?(b=this.isolate(b,h),ba&&b.wrap(n,ba)):
62
+ x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"formatAt",this).call(this,b,h,n,ba)}},{key:"optimize",value:function(b){x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,b);this.parent instanceof a&&0<a.compare(this.statics.blotName,this.parent.statics.blotName)&&(b=this.parent.isolate(this.offset(),this.length()),this.moveChildren(b),b.wrap(this))}}],[{key:"compare",value:function(b,h){var n=a.order.indexOf(b),ba=a.order.indexOf(h);return 0<=n||0<=
63
+ ba?n-ba:b===h?0:b<h?-1:1}}]);return a}(y.default.Inline);fa.allowedChildren=[fa,y.default.Embed,ka.default];fa.order="cursor inline underline strike italic bold script link code".split(" ");ma.default=fa},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(z,
64
+ x):z.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(0)).default.Text);ma.default=ka},
65
+ function(ka,ma,fa){function ea(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=
66
+ !0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),x=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};ka=(ka=fa(54))&&ka.__esModule?ka:{default:ka};fa=fa(10);var y=(0,(fa&&fa.__esModule?fa:{default:fa}).default)("quill:events");
67
+ ["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var a=arguments.length,b=Array(a),h=0;h<a;h++)b[h]=arguments[h];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(n){if(n.__quill&&n.__quill.emitter){var ba;(ba=n.__quill.emitter).handleDOM.apply(ba,b)}})})});fa=function(e){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).call(this);
68
+ if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");b=!b||"object"!==typeof b&&"function"!==typeof b?this:b;b.listeners={};b.on("error",y.error);return b}ea(a,e);z(a,[{key:"emit",value:function(){y.log.apply(y,arguments);x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(b){for(var h=arguments.length,n=Array(1<h?h-1:0),ba=1;ba<h;ba++)n[ba-1]=arguments[ba];(this.listeners[b.type]||
69
+ []).forEach(function(w){var da=w.node;w=w.handler;(b.target===da||da.contains(b.target))&&w.apply(void 0,[b].concat(n))})}},{key:"listenDOM",value:function(b,h,n){this.listeners[b]||(this.listeners[b]=[]);this.listeners[b].push({node:h,handler:n})}}]);return a}(ka.default);fa.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};fa.sources={API:"api",
70
+ SILENT:"silent",USER:"user"};ma.default=fa},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});ka=function z(ea){var x=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof z))throw new TypeError("Cannot call a class as a function");this.quill=ea;this.options=x};ka.DEFAULTS={};ma.default=ka},function(ka,ma){function fa(y){if(z.indexOf(y)<=z.indexOf(x)){for(var f,e=arguments.length,a=Array(1<e?e-1:0),b=1;b<e;b++)a[b-1]=arguments[b];(f=console)[y].apply(f,a)}}
71
+ function ea(y){return z.reduce(function(f,e){f[e]=fa.bind(console,e,y);return f},{})}Object.defineProperty(ma,"__esModule",{value:!0});var z=["error","warn","log","info"],x="warn";fa.level=ea.level=function(y){x=y};ma.default=ea},function(ka,ma,fa){function ea(a){return!a||"object"!==typeof a||"number"!==typeof a.length||"function"!==typeof a.copy||"function"!==typeof a.slice||0<a.length&&"number"!==typeof a[0]?!1:!0}function z(a,b,h){var n;if(null===a||void 0===a||null===b||void 0===b||a.prototype!==
72
+ b.prototype)return!1;if(f(a)){if(!f(b))return!1;a=x.call(a);b=x.call(b);return e(a,b,h)}if(ea(a)){if(!ea(b)||a.length!==b.length)return!1;for(n=0;n<a.length;n++)if(a[n]!==b[n])return!1;return!0}try{var ba=y(a);var w=y(b)}catch(da){return!1}if(ba.length!=w.length)return!1;ba.sort();w.sort();for(n=ba.length-1;0<=n;n--)if(ba[n]!=w[n])return!1;for(n=ba.length-1;0<=n;n--)if(w=ba[n],!e(a[w],b[w],h))return!1;return typeof a===typeof b}var x=Array.prototype.slice,y=fa(52),f=fa(53),e=ka.exports=function(a,
73
+ b,h){h||(h={});return a===b?!0:a instanceof Date&&b instanceof Date?a.getTime()===b.getTime():!a||!b||"object"!=typeof a&&"object"!=typeof b?h.strict?a===b:a==b:z(a,b,h)}},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});var ea=fa(1);ka=function(){function z(x,y,f){void 0===f&&(f={});this.attrName=x;this.keyName=y;x=ea.Scope.TYPE&ea.Scope.ATTRIBUTE;this.scope=null!=f.scope?f.scope&ea.Scope.LEVEL|x:ea.Scope.ATTRIBUTE;null!=f.whitelist&&(this.whitelist=f.whitelist)}z.keys=function(x){return[].map.call(x.attributes,
74
+ function(y){return y.name})};z.prototype.add=function(x,y){if(!this.canAdd(x,y))return!1;x.setAttribute(this.keyName,y);return!0};z.prototype.canAdd=function(x,y){return null==ea.query(x,ea.Scope.BLOT&(this.scope|ea.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof y?-1<this.whitelist.indexOf(y.replace(/["']/g,"")):-1<this.whitelist.indexOf(y)};z.prototype.remove=function(x){x.removeAttribute(this.keyName)};z.prototype.value=function(x){var y=x.getAttribute(this.keyName);return this.canAdd(x,
75
+ y)&&y?y:""};return z}();ma.default=ka},function(ka,ma,fa){function ea(w){return w&&w.__esModule?w:{default:w}}function z(w,da){if(!(w instanceof da))throw new TypeError("Cannot call a class as a function");}function x(w,da){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!da||"object"!==typeof da&&"function"!==typeof da?w:da}function y(w,da){if("function"!==typeof da&&null!==da)throw new TypeError("Super expression must either be null or a function, not "+
76
+ typeof da);w.prototype=Object.create(da&&da.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});da&&(Object.setPrototypeOf?Object.setPrototypeOf(w,da):w.__proto__=da)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.Code=void 0;var f=function(){return function(w,da){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w)){var ja=[],aa=!0,ca=!1,ia=void 0;try{for(var ha=w[Symbol.iterator](),la;!(aa=(la=ha.next()).done)&&(ja.push(la.value),!da||ja.length!==
77
+ da);aa=!0);}catch(na){ca=!0,ia=na}finally{try{if(!aa&&ha["return"])ha["return"]()}finally{if(ca)throw ia;}}return ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function w(da,ja){for(var aa=0;aa<ja.length;aa++){var ca=ja[aa];ca.enumerable=ca.enumerable||!1;ca.configurable=!0;"value"in ca&&(ca.writable=!0);Object.defineProperty(da,ca.key,ca)}}return function(da,ja,aa){ja&&w(da.prototype,ja);aa&&w(da,aa);return da}}(),a=function ca(da,ja,aa){null===
78
+ da&&(da=Function.prototype);var ia=Object.getOwnPropertyDescriptor(da,ja);if(void 0===ia){if(da=Object.getPrototypeOf(da),null!==da)return ca(da,ja,aa)}else{if("value"in ia)return ia.value;ja=ia.get;return void 0===ja?void 0:ja.call(aa)}};ka=fa(2);var b=ea(ka);ka=fa(0);var h=ea(ka);ka=fa(4);ka=ea(ka);var n=fa(6);n=ea(n);fa=fa(7);var ba=ea(fa);fa=function(da){function ja(){z(this,ja);return x(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}y(ja,da);return ja}(n.default);fa.blotName=
79
+ "code";fa.tagName="CODE";ka=function(da){function ja(){z(this,ja);return x(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}y(ja,da);e(ja,[{key:"delta",value:function(){var aa=this,ca=this.domNode.textContent;ca.endsWith("\n")&&(ca=ca.slice(0,-1));return ca.split("\n").reduce(function(ia,ha){return ia.insert(ha).insert("\n",aa.formats())},new b.default)}},{key:"format",value:function(aa,ca){if(aa!==this.statics.blotName||!ca){var ia=this.descendant(ba.default,this.length()-1);
80
+ ia=f(ia,1)[0];null!=ia&&ia.deleteAt(ia.length()-1,1);a(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"format",this).call(this,aa,ca)}}},{key:"formatAt",value:function(aa,ca,ia,ha){if(0!==ca&&null!=h.default.query(ia,h.default.Scope.BLOCK)&&(ia!==this.statics.blotName||ha!==this.statics.formats(this.domNode))){var la=this.newlineIndex(aa);if(!(0>la||la>=aa+ca)){var na=this.newlineIndex(aa,!0)+1;la=la-na+1;var qa=this.isolate(na,la),ra=qa.next;qa.format(ia,ha);ra instanceof ja&&ra.formatAt(0,
81
+ aa-na+ca-la,ia,ha)}}}},{key:"insertAt",value:function(aa,ca,ia){null==ia&&(aa=this.descendant(ba.default,aa),aa=f(aa,2),aa[0].insertAt(aa[1],ca))}},{key:"length",value:function(){var aa=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?aa:aa+1}},{key:"newlineIndex",value:function(aa){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,aa).lastIndexOf("\n");var ca=this.domNode.textContent.slice(aa).indexOf("\n");return-1<ca?
82
+ aa+ca:-1}},{key:"optimize",value:function(aa){this.domNode.textContent.endsWith("\n")||this.appendChild(h.default.create("text","\n"));a(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"optimize",this).call(this,aa);var ca=this.next;null!=ca&&ca.prev===this&&ca.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===ca.statics.formats(ca.domNode)&&(ca.optimize(aa),ca.moveChildren(this),ca.remove())}},{key:"replace",value:function(aa){a(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),
83
+ "replace",this).call(this,aa);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ca){var ia=h.default.find(ca);null==ia?ca.parentNode.removeChild(ca):ia instanceof h.default.Embed?ia.remove():ia.unwrap()})}}],[{key:"create",value:function(aa){aa=a(ja.__proto__||Object.getPrototypeOf(ja),"create",this).call(this,aa);aa.setAttribute("spellcheck",!1);return aa}},{key:"formats",value:function(){return!0}}]);return ja}(ka.default);ka.blotName="code-block";ka.tagName="PRE";ka.TAB=" ";ma.Code=
84
+ fa;ma.default=ka},function(ka,ma,fa){function ea(la){return la&&la.__esModule?la:{default:la}}function z(la,na){return Object.keys(na).reduce(function(qa,ra){if(null==la[ra])return qa;na[ra]===la[ra]?qa[ra]=na[ra]:Array.isArray(na[ra])?0>na[ra].indexOf(la[ra])&&(qa[ra]=na[ra].concat([la[ra]])):qa[ra]=[na[ra],la[ra]];return qa},{})}function x(la){return la.reduce(function(na,qa){if(1===qa.insert){var ra=(0,aa.default)(qa.attributes);delete ra.image;return na.insert({image:qa.attributes.image},ra)}null==
85
+ qa.attributes||!0!==qa.attributes.list&&!0!==qa.attributes.bullet||(qa=(0,aa.default)(qa),qa.attributes.list?qa.attributes.list="ordered":(qa.attributes.list="bullet",delete qa.attributes.bullet));return"string"===typeof qa.insert?(ra=qa.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),na.insert(ra,qa.attributes)):na.push(qa)},new a.default)}Object.defineProperty(ma,"__esModule",{value:!0});var y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(la){return typeof la}:function(la){return la&&
86
+ "function"===typeof Symbol&&la.constructor===Symbol&&la!==Symbol.prototype?"symbol":typeof la},f=function(){return function(la,na){if(Array.isArray(la))return la;if(Symbol.iterator in Object(la)){var qa=[],ra=!0,ta=!1,va=void 0;try{for(var oa=la[Symbol.iterator](),wa;!(ra=(wa=oa.next()).done)&&(qa.push(wa.value),!na||qa.length!==na);ra=!0);}catch(Da){ta=!0,va=Da}finally{try{if(!ra&&oa["return"])oa["return"]()}finally{if(ta)throw va;}}return qa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
87
+ }}(),e=function(){function la(na,qa){for(var ra=0;ra<qa.length;ra++){var ta=qa[ra];ta.enumerable=ta.enumerable||!1;ta.configurable=!0;"value"in ta&&(ta.writable=!0);Object.defineProperty(na,ta.key,ta)}}return function(na,qa,ra){qa&&la(na.prototype,qa);ra&&la(na,ra);return na}}();ka=fa(2);var a=ea(ka);ka=fa(20);var b=ea(ka);ka=fa(0);var h=ea(ka);ka=fa(13);var n=ea(ka);ka=fa(24);var ba=ea(ka),w=fa(4),da=ea(w);ka=fa(16);var ja=ea(ka);ka=fa(21);var aa=ea(ka);ka=fa(11);var ca=ea(ka);fa=fa(3);var ia=ea(fa),
88
+ ha=/^[ -~]*$/;fa=function(){function la(na){if(!(this instanceof la))throw new TypeError("Cannot call a class as a function");this.scroll=na;this.delta=this.getDelta()}e(la,[{key:"applyDelta",value:function(na){var qa=this,ra=!1;this.scroll.update();var ta=this.scroll.length();this.scroll.batchStart();na=x(na);na.reduce(function(va,oa){var wa=oa.retain||oa.delete||oa.insert.length||1,Da=oa.attributes||{};if(null!=oa.insert){if("string"===typeof oa.insert){oa=oa.insert;oa.endsWith("\n")&&ra&&(ra=!1,
89
+ oa=oa.slice(0,-1));va>=ta&&!oa.endsWith("\n")&&(ra=!0);qa.scroll.insertAt(va,oa);oa=qa.scroll.line(va);oa=f(oa,2);var Ha=oa[0],La=oa[1];oa=(0,ia.default)({},(0,w.bubbleFormats)(Ha));Ha instanceof da.default&&(Ha=Ha.descendant(h.default.Leaf,La),Ha=f(Ha,1)[0],oa=(0,ia.default)(oa,(0,w.bubbleFormats)(Ha)));Da=b.default.attributes.diff(oa,Da)||{}}else if("object"===y(oa.insert)){Ha=Object.keys(oa.insert)[0];if(null==Ha)return va;qa.scroll.insertAt(va,Ha,oa.insert[Ha])}ta+=wa}Object.keys(Da).forEach(function(Ca){qa.scroll.formatAt(va,
90
+ wa,Ca,Da[Ca])});return va+wa},0);na.reduce(function(va,oa){return"number"===typeof oa.delete?(qa.scroll.deleteAt(va,oa.delete),va):va+(oa.retain||oa.insert.length||1)},0);this.scroll.batchEnd();return this.update(na)}},{key:"deleteText",value:function(na,qa){this.scroll.deleteAt(na,qa);return this.update((new a.default).retain(na).delete(qa))}},{key:"formatLine",value:function(na,qa){var ra=this,ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(ta).forEach(function(va){if(null==
91
+ ra.scroll.whitelist||ra.scroll.whitelist[va]){var oa=ra.scroll.lines(na,Math.max(qa,1)),wa=qa;oa.forEach(function(Da){var Ha=Da.length();if(Da instanceof n.default){var La=na-Da.offset(ra.scroll),Ca=Da.newlineIndex(La+wa)-La+1;Da.formatAt(La,Ca,va,ta[va])}else Da.format(va,ta[va]);wa-=Ha})}});this.scroll.optimize();return this.update((new a.default).retain(na).retain(qa,(0,aa.default)(ta)))}},{key:"formatText",value:function(na,qa){var ra=this,ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
92
+ {};Object.keys(ta).forEach(function(va){ra.scroll.formatAt(na,qa,va,ta[va])});return this.update((new a.default).retain(na).retain(qa,(0,aa.default)(ta)))}},{key:"getContents",value:function(na,qa){return this.delta.slice(na,na+qa)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(na,qa){return na.concat(qa.delta())},new a.default)}},{key:"getFormat",value:function(na){var qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ra=[],ta=[];0===qa?this.scroll.path(na).forEach(function(va){va=
93
+ f(va,1)[0];va instanceof da.default?ra.push(va):va instanceof h.default.Leaf&&ta.push(va)}):(ra=this.scroll.lines(na,qa),ta=this.scroll.descendants(h.default.Leaf,na,qa));qa=[ra,ta].map(function(va){if(0===va.length)return{};for(var oa=(0,w.bubbleFormats)(va.shift());0<Object.keys(oa).length;){var wa=va.shift();if(null==wa)break;oa=z((0,w.bubbleFormats)(wa),oa)}return oa});return ia.default.apply(ia.default,qa)}},{key:"getText",value:function(na,qa){return this.getContents(na,qa).filter(function(ra){return"string"===
94
+ typeof ra.insert}).map(function(ra){return ra.insert}).join("")}},{key:"insertEmbed",value:function(na,qa,ra){this.scroll.insertAt(na,qa,ra);var ta=this.update;na=(new a.default).retain(na);var va=na.insert,oa={};qa in oa?Object.defineProperty(oa,qa,{value:ra,enumerable:!0,configurable:!0,writable:!0}):oa[qa]=ra;return ta.call(this,va.call(na,oa))}},{key:"insertText",value:function(na,qa){var ra=this,ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};qa=qa.replace(/\r\n/g,"\n").replace(/\r/g,
95
+ "\n");this.scroll.insertAt(na,qa);Object.keys(ta).forEach(function(va){ra.scroll.formatAt(na,qa.length,va,ta[va])});return this.update((new a.default).retain(na).insert(qa,(0,aa.default)(ta)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var na=this.scroll.children.head;return na.statics.blotName!==da.default.blotName||1<na.children.length?!1:na.children.head instanceof ja.default}},{key:"removeFormat",value:function(na,qa){var ra=
96
+ this.getText(na,qa),ta=this.scroll.line(na+qa),va=f(ta,2);ta=va[0];va=va[1];var oa=0,wa=new a.default;null!=ta&&(oa=ta instanceof n.default?ta.newlineIndex(va)-va+1:ta.length()-va,wa=ta.delta().slice(va,va+oa-1).insert("\n"));qa=this.getContents(na,qa+oa).diff((new a.default).insert(ra).concat(wa));na=(new a.default).retain(na).concat(qa);return this.applyDelta(na)}},{key:"update",value:function(na){var qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],ra=2<arguments.length&&void 0!==arguments[2]?
97
+ arguments[2]:void 0,ta=this.delta;if(1===qa.length&&"characterData"===qa[0].type&&qa[0].target.data.match(ha)&&h.default.find(qa[0].target)){var va=h.default.find(qa[0].target),oa=(0,w.bubbleFormats)(va),wa=va.offset(this.scroll);qa=qa[0].oldValue.replace(ba.default.CONTENTS,"");qa=(new a.default).insert(qa);va=(new a.default).insert(va.value());na=(new a.default).retain(wa).concat(qa.diff(va,ra)).reduce(function(Da,Ha){return Ha.insert?Da.insert(Ha.insert,oa):Da.push(Ha)},new a.default);this.delta=
98
+ ta.compose(na)}else this.delta=this.getDelta(),na&&(0,ca.default)(ta.compose(na),this.delta)||(na=ta.diff(this.delta,ra));return na}}]);return la}();ma.default=fa},function(ka,ma,fa){function ea(da){return da&&da.__esModule?da:{default:da}}function z(da){if(Array.isArray(da)){for(var ja=0,aa=Array(da.length);ja<da.length;ja++)aa[ja]=da[ja];return aa}return Array.from(da)}function x(da,ja){if(!(da instanceof ja))throw new TypeError("Cannot call a class as a function");}function y(da,ja){try{ja.parentNode}catch(aa){return!1}ja instanceof
99
+ Text&&(ja=ja.parentNode);return da.contains(ja)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.Range=void 0;var f=function(){return function(da,ja){if(Array.isArray(da))return da;if(Symbol.iterator in Object(da)){var aa=[],ca=!0,ia=!1,ha=void 0;try{for(var la=da[Symbol.iterator](),na;!(ca=(na=la.next()).done)&&(aa.push(na.value),!ja||aa.length!==ja);ca=!0);}catch(qa){ia=!0,ha=qa}finally{try{if(!ca&&la["return"])la["return"]()}finally{if(ia)throw ha;}}return aa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
100
+ }}(),e=function(){function da(ja,aa){for(var ca=0;ca<aa.length;ca++){var ia=aa[ca];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=!0);Object.defineProperty(ja,ia.key,ia)}}return function(ja,aa,ca){aa&&da(ja.prototype,aa);ca&&da(ja,ca);return ja}}();ka=fa(0);var a=ea(ka);ka=fa(21);var b=ea(ka);ka=fa(11);var h=ea(ka);ka=fa(8);var n=ea(ka);fa=fa(10);var ba=(0,ea(fa).default)("quill:selection"),w=function aa(ja){var ca=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
101
+ 0;x(this,aa);this.index=ja;this.length=ca};fa=function(){function ja(aa,ca){var ia=this;x(this,ja);this.emitter=ca;this.scroll=aa;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=a.default.create("cursor",this);this.lastRange=this.savedRange=new w(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,function(){ia.mouseDown||setTimeout(ia.update.bind(ia,n.default.sources.USER),1)});this.emitter.on(n.default.events.EDITOR_CHANGE,
102
+ function(ha,la){ha===n.default.events.TEXT_CHANGE&&0<la.length()&&ia.update(n.default.sources.SILENT)});this.emitter.on(n.default.events.SCROLL_BEFORE_UPDATE,function(){if(ia.hasFocus()){var ha=ia.getNativeRange();if(null!=ha&&ha.start.node!==ia.cursor.textNode)ia.emitter.once(n.default.events.SCROLL_UPDATE,function(){try{ia.setNativeRange(ha.start.node,ha.start.offset,ha.end.node,ha.end.offset)}catch(la){}})}});this.emitter.on(n.default.events.SCROLL_OPTIMIZE,function(ha,la){la.range&&(ha=la.range,
103
+ ia.setNativeRange(ha.startNode,ha.startOffset,ha.endNode,ha.endOffset))});this.update(n.default.sources.SILENT)}e(ja,[{key:"handleComposition",value:function(){var aa=this;this.root.addEventListener("compositionstart",function(){aa.composing=!0});this.root.addEventListener("compositionend",function(){aa.composing=!1;if(aa.cursor.parent){var ca=aa.cursor.restore();ca&&setTimeout(function(){aa.setNativeRange(ca.startNode,ca.startOffset,ca.endNode,ca.endOffset)},1)}})}},{key:"handleDragging",value:function(){var aa=
104
+ this;this.emitter.listenDOM("mousedown",document.body,function(){aa.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){aa.mouseDown=!1;aa.update(n.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(aa,ca){if(null==this.scroll.whitelist||this.scroll.whitelist[aa]){this.scroll.update();var ia=this.getNativeRange();if(null!=ia&&ia.native.collapsed&&!a.default.query(aa,a.default.Scope.BLOCK)){if(ia.start.node!==
105
+ this.cursor.textNode){var ha=a.default.find(ia.start.node,!1);if(null==ha)return;ha instanceof a.default.Leaf?(ia=ha.split(ia.start.offset),ha.parent.insertBefore(this.cursor,ia)):ha.insertBefore(this.cursor,ia.start.node);this.cursor.attach()}this.cursor.format(aa,ca);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",value:function(aa){var ca=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ia=this.scroll.length();
106
+ aa=Math.min(aa,ia-1);ca=Math.min(aa+ca,ia-1)-aa;ia=this.scroll.leaf(aa);var ha=f(ia,2);ia=ha[0];var la=ha[1];if(null==ia)return null;ha=ia.position(la,!0);ha=f(ha,2);var na=ha[0];la=ha[1];ha=document.createRange();if(0<ca){ha.setStart(na,la);ca=this.scroll.leaf(aa+ca);ca=f(ca,2);ia=ca[0];la=ca[1];if(null==ia)return null;ca=ia.position(la,!0);ca=f(ca,2);na=ca[0];la=ca[1];ha.setEnd(na,la);return ha.getBoundingClientRect()}ca="left";na instanceof Text?(la<na.data.length?(ha.setStart(na,la),ha.setEnd(na,
107
+ la+1)):(ha.setStart(na,la-1),ha.setEnd(na,la),ca="right"),ia=ha.getBoundingClientRect()):(ia=ia.domNode.getBoundingClientRect(),0<la&&(ca="right"));return{bottom:ia.top+ia.height,height:ia.height,left:ia[ca],right:ia[ca],top:ia.top,width:0}}},{key:"getNativeRange",value:function(){var aa=document.getSelection();if(null==aa||0>=aa.rangeCount)return null;aa=aa.getRangeAt(0);if(null==aa)return null;aa=this.normalizeNative(aa);ba.info("getNativeRange",aa);return aa}},{key:"getRange",value:function(){var aa=
108
+ this.getNativeRange();return null==aa?[null,null]:[this.normalizedToRange(aa),aa]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(aa){var ca=this,ia=[[aa.start.node,aa.start.offset]];aa.native.collapsed||ia.push([aa.end.node,aa.end.offset]);ia=ia.map(function(ha){var la=f(ha,2);ha=la[0];la=la[1];var na=a.default.find(ha,!0),qa=na.offset(ca.scroll);return 0===la?qa:na instanceof a.default.Container?qa+na.length():qa+na.index(ha,
109
+ la)});aa=Math.min(Math.max.apply(Math,z(ia)),this.scroll.length()-1);ia=Math.min.apply(Math,[aa].concat(z(ia)));return new w(ia,aa-ia)}},{key:"normalizeNative",value:function(aa){if(!y(this.root,aa.startContainer)||!aa.collapsed&&!y(this.root,aa.endContainer))return null;aa={start:{node:aa.startContainer,offset:aa.startOffset},end:{node:aa.endContainer,offset:aa.endOffset},native:aa};[aa.start,aa.end].forEach(function(ca){for(var ia=ca.node,ha=ca.offset;!(ia instanceof Text)&&0<ia.childNodes.length;)if(ia.childNodes.length>
110
+ ha)ia=ia.childNodes[ha],ha=0;else if(ia.childNodes.length===ha)ia=ia.lastChild,ha=ia instanceof Text?ia.data.length:ia.childNodes.length+1;else break;ca.node=ia;ca.offset=ha});return aa}},{key:"rangeToNative",value:function(aa){var ca=this;aa=aa.collapsed?[aa.index]:[aa.index,aa.index+aa.length];var ia=[],ha=this.scroll.length();aa.forEach(function(la,na){la=Math.min(ha-1,la);la=ca.scroll.leaf(la);var qa=f(la,2);la=qa[1];na=qa[0].position(la,0!==na);la=f(na,2);na=la[0];la=la[1];ia.push(na,la)});2>
111
+ ia.length&&(ia=ia.concat(ia));return ia}},{key:"scrollIntoView",value:function(aa){var ca=this.lastRange;if(null!=ca){var ia=this.getBounds(ca.index,ca.length);if(null!=ia){var ha=this.scroll.length()-1,la=this.scroll.line(Math.min(ca.index,ha)),na=la=f(la,1)[0];0<ca.length&&(ca=this.scroll.line(Math.min(ca.index+ca.length,ha)),na=f(ca,1)[0]);null!=la&&null!=na&&(ca=aa.getBoundingClientRect(),ia.top<ca.top?aa.scrollTop-=ca.top-ia.top:ia.bottom>ca.bottom&&(aa.scrollTop+=ia.bottom-ca.bottom))}}}},{key:"setNativeRange",
112
+ value:function(aa,ca){var ia=2<arguments.length&&void 0!==arguments[2]?arguments[2]:aa,ha=3<arguments.length&&void 0!==arguments[3]?arguments[3]:ca,la=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ba.info("setNativeRange",aa,ca,ia,ha);if(null==aa||null!=this.root.parentNode&&null!=aa.parentNode&&null!=ia.parentNode){var na=document.getSelection();if(null!=na)if(null!=aa){this.hasFocus()||this.root.focus();var qa=(this.getNativeRange()||{}).native;if(null==qa||la||aa!==qa.startContainer||
113
+ ca!==qa.startOffset||ia!==qa.endContainer||ha!==qa.endOffset)"BR"==aa.tagName&&(ca=[].indexOf.call(aa.parentNode.childNodes,aa),aa=aa.parentNode),"BR"==ia.tagName&&(ha=[].indexOf.call(ia.parentNode.childNodes,ia),ia=ia.parentNode),la=document.createRange(),la.setStart(aa,ca),la.setEnd(ia,ha),na.removeAllRanges(),na.addRange(la)}else na.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(aa){var ca=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,ia=
114
+ 2<arguments.length&&void 0!==arguments[2]?arguments[2]:n.default.sources.API;"string"===typeof ca&&(ia=ca,ca=!1);ba.info("setRange",aa);if(null!=aa){var ha=this.rangeToNative(aa);this.setNativeRange.apply(this,z(ha).concat([ca]))}else this.setNativeRange(null);this.update(ia)}},{key:"update",value:function(){var aa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:n.default.sources.USER,ca=this.lastRange,ia=this.getRange();ia=f(ia,2);var ha=ia[1];this.lastRange=ia[0];null!=this.lastRange&&(this.savedRange=
115
+ this.lastRange);if(!(0,h.default)(ca,this.lastRange)){var la;!this.composing&&null!=ha&&ha.native.collapsed&&ha.start.node!==this.cursor.textNode&&this.cursor.restore();ca=[n.default.events.SELECTION_CHANGE,(0,b.default)(this.lastRange),(0,b.default)(ca),aa];(la=this.emitter).emit.apply(la,[n.default.events.EDITOR_CHANGE].concat(ca));if(aa!==n.default.sources.SILENT){var na;(na=this.emitter).emit.apply(na,ca)}}}}]);return ja}();ma.Range=w;ma.default=fa},function(ka,ma,fa){function ea(y,f){if("function"!==
116
+ typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function y(f,e){for(var a=0;a<e.length;a++){var b=e[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,
117
+ b.key,b)}}return function(f,e,a){e&&y(f.prototype,e);a&&y(f,a);return f}}(),x=function b(f,e,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return b(f,e,a)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(a)}};ka=function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var a=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
118
+ return!a||"object"!==typeof a&&"function"!==typeof a?this:a}ea(e,f);z(e,[{key:"insertInto",value:function(a,b){0===a.children.length?x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,a,b):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(fa(0)).default.Embed);ka.blotName="break";ka.tagName="BR";ma.default=ka},function(ka,
119
+ ma,fa){function ea(f){var e=y.find(f);if(null==e)try{e=y.create(f)}catch(a){e=y.create(y.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(b){e.domNode.appendChild(b)}),f.parentNode&&f.parentNode.replaceChild(e.domNode,f),e.attach()}return e}var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return function(e,a){function b(){this.constructor=e}f(e,
120
+ a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});var x=fa(44);ka=fa(30);var y=fa(1);fa=function(f){function e(a){a=f.call(this,a)||this;a.build();return a}z(e,f);e.prototype.appendChild=function(a){this.insertBefore(a)};e.prototype.attach=function(){f.prototype.attach.call(this);this.children.forEach(function(a){a.attach()})};e.prototype.build=function(){var a=this;this.children=new x.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(b){try{var h=
121
+ ea(b);a.insertBefore(h,a.children.head||void 0)}catch(n){if(!(n instanceof y.ParchmentError))throw n;}})};e.prototype.deleteAt=function(a,b){if(0===a&&b===this.length())return this.remove();this.children.forEachAt(a,b,function(h,n,ba){h.deleteAt(n,ba)})};e.prototype.descendant=function(a,b){var h=this.children.find(b);b=h[0];h=h[1];return null==a.blotName&&a(b)||null!=a.blotName&&b instanceof a?[b,h]:b instanceof e?b.descendant(a,h):[null,-1]};e.prototype.descendants=function(a,b,h){void 0===b&&(b=
122
+ 0);void 0===h&&(h=Number.MAX_VALUE);var n=[],ba=h;this.children.forEachAt(b,h,function(w,da,ja){(null==a.blotName&&a(w)||null!=a.blotName&&w instanceof a)&&n.push(w);w instanceof e&&(n=n.concat(w.descendants(a,da,ba)));ba-=ja});return n};e.prototype.detach=function(){this.children.forEach(function(a){a.detach()});f.prototype.detach.call(this)};e.prototype.formatAt=function(a,b,h,n){this.children.forEachAt(a,b,function(ba,w,da){ba.formatAt(w,da,h,n)})};e.prototype.insertAt=function(a,b,h){var n=this.children.find(a);
123
+ a=n[0];n=n[1];a?a.insertAt(n,b,h):(b=null==h?y.create("text",b):y.create(b,h),this.appendChild(b))};e.prototype.insertBefore=function(a,b){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(h){return a instanceof h}))throw new y.ParchmentError("Cannot insert "+a.statics.blotName+" into "+this.statics.blotName);a.insertInto(this,b)};e.prototype.length=function(){return this.children.reduce(function(a,b){return a+b.length()},0)};e.prototype.moveChildren=function(a,b){this.children.forEach(function(h){a.insertBefore(h,
124
+ b)})};e.prototype.optimize=function(a){f.prototype.optimize.call(this,a);if(0===this.children.length)if(null!=this.statics.defaultChild){var b=y.create(this.statics.defaultChild);this.appendChild(b);b.optimize(a)}else this.remove()};e.prototype.path=function(a,b){void 0===b&&(b=!1);var h=this.children.find(a,b),n=h[0];h=h[1];a=[[this,a]];if(n instanceof e)return a.concat(n.path(h,b));null!=n&&a.push([n,h]);return a};e.prototype.removeChild=function(a){this.children.remove(a)};e.prototype.replace=
125
+ function(a){a instanceof e&&a.moveChildren(this);f.prototype.replace.call(this,a)};e.prototype.split=function(a,b){void 0===b&&(b=!1);if(!b){if(0===a)return this;if(a===this.length())return this.next}var h=this.clone();this.parent.insertBefore(h,this.next);this.children.forEachAt(a,this.length(),function(n,ba){n=n.split(ba,b);h.appendChild(n)});return h};e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};e.prototype.update=function(a){var b=this,h=[],n=[];a.forEach(function(ba){ba.target===
126
+ b.domNode&&"childList"===ba.type&&(h.push.apply(h,ba.addedNodes),n.push.apply(n,ba.removedNodes))});n.forEach(function(ba){null!=ba.parentNode&&"IFRAME"!==ba.tagName&&document.body.compareDocumentPosition(ba)&Node.DOCUMENT_POSITION_CONTAINED_BY||(ba=y.find(ba),null!=ba&&(null!=ba.domNode.parentNode&&ba.domNode.parentNode!==b.domNode||ba.detach()))});h.filter(function(ba){return ba.parentNode==b.domNode}).sort(function(ba,w){return ba===w?0:ba.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?
127
+ 1:-1}).forEach(function(ba){var w=null;null!=ba.nextSibling&&(w=y.find(ba.nextSibling));ba=ea(ba);if(ba.next!=w||null==ba.next)null!=ba.parent&&ba.parent.removeChild(b),b.insertBefore(ba,w||void 0)})};return e}(ka.default);ma.default=fa},function(ka,ma,fa){var ea=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return function(e,a){function b(){this.constructor=
128
+ e}f(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});var z=fa(12),x=fa(31);ka=fa(17);var y=fa(1);fa=function(f){function e(a){a=f.call(this,a)||this;a.attributes=new x.default(a.domNode);return a}ea(e,f);e.formats=function(a){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return a.tagName.toLowerCase()};e.prototype.format=function(a,b){var h=y.query(a);h instanceof z.default?this.attributes.attribute(h,
129
+ b):b&&(null==h||a===this.statics.blotName&&this.formats()[a]===b||this.replaceWith(a,b))};e.prototype.formats=function(){var a=this.attributes.values(),b=this.statics.formats(this.domNode);null!=b&&(a[this.statics.blotName]=b);return a};e.prototype.replaceWith=function(a,b){a=f.prototype.replaceWith.call(this,a,b);this.attributes.copy(a);return a};e.prototype.update=function(a,b){var h=this;f.prototype.update.call(this,a,b);a.some(function(n){return n.target===h.domNode&&"attributes"===n.type})&&
130
+ this.attributes.build()};e.prototype.wrap=function(a,b){a=f.prototype.wrap.call(this,a,b);a instanceof e&&a.statics.scope===this.statics.scope&&this.attributes.move(a);return a};return e}(ka.default);ma.default=fa},function(ka,ma,fa){var ea=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===
131
+ f?Object.create(f):(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(30);var z=fa(1);fa=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}ea(y,x);y.value=function(){return!0};y.prototype.index=function(f,e){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1};y.prototype.position=function(f){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<f&&(e+=1);
132
+ return[this.parent.domNode,e]};y.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f};y.scope=z.Scope.INLINE_BLOT;return y}(ka.default);ma.default=fa},function(ka,ma,fa){function ea(f){this.ops=f;this.offset=this.index=0}var z=fa(11),x=fa(3),y={attributes:{compose:function(f,e,a){"object"!==typeof f&&(f={});"object"!==typeof e&&(e={});var b=x(!0,{},e);a||(b=Object.keys(b).reduce(function(n,ba){null!=b[ba]&&(n[ba]=b[ba]);return n},{}));for(var h in f)void 0!==
133
+ f[h]&&void 0===e[h]&&(b[h]=f[h]);return 0<Object.keys(b).length?b:void 0},diff:function(f,e){"object"!==typeof f&&(f={});"object"!==typeof e&&(e={});var a=Object.keys(f).concat(Object.keys(e)).reduce(function(b,h){z(f[h],e[h])||(b[h]=void 0===e[h]?null:e[h]);return b},{});return 0<Object.keys(a).length?a:void 0},transform:function(f,e,a){if("object"!==typeof f)return e;if("object"===typeof e){if(!a)return e;a=Object.keys(e).reduce(function(b,h){void 0===f[h]&&(b[h]=e[h]);return b},{});return 0<Object.keys(a).length?
134
+ a:void 0}}},iterator:function(f){return new ea(f)},length:function(f){return"number"===typeof f["delete"]?f["delete"]:"number"===typeof f.retain?f.retain:"string"===typeof f.insert?f.insert.length:1}};ea.prototype.hasNext=function(){return Infinity>this.peekLength()};ea.prototype.next=function(f){f||(f=Infinity);var e=this.ops[this.index];if(e){var a=this.offset,b=y.length(e);f>=b-a?(f=b-a,this.index+=1,this.offset=0):this.offset+=f;if("number"===typeof e["delete"])return{"delete":f};b={};e.attributes&&
135
+ (b.attributes=e.attributes);"number"===typeof e.retain?b.retain=f:b.insert="string"===typeof e.insert?e.insert.substr(a,f):e.insert;return b}return{retain:Infinity}};ea.prototype.peek=function(){return this.ops[this.index]};ea.prototype.peekLength=function(){return this.ops[this.index]?y.length(this.ops[this.index])-this.offset:Infinity};ea.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"};
136
+ ea.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var f=this.offset,e=this.index,a=this.next(),b=this.ops.slice(this.index);this.offset=f;this.index=e;return[a].concat(b)}return[]};ka.exports=y},function(ka){var ma=function(){function fa(a,b){return null!=b&&a instanceof b}function ea(a,b,h,n,ba){function w(ca,ia){if(null===ca)return null;if(0===ia||"object"!=typeof ca)return ca;if(fa(ca,y))var ha=new y;else if(fa(ca,f))ha=new f;else if(fa(ca,e))ha=
137
+ new e(function(ta,va){ca.then(function(oa){ta(w(oa,ia-1))},function(oa){va(w(oa,ia-1))})});else if(ea.__isArray(ca))ha=[];else if(ea.__isRegExp(ca))ha=new RegExp(ca.source,x(ca)),ca.lastIndex&&(ha.lastIndex=ca.lastIndex);else if(ea.__isDate(ca))ha=new Date(ca.getTime());else{if(aa&&pa.isBuffer(ca))return ha=pa.allocUnsafe?pa.allocUnsafe(ca.length):new pa(ca.length),ca.copy(ha),ha;if(fa(ca,Error))ha=Object.create(ca);else if("undefined"==typeof n){var la=Object.getPrototypeOf(ca);ha=Object.create(la)}else ha=
138
+ Object.create(n),la=n}if(b){var na=da.indexOf(ca);if(-1!=na)return ja[na];da.push(ca);ja.push(ha)}fa(ca,y)&&ca.forEach(function(ta,va){va=w(va,ia-1);ta=w(ta,ia-1);ha.set(va,ta)});fa(ca,f)&&ca.forEach(function(ta){ta=w(ta,ia-1);ha.add(ta)});for(var qa in ca){var ra;la&&(ra=Object.getOwnPropertyDescriptor(la,qa));ra&&null==ra.set||(ha[qa]=w(ca[qa],ia-1))}if(Object.getOwnPropertySymbols)for(na=Object.getOwnPropertySymbols(ca),qa=0;qa<na.length;qa++)if(ra=na[qa],la=Object.getOwnPropertyDescriptor(ca,
139
+ ra),!la||la.enumerable||ba)ha[ra]=w(ca[ra],ia-1),la.enumerable||Object.defineProperty(ha,ra,{enumerable:!1});if(ba)for(na=Object.getOwnPropertyNames(ca),qa=0;qa<na.length;qa++)ra=na[qa],la=Object.getOwnPropertyDescriptor(ca,ra),la&&la.enumerable||(ha[ra]=w(ca[ra],ia-1),Object.defineProperty(ha,ra,{enumerable:!1}));return ha}"object"===typeof b&&(h=b.depth,n=b.prototype,ba=b.includeNonEnumerable,b=b.circular);var da=[],ja=[],aa="undefined"!=typeof pa;"undefined"==typeof b&&(b=!0);"undefined"==typeof h&&
140
+ (h=Infinity);return w(a,h)}function z(a){return Object.prototype.toString.call(a)}function x(a){var b="";a.global&&(b+="g");a.ignoreCase&&(b+="i");a.multiline&&(b+="m");return b}try{var y=Map}catch(a){y=function(){}}try{var f=Set}catch(a){f=function(){}}try{var e=Promise}catch(a){e=function(){}}ea.clonePrototype=function(a){function b(){}if(null===a)return null;b.prototype=a;return new b};ea.__objToStr=z;ea.__isDate=function(a){return"object"===typeof a&&"[object Date]"===z(a)};ea.__isArray=function(a){return"object"===
141
+ typeof a&&"[object Array]"===z(a)};ea.__isRegExp=function(a){return"object"===typeof a&&"[object RegExp]"===z(a)};ea.__getRegExpFlags=x;return ea}();"object"===typeof ka&&ka.exports&&(ka.exports=ma)},function(ka,ma,fa){function ea(ja){return ja&&ja.__esModule?ja:{default:ja}}function z(ja,aa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?ja:aa}function x(ja,aa){if("function"!==typeof aa&&null!==
142
+ aa)throw new TypeError("Super expression must either be null or a function, not "+typeof aa);ja.prototype=Object.create(aa&&aa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,aa):ja.__proto__=aa)}function y(ja){return ja instanceof ba.default||ja instanceof n.BlockEmbed}Object.defineProperty(ma,"__esModule",{value:!0});var f=function(){return function(ja,aa){if(Array.isArray(ja))return ja;if(Symbol.iterator in Object(ja)){var ca=
143
+ [],ia=!0,ha=!1,la=void 0;try{for(var na=ja[Symbol.iterator](),qa;!(ia=(qa=na.next()).done)&&(ca.push(qa.value),!aa||ca.length!==aa);ia=!0);}catch(ra){ha=!0,la=ra}finally{try{if(!ia&&na["return"])na["return"]()}finally{if(ha)throw la;}}return ca}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function ja(aa,ca){for(var ia=0;ia<ca.length;ia++){var ha=ca[ia];ha.enumerable=ha.enumerable||!1;ha.configurable=!0;"value"in ha&&(ha.writable=!0);Object.defineProperty(aa,
144
+ ha.key,ha)}}return function(aa,ca,ia){ca&&ja(aa.prototype,ca);ia&&ja(aa,ia);return aa}}(),a=function ha(aa,ca,ia){null===aa&&(aa=Function.prototype);var la=Object.getOwnPropertyDescriptor(aa,ca);if(void 0===la){if(aa=Object.getPrototypeOf(aa),null!==aa)return ha(aa,ca,ia)}else{if("value"in la)return la.value;ca=la.get;return void 0===ca?void 0:ca.call(ia)}};ka=fa(0);var b=ea(ka);ka=fa(8);var h=ea(ka),n=fa(4),ba=ea(n);ka=fa(16);var w=ea(ka);ka=fa(13);var da=ea(ka);fa=fa(25);fa=ea(fa);ka=function(aa){function ca(ia,
145
+ ha){if(!(this instanceof ca))throw new TypeError("Cannot call a class as a function");ia=z(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,ia));ia.emitter=ha.emitter;Array.isArray(ha.whitelist)&&(ia.whitelist=ha.whitelist.reduce(function(la,na){la[na]=!0;return la},{}));ia.domNode.addEventListener("DOMNodeInserted",function(){});ia.optimize();ia.enable();return ia}x(ca,aa);e(ca,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},
146
+ {key:"deleteAt",value:function(ia,ha){var la=this.line(ia),na=f(la,2);la=na[0];var qa=na[1];na=this.line(ia+ha);na=f(na,1)[0];a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"deleteAt",this).call(this,ia,ha);if(null!=na&&la!==na&&0<qa){if(la instanceof n.BlockEmbed||na instanceof n.BlockEmbed){this.optimize();return}if(la instanceof da.default){if(ia=la.newlineIndex(la.length(),!0),-1<ia&&(la=la.split(ia+1),la===na)){this.optimize();return}}else na instanceof da.default&&(ia=na.newlineIndex(0),
147
+ -1<ia&&na.split(ia+1));la.moveChildren(na,na.children.head instanceof w.default?null:na.children.head);la.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0)}},{key:"formatAt",value:function(ia,ha,la,na){if(null==this.whitelist||this.whitelist[la])a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"formatAt",this).call(this,ia,ha,la,na),this.optimize()}},{key:"insertAt",value:function(ia,
148
+ ha,la){if(null==la||null==this.whitelist||this.whitelist[ha])ia>=this.length()?null==la||null==b.default.query(ha,b.default.Scope.BLOCK)?(ia=b.default.create(this.statics.defaultChild),this.appendChild(ia),null==la&&ha.endsWith("\n")&&(ha=ha.slice(0,-1)),ia.insertAt(0,ha,la)):(ha=b.default.create(ha,la),this.appendChild(ha)):a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertAt",this).call(this,ia,ha,la),this.optimize()}},{key:"insertBefore",value:function(ia,ha){if(ia.statics.scope===
149
+ b.default.Scope.INLINE_BLOT){var la=b.default.create(this.statics.defaultChild);la.appendChild(ia);ia=la}a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertBefore",this).call(this,ia,ha)}},{key:"leaf",value:function(ia){return this.path(ia).pop()||[null,-1]}},{key:"line",value:function(ia){return ia===this.length()?this.line(ia-1):this.descendant(y,ia)}},{key:"lines",value:function(){return function qa(ha,la,na){var ra=[],ta=na;ha.children.forEachAt(la,na,function(va,oa,wa){y(va)?
150
+ ra.push(va):va instanceof b.default.Container&&(ra=ra.concat(qa(va,oa,ta)));ta-=wa});return ra}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var ia=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"optimize",this).call(this,ia,
151
+ ha),0<ia.length&&this.emitter.emit(h.default.events.SCROLL_OPTIMIZE,ia,ha))}},{key:"path",value:function(ia){return a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"path",this).call(this,ia).slice(1)}},{key:"update",value:function(ia){if(!0!==this.batch){var ha=h.default.sources.USER;"string"===typeof ia&&(ha=ia);Array.isArray(ia)||(ia=this.observer.takeRecords());0<ia.length&&this.emitter.emit(h.default.events.SCROLL_BEFORE_UPDATE,ha,ia);a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),
152
+ "update",this).call(this,ia.concat([]));0<ia.length&&this.emitter.emit(h.default.events.SCROLL_UPDATE,ha,ia)}}}]);return ca}(b.default.Scroll);ka.blotName="scroll";ka.className="ql-editor";ka.tagName="DIV";ka.defaultChild="block";ka.allowedChildren=[ba.default,n.BlockEmbed,fa.default];ma.default=ka},function(ka,ma,fa){function ea(wa){return wa&&wa.__esModule?wa:{default:wa}}function z(wa,Da,Ha){Da in wa?Object.defineProperty(wa,Da,{value:Ha,enumerable:!0,configurable:!0,writable:!0}):wa[Da]=Ha;return wa}
153
+ function x(wa,Da){if(!wa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Da||"object"!==typeof Da&&"function"!==typeof Da?wa:Da}function y(wa,Da){if("function"!==typeof Da&&null!==Da)throw new TypeError("Super expression must either be null or a function, not "+typeof Da);wa.prototype=Object.create(Da&&Da.prototype,{constructor:{value:wa,enumerable:!1,writable:!0,configurable:!0}});Da&&(Object.setPrototypeOf?Object.setPrototypeOf(wa,Da):wa.__proto__=Da)}
154
+ function f(wa,Da){var Ha,La=wa===oa.keys.LEFT?"prefix":"suffix";return Ha={key:wa,shiftKey:Da,altKey:null},z(Ha,La,/^$/),z(Ha,"handler",function(Ca){var Ka=Ca.index;wa===oa.keys.RIGHT&&(Ka+=Ca.length+1);Ka=this.quill.getLeaf(Ka);if(!(ja(Ka,1)[0]instanceof qa.default.Embed))return!0;wa===oa.keys.LEFT?Da?this.quill.setSelection(Ca.index-1,Ca.length+1,ra.default.sources.USER):this.quill.setSelection(Ca.index-1,ra.default.sources.USER):Da?this.quill.setSelection(Ca.index,Ca.length+1,ra.default.sources.USER):
155
+ this.quill.setSelection(Ca.index+Ca.length+1,ra.default.sources.USER);return!1}),Ha}function e(wa,Da){if(!(0===wa.index||1>=this.quill.getLength())){var Ha=this.quill.getLine(wa.index),La=ja(Ha,1)[0];Ha={};if(0===Da.offset){var Ca=this.quill.getLine(wa.index-1);Ca=ja(Ca,1)[0];null!=Ca&&1<Ca.length()&&(Ha=La.formats(),La=this.quill.getFormat(wa.index-1,1),Ha=na.default.attributes.diff(Ha,La)||{})}Da=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Da.prefix)?2:1;this.quill.deleteText(wa.index-Da,Da,ra.default.sources.USER);
156
+ 0<Object.keys(Ha).length&&this.quill.formatLine(wa.index-Da,Da,Ha,ra.default.sources.USER);this.quill.focus()}}function a(wa,Da){var Ha=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Da.suffix)?2:1;if(!(wa.index>=this.quill.getLength()-Ha)){var La={},Ca=0,Ka=this.quill.getLine(wa.index);Ka=ja(Ka,1)[0];Da.offset>=Ka.length()-1&&(Da=this.quill.getLine(wa.index+1),Da=ja(Da,1)[0])&&(La=Ka.formats(),Ca=this.quill.getFormat(wa.index,1),La=na.default.attributes.diff(La,Ca)||{},Ca=Da.length());this.quill.deleteText(wa.index,
157
+ Ha,ra.default.sources.USER);0<Object.keys(La).length&&this.quill.formatLine(wa.index+Ca-1,Ha,La,ra.default.sources.USER)}}function b(wa){var Da=this.quill.getLines(wa),Ha={};1<Da.length&&(Ha=Da[0].formats(),Da=Da[Da.length-1].formats(),Ha=na.default.attributes.diff(Da,Ha)||{});this.quill.deleteText(wa,ra.default.sources.USER);0<Object.keys(Ha).length&&this.quill.formatLine(wa.index,1,Ha,ra.default.sources.USER);this.quill.setSelection(wa.index,ra.default.sources.SILENT);this.quill.focus()}function h(wa,
158
+ Da){var Ha=this;0<wa.length&&this.quill.scroll.deleteAt(wa.index,wa.length);var La=Object.keys(Da.format).reduce(function(Ca,Ka){qa.default.query(Ka,qa.default.Scope.BLOCK)&&!Array.isArray(Da.format[Ka])&&(Ca[Ka]=Da.format[Ka]);return Ca},{});this.quill.insertText(wa.index,"\n",La,ra.default.sources.USER);this.quill.setSelection(wa.index+1,ra.default.sources.SILENT);this.quill.focus();Object.keys(Da.format).forEach(function(Ca){null==La[Ca]&&(Array.isArray(Da.format[Ca])||"link"!==Ca&&Ha.quill.format(Ca,
159
+ Da.format[Ca],ra.default.sources.USER))})}function n(wa){return{key:oa.keys.TAB,shiftKey:!wa,format:{"code-block":!0},handler:function(Da){var Ha=qa.default.query("code-block"),La=Da.index,Ca=Da.length;Da=this.quill.scroll.descendant(Ha,La);Da=ja(Da,2);var Ka=Da[0],Ra=Da[1];if(null!=Ka){Da=this.quill.getIndex(Ka);var Ma=Ka.newlineIndex(Ra,!0)+1;Da=Ka.newlineIndex(Da+Ra+Ca);Da=Ka.domNode.textContent.slice(Ma,Da).split("\n");Ra=0;Da.forEach(function(Aa,Ja){wa?(Ka.insertAt(Ma+Ra,Ha.TAB),Ra+=Ha.TAB.length,
160
+ 0===Ja?La+=Ha.TAB.length:Ca+=Ha.TAB.length):Aa.startsWith(Ha.TAB)&&(Ka.deleteAt(Ma+Ra,Ha.TAB.length),Ra-=Ha.TAB.length,0===Ja?La-=Ha.TAB.length:Ca-=Ha.TAB.length);Ra+=Aa.length+1});this.quill.update(ra.default.sources.USER);this.quill.setSelection(La,Ca,ra.default.sources.SILENT)}}}}function ba(wa){return{key:wa[0].toUpperCase(),shortKey:!0,handler:function(Da,Ha){this.quill.format(wa,!Ha.format[wa],ra.default.sources.USER)}}}function w(wa){if("string"===typeof wa||"number"===typeof wa)return w({key:wa});
161
+ "object"===("undefined"===typeof wa?"undefined":da(wa))&&(wa=(0,ca.default)(wa,!1));if("string"===typeof wa.key)if(null!=oa.keys[wa.key.toUpperCase()])wa.key=oa.keys[wa.key.toUpperCase()];else if(1===wa.key.length)wa.key=wa.key.toUpperCase().charCodeAt(0);else return null;wa.shortKey&&(wa[va]=wa.shortKey,delete wa.shortKey);return wa}Object.defineProperty(ma,"__esModule",{value:!0});ma.SHORTKEY=ma.default=void 0;var da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(wa){return typeof wa}:
162
+ function(wa){return wa&&"function"===typeof Symbol&&wa.constructor===Symbol&&wa!==Symbol.prototype?"symbol":typeof wa},ja=function(){return function(wa,Da){if(Array.isArray(wa))return wa;if(Symbol.iterator in Object(wa)){var Ha=[],La=!0,Ca=!1,Ka=void 0;try{for(var Ra=wa[Symbol.iterator](),Ma;!(La=(Ma=Ra.next()).done)&&(Ha.push(Ma.value),!Da||Ha.length!==Da);La=!0);}catch(Aa){Ca=!0,Ka=Aa}finally{try{if(!La&&Ra["return"])Ra["return"]()}finally{if(Ca)throw Ka;}}return Ha}throw new TypeError("Invalid attempt to destructure non-iterable instance");
163
+ }}(),aa=function(){function wa(Da,Ha){for(var La=0;La<Ha.length;La++){var Ca=Ha[La];Ca.enumerable=Ca.enumerable||!1;Ca.configurable=!0;"value"in Ca&&(Ca.writable=!0);Object.defineProperty(Da,Ca.key,Ca)}}return function(Da,Ha,La){Ha&&wa(Da.prototype,Ha);La&&wa(Da,La);return Da}}();ka=fa(21);var ca=ea(ka);ka=fa(11);var ia=ea(ka);ka=fa(3);var ha=ea(ka);ka=fa(2);var la=ea(ka);ka=fa(20);var na=ea(ka);ka=fa(0);var qa=ea(ka);ka=fa(5);var ra=ea(ka);ka=fa(10);ka=ea(ka);fa=fa(9);fa=ea(fa);var ta=(0,ka.default)("quill:keyboard"),
164
+ va=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",oa=function(wa){function Da(Ha,La){if(!(this instanceof Da))throw new TypeError("Cannot call a class as a function");var Ca=x(this,(Da.__proto__||Object.getPrototypeOf(Da)).call(this,Ha,La));Ca.bindings={};Object.keys(Ca.options.bindings).forEach(function(Ka){("list autofill"!==Ka||null==Ha.scroll.whitelist||Ha.scroll.whitelist.list)&&Ca.options.bindings[Ka]&&Ca.addBinding(Ca.options.bindings[Ka])});Ca.addBinding({key:Da.keys.ENTER,shiftKey:null},
165
+ h);Ca.addBinding({key:Da.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(Ca.addBinding({key:Da.keys.BACKSPACE},{collapsed:!0},e),Ca.addBinding({key:Da.keys.DELETE},{collapsed:!0},a)):(Ca.addBinding({key:Da.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},e),Ca.addBinding({key:Da.keys.DELETE},{collapsed:!0,suffix:/^.?$/},a));Ca.addBinding({key:Da.keys.BACKSPACE},{collapsed:!1},b);Ca.addBinding({key:Da.keys.DELETE},{collapsed:!1},b);Ca.addBinding({key:Da.keys.BACKSPACE,
166
+ altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},e);Ca.listen();return Ca}y(Da,wa);aa(Da,null,[{key:"match",value:function(Ha,La){La=w(La);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ca){return!!La[Ca]!==Ha[Ca]&&null!==La[Ca]})?!1:La.key===(Ha.which||Ha.keyCode)}}]);aa(Da,[{key:"addBinding",value:function(Ha){var La=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},Ca=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},Ka=w(Ha);if(null==
167
+ Ka||null==Ka.key)return ta.warn("Attempted to add invalid keyboard binding",Ka);"function"===typeof La&&(La={handler:La});"function"===typeof Ca&&(Ca={handler:Ca});Ka=(0,ha.default)(Ka,La,Ca);this.bindings[Ka.key]=this.bindings[Ka.key]||[];this.bindings[Ka.key].push(Ka)}},{key:"listen",value:function(){var Ha=this;this.quill.root.addEventListener("keydown",function(La){if(!La.defaultPrevented){var Ca=(Ha.bindings[La.which||La.keyCode]||[]).filter(function(Qa){return Da.match(La,Qa)});if(0!==Ca.length){var Ka=
168
+ Ha.quill.getSelection();if(null!=Ka&&Ha.quill.hasFocus()){var Ra=Ha.quill.getLine(Ka.index),Ma=ja(Ra,2);Ra=Ma[0];Ma=Ma[1];var Aa=Ha.quill.getLeaf(Ka.index),Ja=ja(Aa,2);Aa=Ja[0];Ja=Ja[1];var Ia=0===Ka.length?[Aa,Ja]:Ha.quill.getLeaf(Ka.index+Ka.length),Pa=ja(Ia,2);Ia=Pa[0];Pa=Pa[1];Aa=Aa instanceof qa.default.Text?Aa.value().slice(0,Ja):"";Ja=Ia instanceof qa.default.Text?Ia.value().slice(Pa):"";var Wa={collapsed:0===Ka.length,empty:0===Ka.length&&1>=Ra.length(),format:Ha.quill.getFormat(Ka),offset:Ma,
169
+ prefix:Aa,suffix:Ja};Ca.some(function(Qa){if(null!=Qa.collapsed&&Qa.collapsed!==Wa.collapsed||null!=Qa.empty&&Qa.empty!==Wa.empty||null!=Qa.offset&&Qa.offset!==Wa.offset)return!1;if(Array.isArray(Qa.format)){if(Qa.format.every(function(Fa){return null==Wa.format[Fa]}))return!1}else if("object"===da(Qa.format)&&!Object.keys(Qa.format).every(function(Fa){return!0===Qa.format[Fa]?null!=Wa.format[Fa]:!1===Qa.format[Fa]?null==Wa.format[Fa]:(0,ia.default)(Qa.format[Fa],Wa.format[Fa])}))return!1;return null!=
170
+ Qa.prefix&&!Qa.prefix.test(Wa.prefix)||null!=Qa.suffix&&!Qa.suffix.test(Wa.suffix)?!1:!0!==Qa.handler.call(Ha,Ka,Wa)})&&La.preventDefault()}}}})}}]);return Da}(fa.default);oa.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};oa.DEFAULTS={bindings:{bold:ba("bold"),italic:ba("italic"),underline:ba("underline"),indent:{key:oa.keys.TAB,format:["blockquote","indent","list"],handler:function(wa,Da){if(Da.collapsed&&0!==Da.offset)return!0;this.quill.format("indent","+1",
171
+ ra.default.sources.USER)}},outdent:{key:oa.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(wa,Da){if(Da.collapsed&&0!==Da.offset)return!0;this.quill.format("indent","-1",ra.default.sources.USER)}},"outdent backspace":{key:oa.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(wa,Da){null!=Da.format.indent?this.quill.format("indent","-1",ra.default.sources.USER):null!=Da.format.list&&this.quill.format("list",
172
+ !1,ra.default.sources.USER)}},"indent code-block":n(!0),"outdent code-block":n(!1),"remove tab":{key:oa.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(wa){this.quill.deleteText(wa.index-1,1,ra.default.sources.USER)}},tab:{key:oa.keys.TAB,handler:function(wa){this.quill.history.cutoff();var Da=(new la.default).retain(wa.index).delete(wa.length).insert("\t");this.quill.updateContents(Da,ra.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index+1,ra.default.sources.SILENT)}},
173
+ "list empty enter":{key:oa.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(wa,Da){this.quill.format("list",!1,ra.default.sources.USER);Da.format.indent&&this.quill.format("indent",!1,ra.default.sources.USER)}},"checklist enter":{key:oa.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(wa){var Da=this.quill.getLine(wa.index),Ha=ja(Da,2);Da=Ha[0];Ha=Ha[1];var La=(0,ha.default)({},Da.formats(),{list:"checked"});Da=(new la.default).retain(wa.index).insert("\n",La).retain(Da.length()-
174
+ Ha-1).retain(1,{list:"unchecked"});this.quill.updateContents(Da,ra.default.sources.USER);this.quill.setSelection(wa.index+1,ra.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:oa.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(wa,Da){var Ha=this.quill.getLine(wa.index),La=ja(Ha,2);Ha=La[0];La=La[1];Da=(new la.default).retain(wa.index).insert("\n",Da.format).retain(Ha.length()-La-1).retain(1,{header:null});this.quill.updateContents(Da,ra.default.sources.USER);
175
+ this.quill.setSelection(wa.index+1,ra.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(wa,Da){var Ha=Da.prefix.length,La=this.quill.getLine(wa.index),Ca=ja(La,2);La=Ca[0];Ca=Ca[1];if(Ca>Ha)return!0;switch(Da.prefix.trim()){case "[]":case "[ ]":Da="unchecked";break;case "[x]":Da="checked";break;case "-":case "*":Da="bullet";break;default:Da="ordered"}this.quill.insertText(wa.index,
176
+ " ",ra.default.sources.USER);this.quill.history.cutoff();Da=(new la.default).retain(wa.index-Ca).delete(Ha+1).retain(La.length()-2-Ca).retain(1,{list:Da});this.quill.updateContents(Da,ra.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index-Ha,ra.default.sources.SILENT)}},"code exit":{key:oa.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(wa){var Da=this.quill.getLine(wa.index),Ha=ja(Da,2);Da=Ha[0];Ha=Ha[1];wa=(new la.default).retain(wa.index+
177
+ Da.length()-Ha-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(wa,ra.default.sources.USER)}},"embed left":f(oa.keys.LEFT,!1),"embed left shift":f(oa.keys.LEFT,!0),"embed right":f(oa.keys.RIGHT,!1),"embed right shift":f(oa.keys.RIGHT,!0)}};ma.default=oa;ma.SHORTKEY=va},function(ka,ma,fa){function ea(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,
178
+ enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){return function(a,b){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var h=[],n=!0,ba=!1,w=void 0;try{for(var da=a[Symbol.iterator](),ja;!(n=(ja=da.next()).done)&&(h.push(ja.value),!b||h.length!==b);n=!0);}catch(aa){ba=!0,w=aa}finally{try{if(!n&&da["return"])da["return"]()}finally{if(ba)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");
179
+ }}(),x=function ba(b,h,n){null===b&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,h);if(void 0===w){if(b=Object.getPrototypeOf(b),null!==b)return ba(b,h,n)}else{if("value"in w)return w.value;h=w.get;return void 0===h?void 0:h.call(n)}},y=function(){function b(h,n){for(var ba=0;ba<n.length;ba++){var w=n[ba];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(h,w.key,w)}}return function(h,n,ba){n&&b(h.prototype,n);ba&&b(h,ba);return h}}(),
180
+ f=(ka=fa(0))&&ka.__esModule?ka:{default:ka},e=(fa=fa(7))&&fa.__esModule?fa:{default:fa};fa=function(b){function h(n,ba){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");n=(h.__proto__||Object.getPrototypeOf(h)).call(this,n);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");n=!n||"object"!==typeof n&&"function"!==typeof n?this:n;n.selection=ba;n.textNode=document.createTextNode(h.CONTENTS);n.domNode.appendChild(n.textNode);
181
+ n._length=0;return n}ea(h,b);y(h,null,[{key:"value",value:function(){}}]);y(h,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(n,ba){if(0!==this._length)return x(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,n,ba);for(var w=this,da=0;null!=w&&w.statics.scope!==f.default.Scope.BLOCK_BLOT;)da+=w.offset(w.parent),w=w.parent;null!=w&&(this._length=h.CONTENTS.length,w.optimize(),w.formatAt(da,h.CONTENTS.length,
182
+ n,ba),this._length=0)}},{key:"index",value:function(n,ba){return n===this.textNode?0:x(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"index",this).call(this,n,ba)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){x(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&
183
+ null!=this.parent){var n=this.textNode,ba=this.selection.getNativeRange(),w=void 0,da=void 0,ja=void 0;null!=ba&&ba.start.node===n&&ba.end.node===n&&(ja=[n,ba.start.offset,ba.end.offset],w=ja[0],da=ja[1],ja=ja[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==h.CONTENTS&&(n=this.textNode.data.split(h.CONTENTS).join(""),this.next instanceof e.default?(w=this.next.domNode,this.next.insertAt(0,
184
+ n),this.textNode.data=h.CONTENTS):(this.textNode.data=n,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(h.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=da)return da=[da,ja].map(function(aa){return Math.max(0,Math.min(w.data.length,aa-1))}),ja=z(da,2),da=ja[0],ja=ja[1],{startNode:w,startOffset:da,endNode:w,endOffset:ja}}}},{key:"update",value:function(n,ba){var w=this;n.some(function(da){return"characterData"===da.type&&
185
+ da.target===w.textNode})&&(n=this.restore())&&(ba.range=n)}},{key:"value",value:function(){return""}}]);return h}(f.default.Embed);fa.blotName="cursor";fa.className="ql-cursor";fa.tagName="span";fa.CONTENTS="\ufeff";ma.default=fa},function(ka,ma,fa){function ea(x,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});y&&
186
+ (Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}Object.defineProperty(ma,"__esModule",{value:!0});ka=(ka=fa(0))&&ka.__esModule?ka:{default:ka};var z=(fa=fa(4))&&fa.__esModule?fa:{default:fa};ka=function(x){function y(){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");var f=(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==
187
+ typeof f&&"function"!==typeof f?this:f}ea(y,x);return y}(ka.default.Container);ka.allowedChildren=[z.default,fa.BlockEmbed,ka];ma.default=ka},function(ka,ma,fa){function ea(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,
188
+ "__esModule",{value:!0});ma.ColorStyle=ma.ColorClass=ma.ColorAttributor=void 0;var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),x=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in
189
+ n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}},y=function(e){return e&&e.__esModule?e:{default:e}}(fa(0));ka=function(e){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?this:b}ea(a,e);z(a,[{key:"value",value:function(b){b=x(a.prototype.__proto__||
190
+ Object.getPrototypeOf(a.prototype),"value",this).call(this,b);if(!b.startsWith("rgb("))return b;b=b.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+b.split(",").map(function(h){return("00"+parseInt(h).toString(16)).slice(-2)}).join("")}}]);return a}(y.default.Attributor.Style);fa=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE});y=new ka("color","color",{scope:y.default.Scope.INLINE});ma.ColorAttributor=ka;ma.ColorClass=fa;ma.ColorStyle=y},function(ka,ma,fa){function ea(f,
191
+ e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function z(f,e){var a=document.createElement("a");a.href=f;f=a.href.slice(0,a.href.indexOf(":"));return-1<e.indexOf(f)}Object.defineProperty(ma,"__esModule",{value:!0});ma.sanitize=ma.default=void 0;
192
+ var x=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),y=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};ka=function(e){function a(){if(!(this instanceof
193
+ a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?this:b}ea(a,e);x(a,[{key:"format",value:function(b,h){if(b!==this.statics.blotName||!h)return y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,b,h);h=this.constructor.sanitize(h);this.domNode.setAttribute("href",
194
+ h)}}],[{key:"create",value:function(b){var h=y(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,b);b=this.sanitize(b);h.setAttribute("href",b);h.setAttribute("rel","noopener noreferrer");h.setAttribute("target","_blank");return h}},{key:"formats",value:function(b){return b.getAttribute("href")}},{key:"sanitize",value:function(b){return z(b,this.PROTOCOL_WHITELIST)?b:this.SANITIZED_URL}}]);return a}(function(e){return e&&e.__esModule?e:{default:e}}(fa(6)).default);ka.blotName="link";
195
+ ka.tagName="A";ka.SANITIZED_URL="about:blank";ka.PROTOCOL_WHITELIST=["http","https","mailto","tel"];ma.default=ka;ma.sanitize=z},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});var ea="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=function(){function e(a,b){for(var h=0;h<b.length;h++){var n=b[h];n.enumerable=n.enumerable||
196
+ !1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,h){b&&e(a.prototype,b);h&&e(a,h);return a}}(),x=(ka=fa(23))&&ka.__esModule?ka:{default:ka},y=(fa=fa(107))&&fa.__esModule?fa:{default:fa},f=0;fa=function(){function e(a){var b=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.select=a;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,
197
+ this.select);this.label.addEventListener("mousedown",function(){b.togglePicker()});this.label.addEventListener("keydown",function(h){switch(h.keyCode){case x.default.keys.ENTER:b.togglePicker();break;case x.default.keys.ESCAPE:b.escape(),h.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}z(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var a=this.label;a.setAttribute("aria-expanded","true"!==a.getAttribute("aria-expanded"));
198
+ a=this.options;a.setAttribute("aria-hidden","true"!==a.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(a){var b=this,h=document.createElement("span");h.tabIndex="0";h.setAttribute("role","button");h.classList.add("ql-picker-item");a.hasAttribute("value")&&h.setAttribute("data-value",a.getAttribute("value"));a.textContent&&h.setAttribute("data-label",a.textContent);h.addEventListener("click",function(){b.selectItem(h,!0)});h.addEventListener("keydown",function(n){switch(n.keyCode){case x.default.keys.ENTER:b.selectItem(h,
199
+ !0);n.preventDefault();break;case x.default.keys.ESCAPE:b.escape(),n.preventDefault()}});return h}},{key:"buildLabel",value:function(){var a=document.createElement("span");a.classList.add("ql-picker-label");a.innerHTML=y.default;a.tabIndex="0";a.setAttribute("role","button");a.setAttribute("aria-expanded","false");this.container.appendChild(a);return a}},{key:"buildOptions",value:function(){var a=this,b=document.createElement("span");b.classList.add("ql-picker-options");b.setAttribute("aria-hidden",
200
+ "true");b.tabIndex="-1";b.id="ql-picker-options-"+f;f+=1;this.label.setAttribute("aria-controls",b.id);this.options=b;[].slice.call(this.select.options).forEach(function(h){var n=a.buildItem(h);b.appendChild(n);!0===h.selected&&a.selectItem(n)});this.container.appendChild(b)}},{key:"buildPicker",value:function(){var a=this;[].slice.call(this.select.attributes).forEach(function(b){a.container.setAttribute(b.name,b.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},
201
+ {key:"escape",value:function(){var a=this;this.close();setTimeout(function(){return a.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded");this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,h=this.container.querySelector(".ql-selected");a!==h&&(null!=h&&h.classList.remove("ql-selected"),null!=a&&(a.classList.add("ql-selected"),
202
+ this.select.selectedIndex=[].indexOf.call(a.parentNode.children,a),a.hasAttribute("data-value")?this.label.setAttribute("data-value",a.getAttribute("data-value")):this.label.removeAttribute("data-value"),a.hasAttribute("data-label")?this.label.setAttribute("data-label",a.getAttribute("data-label")):this.label.removeAttribute("data-label"),b&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":ea(Event))&&(b=document.createEvent("Event"),
203
+ b.initEvent("change",!0,!0),this.select.dispatchEvent(b)),this.close())))}},{key:"update",value:function(){var a=void 0;if(-1<this.select.selectedIndex){var b=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];a=this.select.options[this.select.selectedIndex];this.selectItem(b)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=a&&a!==this.select.querySelector("option[selected]"))}}]);return e}();ma.default=fa},function(ka,ma,fa){function ea(ja){return ja&&
204
+ ja.__esModule?ja:{default:ja}}Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(0);ka=ea(ka);var z=fa(5);z=ea(z);var x=fa(4),y=ea(x),f=fa(16);f=ea(f);var e=fa(25);e=ea(e);var a=fa(24);a=ea(a);var b=fa(35);b=ea(b);var h=fa(6);h=ea(h);var n=fa(22);n=ea(n);var ba=fa(7);ba=ea(ba);var w=fa(55);w=ea(w);var da=fa(42);da=ea(da);fa=fa(23);fa=ea(fa);z.default.register({"blots/block":y.default,"blots/block/embed":x.BlockEmbed,"blots/break":f.default,"blots/container":e.default,"blots/cursor":a.default,
205
+ "blots/embed":b.default,"blots/inline":h.default,"blots/scroll":n.default,"blots/text":ba.default,"modules/clipboard":w.default,"modules/history":da.default,"modules/keyboard":fa.default});ka.default.register(y.default,f.default,a.default,h.default,n.default,ba.default);ma.default=z.default},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});var ea=fa(1);ka=function(){function z(x){this.domNode=x;this.domNode[ea.DATA_KEY]={blot:this}}Object.defineProperty(z.prototype,"statics",{get:function(){return this.constructor},
206
+ enumerable:!0,configurable:!0});z.create=function(x){if(null==this.tagName)throw new ea.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof x&&(x=x.toUpperCase(),parseInt(x).toString()===x&&(x=parseInt(x))),x="number"===typeof x?document.createElement(this.tagName[x-1]):-1<this.tagName.indexOf(x)?document.createElement(x):document.createElement(this.tagName[0])):x=document.createElement(this.tagName);this.className&&x.classList.add(this.className);return x};
207
+ z.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};z.prototype.clone=function(){return ea.create(this.domNode.cloneNode(!1))};z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[ea.DATA_KEY]};z.prototype.deleteAt=function(x,y){this.isolate(x,y).remove()};z.prototype.formatAt=function(x,y,f,e){x=this.isolate(x,y);null!=ea.query(f,ea.Scope.BLOT)&&e?x.wrap(f,e):null!=ea.query(f,ea.Scope.ATTRIBUTE)&&(y=ea.create(this.statics.scope),
208
+ x.wrap(y),y.format(f,e))};z.prototype.insertAt=function(x,y,f){y=null==f?ea.create("text",y):ea.create(y,f);x=this.split(x);this.parent.insertBefore(y,x)};z.prototype.insertInto=function(x,y){void 0===y&&(y=null);null!=this.parent&&this.parent.children.remove(this);var f=null;x.children.insertBefore(this,y);null!=y&&(f=y.domNode);this.domNode.parentNode==x.domNode&&this.domNode.nextSibling==f||x.domNode.insertBefore(this.domNode,f);this.parent=x;this.attach()};z.prototype.isolate=function(x,y){x=
209
+ this.split(x);x.split(y);return x};z.prototype.length=function(){return 1};z.prototype.offset=function(x){void 0===x&&(x=this.parent);return null==this.parent||this==x?0:this.parent.children.offset(this)+this.parent.offset(x)};z.prototype.optimize=function(){null!=this.domNode[ea.DATA_KEY]&&delete this.domNode[ea.DATA_KEY].mutations};z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};z.prototype.replace=function(x){null!=x.parent&&
210
+ (x.parent.insertBefore(this,x.next),x.remove())};z.prototype.replaceWith=function(x,y){x="string"===typeof x?ea.create(x,y):x;x.replace(this);return x};z.prototype.split=function(x){return 0===x?this:this.next};z.prototype.update=function(){};z.prototype.wrap=function(x,y){x="string"===typeof x?ea.create(x,y):x;null!=this.parent&&this.parent.insertBefore(x,this.next);x.appendChild(this);return x};z.blotName="abstract";return z}();ma.default=ka},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",
211
+ {value:!0});var ea=fa(12),z=fa(32),x=fa(33),y=fa(1);ka=function(){function f(e){this.attributes={};this.domNode=e;this.build()}f.prototype.attribute=function(e,a){a?e.add(this.domNode,a)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])};f.prototype.build=function(){var e=this;this.attributes={};var a=ea.default.keys(this.domNode),b=z.default.keys(this.domNode),h=x.default.keys(this.domNode);
212
+ a.concat(b).concat(h).forEach(function(n){n=y.query(n,y.Scope.ATTRIBUTE);n instanceof ea.default&&(e.attributes[n.attrName]=n)})};f.prototype.copy=function(e){var a=this;Object.keys(this.attributes).forEach(function(b){var h=a.attributes[b].value(a.domNode);e.format(b,h)})};f.prototype.move=function(e){var a=this;this.copy(e);Object.keys(this.attributes).forEach(function(b){a.attributes[b].remove(a.domNode)});this.attributes={}};f.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(a,
213
+ b){a[b]=e.attributes[b].value(e.domNode);return a},{})};return f}();ma.default=ka},function(ka,ma,fa){function ea(x,y){return(x.getAttribute("class")||"").split(/\s+/).filter(function(f){return 0===f.indexOf(y+"-")})}var z=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):
214
+ (e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}z(y,x);y.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})};y.prototype.add=function(f,e){if(!this.canAdd(f,e))return!1;this.remove(f);f.classList.add(this.keyName+"-"+e);return!0};y.prototype.remove=function(f){ea(f,this.keyName).forEach(function(e){f.classList.remove(e)});
215
+ 0===f.classList.length&&f.removeAttribute("class")};y.prototype.value=function(f){var e=(ea(f,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(f,e)?e:""};return y}(fa(12).default);ma.default=ka},function(ka,ma,fa){function ea(x){x=x.split("-");var y=x.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return x[0]+y}var z=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,
216
+ f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}z(y,x);y.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})};y.prototype.add=function(f,e){if(!this.canAdd(f,e))return!1;f.style[ea(this.keyName)]=
217
+ e;return!0};y.prototype.remove=function(f){f.style[ea(this.keyName)]="";f.getAttribute("style")||f.removeAttribute("style")};y.prototype.value=function(f){var e=f.style[ea(this.keyName)];return this.canAdd(f,e)?e:""};return y}(fa(12).default);ma.default=ka},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});var fa=function(){function ea(z,x){for(var y=0;y<x.length;y++){var f=x[y];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(z,f.key,
218
+ f)}}return function(z,x,y){x&&ea(z.prototype,x);y&&ea(z,y);return z}}();ka=function(){function ea(z,x){if(!(this instanceof ea))throw new TypeError("Cannot call a class as a function");this.quill=z;this.options=x;this.modules={}}fa(ea,[{key:"init",value:function(){var z=this;Object.keys(this.options.modules).forEach(function(x){null==z.modules[x]&&z.addModule(x)})}},{key:"addModule",value:function(z){var x=this.quill.constructor.import("modules/"+z);this.modules[z]=new x(this.quill,this.options.modules[z]||
219
+ {});return this.modules[z]}}]);return ea}();ka.DEFAULTS={modules:{}};ka.themes={"default":ka};ma.default=ka},function(ka,ma,fa){function ea(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function z(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,
220
+ writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ma,"__esModule",{value:!0});var x=function(){function a(b,h){for(var n=0;n<h.length;n++){var ba=h[n];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=!0);Object.defineProperty(b,ba.key,ba)}}return function(b,h,n){h&&a(b.prototype,h);n&&a(b,n);return b}}(),y=function ba(b,h,n){null===b&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,h);
221
+ if(void 0===w){if(b=Object.getPrototypeOf(b),null!==b)return ba(b,h,n)}else{if("value"in w)return w.value;h=w.get;return void 0===h?void 0:h.call(n)}},f=(ka=fa(0))&&ka.__esModule?ka:{default:ka},e=(fa=fa(7))&&fa.__esModule?fa:{default:fa};fa=function(b){function h(n){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var ba=ea(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,n));ba.contentNode=document.createElement("span");ba.contentNode.setAttribute("contenteditable",
222
+ !1);[].slice.call(ba.domNode.childNodes).forEach(function(w){ba.contentNode.appendChild(w)});ba.leftGuard=document.createTextNode("\ufeff");ba.rightGuard=document.createTextNode("\ufeff");ba.domNode.appendChild(ba.leftGuard);ba.domNode.appendChild(ba.contentNode);ba.domNode.appendChild(ba.rightGuard);return ba}z(h,b);x(h,[{key:"index",value:function(n,ba){return n===this.leftGuard?0:n===this.rightGuard?1:y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"index",this).call(this,n,ba)}},{key:"restore",
223
+ value:function(n){var ba=void 0,w=n.data.split("\ufeff").join("");n===this.leftGuard?this.prev instanceof e.default?(ba=this.prev.length(),this.prev.insertAt(ba,w),ba={startNode:this.prev.domNode,startOffset:ba+w.length}):(ba=document.createTextNode(w),this.parent.insertBefore(f.default.create(ba),this),ba={startNode:ba,startOffset:w.length}):n===this.rightGuard&&(this.next instanceof e.default?(this.next.insertAt(0,w),ba={startNode:this.next.domNode,startOffset:w.length}):(ba=document.createTextNode(w),
224
+ this.parent.insertBefore(f.default.create(ba),this.next),ba={startNode:ba,startOffset:w.length}));n.data="\ufeff";return ba}},{key:"update",value:function(n,ba){var w=this;n.forEach(function(da){"characterData"!==da.type||da.target!==w.leftGuard&&da.target!==w.rightGuard||!(da=w.restore(da.target))||(ba.range=da)})}}]);return h}(f.default.Embed);ma.default=fa},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.AlignStyle=ma.AlignClass=ma.AlignAttribute=void 0;var ea=(ka=fa(0))&&
225
+ ka.__esModule?ka:{default:ka};var z={scope:ea.default.Scope.BLOCK,whitelist:["right","center","justify"]};ka=new ea.default.Attributor.Attribute("align","align",z);fa=new ea.default.Attributor.Class("align","ql-align",z);ea=new ea.default.Attributor.Style("align","text-align",z);ma.AlignAttribute=ka;ma.AlignClass=fa;ma.AlignStyle=ea},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.BackgroundStyle=ma.BackgroundClass=void 0;ka=(ka=fa(0))&&ka.__esModule?ka:{default:ka};var ea=
226
+ fa(26);fa=new ka.default.Attributor.Class("background","ql-bg",{scope:ka.default.Scope.INLINE});ka=new ea.ColorAttributor("background","background-color",{scope:ka.default.Scope.INLINE});ma.BackgroundClass=fa;ma.BackgroundStyle=ka},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.DirectionStyle=ma.DirectionClass=ma.DirectionAttribute=void 0;var ea=(ka=fa(0))&&ka.__esModule?ka:{default:ka};var z={scope:ea.default.Scope.BLOCK,whitelist:["rtl"]};ka=new ea.default.Attributor.Attribute("direction",
227
+ "dir",z);fa=new ea.default.Attributor.Class("direction","ql-direction",z);ea=new ea.default.Attributor.Style("direction","direction",z);ma.DirectionAttribute=ka;ma.DirectionClass=fa;ma.DirectionStyle=ea},function(ka,ma,fa){function ea(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,
228
+ e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});ma.FontClass=ma.FontStyle=void 0;var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),x=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,
229
+ a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};fa=function(e){return e&&e.__esModule?e:{default:e}}(fa(0));var y={scope:fa.default.Scope.INLINE,whitelist:["serif","monospace"]};ka=new fa.default.Attributor.Class("font","ql-font",y);fa=new (function(e){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
230
+ return!b||"object"!==typeof b&&"function"!==typeof b?this:b}ea(a,e);z(a,[{key:"value",value:function(b){return x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,b).replace(/["']/g,"")}}]);return a}(fa.default.Attributor.Style))("font","font-family",y);ma.FontStyle=fa;ma.FontClass=ka},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.SizeStyle=ma.SizeClass=void 0;fa=(ka=fa(0))&&ka.__esModule?ka:{default:ka};ka=new fa.default.Attributor.Class("size",
231
+ "ql-size",{scope:fa.default.Scope.INLINE,whitelist:["small","large","huge"]});fa=new fa.default.Attributor.Style("size","font-size",{scope:fa.default.Scope.INLINE,whitelist:["10px","18px","32px"]});ma.SizeClass=ka;ma.SizeStyle=fa},function(ka,ma,fa){ka.exports={align:{"":fa(76),center:fa(77),right:fa(78),justify:fa(79)},background:fa(80),blockquote:fa(81),bold:fa(82),clean:fa(83),code:fa(58),"code-block":fa(58),color:fa(84),direction:{"":fa(85),rtl:fa(86)},"float":{center:fa(87),full:fa(88),left:fa(89),
232
+ right:fa(90)},formula:fa(91),header:{1:fa(92),2:fa(93)},italic:fa(94),image:fa(95),indent:{"+1":fa(96),"-1":fa(97)},link:fa(98),list:{ordered:fa(99),bullet:fa(100),check:fa(101)},script:{sub:fa(102),"super":fa(103)},strike:fa(104),underline:fa(105),video:fa(106)}},function(ka,ma,fa){function ea(h){return h&&h.__esModule?h:{default:h}}function z(h,n){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?h:n}
233
+ function x(h,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);h.prototype=Object.create(n&&n.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(h,n):h.__proto__=n)}function y(h){h=h.ops[h.ops.length-1];return null==h?!1:null!=h.insert?"string"===typeof h.insert&&h.insert.endsWith("\n"):null!=h.attributes?Object.keys(h.attributes).some(function(n){return null!=
234
+ a.default.query(n,a.default.Scope.BLOCK)}):!1}function f(h){var n=h.reduce(function(ba,w){return ba+=w.delete||0},0);n=h.length()-n;y(h)&&--n;return n}Object.defineProperty(ma,"__esModule",{value:!0});ma.getLastChangeIndex=ma.default=void 0;var e=function(){function h(n,ba){for(var w=0;w<ba.length;w++){var da=ba[w];da.enumerable=da.enumerable||!1;da.configurable=!0;"value"in da&&(da.writable=!0);Object.defineProperty(n,da.key,da)}}return function(n,ba,w){ba&&h(n.prototype,ba);w&&h(n,w);return n}}();
235
+ ka=fa(0);var a=ea(ka);ka=fa(5);var b=ea(ka);fa=fa(9);fa=function(h){function n(ba,w){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var da=z(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,ba,w));da.lastRecorded=0;da.ignoreChange=!1;da.clear();da.quill.on(b.default.events.EDITOR_CHANGE,function(ja,aa,ca,ia){ja!==b.default.events.TEXT_CHANGE||da.ignoreChange||(da.options.userOnly&&ia!==b.default.sources.USER?da.transform(aa):da.record(aa,ca))});da.quill.keyboard.addBinding({key:"Z",
236
+ shortKey:!0},da.undo.bind(da));da.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},da.redo.bind(da));/Win/i.test(navigator.platform)&&da.quill.keyboard.addBinding({key:"Y",shortKey:!0},da.redo.bind(da));return da}x(n,h);e(n,[{key:"change",value:function(ba,w){if(0!==this.stack[ba].length){var da=this.stack[ba].pop();this.stack[w].push(da);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(da[ba],b.default.sources.USER);this.ignoreChange=!1;ba=f(da[ba]);this.quill.setSelection(ba)}}},
237
+ {key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(ba,w){if(0!==ba.ops.length){this.stack.redo=[];w=this.quill.getContents().diff(w);var da=Date.now();this.lastRecorded+this.options.delay>da&&0<this.stack.undo.length?(da=this.stack.undo.pop(),w=w.compose(da.undo),ba=da.redo.compose(ba)):this.lastRecorded=da;this.stack.undo.push({redo:ba,undo:w});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},
238
+ {key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ba){this.stack.undo.forEach(function(w){w.undo=ba.transform(w.undo,!0);w.redo=ba.transform(w.redo,!0)});this.stack.redo.forEach(function(w){w.undo=ba.transform(w.undo,!0);w.redo=ba.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return n}(ea(fa).default);fa.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ma.default=fa;ma.getLastChangeIndex=f},function(ka,ma,fa){function ea(qa){return qa&&
239
+ qa.__esModule?qa:{default:qa}}function z(qa,ra){if(!(qa instanceof ra))throw new TypeError("Cannot call a class as a function");}function x(qa,ra){if(!qa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ra||"object"!==typeof ra&&"function"!==typeof ra?qa:ra}function y(qa,ra){if("function"!==typeof ra&&null!==ra)throw new TypeError("Super expression must either be null or a function, not "+typeof ra);qa.prototype=Object.create(ra&&ra.prototype,{constructor:{value:qa,
240
+ enumerable:!1,writable:!0,configurable:!0}});ra&&(Object.setPrototypeOf?Object.setPrototypeOf(qa,ra):qa.__proto__=ra)}function f(qa,ra){var ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;ra.forEach(function(va){var oa=document.createElement("option");va===ta?oa.setAttribute("selected","selected"):oa.setAttribute("value",va);qa.appendChild(oa)})}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.BaseTooltip=void 0;var e=function(){function qa(ra,ta){for(var va=0;va<ta.length;va++){var oa=
241
+ ta[va];oa.enumerable=oa.enumerable||!1;oa.configurable=!0;"value"in oa&&(oa.writable=!0);Object.defineProperty(ra,oa.key,oa)}}return function(ra,ta,va){ta&&qa(ra.prototype,ta);va&&qa(ra,va);return ra}}(),a=function oa(ra,ta,va){null===ra&&(ra=Function.prototype);var wa=Object.getOwnPropertyDescriptor(ra,ta);if(void 0===wa){if(ra=Object.getPrototypeOf(ra),null!==ra)return oa(ra,ta,va)}else{if("value"in wa)return wa.value;ta=wa.get;return void 0===ta?void 0:ta.call(va)}};ka=fa(3);ka=ea(ka);var b=fa(2),
242
+ h=ea(b);b=fa(8);var n=ea(b);b=fa(23);var ba=ea(b);b=fa(34);b=ea(b);var w=fa(59),da=ea(w);w=fa(60);var ja=ea(w);w=fa(28);var aa=ea(w);fa=fa(61);w=ea(fa);var ca=[!1,"center","right","justify"],ia="#000000 #e60000 #ff9900 #ffff00 #008a00 #0066cc #9933ff #ffffff #facccc #ffebcc #ffffcc #cce8cc #cce0f5 #ebd6ff #bbbbbb #f06666 #ffc266 #ffff66 #66b966 #66a3e0 #c285ff #888888 #a10000 #b26b00 #b2b200 #006100 #0047b2 #6b24b2 #444444 #5c0000 #663d00 #666600 #003700 #002966 #3d1466".split(" "),ha=[!1,"serif",
243
+ "monospace"],la=["1","2","3",!1],na=["small",!1,"large","huge"];fa=function(ra){function ta(va,oa){z(this,ta);var wa=x(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,va,oa));va.emitter.listenDOM("click",document.body,function La(Ha){if(!document.body.contains(va.root))return document.body.removeEventListener("click",La);null==wa.tooltip||wa.tooltip.root.contains(Ha.target)||document.activeElement===wa.tooltip.textbox||wa.quill.hasFocus()||wa.tooltip.hide();null!=wa.pickers&&wa.pickers.forEach(function(Ca){Ca.container.contains(Ha.target)||
244
+ Ca.close()})});return wa}y(ta,ra);e(ta,[{key:"addModule",value:function(va){var oa=a(ta.prototype.__proto__||Object.getPrototypeOf(ta.prototype),"addModule",this).call(this,va);"toolbar"===va&&this.extendToolbar(oa);return oa}},{key:"buildButtons",value:function(va,oa){va.forEach(function(wa){(wa.getAttribute("class")||"").split(/\s+/).forEach(function(Da){if(Da.startsWith("ql-")&&(Da=Da.slice(3),null!=oa[Da]))if("direction"===Da)wa.innerHTML=oa[Da][""]+oa[Da].rtl;else if("string"===typeof oa[Da])wa.innerHTML=
245
+ oa[Da];else{var Ha=wa.value||"";null!=Ha&&oa[Da][Ha]&&(wa.innerHTML=oa[Da][Ha])}})})}},{key:"buildPickers",value:function(va,oa){var wa=this;this.pickers=va.map(function(Da){if(Da.classList.contains("ql-align"))return null==Da.querySelector("option")&&f(Da,ca),new ja.default(Da,oa.align);if(Da.classList.contains("ql-background")||Da.classList.contains("ql-color")){var Ha=Da.classList.contains("ql-background")?"background":"color";null==Da.querySelector("option")&&f(Da,ia,"background"===Ha?"#ffffff":
246
+ "#000000");return new da.default(Da,oa[Ha])}null==Da.querySelector("option")&&(Da.classList.contains("ql-font")?f(Da,ha):Da.classList.contains("ql-header")?f(Da,la):Da.classList.contains("ql-size")&&f(Da,na));return new aa.default(Da)});this.quill.on(n.default.events.EDITOR_CHANGE,function(){wa.pickers.forEach(function(Da){Da.update()})})}}]);return ta}(b.default);fa.DEFAULTS=(0,ka.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
247
+ image:function(){var ra=this,ta=this.container.querySelector("input.ql-image[type=file]");null==ta&&(ta=document.createElement("input"),ta.setAttribute("type","file"),ta.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ta.classList.add("ql-image"),ta.addEventListener("change",function(){if(null!=ta.files&&null!=ta.files[0]){var va=new FileReader;va.onload=function(oa){var wa=ra.quill.getSelection(!0);ra.quill.updateContents((new h.default).retain(wa.index).delete(wa.length).insert({image:oa.target.result}),
248
+ n.default.sources.USER);ra.quill.setSelection(wa.index+1,n.default.sources.SILENT);ta.value=""};va.readAsDataURL(ta.files[0])}}),this.container.appendChild(ta));ta.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});ka=function(ra){function ta(va,oa){z(this,ta);va=x(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,va,oa));va.textbox=va.root.querySelector('input[type="text"]');va.listen();return va}y(ta,ra);e(ta,[{key:"listen",value:function(){var va=this;this.textbox.addEventListener("keydown",
249
+ function(oa){ba.default.match(oa,"enter")?(va.save(),oa.preventDefault()):ba.default.match(oa,"escape")&&(va.cancel(),oa.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var va=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=oa?this.textbox.value=oa:va!==this.root.getAttribute("data-mode")&&(this.textbox.value=
250
+ "");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+va)||"");this.root.setAttribute("data-mode",va)}},{key:"restoreFocus",value:function(){var va=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=va}},{key:"save",value:function(){var va=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var oa=this.quill.root.scrollTop;
251
+ this.linkRange?(this.quill.formatText(this.linkRange,"link",va,n.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",va,n.default.sources.USER));this.quill.root.scrollTop=oa;break;case "video":oa=va;var wa=oa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||oa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);va=wa?(wa[1]||"https")+"://www.youtube.com/embed/"+wa[2]+"?showinfo=0":(wa=oa.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?
252
+ (wa[1]||"https")+"://player.vimeo.com/video/"+wa[2]+"/":oa;case "formula":va&&(oa=this.quill.getSelection(!0),null!=oa&&(oa=oa.index+oa.length,this.quill.insertEmbed(oa,this.root.getAttribute("data-mode"),va,n.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(oa+1," ",n.default.sources.USER),this.quill.setSelection(oa+2,n.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return ta}(w.default);ma.BaseTooltip=ka;ma.default=fa},function(ka,ma){Object.defineProperty(ma,
253
+ "__esModule",{value:!0});ka=function(){function fa(){this.head=this.tail=null;this.length=0}fa.prototype.append=function(){for(var ea=[],z=0;z<arguments.length;z++)ea[z]=arguments[z];this.insertBefore(ea[0],null);1<ea.length&&this.append.apply(this,ea.slice(1))};fa.prototype.contains=function(ea){for(var z,x=this.iterator();z=x();)if(z===ea)return!0;return!1};fa.prototype.insertBefore=function(ea,z){ea&&(ea.next=z,null!=z?(ea.prev=z.prev,null!=z.prev&&(z.prev.next=ea),z.prev=ea,z===this.head&&(this.head=
254
+ ea)):null!=this.tail?(this.tail.next=ea,ea.prev=this.tail,this.tail=ea):(ea.prev=null,this.head=this.tail=ea),this.length+=1)};fa.prototype.offset=function(ea){for(var z=0,x=this.head;null!=x;){if(x===ea)return z;z+=x.length();x=x.next}return-1};fa.prototype.remove=function(ea){this.contains(ea)&&(null!=ea.prev&&(ea.prev.next=ea.next),null!=ea.next&&(ea.next.prev=ea.prev),ea===this.head&&(this.head=ea.next),ea===this.tail&&(this.tail=ea.prev),--this.length)};fa.prototype.iterator=function(ea){void 0===
255
+ ea&&(ea=this.head);return function(){var z=ea;null!=ea&&(ea=ea.next);return z}};fa.prototype.find=function(ea,z){void 0===z&&(z=!1);for(var x,y=this.iterator();x=y();){var f=x.length();if(ea<f||z&&ea===f&&(null==x.next||0!==x.next.length()))return[x,ea];ea-=f}return[null,0]};fa.prototype.forEach=function(ea){for(var z,x=this.iterator();z=x();)ea(z)};fa.prototype.forEachAt=function(ea,z,x){if(!(0>=z))for(var y=this.find(ea),f=ea-y[1],e=this.iterator(y[0]);(y=e())&&f<ea+z;){var a=y.length();ea>f?x(y,
256
+ ea-f,Math.min(z,f+a-ea)):x(y,0,Math.min(a,ea+z-f));f+=a}};fa.prototype.map=function(ea){return this.reduce(function(z,x){z.push(ea(x));return z},[])};fa.prototype.reduce=function(ea,z){for(var x,y=this.iterator();x=y();)z=ea(z,x);return z};return fa}();ma.default=ka},function(ka,ma,fa){var ea=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return function(e,a){function b(){this.constructor=
257
+ e}f(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});var z=fa(17),x=fa(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};ka=function(f){function e(a){var b=f.call(this,a)||this;b.scroll=b;b.observer=new MutationObserver(function(h){b.update(h)});b.observer.observe(b.domNode,y);b.attach();return b}ea(e,f);e.prototype.detach=function(){f.prototype.detach.call(this);this.observer.disconnect()};
258
+ e.prototype.deleteAt=function(a,b){this.update();0===a&&b===this.length()?this.children.forEach(function(h){h.remove()}):f.prototype.deleteAt.call(this,a,b)};e.prototype.formatAt=function(a,b,h,n){this.update();f.prototype.formatAt.call(this,a,b,h,n)};e.prototype.insertAt=function(a,b,h){this.update();f.prototype.insertAt.call(this,a,b,h)};e.prototype.optimize=function(a,b){function h(aa){null!=aa.domNode[x.DATA_KEY]&&null!=aa.domNode[x.DATA_KEY].mutations&&(aa instanceof z.default&&aa.children.forEach(h),
259
+ aa.optimize(b))}function n(aa,ca){void 0===ca&&(ca=!0);null!=aa&&aa!==ba&&null!=aa.domNode.parentNode&&(null==aa.domNode[x.DATA_KEY].mutations&&(aa.domNode[x.DATA_KEY].mutations=[]),ca&&n(aa.parent))}var ba=this;void 0===a&&(a=[]);void 0===b&&(b={});f.prototype.optimize.call(this,b);for(var w=[].slice.call(this.observer.takeRecords());0<w.length;)a.push(w.pop());for(var da=a,ja=0;0<da.length;ja+=1){if(100<=ja)throw Error("[Parchment] Maximum optimize iterations reached");da.forEach(function(aa){var ca=
260
+ x.find(aa.target,!0);null!=ca&&(ca.domNode===aa.target&&("childList"===aa.type?(n(x.find(aa.previousSibling,!1)),[].forEach.call(aa.addedNodes,function(ia){ia=x.find(ia,!1);n(ia,!1);ia instanceof z.default&&ia.children.forEach(function(ha){n(ha,!1)})})):"attributes"===aa.type&&n(ca.prev)),n(ca))});this.children.forEach(h);da=[].slice.call(this.observer.takeRecords());for(w=da.slice();0<w.length;)a.push(w.pop())}};e.prototype.update=function(a,b){var h=this;void 0===b&&(b={});a=a||this.observer.takeRecords();
261
+ a.map(function(n){var ba=x.find(n.target,!0);if(null==ba)return null;if(null==ba.domNode[x.DATA_KEY].mutations)return ba.domNode[x.DATA_KEY].mutations=[n],ba;ba.domNode[x.DATA_KEY].mutations.push(n);return null}).forEach(function(n){null!=n&&n!==h&&null!=n.domNode[x.DATA_KEY]&&n.update(n.domNode[x.DATA_KEY].mutations||[],b)});null!=this.domNode[x.DATA_KEY].mutations&&f.prototype.update.call(this,this.domNode[x.DATA_KEY].mutations,b);this.optimize(a,b)};e.blotName="scroll";e.defaultChild="block";e.scope=
262
+ x.Scope.BLOCK_BLOT;e.tagName="DIV";return e}(z.default);ma.default=ka},function(ka,ma,fa){var ea=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,e){f.__proto__=e}||function(f,e){for(var a in e)e.hasOwnProperty(a)&&(f[a]=e[a])};return function(f,e){function a(){this.constructor=f}y(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}();Object.defineProperty(ma,"__esModule",{value:!0});var z=fa(18),x=fa(1);ka=function(y){function f(){return null!==
263
+ y&&y.apply(this,arguments)||this}ea(f,y);f.formats=function(e){if(e.tagName!==f.tagName)return y.formats.call(this,e)};f.prototype.format=function(e,a){var b=this;e!==this.statics.blotName||a?y.prototype.format.call(this,e,a):(this.children.forEach(function(h){h instanceof z.default||(h=h.wrap(f.blotName,!0));b.attributes.copy(h)}),this.unwrap())};f.prototype.formatAt=function(e,a,b,h){null!=this.formats()[b]||x.query(b,x.Scope.ATTRIBUTE)?this.isolate(e,a).format(b,h):y.prototype.formatAt.call(this,
264
+ e,a,b,h)};f.prototype.optimize=function(e){y.prototype.optimize.call(this,e);e=this.formats();if(0===Object.keys(e).length)return this.unwrap();var a=this.next,b;if(b=a instanceof f&&a.prev===this)a:if(b=a.formats(),Object.keys(e).length!==Object.keys(b).length)b=!1;else{for(var h in e)if(e[h]!==b[h]){b=!1;break a}b=!0}b&&(a.moveChildren(this),a.remove())};f.blotName="inline";f.scope=x.Scope.INLINE_BLOT;f.tagName="SPAN";return f}(z.default);ma.default=ka},function(ka,ma,fa){var ea=this&&this.__extends||
265
+ function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(18);var z=fa(1);fa=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}ea(y,x);y.formats=function(f){var e=z.query(y.blotName).tagName;
266
+ if(f.tagName!==e)return x.formats.call(this,f)};y.prototype.format=function(f,e){null!=z.query(f,z.Scope.BLOCK)&&(f!==this.statics.blotName||e?x.prototype.format.call(this,f,e):this.replaceWith(y.blotName))};y.prototype.formatAt=function(f,e,a,b){null!=z.query(a,z.Scope.BLOCK)?this.format(a,b):x.prototype.formatAt.call(this,f,e,a,b)};y.prototype.insertAt=function(f,e,a){null==a||null!=z.query(e,z.Scope.INLINE)?x.prototype.insertAt.call(this,f,e,a):(f=this.split(f),e=z.create(e,a),f.parent.insertBefore(e,
267
+ f))};y.prototype.update=function(f,e){navigator.userAgent.match(/Trident/)?this.build():x.prototype.update.call(this,f,e)};y.blotName="block";y.scope=z.Scope.BLOCK_BLOT;y.tagName="P";return y}(ka.default);ma.default=fa},function(ka,ma,fa){var ea=this&&this.__extends||function(){var z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var f in y)y.hasOwnProperty(f)&&(x[f]=y[f])};return function(x,y){function f(){this.constructor=x}z(x,y);x.prototype=
268
+ null===y?Object.create(y):(f.prototype=y.prototype,new f)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){return null!==z&&z.apply(this,arguments)||this}ea(x,z);x.formats=function(){};x.prototype.format=function(y,f){z.prototype.formatAt.call(this,0,this.length(),y,f)};x.prototype.formatAt=function(y,f,e,a){0===y&&f===this.length()?this.format(e,a):z.prototype.formatAt.call(this,y,f,e,a)};x.prototype.formats=function(){return this.statics.formats(this.domNode)};return x}(fa(19).default);
269
+ ma.default=ka},function(ka,ma,fa){var ea=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(19);var z=fa(1);fa=function(x){function y(f){f=x.call(this,f)||this;f.text=f.statics.value(f.domNode);
270
+ return f}ea(y,x);y.create=function(f){return document.createTextNode(f)};y.value=function(f){f=f.data;f.normalize&&(f=f.normalize());return f};y.prototype.deleteAt=function(f,e){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+e)};y.prototype.index=function(f,e){return this.domNode===f?e:-1};y.prototype.insertAt=function(f,e,a){null==a?(this.text=this.text.slice(0,f)+e+this.text.slice(f),this.domNode.data=this.text):x.prototype.insertAt.call(this,f,e,a)};y.prototype.length=function(){return this.text.length};
271
+ y.prototype.optimize=function(f){x.prototype.optimize.call(this,f);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof y&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};y.prototype.position=function(f){return[this.domNode,f]};y.prototype.split=function(f,e){void 0===e&&(e=!1);if(!e){if(0===f)return this;if(f===this.length())return this.next}f=z.create(this.domNode.splitText(f));this.parent.insertBefore(f,this.next);
272
+ this.text=this.statics.value(this.domNode);return f};y.prototype.update=function(f){var e=this;f.some(function(a){return"characterData"===a.type&&a.target===e.domNode})&&(this.text=this.statics.value(this.domNode))};y.prototype.value=function(){return this.text};y.blotName="text";y.scope=z.Scope.INLINE_BLOT;return y}(ka.default);ma.default=fa},function(){var ka=document.createElement("div");ka.classList.toggle("test-class",!1);if(ka.classList.contains("test-class")){var ma=DOMTokenList.prototype.toggle;
273
+ DOMTokenList.prototype.toggle=function(fa,ea){return 1<arguments.length&&!this.contains(fa)===!ea?ea:ma.call(this,fa)}}String.prototype.startsWith||(String.prototype.startsWith=function(fa,ea){return this.substr(ea||0,fa.length)===fa});String.prototype.endsWith||(String.prototype.endsWith=function(fa,ea){var z=this.toString();if("number"!==typeof ea||!isFinite(ea)||Math.floor(ea)!==ea||ea>z.length)ea=z.length;ea-=fa.length;fa=z.indexOf(fa,ea);return-1!==fa&&fa===ea});Array.prototype.find||Object.defineProperty(Array.prototype,
274
+ "find",{value:function(fa,ea){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof fa)throw new TypeError("predicate must be a function");for(var z=Object(this),x=z.length>>>0,y,f=0;f<x;f++)if(y=z[f],fa.call(ea,y,f,z))return y}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(ka){function ma(h,n,ba){if(h==n)return h?[[0,h]]:[];
275
+ if(0>ba||h.length<ba)ba=null;var w=z(h,n),da=h.substring(0,w);h=h.substring(w);n=n.substring(w);w=x(h,n);var ja=h.substring(h.length-w);h=h.substring(0,h.length-w);n=n.substring(0,n.length-w);h=fa(h,n);da&&h.unshift([0,da]);ja&&h.push([0,ja]);f(h);null!=ba&&(h=e(h,ba));return h=a(h)}function fa(h,n){if(!h)return[[1,n]];if(!n)return[[-1,h]];var ba=h.length>n.length?h:n;var w=h.length>n.length?n:h,da=ba.indexOf(w);if(-1!=da)return ba=[[1,ba.substring(0,da)],[0,w],[1,ba.substring(da+w.length)]],h.length>
276
+ n.length&&(ba[0][0]=ba[2][0]=-1),ba;if(1==w.length)return[[-1,h],[1,n]];if(ba=y(h,n))return n=ba[1],w=ba[3],h=ba[4],ba=ma(ba[0],ba[2]),n=ma(n,w),ba.concat([[0,h]],n);a:{ba=h.length;w=n.length;da=Math.ceil((ba+w)/2);for(var ja=2*da,aa=Array(ja),ca=Array(ja),ia=0;ia<ja;ia++)aa[ia]=-1,ca[ia]=-1;aa[da+1]=0;ca[da+1]=0;ia=ba-w;for(var ha=0!=ia%2,la=0,na=0,qa=0,ra=0,ta=0;ta<da;ta++){for(var va=-ta+la;va<=ta-na;va+=2){var oa=da+va;var wa=va==-ta||va!=ta&&aa[oa-1]<aa[oa+1]?aa[oa+1]:aa[oa-1]+1;for(var Da=wa-
277
+ va;wa<ba&&Da<w&&h.charAt(wa)==n.charAt(Da);)wa++,Da++;aa[oa]=wa;if(wa>ba)na+=2;else if(Da>w)la+=2;else if(ha&&(oa=da+ia-va,0<=oa&&oa<ja&&-1!=ca[oa])){var Ha=ba-ca[oa];if(wa>=Ha){h=ea(h,n,wa,Da);break a}}}for(va=-ta+qa;va<=ta-ra;va+=2){oa=da+va;Ha=va==-ta||va!=ta&&ca[oa-1]<ca[oa+1]?ca[oa+1]:ca[oa-1]+1;for(wa=Ha-va;Ha<ba&&wa<w&&h.charAt(ba-Ha-1)==n.charAt(w-wa-1);)Ha++,wa++;ca[oa]=Ha;if(Ha>ba)ra+=2;else if(wa>w)qa+=2;else if(!ha&&(oa=da+ia-va,0<=oa&&oa<ja&&-1!=aa[oa]&&(wa=aa[oa],Da=da+wa-oa,Ha=ba-Ha,
278
+ wa>=Ha))){h=ea(h,n,wa,Da);break a}}}h=[[-1,h],[1,n]]}return h}function ea(h,n,ba,w){var da=h.substring(ba),ja=n.substring(w);h=ma(h.substring(0,ba),n.substring(0,w));da=ma(da,ja);return h.concat(da)}function z(h,n){if(!h||!n||h.charAt(0)!=n.charAt(0))return 0;for(var ba=0,w=Math.min(h.length,n.length),da=w,ja=0;ba<da;)h.substring(ja,da)==n.substring(ja,da)?ja=ba=da:w=da,da=Math.floor((w-ba)/2+ba);return da}function x(h,n){if(!h||!n||h.charAt(h.length-1)!=n.charAt(n.length-1))return 0;for(var ba=0,
279
+ w=Math.min(h.length,n.length),da=w,ja=0;ba<da;)h.substring(h.length-da,h.length-ja)==n.substring(n.length-da,n.length-ja)?ja=ba=da:w=da,da=Math.floor((w-ba)/2+ba);return da}function y(h,n){function ba(aa,ca,ia){for(var ha=aa.substring(ia,ia+Math.floor(aa.length/4)),la=-1,na="",qa,ra,ta,va;-1!=(la=ca.indexOf(ha,la+1));){var oa=z(aa.substring(ia),ca.substring(la)),wa=x(aa.substring(0,ia),ca.substring(0,la));na.length<wa+oa&&(na=ca.substring(la-wa,la)+ca.substring(la,la+oa),qa=aa.substring(0,ia-wa),
280
+ ra=aa.substring(ia+oa),ta=ca.substring(0,la-wa),va=ca.substring(la+oa))}return 2*na.length>=aa.length?[qa,ra,ta,va,na]:null}var w=h.length>n.length?h:n,da=h.length>n.length?n:h;if(4>w.length||2*da.length<w.length)return null;var ja=ba(w,da,Math.ceil(w.length/4));w=ba(w,da,Math.ceil(w.length/2));if(ja||w)ja=w?ja?ja[4].length>w[4].length?ja:w:w:ja;else return null;h.length>n.length?(h=ja[0],n=ja[1],w=ja[2],da=ja[3]):(w=ja[0],da=ja[1],h=ja[2],n=ja[3]);return[h,n,w,da,ja[4]]}function f(h){h.push([0,""]);
281
+ for(var n=0,ba=0,w=0,da="",ja="",aa;n<h.length;)switch(h[n][0]){case 1:w++;ja+=h[n][1];n++;break;case -1:ba++;da+=h[n][1];n++;break;case 0:1<ba+w?(0!==ba&&0!==w&&(aa=z(ja,da),0!==aa&&(0<n-ba-w&&0==h[n-ba-w-1][0]?h[n-ba-w-1][1]+=ja.substring(0,aa):(h.splice(0,0,[0,ja.substring(0,aa)]),n++),ja=ja.substring(aa),da=da.substring(aa)),aa=x(ja,da),0!==aa&&(h[n][1]=ja.substring(ja.length-aa)+h[n][1],ja=ja.substring(0,ja.length-aa),da=da.substring(0,da.length-aa))),0===ba?h.splice(n-w,ba+w,[1,ja]):0===w?h.splice(n-
282
+ ba,ba+w,[-1,da]):h.splice(n-ba-w,ba+w,[-1,da],[1,ja]),n=n-ba-w+(ba?1:0)+(w?1:0)+1):0!==n&&0==h[n-1][0]?(h[n-1][1]+=h[n][1],h.splice(n,1)):n++,ba=w=0,ja=da=""}""===h[h.length-1][1]&&h.pop();ba=!1;for(n=1;n<h.length-1;)0==h[n-1][0]&&0==h[n+1][0]&&(h[n][1].substring(h[n][1].length-h[n-1][1].length)==h[n-1][1]?(h[n][1]=h[n-1][1]+h[n][1].substring(0,h[n][1].length-h[n-1][1].length),h[n+1][1]=h[n-1][1]+h[n+1][1],h.splice(n-1,1),ba=!0):h[n][1].substring(0,h[n+1][1].length)==h[n+1][1]&&(h[n-1][1]+=h[n+1][1],
283
+ h[n][1]=h[n][1].substring(h[n+1][1].length)+h[n+1][1],h.splice(n+1,1),ba=!0)),n++;ba&&f(h)}function e(h,n){a:{var ba=h;if(0===n)var w=[0,ba];else{var da=0;for(w=0;w<ba.length;w++){var ja=ba[w];if(-1===ja[0]||0===ja[0]){var aa=da+ja[1].length;if(n===aa){w=[w+1,ba];break a}if(n<aa){ba=ba.slice();da=n-da;n=[ja[0],ja[1].slice(0,da)];ja=[ja[0],ja[1].slice(da)];ba.splice(w,1,n,ja);w=[w+1,ba];break a}da=aa}}throw Error("cursor_pos is out of bounds!");}}ba=w[1];w=w[0];n=ba[w];ja=ba[w+1];return null==n||0!==
284
+ n[0]?h:null!=ja&&n[1]+ja[1]===ja[1]+n[1]?(ba.splice(w,2,ja,n),b(ba,w,2)):null!=ja&&0===ja[1].indexOf(n[1])?(ba.splice(w,2,[ja[0],n[1]],[0,n[1]]),h=ja[1].slice(n[1].length),0<h.length&&ba.splice(w+2,0,[ja[0],h]),b(ba,w,3)):h}function a(h){function n(ja){return 55296<=ja.charCodeAt(ja.length-1)&&56319>=ja.charCodeAt(ja.length-1)}function ba(ja){return 56320<=ja.charCodeAt(0)&&57343>=ja.charCodeAt(0)}for(var w=!1,da=2;da<h.length;da+=1)0===h[da-2][0]&&n(h[da-2][1])&&-1===h[da-1][0]&&ba(h[da-1][1])&&
285
+ 1===h[da][0]&&ba(h[da][1])&&(w=!0,h[da-1][1]=h[da-2][1].slice(-1)+h[da-1][1],h[da][1]=h[da-2][1].slice(-1)+h[da][1],h[da-2][1]=h[da-2][1].slice(0,-1));if(!w)return h;w=[];for(da=0;da<h.length;da+=1)0<h[da][1].length&&w.push(h[da]);return w}function b(h,n,ba){for(ba=n+ba-1;0<=ba&&ba>=n-1;ba--)if(ba+1<h.length){var w=h[ba],da=h[ba+1];w[0]===da[1]&&h.splice(ba,2,[w[0],w[1]+da[1]])}return h}ma.INSERT=1;ma.DELETE=-1;ma.EQUAL=0;ka.exports=ma},function(ka,ma){function fa(ea){var z=[],x;for(x in ea)z.push(x);
286
+ return z}ma=ka.exports="function"===typeof Object.keys?Object.keys:fa;ma.shim=fa},function(ka,ma){function fa(z){return"[object Arguments]"==Object.prototype.toString.call(z)}function ea(z){return z&&"object"==typeof z&&"number"==typeof z.length&&Object.prototype.hasOwnProperty.call(z,"callee")&&!Object.prototype.propertyIsEnumerable.call(z,"callee")||!1}ma="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ma=ka.exports=ma?fa:ea;ma.supported=fa;ma.unsupported=ea},
287
+ function(ka){function ma(){}function fa(y,f,e){this.fn=y;this.context=f;this.once=e||!1}function ea(){this._events=new ma;this._eventsCount=0}var z=Object.prototype.hasOwnProperty,x="~";Object.create&&(ma.prototype=Object.create(null),(new ma).__proto__||(x=!1));ea.prototype.eventNames=function(){var y=[],f,e;if(0===this._eventsCount)return y;for(e in f=this._events)z.call(f,e)&&y.push(x?e.slice(1):e);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(f)):y};ea.prototype.listeners=
288
+ function(y,f){y=this._events[x?x+y:y];if(f)return!!y;if(!y)return[];if(y.fn)return[y.fn];f=0;for(var e=y.length,a=Array(e);f<e;f++)a[f]=y[f].fn;return a};ea.prototype.emit=function(y,f,e,a,b,h){var n=x?x+y:y;if(!this._events[n])return!1;n=this._events[n];var ba=arguments.length,w;if(n.fn){n.once&&this.removeListener(y,n.fn,void 0,!0);switch(ba){case 1:return n.fn.call(n.context),!0;case 2:return n.fn.call(n.context,f),!0;case 3:return n.fn.call(n.context,f,e),!0;case 4:return n.fn.call(n.context,
289
+ f,e,a),!0;case 5:return n.fn.call(n.context,f,e,a,b),!0;case 6:return n.fn.call(n.context,f,e,a,b,h),!0}var da=1;for(w=Array(ba-1);da<ba;da++)w[da-1]=arguments[da];n.fn.apply(n.context,w)}else{var ja=n.length;for(da=0;da<ja;da++)switch(n[da].once&&this.removeListener(y,n[da].fn,void 0,!0),ba){case 1:n[da].fn.call(n[da].context);break;case 2:n[da].fn.call(n[da].context,f);break;case 3:n[da].fn.call(n[da].context,f,e);break;case 4:n[da].fn.call(n[da].context,f,e,a);break;default:if(!w){var aa=1;for(w=
290
+ Array(ba-1);aa<ba;aa++)w[aa-1]=arguments[aa]}n[da].fn.apply(n[da].context,w)}}return!0};ea.prototype.on=function(y,f,e){f=new fa(f,e||this);y=x?x+y:y;this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],f]:this._events[y].push(f):(this._events[y]=f,this._eventsCount++);return this};ea.prototype.once=function(y,f,e){f=new fa(f,e||this,!0);y=x?x+y:y;this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],f]:this._events[y].push(f):(this._events[y]=f,this._eventsCount++);return this};
291
+ ea.prototype.removeListener=function(y,f,e,a){y=x?x+y:y;if(!this._events[y])return this;if(!f)return 0===--this._eventsCount?this._events=new ma:delete this._events[y],this;var b=this._events[y];if(b.fn)b.fn!==f||a&&!b.once||e&&b.context!==e||(0===--this._eventsCount?this._events=new ma:delete this._events[y]);else{for(var h=0,n=[],ba=b.length;h<ba;h++)(b[h].fn!==f||a&&!b[h].once||e&&b[h].context!==e)&&n.push(b[h]);n.length?this._events[y]=1===n.length?n[0]:n:0===--this._eventsCount?this._events=
292
+ new ma:delete this._events[y]}return this};ea.prototype.removeAllListeners=function(y){y?(y=x?x+y:y,this._events[y]&&(0===--this._eventsCount?this._events=new ma:delete this._events[y])):(this._events=new ma,this._eventsCount=0);return this};ea.prototype.off=ea.prototype.removeListener;ea.prototype.addListener=ea.prototype.on;ea.prototype.setMaxListeners=function(){return this};ea.prefixed=x;ea.EventEmitter=ea;"undefined"!==typeof ka&&(ka.exports=ea)},function(ka,ma,fa){function ea(Aa){return Aa&&
293
+ Aa.__esModule?Aa:{default:Aa}}function z(Aa,Ja,Ia){Ja in Aa?Object.defineProperty(Aa,Ja,{value:Ia,enumerable:!0,configurable:!0,writable:!0}):Aa[Ja]=Ia;return Aa}function x(Aa,Ja){if(!Aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Ja||"object"!==typeof Ja&&"function"!==typeof Ja?Aa:Ja}function y(Aa,Ja){if("function"!==typeof Ja&&null!==Ja)throw new TypeError("Super expression must either be null or a function, not "+typeof Ja);Aa.prototype=Object.create(Ja&&
294
+ Ja.prototype,{constructor:{value:Aa,enumerable:!1,writable:!0,configurable:!0}});Ja&&(Object.setPrototypeOf?Object.setPrototypeOf(Aa,Ja):Aa.__proto__=Ja)}function f(Aa,Ja,Ia){return"object"===("undefined"===typeof Ja?"undefined":ca(Ja))?Object.keys(Ja).reduce(function(Pa,Wa){return f(Pa,Wa,Ja[Wa])},Aa):Aa.reduce(function(Pa,Wa){return Wa.attributes&&Wa.attributes[Ja]?Pa.push(Wa):Pa.insert(Wa.insert,(0,la.default)({},z({},Ja,Ia),Wa.attributes))},new na.default)}function e(Aa){return Aa.nodeType!==
295
+ Node.ELEMENT_NODE?{}:Aa["__ql-computed-style"]||(Aa["__ql-computed-style"]=window.getComputedStyle(Aa))}function a(Aa,Ja){for(var Ia="",Pa=Aa.ops.length-1;0<=Pa&&Ia.length<Ja.length;--Pa){var Wa=Aa.ops[Pa];if("string"!==typeof Wa.insert)break;Ia=Wa.insert+Ia}return Ia.slice(-1*Ja.length)===Ja}function b(Aa){if(0===Aa.childNodes.length)return!1;Aa=e(Aa);return-1<["block","list-item"].indexOf(Aa.display)}function h(Aa,Ja,Ia){return Aa.nodeType===Aa.TEXT_NODE?Ia.reduce(function(Pa,Wa){return Wa(Aa,Pa)},
296
+ new na.default):Aa.nodeType===Aa.ELEMENT_NODE?[].reduce.call(Aa.childNodes||[],function(Pa,Wa){var Qa=h(Wa,Ja,Ia);Wa.nodeType===Aa.ELEMENT_NODE&&(Qa=Ja.reduce(function(Fa,Ea){return Ea(Wa,Fa)},Qa),Qa=(Wa["__ql-matcher"]||[]).reduce(function(Fa,Ea){return Ea(Wa,Fa)},Qa));return Pa.concat(Qa)},new na.default):new na.default}function n(Aa,Ja,Ia){return f(Ia,Aa,!0)}function ba(Aa,Ja){var Ia=qa.default.Attributor.Attribute.keys(Aa),Pa=qa.default.Attributor.Class.keys(Aa),Wa=qa.default.Attributor.Style.keys(Aa),
297
+ Qa={};Ia.concat(Pa).concat(Wa).forEach(function(Fa){var Ea=qa.default.query(Fa,qa.default.Scope.ATTRIBUTE);if(null!=Ea&&(Qa[Ea.attrName]=Ea.value(Aa),Qa[Ea.attrName]))return;Ea=Ra[Fa];null==Ea||Ea.attrName!==Fa&&Ea.keyName!==Fa||(Qa[Ea.attrName]=Ea.value(Aa)||void 0);Ea=Ma[Fa];null==Ea||Ea.attrName!==Fa&&Ea.keyName!==Fa||(Ea=Ma[Fa],Qa[Ea.attrName]=Ea.value(Aa)||void 0)});0<Object.keys(Qa).length&&(Ja=f(Ja,Qa));return Ja}function w(Aa,Ja){var Ia=qa.default.query(Aa);if(null==Ia)return Ja;if(Ia.prototype instanceof
298
+ qa.default.Embed){var Pa={},Wa=Ia.value(Aa);null!=Wa&&(Pa[Ia.blotName]=Wa,Ja=(new na.default).insert(Pa,Ia.formats(Aa)))}else"function"===typeof Ia.formats&&(Ja=f(Ja,Ia.blotName,Ia.formats(Aa)));return Ja}function da(Aa,Ja){a(Ja,"\n")||(b(Aa)||0<Ja.length()&&Aa.nextSibling&&b(Aa.nextSibling))&&Ja.insert("\n");return Ja}function ja(Aa,Ja){if(b(Aa)&&null!=Aa.nextElementSibling&&!a(Ja,"\n\n")){var Ia=Aa.offsetHeight+parseFloat(e(Aa).marginTop)+parseFloat(e(Aa).marginBottom);Aa.nextElementSibling.offsetTop>
299
+ Aa.offsetTop+1.5*Ia&&Ja.insert("\n")}return Ja}function aa(Aa,Ja){var Ia=Aa.data;if("O:P"===Aa.parentNode.tagName)return Ja.insert(Ia.trim());if(0===Ia.trim().length&&Aa.parentNode.classList.contains("ql-clipboard"))return Ja;if(!e(Aa.parentNode).whiteSpace.startsWith("pre")){var Pa=function(Wa,Qa){Qa=Qa.replace(/[^\u00a0]/g,"");return 1>Qa.length&&Wa?" ":Qa};Ia=Ia.replace(/\r\n/g," ").replace(/\n/g," ");Ia=Ia.replace(/\s\s+/g,Pa.bind(Pa,!0));if(null==Aa.previousSibling&&b(Aa.parentNode)||null!=Aa.previousSibling&&
300
+ b(Aa.previousSibling))Ia=Ia.replace(/^\s+/,Pa.bind(Pa,!1));if(null==Aa.nextSibling&&b(Aa.parentNode)||null!=Aa.nextSibling&&b(Aa.nextSibling))Ia=Ia.replace(/\s+$/,Pa.bind(Pa,!1))}return Ja.insert(Ia)}Object.defineProperty(ma,"__esModule",{value:!0});ma.matchText=ma.matchSpacing=ma.matchNewline=ma.matchBlot=ma.matchAttributor=ma.default=void 0;var ca="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Aa){return typeof Aa}:function(Aa){return Aa&&"function"===typeof Symbol&&Aa.constructor===
301
+ Symbol&&Aa!==Symbol.prototype?"symbol":typeof Aa},ia=function(){return function(Aa,Ja){if(Array.isArray(Aa))return Aa;if(Symbol.iterator in Object(Aa)){var Ia=[],Pa=!0,Wa=!1,Qa=void 0;try{for(var Fa=Aa[Symbol.iterator](),Ea;!(Pa=(Ea=Fa.next()).done)&&(Ia.push(Ea.value),!Ja||Ia.length!==Ja);Pa=!0);}catch(Ua){Wa=!0,Qa=Ua}finally{try{if(!Pa&&Fa["return"])Fa["return"]()}finally{if(Wa)throw Qa;}}return Ia}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ha=function(){function Aa(Ja,
302
+ Ia){for(var Pa=0;Pa<Ia.length;Pa++){var Wa=Ia[Pa];Wa.enumerable=Wa.enumerable||!1;Wa.configurable=!0;"value"in Wa&&(Wa.writable=!0);Object.defineProperty(Ja,Wa.key,Wa)}}return function(Ja,Ia,Pa){Ia&&Aa(Ja.prototype,Ia);Pa&&Aa(Ja,Pa);return Ja}}();ka=fa(3);var la=ea(ka);ka=fa(2);var na=ea(ka);ka=fa(0);var qa=ea(ka);ka=fa(5);var ra=ea(ka);ka=fa(10);ka=ea(ka);var ta=fa(9);ta=ea(ta);var va=fa(36),oa=fa(37),wa=fa(13),Da=ea(wa);wa=fa(26);var Ha=fa(38),La=fa(39);fa=fa(40);var Ca=(0,ka.default)("quill:clipboard"),
303
+ Ka=[[Node.TEXT_NODE,aa],[Node.TEXT_NODE,da],["br",function(Aa,Ja){a(Ja,"\n")||Ja.insert("\n");return Ja}],[Node.ELEMENT_NODE,da],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,ja],[Node.ELEMENT_NODE,ba],[Node.ELEMENT_NODE,function(Aa,Ja){var Ia={},Pa=Aa.style||{};Pa.fontStyle&&"italic"===e(Aa).fontStyle&&(Ia.italic=!0);Pa.fontWeight&&(e(Aa).fontWeight.startsWith("bold")||700<=parseInt(e(Aa).fontWeight))&&(Ia.bold=!0);0<Object.keys(Ia).length&&(Ja=f(Ja,Ia));0<parseFloat(Pa.textIndent||0)&&(Ja=(new na.default).insert("\t").concat(Ja));
304
+ return Ja}],["li",function(Aa,Ja){var Ia=qa.default.query(Aa);if(null==Ia||"list-item"!==Ia.blotName||!a(Ja,"\n"))return Ja;Ia=-1;for(Aa=Aa.parentNode;!Aa.classList.contains("ql-clipboard");)"list"===(qa.default.query(Aa)||{}).blotName&&(Ia+=1),Aa=Aa.parentNode;return 0>=Ia?Ja:Ja.compose((new na.default).retain(Ja.length()-1).retain(1,{indent:Ia}))}],["b",n.bind(n,"bold")],["i",n.bind(n,"italic")],["style",function(){return new na.default}]],Ra=[va.AlignAttribute,Ha.DirectionAttribute].reduce(function(Aa,
305
+ Ja){Aa[Ja.keyName]=Ja;return Aa},{}),Ma=[va.AlignStyle,oa.BackgroundStyle,wa.ColorStyle,Ha.DirectionStyle,La.FontStyle,fa.SizeStyle].reduce(function(Aa,Ja){Aa[Ja.keyName]=Ja;return Aa},{});fa=function(Aa){function Ja(Ia,Pa){if(!(this instanceof Ja))throw new TypeError("Cannot call a class as a function");var Wa=x(this,(Ja.__proto__||Object.getPrototypeOf(Ja)).call(this,Ia,Pa));Wa.quill.root.addEventListener("paste",Wa.onPaste.bind(Wa));Wa.container=Wa.quill.addContainer("ql-clipboard");Wa.container.setAttribute("contenteditable",
306
+ !0);Wa.container.setAttribute("tabindex",-1);Wa.matchers=[];Ka.concat(Wa.options.matchers).forEach(function(Qa){Qa=ia(Qa,2);var Fa=Qa[1];(Pa.matchVisual||Fa!==ja)&&Wa.addMatcher(Qa[0],Fa)});return Wa}y(Ja,Aa);ha(Ja,[{key:"addMatcher",value:function(Ia,Pa){this.matchers.push([Ia,Pa])}},{key:"convert",value:function(Ia){if("string"===typeof Ia)return this.container.innerHTML=Ia.replace(/>\r?\n +</g,"><"),this.convert();Ia=this.quill.getFormat(this.quill.selection.savedRange.index);if(Ia[Da.default.blotName]){var Pa=
307
+ this.container.innerText;this.container.innerHTML="";return(new na.default).insert(Pa,z({},Da.default.blotName,Ia[Da.default.blotName]))}Ia=this.prepareMatching();Ia=ia(Ia,2);Ia=h(this.container,Ia[0],Ia[1]);a(Ia,"\n")&&null==Ia.ops[Ia.ops.length-1].attributes&&(Ia=Ia.compose((new na.default).retain(Ia.length()-1).delete(1)));Ca.log("convert",this.container.innerHTML,Ia);this.container.innerHTML="";return Ia}},{key:"dangerouslyPasteHTML",value:function(Ia,Pa){var Wa=2<arguments.length&&void 0!==arguments[2]?
308
+ arguments[2]:ra.default.sources.API;if("string"===typeof Ia)this.quill.setContents(this.convert(Ia),Pa),this.quill.setSelection(0,ra.default.sources.SILENT);else{var Qa=this.convert(Pa);this.quill.updateContents((new na.default).retain(Ia).concat(Qa),Wa);this.quill.setSelection(Ia+Qa.length(),ra.default.sources.SILENT)}}},{key:"onPaste",value:function(Ia){var Pa=this;if(!Ia.defaultPrevented&&this.quill.isEnabled()){var Wa=this.quill.getSelection(),Qa=(new na.default).retain(Wa.index),Fa=this.quill.scrollingContainer.scrollTop;
309
+ this.container.focus();this.quill.selection.update(ra.default.sources.SILENT);setTimeout(function(){Qa=Qa.concat(Pa.convert()).delete(Wa.length);Pa.quill.updateContents(Qa,ra.default.sources.USER);Pa.quill.setSelection(Qa.length()-Wa.length,ra.default.sources.SILENT);Pa.quill.scrollingContainer.scrollTop=Fa;Pa.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Ia=this,Pa=[],Wa=[];this.matchers.forEach(function(Qa){Qa=ia(Qa,2);var Fa=Qa[0],Ea=Qa[1];switch(Fa){case Node.TEXT_NODE:Wa.push(Ea);
310
+ break;case Node.ELEMENT_NODE:Pa.push(Ea);break;default:[].forEach.call(Ia.container.querySelectorAll(Fa),function(Ua){Ua["__ql-matcher"]=Ua["__ql-matcher"]||[];Ua["__ql-matcher"].push(Ea)})}});return[Pa,Wa]}}]);return Ja}(ta.default);fa.DEFAULTS={matchers:[],matchVisual:!0};ma.default=fa;ma.matchAttributor=ba;ma.matchBlot=w;ma.matchNewline=da;ma.matchSpacing=ja;ma.matchText=aa},function(ka,ma,fa){function ea(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
311
+ typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function y(f,e){for(var a=0;a<e.length;a++){var b=e[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,e,a){e&&y(f.prototype,e);a&&y(f,a);return f}}(),x=function b(f,e,
312
+ a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return b(f,e,a)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(a)}};ka=function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var a=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
313
+ return!a||"object"!==typeof a&&"function"!==typeof a?this:a}ea(e,f);z(e,[{key:"optimize",value:function(a){x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,a);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return x(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(fa(6)).default);
314
+ ka.blotName="bold";ka.tagName=["STRONG","B"];ma.default=ka},function(ka,ma,fa){function ea(da){return da&&da.__esModule?da:{default:da}}function z(da,ja){if(!da)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?da:ja}function x(da,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+typeof ja);da.prototype=Object.create(ja&&ja.prototype,{constructor:{value:da,
315
+ enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(da,ja):da.__proto__=ja)}function y(da,ja,aa){var ca=document.createElement("button");ca.setAttribute("type","button");ca.classList.add("ql-"+ja);null!=aa&&(ca.value=aa);da.appendChild(ca)}function f(da,ja){Array.isArray(ja[0])||(ja=[ja]);ja.forEach(function(aa){var ca=document.createElement("span");ca.classList.add("ql-formats");aa.forEach(function(ia){if("string"===typeof ia)y(ca,ia);else{var ha=Object.keys(ia)[0];
316
+ ia=ia[ha];Array.isArray(ia)?e(ca,ha,ia):y(ca,ha,ia)}});da.appendChild(ca)})}function e(da,ja,aa){var ca=document.createElement("select");ca.classList.add("ql-"+ja);aa.forEach(function(ia){var ha=document.createElement("option");!1!==ia?ha.setAttribute("value",ia):ha.setAttribute("selected","selected");ca.appendChild(ha)});da.appendChild(ca)}Object.defineProperty(ma,"__esModule",{value:!0});ma.addControls=ma.default=void 0;var a=function(){return function(da,ja){if(Array.isArray(da))return da;if(Symbol.iterator in
317
+ Object(da)){var aa=[],ca=!0,ia=!1,ha=void 0;try{for(var la=da[Symbol.iterator](),na;!(ca=(na=la.next()).done)&&(aa.push(na.value),!ja||aa.length!==ja);ca=!0);}catch(qa){ia=!0,ha=qa}finally{try{if(!ca&&la["return"])la["return"]()}finally{if(ia)throw ha;}}return aa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function da(ja,aa){for(var ca=0;ca<aa.length;ca++){var ia=aa[ca];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=
318
+ !0);Object.defineProperty(ja,ia.key,ia)}}return function(ja,aa,ca){aa&&da(ja.prototype,aa);ca&&da(ja,ca);return ja}}();ka=fa(2);var h=ea(ka);ka=fa(0);var n=ea(ka);ka=fa(5);var ba=ea(ka);ka=fa(10);ka=ea(ka);fa=fa(9);fa=ea(fa);var w=(0,ka.default)("quill:toolbar");fa=function(da){function ja(aa,ca){if(!(this instanceof ja))throw new TypeError("Cannot call a class as a function");var ia=z(this,(ja.__proto__||Object.getPrototypeOf(ja)).call(this,aa,ca));Array.isArray(ia.options.container)?(ca=document.createElement("div"),
319
+ f(ca,ia.options.container),aa.container.parentNode.insertBefore(ca,aa.container),ia.container=ca):ia.container="string"===typeof ia.options.container?document.querySelector(ia.options.container):ia.options.container;if(!(ia.container instanceof HTMLElement)){var ha;return ha=w.error("Container required for toolbar",ia.options),z(ia,ha)}ia.container.classList.add("ql-toolbar");ia.controls=[];ia.handlers={};Object.keys(ia.options.handlers).forEach(function(la){ia.addHandler(la,ia.options.handlers[la])});
320
+ [].forEach.call(ia.container.querySelectorAll("button, select"),function(la){ia.attach(la)});ia.quill.on(ba.default.events.EDITOR_CHANGE,function(la,na){la===ba.default.events.SELECTION_CHANGE&&ia.update(na)});ia.quill.on(ba.default.events.SCROLL_OPTIMIZE,function(){var la=ia.quill.selection.getRange();la=a(la,1)[0];ia.update(la)});return ia}x(ja,da);b(ja,[{key:"addHandler",value:function(aa,ca){this.handlers[aa]=ca}},{key:"attach",value:function(aa){var ca=this,ia=[].find.call(aa.classList,function(ha){return 0===
321
+ ha.indexOf("ql-")});if(ia){ia=ia.slice(3);"BUTTON"===aa.tagName&&aa.setAttribute("type","button");if(null==this.handlers[ia]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[ia]){w.warn("ignoring attaching to disabled format",ia,aa);return}if(null==n.default.query(ia)){w.warn("ignoring attaching to nonexistent format",ia,aa);return}}aa.addEventListener("SELECT"===aa.tagName?"change":"click",function(ha){if("SELECT"===aa.tagName){if(0>aa.selectedIndex)return;var la=aa.options[aa.selectedIndex];
322
+ la=la.hasAttribute("selected")?!1:la.value||!1}else la=aa.classList.contains("ql-active")?!1:aa.value||!aa.hasAttribute("value"),ha.preventDefault();ca.quill.focus();ha=ca.quill.selection.getRange();ha=a(ha,1)[0];if(null!=ca.handlers[ia])ca.handlers[ia].call(ca,la);else if(n.default.query(ia).prototype instanceof n.default.Embed){la=prompt("Enter "+ia);if(!la)return;var na=ca.quill,qa=na.updateContents,ra=(new h.default).retain(ha.index).delete(ha.length),ta=ra.insert,va={},oa=ia;oa in va?Object.defineProperty(va,
323
+ oa,{value:la,enumerable:!0,configurable:!0,writable:!0}):va[oa]=la;qa.call(na,ta.call(ra,va),ba.default.sources.USER)}else ca.quill.format(ia,la,ba.default.sources.USER);ca.update(ha)});this.controls.push([ia,aa])}}},{key:"update",value:function(aa){var ca=null==aa?{}:this.quill.getFormat(aa);this.controls.forEach(function(ia){ia=a(ia,2);var ha=ia[0];ia=ia[1];if("SELECT"===ia.tagName){var la=void 0;null==aa?la=null:null==ca[ha]?la=ia.querySelector("option[selected]"):Array.isArray(ca[ha])||(ha=ca[ha],
324
+ "string"===typeof ha&&(ha=ha.replace(/"/g,'\\"')),la=ia.querySelector('option[value="'+ha+'"]'));null==la?(ia.value="",ia.selectedIndex=-1):la.selected=!0}else null==aa?ia.classList.remove("ql-active"):ia.hasAttribute("value")?(ha=ca[ha]===ia.getAttribute("value")||null!=ca[ha]&&ca[ha].toString()===ia.getAttribute("value")||null==ca[ha]&&!ia.getAttribute("value"),ia.classList.toggle("ql-active",ha)):ia.classList.toggle("ql-active",null!=ca[ha])})}}]);return ja}(fa.default);fa.DEFAULTS={};fa.DEFAULTS=
325
+ {container:null,handlers:{clean:function(){var da=this,ja=this.quill.getSelection();null!=ja&&(0==ja.length?(ja=this.quill.getFormat(),Object.keys(ja).forEach(function(aa){null!=n.default.query(aa,n.default.Scope.INLINE)&&da.quill.format(aa,!1)})):this.quill.removeFormat(ja,ba.default.sources.USER))},direction:function(da){var ja=this.quill.getFormat().align;"rtl"===da&&null==ja?this.quill.format("align","right",ba.default.sources.USER):da||"right"!==ja||this.quill.format("align",!1,ba.default.sources.USER);
326
+ this.quill.format("direction",da,ba.default.sources.USER)},indent:function(da){var ja=this.quill.getFormat(this.quill.getSelection()),aa=parseInt(ja.indent||0);if("+1"===da||"-1"===da)da="+1"===da?1:-1,"rtl"===ja.direction&&(da*=-1),this.quill.format("indent",aa+da,ba.default.sources.USER)},link:function(da){!0===da&&(da=prompt("Enter link URL:"));this.quill.format("link",da,ba.default.sources.USER)},list:function(da){var ja=this.quill.getFormat(this.quill.getSelection());"check"===da?"checked"===
327
+ ja.list||"unchecked"===ja.list?this.quill.format("list",!1,ba.default.sources.USER):this.quill.format("list","unchecked",ba.default.sources.USER):this.quill.format("list",da,ba.default.sources.USER)}}};ma.default=fa;ma.addControls=f},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(ka,
328
+ ma,fa){function ea(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function z(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,
329
+ "__esModule",{value:!0});var x=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),y=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?
330
+ void 0:a.call(b)}};ka=function(e){function a(b,h){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");b=ea(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,b));b.label.innerHTML=h;b.container.classList.add("ql-color-picker");[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(n){n.classList.add("ql-primary")});return b}z(a,e);x(a,[{key:"buildItem",value:function(b){var h=y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),
331
+ "buildItem",this).call(this,b);h.style.backgroundColor=b.getAttribute("value")||"";return h}},{key:"selectItem",value:function(b,h){y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,b,h);h=this.label.querySelector(".ql-color-label");b=b?b.getAttribute("data-value")||"":"";h&&("line"===h.tagName?h.style.stroke=b:h.style.fill=b)}}]);return a}(function(e){return e&&e.__esModule?e:{default:e}}(fa(28)).default);ma.default=ka},function(ka,ma,fa){function ea(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
332
+ return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function z(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var x=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=
333
+ h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),y=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};ka=function(e){function a(b,h){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
334
+ b=ea(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,b));b.container.classList.add("ql-icon-picker");[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(n){n.innerHTML=h[n.getAttribute("data-value")||""]});b.defaultItem=b.container.querySelector(".ql-selected");b.selectItem(b.defaultItem);return b}z(a,e);x(a,[{key:"selectItem",value:function(b,h){y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,b,h);b=b||this.defaultItem;this.label.innerHTML=
335
+ b.innerHTML}}]);return a}(function(e){return e&&e.__esModule?e:{default:e}}(fa(28)).default);ma.default=ka},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});var fa=function(){function ea(z,x){for(var y=0;y<x.length;y++){var f=x[y];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(z,f.key,f)}}return function(z,x,y){x&&ea(z.prototype,x);y&&ea(z,y);return z}}();ka=function(){function ea(z,x){var y=this;if(!(this instanceof ea))throw new TypeError("Cannot call a class as a function");
336
+ this.quill=z;this.boundsContainer=x||document.body;this.root=z.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){y.root.style.marginTop=-1*y.quill.root.scrollTop+"px"});this.hide()}fa(ea,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(z){var x=z.left+z.width/2-this.root.offsetWidth/2,y=z.bottom+this.quill.root.scrollTop;this.root.style.left=
337
+ x+"px";this.root.style.top=y+"px";this.root.classList.remove("ql-flip");var f=this.boundsContainer.getBoundingClientRect(),e=this.root.getBoundingClientRect(),a=0;e.right>f.right&&(a=f.right-e.right,this.root.style.left=x+a+"px");e.left<f.left&&(a=f.left-e.left,this.root.style.left=x+a+"px");e.bottom>f.bottom&&(this.root.style.top=y-(z.bottom-z.top+(e.bottom-e.top))+"px",this.root.classList.add("ql-flip"));return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
338
+ return ea}();ma.default=ka},function(ka,ma,fa){function ea(ia){return ia&&ia.__esModule?ia:{default:ia}}function z(ia,ha){if(!(ia instanceof ha))throw new TypeError("Cannot call a class as a function");}function x(ia,ha){if(!ia)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ha||"object"!==typeof ha&&"function"!==typeof ha?ia:ha}function y(ia,ha){if("function"!==typeof ha&&null!==ha)throw new TypeError("Super expression must either be null or a function, not "+
339
+ typeof ha);ia.prototype=Object.create(ha&&ha.prototype,{constructor:{value:ia,enumerable:!1,writable:!0,configurable:!0}});ha&&(Object.setPrototypeOf?Object.setPrototypeOf(ia,ha):ia.__proto__=ha)}Object.defineProperty(ma,"__esModule",{value:!0});var f=function(){return function(ia,ha){if(Array.isArray(ia))return ia;if(Symbol.iterator in Object(ia)){var la=[],na=!0,qa=!1,ra=void 0;try{for(var ta=ia[Symbol.iterator](),va;!(na=(va=ta.next()).done)&&(la.push(va.value),!ha||la.length!==ha);na=!0);}catch(oa){qa=
340
+ !0,ra=oa}finally{try{if(!na&&ta["return"])ta["return"]()}finally{if(qa)throw ra;}}return la}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function qa(ha,la,na){null===ha&&(ha=Function.prototype);var ra=Object.getOwnPropertyDescriptor(ha,la);if(void 0===ra){if(ha=Object.getPrototypeOf(ha),null!==ha)return qa(ha,la,na)}else{if("value"in ra)return ra.value;la=ra.get;return void 0===la?void 0:la.call(na)}},a=function(){function ha(la,na){for(var qa=0;qa<na.length;qa++){var ra=
341
+ na[qa];ra.enumerable=ra.enumerable||!1;ra.configurable=!0;"value"in ra&&(ra.writable=!0);Object.defineProperty(la,ra.key,ra)}}return function(la,na,qa){na&&ha(la.prototype,na);qa&&ha(la,qa);return la}}();ka=fa(3);ka=ea(ka);var b=fa(8),h=ea(b);b=fa(43);var n=ea(b),ba=fa(27),w=ea(ba),da=fa(15);fa=fa(41);var ja=ea(fa),aa=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];fa=function(ha){function la(na,qa){z(this,la);null!=qa.modules.toolbar&&
342
+ null==qa.modules.toolbar.container&&(qa.modules.toolbar.container=aa);na=x(this,(la.__proto__||Object.getPrototypeOf(la)).call(this,na,qa));na.quill.container.classList.add("ql-snow");return na}y(la,ha);a(la,[{key:"extendToolbar",value:function(na){na.container.classList.add("ql-snow");this.buildButtons([].slice.call(na.container.querySelectorAll("button")),ja.default);this.buildPickers([].slice.call(na.container.querySelectorAll("select")),ja.default);this.tooltip=new ca(this.quill,this.options.bounds);
343
+ na.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(qa,ra){na.handlers.link.call(na,!ra.format.link)})}}]);return la}(n.default);fa.DEFAULTS=(0,ka.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ha){ha?(ha=this.quill.getSelection(),null!=ha&&0!=ha.length&&(ha=this.quill.getText(ha),/^\S+@\S+\.\S+$/.test(ha)&&0!==ha.indexOf("mailto:")&&(ha="mailto:"+ha),this.quill.theme.tooltip.edit("link",ha))):this.quill.format("link",
344
+ !1)}}}}});var ca=function(ha){function la(na,qa){z(this,la);na=x(this,(la.__proto__||Object.getPrototypeOf(la)).call(this,na,qa));na.preview=na.root.querySelector("a.ql-preview");return na}y(la,ha);a(la,[{key:"listen",value:function(){var na=this;e(la.prototype.__proto__||Object.getPrototypeOf(la.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(qa){na.root.classList.contains("ql-editing")?na.save():na.edit("link",na.preview.textContent);
345
+ qa.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(qa){if(null!=na.linkRange){var ra=na.linkRange;na.restoreFocus();na.quill.formatText(ra,"link",!1,h.default.sources.USER);delete na.linkRange}qa.preventDefault();na.hide()});this.quill.on(h.default.events.SELECTION_CHANGE,function(qa,ra,ta){if(null!=qa){if(0===qa.length&&ta===h.default.sources.USER){if(ra=na.quill.scroll.descendant(w.default,qa.index),ta=f(ra,2),ra=ta[0],ta=ta[1],null!=ra){na.linkRange=
346
+ new da.Range(qa.index-ta,ra.length());qa=w.default.formats(ra.domNode);na.preview.textContent=qa;na.preview.setAttribute("href",qa);na.show();na.position(na.quill.getBounds(na.linkRange));return}}else delete na.linkRange;na.hide()}})}},{key:"show",value:function(){e(la.prototype.__proto__||Object.getPrototypeOf(la.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return la}(b.BaseTooltip);ca.TEMPLATE='<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-action"></a><a class="ql-remove"></a>';
347
+ ma.default=fa},function(ka,ma,fa){function ea(Ra){return Ra&&Ra.__esModule?Ra:{default:Ra}}Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(29);ka=ea(ka);var z=fa(36),x=fa(38),y=fa(64),f=fa(65);f=ea(f);var e=fa(66);e=ea(e);var a=fa(67),b=ea(a),h=fa(37),n=fa(26),ba=fa(39),w=fa(40),da=fa(56);da=ea(da);var ja=fa(68);ja=ea(ja);var aa=fa(27);aa=ea(aa);var ca=fa(69);ca=ea(ca);var ia=fa(70);ia=ea(ia);var ha=fa(71);ha=ea(ha);var la=fa(72);la=ea(la);var na=fa(73);na=ea(na);var qa=fa(13),ra=ea(qa),ta=
348
+ fa(74);ta=ea(ta);var va=fa(75);va=ea(va);var oa=fa(57);oa=ea(oa);var wa=fa(41);wa=ea(wa);var Da=fa(28);Da=ea(Da);var Ha=fa(59);Ha=ea(Ha);var La=fa(60);La=ea(La);var Ca=fa(61);Ca=ea(Ca);var Ka=fa(108);Ka=ea(Ka);fa=fa(62);fa=ea(fa);ka.default.register({"attributors/attribute/direction":x.DirectionAttribute,"attributors/class/align":z.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":n.ColorClass,"attributors/class/direction":x.DirectionClass,"attributors/class/font":ba.FontClass,
349
+ "attributors/class/size":w.SizeClass,"attributors/style/align":z.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":n.ColorStyle,"attributors/style/direction":x.DirectionStyle,"attributors/style/font":ba.FontStyle,"attributors/style/size":w.SizeStyle},!0);ka.default.register({"formats/align":z.AlignClass,"formats/direction":x.DirectionClass,"formats/indent":y.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":n.ColorStyle,"formats/font":ba.FontClass,
350
+ "formats/size":w.SizeClass,"formats/blockquote":f.default,"formats/code-block":ra.default,"formats/header":e.default,"formats/list":b.default,"formats/bold":da.default,"formats/code":qa.Code,"formats/italic":ja.default,"formats/link":aa.default,"formats/script":ca.default,"formats/strike":ia.default,"formats/underline":ha.default,"formats/image":la.default,"formats/video":na.default,"formats/list/item":a.ListItem,"modules/formula":ta.default,"modules/syntax":va.default,"modules/toolbar":oa.default,
351
+ "themes/bubble":Ka.default,"themes/snow":fa.default,"ui/icons":wa.default,"ui/picker":Da.default,"ui/icon-picker":La.default,"ui/color-picker":Ha.default,"ui/tooltip":Ca.default},!0);ma.default=ka.default},function(ka,ma,fa){function ea(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,
352
+ f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});ma.IndentClass=void 0;var z=function(){function y(f,e){for(var a=0;a<e.length;a++){var b=e[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,e,a){e&&y(f.prototype,e);a&&y(f,a);return f}}(),x=function b(f,e,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return b(f,e,
353
+ a)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(a)}};ka=function(f){return f&&f.__esModule?f:{default:f}}(fa(0));ka=new (function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var a=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}ea(e,f);z(e,[{key:"add",
354
+ value:function(a,b){if("+1"===b||"-1"===b){var h=this.value(a)||0;b="+1"===b?h+1:h-1}return 0===b?(this.remove(a),!0):x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,a,b)}},{key:"canAdd",value:function(a,b){return x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,a,b)||x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,a,parseInt(b))}},{key:"value",value:function(a){return parseInt(x(e.prototype.__proto__||
355
+ Object.getPrototypeOf(e.prototype),"value",this).call(this,a))||void 0}}]);return e}(ka.default.Attributor.Class))("indent","ql-indent",{scope:ka.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});ma.IndentClass=ka},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?
356
+ Object.setPrototypeOf(z,x):z.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(4)).default);
357
+ ka.blotName="blockquote";ka.tagName="blockquote";ma.default=ka},function(ka,ma,fa){function ea(x,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function x(y,f){for(var e=0;e<f.length;e++){var a=
358
+ f[e];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(y,a.key,a)}}return function(y,f,e){f&&x(y.prototype,f);e&&x(y,e);return y}}();ka=function(x){function y(){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");var f=(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?
359
+ this:f}ea(y,x);z(y,null,[{key:"formats",value:function(f){return this.tagName.indexOf(f.tagName)+1}}]);return y}(function(x){return x&&x.__esModule?x:{default:x}}(fa(4)).default);ka.blotName="header";ka.tagName="H1 H2 H3 H4 H5 H6".split(" ");ma.default=ka},function(ka,ma,fa){function ea(n){return n&&n.__esModule?n:{default:n}}function z(n,ba){if(!(n instanceof ba))throw new TypeError("Cannot call a class as a function");}function x(n,ba){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
360
+ return!ba||"object"!==typeof ba&&"function"!==typeof ba?n:ba}function y(n,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+typeof ba);n.prototype=Object.create(ba&&ba.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(n,ba):n.__proto__=ba)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.ListItem=void 0;var f=function(){function n(ba,w){for(var da=
361
+ 0;da<w.length;da++){var ja=w[da];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ba,ja.key,ja)}}return function(ba,w,da){w&&n(ba.prototype,w);da&&n(ba,da);return ba}}(),e=function ja(ba,w,da){null===ba&&(ba=Function.prototype);var aa=Object.getOwnPropertyDescriptor(ba,w);if(void 0===aa){if(ba=Object.getPrototypeOf(ba),null!==ba)return ja(ba,w,da)}else{if("value"in aa)return aa.value;w=aa.get;return void 0===w?void 0:w.call(da)}};ka=fa(0);var a=
362
+ ea(ka);ka=fa(4);ka=ea(ka);fa=fa(25);fa=ea(fa);var b=function(ba){function w(){z(this,w);return x(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}y(w,ba);f(w,[{key:"format",value:function(da,ja){da!==h.blotName||ja?e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,da,ja):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
363
+ "remove",this).call(this)}},{key:"replaceWith",value:function(da,ja){this.parent.isolate(this.offset(this.parent),this.length());if(da===this.parent.statics.blotName)return this.parent.replaceWith(da,ja),this;this.parent.unwrap();return e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,da,ja)}}],[{key:"formats",value:function(da){return da.tagName===this.tagName?void 0:e(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,da)}}]);return w}(ka.default);
364
+ b.blotName="list-item";b.tagName="LI";var h=function(ba){function w(da){function ja(ca){if(ca.target.parentNode===da){var ia=aa.statics.formats(da);ca=a.default.find(ca.target);"checked"===ia?ca.format("list","unchecked"):"unchecked"===ia&&ca.format("list","checked")}}z(this,w);var aa=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,da));da.addEventListener("touchstart",ja);da.addEventListener("mousedown",ja);return aa}y(w,ba);f(w,null,[{key:"create",value:function(da){var ja="ordered"===
365
+ da?"OL":"UL";ja=e(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,ja);"checked"!==da&&"unchecked"!==da||ja.setAttribute("data-checked","checked"===da);return ja}},{key:"formats",value:function(da){if("OL"===da.tagName)return"ordered";if("UL"===da.tagName)return da.hasAttribute("data-checked")?"true"===da.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);f(w,[{key:"format",value:function(da,ja){0<this.children.length&&this.children.tail.format(da,ja)}},{key:"formats",value:function(){var da=
366
+ {},ja=this.statics.blotName,aa=this.statics.formats(this.domNode);ja in da?Object.defineProperty(da,ja,{value:aa,enumerable:!0,configurable:!0,writable:!0}):da[ja]=aa;return da}},{key:"insertBefore",value:function(da,ja){da instanceof b?e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,da,ja):(ja=null==ja?this.length():ja.offset(this),ja=this.split(ja),ja.parent.insertBefore(da,ja))}},{key:"optimize",value:function(da){e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
367
+ "optimize",this).call(this,da);da=this.next;null!=da&&da.prev===this&&da.statics.blotName===this.statics.blotName&&da.domNode.tagName===this.domNode.tagName&&da.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(da.moveChildren(this),da.remove())}},{key:"replace",value:function(da){if(da.statics.blotName!==this.statics.blotName){var ja=a.default.create(this.statics.defaultChild);da.moveChildren(ja);this.appendChild(ja)}e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
368
+ "replace",this).call(this,da)}}]);return w}(fa.default);h.blotName="list";h.scope=a.default.Scope.BLOCK_BLOT;h.tagName=["OL","UL"];h.defaultChild="list-item";h.allowedChildren=[b];ma.ListItem=b;ma.default=h},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?
369
+ Object.setPrototypeOf(z,x):z.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(56)).default);
370
+ ka.blotName="italic";ka.tagName=["EM","I"];ma.default=ka},function(ka,ma,fa){function ea(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function y(f,e){for(var a=0;a<e.length;a++){var b=
371
+ e[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,e,a){e&&y(f.prototype,e);a&&y(f,a);return f}}(),x=function b(f,e,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return b(f,e,a)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(a)}};ka=function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
372
+ var a=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}ea(e,f);z(e,null,[{key:"create",value:function(a){return"super"===a?document.createElement("sup"):"sub"===a?document.createElement("sub"):x(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,a)}},{key:"formats",value:function(a){if("SUB"===a.tagName)return"sub";if("SUP"===
373
+ a.tagName)return"super"}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(fa(6)).default);ka.blotName="script";ka.tagName=["SUB","SUP"];ma.default=ka},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(z,x):z.__proto__=x)}
374
+ Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(6)).default);ka.blotName="strike";ka.tagName="S";
375
+ ma.default=ka},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(z,x):z.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");
376
+ var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(6)).default);ka.blotName="underline";ka.tagName="U";ma.default=ka},function(ka,ma,fa){function ea(e,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+
377
+ typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function e(a,b){for(var h=0;h<b.length;h++){var n=b[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,h){b&&e(a.prototype,b);h&&e(a,h);return a}}(),x=function n(a,b,
378
+ h){null===a&&(a=Function.prototype);var ba=Object.getOwnPropertyDescriptor(a,b);if(void 0===ba){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,h)}else{if("value"in ba)return ba.value;b=ba.get;return void 0===b?void 0:b.call(h)}};ka=function(a){return a&&a.__esModule?a:{default:a}}(fa(0));var y=fa(27),f=["alt","height","width"];fa=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var h=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);
379
+ if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}ea(b,a);z(b,[{key:"format",value:function(h,n){-1<f.indexOf(h)?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=x(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,h);"string"===typeof h&&
380
+ n.setAttribute("src",this.sanitize(h));return n}},{key:"formats",value:function(h){return f.reduce(function(n,ba){h.hasAttribute(ba)&&(n[ba]=h.getAttribute(ba));return n},{})}},{key:"match",value:function(h){return/\.(jpe?g|gif|png)$/.test(h)||/^data:image\/.+;base64/.test(h)}},{key:"sanitize",value:function(h){return(0,y.sanitize)(h,["http","https","data"])?h:"//:0"}},{key:"value",value:function(h){return h.getAttribute("src")}}]);return b}(ka.default.Embed);fa.blotName="image";fa.tagName="IMG";
381
+ ma.default=fa},function(ka,ma,fa){function ea(e,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function e(a,b){for(var h=0;h<b.length;h++){var n=b[h];n.enumerable=n.enumerable||!1;
382
+ n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,h){b&&e(a.prototype,b);h&&e(a,h);return a}}(),x=function n(a,b,h){null===a&&(a=Function.prototype);var ba=Object.getOwnPropertyDescriptor(a,b);if(void 0===ba){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,h)}else{if("value"in ba)return ba.value;b=ba.get;return void 0===b?void 0:b.call(h)}};ka=fa(4);var y=function(a){return a&&a.__esModule?a:{default:a}}(fa(27)),f=["height","width"];fa=function(a){function b(){if(!(this instanceof
383
+ b))throw new TypeError("Cannot call a class as a function");var h=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}ea(b,a);z(b,[{key:"format",value:function(h,n){-1<f.indexOf(h)?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,h,n)}}],
384
+ [{key:"create",value:function(h){var n=x(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,h);n.setAttribute("frameborder","0");n.setAttribute("allowfullscreen",!0);n.setAttribute("src",this.sanitize(h));return n}},{key:"formats",value:function(h){return f.reduce(function(n,ba){h.hasAttribute(ba)&&(n[ba]=h.getAttribute(ba));return n},{})}},{key:"sanitize",value:function(h){return y.default.sanitize(h)}},{key:"value",value:function(h){return h.getAttribute("src")}}]);return b}(ka.BlockEmbed);
385
+ fa.blotName="video";fa.className="ql-video";fa.tagName="IFRAME";ma.default=fa},function(ka,ma,fa){function ea(n){return n&&n.__esModule?n:{default:n}}function z(n,ba){if(!(n instanceof ba))throw new TypeError("Cannot call a class as a function");}function x(n,ba){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&"function"!==typeof ba?n:ba}function y(n,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+
386
+ typeof ba);n.prototype=Object.create(ba&&ba.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(n,ba):n.__proto__=ba)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.FormulaBlot=void 0;var f=function(){function n(ba,w){for(var da=0;da<w.length;da++){var ja=w[da];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ba,ja.key,ja)}}return function(ba,w,da){w&&n(ba.prototype,
387
+ w);da&&n(ba,da);return ba}}(),e=function ja(ba,w,da){null===ba&&(ba=Function.prototype);var aa=Object.getOwnPropertyDescriptor(ba,w);if(void 0===aa){if(ba=Object.getPrototypeOf(ba),null!==ba)return ja(ba,w,da)}else{if("value"in aa)return aa.value;w=aa.get;return void 0===w?void 0:w.call(da)}};ka=fa(35);ka=ea(ka);var a=fa(5),b=ea(a);fa=fa(9);fa=ea(fa);var h=function(ba){function w(){z(this,w);return x(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}y(w,ba);f(w,null,[{key:"create",
388
+ value:function(da){var ja=e(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,da);"string"===typeof da&&(window.katex.render(da,ja,{throwOnError:!1,errorColor:"#f00"}),ja.setAttribute("data-value",da));return ja}},{key:"value",value:function(da){return da.getAttribute("data-value")}}]);return w}(ka.default);h.blotName="formula";h.className="ql-formula";h.tagName="SPAN";fa=function(ba){function w(){z(this,w);var da=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
389
+ return da}y(w,ba);f(w,null,[{key:"register",value:function(){b.default.register(h,!0)}}]);return w}(fa.default);ma.FormulaBlot=h;ma.default=fa},function(ka,ma,fa){function ea(ba){return ba&&ba.__esModule?ba:{default:ba}}function z(ba,w){if(!(ba instanceof w))throw new TypeError("Cannot call a class as a function");}function x(ba,w){if(!ba)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!==typeof w&&"function"!==typeof w?ba:w}function y(ba,w){if("function"!==
390
+ typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);ba.prototype=Object.create(w&&w.prototype,{constructor:{value:ba,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(ba,w):ba.__proto__=w)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.CodeToken=ma.CodeBlock=void 0;var f=function(){function ba(w,da){for(var ja=0;ja<da.length;ja++){var aa=da[ja];aa.enumerable=aa.enumerable||!1;aa.configurable=
391
+ !0;"value"in aa&&(aa.writable=!0);Object.defineProperty(w,aa.key,aa)}}return function(w,da,ja){da&&ba(w.prototype,da);ja&&ba(w,ja);return w}}(),e=function aa(w,da,ja){null===w&&(w=Function.prototype);var ca=Object.getOwnPropertyDescriptor(w,da);if(void 0===ca){if(w=Object.getPrototypeOf(w),null!==w)return aa(w,da,ja)}else{if("value"in ca)return ca.value;da=ca.get;return void 0===da?void 0:da.call(ja)}};ka=fa(0);ka=ea(ka);var a=fa(5),b=ea(a);a=fa(9);a=ea(a);fa=fa(13);var h=function(w){function da(){z(this,
392
+ da);return x(this,(da.__proto__||Object.getPrototypeOf(da)).apply(this,arguments))}y(da,w);f(da,[{key:"replaceWith",value:function(ja){this.domNode.textContent=this.domNode.textContent;this.attach();e(da.prototype.__proto__||Object.getPrototypeOf(da.prototype),"replaceWith",this).call(this,ja)}},{key:"highlight",value:function(ja){var aa=this.domNode.textContent;if(this.cachedText!==aa){if(0<aa.trim().length||null==this.cachedText)this.domNode.innerHTML=ja(aa),this.domNode.normalize(),this.attach();
393
+ this.cachedText=aa}}}]);return da}(ea(fa).default);h.className="ql-syntax";var n=new ka.default.Attributor.Class("token","hljs",{scope:ka.default.Scope.INLINE});fa=function(w){function da(ja,aa){z(this,da);var ca=x(this,(da.__proto__||Object.getPrototypeOf(da)).call(this,ja,aa));if("function"!==typeof ca.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var ia=null;ca.quill.on(b.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(ia);
394
+ ia=setTimeout(function(){ca.highlight();ia=null},ca.options.interval)});ca.highlight();return ca}y(da,w);f(da,null,[{key:"register",value:function(){b.default.register(n,!0);b.default.register(h,!0)}}]);f(da,[{key:"highlight",value:function(){var ja=this;if(!this.quill.selection.composing){this.quill.update(b.default.sources.USER);var aa=this.quill.getSelection();this.quill.scroll.descendants(h).forEach(function(ca){ca.highlight(ja.options.highlight)});this.quill.update(b.default.sources.SILENT);
395
+ null!=aa&&this.quill.setSelection(aa,b.default.sources.SILENT)}}}]);return da}(a.default);fa.DEFAULTS={highlight:function(){return null==window.hljs?null:function(w){return window.hljs.highlightAuto(w).value}}(),interval:1E3};ma.CodeBlock=h;ma.CodeToken=n;ma.default=fa},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(ka){ka.exports=
396
+ '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},
397
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},
398
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},
399
+ function(ka){ka.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},
400
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},
401
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},
402
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},
403
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},
404
+ function(ka){ka.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},
405
+ function(ka){ka.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},
406
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},
407
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},
408
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},
409
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(ka){ka.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},
410
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},
411
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},
412
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},
413
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},
414
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(ka,ma,fa){function ea(ja){return ja&&ja.__esModule?ja:{default:ja}}function z(ja,aa){if(!(ja instanceof aa))throw new TypeError("Cannot call a class as a function");}function x(ja,aa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&
415
+ "function"!==typeof aa?ja:aa}function y(ja,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+typeof aa);ja.prototype=Object.create(aa&&aa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,aa):ja.__proto__=aa)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.BubbleTooltip=void 0;var f=function ha(aa,ca,ia){null===aa&&(aa=Function.prototype);
416
+ var la=Object.getOwnPropertyDescriptor(aa,ca);if(void 0===la){if(aa=Object.getPrototypeOf(aa),null!==aa)return ha(aa,ca,ia)}else{if("value"in la)return la.value;ca=la.get;return void 0===ca?void 0:ca.call(ia)}},e=function(){function aa(ca,ia){for(var ha=0;ha<ia.length;ha++){var la=ia[ha];la.enumerable=la.enumerable||!1;la.configurable=!0;"value"in la&&(la.writable=!0);Object.defineProperty(ca,la.key,la)}}return function(ca,ia,ha){ia&&aa(ca.prototype,ia);ha&&aa(ca,ha);return ca}}();ka=fa(3);ka=ea(ka);
417
+ var a=fa(8),b=ea(a);a=fa(43);var h=ea(a),n=fa(15);fa=fa(41);var ba=ea(fa),w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];fa=function(aa){function ca(ia,ha){z(this,ca);null!=ha.modules.toolbar&&null==ha.modules.toolbar.container&&(ha.modules.toolbar.container=w);ia=x(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,ia,ha));ia.quill.container.classList.add("ql-bubble");return ia}y(ca,aa);e(ca,[{key:"extendToolbar",value:function(ia){this.tooltip=new da(this.quill,this.options.bounds);
418
+ this.tooltip.root.appendChild(ia.container);this.buildButtons([].slice.call(ia.container.querySelectorAll("button")),ba.default);this.buildPickers([].slice.call(ia.container.querySelectorAll("select")),ba.default)}}]);return ca}(h.default);fa.DEFAULTS=(0,ka.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(aa){aa?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var da=function(aa){function ca(ia,ha){z(this,ca);var la=x(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,
419
+ ia,ha));la.quill.on(b.default.events.EDITOR_CHANGE,function(na,qa,ra,ta){na===b.default.events.SELECTION_CHANGE&&(null!=qa&&0<qa.length&&ta===b.default.sources.USER?(la.show(),la.root.style.left="0px",la.root.style.width="",la.root.style.width=la.root.offsetWidth+"px",na=la.quill.getLines(qa.index,qa.length),1===na.length?la.position(la.quill.getBounds(qa)):(ra=na[na.length-1],na=la.quill.getIndex(ra),qa=Math.min(ra.length()-1,qa.index+qa.length-na),qa=la.quill.getBounds(new n.Range(na,qa)),la.position(qa))):
420
+ document.activeElement!==la.textbox&&la.quill.hasFocus()&&la.hide())});return la}y(ca,aa);e(ca,[{key:"listen",value:function(){var ia=this;f(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){ia.root.classList.remove("ql-editing")});this.quill.on(b.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ia.root.classList.contains("ql-hidden")){var ha=ia.quill.getSelection();null!=
421
+ ha&&ia.position(ia.quill.getBounds(ha))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ia){ia=f(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"position",this).call(this,ia);var ha=this.root.querySelector(".ql-tooltip-arrow");ha.style.marginLeft="";if(0===ia)return ia;ha.style.marginLeft=-1*ia-ha.offsetWidth/2+"px"}}]);return ca}(a.BaseTooltip);da.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>';
422
+ ma.BubbleTooltip=da;ma.default=fa},function(ka,ma,fa){ka.exports=fa(63)}])["default"]})}).call(this,r(455).Buffer)}}]);}).call(this || window)