@nocobase/app 1.3.38-beta → 1.4.0-alpha

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 (103) hide show
  1. package/client/.umirc.ts +12 -14
  2. package/client/src/pages/index.tsx +3 -0
  3. package/dist/client/4607.bae81918.async.js +1 -0
  4. package/dist/client/5617.d114c98c.async.js +78 -0
  5. package/dist/client/5721.ee2b0cf3.async.js +7 -0
  6. package/dist/client/index.html +2 -1
  7. package/dist/client/index.html.tpl +2 -1
  8. package/dist/client/npm._at_ant-design.e1f1f4b0.async.js +110 -0
  9. package/dist/client/{npm._at_antv.5ea2df50.async.js → npm._at_antv.56fcebdf.async.js} +5 -5
  10. package/dist/client/npm._at_budibase.113c5b6a.async.js +36 -0
  11. package/dist/client/npm._at_dnd-kit.2fac5dde.async.js +9 -0
  12. package/dist/client/npm._at_emotion.6969cd50.async.js +2 -0
  13. package/dist/client/npm._at_formily.b1a03e41.async.js +96 -0
  14. package/dist/client/npm._at_formulajs.ff63776b.async.js +1 -0
  15. package/dist/client/npm._at_rc-component.43f95f42.async.js +5 -0
  16. package/dist/client/npm._at_remix-run.9a0418a9.async.js +2 -0
  17. package/dist/client/npm.ahooks.b416801a.async.js +6 -0
  18. package/dist/client/npm.antd-style.ecb45bdd.async.js +1 -0
  19. package/dist/client/npm.antd.732d7b9d.async.js +476 -0
  20. package/dist/client/npm.axios.c42e25ff.async.js +11 -0
  21. package/dist/client/npm.bignumber.js.cb49cd48.async.js +1 -0
  22. package/dist/client/npm.buffer.6f3eca94.async.js +1 -0
  23. package/dist/client/npm.cytoscape.cba0c14d.async.js +5 -0
  24. package/dist/client/{npm.d3-selection.e2684be8.async.js → npm.d3-selection.15d6ab5b.async.js} +1 -1
  25. package/dist/client/npm.d3-shape.b48fc404.async.js +1 -0
  26. package/dist/client/{npm.d3-transition.83e0f431.async.js → npm.d3-transition.5fd82a9c.async.js} +1 -1
  27. package/dist/client/{npm.dayjs.f4357565.async.js → npm.dayjs.0a5fd152.async.js} +1 -1
  28. package/dist/client/{npm.decimal.js.bb6d6d2e.async.js → npm.decimal.js.19391b1c.async.js} +1 -1
  29. package/dist/client/npm.dompurify.d5071c22.async.js +3 -0
  30. package/dist/client/{npm.elkjs.d0ff4db1.async.js → npm.elkjs.f35a7d45.async.js} +4 -4
  31. package/dist/client/npm.gl-matrix.d851d654.async.js +1 -0
  32. package/dist/client/{npm.handlebars.c04806e7.async.js → npm.handlebars.ade4c4fe.async.js} +5 -5
  33. package/dist/client/{npm.highlight.js.4213abe5.async.js → npm.highlight.js.8a8320c8.async.js} +1 -1
  34. package/dist/client/{npm.html-tokenize.360bb6e8.async.js → npm.html-tokenize.a6d58ae7.async.js} +1 -1
  35. package/dist/client/npm.htmlparser2.27ad86bc.async.js +2 -0
  36. package/dist/client/npm.i18next.98bb572b.async.js +1 -0
  37. package/dist/client/npm.json5.d58066fd.async.js +14 -0
  38. package/dist/client/npm.jstat.733c0b2c.async.js +1 -0
  39. package/dist/client/{npm.layout-base.49e322a0.async.js → npm.layout-base.0bdb6d00.async.js} +1 -1
  40. package/dist/client/npm.lodash-es.c06b3dd5.async.js +1 -0
  41. package/dist/client/npm.lodash.0ff318b3.async.js +37 -0
  42. package/dist/client/npm.markdown-it.5b35f93d.async.js +15 -0
  43. package/dist/client/npm.mathjs.fd97f3b7.async.js +52 -0
  44. package/dist/client/npm.mermaid.defd0c88.async.js +1529 -0
  45. package/dist/client/npm.moment.36abbf2c.async.js +4 -0
  46. package/dist/client/npm.picomatch.7a2f1314.async.js +1 -0
  47. package/dist/client/npm.postcss.2ccf11ae.async.js +27 -0
  48. package/dist/client/{npm.quill.e91b3c12.async.js → npm.quill.9d4c2cd1.async.js} +7 -7
  49. package/dist/client/{npm.rc-menu.2e06b9c3.async.js → npm.rc-menu.adf5ade6.async.js} +1 -1
  50. package/dist/client/npm.rc-picker.ef8a3e8b.async.js +1 -0
  51. package/dist/client/{npm.rc-select.13236fb8.async.js → npm.rc-select.7c36e54e.async.js} +2 -2
  52. package/dist/client/{npm.rc-table.de3dd762.async.js → npm.rc-table.a153e021.async.js} +1 -1
  53. package/dist/client/npm.rc-tree.f61b7d87.async.js +1 -0
  54. package/dist/client/npm.rc-util.23a9b855.async.js +18 -0
  55. package/dist/client/npm.react-dom.b9fb5fd7.async.js +11 -0
  56. package/dist/client/npm.react-image-lightbox.727d3218.async.js +3 -0
  57. package/dist/client/npm.react-router-dom.832efba3.async.js +1 -0
  58. package/dist/client/npm.readable-stream.6e743f2a.async.js +1 -0
  59. package/dist/client/p__index.89314c11.async.js +1533 -0
  60. package/dist/client/umi.9e319d79.js +21 -0
  61. package/lib/index.js +11 -3
  62. package/package.json +6 -6
  63. package/src/index.ts +12 -9
  64. package/dist/client/4607.6d585996.async.js +0 -1
  65. package/dist/client/5721.cf90e884.async.js +0 -8
  66. package/dist/client/6718.1e7fe05d.async.js +0 -66
  67. package/dist/client/npm._at_ant-design.4fe52a2f.async.js +0 -110
  68. package/dist/client/npm._at_dnd-kit.01a3ad70.async.js +0 -6
  69. package/dist/client/npm._at_emotion.0c6b11eb.async.js +0 -2
  70. package/dist/client/npm._at_formily.f9d0b213.async.js +0 -101
  71. package/dist/client/npm._at_formulajs.fe3f9fca.async.js +0 -1
  72. package/dist/client/npm._at_rc-component.086dbf23.async.js +0 -5
  73. package/dist/client/npm._at_remix-run.55137b87.async.js +0 -3
  74. package/dist/client/npm.ahooks.c3df4eb6.async.js +0 -6
  75. package/dist/client/npm.antd-style.47ebbe31.async.js +0 -1
  76. package/dist/client/npm.antd.91188318.async.js +0 -476
  77. package/dist/client/npm.axios.f696c6e5.async.js +0 -2
  78. package/dist/client/npm.bignumber.js.70d3d7e8.async.js +0 -1
  79. package/dist/client/npm.buffer.9cce4593.async.js +0 -1
  80. package/dist/client/npm.cytoscape.39239e7b.async.js +0 -5
  81. package/dist/client/npm.d3-shape.3660138b.async.js +0 -1
  82. package/dist/client/npm.dompurify.93b5a130.async.js +0 -3
  83. package/dist/client/npm.gl-matrix.31b80e16.async.js +0 -1
  84. package/dist/client/npm.htmlparser2.cbbea4c4.async.js +0 -2
  85. package/dist/client/npm.i18next.eee0fc0f.async.js +0 -1
  86. package/dist/client/npm.json5.87aca70f.async.js +0 -14
  87. package/dist/client/npm.jstat.657c7dba.async.js +0 -1
  88. package/dist/client/npm.lodash-es.5eff0420.async.js +0 -1
  89. package/dist/client/npm.lodash.0f9322fa.async.js +0 -37
  90. package/dist/client/npm.markdown-it.5875530c.async.js +0 -15
  91. package/dist/client/npm.mathjs.d8df2940.async.js +0 -53
  92. package/dist/client/npm.mermaid.7057e144.async.js +0 -1530
  93. package/dist/client/npm.moment.3c26e672.async.js +0 -4
  94. package/dist/client/npm.postcss.368fceaf.async.js +0 -28
  95. package/dist/client/npm.rc-picker.218fa2cc.async.js +0 -1
  96. package/dist/client/npm.rc-tree.bdb9cee8.async.js +0 -1
  97. package/dist/client/npm.rc-util.87a2c212.async.js +0 -18
  98. package/dist/client/npm.react-dom.6236e62b.async.js +0 -11
  99. package/dist/client/npm.react-image-lightbox.0e0cf81f.async.js +0 -3
  100. package/dist/client/npm.react-router-dom.06c80c5d.async.js +0 -2
  101. package/dist/client/npm.readable-stream.41117b5f.async.js +0 -1
  102. package/dist/client/p__index.4c7bade9.async.js +0 -1509
  103. package/dist/client/umi.016284ce.js +0 -22
@@ -1,9 +1,9 @@
1
- (self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2386],{76095:function(ht,pt,dt){var ct=dt(48764).Buffer;(function(O,p){ht.exports=p()})(typeof self!="undefined"?self:this,function(){return function(B){var O={};function p(P){if(O[P])return O[P].exports;var T=O[P]={i:P,l:!1,exports:{}};return B[P].call(T.exports,T,T.exports,p),T.l=!0,T.exports}return p.m=B,p.c=O,p.d=function(P,T,w){p.o(P,T)||Object.defineProperty(P,T,{configurable:!1,enumerable:!0,get:w})},p.n=function(P){var T=P&&P.__esModule?function(){return P.default}:function(){return P};return p.d(T,"a",T),T},p.o=function(P,T){return Object.prototype.hasOwnProperty.call(P,T)},p.p="",p(p.s=109)}([function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(17),T=p(18),w=p(19),m=p(45),y=p(46),c=p(47),o=p(48),t=p(49),e=p(12),u=p(32),l=p(33),a=p(31),r=p(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:P.default,Format:T.default,Leaf:w.default,Embed:o.default,Scroll:m.default,Block:c.default,Inline:y.default,Text:t.default,Attributor:{Attribute:e.default,Class:u.default,Style:l.default,Store:a.default}};O.default=i},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])};return function(r,i){a(r,i);function f(){this.constructor=r}r.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=function(a){P(r,a);function r(i){var f=this;return i="[Parchment] "+i,f=a.call(this,i)||this,f.message=i,f.name=f.constructor.name,f}return r}(Error);O.ParchmentError=T;var w={},m={},y={},c={};O.DATA_KEY="__blot";var o;(function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"})(o=O.Scope||(O.Scope={}));function t(a,r){var i=u(a);if(i==null)throw new T("Unable to create "+a+" blot");var f=i,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:f.create(r);return new f(n,r)}O.create=t;function e(a,r){return r===void 0&&(r=!1),a==null?null:a[O.DATA_KEY]!=null?a[O.DATA_KEY].blot:r?e(a.parentNode,r):null}O.find=e;function u(a,r){r===void 0&&(r=o.ANY);var i;if(typeof a=="string")i=c[a]||w[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)i=c.text;else if(typeof a=="number")a&o.LEVEL&o.BLOCK?i=c.block:a&o.LEVEL&o.INLINE&&(i=c.inline);else if(a instanceof HTMLElement){var f=(a.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=m[f[n]],i)break;i=i||y[a.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}O.query=u;function l(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];if(a.length>1)return a.map(function(n){return l(n)});var i=a[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new T("Invalid definition");if(i.blotName==="abstract")throw new T("Cannot register abstract class");if(c[i.blotName||i.attrName]=i,typeof i.keyName=="string")w[i.keyName]=i;else if(i.className!=null&&(m[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(n){return n.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var f=Array.isArray(i.tagName)?i.tagName:[i.tagName];f.forEach(function(n){(y[n]==null||i.className==null)&&(y[n]=i)})}return i}O.register=l},function(B,O,p){var P=p(51),T=p(11),w=p(3),m=p(20),y=String.fromCharCode(0),c=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};c.prototype.insert=function(o,t){var e={};return o.length===0?this:(e.insert=o,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},c.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},c.prototype.retain=function(o,t){if(o<=0)return this;var e={retain:o};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},c.prototype.push=function(o){var t=this.ops.length,e=this.ops[t-1];if(o=w(!0,{},o),typeof e=="object"){if(typeof o.delete=="number"&&typeof e.delete=="number")return this.ops[t-1]={delete:e.delete+o.delete},this;if(typeof e.delete=="number"&&o.insert!=null&&(t-=1,e=this.ops[t-1],typeof e!="object"))return this.ops.unshift(o),this;if(T(o.attributes,e.attributes)){if(typeof o.insert=="string"&&typeof e.insert=="string")return this.ops[t-1]={insert:e.insert+o.insert},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof e.retain=="number")return this.ops[t-1]={retain:e.retain+o.retain},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this},c.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},c.prototype.filter=function(o){return this.ops.filter(o)},c.prototype.forEach=function(o){this.ops.forEach(o)},c.prototype.map=function(o){return this.ops.map(o)},c.prototype.partition=function(o){var t=[],e=[];return this.forEach(function(u){var l=o(u)?t:e;l.push(u)}),[t,e]},c.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},c.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+m.length(t):t.delete?o-t.delete:o},0)},c.prototype.length=function(){return this.reduce(function(o,t){return o+m.length(t)},0)},c.prototype.slice=function(o,t){o=o||0,typeof t!="number"&&(t=1/0);for(var e=[],u=m.iterator(this.ops),l=0;l<t&&u.hasNext();){var a;l<o?a=u.next(o-l):(a=u.next(t-l),e.push(a)),l+=m.length(a)}return new c(e)},c.prototype.compose=function(o){var t=m.iterator(this.ops),e=m.iterator(o.ops),u=[],l=e.peek();if(l!=null&&typeof l.retain=="number"&&l.attributes==null){for(var a=l.retain;t.peekType()==="insert"&&t.peekLength()<=a;)a-=t.peekLength(),u.push(t.next());l.retain-a>0&&e.next(l.retain-a)}for(var r=new c(u);t.hasNext()||e.hasNext();)if(e.peekType()==="insert")r.push(e.next());else if(t.peekType()==="delete")r.push(t.next());else{var i=Math.min(t.peekLength(),e.peekLength()),f=t.next(i),n=e.next(i);if(typeof n.retain=="number"){var s={};typeof f.retain=="number"?s.retain=i:s.insert=f.insert;var A=m.attributes.compose(f.attributes,n.attributes,typeof f.retain=="number");if(A&&(s.attributes=A),r.push(s),!e.hasNext()&&T(r.ops[r.ops.length-1],s)){var g=new c(t.rest());return r.concat(g).chop()}}else typeof n.delete=="number"&&typeof f.retain=="number"&&r.push(n)}return r.chop()},c.prototype.concat=function(o){var t=new c(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},c.prototype.diff=function(o,t){if(this.ops===o.ops)return new c;var e=[this,o].map(function(i){return i.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:y;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),u=new c,l=P(e[0],e[1],t),a=m.iterator(this.ops),r=m.iterator(o.ops);return l.forEach(function(i){for(var f=i[1].length;f>0;){var n=0;switch(i[0]){case P.INSERT:n=Math.min(r.peekLength(),f),u.push(r.next(n));break;case P.DELETE:n=Math.min(f,a.peekLength()),a.next(n),u.delete(n);break;case P.EQUAL:n=Math.min(a.peekLength(),r.peekLength(),f);var s=a.next(n),A=r.next(n);T(s.insert,A.insert)?u.retain(n,m.attributes.diff(s.attributes,A.attributes)):u.push(A).delete(n);break}f-=n}}),u.chop()},c.prototype.eachLine=function(o,t){t=t||`
2
- `;for(var e=m.iterator(this.ops),u=new c,l=0;e.hasNext();){if(e.peekType()!=="insert")return;var a=e.peek(),r=m.length(a)-e.peekLength(),i=typeof a.insert=="string"?a.insert.indexOf(t,r)-r:-1;if(i<0)u.push(e.next());else if(i>0)u.push(e.next(i));else{if(o(u,e.next(1).attributes||{},l)===!1)return;l+=1,u=new c}}u.length()>0&&o(u,{},l)},c.prototype.transform=function(o,t){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);for(var e=m.iterator(this.ops),u=m.iterator(o.ops),l=new c;e.hasNext()||u.hasNext();)if(e.peekType()==="insert"&&(t||u.peekType()!=="insert"))l.retain(m.length(e.next()));else if(u.peekType()==="insert")l.push(u.next());else{var a=Math.min(e.peekLength(),u.peekLength()),r=e.next(a),i=u.next(a);if(r.delete)continue;i.delete?l.push(i):l.retain(a,m.attributes.transform(r.attributes,i.attributes,t))}return l.chop()},c.prototype.transformPosition=function(o,t){t=!!t;for(var e=m.iterator(this.ops),u=0;e.hasNext()&&u<=o;){var l=e.peekLength(),a=e.peekType();if(e.next(),a==="delete"){o-=Math.min(l,o-u);continue}else a==="insert"&&(u<o||!t)&&(o+=l);u+=l}return o},B.exports=c},function(B,O){"use strict";var p=Object.prototype.hasOwnProperty,P=Object.prototype.toString,T=Object.defineProperty,w=Object.getOwnPropertyDescriptor,m=function(e){return typeof Array.isArray=="function"?Array.isArray(e):P.call(e)==="[object Array]"},y=function(e){if(!e||P.call(e)!=="[object Object]")return!1;var u=p.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&p.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!u&&!l)return!1;var a;for(a in e);return typeof a=="undefined"||p.call(e,a)},c=function(e,u){T&&u.name==="__proto__"?T(e,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):e[u.name]=u.newValue},o=function(e,u){if(u==="__proto__")if(p.call(e,u)){if(w)return w(e,u).value}else return;return e[u]};B.exports=function t(){var e,u,l,a,r,i,f=arguments[0],n=1,s=arguments.length,A=!1;for(typeof f=="boolean"&&(A=f,f=arguments[1]||{},n=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});n<s;++n)if(e=arguments[n],e!=null)for(u in e)l=o(f,u),a=o(e,u),f!==a&&(A&&a&&(y(a)||(r=m(a)))?(r?(r=!1,i=l&&m(l)?l:[]):i=l&&y(l)?l:{},c(f,{name:u,newValue:t(A,i,a)})):typeof a!="undefined"&&c(f,{name:u,newValue:a}));return f}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var P=function(){function h(d,k){for(var _=0;_<k.length;_++){var q=k[_];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}return function(d,k,_){return k&&h(d.prototype,k),_&&h(d,_),d}}(),T=function h(d,k,_){d===null&&(d=Function.prototype);var q=Object.getOwnPropertyDescriptor(d,k);if(q===void 0){var D=Object.getPrototypeOf(d);return D===null?void 0:h(D,k,_)}else{if("value"in q)return q.value;var C=q.get;return C===void 0?void 0:C.call(_)}},w=p(3),m=f(w),y=p(2),c=f(y),o=p(0),t=f(o),e=p(16),u=f(e),l=p(6),a=f(l),r=p(7),i=f(r);function f(h){return h&&h.__esModule?h:{default:h}}function n(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function s(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function A(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var g=1,b=function(h){A(d,h);function d(){return n(this,d),s(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return P(d,[{key:"attach",value:function(){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,m.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(_,q){var D=t.default.query(_,t.default.Scope.BLOCK_ATTRIBUTE);D!=null&&this.attributes.attribute(D,q)}},{key:"formatAt",value:function(_,q,D,C){this.format(D,C)}},{key:"insertAt",value:function(_,q,D){if(typeof q=="string"&&q.endsWith(`
1
+ (self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2386],{76095:function(ht,pt,dt){var ct=dt(48764).Buffer;(function(O,p){ht.exports=p()})(typeof self<"u"?self:this,function(){return function(B){var O={};function p(P){if(O[P])return O[P].exports;var T=O[P]={i:P,l:!1,exports:{}};return B[P].call(T.exports,T,T.exports,p),T.l=!0,T.exports}return p.m=B,p.c=O,p.d=function(P,T,w){p.o(P,T)||Object.defineProperty(P,T,{configurable:!1,enumerable:!0,get:w})},p.n=function(P){var T=P&&P.__esModule?function(){return P.default}:function(){return P};return p.d(T,"a",T),T},p.o=function(P,T){return Object.prototype.hasOwnProperty.call(P,T)},p.p="",p(p.s=109)}([function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(17),T=p(18),w=p(19),m=p(45),y=p(46),c=p(47),o=p(48),t=p(49),e=p(12),u=p(32),l=p(33),a=p(31),r=p(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:P.default,Format:T.default,Leaf:w.default,Embed:o.default,Scroll:m.default,Block:c.default,Inline:y.default,Text:t.default,Attributor:{Attribute:e.default,Class:u.default,Style:l.default,Store:a.default}};O.default=i},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])};return function(r,i){a(r,i);function f(){this.constructor=r}r.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=function(a){P(r,a);function r(i){var f=this;return i="[Parchment] "+i,f=a.call(this,i)||this,f.message=i,f.name=f.constructor.name,f}return r}(Error);O.ParchmentError=T;var w={},m={},y={},c={};O.DATA_KEY="__blot";var o;(function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"})(o=O.Scope||(O.Scope={}));function t(a,r){var i=u(a);if(i==null)throw new T("Unable to create "+a+" blot");var f=i,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:f.create(r);return new f(n,r)}O.create=t;function e(a,r){return r===void 0&&(r=!1),a==null?null:a[O.DATA_KEY]!=null?a[O.DATA_KEY].blot:r?e(a.parentNode,r):null}O.find=e;function u(a,r){r===void 0&&(r=o.ANY);var i;if(typeof a=="string")i=c[a]||w[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)i=c.text;else if(typeof a=="number")a&o.LEVEL&o.BLOCK?i=c.block:a&o.LEVEL&o.INLINE&&(i=c.inline);else if(a instanceof HTMLElement){var f=(a.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=m[f[n]],i)break;i=i||y[a.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}O.query=u;function l(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];if(a.length>1)return a.map(function(n){return l(n)});var i=a[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new T("Invalid definition");if(i.blotName==="abstract")throw new T("Cannot register abstract class");if(c[i.blotName||i.attrName]=i,typeof i.keyName=="string")w[i.keyName]=i;else if(i.className!=null&&(m[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(n){return n.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var f=Array.isArray(i.tagName)?i.tagName:[i.tagName];f.forEach(function(n){(y[n]==null||i.className==null)&&(y[n]=i)})}return i}O.register=l},function(B,O,p){var P=p(51),T=p(11),w=p(3),m=p(20),y=String.fromCharCode(0),c=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};c.prototype.insert=function(o,t){var e={};return o.length===0?this:(e.insert=o,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},c.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},c.prototype.retain=function(o,t){if(o<=0)return this;var e={retain:o};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},c.prototype.push=function(o){var t=this.ops.length,e=this.ops[t-1];if(o=w(!0,{},o),typeof e=="object"){if(typeof o.delete=="number"&&typeof e.delete=="number")return this.ops[t-1]={delete:e.delete+o.delete},this;if(typeof e.delete=="number"&&o.insert!=null&&(t-=1,e=this.ops[t-1],typeof e!="object"))return this.ops.unshift(o),this;if(T(o.attributes,e.attributes)){if(typeof o.insert=="string"&&typeof e.insert=="string")return this.ops[t-1]={insert:e.insert+o.insert},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof e.retain=="number")return this.ops[t-1]={retain:e.retain+o.retain},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this},c.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},c.prototype.filter=function(o){return this.ops.filter(o)},c.prototype.forEach=function(o){this.ops.forEach(o)},c.prototype.map=function(o){return this.ops.map(o)},c.prototype.partition=function(o){var t=[],e=[];return this.forEach(function(u){var l=o(u)?t:e;l.push(u)}),[t,e]},c.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},c.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+m.length(t):t.delete?o-t.delete:o},0)},c.prototype.length=function(){return this.reduce(function(o,t){return o+m.length(t)},0)},c.prototype.slice=function(o,t){o=o||0,typeof t!="number"&&(t=1/0);for(var e=[],u=m.iterator(this.ops),l=0;l<t&&u.hasNext();){var a;l<o?a=u.next(o-l):(a=u.next(t-l),e.push(a)),l+=m.length(a)}return new c(e)},c.prototype.compose=function(o){var t=m.iterator(this.ops),e=m.iterator(o.ops),u=[],l=e.peek();if(l!=null&&typeof l.retain=="number"&&l.attributes==null){for(var a=l.retain;t.peekType()==="insert"&&t.peekLength()<=a;)a-=t.peekLength(),u.push(t.next());l.retain-a>0&&e.next(l.retain-a)}for(var r=new c(u);t.hasNext()||e.hasNext();)if(e.peekType()==="insert")r.push(e.next());else if(t.peekType()==="delete")r.push(t.next());else{var i=Math.min(t.peekLength(),e.peekLength()),f=t.next(i),n=e.next(i);if(typeof n.retain=="number"){var s={};typeof f.retain=="number"?s.retain=i:s.insert=f.insert;var A=m.attributes.compose(f.attributes,n.attributes,typeof f.retain=="number");if(A&&(s.attributes=A),r.push(s),!e.hasNext()&&T(r.ops[r.ops.length-1],s)){var g=new c(t.rest());return r.concat(g).chop()}}else typeof n.delete=="number"&&typeof f.retain=="number"&&r.push(n)}return r.chop()},c.prototype.concat=function(o){var t=new c(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},c.prototype.diff=function(o,t){if(this.ops===o.ops)return new c;var e=[this,o].map(function(i){return i.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:y;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),u=new c,l=P(e[0],e[1],t),a=m.iterator(this.ops),r=m.iterator(o.ops);return l.forEach(function(i){for(var f=i[1].length;f>0;){var n=0;switch(i[0]){case P.INSERT:n=Math.min(r.peekLength(),f),u.push(r.next(n));break;case P.DELETE:n=Math.min(f,a.peekLength()),a.next(n),u.delete(n);break;case P.EQUAL:n=Math.min(a.peekLength(),r.peekLength(),f);var s=a.next(n),A=r.next(n);T(s.insert,A.insert)?u.retain(n,m.attributes.diff(s.attributes,A.attributes)):u.push(A).delete(n);break}f-=n}}),u.chop()},c.prototype.eachLine=function(o,t){t=t||`
2
+ `;for(var e=m.iterator(this.ops),u=new c,l=0;e.hasNext();){if(e.peekType()!=="insert")return;var a=e.peek(),r=m.length(a)-e.peekLength(),i=typeof a.insert=="string"?a.insert.indexOf(t,r)-r:-1;if(i<0)u.push(e.next());else if(i>0)u.push(e.next(i));else{if(o(u,e.next(1).attributes||{},l)===!1)return;l+=1,u=new c}}u.length()>0&&o(u,{},l)},c.prototype.transform=function(o,t){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);for(var e=m.iterator(this.ops),u=m.iterator(o.ops),l=new c;e.hasNext()||u.hasNext();)if(e.peekType()==="insert"&&(t||u.peekType()!=="insert"))l.retain(m.length(e.next()));else if(u.peekType()==="insert")l.push(u.next());else{var a=Math.min(e.peekLength(),u.peekLength()),r=e.next(a),i=u.next(a);if(r.delete)continue;i.delete?l.push(i):l.retain(a,m.attributes.transform(r.attributes,i.attributes,t))}return l.chop()},c.prototype.transformPosition=function(o,t){t=!!t;for(var e=m.iterator(this.ops),u=0;e.hasNext()&&u<=o;){var l=e.peekLength(),a=e.peekType();if(e.next(),a==="delete"){o-=Math.min(l,o-u);continue}else a==="insert"&&(u<o||!t)&&(o+=l);u+=l}return o},B.exports=c},function(B,O){"use strict";var p=Object.prototype.hasOwnProperty,P=Object.prototype.toString,T=Object.defineProperty,w=Object.getOwnPropertyDescriptor,m=function(e){return typeof Array.isArray=="function"?Array.isArray(e):P.call(e)==="[object Array]"},y=function(e){if(!e||P.call(e)!=="[object Object]")return!1;var u=p.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&p.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!u&&!l)return!1;var a;for(a in e);return typeof a>"u"||p.call(e,a)},c=function(e,u){T&&u.name==="__proto__"?T(e,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):e[u.name]=u.newValue},o=function(e,u){if(u==="__proto__")if(p.call(e,u)){if(w)return w(e,u).value}else return;return e[u]};B.exports=function t(){var e,u,l,a,r,i,f=arguments[0],n=1,s=arguments.length,A=!1;for(typeof f=="boolean"&&(A=f,f=arguments[1]||{},n=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});n<s;++n)if(e=arguments[n],e!=null)for(u in e)l=o(f,u),a=o(e,u),f!==a&&(A&&a&&(y(a)||(r=m(a)))?(r?(r=!1,i=l&&m(l)?l:[]):i=l&&y(l)?l:{},c(f,{name:u,newValue:t(A,i,a)})):typeof a<"u"&&c(f,{name:u,newValue:a}));return f}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var P=function(){function h(d,k){for(var _=0;_<k.length;_++){var q=k[_];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}return function(d,k,_){return k&&h(d.prototype,k),_&&h(d,_),d}}(),T=function h(d,k,_){d===null&&(d=Function.prototype);var q=Object.getOwnPropertyDescriptor(d,k);if(q===void 0){var D=Object.getPrototypeOf(d);return D===null?void 0:h(D,k,_)}else{if("value"in q)return q.value;var C=q.get;return C===void 0?void 0:C.call(_)}},w=p(3),m=f(w),y=p(2),c=f(y),o=p(0),t=f(o),e=p(16),u=f(e),l=p(6),a=f(l),r=p(7),i=f(r);function f(h){return h&&h.__esModule?h:{default:h}}function n(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function s(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function A(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var g=1,b=function(h){A(d,h);function d(){return n(this,d),s(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return P(d,[{key:"attach",value:function(){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,m.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(_,q){var D=t.default.query(_,t.default.Scope.BLOCK_ATTRIBUTE);D!=null&&this.attributes.attribute(D,q)}},{key:"formatAt",value:function(_,q,D,C){this.format(D,C)}},{key:"insertAt",value:function(_,q,D){if(typeof q=="string"&&q.endsWith(`
3
3
  `)){var C=t.default.create(N.blotName);this.parent.insertBefore(C,_===0?this:this.next),C.insertAt(0,q.slice(0,-1))}else T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,_,q,D)}}]),d}(t.default.Embed);b.scope=t.default.Scope.BLOCK_BLOT;var N=function(h){A(d,h);function d(k){n(this,d);var _=s(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,k));return _.cache={},_}return P(d,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(_,q){return q.length()===0?_:_.insert(q.value(),v(q))},new c.default).insert(`
4
4
  `,v(this))),this.cache.delta}},{key:"deleteAt",value:function(_,q){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"deleteAt",this).call(this,_,q),this.cache={}}},{key:"formatAt",value:function(_,q,D,C){q<=0||(t.default.query(D,t.default.Scope.BLOCK)?_+q===this.length()&&this.format(D,C):T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,_,Math.min(q,this.length()-_-1),D,C),this.cache={})}},{key:"insertAt",value:function(_,q,D){if(D!=null)return T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,_,q,D);if(q.length!==0){var C=q.split(`
5
5
  `),Z=C.shift();Z.length>0&&(_<this.length()-1||this.children.tail==null?T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,Math.min(_,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var I=this;C.reduce(function(R,E){return I=I.split(R,!0),I.insertAt(0,E),E.length},_+Z.length)}}},{key:"insertBefore",value:function(_,q){var D=this.children.head;T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,_,q),D instanceof u.default&&D.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(_,q){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"moveChildren",this).call(this,_,q),this.cache={}}},{key:"optimize",value:function(_){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,_),this.cache={}}},{key:"path",value:function(_){return T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"path",this).call(this,_,!0)}},{key:"removeChild",value:function(_){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"removeChild",this).call(this,_),this.cache={}}},{key:"split",value:function(_){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q&&(_===0||_>=this.length()-g)){var D=this.clone();return _===0?(this.parent.insertBefore(D,this),this):(this.parent.insertBefore(D,this.next),D)}else{var C=T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"split",this).call(this,_,q);return this.cache={},C}}}]),d}(t.default.Block);N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[a.default,t.default.Embed,i.default];function v(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h==null||(typeof h.formats=="function"&&(d=(0,m.default)(d,h.formats())),h.parent==null||h.parent.blotName=="scroll"||h.parent.statics.scope!==h.statics.scope)?d:v(h.parent,d)}O.bubbleFormats=v,O.BlockEmbed=b,O.default=N},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},T=function(){function I(R,E){var S=[],L=!0,F=!1,M=void 0;try{for(var x=R[Symbol.iterator](),j;!(L=(j=x.next()).done)&&(S.push(j.value),!(E&&S.length===E));L=!0);}catch(U){F=!0,M=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw M}}return S}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return I(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function I(R,E){for(var S=0;S<E.length;S++){var L=E[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,E,S){return E&&I(R.prototype,E),S&&I(R,S),R}}();p(50);var m=p(2),y=v(m),c=p(14),o=v(c),t=p(8),e=v(t),u=p(9),l=v(u),a=p(0),r=v(a),i=p(15),f=v(i),n=p(3),s=v(n),A=p(10),g=v(A),b=p(34),N=v(b);function v(I){return I&&I.__esModule?I:{default:I}}function h(I,R,E){return R in I?Object.defineProperty(I,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):I[R]=E,I}function d(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}var k=(0,g.default)("quill"),_=function(){w(I,null,[{key:"debug",value:function(E){E===!0&&(E="log"),g.default.level(E)}},{key:"find",value:function(E){return E.__quill||r.default.find(E)}},{key:"import",value:function(E){return this.imports[E]==null&&k.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,S){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof E!="string"){var M=E.attrName||E.blotName;typeof M=="string"?this.register("formats/"+M,E,S):Object.keys(E).forEach(function(x){L.register(x,E[x],S)})}else this.imports[E]!=null&&!F&&k.warn("Overwriting "+E+" with",S),this.imports[E]=S,(E.startsWith("blots/")||E.startsWith("formats/"))&&S.blotName!=="abstract"?r.default.register(S):E.startsWith("modules")&&typeof S.register=="function"&&S.register()}}]);function I(R){var E=this,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(d(this,I),this.options=q(R,S),this.container=this.options.container,this.container==null)return k.error("Invalid Quill container",R);this.options.debug&&I.debug(this.options.debug);var L=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new e.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(e.default.events.EDITOR_CHANGE,function(M){M===e.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(M,x){var j=E.selection.lastRange,U=j&&j.length===0?j.index:void 0;D.call(E,function(){return E.editor.update(null,x,U)},M)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+L+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return w(I,[{key:"addContainer",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof E=="string"){var L=E;E=document.createElement("div"),E.classList.add(L)}return this.container.insertBefore(E,S),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,S,L){var F=this,M=C(E,S,L),x=T(M,4);return E=x[0],S=x[1],L=x[3],D.call(this,function(){return F.editor.deleteText(E,S)},L,E,-1*S)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(E),this.container.classList.toggle("ql-disabled",!E)}},{key:"focus",value:function(){var E=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=E,this.scrollIntoView()}},{key:"format",value:function(E,S){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.default.sources.API;return D.call(this,function(){var M=L.getSelection(!0),x=new y.default;if(M==null)return x;if(r.default.query(E,r.default.Scope.BLOCK))x=L.editor.formatLine(M.index,M.length,h({},E,S));else{if(M.length===0)return L.selection.format(E,S),x;x=L.editor.formatText(M.index,M.length,h({},E,S))}return L.setSelection(M,e.default.sources.SILENT),x},F)}},{key:"formatLine",value:function(E,S,L,F,M){var x=this,j=void 0,U=C(E,S,L,F,M),H=T(U,4);return E=H[0],S=H[1],j=H[2],M=H[3],D.call(this,function(){return x.editor.formatLine(E,S,j)},M,E,0)}},{key:"formatText",value:function(E,S,L,F,M){var x=this,j=void 0,U=C(E,S,L,F,M),H=T(U,4);return E=H[0],S=H[1],j=H[2],M=H[3],D.call(this,function(){return x.editor.formatText(E,S,j)},M,E,0)}},{key:"getBounds",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=void 0;typeof E=="number"?L=this.selection.getBounds(E,S):L=this.selection.getBounds(E.index,E.length);var F=this.container.getBoundingClientRect();return{bottom:L.bottom-F.top,height:L.height,left:L.left-F.left,right:L.right-F.left,top:L.top-F.top,width:L.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,L=C(E,S),F=T(L,2);return E=F[0],S=F[1],this.editor.getContents(E,S)}},{key:"getFormat",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof E=="number"?this.editor.getFormat(E,S):this.editor.getFormat(E.index,E.length)}},{key:"getIndex",value:function(E){return E.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(E){return this.scroll.leaf(E)}},{key:"getLine",value:function(E){return this.scroll.line(E)}},{key:"getLines",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof E!="number"?this.scroll.lines(E.index,E.length):this.scroll.lines(E,S)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return E&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,L=C(E,S),F=T(L,2);return E=F[0],S=F[1],this.editor.getText(E,S)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,S,L){var F=this,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:I.sources.API;return D.call(this,function(){return F.editor.insertEmbed(E,S,L)},M,E)}},{key:"insertText",value:function(E,S,L,F,M){var x=this,j=void 0,U=C(E,0,L,F,M),H=T(U,4);return E=H[0],j=H[2],M=H[3],D.call(this,function(){return x.editor.insertText(E,S,j)},M,E,S.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(E,S,L){this.clipboard.dangerouslyPasteHTML(E,S,L)}},{key:"removeFormat",value:function(E,S,L){var F=this,M=C(E,S,L),x=T(M,4);return E=x[0],S=x[1],L=x[3],D.call(this,function(){return F.editor.removeFormat(E,S)},L,E)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var S=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return D.call(this,function(){E=new y.default(E);var F=S.getLength(),M=S.editor.deleteText(0,F),x=S.editor.applyDelta(E),j=x.ops[x.ops.length-1];j!=null&&typeof j.insert=="string"&&j.insert[j.insert.length-1]===`
6
- `&&(S.editor.deleteText(S.getLength()-1,1),x.delete(1));var U=M.compose(x);return U},L)}},{key:"setSelection",value:function(E,S,L){if(E==null)this.selection.setRange(null,S||I.sources.API);else{var F=C(E,S,L),M=T(F,4);E=M[0],S=M[1],L=M[3],this.selection.setRange(new i.Range(E,S),L),L!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,L=new y.default().insert(E);return this.setContents(L,S)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,S=this.scroll.update(E);return this.selection.update(E),S}},{key:"updateContents",value:function(E){var S=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return D.call(this,function(){return E=new y.default(E),S.editor.applyDelta(E,L)},L,!0)}}]),I}();_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},_.events=e.default.events,_.sources=e.default.sources,_.version="1.3.7",_.imports={delta:y.default,parchment:r.default,"core/module":l.default,"core/theme":N.default};function q(I,R){if(R=(0,s.default)(!0,{container:I,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===_.DEFAULTS.theme)R.theme=N.default;else if(R.theme=_.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var E=(0,s.default)(!0,{},R.theme.DEFAULTS);[E,R].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(M){F.modules[M]===!0&&(F.modules[M]={})})});var S=Object.keys(E.modules).concat(Object.keys(R.modules)),L=S.reduce(function(F,M){var x=_.import("modules/"+M);return x==null?k.error("Cannot load "+M+" module. Are you sure you registered it?"):F[M]=x.DEFAULTS||{},F},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,s.default)(!0,{},_.DEFAULTS,{modules:L},E,R),["bounds","container","scrollingContainer"].forEach(function(F){typeof R[F]=="string"&&(R[F]=document.querySelector(R[F]))}),R.modules=Object.keys(R.modules).reduce(function(F,M){return R.modules[M]&&(F[M]=R.modules[M]),F},{}),R}function D(I,R,E,S){if(this.options.strict&&!this.isEnabled()&&R===e.default.sources.USER)return new y.default;var L=E==null?null:this.getSelection(),F=this.editor.delta,M=I();if(L!=null&&(E===!0&&(E=L.index),S==null?L=Z(L,M,R):S!==0&&(L=Z(L,E,S,R)),this.setSelection(L,e.default.sources.SILENT)),M.length()>0){var x,j=[e.default.events.TEXT_CHANGE,M,F,R];if((x=this.emitter).emit.apply(x,[e.default.events.EDITOR_CHANGE].concat(j)),R!==e.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,j)}}return M}function C(I,R,E,S,L){var F={};return typeof I.index=="number"&&typeof I.length=="number"?typeof R!="number"?(L=S,S=E,E=R,R=I.length,I=I.index):(R=I.length,I=I.index):typeof R!="number"&&(L=S,S=E,E=R,R=0),(typeof E=="undefined"?"undefined":P(E))==="object"?(F=E,L=S):typeof E=="string"&&(S!=null?F[E]=S:L=E),L=L||e.default.sources.API,[I,R,F,L]}function Z(I,R,E,S){if(I==null)return null;var L=void 0,F=void 0;if(R instanceof y.default){var M=[I.index,I.index+I.length].map(function(H){return R.transformPosition(H,S!==e.default.sources.USER)}),x=T(M,2);L=x[0],F=x[1]}else{var j=[I.index,I.index+I.length].map(function(H){return H<R||H===R&&S===e.default.sources.USER?H:E>=0?H+E:Math.max(R,H+E)}),U=T(j,2);L=U[0],F=U[1]}return new i.Range(L,F-L)}O.expandConfig=q,O.overload=C,O.default=_},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:a(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},w=p(7),m=o(w),y=p(0),c=o(y);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function e(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function u(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var l=function(a){u(r,a);function r(){return t(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"formatAt",value:function(f,n,s,A){if(r.compare(this.statics.blotName,s)<0&&c.default.query(s,c.default.Scope.BLOT)){var g=this.isolate(f,n);A&&g.wrap(s,A)}else T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,s,A)}},{key:"optimize",value:function(f){if(T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(f,n){var s=r.order.indexOf(f),A=r.order.indexOf(n);return s>=0||A>=0?s-A:f===n?0:f<n?-1:1}}]),r}(c.default.Inline);l.allowedChildren=[l,c.default.Embed,m.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=w(P);function w(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function c(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){c(e,t);function e(){return m(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(T.default.Text);O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function i(f,n){for(var s=0;s<n.length;s++){var A=n[s];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,n,s){return n&&i(f.prototype,n),s&&i(f,s),f}}(),T=function i(f,n,s){f===null&&(f=Function.prototype);var A=Object.getOwnPropertyDescriptor(f,n);if(A===void 0){var g=Object.getPrototypeOf(f);return g===null?void 0:i(g,n,s)}else{if("value"in A)return A.value;var b=A.get;return b===void 0?void 0:b.call(s)}},w=p(54),m=o(w),y=p(10),c=o(y);function o(i){return i&&i.__esModule?i:{default:i}}function t(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}function e(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:i}function u(i,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}var l=(0,c.default)("quill:events"),a=["selectionchange","mousedown","mouseup","click"];a.forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),s=0;s<f;s++)n[s]=arguments[s];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){if(A.__quill&&A.__quill.emitter){var g;(g=A.__quill.emitter).handleDOM.apply(g,n)}})})});var r=function(i){u(f,i);function f(){t(this,f);var n=e(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",l.error),n}return P(f,[{key:"emit",value:function(){l.log.apply(l,arguments),T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(s){for(var A=arguments.length,g=Array(A>1?A-1:0),b=1;b<A;b++)g[b-1]=arguments[b];(this.listeners[s.type]||[]).forEach(function(N){var v=N.node,h=N.handler;(s.target===v||v.contains(s.target))&&h.apply(void 0,[s].concat(g))})}},{key:"listenDOM",value:function(s,A,g){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push({node:A,handler:g})}}]),f}(m.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},O.default=r},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});function P(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}var T=function w(m){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P(this,w),this.quill=m,this.options=y};T.DEFAULTS={},O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=["error","warn","log","info"],T="warn";function w(y){if(P.indexOf(y)<=P.indexOf(T)){for(var c,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(c=console)[y].apply(c,t)}}function m(y){return P.reduce(function(c,o){return c[o]=w.bind(console,o,y),c},{})}w.level=m.level=function(y){T=y},O.default=m},function(B,O,p){var P=Array.prototype.slice,T=p(52),w=p(53),m=B.exports=function(t,e,u){return u||(u={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||typeof t!="object"&&typeof e!="object"?u.strict?t===e:t==e:o(t,e,u)};function y(t){return t==null}function c(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function o(t,e,u){var l,a;if(y(t)||y(e)||t.prototype!==e.prototype)return!1;if(w(t))return w(e)?(t=P.call(t),e=P.call(e),m(t,e,u)):!1;if(c(t)){if(!c(e)||t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var r=T(t),i=T(e)}catch(f){return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),l=r.length-1;l>=0;l--)if(r[l]!=i[l])return!1;for(l=r.length-1;l>=0;l--)if(a=r[l],!m(t[a],e[a],u))return!1;return typeof t==typeof e}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function w(m,y,c){c===void 0&&(c={}),this.attrName=m,this.keyName=y;var o=P.Scope.TYPE&P.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&P.Scope.LEVEL|o:this.scope=P.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return w.keys=function(m){return[].map.call(m.attributes,function(y){return y.name})},w.prototype.add=function(m,y){return this.canAdd(m,y)?(m.setAttribute(this.keyName,y),!0):!1},w.prototype.canAdd=function(m,y){var c=P.query(m,P.Scope.BLOT&(this.scope|P.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},w.prototype.remove=function(m){m.removeAttribute(this.keyName)},w.prototype.value=function(m){var y=m.getAttribute(this.keyName);return this.canAdd(m,y)&&y?y:""},w}();O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var P=function(){function b(N,v){var h=[],d=!0,k=!1,_=void 0;try{for(var q=N[Symbol.iterator](),D;!(d=(D=q.next()).done)&&(h.push(D.value),!(v&&h.length===v));d=!0);}catch(C){k=!0,_=C}finally{try{!d&&q.return&&q.return()}finally{if(k)throw _}}return h}return function(N,v){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return b(N,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function b(N,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(N,d.key,d)}}return function(N,v,h){return v&&b(N.prototype,v),h&&b(N,h),N}}(),w=function b(N,v,h){N===null&&(N=Function.prototype);var d=Object.getOwnPropertyDescriptor(N,v);if(d===void 0){var k=Object.getPrototypeOf(N);return k===null?void 0:b(k,v,h)}else{if("value"in d)return d.value;var _=d.get;return _===void 0?void 0:_.call(h)}},m=p(2),y=i(m),c=p(0),o=i(c),t=p(4),e=i(t),u=p(6),l=i(u),a=p(7),r=i(a);function i(b){return b&&b.__esModule?b:{default:b}}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}function n(b,N){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:b}function s(b,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);b.prototype=Object.create(N&&N.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(b,N):b.__proto__=N)}var A=function(b){s(N,b);function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return N}(l.default);A.blotName="code",A.tagName="CODE";var g=function(b){s(N,b);function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return T(N,[{key:"delta",value:function(){var h=this,d=this.domNode.textContent;return d.endsWith(`
6
+ `&&(S.editor.deleteText(S.getLength()-1,1),x.delete(1));var U=M.compose(x);return U},L)}},{key:"setSelection",value:function(E,S,L){if(E==null)this.selection.setRange(null,S||I.sources.API);else{var F=C(E,S,L),M=T(F,4);E=M[0],S=M[1],L=M[3],this.selection.setRange(new i.Range(E,S),L),L!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,L=new y.default().insert(E);return this.setContents(L,S)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,S=this.scroll.update(E);return this.selection.update(E),S}},{key:"updateContents",value:function(E){var S=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return D.call(this,function(){return E=new y.default(E),S.editor.applyDelta(E,L)},L,!0)}}]),I}();_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},_.events=e.default.events,_.sources=e.default.sources,_.version="1.3.7",_.imports={delta:y.default,parchment:r.default,"core/module":l.default,"core/theme":N.default};function q(I,R){if(R=(0,s.default)(!0,{container:I,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===_.DEFAULTS.theme)R.theme=N.default;else if(R.theme=_.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var E=(0,s.default)(!0,{},R.theme.DEFAULTS);[E,R].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(M){F.modules[M]===!0&&(F.modules[M]={})})});var S=Object.keys(E.modules).concat(Object.keys(R.modules)),L=S.reduce(function(F,M){var x=_.import("modules/"+M);return x==null?k.error("Cannot load "+M+" module. Are you sure you registered it?"):F[M]=x.DEFAULTS||{},F},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,s.default)(!0,{},_.DEFAULTS,{modules:L},E,R),["bounds","container","scrollingContainer"].forEach(function(F){typeof R[F]=="string"&&(R[F]=document.querySelector(R[F]))}),R.modules=Object.keys(R.modules).reduce(function(F,M){return R.modules[M]&&(F[M]=R.modules[M]),F},{}),R}function D(I,R,E,S){if(this.options.strict&&!this.isEnabled()&&R===e.default.sources.USER)return new y.default;var L=E==null?null:this.getSelection(),F=this.editor.delta,M=I();if(L!=null&&(E===!0&&(E=L.index),S==null?L=Z(L,M,R):S!==0&&(L=Z(L,E,S,R)),this.setSelection(L,e.default.sources.SILENT)),M.length()>0){var x,j=[e.default.events.TEXT_CHANGE,M,F,R];if((x=this.emitter).emit.apply(x,[e.default.events.EDITOR_CHANGE].concat(j)),R!==e.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,j)}}return M}function C(I,R,E,S,L){var F={};return typeof I.index=="number"&&typeof I.length=="number"?typeof R!="number"?(L=S,S=E,E=R,R=I.length,I=I.index):(R=I.length,I=I.index):typeof R!="number"&&(L=S,S=E,E=R,R=0),(typeof E>"u"?"undefined":P(E))==="object"?(F=E,L=S):typeof E=="string"&&(S!=null?F[E]=S:L=E),L=L||e.default.sources.API,[I,R,F,L]}function Z(I,R,E,S){if(I==null)return null;var L=void 0,F=void 0;if(R instanceof y.default){var M=[I.index,I.index+I.length].map(function(H){return R.transformPosition(H,S!==e.default.sources.USER)}),x=T(M,2);L=x[0],F=x[1]}else{var j=[I.index,I.index+I.length].map(function(H){return H<R||H===R&&S===e.default.sources.USER?H:E>=0?H+E:Math.max(R,H+E)}),U=T(j,2);L=U[0],F=U[1]}return new i.Range(L,F-L)}O.expandConfig=q,O.overload=C,O.default=_},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:a(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},w=p(7),m=o(w),y=p(0),c=o(y);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function e(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function u(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var l=function(a){u(r,a);function r(){return t(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"formatAt",value:function(f,n,s,A){if(r.compare(this.statics.blotName,s)<0&&c.default.query(s,c.default.Scope.BLOT)){var g=this.isolate(f,n);A&&g.wrap(s,A)}else T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,s,A)}},{key:"optimize",value:function(f){if(T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(f,n){var s=r.order.indexOf(f),A=r.order.indexOf(n);return s>=0||A>=0?s-A:f===n?0:f<n?-1:1}}]),r}(c.default.Inline);l.allowedChildren=[l,c.default.Embed,m.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=w(P);function w(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function c(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){c(e,t);function e(){return m(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(T.default.Text);O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function i(f,n){for(var s=0;s<n.length;s++){var A=n[s];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,n,s){return n&&i(f.prototype,n),s&&i(f,s),f}}(),T=function i(f,n,s){f===null&&(f=Function.prototype);var A=Object.getOwnPropertyDescriptor(f,n);if(A===void 0){var g=Object.getPrototypeOf(f);return g===null?void 0:i(g,n,s)}else{if("value"in A)return A.value;var b=A.get;return b===void 0?void 0:b.call(s)}},w=p(54),m=o(w),y=p(10),c=o(y);function o(i){return i&&i.__esModule?i:{default:i}}function t(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}function e(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:i}function u(i,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}var l=(0,c.default)("quill:events"),a=["selectionchange","mousedown","mouseup","click"];a.forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),s=0;s<f;s++)n[s]=arguments[s];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){if(A.__quill&&A.__quill.emitter){var g;(g=A.__quill.emitter).handleDOM.apply(g,n)}})})});var r=function(i){u(f,i);function f(){t(this,f);var n=e(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",l.error),n}return P(f,[{key:"emit",value:function(){l.log.apply(l,arguments),T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(s){for(var A=arguments.length,g=Array(A>1?A-1:0),b=1;b<A;b++)g[b-1]=arguments[b];(this.listeners[s.type]||[]).forEach(function(N){var v=N.node,h=N.handler;(s.target===v||v.contains(s.target))&&h.apply(void 0,[s].concat(g))})}},{key:"listenDOM",value:function(s,A,g){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push({node:A,handler:g})}}]),f}(m.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},O.default=r},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});function P(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}var T=function w(m){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P(this,w),this.quill=m,this.options=y};T.DEFAULTS={},O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=["error","warn","log","info"],T="warn";function w(y){if(P.indexOf(y)<=P.indexOf(T)){for(var c,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(c=console)[y].apply(c,t)}}function m(y){return P.reduce(function(c,o){return c[o]=w.bind(console,o,y),c},{})}w.level=m.level=function(y){T=y},O.default=m},function(B,O,p){var P=Array.prototype.slice,T=p(52),w=p(53),m=B.exports=function(t,e,u){return u||(u={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||typeof t!="object"&&typeof e!="object"?u.strict?t===e:t==e:o(t,e,u)};function y(t){return t==null}function c(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function o(t,e,u){var l,a;if(y(t)||y(e)||t.prototype!==e.prototype)return!1;if(w(t))return w(e)?(t=P.call(t),e=P.call(e),m(t,e,u)):!1;if(c(t)){if(!c(e)||t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var r=T(t),i=T(e)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),l=r.length-1;l>=0;l--)if(r[l]!=i[l])return!1;for(l=r.length-1;l>=0;l--)if(a=r[l],!m(t[a],e[a],u))return!1;return typeof t==typeof e}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function w(m,y,c){c===void 0&&(c={}),this.attrName=m,this.keyName=y;var o=P.Scope.TYPE&P.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&P.Scope.LEVEL|o:this.scope=P.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return w.keys=function(m){return[].map.call(m.attributes,function(y){return y.name})},w.prototype.add=function(m,y){return this.canAdd(m,y)?(m.setAttribute(this.keyName,y),!0):!1},w.prototype.canAdd=function(m,y){var c=P.query(m,P.Scope.BLOT&(this.scope|P.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},w.prototype.remove=function(m){m.removeAttribute(this.keyName)},w.prototype.value=function(m){var y=m.getAttribute(this.keyName);return this.canAdd(m,y)&&y?y:""},w}();O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var P=function(){function b(N,v){var h=[],d=!0,k=!1,_=void 0;try{for(var q=N[Symbol.iterator](),D;!(d=(D=q.next()).done)&&(h.push(D.value),!(v&&h.length===v));d=!0);}catch(C){k=!0,_=C}finally{try{!d&&q.return&&q.return()}finally{if(k)throw _}}return h}return function(N,v){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return b(N,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function b(N,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(N,d.key,d)}}return function(N,v,h){return v&&b(N.prototype,v),h&&b(N,h),N}}(),w=function b(N,v,h){N===null&&(N=Function.prototype);var d=Object.getOwnPropertyDescriptor(N,v);if(d===void 0){var k=Object.getPrototypeOf(N);return k===null?void 0:b(k,v,h)}else{if("value"in d)return d.value;var _=d.get;return _===void 0?void 0:_.call(h)}},m=p(2),y=i(m),c=p(0),o=i(c),t=p(4),e=i(t),u=p(6),l=i(u),a=p(7),r=i(a);function i(b){return b&&b.__esModule?b:{default:b}}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}function n(b,N){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:b}function s(b,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);b.prototype=Object.create(N&&N.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(b,N):b.__proto__=N)}var A=function(b){s(N,b);function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return N}(l.default);A.blotName="code",A.tagName="CODE";var g=function(b){s(N,b);function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return T(N,[{key:"delta",value:function(){var h=this,d=this.domNode.textContent;return d.endsWith(`
7
7
  `)&&(d=d.slice(0,-1)),d.split(`
8
8
  `).reduce(function(k,_){return k.insert(_).insert(`
9
9
  `,h.formats())},new y.default)}},{key:"format",value:function(h,d){if(!(h===this.statics.blotName&&d)){var k=this.descendant(r.default,this.length()-1),_=P(k,1),q=_[0];q!=null&&q.deleteAt(q.length()-1,1),w(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,h,d)}}},{key:"formatAt",value:function(h,d,k,_){if(d!==0&&!(o.default.query(k,o.default.Scope.BLOCK)==null||k===this.statics.blotName&&_===this.statics.formats(this.domNode))){var q=this.newlineIndex(h);if(!(q<0||q>=h+d)){var D=this.newlineIndex(h,!0)+1,C=q-D+1,Z=this.isolate(D,C),I=Z.next;Z.format(k,_),I instanceof N&&I.formatAt(0,h-D+d-C,k,_)}}}},{key:"insertAt",value:function(h,d,k){if(k==null){var _=this.descendant(r.default,h),q=P(_,2),D=q[0],C=q[1];D.insertAt(C,d)}}},{key:"length",value:function(){var h=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
@@ -18,14 +18,14 @@
18
18
  `),this.scroll.insertAt(E,S),Object.keys(F).forEach(function(M){L.scroll.formatAt(E,S.length,M,F[M])}),this.update(new y.default().retain(E).insert(S,(0,g.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var E=this.scroll.children.head;return E.statics.blotName!==f.default.blotName||E.children.length>1?!1:E.children.head instanceof s.default}},{key:"removeFormat",value:function(E,S){var L=this.getText(E,S),F=this.scroll.line(E+S),M=T(F,2),x=M[0],j=M[1],U=0,H=new y.default;x!=null&&(x instanceof l.default?U=x.newlineIndex(j)-j+1:U=x.length()-j,H=x.delta().slice(j,j+U-1).insert(`
19
19
  `));var V=this.getContents(E,S+U),Y=V.diff(new y.default().insert(L).concat(H)),X=new y.default().retain(E).concat(Y);return this.applyDelta(X)}},{key:"update",value:function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(S.length===1&&S[0].type==="characterData"&&S[0].target.data.match(q)&&e.default.find(S[0].target)){var M=e.default.find(S[0].target),x=(0,i.bubbleFormats)(M),j=M.offset(this.scroll),U=S[0].oldValue.replace(r.default.CONTENTS,""),H=new y.default().insert(U),V=new y.default().insert(M.value()),Y=new y.default().retain(j).concat(H.diff(V,L));E=Y.reduce(function(X,Q){return Q.insert?X.insert(Q.insert,x):X.push(Q)},new y.default),this.delta=F.compose(E)}else this.delta=this.getDelta(),(!E||!(0,N.default)(F.compose(E),this.delta))&&(E=F.diff(this.delta,L));return E}}]),I}();function C(I,R){return Object.keys(R).reduce(function(E,S){return I[S]==null||(R[S]===I[S]?E[S]=R[S]:Array.isArray(R[S])?R[S].indexOf(I[S])<0&&(E[S]=R[S].concat([I[S]])):E[S]=[R[S],I[S]]),E},{})}function Z(I){return I.reduce(function(R,E){if(E.insert===1){var S=(0,g.default)(E.attributes);return delete S.image,R.insert({image:E.attributes.image},S)}if(E.attributes!=null&&(E.attributes.list===!0||E.attributes.bullet===!0)&&(E=(0,g.default)(E),E.attributes.list?E.attributes.list="ordered":(E.attributes.list="bullet",delete E.attributes.bullet)),typeof E.insert=="string"){var L=E.insert.replace(/\r\n/g,`
20
20
  `).replace(/\r/g,`
21
- `);return R.insert(L,E.attributes)}return R.push(E)},new y.default)}O.default=D},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var P=function(){function b(N,v){var h=[],d=!0,k=!1,_=void 0;try{for(var q=N[Symbol.iterator](),D;!(d=(D=q.next()).done)&&(h.push(D.value),!(v&&h.length===v));d=!0);}catch(C){k=!0,_=C}finally{try{!d&&q.return&&q.return()}finally{if(k)throw _}}return h}return function(N,v){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return b(N,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function b(N,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(N,d.key,d)}}return function(N,v,h){return v&&b(N.prototype,v),h&&b(N,h),N}}(),w=p(0),m=r(w),y=p(21),c=r(y),o=p(11),t=r(o),e=p(8),u=r(e),l=p(10),a=r(l);function r(b){return b&&b.__esModule?b:{default:b}}function i(b){if(Array.isArray(b)){for(var N=0,v=Array(b.length);N<b.length;N++)v[N]=b[N];return v}else return Array.from(b)}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}var n=(0,a.default)("quill:selection"),s=function b(N){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,b),this.index=N,this.length=v},A=function(){function b(N,v){var h=this;f(this,b),this.emitter=v,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=m.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){h.mouseDown||setTimeout(h.update.bind(h,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(d,k){d===u.default.events.TEXT_CHANGE&&k.length()>0&&h.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(h.hasFocus()){var d=h.getNativeRange();d!=null&&d.start.node!==h.cursor.textNode&&h.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(d.start.node,d.start.offset,d.end.node,d.end.offset)}catch(k){}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(d,k){if(k.range){var _=k.range,q=_.startNode,D=_.startOffset,C=_.endNode,Z=_.endOffset;h.setNativeRange(q,D,C,Z)}}),this.update(u.default.sources.SILENT)}return T(b,[{key:"handleComposition",value:function(){var v=this;this.root.addEventListener("compositionstart",function(){v.composing=!0}),this.root.addEventListener("compositionend",function(){if(v.composing=!1,v.cursor.parent){var h=v.cursor.restore();if(!h)return;setTimeout(function(){v.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var v=this;this.emitter.listenDOM("mousedown",document.body,function(){v.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){v.mouseDown=!1,v.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(v,h){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[v])){this.scroll.update();var d=this.getNativeRange();if(!(d==null||!d.native.collapsed||m.default.query(v,m.default.Scope.BLOCK))){if(d.start.node!==this.cursor.textNode){var k=m.default.find(d.start.node,!1);if(k==null)return;if(k instanceof m.default.Leaf){var _=k.split(d.start.offset);k.parent.insertBefore(this.cursor,_)}else k.insertBefore(this.cursor,d.start.node);this.cursor.attach()}this.cursor.format(v,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d=this.scroll.length();v=Math.min(v,d-1),h=Math.min(v+h,d-1)-v;var k=void 0,_=this.scroll.leaf(v),q=P(_,2),D=q[0],C=q[1];if(D==null)return null;var Z=D.position(C,!0),I=P(Z,2);k=I[0],C=I[1];var R=document.createRange();if(h>0){R.setStart(k,C);var E=this.scroll.leaf(v+h),S=P(E,2);if(D=S[0],C=S[1],D==null)return null;var L=D.position(C,!0),F=P(L,2);return k=F[0],C=F[1],R.setEnd(k,C),R.getBoundingClientRect()}else{var M="left",x=void 0;return k instanceof Text?(C<k.data.length?(R.setStart(k,C),R.setEnd(k,C+1)):(R.setStart(k,C-1),R.setEnd(k,C),M="right"),x=R.getBoundingClientRect()):(x=D.domNode.getBoundingClientRect(),C>0&&(M="right")),{bottom:x.top+x.height,height:x.height,left:x[M],right:x[M],top:x.top,width:0}}}},{key:"getNativeRange",value:function(){var v=document.getSelection();if(v==null||v.rangeCount<=0)return null;var h=v.getRangeAt(0);if(h==null)return null;var d=this.normalizeNative(h);return n.info("getNativeRange",d),d}},{key:"getRange",value:function(){var v=this.getNativeRange();if(v==null)return[null,null];var h=this.normalizedToRange(v);return[h,v]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(v){var h=this,d=[[v.start.node,v.start.offset]];v.native.collapsed||d.push([v.end.node,v.end.offset]);var k=d.map(function(D){var C=P(D,2),Z=C[0],I=C[1],R=m.default.find(Z,!0),E=R.offset(h.scroll);return I===0?E:R instanceof m.default.Container?E+R.length():E+R.index(Z,I)}),_=Math.min(Math.max.apply(Math,i(k)),this.scroll.length()-1),q=Math.min.apply(Math,[_].concat(i(k)));return new s(q,_-q)}},{key:"normalizeNative",value:function(v){if(!g(this.root,v.startContainer)||!v.collapsed&&!g(this.root,v.endContainer))return null;var h={start:{node:v.startContainer,offset:v.startOffset},end:{node:v.endContainer,offset:v.endOffset},native:v};return[h.start,h.end].forEach(function(d){for(var k=d.node,_=d.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>_)k=k.childNodes[_],_=0;else if(k.childNodes.length===_)k=k.lastChild,_=k instanceof Text?k.data.length:k.childNodes.length+1;else break;d.node=k,d.offset=_}),h}},{key:"rangeToNative",value:function(v){var h=this,d=v.collapsed?[v.index]:[v.index,v.index+v.length],k=[],_=this.scroll.length();return d.forEach(function(q,D){q=Math.min(_-1,q);var C=void 0,Z=h.scroll.leaf(q),I=P(Z,2),R=I[0],E=I[1],S=R.position(E,D!==0),L=P(S,2);C=L[0],E=L[1],k.push(C,E)}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(v){var h=this.lastRange;if(h!=null){var d=this.getBounds(h.index,h.length);if(d!=null){var k=this.scroll.length()-1,_=this.scroll.line(Math.min(h.index,k)),q=P(_,1),D=q[0],C=D;if(h.length>0){var Z=this.scroll.line(Math.min(h.index+h.length,k)),I=P(Z,1);C=I[0]}if(!(D==null||C==null)){var R=v.getBoundingClientRect();d.top<R.top?v.scrollTop-=R.top-d.top:d.bottom>R.bottom&&(v.scrollTop+=d.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(v,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",v,h,d,k),!(v!=null&&(this.root.parentNode==null||v.parentNode==null||d.parentNode==null))){var q=document.getSelection();if(q!=null)if(v!=null){this.hasFocus()||this.root.focus();var D=(this.getNativeRange()||{}).native;if(D==null||_||v!==D.startContainer||h!==D.startOffset||d!==D.endContainer||k!==D.endOffset){v.tagName=="BR"&&(h=[].indexOf.call(v.parentNode.childNodes,v),v=v.parentNode),d.tagName=="BR"&&(k=[].indexOf.call(d.parentNode.childNodes,d),d=d.parentNode);var C=document.createRange();C.setStart(v,h),C.setEnd(d,k),q.removeAllRanges(),q.addRange(C)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof h=="string"&&(d=h,h=!1),n.info("setRange",v),v!=null){var k=this.rangeToNative(v);this.setNativeRange.apply(this,i(k).concat([h]))}else this.setNativeRange(null);this.update(d)}},{key:"update",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,h=this.lastRange,d=this.getRange(),k=P(d,2),_=k[0],q=k[1];if(this.lastRange=_,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(h,this.lastRange)){var D;!this.composing&&q!=null&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var C=[u.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),v];if((D=this.emitter).emit.apply(D,[u.default.events.EDITOR_CHANGE].concat(C)),v!==u.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,C)}}}}]),b}();function g(b,N){try{N.parentNode}catch(v){return!1}return N instanceof Text&&(N=N.parentNode),b.contains(N)}O.Range=s,O.default=A},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},w=p(0),m=y(w);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return P(l,[{key:"insertInto",value:function(r,i){r.children.length===0?T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(m.default.Embed);e.blotName="break",e.tagName="BR",O.default=e},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(44),w=p(30),m=p(1),y=function(o){P(t,o);function t(e){var u=o.call(this,e)||this;return u.build(),u}return t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new T.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=c(u);e.insertBefore(l,e.children.head||void 0)}catch(a){if(a instanceof m.ParchmentError)return;throw a}})},t.prototype.deleteAt=function(e,u){if(e===0&&u===this.length())return this.remove();this.children.forEachAt(e,u,function(l,a,r){l.deleteAt(a,r)})},t.prototype.descendant=function(e,u){var l=this.children.find(u),a=l[0],r=l[1];return e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e?[a,r]:a instanceof t?a.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,u,l){u===void 0&&(u=0),l===void 0&&(l=Number.MAX_VALUE);var a=[],r=l;return this.children.forEachAt(u,l,function(i,f,n){(e.blotName==null&&e(i)||e.blotName!=null&&i instanceof e)&&a.push(i),i instanceof t&&(a=a.concat(i.descendants(e,f,r))),r-=n}),a},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,u,l,a){this.children.forEachAt(e,u,function(r,i,f){r.formatAt(i,f,l,a)})},t.prototype.insertAt=function(e,u,l){var a=this.children.find(e),r=a[0],i=a[1];if(r)r.insertAt(i,u,l);else{var f=l==null?m.create("text",u):m.create(u,l);this.appendChild(f)}},t.prototype.insertBefore=function(e,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(l){return e instanceof l}))throw new m.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,u)},t.prototype.length=function(){return this.children.reduce(function(e,u){return e+u.length()},0)},t.prototype.moveChildren=function(e,u){this.children.forEach(function(l){e.insertBefore(l,u)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var u=m.create(this.statics.defaultChild);this.appendChild(u),u.optimize(e)}else this.remove()},t.prototype.path=function(e,u){u===void 0&&(u=!1);var l=this.children.find(e,u),a=l[0],r=l[1],i=[[this,e]];return a instanceof t?i.concat(a.path(r,u)):(a!=null&&i.push([a,r]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),o.prototype.replace.call(this,e)},t.prototype.split=function(e,u){if(u===void 0&&(u=!1),!u){if(e===0)return this;if(e===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(e,this.length(),function(a,r,i){a=a.split(r,u),l.appendChild(a)}),l},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,u){var l=this,a=[],r=[];e.forEach(function(i){i.target===l.domNode&&i.type==="childList"&&(a.push.apply(a,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=m.find(i);f!=null&&(f.domNode.parentNode==null||f.domNode.parentNode===l.domNode)&&f.detach()}}),a.filter(function(i){return i.parentNode==l.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;i.nextSibling!=null&&(f=m.find(i.nextSibling));var n=c(i);(n.next!=f||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,f||void 0))})},t}(w.default);function c(o){var t=m.find(o);if(t==null)try{t=m.create(o)}catch(e){t=m.create(m.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){t.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}O.default=y},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(12),w=p(31),m=p(17),y=p(1),c=function(o){P(t,o);function t(e){var u=o.call(this,e)||this;return u.attributes=new w.default(u.domNode),u}return t.formats=function(e){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()},t.prototype.format=function(e,u){var l=y.query(e);l instanceof T.default?this.attributes.attribute(l,u):u&&l!=null&&(e!==this.statics.blotName||this.formats()[e]!==u)&&this.replaceWith(e,u)},t.prototype.formats=function(){var e=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(e[this.statics.blotName]=u),e},t.prototype.replaceWith=function(e,u){var l=o.prototype.replaceWith.call(this,e,u);return this.attributes.copy(l),l},t.prototype.update=function(e,u){var l=this;o.prototype.update.call(this,e,u),e.some(function(a){return a.target===l.domNode&&a.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(e,u){var l=o.prototype.wrap.call(this,e,u);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(m.default);O.default=c},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(30),w=p(1),m=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.value=function(o){return!0},c.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},c.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},c.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},c.scope=w.Scope.INLINE_BLOT,c}(T.default);O.default=m},function(B,O,p){var P=p(11),T=p(3),w={attributes:{compose:function(y,c,o){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var t=T(!0,{},c);o||(t=Object.keys(t).reduce(function(u,l){return t[l]!=null&&(u[l]=t[l]),u},{}));for(var e in y)y[e]!==void 0&&c[e]===void 0&&(t[e]=y[e]);return Object.keys(t).length>0?t:void 0},diff:function(y,c){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var o=Object.keys(y).concat(Object.keys(c)).reduce(function(t,e){return P(y[e],c[e])||(t[e]=c[e]===void 0?null:c[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(y,c,o){if(typeof y!="object")return c;if(typeof c=="object"){if(!o)return c;var t=Object.keys(c).reduce(function(e,u){return y[u]===void 0&&(e[u]=c[u]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(y){return new m(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function m(y){this.ops=y,this.index=0,this.offset=0}m.prototype.hasNext=function(){return this.peekLength()<1/0},m.prototype.next=function(y){y||(y=1/0);var c=this.ops[this.index];if(c){var o=this.offset,t=w.length(c);if(y>=t-o?(y=t-o,this.index+=1,this.offset=0):this.offset+=y,typeof c.delete=="number")return{delete:y};var e={};return c.attributes&&(e.attributes=c.attributes),typeof c.retain=="number"?e.retain=y:typeof c.insert=="string"?e.insert=c.insert.substr(o,y):e.insert=c.insert,e}else return{retain:1/0}},m.prototype.peek=function(){return this.ops[this.index]},m.prototype.peekLength=function(){return this.ops[this.index]?w.length(this.ops[this.index])-this.offset:1/0},m.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},m.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var y=this.offset,c=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=y,this.index=c,[o].concat(t)}else return[]},B.exports=w},function(B,O){var p=function(){"use strict";function P(l,a){return a!=null&&l instanceof a}var T;try{T=Map}catch(l){T=function(){}}var w;try{w=Set}catch(l){w=function(){}}var m;try{m=Promise}catch(l){m=function(){}}function y(l,a,r,i,f){typeof a=="object"&&(r=a.depth,i=a.prototype,f=a.includeNonEnumerable,a=a.circular);var n=[],s=[],A=typeof ct!="undefined";typeof a=="undefined"&&(a=!0),typeof r=="undefined"&&(r=1/0);function g(b,N){if(b===null)return null;if(N===0)return b;var v,h;if(typeof b!="object")return b;if(P(b,T))v=new T;else if(P(b,w))v=new w;else if(P(b,m))v=new m(function(R,E){b.then(function(S){R(g(S,N-1))},function(S){E(g(S,N-1))})});else if(y.__isArray(b))v=[];else if(y.__isRegExp(b))v=new RegExp(b.source,u(b)),b.lastIndex&&(v.lastIndex=b.lastIndex);else if(y.__isDate(b))v=new Date(b.getTime());else{if(A&&ct.isBuffer(b))return ct.allocUnsafe?v=ct.allocUnsafe(b.length):v=new ct(b.length),b.copy(v),v;P(b,Error)?v=Object.create(b):typeof i=="undefined"?(h=Object.getPrototypeOf(b),v=Object.create(h)):(v=Object.create(i),h=i)}if(a){var d=n.indexOf(b);if(d!=-1)return s[d];n.push(b),s.push(v)}P(b,T)&&b.forEach(function(R,E){var S=g(E,N-1),L=g(R,N-1);v.set(S,L)}),P(b,w)&&b.forEach(function(R){var E=g(R,N-1);v.add(E)});for(var k in b){var _;h&&(_=Object.getOwnPropertyDescriptor(h,k)),!(_&&_.set==null)&&(v[k]=g(b[k],N-1))}if(Object.getOwnPropertySymbols)for(var q=Object.getOwnPropertySymbols(b),k=0;k<q.length;k++){var D=q[k],C=Object.getOwnPropertyDescriptor(b,D);C&&!C.enumerable&&!f||(v[D]=g(b[D],N-1),C.enumerable||Object.defineProperty(v,D,{enumerable:!1}))}if(f)for(var Z=Object.getOwnPropertyNames(b),k=0;k<Z.length;k++){var I=Z[k],C=Object.getOwnPropertyDescriptor(b,I);C&&C.enumerable||(v[I]=g(b[I],N-1),Object.defineProperty(v,I,{enumerable:!1}))}return v}return g(l,r)}y.clonePrototype=function(a){if(a===null)return null;var r=function(){};return r.prototype=a,new r};function c(l){return Object.prototype.toString.call(l)}y.__objToStr=c;function o(l){return typeof l=="object"&&c(l)==="[object Date]"}y.__isDate=o;function t(l){return typeof l=="object"&&c(l)==="[object Array]"}y.__isArray=t;function e(l){return typeof l=="object"&&c(l)==="[object RegExp]"}y.__isRegExp=e;function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return y.__getRegExpFlags=u,y}();typeof B=="object"&&B.exports&&(B.exports=p)},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function v(h,d){var k=[],_=!0,q=!1,D=void 0;try{for(var C=h[Symbol.iterator](),Z;!(_=(Z=C.next()).done)&&(k.push(Z.value),!(d&&k.length===d));_=!0);}catch(I){q=!0,D=I}finally{try{!_&&C.return&&C.return()}finally{if(q)throw D}}return k}return function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return v(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function v(h,d){for(var k=0;k<d.length;k++){var _=d[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,_.key,_)}}return function(h,d,k){return d&&v(h.prototype,d),k&&v(h,k),h}}(),w=function v(h,d,k){h===null&&(h=Function.prototype);var _=Object.getOwnPropertyDescriptor(h,d);if(_===void 0){var q=Object.getPrototypeOf(h);return q===null?void 0:v(q,d,k)}else{if("value"in _)return _.value;var D=_.get;return D===void 0?void 0:D.call(k)}},m=p(0),y=n(m),c=p(8),o=n(c),t=p(4),e=n(t),u=p(16),l=n(u),a=p(13),r=n(a),i=p(25),f=n(i);function n(v){return v&&v.__esModule?v:{default:v}}function s(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function A(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function g(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}function b(v){return v instanceof e.default||v instanceof t.BlockEmbed}var N=function(v){g(h,v);function h(d,k){s(this,h);var _=A(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d));return _.emitter=k.emitter,Array.isArray(k.whitelist)&&(_.whitelist=k.whitelist.reduce(function(q,D){return q[D]=!0,q},{})),_.domNode.addEventListener("DOMNodeInserted",function(){}),_.optimize(),_.enable(),_}return T(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,_){var q=this.line(k),D=P(q,2),C=D[0],Z=D[1],I=this.line(k+_),R=P(I,1),E=R[0];if(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,k,_),E!=null&&C!==E&&Z>0){if(C instanceof t.BlockEmbed||E instanceof t.BlockEmbed){this.optimize();return}if(C instanceof r.default){var S=C.newlineIndex(C.length(),!0);if(S>-1&&(C=C.split(S+1),C===E)){this.optimize();return}}else if(E instanceof r.default){var L=E.newlineIndex(0);L>-1&&E.split(L+1)}var F=E.children.head instanceof l.default?null:E.children.head;C.moveChildren(E,F),C.remove()}this.optimize()}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",k)}},{key:"formatAt",value:function(k,_,q,D){this.whitelist!=null&&!this.whitelist[q]||(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,k,_,q,D),this.optimize())}},{key:"insertAt",value:function(k,_,q){if(!(q!=null&&this.whitelist!=null&&!this.whitelist[_])){if(k>=this.length())if(q==null||y.default.query(_,y.default.Scope.BLOCK)==null){var D=y.default.create(this.statics.defaultChild);this.appendChild(D),q==null&&_.endsWith(`
21
+ `);return R.insert(L,E.attributes)}return R.push(E)},new y.default)}O.default=D},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var P=function(){function b(N,v){var h=[],d=!0,k=!1,_=void 0;try{for(var q=N[Symbol.iterator](),D;!(d=(D=q.next()).done)&&(h.push(D.value),!(v&&h.length===v));d=!0);}catch(C){k=!0,_=C}finally{try{!d&&q.return&&q.return()}finally{if(k)throw _}}return h}return function(N,v){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return b(N,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function b(N,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(N,d.key,d)}}return function(N,v,h){return v&&b(N.prototype,v),h&&b(N,h),N}}(),w=p(0),m=r(w),y=p(21),c=r(y),o=p(11),t=r(o),e=p(8),u=r(e),l=p(10),a=r(l);function r(b){return b&&b.__esModule?b:{default:b}}function i(b){if(Array.isArray(b)){for(var N=0,v=Array(b.length);N<b.length;N++)v[N]=b[N];return v}else return Array.from(b)}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}var n=(0,a.default)("quill:selection"),s=function b(N){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,b),this.index=N,this.length=v},A=function(){function b(N,v){var h=this;f(this,b),this.emitter=v,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=m.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){h.mouseDown||setTimeout(h.update.bind(h,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(d,k){d===u.default.events.TEXT_CHANGE&&k.length()>0&&h.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(h.hasFocus()){var d=h.getNativeRange();d!=null&&d.start.node!==h.cursor.textNode&&h.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(d.start.node,d.start.offset,d.end.node,d.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(d,k){if(k.range){var _=k.range,q=_.startNode,D=_.startOffset,C=_.endNode,Z=_.endOffset;h.setNativeRange(q,D,C,Z)}}),this.update(u.default.sources.SILENT)}return T(b,[{key:"handleComposition",value:function(){var v=this;this.root.addEventListener("compositionstart",function(){v.composing=!0}),this.root.addEventListener("compositionend",function(){if(v.composing=!1,v.cursor.parent){var h=v.cursor.restore();if(!h)return;setTimeout(function(){v.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var v=this;this.emitter.listenDOM("mousedown",document.body,function(){v.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){v.mouseDown=!1,v.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(v,h){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[v])){this.scroll.update();var d=this.getNativeRange();if(!(d==null||!d.native.collapsed||m.default.query(v,m.default.Scope.BLOCK))){if(d.start.node!==this.cursor.textNode){var k=m.default.find(d.start.node,!1);if(k==null)return;if(k instanceof m.default.Leaf){var _=k.split(d.start.offset);k.parent.insertBefore(this.cursor,_)}else k.insertBefore(this.cursor,d.start.node);this.cursor.attach()}this.cursor.format(v,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d=this.scroll.length();v=Math.min(v,d-1),h=Math.min(v+h,d-1)-v;var k=void 0,_=this.scroll.leaf(v),q=P(_,2),D=q[0],C=q[1];if(D==null)return null;var Z=D.position(C,!0),I=P(Z,2);k=I[0],C=I[1];var R=document.createRange();if(h>0){R.setStart(k,C);var E=this.scroll.leaf(v+h),S=P(E,2);if(D=S[0],C=S[1],D==null)return null;var L=D.position(C,!0),F=P(L,2);return k=F[0],C=F[1],R.setEnd(k,C),R.getBoundingClientRect()}else{var M="left",x=void 0;return k instanceof Text?(C<k.data.length?(R.setStart(k,C),R.setEnd(k,C+1)):(R.setStart(k,C-1),R.setEnd(k,C),M="right"),x=R.getBoundingClientRect()):(x=D.domNode.getBoundingClientRect(),C>0&&(M="right")),{bottom:x.top+x.height,height:x.height,left:x[M],right:x[M],top:x.top,width:0}}}},{key:"getNativeRange",value:function(){var v=document.getSelection();if(v==null||v.rangeCount<=0)return null;var h=v.getRangeAt(0);if(h==null)return null;var d=this.normalizeNative(h);return n.info("getNativeRange",d),d}},{key:"getRange",value:function(){var v=this.getNativeRange();if(v==null)return[null,null];var h=this.normalizedToRange(v);return[h,v]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(v){var h=this,d=[[v.start.node,v.start.offset]];v.native.collapsed||d.push([v.end.node,v.end.offset]);var k=d.map(function(D){var C=P(D,2),Z=C[0],I=C[1],R=m.default.find(Z,!0),E=R.offset(h.scroll);return I===0?E:R instanceof m.default.Container?E+R.length():E+R.index(Z,I)}),_=Math.min(Math.max.apply(Math,i(k)),this.scroll.length()-1),q=Math.min.apply(Math,[_].concat(i(k)));return new s(q,_-q)}},{key:"normalizeNative",value:function(v){if(!g(this.root,v.startContainer)||!v.collapsed&&!g(this.root,v.endContainer))return null;var h={start:{node:v.startContainer,offset:v.startOffset},end:{node:v.endContainer,offset:v.endOffset},native:v};return[h.start,h.end].forEach(function(d){for(var k=d.node,_=d.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>_)k=k.childNodes[_],_=0;else if(k.childNodes.length===_)k=k.lastChild,_=k instanceof Text?k.data.length:k.childNodes.length+1;else break;d.node=k,d.offset=_}),h}},{key:"rangeToNative",value:function(v){var h=this,d=v.collapsed?[v.index]:[v.index,v.index+v.length],k=[],_=this.scroll.length();return d.forEach(function(q,D){q=Math.min(_-1,q);var C=void 0,Z=h.scroll.leaf(q),I=P(Z,2),R=I[0],E=I[1],S=R.position(E,D!==0),L=P(S,2);C=L[0],E=L[1],k.push(C,E)}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(v){var h=this.lastRange;if(h!=null){var d=this.getBounds(h.index,h.length);if(d!=null){var k=this.scroll.length()-1,_=this.scroll.line(Math.min(h.index,k)),q=P(_,1),D=q[0],C=D;if(h.length>0){var Z=this.scroll.line(Math.min(h.index+h.length,k)),I=P(Z,1);C=I[0]}if(!(D==null||C==null)){var R=v.getBoundingClientRect();d.top<R.top?v.scrollTop-=R.top-d.top:d.bottom>R.bottom&&(v.scrollTop+=d.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(v,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",v,h,d,k),!(v!=null&&(this.root.parentNode==null||v.parentNode==null||d.parentNode==null))){var q=document.getSelection();if(q!=null)if(v!=null){this.hasFocus()||this.root.focus();var D=(this.getNativeRange()||{}).native;if(D==null||_||v!==D.startContainer||h!==D.startOffset||d!==D.endContainer||k!==D.endOffset){v.tagName=="BR"&&(h=[].indexOf.call(v.parentNode.childNodes,v),v=v.parentNode),d.tagName=="BR"&&(k=[].indexOf.call(d.parentNode.childNodes,d),d=d.parentNode);var C=document.createRange();C.setStart(v,h),C.setEnd(d,k),q.removeAllRanges(),q.addRange(C)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof h=="string"&&(d=h,h=!1),n.info("setRange",v),v!=null){var k=this.rangeToNative(v);this.setNativeRange.apply(this,i(k).concat([h]))}else this.setNativeRange(null);this.update(d)}},{key:"update",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,h=this.lastRange,d=this.getRange(),k=P(d,2),_=k[0],q=k[1];if(this.lastRange=_,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(h,this.lastRange)){var D;!this.composing&&q!=null&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var C=[u.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),v];if((D=this.emitter).emit.apply(D,[u.default.events.EDITOR_CHANGE].concat(C)),v!==u.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,C)}}}}]),b}();function g(b,N){try{N.parentNode}catch{return!1}return N instanceof Text&&(N=N.parentNode),b.contains(N)}O.Range=s,O.default=A},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(i===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},w=p(0),m=y(w);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return P(l,[{key:"insertInto",value:function(r,i){r.children.length===0?T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(m.default.Embed);e.blotName="break",e.tagName="BR",O.default=e},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(44),w=p(30),m=p(1),y=function(o){P(t,o);function t(e){var u=o.call(this,e)||this;return u.build(),u}return t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new T.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=c(u);e.insertBefore(l,e.children.head||void 0)}catch(a){if(a instanceof m.ParchmentError)return;throw a}})},t.prototype.deleteAt=function(e,u){if(e===0&&u===this.length())return this.remove();this.children.forEachAt(e,u,function(l,a,r){l.deleteAt(a,r)})},t.prototype.descendant=function(e,u){var l=this.children.find(u),a=l[0],r=l[1];return e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e?[a,r]:a instanceof t?a.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,u,l){u===void 0&&(u=0),l===void 0&&(l=Number.MAX_VALUE);var a=[],r=l;return this.children.forEachAt(u,l,function(i,f,n){(e.blotName==null&&e(i)||e.blotName!=null&&i instanceof e)&&a.push(i),i instanceof t&&(a=a.concat(i.descendants(e,f,r))),r-=n}),a},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,u,l,a){this.children.forEachAt(e,u,function(r,i,f){r.formatAt(i,f,l,a)})},t.prototype.insertAt=function(e,u,l){var a=this.children.find(e),r=a[0],i=a[1];if(r)r.insertAt(i,u,l);else{var f=l==null?m.create("text",u):m.create(u,l);this.appendChild(f)}},t.prototype.insertBefore=function(e,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(l){return e instanceof l}))throw new m.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,u)},t.prototype.length=function(){return this.children.reduce(function(e,u){return e+u.length()},0)},t.prototype.moveChildren=function(e,u){this.children.forEach(function(l){e.insertBefore(l,u)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var u=m.create(this.statics.defaultChild);this.appendChild(u),u.optimize(e)}else this.remove()},t.prototype.path=function(e,u){u===void 0&&(u=!1);var l=this.children.find(e,u),a=l[0],r=l[1],i=[[this,e]];return a instanceof t?i.concat(a.path(r,u)):(a!=null&&i.push([a,r]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),o.prototype.replace.call(this,e)},t.prototype.split=function(e,u){if(u===void 0&&(u=!1),!u){if(e===0)return this;if(e===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(e,this.length(),function(a,r,i){a=a.split(r,u),l.appendChild(a)}),l},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,u){var l=this,a=[],r=[];e.forEach(function(i){i.target===l.domNode&&i.type==="childList"&&(a.push.apply(a,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=m.find(i);f!=null&&(f.domNode.parentNode==null||f.domNode.parentNode===l.domNode)&&f.detach()}}),a.filter(function(i){return i.parentNode==l.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;i.nextSibling!=null&&(f=m.find(i.nextSibling));var n=c(i);(n.next!=f||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,f||void 0))})},t}(w.default);function c(o){var t=m.find(o);if(t==null)try{t=m.create(o)}catch{t=m.create(m.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){t.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}O.default=y},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(12),w=p(31),m=p(17),y=p(1),c=function(o){P(t,o);function t(e){var u=o.call(this,e)||this;return u.attributes=new w.default(u.domNode),u}return t.formats=function(e){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()},t.prototype.format=function(e,u){var l=y.query(e);l instanceof T.default?this.attributes.attribute(l,u):u&&l!=null&&(e!==this.statics.blotName||this.formats()[e]!==u)&&this.replaceWith(e,u)},t.prototype.formats=function(){var e=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(e[this.statics.blotName]=u),e},t.prototype.replaceWith=function(e,u){var l=o.prototype.replaceWith.call(this,e,u);return this.attributes.copy(l),l},t.prototype.update=function(e,u){var l=this;o.prototype.update.call(this,e,u),e.some(function(a){return a.target===l.domNode&&a.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(e,u){var l=o.prototype.wrap.call(this,e,u);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(m.default);O.default=c},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(30),w=p(1),m=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.value=function(o){return!0},c.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},c.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},c.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},c.scope=w.Scope.INLINE_BLOT,c}(T.default);O.default=m},function(B,O,p){var P=p(11),T=p(3),w={attributes:{compose:function(y,c,o){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var t=T(!0,{},c);o||(t=Object.keys(t).reduce(function(u,l){return t[l]!=null&&(u[l]=t[l]),u},{}));for(var e in y)y[e]!==void 0&&c[e]===void 0&&(t[e]=y[e]);return Object.keys(t).length>0?t:void 0},diff:function(y,c){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var o=Object.keys(y).concat(Object.keys(c)).reduce(function(t,e){return P(y[e],c[e])||(t[e]=c[e]===void 0?null:c[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(y,c,o){if(typeof y!="object")return c;if(typeof c=="object"){if(!o)return c;var t=Object.keys(c).reduce(function(e,u){return y[u]===void 0&&(e[u]=c[u]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(y){return new m(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function m(y){this.ops=y,this.index=0,this.offset=0}m.prototype.hasNext=function(){return this.peekLength()<1/0},m.prototype.next=function(y){y||(y=1/0);var c=this.ops[this.index];if(c){var o=this.offset,t=w.length(c);if(y>=t-o?(y=t-o,this.index+=1,this.offset=0):this.offset+=y,typeof c.delete=="number")return{delete:y};var e={};return c.attributes&&(e.attributes=c.attributes),typeof c.retain=="number"?e.retain=y:typeof c.insert=="string"?e.insert=c.insert.substr(o,y):e.insert=c.insert,e}else return{retain:1/0}},m.prototype.peek=function(){return this.ops[this.index]},m.prototype.peekLength=function(){return this.ops[this.index]?w.length(this.ops[this.index])-this.offset:1/0},m.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},m.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var y=this.offset,c=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=y,this.index=c,[o].concat(t)}else return[]},B.exports=w},function(B,O){var p=function(){"use strict";function P(l,a){return a!=null&&l instanceof a}var T;try{T=Map}catch{T=function(){}}var w;try{w=Set}catch{w=function(){}}var m;try{m=Promise}catch{m=function(){}}function y(l,a,r,i,f){typeof a=="object"&&(r=a.depth,i=a.prototype,f=a.includeNonEnumerable,a=a.circular);var n=[],s=[],A=typeof ct<"u";typeof a>"u"&&(a=!0),typeof r>"u"&&(r=1/0);function g(b,N){if(b===null)return null;if(N===0)return b;var v,h;if(typeof b!="object")return b;if(P(b,T))v=new T;else if(P(b,w))v=new w;else if(P(b,m))v=new m(function(R,E){b.then(function(S){R(g(S,N-1))},function(S){E(g(S,N-1))})});else if(y.__isArray(b))v=[];else if(y.__isRegExp(b))v=new RegExp(b.source,u(b)),b.lastIndex&&(v.lastIndex=b.lastIndex);else if(y.__isDate(b))v=new Date(b.getTime());else{if(A&&ct.isBuffer(b))return ct.allocUnsafe?v=ct.allocUnsafe(b.length):v=new ct(b.length),b.copy(v),v;P(b,Error)?v=Object.create(b):typeof i>"u"?(h=Object.getPrototypeOf(b),v=Object.create(h)):(v=Object.create(i),h=i)}if(a){var d=n.indexOf(b);if(d!=-1)return s[d];n.push(b),s.push(v)}P(b,T)&&b.forEach(function(R,E){var S=g(E,N-1),L=g(R,N-1);v.set(S,L)}),P(b,w)&&b.forEach(function(R){var E=g(R,N-1);v.add(E)});for(var k in b){var _;h&&(_=Object.getOwnPropertyDescriptor(h,k)),!(_&&_.set==null)&&(v[k]=g(b[k],N-1))}if(Object.getOwnPropertySymbols)for(var q=Object.getOwnPropertySymbols(b),k=0;k<q.length;k++){var D=q[k],C=Object.getOwnPropertyDescriptor(b,D);C&&!C.enumerable&&!f||(v[D]=g(b[D],N-1),C.enumerable||Object.defineProperty(v,D,{enumerable:!1}))}if(f)for(var Z=Object.getOwnPropertyNames(b),k=0;k<Z.length;k++){var I=Z[k],C=Object.getOwnPropertyDescriptor(b,I);C&&C.enumerable||(v[I]=g(b[I],N-1),Object.defineProperty(v,I,{enumerable:!1}))}return v}return g(l,r)}y.clonePrototype=function(a){if(a===null)return null;var r=function(){};return r.prototype=a,new r};function c(l){return Object.prototype.toString.call(l)}y.__objToStr=c;function o(l){return typeof l=="object"&&c(l)==="[object Date]"}y.__isDate=o;function t(l){return typeof l=="object"&&c(l)==="[object Array]"}y.__isArray=t;function e(l){return typeof l=="object"&&c(l)==="[object RegExp]"}y.__isRegExp=e;function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return y.__getRegExpFlags=u,y}();typeof B=="object"&&B.exports&&(B.exports=p)},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function v(h,d){var k=[],_=!0,q=!1,D=void 0;try{for(var C=h[Symbol.iterator](),Z;!(_=(Z=C.next()).done)&&(k.push(Z.value),!(d&&k.length===d));_=!0);}catch(I){q=!0,D=I}finally{try{!_&&C.return&&C.return()}finally{if(q)throw D}}return k}return function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return v(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function v(h,d){for(var k=0;k<d.length;k++){var _=d[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,_.key,_)}}return function(h,d,k){return d&&v(h.prototype,d),k&&v(h,k),h}}(),w=function v(h,d,k){h===null&&(h=Function.prototype);var _=Object.getOwnPropertyDescriptor(h,d);if(_===void 0){var q=Object.getPrototypeOf(h);return q===null?void 0:v(q,d,k)}else{if("value"in _)return _.value;var D=_.get;return D===void 0?void 0:D.call(k)}},m=p(0),y=n(m),c=p(8),o=n(c),t=p(4),e=n(t),u=p(16),l=n(u),a=p(13),r=n(a),i=p(25),f=n(i);function n(v){return v&&v.__esModule?v:{default:v}}function s(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function A(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function g(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}function b(v){return v instanceof e.default||v instanceof t.BlockEmbed}var N=function(v){g(h,v);function h(d,k){s(this,h);var _=A(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d));return _.emitter=k.emitter,Array.isArray(k.whitelist)&&(_.whitelist=k.whitelist.reduce(function(q,D){return q[D]=!0,q},{})),_.domNode.addEventListener("DOMNodeInserted",function(){}),_.optimize(),_.enable(),_}return T(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,_){var q=this.line(k),D=P(q,2),C=D[0],Z=D[1],I=this.line(k+_),R=P(I,1),E=R[0];if(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,k,_),E!=null&&C!==E&&Z>0){if(C instanceof t.BlockEmbed||E instanceof t.BlockEmbed){this.optimize();return}if(C instanceof r.default){var S=C.newlineIndex(C.length(),!0);if(S>-1&&(C=C.split(S+1),C===E)){this.optimize();return}}else if(E instanceof r.default){var L=E.newlineIndex(0);L>-1&&E.split(L+1)}var F=E.children.head instanceof l.default?null:E.children.head;C.moveChildren(E,F),C.remove()}this.optimize()}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",k)}},{key:"formatAt",value:function(k,_,q,D){this.whitelist!=null&&!this.whitelist[q]||(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,k,_,q,D),this.optimize())}},{key:"insertAt",value:function(k,_,q){if(!(q!=null&&this.whitelist!=null&&!this.whitelist[_])){if(k>=this.length())if(q==null||y.default.query(_,y.default.Scope.BLOCK)==null){var D=y.default.create(this.statics.defaultChild);this.appendChild(D),q==null&&_.endsWith(`
22
22
  `)&&(_=_.slice(0,-1)),D.insertAt(0,_,q)}else{var C=y.default.create(_,q);this.appendChild(C)}else w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,k,_,q);this.optimize()}}},{key:"insertBefore",value:function(k,_){if(k.statics.scope===y.default.Scope.INLINE_BLOT){var q=y.default.create(this.statics.defaultChild);q.appendChild(k),k=q}w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,k,_)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(b,k)}},{key:"lines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,q=function D(C,Z,I){var R=[],E=I;return C.children.forEachAt(Z,I,function(S,L,F){b(S)?R.push(S):S instanceof y.default.Container&&(R=R.concat(D(S,L,E))),E-=F}),R};return q(this,k,_)}},{key:"optimize",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,k,_),k.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,k,_))}},{key:"path",value:function(k){return w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(this.batch!==!0){var _=o.default.sources.USER;typeof k=="string"&&(_=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,_,k),w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,_,k)}}}]),h}(y.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[e.default,t.BlockEmbed,f.default],O.default=N},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},T=function(){function x(j,U){var H=[],V=!0,Y=!1,X=void 0;try{for(var Q=j[Symbol.iterator](),nt;!(V=(nt=Q.next()).done)&&(H.push(nt.value),!(U&&H.length===U));V=!0);}catch(rt){Y=!0,X=rt}finally{try{!V&&Q.return&&Q.return()}finally{if(Y)throw X}}return H}return function(j,U){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return x(j,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function x(j,U){for(var H=0;H<U.length;H++){var V=U[H];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(j,V.key,V)}}return function(j,U,H){return U&&x(j.prototype,U),H&&x(j,H),j}}(),m=p(21),y=v(m),c=p(11),o=v(c),t=p(3),e=v(t),u=p(2),l=v(u),a=p(20),r=v(a),i=p(0),f=v(i),n=p(5),s=v(n),A=p(10),g=v(A),b=p(9),N=v(b);function v(x){return x&&x.__esModule?x:{default:x}}function h(x,j,U){return j in x?Object.defineProperty(x,j,{value:U,enumerable:!0,configurable:!0,writable:!0}):x[j]=U,x}function d(x,j){if(!(x instanceof j))throw new TypeError("Cannot call a class as a function")}function k(x,j){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:x}function _(x,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);x.prototype=Object.create(j&&j.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(x,j):x.__proto__=j)}var q=(0,g.default)("quill:keyboard"),D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(x){_(j,x),w(j,null,[{key:"match",value:function(H,V){return V=M(V),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Y){return!!V[Y]!==H[Y]&&V[Y]!==null})?!1:V.key===(H.which||H.keyCode)}}]);function j(U,H){d(this,j);var V=k(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,U,H));return V.bindings={},Object.keys(V.options.bindings).forEach(function(Y){Y==="list autofill"&&U.scroll.whitelist!=null&&!U.scroll.whitelist.list||V.options.bindings[Y]&&V.addBinding(V.options.bindings[Y])}),V.addBinding({key:j.keys.ENTER,shiftKey:null},S),V.addBinding({key:j.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0},I),V.addBinding({key:j.keys.DELETE},{collapsed:!0},R)):(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},I),V.addBinding({key:j.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),V.addBinding({key:j.keys.BACKSPACE},{collapsed:!1},E),V.addBinding({key:j.keys.DELETE},{collapsed:!1},E),V.addBinding({key:j.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},I),V.listen(),V}return w(j,[{key:"addBinding",value:function(H){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},X=M(H);if(X==null||X.key==null)return q.warn("Attempted to add invalid keyboard binding",X);typeof V=="function"&&(V={handler:V}),typeof Y=="function"&&(Y={handler:Y}),X=(0,e.default)(X,V,Y),this.bindings[X.key]=this.bindings[X.key]||[],this.bindings[X.key].push(X)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var Y=V.which||V.keyCode,X=(H.bindings[Y]||[]).filter(function(ot){return j.match(V,ot)});if(X.length!==0){var Q=H.quill.getSelection();if(!(Q==null||!H.quill.hasFocus())){var nt=H.quill.getLine(Q.index),rt=T(nt,2),at=rt[0],lt=rt[1],z=H.quill.getLeaf(Q.index),K=T(z,2),$=K[0],G=K[1],W=Q.length===0?[$,G]:H.quill.getLeaf(Q.index+Q.length),J=T(W,2),tt=J[0],et=J[1],ut=$ instanceof f.default.Text?$.value().slice(0,G):"",ft=tt instanceof f.default.Text?tt.value().slice(et):"",it={collapsed:Q.length===0,empty:Q.length===0&&at.length()<=1,format:H.quill.getFormat(Q),offset:lt,prefix:ut,suffix:ft},vt=X.some(function(ot){if(ot.collapsed!=null&&ot.collapsed!==it.collapsed||ot.empty!=null&&ot.empty!==it.empty||ot.offset!=null&&ot.offset!==it.offset)return!1;if(Array.isArray(ot.format)){if(ot.format.every(function(st){return it.format[st]==null}))return!1}else if(P(ot.format)==="object"&&!Object.keys(ot.format).every(function(st){return ot.format[st]===!0?it.format[st]!=null:ot.format[st]===!1?it.format[st]==null:(0,o.default)(ot.format[st],it.format[st])}))return!1;return ot.prefix!=null&&!ot.prefix.test(it.prefix)||ot.suffix!=null&&!ot.suffix.test(it.suffix)?!1:ot.handler.call(H,Q,it)!==!0});vt&&V.preventDefault()}}}})}}]),j}(N.default);C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","+1",s.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","-1",s.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(j,U){U.format.indent!=null?this.quill.format("indent","-1",s.default.sources.USER):U.format.list!=null&&this.quill.format("list",!1,s.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(j){this.quill.deleteText(j.index-1,1,s.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(j){this.quill.history.cutoff();var U=new l.default().retain(j.index).delete(j.length).insert(" ");this.quill.updateContents(U,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index+1,s.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(j,U){this.quill.format("list",!1,s.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,s.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(j){var U=this.quill.getLine(j.index),H=T(U,2),V=H[0],Y=H[1],X=(0,e.default)({},V.formats(),{list:"checked"}),Q=new l.default().retain(j.index).insert(`
23
23
  `,X).retain(V.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(j,U){var H=this.quill.getLine(j.index),V=T(H,2),Y=V[0],X=V[1],Q=new l.default().retain(j.index).insert(`
24
24
  `,U.format).retain(Y.length()-X-1).retain(1,{header:null});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(j,U){var H=U.prefix.length,V=this.quill.getLine(j.index),Y=T(V,2),X=Y[0],Q=Y[1];if(Q>H)return!0;var nt=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":nt="unchecked";break;case"[x]":nt="checked";break;case"-":case"*":nt="bullet";break;default:nt="ordered"}this.quill.insertText(j.index," ",s.default.sources.USER),this.quill.history.cutoff();var rt=new l.default().retain(j.index-Q).delete(H+1).retain(X.length()-2-Q).retain(1,{list:nt});this.quill.updateContents(rt,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index-H,s.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(j){var U=this.quill.getLine(j.index),H=T(U,2),V=H[0],Y=H[1],X=new l.default().retain(j.index+V.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(X,s.default.sources.USER)}},"embed left":Z(C.keys.LEFT,!1),"embed left shift":Z(C.keys.LEFT,!0),"embed right":Z(C.keys.RIGHT,!1),"embed right shift":Z(C.keys.RIGHT,!0)}};function Z(x,j){var U,H=x===C.keys.LEFT?"prefix":"suffix";return U={key:x,shiftKey:j,altKey:null},h(U,H,/^$/),h(U,"handler",function(Y){var X=Y.index;x===C.keys.RIGHT&&(X+=Y.length+1);var Q=this.quill.getLeaf(X),nt=T(Q,1),rt=nt[0];return rt instanceof f.default.Embed?(x===C.keys.LEFT?j?this.quill.setSelection(Y.index-1,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index-1,s.default.sources.USER):j?this.quill.setSelection(Y.index,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index+Y.length+1,s.default.sources.USER),!1):!0}),U}function I(x,j){if(!(x.index===0||this.quill.getLength()<=1)){var U=this.quill.getLine(x.index),H=T(U,1),V=H[0],Y={};if(j.offset===0){var X=this.quill.getLine(x.index-1),Q=T(X,1),nt=Q[0];if(nt!=null&&nt.length()>1){var rt=V.formats(),at=this.quill.getFormat(x.index-1,1);Y=r.default.attributes.diff(rt,at)||{}}}var lt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(j.prefix)?2:1;this.quill.deleteText(x.index-lt,lt,s.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(x.index-lt,lt,Y,s.default.sources.USER),this.quill.focus()}}function R(x,j){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(j.suffix)?2:1;if(!(x.index>=this.quill.getLength()-U)){var H={},V=0,Y=this.quill.getLine(x.index),X=T(Y,1),Q=X[0];if(j.offset>=Q.length()-1){var nt=this.quill.getLine(x.index+1),rt=T(nt,1),at=rt[0];if(at){var lt=Q.formats(),z=this.quill.getFormat(x.index,1);H=r.default.attributes.diff(lt,z)||{},V=at.length()}}this.quill.deleteText(x.index,U,s.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(x.index+V-1,U,H,s.default.sources.USER)}}function E(x){var j=this.quill.getLines(x),U={};if(j.length>1){var H=j[0].formats(),V=j[j.length-1].formats();U=r.default.attributes.diff(V,H)||{}}this.quill.deleteText(x,s.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(x.index,1,U,s.default.sources.USER),this.quill.setSelection(x.index,s.default.sources.SILENT),this.quill.focus()}function S(x,j){var U=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var H=Object.keys(j.format).reduce(function(V,Y){return f.default.query(Y,f.default.Scope.BLOCK)&&!Array.isArray(j.format[Y])&&(V[Y]=j.format[Y]),V},{});this.quill.insertText(x.index,`
25
25
  `,H,s.default.sources.USER),this.quill.setSelection(x.index+1,s.default.sources.SILENT),this.quill.focus(),Object.keys(j.format).forEach(function(V){H[V]==null&&(Array.isArray(j.format[V])||V!=="link"&&U.quill.format(V,j.format[V],s.default.sources.USER))})}function L(x){return{key:C.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(U){var H=f.default.query("code-block"),V=U.index,Y=U.length,X=this.quill.scroll.descendant(H,V),Q=T(X,2),nt=Q[0],rt=Q[1];if(nt!=null){var at=this.quill.getIndex(nt),lt=nt.newlineIndex(rt,!0)+1,z=nt.newlineIndex(at+rt+Y),K=nt.domNode.textContent.slice(lt,z).split(`
26
- `);rt=0,K.forEach(function($,G){x?(nt.insertAt(lt+rt,H.TAB),rt+=H.TAB.length,G===0?V+=H.TAB.length:Y+=H.TAB.length):$.startsWith(H.TAB)&&(nt.deleteAt(lt+rt,H.TAB.length),rt-=H.TAB.length,G===0?V-=H.TAB.length:Y-=H.TAB.length),rt+=$.length+1}),this.quill.update(s.default.sources.USER),this.quill.setSelection(V,Y,s.default.sources.SILENT)}}}}function F(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],s.default.sources.USER)}}}function M(x){if(typeof x=="string"||typeof x=="number")return M({key:x});if((typeof x=="undefined"?"undefined":P(x))==="object"&&(x=(0,y.default)(x,!1)),typeof x.key=="string")if(C.keys[x.key.toUpperCase()]!=null)x.key=C.keys[x.key.toUpperCase()];else if(x.key.length===1)x.key=x.key.toUpperCase().charCodeAt(0);else return null;return x.shortKey&&(x[D]=x.shortKey,delete x.shortKey),x}O.default=C,O.SHORTKEY=D},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function r(i,f){var n=[],s=!0,A=!1,g=void 0;try{for(var b=i[Symbol.iterator](),N;!(s=(N=b.next()).done)&&(n.push(N.value),!(f&&n.length===f));s=!0);}catch(v){A=!0,g=v}finally{try{!s&&b.return&&b.return()}finally{if(A)throw g}}return n}return function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},w=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),m=p(0),y=t(m),c=p(7),o=t(c);function t(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function l(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var a=function(r){l(i,r),w(i,null,[{key:"value",value:function(){}}]);function i(f,n){e(this,i);var s=u(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return s.selection=n,s.textNode=document.createTextNode(i.CONTENTS),s.domNode.appendChild(s.textNode),s._length=0,s}return w(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,s){if(this._length!==0)return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,s);for(var A=this,g=0;A!=null&&A.statics.scope!==y.default.Scope.BLOCK_BLOT;)g+=A.offset(A.parent),A=A.parent;A!=null&&(this._length=i.CONTENTS.length,A.optimize(),A.formatAt(g,i.CONTENTS.length,n,s),this._length=0)}},{key:"index",value:function(n,s){return n===this.textNode?0:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,s=this.selection.getNativeRange(),A=void 0,g=void 0,b=void 0;if(s!=null&&s.start.node===n&&s.end.node===n){var N=[n,s.start.offset,s.end.offset];A=N[0],g=N[1],b=N[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var v=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(A=this.next.domNode,this.next.insertAt(0,v),this.textNode.data=i.CONTENTS):(this.textNode.data=v,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),g!=null){var h=[g,b].map(function(k){return Math.max(0,Math.min(A.data.length,k-1))}),d=P(h,2);return g=d[0],b=d[1],{startNode:A,startOffset:g,endNode:A,endOffset:b}}}}},{key:"update",value:function(n,s){var A=this;if(n.some(function(b){return b.type==="characterData"&&b.target===A.textNode})){var g=this.restore();g&&(s.range=g)}}},{key:"value",value:function(){return""}}]),i}(y.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\uFEFF",O.default=a},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=y(P),w=p(4),m=y(w);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(T.default.Container);e.allowedChildren=[m.default,w.BlockEmbed,e],O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.ColorStyle=O.ColorClass=O.ColorAttributor=void 0;var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:a(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},w=p(0),m=y(w);function y(a){return a&&a.__esModule?a:{default:a}}function c(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function o(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function t(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var e=function(a){t(r,a);function r(){return c(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"value",value:function(f){var n=T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(s){return("00"+parseInt(s).toString(16)).slice(-2)}).join("")):n}}]),r}(m.default.Attributor.Style),u=new m.default.Attributor.Class("color","ql-color",{scope:m.default.Scope.INLINE}),l=new e("color","color",{scope:m.default.Scope.INLINE});O.ColorAttributor=e,O.ColorClass=u,O.ColorStyle=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.sanitize=O.default=void 0;var P=function(){function l(a,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),T=function l(a,r,i){a===null&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(f===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,r,i)}else{if("value"in f)return f.value;var s=f.get;return s===void 0?void 0:s.call(i)}},w=p(6),m=y(w);function y(l){return l&&l.__esModule?l:{default:l}}function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function t(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var e=function(l){t(a,l);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=T(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),a}(m.default);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(l,a){var r=document.createElement("a");r.href=l;var i=r.href.slice(0,r.href.indexOf(":"));return a.indexOf(i)>-1}O.default=e,O.sanitize=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},T=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),w=p(23),m=o(w),y=p(107),c=o(y);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}var e=0;function u(a,r){a.setAttribute(r,a.getAttribute(r)!=="true")}var l=function(){function a(r){var i=this;t(this,a),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case m.default.keys.ENTER:i.togglePicker();break;case m.default.keys.ESCAPE:i.escape(),f.preventDefault();break;default:}}),this.select.addEventListener("change",this.update.bind(this))}return T(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(s){switch(s.keyCode){case m.default.keys.ENTER:f.selectItem(n,!0),s.preventDefault();break;case m.default.keys.ESCAPE:f.escape(),s.preventDefault();break;default:}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=c.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var s=i.buildItem(n);f.appendChild(s),n.selected===!0&&i.selectItem(s)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(i!==n&&(n!=null&&n.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":P(Event))==="object"){var s=document.createEvent("Event");s.initEvent("change",!0,!0),this.select.dispatchEvent(s)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=q(P),w=p(5),m=q(w),y=p(4),c=q(y),o=p(16),t=q(o),e=p(25),u=q(e),l=p(24),a=q(l),r=p(35),i=q(r),f=p(6),n=q(f),s=p(22),A=q(s),g=p(7),b=q(g),N=p(55),v=q(N),h=p(42),d=q(h),k=p(23),_=q(k);function q(D){return D&&D.__esModule?D:{default:D}}m.default.register({"blots/block":c.default,"blots/block/embed":y.BlockEmbed,"blots/break":t.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":b.default,"modules/clipboard":v.default,"modules/history":d.default,"modules/keyboard":_.default}),T.default.register(c.default,t.default,a.default,n.default,A.default,b.default),O.default=m.default},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function w(m){this.domNode=m,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(w.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),w.create=function(m){if(this.tagName==null)throw new P.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof m=="string"&&(m=m.toUpperCase(),parseInt(m).toString()===m&&(m=parseInt(m))),typeof m=="number"?y=document.createElement(this.tagName[m-1]):this.tagName.indexOf(m)>-1?y=document.createElement(m):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},w.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},w.prototype.clone=function(){var m=this.domNode.cloneNode(!1);return P.create(m)},w.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},w.prototype.deleteAt=function(m,y){var c=this.isolate(m,y);c.remove()},w.prototype.formatAt=function(m,y,c,o){var t=this.isolate(m,y);if(P.query(c,P.Scope.BLOT)!=null&&o)t.wrap(c,o);else if(P.query(c,P.Scope.ATTRIBUTE)!=null){var e=P.create(this.statics.scope);t.wrap(e),e.format(c,o)}},w.prototype.insertAt=function(m,y,c){var o=c==null?P.create("text",y):P.create(y,c),t=this.split(m);this.parent.insertBefore(o,t)},w.prototype.insertInto=function(m,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var c=null;m.children.insertBefore(this,y),y!=null&&(c=y.domNode),(this.domNode.parentNode!=m.domNode||this.domNode.nextSibling!=c)&&m.domNode.insertBefore(this.domNode,c),this.parent=m,this.attach()},w.prototype.isolate=function(m,y){var c=this.split(m);return c.split(y),c},w.prototype.length=function(){return 1},w.prototype.offset=function(m){return m===void 0&&(m=this.parent),this.parent==null||this==m?0:this.parent.children.offset(this)+this.parent.offset(m)},w.prototype.optimize=function(m){this.domNode[P.DATA_KEY]!=null&&delete this.domNode[P.DATA_KEY].mutations},w.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},w.prototype.replace=function(m){m.parent!=null&&(m.parent.insertBefore(this,m.next),m.remove())},w.prototype.replaceWith=function(m,y){var c=typeof m=="string"?P.create(m,y):m;return c.replace(this),c},w.prototype.split=function(m,y){return m===0?this:this.next},w.prototype.update=function(m,y){},w.prototype.wrap=function(m,y){var c=typeof m=="string"?P.create(m,y):m;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},w.blotName="abstract",w}();O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(12),T=p(32),w=p(33),m=p(1),y=function(){function c(o){this.attributes={},this.domNode=o,this.build()}return c.prototype.attribute=function(o,t){t?o.add(this.domNode,t)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},c.prototype.build=function(){var o=this;this.attributes={};var t=P.default.keys(this.domNode),e=T.default.keys(this.domNode),u=w.default.keys(this.domNode);t.concat(e).concat(u).forEach(function(l){var a=m.query(l,m.Scope.ATTRIBUTE);a instanceof P.default&&(o.attributes[a.attrName]=a)})},c.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var u=t.attributes[e].value(t.domNode);o.format(e,u)})},c.prototype.move=function(o){var t=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},c.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=o.attributes[e].value(o.domNode),t},{})},c}();O.default=y},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(12);function w(y,c){var o=y.getAttribute("class")||"";return o.split(/\s+/).filter(function(t){return t.indexOf(c+"-")===0})}var m=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},c.prototype.add=function(o,t){return this.canAdd(o,t)?(this.remove(o),o.classList.add(this.keyName+"-"+t),!0):!1},c.prototype.remove=function(o){var t=w(o,this.keyName);t.forEach(function(e){o.classList.remove(e)}),o.classList.length===0&&o.removeAttribute("class")},c.prototype.value=function(o){var t=w(o,this.keyName)[0]||"",e=t.slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},c}(T.default);O.default=m},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(12);function w(y){var c=y.split("-"),o=c.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return c[0]+o}var m=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},c.prototype.add=function(o,t){return this.canAdd(o,t)?(o.style[w(this.keyName)]=t,!0):!1},c.prototype.remove=function(o){o.style[w(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},c.prototype.value=function(o){var t=o.style[w(this.keyName)];return this.canAdd(o,t)?t:""},c}(T.default);O.default=m},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function m(y,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,c,o){return c&&m(y.prototype,c),o&&m(y,o),y}}();function T(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}var w=function(){function m(y,c){T(this,m),this.quill=y,this.options=c,this.modules={}}return P(m,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(o){c.modules[o]==null&&c.addModule(o)})}},{key:"addModule",value:function(c){var o=this.quill.constructor.import("modules/"+c);return this.modules[c]=new o(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),m}();w.DEFAULTS={modules:{}},w.themes={default:w},O.default=w},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),T=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},w=p(0),m=o(w),y=p(7),c=o(y);function o(r){return r&&r.__esModule?r:{default:r}}function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function e(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function u(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var l="\uFEFF",a=function(r){u(i,r);function i(f){t(this,i);var n=e(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(s){n.contentNode.appendChild(s)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return P(i,[{key:"index",value:function(n,s){return n===this.leftGuard?0:n===this.rightGuard?1:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"restore",value:function(n){var s=void 0,A=void 0,g=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var b=this.prev.length();this.prev.insertAt(b,g),s={startNode:this.prev.domNode,startOffset:b+g.length}}else A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this),s={startNode:A,startOffset:g.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,g),s={startNode:this.next.domNode,startOffset:g.length}):(A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this.next),s={startNode:A,startOffset:g.length}));return n.data=l,s}},{key:"update",value:function(n,s){var A=this;n.forEach(function(g){if(g.type==="characterData"&&(g.target===A.leftGuard||g.target===A.rightGuard)){var b=A.restore(g.target);b&&(s.range=b)}})}}]),i}(m.default.Embed);O.default=a},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.AlignStyle=O.AlignClass=O.AlignAttribute=void 0;var P=p(0),T=w(P);function w(t){return t&&t.__esModule?t:{default:t}}var m={scope:T.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new T.default.Attributor.Attribute("align","align",m),c=new T.default.Attributor.Class("align","ql-align",m),o=new T.default.Attributor.Style("align","text-align",m);O.AlignAttribute=y,O.AlignClass=c,O.AlignStyle=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.BackgroundStyle=O.BackgroundClass=void 0;var P=p(0),T=m(P),w=p(26);function m(o){return o&&o.__esModule?o:{default:o}}var y=new T.default.Attributor.Class("background","ql-bg",{scope:T.default.Scope.INLINE}),c=new w.ColorAttributor("background","background-color",{scope:T.default.Scope.INLINE});O.BackgroundClass=y,O.BackgroundStyle=c},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.DirectionStyle=O.DirectionClass=O.DirectionAttribute=void 0;var P=p(0),T=w(P);function w(t){return t&&t.__esModule?t:{default:t}}var m={scope:T.default.Scope.BLOCK,whitelist:["rtl"]},y=new T.default.Attributor.Attribute("direction","dir",m),c=new T.default.Attributor.Class("direction","ql-direction",m),o=new T.default.Attributor.Style("direction","direction",m);O.DirectionAttribute=y,O.DirectionClass=c,O.DirectionStyle=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.FontClass=O.FontStyle=void 0;var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),T=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},w=p(0),m=y(w);function y(r){return r&&r.__esModule?r:{default:r}}function c(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function t(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var e={scope:m.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new m.default.Attributor.Class("font","ql-font",e),l=function(r){t(i,r);function i(){return c(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return P(i,[{key:"value",value:function(n){return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(m.default.Attributor.Style),a=new l("font","font-family",e);O.FontStyle=a,O.FontClass=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SizeStyle=O.SizeClass=void 0;var P=p(0),T=w(P);function w(c){return c&&c.__esModule?c:{default:c}}var m=new T.default.Attributor.Class("size","ql-size",{scope:T.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new T.default.Attributor.Style("size","font-size",{scope:T.default.Scope.INLINE,whitelist:["10px","18px","32px"]});O.SizeClass=m,O.SizeStyle=y},function(B,O,p){"use strict";B.exports={align:{"":p(76),center:p(77),right:p(78),justify:p(79)},background:p(80),blockquote:p(81),bold:p(82),clean:p(83),code:p(58),"code-block":p(58),color:p(84),direction:{"":p(85),rtl:p(86)},float:{center:p(87),full:p(88),left:p(89),right:p(90)},formula:p(91),header:{1:p(92),2:p(93)},italic:p(94),image:p(95),indent:{"+1":p(96),"-1":p(97)},link:p(98),list:{ordered:p(99),bullet:p(100),check:p(101)},script:{sub:p(102),super:p(103)},strike:p(104),underline:p(105),video:p(106)}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.getLastChangeIndex=O.default=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),T=p(0),w=t(T),m=p(5),y=t(m),c=p(9),o=t(c);function t(f){return f&&f.__esModule?f:{default:f}}function e(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function u(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function l(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var a=function(f){l(n,f);function n(s,A){e(this,n);var g=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,s,A));return g.lastRecorded=0,g.ignoreChange=!1,g.clear(),g.quill.on(y.default.events.EDITOR_CHANGE,function(b,N,v,h){b!==y.default.events.TEXT_CHANGE||g.ignoreChange||(!g.options.userOnly||h===y.default.sources.USER?g.record(N,v):g.transform(N))}),g.quill.keyboard.addBinding({key:"Z",shortKey:!0},g.undo.bind(g)),g.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},g.redo.bind(g)),/Win/i.test(navigator.platform)&&g.quill.keyboard.addBinding({key:"Y",shortKey:!0},g.redo.bind(g)),g}return P(n,[{key:"change",value:function(A,g){if(this.stack[A].length!==0){var b=this.stack[A].pop();this.stack[g].push(b),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(b[A],y.default.sources.USER),this.ignoreChange=!1;var N=i(b[A]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,g){if(A.ops.length!==0){this.stack.redo=[];var b=this.quill.getContents().diff(g),N=Date.now();if(this.lastRecorded+this.options.delay>N&&this.stack.undo.length>0){var v=this.stack.undo.pop();b=b.compose(v.undo),A=v.redo.compose(A)}else this.lastRecorded=N;this.stack.undo.push({redo:A,undo:b}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)}),this.stack.redo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(f){var n=f.ops[f.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
27
- `):n.attributes!=null?Object.keys(n.attributes).some(function(s){return w.default.query(s,w.default.Scope.BLOCK)!=null}):!1}function i(f){var n=f.reduce(function(A,g){return A+=g.delete||0,A},0),s=f.length()-n;return r(f)&&(s-=1),s}O.default=a,O.getLastChangeIndex=i},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=function(){function S(L,F){for(var M=0;M<F.length;M++){var x=F[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(L,x.key,x)}}return function(L,F,M){return F&&S(L.prototype,F),M&&S(L,M),L}}(),T=function S(L,F,M){L===null&&(L=Function.prototype);var x=Object.getOwnPropertyDescriptor(L,F);if(x===void 0){var j=Object.getPrototypeOf(L);return j===null?void 0:S(j,F,M)}else{if("value"in x)return x.value;var U=x.get;return U===void 0?void 0:U.call(M)}},w=p(3),m=N(w),y=p(2),c=N(y),o=p(8),t=N(o),e=p(23),u=N(e),l=p(34),a=N(l),r=p(59),i=N(r),f=p(60),n=N(f),s=p(28),A=N(s),g=p(61),b=N(g);function N(S){return S&&S.__esModule?S:{default:S}}function v(S,L){if(!(S instanceof L))throw new TypeError("Cannot call a class as a function")}function h(S,L){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:S}function d(S,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);S.prototype=Object.create(L&&L.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(S,L):S.__proto__=L)}var k=[!1,"center","right","justify"],_=["#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"],q=[!1,"serif","monospace"],D=["1","2","3",!1],C=["small",!1,"large","huge"],Z=function(S){d(L,S);function L(F,M){v(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M)),j=function U(H){if(!document.body.contains(F.root))return document.body.removeEventListener("click",U);x.tooltip!=null&&!x.tooltip.root.contains(H.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),x.pickers!=null&&x.pickers.forEach(function(V){V.container.contains(H.target)||V.close()})};return F.emitter.listenDOM("click",document.body,j),x}return P(L,[{key:"addModule",value:function(M){var x=T(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(M,x){M.forEach(function(j){var U=j.getAttribute("class")||"";U.split(/\s+/).forEach(function(H){if(H.startsWith("ql-")&&(H=H.slice(3),x[H]!=null))if(H==="direction")j.innerHTML=x[H][""]+x[H].rtl;else if(typeof x[H]=="string")j.innerHTML=x[H];else{var V=j.value||"";V!=null&&x[H][V]&&(j.innerHTML=x[H][V])}})})}},{key:"buildPickers",value:function(M,x){var j=this;this.pickers=M.map(function(H){if(H.classList.contains("ql-align"))return H.querySelector("option")==null&&E(H,k),new n.default(H,x.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var V=H.classList.contains("ql-background")?"background":"color";return H.querySelector("option")==null&&E(H,_,V==="background"?"#ffffff":"#000000"),new i.default(H,x[V])}else return H.querySelector("option")==null&&(H.classList.contains("ql-font")?E(H,q):H.classList.contains("ql-header")?E(H,D):H.classList.contains("ql-size")&&E(H,C)),new A.default(H)});var U=function(){j.pickers.forEach(function(V){V.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,U)}}]),L}(a.default);Z.DEFAULTS=(0,m.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var L=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var M=new FileReader;M.onload=function(x){var j=L.quill.getSelection(!0);L.quill.updateContents(new c.default().retain(j.index).delete(j.length).insert({image:x.target.result}),t.default.sources.USER),L.quill.setSelection(j.index+1,t.default.sources.SILENT),F.value=""},M.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(S){d(L,S);function L(F,M){v(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}return P(L,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(x){u.default.match(x,"enter")?(M.save(),x.preventDefault()):u.default.match(x,"escape")&&(M.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),x!=null?this.textbox.value=x:M!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var x=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",M,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,t.default.sources.USER)),this.quill.root.scrollTop=x;break}case"video":M=R(M);case"formula":{if(!M)break;var j=this.quill.getSelection(!0);if(j!=null){var U=j.index+j.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),M,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(U+1," ",t.default.sources.USER),this.quill.setSelection(U+2,t.default.sources.USER)}break}default:}this.textbox.value="",this.hide()}}]),L}(b.default);function R(S){var L=S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=S.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":S}function E(S,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;L.forEach(function(M){var x=document.createElement("option");M===F?x.setAttribute("selected","selected"):x.setAttribute("value",M),S.appendChild(x)})}O.BaseTooltip=I,O.default=Z},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function T(){this.head=this.tail=null,this.length=0}return T.prototype.append=function(){for(var w=[],m=0;m<arguments.length;m++)w[m]=arguments[m];this.insertBefore(w[0],null),w.length>1&&this.append.apply(this,w.slice(1))},T.prototype.contains=function(w){for(var m,y=this.iterator();m=y();)if(m===w)return!0;return!1},T.prototype.insertBefore=function(w,m){w&&(w.next=m,m!=null?(w.prev=m.prev,m.prev!=null&&(m.prev.next=w),m.prev=w,m===this.head&&(this.head=w)):this.tail!=null?(this.tail.next=w,w.prev=this.tail,this.tail=w):(w.prev=null,this.head=this.tail=w),this.length+=1)},T.prototype.offset=function(w){for(var m=0,y=this.head;y!=null;){if(y===w)return m;m+=y.length(),y=y.next}return-1},T.prototype.remove=function(w){this.contains(w)&&(w.prev!=null&&(w.prev.next=w.next),w.next!=null&&(w.next.prev=w.prev),w===this.head&&(this.head=w.next),w===this.tail&&(this.tail=w.prev),this.length-=1)},T.prototype.iterator=function(w){return w===void 0&&(w=this.head),function(){var m=w;return w!=null&&(w=w.next),m}},T.prototype.find=function(w,m){m===void 0&&(m=!1);for(var y,c=this.iterator();y=c();){var o=y.length();if(w<o||m&&w===o&&(y.next==null||y.next.length()!==0))return[y,w];w-=o}return[null,0]},T.prototype.forEach=function(w){for(var m,y=this.iterator();m=y();)w(m)},T.prototype.forEachAt=function(w,m,y){if(!(m<=0))for(var c=this.find(w),o=c[0],t=c[1],e,u=w-t,l=this.iterator(o);(e=l())&&u<w+m;){var a=e.length();w>u?y(e,w-u,Math.min(m,u+a-w)):y(e,0,Math.min(a,w+m-u)),u+=a}},T.prototype.map=function(w){return this.reduce(function(m,y){return m.push(w(y)),m},[])},T.prototype.reduce=function(w,m){for(var y,c=this.iterator();y=c();)m=w(m,y);return m},T}();O.default=P},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(17),w=p(1),m={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,c=function(o){P(t,o);function t(e){var u=o.call(this,e)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,m),u.attach(),u}return t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,u){this.update(),e===0&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,e,u)},t.prototype.formatAt=function(e,u,l,a){this.update(),o.prototype.formatAt.call(this,e,u,l,a)},t.prototype.insertAt=function(e,u,l){this.update(),o.prototype.insertAt.call(this,e,u,l)},t.prototype.optimize=function(e,u){var l=this;e===void 0&&(e=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var r=function(s,A){A===void 0&&(A=!0),!(s==null||s===l)&&s.domNode.parentNode!=null&&(s.domNode[w.DATA_KEY].mutations==null&&(s.domNode[w.DATA_KEY].mutations=[]),A&&r(s.parent))},i=function(s){s.domNode[w.DATA_KEY]==null||s.domNode[w.DATA_KEY].mutations==null||(s instanceof T.default&&s.children.forEach(i),s.optimize(u))},f=e,n=0;f.length>0;n+=1){if(n>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(s){var A=w.find(s.target,!0);A!=null&&(A.domNode===s.target&&(s.type==="childList"?(r(w.find(s.previousSibling,!1)),[].forEach.call(s.addedNodes,function(g){var b=w.find(g,!1);r(b,!1),b instanceof T.default&&b.children.forEach(function(N){r(N,!1)})})):s.type==="attributes"&&r(A.prev)),r(A))}),this.children.forEach(i),f=[].slice.call(this.observer.takeRecords()),a=f.slice();a.length>0;)e.push(a.pop())}},t.prototype.update=function(e,u){var l=this;u===void 0&&(u={}),e=e||this.observer.takeRecords(),e.map(function(a){var r=w.find(a.target,!0);return r==null?null:r.domNode[w.DATA_KEY].mutations==null?(r.domNode[w.DATA_KEY].mutations=[a],r):(r.domNode[w.DATA_KEY].mutations.push(a),null)}).forEach(function(a){a==null||a===l||a.domNode[w.DATA_KEY]==null||a.update(a.domNode[w.DATA_KEY].mutations||[],u)}),this.domNode[w.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,u),this.optimize(e,u)},t.blotName="scroll",t.defaultChild="block",t.scope=w.Scope.BLOCK_BLOT,t.tagName="DIV",t}(T.default);O.default=c},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])};return function(o,t){c(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),w=p(1);function m(c,o){if(Object.keys(c).length!==Object.keys(o).length)return!1;for(var t in c)if(c[t]!==o[t])return!1;return!0}var y=function(c){P(o,c);function o(){return c!==null&&c.apply(this,arguments)||this}return o.formats=function(t){if(t.tagName!==o.tagName)return c.formats.call(this,t)},o.prototype.format=function(t,e){var u=this;t===this.statics.blotName&&!e?(this.children.forEach(function(l){l instanceof T.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap()):c.prototype.format.call(this,t,e)},o.prototype.formatAt=function(t,e,u,l){if(this.formats()[u]!=null||w.query(u,w.Scope.ATTRIBUTE)){var a=this.isolate(t,e);a.format(u,l)}else c.prototype.formatAt.call(this,t,e,u,l)},o.prototype.optimize=function(t){c.prototype.optimize.call(this,t);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&m(e,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=w.Scope.INLINE_BLOT,o.tagName="SPAN",o}(T.default);O.default=y},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),w=p(1),m=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.formats=function(o){var t=w.query(c.blotName).tagName;if(o.tagName!==t)return y.formats.call(this,o)},c.prototype.format=function(o,t){w.query(o,w.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!t?this.replaceWith(c.blotName):y.prototype.format.call(this,o,t))},c.prototype.formatAt=function(o,t,e,u){w.query(e,w.Scope.BLOCK)!=null?this.format(e,u):y.prototype.formatAt.call(this,o,t,e,u)},c.prototype.insertAt=function(o,t,e){if(e==null||w.query(t,w.Scope.INLINE)!=null)y.prototype.insertAt.call(this,o,t,e);else{var u=this.split(o),l=w.create(t,e);u.parent.insertBefore(l,u)}},c.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,t)},c.blotName="block",c.scope=w.Scope.BLOCK_BLOT,c.tagName="P",c}(T.default);O.default=m},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var o in c)c.hasOwnProperty(o)&&(y[o]=c[o])};return function(y,c){m(y,c);function o(){this.constructor=y}y.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(19),w=function(m){P(y,m);function y(){return m!==null&&m.apply(this,arguments)||this}return y.formats=function(c){},y.prototype.format=function(c,o){m.prototype.formatAt.call(this,0,this.length(),c,o)},y.prototype.formatAt=function(c,o,t,e){c===0&&o===this.length()?this.format(t,e):m.prototype.formatAt.call(this,c,o,t,e)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(T.default);O.default=w},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(19),w=p(1),m=function(y){P(c,y);function c(o){var t=y.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return c.create=function(o){return document.createTextNode(o)},c.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},c.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},c.prototype.index=function(o,t){return this.domNode===o?t:-1},c.prototype.insertAt=function(o,t,e){e==null?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,t,e)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(o){y.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(o,t){return t===void 0&&(t=!1),[this.domNode,o]},c.prototype.split=function(o,t){if(t===void 0&&(t=!1),!t){if(o===0)return this;if(o===this.length())return this.next}var e=w.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},c.prototype.update=function(o,t){var e=this;o.some(function(u){return u.type==="characterData"&&u.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=w.Scope.INLINE_BLOT,c}(T.default);O.default=m},function(B,O,p){"use strict";var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var T=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(w,m){return arguments.length>1&&!this.contains(w)==!m?m:T.call(this,w)}}String.prototype.startsWith||(String.prototype.startsWith=function(w,m){return m=m||0,this.substr(m,w.length)===w}),String.prototype.endsWith||(String.prototype.endsWith=function(w,m){var y=this.toString();(typeof m!="number"||!isFinite(m)||Math.floor(m)!==m||m>y.length)&&(m=y.length),m-=w.length;var c=y.indexOf(w,m);return c!==-1&&c===m}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(m){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof m!="function")throw new TypeError("predicate must be a function");for(var y=Object(this),c=y.length>>>0,o=arguments[1],t,e=0;e<c;e++)if(t=y[e],m.call(o,t,e,y))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(B,O){var p=-1,P=1,T=0;function w(n,s,A){if(n==s)return n?[[T,n]]:[];(A<0||n.length<A)&&(A=null);var g=o(n,s),b=n.substring(0,g);n=n.substring(g),s=s.substring(g),g=t(n,s);var N=n.substring(n.length-g);n=n.substring(0,n.length-g),s=s.substring(0,s.length-g);var v=m(n,s);return b&&v.unshift([T,b]),N&&v.push([T,N]),u(v),A!=null&&(v=r(v,A)),v=i(v),v}function m(n,s){var A;if(!n)return[[P,s]];if(!s)return[[p,n]];var g=n.length>s.length?n:s,b=n.length>s.length?s:n,N=g.indexOf(b);if(N!=-1)return A=[[P,g.substring(0,N)],[T,b],[P,g.substring(N+b.length)]],n.length>s.length&&(A[0][0]=A[2][0]=p),A;if(b.length==1)return[[p,n],[P,s]];var v=e(n,s);if(v){var h=v[0],d=v[1],k=v[2],_=v[3],q=v[4],D=w(h,k),C=w(d,_);return D.concat([[T,q]],C)}return y(n,s)}function y(n,s){for(var A=n.length,g=s.length,b=Math.ceil((A+g)/2),N=b,v=2*b,h=new Array(v),d=new Array(v),k=0;k<v;k++)h[k]=-1,d[k]=-1;h[N+1]=0,d[N+1]=0;for(var _=A-g,q=_%2!=0,D=0,C=0,Z=0,I=0,R=0;R<b;R++){for(var E=-R+D;E<=R-C;E+=2){var S=N+E,L;E==-R||E!=R&&h[S-1]<h[S+1]?L=h[S+1]:L=h[S-1]+1;for(var F=L-E;L<A&&F<g&&n.charAt(L)==s.charAt(F);)L++,F++;if(h[S]=L,L>A)C+=2;else if(F>g)D+=2;else if(q){var M=N+_-E;if(M>=0&&M<v&&d[M]!=-1){var x=A-d[M];if(L>=x)return c(n,s,L,F)}}}for(var j=-R+Z;j<=R-I;j+=2){var M=N+j,x;j==-R||j!=R&&d[M-1]<d[M+1]?x=d[M+1]:x=d[M-1]+1;for(var U=x-j;x<A&&U<g&&n.charAt(A-x-1)==s.charAt(g-U-1);)x++,U++;if(d[M]=x,x>A)I+=2;else if(U>g)Z+=2;else if(!q){var S=N+_-j;if(S>=0&&S<v&&h[S]!=-1){var L=h[S],F=N+L-S;if(x=A-x,L>=x)return c(n,s,L,F)}}}}return[[p,n],[P,s]]}function c(n,s,A,g){var b=n.substring(0,A),N=s.substring(0,g),v=n.substring(A),h=s.substring(g),d=w(b,N),k=w(v,h);return d.concat(k)}function o(n,s){if(!n||!s||n.charAt(0)!=s.charAt(0))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(N,b)==s.substring(N,b)?(A=b,N=A):g=b,b=Math.floor((g-A)/2+A);return b}function t(n,s){if(!n||!s||n.charAt(n.length-1)!=s.charAt(s.length-1))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(n.length-b,n.length-N)==s.substring(s.length-b,s.length-N)?(A=b,N=A):g=b,b=Math.floor((g-A)/2+A);return b}function e(n,s){var A=n.length>s.length?n:s,g=n.length>s.length?s:n;if(A.length<4||g.length*2<A.length)return null;function b(C,Z,I){for(var R=C.substring(I,I+Math.floor(C.length/4)),E=-1,S="",L,F,M,x;(E=Z.indexOf(R,E+1))!=-1;){var j=o(C.substring(I),Z.substring(E)),U=t(C.substring(0,I),Z.substring(0,E));S.length<U+j&&(S=Z.substring(E-U,E)+Z.substring(E,E+j),L=C.substring(0,I-U),F=C.substring(I+j),M=Z.substring(0,E-U),x=Z.substring(E+j))}return S.length*2>=C.length?[L,F,M,x,S]:null}var N=b(A,g,Math.ceil(A.length/4)),v=b(A,g,Math.ceil(A.length/2)),h;if(!N&&!v)return null;v?N?h=N[4].length>v[4].length?N:v:h=v:h=N;var d,k,_,q;n.length>s.length?(d=h[0],k=h[1],_=h[2],q=h[3]):(_=h[0],q=h[1],d=h[2],k=h[3]);var D=h[4];return[d,k,_,q,D]}function u(n){n.push([T,""]);for(var s=0,A=0,g=0,b="",N="",v;s<n.length;)switch(n[s][0]){case P:g++,N+=n[s][1],s++;break;case p:A++,b+=n[s][1],s++;break;case T:A+g>1?(A!==0&&g!==0&&(v=o(N,b),v!==0&&(s-A-g>0&&n[s-A-g-1][0]==T?n[s-A-g-1][1]+=N.substring(0,v):(n.splice(0,0,[T,N.substring(0,v)]),s++),N=N.substring(v),b=b.substring(v)),v=t(N,b),v!==0&&(n[s][1]=N.substring(N.length-v)+n[s][1],N=N.substring(0,N.length-v),b=b.substring(0,b.length-v))),A===0?n.splice(s-g,A+g,[P,N]):g===0?n.splice(s-A,A+g,[p,b]):n.splice(s-A-g,A+g,[p,b],[P,N]),s=s-A-g+(A?1:0)+(g?1:0)+1):s!==0&&n[s-1][0]==T?(n[s-1][1]+=n[s][1],n.splice(s,1)):s++,g=0,A=0,b="",N="";break}n[n.length-1][1]===""&&n.pop();var h=!1;for(s=1;s<n.length-1;)n[s-1][0]==T&&n[s+1][0]==T&&(n[s][1].substring(n[s][1].length-n[s-1][1].length)==n[s-1][1]?(n[s][1]=n[s-1][1]+n[s][1].substring(0,n[s][1].length-n[s-1][1].length),n[s+1][1]=n[s-1][1]+n[s+1][1],n.splice(s-1,1),h=!0):n[s][1].substring(0,n[s+1][1].length)==n[s+1][1]&&(n[s-1][1]+=n[s+1][1],n[s][1]=n[s][1].substring(n[s+1][1].length)+n[s+1][1],n.splice(s+1,1),h=!0)),s++;h&&u(n)}var l=w;l.INSERT=P,l.DELETE=p,l.EQUAL=T,B.exports=l;function a(n,s){if(s===0)return[T,n];for(var A=0,g=0;g<n.length;g++){var b=n[g];if(b[0]===p||b[0]===T){var N=A+b[1].length;if(s===N)return[g+1,n];if(s<N){n=n.slice();var v=s-A,h=[b[0],b[1].slice(0,v)],d=[b[0],b[1].slice(v)];return n.splice(g,1,h,d),[g+1,n]}else A=N}}throw new Error("cursor_pos is out of bounds!")}function r(n,s){var A=a(n,s),g=A[1],b=A[0],N=g[b],v=g[b+1];if(N==null)return n;if(N[0]!==T)return n;if(v!=null&&N[1]+v[1]===v[1]+N[1])return g.splice(b,2,v,N),f(g,b,2);if(v!=null&&v[1].indexOf(N[1])===0){g.splice(b,2,[v[0],N[1]],[0,N[1]]);var h=v[1].slice(N[1].length);return h.length>0&&g.splice(b+2,0,[v[0],h]),f(g,b,3)}else return n}function i(n){for(var s=!1,A=function(v){return v.charCodeAt(0)>=56320&&v.charCodeAt(0)<=57343},g=function(v){return v.charCodeAt(v.length-1)>=55296&&v.charCodeAt(v.length-1)<=56319},b=2;b<n.length;b+=1)n[b-2][0]===T&&g(n[b-2][1])&&n[b-1][0]===p&&A(n[b-1][1])&&n[b][0]===P&&A(n[b][1])&&(s=!0,n[b-1][1]=n[b-2][1].slice(-1)+n[b-1][1],n[b][1]=n[b-2][1].slice(-1)+n[b][1],n[b-2][1]=n[b-2][1].slice(0,-1));if(!s)return n;for(var N=[],b=0;b<n.length;b+=1)n[b][1].length>0&&N.push(n[b]);return N}function f(n,s,A){for(var g=s+A-1;g>=0&&g>=s-1;g--)if(g+1<n.length){var b=n[g],N=n[g+1];b[0]===N[1]&&n.splice(g,2,[b[0],b[1]+N[1]])}return n}},function(B,O){O=B.exports=typeof Object.keys=="function"?Object.keys:p,O.shim=p;function p(P){var T=[];for(var w in P)T.push(w);return T}},function(B,O){var p=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";O=B.exports=p?P:T,O.supported=P;function P(w){return Object.prototype.toString.call(w)=="[object Arguments]"}O.unsupported=T;function T(w){return w&&typeof w=="object"&&typeof w.length=="number"&&Object.prototype.hasOwnProperty.call(w,"callee")&&!Object.prototype.propertyIsEnumerable.call(w,"callee")||!1}},function(B,O){"use strict";var p=Object.prototype.hasOwnProperty,P="~";function T(){}Object.create&&(T.prototype=Object.create(null),new T().__proto__||(P=!1));function w(y,c,o){this.fn=y,this.context=c,this.once=o||!1}function m(){this._events=new T,this._eventsCount=0}m.prototype.eventNames=function(){var c=[],o,t;if(this._eventsCount===0)return c;for(t in o=this._events)p.call(o,t)&&c.push(P?t.slice(1):t);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(o)):c},m.prototype.listeners=function(c,o){var t=P?P+c:c,e=this._events[t];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var u=0,l=e.length,a=new Array(l);u<l;u++)a[u]=e[u].fn;return a},m.prototype.emit=function(c,o,t,e,u,l){var a=P?P+c:c;if(!this._events[a])return!1;var r=this._events[a],i=arguments.length,f,n;if(r.fn){switch(r.once&&this.removeListener(c,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,t),!0;case 4:return r.fn.call(r.context,o,t,e),!0;case 5:return r.fn.call(r.context,o,t,e,u),!0;case 6:return r.fn.call(r.context,o,t,e,u,l),!0}for(n=1,f=new Array(i-1);n<i;n++)f[n-1]=arguments[n];r.fn.apply(r.context,f)}else{var s=r.length,A;for(n=0;n<s;n++)switch(r[n].once&&this.removeListener(c,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,t);break;case 4:r[n].fn.call(r[n].context,o,t,e);break;default:if(!f)for(A=1,f=new Array(i-1);A<i;A++)f[A-1]=arguments[A];r[n].fn.apply(r[n].context,f)}}return!0},m.prototype.on=function(c,o,t){var e=new w(o,t||this),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.once=function(c,o,t){var e=new w(o,t||this,!0),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.removeListener=function(c,o,t,e){var u=P?P+c:c;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new T:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!e||l.once)&&(!t||l.context===t)&&(--this._eventsCount===0?this._events=new T:delete this._events[u]);else{for(var a=0,r=[],i=l.length;a<i;a++)(l[a].fn!==o||e&&!l[a].once||t&&l[a].context!==t)&&r.push(l[a]);r.length?this._events[u]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new T:delete this._events[u]}return this},m.prototype.removeAllListeners=function(c){var o;return c?(o=P?P+c:c,this._events[o]&&(--this._eventsCount===0?this._events=new T:delete this._events[o])):(this._events=new T,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prototype.setMaxListeners=function(){return this},m.prefixed=P,m.EventEmitter=m,typeof B!="undefined"&&(B.exports=m)},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.matchText=O.matchSpacing=O.matchNewline=O.matchBlot=O.matchAttributor=O.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},T=function(){function z(K,$){var G=[],W=!0,J=!1,tt=void 0;try{for(var et=K[Symbol.iterator](),ut;!(W=(ut=et.next()).done)&&(G.push(ut.value),!($&&G.length===$));W=!0);}catch(ft){J=!0,tt=ft}finally{try{!W&&et.return&&et.return()}finally{if(J)throw tt}}return G}return function(K,$){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return z(K,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function z(K,$){for(var G=0;G<$.length;G++){var W=$[G];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(K,W.key,W)}}return function(K,$,G){return $&&z(K.prototype,$),G&&z(K,G),K}}(),m=p(3),y=d(m),c=p(2),o=d(c),t=p(0),e=d(t),u=p(5),l=d(u),a=p(10),r=d(a),i=p(9),f=d(i),n=p(36),s=p(37),A=p(13),g=d(A),b=p(26),N=p(38),v=p(39),h=p(40);function d(z){return z&&z.__esModule?z:{default:z}}function k(z,K,$){return K in z?Object.defineProperty(z,K,{value:$,enumerable:!0,configurable:!0,writable:!0}):z[K]=$,z}function _(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}function q(z,K){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:z}function D(z,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(z,K):z.__proto__=K)}var C=(0,r.default)("quill:clipboard"),Z="__ql-matcher",I=[[Node.TEXT_NODE,lt],[Node.TEXT_NODE,nt],["br",Y],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,at],["li",Q],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",X]],R=[n.AlignAttribute,N.DirectionAttribute].reduce(function(z,K){return z[K.keyName]=K,z},{}),E=[n.AlignStyle,s.BackgroundStyle,b.ColorStyle,N.DirectionStyle,v.FontStyle,h.SizeStyle].reduce(function(z,K){return z[K.keyName]=K,z},{}),S=function(z){D(K,z);function K($,G){_(this,K);var W=q(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,$,G));return W.quill.root.addEventListener("paste",W.onPaste.bind(W)),W.container=W.quill.addContainer("ql-clipboard"),W.container.setAttribute("contenteditable",!0),W.container.setAttribute("tabindex",-1),W.matchers=[],I.concat(W.options.matchers).forEach(function(J){var tt=T(J,2),et=tt[0],ut=tt[1];!G.matchVisual&&ut===rt||W.addMatcher(et,ut)}),W}return w(K,[{key:"addMatcher",value:function(G,W){this.matchers.push([G,W])}},{key:"convert",value:function(G){if(typeof G=="string")return this.container.innerHTML=G.replace(/\>\r?\n +\</g,"><"),this.convert();var W=this.quill.getFormat(this.quill.selection.savedRange.index);if(W[g.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",new o.default().insert(J,k({},g.default.blotName,W[g.default.blotName]))}var tt=this.prepareMatching(),et=T(tt,2),ut=et[0],ft=et[1],it=j(this.container,ut,ft);return M(it,`
28
- `)&&it.ops[it.ops.length-1].attributes==null&&(it=it.compose(new o.default().retain(it.length()-1).delete(1))),C.log("convert",this.container.innerHTML,it),this.container.innerHTML="",it}},{key:"dangerouslyPasteHTML",value:function(G,W){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof G=="string")this.quill.setContents(this.convert(G),W),this.quill.setSelection(0,l.default.sources.SILENT);else{var tt=this.convert(W);this.quill.updateContents(new o.default().retain(G).concat(tt),J),this.quill.setSelection(G+tt.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(G){var W=this;if(!(G.defaultPrevented||!this.quill.isEnabled())){var J=this.quill.getSelection(),tt=new o.default().retain(J.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){tt=tt.concat(W.convert()).delete(J.length),W.quill.updateContents(tt,l.default.sources.USER),W.quill.setSelection(tt.length()-J.length,l.default.sources.SILENT),W.quill.scrollingContainer.scrollTop=et,W.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,W=[],J=[];return this.matchers.forEach(function(tt){var et=T(tt,2),ut=et[0],ft=et[1];switch(ut){case Node.TEXT_NODE:J.push(ft);break;case Node.ELEMENT_NODE:W.push(ft);break;default:[].forEach.call(G.container.querySelectorAll(ut),function(it){it[Z]=it[Z]||[],it[Z].push(ft)});break}}),[W,J]}}]),K}(f.default);S.DEFAULTS={matchers:[],matchVisual:!0};function L(z,K,$){return(typeof K=="undefined"?"undefined":P(K))==="object"?Object.keys(K).reduce(function(G,W){return L(G,W,K[W])},z):z.reduce(function(G,W){return W.attributes&&W.attributes[K]?G.push(W):G.insert(W.insert,(0,y.default)({},k({},K,$),W.attributes))},new o.default)}function F(z){if(z.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return z[K]||(z[K]=window.getComputedStyle(z))}function M(z,K){for(var $="",G=z.ops.length-1;G>=0&&$.length<K.length;--G){var W=z.ops[G];if(typeof W.insert!="string")break;$=W.insert+$}return $.slice(-1*K.length)===K}function x(z){if(z.childNodes.length===0)return!1;var K=F(z);return["block","list-item"].indexOf(K.display)>-1}function j(z,K,$){return z.nodeType===z.TEXT_NODE?$.reduce(function(G,W){return W(z,G)},new o.default):z.nodeType===z.ELEMENT_NODE?[].reduce.call(z.childNodes||[],function(G,W){var J=j(W,K,$);return W.nodeType===z.ELEMENT_NODE&&(J=K.reduce(function(tt,et){return et(W,tt)},J),J=(W[Z]||[]).reduce(function(tt,et){return et(W,tt)},J)),G.concat(J)},new o.default):new o.default}function U(z,K,$){return L($,z,!0)}function H(z,K){var $=e.default.Attributor.Attribute.keys(z),G=e.default.Attributor.Class.keys(z),W=e.default.Attributor.Style.keys(z),J={};return $.concat(G).concat(W).forEach(function(tt){var et=e.default.query(tt,e.default.Scope.ATTRIBUTE);et!=null&&(J[et.attrName]=et.value(z),J[et.attrName])||(et=R[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(z)||void 0),et=E[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(et=E[tt],J[et.attrName]=et.value(z)||void 0))}),Object.keys(J).length>0&&(K=L(K,J)),K}function V(z,K){var $=e.default.query(z);if($==null)return K;if($.prototype instanceof e.default.Embed){var G={},W=$.value(z);W!=null&&(G[$.blotName]=W,K=new o.default().insert(G,$.formats(z)))}else typeof $.formats=="function"&&(K=L(K,$.blotName,$.formats(z)));return K}function Y(z,K){return M(K,`
26
+ `);rt=0,K.forEach(function($,G){x?(nt.insertAt(lt+rt,H.TAB),rt+=H.TAB.length,G===0?V+=H.TAB.length:Y+=H.TAB.length):$.startsWith(H.TAB)&&(nt.deleteAt(lt+rt,H.TAB.length),rt-=H.TAB.length,G===0?V-=H.TAB.length:Y-=H.TAB.length),rt+=$.length+1}),this.quill.update(s.default.sources.USER),this.quill.setSelection(V,Y,s.default.sources.SILENT)}}}}function F(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],s.default.sources.USER)}}}function M(x){if(typeof x=="string"||typeof x=="number")return M({key:x});if((typeof x>"u"?"undefined":P(x))==="object"&&(x=(0,y.default)(x,!1)),typeof x.key=="string")if(C.keys[x.key.toUpperCase()]!=null)x.key=C.keys[x.key.toUpperCase()];else if(x.key.length===1)x.key=x.key.toUpperCase().charCodeAt(0);else return null;return x.shortKey&&(x[D]=x.shortKey,delete x.shortKey),x}O.default=C,O.SHORTKEY=D},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function r(i,f){var n=[],s=!0,A=!1,g=void 0;try{for(var b=i[Symbol.iterator](),N;!(s=(N=b.next()).done)&&(n.push(N.value),!(f&&n.length===f));s=!0);}catch(v){A=!0,g=v}finally{try{!s&&b.return&&b.return()}finally{if(A)throw g}}return n}return function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},w=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),m=p(0),y=t(m),c=p(7),o=t(c);function t(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function l(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var a=function(r){l(i,r),w(i,null,[{key:"value",value:function(){}}]);function i(f,n){e(this,i);var s=u(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return s.selection=n,s.textNode=document.createTextNode(i.CONTENTS),s.domNode.appendChild(s.textNode),s._length=0,s}return w(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,s){if(this._length!==0)return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,s);for(var A=this,g=0;A!=null&&A.statics.scope!==y.default.Scope.BLOCK_BLOT;)g+=A.offset(A.parent),A=A.parent;A!=null&&(this._length=i.CONTENTS.length,A.optimize(),A.formatAt(g,i.CONTENTS.length,n,s),this._length=0)}},{key:"index",value:function(n,s){return n===this.textNode?0:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,s=this.selection.getNativeRange(),A=void 0,g=void 0,b=void 0;if(s!=null&&s.start.node===n&&s.end.node===n){var N=[n,s.start.offset,s.end.offset];A=N[0],g=N[1],b=N[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var v=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(A=this.next.domNode,this.next.insertAt(0,v),this.textNode.data=i.CONTENTS):(this.textNode.data=v,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),g!=null){var h=[g,b].map(function(k){return Math.max(0,Math.min(A.data.length,k-1))}),d=P(h,2);return g=d[0],b=d[1],{startNode:A,startOffset:g,endNode:A,endOffset:b}}}}},{key:"update",value:function(n,s){var A=this;if(n.some(function(b){return b.type==="characterData"&&b.target===A.textNode})){var g=this.restore();g&&(s.range=g)}}},{key:"value",value:function(){return""}}]),i}(y.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\uFEFF",O.default=a},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=y(P),w=p(4),m=y(w);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(T.default.Container);e.allowedChildren=[m.default,w.BlockEmbed,e],O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.ColorStyle=O.ColorClass=O.ColorAttributor=void 0;var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:a(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},w=p(0),m=y(w);function y(a){return a&&a.__esModule?a:{default:a}}function c(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function o(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function t(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var e=function(a){t(r,a);function r(){return c(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"value",value:function(f){var n=T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(s){return("00"+parseInt(s).toString(16)).slice(-2)}).join("")):n}}]),r}(m.default.Attributor.Style),u=new m.default.Attributor.Class("color","ql-color",{scope:m.default.Scope.INLINE}),l=new e("color","color",{scope:m.default.Scope.INLINE});O.ColorAttributor=e,O.ColorClass=u,O.ColorStyle=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.sanitize=O.default=void 0;var P=function(){function l(a,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),T=function l(a,r,i){a===null&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(f===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,r,i)}else{if("value"in f)return f.value;var s=f.get;return s===void 0?void 0:s.call(i)}},w=p(6),m=y(w);function y(l){return l&&l.__esModule?l:{default:l}}function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function t(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var e=function(l){t(a,l);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=T(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),a}(m.default);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(l,a){var r=document.createElement("a");r.href=l;var i=r.href.slice(0,r.href.indexOf(":"));return a.indexOf(i)>-1}O.default=e,O.sanitize=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},T=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),w=p(23),m=o(w),y=p(107),c=o(y);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}var e=0;function u(a,r){a.setAttribute(r,a.getAttribute(r)!=="true")}var l=function(){function a(r){var i=this;t(this,a),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case m.default.keys.ENTER:i.togglePicker();break;case m.default.keys.ESCAPE:i.escape(),f.preventDefault();break;default:}}),this.select.addEventListener("change",this.update.bind(this))}return T(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(s){switch(s.keyCode){case m.default.keys.ENTER:f.selectItem(n,!0),s.preventDefault();break;case m.default.keys.ESCAPE:f.escape(),s.preventDefault();break;default:}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=c.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var s=i.buildItem(n);f.appendChild(s),n.selected===!0&&i.selectItem(s)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(i!==n&&(n!=null&&n.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":P(Event))==="object"){var s=document.createEvent("Event");s.initEvent("change",!0,!0),this.select.dispatchEvent(s)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=q(P),w=p(5),m=q(w),y=p(4),c=q(y),o=p(16),t=q(o),e=p(25),u=q(e),l=p(24),a=q(l),r=p(35),i=q(r),f=p(6),n=q(f),s=p(22),A=q(s),g=p(7),b=q(g),N=p(55),v=q(N),h=p(42),d=q(h),k=p(23),_=q(k);function q(D){return D&&D.__esModule?D:{default:D}}m.default.register({"blots/block":c.default,"blots/block/embed":y.BlockEmbed,"blots/break":t.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":b.default,"modules/clipboard":v.default,"modules/history":d.default,"modules/keyboard":_.default}),T.default.register(c.default,t.default,a.default,n.default,A.default,b.default),O.default=m.default},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function w(m){this.domNode=m,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(w.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),w.create=function(m){if(this.tagName==null)throw new P.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof m=="string"&&(m=m.toUpperCase(),parseInt(m).toString()===m&&(m=parseInt(m))),typeof m=="number"?y=document.createElement(this.tagName[m-1]):this.tagName.indexOf(m)>-1?y=document.createElement(m):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},w.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},w.prototype.clone=function(){var m=this.domNode.cloneNode(!1);return P.create(m)},w.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},w.prototype.deleteAt=function(m,y){var c=this.isolate(m,y);c.remove()},w.prototype.formatAt=function(m,y,c,o){var t=this.isolate(m,y);if(P.query(c,P.Scope.BLOT)!=null&&o)t.wrap(c,o);else if(P.query(c,P.Scope.ATTRIBUTE)!=null){var e=P.create(this.statics.scope);t.wrap(e),e.format(c,o)}},w.prototype.insertAt=function(m,y,c){var o=c==null?P.create("text",y):P.create(y,c),t=this.split(m);this.parent.insertBefore(o,t)},w.prototype.insertInto=function(m,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var c=null;m.children.insertBefore(this,y),y!=null&&(c=y.domNode),(this.domNode.parentNode!=m.domNode||this.domNode.nextSibling!=c)&&m.domNode.insertBefore(this.domNode,c),this.parent=m,this.attach()},w.prototype.isolate=function(m,y){var c=this.split(m);return c.split(y),c},w.prototype.length=function(){return 1},w.prototype.offset=function(m){return m===void 0&&(m=this.parent),this.parent==null||this==m?0:this.parent.children.offset(this)+this.parent.offset(m)},w.prototype.optimize=function(m){this.domNode[P.DATA_KEY]!=null&&delete this.domNode[P.DATA_KEY].mutations},w.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},w.prototype.replace=function(m){m.parent!=null&&(m.parent.insertBefore(this,m.next),m.remove())},w.prototype.replaceWith=function(m,y){var c=typeof m=="string"?P.create(m,y):m;return c.replace(this),c},w.prototype.split=function(m,y){return m===0?this:this.next},w.prototype.update=function(m,y){},w.prototype.wrap=function(m,y){var c=typeof m=="string"?P.create(m,y):m;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},w.blotName="abstract",w}();O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(12),T=p(32),w=p(33),m=p(1),y=function(){function c(o){this.attributes={},this.domNode=o,this.build()}return c.prototype.attribute=function(o,t){t?o.add(this.domNode,t)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},c.prototype.build=function(){var o=this;this.attributes={};var t=P.default.keys(this.domNode),e=T.default.keys(this.domNode),u=w.default.keys(this.domNode);t.concat(e).concat(u).forEach(function(l){var a=m.query(l,m.Scope.ATTRIBUTE);a instanceof P.default&&(o.attributes[a.attrName]=a)})},c.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var u=t.attributes[e].value(t.domNode);o.format(e,u)})},c.prototype.move=function(o){var t=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},c.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=o.attributes[e].value(o.domNode),t},{})},c}();O.default=y},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(12);function w(y,c){var o=y.getAttribute("class")||"";return o.split(/\s+/).filter(function(t){return t.indexOf(c+"-")===0})}var m=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},c.prototype.add=function(o,t){return this.canAdd(o,t)?(this.remove(o),o.classList.add(this.keyName+"-"+t),!0):!1},c.prototype.remove=function(o){var t=w(o,this.keyName);t.forEach(function(e){o.classList.remove(e)}),o.classList.length===0&&o.removeAttribute("class")},c.prototype.value=function(o){var t=w(o,this.keyName)[0]||"",e=t.slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},c}(T.default);O.default=m},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(12);function w(y){var c=y.split("-"),o=c.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return c[0]+o}var m=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},c.prototype.add=function(o,t){return this.canAdd(o,t)?(o.style[w(this.keyName)]=t,!0):!1},c.prototype.remove=function(o){o.style[w(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},c.prototype.value=function(o){var t=o.style[w(this.keyName)];return this.canAdd(o,t)?t:""},c}(T.default);O.default=m},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function m(y,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,c,o){return c&&m(y.prototype,c),o&&m(y,o),y}}();function T(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}var w=function(){function m(y,c){T(this,m),this.quill=y,this.options=c,this.modules={}}return P(m,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(o){c.modules[o]==null&&c.addModule(o)})}},{key:"addModule",value:function(c){var o=this.quill.constructor.import("modules/"+c);return this.modules[c]=new o(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),m}();w.DEFAULTS={modules:{}},w.themes={default:w},O.default=w},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),T=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},w=p(0),m=o(w),y=p(7),c=o(y);function o(r){return r&&r.__esModule?r:{default:r}}function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function e(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function u(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var l="\uFEFF",a=function(r){u(i,r);function i(f){t(this,i);var n=e(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(s){n.contentNode.appendChild(s)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return P(i,[{key:"index",value:function(n,s){return n===this.leftGuard?0:n===this.rightGuard?1:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"restore",value:function(n){var s=void 0,A=void 0,g=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var b=this.prev.length();this.prev.insertAt(b,g),s={startNode:this.prev.domNode,startOffset:b+g.length}}else A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this),s={startNode:A,startOffset:g.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,g),s={startNode:this.next.domNode,startOffset:g.length}):(A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this.next),s={startNode:A,startOffset:g.length}));return n.data=l,s}},{key:"update",value:function(n,s){var A=this;n.forEach(function(g){if(g.type==="characterData"&&(g.target===A.leftGuard||g.target===A.rightGuard)){var b=A.restore(g.target);b&&(s.range=b)}})}}]),i}(m.default.Embed);O.default=a},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.AlignStyle=O.AlignClass=O.AlignAttribute=void 0;var P=p(0),T=w(P);function w(t){return t&&t.__esModule?t:{default:t}}var m={scope:T.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new T.default.Attributor.Attribute("align","align",m),c=new T.default.Attributor.Class("align","ql-align",m),o=new T.default.Attributor.Style("align","text-align",m);O.AlignAttribute=y,O.AlignClass=c,O.AlignStyle=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.BackgroundStyle=O.BackgroundClass=void 0;var P=p(0),T=m(P),w=p(26);function m(o){return o&&o.__esModule?o:{default:o}}var y=new T.default.Attributor.Class("background","ql-bg",{scope:T.default.Scope.INLINE}),c=new w.ColorAttributor("background","background-color",{scope:T.default.Scope.INLINE});O.BackgroundClass=y,O.BackgroundStyle=c},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.DirectionStyle=O.DirectionClass=O.DirectionAttribute=void 0;var P=p(0),T=w(P);function w(t){return t&&t.__esModule?t:{default:t}}var m={scope:T.default.Scope.BLOCK,whitelist:["rtl"]},y=new T.default.Attributor.Attribute("direction","dir",m),c=new T.default.Attributor.Class("direction","ql-direction",m),o=new T.default.Attributor.Style("direction","direction",m);O.DirectionAttribute=y,O.DirectionClass=c,O.DirectionStyle=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.FontClass=O.FontStyle=void 0;var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),T=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},w=p(0),m=y(w);function y(r){return r&&r.__esModule?r:{default:r}}function c(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function t(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var e={scope:m.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new m.default.Attributor.Class("font","ql-font",e),l=function(r){t(i,r);function i(){return c(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return P(i,[{key:"value",value:function(n){return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(m.default.Attributor.Style),a=new l("font","font-family",e);O.FontStyle=a,O.FontClass=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SizeStyle=O.SizeClass=void 0;var P=p(0),T=w(P);function w(c){return c&&c.__esModule?c:{default:c}}var m=new T.default.Attributor.Class("size","ql-size",{scope:T.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new T.default.Attributor.Style("size","font-size",{scope:T.default.Scope.INLINE,whitelist:["10px","18px","32px"]});O.SizeClass=m,O.SizeStyle=y},function(B,O,p){"use strict";B.exports={align:{"":p(76),center:p(77),right:p(78),justify:p(79)},background:p(80),blockquote:p(81),bold:p(82),clean:p(83),code:p(58),"code-block":p(58),color:p(84),direction:{"":p(85),rtl:p(86)},float:{center:p(87),full:p(88),left:p(89),right:p(90)},formula:p(91),header:{1:p(92),2:p(93)},italic:p(94),image:p(95),indent:{"+1":p(96),"-1":p(97)},link:p(98),list:{ordered:p(99),bullet:p(100),check:p(101)},script:{sub:p(102),super:p(103)},strike:p(104),underline:p(105),video:p(106)}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.getLastChangeIndex=O.default=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),T=p(0),w=t(T),m=p(5),y=t(m),c=p(9),o=t(c);function t(f){return f&&f.__esModule?f:{default:f}}function e(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function u(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function l(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var a=function(f){l(n,f);function n(s,A){e(this,n);var g=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,s,A));return g.lastRecorded=0,g.ignoreChange=!1,g.clear(),g.quill.on(y.default.events.EDITOR_CHANGE,function(b,N,v,h){b!==y.default.events.TEXT_CHANGE||g.ignoreChange||(!g.options.userOnly||h===y.default.sources.USER?g.record(N,v):g.transform(N))}),g.quill.keyboard.addBinding({key:"Z",shortKey:!0},g.undo.bind(g)),g.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},g.redo.bind(g)),/Win/i.test(navigator.platform)&&g.quill.keyboard.addBinding({key:"Y",shortKey:!0},g.redo.bind(g)),g}return P(n,[{key:"change",value:function(A,g){if(this.stack[A].length!==0){var b=this.stack[A].pop();this.stack[g].push(b),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(b[A],y.default.sources.USER),this.ignoreChange=!1;var N=i(b[A]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,g){if(A.ops.length!==0){this.stack.redo=[];var b=this.quill.getContents().diff(g),N=Date.now();if(this.lastRecorded+this.options.delay>N&&this.stack.undo.length>0){var v=this.stack.undo.pop();b=b.compose(v.undo),A=v.redo.compose(A)}else this.lastRecorded=N;this.stack.undo.push({redo:A,undo:b}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)}),this.stack.redo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(f){var n=f.ops[f.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
27
+ `):n.attributes!=null?Object.keys(n.attributes).some(function(s){return w.default.query(s,w.default.Scope.BLOCK)!=null}):!1}function i(f){var n=f.reduce(function(A,g){return A+=g.delete||0,A},0),s=f.length()-n;return r(f)&&(s-=1),s}O.default=a,O.getLastChangeIndex=i},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=function(){function S(L,F){for(var M=0;M<F.length;M++){var x=F[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(L,x.key,x)}}return function(L,F,M){return F&&S(L.prototype,F),M&&S(L,M),L}}(),T=function S(L,F,M){L===null&&(L=Function.prototype);var x=Object.getOwnPropertyDescriptor(L,F);if(x===void 0){var j=Object.getPrototypeOf(L);return j===null?void 0:S(j,F,M)}else{if("value"in x)return x.value;var U=x.get;return U===void 0?void 0:U.call(M)}},w=p(3),m=N(w),y=p(2),c=N(y),o=p(8),t=N(o),e=p(23),u=N(e),l=p(34),a=N(l),r=p(59),i=N(r),f=p(60),n=N(f),s=p(28),A=N(s),g=p(61),b=N(g);function N(S){return S&&S.__esModule?S:{default:S}}function v(S,L){if(!(S instanceof L))throw new TypeError("Cannot call a class as a function")}function h(S,L){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:S}function d(S,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);S.prototype=Object.create(L&&L.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(S,L):S.__proto__=L)}var k=[!1,"center","right","justify"],_=["#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"],q=[!1,"serif","monospace"],D=["1","2","3",!1],C=["small",!1,"large","huge"],Z=function(S){d(L,S);function L(F,M){v(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M)),j=function U(H){if(!document.body.contains(F.root))return document.body.removeEventListener("click",U);x.tooltip!=null&&!x.tooltip.root.contains(H.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),x.pickers!=null&&x.pickers.forEach(function(V){V.container.contains(H.target)||V.close()})};return F.emitter.listenDOM("click",document.body,j),x}return P(L,[{key:"addModule",value:function(M){var x=T(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(M,x){M.forEach(function(j){var U=j.getAttribute("class")||"";U.split(/\s+/).forEach(function(H){if(H.startsWith("ql-")&&(H=H.slice(3),x[H]!=null))if(H==="direction")j.innerHTML=x[H][""]+x[H].rtl;else if(typeof x[H]=="string")j.innerHTML=x[H];else{var V=j.value||"";V!=null&&x[H][V]&&(j.innerHTML=x[H][V])}})})}},{key:"buildPickers",value:function(M,x){var j=this;this.pickers=M.map(function(H){if(H.classList.contains("ql-align"))return H.querySelector("option")==null&&E(H,k),new n.default(H,x.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var V=H.classList.contains("ql-background")?"background":"color";return H.querySelector("option")==null&&E(H,_,V==="background"?"#ffffff":"#000000"),new i.default(H,x[V])}else return H.querySelector("option")==null&&(H.classList.contains("ql-font")?E(H,q):H.classList.contains("ql-header")?E(H,D):H.classList.contains("ql-size")&&E(H,C)),new A.default(H)});var U=function(){j.pickers.forEach(function(V){V.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,U)}}]),L}(a.default);Z.DEFAULTS=(0,m.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var L=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var M=new FileReader;M.onload=function(x){var j=L.quill.getSelection(!0);L.quill.updateContents(new c.default().retain(j.index).delete(j.length).insert({image:x.target.result}),t.default.sources.USER),L.quill.setSelection(j.index+1,t.default.sources.SILENT),F.value=""},M.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(S){d(L,S);function L(F,M){v(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}return P(L,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(x){u.default.match(x,"enter")?(M.save(),x.preventDefault()):u.default.match(x,"escape")&&(M.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),x!=null?this.textbox.value=x:M!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var x=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",M,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,t.default.sources.USER)),this.quill.root.scrollTop=x;break}case"video":M=R(M);case"formula":{if(!M)break;var j=this.quill.getSelection(!0);if(j!=null){var U=j.index+j.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),M,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(U+1," ",t.default.sources.USER),this.quill.setSelection(U+2,t.default.sources.USER)}break}default:}this.textbox.value="",this.hide()}}]),L}(b.default);function R(S){var L=S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=S.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":S}function E(S,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;L.forEach(function(M){var x=document.createElement("option");M===F?x.setAttribute("selected","selected"):x.setAttribute("value",M),S.appendChild(x)})}O.BaseTooltip=I,O.default=Z},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function T(){this.head=this.tail=null,this.length=0}return T.prototype.append=function(){for(var w=[],m=0;m<arguments.length;m++)w[m]=arguments[m];this.insertBefore(w[0],null),w.length>1&&this.append.apply(this,w.slice(1))},T.prototype.contains=function(w){for(var m,y=this.iterator();m=y();)if(m===w)return!0;return!1},T.prototype.insertBefore=function(w,m){w&&(w.next=m,m!=null?(w.prev=m.prev,m.prev!=null&&(m.prev.next=w),m.prev=w,m===this.head&&(this.head=w)):this.tail!=null?(this.tail.next=w,w.prev=this.tail,this.tail=w):(w.prev=null,this.head=this.tail=w),this.length+=1)},T.prototype.offset=function(w){for(var m=0,y=this.head;y!=null;){if(y===w)return m;m+=y.length(),y=y.next}return-1},T.prototype.remove=function(w){this.contains(w)&&(w.prev!=null&&(w.prev.next=w.next),w.next!=null&&(w.next.prev=w.prev),w===this.head&&(this.head=w.next),w===this.tail&&(this.tail=w.prev),this.length-=1)},T.prototype.iterator=function(w){return w===void 0&&(w=this.head),function(){var m=w;return w!=null&&(w=w.next),m}},T.prototype.find=function(w,m){m===void 0&&(m=!1);for(var y,c=this.iterator();y=c();){var o=y.length();if(w<o||m&&w===o&&(y.next==null||y.next.length()!==0))return[y,w];w-=o}return[null,0]},T.prototype.forEach=function(w){for(var m,y=this.iterator();m=y();)w(m)},T.prototype.forEachAt=function(w,m,y){if(!(m<=0))for(var c=this.find(w),o=c[0],t=c[1],e,u=w-t,l=this.iterator(o);(e=l())&&u<w+m;){var a=e.length();w>u?y(e,w-u,Math.min(m,u+a-w)):y(e,0,Math.min(a,w+m-u)),u+=a}},T.prototype.map=function(w){return this.reduce(function(m,y){return m.push(w(y)),m},[])},T.prototype.reduce=function(w,m){for(var y,c=this.iterator();y=c();)m=w(m,y);return m},T}();O.default=P},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(17),w=p(1),m={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,c=function(o){P(t,o);function t(e){var u=o.call(this,e)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,m),u.attach(),u}return t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,u){this.update(),e===0&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,e,u)},t.prototype.formatAt=function(e,u,l,a){this.update(),o.prototype.formatAt.call(this,e,u,l,a)},t.prototype.insertAt=function(e,u,l){this.update(),o.prototype.insertAt.call(this,e,u,l)},t.prototype.optimize=function(e,u){var l=this;e===void 0&&(e=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var r=function(s,A){A===void 0&&(A=!0),!(s==null||s===l)&&s.domNode.parentNode!=null&&(s.domNode[w.DATA_KEY].mutations==null&&(s.domNode[w.DATA_KEY].mutations=[]),A&&r(s.parent))},i=function(s){s.domNode[w.DATA_KEY]==null||s.domNode[w.DATA_KEY].mutations==null||(s instanceof T.default&&s.children.forEach(i),s.optimize(u))},f=e,n=0;f.length>0;n+=1){if(n>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(s){var A=w.find(s.target,!0);A!=null&&(A.domNode===s.target&&(s.type==="childList"?(r(w.find(s.previousSibling,!1)),[].forEach.call(s.addedNodes,function(g){var b=w.find(g,!1);r(b,!1),b instanceof T.default&&b.children.forEach(function(N){r(N,!1)})})):s.type==="attributes"&&r(A.prev)),r(A))}),this.children.forEach(i),f=[].slice.call(this.observer.takeRecords()),a=f.slice();a.length>0;)e.push(a.pop())}},t.prototype.update=function(e,u){var l=this;u===void 0&&(u={}),e=e||this.observer.takeRecords(),e.map(function(a){var r=w.find(a.target,!0);return r==null?null:r.domNode[w.DATA_KEY].mutations==null?(r.domNode[w.DATA_KEY].mutations=[a],r):(r.domNode[w.DATA_KEY].mutations.push(a),null)}).forEach(function(a){a==null||a===l||a.domNode[w.DATA_KEY]==null||a.update(a.domNode[w.DATA_KEY].mutations||[],u)}),this.domNode[w.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,u),this.optimize(e,u)},t.blotName="scroll",t.defaultChild="block",t.scope=w.Scope.BLOCK_BLOT,t.tagName="DIV",t}(T.default);O.default=c},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])};return function(o,t){c(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),w=p(1);function m(c,o){if(Object.keys(c).length!==Object.keys(o).length)return!1;for(var t in c)if(c[t]!==o[t])return!1;return!0}var y=function(c){P(o,c);function o(){return c!==null&&c.apply(this,arguments)||this}return o.formats=function(t){if(t.tagName!==o.tagName)return c.formats.call(this,t)},o.prototype.format=function(t,e){var u=this;t===this.statics.blotName&&!e?(this.children.forEach(function(l){l instanceof T.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap()):c.prototype.format.call(this,t,e)},o.prototype.formatAt=function(t,e,u,l){if(this.formats()[u]!=null||w.query(u,w.Scope.ATTRIBUTE)){var a=this.isolate(t,e);a.format(u,l)}else c.prototype.formatAt.call(this,t,e,u,l)},o.prototype.optimize=function(t){c.prototype.optimize.call(this,t);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&m(e,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=w.Scope.INLINE_BLOT,o.tagName="SPAN",o}(T.default);O.default=y},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),w=p(1),m=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.formats=function(o){var t=w.query(c.blotName).tagName;if(o.tagName!==t)return y.formats.call(this,o)},c.prototype.format=function(o,t){w.query(o,w.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!t?this.replaceWith(c.blotName):y.prototype.format.call(this,o,t))},c.prototype.formatAt=function(o,t,e,u){w.query(e,w.Scope.BLOCK)!=null?this.format(e,u):y.prototype.formatAt.call(this,o,t,e,u)},c.prototype.insertAt=function(o,t,e){if(e==null||w.query(t,w.Scope.INLINE)!=null)y.prototype.insertAt.call(this,o,t,e);else{var u=this.split(o),l=w.create(t,e);u.parent.insertBefore(l,u)}},c.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,t)},c.blotName="block",c.scope=w.Scope.BLOCK_BLOT,c.tagName="P",c}(T.default);O.default=m},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var o in c)c.hasOwnProperty(o)&&(y[o]=c[o])};return function(y,c){m(y,c);function o(){this.constructor=y}y.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(19),w=function(m){P(y,m);function y(){return m!==null&&m.apply(this,arguments)||this}return y.formats=function(c){},y.prototype.format=function(c,o){m.prototype.formatAt.call(this,0,this.length(),c,o)},y.prototype.formatAt=function(c,o,t,e){c===0&&o===this.length()?this.format(t,e):m.prototype.formatAt.call(this,c,o,t,e)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(T.default);O.default=w},function(B,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){y(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(19),w=p(1),m=function(y){P(c,y);function c(o){var t=y.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return c.create=function(o){return document.createTextNode(o)},c.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},c.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},c.prototype.index=function(o,t){return this.domNode===o?t:-1},c.prototype.insertAt=function(o,t,e){e==null?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,t,e)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(o){y.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(o,t){return t===void 0&&(t=!1),[this.domNode,o]},c.prototype.split=function(o,t){if(t===void 0&&(t=!1),!t){if(o===0)return this;if(o===this.length())return this.next}var e=w.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},c.prototype.update=function(o,t){var e=this;o.some(function(u){return u.type==="characterData"&&u.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=w.Scope.INLINE_BLOT,c}(T.default);O.default=m},function(B,O,p){"use strict";var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var T=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(w,m){return arguments.length>1&&!this.contains(w)==!m?m:T.call(this,w)}}String.prototype.startsWith||(String.prototype.startsWith=function(w,m){return m=m||0,this.substr(m,w.length)===w}),String.prototype.endsWith||(String.prototype.endsWith=function(w,m){var y=this.toString();(typeof m!="number"||!isFinite(m)||Math.floor(m)!==m||m>y.length)&&(m=y.length),m-=w.length;var c=y.indexOf(w,m);return c!==-1&&c===m}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(m){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof m!="function")throw new TypeError("predicate must be a function");for(var y=Object(this),c=y.length>>>0,o=arguments[1],t,e=0;e<c;e++)if(t=y[e],m.call(o,t,e,y))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(B,O){var p=-1,P=1,T=0;function w(n,s,A){if(n==s)return n?[[T,n]]:[];(A<0||n.length<A)&&(A=null);var g=o(n,s),b=n.substring(0,g);n=n.substring(g),s=s.substring(g),g=t(n,s);var N=n.substring(n.length-g);n=n.substring(0,n.length-g),s=s.substring(0,s.length-g);var v=m(n,s);return b&&v.unshift([T,b]),N&&v.push([T,N]),u(v),A!=null&&(v=r(v,A)),v=i(v),v}function m(n,s){var A;if(!n)return[[P,s]];if(!s)return[[p,n]];var g=n.length>s.length?n:s,b=n.length>s.length?s:n,N=g.indexOf(b);if(N!=-1)return A=[[P,g.substring(0,N)],[T,b],[P,g.substring(N+b.length)]],n.length>s.length&&(A[0][0]=A[2][0]=p),A;if(b.length==1)return[[p,n],[P,s]];var v=e(n,s);if(v){var h=v[0],d=v[1],k=v[2],_=v[3],q=v[4],D=w(h,k),C=w(d,_);return D.concat([[T,q]],C)}return y(n,s)}function y(n,s){for(var A=n.length,g=s.length,b=Math.ceil((A+g)/2),N=b,v=2*b,h=new Array(v),d=new Array(v),k=0;k<v;k++)h[k]=-1,d[k]=-1;h[N+1]=0,d[N+1]=0;for(var _=A-g,q=_%2!=0,D=0,C=0,Z=0,I=0,R=0;R<b;R++){for(var E=-R+D;E<=R-C;E+=2){var S=N+E,L;E==-R||E!=R&&h[S-1]<h[S+1]?L=h[S+1]:L=h[S-1]+1;for(var F=L-E;L<A&&F<g&&n.charAt(L)==s.charAt(F);)L++,F++;if(h[S]=L,L>A)C+=2;else if(F>g)D+=2;else if(q){var M=N+_-E;if(M>=0&&M<v&&d[M]!=-1){var x=A-d[M];if(L>=x)return c(n,s,L,F)}}}for(var j=-R+Z;j<=R-I;j+=2){var M=N+j,x;j==-R||j!=R&&d[M-1]<d[M+1]?x=d[M+1]:x=d[M-1]+1;for(var U=x-j;x<A&&U<g&&n.charAt(A-x-1)==s.charAt(g-U-1);)x++,U++;if(d[M]=x,x>A)I+=2;else if(U>g)Z+=2;else if(!q){var S=N+_-j;if(S>=0&&S<v&&h[S]!=-1){var L=h[S],F=N+L-S;if(x=A-x,L>=x)return c(n,s,L,F)}}}}return[[p,n],[P,s]]}function c(n,s,A,g){var b=n.substring(0,A),N=s.substring(0,g),v=n.substring(A),h=s.substring(g),d=w(b,N),k=w(v,h);return d.concat(k)}function o(n,s){if(!n||!s||n.charAt(0)!=s.charAt(0))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(N,b)==s.substring(N,b)?(A=b,N=A):g=b,b=Math.floor((g-A)/2+A);return b}function t(n,s){if(!n||!s||n.charAt(n.length-1)!=s.charAt(s.length-1))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(n.length-b,n.length-N)==s.substring(s.length-b,s.length-N)?(A=b,N=A):g=b,b=Math.floor((g-A)/2+A);return b}function e(n,s){var A=n.length>s.length?n:s,g=n.length>s.length?s:n;if(A.length<4||g.length*2<A.length)return null;function b(C,Z,I){for(var R=C.substring(I,I+Math.floor(C.length/4)),E=-1,S="",L,F,M,x;(E=Z.indexOf(R,E+1))!=-1;){var j=o(C.substring(I),Z.substring(E)),U=t(C.substring(0,I),Z.substring(0,E));S.length<U+j&&(S=Z.substring(E-U,E)+Z.substring(E,E+j),L=C.substring(0,I-U),F=C.substring(I+j),M=Z.substring(0,E-U),x=Z.substring(E+j))}return S.length*2>=C.length?[L,F,M,x,S]:null}var N=b(A,g,Math.ceil(A.length/4)),v=b(A,g,Math.ceil(A.length/2)),h;if(!N&&!v)return null;v?N?h=N[4].length>v[4].length?N:v:h=v:h=N;var d,k,_,q;n.length>s.length?(d=h[0],k=h[1],_=h[2],q=h[3]):(_=h[0],q=h[1],d=h[2],k=h[3]);var D=h[4];return[d,k,_,q,D]}function u(n){n.push([T,""]);for(var s=0,A=0,g=0,b="",N="",v;s<n.length;)switch(n[s][0]){case P:g++,N+=n[s][1],s++;break;case p:A++,b+=n[s][1],s++;break;case T:A+g>1?(A!==0&&g!==0&&(v=o(N,b),v!==0&&(s-A-g>0&&n[s-A-g-1][0]==T?n[s-A-g-1][1]+=N.substring(0,v):(n.splice(0,0,[T,N.substring(0,v)]),s++),N=N.substring(v),b=b.substring(v)),v=t(N,b),v!==0&&(n[s][1]=N.substring(N.length-v)+n[s][1],N=N.substring(0,N.length-v),b=b.substring(0,b.length-v))),A===0?n.splice(s-g,A+g,[P,N]):g===0?n.splice(s-A,A+g,[p,b]):n.splice(s-A-g,A+g,[p,b],[P,N]),s=s-A-g+(A?1:0)+(g?1:0)+1):s!==0&&n[s-1][0]==T?(n[s-1][1]+=n[s][1],n.splice(s,1)):s++,g=0,A=0,b="",N="";break}n[n.length-1][1]===""&&n.pop();var h=!1;for(s=1;s<n.length-1;)n[s-1][0]==T&&n[s+1][0]==T&&(n[s][1].substring(n[s][1].length-n[s-1][1].length)==n[s-1][1]?(n[s][1]=n[s-1][1]+n[s][1].substring(0,n[s][1].length-n[s-1][1].length),n[s+1][1]=n[s-1][1]+n[s+1][1],n.splice(s-1,1),h=!0):n[s][1].substring(0,n[s+1][1].length)==n[s+1][1]&&(n[s-1][1]+=n[s+1][1],n[s][1]=n[s][1].substring(n[s+1][1].length)+n[s+1][1],n.splice(s+1,1),h=!0)),s++;h&&u(n)}var l=w;l.INSERT=P,l.DELETE=p,l.EQUAL=T,B.exports=l;function a(n,s){if(s===0)return[T,n];for(var A=0,g=0;g<n.length;g++){var b=n[g];if(b[0]===p||b[0]===T){var N=A+b[1].length;if(s===N)return[g+1,n];if(s<N){n=n.slice();var v=s-A,h=[b[0],b[1].slice(0,v)],d=[b[0],b[1].slice(v)];return n.splice(g,1,h,d),[g+1,n]}else A=N}}throw new Error("cursor_pos is out of bounds!")}function r(n,s){var A=a(n,s),g=A[1],b=A[0],N=g[b],v=g[b+1];if(N==null)return n;if(N[0]!==T)return n;if(v!=null&&N[1]+v[1]===v[1]+N[1])return g.splice(b,2,v,N),f(g,b,2);if(v!=null&&v[1].indexOf(N[1])===0){g.splice(b,2,[v[0],N[1]],[0,N[1]]);var h=v[1].slice(N[1].length);return h.length>0&&g.splice(b+2,0,[v[0],h]),f(g,b,3)}else return n}function i(n){for(var s=!1,A=function(v){return v.charCodeAt(0)>=56320&&v.charCodeAt(0)<=57343},g=function(v){return v.charCodeAt(v.length-1)>=55296&&v.charCodeAt(v.length-1)<=56319},b=2;b<n.length;b+=1)n[b-2][0]===T&&g(n[b-2][1])&&n[b-1][0]===p&&A(n[b-1][1])&&n[b][0]===P&&A(n[b][1])&&(s=!0,n[b-1][1]=n[b-2][1].slice(-1)+n[b-1][1],n[b][1]=n[b-2][1].slice(-1)+n[b][1],n[b-2][1]=n[b-2][1].slice(0,-1));if(!s)return n;for(var N=[],b=0;b<n.length;b+=1)n[b][1].length>0&&N.push(n[b]);return N}function f(n,s,A){for(var g=s+A-1;g>=0&&g>=s-1;g--)if(g+1<n.length){var b=n[g],N=n[g+1];b[0]===N[1]&&n.splice(g,2,[b[0],b[1]+N[1]])}return n}},function(B,O){O=B.exports=typeof Object.keys=="function"?Object.keys:p,O.shim=p;function p(P){var T=[];for(var w in P)T.push(w);return T}},function(B,O){var p=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";O=B.exports=p?P:T,O.supported=P;function P(w){return Object.prototype.toString.call(w)=="[object Arguments]"}O.unsupported=T;function T(w){return w&&typeof w=="object"&&typeof w.length=="number"&&Object.prototype.hasOwnProperty.call(w,"callee")&&!Object.prototype.propertyIsEnumerable.call(w,"callee")||!1}},function(B,O){"use strict";var p=Object.prototype.hasOwnProperty,P="~";function T(){}Object.create&&(T.prototype=Object.create(null),new T().__proto__||(P=!1));function w(y,c,o){this.fn=y,this.context=c,this.once=o||!1}function m(){this._events=new T,this._eventsCount=0}m.prototype.eventNames=function(){var c=[],o,t;if(this._eventsCount===0)return c;for(t in o=this._events)p.call(o,t)&&c.push(P?t.slice(1):t);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(o)):c},m.prototype.listeners=function(c,o){var t=P?P+c:c,e=this._events[t];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var u=0,l=e.length,a=new Array(l);u<l;u++)a[u]=e[u].fn;return a},m.prototype.emit=function(c,o,t,e,u,l){var a=P?P+c:c;if(!this._events[a])return!1;var r=this._events[a],i=arguments.length,f,n;if(r.fn){switch(r.once&&this.removeListener(c,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,t),!0;case 4:return r.fn.call(r.context,o,t,e),!0;case 5:return r.fn.call(r.context,o,t,e,u),!0;case 6:return r.fn.call(r.context,o,t,e,u,l),!0}for(n=1,f=new Array(i-1);n<i;n++)f[n-1]=arguments[n];r.fn.apply(r.context,f)}else{var s=r.length,A;for(n=0;n<s;n++)switch(r[n].once&&this.removeListener(c,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,t);break;case 4:r[n].fn.call(r[n].context,o,t,e);break;default:if(!f)for(A=1,f=new Array(i-1);A<i;A++)f[A-1]=arguments[A];r[n].fn.apply(r[n].context,f)}}return!0},m.prototype.on=function(c,o,t){var e=new w(o,t||this),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.once=function(c,o,t){var e=new w(o,t||this,!0),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.removeListener=function(c,o,t,e){var u=P?P+c:c;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new T:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!e||l.once)&&(!t||l.context===t)&&(--this._eventsCount===0?this._events=new T:delete this._events[u]);else{for(var a=0,r=[],i=l.length;a<i;a++)(l[a].fn!==o||e&&!l[a].once||t&&l[a].context!==t)&&r.push(l[a]);r.length?this._events[u]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new T:delete this._events[u]}return this},m.prototype.removeAllListeners=function(c){var o;return c?(o=P?P+c:c,this._events[o]&&(--this._eventsCount===0?this._events=new T:delete this._events[o])):(this._events=new T,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prototype.setMaxListeners=function(){return this},m.prefixed=P,m.EventEmitter=m,typeof B<"u"&&(B.exports=m)},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.matchText=O.matchSpacing=O.matchNewline=O.matchBlot=O.matchAttributor=O.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},T=function(){function z(K,$){var G=[],W=!0,J=!1,tt=void 0;try{for(var et=K[Symbol.iterator](),ut;!(W=(ut=et.next()).done)&&(G.push(ut.value),!($&&G.length===$));W=!0);}catch(ft){J=!0,tt=ft}finally{try{!W&&et.return&&et.return()}finally{if(J)throw tt}}return G}return function(K,$){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return z(K,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function z(K,$){for(var G=0;G<$.length;G++){var W=$[G];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(K,W.key,W)}}return function(K,$,G){return $&&z(K.prototype,$),G&&z(K,G),K}}(),m=p(3),y=d(m),c=p(2),o=d(c),t=p(0),e=d(t),u=p(5),l=d(u),a=p(10),r=d(a),i=p(9),f=d(i),n=p(36),s=p(37),A=p(13),g=d(A),b=p(26),N=p(38),v=p(39),h=p(40);function d(z){return z&&z.__esModule?z:{default:z}}function k(z,K,$){return K in z?Object.defineProperty(z,K,{value:$,enumerable:!0,configurable:!0,writable:!0}):z[K]=$,z}function _(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}function q(z,K){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:z}function D(z,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(z,K):z.__proto__=K)}var C=(0,r.default)("quill:clipboard"),Z="__ql-matcher",I=[[Node.TEXT_NODE,lt],[Node.TEXT_NODE,nt],["br",Y],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,at],["li",Q],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",X]],R=[n.AlignAttribute,N.DirectionAttribute].reduce(function(z,K){return z[K.keyName]=K,z},{}),E=[n.AlignStyle,s.BackgroundStyle,b.ColorStyle,N.DirectionStyle,v.FontStyle,h.SizeStyle].reduce(function(z,K){return z[K.keyName]=K,z},{}),S=function(z){D(K,z);function K($,G){_(this,K);var W=q(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,$,G));return W.quill.root.addEventListener("paste",W.onPaste.bind(W)),W.container=W.quill.addContainer("ql-clipboard"),W.container.setAttribute("contenteditable",!0),W.container.setAttribute("tabindex",-1),W.matchers=[],I.concat(W.options.matchers).forEach(function(J){var tt=T(J,2),et=tt[0],ut=tt[1];!G.matchVisual&&ut===rt||W.addMatcher(et,ut)}),W}return w(K,[{key:"addMatcher",value:function(G,W){this.matchers.push([G,W])}},{key:"convert",value:function(G){if(typeof G=="string")return this.container.innerHTML=G.replace(/\>\r?\n +\</g,"><"),this.convert();var W=this.quill.getFormat(this.quill.selection.savedRange.index);if(W[g.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",new o.default().insert(J,k({},g.default.blotName,W[g.default.blotName]))}var tt=this.prepareMatching(),et=T(tt,2),ut=et[0],ft=et[1],it=j(this.container,ut,ft);return M(it,`
28
+ `)&&it.ops[it.ops.length-1].attributes==null&&(it=it.compose(new o.default().retain(it.length()-1).delete(1))),C.log("convert",this.container.innerHTML,it),this.container.innerHTML="",it}},{key:"dangerouslyPasteHTML",value:function(G,W){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof G=="string")this.quill.setContents(this.convert(G),W),this.quill.setSelection(0,l.default.sources.SILENT);else{var tt=this.convert(W);this.quill.updateContents(new o.default().retain(G).concat(tt),J),this.quill.setSelection(G+tt.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(G){var W=this;if(!(G.defaultPrevented||!this.quill.isEnabled())){var J=this.quill.getSelection(),tt=new o.default().retain(J.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){tt=tt.concat(W.convert()).delete(J.length),W.quill.updateContents(tt,l.default.sources.USER),W.quill.setSelection(tt.length()-J.length,l.default.sources.SILENT),W.quill.scrollingContainer.scrollTop=et,W.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,W=[],J=[];return this.matchers.forEach(function(tt){var et=T(tt,2),ut=et[0],ft=et[1];switch(ut){case Node.TEXT_NODE:J.push(ft);break;case Node.ELEMENT_NODE:W.push(ft);break;default:[].forEach.call(G.container.querySelectorAll(ut),function(it){it[Z]=it[Z]||[],it[Z].push(ft)});break}}),[W,J]}}]),K}(f.default);S.DEFAULTS={matchers:[],matchVisual:!0};function L(z,K,$){return(typeof K>"u"?"undefined":P(K))==="object"?Object.keys(K).reduce(function(G,W){return L(G,W,K[W])},z):z.reduce(function(G,W){return W.attributes&&W.attributes[K]?G.push(W):G.insert(W.insert,(0,y.default)({},k({},K,$),W.attributes))},new o.default)}function F(z){if(z.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return z[K]||(z[K]=window.getComputedStyle(z))}function M(z,K){for(var $="",G=z.ops.length-1;G>=0&&$.length<K.length;--G){var W=z.ops[G];if(typeof W.insert!="string")break;$=W.insert+$}return $.slice(-1*K.length)===K}function x(z){if(z.childNodes.length===0)return!1;var K=F(z);return["block","list-item"].indexOf(K.display)>-1}function j(z,K,$){return z.nodeType===z.TEXT_NODE?$.reduce(function(G,W){return W(z,G)},new o.default):z.nodeType===z.ELEMENT_NODE?[].reduce.call(z.childNodes||[],function(G,W){var J=j(W,K,$);return W.nodeType===z.ELEMENT_NODE&&(J=K.reduce(function(tt,et){return et(W,tt)},J),J=(W[Z]||[]).reduce(function(tt,et){return et(W,tt)},J)),G.concat(J)},new o.default):new o.default}function U(z,K,$){return L($,z,!0)}function H(z,K){var $=e.default.Attributor.Attribute.keys(z),G=e.default.Attributor.Class.keys(z),W=e.default.Attributor.Style.keys(z),J={};return $.concat(G).concat(W).forEach(function(tt){var et=e.default.query(tt,e.default.Scope.ATTRIBUTE);et!=null&&(J[et.attrName]=et.value(z),J[et.attrName])||(et=R[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(z)||void 0),et=E[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(et=E[tt],J[et.attrName]=et.value(z)||void 0))}),Object.keys(J).length>0&&(K=L(K,J)),K}function V(z,K){var $=e.default.query(z);if($==null)return K;if($.prototype instanceof e.default.Embed){var G={},W=$.value(z);W!=null&&(G[$.blotName]=W,K=new o.default().insert(G,$.formats(z)))}else typeof $.formats=="function"&&(K=L(K,$.blotName,$.formats(z)));return K}function Y(z,K){return M(K,`
29
29
  `)||K.insert(`
30
30
  `),K}function X(){return new o.default}function Q(z,K){var $=e.default.query(z);if($==null||$.blotName!=="list-item"||!M(K,`
31
31
  `))return K;for(var G=-1,W=z.parentNode;!W.classList.contains("ql-clipboard");)(e.default.query(W)||{}).blotName==="list"&&(G+=1),W=W.parentNode;return G<=0?K:K.compose(new o.default().retain(K.length()-1).retain(1,{indent:G}))}function nt(z,K){return M(K,`