@pdftron/pdfjs-express 8.6.0 → 8.7.0

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 (196) 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 -28
  8. package/public/core/ExternalAnnotationMerger.chunk.js +13 -14
  9. package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
  10. package/public/core/HttpPartRetriever.chunk.js +12 -12
  11. package/public/core/IOSPartRetriever.chunk.js +2 -2
  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 -16
  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 -38
  19. package/public/core/WinRTPartRetriever.chunk.js +2 -3
  20. package/public/core/pdfjs/PDFJSDocumentType.js +154 -151
  21. package/public/core/pikaday.chunk.js +33 -33
  22. package/public/core/vendors.ascii85.chunk.js +6 -6
  23. package/public/core/vendors.ascii85.quill.chunk.js +34 -34
  24. package/public/core/vendors.pako.chunk.js +80 -80
  25. package/public/core/vendors.quill.chunk.js +394 -394
  26. package/public/core/webviewer-core.min.js +2793 -2758
  27. package/public/ui/chunks/10.chunk.js +1 -1
  28. package/public/ui/chunks/100.chunk.js +1 -1
  29. package/public/ui/chunks/101.chunk.js +1 -1
  30. package/public/ui/chunks/102.chunk.js +1 -1
  31. package/public/ui/chunks/103.chunk.js +1 -1
  32. package/public/ui/chunks/104.chunk.js +1 -1
  33. package/public/ui/chunks/105.chunk.js +1 -1
  34. package/public/ui/chunks/106.chunk.js +1 -1
  35. package/public/ui/chunks/107.chunk.js +1 -1
  36. package/public/ui/chunks/108.chunk.js +1 -1
  37. package/public/ui/chunks/109.chunk.js +1 -1
  38. package/public/ui/chunks/11.chunk.js +1 -1
  39. package/public/ui/chunks/110.chunk.js +1 -1
  40. package/public/ui/chunks/111.chunk.js +1 -1
  41. package/public/ui/chunks/112.chunk.js +1 -1
  42. package/public/ui/chunks/113.chunk.js +1 -1
  43. package/public/ui/chunks/114.chunk.js +1 -1
  44. package/public/ui/chunks/115.chunk.js +1 -1
  45. package/public/ui/chunks/116.chunk.js +1 -1
  46. package/public/ui/chunks/117.chunk.js +1 -1
  47. package/public/ui/chunks/118.chunk.js +1 -1
  48. package/public/ui/chunks/119.chunk.js +1 -1
  49. package/public/ui/chunks/12.chunk.js +1 -1
  50. package/public/ui/chunks/120.chunk.js +1 -1
  51. package/public/ui/chunks/121.chunk.js +1 -1
  52. package/public/ui/chunks/122.chunk.js +1 -1
  53. package/public/ui/chunks/123.chunk.js +1 -1
  54. package/public/ui/chunks/124.chunk.js +1 -1
  55. package/public/ui/chunks/125.chunk.js +1 -1
  56. package/public/ui/chunks/126.chunk.js +1 -1
  57. package/public/ui/chunks/127.chunk.js +1 -1
  58. package/public/ui/chunks/128.chunk.js +1 -1
  59. package/public/ui/chunks/129.chunk.js +1 -1
  60. package/public/ui/chunks/13.chunk.js +1 -1
  61. package/public/ui/chunks/130.chunk.js +1 -1
  62. package/public/ui/chunks/131.chunk.js +1 -1
  63. package/public/ui/chunks/132.chunk.js +1 -1
  64. package/public/ui/chunks/133.chunk.js +1 -1
  65. package/public/ui/chunks/134.chunk.js +1 -1
  66. package/public/ui/chunks/135.chunk.js +1 -1
  67. package/public/ui/chunks/136.chunk.js +1 -1
  68. package/public/ui/chunks/137.chunk.js +1 -1
  69. package/public/ui/chunks/138.chunk.js +1 -1
  70. package/public/ui/chunks/139.chunk.js +1 -1
  71. package/public/ui/chunks/14.chunk.js +1 -1
  72. package/public/ui/chunks/140.chunk.js +1 -1
  73. package/public/ui/chunks/141.chunk.js +1 -1
  74. package/public/ui/chunks/142.chunk.js +1 -1
  75. package/public/ui/chunks/143.chunk.js +1 -1
  76. package/public/ui/chunks/144.chunk.js +1 -1
  77. package/public/ui/chunks/145.chunk.js +1 -1
  78. package/public/ui/chunks/15.chunk.js +1 -1
  79. package/public/ui/chunks/16.chunk.js +1 -1
  80. package/public/ui/chunks/17.chunk.js +1 -1
  81. package/public/ui/chunks/18.chunk.js +1 -1
  82. package/public/ui/chunks/19.chunk.js +1 -1
  83. package/public/ui/chunks/2.chunk.js +1 -1
  84. package/public/ui/chunks/20.chunk.js +1 -1
  85. package/public/ui/chunks/21.chunk.js +1 -1
  86. package/public/ui/chunks/22.chunk.js +1 -1
  87. package/public/ui/chunks/23.chunk.js +1 -1
  88. package/public/ui/chunks/24.chunk.js +1 -1
  89. package/public/ui/chunks/25.chunk.js +1 -1
  90. package/public/ui/chunks/26.chunk.js +1 -1
  91. package/public/ui/chunks/27.chunk.js +1 -1
  92. package/public/ui/chunks/28.chunk.js +1 -1
  93. package/public/ui/chunks/29.chunk.js +1 -1
  94. package/public/ui/chunks/3.chunk.js +1 -1
  95. package/public/ui/chunks/30.chunk.js +1 -1
  96. package/public/ui/chunks/31.chunk.js +1 -1
  97. package/public/ui/chunks/32.chunk.js +1 -1
  98. package/public/ui/chunks/33.chunk.js +1 -1
  99. package/public/ui/chunks/34.chunk.js +1 -1
  100. package/public/ui/chunks/35.chunk.js +1 -1
  101. package/public/ui/chunks/36.chunk.js +1 -1
  102. package/public/ui/chunks/37.chunk.js +1 -1
  103. package/public/ui/chunks/38.chunk.js +1 -1
  104. package/public/ui/chunks/39.chunk.js +1 -1
  105. package/public/ui/chunks/4.chunk.js +1 -1
  106. package/public/ui/chunks/40.chunk.js +1 -1
  107. package/public/ui/chunks/41.chunk.js +1 -1
  108. package/public/ui/chunks/42.chunk.js +1 -1
  109. package/public/ui/chunks/43.chunk.js +1 -1
  110. package/public/ui/chunks/44.chunk.js +1 -1
  111. package/public/ui/chunks/45.chunk.js +1 -1
  112. package/public/ui/chunks/46.chunk.js +1 -1
  113. package/public/ui/chunks/47.chunk.js +1 -1
  114. package/public/ui/chunks/48.chunk.js +1 -1
  115. package/public/ui/chunks/49.chunk.js +1 -1
  116. package/public/ui/chunks/5.chunk.js +1 -1
  117. package/public/ui/chunks/50.chunk.js +1 -1
  118. package/public/ui/chunks/51.chunk.js +1 -1
  119. package/public/ui/chunks/52.chunk.js +1 -1
  120. package/public/ui/chunks/53.chunk.js +1 -1
  121. package/public/ui/chunks/54.chunk.js +1 -1
  122. package/public/ui/chunks/55.chunk.js +1 -1
  123. package/public/ui/chunks/56.chunk.js +1 -1
  124. package/public/ui/chunks/57.chunk.js +1 -1
  125. package/public/ui/chunks/58.chunk.js +1 -1
  126. package/public/ui/chunks/59.chunk.js +1 -1
  127. package/public/ui/chunks/6.chunk.js +1 -1
  128. package/public/ui/chunks/60.chunk.js +1 -1
  129. package/public/ui/chunks/61.chunk.js +1 -1
  130. package/public/ui/chunks/62.chunk.js +1 -1
  131. package/public/ui/chunks/63.chunk.js +1 -1
  132. package/public/ui/chunks/64.chunk.js +1 -1
  133. package/public/ui/chunks/65.chunk.js +1 -1
  134. package/public/ui/chunks/66.chunk.js +1 -1
  135. package/public/ui/chunks/67.chunk.js +1 -1
  136. package/public/ui/chunks/68.chunk.js +1 -1
  137. package/public/ui/chunks/69.chunk.js +1 -1
  138. package/public/ui/chunks/7.chunk.js +1 -1
  139. package/public/ui/chunks/70.chunk.js +1 -1
  140. package/public/ui/chunks/71.chunk.js +1 -1
  141. package/public/ui/chunks/72.chunk.js +1 -1
  142. package/public/ui/chunks/73.chunk.js +1 -1
  143. package/public/ui/chunks/74.chunk.js +1 -1
  144. package/public/ui/chunks/75.chunk.js +1 -1
  145. package/public/ui/chunks/76.chunk.js +1 -1
  146. package/public/ui/chunks/77.chunk.js +1 -1
  147. package/public/ui/chunks/78.chunk.js +1 -1
  148. package/public/ui/chunks/79.chunk.js +1 -1
  149. package/public/ui/chunks/8.chunk.js +1 -1
  150. package/public/ui/chunks/80.chunk.js +1 -1
  151. package/public/ui/chunks/81.chunk.js +1 -1
  152. package/public/ui/chunks/82.chunk.js +1 -1
  153. package/public/ui/chunks/83.chunk.js +1 -1
  154. package/public/ui/chunks/84.chunk.js +1 -1
  155. package/public/ui/chunks/85.chunk.js +1 -1
  156. package/public/ui/chunks/86.chunk.js +1 -1
  157. package/public/ui/chunks/87.chunk.js +1 -1
  158. package/public/ui/chunks/88.chunk.js +1 -1
  159. package/public/ui/chunks/89.chunk.js +1 -1
  160. package/public/ui/chunks/9.chunk.js +1 -1
  161. package/public/ui/chunks/90.chunk.js +1 -1
  162. package/public/ui/chunks/91.chunk.js +1 -1
  163. package/public/ui/chunks/92.chunk.js +1 -1
  164. package/public/ui/chunks/93.chunk.js +1 -1
  165. package/public/ui/chunks/94.chunk.js +1 -1
  166. package/public/ui/chunks/95.chunk.js +1 -1
  167. package/public/ui/chunks/96.chunk.js +1 -1
  168. package/public/ui/chunks/97.chunk.js +1 -1
  169. package/public/ui/chunks/98.chunk.js +1 -1
  170. package/public/ui/chunks/99.chunk.js +1 -1
  171. package/public/ui/chunks/vendors.html2canvas.chunk.js +1 -1
  172. package/public/ui/i18n/translation-bn.json +50 -14
  173. package/public/ui/i18n/translation-de.json +51 -15
  174. package/public/ui/i18n/translation-el.json +50 -14
  175. package/public/ui/i18n/translation-en.json +33 -40
  176. package/public/ui/i18n/translation-es.json +49 -13
  177. package/public/ui/i18n/translation-fr.json +49 -13
  178. package/public/ui/i18n/translation-hi.json +51 -15
  179. package/public/ui/i18n/translation-id.json +50 -14
  180. package/public/ui/i18n/translation-it.json +49 -13
  181. package/public/ui/i18n/translation-ja.json +51 -15
  182. package/public/ui/i18n/translation-ko.json +52 -24
  183. package/public/ui/i18n/translation-ms.json +50 -14
  184. package/public/ui/i18n/translation-nl.json +51 -15
  185. package/public/ui/i18n/translation-pt_br.json +50 -14
  186. package/public/ui/i18n/translation-ru.json +49 -13
  187. package/public/ui/i18n/translation-tr.json +49 -13
  188. package/public/ui/i18n/translation-uk.json +50 -14
  189. package/public/ui/i18n/translation-vi.json +51 -15
  190. package/public/ui/i18n/translation-zh_cn.json +50 -14
  191. package/public/ui/i18n/translation-zh_tw.json +50 -14
  192. package/public/ui/style.css +25 -19
  193. package/public/ui/style.css.map +1 -1
  194. package/public/ui/webviewer-ui.min.js +15 -15
  195. package/public/ui/webviewer-ui.min.js.map +1 -1
  196. package/webviewer.min.js +1 -1
@@ -1,398 +1,398 @@
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],{374:function(Aa,ua,r){(function(pa){(function(ka,ma){Aa.exports=ma()})("undefined"!==typeof self?self:this,function(){return function(ka){function ma(da){if(ha[da])return ha[da].exports;var aa=ha[da]={i:da,l:!1,exports:{}};ka[da].call(aa.exports,aa,aa.exports,ma);aa.l=!0;return aa.exports}var ha={};ma.m=ka;ma.c=ha;ma.d=function(da,aa,x){ma.o(da,aa)||Object.defineProperty(da,aa,{configurable:!1,enumerable:!0,get:x})};ma.n=function(da){var aa=
3
- da&&da.__esModule?function(){return da["default"]}:function(){return da};ma.d(aa,"a",aa);return aa};ma.o=function(da,aa){return Object.prototype.hasOwnProperty.call(da,aa)};ma.p="";return ma(ma.s=109)}([function(ka,ma,ha){Object.defineProperty(ma,"__esModule",{value:!0});ka=ha(17);var da=ha(18),aa=ha(19),x=ha(45),y=ha(46),f=ha(47),b=ha(48),a=ha(49),e=ha(12),h=ha(32),n=ha(33),z=ha(31);ha=ha(1);ma.default={Scope:ha.Scope,create:ha.create,find:ha.find,query:ha.query,register:ha.register,Container:ka.default,
4
- Format:da.default,Leaf:aa.default,Embed:b.default,Scroll:x.default,Block:f.default,Inline:y.default,Text:a.default,Attributor:{Attribute:e.default,Class:h.default,Style:n.default,Store:z.default}}},function(ka,ma){function ha(n,z){void 0===z&&(z=!1);return null==n?null:null!=n[ma.DATA_KEY]?n[ma.DATA_KEY].blot:z?ha(n.parentNode,z):null}function da(n,z){void 0===z&&(z=h.ANY);if("string"===typeof n)var w=e[n]||f[n];else if(n instanceof Text||n.nodeType===Node.TEXT_NODE)w=e.text;else if("number"===typeof n)n&
5
- h.LEVEL&h.BLOCK?w=e.block:n&h.LEVEL&h.INLINE&&(w=e.inline);else if(n instanceof HTMLElement){var ea=(n.getAttribute("class")||"").split(/\s+/),ja;for(ja in ea)if(w=b[ea[ja]])break;w=w||a[n.tagName]}return null==w?null:z&h.LEVEL&w.scope&&z&h.TYPE&w.scope?w:null}function aa(){for(var n=[],z=0;z<arguments.length;z++)n[z]=arguments[z];if(1<n.length)return n.map(function(ea){return aa(ea)});var w=n[0];if("string"!==typeof w.blotName&&"string"!==typeof w.attrName)throw new y("Invalid definition");if("abstract"===
6
- w.blotName)throw new y("Cannot register abstract class");e[w.blotName||w.attrName]=w;"string"===typeof w.keyName?f[w.keyName]=w:(null!=w.className&&(b[w.className]=w),null!=w.tagName&&(Array.isArray(w.tagName)?w.tagName=w.tagName.map(function(ea){return ea.toUpperCase()}):w.tagName=w.tagName.toUpperCase(),(Array.isArray(w.tagName)?w.tagName:[w.tagName]).forEach(function(ea){if(null==a[ea]||null==w.className)a[ea]=w})));return w}var x=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof
7
- Array&&function(z,w){z.__proto__=w}||function(z,w){for(var ea in w)w.hasOwnProperty(ea)&&(z[ea]=w[ea])};return function(z,w){function ea(){this.constructor=z}n(z,w);z.prototype=null===w?Object.create(w):(ea.prototype=w.prototype,new ea)}}();Object.defineProperty(ma,"__esModule",{value:!0});var y=function(n){function z(w){w="[Parchment] "+w;var ea=n.call(this,w)||this;ea.message=w;ea.name=ea.constructor.name;return ea}x(z,n);return z}(Error);ma.ParchmentError=y;var f={},b={},a={},e={};ma.DATA_KEY=
8
- "__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,z){var w=da(n);if(null==w)throw new y("Unable to create "+n+" blot");n=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:
9
- w.create(z);return new w(n,z)};ma.find=ha;ma.query=da;ma.register=aa},function(ka,ma,ha){function da(a){Array.isArray(a)?this.ops=a:null!=a&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]}var aa=ha(51),x=ha(11),y=ha(3),f=ha(20),b=String.fromCharCode(0);da.prototype.insert=function(a,e){var h={};if(0===a.length)return this;h.insert=a;null!=e&&"object"===typeof e&&0<Object.keys(e).length&&(h.attributes=e);return this.push(h)};da.prototype["delete"]=function(a){return 0>=a?this:this.push({"delete":a})};
10
- da.prototype.retain=function(a,e){if(0>=a)return this;a={retain:a};null!=e&&"object"===typeof e&&0<Object.keys(e).length&&(a.attributes=e);return this.push(a)};da.prototype.push=function(a){var e=this.ops.length,h=this.ops[e-1];a=y(!0,{},a);if("object"===typeof h){if("number"===typeof a["delete"]&&"number"===typeof h["delete"])return this.ops[e-1]={"delete":h["delete"]+a["delete"]},this;if("number"===typeof h["delete"]&&null!=a.insert&&(--e,h=this.ops[e-1],"object"!==typeof h))return this.ops.unshift(a),
11
- this;if(x(a.attributes,h.attributes)){if("string"===typeof a.insert&&"string"===typeof h.insert)return this.ops[e-1]={insert:h.insert+a.insert},"object"===typeof a.attributes&&(this.ops[e-1].attributes=a.attributes),this;if("number"===typeof a.retain&&"number"===typeof h.retain)return this.ops[e-1]={retain:h.retain+a.retain},"object"===typeof a.attributes&&(this.ops[e-1].attributes=a.attributes),this}}e===this.ops.length?this.ops.push(a):this.ops.splice(e,0,a);return this};da.prototype.chop=function(){var a=
12
- this.ops[this.ops.length-1];a&&a.retain&&!a.attributes&&this.ops.pop();return this};da.prototype.filter=function(a){return this.ops.filter(a)};da.prototype.forEach=function(a){this.ops.forEach(a)};da.prototype.map=function(a){return this.ops.map(a)};da.prototype.partition=function(a){var e=[],h=[];this.forEach(function(n){(a(n)?e:h).push(n)});return[e,h]};da.prototype.reduce=function(a,e){return this.ops.reduce(a,e)};da.prototype.changeLength=function(){return this.reduce(function(a,e){return e.insert?
13
- a+f.length(e):e.delete?a-e.delete:a},0)};da.prototype.length=function(){return this.reduce(function(a,e){return a+f.length(e)},0)};da.prototype.slice=function(a,e){a=a||0;"number"!==typeof e&&(e=Infinity);for(var h=[],n=f.iterator(this.ops),z=0;z<e&&n.hasNext();){if(z<a)var w=n.next(a-z);else w=n.next(e-z),h.push(w);z+=f.length(w)}return new da(h)};da.prototype.compose=function(a){var e=f.iterator(this.ops);a=f.iterator(a.ops);var h=[],n=a.peek();if(null!=n&&"number"===typeof n.retain&&null==n.attributes){for(var z=
14
- n.retain;"insert"===e.peekType()&&e.peekLength()<=z;)z-=e.peekLength(),h.push(e.next());0<n.retain-z&&a.next(n.retain-z)}for(h=new da(h);e.hasNext()||a.hasNext();)if("insert"===a.peekType())h.push(a.next());else if("delete"===e.peekType())h.push(e.next());else{z=Math.min(e.peekLength(),a.peekLength());var w=e.next(z),ea=a.next(z);if("number"===typeof ea.retain){n={};"number"===typeof w.retain?n.retain=z:n.insert=w.insert;if(z=f.attributes.compose(w.attributes,ea.attributes,"number"===typeof w.retain))n.attributes=
15
- z;h.push(n);if(!a.hasNext()&&x(h.ops[h.ops.length-1],n))return e=new da(e.rest()),h.concat(e).chop()}else"number"===typeof ea["delete"]&&"number"===typeof w.retain&&h.push(ea)}return h.chop()};da.prototype.concat=function(a){var e=new da(this.ops.slice());0<a.ops.length&&(e.push(a.ops[0]),e.ops=e.ops.concat(a.ops.slice(1)));return e};da.prototype.diff=function(a,e){if(this.ops===a.ops)return new da;var h=[this,a].map(function(ea){return ea.map(function(ja){if(null!=ja.insert)return"string"===typeof ja.insert?
16
- ja.insert:b;throw Error("diff() called "+(ea===a?"on":"with")+" non-document");}).join("")}),n=new da;e=aa(h[0],h[1],e);var z=f.iterator(this.ops),w=f.iterator(a.ops);e.forEach(function(ea){for(var ja=ea[1].length;0<ja;){var ca=0;switch(ea[0]){case aa.INSERT:ca=Math.min(w.peekLength(),ja);n.push(w.next(ca));break;case aa.DELETE:ca=Math.min(ja,z.peekLength());z.next(ca);n["delete"](ca);break;case aa.EQUAL:ca=Math.min(z.peekLength(),w.peekLength(),ja);var ba=z.next(ca),fa=w.next(ca);if(x(ba.insert,
17
- fa.insert))n.retain(ca,f.attributes.diff(ba.attributes,fa.attributes));else n.push(fa)["delete"](ca)}ja-=ca}});return n.chop()};da.prototype.eachLine=function(a,e){e=e||"\n";for(var h=f.iterator(this.ops),n=new da,z=0;h.hasNext();){if("insert"!==h.peekType())return;var w=h.peek(),ea=f.length(w)-h.peekLength();w="string"===typeof w.insert?w.insert.indexOf(e,ea)-ea:-1;if(0>w)n.push(h.next());else if(0<w)n.push(h.next(w));else{if(!1===a(n,h.next(1).attributes||{},z))return;z+=1;n=new da}}0<n.length()&&
18
- a(n,{},z)};da.prototype.transform=function(a,e){e=!!e;if("number"===typeof a)return this.transformPosition(a,e);var h=f.iterator(this.ops);a=f.iterator(a.ops);for(var n=new da;h.hasNext()||a.hasNext();)if("insert"!==h.peekType()||!e&&"insert"===a.peekType())if("insert"===a.peekType())n.push(a.next());else{var z=Math.min(h.peekLength(),a.peekLength()),w=h.next(z),ea=a.next(z);w["delete"]||(ea["delete"]?n.push(ea):n.retain(z,f.attributes.transform(w.attributes,ea.attributes,e)))}else n.retain(f.length(h.next()));
19
- return n.chop()};da.prototype.transformPosition=function(a,e){e=!!e;for(var h=f.iterator(this.ops),n=0;h.hasNext()&&n<=a;){var z=h.peekLength(),w=h.peekType();h.next();"delete"===w?a-=Math.min(z,a-n):("insert"===w&&(n<a||!e)&&(a+=z),n+=z)}return a};ka.exports=da},function(ka){function ma(a,e){if("__proto__"===e){if(!x.call(a,e))return;if(b)return b(a,e).value}return a[e]}function ha(a,e){f&&"__proto__"===e.name?f(a,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):a[e.name]=e.newValue}
20
- function da(a){if(!a||"[object Object]"!==y.call(a))return!1;var e=x.call(a,"constructor"),h=a.constructor&&a.constructor.prototype&&x.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!e&&!h)return!1;for(var n in a);return"undefined"===typeof n||x.call(a,n)}function aa(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,b=Object.getOwnPropertyDescriptor;ka.exports=
21
- function e(){var h,n,z=arguments[0],w=1,ea=arguments.length,ja=!1;"boolean"===typeof z&&(ja=z,z=arguments[1]||{},w=2);if(null==z||"object"!==typeof z&&"function"!==typeof z)z={};for(;w<ea;++w){var ca=arguments[w];if(null!=ca)for(h in ca){var ba=ma(z,h);var fa=ma(ca,h);z!==fa&&(ja&&fa&&(da(fa)||(n=aa(fa)))?(n?(n=!1,ba=ba&&aa(ba)?ba:[]):ba=ba&&da(ba)?ba:{},ha(z,{name:h,newValue:e(ja,ba,fa)})):"undefined"!==typeof fa&&ha(z,{name:h,newValue:fa}))}}return z}},function(ka,ma,ha){function da(ja){return ja&&
22
- ja.__esModule?ja:{default:ja}}function aa(ja,ca){if(!(ja instanceof ca))throw new TypeError("Cannot call a class as a function");}function x(ja,ca){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ca||"object"!==typeof ca&&"function"!==typeof ca?ja:ca}function y(ja,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+typeof ca);ja.prototype=Object.create(ca&&ca.prototype,{constructor:{value:ja,
23
- enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,ca):ja.__proto__=ca)}function f(ja){var ca=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==ja)return ca;"function"===typeof ja.formats&&(ca=(0,e.default)(ca,ja.formats()));return null==ja.parent||"scroll"==ja.parent.blotName||ja.parent.statics.scope!==ja.statics.scope?ca:f(ja.parent,ca)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.BlockEmbed=ma.bubbleFormats=void 0;
24
- var b=function(){function ja(ca,ba){for(var fa=0;fa<ba.length;fa++){var ia=ba[fa];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=!0);Object.defineProperty(ca,ia.key,ia)}}return function(ca,ba,fa){ba&&ja(ca.prototype,ba);fa&&ja(ca,fa);return ca}}(),a=function ia(ca,ba,fa){null===ca&&(ca=Function.prototype);var la=Object.getOwnPropertyDescriptor(ca,ba);if(void 0===la){if(ca=Object.getPrototypeOf(ca),null!==ca)return ia(ca,ba,fa)}else{if("value"in la)return la.value;ba=
25
- la.get;return void 0===ba?void 0:ba.call(fa)}};ka=ha(3);var e=da(ka);ka=ha(2);var h=da(ka);ka=ha(0);var n=da(ka);ka=ha(16);var z=da(ka);ka=ha(6);ka=da(ka);ha=ha(7);ha=da(ha);var w=function(ca){function ba(){aa(this,ba);return x(this,(ba.__proto__||Object.getPrototypeOf(ba)).apply(this,arguments))}y(ba,ca);b(ba,[{key:"attach",value:function(){a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"attach",this).call(this);this.attributes=new n.default.Attributor.Store(this.domNode)}},{key:"delta",
26
- value:function(){return(new h.default).insert(this.value(),(0,e.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(fa,ia){fa=n.default.query(fa,n.default.Scope.BLOCK_ATTRIBUTE);null!=fa&&this.attributes.attribute(fa,ia)}},{key:"formatAt",value:function(fa,ia,la,na){this.format(la,na)}},{key:"insertAt",value:function(fa,ia,la){"string"===typeof ia&&ia.endsWith("\n")?(la=n.default.create(ea.blotName),this.parent.insertBefore(la,0===fa?this:this.next),la.insertAt(0,ia.slice(0,
27
- -1))):a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"insertAt",this).call(this,fa,ia,la)}}]);return ba}(n.default.Embed);w.scope=n.default.Scope.BLOCK_BLOT;var ea=function(ca){function ba(fa){aa(this,ba);fa=x(this,(ba.__proto__||Object.getPrototypeOf(ba)).call(this,fa));fa.cache={};return fa}y(ba,ca);b(ba,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(n.default.Leaf).reduce(function(fa,ia){return 0===ia.length()?fa:fa.insert(ia.value(),f(ia))},
28
- new h.default).insert("\n",f(this)));return this.cache.delta}},{key:"deleteAt",value:function(fa,ia){a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"deleteAt",this).call(this,fa,ia);this.cache={}}},{key:"formatAt",value:function(fa,ia,la,na){0>=ia||(n.default.query(la,n.default.Scope.BLOCK)?fa+ia===this.length()&&this.format(la,na):a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"formatAt",this).call(this,fa,Math.min(ia,this.length()-fa-1),la,na),this.cache={})}},{key:"insertAt",
29
- value:function(fa,ia,la){if(null!=la)return a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"insertAt",this).call(this,fa,ia,la);if(0!==ia.length){ia=ia.split("\n");la=ia.shift();0<la.length&&(fa<this.length()-1||null==this.children.tail?a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"insertAt",this).call(this,Math.min(fa,this.length()-1),la):this.children.tail.insertAt(this.children.tail.length(),la),this.cache={});var na=this;ia.reduce(function(ra,qa){na=na.split(ra,
30
- !0);na.insertAt(0,qa);return qa.length},fa+la.length)}}},{key:"insertBefore",value:function(fa,ia){var la=this.children.head;a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"insertBefore",this).call(this,fa,ia);la instanceof z.default&&la.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",value:function(fa,
31
- ia){a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"moveChildren",this).call(this,fa,ia);this.cache={}}},{key:"optimize",value:function(fa){a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"optimize",this).call(this,fa);this.cache={}}},{key:"path",value:function(fa){return a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"path",this).call(this,fa,!0)}},{key:"removeChild",value:function(fa){a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"removeChild",
32
- this).call(this,fa);this.cache={}}},{key:"split",value:function(fa){var ia=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(ia&&(0===fa||fa>=this.length()-1)){ia=this.clone();if(0===fa)return this.parent.insertBefore(ia,this),this;this.parent.insertBefore(ia,this.next);return ia}ia=a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"split",this).call(this,fa,ia);this.cache={};return ia}}]);return ba}(n.default.Block);ea.blotName="block";ea.tagName="P";ea.defaultChild="break";
33
- ea.allowedChildren=[ka.default,n.default.Embed,ha.default];ma.bubbleFormats=f;ma.BlockEmbed=w;ma.default=ea},function(ka,ma,ha){function da(qa){return qa&&qa.__esModule?qa:{default:qa}}function aa(qa,ta,va){ta in qa?Object.defineProperty(qa,ta,{value:va,enumerable:!0,configurable:!0,writable:!0}):qa[ta]=va;return qa}function x(qa,ta){ta=(0,fa.default)(!0,{container:qa,modules:{clipboard:!0,keyboard:!0,history:!0}},ta);if(ta.theme&&ta.theme!==ra.DEFAULTS.theme){if(ta.theme=ra.import("themes/"+ta.theme),
34
- null==ta.theme)throw Error("Invalid theme "+ta.theme+". Did you register it?");}else ta.theme=la.default;qa=(0,fa.default)(!0,{},ta.theme.DEFAULTS);[qa,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(qa.modules).concat(Object.keys(ta.modules)).reduce(function(oa,wa){var Da=ra.import("modules/"+wa);null==Da?na.error("Cannot load "+wa+" module. Are you sure you registered it?"):oa[wa]=Da.DEFAULTS||
35
- {};return oa},{});null!=ta.modules&&ta.modules.toolbar&&ta.modules.toolbar.constructor!==Object&&(ta.modules.toolbar={container:ta.modules.toolbar});ta=(0,fa.default)(!0,{},ra.DEFAULTS,{modules:va},qa,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(qa,ta,va,oa){if(this.options.strict&&
36
- !this.isEnabled()&&ta===w.default.sources.USER)return new n.default;var wa=null==va?null:this.getSelection(),Da=this.editor.delta;qa=qa();null!=wa&&(!0===va&&(va=wa.index),null==oa?wa=b(wa,qa,ta):0!==oa&&(wa=b(wa,va,oa,ta)),this.setSelection(wa,w.default.sources.SILENT));if(0<qa.length()){var Ia;va=[w.default.events.TEXT_CHANGE,qa,Da,ta];(Ia=this.emitter).emit.apply(Ia,[w.default.events.EDITOR_CHANGE].concat(va));if(ta!==w.default.sources.SILENT){var Ma;(Ma=this.emitter).emit.apply(Ma,va)}}return qa}
37
- function f(qa,ta,va,oa,wa){var Da={};"number"===typeof qa.index&&"number"===typeof qa.length?("number"!==typeof ta&&(wa=oa,oa=va,va=ta),ta=qa.length,qa=qa.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[qa,ta,Da,wa]}function b(qa,ta,va,oa){if(null==qa)return null;var wa=void 0,Da=void 0;ta instanceof n.default?(wa=[qa.index,qa.index+qa.length].map(function(Ia){return ta.transformPosition(Ia,
38
- oa!==w.default.sources.USER)}),qa=e(wa,2),wa=qa[0],Da=qa[1]):(wa=[qa.index,qa.index+qa.length].map(function(Ia){return Ia<ta||Ia===ta&&oa===w.default.sources.USER?Ia:0<=va?Ia+va:Math.max(ta,Ia+va)}),qa=e(wa,2),wa=qa[0],Da=qa[1]);return new ca.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(qa){return typeof qa}:function(qa){return qa&&"function"===typeof Symbol&&
39
- qa.constructor===Symbol&&qa!==Symbol.prototype?"symbol":typeof qa},e=function(){return function(qa,ta){if(Array.isArray(qa))return qa;if(Symbol.iterator in Object(qa)){var va=[],oa=!0,wa=!1,Da=void 0;try{for(var Ia=qa[Symbol.iterator](),Ma;!(oa=(Ma=Ia.next()).done)&&(va.push(Ma.value),!ta||va.length!==ta);oa=!0);}catch(Ca){wa=!0,Da=Ca}finally{try{if(!oa&&Ia["return"])Ia["return"]()}finally{if(wa)throw Da;}}return va}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),
40
- h=function(){function qa(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&&qa(ta.prototype,va);oa&&qa(ta,oa);return ta}}();ha(50);ka=ha(2);var n=da(ka);ka=ha(14);var z=da(ka);ka=ha(8);var w=da(ka);ka=ha(9);ka=da(ka);var ea=ha(0),ja=da(ea),ca=ha(15),ba=da(ca);ea=ha(3);var fa=da(ea);ea=ha(10);var ia=da(ea);ha=ha(34);var la=da(ha),na=(0,ia.default)("quill"),
41
- ra=function(){function qa(ta){var va=this,oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof qa))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&&qa.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 z.default(this.scroll);this.selection=new ba.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 Ia=va.selection.lastRange,Ma=Ia&&0===Ia.length?Ia.index:void 0;y.call(va,function(){return va.editor.update(null,Da,Ma)},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(qa,null,[{key:"debug",value:function(ta){!0===ta&&(ta="log");ia.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]}},
2
+ (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{376:function(Ba,ua,r){(function(pa){(function(ka,ma){Ba.exports=ma()})("undefined"!==typeof self?self:this,function(){return function(ka){function ma(da){if(fa[da])return fa[da].exports;var z=fa[da]={i:da,l:!1,exports:{}};ka[da].call(z.exports,z,z.exports,ma);z.l=!0;return z.exports}var fa={};ma.m=ka;ma.c=fa;ma.d=function(da,z,x){ma.o(da,z)||Object.defineProperty(da,z,{configurable:!1,enumerable:!0,get:x})};ma.n=function(da){var z=
3
+ da&&da.__esModule?function(){return da["default"]}:function(){return da};ma.d(z,"a",z);return z};ma.o=function(da,z){return Object.prototype.hasOwnProperty.call(da,z)};ma.p="";return ma(ma.s=109)}([function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(17);var da=fa(18),z=fa(19),x=fa(45),y=fa(46),f=fa(47),e=fa(48),a=fa(49),b=fa(12),h=fa(32),n=fa(33),ba=fa(31);fa=fa(1);ma.default={Scope:fa.Scope,create:fa.create,find:fa.find,query:fa.query,register:fa.register,Container:ka.default,
4
+ Format:da.default,Leaf:z.default,Embed:e.default,Scroll:x.default,Block:f.default,Inline:y.default,Text:a.default,Attributor:{Attribute:b.default,Class:h.default,Style:n.default,Store:ba.default}}},function(ka,ma){function fa(n,ba){void 0===ba&&(ba=!1);return null==n?null:null!=n[ma.DATA_KEY]?n[ma.DATA_KEY].blot:ba?fa(n.parentNode,ba):null}function da(n,ba){void 0===ba&&(ba=h.ANY);if("string"===typeof n)var w=b[n]||f[n];else if(n instanceof Text||n.nodeType===Node.TEXT_NODE)w=b.text;else if("number"===
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 ea=(n.getAttribute("class")||"").split(/\s+/),ja;for(ja in ea)if(w=e[ea[ja]])break;w=w||a[n.tagName]}return null==w?null:ba&h.LEVEL&w.scope&&ba&h.TYPE&w.scope?w:null}function z(){for(var n=[],ba=0;ba<arguments.length;ba++)n[ba]=arguments[ba];if(1<n.length)return n.map(function(ea){return z(ea)});var w=n[0];if("string"!==typeof w.blotName&&"string"!==typeof w.attrName)throw new y("Invalid definition");
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(ea){return ea.toUpperCase()}):w.tagName=w.tagName.toUpperCase(),(Array.isArray(w.tagName)?w.tagName:[w.tagName]).forEach(function(ea){if(null==a[ea]||null==w.className)a[ea]=w})));return w}var x=this&&this.__extends||function(){var n=Object.setPrototypeOf||
7
+ {__proto__:[]}instanceof Array&&function(ba,w){ba.__proto__=w}||function(ba,w){for(var ea in w)w.hasOwnProperty(ea)&&(ba[ea]=w[ea])};return function(ba,w){function ea(){this.constructor=ba}n(ba,w);ba.prototype=null===w?Object.create(w):(ea.prototype=w.prototype,new ea)}}();Object.defineProperty(ma,"__esModule",{value:!0});var y=function(n){function ba(w){w="[Parchment] "+w;var ea=n.call(this,w)||this;ea.message=w;ea.name=ea.constructor.name;return ea}x(ba,n);return ba}(Error);ma.ParchmentError=y;
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=da(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=da;ma.register=z},function(ka,ma,fa){function da(a){Array.isArray(a)?this.ops=a:null!=a&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]}var z=fa(51),x=fa(11),y=fa(3),f=fa(20),e=String.fromCharCode(0);da.prototype.insert=function(a,b){var h={};if(0===a.length)return this;h.insert=a;null!=b&&"object"===typeof b&&0<Object.keys(b).length&&(h.attributes=b);return this.push(h)};da.prototype["delete"]=function(a){return 0>=
10
+ a?this:this.push({"delete":a})};da.prototype.retain=function(a,b){if(0>=a)return this;a={retain:a};null!=b&&"object"===typeof b&&0<Object.keys(b).length&&(a.attributes=b);return this.push(a)};da.prototype.push=function(a){var b=this.ops.length,h=this.ops[b-1];a=y(!0,{},a);if("object"===typeof h){if("number"===typeof a["delete"]&&"number"===typeof h["delete"])return this.ops[b-1]={"delete":h["delete"]+a["delete"]},this;if("number"===typeof h["delete"]&&null!=a.insert&&(--b,h=this.ops[b-1],"object"!==
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};da.prototype.chop=function(){var a=this.ops[this.ops.length-1];a&&a.retain&&!a.attributes&&this.ops.pop();return this};da.prototype.filter=function(a){return this.ops.filter(a)};da.prototype.forEach=function(a){this.ops.forEach(a)};da.prototype.map=function(a){return this.ops.map(a)};da.prototype.partition=function(a){var b=[],h=[];this.forEach(function(n){(a(n)?b:h).push(n)});return[b,h]};da.prototype.reduce=function(a,b){return this.ops.reduce(a,b)};da.prototype.changeLength=function(){return this.reduce(function(a,
13
+ b){return b.insert?a+f.length(b):b.delete?a-b.delete:a},0)};da.prototype.length=function(){return this.reduce(function(a,b){return a+f.length(b)},0)};da.prototype.slice=function(a,b){a=a||0;"number"!==typeof b&&(b=Infinity);for(var h=[],n=f.iterator(this.ops),ba=0;ba<b&&n.hasNext();){if(ba<a)var w=n.next(a-ba);else w=n.next(b-ba),h.push(w);ba+=f.length(w)}return new da(h)};da.prototype.compose=function(a){var b=f.iterator(this.ops);a=f.iterator(a.ops);var h=[],n=a.peek();if(null!=n&&"number"===typeof n.retain&&
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 da(h);b.hasNext()||a.hasNext();)if("insert"===a.peekType())h.push(a.next());else if("delete"===b.peekType())h.push(b.next());else{ba=Math.min(b.peekLength(),a.peekLength());var w=b.next(ba),ea=a.next(ba);if("number"===typeof ea.retain){n={};"number"===typeof w.retain?n.retain=ba:n.insert=w.insert;if(ba=f.attributes.compose(w.attributes,
15
+ ea.attributes,"number"===typeof w.retain))n.attributes=ba;h.push(n);if(!a.hasNext()&&x(h.ops[h.ops.length-1],n))return b=new da(b.rest()),h.concat(b).chop()}else"number"===typeof ea["delete"]&&"number"===typeof w.retain&&h.push(ea)}return h.chop()};da.prototype.concat=function(a){var b=new da(this.ops.slice());0<a.ops.length&&(b.push(a.ops[0]),b.ops=b.ops.concat(a.ops.slice(1)));return b};da.prototype.diff=function(a,b){if(this.ops===a.ops)return new da;var h=[this,a].map(function(ea){return ea.map(function(ja){if(null!=
16
+ ja.insert)return"string"===typeof ja.insert?ja.insert:e;throw Error("diff() called "+(ea===a?"on":"with")+" non-document");}).join("")}),n=new da;b=z(h[0],h[1],b);var ba=f.iterator(this.ops),w=f.iterator(a.ops);b.forEach(function(ea){for(var ja=ea[1].length;0<ja;){var aa=0;switch(ea[0]){case z.INSERT:aa=Math.min(w.peekLength(),ja);n.push(w.next(aa));break;case z.DELETE:aa=Math.min(ja,ba.peekLength());ba.next(aa);n["delete"](aa);break;case z.EQUAL:aa=Math.min(ba.peekLength(),w.peekLength(),ja);var ca=
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()};da.prototype.eachLine=function(a,b){b=b||"\n";for(var h=f.iterator(this.ops),n=new da,ba=0;h.hasNext();){if("insert"!==h.peekType())return;var w=h.peek(),ea=f.length(w)-h.peekLength();w="string"===typeof w.insert?w.insert.indexOf(b,ea)-ea:-1;if(0>w)n.push(h.next());else if(0<w)n.push(h.next(w));else{if(!1===a(n,h.next(1).attributes||
18
+ {},ba))return;ba+=1;n=new da}}0<n.length()&&a(n,{},ba)};da.prototype.transform=function(a,b){b=!!b;if("number"===typeof a)return this.transformPosition(a,b);var h=f.iterator(this.ops);a=f.iterator(a.ops);for(var n=new da;h.hasNext()||a.hasNext();)if("insert"!==h.peekType()||!b&&"insert"===a.peekType())if("insert"===a.peekType())n.push(a.next());else{var ba=Math.min(h.peekLength(),a.peekLength()),w=h.next(ba),ea=a.next(ba);w["delete"]||(ea["delete"]?n.push(ea):n.retain(ba,f.attributes.transform(w.attributes,
19
+ ea.attributes,b)))}else n.retain(f.length(h.next()));return n.chop()};da.prototype.transformPosition=function(a,b){b=!!b;for(var h=f.iterator(this.ops),n=0;h.hasNext()&&n<=a;){var ba=h.peekLength(),w=h.peekType();h.next();"delete"===w?a-=Math.min(ba,a-n):("insert"===w&&(n<a||!b)&&(a+=ba),n+=ba)}return a};ka.exports=da},function(ka){function ma(a,b){if("__proto__"===b){if(!x.call(a,b))return;if(e)return e(a,b).value}return a[b]}function fa(a,b){f&&"__proto__"===b.name?f(a,b.name,{enumerable:!0,configurable:!0,
20
+ value:b.newValue,writable:!0}):a[b.name]=b.newValue}function da(a){if(!a||"[object Object]"!==y.call(a))return!1;var b=x.call(a,"constructor"),h=a.constructor&&a.constructor.prototype&&x.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!b&&!h)return!1;for(var n in a);return"undefined"===typeof n||x.call(a,n)}function z(a){return"function"===typeof Array.isArray?Array.isArray(a):"[object Array]"===y.call(a)}var x=Object.prototype.hasOwnProperty,y=Object.prototype.toString,f=Object.defineProperty,
21
+ e=Object.getOwnPropertyDescriptor;ka.exports=function b(){var h,n,ba=arguments[0],w=1,ea=arguments.length,ja=!1;"boolean"===typeof ba&&(ja=ba,ba=arguments[1]||{},w=2);if(null==ba||"object"!==typeof ba&&"function"!==typeof ba)ba={};for(;w<ea;++w){var aa=arguments[w];if(null!=aa)for(h in aa){var ca=ma(ba,h);var ia=ma(aa,h);ba!==ia&&(ja&&ia&&(da(ia)||(n=z(ia)))?(n?(n=!1,ca=ca&&z(ca)?ca:[]):ca=ca&&da(ca)?ca:{},fa(ba,{name:h,newValue:b(ja,ca,ia)})):"undefined"!==typeof ia&&fa(ba,{name:h,newValue:ia}))}}return ba}},
22
+ function(ka,ma,fa){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function z(ja,aa){if(!(ja instanceof aa))throw new TypeError("Cannot call a class as a function");}function x(ja,aa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?ja:aa}function y(ja,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+typeof aa);ja.prototype=
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=da(ka);ka=fa(2);var h=da(ka);ka=fa(0);var n=da(ka);ka=fa(16);var ba=da(ka);ka=fa(6);ka=da(ka);fa=fa(7);fa=da(fa);var w=function(aa){function ca(){z(this,ca);return x(this,(ca.__proto__||Object.getPrototypeOf(ca)).apply(this,arguments))}y(ca,aa);e(ca,[{key:"attach",value:function(){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"attach",this).call(this);this.attributes=new n.default.Attributor.Store(this.domNode)}},
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(ea.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 ea=function(aa){function ca(ia){z(this,ca);ia=x(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,ia));ia.cache={};return ia}y(ca,aa);e(ca,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(n.default.Leaf).reduce(function(ia,ha){return 0===ha.length()?ia:ia.insert(ha.value(),
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);ea.blotName="block";ea.tagName="P";ea.defaultChild=
33
+ "break";ea.allowedChildren=[ka.default,n.default.Embed,fa.default];ma.bubbleFormats=f;ma.BlockEmbed=w;ma.default=ea},function(ka,ma,fa){function da(ra){return ra&&ra.__esModule?ra:{default:ra}}function z(ra,ta,va){ta in ra?Object.defineProperty(ra,ta,{value:va,enumerable:!0,configurable:!0,writable:!0}):ra[ta]=va;return ra}function x(ra,ta){ta=(0,ia.default)(!0,{container:ra,modules:{clipboard:!0,keyboard:!0,history:!0}},ta);if(ta.theme&&ta.theme!==qa.DEFAULTS.theme){if(ta.theme=qa.import("themes/"+
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=da(ka);ka=fa(14);var ba=da(ka);ka=fa(8);var w=da(ka);ka=fa(9);ka=da(ka);var ea=fa(0),ja=da(ea),aa=fa(15),ca=da(aa);ea=fa(3);var ia=da(ea);ea=fa(10);var ha=da(ea);fa=fa(34);var la=da(fa),na=(0,ha.default)("quill"),
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
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(qa,[{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=e(oa,4);ta=oa[0];va=oa[1];oa=oa[3];return y.call(this,function(){return wa.editor.deleteText(ta,
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
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,aa({},ta,va));else{if(0===wa.length)return oa.selection.format(ta,va),Da;Da=oa.editor.formatText(wa.index,wa.length,aa({},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 Ia=this,Ma=void 0;oa=f(ta,va,oa,wa,Da);oa=e(oa,4);ta=
49
- oa[0];va=oa[1];Ma=oa[2];Da=oa[3];return y.call(this,function(){return Ia.editor.formatLine(ta,va,Ma)},Da,ta,0)}},{key:"formatText",value:function(ta,va,oa,wa,Da){var Ia=this,Ma=void 0;oa=f(ta,va,oa,wa,Da);oa=e(oa,4);ta=oa[0];va=oa[1];Ma=oa[2];Da=oa[3];return y.call(this,function(){return Ia.editor.formatText(ta,va,Ma)},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=e(ta,2);ta=va[0];va=va[1];return this.editor.getContents(ta,va)}},{key:"getFormat",value:function(){var ta=0<arguments.length&&
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
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
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=e(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]:qa.sources.API,ta)}},{key:"insertText",value:function(ta,va,
54
- oa,wa,Da){var Ia=this,Ma=void 0;oa=f(ta,0,oa,wa,Da);oa=e(oa,4);ta=oa[0];Ma=oa[2];Da=oa[3];return y.call(this,function(){return Ia.editor.insertText(ta,va,Ma)},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=e(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||qa.sources.API):(ta=f(ta,va,oa),oa=e(ta,4),ta=oa[0],va=oa[1],oa=oa[3],this.selection.setRange(new ca.Range(ta,
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
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 qa}();ra.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};ra.events=w.default.events;ra.sources=w.default.sources;ra.version="1.3.7";ra.imports={delta:n.default,parchment:ja.default,"core/module":ka.default,"core/theme":la.default};ma.expandConfig=
59
- x;ma.overload=f;ma.default=ra},function(ka,ma,ha){function da(f,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(f,b):f.__proto__=b)}Object.defineProperty(ma,"__esModule",{value:!0});var aa=function(){function f(b,a){for(var e=0;e<a.length;e++){var h=a[e];h.enumerable=
60
- h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,a,e){a&&f(b.prototype,a);e&&f(b,e);return b}}(),x=function h(b,a,e){null===b&&(b=Function.prototype);var n=Object.getOwnPropertyDescriptor(b,a);if(void 0===n){if(b=Object.getPrototypeOf(b),null!==b)return h(b,a,e)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(e)}};ka=(ka=ha(7))&&ka.__esModule?ka:{default:ka};var y=(ha=ha(0))&&ha.__esModule?ha:{default:ha};
61
- ha=function(b){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var e=(a.__proto__||Object.getPrototypeOf(a)).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}da(a,b);aa(a,[{key:"formatAt",value:function(e,h,n,z){0>a.compare(this.statics.blotName,n)&&y.default.query(n,y.default.Scope.BLOT)?(e=this.isolate(e,h),z&&e.wrap(n,z)):
62
- x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"formatAt",this).call(this,e,h,n,z)}},{key:"optimize",value:function(e){x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,e);this.parent instanceof a&&0<a.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 n=a.order.indexOf(e),z=a.order.indexOf(h);return 0<=n||0<=
63
- z?n-z:e===h?0:e<h?-1:1}}]);return a}(y.default.Inline);ha.allowedChildren=[ha,y.default.Embed,ka.default];ha.order="cursor inline underline strike italic bold script link code".split(" ");ma.default=ha},function(ka,ma,ha){function da(aa,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);aa.prototype=Object.create(x&&x.prototype,{constructor:{value:aa,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(aa,
64
- x):aa.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(aa){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}da(x,aa);return x}(function(aa){return aa&&aa.__esModule?aa:{default:aa}}(ha(0)).default.Text);ma.default=
65
- ka},function(ka,ma,ha){function da(f,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(f,b):f.__proto__=b)}Object.defineProperty(ma,"__esModule",{value:!0});var aa=function(){function f(b,a){for(var e=0;e<a.length;e++){var h=a[e];h.enumerable=h.enumerable||!1;h.configurable=
66
- !0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,a,e){a&&f(b.prototype,a);e&&f(b,e);return b}}(),x=function h(b,a,e){null===b&&(b=Function.prototype);var n=Object.getOwnPropertyDescriptor(b,a);if(void 0===n){if(b=Object.getPrototypeOf(b),null!==b)return h(b,a,e)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(e)}};ka=(ka=ha(54))&&ka.__esModule?ka:{default:ka};ha=ha(10);var y=(0,(ha&&ha.__esModule?ha:{default:ha}).default)("quill:events");
67
- ["selectionchange","mousedown","mouseup","click"].forEach(function(b){document.addEventListener(b,function(){for(var a=arguments.length,e=Array(a),h=0;h<a;h++)e[h]=arguments[h];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(n){if(n.__quill&&n.__quill.emitter){var z;(z=n.__quill.emitter).handleDOM.apply(z,e)}})})});ha=function(b){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var e=(a.__proto__||Object.getPrototypeOf(a)).call(this);
68
- 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.listeners={};e.on("error",y.error);return e}da(a,b);aa(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(e){for(var h=arguments.length,n=Array(1<h?h-1:0),z=1;z<h;z++)n[z-1]=arguments[z];(this.listeners[e.type]||[]).forEach(function(w){var ea=
69
- w.node;w=w.handler;(e.target===ea||ea.contains(e.target))&&w.apply(void 0,[e].concat(n))})}},{key:"listenDOM",value:function(e,h,n){this.listeners[e]||(this.listeners[e]=[]);this.listeners[e].push({node:h,handler:n})}}]);return a}(ka.default);ha.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"};ha.sources={API:"api",SILENT:"silent",USER:"user"};
70
- ma.default=ha},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});ka=function aa(da){var x=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=da;this.options=x};ka.DEFAULTS={};ma.default=ka},function(ka,ma){function ha(y){if(aa.indexOf(y)<=aa.indexOf(x)){for(var f,b=arguments.length,a=Array(1<b?b-1:0),e=1;e<b;e++)a[e-1]=arguments[e];(f=console)[y].apply(f,a)}}function da(y){return aa.reduce(function(f,
71
- b){f[b]=ha.bind(console,b,y);return f},{})}Object.defineProperty(ma,"__esModule",{value:!0});var aa=["error","warn","log","info"],x="warn";ha.level=da.level=function(y){x=y};ma.default=da},function(ka,ma,ha){function da(a){return!a||"object"!==typeof a||"number"!==typeof a.length||"function"!==typeof a.copy||"function"!==typeof a.slice||0<a.length&&"number"!==typeof a[0]?!1:!0}function aa(a,e,h){var n;if(null===a||void 0===a||null===e||void 0===e||a.prototype!==e.prototype)return!1;if(f(a)){if(!f(e))return!1;
72
- a=x.call(a);e=x.call(e);return b(a,e,h)}if(da(a)){if(!da(e)||a.length!==e.length)return!1;for(n=0;n<a.length;n++)if(a[n]!==e[n])return!1;return!0}try{var z=y(a);var w=y(e)}catch(ea){return!1}if(z.length!=w.length)return!1;z.sort();w.sort();for(n=z.length-1;0<=n;n--)if(z[n]!=w[n])return!1;for(n=z.length-1;0<=n;n--)if(w=z[n],!b(a[w],e[w],h))return!1;return typeof a===typeof e}var x=Array.prototype.slice,y=ha(52),f=ha(53),b=ka.exports=function(a,e,h){h||(h={});return a===e?!0:a instanceof Date&&e instanceof
73
- Date?a.getTime()===e.getTime():!a||!e||"object"!=typeof a&&"object"!=typeof e?h.strict?a===e:a==e:aa(a,e,h)}},function(ka,ma,ha){Object.defineProperty(ma,"__esModule",{value:!0});var da=ha(1);ka=function(){function aa(x,y,f){void 0===f&&(f={});this.attrName=x;this.keyName=y;x=da.Scope.TYPE&da.Scope.ATTRIBUTE;this.scope=null!=f.scope?f.scope&da.Scope.LEVEL|x:da.Scope.ATTRIBUTE;null!=f.whitelist&&(this.whitelist=f.whitelist)}aa.keys=function(x){return[].map.call(x.attributes,function(y){return y.name})};
74
- aa.prototype.add=function(x,y){if(!this.canAdd(x,y))return!1;x.setAttribute(this.keyName,y);return!0};aa.prototype.canAdd=function(x,y){return null==da.query(x,da.Scope.BLOT&(this.scope|da.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof y?-1<this.whitelist.indexOf(y.replace(/["']/g,"")):-1<this.whitelist.indexOf(y)};aa.prototype.remove=function(x){x.removeAttribute(this.keyName)};aa.prototype.value=function(x){var y=x.getAttribute(this.keyName);return this.canAdd(x,y)&&y?y:""};return aa}();
75
- ma.default=ka},function(ka,ma,ha){function da(w){return w&&w.__esModule?w:{default:w}}function aa(w,ea){if(!(w instanceof ea))throw new TypeError("Cannot call a class as a function");}function x(w,ea){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ea||"object"!==typeof ea&&"function"!==typeof ea?w:ea}function y(w,ea){if("function"!==typeof ea&&null!==ea)throw new TypeError("Super expression must either be null or a function, not "+typeof ea);w.prototype=
76
- Object.create(ea&&ea.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});ea&&(Object.setPrototypeOf?Object.setPrototypeOf(w,ea):w.__proto__=ea)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.Code=void 0;var f=function(){return function(w,ea){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w)){var ja=[],ca=!0,ba=!1,fa=void 0;try{for(var ia=w[Symbol.iterator](),la;!(ca=(la=ia.next()).done)&&(ja.push(la.value),!ea||ja.length!==ea);ca=!0);}catch(na){ba=
77
- !0,fa=na}finally{try{if(!ca&&ia["return"])ia["return"]()}finally{if(ba)throw fa;}}return ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function w(ea,ja){for(var ca=0;ca<ja.length;ca++){var ba=ja[ca];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=!0);Object.defineProperty(ea,ba.key,ba)}}return function(ea,ja,ca){ja&&w(ea.prototype,ja);ca&&w(ea,ca);return ea}}(),a=function ba(ea,ja,ca){null===ea&&(ea=Function.prototype);
78
- var fa=Object.getOwnPropertyDescriptor(ea,ja);if(void 0===fa){if(ea=Object.getPrototypeOf(ea),null!==ea)return ba(ea,ja,ca)}else{if("value"in fa)return fa.value;ja=fa.get;return void 0===ja?void 0:ja.call(ca)}};ka=ha(2);var e=da(ka);ka=ha(0);var h=da(ka);ka=ha(4);ka=da(ka);var n=ha(6);n=da(n);ha=ha(7);var z=da(ha);ha=function(ea){function ja(){aa(this,ja);return x(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}y(ja,ea);return ja}(n.default);ha.blotName="code";ha.tagName="CODE";
79
- ka=function(ea){function ja(){aa(this,ja);return x(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}y(ja,ea);b(ja,[{key:"delta",value:function(){var ca=this,ba=this.domNode.textContent;ba.endsWith("\n")&&(ba=ba.slice(0,-1));return ba.split("\n").reduce(function(fa,ia){return fa.insert(ia).insert("\n",ca.formats())},new e.default)}},{key:"format",value:function(ca,ba){if(ca!==this.statics.blotName||!ba){var fa=this.descendant(z.default,this.length()-1);fa=f(fa,1)[0];null!=fa&&
80
- fa.deleteAt(fa.length()-1,1);a(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"format",this).call(this,ca,ba)}}},{key:"formatAt",value:function(ca,ba,fa,ia){if(0!==ba&&null!=h.default.query(fa,h.default.Scope.BLOCK)&&(fa!==this.statics.blotName||ia!==this.statics.formats(this.domNode))){var la=this.newlineIndex(ca);if(!(0>la||la>=ca+ba)){var na=this.newlineIndex(ca,!0)+1;la=la-na+1;var ra=this.isolate(na,la),qa=ra.next;ra.format(fa,ia);qa instanceof ja&&qa.formatAt(0,ca-na+ba-la,fa,ia)}}}},
81
- {key:"insertAt",value:function(ca,ba,fa){null==fa&&(ca=this.descendant(z.default,ca),ca=f(ca,2),ca[0].insertAt(ca[1],ba))}},{key:"length",value:function(){var ca=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?ca:ca+1}},{key:"newlineIndex",value:function(ca){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,ca).lastIndexOf("\n");var ba=this.domNode.textContent.slice(ca).indexOf("\n");return-1<ba?ca+ba:-1}},{key:"optimize",
82
- value:function(ca){this.domNode.textContent.endsWith("\n")||this.appendChild(h.default.create("text","\n"));a(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"optimize",this).call(this,ca);var ba=this.next;null!=ba&&ba.prev===this&&ba.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===ba.statics.formats(ba.domNode)&&(ba.optimize(ca),ba.moveChildren(this),ba.remove())}},{key:"replace",value:function(ca){a(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),
83
- "replace",this).call(this,ca);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ba){var fa=h.default.find(ba);null==fa?ba.parentNode.removeChild(ba):fa instanceof h.default.Embed?fa.remove():fa.unwrap()})}}],[{key:"create",value:function(ca){ca=a(ja.__proto__||Object.getPrototypeOf(ja),"create",this).call(this,ca);ca.setAttribute("spellcheck",!1);return ca}},{key:"formats",value:function(){return!0}}]);return ja}(ka.default);ka.blotName="code-block";ka.tagName="PRE";ka.TAB=" ";ma.Code=
84
- ha;ma.default=ka},function(ka,ma,ha){function da(la){return la&&la.__esModule?la:{default:la}}function aa(la,na){return Object.keys(na).reduce(function(ra,qa){if(null==la[qa])return ra;na[qa]===la[qa]?ra[qa]=na[qa]:Array.isArray(na[qa])?0>na[qa].indexOf(la[qa])&&(ra[qa]=na[qa].concat([la[qa]])):ra[qa]=[na[qa],la[qa]];return ra},{})}function x(la){return la.reduce(function(na,ra){if(1===ra.insert){var qa=(0,ca.default)(ra.attributes);delete qa.image;return na.insert({image:ra.attributes.image},qa)}null==
85
- ra.attributes||!0!==ra.attributes.list&&!0!==ra.attributes.bullet||(ra=(0,ca.default)(ra),ra.attributes.list?ra.attributes.list="ordered":(ra.attributes.list="bullet",delete ra.attributes.bullet));return"string"===typeof ra.insert?(qa=ra.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),na.insert(qa,ra.attributes)):na.push(ra)},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 ra=[],qa=!0,ta=!1,va=void 0;try{for(var oa=la[Symbol.iterator](),wa;!(qa=(wa=oa.next()).done)&&(ra.push(wa.value),!na||ra.length!==na);qa=!0);}catch(Da){ta=!0,va=Da}finally{try{if(!qa&&oa["return"])oa["return"]()}finally{if(ta)throw va;}}return ra}throw new TypeError("Invalid attempt to destructure non-iterable instance");
87
- }}(),b=function(){function la(na,ra){for(var qa=0;qa<ra.length;qa++){var ta=ra[qa];ta.enumerable=ta.enumerable||!1;ta.configurable=!0;"value"in ta&&(ta.writable=!0);Object.defineProperty(na,ta.key,ta)}}return function(na,ra,qa){ra&&la(na.prototype,ra);qa&&la(na,qa);return na}}();ka=ha(2);var a=da(ka);ka=ha(20);var e=da(ka);ka=ha(0);var h=da(ka);ka=ha(13);var n=da(ka);ka=ha(24);var z=da(ka),w=ha(4),ea=da(w);ka=ha(16);var ja=da(ka);ka=ha(21);var ca=da(ka);ka=ha(11);var ba=da(ka);ha=ha(3);var fa=da(ha),
88
- ia=/^[ -~]*$/;ha=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()}b(la,[{key:"applyDelta",value:function(na){var ra=this,qa=!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")&&qa&&(qa=!1,
89
- oa=oa.slice(0,-1));va>=ta&&!oa.endsWith("\n")&&(qa=!0);ra.scroll.insertAt(va,oa);oa=ra.scroll.line(va);oa=f(oa,2);var Ia=oa[0],Ma=oa[1];oa=(0,fa.default)({},(0,w.bubbleFormats)(Ia));Ia instanceof ea.default&&(Ia=Ia.descendant(h.default.Leaf,Ma),Ia=f(Ia,1)[0],oa=(0,fa.default)(oa,(0,w.bubbleFormats)(Ia)));Da=e.default.attributes.diff(oa,Da)||{}}else if("object"===y(oa.insert)){Ia=Object.keys(oa.insert)[0];if(null==Ia)return va;ra.scroll.insertAt(va,Ia,oa.insert[Ia])}ta+=wa}Object.keys(Da).forEach(function(Ca){ra.scroll.formatAt(va,
90
- wa,Ca,Da[Ca])});return va+wa},0);na.reduce(function(va,oa){return"number"===typeof oa.delete?(ra.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,ra){this.scroll.deleteAt(na,ra);return this.update((new a.default).retain(na).delete(ra))}},{key:"formatLine",value:function(na,ra){var qa=this,ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(ta).forEach(function(va){if(null==
91
- qa.scroll.whitelist||qa.scroll.whitelist[va]){var oa=qa.scroll.lines(na,Math.max(ra,1)),wa=ra;oa.forEach(function(Da){var Ia=Da.length();if(Da instanceof n.default){var Ma=na-Da.offset(qa.scroll),Ca=Da.newlineIndex(Ma+wa)-Ma+1;Da.formatAt(Ma,Ca,va,ta[va])}else Da.format(va,ta[va]);wa-=Ia})}});this.scroll.optimize();return this.update((new a.default).retain(na).retain(ra,(0,ca.default)(ta)))}},{key:"formatText",value:function(na,ra){var qa=this,ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
92
- {};Object.keys(ta).forEach(function(va){qa.scroll.formatAt(na,ra,va,ta[va])});return this.update((new a.default).retain(na).retain(ra,(0,ca.default)(ta)))}},{key:"getContents",value:function(na,ra){return this.delta.slice(na,na+ra)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(na,ra){return na.concat(ra.delta())},new a.default)}},{key:"getFormat",value:function(na){var ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,qa=[],ta=[];0===ra?this.scroll.path(na).forEach(function(va){va=
93
- f(va,1)[0];va instanceof ea.default?qa.push(va):va instanceof h.default.Leaf&&ta.push(va)}):(qa=this.scroll.lines(na,ra),ta=this.scroll.descendants(h.default.Leaf,na,ra));ra=[qa,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=aa((0,w.bubbleFormats)(wa),oa)}return oa});return fa.default.apply(fa.default,ra)}},{key:"getText",value:function(na,ra){return this.getContents(na,ra).filter(function(qa){return"string"===
94
- typeof qa.insert}).map(function(qa){return qa.insert}).join("")}},{key:"insertEmbed",value:function(na,ra,qa){this.scroll.insertAt(na,ra,qa);var ta=this.update;na=(new a.default).retain(na);var va=na.insert,oa={};ra in oa?Object.defineProperty(oa,ra,{value:qa,enumerable:!0,configurable:!0,writable:!0}):oa[ra]=qa;return ta.call(this,va.call(na,oa))}},{key:"insertText",value:function(na,ra){var qa=this,ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ra=ra.replace(/\r\n/g,"\n").replace(/\r/g,
95
- "\n");this.scroll.insertAt(na,ra);Object.keys(ta).forEach(function(va){qa.scroll.formatAt(na,ra.length,va,ta[va])});return this.update((new a.default).retain(na).insert(ra,(0,ca.default)(ta)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var na=this.scroll.children.head;return na.statics.blotName!==ea.default.blotName||1<na.children.length?!1:na.children.head instanceof ja.default}},{key:"removeFormat",value:function(na,ra){var qa=
96
- this.getText(na,ra),ta=this.scroll.line(na+ra),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"));ra=this.getContents(na,ra+oa).diff((new a.default).insert(qa).concat(wa));na=(new a.default).retain(na).concat(ra);return this.applyDelta(na)}},{key:"update",value:function(na){var ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],qa=2<arguments.length&&void 0!==arguments[2]?
97
- arguments[2]:void 0,ta=this.delta;if(1===ra.length&&"characterData"===ra[0].type&&ra[0].target.data.match(ia)&&h.default.find(ra[0].target)){var va=h.default.find(ra[0].target),oa=(0,w.bubbleFormats)(va),wa=va.offset(this.scroll);ra=ra[0].oldValue.replace(z.default.CONTENTS,"");ra=(new a.default).insert(ra);va=(new a.default).insert(va.value());na=(new a.default).retain(wa).concat(ra.diff(va,qa)).reduce(function(Da,Ia){return Ia.insert?Da.insert(Ia.insert,oa):Da.push(Ia)},new a.default);this.delta=
98
- ta.compose(na)}else this.delta=this.getDelta(),na&&(0,ba.default)(ta.compose(na),this.delta)||(na=ta.diff(this.delta,qa));return na}}]);return la}();ma.default=ha},function(ka,ma,ha){function da(ea){return ea&&ea.__esModule?ea:{default:ea}}function aa(ea){if(Array.isArray(ea)){for(var ja=0,ca=Array(ea.length);ja<ea.length;ja++)ca[ja]=ea[ja];return ca}return Array.from(ea)}function x(ea,ja){if(!(ea instanceof ja))throw new TypeError("Cannot call a class as a function");}function y(ea,ja){try{ja.parentNode}catch(ca){return!1}ja instanceof
99
- Text&&(ja=ja.parentNode);return ea.contains(ja)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.Range=void 0;var f=function(){return function(ea,ja){if(Array.isArray(ea))return ea;if(Symbol.iterator in Object(ea)){var ca=[],ba=!0,fa=!1,ia=void 0;try{for(var la=ea[Symbol.iterator](),na;!(ba=(na=la.next()).done)&&(ca.push(na.value),!ja||ca.length!==ja);ba=!0);}catch(ra){fa=!0,ia=ra}finally{try{if(!ba&&la["return"])la["return"]()}finally{if(fa)throw ia;}}return ca}throw new TypeError("Invalid attempt to destructure non-iterable instance");
100
- }}(),b=function(){function ea(ja,ca){for(var ba=0;ba<ca.length;ba++){var fa=ca[ba];fa.enumerable=fa.enumerable||!1;fa.configurable=!0;"value"in fa&&(fa.writable=!0);Object.defineProperty(ja,fa.key,fa)}}return function(ja,ca,ba){ca&&ea(ja.prototype,ca);ba&&ea(ja,ba);return ja}}();ka=ha(0);var a=da(ka);ka=ha(21);var e=da(ka);ka=ha(11);var h=da(ka);ka=ha(8);var n=da(ka);ha=ha(10);var z=(0,da(ha).default)("quill:selection"),w=function ca(ja){var ba=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
101
- 0;x(this,ca);this.index=ja;this.length=ba};ha=function(){function ja(ca,ba){var fa=this;x(this,ja);this.emitter=ba;this.scroll=ca;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(){fa.mouseDown||setTimeout(fa.update.bind(fa,n.default.sources.USER),1)});this.emitter.on(n.default.events.EDITOR_CHANGE,
102
- function(ia,la){ia===n.default.events.TEXT_CHANGE&&0<la.length()&&fa.update(n.default.sources.SILENT)});this.emitter.on(n.default.events.SCROLL_BEFORE_UPDATE,function(){if(fa.hasFocus()){var ia=fa.getNativeRange();if(null!=ia&&ia.start.node!==fa.cursor.textNode)fa.emitter.once(n.default.events.SCROLL_UPDATE,function(){try{fa.setNativeRange(ia.start.node,ia.start.offset,ia.end.node,ia.end.offset)}catch(la){}})}});this.emitter.on(n.default.events.SCROLL_OPTIMIZE,function(ia,la){la.range&&(ia=la.range,
103
- fa.setNativeRange(ia.startNode,ia.startOffset,ia.endNode,ia.endOffset))});this.update(n.default.sources.SILENT)}b(ja,[{key:"handleComposition",value:function(){var ca=this;this.root.addEventListener("compositionstart",function(){ca.composing=!0});this.root.addEventListener("compositionend",function(){ca.composing=!1;if(ca.cursor.parent){var ba=ca.cursor.restore();ba&&setTimeout(function(){ca.setNativeRange(ba.startNode,ba.startOffset,ba.endNode,ba.endOffset)},1)}})}},{key:"handleDragging",value:function(){var ca=
104
- this;this.emitter.listenDOM("mousedown",document.body,function(){ca.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){ca.mouseDown=!1;ca.update(n.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(ca,ba){if(null==this.scroll.whitelist||this.scroll.whitelist[ca]){this.scroll.update();var fa=this.getNativeRange();if(null!=fa&&fa.native.collapsed&&!a.default.query(ca,a.default.Scope.BLOCK)){if(fa.start.node!==
105
- this.cursor.textNode){var ia=a.default.find(fa.start.node,!1);if(null==ia)return;ia instanceof a.default.Leaf?(fa=ia.split(fa.start.offset),ia.parent.insertBefore(this.cursor,fa)):ia.insertBefore(this.cursor,fa.start.node);this.cursor.attach()}this.cursor.format(ca,ba);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",value:function(ca){var ba=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,fa=this.scroll.length();
106
- ca=Math.min(ca,fa-1);ba=Math.min(ca+ba,fa-1)-ca;fa=this.scroll.leaf(ca);var ia=f(fa,2);fa=ia[0];var la=ia[1];if(null==fa)return null;ia=fa.position(la,!0);ia=f(ia,2);var na=ia[0];la=ia[1];ia=document.createRange();if(0<ba){ia.setStart(na,la);ba=this.scroll.leaf(ca+ba);ba=f(ba,2);fa=ba[0];la=ba[1];if(null==fa)return null;ba=fa.position(la,!0);ba=f(ba,2);na=ba[0];la=ba[1];ia.setEnd(na,la);return ia.getBoundingClientRect()}ba="left";na instanceof Text?(la<na.data.length?(ia.setStart(na,la),ia.setEnd(na,
107
- la+1)):(ia.setStart(na,la-1),ia.setEnd(na,la),ba="right"),fa=ia.getBoundingClientRect()):(fa=fa.domNode.getBoundingClientRect(),0<la&&(ba="right"));return{bottom:fa.top+fa.height,height:fa.height,left:fa[ba],right:fa[ba],top:fa.top,width:0}}},{key:"getNativeRange",value:function(){var ca=document.getSelection();if(null==ca||0>=ca.rangeCount)return null;ca=ca.getRangeAt(0);if(null==ca)return null;ca=this.normalizeNative(ca);z.info("getNativeRange",ca);return ca}},{key:"getRange",value:function(){var ca=
108
- this.getNativeRange();return null==ca?[null,null]:[this.normalizedToRange(ca),ca]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(ca){var ba=this,fa=[[ca.start.node,ca.start.offset]];ca.native.collapsed||fa.push([ca.end.node,ca.end.offset]);fa=fa.map(function(ia){var la=f(ia,2);ia=la[0];la=la[1];var na=a.default.find(ia,!0),ra=na.offset(ba.scroll);return 0===la?ra:na instanceof a.default.Container?ra+na.length():ra+na.index(ia,
109
- la)});ca=Math.min(Math.max.apply(Math,aa(fa)),this.scroll.length()-1);fa=Math.min.apply(Math,[ca].concat(aa(fa)));return new w(fa,ca-fa)}},{key:"normalizeNative",value:function(ca){if(!y(this.root,ca.startContainer)||!ca.collapsed&&!y(this.root,ca.endContainer))return null;ca={start:{node:ca.startContainer,offset:ca.startOffset},end:{node:ca.endContainer,offset:ca.endOffset},native:ca};[ca.start,ca.end].forEach(function(ba){for(var fa=ba.node,ia=ba.offset;!(fa instanceof Text)&&0<fa.childNodes.length;)if(fa.childNodes.length>
110
- ia)fa=fa.childNodes[ia],ia=0;else if(fa.childNodes.length===ia)fa=fa.lastChild,ia=fa instanceof Text?fa.data.length:fa.childNodes.length+1;else break;ba.node=fa;ba.offset=ia});return ca}},{key:"rangeToNative",value:function(ca){var ba=this;ca=ca.collapsed?[ca.index]:[ca.index,ca.index+ca.length];var fa=[],ia=this.scroll.length();ca.forEach(function(la,na){la=Math.min(ia-1,la);la=ba.scroll.leaf(la);var ra=f(la,2);la=ra[1];na=ra[0].position(la,0!==na);la=f(na,2);na=la[0];la=la[1];fa.push(na,la)});2>
111
- fa.length&&(fa=fa.concat(fa));return fa}},{key:"scrollIntoView",value:function(ca){var ba=this.lastRange;if(null!=ba){var fa=this.getBounds(ba.index,ba.length);if(null!=fa){var ia=this.scroll.length()-1,la=this.scroll.line(Math.min(ba.index,ia)),na=la=f(la,1)[0];0<ba.length&&(ba=this.scroll.line(Math.min(ba.index+ba.length,ia)),na=f(ba,1)[0]);null!=la&&null!=na&&(ba=ca.getBoundingClientRect(),fa.top<ba.top?ca.scrollTop-=ba.top-fa.top:fa.bottom>ba.bottom&&(ca.scrollTop+=fa.bottom-ba.bottom))}}}},{key:"setNativeRange",
112
- value:function(ca,ba){var fa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:ca,ia=3<arguments.length&&void 0!==arguments[3]?arguments[3]:ba,la=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;z.info("setNativeRange",ca,ba,fa,ia);if(null==ca||null!=this.root.parentNode&&null!=ca.parentNode&&null!=fa.parentNode){var na=document.getSelection();if(null!=na)if(null!=ca){this.hasFocus()||this.root.focus();var ra=(this.getNativeRange()||{}).native;if(null==ra||la||ca!==ra.startContainer||
113
- ba!==ra.startOffset||fa!==ra.endContainer||ia!==ra.endOffset)"BR"==ca.tagName&&(ba=[].indexOf.call(ca.parentNode.childNodes,ca),ca=ca.parentNode),"BR"==fa.tagName&&(ia=[].indexOf.call(fa.parentNode.childNodes,fa),fa=fa.parentNode),la=document.createRange(),la.setStart(ca,ba),la.setEnd(fa,ia),na.removeAllRanges(),na.addRange(la)}else na.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(ca){var ba=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,fa=
114
- 2<arguments.length&&void 0!==arguments[2]?arguments[2]:n.default.sources.API;"string"===typeof ba&&(fa=ba,ba=!1);z.info("setRange",ca);if(null!=ca){var ia=this.rangeToNative(ca);this.setNativeRange.apply(this,aa(ia).concat([ba]))}else this.setNativeRange(null);this.update(fa)}},{key:"update",value:function(){var ca=0<arguments.length&&void 0!==arguments[0]?arguments[0]:n.default.sources.USER,ba=this.lastRange,fa=this.getRange();fa=f(fa,2);var ia=fa[1];this.lastRange=fa[0];null!=this.lastRange&&(this.savedRange=
115
- this.lastRange);if(!(0,h.default)(ba,this.lastRange)){var la;!this.composing&&null!=ia&&ia.native.collapsed&&ia.start.node!==this.cursor.textNode&&this.cursor.restore();ba=[n.default.events.SELECTION_CHANGE,(0,e.default)(this.lastRange),(0,e.default)(ba),ca];(la=this.emitter).emit.apply(la,[n.default.events.EDITOR_CHANGE].concat(ba));if(ca!==n.default.sources.SILENT){var na;(na=this.emitter).emit.apply(na,ba)}}}}]);return ja}();ma.Range=w;ma.default=ha},function(ka,ma,ha){function da(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 aa=function(){function y(f,b){for(var a=0;a<b.length;a++){var e=b[a];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,
117
- e.key,e)}}return function(f,b,a){b&&y(f.prototype,b);a&&y(f,a);return f}}(),x=function e(f,b,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,b);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return e(f,b,a)}else{if("value"in h)return h.value;b=h.get;return void 0===b?void 0:b.call(a)}};ka=function(f){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var a=(b.__proto__||Object.getPrototypeOf(b)).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}da(b,f);aa(b,[{key:"insertInto",value:function(a,e){0===a.children.length?x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertInto",this).call(this,a,e):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return b}(function(f){return f&&f.__esModule?f:{default:f}}(ha(0)).default.Embed);ka.blotName="break";ka.tagName="BR";ma.default=ka},function(ka,
119
- ma,ha){function da(f){var b=y.find(f);if(null==b)try{b=y.create(f)}catch(a){b=y.create(y.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(e){b.domNode.appendChild(e)}),f.parentNode&&f.parentNode.replaceChild(b.domNode,f),b.attach()}return b}var aa=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&(b[e]=a[e])};return function(b,a){function e(){this.constructor=b}f(b,
120
- a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});var x=ha(44);ka=ha(30);var y=ha(1);ha=function(f){function b(a){a=f.call(this,a)||this;a.build();return a}aa(b,f);b.prototype.appendChild=function(a){this.insertBefore(a)};b.prototype.attach=function(){f.prototype.attach.call(this);this.children.forEach(function(a){a.attach()})};b.prototype.build=function(){var a=this;this.children=new x.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var h=
121
- da(e);a.insertBefore(h,a.children.head||void 0)}catch(n){if(!(n instanceof y.ParchmentError))throw n;}})};b.prototype.deleteAt=function(a,e){if(0===a&&e===this.length())return this.remove();this.children.forEachAt(a,e,function(h,n,z){h.deleteAt(n,z)})};b.prototype.descendant=function(a,e){var h=this.children.find(e);e=h[0];h=h[1];return null==a.blotName&&a(e)||null!=a.blotName&&e instanceof a?[e,h]:e instanceof b?e.descendant(a,h):[null,-1]};b.prototype.descendants=function(a,e,h){void 0===e&&(e=
122
- 0);void 0===h&&(h=Number.MAX_VALUE);var n=[],z=h;this.children.forEachAt(e,h,function(w,ea,ja){(null==a.blotName&&a(w)||null!=a.blotName&&w instanceof a)&&n.push(w);w instanceof b&&(n=n.concat(w.descendants(a,ea,z)));z-=ja});return n};b.prototype.detach=function(){this.children.forEach(function(a){a.detach()});f.prototype.detach.call(this)};b.prototype.formatAt=function(a,e,h,n){this.children.forEachAt(a,e,function(z,w,ea){z.formatAt(w,ea,h,n)})};b.prototype.insertAt=function(a,e,h){var n=this.children.find(a);
123
- a=n[0];n=n[1];a?a.insertAt(n,e,h):(e=null==h?y.create("text",e):y.create(e,h),this.appendChild(e))};b.prototype.insertBefore=function(a,e){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,e)};b.prototype.length=function(){return this.children.reduce(function(a,e){return a+e.length()},0)};b.prototype.moveChildren=function(a,e){this.children.forEach(function(h){a.insertBefore(h,
124
- e)})};b.prototype.optimize=function(a){f.prototype.optimize.call(this,a);if(0===this.children.length)if(null!=this.statics.defaultChild){var e=y.create(this.statics.defaultChild);this.appendChild(e);e.optimize(a)}else this.remove()};b.prototype.path=function(a,e){void 0===e&&(e=!1);var h=this.children.find(a,e),n=h[0];h=h[1];a=[[this,a]];if(n instanceof b)return a.concat(n.path(h,e));null!=n&&a.push([n,h]);return a};b.prototype.removeChild=function(a){this.children.remove(a)};b.prototype.replace=
125
- function(a){a instanceof b&&a.moveChildren(this);f.prototype.replace.call(this,a)};b.prototype.split=function(a,e){void 0===e&&(e=!1);if(!e){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,z){n=n.split(z,e);h.appendChild(n)});return h};b.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};b.prototype.update=function(a){var e=this,h=[],n=[];a.forEach(function(z){z.target===
126
- e.domNode&&"childList"===z.type&&(h.push.apply(h,z.addedNodes),n.push.apply(n,z.removedNodes))});n.forEach(function(z){null!=z.parentNode&&"IFRAME"!==z.tagName&&document.body.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_CONTAINED_BY||(z=y.find(z),null!=z&&(null!=z.domNode.parentNode&&z.domNode.parentNode!==e.domNode||z.detach()))});h.filter(function(z){return z.parentNode==e.domNode}).sort(function(z,w){return z===w?0:z.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(z){var w=
127
- null;null!=z.nextSibling&&(w=y.find(z.nextSibling));z=da(z);if(z.next!=w||null==z.next)null!=z.parent&&z.parent.removeChild(e),e.insertBefore(z,w||void 0)})};return b}(ka.default);ma.default=ha},function(ka,ma,ha){var da=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&(b[e]=a[e])};return function(b,a){function e(){this.constructor=b}f(b,a);b.prototype=null===a?Object.create(a):
128
- (e.prototype=a.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});var aa=ha(12),x=ha(31);ka=ha(17);var y=ha(1);ha=function(f){function b(a){a=f.call(this,a)||this;a.attributes=new x.default(a.domNode);return a}da(b,f);b.formats=function(a){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return a.tagName.toLowerCase()};b.prototype.format=function(a,e){var h=y.query(a);h instanceof aa.default?this.attributes.attribute(h,e):e&&(null==h||a===this.statics.blotName&&
129
- this.formats()[a]===e||this.replaceWith(a,e))};b.prototype.formats=function(){var a=this.attributes.values(),e=this.statics.formats(this.domNode);null!=e&&(a[this.statics.blotName]=e);return a};b.prototype.replaceWith=function(a,e){a=f.prototype.replaceWith.call(this,a,e);this.attributes.copy(a);return a};b.prototype.update=function(a,e){var h=this;f.prototype.update.call(this,a,e);a.some(function(n){return n.target===h.domNode&&"attributes"===n.type})&&this.attributes.build()};b.prototype.wrap=function(a,
130
- e){a=f.prototype.wrap.call(this,a,e);a instanceof b&&a.statics.scope===this.statics.scope&&this.attributes.move(a);return a};return b}(ka.default);ma.default=ha},function(ka,ma,ha){var da=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var b in f)f.hasOwnProperty(b)&&(y[b]=f[b])};return function(y,f){function b(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}();
131
- Object.defineProperty(ma,"__esModule",{value:!0});ka=ha(30);var aa=ha(1);ha=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}da(y,x);y.value=function(){return!0};y.prototype.index=function(f,b){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(b,1):-1};y.prototype.position=function(f){var b=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<f&&(b+=1);return[this.parent.domNode,b]};y.prototype.value=function(){var f;
132
- return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f};y.scope=aa.Scope.INLINE_BLOT;return y}(ka.default);ma.default=ha},function(ka,ma,ha){function da(f){this.ops=f;this.offset=this.index=0}var aa=ha(11),x=ha(3),y={attributes:{compose:function(f,b,a){"object"!==typeof f&&(f={});"object"!==typeof b&&(b={});var e=x(!0,{},b);a||(e=Object.keys(e).reduce(function(n,z){null!=e[z]&&(n[z]=e[z]);return n},{}));for(var h in f)void 0!==f[h]&&void 0===b[h]&&(e[h]=f[h]);return 0<Object.keys(e).length?
133
- e:void 0},diff:function(f,b){"object"!==typeof f&&(f={});"object"!==typeof b&&(b={});var a=Object.keys(f).concat(Object.keys(b)).reduce(function(e,h){aa(f[h],b[h])||(e[h]=void 0===b[h]?null:b[h]);return e},{});return 0<Object.keys(a).length?a:void 0},transform:function(f,b,a){if("object"!==typeof f)return b;if("object"===typeof b){if(!a)return b;a=Object.keys(b).reduce(function(e,h){void 0===f[h]&&(e[h]=b[h]);return e},{});return 0<Object.keys(a).length?a:void 0}}},iterator:function(f){return new da(f)},
134
- length:function(f){return"number"===typeof f["delete"]?f["delete"]:"number"===typeof f.retain?f.retain:"string"===typeof f.insert?f.insert.length:1}};da.prototype.hasNext=function(){return Infinity>this.peekLength()};da.prototype.next=function(f){f||(f=Infinity);var b=this.ops[this.index];if(b){var a=this.offset,e=y.length(b);f>=e-a?(f=e-a,this.index+=1,this.offset=0):this.offset+=f;if("number"===typeof b["delete"])return{"delete":f};e={};b.attributes&&(e.attributes=b.attributes);"number"===typeof b.retain?
135
- e.retain=f:e.insert="string"===typeof b.insert?b.insert.substr(a,f):b.insert;return e}return{retain:Infinity}};da.prototype.peek=function(){return this.ops[this.index]};da.prototype.peekLength=function(){return this.ops[this.index]?y.length(this.ops[this.index])-this.offset:Infinity};da.prototype.peekType=function(){if(this.ops[this.index]){if("number"===typeof this.ops[this.index]["delete"])return"delete";if("number"!==typeof this.ops[this.index].retain)return"insert"}return"retain"};da.prototype.rest=
136
- function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var f=this.offset,b=this.index,a=this.next(),e=this.ops.slice(this.index);this.offset=f;this.index=b;return[a].concat(e)}return[]};ka.exports=y},function(ka){var ma=function(){function ha(a,e){return null!=e&&a instanceof e}function da(a,e,h,n,z){function w(ba,fa){if(null===ba)return null;if(0===fa||"object"!=typeof ba)return ba;if(ha(ba,y))var ia=new y;else if(ha(ba,f))ia=new f;else if(ha(ba,b))ia=new b(function(ta,
137
- va){ba.then(function(oa){ta(w(oa,fa-1))},function(oa){va(w(oa,fa-1))})});else if(da.__isArray(ba))ia=[];else if(da.__isRegExp(ba))ia=new RegExp(ba.source,x(ba)),ba.lastIndex&&(ia.lastIndex=ba.lastIndex);else if(da.__isDate(ba))ia=new Date(ba.getTime());else{if(ca&&pa.isBuffer(ba))return ia=pa.allocUnsafe?pa.allocUnsafe(ba.length):new pa(ba.length),ba.copy(ia),ia;if(ha(ba,Error))ia=Object.create(ba);else if("undefined"==typeof n){var la=Object.getPrototypeOf(ba);ia=Object.create(la)}else ia=Object.create(n),
138
- la=n}if(e){var na=ea.indexOf(ba);if(-1!=na)return ja[na];ea.push(ba);ja.push(ia)}ha(ba,y)&&ba.forEach(function(ta,va){va=w(va,fa-1);ta=w(ta,fa-1);ia.set(va,ta)});ha(ba,f)&&ba.forEach(function(ta){ta=w(ta,fa-1);ia.add(ta)});for(var ra in ba){var qa;la&&(qa=Object.getOwnPropertyDescriptor(la,ra));qa&&null==qa.set||(ia[ra]=w(ba[ra],fa-1))}if(Object.getOwnPropertySymbols)for(na=Object.getOwnPropertySymbols(ba),ra=0;ra<na.length;ra++)if(qa=na[ra],la=Object.getOwnPropertyDescriptor(ba,qa),!la||la.enumerable||
139
- z)ia[qa]=w(ba[qa],fa-1),la.enumerable||Object.defineProperty(ia,qa,{enumerable:!1});if(z)for(na=Object.getOwnPropertyNames(ba),ra=0;ra<na.length;ra++)qa=na[ra],la=Object.getOwnPropertyDescriptor(ba,qa),la&&la.enumerable||(ia[qa]=w(ba[qa],fa-1),Object.defineProperty(ia,qa,{enumerable:!1}));return ia}"object"===typeof e&&(h=e.depth,n=e.prototype,z=e.includeNonEnumerable,e=e.circular);var ea=[],ja=[],ca="undefined"!=typeof pa;"undefined"==typeof e&&(e=!0);"undefined"==typeof h&&(h=Infinity);return w(a,
140
- h)}function aa(a){return Object.prototype.toString.call(a)}function x(a){var e="";a.global&&(e+="g");a.ignoreCase&&(e+="i");a.multiline&&(e+="m");return e}try{var y=Map}catch(a){y=function(){}}try{var f=Set}catch(a){f=function(){}}try{var b=Promise}catch(a){b=function(){}}da.clonePrototype=function(a){function e(){}if(null===a)return null;e.prototype=a;return new e};da.__objToStr=aa;da.__isDate=function(a){return"object"===typeof a&&"[object Date]"===aa(a)};da.__isArray=function(a){return"object"===
141
- typeof a&&"[object Array]"===aa(a)};da.__isRegExp=function(a){return"object"===typeof a&&"[object RegExp]"===aa(a)};da.__getRegExpFlags=x;return da}();"object"===typeof ka&&ka.exports&&(ka.exports=ma)},function(ka,ma,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function aa(ja,ca){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ca||"object"!==typeof ca&&"function"!==typeof ca?ja:ca}function x(ja,ca){if("function"!==typeof ca&&null!==
142
- ca)throw new TypeError("Super expression must either be null or a function, not "+typeof ca);ja.prototype=Object.create(ca&&ca.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,ca):ja.__proto__=ca)}function y(ja){return ja instanceof z.default||ja instanceof n.BlockEmbed}Object.defineProperty(ma,"__esModule",{value:!0});var f=function(){return function(ja,ca){if(Array.isArray(ja))return ja;if(Symbol.iterator in Object(ja)){var ba=
143
- [],fa=!0,ia=!1,la=void 0;try{for(var na=ja[Symbol.iterator](),ra;!(fa=(ra=na.next()).done)&&(ba.push(ra.value),!ca||ba.length!==ca);fa=!0);}catch(qa){ia=!0,la=qa}finally{try{if(!fa&&na["return"])na["return"]()}finally{if(ia)throw la;}}return ba}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function ja(ca,ba){for(var fa=0;fa<ba.length;fa++){var ia=ba[fa];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=!0);Object.defineProperty(ca,
144
- ia.key,ia)}}return function(ca,ba,fa){ba&&ja(ca.prototype,ba);fa&&ja(ca,fa);return ca}}(),a=function ia(ca,ba,fa){null===ca&&(ca=Function.prototype);var la=Object.getOwnPropertyDescriptor(ca,ba);if(void 0===la){if(ca=Object.getPrototypeOf(ca),null!==ca)return ia(ca,ba,fa)}else{if("value"in la)return la.value;ba=la.get;return void 0===ba?void 0:ba.call(fa)}};ka=ha(0);var e=da(ka);ka=ha(8);var h=da(ka),n=ha(4),z=da(n);ka=ha(16);var w=da(ka);ka=ha(13);var ea=da(ka);ha=ha(25);ha=da(ha);ka=function(ca){function ba(fa,
145
- ia){if(!(this instanceof ba))throw new TypeError("Cannot call a class as a function");fa=aa(this,(ba.__proto__||Object.getPrototypeOf(ba)).call(this,fa));fa.emitter=ia.emitter;Array.isArray(ia.whitelist)&&(fa.whitelist=ia.whitelist.reduce(function(la,na){la[na]=!0;return la},{}));fa.domNode.addEventListener("DOMNodeInserted",function(){});fa.optimize();fa.enable();return fa}x(ba,ca);b(ba,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},
146
- {key:"deleteAt",value:function(fa,ia){var la=this.line(fa),na=f(la,2);la=na[0];var ra=na[1];na=this.line(fa+ia);na=f(na,1)[0];a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"deleteAt",this).call(this,fa,ia);if(null!=na&&la!==na&&0<ra){if(la instanceof n.BlockEmbed||na instanceof n.BlockEmbed){this.optimize();return}if(la instanceof ea.default){if(fa=la.newlineIndex(la.length(),!0),-1<fa&&(la=la.split(fa+1),la===na)){this.optimize();return}}else na instanceof ea.default&&(fa=na.newlineIndex(0),
147
- -1<fa&&na.split(fa+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(fa,ia,la,na){if(null==this.whitelist||this.whitelist[la])a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"formatAt",this).call(this,fa,ia,la,na),this.optimize()}},{key:"insertAt",value:function(fa,
148
- ia,la){if(null==la||null==this.whitelist||this.whitelist[ia])fa>=this.length()?null==la||null==e.default.query(ia,e.default.Scope.BLOCK)?(fa=e.default.create(this.statics.defaultChild),this.appendChild(fa),null==la&&ia.endsWith("\n")&&(ia=ia.slice(0,-1)),fa.insertAt(0,ia,la)):(ia=e.default.create(ia,la),this.appendChild(ia)):a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"insertAt",this).call(this,fa,ia,la),this.optimize()}},{key:"insertBefore",value:function(fa,ia){if(fa.statics.scope===
149
- e.default.Scope.INLINE_BLOT){var la=e.default.create(this.statics.defaultChild);la.appendChild(fa);fa=la}a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"insertBefore",this).call(this,fa,ia)}},{key:"leaf",value:function(fa){return this.path(fa).pop()||[null,-1]}},{key:"line",value:function(fa){return fa===this.length()?this.line(fa-1):this.descendant(y,fa)}},{key:"lines",value:function(){return function ra(ia,la,na){var qa=[],ta=na;ia.children.forEachAt(la,na,function(va,oa,wa){y(va)?
150
- qa.push(va):va instanceof e.default.Container&&(qa=qa.concat(ra(va,oa,ta)));ta-=wa});return qa}(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 fa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],ia=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"optimize",this).call(this,fa,
151
- ia),0<fa.length&&this.emitter.emit(h.default.events.SCROLL_OPTIMIZE,fa,ia))}},{key:"path",value:function(fa){return a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"path",this).call(this,fa).slice(1)}},{key:"update",value:function(fa){if(!0!==this.batch){var ia=h.default.sources.USER;"string"===typeof fa&&(ia=fa);Array.isArray(fa)||(fa=this.observer.takeRecords());0<fa.length&&this.emitter.emit(h.default.events.SCROLL_BEFORE_UPDATE,ia,fa);a(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),
152
- "update",this).call(this,fa.concat([]));0<fa.length&&this.emitter.emit(h.default.events.SCROLL_UPDATE,ia,fa)}}}]);return ba}(e.default.Scroll);ka.blotName="scroll";ka.className="ql-editor";ka.tagName="DIV";ka.defaultChild="block";ka.allowedChildren=[z.default,n.BlockEmbed,ha.default];ma.default=ka},function(ka,ma,ha){function da(wa){return wa&&wa.__esModule?wa:{default:wa}}function aa(wa,Da,Ia){Da in wa?Object.defineProperty(wa,Da,{value:Ia,enumerable:!0,configurable:!0,writable:!0}):wa[Da]=Ia;return wa}
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 da(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=
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}da(a,e);z(a,[{key:"formatAt",value:function(b,h,n,ba){0>a.compare(this.statics.blotName,n)&&y.default.query(n,y.default.Scope.BLOT)?(b=this.isolate(b,h),ba&&b.wrap(n,ba)):
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 da(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(z,
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}da(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 da(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=
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}da(a,e);z(a,[{key:"emit",value:function(){y.log.apply(y,arguments);x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(b){for(var h=arguments.length,n=Array(1<h?h-1:0),ba=1;ba<h;ba++)n[ba-1]=arguments[ba];(this.listeners[b.type]||
69
+ []).forEach(function(w){var ea=w.node;w=w.handler;(b.target===ea||ea.contains(b.target))&&w.apply(void 0,[b].concat(n))})}},{key:"listenDOM",value:function(b,h,n){this.listeners[b]||(this.listeners[b]=[]);this.listeners[b].push({node:h,handler:n})}}]);return a}(ka.default);fa.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};fa.sources={API:"api",
70
+ SILENT:"silent",USER:"user"};ma.default=fa},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});ka=function z(da){var x=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof z))throw new TypeError("Cannot call a class as a function");this.quill=da;this.options=x};ka.DEFAULTS={};ma.default=ka},function(ka,ma){function fa(y){if(z.indexOf(y)<=z.indexOf(x)){for(var f,e=arguments.length,a=Array(1<e?e-1:0),b=1;b<e;b++)a[b-1]=arguments[b];(f=console)[y].apply(f,a)}}
71
+ function da(y){return z.reduce(function(f,e){f[e]=fa.bind(console,e,y);return f},{})}Object.defineProperty(ma,"__esModule",{value:!0});var z=["error","warn","log","info"],x="warn";fa.level=da.level=function(y){x=y};ma.default=da},function(ka,ma,fa){function da(a){return!a||"object"!==typeof a||"number"!==typeof a.length||"function"!==typeof a.copy||"function"!==typeof a.slice||0<a.length&&"number"!==typeof a[0]?!1:!0}function z(a,b,h){var n;if(null===a||void 0===a||null===b||void 0===b||a.prototype!==
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(da(a)){if(!da(b)||a.length!==b.length)return!1;for(n=0;n<a.length;n++)if(a[n]!==b[n])return!1;return!0}try{var ba=y(a);var w=y(b)}catch(ea){return!1}if(ba.length!=w.length)return!1;ba.sort();w.sort();for(n=ba.length-1;0<=n;n--)if(ba[n]!=w[n])return!1;for(n=ba.length-1;0<=n;n--)if(w=ba[n],!e(a[w],b[w],h))return!1;return typeof a===typeof b}var x=Array.prototype.slice,y=fa(52),f=fa(53),e=ka.exports=function(a,
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 da=fa(1);ka=function(){function z(x,y,f){void 0===f&&(f={});this.attrName=x;this.keyName=y;x=da.Scope.TYPE&da.Scope.ATTRIBUTE;this.scope=null!=f.scope?f.scope&da.Scope.LEVEL|x:da.Scope.ATTRIBUTE;null!=f.whitelist&&(this.whitelist=f.whitelist)}z.keys=function(x){return[].map.call(x.attributes,
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==da.query(x,da.Scope.BLOT&(this.scope|da.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof y?-1<this.whitelist.indexOf(y.replace(/["']/g,"")):-1<this.whitelist.indexOf(y)};z.prototype.remove=function(x){x.removeAttribute(this.keyName)};z.prototype.value=function(x){var y=x.getAttribute(this.keyName);return this.canAdd(x,
75
+ y)&&y?y:""};return z}();ma.default=ka},function(ka,ma,fa){function da(w){return w&&w.__esModule?w:{default:w}}function z(w,ea){if(!(w instanceof ea))throw new TypeError("Cannot call a class as a function");}function x(w,ea){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ea||"object"!==typeof ea&&"function"!==typeof ea?w:ea}function y(w,ea){if("function"!==typeof ea&&null!==ea)throw new TypeError("Super expression must either be null or a function, not "+
76
+ typeof ea);w.prototype=Object.create(ea&&ea.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});ea&&(Object.setPrototypeOf?Object.setPrototypeOf(w,ea):w.__proto__=ea)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.Code=void 0;var f=function(){return function(w,ea){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w)){var ja=[],aa=!0,ca=!1,ia=void 0;try{for(var ha=w[Symbol.iterator](),la;!(aa=(la=ha.next()).done)&&(ja.push(la.value),!ea||ja.length!==
77
+ ea);aa=!0);}catch(na){ca=!0,ia=na}finally{try{if(!aa&&ha["return"])ha["return"]()}finally{if(ca)throw ia;}}return ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function w(ea,ja){for(var aa=0;aa<ja.length;aa++){var ca=ja[aa];ca.enumerable=ca.enumerable||!1;ca.configurable=!0;"value"in ca&&(ca.writable=!0);Object.defineProperty(ea,ca.key,ca)}}return function(ea,ja,aa){ja&&w(ea.prototype,ja);aa&&w(ea,aa);return ea}}(),a=function ca(ea,ja,aa){null===
78
+ ea&&(ea=Function.prototype);var ia=Object.getOwnPropertyDescriptor(ea,ja);if(void 0===ia){if(ea=Object.getPrototypeOf(ea),null!==ea)return ca(ea,ja,aa)}else{if("value"in ia)return ia.value;ja=ia.get;return void 0===ja?void 0:ja.call(aa)}};ka=fa(2);var b=da(ka);ka=fa(0);var h=da(ka);ka=fa(4);ka=da(ka);var n=fa(6);n=da(n);fa=fa(7);var ba=da(fa);fa=function(ea){function ja(){z(this,ja);return x(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}y(ja,ea);return ja}(n.default);fa.blotName=
79
+ "code";fa.tagName="CODE";ka=function(ea){function ja(){z(this,ja);return x(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}y(ja,ea);e(ja,[{key:"delta",value:function(){var aa=this,ca=this.domNode.textContent;ca.endsWith("\n")&&(ca=ca.slice(0,-1));return ca.split("\n").reduce(function(ia,ha){return ia.insert(ha).insert("\n",aa.formats())},new b.default)}},{key:"format",value:function(aa,ca){if(aa!==this.statics.blotName||!ca){var ia=this.descendant(ba.default,this.length()-1);
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 da(la){return la&&la.__esModule?la:{default:la}}function z(la,na){return Object.keys(na).reduce(function(qa,ra){if(null==la[ra])return qa;na[ra]===la[ra]?qa[ra]=na[ra]:Array.isArray(na[ra])?0>na[ra].indexOf(la[ra])&&(qa[ra]=na[ra].concat([la[ra]])):qa[ra]=[na[ra],la[ra]];return qa},{})}function x(la){return la.reduce(function(na,qa){if(1===qa.insert){var ra=(0,aa.default)(qa.attributes);delete ra.image;return na.insert({image:qa.attributes.image},ra)}null==
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=da(ka);ka=fa(20);var b=da(ka);ka=fa(0);var h=da(ka);ka=fa(13);var n=da(ka);ka=fa(24);var ba=da(ka),w=fa(4),ea=da(w);ka=fa(16);var ja=da(ka);ka=fa(21);var aa=da(ka);ka=fa(11);var ca=da(ka);fa=fa(3);var ia=da(fa),
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 ea.default&&(Ha=Ha.descendant(h.default.Leaf,La),Ha=f(Ha,1)[0],oa=(0,ia.default)(oa,(0,w.bubbleFormats)(Ha)));Da=b.default.attributes.diff(oa,Da)||{}}else if("object"===y(oa.insert)){Ha=Object.keys(oa.insert)[0];if(null==Ha)return va;qa.scroll.insertAt(va,Ha,oa.insert[Ha])}ta+=wa}Object.keys(Da).forEach(function(Ca){qa.scroll.formatAt(va,
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 ea.default?ra.push(va):va instanceof h.default.Leaf&&ta.push(va)}):(ra=this.scroll.lines(na,qa),ta=this.scroll.descendants(h.default.Leaf,na,qa));qa=[ra,ta].map(function(va){if(0===va.length)return{};for(var oa=(0,w.bubbleFormats)(va.shift());0<Object.keys(oa).length;){var wa=va.shift();if(null==wa)break;oa=z((0,w.bubbleFormats)(wa),oa)}return oa});return ia.default.apply(ia.default,qa)}},{key:"getText",value:function(na,qa){return this.getContents(na,qa).filter(function(ra){return"string"===
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!==ea.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 da(ea){return ea&&ea.__esModule?ea:{default:ea}}function z(ea){if(Array.isArray(ea)){for(var ja=0,aa=Array(ea.length);ja<ea.length;ja++)aa[ja]=ea[ja];return aa}return Array.from(ea)}function x(ea,ja){if(!(ea instanceof ja))throw new TypeError("Cannot call a class as a function");}function y(ea,ja){try{ja.parentNode}catch(aa){return!1}ja instanceof
99
+ Text&&(ja=ja.parentNode);return ea.contains(ja)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.Range=void 0;var f=function(){return function(ea,ja){if(Array.isArray(ea))return ea;if(Symbol.iterator in Object(ea)){var aa=[],ca=!0,ia=!1,ha=void 0;try{for(var la=ea[Symbol.iterator](),na;!(ca=(na=la.next()).done)&&(aa.push(na.value),!ja||aa.length!==ja);ca=!0);}catch(qa){ia=!0,ha=qa}finally{try{if(!ca&&la["return"])la["return"]()}finally{if(ia)throw ha;}}return aa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
100
+ }}(),e=function(){function ea(ja,aa){for(var ca=0;ca<aa.length;ca++){var ia=aa[ca];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=!0);Object.defineProperty(ja,ia.key,ia)}}return function(ja,aa,ca){aa&&ea(ja.prototype,aa);ca&&ea(ja,ca);return ja}}();ka=fa(0);var a=da(ka);ka=fa(21);var b=da(ka);ka=fa(11);var h=da(ka);ka=fa(8);var n=da(ka);fa=fa(10);var ba=(0,da(fa).default)("quill:selection"),w=function aa(ja){var ca=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
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 da(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}da(e,f);z(e,[{key:"insertInto",value:function(a,b){0===a.children.length?x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,a,b):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(fa(0)).default.Embed);ka.blotName="break";ka.tagName="BR";ma.default=ka},function(ka,
119
+ ma,fa){function da(f){var e=y.find(f);if(null==e)try{e=y.create(f)}catch(a){e=y.create(y.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(b){e.domNode.appendChild(b)}),f.parentNode&&f.parentNode.replaceChild(e.domNode,f),e.attach()}return e}var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return function(e,a){function b(){this.constructor=e}f(e,
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
+ da(b);a.insertBefore(h,a.children.head||void 0)}catch(n){if(!(n instanceof y.ParchmentError))throw n;}})};e.prototype.deleteAt=function(a,b){if(0===a&&b===this.length())return this.remove();this.children.forEachAt(a,b,function(h,n,ba){h.deleteAt(n,ba)})};e.prototype.descendant=function(a,b){var h=this.children.find(b);b=h[0];h=h[1];return null==a.blotName&&a(b)||null!=a.blotName&&b instanceof a?[b,h]:b instanceof e?b.descendant(a,h):[null,-1]};e.prototype.descendants=function(a,b,h){void 0===b&&(b=
122
+ 0);void 0===h&&(h=Number.MAX_VALUE);var n=[],ba=h;this.children.forEachAt(b,h,function(w,ea,ja){(null==a.blotName&&a(w)||null!=a.blotName&&w instanceof a)&&n.push(w);w instanceof e&&(n=n.concat(w.descendants(a,ea,ba)));ba-=ja});return n};e.prototype.detach=function(){this.children.forEach(function(a){a.detach()});f.prototype.detach.call(this)};e.prototype.formatAt=function(a,b,h,n){this.children.forEachAt(a,b,function(ba,w,ea){ba.formatAt(w,ea,h,n)})};e.prototype.insertAt=function(a,b,h){var n=this.children.find(a);
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=da(ba);if(ba.next!=w||null==ba.next)null!=ba.parent&&ba.parent.removeChild(b),b.insertBefore(ba,w||void 0)})};return e}(ka.default);ma.default=fa},function(ka,ma,fa){var da=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return function(e,a){function b(){this.constructor=
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}da(e,f);e.formats=function(a){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return a.tagName.toLowerCase()};e.prototype.format=function(a,b){var h=y.query(a);h instanceof z.default?this.attributes.attribute(h,
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 da=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===
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}da(y,x);y.value=function(){return!0};y.prototype.index=function(f,e){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1};y.prototype.position=function(f){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<f&&(e+=1);
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 da(f){this.ops=f;this.offset=this.index=0}var z=fa(11),x=fa(3),y={attributes:{compose:function(f,e,a){"object"!==typeof f&&(f={});"object"!==typeof e&&(e={});var b=x(!0,{},e);a||(b=Object.keys(b).reduce(function(n,ba){null!=b[ba]&&(n[ba]=b[ba]);return n},{}));for(var h in f)void 0!==
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 da(f)},length:function(f){return"number"===typeof f["delete"]?f["delete"]:"number"===typeof f.retain?f.retain:"string"===typeof f.insert?f.insert.length:1}};da.prototype.hasNext=function(){return Infinity>this.peekLength()};da.prototype.next=function(f){f||(f=Infinity);var e=this.ops[this.index];if(e){var a=this.offset,b=y.length(e);f>=b-a?(f=b-a,this.index+=1,this.offset=0):this.offset+=f;if("number"===typeof e["delete"])return{"delete":f};b={};e.attributes&&
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}};da.prototype.peek=function(){return this.ops[this.index]};da.prototype.peekLength=function(){return this.ops[this.index]?y.length(this.ops[this.index])-this.offset:Infinity};da.prototype.peekType=function(){if(this.ops[this.index]){if("number"===typeof this.ops[this.index]["delete"])return"delete";if("number"!==typeof this.ops[this.index].retain)return"insert"}return"retain"};
136
+ da.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var f=this.offset,e=this.index,a=this.next(),b=this.ops.slice(this.index);this.offset=f;this.index=e;return[a].concat(b)}return[]};ka.exports=y},function(ka){var ma=function(){function fa(a,b){return null!=b&&a instanceof b}function da(a,b,h,n,ba){function w(ca,ia){if(null===ca)return null;if(0===ia||"object"!=typeof ca)return ca;if(fa(ca,y))var ha=new y;else if(fa(ca,f))ha=new f;else if(fa(ca,e))ha=
137
+ new e(function(ta,va){ca.then(function(oa){ta(w(oa,ia-1))},function(oa){va(w(oa,ia-1))})});else if(da.__isArray(ca))ha=[];else if(da.__isRegExp(ca))ha=new RegExp(ca.source,x(ca)),ca.lastIndex&&(ha.lastIndex=ca.lastIndex);else if(da.__isDate(ca))ha=new Date(ca.getTime());else{if(aa&&pa.isBuffer(ca))return ha=pa.allocUnsafe?pa.allocUnsafe(ca.length):new pa(ca.length),ca.copy(ha),ha;if(fa(ca,Error))ha=Object.create(ca);else if("undefined"==typeof n){var la=Object.getPrototypeOf(ca);ha=Object.create(la)}else ha=
138
+ Object.create(n),la=n}if(b){var na=ea.indexOf(ca);if(-1!=na)return ja[na];ea.push(ca);ja.push(ha)}fa(ca,y)&&ca.forEach(function(ta,va){va=w(va,ia-1);ta=w(ta,ia-1);ha.set(va,ta)});fa(ca,f)&&ca.forEach(function(ta){ta=w(ta,ia-1);ha.add(ta)});for(var qa in ca){var ra;la&&(ra=Object.getOwnPropertyDescriptor(la,qa));ra&&null==ra.set||(ha[qa]=w(ca[qa],ia-1))}if(Object.getOwnPropertySymbols)for(na=Object.getOwnPropertySymbols(ca),qa=0;qa<na.length;qa++)if(ra=na[qa],la=Object.getOwnPropertyDescriptor(ca,
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 ea=[],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(){}}da.clonePrototype=function(a){function b(){}if(null===a)return null;b.prototype=a;return new b};da.__objToStr=z;da.__isDate=function(a){return"object"===typeof a&&"[object Date]"===z(a)};da.__isArray=function(a){return"object"===
141
+ typeof a&&"[object Array]"===z(a)};da.__isRegExp=function(a){return"object"===typeof a&&"[object RegExp]"===z(a)};da.__getRegExpFlags=x;return da}();"object"===typeof ka&&ka.exports&&(ka.exports=ma)},function(ka,ma,fa){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function z(ja,aa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?ja:aa}function x(ja,aa){if("function"!==typeof aa&&null!==
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=da(ka);ka=fa(8);var h=da(ka),n=fa(4),ba=da(n);ka=fa(16);var w=da(ka);ka=fa(13);var ea=da(ka);fa=fa(25);fa=da(fa);ka=function(aa){function ca(ia,
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 ea.default){if(ia=la.newlineIndex(la.length(),!0),-1<ia&&(la=la.split(ia+1),la===na)){this.optimize();return}}else na instanceof ea.default&&(ia=na.newlineIndex(0),
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 da(wa){return wa&&wa.__esModule?wa:{default:wa}}function z(wa,Da,Ha){Da in wa?Object.defineProperty(wa,Da,{value:Ha,enumerable:!0,configurable:!0,writable:!0}):wa[Da]=Ha;return wa}
153
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 Ia,Ma=wa===oa.keys.LEFT?"prefix":"suffix";return Ia={key:wa,shiftKey:Da,altKey:null},aa(Ia,Ma,/^$/),aa(Ia,"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 ra.default.Embed))return!0;wa===oa.keys.LEFT?Da?this.quill.setSelection(Ca.index-1,Ca.length+1,qa.default.sources.USER):this.quill.setSelection(Ca.index-1,qa.default.sources.USER):Da?this.quill.setSelection(Ca.index,Ca.length+1,qa.default.sources.USER):
155
- this.quill.setSelection(Ca.index+Ca.length+1,qa.default.sources.USER);return!1}),Ia}function b(wa,Da){if(!(0===wa.index||1>=this.quill.getLength())){var Ia=this.quill.getLine(wa.index),Ma=ja(Ia,1)[0];Ia={};if(0===Da.offset){var Ca=this.quill.getLine(wa.index-1);Ca=ja(Ca,1)[0];null!=Ca&&1<Ca.length()&&(Ia=Ma.formats(),Ma=this.quill.getFormat(wa.index-1,1),Ia=na.default.attributes.diff(Ia,Ma)||{})}Da=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Da.prefix)?2:1;this.quill.deleteText(wa.index-Da,Da,qa.default.sources.USER);
156
- 0<Object.keys(Ia).length&&this.quill.formatLine(wa.index-Da,Da,Ia,qa.default.sources.USER);this.quill.focus()}}function a(wa,Da){var Ia=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Da.suffix)?2:1;if(!(wa.index>=this.quill.getLength()-Ia)){var Ma={},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])&&(Ma=Ka.formats(),Ca=this.quill.getFormat(wa.index,1),Ma=na.default.attributes.diff(Ma,Ca)||{},Ca=Da.length());this.quill.deleteText(wa.index,
157
- Ia,qa.default.sources.USER);0<Object.keys(Ma).length&&this.quill.formatLine(wa.index+Ca-1,Ia,Ma,qa.default.sources.USER)}}function e(wa){var Da=this.quill.getLines(wa),Ia={};1<Da.length&&(Ia=Da[0].formats(),Da=Da[Da.length-1].formats(),Ia=na.default.attributes.diff(Da,Ia)||{});this.quill.deleteText(wa,qa.default.sources.USER);0<Object.keys(Ia).length&&this.quill.formatLine(wa.index,1,Ia,qa.default.sources.USER);this.quill.setSelection(wa.index,qa.default.sources.SILENT);this.quill.focus()}function h(wa,
158
- Da){var Ia=this;0<wa.length&&this.quill.scroll.deleteAt(wa.index,wa.length);var Ma=Object.keys(Da.format).reduce(function(Ca,Ka){ra.default.query(Ka,ra.default.Scope.BLOCK)&&!Array.isArray(Da.format[Ka])&&(Ca[Ka]=Da.format[Ka]);return Ca},{});this.quill.insertText(wa.index,"\n",Ma,qa.default.sources.USER);this.quill.setSelection(wa.index+1,qa.default.sources.SILENT);this.quill.focus();Object.keys(Da.format).forEach(function(Ca){null==Ma[Ca]&&(Array.isArray(Da.format[Ca])||"link"!==Ca&&Ia.quill.format(Ca,
159
- Da.format[Ca],qa.default.sources.USER))})}function n(wa){return{key:oa.keys.TAB,shiftKey:!wa,format:{"code-block":!0},handler:function(Da){var Ia=ra.default.query("code-block"),Ma=Da.index,Ca=Da.length;Da=this.quill.scroll.descendant(Ia,Ma);Da=ja(Da,2);var Ka=Da[0],Sa=Da[1];if(null!=Ka){Da=this.quill.getIndex(Ka);var Ha=Ka.newlineIndex(Sa,!0)+1;Da=Ka.newlineIndex(Da+Sa+Ca);Da=Ka.domNode.textContent.slice(Ha,Da).split("\n");Sa=0;Da.forEach(function(Ba,La){wa?(Ka.insertAt(Ha+Sa,Ia.TAB),Sa+=Ia.TAB.length,
160
- 0===La?Ma+=Ia.TAB.length:Ca+=Ia.TAB.length):Ba.startsWith(Ia.TAB)&&(Ka.deleteAt(Ha+Sa,Ia.TAB.length),Sa-=Ia.TAB.length,0===La?Ma-=Ia.TAB.length:Ca-=Ia.TAB.length);Sa+=Ba.length+1});this.quill.update(qa.default.sources.USER);this.quill.setSelection(Ma,Ca,qa.default.sources.SILENT)}}}}function z(wa){return{key:wa[0].toUpperCase(),shortKey:!0,handler:function(Da,Ia){this.quill.format(wa,!Ia.format[wa],qa.default.sources.USER)}}}function w(wa){if("string"===typeof wa||"number"===typeof wa)return w({key:wa});
161
- "object"===("undefined"===typeof wa?"undefined":ea(wa))&&(wa=(0,ba.default)(wa,!1));if("string"===typeof wa.key)if(null!=oa.keys[wa.key.toUpperCase()])wa.key=oa.keys[wa.key.toUpperCase()];else if(1===wa.key.length)wa.key=wa.key.toUpperCase().charCodeAt(0);else return null;wa.shortKey&&(wa[va]=wa.shortKey,delete wa.shortKey);return wa}Object.defineProperty(ma,"__esModule",{value:!0});ma.SHORTKEY=ma.default=void 0;var ea="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(wa){return typeof wa}:
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 Ia=[],Ma=!0,Ca=!1,Ka=void 0;try{for(var Sa=wa[Symbol.iterator](),Ha;!(Ma=(Ha=Sa.next()).done)&&(Ia.push(Ha.value),!Da||Ia.length!==Da);Ma=!0);}catch(Ba){Ca=!0,Ka=Ba}finally{try{if(!Ma&&Sa["return"])Sa["return"]()}finally{if(Ca)throw Ka;}}return Ia}throw new TypeError("Invalid attempt to destructure non-iterable instance");
163
- }}(),ca=function(){function wa(Da,Ia){for(var Ma=0;Ma<Ia.length;Ma++){var Ca=Ia[Ma];Ca.enumerable=Ca.enumerable||!1;Ca.configurable=!0;"value"in Ca&&(Ca.writable=!0);Object.defineProperty(Da,Ca.key,Ca)}}return function(Da,Ia,Ma){Ia&&wa(Da.prototype,Ia);Ma&&wa(Da,Ma);return Da}}();ka=ha(21);var ba=da(ka);ka=ha(11);var fa=da(ka);ka=ha(3);var ia=da(ka);ka=ha(2);var la=da(ka);ka=ha(20);var na=da(ka);ka=ha(0);var ra=da(ka);ka=ha(5);var qa=da(ka);ka=ha(10);ka=da(ka);ha=ha(9);ha=da(ha);var ta=(0,ka.default)("quill:keyboard"),
164
- va=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",oa=function(wa){function Da(Ia,Ma){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,Ia,Ma));Ca.bindings={};Object.keys(Ca.options.bindings).forEach(function(Ka){("list autofill"!==Ka||null==Ia.scroll.whitelist||Ia.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},b),Ca.addBinding({key:Da.keys.DELETE},{collapsed:!0},a)):(Ca.addBinding({key:Da.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},b),Ca.addBinding({key:Da.keys.DELETE},{collapsed:!0,suffix:/^.?$/},a));Ca.addBinding({key:Da.keys.BACKSPACE},{collapsed:!1},e);Ca.addBinding({key:Da.keys.DELETE},{collapsed:!1},e);Ca.addBinding({key:Da.keys.BACKSPACE,
166
- altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},b);Ca.listen();return Ca}y(Da,wa);ca(Da,null,[{key:"match",value:function(Ia,Ma){Ma=w(Ma);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ca){return!!Ma[Ca]!==Ia[Ca]&&null!==Ma[Ca]})?!1:Ma.key===(Ia.which||Ia.keyCode)}}]);ca(Da,[{key:"addBinding",value:function(Ia){var Ma=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},Ca=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},Ka=w(Ia);if(null==
167
- Ka||null==Ka.key)return ta.warn("Attempted to add invalid keyboard binding",Ka);"function"===typeof Ma&&(Ma={handler:Ma});"function"===typeof Ca&&(Ca={handler:Ca});Ka=(0,ia.default)(Ka,Ma,Ca);this.bindings[Ka.key]=this.bindings[Ka.key]||[];this.bindings[Ka.key].push(Ka)}},{key:"listen",value:function(){var Ia=this;this.quill.root.addEventListener("keydown",function(Ma){if(!Ma.defaultPrevented){var Ca=(Ia.bindings[Ma.which||Ma.keyCode]||[]).filter(function(Qa){return Da.match(Ma,Qa)});if(0!==Ca.length){var Ka=
168
- Ia.quill.getSelection();if(null!=Ka&&Ia.quill.hasFocus()){var Sa=Ia.quill.getLine(Ka.index),Ha=ja(Sa,2);Sa=Ha[0];Ha=Ha[1];var Ba=Ia.quill.getLeaf(Ka.index),La=ja(Ba,2);Ba=La[0];La=La[1];var Ja=0===Ka.length?[Ba,La]:Ia.quill.getLeaf(Ka.index+Ka.length),Pa=ja(Ja,2);Ja=Pa[0];Pa=Pa[1];Ba=Ba instanceof ra.default.Text?Ba.value().slice(0,La):"";La=Ja instanceof ra.default.Text?Ja.value().slice(Pa):"";var Ua={collapsed:0===Ka.length,empty:0===Ka.length&&1>=Sa.length(),format:Ia.quill.getFormat(Ka),offset:Ha,
169
- prefix:Ba,suffix:La};Ca.some(function(Qa){if(null!=Qa.collapsed&&Qa.collapsed!==Ua.collapsed||null!=Qa.empty&&Qa.empty!==Ua.empty||null!=Qa.offset&&Qa.offset!==Ua.offset)return!1;if(Array.isArray(Qa.format)){if(Qa.format.every(function(Ea){return null==Ua.format[Ea]}))return!1}else if("object"===ea(Qa.format)&&!Object.keys(Qa.format).every(function(Ea){return!0===Qa.format[Ea]?null!=Ua.format[Ea]:!1===Qa.format[Ea]?null==Ua.format[Ea]:(0,fa.default)(Qa.format[Ea],Ua.format[Ea])}))return!1;return null!=
170
- Qa.prefix&&!Qa.prefix.test(Ua.prefix)||null!=Qa.suffix&&!Qa.suffix.test(Ua.suffix)?!1:!0!==Qa.handler.call(Ia,Ka,Ua)})&&Ma.preventDefault()}}}})}}]);return Da}(ha.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:z("bold"),italic:z("italic"),underline:z("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",qa.default.sources.USER)}},
171
- 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",qa.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",qa.default.sources.USER):null!=Da.format.list&&this.quill.format("list",!1,qa.default.sources.USER)}},
172
- "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,qa.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,qa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index+1,qa.default.sources.SILENT)}},"list empty enter":{key:oa.keys.ENTER,
173
- collapsed:!0,format:["list"],empty:!0,handler:function(wa,Da){this.quill.format("list",!1,qa.default.sources.USER);Da.format.indent&&this.quill.format("indent",!1,qa.default.sources.USER)}},"checklist enter":{key:oa.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(wa){var Da=this.quill.getLine(wa.index),Ia=ja(Da,2);Da=Ia[0];Ia=Ia[1];var Ma=(0,ia.default)({},Da.formats(),{list:"checked"});Da=(new la.default).retain(wa.index).insert("\n",Ma).retain(Da.length()-Ia-1).retain(1,{list:"unchecked"});
174
- this.quill.updateContents(Da,qa.default.sources.USER);this.quill.setSelection(wa.index+1,qa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:oa.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(wa,Da){var Ia=this.quill.getLine(wa.index),Ma=ja(Ia,2);Ia=Ma[0];Ma=Ma[1];Da=(new la.default).retain(wa.index).insert("\n",Da.format).retain(Ia.length()-Ma-1).retain(1,{header:null});this.quill.updateContents(Da,qa.default.sources.USER);this.quill.setSelection(wa.index+
175
- 1,qa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(wa,Da){var Ia=Da.prefix.length,Ma=this.quill.getLine(wa.index),Ca=ja(Ma,2);Ma=Ca[0];Ca=Ca[1];if(Ca>Ia)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," ",qa.default.sources.USER);this.quill.history.cutoff();
176
- Da=(new la.default).retain(wa.index-Ca).delete(Ia+1).retain(Ma.length()-2-Ca).retain(1,{list:Da});this.quill.updateContents(Da,qa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index-Ia,qa.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),Ia=ja(Da,2);Da=Ia[0];Ia=Ia[1];wa=(new la.default).retain(wa.index+Da.length()-Ia-2).retain(1,{"code-block":null}).delete(1);
177
- this.quill.updateContents(wa,qa.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,ha){function da(a,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});e&&
178
- (Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var aa=function(){return function(a,e){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var h=[],n=!0,z=!1,w=void 0;try{for(var ea=a[Symbol.iterator](),ja;!(n=(ja=ea.next()).done)&&(h.push(ja.value),!e||h.length!==e);n=!0);}catch(ca){z=!0,w=ca}finally{try{if(!n&&ea["return"])ea["return"]()}finally{if(z)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");
179
- }}(),x=function z(e,h,n){null===e&&(e=Function.prototype);var w=Object.getOwnPropertyDescriptor(e,h);if(void 0===w){if(e=Object.getPrototypeOf(e),null!==e)return z(e,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 e(h,n){for(var z=0;z<n.length;z++){var w=n[z];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(h,w.key,w)}}return function(h,n,z){n&&e(h.prototype,n);z&&e(h,z);return h}}(),f=(ka=
180
- ha(0))&&ka.__esModule?ka:{default:ka},b=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(e){function h(n,z){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=z;n.textNode=document.createTextNode(h.CONTENTS);n.domNode.appendChild(n.textNode);n._length=
181
- 0;return n}da(h,e);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,z){if(0!==this._length)return x(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,n,z);for(var w=this,ea=0;null!=w&&w.statics.scope!==f.default.Scope.BLOCK_BLOT;)ea+=w.offset(w.parent),w=w.parent;null!=w&&(this._length=h.CONTENTS.length,w.optimize(),w.formatAt(ea,h.CONTENTS.length,n,z),
182
- this._length=0)}},{key:"index",value:function(n,z){return n===this.textNode?0:x(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"index",this).call(this,n,z)}},{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,z=this.selection.getNativeRange(),w=void 0,ea=void 0,ja=void 0;null!=z&&z.start.node===n&&z.end.node===n&&(ja=[n,z.start.offset,z.end.offset],w=ja[0],ea=ja[1],ja=ja[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==h.CONTENTS&&(n=this.textNode.data.split(h.CONTENTS).join(""),this.next instanceof b.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!=ea)return ea=[ea,ja].map(function(ca){return Math.max(0,Math.min(w.data.length,ca-1))}),ja=aa(ea,2),ea=ja[0],ja=ja[1],{startNode:w,startOffset:ea,endNode:w,endOffset:ja}}}},{key:"update",value:function(n,z){var w=this;n.some(function(ea){return"characterData"===ea.type&&
185
- ea.target===w.textNode})&&(n=this.restore())&&(z.range=n)}},{key:"value",value:function(){return""}}]);return h}(f.default.Embed);ha.blotName="cursor";ha.className="ql-cursor";ha.tagName="span";ha.CONTENTS="\ufeff";ma.default=ha},function(ka,ma,ha){function da(x,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});y&&
186
- (Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}Object.defineProperty(ma,"__esModule",{value:!0});ka=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var aa=(ha=ha(4))&&ha.__esModule?ha:{default:ha};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}da(y,x);return y}(ka.default.Container);ka.allowedChildren=[aa.default,ha.BlockEmbed,ka];ma.default=ka},function(ka,ma,ha){function da(f,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(f,b):f.__proto__=b)}Object.defineProperty(ma,
188
- "__esModule",{value:!0});ma.ColorStyle=ma.ColorClass=ma.ColorAttributor=void 0;var aa=function(){function f(b,a){for(var e=0;e<a.length;e++){var h=a[e];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,a,e){a&&f(b.prototype,a);e&&f(b,e);return b}}(),x=function h(b,a,e){null===b&&(b=Function.prototype);var n=Object.getOwnPropertyDescriptor(b,a);if(void 0===n){if(b=Object.getPrototypeOf(b),null!==b)return h(b,a,e)}else{if("value"in
189
- n)return n.value;a=n.get;return void 0===a?void 0:a.call(e)}},y=function(b){return b&&b.__esModule?b:{default:b}}(ha(0));ka=function(b){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var e=(a.__proto__||Object.getPrototypeOf(a)).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}da(a,b);aa(a,[{key:"value",value:function(e){e=x(a.prototype.__proto__||
190
- Object.getPrototypeOf(a.prototype),"value",this).call(this,e);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+e.split(",").map(function(h){return("00"+parseInt(h).toString(16)).slice(-2)}).join("")}}]);return a}(y.default.Attributor.Style);ha=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=ha;ma.ColorStyle=y},function(ka,ma,ha){function da(f,
191
- b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(f,b):f.__proto__=b)}function aa(f,b){var a=document.createElement("a");a.href=f;f=a.href.slice(0,a.href.indexOf(":"));return-1<b.indexOf(f)}Object.defineProperty(ma,"__esModule",{value:!0});ma.sanitize=ma.default=void 0;
192
- var x=function(){function f(b,a){for(var e=0;e<a.length;e++){var h=a[e];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,a,e){a&&f(b.prototype,a);e&&f(b,e);return b}}(),y=function h(b,a,e){null===b&&(b=Function.prototype);var n=Object.getOwnPropertyDescriptor(b,a);if(void 0===n){if(b=Object.getPrototypeOf(b),null!==b)return h(b,a,e)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(e)}};ka=function(b){function a(){if(!(this instanceof
193
- a))throw new TypeError("Cannot call a class as a function");var e=(a.__proto__||Object.getPrototypeOf(a)).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}da(a,b);x(a,[{key:"format",value:function(e,h){if(e!==this.statics.blotName||!h)return y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,e,h);h=this.constructor.sanitize(h);this.domNode.setAttribute("href",
194
- h)}}],[{key:"create",value:function(e){var h=y(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,e);e=this.sanitize(e);h.setAttribute("href",e);h.setAttribute("rel","noopener noreferrer");h.setAttribute("target","_blank");return h}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return aa(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]);return a}(function(b){return b&&b.__esModule?b:{default:b}}(ha(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=aa},function(ka,ma,ha){Object.defineProperty(ma,"__esModule",{value:!0});var da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"===typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},aa=function(){function b(a,e){for(var h=0;h<e.length;h++){var n=e[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,e,h){e&&b(a.prototype,e);h&&b(a,h);return a}}(),x=(ka=ha(23))&&ka.__esModule?ka:{default:ka},y=(ha=ha(107))&&ha.__esModule?ha:{default:ha},f=0;ha=function(){function b(a){var e=this;if(!(this instanceof b))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(){e.togglePicker()});this.label.addEventListener("keydown",function(h){switch(h.keyCode){case x.default.keys.ENTER:e.togglePicker();break;case x.default.keys.ESCAPE:e.escape(),h.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}aa(b,[{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 e=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(){e.selectItem(h,!0)});h.addEventListener("keydown",function(n){switch(n.keyCode){case x.default.keys.ENTER:e.selectItem(h,
199
- !0);n.preventDefault();break;case x.default.keys.ESCAPE:e.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,e=document.createElement("span");e.classList.add("ql-picker-options");e.setAttribute("aria-hidden",
200
- "true");e.tabIndex="-1";e.id="ql-picker-options-"+f;f+=1;this.label.setAttribute("aria-controls",e.id);this.options=e;[].slice.call(this.select.options).forEach(function(h){var n=a.buildItem(h);e.appendChild(n);!0===h.selected&&a.selectItem(n)});this.container.appendChild(e)}},{key:"buildPicker",value:function(){var a=this;[].slice.call(this.select.attributes).forEach(function(e){a.container.setAttribute(e.name,e.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 e=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"),e&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":da(Event))&&(e=document.createEvent("Event"),
203
- e.initEvent("change",!0,!0),this.select.dispatchEvent(e)),this.close())))}},{key:"update",value:function(){var a=void 0;if(-1<this.select.selectedIndex){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];a=this.select.options[this.select.selectedIndex];this.selectItem(e)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=a&&a!==this.select.querySelector("option[selected]"))}}]);return b}();ma.default=ha},function(ka,ma,ha){function da(ja){return ja&&
204
- ja.__esModule?ja:{default:ja}}Object.defineProperty(ma,"__esModule",{value:!0});ka=ha(0);ka=da(ka);var aa=ha(5);aa=da(aa);var x=ha(4),y=da(x),f=ha(16);f=da(f);var b=ha(25);b=da(b);var a=ha(24);a=da(a);var e=ha(35);e=da(e);var h=ha(6);h=da(h);var n=ha(22);n=da(n);var z=ha(7);z=da(z);var w=ha(55);w=da(w);var ea=ha(42);ea=da(ea);ha=ha(23);ha=da(ha);aa.default.register({"blots/block":y.default,"blots/block/embed":x.BlockEmbed,"blots/break":f.default,"blots/container":b.default,"blots/cursor":a.default,
205
- "blots/embed":e.default,"blots/inline":h.default,"blots/scroll":n.default,"blots/text":z.default,"modules/clipboard":w.default,"modules/history":ea.default,"modules/keyboard":ha.default});ka.default.register(y.default,f.default,a.default,h.default,n.default,z.default);ma.default=aa.default},function(ka,ma,ha){Object.defineProperty(ma,"__esModule",{value:!0});var da=ha(1);ka=function(){function aa(x){this.domNode=x;this.domNode[da.DATA_KEY]={blot:this}}Object.defineProperty(aa.prototype,"statics",
206
- {get:function(){return this.constructor},enumerable:!0,configurable:!0});aa.create=function(x){if(null==this.tagName)throw new da.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof x&&(x=x.toUpperCase(),parseInt(x).toString()===x&&(x=parseInt(x))),x="number"===typeof x?document.createElement(this.tagName[x-1]):-1<this.tagName.indexOf(x)?document.createElement(x):document.createElement(this.tagName[0])):x=document.createElement(this.tagName);this.className&&
207
- x.classList.add(this.className);return x};aa.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};aa.prototype.clone=function(){return da.create(this.domNode.cloneNode(!1))};aa.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[da.DATA_KEY]};aa.prototype.deleteAt=function(x,y){this.isolate(x,y).remove()};aa.prototype.formatAt=function(x,y,f,b){x=this.isolate(x,y);null!=da.query(f,da.Scope.BLOT)&&b?x.wrap(f,b):null!=da.query(f,
208
- da.Scope.ATTRIBUTE)&&(y=da.create(this.statics.scope),x.wrap(y),y.format(f,b))};aa.prototype.insertAt=function(x,y,f){y=null==f?da.create("text",y):da.create(y,f);x=this.split(x);this.parent.insertBefore(y,x)};aa.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=
209
- x;this.attach()};aa.prototype.isolate=function(x,y){x=this.split(x);x.split(y);return x};aa.prototype.length=function(){return 1};aa.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)};aa.prototype.optimize=function(){null!=this.domNode[da.DATA_KEY]&&delete this.domNode[da.DATA_KEY].mutations};aa.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);
210
- this.detach()};aa.prototype.replace=function(x){null!=x.parent&&(x.parent.insertBefore(this,x.next),x.remove())};aa.prototype.replaceWith=function(x,y){x="string"===typeof x?da.create(x,y):x;x.replace(this);return x};aa.prototype.split=function(x){return 0===x?this:this.next};aa.prototype.update=function(){};aa.prototype.wrap=function(x,y){x="string"===typeof x?da.create(x,y):x;null!=this.parent&&this.parent.insertBefore(x,this.next);x.appendChild(this);return x};aa.blotName="abstract";return aa}();
211
- ma.default=ka},function(ka,ma,ha){Object.defineProperty(ma,"__esModule",{value:!0});var da=ha(12),aa=ha(32),x=ha(33),y=ha(1);ka=function(){function f(b){this.attributes={};this.domNode=b;this.build()}f.prototype.attribute=function(b,a){a?b.add(this.domNode,a)&&(null!=b.value(this.domNode)?this.attributes[b.attrName]=b:delete this.attributes[b.attrName]):(b.remove(this.domNode),delete this.attributes[b.attrName])};f.prototype.build=function(){var b=this;this.attributes={};var a=da.default.keys(this.domNode),
212
- e=aa.default.keys(this.domNode),h=x.default.keys(this.domNode);a.concat(e).concat(h).forEach(function(n){n=y.query(n,y.Scope.ATTRIBUTE);n instanceof da.default&&(b.attributes[n.attrName]=n)})};f.prototype.copy=function(b){var a=this;Object.keys(this.attributes).forEach(function(e){var h=a.attributes[e].value(a.domNode);b.format(e,h)})};f.prototype.move=function(b){var a=this;this.copy(b);Object.keys(this.attributes).forEach(function(e){a.attributes[e].remove(a.domNode)});this.attributes={}};f.prototype.values=
213
- function(){var b=this;return Object.keys(this.attributes).reduce(function(a,e){a[e]=b.attributes[e].value(b.domNode);return a},{})};return f}();ma.default=ka},function(ka,ma,ha){function da(x,y){return(x.getAttribute("class")||"").split(/\s+/).filter(function(f){return 0===f.indexOf(y+"-")})}var aa=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var b in f)f.hasOwnProperty(b)&&(y[b]=f[b])};return function(y,
214
- f){function b(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}aa(y,x);y.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(b){return b.split("-").slice(0,-1).join("-")})};y.prototype.add=function(f,b){if(!this.canAdd(f,b))return!1;this.remove(f);f.classList.add(this.keyName+"-"+b);return!0};y.prototype.remove=
215
- function(f){da(f,this.keyName).forEach(function(b){f.classList.remove(b)});0===f.classList.length&&f.removeAttribute("class")};y.prototype.value=function(f){var b=(da(f,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(f,b)?b:""};return y}(ha(12).default);ma.default=ka},function(ka,ma,ha){function da(x){x=x.split("-");var y=x.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return x[0]+y}var aa=this&&this.__extends||function(){var x=Object.setPrototypeOf||
216
- {__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var b in f)f.hasOwnProperty(b)&&(y[b]=f[b])};return function(y,f){function b(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}aa(y,x);y.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(b){return b.split(":")[0].trim()})};
217
- y.prototype.add=function(f,b){if(!this.canAdd(f,b))return!1;f.style[da(this.keyName)]=b;return!0};y.prototype.remove=function(f){f.style[da(this.keyName)]="";f.getAttribute("style")||f.removeAttribute("style")};y.prototype.value=function(f){var b=f.style[da(this.keyName)];return this.canAdd(f,b)?b:""};return y}(ha(12).default);ma.default=ka},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});var ha=function(){function da(aa,x){for(var y=0;y<x.length;y++){var f=x[y];f.enumerable=f.enumerable||
218
- !1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(aa,f.key,f)}}return function(aa,x,y){x&&da(aa.prototype,x);y&&da(aa,y);return aa}}();ka=function(){function da(aa,x){if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");this.quill=aa;this.options=x;this.modules={}}ha(da,[{key:"init",value:function(){var aa=this;Object.keys(this.options.modules).forEach(function(x){null==aa.modules[x]&&aa.addModule(x)})}},{key:"addModule",value:function(aa){var x=
219
- this.quill.constructor.import("modules/"+aa);this.modules[aa]=new x(this.quill,this.options.modules[aa]||{});return this.modules[aa]}}]);return da}();ka.DEFAULTS={modules:{}};ka.themes={"default":ka};ma.default=ka},function(ka,ma,ha){function da(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?a:e}function aa(a,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+
220
- typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var x=function(){function a(e,h){for(var n=0;n<h.length;n++){var z=h[n];z.enumerable=z.enumerable||!1;z.configurable=!0;"value"in z&&(z.writable=!0);Object.defineProperty(e,z.key,z)}}return function(e,h,n){h&&a(e.prototype,h);n&&a(e,n);return e}}(),y=function z(e,h,
221
- n){null===e&&(e=Function.prototype);var w=Object.getOwnPropertyDescriptor(e,h);if(void 0===w){if(e=Object.getPrototypeOf(e),null!==e)return z(e,h,n)}else{if("value"in w)return w.value;h=w.get;return void 0===h?void 0:h.call(n)}},f=(ka=ha(0))&&ka.__esModule?ka:{default:ka},b=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(e){function h(n){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var z=da(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,n));z.contentNode=
222
- document.createElement("span");z.contentNode.setAttribute("contenteditable",!1);[].slice.call(z.domNode.childNodes).forEach(function(w){z.contentNode.appendChild(w)});z.leftGuard=document.createTextNode("\ufeff");z.rightGuard=document.createTextNode("\ufeff");z.domNode.appendChild(z.leftGuard);z.domNode.appendChild(z.contentNode);z.domNode.appendChild(z.rightGuard);return z}aa(h,e);x(h,[{key:"index",value:function(n,z){return n===this.leftGuard?0:n===this.rightGuard?1:y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),
223
- "index",this).call(this,n,z)}},{key:"restore",value:function(n){var z=void 0,w=n.data.split("\ufeff").join("");n===this.leftGuard?this.prev instanceof b.default?(z=this.prev.length(),this.prev.insertAt(z,w),z={startNode:this.prev.domNode,startOffset:z+w.length}):(z=document.createTextNode(w),this.parent.insertBefore(f.default.create(z),this),z={startNode:z,startOffset:w.length}):n===this.rightGuard&&(this.next instanceof b.default?(this.next.insertAt(0,w),z={startNode:this.next.domNode,startOffset:w.length}):
224
- (z=document.createTextNode(w),this.parent.insertBefore(f.default.create(z),this.next),z={startNode:z,startOffset:w.length}));n.data="\ufeff";return z}},{key:"update",value:function(n,z){var w=this;n.forEach(function(ea){"characterData"!==ea.type||ea.target!==w.leftGuard&&ea.target!==w.rightGuard||!(ea=w.restore(ea.target))||(z.range=ea)})}}]);return h}(f.default.Embed);ma.default=ha},function(ka,ma,ha){Object.defineProperty(ma,"__esModule",{value:!0});ma.AlignStyle=ma.AlignClass=ma.AlignAttribute=
225
- void 0;var da=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var aa={scope:da.default.Scope.BLOCK,whitelist:["right","center","justify"]};ka=new da.default.Attributor.Attribute("align","align",aa);ha=new da.default.Attributor.Class("align","ql-align",aa);da=new da.default.Attributor.Style("align","text-align",aa);ma.AlignAttribute=ka;ma.AlignClass=ha;ma.AlignStyle=da},function(ka,ma,ha){Object.defineProperty(ma,"__esModule",{value:!0});ma.BackgroundStyle=ma.BackgroundClass=void 0;ka=(ka=ha(0))&&ka.__esModule?
226
- ka:{default:ka};var da=ha(26);ha=new ka.default.Attributor.Class("background","ql-bg",{scope:ka.default.Scope.INLINE});ka=new da.ColorAttributor("background","background-color",{scope:ka.default.Scope.INLINE});ma.BackgroundClass=ha;ma.BackgroundStyle=ka},function(ka,ma,ha){Object.defineProperty(ma,"__esModule",{value:!0});ma.DirectionStyle=ma.DirectionClass=ma.DirectionAttribute=void 0;var da=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var aa={scope:da.default.Scope.BLOCK,whitelist:["rtl"]};ka=new da.default.Attributor.Attribute("direction",
227
- "dir",aa);ha=new da.default.Attributor.Class("direction","ql-direction",aa);da=new da.default.Attributor.Style("direction","direction",aa);ma.DirectionAttribute=ka;ma.DirectionClass=ha;ma.DirectionStyle=da},function(ka,ma,ha){function da(f,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?
228
- Object.setPrototypeOf(f,b):f.__proto__=b)}Object.defineProperty(ma,"__esModule",{value:!0});ma.FontClass=ma.FontStyle=void 0;var aa=function(){function f(b,a){for(var e=0;e<a.length;e++){var h=a[e];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,a,e){a&&f(b.prototype,a);e&&f(b,e);return b}}(),x=function h(b,a,e){null===b&&(b=Function.prototype);var n=Object.getOwnPropertyDescriptor(b,a);if(void 0===n){if(b=Object.getPrototypeOf(b),
229
- null!==b)return h(b,a,e)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(e)}};ha=function(b){return b&&b.__esModule?b:{default:b}}(ha(0));var y={scope:ha.default.Scope.INLINE,whitelist:["serif","monospace"]};ka=new ha.default.Attributor.Class("font","ql-font",y);ha=new (function(b){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var e=(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!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(a,b);aa(a,[{key:"value",value:function(e){return x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]);return a}(ha.default.Attributor.Style))("font","font-family",y);ma.FontStyle=ha;ma.FontClass=ka},function(ka,ma,ha){Object.defineProperty(ma,"__esModule",{value:!0});ma.SizeStyle=ma.SizeClass=void 0;ha=(ka=ha(0))&&ka.__esModule?ka:{default:ka};ka=new ha.default.Attributor.Class("size",
231
- "ql-size",{scope:ha.default.Scope.INLINE,whitelist:["small","large","huge"]});ha=new ha.default.Attributor.Style("size","font-size",{scope:ha.default.Scope.INLINE,whitelist:["10px","18px","32px"]});ma.SizeClass=ka;ma.SizeStyle=ha},function(ka,ma,ha){ka.exports={align:{"":ha(76),center:ha(77),right:ha(78),justify:ha(79)},background:ha(80),blockquote:ha(81),bold:ha(82),clean:ha(83),code:ha(58),"code-block":ha(58),color:ha(84),direction:{"":ha(85),rtl:ha(86)},"float":{center:ha(87),full:ha(88),left:ha(89),
232
- right:ha(90)},formula:ha(91),header:{1:ha(92),2:ha(93)},italic:ha(94),image:ha(95),indent:{"+1":ha(96),"-1":ha(97)},link:ha(98),list:{ordered:ha(99),bullet:ha(100),check:ha(101)},script:{sub:ha(102),"super":ha(103)},strike:ha(104),underline:ha(105),video:ha(106)}},function(ka,ma,ha){function da(h){return h&&h.__esModule?h:{default:h}}function aa(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}
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":ea(wa))&&(wa=(0,ca.default)(wa,!1));if("string"===typeof wa.key)if(null!=oa.keys[wa.key.toUpperCase()])wa.key=oa.keys[wa.key.toUpperCase()];else if(1===wa.key.length)wa.key=wa.key.toUpperCase().charCodeAt(0);else return null;wa.shortKey&&(wa[va]=wa.shortKey,delete wa.shortKey);return wa}Object.defineProperty(ma,"__esModule",{value:!0});ma.SHORTKEY=ma.default=void 0;var ea="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(wa){return typeof wa}:
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=da(ka);ka=fa(11);var ia=da(ka);ka=fa(3);var ha=da(ka);ka=fa(2);var la=da(ka);ka=fa(20);var na=da(ka);ka=fa(0);var qa=da(ka);ka=fa(5);var ra=da(ka);ka=fa(10);ka=da(ka);fa=fa(9);fa=da(fa);var ta=(0,ka.default)("quill:keyboard"),
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"===ea(Qa.format)&&!Object.keys(Qa.format).every(function(Fa){return!0===Qa.format[Fa]?null!=Wa.format[Fa]:!1===Qa.format[Fa]?null==Wa.format[Fa]:(0,ia.default)(Qa.format[Fa],Wa.format[Fa])}))return!1;return null!=
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 da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,
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 ea=a[Symbol.iterator](),ja;!(n=(ja=ea.next()).done)&&(h.push(ja.value),!b||h.length!==b);n=!0);}catch(aa){ba=!0,w=aa}finally{try{if(!n&&ea["return"])ea["return"]()}finally{if(ba)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");
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}da(h,b);y(h,null,[{key:"value",value:function(){}}]);y(h,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(n,ba){if(0!==this._length)return x(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,n,ba);for(var w=this,ea=0;null!=w&&w.statics.scope!==f.default.Scope.BLOCK_BLOT;)ea+=w.offset(w.parent),w=w.parent;null!=w&&(this._length=h.CONTENTS.length,w.optimize(),w.formatAt(ea,h.CONTENTS.length,
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,ea=void 0,ja=void 0;null!=ba&&ba.start.node===n&&ba.end.node===n&&(ja=[n,ba.start.offset,ba.end.offset],w=ja[0],ea=ja[1],ja=ja[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==h.CONTENTS&&(n=this.textNode.data.split(h.CONTENTS).join(""),this.next instanceof e.default?(w=this.next.domNode,this.next.insertAt(0,
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!=ea)return ea=[ea,ja].map(function(aa){return Math.max(0,Math.min(w.data.length,aa-1))}),ja=z(ea,2),ea=ja[0],ja=ja[1],{startNode:w,startOffset:ea,endNode:w,endOffset:ja}}}},{key:"update",value:function(n,ba){var w=this;n.some(function(ea){return"characterData"===ea.type&&
185
+ ea.target===w.textNode})&&(n=this.restore())&&(ba.range=n)}},{key:"value",value:function(){return""}}]);return h}(f.default.Embed);fa.blotName="cursor";fa.className="ql-cursor";fa.tagName="span";fa.CONTENTS="\ufeff";ma.default=fa},function(ka,ma,fa){function da(x,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});y&&
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}da(y,x);return y}(ka.default.Container);ka.allowedChildren=[z.default,fa.BlockEmbed,ka];ma.default=ka},function(ka,ma,fa){function da(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,
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}da(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 da(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}da(a,e);x(a,[{key:"format",value:function(b,h){if(b!==this.statics.blotName||!h)return y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,b,h);h=this.constructor.sanitize(h);this.domNode.setAttribute("href",
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 da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=function(){function e(a,b){for(var h=0;h<b.length;h++){var n=b[h];n.enumerable=n.enumerable||
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":da(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 da(ja){return ja&&
204
+ ja.__esModule?ja:{default:ja}}Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(0);ka=da(ka);var z=fa(5);z=da(z);var x=fa(4),y=da(x),f=fa(16);f=da(f);var e=fa(25);e=da(e);var a=fa(24);a=da(a);var b=fa(35);b=da(b);var h=fa(6);h=da(h);var n=fa(22);n=da(n);var ba=fa(7);ba=da(ba);var w=fa(55);w=da(w);var ea=fa(42);ea=da(ea);fa=fa(23);fa=da(fa);z.default.register({"blots/block":y.default,"blots/block/embed":x.BlockEmbed,"blots/break":f.default,"blots/container":e.default,"blots/cursor":a.default,
205
+ "blots/embed":b.default,"blots/inline":h.default,"blots/scroll":n.default,"blots/text":ba.default,"modules/clipboard":w.default,"modules/history":ea.default,"modules/keyboard":fa.default});ka.default.register(y.default,f.default,a.default,h.default,n.default,ba.default);ma.default=z.default},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});var da=fa(1);ka=function(){function z(x){this.domNode=x;this.domNode[da.DATA_KEY]={blot:this}}Object.defineProperty(z.prototype,"statics",{get:function(){return this.constructor},
206
+ enumerable:!0,configurable:!0});z.create=function(x){if(null==this.tagName)throw new da.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof x&&(x=x.toUpperCase(),parseInt(x).toString()===x&&(x=parseInt(x))),x="number"===typeof x?document.createElement(this.tagName[x-1]):-1<this.tagName.indexOf(x)?document.createElement(x):document.createElement(this.tagName[0])):x=document.createElement(this.tagName);this.className&&x.classList.add(this.className);return x};
207
+ z.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};z.prototype.clone=function(){return da.create(this.domNode.cloneNode(!1))};z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[da.DATA_KEY]};z.prototype.deleteAt=function(x,y){this.isolate(x,y).remove()};z.prototype.formatAt=function(x,y,f,e){x=this.isolate(x,y);null!=da.query(f,da.Scope.BLOT)&&e?x.wrap(f,e):null!=da.query(f,da.Scope.ATTRIBUTE)&&(y=da.create(this.statics.scope),
208
+ x.wrap(y),y.format(f,e))};z.prototype.insertAt=function(x,y,f){y=null==f?da.create("text",y):da.create(y,f);x=this.split(x);this.parent.insertBefore(y,x)};z.prototype.insertInto=function(x,y){void 0===y&&(y=null);null!=this.parent&&this.parent.children.remove(this);var f=null;x.children.insertBefore(this,y);null!=y&&(f=y.domNode);this.domNode.parentNode==x.domNode&&this.domNode.nextSibling==f||x.domNode.insertBefore(this.domNode,f);this.parent=x;this.attach()};z.prototype.isolate=function(x,y){x=
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[da.DATA_KEY]&&delete this.domNode[da.DATA_KEY].mutations};z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};z.prototype.replace=function(x){null!=x.parent&&
210
+ (x.parent.insertBefore(this,x.next),x.remove())};z.prototype.replaceWith=function(x,y){x="string"===typeof x?da.create(x,y):x;x.replace(this);return x};z.prototype.split=function(x){return 0===x?this:this.next};z.prototype.update=function(){};z.prototype.wrap=function(x,y){x="string"===typeof x?da.create(x,y):x;null!=this.parent&&this.parent.insertBefore(x,this.next);x.appendChild(this);return x};z.blotName="abstract";return z}();ma.default=ka},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",
211
+ {value:!0});var da=fa(12),z=fa(32),x=fa(33),y=fa(1);ka=function(){function f(e){this.attributes={};this.domNode=e;this.build()}f.prototype.attribute=function(e,a){a?e.add(this.domNode,a)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])};f.prototype.build=function(){var e=this;this.attributes={};var a=da.default.keys(this.domNode),b=z.default.keys(this.domNode),h=x.default.keys(this.domNode);
212
+ a.concat(b).concat(h).forEach(function(n){n=y.query(n,y.Scope.ATTRIBUTE);n instanceof da.default&&(e.attributes[n.attrName]=n)})};f.prototype.copy=function(e){var a=this;Object.keys(this.attributes).forEach(function(b){var h=a.attributes[b].value(a.domNode);e.format(b,h)})};f.prototype.move=function(e){var a=this;this.copy(e);Object.keys(this.attributes).forEach(function(b){a.attributes[b].remove(a.domNode)});this.attributes={}};f.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(a,
213
+ b){a[b]=e.attributes[b].value(e.domNode);return a},{})};return f}();ma.default=ka},function(ka,ma,fa){function da(x,y){return(x.getAttribute("class")||"").split(/\s+/).filter(function(f){return 0===f.indexOf(y+"-")})}var z=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):
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){da(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=(da(f,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(f,e)?e:""};return y}(fa(12).default);ma.default=ka},function(ka,ma,fa){function da(x){x=x.split("-");var y=x.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return x[0]+y}var z=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,
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[da(this.keyName)]=
217
+ e;return!0};y.prototype.remove=function(f){f.style[da(this.keyName)]="";f.getAttribute("style")||f.removeAttribute("style")};y.prototype.value=function(f){var e=f.style[da(this.keyName)];return this.canAdd(f,e)?e:""};return y}(fa(12).default);ma.default=ka},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});var fa=function(){function da(z,x){for(var y=0;y<x.length;y++){var f=x[y];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(z,f.key,
218
+ f)}}return function(z,x,y){x&&da(z.prototype,x);y&&da(z,y);return z}}();ka=function(){function da(z,x){if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");this.quill=z;this.options=x;this.modules={}}fa(da,[{key:"init",value:function(){var z=this;Object.keys(this.options.modules).forEach(function(x){null==z.modules[x]&&z.addModule(x)})}},{key:"addModule",value:function(z){var x=this.quill.constructor.import("modules/"+z);this.modules[z]=new x(this.quill,this.options.modules[z]||
219
+ {});return this.modules[z]}}]);return da}();ka.DEFAULTS={modules:{}};ka.themes={"default":ka};ma.default=ka},function(ka,ma,fa){function da(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function z(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,
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=da(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(ea){"characterData"!==ea.type||ea.target!==w.leftGuard&&ea.target!==w.rightGuard||!(ea=w.restore(ea.target))||(ba.range=ea)})}}]);return h}(f.default.Embed);ma.default=fa},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.AlignStyle=ma.AlignClass=ma.AlignAttribute=void 0;var da=(ka=fa(0))&&
225
+ ka.__esModule?ka:{default:ka};var z={scope:da.default.Scope.BLOCK,whitelist:["right","center","justify"]};ka=new da.default.Attributor.Attribute("align","align",z);fa=new da.default.Attributor.Class("align","ql-align",z);da=new da.default.Attributor.Style("align","text-align",z);ma.AlignAttribute=ka;ma.AlignClass=fa;ma.AlignStyle=da},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.BackgroundStyle=ma.BackgroundClass=void 0;ka=(ka=fa(0))&&ka.__esModule?ka:{default:ka};var da=
226
+ fa(26);fa=new ka.default.Attributor.Class("background","ql-bg",{scope:ka.default.Scope.INLINE});ka=new da.ColorAttributor("background","background-color",{scope:ka.default.Scope.INLINE});ma.BackgroundClass=fa;ma.BackgroundStyle=ka},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.DirectionStyle=ma.DirectionClass=ma.DirectionAttribute=void 0;var da=(ka=fa(0))&&ka.__esModule?ka:{default:ka};var z={scope:da.default.Scope.BLOCK,whitelist:["rtl"]};ka=new da.default.Attributor.Attribute("direction",
227
+ "dir",z);fa=new da.default.Attributor.Class("direction","ql-direction",z);da=new da.default.Attributor.Style("direction","direction",z);ma.DirectionAttribute=ka;ma.DirectionClass=fa;ma.DirectionStyle=da},function(ka,ma,fa){function da(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,
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}da(a,e);z(a,[{key:"value",value:function(b){return x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,b).replace(/["']/g,"")}}]);return a}(fa.default.Attributor.Style))("font","font-family",y);ma.FontStyle=fa;ma.FontClass=ka},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.SizeStyle=ma.SizeClass=void 0;fa=(ka=fa(0))&&ka.__esModule?ka:{default:ka};ka=new fa.default.Attributor.Class("size",
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 da(h){return h&&h.__esModule?h:{default:h}}function z(h,n){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?h:n}
233
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(z,w){return z+=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 b=function(){function h(n,z){for(var w=0;w<z.length;w++){var ea=z[w];ea.enumerable=ea.enumerable||!1;ea.configurable=!0;"value"in ea&&(ea.writable=!0);Object.defineProperty(n,ea.key,ea)}}return function(n,z,w){z&&h(n.prototype,z);w&&h(n,w);return n}}();ka=ha(0);
235
- var a=da(ka);ka=ha(5);var e=da(ka);ha=ha(9);ha=function(h){function n(z,w){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var ea=aa(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,z,w));ea.lastRecorded=0;ea.ignoreChange=!1;ea.clear();ea.quill.on(e.default.events.EDITOR_CHANGE,function(ja,ca,ba,fa){ja!==e.default.events.TEXT_CHANGE||ea.ignoreChange||(ea.options.userOnly&&fa!==e.default.sources.USER?ea.transform(ca):ea.record(ca,ba))});ea.quill.keyboard.addBinding({key:"Z",
236
- shortKey:!0},ea.undo.bind(ea));ea.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},ea.redo.bind(ea));/Win/i.test(navigator.platform)&&ea.quill.keyboard.addBinding({key:"Y",shortKey:!0},ea.redo.bind(ea));return ea}x(n,h);b(n,[{key:"change",value:function(z,w){if(0!==this.stack[z].length){var ea=this.stack[z].pop();this.stack[w].push(ea);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(ea[z],e.default.sources.USER);this.ignoreChange=!1;z=f(ea[z]);this.quill.setSelection(z)}}},
237
- {key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(z,w){if(0!==z.ops.length){this.stack.redo=[];w=this.quill.getContents().diff(w);var ea=Date.now();this.lastRecorded+this.options.delay>ea&&0<this.stack.undo.length?(ea=this.stack.undo.pop(),w=w.compose(ea.undo),z=ea.redo.compose(z)):this.lastRecorded=ea;this.stack.undo.push({redo:z,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(z){this.stack.undo.forEach(function(w){w.undo=z.transform(w.undo,!0);w.redo=z.transform(w.redo,!0)});this.stack.redo.forEach(function(w){w.undo=z.transform(w.undo,!0);w.redo=z.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return n}(da(ha).default);ha.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ma.default=ha;ma.getLastChangeIndex=f},function(ka,ma,ha){function da(ra){return ra&&
239
- ra.__esModule?ra:{default:ra}}function aa(ra,qa){if(!(ra instanceof qa))throw new TypeError("Cannot call a class as a function");}function x(ra,qa){if(!ra)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!qa||"object"!==typeof qa&&"function"!==typeof qa?ra:qa}function y(ra,qa){if("function"!==typeof qa&&null!==qa)throw new TypeError("Super expression must either be null or a function, not "+typeof qa);ra.prototype=Object.create(qa&&qa.prototype,{constructor:{value:ra,
240
- enumerable:!1,writable:!0,configurable:!0}});qa&&(Object.setPrototypeOf?Object.setPrototypeOf(ra,qa):ra.__proto__=qa)}function f(ra,qa){var ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;qa.forEach(function(va){var oa=document.createElement("option");va===ta?oa.setAttribute("selected","selected"):oa.setAttribute("value",va);ra.appendChild(oa)})}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.BaseTooltip=void 0;var b=function(){function ra(qa,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(qa,oa.key,oa)}}return function(qa,ta,va){ta&&ra(qa.prototype,ta);va&&ra(qa,va);return qa}}(),a=function oa(qa,ta,va){null===qa&&(qa=Function.prototype);var wa=Object.getOwnPropertyDescriptor(qa,ta);if(void 0===wa){if(qa=Object.getPrototypeOf(qa),null!==qa)return oa(qa,ta,va)}else{if("value"in wa)return wa.value;ta=wa.get;return void 0===ta?void 0:ta.call(va)}};ka=ha(3);ka=da(ka);var e=ha(2),
242
- h=da(e);e=ha(8);var n=da(e);e=ha(23);var z=da(e);e=ha(34);e=da(e);var w=ha(59),ea=da(w);w=ha(60);var ja=da(w);w=ha(28);var ca=da(w);ha=ha(61);w=da(ha);var ba=[!1,"center","right","justify"],fa="#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(" "),ia=[!1,"serif",
243
- "monospace"],la=["1","2","3",!1],na=["small",!1,"large","huge"];ha=function(qa){function ta(va,oa){aa(this,ta);var wa=x(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,va,oa));va.emitter.listenDOM("click",document.body,function Ma(Ia){if(!document.body.contains(va.root))return document.body.removeEventListener("click",Ma);null==wa.tooltip||wa.tooltip.root.contains(Ia.target)||document.activeElement===wa.tooltip.textbox||wa.quill.hasFocus()||wa.tooltip.hide();null!=wa.pickers&&wa.pickers.forEach(function(Ca){Ca.container.contains(Ia.target)||
244
- Ca.close()})});return wa}y(ta,qa);b(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 Ia=wa.value||"";null!=Ia&&oa[Da][Ia]&&(wa.innerHTML=oa[Da][Ia])}})})}},{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,ba),new ja.default(Da,oa.align);if(Da.classList.contains("ql-background")||Da.classList.contains("ql-color")){var Ia=Da.classList.contains("ql-background")?"background":"color";null==Da.querySelector("option")&&f(Da,fa,"background"===Ia?"#ffffff":
246
- "#000000");return new ea.default(Da,oa[Ia])}null==Da.querySelector("option")&&(Da.classList.contains("ql-font")?f(Da,ia):Da.classList.contains("ql-header")?f(Da,la):Da.classList.contains("ql-size")&&f(Da,na));return new ca.default(Da)});this.quill.on(n.default.events.EDITOR_CHANGE,function(){wa.pickers.forEach(function(Da){Da.update()})})}}]);return ta}(e.default);ha.DEFAULTS=(0,ka.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
247
- image:function(){var qa=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=qa.quill.getSelection(!0);qa.quill.updateContents((new h.default).retain(wa.index).delete(wa.length).insert({image:oa.target.result}),
248
- n.default.sources.USER);qa.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(qa){function ta(va,oa){aa(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,qa);b(ta,[{key:"listen",value:function(){var va=this;this.textbox.addEventListener("keydown",
249
- function(oa){z.default.match(oa,"enter")?(va.save(),oa.preventDefault()):z.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=
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 ea=ba[w];ea.enumerable=ea.enumerable||!1;ea.configurable=!0;"value"in ea&&(ea.writable=!0);Object.defineProperty(n,ea.key,ea)}}return function(n,ba,w){ba&&h(n.prototype,ba);w&&h(n,w);return n}}();
235
+ ka=fa(0);var a=da(ka);ka=fa(5);var b=da(ka);fa=fa(9);fa=function(h){function n(ba,w){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var ea=z(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,ba,w));ea.lastRecorded=0;ea.ignoreChange=!1;ea.clear();ea.quill.on(b.default.events.EDITOR_CHANGE,function(ja,aa,ca,ia){ja!==b.default.events.TEXT_CHANGE||ea.ignoreChange||(ea.options.userOnly&&ia!==b.default.sources.USER?ea.transform(aa):ea.record(aa,ca))});ea.quill.keyboard.addBinding({key:"Z",
236
+ shortKey:!0},ea.undo.bind(ea));ea.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},ea.redo.bind(ea));/Win/i.test(navigator.platform)&&ea.quill.keyboard.addBinding({key:"Y",shortKey:!0},ea.redo.bind(ea));return ea}x(n,h);e(n,[{key:"change",value:function(ba,w){if(0!==this.stack[ba].length){var ea=this.stack[ba].pop();this.stack[w].push(ea);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(ea[ba],b.default.sources.USER);this.ignoreChange=!1;ba=f(ea[ba]);this.quill.setSelection(ba)}}},
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 ea=Date.now();this.lastRecorded+this.options.delay>ea&&0<this.stack.undo.length?(ea=this.stack.undo.pop(),w=w.compose(ea.undo),ba=ea.redo.compose(ba)):this.lastRecorded=ea;this.stack.undo.push({redo:ba,undo:w});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},
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}(da(fa).default);fa.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ma.default=fa;ma.getLastChangeIndex=f},function(ka,ma,fa){function da(qa){return qa&&
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=da(ka);var b=fa(2),
242
+ h=da(b);b=fa(8);var n=da(b);b=fa(23);var ba=da(b);b=fa(34);b=da(b);var w=fa(59),ea=da(w);w=fa(60);var ja=da(w);w=fa(28);var aa=da(w);fa=fa(61);w=da(fa);var ca=[!1,"center","right","justify"],ia="#000000 #e60000 #ff9900 #ffff00 #008a00 #0066cc #9933ff #ffffff #facccc #ffebcc #ffffcc #cce8cc #cce0f5 #ebd6ff #bbbbbb #f06666 #ffc266 #ffff66 #66b966 #66a3e0 #c285ff #888888 #a10000 #b26b00 #b2b200 #006100 #0047b2 #6b24b2 #444444 #5c0000 #663d00 #666600 #003700 #002966 #3d1466".split(" "),ha=[!1,"serif",
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 ea.default(Da,oa[Ha])}null==Da.querySelector("option")&&(Da.classList.contains("ql-font")?f(Da,ha):Da.classList.contains("ql-header")?f(Da,la):Da.classList.contains("ql-size")&&f(Da,na));return new aa.default(Da)});this.quill.on(n.default.events.EDITOR_CHANGE,function(){wa.pickers.forEach(function(Da){Da.update()})})}}]);return ta}(b.default);fa.DEFAULTS=(0,ka.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
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
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
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=ha},function(ka,ma){Object.defineProperty(ma,
253
- "__esModule",{value:!0});ka=function(){function ha(){this.head=this.tail=null;this.length=0}ha.prototype.append=function(){for(var da=[],aa=0;aa<arguments.length;aa++)da[aa]=arguments[aa];this.insertBefore(da[0],null);1<da.length&&this.append.apply(this,da.slice(1))};ha.prototype.contains=function(da){for(var aa,x=this.iterator();aa=x();)if(aa===da)return!0;return!1};ha.prototype.insertBefore=function(da,aa){da&&(da.next=aa,null!=aa?(da.prev=aa.prev,null!=aa.prev&&(aa.prev.next=da),aa.prev=da,aa===
254
- this.head&&(this.head=da)):null!=this.tail?(this.tail.next=da,da.prev=this.tail,this.tail=da):(da.prev=null,this.head=this.tail=da),this.length+=1)};ha.prototype.offset=function(da){for(var aa=0,x=this.head;null!=x;){if(x===da)return aa;aa+=x.length();x=x.next}return-1};ha.prototype.remove=function(da){this.contains(da)&&(null!=da.prev&&(da.prev.next=da.next),null!=da.next&&(da.next.prev=da.prev),da===this.head&&(this.head=da.next),da===this.tail&&(this.tail=da.prev),--this.length)};ha.prototype.iterator=
255
- function(da){void 0===da&&(da=this.head);return function(){var aa=da;null!=da&&(da=da.next);return aa}};ha.prototype.find=function(da,aa){void 0===aa&&(aa=!1);for(var x,y=this.iterator();x=y();){var f=x.length();if(da<f||aa&&da===f&&(null==x.next||0!==x.next.length()))return[x,da];da-=f}return[null,0]};ha.prototype.forEach=function(da){for(var aa,x=this.iterator();aa=x();)da(aa)};ha.prototype.forEachAt=function(da,aa,x){if(!(0>=aa))for(var y=this.find(da),f=da-y[1],b=this.iterator(y[0]);(y=b())&&
256
- f<da+aa;){var a=y.length();da>f?x(y,da-f,Math.min(aa,f+a-da)):x(y,0,Math.min(a,da+aa-f));f+=a}};ha.prototype.map=function(da){return this.reduce(function(aa,x){aa.push(da(x));return aa},[])};ha.prototype.reduce=function(da,aa){for(var x,y=this.iterator();x=y();)aa=da(aa,x);return aa};return ha}();ma.default=ka},function(ka,ma,ha){var da=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&
257
- (b[e]=a[e])};return function(b,a){function e(){this.constructor=b}f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});var aa=ha(17),x=ha(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};ka=function(f){function b(a){var e=f.call(this,a)||this;e.scroll=e;e.observer=new MutationObserver(function(h){e.update(h)});e.observer.observe(e.domNode,y);e.attach();return e}da(b,f);b.prototype.detach=
258
- function(){f.prototype.detach.call(this);this.observer.disconnect()};b.prototype.deleteAt=function(a,e){this.update();0===a&&e===this.length()?this.children.forEach(function(h){h.remove()}):f.prototype.deleteAt.call(this,a,e)};b.prototype.formatAt=function(a,e,h,n){this.update();f.prototype.formatAt.call(this,a,e,h,n)};b.prototype.insertAt=function(a,e,h){this.update();f.prototype.insertAt.call(this,a,e,h)};b.prototype.optimize=function(a,e){function h(ca){null!=ca.domNode[x.DATA_KEY]&&null!=ca.domNode[x.DATA_KEY].mutations&&
259
- (ca instanceof aa.default&&ca.children.forEach(h),ca.optimize(e))}function n(ca,ba){void 0===ba&&(ba=!0);null!=ca&&ca!==z&&null!=ca.domNode.parentNode&&(null==ca.domNode[x.DATA_KEY].mutations&&(ca.domNode[x.DATA_KEY].mutations=[]),ba&&n(ca.parent))}var z=this;void 0===a&&(a=[]);void 0===e&&(e={});f.prototype.optimize.call(this,e);for(var w=[].slice.call(this.observer.takeRecords());0<w.length;)a.push(w.pop());for(var ea=a,ja=0;0<ea.length;ja+=1){if(100<=ja)throw Error("[Parchment] Maximum optimize iterations reached");
260
- ea.forEach(function(ca){var ba=x.find(ca.target,!0);null!=ba&&(ba.domNode===ca.target&&("childList"===ca.type?(n(x.find(ca.previousSibling,!1)),[].forEach.call(ca.addedNodes,function(fa){fa=x.find(fa,!1);n(fa,!1);fa instanceof aa.default&&fa.children.forEach(function(ia){n(ia,!1)})})):"attributes"===ca.type&&n(ba.prev)),n(ba))});this.children.forEach(h);ea=[].slice.call(this.observer.takeRecords());for(w=ea.slice();0<w.length;)a.push(w.pop())}};b.prototype.update=function(a,e){var h=this;void 0===
261
- e&&(e={});a=a||this.observer.takeRecords();a.map(function(n){var z=x.find(n.target,!0);if(null==z)return null;if(null==z.domNode[x.DATA_KEY].mutations)return z.domNode[x.DATA_KEY].mutations=[n],z;z.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||[],e)});null!=this.domNode[x.DATA_KEY].mutations&&f.prototype.update.call(this,this.domNode[x.DATA_KEY].mutations,e);this.optimize(a,e)};b.blotName=
262
- "scroll";b.defaultChild="block";b.scope=x.Scope.BLOCK_BLOT;b.tagName="DIV";return b}(aa.default);ma.default=ka},function(ka,ma,ha){var da=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var a in b)b.hasOwnProperty(a)&&(f[a]=b[a])};return function(f,b){function a(){this.constructor=f}y(f,b);f.prototype=null===b?Object.create(b):(a.prototype=b.prototype,new a)}}();Object.defineProperty(ma,"__esModule",{value:!0});
263
- var aa=ha(18),x=ha(1);ka=function(y){function f(){return null!==y&&y.apply(this,arguments)||this}da(f,y);f.formats=function(b){if(b.tagName!==f.tagName)return y.formats.call(this,b)};f.prototype.format=function(b,a){var e=this;b!==this.statics.blotName||a?y.prototype.format.call(this,b,a):(this.children.forEach(function(h){h instanceof aa.default||(h=h.wrap(f.blotName,!0));e.attributes.copy(h)}),this.unwrap())};f.prototype.formatAt=function(b,a,e,h){null!=this.formats()[e]||x.query(e,x.Scope.ATTRIBUTE)?
264
- this.isolate(b,a).format(e,h):y.prototype.formatAt.call(this,b,a,e,h)};f.prototype.optimize=function(b){y.prototype.optimize.call(this,b);b=this.formats();if(0===Object.keys(b).length)return this.unwrap();var a=this.next,e;if(e=a instanceof f&&a.prev===this)a:if(e=a.formats(),Object.keys(b).length!==Object.keys(e).length)e=!1;else{for(var h in b)if(b[h]!==e[h]){e=!1;break a}e=!0}e&&(a.moveChildren(this),a.remove())};f.blotName="inline";f.scope=x.Scope.INLINE_BLOT;f.tagName="SPAN";return f}(aa.default);
265
- ma.default=ka},function(ka,ma,ha){var da=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var b in f)f.hasOwnProperty(b)&&(y[b]=f[b])};return function(y,f){function b(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=ha(18);var aa=ha(1);ha=function(x){function y(){return null!==x&&x.apply(this,arguments)||
266
- this}da(y,x);y.formats=function(f){var b=aa.query(y.blotName).tagName;if(f.tagName!==b)return x.formats.call(this,f)};y.prototype.format=function(f,b){null!=aa.query(f,aa.Scope.BLOCK)&&(f!==this.statics.blotName||b?x.prototype.format.call(this,f,b):this.replaceWith(y.blotName))};y.prototype.formatAt=function(f,b,a,e){null!=aa.query(a,aa.Scope.BLOCK)?this.format(a,e):x.prototype.formatAt.call(this,f,b,a,e)};y.prototype.insertAt=function(f,b,a){null==a||null!=aa.query(b,aa.Scope.INLINE)?x.prototype.insertAt.call(this,
267
- f,b,a):(f=this.split(f),b=aa.create(b,a),f.parent.insertBefore(b,f))};y.prototype.update=function(f,b){navigator.userAgent.match(/Trident/)?this.build():x.prototype.update.call(this,f,b)};y.blotName="block";y.scope=aa.Scope.BLOCK_BLOT;y.tagName="P";return y}(ka.default);ma.default=ha},function(ka,ma,ha){var da=this&&this.__extends||function(){var aa=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,
268
- y){function f(){this.constructor=x}aa(x,y);x.prototype=null===y?Object.create(y):(f.prototype=y.prototype,new f)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=function(aa){function x(){return null!==aa&&aa.apply(this,arguments)||this}da(x,aa);x.formats=function(){};x.prototype.format=function(y,f){aa.prototype.formatAt.call(this,0,this.length(),y,f)};x.prototype.formatAt=function(y,f,b,a){0===y&&f===this.length()?this.format(b,a):aa.prototype.formatAt.call(this,y,f,b,a)};x.prototype.formats=
269
- function(){return this.statics.formats(this.domNode)};return x}(ha(19).default);ma.default=ka},function(ka,ma,ha){var da=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var b in f)f.hasOwnProperty(b)&&(y[b]=f[b])};return function(y,f){function b(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=ha(19);
270
- var aa=ha(1);ha=function(x){function y(f){f=x.call(this,f)||this;f.text=f.statics.value(f.domNode);return f}da(y,x);y.create=function(f){return document.createTextNode(f)};y.value=function(f){f=f.data;f.normalize&&(f=f.normalize());return f};y.prototype.deleteAt=function(f,b){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+b)};y.prototype.index=function(f,b){return this.domNode===f?b:-1};y.prototype.insertAt=function(f,b,a){null==a?(this.text=this.text.slice(0,f)+b+this.text.slice(f),
271
- this.domNode.data=this.text):x.prototype.insertAt.call(this,f,b,a)};y.prototype.length=function(){return this.text.length};y.prototype.optimize=function(f){x.prototype.optimize.call(this,f);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof y&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};y.prototype.position=function(f){return[this.domNode,f]};y.prototype.split=function(f,b){void 0===b&&(b=!1);if(!b){if(0===
272
- f)return this;if(f===this.length())return this.next}f=aa.create(this.domNode.splitText(f));this.parent.insertBefore(f,this.next);this.text=this.statics.value(this.domNode);return f};y.prototype.update=function(f){var b=this;f.some(function(a){return"characterData"===a.type&&a.target===b.domNode})&&(this.text=this.statics.value(this.domNode))};y.prototype.value=function(){return this.text};y.blotName="text";y.scope=aa.Scope.INLINE_BLOT;return y}(ka.default);ma.default=ha},function(){var ka=document.createElement("div");
273
- ka.classList.toggle("test-class",!1);if(ka.classList.contains("test-class")){var ma=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(ha,da){return 1<arguments.length&&!this.contains(ha)===!da?da:ma.call(this,ha)}}String.prototype.startsWith||(String.prototype.startsWith=function(ha,da){return this.substr(da||0,ha.length)===ha});String.prototype.endsWith||(String.prototype.endsWith=function(ha,da){var aa=this.toString();if("number"!==typeof da||!isFinite(da)||Math.floor(da)!==da||
274
- da>aa.length)da=aa.length;da-=ha.length;ha=aa.indexOf(ha,da);return-1!==ha&&ha===da});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(ha,da){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof ha)throw new TypeError("predicate must be a function");for(var aa=Object(this),x=aa.length>>>0,y,f=0;f<x;f++)if(y=aa[f],ha.call(da,y,f,aa))return y}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",
275
- !1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(ka){function ma(h,n,z){if(h==n)return h?[[0,h]]:[];if(0>z||h.length<z)z=null;var w=aa(h,n),ea=h.substring(0,w);h=h.substring(w);n=n.substring(w);w=x(h,n);var ja=h.substring(h.length-w);h=h.substring(0,h.length-w);n=n.substring(0,n.length-w);h=ha(h,n);ea&&h.unshift([0,ea]);ja&&h.push([0,ja]);f(h);null!=z&&(h=b(h,z));return h=a(h)}function ha(h,n){if(!h)return[[1,n]];if(!n)return[[-1,h]];var z=h.length>n.length?h:n;var w=h.length>n.length?
276
- n:h,ea=z.indexOf(w);if(-1!=ea)return z=[[1,z.substring(0,ea)],[0,w],[1,z.substring(ea+w.length)]],h.length>n.length&&(z[0][0]=z[2][0]=-1),z;if(1==w.length)return[[-1,h],[1,n]];if(z=y(h,n))return n=z[1],w=z[3],h=z[4],z=ma(z[0],z[2]),n=ma(n,w),z.concat([[0,h]],n);a:{z=h.length;w=n.length;ea=Math.ceil((z+w)/2);for(var ja=2*ea,ca=Array(ja),ba=Array(ja),fa=0;fa<ja;fa++)ca[fa]=-1,ba[fa]=-1;ca[ea+1]=0;ba[ea+1]=0;fa=z-w;for(var ia=0!=fa%2,la=0,na=0,ra=0,qa=0,ta=0;ta<ea;ta++){for(var va=-ta+la;va<=ta-na;va+=
277
- 2){var oa=ea+va;var wa=va==-ta||va!=ta&&ca[oa-1]<ca[oa+1]?ca[oa+1]:ca[oa-1]+1;for(var Da=wa-va;wa<z&&Da<w&&h.charAt(wa)==n.charAt(Da);)wa++,Da++;ca[oa]=wa;if(wa>z)na+=2;else if(Da>w)la+=2;else if(ia&&(oa=ea+fa-va,0<=oa&&oa<ja&&-1!=ba[oa])){var Ia=z-ba[oa];if(wa>=Ia){h=da(h,n,wa,Da);break a}}}for(va=-ta+ra;va<=ta-qa;va+=2){oa=ea+va;Ia=va==-ta||va!=ta&&ba[oa-1]<ba[oa+1]?ba[oa+1]:ba[oa-1]+1;for(wa=Ia-va;Ia<z&&wa<w&&h.charAt(z-Ia-1)==n.charAt(w-wa-1);)Ia++,wa++;ba[oa]=Ia;if(Ia>z)qa+=2;else if(wa>w)ra+=
278
- 2;else if(!ia&&(oa=ea+fa-va,0<=oa&&oa<ja&&-1!=ca[oa]&&(wa=ca[oa],Da=ea+wa-oa,Ia=z-Ia,wa>=Ia))){h=da(h,n,wa,Da);break a}}}h=[[-1,h],[1,n]]}return h}function da(h,n,z,w){var ea=h.substring(z),ja=n.substring(w);h=ma(h.substring(0,z),n.substring(0,w));ea=ma(ea,ja);return h.concat(ea)}function aa(h,n){if(!h||!n||h.charAt(0)!=n.charAt(0))return 0;for(var z=0,w=Math.min(h.length,n.length),ea=w,ja=0;z<ea;)h.substring(ja,ea)==n.substring(ja,ea)?ja=z=ea:w=ea,ea=Math.floor((w-z)/2+z);return ea}function x(h,
279
- n){if(!h||!n||h.charAt(h.length-1)!=n.charAt(n.length-1))return 0;for(var z=0,w=Math.min(h.length,n.length),ea=w,ja=0;z<ea;)h.substring(h.length-ea,h.length-ja)==n.substring(n.length-ea,n.length-ja)?ja=z=ea:w=ea,ea=Math.floor((w-z)/2+z);return ea}function y(h,n){function z(ca,ba,fa){for(var ia=ca.substring(fa,fa+Math.floor(ca.length/4)),la=-1,na="",ra,qa,ta,va;-1!=(la=ba.indexOf(ia,la+1));){var oa=aa(ca.substring(fa),ba.substring(la)),wa=x(ca.substring(0,fa),ba.substring(0,la));na.length<wa+oa&&(na=
280
- ba.substring(la-wa,la)+ba.substring(la,la+oa),ra=ca.substring(0,fa-wa),qa=ca.substring(fa+oa),ta=ba.substring(0,la-wa),va=ba.substring(la+oa))}return 2*na.length>=ca.length?[ra,qa,ta,va,na]:null}var w=h.length>n.length?h:n,ea=h.length>n.length?n:h;if(4>w.length||2*ea.length<w.length)return null;var ja=z(w,ea,Math.ceil(w.length/4));w=z(w,ea,Math.ceil(w.length/2));if(ja||w)ja=w?ja?ja[4].length>w[4].length?ja:w:w:ja;else return null;h.length>n.length?(h=ja[0],n=ja[1],w=ja[2],ea=ja[3]):(w=ja[0],ea=ja[1],
281
- h=ja[2],n=ja[3]);return[h,n,w,ea,ja[4]]}function f(h){h.push([0,""]);for(var n=0,z=0,w=0,ea="",ja="",ca;n<h.length;)switch(h[n][0]){case 1:w++;ja+=h[n][1];n++;break;case -1:z++;ea+=h[n][1];n++;break;case 0:1<z+w?(0!==z&&0!==w&&(ca=aa(ja,ea),0!==ca&&(0<n-z-w&&0==h[n-z-w-1][0]?h[n-z-w-1][1]+=ja.substring(0,ca):(h.splice(0,0,[0,ja.substring(0,ca)]),n++),ja=ja.substring(ca),ea=ea.substring(ca)),ca=x(ja,ea),0!==ca&&(h[n][1]=ja.substring(ja.length-ca)+h[n][1],ja=ja.substring(0,ja.length-ca),ea=ea.substring(0,
282
- ea.length-ca))),0===z?h.splice(n-w,z+w,[1,ja]):0===w?h.splice(n-z,z+w,[-1,ea]):h.splice(n-z-w,z+w,[-1,ea],[1,ja]),n=n-z-w+(z?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++,z=w=0,ja=ea=""}""===h[h.length-1][1]&&h.pop();z=!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),z=!0):h[n][1].substring(0,
283
- h[n+1][1].length)==h[n+1][1]&&(h[n-1][1]+=h[n+1][1],h[n][1]=h[n][1].substring(h[n+1][1].length)+h[n+1][1],h.splice(n+1,1),z=!0)),n++;z&&f(h)}function b(h,n){a:{var z=h;if(0===n)var w=[0,z];else{var ea=0;for(w=0;w<z.length;w++){var ja=z[w];if(-1===ja[0]||0===ja[0]){var ca=ea+ja[1].length;if(n===ca){w=[w+1,z];break a}if(n<ca){z=z.slice();ea=n-ea;n=[ja[0],ja[1].slice(0,ea)];ja=[ja[0],ja[1].slice(ea)];z.splice(w,1,n,ja);w=[w+1,z];break a}ea=ca}}throw Error("cursor_pos is out of bounds!");}}z=w[1];w=w[0];
284
- n=z[w];ja=z[w+1];return null==n||0!==n[0]?h:null!=ja&&n[1]+ja[1]===ja[1]+n[1]?(z.splice(w,2,ja,n),e(z,w,2)):null!=ja&&0===ja[1].indexOf(n[1])?(z.splice(w,2,[ja[0],n[1]],[0,n[1]]),h=ja[1].slice(n[1].length),0<h.length&&z.splice(w+2,0,[ja[0],h]),e(z,w,3)):h}function a(h){function n(ja){return 55296<=ja.charCodeAt(ja.length-1)&&56319>=ja.charCodeAt(ja.length-1)}function z(ja){return 56320<=ja.charCodeAt(0)&&57343>=ja.charCodeAt(0)}for(var w=!1,ea=2;ea<h.length;ea+=1)0===h[ea-2][0]&&n(h[ea-2][1])&&-1===
285
- h[ea-1][0]&&z(h[ea-1][1])&&1===h[ea][0]&&z(h[ea][1])&&(w=!0,h[ea-1][1]=h[ea-2][1].slice(-1)+h[ea-1][1],h[ea][1]=h[ea-2][1].slice(-1)+h[ea][1],h[ea-2][1]=h[ea-2][1].slice(0,-1));if(!w)return h;w=[];for(ea=0;ea<h.length;ea+=1)0<h[ea][1].length&&w.push(h[ea]);return w}function e(h,n,z){for(z=n+z-1;0<=z&&z>=n-1;z--)if(z+1<h.length){var w=h[z],ea=h[z+1];w[0]===ea[1]&&h.splice(z,2,[w[0],w[1]+ea[1]])}return h}ma.INSERT=1;ma.DELETE=-1;ma.EQUAL=0;ka.exports=ma},function(ka,ma){function ha(da){var aa=[],x;
286
- for(x in da)aa.push(x);return aa}ma=ka.exports="function"===typeof Object.keys?Object.keys:ha;ma.shim=ha},function(ka,ma){function ha(aa){return"[object Arguments]"==Object.prototype.toString.call(aa)}function da(aa){return aa&&"object"==typeof aa&&"number"==typeof aa.length&&Object.prototype.hasOwnProperty.call(aa,"callee")&&!Object.prototype.propertyIsEnumerable.call(aa,"callee")||!1}ma="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ma=ka.exports=ma?ha:da;ma.supported=
287
- ha;ma.unsupported=da},function(ka){function ma(){}function ha(y,f,b){this.fn=y;this.context=f;this.once=b||!1}function da(){this._events=new ma;this._eventsCount=0}var aa=Object.prototype.hasOwnProperty,x="~";Object.create&&(ma.prototype=Object.create(null),(new ma).__proto__||(x=!1));da.prototype.eventNames=function(){var y=[],f,b;if(0===this._eventsCount)return y;for(b in f=this._events)aa.call(f,b)&&y.push(x?b.slice(1):b);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(f)):
288
- y};da.prototype.listeners=function(y,f){y=this._events[x?x+y:y];if(f)return!!y;if(!y)return[];if(y.fn)return[y.fn];f=0;for(var b=y.length,a=Array(b);f<b;f++)a[f]=y[f].fn;return a};da.prototype.emit=function(y,f,b,a,e,h){var n=x?x+y:y;if(!this._events[n])return!1;n=this._events[n];var z=arguments.length,w;if(n.fn){n.once&&this.removeListener(y,n.fn,void 0,!0);switch(z){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,b),!0;case 4:return n.fn.call(n.context,
289
- f,b,a),!0;case 5:return n.fn.call(n.context,f,b,a,e),!0;case 6:return n.fn.call(n.context,f,b,a,e,h),!0}var ea=1;for(w=Array(z-1);ea<z;ea++)w[ea-1]=arguments[ea];n.fn.apply(n.context,w)}else{var ja=n.length;for(ea=0;ea<ja;ea++)switch(n[ea].once&&this.removeListener(y,n[ea].fn,void 0,!0),z){case 1:n[ea].fn.call(n[ea].context);break;case 2:n[ea].fn.call(n[ea].context,f);break;case 3:n[ea].fn.call(n[ea].context,f,b);break;case 4:n[ea].fn.call(n[ea].context,f,b,a);break;default:if(!w){var ca=1;for(w=
290
- Array(z-1);ca<z;ca++)w[ca-1]=arguments[ca]}n[ea].fn.apply(n[ea].context,w)}}return!0};da.prototype.on=function(y,f,b){f=new ha(f,b||this);y=x?x+y:y;this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],f]:this._events[y].push(f):(this._events[y]=f,this._eventsCount++);return this};da.prototype.once=function(y,f,b){f=new ha(f,b||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
- da.prototype.removeListener=function(y,f,b,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 e=this._events[y];if(e.fn)e.fn!==f||a&&!e.once||b&&e.context!==b||(0===--this._eventsCount?this._events=new ma:delete this._events[y]);else{for(var h=0,n=[],z=e.length;h<z;h++)(e[h].fn!==f||a&&!e[h].once||b&&e[h].context!==b)&&n.push(e[h]);n.length?this._events[y]=1===n.length?n[0]:n:0===--this._eventsCount?this._events=new ma:
292
- delete this._events[y]}return this};da.prototype.removeAllListeners=function(y){y?(y=x?x+y:y,this._events[y]&&(0===--this._eventsCount?this._events=new ma:delete this._events[y])):(this._events=new ma,this._eventsCount=0);return this};da.prototype.off=da.prototype.removeListener;da.prototype.addListener=da.prototype.on;da.prototype.setMaxListeners=function(){return this};da.prefixed=x;da.EventEmitter=da;"undefined"!==typeof ka&&(ka.exports=da)},function(ka,ma,ha){function da(Ba){return Ba&&Ba.__esModule?
293
- Ba:{default:Ba}}function aa(Ba,La,Ja){La in Ba?Object.defineProperty(Ba,La,{value:Ja,enumerable:!0,configurable:!0,writable:!0}):Ba[La]=Ja;return Ba}function x(Ba,La){if(!Ba)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!La||"object"!==typeof La&&"function"!==typeof La?Ba:La}function y(Ba,La){if("function"!==typeof La&&null!==La)throw new TypeError("Super expression must either be null or a function, not "+typeof La);Ba.prototype=Object.create(La&&La.prototype,
294
- {constructor:{value:Ba,enumerable:!1,writable:!0,configurable:!0}});La&&(Object.setPrototypeOf?Object.setPrototypeOf(Ba,La):Ba.__proto__=La)}function f(Ba,La,Ja){return"object"===("undefined"===typeof La?"undefined":ba(La))?Object.keys(La).reduce(function(Pa,Ua){return f(Pa,Ua,La[Ua])},Ba):Ba.reduce(function(Pa,Ua){return Ua.attributes&&Ua.attributes[La]?Pa.push(Ua):Pa.insert(Ua.insert,(0,la.default)({},aa({},La,Ja),Ua.attributes))},new na.default)}function b(Ba){return Ba.nodeType!==Node.ELEMENT_NODE?
295
- {}:Ba["__ql-computed-style"]||(Ba["__ql-computed-style"]=window.getComputedStyle(Ba))}function a(Ba,La){for(var Ja="",Pa=Ba.ops.length-1;0<=Pa&&Ja.length<La.length;--Pa){var Ua=Ba.ops[Pa];if("string"!==typeof Ua.insert)break;Ja=Ua.insert+Ja}return Ja.slice(-1*La.length)===La}function e(Ba){if(0===Ba.childNodes.length)return!1;Ba=b(Ba);return-1<["block","list-item"].indexOf(Ba.display)}function h(Ba,La,Ja){return Ba.nodeType===Ba.TEXT_NODE?Ja.reduce(function(Pa,Ua){return Ua(Ba,Pa)},new na.default):
296
- Ba.nodeType===Ba.ELEMENT_NODE?[].reduce.call(Ba.childNodes||[],function(Pa,Ua){var Qa=h(Ua,La,Ja);Ua.nodeType===Ba.ELEMENT_NODE&&(Qa=La.reduce(function(Ea,Ga){return Ga(Ua,Ea)},Qa),Qa=(Ua["__ql-matcher"]||[]).reduce(function(Ea,Ga){return Ga(Ua,Ea)},Qa));return Pa.concat(Qa)},new na.default):new na.default}function n(Ba,La,Ja){return f(Ja,Ba,!0)}function z(Ba,La){var Ja=ra.default.Attributor.Attribute.keys(Ba),Pa=ra.default.Attributor.Class.keys(Ba),Ua=ra.default.Attributor.Style.keys(Ba),Qa={};Ja.concat(Pa).concat(Ua).forEach(function(Ea){var Ga=
297
- ra.default.query(Ea,ra.default.Scope.ATTRIBUTE);if(null!=Ga&&(Qa[Ga.attrName]=Ga.value(Ba),Qa[Ga.attrName]))return;Ga=Sa[Ea];null==Ga||Ga.attrName!==Ea&&Ga.keyName!==Ea||(Qa[Ga.attrName]=Ga.value(Ba)||void 0);Ga=Ha[Ea];null==Ga||Ga.attrName!==Ea&&Ga.keyName!==Ea||(Ga=Ha[Ea],Qa[Ga.attrName]=Ga.value(Ba)||void 0)});0<Object.keys(Qa).length&&(La=f(La,Qa));return La}function w(Ba,La){var Ja=ra.default.query(Ba);if(null==Ja)return La;if(Ja.prototype instanceof ra.default.Embed){var Pa={},Ua=Ja.value(Ba);
298
- null!=Ua&&(Pa[Ja.blotName]=Ua,La=(new na.default).insert(Pa,Ja.formats(Ba)))}else"function"===typeof Ja.formats&&(La=f(La,Ja.blotName,Ja.formats(Ba)));return La}function ea(Ba,La){a(La,"\n")||(e(Ba)||0<La.length()&&Ba.nextSibling&&e(Ba.nextSibling))&&La.insert("\n");return La}function ja(Ba,La){if(e(Ba)&&null!=Ba.nextElementSibling&&!a(La,"\n\n")){var Ja=Ba.offsetHeight+parseFloat(b(Ba).marginTop)+parseFloat(b(Ba).marginBottom);Ba.nextElementSibling.offsetTop>Ba.offsetTop+1.5*Ja&&La.insert("\n")}return La}
299
- function ca(Ba,La){var Ja=Ba.data;if("O:P"===Ba.parentNode.tagName)return La.insert(Ja.trim());if(0===Ja.trim().length&&Ba.parentNode.classList.contains("ql-clipboard"))return La;if(!b(Ba.parentNode).whiteSpace.startsWith("pre")){var Pa=function(Ua,Qa){Qa=Qa.replace(/[^\u00a0]/g,"");return 1>Qa.length&&Ua?" ":Qa};Ja=Ja.replace(/\r\n/g," ").replace(/\n/g," ");Ja=Ja.replace(/\s\s+/g,Pa.bind(Pa,!0));if(null==Ba.previousSibling&&e(Ba.parentNode)||null!=Ba.previousSibling&&e(Ba.previousSibling))Ja=Ja.replace(/^\s+/,
300
- Pa.bind(Pa,!1));if(null==Ba.nextSibling&&e(Ba.parentNode)||null!=Ba.nextSibling&&e(Ba.nextSibling))Ja=Ja.replace(/\s+$/,Pa.bind(Pa,!1))}return La.insert(Ja)}Object.defineProperty(ma,"__esModule",{value:!0});ma.matchText=ma.matchSpacing=ma.matchNewline=ma.matchBlot=ma.matchAttributor=ma.default=void 0;var ba="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Ba){return typeof Ba}:function(Ba){return Ba&&"function"===typeof Symbol&&Ba.constructor===Symbol&&Ba!==Symbol.prototype?
301
- "symbol":typeof Ba},fa=function(){return function(Ba,La){if(Array.isArray(Ba))return Ba;if(Symbol.iterator in Object(Ba)){var Ja=[],Pa=!0,Ua=!1,Qa=void 0;try{for(var Ea=Ba[Symbol.iterator](),Ga;!(Pa=(Ga=Ea.next()).done)&&(Ja.push(Ga.value),!La||Ja.length!==La);Pa=!0);}catch(Va){Ua=!0,Qa=Va}finally{try{if(!Pa&&Ea["return"])Ea["return"]()}finally{if(Ua)throw Qa;}}return Ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ia=function(){function Ba(La,Ja){for(var Pa=0;Pa<
302
- Ja.length;Pa++){var Ua=Ja[Pa];Ua.enumerable=Ua.enumerable||!1;Ua.configurable=!0;"value"in Ua&&(Ua.writable=!0);Object.defineProperty(La,Ua.key,Ua)}}return function(La,Ja,Pa){Ja&&Ba(La.prototype,Ja);Pa&&Ba(La,Pa);return La}}();ka=ha(3);var la=da(ka);ka=ha(2);var na=da(ka);ka=ha(0);var ra=da(ka);ka=ha(5);var qa=da(ka);ka=ha(10);ka=da(ka);var ta=ha(9);ta=da(ta);var va=ha(36),oa=ha(37),wa=ha(13),Da=da(wa);wa=ha(26);var Ia=ha(38),Ma=ha(39);ha=ha(40);var Ca=(0,ka.default)("quill:clipboard"),Ka=[[Node.TEXT_NODE,
303
- ca],[Node.TEXT_NODE,ea],["br",function(Ba,La){a(La,"\n")||La.insert("\n");return La}],[Node.ELEMENT_NODE,ea],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,ja],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,function(Ba,La){var Ja={},Pa=Ba.style||{};Pa.fontStyle&&"italic"===b(Ba).fontStyle&&(Ja.italic=!0);Pa.fontWeight&&(b(Ba).fontWeight.startsWith("bold")||700<=parseInt(b(Ba).fontWeight))&&(Ja.bold=!0);0<Object.keys(Ja).length&&(La=f(La,Ja));0<parseFloat(Pa.textIndent||0)&&(La=(new na.default).insert("\t").concat(La));
304
- return La}],["li",function(Ba,La){var Ja=ra.default.query(Ba);if(null==Ja||"list-item"!==Ja.blotName||!a(La,"\n"))return La;Ja=-1;for(Ba=Ba.parentNode;!Ba.classList.contains("ql-clipboard");)"list"===(ra.default.query(Ba)||{}).blotName&&(Ja+=1),Ba=Ba.parentNode;return 0>=Ja?La:La.compose((new na.default).retain(La.length()-1).retain(1,{indent:Ja}))}],["b",n.bind(n,"bold")],["i",n.bind(n,"italic")],["style",function(){return new na.default}]],Sa=[va.AlignAttribute,Ia.DirectionAttribute].reduce(function(Ba,
305
- La){Ba[La.keyName]=La;return Ba},{}),Ha=[va.AlignStyle,oa.BackgroundStyle,wa.ColorStyle,Ia.DirectionStyle,Ma.FontStyle,ha.SizeStyle].reduce(function(Ba,La){Ba[La.keyName]=La;return Ba},{});ha=function(Ba){function La(Ja,Pa){if(!(this instanceof La))throw new TypeError("Cannot call a class as a function");var Ua=x(this,(La.__proto__||Object.getPrototypeOf(La)).call(this,Ja,Pa));Ua.quill.root.addEventListener("paste",Ua.onPaste.bind(Ua));Ua.container=Ua.quill.addContainer("ql-clipboard");Ua.container.setAttribute("contenteditable",
306
- !0);Ua.container.setAttribute("tabindex",-1);Ua.matchers=[];Ka.concat(Ua.options.matchers).forEach(function(Qa){Qa=fa(Qa,2);var Ea=Qa[1];(Pa.matchVisual||Ea!==ja)&&Ua.addMatcher(Qa[0],Ea)});return Ua}y(La,Ba);ia(La,[{key:"addMatcher",value:function(Ja,Pa){this.matchers.push([Ja,Pa])}},{key:"convert",value:function(Ja){if("string"===typeof Ja)return this.container.innerHTML=Ja.replace(/>\r?\n +</g,"><"),this.convert();Ja=this.quill.getFormat(this.quill.selection.savedRange.index);if(Ja[Da.default.blotName]){var Pa=
307
- this.container.innerText;this.container.innerHTML="";return(new na.default).insert(Pa,aa({},Da.default.blotName,Ja[Da.default.blotName]))}Ja=this.prepareMatching();Ja=fa(Ja,2);Ja=h(this.container,Ja[0],Ja[1]);a(Ja,"\n")&&null==Ja.ops[Ja.ops.length-1].attributes&&(Ja=Ja.compose((new na.default).retain(Ja.length()-1).delete(1)));Ca.log("convert",this.container.innerHTML,Ja);this.container.innerHTML="";return Ja}},{key:"dangerouslyPasteHTML",value:function(Ja,Pa){var Ua=2<arguments.length&&void 0!==
308
- arguments[2]?arguments[2]:qa.default.sources.API;if("string"===typeof Ja)this.quill.setContents(this.convert(Ja),Pa),this.quill.setSelection(0,qa.default.sources.SILENT);else{var Qa=this.convert(Pa);this.quill.updateContents((new na.default).retain(Ja).concat(Qa),Ua);this.quill.setSelection(Ja+Qa.length(),qa.default.sources.SILENT)}}},{key:"onPaste",value:function(Ja){var Pa=this;if(!Ja.defaultPrevented&&this.quill.isEnabled()){var Ua=this.quill.getSelection(),Qa=(new na.default).retain(Ua.index),
309
- Ea=this.quill.scrollingContainer.scrollTop;this.container.focus();this.quill.selection.update(qa.default.sources.SILENT);setTimeout(function(){Qa=Qa.concat(Pa.convert()).delete(Ua.length);Pa.quill.updateContents(Qa,qa.default.sources.USER);Pa.quill.setSelection(Qa.length()-Ua.length,qa.default.sources.SILENT);Pa.quill.scrollingContainer.scrollTop=Ea;Pa.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Ja=this,Pa=[],Ua=[];this.matchers.forEach(function(Qa){Qa=fa(Qa,2);var Ea=Qa[0],Ga=
310
- Qa[1];switch(Ea){case Node.TEXT_NODE:Ua.push(Ga);break;case Node.ELEMENT_NODE:Pa.push(Ga);break;default:[].forEach.call(Ja.container.querySelectorAll(Ea),function(Va){Va["__ql-matcher"]=Va["__ql-matcher"]||[];Va["__ql-matcher"].push(Ga)})}});return[Pa,Ua]}}]);return La}(ta.default);ha.DEFAULTS={matchers:[],matchVisual:!0};ma.default=ha;ma.matchAttributor=z;ma.matchBlot=w;ma.matchNewline=ea;ma.matchSpacing=ja;ma.matchText=ca},function(ka,ma,ha){function da(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 aa=function(){function y(f,b){for(var a=0;a<b.length;a++){var e=b[a];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,b,a){b&&y(f.prototype,b);a&&y(f,a);return f}}(),x=function e(f,
312
- b,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,b);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return e(f,b,a)}else{if("value"in h)return h.value;b=h.get;return void 0===b?void 0:b.call(a)}};ka=function(f){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var a=(b.__proto__||Object.getPrototypeOf(b)).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}da(b,f);aa(b,[{key:"optimize",value:function(a){x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,a);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return x(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return b}(function(f){return f&&f.__esModule?f:{default:f}}(ha(6)).default);
314
- ka.blotName="bold";ka.tagName=["STRONG","B"];ma.default=ka},function(ka,ma,ha){function da(ea){return ea&&ea.__esModule?ea:{default:ea}}function aa(ea,ja){if(!ea)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?ea:ja}function x(ea,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+typeof ja);ea.prototype=Object.create(ja&&ja.prototype,{constructor:{value:ea,
315
- enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(ea,ja):ea.__proto__=ja)}function y(ea,ja,ca){var ba=document.createElement("button");ba.setAttribute("type","button");ba.classList.add("ql-"+ja);null!=ca&&(ba.value=ca);ea.appendChild(ba)}function f(ea,ja){Array.isArray(ja[0])||(ja=[ja]);ja.forEach(function(ca){var ba=document.createElement("span");ba.classList.add("ql-formats");ca.forEach(function(fa){if("string"===typeof fa)y(ba,fa);else{var ia=Object.keys(fa)[0];
316
- fa=fa[ia];Array.isArray(fa)?b(ba,ia,fa):y(ba,ia,fa)}});ea.appendChild(ba)})}function b(ea,ja,ca){var ba=document.createElement("select");ba.classList.add("ql-"+ja);ca.forEach(function(fa){var ia=document.createElement("option");!1!==fa?ia.setAttribute("value",fa):ia.setAttribute("selected","selected");ba.appendChild(ia)});ea.appendChild(ba)}Object.defineProperty(ma,"__esModule",{value:!0});ma.addControls=ma.default=void 0;var a=function(){return function(ea,ja){if(Array.isArray(ea))return ea;if(Symbol.iterator in
317
- Object(ea)){var ca=[],ba=!0,fa=!1,ia=void 0;try{for(var la=ea[Symbol.iterator](),na;!(ba=(na=la.next()).done)&&(ca.push(na.value),!ja||ca.length!==ja);ba=!0);}catch(ra){fa=!0,ia=ra}finally{try{if(!ba&&la["return"])la["return"]()}finally{if(fa)throw ia;}}return ca}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function ea(ja,ca){for(var ba=0;ba<ca.length;ba++){var fa=ca[ba];fa.enumerable=fa.enumerable||!1;fa.configurable=!0;"value"in fa&&(fa.writable=
318
- !0);Object.defineProperty(ja,fa.key,fa)}}return function(ja,ca,ba){ca&&ea(ja.prototype,ca);ba&&ea(ja,ba);return ja}}();ka=ha(2);var h=da(ka);ka=ha(0);var n=da(ka);ka=ha(5);var z=da(ka);ka=ha(10);ka=da(ka);ha=ha(9);ha=da(ha);var w=(0,ka.default)("quill:toolbar");ha=function(ea){function ja(ca,ba){if(!(this instanceof ja))throw new TypeError("Cannot call a class as a function");var fa=aa(this,(ja.__proto__||Object.getPrototypeOf(ja)).call(this,ca,ba));Array.isArray(fa.options.container)?(ba=document.createElement("div"),
319
- f(ba,fa.options.container),ca.container.parentNode.insertBefore(ba,ca.container),fa.container=ba):fa.container="string"===typeof fa.options.container?document.querySelector(fa.options.container):fa.options.container;if(!(fa.container instanceof HTMLElement)){var ia;return ia=w.error("Container required for toolbar",fa.options),aa(fa,ia)}fa.container.classList.add("ql-toolbar");fa.controls=[];fa.handlers={};Object.keys(fa.options.handlers).forEach(function(la){fa.addHandler(la,fa.options.handlers[la])});
320
- [].forEach.call(fa.container.querySelectorAll("button, select"),function(la){fa.attach(la)});fa.quill.on(z.default.events.EDITOR_CHANGE,function(la,na){la===z.default.events.SELECTION_CHANGE&&fa.update(na)});fa.quill.on(z.default.events.SCROLL_OPTIMIZE,function(){var la=fa.quill.selection.getRange();la=a(la,1)[0];fa.update(la)});return fa}x(ja,ea);e(ja,[{key:"addHandler",value:function(ca,ba){this.handlers[ca]=ba}},{key:"attach",value:function(ca){var ba=this,fa=[].find.call(ca.classList,function(ia){return 0===
321
- ia.indexOf("ql-")});if(fa){fa=fa.slice(3);"BUTTON"===ca.tagName&&ca.setAttribute("type","button");if(null==this.handlers[fa]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[fa]){w.warn("ignoring attaching to disabled format",fa,ca);return}if(null==n.default.query(fa)){w.warn("ignoring attaching to nonexistent format",fa,ca);return}}ca.addEventListener("SELECT"===ca.tagName?"change":"click",function(ia){if("SELECT"===ca.tagName){if(0>ca.selectedIndex)return;var la=ca.options[ca.selectedIndex];
322
- la=la.hasAttribute("selected")?!1:la.value||!1}else la=ca.classList.contains("ql-active")?!1:ca.value||!ca.hasAttribute("value"),ia.preventDefault();ba.quill.focus();ia=ba.quill.selection.getRange();ia=a(ia,1)[0];if(null!=ba.handlers[fa])ba.handlers[fa].call(ba,la);else if(n.default.query(fa).prototype instanceof n.default.Embed){la=prompt("Enter "+fa);if(!la)return;var na=ba.quill,ra=na.updateContents,qa=(new h.default).retain(ia.index).delete(ia.length),ta=qa.insert,va={},oa=fa;oa in va?Object.defineProperty(va,
323
- oa,{value:la,enumerable:!0,configurable:!0,writable:!0}):va[oa]=la;ra.call(na,ta.call(qa,va),z.default.sources.USER)}else ba.quill.format(fa,la,z.default.sources.USER);ba.update(ia)});this.controls.push([fa,ca])}}},{key:"update",value:function(ca){var ba=null==ca?{}:this.quill.getFormat(ca);this.controls.forEach(function(fa){fa=a(fa,2);var ia=fa[0];fa=fa[1];if("SELECT"===fa.tagName){var la=void 0;null==ca?la=null:null==ba[ia]?la=fa.querySelector("option[selected]"):Array.isArray(ba[ia])||(ia=ba[ia],
324
- "string"===typeof ia&&(ia=ia.replace(/"/g,'\\"')),la=fa.querySelector('option[value="'+ia+'"]'));null==la?(fa.value="",fa.selectedIndex=-1):la.selected=!0}else null==ca?fa.classList.remove("ql-active"):fa.hasAttribute("value")?(ia=ba[ia]===fa.getAttribute("value")||null!=ba[ia]&&ba[ia].toString()===fa.getAttribute("value")||null==ba[ia]&&!fa.getAttribute("value"),fa.classList.toggle("ql-active",ia)):fa.classList.toggle("ql-active",null!=ba[ia])})}}]);return ja}(ha.default);ha.DEFAULTS={};ha.DEFAULTS=
325
- {container:null,handlers:{clean:function(){var ea=this,ja=this.quill.getSelection();null!=ja&&(0==ja.length?(ja=this.quill.getFormat(),Object.keys(ja).forEach(function(ca){null!=n.default.query(ca,n.default.Scope.INLINE)&&ea.quill.format(ca,!1)})):this.quill.removeFormat(ja,z.default.sources.USER))},direction:function(ea){var ja=this.quill.getFormat().align;"rtl"===ea&&null==ja?this.quill.format("align","right",z.default.sources.USER):ea||"right"!==ja||this.quill.format("align",!1,z.default.sources.USER);
326
- this.quill.format("direction",ea,z.default.sources.USER)},indent:function(ea){var ja=this.quill.getFormat(this.quill.getSelection()),ca=parseInt(ja.indent||0);if("+1"===ea||"-1"===ea)ea="+1"===ea?1:-1,"rtl"===ja.direction&&(ea*=-1),this.quill.format("indent",ca+ea,z.default.sources.USER)},link:function(ea){!0===ea&&(ea=prompt("Enter link URL:"));this.quill.format("link",ea,z.default.sources.USER)},list:function(ea){var ja=this.quill.getFormat(this.quill.getSelection());"check"===ea?"checked"===ja.list||
327
- "unchecked"===ja.list?this.quill.format("list",!1,z.default.sources.USER):this.quill.format("list","unchecked",z.default.sources.USER):this.quill.format("list",ea,z.default.sources.USER)}}};ma.default=ha;ma.addControls=f},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(ka,ma,ha){function da(f,
328
- b){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?f:b}function aa(f,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(f,b):f.__proto__=b)}Object.defineProperty(ma,"__esModule",
329
- {value:!0});var x=function(){function f(b,a){for(var e=0;e<a.length;e++){var h=a[e];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,a,e){a&&f(b.prototype,a);e&&f(b,e);return b}}(),y=function h(b,a,e){null===b&&(b=Function.prototype);var n=Object.getOwnPropertyDescriptor(b,a);if(void 0===n){if(b=Object.getPrototypeOf(b),null!==b)return h(b,a,e)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(e)}};
330
- ka=function(b){function a(e,h){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");e=da(this,(a.__proto__||Object.getPrototypeOf(a)).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(n){n.classList.add("ql-primary")});return e}aa(a,b);x(a,[{key:"buildItem",value:function(e){var h=y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"buildItem",this).call(this,
331
- e);h.style.backgroundColor=e.getAttribute("value")||"";return h}},{key:"selectItem",value:function(e,h){y(a.prototype.__proto__||Object.getPrototypeOf(a.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 a}(function(b){return b&&b.__esModule?b:{default:b}}(ha(28)).default);ma.default=ka},function(ka,ma,ha){function da(f,b){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
332
- return!b||"object"!==typeof b&&"function"!==typeof b?f:b}function aa(f,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(f,b):f.__proto__=b)}Object.defineProperty(ma,"__esModule",{value:!0});var x=function(){function f(b,a){for(var e=0;e<a.length;e++){var h=a[e];h.enumerable=
333
- h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,a,e){a&&f(b.prototype,a);e&&f(b,e);return b}}(),y=function h(b,a,e){null===b&&(b=Function.prototype);var n=Object.getOwnPropertyDescriptor(b,a);if(void 0===n){if(b=Object.getPrototypeOf(b),null!==b)return h(b,a,e)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(e)}};ka=function(b){function a(e,h){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
334
- e=da(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));e.container.classList.add("ql-icon-picker");[].forEach.call(e.container.querySelectorAll(".ql-picker-item"),function(n){n.innerHTML=h[n.getAttribute("data-value")||""]});e.defaultItem=e.container.querySelector(".ql-selected");e.selectItem(e.defaultItem);return e}aa(a,b);x(a,[{key:"selectItem",value:function(e,h){y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,e,h);e=e||this.defaultItem;this.label.innerHTML=
335
- e.innerHTML}}]);return a}(function(b){return b&&b.__esModule?b:{default:b}}(ha(28)).default);ma.default=ka},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});var ha=function(){function da(aa,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(aa,f.key,f)}}return function(aa,x,y){x&&da(aa.prototype,x);y&&da(aa,y);return aa}}();ka=function(){function da(aa,x){var y=this;if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");
336
- this.quill=aa;this.boundsContainer=x||document.body;this.root=aa.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()}ha(da,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(aa){var x=aa.left+aa.width/2-this.root.offsetWidth/2,y=aa.bottom+this.quill.root.scrollTop;
337
- this.root.style.left=x+"px";this.root.style.top=y+"px";this.root.classList.remove("ql-flip");var f=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),a=0;b.right>f.right&&(a=f.right-b.right,this.root.style.left=x+a+"px");b.left<f.left&&(a=f.left-b.left,this.root.style.left=x+a+"px");b.bottom>f.bottom&&(this.root.style.top=y-(aa.bottom-aa.top+(b.bottom-b.top))+"px",this.root.classList.add("ql-flip"));return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing");
338
- this.root.classList.remove("ql-hidden")}}]);return da}();ma.default=ka},function(ka,ma,ha){function da(fa){return fa&&fa.__esModule?fa:{default:fa}}function aa(fa,ia){if(!(fa instanceof ia))throw new TypeError("Cannot call a class as a function");}function x(fa,ia){if(!fa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ia||"object"!==typeof ia&&"function"!==typeof ia?fa:ia}function y(fa,ia){if("function"!==typeof ia&&null!==ia)throw new TypeError("Super expression must either be null or a function, not "+
339
- typeof ia);fa.prototype=Object.create(ia&&ia.prototype,{constructor:{value:fa,enumerable:!1,writable:!0,configurable:!0}});ia&&(Object.setPrototypeOf?Object.setPrototypeOf(fa,ia):fa.__proto__=ia)}Object.defineProperty(ma,"__esModule",{value:!0});var f=function(){return function(fa,ia){if(Array.isArray(fa))return fa;if(Symbol.iterator in Object(fa)){var la=[],na=!0,ra=!1,qa=void 0;try{for(var ta=fa[Symbol.iterator](),va;!(na=(va=ta.next()).done)&&(la.push(va.value),!ia||la.length!==ia);na=!0);}catch(oa){ra=
340
- !0,qa=oa}finally{try{if(!na&&ta["return"])ta["return"]()}finally{if(ra)throw qa;}}return la}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function ra(ia,la,na){null===ia&&(ia=Function.prototype);var qa=Object.getOwnPropertyDescriptor(ia,la);if(void 0===qa){if(ia=Object.getPrototypeOf(ia),null!==ia)return ra(ia,la,na)}else{if("value"in qa)return qa.value;la=qa.get;return void 0===la?void 0:la.call(na)}},a=function(){function ia(la,na){for(var ra=0;ra<na.length;ra++){var qa=
341
- na[ra];qa.enumerable=qa.enumerable||!1;qa.configurable=!0;"value"in qa&&(qa.writable=!0);Object.defineProperty(la,qa.key,qa)}}return function(la,na,ra){na&&ia(la.prototype,na);ra&&ia(la,ra);return la}}();ka=ha(3);ka=da(ka);var e=ha(8),h=da(e);e=ha(43);var n=da(e),z=ha(27),w=da(z),ea=ha(15);ha=ha(41);var ja=da(ha),ca=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ha=function(ia){function la(na,ra){aa(this,la);null!=ra.modules.toolbar&&
342
- null==ra.modules.toolbar.container&&(ra.modules.toolbar.container=ca);na=x(this,(la.__proto__||Object.getPrototypeOf(la)).call(this,na,ra));na.quill.container.classList.add("ql-snow");return na}y(la,ia);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 ba(this.quill,this.options.bounds);
343
- na.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(ra,qa){na.handlers.link.call(na,!qa.format.link)})}}]);return la}(n.default);ha.DEFAULTS=(0,ka.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ia){ia?(ia=this.quill.getSelection(),null!=ia&&0!=ia.length&&(ia=this.quill.getText(ia),/^\S+@\S+\.\S+$/.test(ia)&&0!==ia.indexOf("mailto:")&&(ia="mailto:"+ia),this.quill.theme.tooltip.edit("link",ia))):this.quill.format("link",
344
- !1)}}}}});var ba=function(ia){function la(na,ra){aa(this,la);na=x(this,(la.__proto__||Object.getPrototypeOf(la)).call(this,na,ra));na.preview=na.root.querySelector("a.ql-preview");return na}y(la,ia);a(la,[{key:"listen",value:function(){var na=this;b(la.prototype.__proto__||Object.getPrototypeOf(la.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(ra){na.root.classList.contains("ql-editing")?na.save():na.edit("link",na.preview.textContent);
345
- ra.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(ra){if(null!=na.linkRange){var qa=na.linkRange;na.restoreFocus();na.quill.formatText(qa,"link",!1,h.default.sources.USER);delete na.linkRange}ra.preventDefault();na.hide()});this.quill.on(h.default.events.SELECTION_CHANGE,function(ra,qa,ta){if(null!=ra){if(0===ra.length&&ta===h.default.sources.USER){if(qa=na.quill.scroll.descendant(w.default,ra.index),ta=f(qa,2),qa=ta[0],ta=ta[1],null!=qa){na.linkRange=
346
- new ea.Range(ra.index-ta,qa.length());ra=w.default.formats(qa.domNode);na.preview.textContent=ra;na.preview.setAttribute("href",ra);na.show();na.position(na.quill.getBounds(na.linkRange));return}}else delete na.linkRange;na.hide()}})}},{key:"show",value:function(){b(la.prototype.__proto__||Object.getPrototypeOf(la.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return la}(e.BaseTooltip);ba.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=ha},function(ka,ma,ha){function da(Sa){return Sa&&Sa.__esModule?Sa:{default:Sa}}Object.defineProperty(ma,"__esModule",{value:!0});ka=ha(29);ka=da(ka);var aa=ha(36),x=ha(38),y=ha(64),f=ha(65);f=da(f);var b=ha(66);b=da(b);var a=ha(67),e=da(a),h=ha(37),n=ha(26),z=ha(39),w=ha(40),ea=ha(56);ea=da(ea);var ja=ha(68);ja=da(ja);var ca=ha(27);ca=da(ca);var ba=ha(69);ba=da(ba);var fa=ha(70);fa=da(fa);var ia=ha(71);ia=da(ia);var la=ha(72);la=da(la);var na=ha(73);na=da(na);var ra=ha(13),qa=da(ra),ta=
348
- ha(74);ta=da(ta);var va=ha(75);va=da(va);var oa=ha(57);oa=da(oa);var wa=ha(41);wa=da(wa);var Da=ha(28);Da=da(Da);var Ia=ha(59);Ia=da(Ia);var Ma=ha(60);Ma=da(Ma);var Ca=ha(61);Ca=da(Ca);var Ka=ha(108);Ka=da(Ka);ha=ha(62);ha=da(ha);ka.default.register({"attributors/attribute/direction":x.DirectionAttribute,"attributors/class/align":aa.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":n.ColorClass,"attributors/class/direction":x.DirectionClass,"attributors/class/font":z.FontClass,
349
- "attributors/class/size":w.SizeClass,"attributors/style/align":aa.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":n.ColorStyle,"attributors/style/direction":x.DirectionStyle,"attributors/style/font":z.FontStyle,"attributors/style/size":w.SizeStyle},!0);ka.default.register({"formats/align":aa.AlignClass,"formats/direction":x.DirectionClass,"formats/indent":y.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":n.ColorStyle,"formats/font":z.FontClass,
350
- "formats/size":w.SizeClass,"formats/blockquote":f.default,"formats/code-block":qa.default,"formats/header":b.default,"formats/list":e.default,"formats/bold":ea.default,"formats/code":ra.Code,"formats/italic":ja.default,"formats/link":ca.default,"formats/script":ba.default,"formats/strike":fa.default,"formats/underline":ia.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":ha.default,"ui/icons":wa.default,"ui/picker":Da.default,"ui/icon-picker":Ma.default,"ui/color-picker":Ia.default,"ui/tooltip":Ca.default},!0);ma.default=ka.default},function(ka,ma,ha){function da(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,
352
- f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});ma.IndentClass=void 0;var aa=function(){function y(f,b){for(var a=0;a<b.length;a++){var e=b[a];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,b,a){b&&y(f.prototype,b);a&&y(f,a);return f}}(),x=function e(f,b,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,b);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return e(f,
353
- b,a)}else{if("value"in h)return h.value;b=h.get;return void 0===b?void 0:b.call(a)}};ka=function(f){return f&&f.__esModule?f:{default:f}}(ha(0));ka=new (function(f){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var a=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}da(b,f);aa(b,[{key:"add",
354
- value:function(a,e){if("+1"===e||"-1"===e){var h=this.value(a)||0;e="+1"===e?h+1:h-1}return 0===e?(this.remove(a),!0):x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,a,e)}},{key:"canAdd",value:function(a,e){return x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,a,e)||x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,a,parseInt(e))}},{key:"value",value:function(a){return parseInt(x(b.prototype.__proto__||
355
- Object.getPrototypeOf(b.prototype),"value",this).call(this,a))||void 0}}]);return b}(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,ha){function da(aa,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);aa.prototype=Object.create(x&&x.prototype,{constructor:{value:aa,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?
356
- Object.setPrototypeOf(aa,x):aa.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(aa){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}da(x,aa);return x}(function(aa){return aa&&aa.__esModule?aa:{default:aa}}(ha(4)).default);
357
- ka.blotName="blockquote";ka.tagName="blockquote";ma.default=ka},function(ka,ma,ha){function da(x,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}Object.defineProperty(ma,"__esModule",{value:!0});var aa=function(){function x(y,f){for(var b=0;b<f.length;b++){var a=
358
- f[b];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(y,a.key,a)}}return function(y,f,b){f&&x(y.prototype,f);b&&x(y,b);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}da(y,x);aa(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}}(ha(4)).default);ka.blotName="header";ka.tagName="H1 H2 H3 H4 H5 H6".split(" ");ma.default=ka},function(ka,ma,ha){function da(n){return n&&n.__esModule?n:{default:n}}function aa(n,z){if(!(n instanceof z))throw new TypeError("Cannot call a class as a function");}function x(n,z){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
360
- return!z||"object"!==typeof z&&"function"!==typeof z?n:z}function y(n,z){if("function"!==typeof z&&null!==z)throw new TypeError("Super expression must either be null or a function, not "+typeof z);n.prototype=Object.create(z&&z.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});z&&(Object.setPrototypeOf?Object.setPrototypeOf(n,z):n.__proto__=z)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.ListItem=void 0;var f=function(){function n(z,w){for(var ea=0;ea<
361
- w.length;ea++){var ja=w[ea];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(z,ja.key,ja)}}return function(z,w,ea){w&&n(z.prototype,w);ea&&n(z,ea);return z}}(),b=function ja(z,w,ea){null===z&&(z=Function.prototype);var ca=Object.getOwnPropertyDescriptor(z,w);if(void 0===ca){if(z=Object.getPrototypeOf(z),null!==z)return ja(z,w,ea)}else{if("value"in ca)return ca.value;w=ca.get;return void 0===w?void 0:w.call(ea)}};ka=ha(0);var a=da(ka);ka=ha(4);
362
- ka=da(ka);ha=ha(25);ha=da(ha);var e=function(z){function w(){aa(this,w);return x(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}y(w,z);f(w,[{key:"format",value:function(ea,ja){ea!==h.blotName||ja?b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,ea,ja):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
363
- "remove",this).call(this)}},{key:"replaceWith",value:function(ea,ja){this.parent.isolate(this.offset(this.parent),this.length());if(ea===this.parent.statics.blotName)return this.parent.replaceWith(ea,ja),this;this.parent.unwrap();return b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,ea,ja)}}],[{key:"formats",value:function(ea){return ea.tagName===this.tagName?void 0:b(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,ea)}}]);return w}(ka.default);
364
- e.blotName="list-item";e.tagName="LI";var h=function(z){function w(ea){function ja(ba){if(ba.target.parentNode===ea){var fa=ca.statics.formats(ea);ba=a.default.find(ba.target);"checked"===fa?ba.format("list","unchecked"):"unchecked"===fa&&ba.format("list","checked")}}aa(this,w);var ca=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,ea));ea.addEventListener("touchstart",ja);ea.addEventListener("mousedown",ja);return ca}y(w,z);f(w,null,[{key:"create",value:function(ea){var ja="ordered"===ea?
365
- "OL":"UL";ja=b(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,ja);"checked"!==ea&&"unchecked"!==ea||ja.setAttribute("data-checked","checked"===ea);return ja}},{key:"formats",value:function(ea){if("OL"===ea.tagName)return"ordered";if("UL"===ea.tagName)return ea.hasAttribute("data-checked")?"true"===ea.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);f(w,[{key:"format",value:function(ea,ja){0<this.children.length&&this.children.tail.format(ea,ja)}},{key:"formats",value:function(){var ea=
366
- {},ja=this.statics.blotName,ca=this.statics.formats(this.domNode);ja in ea?Object.defineProperty(ea,ja,{value:ca,enumerable:!0,configurable:!0,writable:!0}):ea[ja]=ca;return ea}},{key:"insertBefore",value:function(ea,ja){ea instanceof e?b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,ea,ja):(ja=null==ja?this.length():ja.offset(this),ja=this.split(ja),ja.parent.insertBefore(ea,ja))}},{key:"optimize",value:function(ea){b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
367
- "optimize",this).call(this,ea);ea=this.next;null!=ea&&ea.prev===this&&ea.statics.blotName===this.statics.blotName&&ea.domNode.tagName===this.domNode.tagName&&ea.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(ea.moveChildren(this),ea.remove())}},{key:"replace",value:function(ea){if(ea.statics.blotName!==this.statics.blotName){var ja=a.default.create(this.statics.defaultChild);ea.moveChildren(ja);this.appendChild(ja)}b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
368
- "replace",this).call(this,ea)}}]);return w}(ha.default);h.blotName="list";h.scope=a.default.Scope.BLOCK_BLOT;h.tagName=["OL","UL"];h.defaultChild="list-item";h.allowedChildren=[e];ma.ListItem=e;ma.default=h},function(ka,ma,ha){function da(aa,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);aa.prototype=Object.create(x&&x.prototype,{constructor:{value:aa,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?
369
- Object.setPrototypeOf(aa,x):aa.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(aa){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}da(x,aa);return x}(function(aa){return aa&&aa.__esModule?aa:{default:aa}}(ha(56)).default);
370
- ka.blotName="italic";ka.tagName=["EM","I"];ma.default=ka},function(ka,ma,ha){function da(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});var aa=function(){function y(f,b){for(var a=0;a<b.length;a++){var e=
371
- b[a];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,b,a){b&&y(f.prototype,b);a&&y(f,a);return f}}(),x=function e(f,b,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,b);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return e(f,b,a)}else{if("value"in h)return h.value;b=h.get;return void 0===b?void 0:b.call(a)}};ka=function(f){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");
372
- var a=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}da(b,f);aa(b,null,[{key:"create",value:function(a){return"super"===a?document.createElement("sup"):"sub"===a?document.createElement("sub"):x(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,a)}},{key:"formats",value:function(a){if("SUB"===a.tagName)return"sub";if("SUP"===
373
- a.tagName)return"super"}}]);return b}(function(f){return f&&f.__esModule?f:{default:f}}(ha(6)).default);ka.blotName="script";ka.tagName=["SUB","SUP"];ma.default=ka},function(ka,ma,ha){function da(aa,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);aa.prototype=Object.create(x&&x.prototype,{constructor:{value:aa,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(aa,x):aa.__proto__=
374
- x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(aa){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}da(x,aa);return x}(function(aa){return aa&&aa.__esModule?aa:{default:aa}}(ha(6)).default);ka.blotName="strike";ka.tagName=
375
- "S";ma.default=ka},function(ka,ma,ha){function da(aa,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);aa.prototype=Object.create(x&&x.prototype,{constructor:{value:aa,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(aa,x):aa.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(aa){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}da(x,aa);return x}(function(aa){return aa&&aa.__esModule?aa:{default:aa}}(ha(6)).default);ka.blotName="underline";ka.tagName="U";ma.default=ka},function(ka,ma,ha){function da(b,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+
377
- typeof a);b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(b,a):b.__proto__=a)}Object.defineProperty(ma,"__esModule",{value:!0});var aa=function(){function b(a,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,e,h){e&&b(a.prototype,e);h&&b(a,h);return a}}(),x=function n(a,
378
- e,h){null===a&&(a=Function.prototype);var z=Object.getOwnPropertyDescriptor(a,e);if(void 0===z){if(a=Object.getPrototypeOf(a),null!==a)return n(a,e,h)}else{if("value"in z)return z.value;e=z.get;return void 0===e?void 0:e.call(h)}};ka=function(a){return a&&a.__esModule?a:{default:a}}(ha(0));var y=ha(27),f=["alt","height","width"];ha=function(a){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var h=(e.__proto__||Object.getPrototypeOf(e)).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}da(e,a);aa(e,[{key:"format",value:function(h,n){-1<f.indexOf(h)?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=x(e.__proto__||Object.getPrototypeOf(e),"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,z){h.hasAttribute(z)&&(n[z]=h.getAttribute(z));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 e}(ka.default.Embed);ha.blotName="image";ha.tagName="IMG";ma.default=
381
- ha},function(ka,ma,ha){function da(b,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(b,a):b.__proto__=a)}Object.defineProperty(ma,"__esModule",{value:!0});var aa=function(){function b(a,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=
382
- !0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,e,h){e&&b(a.prototype,e);h&&b(a,h);return a}}(),x=function n(a,e,h){null===a&&(a=Function.prototype);var z=Object.getOwnPropertyDescriptor(a,e);if(void 0===z){if(a=Object.getPrototypeOf(a),null!==a)return n(a,e,h)}else{if("value"in z)return z.value;e=z.get;return void 0===e?void 0:e.call(h)}};ka=ha(4);var y=function(a){return a&&a.__esModule?a:{default:a}}(ha(27)),f=["height","width"];ha=function(a){function e(){if(!(this instanceof
383
- e))throw new TypeError("Cannot call a class as a function");var h=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(e,a);aa(e,[{key:"format",value:function(h,n){-1<f.indexOf(h)?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,h,n)}}],
384
- [{key:"create",value:function(h){var n=x(e.__proto__||Object.getPrototypeOf(e),"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,z){h.hasAttribute(z)&&(n[z]=h.getAttribute(z));return n},{})}},{key:"sanitize",value:function(h){return y.default.sanitize(h)}},{key:"value",value:function(h){return h.getAttribute("src")}}]);return e}(ka.BlockEmbed);
385
- ha.blotName="video";ha.className="ql-video";ha.tagName="IFRAME";ma.default=ha},function(ka,ma,ha){function da(n){return n&&n.__esModule?n:{default:n}}function aa(n,z){if(!(n instanceof z))throw new TypeError("Cannot call a class as a function");}function x(n,z){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!z||"object"!==typeof z&&"function"!==typeof z?n:z}function y(n,z){if("function"!==typeof z&&null!==z)throw new TypeError("Super expression must either be null or a function, not "+
386
- typeof z);n.prototype=Object.create(z&&z.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});z&&(Object.setPrototypeOf?Object.setPrototypeOf(n,z):n.__proto__=z)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.FormulaBlot=void 0;var f=function(){function n(z,w){for(var ea=0;ea<w.length;ea++){var ja=w[ea];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(z,ja.key,ja)}}return function(z,w,ea){w&&n(z.prototype,
387
- w);ea&&n(z,ea);return z}}(),b=function ja(z,w,ea){null===z&&(z=Function.prototype);var ca=Object.getOwnPropertyDescriptor(z,w);if(void 0===ca){if(z=Object.getPrototypeOf(z),null!==z)return ja(z,w,ea)}else{if("value"in ca)return ca.value;w=ca.get;return void 0===w?void 0:w.call(ea)}};ka=ha(35);ka=da(ka);var a=ha(5),e=da(a);ha=ha(9);ha=da(ha);var h=function(z){function w(){aa(this,w);return x(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}y(w,z);f(w,null,[{key:"create",value:function(ea){var ja=
388
- b(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,ea);"string"===typeof ea&&(window.katex.render(ea,ja,{throwOnError:!1,errorColor:"#f00"}),ja.setAttribute("data-value",ea));return ja}},{key:"value",value:function(ea){return ea.getAttribute("data-value")}}]);return w}(ka.default);h.blotName="formula";h.className="ql-formula";h.tagName="SPAN";ha=function(z){function w(){aa(this,w);var ea=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
389
- return ea}y(w,z);f(w,null,[{key:"register",value:function(){e.default.register(h,!0)}}]);return w}(ha.default);ma.FormulaBlot=h;ma.default=ha},function(ka,ma,ha){function da(z){return z&&z.__esModule?z:{default:z}}function aa(z,w){if(!(z instanceof w))throw new TypeError("Cannot call a class as a function");}function x(z,w){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!==typeof w&&"function"!==typeof w?z:w}function y(z,w){if("function"!==
390
- typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);z.prototype=Object.create(w&&w.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(z,w):z.__proto__=w)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.CodeToken=ma.CodeBlock=void 0;var f=function(){function z(w,ea){for(var ja=0;ja<ea.length;ja++){var ca=ea[ja];ca.enumerable=ca.enumerable||!1;ca.configurable=
391
- !0;"value"in ca&&(ca.writable=!0);Object.defineProperty(w,ca.key,ca)}}return function(w,ea,ja){ea&&z(w.prototype,ea);ja&&z(w,ja);return w}}(),b=function ca(w,ea,ja){null===w&&(w=Function.prototype);var ba=Object.getOwnPropertyDescriptor(w,ea);if(void 0===ba){if(w=Object.getPrototypeOf(w),null!==w)return ca(w,ea,ja)}else{if("value"in ba)return ba.value;ea=ba.get;return void 0===ea?void 0:ea.call(ja)}};ka=ha(0);ka=da(ka);var a=ha(5),e=da(a);a=ha(9);a=da(a);ha=ha(13);var h=function(w){function ea(){aa(this,
392
- ea);return x(this,(ea.__proto__||Object.getPrototypeOf(ea)).apply(this,arguments))}y(ea,w);f(ea,[{key:"replaceWith",value:function(ja){this.domNode.textContent=this.domNode.textContent;this.attach();b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"replaceWith",this).call(this,ja)}},{key:"highlight",value:function(ja){var ca=this.domNode.textContent;if(this.cachedText!==ca){if(0<ca.trim().length||null==this.cachedText)this.domNode.innerHTML=ja(ca),this.domNode.normalize(),this.attach();
393
- this.cachedText=ca}}}]);return ea}(da(ha).default);h.className="ql-syntax";var n=new ka.default.Attributor.Class("token","hljs",{scope:ka.default.Scope.INLINE});ha=function(w){function ea(ja,ca){aa(this,ea);var ba=x(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ja,ca));if("function"!==typeof ba.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var fa=null;ba.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(fa);
394
- fa=setTimeout(function(){ba.highlight();fa=null},ba.options.interval)});ba.highlight();return ba}y(ea,w);f(ea,null,[{key:"register",value:function(){e.default.register(n,!0);e.default.register(h,!0)}}]);f(ea,[{key:"highlight",value:function(){var ja=this;if(!this.quill.selection.composing){this.quill.update(e.default.sources.USER);var ca=this.quill.getSelection();this.quill.scroll.descendants(h).forEach(function(ba){ba.highlight(ja.options.highlight)});this.quill.update(e.default.sources.SILENT);
395
- null!=ca&&this.quill.setSelection(ca,e.default.sources.SILENT)}}}]);return ea}(a.default);ha.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=ha},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=
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 da=[],z=0;z<arguments.length;z++)da[z]=arguments[z];this.insertBefore(da[0],null);1<da.length&&this.append.apply(this,da.slice(1))};fa.prototype.contains=function(da){for(var z,x=this.iterator();z=x();)if(z===da)return!0;return!1};fa.prototype.insertBefore=function(da,z){da&&(da.next=z,null!=z?(da.prev=z.prev,null!=z.prev&&(z.prev.next=da),z.prev=da,z===this.head&&(this.head=
254
+ da)):null!=this.tail?(this.tail.next=da,da.prev=this.tail,this.tail=da):(da.prev=null,this.head=this.tail=da),this.length+=1)};fa.prototype.offset=function(da){for(var z=0,x=this.head;null!=x;){if(x===da)return z;z+=x.length();x=x.next}return-1};fa.prototype.remove=function(da){this.contains(da)&&(null!=da.prev&&(da.prev.next=da.next),null!=da.next&&(da.next.prev=da.prev),da===this.head&&(this.head=da.next),da===this.tail&&(this.tail=da.prev),--this.length)};fa.prototype.iterator=function(da){void 0===
255
+ da&&(da=this.head);return function(){var z=da;null!=da&&(da=da.next);return z}};fa.prototype.find=function(da,z){void 0===z&&(z=!1);for(var x,y=this.iterator();x=y();){var f=x.length();if(da<f||z&&da===f&&(null==x.next||0!==x.next.length()))return[x,da];da-=f}return[null,0]};fa.prototype.forEach=function(da){for(var z,x=this.iterator();z=x();)da(z)};fa.prototype.forEachAt=function(da,z,x){if(!(0>=z))for(var y=this.find(da),f=da-y[1],e=this.iterator(y[0]);(y=e())&&f<da+z;){var a=y.length();da>f?x(y,
256
+ da-f,Math.min(z,f+a-da)):x(y,0,Math.min(a,da+z-f));f+=a}};fa.prototype.map=function(da){return this.reduce(function(z,x){z.push(da(x));return z},[])};fa.prototype.reduce=function(da,z){for(var x,y=this.iterator();x=y();)z=da(z,x);return z};return fa}();ma.default=ka},function(ka,ma,fa){var da=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return function(e,a){function b(){this.constructor=
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}da(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 ea=a,ja=0;0<ea.length;ja+=1){if(100<=ja)throw Error("[Parchment] Maximum optimize iterations reached");ea.forEach(function(aa){var ca=
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);ea=[].slice.call(this.observer.takeRecords());for(w=ea.slice();0<w.length;)a.push(w.pop())}};e.prototype.update=function(a,b){var h=this;void 0===b&&(b={});a=a||this.observer.takeRecords();
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 da=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,e){f.__proto__=e}||function(f,e){for(var a in e)e.hasOwnProperty(a)&&(f[a]=e[a])};return function(f,e){function a(){this.constructor=f}y(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}();Object.defineProperty(ma,"__esModule",{value:!0});var z=fa(18),x=fa(1);ka=function(y){function f(){return null!==
263
+ y&&y.apply(this,arguments)||this}da(f,y);f.formats=function(e){if(e.tagName!==f.tagName)return y.formats.call(this,e)};f.prototype.format=function(e,a){var b=this;e!==this.statics.blotName||a?y.prototype.format.call(this,e,a):(this.children.forEach(function(h){h instanceof z.default||(h=h.wrap(f.blotName,!0));b.attributes.copy(h)}),this.unwrap())};f.prototype.formatAt=function(e,a,b,h){null!=this.formats()[b]||x.query(b,x.Scope.ATTRIBUTE)?this.isolate(e,a).format(b,h):y.prototype.formatAt.call(this,
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 da=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}da(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 da=this&&this.__extends||function(){var z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var f in y)y.hasOwnProperty(f)&&(x[f]=y[f])};return function(x,y){function f(){this.constructor=x}z(x,y);x.prototype=
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}da(x,z);x.formats=function(){};x.prototype.format=function(y,f){z.prototype.formatAt.call(this,0,this.length(),y,f)};x.prototype.formatAt=function(y,f,e,a){0===y&&f===this.length()?this.format(e,a):z.prototype.formatAt.call(this,y,f,e,a)};x.prototype.formats=function(){return this.statics.formats(this.domNode)};return x}(fa(19).default);
269
+ ma.default=ka},function(ka,ma,fa){var da=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(19);var z=fa(1);fa=function(x){function y(f){f=x.call(this,f)||this;f.text=f.statics.value(f.domNode);
270
+ return f}da(y,x);y.create=function(f){return document.createTextNode(f)};y.value=function(f){f=f.data;f.normalize&&(f=f.normalize());return f};y.prototype.deleteAt=function(f,e){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+e)};y.prototype.index=function(f,e){return this.domNode===f?e:-1};y.prototype.insertAt=function(f,e,a){null==a?(this.text=this.text.slice(0,f)+e+this.text.slice(f),this.domNode.data=this.text):x.prototype.insertAt.call(this,f,e,a)};y.prototype.length=function(){return this.text.length};
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,da){return 1<arguments.length&&!this.contains(fa)===!da?da:ma.call(this,fa)}}String.prototype.startsWith||(String.prototype.startsWith=function(fa,da){return this.substr(da||0,fa.length)===fa});String.prototype.endsWith||(String.prototype.endsWith=function(fa,da){var z=this.toString();if("number"!==typeof da||!isFinite(da)||Math.floor(da)!==da||da>z.length)da=z.length;da-=fa.length;fa=z.indexOf(fa,da);return-1!==fa&&fa===da});Array.prototype.find||Object.defineProperty(Array.prototype,
274
+ "find",{value:function(fa,da){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof fa)throw new TypeError("predicate must be a function");for(var z=Object(this),x=z.length>>>0,y,f=0;f<x;f++)if(y=z[f],fa.call(da,y,f,z))return y}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(ka){function ma(h,n,ba){if(h==n)return h?[[0,h]]:[];
275
+ if(0>ba||h.length<ba)ba=null;var w=z(h,n),ea=h.substring(0,w);h=h.substring(w);n=n.substring(w);w=x(h,n);var ja=h.substring(h.length-w);h=h.substring(0,h.length-w);n=n.substring(0,n.length-w);h=fa(h,n);ea&&h.unshift([0,ea]);ja&&h.push([0,ja]);f(h);null!=ba&&(h=e(h,ba));return h=a(h)}function fa(h,n){if(!h)return[[1,n]];if(!n)return[[-1,h]];var ba=h.length>n.length?h:n;var w=h.length>n.length?n:h,ea=ba.indexOf(w);if(-1!=ea)return ba=[[1,ba.substring(0,ea)],[0,w],[1,ba.substring(ea+w.length)]],h.length>
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;ea=Math.ceil((ba+w)/2);for(var ja=2*ea,aa=Array(ja),ca=Array(ja),ia=0;ia<ja;ia++)aa[ia]=-1,ca[ia]=-1;aa[ea+1]=0;ca[ea+1]=0;ia=ba-w;for(var ha=0!=ia%2,la=0,na=0,qa=0,ra=0,ta=0;ta<ea;ta++){for(var va=-ta+la;va<=ta-na;va+=2){var oa=ea+va;var wa=va==-ta||va!=ta&&aa[oa-1]<aa[oa+1]?aa[oa+1]:aa[oa-1]+1;for(var Da=wa-
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=ea+ia-va,0<=oa&&oa<ja&&-1!=ca[oa])){var Ha=ba-ca[oa];if(wa>=Ha){h=da(h,n,wa,Da);break a}}}for(va=-ta+qa;va<=ta-ra;va+=2){oa=ea+va;Ha=va==-ta||va!=ta&&ca[oa-1]<ca[oa+1]?ca[oa+1]:ca[oa-1]+1;for(wa=Ha-va;Ha<ba&&wa<w&&h.charAt(ba-Ha-1)==n.charAt(w-wa-1);)Ha++,wa++;ca[oa]=Ha;if(Ha>ba)ra+=2;else if(wa>w)qa+=2;else if(!ha&&(oa=ea+ia-va,0<=oa&&oa<ja&&-1!=aa[oa]&&(wa=aa[oa],Da=ea+wa-oa,Ha=ba-Ha,
278
+ wa>=Ha))){h=da(h,n,wa,Da);break a}}}h=[[-1,h],[1,n]]}return h}function da(h,n,ba,w){var ea=h.substring(ba),ja=n.substring(w);h=ma(h.substring(0,ba),n.substring(0,w));ea=ma(ea,ja);return h.concat(ea)}function z(h,n){if(!h||!n||h.charAt(0)!=n.charAt(0))return 0;for(var ba=0,w=Math.min(h.length,n.length),ea=w,ja=0;ba<ea;)h.substring(ja,ea)==n.substring(ja,ea)?ja=ba=ea:w=ea,ea=Math.floor((w-ba)/2+ba);return ea}function x(h,n){if(!h||!n||h.charAt(h.length-1)!=n.charAt(n.length-1))return 0;for(var ba=0,
279
+ w=Math.min(h.length,n.length),ea=w,ja=0;ba<ea;)h.substring(h.length-ea,h.length-ja)==n.substring(n.length-ea,n.length-ja)?ja=ba=ea:w=ea,ea=Math.floor((w-ba)/2+ba);return ea}function y(h,n){function ba(aa,ca,ia){for(var ha=aa.substring(ia,ia+Math.floor(aa.length/4)),la=-1,na="",qa,ra,ta,va;-1!=(la=ca.indexOf(ha,la+1));){var oa=z(aa.substring(ia),ca.substring(la)),wa=x(aa.substring(0,ia),ca.substring(0,la));na.length<wa+oa&&(na=ca.substring(la-wa,la)+ca.substring(la,la+oa),qa=aa.substring(0,ia-wa),
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,ea=h.length>n.length?n:h;if(4>w.length||2*ea.length<w.length)return null;var ja=ba(w,ea,Math.ceil(w.length/4));w=ba(w,ea,Math.ceil(w.length/2));if(ja||w)ja=w?ja?ja[4].length>w[4].length?ja:w:w:ja;else return null;h.length>n.length?(h=ja[0],n=ja[1],w=ja[2],ea=ja[3]):(w=ja[0],ea=ja[1],h=ja[2],n=ja[3]);return[h,n,w,ea,ja[4]]}function f(h){h.push([0,""]);
281
+ for(var n=0,ba=0,w=0,ea="",ja="",aa;n<h.length;)switch(h[n][0]){case 1:w++;ja+=h[n][1];n++;break;case -1:ba++;ea+=h[n][1];n++;break;case 0:1<ba+w?(0!==ba&&0!==w&&(aa=z(ja,ea),0!==aa&&(0<n-ba-w&&0==h[n-ba-w-1][0]?h[n-ba-w-1][1]+=ja.substring(0,aa):(h.splice(0,0,[0,ja.substring(0,aa)]),n++),ja=ja.substring(aa),ea=ea.substring(aa)),aa=x(ja,ea),0!==aa&&(h[n][1]=ja.substring(ja.length-aa)+h[n][1],ja=ja.substring(0,ja.length-aa),ea=ea.substring(0,ea.length-aa))),0===ba?h.splice(n-w,ba+w,[1,ja]):0===w?h.splice(n-
282
+ ba,ba+w,[-1,ea]):h.splice(n-ba-w,ba+w,[-1,ea],[1,ja]),n=n-ba-w+(ba?1:0)+(w?1:0)+1):0!==n&&0==h[n-1][0]?(h[n-1][1]+=h[n][1],h.splice(n,1)):n++,ba=w=0,ja=ea=""}""===h[h.length-1][1]&&h.pop();ba=!1;for(n=1;n<h.length-1;)0==h[n-1][0]&&0==h[n+1][0]&&(h[n][1].substring(h[n][1].length-h[n-1][1].length)==h[n-1][1]?(h[n][1]=h[n-1][1]+h[n][1].substring(0,h[n][1].length-h[n-1][1].length),h[n+1][1]=h[n-1][1]+h[n+1][1],h.splice(n-1,1),ba=!0):h[n][1].substring(0,h[n+1][1].length)==h[n+1][1]&&(h[n-1][1]+=h[n+1][1],
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 ea=0;for(w=0;w<ba.length;w++){var ja=ba[w];if(-1===ja[0]||0===ja[0]){var aa=ea+ja[1].length;if(n===aa){w=[w+1,ba];break a}if(n<aa){ba=ba.slice();ea=n-ea;n=[ja[0],ja[1].slice(0,ea)];ja=[ja[0],ja[1].slice(ea)];ba.splice(w,1,n,ja);w=[w+1,ba];break a}ea=aa}}throw Error("cursor_pos is out of bounds!");}}ba=w[1];w=w[0];n=ba[w];ja=ba[w+1];return null==n||0!==
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,ea=2;ea<h.length;ea+=1)0===h[ea-2][0]&&n(h[ea-2][1])&&-1===h[ea-1][0]&&ba(h[ea-1][1])&&
285
+ 1===h[ea][0]&&ba(h[ea][1])&&(w=!0,h[ea-1][1]=h[ea-2][1].slice(-1)+h[ea-1][1],h[ea][1]=h[ea-2][1].slice(-1)+h[ea][1],h[ea-2][1]=h[ea-2][1].slice(0,-1));if(!w)return h;w=[];for(ea=0;ea<h.length;ea+=1)0<h[ea][1].length&&w.push(h[ea]);return w}function b(h,n,ba){for(ba=n+ba-1;0<=ba&&ba>=n-1;ba--)if(ba+1<h.length){var w=h[ba],ea=h[ba+1];w[0]===ea[1]&&h.splice(ba,2,[w[0],w[1]+ea[1]])}return h}ma.INSERT=1;ma.DELETE=-1;ma.EQUAL=0;ka.exports=ma},function(ka,ma){function fa(da){var z=[],x;for(x in da)z.push(x);
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 da(z){return z&&"object"==typeof z&&"number"==typeof z.length&&Object.prototype.hasOwnProperty.call(z,"callee")&&!Object.prototype.propertyIsEnumerable.call(z,"callee")||!1}ma="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ma=ka.exports=ma?fa:da;ma.supported=fa;ma.unsupported=da},
287
+ function(ka){function ma(){}function fa(y,f,e){this.fn=y;this.context=f;this.once=e||!1}function da(){this._events=new ma;this._eventsCount=0}var z=Object.prototype.hasOwnProperty,x="~";Object.create&&(ma.prototype=Object.create(null),(new ma).__proto__||(x=!1));da.prototype.eventNames=function(){var y=[],f,e;if(0===this._eventsCount)return y;for(e in f=this._events)z.call(f,e)&&y.push(x?e.slice(1):e);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(f)):y};da.prototype.listeners=
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};da.prototype.emit=function(y,f,e,a,b,h){var n=x?x+y:y;if(!this._events[n])return!1;n=this._events[n];var ba=arguments.length,w;if(n.fn){n.once&&this.removeListener(y,n.fn,void 0,!0);switch(ba){case 1:return n.fn.call(n.context),!0;case 2:return n.fn.call(n.context,f),!0;case 3:return n.fn.call(n.context,f,e),!0;case 4:return n.fn.call(n.context,
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 ea=1;for(w=Array(ba-1);ea<ba;ea++)w[ea-1]=arguments[ea];n.fn.apply(n.context,w)}else{var ja=n.length;for(ea=0;ea<ja;ea++)switch(n[ea].once&&this.removeListener(y,n[ea].fn,void 0,!0),ba){case 1:n[ea].fn.call(n[ea].context);break;case 2:n[ea].fn.call(n[ea].context,f);break;case 3:n[ea].fn.call(n[ea].context,f,e);break;case 4:n[ea].fn.call(n[ea].context,f,e,a);break;default:if(!w){var aa=1;for(w=
290
+ Array(ba-1);aa<ba;aa++)w[aa-1]=arguments[aa]}n[ea].fn.apply(n[ea].context,w)}}return!0};da.prototype.on=function(y,f,e){f=new fa(f,e||this);y=x?x+y:y;this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],f]:this._events[y].push(f):(this._events[y]=f,this._eventsCount++);return this};da.prototype.once=function(y,f,e){f=new fa(f,e||this,!0);y=x?x+y:y;this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],f]:this._events[y].push(f):(this._events[y]=f,this._eventsCount++);return this};
291
+ da.prototype.removeListener=function(y,f,e,a){y=x?x+y:y;if(!this._events[y])return this;if(!f)return 0===--this._eventsCount?this._events=new ma:delete this._events[y],this;var b=this._events[y];if(b.fn)b.fn!==f||a&&!b.once||e&&b.context!==e||(0===--this._eventsCount?this._events=new ma:delete this._events[y]);else{for(var h=0,n=[],ba=b.length;h<ba;h++)(b[h].fn!==f||a&&!b[h].once||e&&b[h].context!==e)&&n.push(b[h]);n.length?this._events[y]=1===n.length?n[0]:n:0===--this._eventsCount?this._events=
292
+ new ma:delete this._events[y]}return this};da.prototype.removeAllListeners=function(y){y?(y=x?x+y:y,this._events[y]&&(0===--this._eventsCount?this._events=new ma:delete this._events[y])):(this._events=new ma,this._eventsCount=0);return this};da.prototype.off=da.prototype.removeListener;da.prototype.addListener=da.prototype.on;da.prototype.setMaxListeners=function(){return this};da.prefixed=x;da.EventEmitter=da;"undefined"!==typeof ka&&(ka.exports=da)},function(ka,ma,fa){function da(Aa){return Aa&&
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 ea(Aa,Ja){a(Ja,"\n")||(b(Aa)||0<Ja.length()&&Aa.nextSibling&&b(Aa.nextSibling))&&Ja.insert("\n");return Ja}function ja(Aa,Ja){if(b(Aa)&&null!=Aa.nextElementSibling&&!a(Ja,"\n\n")){var Ia=Aa.offsetHeight+parseFloat(e(Aa).marginTop)+parseFloat(e(Aa).marginBottom);Aa.nextElementSibling.offsetTop>
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=da(ka);ka=fa(2);var na=da(ka);ka=fa(0);var qa=da(ka);ka=fa(5);var ra=da(ka);ka=fa(10);ka=da(ka);var ta=fa(9);ta=da(ta);var va=fa(36),oa=fa(37),wa=fa(13),Da=da(wa);wa=fa(26);var Ha=fa(38),La=fa(39);fa=fa(40);var Ca=(0,ka.default)("quill:clipboard"),
303
+ Ka=[[Node.TEXT_NODE,aa],[Node.TEXT_NODE,ea],["br",function(Aa,Ja){a(Ja,"\n")||Ja.insert("\n");return Ja}],[Node.ELEMENT_NODE,ea],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,ja],[Node.ELEMENT_NODE,ba],[Node.ELEMENT_NODE,function(Aa,Ja){var Ia={},Pa=Aa.style||{};Pa.fontStyle&&"italic"===e(Aa).fontStyle&&(Ia.italic=!0);Pa.fontWeight&&(e(Aa).fontWeight.startsWith("bold")||700<=parseInt(e(Aa).fontWeight))&&(Ia.bold=!0);0<Object.keys(Ia).length&&(Ja=f(Ja,Ia));0<parseFloat(Pa.textIndent||0)&&(Ja=(new na.default).insert("\t").concat(Ja));
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=ea;ma.matchSpacing=ja;ma.matchText=aa},function(ka,ma,fa){function da(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
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}da(e,f);z(e,[{key:"optimize",value:function(a){x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,a);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return x(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(fa(6)).default);
314
+ ka.blotName="bold";ka.tagName=["STRONG","B"];ma.default=ka},function(ka,ma,fa){function da(ea){return ea&&ea.__esModule?ea:{default:ea}}function z(ea,ja){if(!ea)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?ea:ja}function x(ea,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+typeof ja);ea.prototype=Object.create(ja&&ja.prototype,{constructor:{value:ea,
315
+ enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(ea,ja):ea.__proto__=ja)}function y(ea,ja,aa){var ca=document.createElement("button");ca.setAttribute("type","button");ca.classList.add("ql-"+ja);null!=aa&&(ca.value=aa);ea.appendChild(ca)}function f(ea,ja){Array.isArray(ja[0])||(ja=[ja]);ja.forEach(function(aa){var ca=document.createElement("span");ca.classList.add("ql-formats");aa.forEach(function(ia){if("string"===typeof ia)y(ca,ia);else{var ha=Object.keys(ia)[0];
316
+ ia=ia[ha];Array.isArray(ia)?e(ca,ha,ia):y(ca,ha,ia)}});ea.appendChild(ca)})}function e(ea,ja,aa){var ca=document.createElement("select");ca.classList.add("ql-"+ja);aa.forEach(function(ia){var ha=document.createElement("option");!1!==ia?ha.setAttribute("value",ia):ha.setAttribute("selected","selected");ca.appendChild(ha)});ea.appendChild(ca)}Object.defineProperty(ma,"__esModule",{value:!0});ma.addControls=ma.default=void 0;var a=function(){return function(ea,ja){if(Array.isArray(ea))return ea;if(Symbol.iterator in
317
+ Object(ea)){var aa=[],ca=!0,ia=!1,ha=void 0;try{for(var la=ea[Symbol.iterator](),na;!(ca=(na=la.next()).done)&&(aa.push(na.value),!ja||aa.length!==ja);ca=!0);}catch(qa){ia=!0,ha=qa}finally{try{if(!ca&&la["return"])la["return"]()}finally{if(ia)throw ha;}}return aa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function ea(ja,aa){for(var ca=0;ca<aa.length;ca++){var ia=aa[ca];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=
318
+ !0);Object.defineProperty(ja,ia.key,ia)}}return function(ja,aa,ca){aa&&ea(ja.prototype,aa);ca&&ea(ja,ca);return ja}}();ka=fa(2);var h=da(ka);ka=fa(0);var n=da(ka);ka=fa(5);var ba=da(ka);ka=fa(10);ka=da(ka);fa=fa(9);fa=da(fa);var w=(0,ka.default)("quill:toolbar");fa=function(ea){function ja(aa,ca){if(!(this instanceof ja))throw new TypeError("Cannot call a class as a function");var ia=z(this,(ja.__proto__||Object.getPrototypeOf(ja)).call(this,aa,ca));Array.isArray(ia.options.container)?(ca=document.createElement("div"),
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,ea);b(ja,[{key:"addHandler",value:function(aa,ca){this.handlers[aa]=ca}},{key:"attach",value:function(aa){var ca=this,ia=[].find.call(aa.classList,function(ha){return 0===
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 ea=this,ja=this.quill.getSelection();null!=ja&&(0==ja.length?(ja=this.quill.getFormat(),Object.keys(ja).forEach(function(aa){null!=n.default.query(aa,n.default.Scope.INLINE)&&ea.quill.format(aa,!1)})):this.quill.removeFormat(ja,ba.default.sources.USER))},direction:function(ea){var ja=this.quill.getFormat().align;"rtl"===ea&&null==ja?this.quill.format("align","right",ba.default.sources.USER):ea||"right"!==ja||this.quill.format("align",!1,ba.default.sources.USER);
326
+ this.quill.format("direction",ea,ba.default.sources.USER)},indent:function(ea){var ja=this.quill.getFormat(this.quill.getSelection()),aa=parseInt(ja.indent||0);if("+1"===ea||"-1"===ea)ea="+1"===ea?1:-1,"rtl"===ja.direction&&(ea*=-1),this.quill.format("indent",aa+ea,ba.default.sources.USER)},link:function(ea){!0===ea&&(ea=prompt("Enter link URL:"));this.quill.format("link",ea,ba.default.sources.USER)},list:function(ea){var ja=this.quill.getFormat(this.quill.getSelection());"check"===ea?"checked"===
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",ea,ba.default.sources.USER)}}};ma.default=fa;ma.addControls=f},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(ka,
328
+ ma,fa){function da(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function z(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,
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=da(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,b));b.label.innerHTML=h;b.container.classList.add("ql-color-picker");[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(n){n.classList.add("ql-primary")});return b}z(a,e);x(a,[{key:"buildItem",value:function(b){var h=y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),
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 da(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=da(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,b));b.container.classList.add("ql-icon-picker");[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(n){n.innerHTML=h[n.getAttribute("data-value")||""]});b.defaultItem=b.container.querySelector(".ql-selected");b.selectItem(b.defaultItem);return b}z(a,e);x(a,[{key:"selectItem",value:function(b,h){y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,b,h);b=b||this.defaultItem;this.label.innerHTML=
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 da(z,x){for(var y=0;y<x.length;y++){var f=x[y];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(z,f.key,f)}}return function(z,x,y){x&&da(z.prototype,x);y&&da(z,y);return z}}();ka=function(){function da(z,x){var y=this;if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");
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(da,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(z){var x=z.left+z.width/2-this.root.offsetWidth/2,y=z.bottom+this.quill.root.scrollTop;this.root.style.left=
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 da}();ma.default=ka},function(ka,ma,fa){function da(ia){return ia&&ia.__esModule?ia:{default:ia}}function z(ia,ha){if(!(ia instanceof ha))throw new TypeError("Cannot call a class as a function");}function x(ia,ha){if(!ia)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ha||"object"!==typeof ha&&"function"!==typeof ha?ia:ha}function y(ia,ha){if("function"!==typeof ha&&null!==ha)throw new TypeError("Super expression must either be null or a function, not "+
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=da(ka);var b=fa(8),h=da(b);b=fa(43);var n=da(b),ba=fa(27),w=da(ba),ea=fa(15);fa=fa(41);var ja=da(fa),aa=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];fa=function(ha){function la(na,qa){z(this,la);null!=qa.modules.toolbar&&
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 ea.Range(qa.index-ta,ra.length());qa=w.default.formats(ra.domNode);na.preview.textContent=qa;na.preview.setAttribute("href",qa);na.show();na.position(na.quill.getBounds(na.linkRange));return}}else delete na.linkRange;na.hide()}})}},{key:"show",value:function(){e(la.prototype.__proto__||Object.getPrototypeOf(la.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return la}(b.BaseTooltip);ca.TEMPLATE='<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-action"></a><a class="ql-remove"></a>';
347
+ ma.default=fa},function(ka,ma,fa){function da(Ra){return Ra&&Ra.__esModule?Ra:{default:Ra}}Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(29);ka=da(ka);var z=fa(36),x=fa(38),y=fa(64),f=fa(65);f=da(f);var e=fa(66);e=da(e);var a=fa(67),b=da(a),h=fa(37),n=fa(26),ba=fa(39),w=fa(40),ea=fa(56);ea=da(ea);var ja=fa(68);ja=da(ja);var aa=fa(27);aa=da(aa);var ca=fa(69);ca=da(ca);var ia=fa(70);ia=da(ia);var ha=fa(71);ha=da(ha);var la=fa(72);la=da(la);var na=fa(73);na=da(na);var qa=fa(13),ra=da(qa),ta=
348
+ fa(74);ta=da(ta);var va=fa(75);va=da(va);var oa=fa(57);oa=da(oa);var wa=fa(41);wa=da(wa);var Da=fa(28);Da=da(Da);var Ha=fa(59);Ha=da(Ha);var La=fa(60);La=da(La);var Ca=fa(61);Ca=da(Ca);var Ka=fa(108);Ka=da(Ka);fa=fa(62);fa=da(fa);ka.default.register({"attributors/attribute/direction":x.DirectionAttribute,"attributors/class/align":z.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":n.ColorClass,"attributors/class/direction":x.DirectionClass,"attributors/class/font":ba.FontClass,
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":ea.default,"formats/code":qa.Code,"formats/italic":ja.default,"formats/link":aa.default,"formats/script":ca.default,"formats/strike":ia.default,"formats/underline":ha.default,"formats/image":la.default,"formats/video":na.default,"formats/list/item":a.ListItem,"modules/formula":ta.default,"modules/syntax":va.default,"modules/toolbar":oa.default,
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 da(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,
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}da(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 da(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?
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}da(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 da(x,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function x(y,f){for(var e=0;e<f.length;e++){var a=
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}da(y,x);z(y,null,[{key:"formats",value:function(f){return this.tagName.indexOf(f.tagName)+1}}]);return y}(function(x){return x&&x.__esModule?x:{default:x}}(fa(4)).default);ka.blotName="header";ka.tagName="H1 H2 H3 H4 H5 H6".split(" ");ma.default=ka},function(ka,ma,fa){function da(n){return n&&n.__esModule?n:{default:n}}function z(n,ba){if(!(n instanceof ba))throw new TypeError("Cannot call a class as a function");}function x(n,ba){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
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 ea=
361
+ 0;ea<w.length;ea++){var ja=w[ea];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ba,ja.key,ja)}}return function(ba,w,ea){w&&n(ba.prototype,w);ea&&n(ba,ea);return ba}}(),e=function ja(ba,w,ea){null===ba&&(ba=Function.prototype);var aa=Object.getOwnPropertyDescriptor(ba,w);if(void 0===aa){if(ba=Object.getPrototypeOf(ba),null!==ba)return ja(ba,w,ea)}else{if("value"in aa)return aa.value;w=aa.get;return void 0===w?void 0:w.call(ea)}};ka=fa(0);var a=
362
+ da(ka);ka=fa(4);ka=da(ka);fa=fa(25);fa=da(fa);var b=function(ba){function w(){z(this,w);return x(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}y(w,ba);f(w,[{key:"format",value:function(ea,ja){ea!==h.blotName||ja?e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,ea,ja):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
363
+ "remove",this).call(this)}},{key:"replaceWith",value:function(ea,ja){this.parent.isolate(this.offset(this.parent),this.length());if(ea===this.parent.statics.blotName)return this.parent.replaceWith(ea,ja),this;this.parent.unwrap();return e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,ea,ja)}}],[{key:"formats",value:function(ea){return ea.tagName===this.tagName?void 0:e(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,ea)}}]);return w}(ka.default);
364
+ b.blotName="list-item";b.tagName="LI";var h=function(ba){function w(ea){function ja(ca){if(ca.target.parentNode===ea){var ia=aa.statics.formats(ea);ca=a.default.find(ca.target);"checked"===ia?ca.format("list","unchecked"):"unchecked"===ia&&ca.format("list","checked")}}z(this,w);var aa=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,ea));ea.addEventListener("touchstart",ja);ea.addEventListener("mousedown",ja);return aa}y(w,ba);f(w,null,[{key:"create",value:function(ea){var ja="ordered"===
365
+ ea?"OL":"UL";ja=e(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,ja);"checked"!==ea&&"unchecked"!==ea||ja.setAttribute("data-checked","checked"===ea);return ja}},{key:"formats",value:function(ea){if("OL"===ea.tagName)return"ordered";if("UL"===ea.tagName)return ea.hasAttribute("data-checked")?"true"===ea.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);f(w,[{key:"format",value:function(ea,ja){0<this.children.length&&this.children.tail.format(ea,ja)}},{key:"formats",value:function(){var ea=
366
+ {},ja=this.statics.blotName,aa=this.statics.formats(this.domNode);ja in ea?Object.defineProperty(ea,ja,{value:aa,enumerable:!0,configurable:!0,writable:!0}):ea[ja]=aa;return ea}},{key:"insertBefore",value:function(ea,ja){ea instanceof b?e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,ea,ja):(ja=null==ja?this.length():ja.offset(this),ja=this.split(ja),ja.parent.insertBefore(ea,ja))}},{key:"optimize",value:function(ea){e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
367
+ "optimize",this).call(this,ea);ea=this.next;null!=ea&&ea.prev===this&&ea.statics.blotName===this.statics.blotName&&ea.domNode.tagName===this.domNode.tagName&&ea.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(ea.moveChildren(this),ea.remove())}},{key:"replace",value:function(ea){if(ea.statics.blotName!==this.statics.blotName){var ja=a.default.create(this.statics.defaultChild);ea.moveChildren(ja);this.appendChild(ja)}e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
368
+ "replace",this).call(this,ea)}}]);return w}(fa.default);h.blotName="list";h.scope=a.default.Scope.BLOCK_BLOT;h.tagName=["OL","UL"];h.defaultChild="list-item";h.allowedChildren=[b];ma.ListItem=b;ma.default=h},function(ka,ma,fa){function da(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?
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}da(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 da(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function y(f,e){for(var a=0;a<e.length;a++){var b=
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}da(e,f);z(e,null,[{key:"create",value:function(a){return"super"===a?document.createElement("sup"):"sub"===a?document.createElement("sub"):x(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,a)}},{key:"formats",value:function(a){if("SUB"===a.tagName)return"sub";if("SUP"===
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 da(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(z,x):z.__proto__=x)}
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}da(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 da(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(z,x):z.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");
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}da(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(6)).default);ka.blotName="underline";ka.tagName="U";ma.default=ka},function(ka,ma,fa){function da(e,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+
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}da(b,a);z(b,[{key:"format",value:function(h,n){-1<f.indexOf(h)?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=x(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,h);"string"===typeof h&&
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 da(e,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function e(a,b){for(var h=0;h<b.length;h++){var n=b[h];n.enumerable=n.enumerable||!1;
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}da(b,a);z(b,[{key:"format",value:function(h,n){-1<f.indexOf(h)?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,h,n)}}],
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 da(n){return n&&n.__esModule?n:{default:n}}function z(n,ba){if(!(n instanceof ba))throw new TypeError("Cannot call a class as a function");}function x(n,ba){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&"function"!==typeof ba?n:ba}function y(n,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+
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 ea=0;ea<w.length;ea++){var ja=w[ea];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ba,ja.key,ja)}}return function(ba,w,ea){w&&n(ba.prototype,
387
+ w);ea&&n(ba,ea);return ba}}(),e=function ja(ba,w,ea){null===ba&&(ba=Function.prototype);var aa=Object.getOwnPropertyDescriptor(ba,w);if(void 0===aa){if(ba=Object.getPrototypeOf(ba),null!==ba)return ja(ba,w,ea)}else{if("value"in aa)return aa.value;w=aa.get;return void 0===w?void 0:w.call(ea)}};ka=fa(35);ka=da(ka);var a=fa(5),b=da(a);fa=fa(9);fa=da(fa);var h=function(ba){function w(){z(this,w);return x(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}y(w,ba);f(w,null,[{key:"create",
388
+ value:function(ea){var ja=e(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,ea);"string"===typeof ea&&(window.katex.render(ea,ja,{throwOnError:!1,errorColor:"#f00"}),ja.setAttribute("data-value",ea));return ja}},{key:"value",value:function(ea){return ea.getAttribute("data-value")}}]);return w}(ka.default);h.blotName="formula";h.className="ql-formula";h.tagName="SPAN";fa=function(ba){function w(){z(this,w);var ea=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
389
+ return ea}y(w,ba);f(w,null,[{key:"register",value:function(){b.default.register(h,!0)}}]);return w}(fa.default);ma.FormulaBlot=h;ma.default=fa},function(ka,ma,fa){function da(ba){return ba&&ba.__esModule?ba:{default:ba}}function z(ba,w){if(!(ba instanceof w))throw new TypeError("Cannot call a class as a function");}function x(ba,w){if(!ba)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!==typeof w&&"function"!==typeof w?ba:w}function y(ba,w){if("function"!==
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,ea){for(var ja=0;ja<ea.length;ja++){var aa=ea[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,ea,ja){ea&&ba(w.prototype,ea);ja&&ba(w,ja);return w}}(),e=function aa(w,ea,ja){null===w&&(w=Function.prototype);var ca=Object.getOwnPropertyDescriptor(w,ea);if(void 0===ca){if(w=Object.getPrototypeOf(w),null!==w)return aa(w,ea,ja)}else{if("value"in ca)return ca.value;ea=ca.get;return void 0===ea?void 0:ea.call(ja)}};ka=fa(0);ka=da(ka);var a=fa(5),b=da(a);a=fa(9);a=da(a);fa=fa(13);var h=function(w){function ea(){z(this,
392
+ ea);return x(this,(ea.__proto__||Object.getPrototypeOf(ea)).apply(this,arguments))}y(ea,w);f(ea,[{key:"replaceWith",value:function(ja){this.domNode.textContent=this.domNode.textContent;this.attach();e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"replaceWith",this).call(this,ja)}},{key:"highlight",value:function(ja){var aa=this.domNode.textContent;if(this.cachedText!==aa){if(0<aa.trim().length||null==this.cachedText)this.domNode.innerHTML=ja(aa),this.domNode.normalize(),this.attach();
393
+ this.cachedText=aa}}}]);return ea}(da(fa).default);h.className="ql-syntax";var n=new ka.default.Attributor.Class("token","hljs",{scope:ka.default.Scope.INLINE});fa=function(w){function ea(ja,aa){z(this,ea);var ca=x(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ja,aa));if("function"!==typeof ca.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var ia=null;ca.quill.on(b.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(ia);
394
+ ia=setTimeout(function(){ca.highlight();ia=null},ca.options.interval)});ca.highlight();return ca}y(ea,w);f(ea,null,[{key:"register",value:function(){b.default.register(n,!0);b.default.register(h,!0)}}]);f(ea,[{key:"highlight",value:function(){var ja=this;if(!this.quill.selection.composing){this.quill.update(b.default.sources.USER);var aa=this.quill.getSelection();this.quill.scroll.descendants(h).forEach(function(ca){ca.highlight(ja.options.highlight)});this.quill.update(b.default.sources.SILENT);
395
+ null!=aa&&this.quill.setSelection(aa,b.default.sources.SILENT)}}}]);return ea}(a.default);fa.DEFAULTS={highlight:function(){return null==window.hljs?null:function(w){return window.hljs.highlightAuto(w).value}}(),interval:1E3};ma.CodeBlock=h;ma.CodeToken=n;ma.default=fa},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(ka){ka.exports=
396
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
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
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>'},
@@ -411,12 +411,12 @@ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,1
411
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
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
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,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function aa(ja,ca){if(!(ja instanceof ca))throw new TypeError("Cannot call a class as a function");}function x(ja,ca){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ca||"object"!==typeof ca&&
415
- "function"!==typeof ca?ja:ca}function y(ja,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+typeof ca);ja.prototype=Object.create(ca&&ca.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,ca):ja.__proto__=ca)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.BubbleTooltip=void 0;var f=function ia(ca,ba,fa){null===ca&&(ca=Function.prototype);
416
- var la=Object.getOwnPropertyDescriptor(ca,ba);if(void 0===la){if(ca=Object.getPrototypeOf(ca),null!==ca)return ia(ca,ba,fa)}else{if("value"in la)return la.value;ba=la.get;return void 0===ba?void 0:ba.call(fa)}},b=function(){function ca(ba,fa){for(var ia=0;ia<fa.length;ia++){var la=fa[ia];la.enumerable=la.enumerable||!1;la.configurable=!0;"value"in la&&(la.writable=!0);Object.defineProperty(ba,la.key,la)}}return function(ba,fa,ia){fa&&ca(ba.prototype,fa);ia&&ca(ba,ia);return ba}}();ka=ha(3);ka=da(ka);
417
- var a=ha(8),e=da(a);a=ha(43);var h=da(a),n=ha(15);ha=ha(41);var z=da(ha),w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];ha=function(ca){function ba(fa,ia){aa(this,ba);null!=ia.modules.toolbar&&null==ia.modules.toolbar.container&&(ia.modules.toolbar.container=w);fa=x(this,(ba.__proto__||Object.getPrototypeOf(ba)).call(this,fa,ia));fa.quill.container.classList.add("ql-bubble");return fa}y(ba,ca);b(ba,[{key:"extendToolbar",value:function(fa){this.tooltip=new ea(this.quill,this.options.bounds);
418
- this.tooltip.root.appendChild(fa.container);this.buildButtons([].slice.call(fa.container.querySelectorAll("button")),z.default);this.buildPickers([].slice.call(fa.container.querySelectorAll("select")),z.default)}}]);return ba}(h.default);ha.DEFAULTS=(0,ka.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ca){ca?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var ea=function(ca){function ba(fa,ia){aa(this,ba);var la=x(this,(ba.__proto__||Object.getPrototypeOf(ba)).call(this,
419
- fa,ia));la.quill.on(e.default.events.EDITOR_CHANGE,function(na,ra,qa,ta){na===e.default.events.SELECTION_CHANGE&&(null!=ra&&0<ra.length&&ta===e.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(ra.index,ra.length),1===na.length?la.position(la.quill.getBounds(ra)):(qa=na[na.length-1],na=la.quill.getIndex(qa),ra=Math.min(qa.length()-1,ra.index+ra.length-na),ra=la.quill.getBounds(new n.Range(na,ra)),la.position(ra))):
420
- document.activeElement!==la.textbox&&la.quill.hasFocus()&&la.hide())});return la}y(ba,ca);b(ba,[{key:"listen",value:function(){var fa=this;f(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){fa.root.classList.remove("ql-editing")});this.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!fa.root.classList.contains("ql-hidden")){var ia=fa.quill.getSelection();null!=
421
- ia&&fa.position(fa.quill.getBounds(ia))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(fa){fa=f(ba.prototype.__proto__||Object.getPrototypeOf(ba.prototype),"position",this).call(this,fa);var ia=this.root.querySelector(".ql-tooltip-arrow");ia.style.marginLeft="";if(0===fa)return fa;ia.style.marginLeft=-1*fa-ia.offsetWidth/2+"px"}}]);return ba}(a.BaseTooltip);ea.TEMPLATE='<span class="ql-tooltip-arrow"></span><div class="ql-tooltip-editor"><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-close"></a></div>';
422
- ma.BubbleTooltip=ea;ma.default=ha},function(ka,ma,ha){ka.exports=ha(63)}])["default"]})}).call(this,r(451).Buffer)}}]);}).call(this || window)
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 da(ja){return ja&&ja.__esModule?ja:{default:ja}}function z(ja,aa){if(!(ja instanceof aa))throw new TypeError("Cannot call a class as a function");}function x(ja,aa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&
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=da(ka);
417
+ var a=fa(8),b=da(a);a=fa(43);var h=da(a),n=fa(15);fa=fa(41);var ba=da(fa),w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];fa=function(aa){function ca(ia,ha){z(this,ca);null!=ha.modules.toolbar&&null==ha.modules.toolbar.container&&(ha.modules.toolbar.container=w);ia=x(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,ia,ha));ia.quill.container.classList.add("ql-bubble");return ia}y(ca,aa);e(ca,[{key:"extendToolbar",value:function(ia){this.tooltip=new ea(this.quill,this.options.bounds);
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 ea=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);ea.TEMPLATE='<span class="ql-tooltip-arrow"></span><div class="ql-tooltip-editor"><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-close"></a></div>';
422
+ ma.BubbleTooltip=ea;ma.default=fa},function(ka,ma,fa){ka.exports=fa(63)}])["default"]})}).call(this,r(454).Buffer)}}]);}).call(this || window)