@konnectio/core 4.0.10 → 4.0.12
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.
- package/dist/ActionField-23ce1b2a.cjs +1 -0
- package/dist/{ActionField-68f65af4.js → ActionField-311942d2.js} +21 -21
- package/dist/ActionField-311942d2.js.br +0 -0
- package/dist/{AvailabilitySkeleton-c48588e4.js → AvailabilitySkeleton-2dfbb28e.js} +80 -80
- package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
- package/dist/AvailabilitySkeleton-7d9e2680.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-b6694990.cjs → DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs} +3 -3
- package/dist/{DateField.vue_vue_type_style_index_0_lang-87ddfed8.js → DateField.vue_vue_type_style_index_0_lang-ec35955b.js} +1816 -1820
- package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
- package/dist/{Field-d926807f.cjs → Field-dcffacf2.cjs} +1 -1
- package/dist/{Field-b76d82cb.js → Field-ff599d13.js} +2 -2
- package/dist/Field-ff599d13.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js → NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js} +28 -28
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +802 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-c973d794.js → SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js} +7754 -7718
- package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
- package/dist/TextField-6f7e37d9.cjs +54 -0
- package/dist/{TextField-8f6e5ef5.js → TextField-cd93b966.js} +3241 -3241
- package/dist/TextField-cd93b966.js.br +0 -0
- package/dist/{ThankYou-8ae535bf.cjs → ThankYou-3d74a6dc.cjs} +2 -2
- package/dist/{ThankYou-2f3c4efe.js → ThankYou-c1878478.js} +48 -47
- package/dist/ThankYou-c1878478.js.br +0 -0
- package/dist/{_-3cff5490.cjs → _-0895679a.cjs} +1 -1
- package/dist/{_-734c9d50.js → _-8772cf9a.js} +1 -1
- package/dist/_-8772cf9a.js.br +0 -0
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/{event-e08d0178.js → event-60e076f2.js} +36 -36
- package/dist/event-60e076f2.js.br +0 -0
- package/dist/event-8e90a6e3.cjs +1 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +98 -98
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +4 -4
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +192 -192
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1406 -1395
- package/dist/hotel.js.br +0 -0
- package/dist/index-345407fb.cjs +1 -0
- package/dist/{index-c28f52d1.js → index-b5d8f4fc.js} +83 -83
- package/dist/index-b5d8f4fc.js.br +0 -0
- package/dist/polyfill.cjs +4 -4
- package/dist/polyfill.js +3311 -3398
- package/dist/polyfill.js.br +0 -0
- package/dist/store/payment.d.ts +1 -1
- package/package.json +6 -6
- package/dist/ActionField-68f65af4.js.br +0 -0
- package/dist/ActionField-ab9c01ab.cjs +0 -1
- package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
- package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
- package/dist/Field-b76d82cb.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +0 -806
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
- package/dist/TextField-528ca68c.cjs +0 -54
- package/dist/TextField-8f6e5ef5.js.br +0 -0
- package/dist/ThankYou-2f3c4efe.js.br +0 -0
- package/dist/_-734c9d50.js.br +0 -0
- package/dist/event-4662e27c.cjs +0 -1
- package/dist/event-e08d0178.js.br +0 -0
- package/dist/index-a46a0876.cjs +0 -1
- package/dist/index-c28f52d1.js.br +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";const ee=require("./SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs"),Ee=require("./_commonjsHelpers-6763f629.cjs"),er=["name","value"],tr=ee.defineComponent({__name:"SelectField",props:{modelValue:{},label:{},options:{},labelKey:{default:"label"},valueKey:{default:"value"},name:{},icon:{},iconType:{},iconColor:{},iconPlacement:{},id:{},multiple:{type:Boolean,default:!1},taggable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},placeholder:{},autocomplete:{default:"off"},clearable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(j,{emit:U}){const b=j,p=b.id||ee.ranId(),f=ee.ref();function E(m){U("update:modelValue",m)}return ee.watch(f,m=>{E(m)}),ee.onMounted(()=>f.value=b.modelValue),(m,_)=>(ee.openBlock(),ee.createBlock(ee.InputField,{label:m.label,id:ee.unref(p),icon:m.icon,"icon-type":m.iconType,"icon-color":m.iconColor,"icon-placement":m.iconPlacement,required:m.required,type:"dropdown",readonly:m.readonly},{default:ee.withCtx(()=>[ee.createBaseVNode("input",{type:"hidden",name:m.name,value:m.modelValue},null,8,er),ee.createVNode(ee.unref(ee.Ce),{modelValue:f.value,"onUpdate:modelValue":_[0]||(_[0]=y=>f.value=y),label:m.labelKey,uid:ee.unref(p),reduce:y=>y[m.valueKey],placeholder:m.placeholder,options:m.options,multiple:m.multiple,taggable:m.taggable,autocomplete:m.autocomplete,clearable:m.clearable},{option:ee.withCtx(y=>[ee.renderSlot(m.$slots,"option",{data:y})]),"selected-option":ee.withCtx(y=>[ee.renderSlot(m.$slots,"selected-option",{data:y})]),_:3},8,["modelValue","label","uid","reduce","placeholder","options","multiple","taggable","autocomplete","clearable"])]),_:3},8,["label","id","icon","icon-type","icon-color","icon-placement","required","readonly"]))}});var Kn={exports:{}};/*!
|
|
2
|
-
* Quill Editor v1.3.7
|
|
3
|
-
* https://quilljs.com/
|
|
4
|
-
* Copyright (c) 2014, Jason Chen
|
|
5
|
-
* Copyright (c) 2013, salesforce.com
|
|
6
|
-
*/(function(j,U){(function(p,f){j.exports=f()})(typeof self<"u"?self:Ee.commonjsGlobal,function(){return function(b){var p={};function f(E){if(p[E])return p[E].exports;var m=p[E]={i:E,l:!1,exports:{}};return b[E].call(m.exports,m,m.exports,f),m.l=!0,m.exports}return f.m=b,f.c=p,f.d=function(E,m,_){f.o(E,m)||Object.defineProperty(E,m,{configurable:!1,enumerable:!0,get:_})},f.n=function(E){var m=E&&E.__esModule?function(){return E.default}:function(){return E};return f.d(m,"a",m),m},f.o=function(E,m){return Object.prototype.hasOwnProperty.call(E,m)},f.p="",f(f.s=109)}([function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(17),m=f(18),_=f(19),y=f(45),g=f(46),h=f(47),o=f(48),e=f(49),t=f(12),a=f(32),l=f(33),s=f(31),r=f(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:E.default,Format:m.default,Leaf:_.default,Embed:o.default,Scroll:y.default,Block:h.default,Inline:g.default,Text:e.default,Attributor:{Attribute:t.default,Class:a.default,Style:l.default,Store:s.default}};p.default=i},function(b,p,f){var E=this&&this.__extends||function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var c in i)i.hasOwnProperty(c)&&(r[c]=i[c])};return function(r,i){s(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=function(s){E(r,s);function r(i){var c=this;return i="[Parchment] "+i,c=s.call(this,i)||this,c.message=i,c.name=c.constructor.name,c}return r}(Error);p.ParchmentError=m;var _={},y={},g={},h={};p.DATA_KEY="__blot";var o;(function(s){s[s.TYPE=3]="TYPE",s[s.LEVEL=12]="LEVEL",s[s.ATTRIBUTE=13]="ATTRIBUTE",s[s.BLOT=14]="BLOT",s[s.INLINE=7]="INLINE",s[s.BLOCK=11]="BLOCK",s[s.BLOCK_BLOT=10]="BLOCK_BLOT",s[s.INLINE_BLOT=6]="INLINE_BLOT",s[s.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",s[s.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",s[s.ANY=15]="ANY"})(o=p.Scope||(p.Scope={}));function e(s,r){var i=a(s);if(i==null)throw new m("Unable to create "+s+" blot");var c=i,n=s instanceof Node||s.nodeType===Node.TEXT_NODE?s:c.create(r);return new c(n,r)}p.create=e;function t(s,r){return r===void 0&&(r=!1),s==null?null:s[p.DATA_KEY]!=null?s[p.DATA_KEY].blot:r?t(s.parentNode,r):null}p.find=t;function a(s,r){r===void 0&&(r=o.ANY);var i;if(typeof s=="string")i=h[s]||_[s];else if(s instanceof Text||s.nodeType===Node.TEXT_NODE)i=h.text;else if(typeof s=="number")s&o.LEVEL&o.BLOCK?i=h.block:s&o.LEVEL&o.INLINE&&(i=h.inline);else if(s instanceof HTMLElement){var c=(s.getAttribute("class")||"").split(/\s+/);for(var n in c)if(i=y[c[n]],i)break;i=i||g[s.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}p.query=a;function l(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];if(s.length>1)return s.map(function(n){return l(n)});var i=s[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new m("Invalid definition");if(i.blotName==="abstract")throw new m("Cannot register abstract class");if(h[i.blotName||i.attrName]=i,typeof i.keyName=="string")_[i.keyName]=i;else if(i.className!=null&&(y[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 c=Array.isArray(i.tagName)?i.tagName:[i.tagName];c.forEach(function(n){(g[n]==null||i.className==null)&&(g[n]=i)})}return i}p.register=l},function(b,p,f){var E=f(51),m=f(11),_=f(3),y=f(20),g=String.fromCharCode(0),h=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};h.prototype.insert=function(o,e){var t={};return o.length===0?this:(t.insert=o,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},h.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},h.prototype.retain=function(o,e){if(o<=0)return this;var t={retain:o};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},h.prototype.push=function(o){var e=this.ops.length,t=this.ops[e-1];if(o=_(!0,{},o),typeof t=="object"){if(typeof o.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+o.delete},this;if(typeof t.delete=="number"&&o.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(o),this;if(m(o.attributes,t.attributes)){if(typeof o.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+o.insert},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+o.retain},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this}}return e===this.ops.length?this.ops.push(o):this.ops.splice(e,0,o),this},h.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},h.prototype.filter=function(o){return this.ops.filter(o)},h.prototype.forEach=function(o){this.ops.forEach(o)},h.prototype.map=function(o){return this.ops.map(o)},h.prototype.partition=function(o){var e=[],t=[];return this.forEach(function(a){var l=o(a)?e:t;l.push(a)}),[e,t]},h.prototype.reduce=function(o,e){return this.ops.reduce(o,e)},h.prototype.changeLength=function(){return this.reduce(function(o,e){return e.insert?o+y.length(e):e.delete?o-e.delete:o},0)},h.prototype.length=function(){return this.reduce(function(o,e){return o+y.length(e)},0)},h.prototype.slice=function(o,e){o=o||0,typeof e!="number"&&(e=1/0);for(var t=[],a=y.iterator(this.ops),l=0;l<e&&a.hasNext();){var s;l<o?s=a.next(o-l):(s=a.next(e-l),t.push(s)),l+=y.length(s)}return new h(t)},h.prototype.compose=function(o){var e=y.iterator(this.ops),t=y.iterator(o.ops),a=[],l=t.peek();if(l!=null&&typeof l.retain=="number"&&l.attributes==null){for(var s=l.retain;e.peekType()==="insert"&&e.peekLength()<=s;)s-=e.peekLength(),a.push(e.next());l.retain-s>0&&t.next(l.retain-s)}for(var r=new h(a);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")r.push(t.next());else if(e.peekType()==="delete")r.push(e.next());else{var i=Math.min(e.peekLength(),t.peekLength()),c=e.next(i),n=t.next(i);if(typeof n.retain=="number"){var d={};typeof c.retain=="number"?d.retain=i:d.insert=c.insert;var k=y.attributes.compose(c.attributes,n.attributes,typeof c.retain=="number");if(k&&(d.attributes=k),r.push(d),!t.hasNext()&&m(r.ops[r.ops.length-1],d)){var w=new h(e.rest());return r.concat(w).chop()}}else typeof n.delete=="number"&&typeof c.retain=="number"&&r.push(n)}return r.chop()},h.prototype.concat=function(o){var e=new h(this.ops.slice());return o.ops.length>0&&(e.push(o.ops[0]),e.ops=e.ops.concat(o.ops.slice(1))),e},h.prototype.diff=function(o,e){if(this.ops===o.ops)return new h;var t=[this,o].map(function(i){return i.map(function(c){if(c.insert!=null)return typeof c.insert=="string"?c.insert:g;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),a=new h,l=E(t[0],t[1],e),s=y.iterator(this.ops),r=y.iterator(o.ops);return l.forEach(function(i){for(var c=i[1].length;c>0;){var n=0;switch(i[0]){case E.INSERT:n=Math.min(r.peekLength(),c),a.push(r.next(n));break;case E.DELETE:n=Math.min(c,s.peekLength()),s.next(n),a.delete(n);break;case E.EQUAL:n=Math.min(s.peekLength(),r.peekLength(),c);var d=s.next(n),k=r.next(n);m(d.insert,k.insert)?a.retain(n,y.attributes.diff(d.attributes,k.attributes)):a.push(k).delete(n);break}c-=n}}),a.chop()},h.prototype.eachLine=function(o,e){e=e||`
|
|
7
|
-
`;for(var t=y.iterator(this.ops),a=new h,l=0;t.hasNext();){if(t.peekType()!=="insert")return;var s=t.peek(),r=y.length(s)-t.peekLength(),i=typeof s.insert=="string"?s.insert.indexOf(e,r)-r:-1;if(i<0)a.push(t.next());else if(i>0)a.push(t.next(i));else{if(o(a,t.next(1).attributes||{},l)===!1)return;l+=1,a=new h}}a.length()>0&&o(a,{},l)},h.prototype.transform=function(o,e){if(e=!!e,typeof o=="number")return this.transformPosition(o,e);for(var t=y.iterator(this.ops),a=y.iterator(o.ops),l=new h;t.hasNext()||a.hasNext();)if(t.peekType()==="insert"&&(e||a.peekType()!=="insert"))l.retain(y.length(t.next()));else if(a.peekType()==="insert")l.push(a.next());else{var s=Math.min(t.peekLength(),a.peekLength()),r=t.next(s),i=a.next(s);if(r.delete)continue;i.delete?l.push(i):l.retain(s,y.attributes.transform(r.attributes,i.attributes,e))}return l.chop()},h.prototype.transformPosition=function(o,e){e=!!e;for(var t=y.iterator(this.ops),a=0;t.hasNext()&&a<=o;){var l=t.peekLength(),s=t.peekType();if(t.next(),s==="delete"){o-=Math.min(l,o-a);continue}else s==="insert"&&(a<o||!e)&&(o+=l);a+=l}return o},b.exports=h},function(b,p){var f=Object.prototype.hasOwnProperty,E=Object.prototype.toString,m=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=function(t){return typeof Array.isArray=="function"?Array.isArray(t):E.call(t)==="[object Array]"},g=function(t){if(!t||E.call(t)!=="[object Object]")return!1;var a=f.call(t,"constructor"),l=t.constructor&&t.constructor.prototype&&f.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!l)return!1;var s;for(s in t);return typeof s>"u"||f.call(t,s)},h=function(t,a){m&&a.name==="__proto__"?m(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},o=function(t,a){if(a==="__proto__")if(f.call(t,a)){if(_)return _(t,a).value}else return;return t[a]};b.exports=function e(){var t,a,l,s,r,i,c=arguments[0],n=1,d=arguments.length,k=!1;for(typeof c=="boolean"&&(k=c,c=arguments[1]||{},n=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});n<d;++n)if(t=arguments[n],t!=null)for(a in t)l=o(c,a),s=o(t,a),c!==s&&(k&&s&&(g(s)||(r=y(s)))?(r?(r=!1,i=l&&y(l)?l:[]):i=l&&g(l)?l:{},h(c,{name:a,newValue:e(k,i,s)})):typeof s<"u"&&h(c,{name:a,newValue:s}));return c}},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BlockEmbed=p.bubbleFormats=void 0;var E=function(){function v(O,N){for(var L=0;L<N.length;L++){var D=N[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(O,D.key,D)}}return function(O,N,L){return N&&v(O.prototype,N),L&&v(O,L),O}}(),m=function v(O,N,L){O===null&&(O=Function.prototype);var D=Object.getOwnPropertyDescriptor(O,N);if(D===void 0){var z=Object.getPrototypeOf(O);return z===null?void 0:v(z,N,L)}else{if("value"in D)return D.value;var V=D.get;return V===void 0?void 0:V.call(L)}},_=f(3),y=c(_),g=f(2),h=c(g),o=f(0),e=c(o),t=f(16),a=c(t),l=f(6),s=c(l),r=f(7),i=c(r);function c(v){return v&&v.__esModule?v:{default:v}}function n(v,O){if(!(v instanceof O))throw new TypeError("Cannot call a class as a function")}function d(v,O){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:v}function k(v,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);v.prototype=Object.create(O&&O.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(v,O):v.__proto__=O)}var w=1,T=function(v){k(O,v);function O(){return n(this,O),d(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return E(O,[{key:"attach",value:function(){m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new h.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(L,D){var z=e.default.query(L,e.default.Scope.BLOCK_ATTRIBUTE);z!=null&&this.attributes.attribute(z,D)}},{key:"formatAt",value:function(L,D,z,V){this.format(z,V)}},{key:"insertAt",value:function(L,D,z){if(typeof D=="string"&&D.endsWith(`
|
|
8
|
-
`)){var V=e.default.create(P.blotName);this.parent.insertBefore(V,L===0?this:this.next),V.insertAt(0,D.slice(0,-1))}else m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,L,D,z)}}]),O}(e.default.Embed);T.scope=e.default.Scope.BLOCK_BLOT;var P=function(v){k(O,v);function O(N){n(this,O);var L=d(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N));return L.cache={},L}return E(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(L,D){return D.length()===0?L:L.insert(D.value(),A(D))},new h.default).insert(`
|
|
9
|
-
`,A(this))),this.cache.delta}},{key:"deleteAt",value:function(L,D){m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,L,D),this.cache={}}},{key:"formatAt",value:function(L,D,z,V){D<=0||(e.default.query(z,e.default.Scope.BLOCK)?L+D===this.length()&&this.format(z,V):m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,L,Math.min(D,this.length()-L-1),z,V),this.cache={})}},{key:"insertAt",value:function(L,D,z){if(z!=null)return m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,L,D,z);if(D.length!==0){var V=D.split(`
|
|
10
|
-
`),J=V.shift();J.length>0&&(L<this.length()-1||this.children.tail==null?m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(L,this.length()-1),J):this.children.tail.insertAt(this.children.tail.length(),J),this.cache={});var H=this;V.reduce(function(R,S){return H=H.split(R,!0),H.insertAt(0,S),S.length},L+J.length)}}},{key:"insertBefore",value:function(L,D){var z=this.children.head;m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,L,D),z instanceof a.default&&z.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(L,D){m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,L,D),this.cache={}}},{key:"optimize",value:function(L){m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,L),this.cache={}}},{key:"path",value:function(L){return m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,L,!0)}},{key:"removeChild",value:function(L){m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,L),this.cache={}}},{key:"split",value:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D&&(L===0||L>=this.length()-w)){var z=this.clone();return L===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var V=m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,L,D);return this.cache={},V}}}]),O}(e.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[s.default,e.default.Embed,i.default];function A(v){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v==null||(typeof v.formats=="function"&&(O=(0,y.default)(O,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?O:A(v.parent,O)}p.bubbleFormats=A,p.BlockEmbed=T,p.default=P},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.overload=p.expandConfig=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},m=function(){function H(R,S){var I=[],M=!0,K=!1,C=void 0;try{for(var q=R[Symbol.iterator](),F;!(M=(F=q.next()).done)&&(I.push(F.value),!(S&&I.length===S));M=!0);}catch(G){K=!0,C=G}finally{try{!M&&q.return&&q.return()}finally{if(K)throw C}}return I}return function(R,S){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return H(R,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function H(R,S){for(var I=0;I<S.length;I++){var M=S[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(R,M.key,M)}}return function(R,S,I){return S&&H(R.prototype,S),I&&H(R,I),R}}();f(50);var y=f(2),g=A(y),h=f(14),o=A(h),e=f(8),t=A(e),a=f(9),l=A(a),s=f(0),r=A(s),i=f(15),c=A(i),n=f(3),d=A(n),k=f(10),w=A(k),T=f(34),P=A(T);function A(H){return H&&H.__esModule?H:{default:H}}function v(H,R,S){return R in H?Object.defineProperty(H,R,{value:S,enumerable:!0,configurable:!0,writable:!0}):H[R]=S,H}function O(H,R){if(!(H instanceof R))throw new TypeError("Cannot call a class as a function")}var N=(0,w.default)("quill"),L=function(){_(H,null,[{key:"debug",value:function(S){S===!0&&(S="log"),w.default.level(S)}},{key:"find",value:function(S){return S.__quill||r.default.find(S)}},{key:"import",value:function(S){return this.imports[S]==null&&N.error("Cannot import "+S+". Are you sure it was registered?"),this.imports[S]}},{key:"register",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof S!="string"){var C=S.attrName||S.blotName;typeof C=="string"?this.register("formats/"+C,S,I):Object.keys(S).forEach(function(q){M.register(q,S[q],I)})}else this.imports[S]!=null&&!K&&N.warn("Overwriting "+S+" with",I),this.imports[S]=I,(S.startsWith("blots/")||S.startsWith("formats/"))&&I.blotName!=="abstract"?r.default.register(I):S.startsWith("modules")&&typeof I.register=="function"&&I.register()}}]);function H(R){var S=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,H),this.options=D(R,I),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",R);this.options.debug&&H.debug(this.options.debug);var M=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 t.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 c.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(t.default.events.EDITOR_CHANGE,function(C){C===t.default.events.TEXT_CHANGE&&S.root.classList.toggle("ql-blank",S.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(C,q){var F=S.selection.lastRange,G=F&&F.length===0?F.index:void 0;z.call(S,function(){return S.editor.update(null,q,G)},C)});var K=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents(K),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return _(H,[{key:"addContainer",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof S=="string"){var M=S;S=document.createElement("div"),S.classList.add(M)}return this.container.insertBefore(S,I),S}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(S,I,M){var K=this,C=V(S,I,M),q=m(C,4);return S=q[0],I=q[1],M=q[3],z.call(this,function(){return K.editor.deleteText(S,I)},M,S,-1*I)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(S),this.container.classList.toggle("ql-disabled",!S)}},{key:"focus",value:function(){var S=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=S,this.scrollIntoView()}},{key:"format",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return z.call(this,function(){var C=M.getSelection(!0),q=new g.default;if(C==null)return q;if(r.default.query(S,r.default.Scope.BLOCK))q=M.editor.formatLine(C.index,C.length,v({},S,I));else{if(C.length===0)return M.selection.format(S,I),q;q=M.editor.formatText(C.index,C.length,v({},S,I))}return M.setSelection(C,t.default.sources.SILENT),q},K)}},{key:"formatLine",value:function(S,I,M,K,C){var q=this,F=void 0,G=V(S,I,M,K,C),$=m(G,4);return S=$[0],I=$[1],F=$[2],C=$[3],z.call(this,function(){return q.editor.formatLine(S,I,F)},C,S,0)}},{key:"formatText",value:function(S,I,M,K,C){var q=this,F=void 0,G=V(S,I,M,K,C),$=m(G,4);return S=$[0],I=$[1],F=$[2],C=$[3],z.call(this,function(){return q.editor.formatText(S,I,F)},C,S,0)}},{key:"getBounds",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof S=="number"?M=this.selection.getBounds(S,I):M=this.selection.getBounds(S.index,S.length);var K=this.container.getBoundingClientRect();return{bottom:M.bottom-K.top,height:M.height,left:M.left-K.left,right:M.right-K.left,top:M.top-K.top,width:M.width}}},{key:"getContents",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,M=V(S,I),K=m(M,2);return S=K[0],I=K[1],this.editor.getContents(S,I)}},{key:"getFormat",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof S=="number"?this.editor.getFormat(S,I):this.editor.getFormat(S.index,S.length)}},{key:"getIndex",value:function(S){return S.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(S){return this.scroll.leaf(S)}},{key:"getLine",value:function(S){return this.scroll.line(S)}},{key:"getLines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof S!="number"?this.scroll.lines(S.index,S.length):this.scroll.lines(S,I)}},{key:"getModule",value:function(S){return this.theme.modules[S]}},{key:"getSelection",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return S&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,M=V(S,I),K=m(M,2);return S=K[0],I=K[1],this.editor.getText(S,I)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(S,I,M){var K=this,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H.sources.API;return z.call(this,function(){return K.editor.insertEmbed(S,I,M)},C,S)}},{key:"insertText",value:function(S,I,M,K,C){var q=this,F=void 0,G=V(S,0,M,K,C),$=m(G,4);return S=$[0],F=$[2],C=$[3],z.call(this,function(){return q.editor.insertText(S,I,F)},C,S,I.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(S,I,M){this.clipboard.dangerouslyPasteHTML(S,I,M)}},{key:"removeFormat",value:function(S,I,M){var K=this,C=V(S,I,M),q=m(C,4);return S=q[0],I=q[1],M=q[3],z.call(this,function(){return K.editor.removeFormat(S,I)},M,S)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(S){var I=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return z.call(this,function(){S=new g.default(S);var K=I.getLength(),C=I.editor.deleteText(0,K),q=I.editor.applyDelta(S),F=q.ops[q.ops.length-1];F!=null&&typeof F.insert=="string"&&F.insert[F.insert.length-1]===`
|
|
11
|
-
`&&(I.editor.deleteText(I.getLength()-1,1),q.delete(1));var G=C.compose(q);return G},M)}},{key:"setSelection",value:function(S,I,M){if(S==null)this.selection.setRange(null,I||H.sources.API);else{var K=V(S,I,M),C=m(K,4);S=C[0],I=C[1],M=C[3],this.selection.setRange(new i.Range(S,I),M),M!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,M=new g.default().insert(S);return this.setContents(M,I)}},{key:"update",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,I=this.scroll.update(S);return this.selection.update(S),I}},{key:"updateContents",value:function(S){var I=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return z.call(this,function(){return S=new g.default(S),I.editor.applyDelta(S,M)},M,!0)}}]),H}();L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=t.default.events,L.sources=t.default.sources,L.version="1.3.7",L.imports={delta:g.default,parchment:r.default,"core/module":l.default,"core/theme":P.default};function D(H,R){if(R=(0,d.default)(!0,{container:H,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===L.DEFAULTS.theme)R.theme=P.default;else if(R.theme=L.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var S=(0,d.default)(!0,{},R.theme.DEFAULTS);[S,R].forEach(function(K){K.modules=K.modules||{},Object.keys(K.modules).forEach(function(C){K.modules[C]===!0&&(K.modules[C]={})})});var I=Object.keys(S.modules).concat(Object.keys(R.modules)),M=I.reduce(function(K,C){var q=L.import("modules/"+C);return q==null?N.error("Cannot load "+C+" module. Are you sure you registered it?"):K[C]=q.DEFAULTS||{},K},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,d.default)(!0,{},L.DEFAULTS,{modules:M},S,R),["bounds","container","scrollingContainer"].forEach(function(K){typeof R[K]=="string"&&(R[K]=document.querySelector(R[K]))}),R.modules=Object.keys(R.modules).reduce(function(K,C){return R.modules[C]&&(K[C]=R.modules[C]),K},{}),R}function z(H,R,S,I){if(this.options.strict&&!this.isEnabled()&&R===t.default.sources.USER)return new g.default;var M=S==null?null:this.getSelection(),K=this.editor.delta,C=H();if(M!=null&&(S===!0&&(S=M.index),I==null?M=J(M,C,R):I!==0&&(M=J(M,S,I,R)),this.setSelection(M,t.default.sources.SILENT)),C.length()>0){var q,F=[t.default.events.TEXT_CHANGE,C,K,R];if((q=this.emitter).emit.apply(q,[t.default.events.EDITOR_CHANGE].concat(F)),R!==t.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,F)}}return C}function V(H,R,S,I,M){var K={};return typeof H.index=="number"&&typeof H.length=="number"?typeof R!="number"?(M=I,I=S,S=R,R=H.length,H=H.index):(R=H.length,H=H.index):typeof R!="number"&&(M=I,I=S,S=R,R=0),(typeof S>"u"?"undefined":E(S))==="object"?(K=S,M=I):typeof S=="string"&&(I!=null?K[S]=I:M=S),M=M||t.default.sources.API,[H,R,K,M]}function J(H,R,S,I){if(H==null)return null;var M=void 0,K=void 0;if(R instanceof g.default){var C=[H.index,H.index+H.length].map(function($){return R.transformPosition($,I!==t.default.sources.USER)}),q=m(C,2);M=q[0],K=q[1]}else{var F=[H.index,H.index+H.length].map(function($){return $<R||$===R&&I===t.default.sources.USER?$:S>=0?$+S:Math.max(R,$+S)}),G=m(F,2);M=G[0],K=G[1]}return new i.Range(M,K-M)}p.expandConfig=D,p.overload=V,p.default=L},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&s(r.prototype,i),c&&s(r,c),r}}(),m=function s(r,i,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:s(d,i,c)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(c)}},_=f(7),y=o(_),g=f(0),h=o(g);function o(s){return s&&s.__esModule?s:{default:s}}function e(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}function t(s,r){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:s}function a(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(s,r):s.__proto__=r)}var l=function(s){a(r,s);function r(){return e(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"formatAt",value:function(c,n,d,k){if(r.compare(this.statics.blotName,d)<0&&h.default.query(d,h.default.Scope.BLOT)){var w=this.isolate(c,n);k&&w.wrap(d,k)}else m(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,c,n,d,k)}},{key:"optimize",value:function(c){if(m(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,c),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(c,n){var d=r.order.indexOf(c),k=r.order.indexOf(n);return d>=0||k>=0?d-k:c===n?0:c<n?-1:1}}]),r}(h.default.Inline);l.allowedChildren=[l,h.default.Embed,y.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],p.default=l},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(0),m=_(E);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(m.default.Text);p.default=o},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function i(c,n){for(var d=0;d<n.length;d++){var k=n[d];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(c,k.key,k)}}return function(c,n,d){return n&&i(c.prototype,n),d&&i(c,d),c}}(),m=function i(c,n,d){c===null&&(c=Function.prototype);var k=Object.getOwnPropertyDescriptor(c,n);if(k===void 0){var w=Object.getPrototypeOf(c);return w===null?void 0:i(w,n,d)}else{if("value"in k)return k.value;var T=k.get;return T===void 0?void 0:T.call(d)}},_=f(54),y=o(_),g=f(10),h=o(g);function o(i){return i&&i.__esModule?i:{default:i}}function e(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")}function t(i,c){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:i}function a(i,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);i.prototype=Object.create(c&&c.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(i,c):i.__proto__=c)}var l=(0,h.default)("quill:events"),s=["selectionchange","mousedown","mouseup","click"];s.forEach(function(i){document.addEventListener(i,function(){for(var c=arguments.length,n=Array(c),d=0;d<c;d++)n[d]=arguments[d];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var w;(w=k.__quill.emitter).handleDOM.apply(w,n)}})})});var r=function(i){a(c,i);function c(){e(this,c);var n=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return n.listeners={},n.on("error",l.error),n}return E(c,[{key:"emit",value:function(){l.log.apply(l,arguments),m(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(d){for(var k=arguments.length,w=Array(k>1?k-1:0),T=1;T<k;T++)w[T-1]=arguments[T];(this.listeners[d.type]||[]).forEach(function(P){var A=P.node,v=P.handler;(d.target===A||A.contains(d.target))&&v.apply(void 0,[d].concat(w))})}},{key:"listenDOM",value:function(d,k,w){this.listeners[d]||(this.listeners[d]=[]),this.listeners[d].push({node:k,handler:w})}}]),c}(y.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"},p.default=r},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});function E(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}var m=function _(y){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(this,_),this.quill=y,this.options=g};m.DEFAULTS={},p.default=m},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=["error","warn","log","info"],m="warn";function _(g){if(E.indexOf(g)<=E.indexOf(m)){for(var h,o=arguments.length,e=Array(o>1?o-1:0),t=1;t<o;t++)e[t-1]=arguments[t];(h=console)[g].apply(h,e)}}function y(g){return E.reduce(function(h,o){return h[o]=_.bind(console,o,g),h},{})}_.level=y.level=function(g){m=g},p.default=y},function(b,p,f){var E=Array.prototype.slice,m=f(52),_=f(53),y=b.exports=function(e,t,a){return a||(a={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?a.strict?e===t:e==t:o(e,t,a)};function g(e){return e==null}function h(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function o(e,t,a){var l,s;if(g(e)||g(t)||e.prototype!==t.prototype)return!1;if(_(e))return _(t)?(e=E.call(e),t=E.call(t),y(e,t,a)):!1;if(h(e)){if(!h(t)||e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var r=m(e),i=m(t)}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(s=r[l],!y(e[s],t[s],a))return!1;return typeof e==typeof t}},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(1),m=function(){function _(y,g,h){h===void 0&&(h={}),this.attrName=y,this.keyName=g;var o=E.Scope.TYPE&E.Scope.ATTRIBUTE;h.scope!=null?this.scope=h.scope&E.Scope.LEVEL|o:this.scope=E.Scope.ATTRIBUTE,h.whitelist!=null&&(this.whitelist=h.whitelist)}return _.keys=function(y){return[].map.call(y.attributes,function(g){return g.name})},_.prototype.add=function(y,g){return this.canAdd(y,g)?(y.setAttribute(this.keyName,g),!0):!1},_.prototype.canAdd=function(y,g){var h=E.query(y,E.Scope.BLOT&(this.scope|E.Scope.TYPE));return h==null?!1:this.whitelist==null?!0:typeof g=="string"?this.whitelist.indexOf(g.replace(/["']/g,""))>-1:this.whitelist.indexOf(g)>-1},_.prototype.remove=function(y){y.removeAttribute(this.keyName)},_.prototype.value=function(y){var g=y.getAttribute(this.keyName);return this.canAdd(y,g)&&g?g:""},_}();p.default=m},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Code=void 0;var E=function(){function T(P,A){var v=[],O=!0,N=!1,L=void 0;try{for(var D=P[Symbol.iterator](),z;!(O=(z=D.next()).done)&&(v.push(z.value),!(A&&v.length===A));O=!0);}catch(V){N=!0,L=V}finally{try{!O&&D.return&&D.return()}finally{if(N)throw L}}return v}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function T(P,A){for(var v=0;v<A.length;v++){var O=A[v];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(P,O.key,O)}}return function(P,A,v){return A&&T(P.prototype,A),v&&T(P,v),P}}(),_=function T(P,A,v){P===null&&(P=Function.prototype);var O=Object.getOwnPropertyDescriptor(P,A);if(O===void 0){var N=Object.getPrototypeOf(P);return N===null?void 0:T(N,A,v)}else{if("value"in O)return O.value;var L=O.get;return L===void 0?void 0:L.call(v)}},y=f(2),g=i(y),h=f(0),o=i(h),e=f(4),t=i(e),a=f(6),l=i(a),s=f(7),r=i(s);function i(T){return T&&T.__esModule?T:{default:T}}function c(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}function n(T,P){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:T}function d(T,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);T.prototype=Object.create(P&&P.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(T,P):T.__proto__=P)}var k=function(T){d(P,T);function P(){return c(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(l.default);k.blotName="code",k.tagName="CODE";var w=function(T){d(P,T);function P(){return c(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return m(P,[{key:"delta",value:function(){var v=this,O=this.domNode.textContent;return O.endsWith(`
|
|
12
|
-
`)&&(O=O.slice(0,-1)),O.split(`
|
|
13
|
-
`).reduce(function(N,L){return N.insert(L).insert(`
|
|
14
|
-
`,v.formats())},new g.default)}},{key:"format",value:function(v,O){if(!(v===this.statics.blotName&&O)){var N=this.descendant(r.default,this.length()-1),L=E(N,1),D=L[0];D?.deleteAt(D.length()-1,1),_(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,v,O)}}},{key:"formatAt",value:function(v,O,N,L){if(O!==0&&!(o.default.query(N,o.default.Scope.BLOCK)==null||N===this.statics.blotName&&L===this.statics.formats(this.domNode))){var D=this.newlineIndex(v);if(!(D<0||D>=v+O)){var z=this.newlineIndex(v,!0)+1,V=D-z+1,J=this.isolate(z,V),H=J.next;J.format(N,L),H instanceof P&&H.formatAt(0,v-z+O-V,N,L)}}}},{key:"insertAt",value:function(v,O,N){if(N==null){var L=this.descendant(r.default,v),D=E(L,2),z=D[0],V=D[1];z.insertAt(V,O)}}},{key:"length",value:function(){var v=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
15
|
-
`)?v:v+1}},{key:"newlineIndex",value:function(v){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,v).lastIndexOf(`
|
|
16
|
-
`);var N=this.domNode.textContent.slice(v).indexOf(`
|
|
17
|
-
`);return N>-1?v+N:-1}},{key:"optimize",value:function(v){this.domNode.textContent.endsWith(`
|
|
18
|
-
`)||this.appendChild(o.default.create("text",`
|
|
19
|
-
`)),_(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,v);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(v),O.moveChildren(this),O.remove())}},{key:"replace",value:function(v){_(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var N=o.default.find(O);N==null?O.parentNode.removeChild(O):N instanceof o.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(v){var O=_(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,v);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),P}(t.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",p.Code=k,p.default=w},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},m=function(){function H(R,S){var I=[],M=!0,K=!1,C=void 0;try{for(var q=R[Symbol.iterator](),F;!(M=(F=q.next()).done)&&(I.push(F.value),!(S&&I.length===S));M=!0);}catch(G){K=!0,C=G}finally{try{!M&&q.return&&q.return()}finally{if(K)throw C}}return I}return function(R,S){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return H(R,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function H(R,S){for(var I=0;I<S.length;I++){var M=S[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(R,M.key,M)}}return function(R,S,I){return S&&H(R.prototype,S),I&&H(R,I),R}}(),y=f(2),g=O(y),h=f(20),o=O(h),e=f(0),t=O(e),a=f(13),l=O(a),s=f(24),r=O(s),i=f(4),c=O(i),n=f(16),d=O(n),k=f(21),w=O(k),T=f(11),P=O(T),A=f(3),v=O(A);function O(H){return H&&H.__esModule?H:{default:H}}function N(H,R,S){return R in H?Object.defineProperty(H,R,{value:S,enumerable:!0,configurable:!0,writable:!0}):H[R]=S,H}function L(H,R){if(!(H instanceof R))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,z=function(){function H(R){L(this,H),this.scroll=R,this.delta=this.getDelta()}return _(H,[{key:"applyDelta",value:function(S){var I=this,M=!1;this.scroll.update();var K=this.scroll.length();return this.scroll.batchStart(),S=J(S),S.reduce(function(C,q){var F=q.retain||q.delete||q.insert.length||1,G=q.attributes||{};if(q.insert!=null){if(typeof q.insert=="string"){var $=q.insert;$.endsWith(`
|
|
20
|
-
`)&&M&&(M=!1,$=$.slice(0,-1)),C>=K&&!$.endsWith(`
|
|
21
|
-
`)&&(M=!0),I.scroll.insertAt(C,$);var X=I.scroll.line(C),re=m(X,2),oe=re[0],le=re[1],ce=(0,v.default)({},(0,i.bubbleFormats)(oe));if(oe instanceof c.default){var de=oe.descendant(t.default.Leaf,le),be=m(de,1),me=be[0];ce=(0,v.default)(ce,(0,i.bubbleFormats)(me))}G=o.default.attributes.diff(ce,G)||{}}else if(E(q.insert)==="object"){var W=Object.keys(q.insert)[0];if(W==null)return C;I.scroll.insertAt(C,W,q.insert[W])}K+=F}return Object.keys(G).forEach(function(Y){I.scroll.formatAt(C,F,Y,G[Y])}),C+F},0),S.reduce(function(C,q){return typeof q.delete=="number"?(I.scroll.deleteAt(C,q.delete),C):C+(q.retain||q.insert.length||1)},0),this.scroll.batchEnd(),this.update(S)}},{key:"deleteText",value:function(S,I){return this.scroll.deleteAt(S,I),this.update(new g.default().retain(S).delete(I))}},{key:"formatLine",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(K).forEach(function(C){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[C])){var q=M.scroll.lines(S,Math.max(I,1)),F=I;q.forEach(function(G){var $=G.length();if(!(G instanceof l.default))G.format(C,K[C]);else{var X=S-G.offset(M.scroll),re=G.newlineIndex(X+F)-X+1;G.formatAt(X,re,C,K[C])}F-=$})}}),this.scroll.optimize(),this.update(new g.default().retain(S).retain(I,(0,w.default)(K)))}},{key:"formatText",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(K).forEach(function(C){M.scroll.formatAt(S,I,C,K[C])}),this.update(new g.default().retain(S).retain(I,(0,w.default)(K)))}},{key:"getContents",value:function(S,I){return this.delta.slice(S,S+I)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(S,I){return S.concat(I.delta())},new g.default)}},{key:"getFormat",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],K=[];I===0?this.scroll.path(S).forEach(function(q){var F=m(q,1),G=F[0];G instanceof c.default?M.push(G):G instanceof t.default.Leaf&&K.push(G)}):(M=this.scroll.lines(S,I),K=this.scroll.descendants(t.default.Leaf,S,I));var C=[M,K].map(function(q){if(q.length===0)return{};for(var F=(0,i.bubbleFormats)(q.shift());Object.keys(F).length>0;){var G=q.shift();if(G==null)return F;F=V((0,i.bubbleFormats)(G),F)}return F});return v.default.apply(v.default,C)}},{key:"getText",value:function(S,I){return this.getContents(S,I).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(S,I,M){return this.scroll.insertAt(S,I,M),this.update(new g.default().retain(S).insert(N({},I,M)))}},{key:"insertText",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return I=I.replace(/\r\n/g,`
|
|
22
|
-
`).replace(/\r/g,`
|
|
23
|
-
`),this.scroll.insertAt(S,I),Object.keys(K).forEach(function(C){M.scroll.formatAt(S,I.length,C,K[C])}),this.update(new g.default().retain(S).insert(I,(0,w.default)(K)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var S=this.scroll.children.head;return S.statics.blotName!==c.default.blotName||S.children.length>1?!1:S.children.head instanceof d.default}},{key:"removeFormat",value:function(S,I){var M=this.getText(S,I),K=this.scroll.line(S+I),C=m(K,2),q=C[0],F=C[1],G=0,$=new g.default;q!=null&&(q instanceof l.default?G=q.newlineIndex(F)-F+1:G=q.length()-F,$=q.delta().slice(F,F+G-1).insert(`
|
|
24
|
-
`));var X=this.getContents(S,I+G),re=X.diff(new g.default().insert(M).concat($)),oe=new g.default().retain(S).concat(re);return this.applyDelta(oe)}},{key:"update",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,K=this.delta;if(I.length===1&&I[0].type==="characterData"&&I[0].target.data.match(D)&&t.default.find(I[0].target)){var C=t.default.find(I[0].target),q=(0,i.bubbleFormats)(C),F=C.offset(this.scroll),G=I[0].oldValue.replace(r.default.CONTENTS,""),$=new g.default().insert(G),X=new g.default().insert(C.value()),re=new g.default().retain(F).concat($.diff(X,M));S=re.reduce(function(oe,le){return le.insert?oe.insert(le.insert,q):oe.push(le)},new g.default),this.delta=K.compose(S)}else this.delta=this.getDelta(),(!S||!(0,P.default)(K.compose(S),this.delta))&&(S=K.diff(this.delta,M));return S}}]),H}();function V(H,R){return Object.keys(R).reduce(function(S,I){return H[I]==null||(R[I]===H[I]?S[I]=R[I]:Array.isArray(R[I])?R[I].indexOf(H[I])<0&&(S[I]=R[I].concat([H[I]])):S[I]=[R[I],H[I]]),S},{})}function J(H){return H.reduce(function(R,S){if(S.insert===1){var I=(0,w.default)(S.attributes);return delete I.image,R.insert({image:S.attributes.image},I)}if(S.attributes!=null&&(S.attributes.list===!0||S.attributes.bullet===!0)&&(S=(0,w.default)(S),S.attributes.list?S.attributes.list="ordered":(S.attributes.list="bullet",delete S.attributes.bullet)),typeof S.insert=="string"){var M=S.insert.replace(/\r\n/g,`
|
|
25
|
-
`).replace(/\r/g,`
|
|
26
|
-
`);return R.insert(M,S.attributes)}return R.push(S)},new g.default)}p.default=z},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Range=void 0;var E=function(){function T(P,A){var v=[],O=!0,N=!1,L=void 0;try{for(var D=P[Symbol.iterator](),z;!(O=(z=D.next()).done)&&(v.push(z.value),!(A&&v.length===A));O=!0);}catch(V){N=!0,L=V}finally{try{!O&&D.return&&D.return()}finally{if(N)throw L}}return v}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function T(P,A){for(var v=0;v<A.length;v++){var O=A[v];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(P,O.key,O)}}return function(P,A,v){return A&&T(P.prototype,A),v&&T(P,v),P}}(),_=f(0),y=r(_),g=f(21),h=r(g),o=f(11),e=r(o),t=f(8),a=r(t),l=f(10),s=r(l);function r(T){return T&&T.__esModule?T:{default:T}}function i(T){if(Array.isArray(T)){for(var P=0,A=Array(T.length);P<T.length;P++)A[P]=T[P];return A}else return Array.from(T)}function c(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}var n=(0,s.default)("quill:selection"),d=function T(P){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;c(this,T),this.index=P,this.length=A},k=function(){function T(P,A){var v=this;c(this,T),this.emitter=A,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new d(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){v.mouseDown||setTimeout(v.update.bind(v,a.default.sources.USER),1)}),this.emitter.on(a.default.events.EDITOR_CHANGE,function(O,N){O===a.default.events.TEXT_CHANGE&&N.length()>0&&v.update(a.default.sources.SILENT)}),this.emitter.on(a.default.events.SCROLL_BEFORE_UPDATE,function(){if(v.hasFocus()){var O=v.getNativeRange();O!=null&&O.start.node!==v.cursor.textNode&&v.emitter.once(a.default.events.SCROLL_UPDATE,function(){try{v.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(a.default.events.SCROLL_OPTIMIZE,function(O,N){if(N.range){var L=N.range,D=L.startNode,z=L.startOffset,V=L.endNode,J=L.endOffset;v.setNativeRange(D,z,V,J)}}),this.update(a.default.sources.SILENT)}return m(T,[{key:"handleComposition",value:function(){var A=this;this.root.addEventListener("compositionstart",function(){A.composing=!0}),this.root.addEventListener("compositionend",function(){if(A.composing=!1,A.cursor.parent){var v=A.cursor.restore();if(!v)return;setTimeout(function(){A.setNativeRange(v.startNode,v.startOffset,v.endNode,v.endOffset)},1)}})}},{key:"handleDragging",value:function(){var A=this;this.emitter.listenDOM("mousedown",document.body,function(){A.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){A.mouseDown=!1,A.update(a.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(A,v){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[A])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||y.default.query(A,y.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=y.default.find(O.start.node,!1);if(N==null)return;if(N instanceof y.default.Leaf){var L=N.split(O.start.offset);N.parent.insertBefore(this.cursor,L)}else N.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(A,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(A){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();A=Math.min(A,O-1),v=Math.min(A+v,O-1)-A;var N=void 0,L=this.scroll.leaf(A),D=E(L,2),z=D[0],V=D[1];if(z==null)return null;var J=z.position(V,!0),H=E(J,2);N=H[0],V=H[1];var R=document.createRange();if(v>0){R.setStart(N,V);var S=this.scroll.leaf(A+v),I=E(S,2);if(z=I[0],V=I[1],z==null)return null;var M=z.position(V,!0),K=E(M,2);return N=K[0],V=K[1],R.setEnd(N,V),R.getBoundingClientRect()}else{var C="left",q=void 0;return N instanceof Text?(V<N.data.length?(R.setStart(N,V),R.setEnd(N,V+1)):(R.setStart(N,V-1),R.setEnd(N,V),C="right"),q=R.getBoundingClientRect()):(q=z.domNode.getBoundingClientRect(),V>0&&(C="right")),{bottom:q.top+q.height,height:q.height,left:q[C],right:q[C],top:q.top,width:0}}}},{key:"getNativeRange",value:function(){var A=document.getSelection();if(A==null||A.rangeCount<=0)return null;var v=A.getRangeAt(0);if(v==null)return null;var O=this.normalizeNative(v);return n.info("getNativeRange",O),O}},{key:"getRange",value:function(){var A=this.getNativeRange();if(A==null)return[null,null];var v=this.normalizedToRange(A);return[v,A]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(A){var v=this,O=[[A.start.node,A.start.offset]];A.native.collapsed||O.push([A.end.node,A.end.offset]);var N=O.map(function(z){var V=E(z,2),J=V[0],H=V[1],R=y.default.find(J,!0),S=R.offset(v.scroll);return H===0?S:R instanceof y.default.Container?S+R.length():S+R.index(J,H)}),L=Math.min(Math.max.apply(Math,i(N)),this.scroll.length()-1),D=Math.min.apply(Math,[L].concat(i(N)));return new d(D,L-D)}},{key:"normalizeNative",value:function(A){if(!w(this.root,A.startContainer)||!A.collapsed&&!w(this.root,A.endContainer))return null;var v={start:{node:A.startContainer,offset:A.startOffset},end:{node:A.endContainer,offset:A.endOffset},native:A};return[v.start,v.end].forEach(function(O){for(var N=O.node,L=O.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>L)N=N.childNodes[L],L=0;else if(N.childNodes.length===L)N=N.lastChild,L=N instanceof Text?N.data.length:N.childNodes.length+1;else break;O.node=N,O.offset=L}),v}},{key:"rangeToNative",value:function(A){var v=this,O=A.collapsed?[A.index]:[A.index,A.index+A.length],N=[],L=this.scroll.length();return O.forEach(function(D,z){D=Math.min(L-1,D);var V=void 0,J=v.scroll.leaf(D),H=E(J,2),R=H[0],S=H[1],I=R.position(S,z!==0),M=E(I,2);V=M[0],S=M[1],N.push(V,S)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(A){var v=this.lastRange;if(v!=null){var O=this.getBounds(v.index,v.length);if(O!=null){var N=this.scroll.length()-1,L=this.scroll.line(Math.min(v.index,N)),D=E(L,1),z=D[0],V=z;if(v.length>0){var J=this.scroll.line(Math.min(v.index+v.length,N)),H=E(J,1);V=H[0]}if(!(z==null||V==null)){var R=A.getBoundingClientRect();O.top<R.top?A.scrollTop-=R.top-O.top:O.bottom>R.bottom&&(A.scrollTop+=O.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(A,v){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",A,v,O,N),!(A!=null&&(this.root.parentNode==null||A.parentNode==null||O.parentNode==null))){var D=document.getSelection();if(D!=null)if(A!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||L||A!==z.startContainer||v!==z.startOffset||O!==z.endContainer||N!==z.endOffset){A.tagName=="BR"&&(v=[].indexOf.call(A.parentNode.childNodes,A),A=A.parentNode),O.tagName=="BR"&&(N=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var V=document.createRange();V.setStart(A,v),V.setEnd(O,N),D.removeAllRanges(),D.addRange(V)}}else D.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(A){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;if(typeof v=="string"&&(O=v,v=!1),n.info("setRange",A),A!=null){var N=this.rangeToNative(A);this.setNativeRange.apply(this,i(N).concat([v]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.default.sources.USER,v=this.lastRange,O=this.getRange(),N=E(O,2),L=N[0],D=N[1];if(this.lastRange=L,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(v,this.lastRange)){var z;!this.composing&&D!=null&&D.native.collapsed&&D.start.node!==this.cursor.textNode&&this.cursor.restore();var V=[a.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(v),A];if((z=this.emitter).emit.apply(z,[a.default.events.EDITOR_CHANGE].concat(V)),A!==a.default.sources.SILENT){var J;(J=this.emitter).emit.apply(J,V)}}}}]),T}();function w(T,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),T.contains(P)}p.Range=d,p.default=k},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function a(l,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,s,r){return s&&a(l.prototype,s),r&&a(l,r),l}}(),m=function a(l,s,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,s);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:a(c,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=f(0),y=g(_);function g(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return E(l,[{key:"insertInto",value:function(r,i){r.children.length===0?m(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}(y.default.Embed);t.blotName="break",t.tagName="BR",p.default=t},function(b,p,f){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])};return function(e,t){o(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(44),_=f(30),y=f(1),g=function(o){E(e,o);function e(t){var a=o.call(this,t)||this;return a.build(),a}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new m.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(a){try{var l=h(a);t.insertBefore(l,t.children.head||void 0)}catch(s){if(s instanceof y.ParchmentError)return;throw s}})},e.prototype.deleteAt=function(t,a){if(t===0&&a===this.length())return this.remove();this.children.forEachAt(t,a,function(l,s,r){l.deleteAt(s,r)})},e.prototype.descendant=function(t,a){var l=this.children.find(a),s=l[0],r=l[1];return t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t?[s,r]:s instanceof e?s.descendant(t,r):[null,-1]},e.prototype.descendants=function(t,a,l){a===void 0&&(a=0),l===void 0&&(l=Number.MAX_VALUE);var s=[],r=l;return this.children.forEachAt(a,l,function(i,c,n){(t.blotName==null&&t(i)||t.blotName!=null&&i instanceof t)&&s.push(i),i instanceof e&&(s=s.concat(i.descendants(t,c,r))),r-=n}),s},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),o.prototype.detach.call(this)},e.prototype.formatAt=function(t,a,l,s){this.children.forEachAt(t,a,function(r,i,c){r.formatAt(i,c,l,s)})},e.prototype.insertAt=function(t,a,l){var s=this.children.find(t),r=s[0],i=s[1];if(r)r.insertAt(i,a,l);else{var c=l==null?y.create("text",a):y.create(a,l);this.appendChild(c)}},e.prototype.insertBefore=function(t,a){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(l){return t instanceof l}))throw new y.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,a)},e.prototype.length=function(){return this.children.reduce(function(t,a){return t+a.length()},0)},e.prototype.moveChildren=function(t,a){this.children.forEach(function(l){t.insertBefore(l,a)})},e.prototype.optimize=function(t){if(o.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var a=y.create(this.statics.defaultChild);this.appendChild(a),a.optimize(t)}else this.remove()},e.prototype.path=function(t,a){a===void 0&&(a=!1);var l=this.children.find(t,a),s=l[0],r=l[1],i=[[this,t]];return s instanceof e?i.concat(s.path(r,a)):(s!=null&&i.push([s,r]),i)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),o.prototype.replace.call(this,t)},e.prototype.split=function(t,a){if(a===void 0&&(a=!1),!a){if(t===0)return this;if(t===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(t,this.length(),function(s,r,i){s=s.split(r,a),l.appendChild(s)}),l},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,a){var l=this,s=[],r=[];t.forEach(function(i){i.target===l.domNode&&i.type==="childList"&&(s.push.apply(s,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 c=y.find(i);c!=null&&(c.domNode.parentNode==null||c.domNode.parentNode===l.domNode)&&c.detach()}}),s.filter(function(i){return i.parentNode==l.domNode}).sort(function(i,c){return i===c?0:i.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var c=null;i.nextSibling!=null&&(c=y.find(i.nextSibling));var n=h(i);(n.next!=c||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,c||void 0))})},e}(_.default);function h(o){var e=y.find(o);if(e==null)try{e=y.create(o)}catch{e=y.create(y.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(a){e.domNode.appendChild(a)}),o.parentNode&&o.parentNode.replaceChild(e.domNode,o),e.attach()}return e}p.default=g},function(b,p,f){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])};return function(e,t){o(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(12),_=f(31),y=f(17),g=f(1),h=function(o){E(e,o);function e(t){var a=o.call(this,t)||this;return a.attributes=new _.default(a.domNode),a}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,a){var l=g.query(t);l instanceof m.default?this.attributes.attribute(l,a):a&&l!=null&&(t!==this.statics.blotName||this.formats()[t]!==a)&&this.replaceWith(t,a)},e.prototype.formats=function(){var t=this.attributes.values(),a=this.statics.formats(this.domNode);return a!=null&&(t[this.statics.blotName]=a),t},e.prototype.replaceWith=function(t,a){var l=o.prototype.replaceWith.call(this,t,a);return this.attributes.copy(l),l},e.prototype.update=function(t,a){var l=this;o.prototype.update.call(this,t,a),t.some(function(s){return s.target===l.domNode&&s.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,a){var l=o.prototype.wrap.call(this,t,a);return l instanceof e&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},e}(y.default);p.default=h},function(b,p,f){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){g(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(30),_=f(1),y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.value=function(o){return!0},h.prototype.index=function(o,e){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},h.prototype.position=function(o,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(t+=1),[this.parent.domNode,t]},h.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},h.scope=_.Scope.INLINE_BLOT,h}(m.default);p.default=y},function(b,p,f){var E=f(11),m=f(3),_={attributes:{compose:function(g,h,o){typeof g!="object"&&(g={}),typeof h!="object"&&(h={});var e=m(!0,{},h);o||(e=Object.keys(e).reduce(function(a,l){return e[l]!=null&&(a[l]=e[l]),a},{}));for(var t in g)g[t]!==void 0&&h[t]===void 0&&(e[t]=g[t]);return Object.keys(e).length>0?e:void 0},diff:function(g,h){typeof g!="object"&&(g={}),typeof h!="object"&&(h={});var o=Object.keys(g).concat(Object.keys(h)).reduce(function(e,t){return E(g[t],h[t])||(e[t]=h[t]===void 0?null:h[t]),e},{});return Object.keys(o).length>0?o:void 0},transform:function(g,h,o){if(typeof g!="object")return h;if(typeof h=="object"){if(!o)return h;var e=Object.keys(h).reduce(function(t,a){return g[a]===void 0&&(t[a]=h[a]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(g){return new y(g)},length:function(g){return typeof g.delete=="number"?g.delete:typeof g.retain=="number"?g.retain:typeof g.insert=="string"?g.insert.length:1}};function y(g){this.ops=g,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(g){g||(g=1/0);var h=this.ops[this.index];if(h){var o=this.offset,e=_.length(h);if(g>=e-o?(g=e-o,this.index+=1,this.offset=0):this.offset+=g,typeof h.delete=="number")return{delete:g};var t={};return h.attributes&&(t.attributes=h.attributes),typeof h.retain=="number"?t.retain=g:typeof h.insert=="string"?t.insert=h.insert.substr(o,g):t.insert=h.insert,t}else return{retain:1/0}},y.prototype.peek=function(){return this.ops[this.index]},y.prototype.peekLength=function(){return this.ops[this.index]?_.length(this.ops[this.index])-this.offset:1/0},y.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"},y.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var g=this.offset,h=this.index,o=this.next(),e=this.ops.slice(this.index);return this.offset=g,this.index=h,[o].concat(e)}else return[]},b.exports=_},function(b,p){var f=function(){function E(l,s){return s!=null&&l instanceof s}var m;try{m=Map}catch{m=function(){}}var _;try{_=Set}catch{_=function(){}}var y;try{y=Promise}catch{y=function(){}}function g(l,s,r,i,c){typeof s=="object"&&(r=s.depth,i=s.prototype,c=s.includeNonEnumerable,s=s.circular);var n=[],d=[],k=typeof Buffer<"u";typeof s>"u"&&(s=!0),typeof r>"u"&&(r=1/0);function w(T,P){if(T===null)return null;if(P===0)return T;var A,v;if(typeof T!="object")return T;if(E(T,m))A=new m;else if(E(T,_))A=new _;else if(E(T,y))A=new y(function(R,S){T.then(function(I){R(w(I,P-1))},function(I){S(w(I,P-1))})});else if(g.__isArray(T))A=[];else if(g.__isRegExp(T))A=new RegExp(T.source,a(T)),T.lastIndex&&(A.lastIndex=T.lastIndex);else if(g.__isDate(T))A=new Date(T.getTime());else{if(k&&Buffer.isBuffer(T))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(T.length):A=new Buffer(T.length),T.copy(A),A;E(T,Error)?A=Object.create(T):typeof i>"u"?(v=Object.getPrototypeOf(T),A=Object.create(v)):(A=Object.create(i),v=i)}if(s){var O=n.indexOf(T);if(O!=-1)return d[O];n.push(T),d.push(A)}E(T,m)&&T.forEach(function(R,S){var I=w(S,P-1),M=w(R,P-1);A.set(I,M)}),E(T,_)&&T.forEach(function(R){var S=w(R,P-1);A.add(S)});for(var N in T){var L;v&&(L=Object.getOwnPropertyDescriptor(v,N)),!(L&&L.set==null)&&(A[N]=w(T[N],P-1))}if(Object.getOwnPropertySymbols)for(var D=Object.getOwnPropertySymbols(T),N=0;N<D.length;N++){var z=D[N],V=Object.getOwnPropertyDescriptor(T,z);V&&!V.enumerable&&!c||(A[z]=w(T[z],P-1),V.enumerable||Object.defineProperty(A,z,{enumerable:!1}))}if(c)for(var J=Object.getOwnPropertyNames(T),N=0;N<J.length;N++){var H=J[N],V=Object.getOwnPropertyDescriptor(T,H);V&&V.enumerable||(A[H]=w(T[H],P-1),Object.defineProperty(A,H,{enumerable:!1}))}return A}return w(l,r)}g.clonePrototype=function(s){if(s===null)return null;var r=function(){};return r.prototype=s,new r};function h(l){return Object.prototype.toString.call(l)}g.__objToStr=h;function o(l){return typeof l=="object"&&h(l)==="[object Date]"}g.__isDate=o;function e(l){return typeof l=="object"&&h(l)==="[object Array]"}g.__isArray=e;function t(l){return typeof l=="object"&&h(l)==="[object RegExp]"}g.__isRegExp=t;function a(l){var s="";return l.global&&(s+="g"),l.ignoreCase&&(s+="i"),l.multiline&&(s+="m"),s}return g.__getRegExpFlags=a,g}();typeof b=="object"&&b.exports&&(b.exports=f)},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function A(v,O){var N=[],L=!0,D=!1,z=void 0;try{for(var V=v[Symbol.iterator](),J;!(L=(J=V.next()).done)&&(N.push(J.value),!(O&&N.length===O));L=!0);}catch(H){D=!0,z=H}finally{try{!L&&V.return&&V.return()}finally{if(D)throw z}}return N}return function(v,O){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return A(v,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function A(v,O){for(var N=0;N<O.length;N++){var L=O[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(v,L.key,L)}}return function(v,O,N){return O&&A(v.prototype,O),N&&A(v,N),v}}(),_=function A(v,O,N){v===null&&(v=Function.prototype);var L=Object.getOwnPropertyDescriptor(v,O);if(L===void 0){var D=Object.getPrototypeOf(v);return D===null?void 0:A(D,O,N)}else{if("value"in L)return L.value;var z=L.get;return z===void 0?void 0:z.call(N)}},y=f(0),g=n(y),h=f(8),o=n(h),e=f(4),t=n(e),a=f(16),l=n(a),s=f(13),r=n(s),i=f(25),c=n(i);function n(A){return A&&A.__esModule?A:{default:A}}function d(A,v){if(!(A instanceof v))throw new TypeError("Cannot call a class as a function")}function k(A,v){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:A}function w(A,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);A.prototype=Object.create(v&&v.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(A,v):A.__proto__=v)}function T(A){return A instanceof t.default||A instanceof e.BlockEmbed}var P=function(A){w(v,A);function v(O,N){d(this,v);var L=k(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,O));return L.emitter=N.emitter,Array.isArray(N.whitelist)&&(L.whitelist=N.whitelist.reduce(function(D,z){return D[z]=!0,D},{})),L.domNode.addEventListener("DOMNodeInserted",function(){}),L.optimize(),L.enable(),L}return m(v,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,L){var D=this.line(N),z=E(D,2),V=z[0],J=z[1],H=this.line(N+L),R=E(H,1),S=R[0];if(_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,N,L),S!=null&&V!==S&&J>0){if(V instanceof e.BlockEmbed||S instanceof e.BlockEmbed){this.optimize();return}if(V instanceof r.default){var I=V.newlineIndex(V.length(),!0);if(I>-1&&(V=V.split(I+1),V===S)){this.optimize();return}}else if(S instanceof r.default){var M=S.newlineIndex(0);M>-1&&S.split(M+1)}var K=S.children.head instanceof l.default?null:S.children.head;V.moveChildren(S,K),V.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,L,D,z){this.whitelist!=null&&!this.whitelist[D]||(_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,N,L,D,z),this.optimize())}},{key:"insertAt",value:function(N,L,D){if(!(D!=null&&this.whitelist!=null&&!this.whitelist[L])){if(N>=this.length())if(D==null||g.default.query(L,g.default.Scope.BLOCK)==null){var z=g.default.create(this.statics.defaultChild);this.appendChild(z),D==null&&L.endsWith(`
|
|
27
|
-
`)&&(L=L.slice(0,-1)),z.insertAt(0,L,D)}else{var V=g.default.create(L,D);this.appendChild(V)}else _(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,N,L,D);this.optimize()}}},{key:"insertBefore",value:function(N,L){if(N.statics.scope===g.default.Scope.INLINE_BLOT){var D=g.default.create(this.statics.defaultChild);D.appendChild(N),N=D}_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,N,L)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(T,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,D=function z(V,J,H){var R=[],S=H;return V.children.forEachAt(J,H,function(I,M,K){T(I)?R.push(I):I instanceof g.default.Container&&(R=R.concat(z(I,M,S))),S-=K}),R};return D(this,N,L)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,N,L),N.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,N,L))}},{key:"path",value:function(N){return _(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var L=o.default.sources.USER;typeof N=="string"&&(L=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,L,N),_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,L,N)}}}]),v}(g.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[t.default,e.BlockEmbed,c.default],p.default=P},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.SHORTKEY=p.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},m=function(){function q(F,G){var $=[],X=!0,re=!1,oe=void 0;try{for(var le=F[Symbol.iterator](),ce;!(X=(ce=le.next()).done)&&($.push(ce.value),!(G&&$.length===G));X=!0);}catch(de){re=!0,oe=de}finally{try{!X&&le.return&&le.return()}finally{if(re)throw oe}}return $}return function(F,G){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return q(F,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function q(F,G){for(var $=0;$<G.length;$++){var X=G[$];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(F,X.key,X)}}return function(F,G,$){return G&&q(F.prototype,G),$&&q(F,$),F}}(),y=f(21),g=A(y),h=f(11),o=A(h),e=f(3),t=A(e),a=f(2),l=A(a),s=f(20),r=A(s),i=f(0),c=A(i),n=f(5),d=A(n),k=f(10),w=A(k),T=f(9),P=A(T);function A(q){return q&&q.__esModule?q:{default:q}}function v(q,F,G){return F in q?Object.defineProperty(q,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):q[F]=G,q}function O(q,F){if(!(q instanceof F))throw new TypeError("Cannot call a class as a function")}function N(q,F){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:q}function L(q,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);q.prototype=Object.create(F&&F.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(q,F):q.__proto__=F)}var D=(0,w.default)("quill:keyboard"),z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",V=function(q){L(F,q),_(F,null,[{key:"match",value:function($,X){return X=C(X),["altKey","ctrlKey","metaKey","shiftKey"].some(function(re){return!!X[re]!==$[re]&&X[re]!==null})?!1:X.key===($.which||$.keyCode)}}]);function F(G,$){O(this,F);var X=N(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,G,$));return X.bindings={},Object.keys(X.options.bindings).forEach(function(re){re==="list autofill"&&G.scroll.whitelist!=null&&!G.scroll.whitelist.list||X.options.bindings[re]&&X.addBinding(X.options.bindings[re])}),X.addBinding({key:F.keys.ENTER,shiftKey:null},I),X.addBinding({key:F.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(X.addBinding({key:F.keys.BACKSPACE},{collapsed:!0},H),X.addBinding({key:F.keys.DELETE},{collapsed:!0},R)):(X.addBinding({key:F.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},H),X.addBinding({key:F.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),X.addBinding({key:F.keys.BACKSPACE},{collapsed:!1},S),X.addBinding({key:F.keys.DELETE},{collapsed:!1},S),X.addBinding({key:F.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},H),X.listen(),X}return _(F,[{key:"addBinding",value:function($){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe=C($);if(oe==null||oe.key==null)return D.warn("Attempted to add invalid keyboard binding",oe);typeof X=="function"&&(X={handler:X}),typeof re=="function"&&(re={handler:re}),oe=(0,t.default)(oe,X,re),this.bindings[oe.key]=this.bindings[oe.key]||[],this.bindings[oe.key].push(oe)}},{key:"listen",value:function(){var $=this;this.quill.root.addEventListener("keydown",function(X){if(!X.defaultPrevented){var re=X.which||X.keyCode,oe=($.bindings[re]||[]).filter(function(ve){return F.match(X,ve)});if(oe.length!==0){var le=$.quill.getSelection();if(!(le==null||!$.quill.hasFocus())){var ce=$.quill.getLine(le.index),de=m(ce,2),be=de[0],me=de[1],W=$.quill.getLeaf(le.index),Y=m(W,2),te=Y[0],ne=Y[1],Q=le.length===0?[te,ne]:$.quill.getLeaf(le.index+le.length),fe=m(Q,2),ae=fe[0],ue=fe[1],Ne=te instanceof c.default.Text?te.value().slice(0,ne):"",Ae=ae instanceof c.default.Text?ae.value().slice(ue):"",ye={collapsed:le.length===0,empty:le.length===0&&be.length()<=1,format:$.quill.getFormat(le),offset:me,prefix:Ne,suffix:Ae},We=oe.some(function(ve){if(ve.collapsed!=null&&ve.collapsed!==ye.collapsed||ve.empty!=null&&ve.empty!==ye.empty||ve.offset!=null&&ve.offset!==ye.offset)return!1;if(Array.isArray(ve.format)){if(ve.format.every(function(Ie){return ye.format[Ie]==null}))return!1}else if(E(ve.format)==="object"&&!Object.keys(ve.format).every(function(Ie){return ve.format[Ie]===!0?ye.format[Ie]!=null:ve.format[Ie]===!1?ye.format[Ie]==null:(0,o.default)(ve.format[Ie],ye.format[Ie])}))return!1;return ve.prefix!=null&&!ve.prefix.test(ye.prefix)||ve.suffix!=null&&!ve.suffix.test(ye.suffix)?!1:ve.handler.call($,le,ye)!==!0});We&&X.preventDefault()}}}})}}]),F}(P.default);V.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},V.DEFAULTS={bindings:{bold:K("bold"),italic:K("italic"),underline:K("underline"),indent:{key:V.keys.TAB,format:["blockquote","indent","list"],handler:function(F,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:V.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(F,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:V.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(F,G){G.format.indent!=null?this.quill.format("indent","-1",d.default.sources.USER):G.format.list!=null&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:V.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(F){this.quill.deleteText(F.index-1,1,d.default.sources.USER)}},tab:{key:V.keys.TAB,handler:function(F){this.quill.history.cutoff();var G=new l.default().retain(F.index).delete(F.length).insert(" ");this.quill.updateContents(G,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index+1,d.default.sources.SILENT)}},"list empty enter":{key:V.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(F,G){this.quill.format("list",!1,d.default.sources.USER),G.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:V.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(F){var G=this.quill.getLine(F.index),$=m(G,2),X=$[0],re=$[1],oe=(0,t.default)({},X.formats(),{list:"checked"}),le=new l.default().retain(F.index).insert(`
|
|
28
|
-
`,oe).retain(X.length()-re-1).retain(1,{list:"unchecked"});this.quill.updateContents(le,d.default.sources.USER),this.quill.setSelection(F.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:V.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(F,G){var $=this.quill.getLine(F.index),X=m($,2),re=X[0],oe=X[1],le=new l.default().retain(F.index).insert(`
|
|
29
|
-
`,G.format).retain(re.length()-oe-1).retain(1,{header:null});this.quill.updateContents(le,d.default.sources.USER),this.quill.setSelection(F.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(F,G){var $=G.prefix.length,X=this.quill.getLine(F.index),re=m(X,2),oe=re[0],le=re[1];if(le>$)return!0;var ce=void 0;switch(G.prefix.trim()){case"[]":case"[ ]":ce="unchecked";break;case"[x]":ce="checked";break;case"-":case"*":ce="bullet";break;default:ce="ordered"}this.quill.insertText(F.index," ",d.default.sources.USER),this.quill.history.cutoff();var de=new l.default().retain(F.index-le).delete($+1).retain(oe.length()-2-le).retain(1,{list:ce});this.quill.updateContents(de,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index-$,d.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(F){var G=this.quill.getLine(F.index),$=m(G,2),X=$[0],re=$[1],oe=new l.default().retain(F.index+X.length()-re-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(oe,d.default.sources.USER)}},"embed left":J(V.keys.LEFT,!1),"embed left shift":J(V.keys.LEFT,!0),"embed right":J(V.keys.RIGHT,!1),"embed right shift":J(V.keys.RIGHT,!0)}};function J(q,F){var G,$=q===V.keys.LEFT?"prefix":"suffix";return G={key:q,shiftKey:F,altKey:null},v(G,$,/^$/),v(G,"handler",function(re){var oe=re.index;q===V.keys.RIGHT&&(oe+=re.length+1);var le=this.quill.getLeaf(oe),ce=m(le,1),de=ce[0];return de instanceof c.default.Embed?(q===V.keys.LEFT?F?this.quill.setSelection(re.index-1,re.length+1,d.default.sources.USER):this.quill.setSelection(re.index-1,d.default.sources.USER):F?this.quill.setSelection(re.index,re.length+1,d.default.sources.USER):this.quill.setSelection(re.index+re.length+1,d.default.sources.USER),!1):!0}),G}function H(q,F){if(!(q.index===0||this.quill.getLength()<=1)){var G=this.quill.getLine(q.index),$=m(G,1),X=$[0],re={};if(F.offset===0){var oe=this.quill.getLine(q.index-1),le=m(oe,1),ce=le[0];if(ce!=null&&ce.length()>1){var de=X.formats(),be=this.quill.getFormat(q.index-1,1);re=r.default.attributes.diff(de,be)||{}}}var me=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(F.prefix)?2:1;this.quill.deleteText(q.index-me,me,d.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(q.index-me,me,re,d.default.sources.USER),this.quill.focus()}}function R(q,F){var G=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(F.suffix)?2:1;if(!(q.index>=this.quill.getLength()-G)){var $={},X=0,re=this.quill.getLine(q.index),oe=m(re,1),le=oe[0];if(F.offset>=le.length()-1){var ce=this.quill.getLine(q.index+1),de=m(ce,1),be=de[0];if(be){var me=le.formats(),W=this.quill.getFormat(q.index,1);$=r.default.attributes.diff(me,W)||{},X=be.length()}}this.quill.deleteText(q.index,G,d.default.sources.USER),Object.keys($).length>0&&this.quill.formatLine(q.index+X-1,G,$,d.default.sources.USER)}}function S(q){var F=this.quill.getLines(q),G={};if(F.length>1){var $=F[0].formats(),X=F[F.length-1].formats();G=r.default.attributes.diff(X,$)||{}}this.quill.deleteText(q,d.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(q.index,1,G,d.default.sources.USER),this.quill.setSelection(q.index,d.default.sources.SILENT),this.quill.focus()}function I(q,F){var G=this;q.length>0&&this.quill.scroll.deleteAt(q.index,q.length);var $=Object.keys(F.format).reduce(function(X,re){return c.default.query(re,c.default.Scope.BLOCK)&&!Array.isArray(F.format[re])&&(X[re]=F.format[re]),X},{});this.quill.insertText(q.index,`
|
|
30
|
-
`,$,d.default.sources.USER),this.quill.setSelection(q.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(F.format).forEach(function(X){$[X]==null&&(Array.isArray(F.format[X])||X!=="link"&&G.quill.format(X,F.format[X],d.default.sources.USER))})}function M(q){return{key:V.keys.TAB,shiftKey:!q,format:{"code-block":!0},handler:function(G){var $=c.default.query("code-block"),X=G.index,re=G.length,oe=this.quill.scroll.descendant($,X),le=m(oe,2),ce=le[0],de=le[1];if(ce!=null){var be=this.quill.getIndex(ce),me=ce.newlineIndex(de,!0)+1,W=ce.newlineIndex(be+de+re),Y=ce.domNode.textContent.slice(me,W).split(`
|
|
31
|
-
`);de=0,Y.forEach(function(te,ne){q?(ce.insertAt(me+de,$.TAB),de+=$.TAB.length,ne===0?X+=$.TAB.length:re+=$.TAB.length):te.startsWith($.TAB)&&(ce.deleteAt(me+de,$.TAB.length),de-=$.TAB.length,ne===0?X-=$.TAB.length:re-=$.TAB.length),de+=te.length+1}),this.quill.update(d.default.sources.USER),this.quill.setSelection(X,re,d.default.sources.SILENT)}}}}function K(q){return{key:q[0].toUpperCase(),shortKey:!0,handler:function(G,$){this.quill.format(q,!$.format[q],d.default.sources.USER)}}}function C(q){if(typeof q=="string"||typeof q=="number")return C({key:q});if((typeof q>"u"?"undefined":E(q))==="object"&&(q=(0,g.default)(q,!1)),typeof q.key=="string")if(V.keys[q.key.toUpperCase()]!=null)q.key=V.keys[q.key.toUpperCase()];else if(q.key.length===1)q.key=q.key.toUpperCase().charCodeAt(0);else return null;return q.shortKey&&(q[z]=q.shortKey,delete q.shortKey),q}p.default=V,p.SHORTKEY=z},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function r(i,c){var n=[],d=!0,k=!1,w=void 0;try{for(var T=i[Symbol.iterator](),P;!(d=(P=T.next()).done)&&(n.push(P.value),!(c&&n.length===c));d=!0);}catch(A){k=!0,w=A}finally{try{!d&&T.return&&T.return()}finally{if(k)throw w}}return n}return function(i,c){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function r(i,c,n){i===null&&(i=Function.prototype);var d=Object.getOwnPropertyDescriptor(i,c);if(d===void 0){var k=Object.getPrototypeOf(i);return k===null?void 0:r(k,c,n)}else{if("value"in d)return d.value;var w=d.get;return w===void 0?void 0:w.call(n)}},_=function(){function r(i,c){for(var n=0;n<c.length;n++){var d=c[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,c,n){return c&&r(i.prototype,c),n&&r(i,n),i}}(),y=f(0),g=e(y),h=f(7),o=e(h);function e(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 a(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 s=function(r){l(i,r),_(i,null,[{key:"value",value:function(){}}]);function i(c,n){t(this,i);var d=a(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,c));return d.selection=n,d.textNode=document.createTextNode(i.CONTENTS),d.domNode.appendChild(d.textNode),d._length=0,d}return _(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,d){if(this._length!==0)return m(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,d);for(var k=this,w=0;k!=null&&k.statics.scope!==g.default.Scope.BLOCK_BLOT;)w+=k.offset(k.parent),k=k.parent;k!=null&&(this._length=i.CONTENTS.length,k.optimize(),k.formatAt(w,i.CONTENTS.length,n,d),this._length=0)}},{key:"index",value:function(n,d){return n===this.textNode?0:m(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,d)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){m(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,d=this.selection.getNativeRange(),k=void 0,w=void 0,T=void 0;if(d!=null&&d.start.node===n&&d.end.node===n){var P=[n,d.start.offset,d.end.offset];k=P[0],w=P[1],T=P[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 A=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(k=this.next.domNode,this.next.insertAt(0,A),this.textNode.data=i.CONTENTS):(this.textNode.data=A,this.parent.insertBefore(g.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),w!=null){var v=[w,T].map(function(N){return Math.max(0,Math.min(k.data.length,N-1))}),O=E(v,2);return w=O[0],T=O[1],{startNode:k,startOffset:w,endNode:k,endOffset:T}}}}},{key:"update",value:function(n,d){var k=this;if(n.some(function(T){return T.type==="characterData"&&T.target===k.textNode})){var w=this.restore();w&&(d.range=w)}}},{key:"value",value:function(){return""}}]),i}(g.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\uFEFF",p.default=s},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(0),m=g(E),_=f(4),y=g(_);function g(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(m.default.Container);t.allowedChildren=[y.default,_.BlockEmbed,t],p.default=t},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.ColorStyle=p.ColorClass=p.ColorAttributor=void 0;var E=function(){function s(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&s(r.prototype,i),c&&s(r,c),r}}(),m=function s(r,i,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:s(d,i,c)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(c)}},_=f(0),y=g(_);function g(s){return s&&s.__esModule?s:{default:s}}function h(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}function o(s,r){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:s}function e(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(s,r):s.__proto__=r)}var t=function(s){e(r,s);function r(){return h(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"value",value:function(c){var n=m(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,c);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(d){return("00"+parseInt(d).toString(16)).slice(-2)}).join("")):n}}]),r}(y.default.Attributor.Style),a=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),l=new t("color","color",{scope:y.default.Scope.INLINE});p.ColorAttributor=t,p.ColorClass=a,p.ColorStyle=l},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.sanitize=p.default=void 0;var E=function(){function l(s,r){for(var i=0;i<r.length;i++){var c=r[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(s,c.key,c)}}return function(s,r,i){return r&&l(s.prototype,r),i&&l(s,i),s}}(),m=function l(s,r,i){s===null&&(s=Function.prototype);var c=Object.getOwnPropertyDescriptor(s,r);if(c===void 0){var n=Object.getPrototypeOf(s);return n===null?void 0:l(n,r,i)}else{if("value"in c)return c.value;var d=c.get;return d===void 0?void 0:d.call(i)}},_=f(6),y=g(_);function g(l){return l&&l.__esModule?l:{default:l}}function h(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")}function o(l,s){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:l}function e(l,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);l.prototype=Object.create(s&&s.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(l,s):l.__proto__=s)}var t=function(l){e(s,l);function s(){return h(this,s),o(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return E(s,[{key:"format",value:function(i,c){if(i!==this.statics.blotName||!c)return m(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,i,c);c=this.constructor.sanitize(c),this.domNode.setAttribute("href",c)}}],[{key:"create",value:function(i){var c=m(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,i);return i=this.sanitize(i),c.setAttribute("href",i),c.setAttribute("rel","noopener noreferrer"),c.setAttribute("target","_blank"),c}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return a(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),s}(y.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function a(l,s){var r=document.createElement("a");r.href=l;var i=r.href.slice(0,r.href.indexOf(":"));return s.indexOf(i)>-1}p.default=t,p.sanitize=a},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},m=function(){function s(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&s(r.prototype,i),c&&s(r,c),r}}(),_=f(23),y=o(_),g=f(107),h=o(g);function o(s){return s&&s.__esModule?s:{default:s}}function e(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}var t=0;function a(s,r){s.setAttribute(r,s.getAttribute(r)!=="true")}var l=function(){function s(r){var i=this;e(this,s),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(c){switch(c.keyCode){case y.default.keys.ENTER:i.togglePicker();break;case y.default.keys.ESCAPE:i.escape(),c.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return m(s,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),a(this.label,"aria-expanded"),a(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var c=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(){c.selectItem(n,!0)}),n.addEventListener("keydown",function(d){switch(d.keyCode){case y.default.keys.ENTER:c.selectItem(n,!0),d.preventDefault();break;case y.default.keys.ESCAPE:c.escape(),d.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=h.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,c=document.createElement("span");c.classList.add("ql-picker-options"),c.setAttribute("aria-hidden","true"),c.tabIndex="-1",c.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",c.id),this.options=c,[].slice.call(this.select.options).forEach(function(n){var d=i.buildItem(n);c.appendChild(d),n.selected===!0&&i.selectItem(d)}),this.container.appendChild(c)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(c){i.container.setAttribute(c.name,c.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 c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(i!==n&&(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"),c))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":E(Event))==="object"){var d=document.createEvent("Event");d.initEvent("change",!0,!0),this.select.dispatchEvent(d)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var c=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(c)}else this.selectItem(null);var n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),s}();p.default=l},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(0),m=D(E),_=f(5),y=D(_),g=f(4),h=D(g),o=f(16),e=D(o),t=f(25),a=D(t),l=f(24),s=D(l),r=f(35),i=D(r),c=f(6),n=D(c),d=f(22),k=D(d),w=f(7),T=D(w),P=f(55),A=D(P),v=f(42),O=D(v),N=f(23),L=D(N);function D(z){return z&&z.__esModule?z:{default:z}}y.default.register({"blots/block":h.default,"blots/block/embed":g.BlockEmbed,"blots/break":e.default,"blots/container":a.default,"blots/cursor":s.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":k.default,"blots/text":T.default,"modules/clipboard":A.default,"modules/history":O.default,"modules/keyboard":L.default}),m.default.register(h.default,e.default,s.default,n.default,k.default,T.default),p.default=y.default},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(1),m=function(){function _(y){this.domNode=y,this.domNode[E.DATA_KEY]={blot:this}}return Object.defineProperty(_.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),_.create=function(y){if(this.tagName==null)throw new E.ParchmentError("Blot definition missing tagName");var g;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?g=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?g=document.createElement(y):g=document.createElement(this.tagName[0])):g=document.createElement(this.tagName),this.className&&g.classList.add(this.className),g},_.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},_.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return E.create(y)},_.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[E.DATA_KEY]},_.prototype.deleteAt=function(y,g){var h=this.isolate(y,g);h.remove()},_.prototype.formatAt=function(y,g,h,o){var e=this.isolate(y,g);if(E.query(h,E.Scope.BLOT)!=null&&o)e.wrap(h,o);else if(E.query(h,E.Scope.ATTRIBUTE)!=null){var t=E.create(this.statics.scope);e.wrap(t),t.format(h,o)}},_.prototype.insertAt=function(y,g,h){var o=h==null?E.create("text",g):E.create(g,h),e=this.split(y);this.parent.insertBefore(o,e)},_.prototype.insertInto=function(y,g){g===void 0&&(g=null),this.parent!=null&&this.parent.children.remove(this);var h=null;y.children.insertBefore(this,g),g!=null&&(h=g.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=h)&&y.domNode.insertBefore(this.domNode,h),this.parent=y,this.attach()},_.prototype.isolate=function(y,g){var h=this.split(y);return h.split(g),h},_.prototype.length=function(){return 1},_.prototype.offset=function(y){return y===void 0&&(y=this.parent),this.parent==null||this==y?0:this.parent.children.offset(this)+this.parent.offset(y)},_.prototype.optimize=function(y){this.domNode[E.DATA_KEY]!=null&&delete this.domNode[E.DATA_KEY].mutations},_.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},_.prototype.replace=function(y){y.parent!=null&&(y.parent.insertBefore(this,y.next),y.remove())},_.prototype.replaceWith=function(y,g){var h=typeof y=="string"?E.create(y,g):y;return h.replace(this),h},_.prototype.split=function(y,g){return y===0?this:this.next},_.prototype.update=function(y,g){},_.prototype.wrap=function(y,g){var h=typeof y=="string"?E.create(y,g):y;return this.parent!=null&&this.parent.insertBefore(h,this.next),h.appendChild(this),h},_.blotName="abstract",_}();p.default=m},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(12),m=f(32),_=f(33),y=f(1),g=function(){function h(o){this.attributes={},this.domNode=o,this.build()}return h.prototype.attribute=function(o,e){e?o.add(this.domNode,e)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},h.prototype.build=function(){var o=this;this.attributes={};var e=E.default.keys(this.domNode),t=m.default.keys(this.domNode),a=_.default.keys(this.domNode);e.concat(t).concat(a).forEach(function(l){var s=y.query(l,y.Scope.ATTRIBUTE);s instanceof E.default&&(o.attributes[s.attrName]=s)})},h.prototype.copy=function(o){var e=this;Object.keys(this.attributes).forEach(function(t){var a=e.attributes[t].value(e.domNode);o.format(t,a)})},h.prototype.move=function(o){var e=this;this.copy(o),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},h.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=o.attributes[t].value(o.domNode),e},{})},h}();p.default=g},function(b,p,f){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){g(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(12);function _(g,h){var o=g.getAttribute("class")||"";return o.split(/\s+/).filter(function(e){return e.indexOf(h+"-")===0})}var y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},h.prototype.add=function(o,e){return this.canAdd(o,e)?(this.remove(o),o.classList.add(this.keyName+"-"+e),!0):!1},h.prototype.remove=function(o){var e=_(o,this.keyName);e.forEach(function(t){o.classList.remove(t)}),o.classList.length===0&&o.removeAttribute("class")},h.prototype.value=function(o){var e=_(o,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(o,t)?t:""},h}(m.default);p.default=y},function(b,p,f){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){g(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(12);function _(g){var h=g.split("-"),o=h.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return h[0]+o}var y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},h.prototype.add=function(o,e){return this.canAdd(o,e)?(o.style[_(this.keyName)]=e,!0):!1},h.prototype.remove=function(o){o.style[_(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},h.prototype.value=function(o){var e=o.style[_(this.keyName)];return this.canAdd(o,e)?e:""},h}(m.default);p.default=y},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function y(g,h){for(var o=0;o<h.length;o++){var e=h[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(g,e.key,e)}}return function(g,h,o){return h&&y(g.prototype,h),o&&y(g,o),g}}();function m(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(g,h){m(this,y),this.quill=g,this.options=h,this.modules={}}return E(y,[{key:"init",value:function(){var h=this;Object.keys(this.options.modules).forEach(function(o){h.modules[o]==null&&h.addModule(o)})}},{key:"addModule",value:function(h){var o=this.quill.constructor.import("modules/"+h);return this.modules[h]=new o(this.quill,this.options.modules[h]||{}),this.modules[h]}}]),y}();_.DEFAULTS={modules:{}},_.themes={default:_},p.default=_},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function r(i,c){for(var n=0;n<c.length;n++){var d=c[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,c,n){return c&&r(i.prototype,c),n&&r(i,n),i}}(),m=function r(i,c,n){i===null&&(i=Function.prototype);var d=Object.getOwnPropertyDescriptor(i,c);if(d===void 0){var k=Object.getPrototypeOf(i);return k===null?void 0:r(k,c,n)}else{if("value"in d)return d.value;var w=d.get;return w===void 0?void 0:w.call(n)}},_=f(0),y=o(_),g=f(7),h=o(g);function o(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 t(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 a(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",s=function(r){a(i,r);function i(c){e(this,i);var n=t(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,c));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(d){n.contentNode.appendChild(d)}),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 E(i,[{key:"index",value:function(n,d){return n===this.leftGuard?0:n===this.rightGuard?1:m(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,d)}},{key:"restore",value:function(n){var d=void 0,k=void 0,w=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof h.default){var T=this.prev.length();this.prev.insertAt(T,w),d={startNode:this.prev.domNode,startOffset:T+w.length}}else k=document.createTextNode(w),this.parent.insertBefore(y.default.create(k),this),d={startNode:k,startOffset:w.length};else n===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,w),d={startNode:this.next.domNode,startOffset:w.length}):(k=document.createTextNode(w),this.parent.insertBefore(y.default.create(k),this.next),d={startNode:k,startOffset:w.length}));return n.data=l,d}},{key:"update",value:function(n,d){var k=this;n.forEach(function(w){if(w.type==="characterData"&&(w.target===k.leftGuard||w.target===k.rightGuard)){var T=k.restore(w.target);T&&(d.range=T)}})}}]),i}(y.default.Embed);p.default=s},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.AlignStyle=p.AlignClass=p.AlignAttribute=void 0;var E=f(0),m=_(E);function _(e){return e&&e.__esModule?e:{default:e}}var y={scope:m.default.Scope.BLOCK,whitelist:["right","center","justify"]},g=new m.default.Attributor.Attribute("align","align",y),h=new m.default.Attributor.Class("align","ql-align",y),o=new m.default.Attributor.Style("align","text-align",y);p.AlignAttribute=g,p.AlignClass=h,p.AlignStyle=o},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.BackgroundStyle=p.BackgroundClass=void 0;var E=f(0),m=y(E),_=f(26);function y(o){return o&&o.__esModule?o:{default:o}}var g=new m.default.Attributor.Class("background","ql-bg",{scope:m.default.Scope.INLINE}),h=new _.ColorAttributor("background","background-color",{scope:m.default.Scope.INLINE});p.BackgroundClass=g,p.BackgroundStyle=h},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.DirectionStyle=p.DirectionClass=p.DirectionAttribute=void 0;var E=f(0),m=_(E);function _(e){return e&&e.__esModule?e:{default:e}}var y={scope:m.default.Scope.BLOCK,whitelist:["rtl"]},g=new m.default.Attributor.Attribute("direction","dir",y),h=new m.default.Attributor.Class("direction","ql-direction",y),o=new m.default.Attributor.Style("direction","direction",y);p.DirectionAttribute=g,p.DirectionClass=h,p.DirectionStyle=o},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.FontClass=p.FontStyle=void 0;var E=function(){function r(i,c){for(var n=0;n<c.length;n++){var d=c[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,c,n){return c&&r(i.prototype,c),n&&r(i,n),i}}(),m=function r(i,c,n){i===null&&(i=Function.prototype);var d=Object.getOwnPropertyDescriptor(i,c);if(d===void 0){var k=Object.getPrototypeOf(i);return k===null?void 0:r(k,c,n)}else{if("value"in d)return d.value;var w=d.get;return w===void 0?void 0:w.call(n)}},_=f(0),y=g(_);function g(r){return r&&r.__esModule?r:{default:r}}function h(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 e(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 t={scope:y.default.Scope.INLINE,whitelist:["serif","monospace"]},a=new y.default.Attributor.Class("font","ql-font",t),l=function(r){e(i,r);function i(){return h(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return E(i,[{key:"value",value:function(n){return m(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(y.default.Attributor.Style),s=new l("font","font-family",t);p.FontStyle=s,p.FontClass=a},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.SizeStyle=p.SizeClass=void 0;var E=f(0),m=_(E);function _(h){return h&&h.__esModule?h:{default:h}}var y=new m.default.Attributor.Class("size","ql-size",{scope:m.default.Scope.INLINE,whitelist:["small","large","huge"]}),g=new m.default.Attributor.Style("size","font-size",{scope:m.default.Scope.INLINE,whitelist:["10px","18px","32px"]});p.SizeClass=y,p.SizeStyle=g},function(b,p,f){b.exports={align:{"":f(76),center:f(77),right:f(78),justify:f(79)},background:f(80),blockquote:f(81),bold:f(82),clean:f(83),code:f(58),"code-block":f(58),color:f(84),direction:{"":f(85),rtl:f(86)},float:{center:f(87),full:f(88),left:f(89),right:f(90)},formula:f(91),header:{1:f(92),2:f(93)},italic:f(94),image:f(95),indent:{"+1":f(96),"-1":f(97)},link:f(98),list:{ordered:f(99),bullet:f(100),check:f(101)},script:{sub:f(102),super:f(103)},strike:f(104),underline:f(105),video:f(106)}},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.getLastChangeIndex=p.default=void 0;var E=function(){function c(n,d){for(var k=0;k<d.length;k++){var w=d[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,d,k){return d&&c(n.prototype,d),k&&c(n,k),n}}(),m=f(0),_=e(m),y=f(5),g=e(y),h=f(9),o=e(h);function e(c){return c&&c.__esModule?c:{default:c}}function t(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function a(c,n){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:c}function l(c,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);c.prototype=Object.create(n&&n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(c,n):c.__proto__=n)}var s=function(c){l(n,c);function n(d,k){t(this,n);var w=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,d,k));return w.lastRecorded=0,w.ignoreChange=!1,w.clear(),w.quill.on(g.default.events.EDITOR_CHANGE,function(T,P,A,v){T!==g.default.events.TEXT_CHANGE||w.ignoreChange||(!w.options.userOnly||v===g.default.sources.USER?w.record(P,A):w.transform(P))}),w.quill.keyboard.addBinding({key:"Z",shortKey:!0},w.undo.bind(w)),w.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},w.redo.bind(w)),/Win/i.test(navigator.platform)&&w.quill.keyboard.addBinding({key:"Y",shortKey:!0},w.redo.bind(w)),w}return E(n,[{key:"change",value:function(k,w){if(this.stack[k].length!==0){var T=this.stack[k].pop();this.stack[w].push(T),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(T[k],g.default.sources.USER),this.ignoreChange=!1;var P=i(T[k]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,w){if(k.ops.length!==0){this.stack.redo=[];var T=this.quill.getContents().diff(w),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var A=this.stack.undo.pop();T=T.compose(A.undo),k=A.redo.compose(k)}else this.lastRecorded=P;this.stack.undo.push({redo:k,undo:T}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(w){w.undo=k.transform(w.undo,!0),w.redo=k.transform(w.redo,!0)}),this.stack.redo.forEach(function(w){w.undo=k.transform(w.undo,!0),w.redo=k.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(c){var n=c.ops[c.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
|
|
32
|
-
`):n.attributes!=null?Object.keys(n.attributes).some(function(d){return _.default.query(d,_.default.Scope.BLOCK)!=null}):!1}function i(c){var n=c.reduce(function(k,w){return k+=w.delete||0,k},0),d=c.length()-n;return r(c)&&(d-=1),d}p.default=s,p.getLastChangeIndex=i},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BaseTooltip=void 0;var E=function(){function I(M,K){for(var C=0;C<K.length;C++){var q=K[C];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(M,q.key,q)}}return function(M,K,C){return K&&I(M.prototype,K),C&&I(M,C),M}}(),m=function I(M,K,C){M===null&&(M=Function.prototype);var q=Object.getOwnPropertyDescriptor(M,K);if(q===void 0){var F=Object.getPrototypeOf(M);return F===null?void 0:I(F,K,C)}else{if("value"in q)return q.value;var G=q.get;return G===void 0?void 0:G.call(C)}},_=f(3),y=P(_),g=f(2),h=P(g),o=f(8),e=P(o),t=f(23),a=P(t),l=f(34),s=P(l),r=f(59),i=P(r),c=f(60),n=P(c),d=f(28),k=P(d),w=f(61),T=P(w);function P(I){return I&&I.__esModule?I:{default:I}}function A(I,M){if(!(I instanceof M))throw new TypeError("Cannot call a class as a function")}function v(I,M){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:I}function O(I,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);I.prototype=Object.create(M&&M.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(I,M):I.__proto__=M)}var N=[!1,"center","right","justify"],L=["#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"],D=[!1,"serif","monospace"],z=["1","2","3",!1],V=["small",!1,"large","huge"],J=function(I){O(M,I);function M(K,C){A(this,M);var q=v(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,K,C)),F=function G($){if(!document.body.contains(K.root))return document.body.removeEventListener("click",G);q.tooltip!=null&&!q.tooltip.root.contains($.target)&&document.activeElement!==q.tooltip.textbox&&!q.quill.hasFocus()&&q.tooltip.hide(),q.pickers!=null&&q.pickers.forEach(function(X){X.container.contains($.target)||X.close()})};return K.emitter.listenDOM("click",document.body,F),q}return E(M,[{key:"addModule",value:function(C){var q=m(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,C);return C==="toolbar"&&this.extendToolbar(q),q}},{key:"buildButtons",value:function(C,q){C.forEach(function(F){var G=F.getAttribute("class")||"";G.split(/\s+/).forEach(function($){if($.startsWith("ql-")&&($=$.slice(3),q[$]!=null))if($==="direction")F.innerHTML=q[$][""]+q[$].rtl;else if(typeof q[$]=="string")F.innerHTML=q[$];else{var X=F.value||"";X!=null&&q[$][X]&&(F.innerHTML=q[$][X])}})})}},{key:"buildPickers",value:function(C,q){var F=this;this.pickers=C.map(function($){if($.classList.contains("ql-align"))return $.querySelector("option")==null&&S($,N),new n.default($,q.align);if($.classList.contains("ql-background")||$.classList.contains("ql-color")){var X=$.classList.contains("ql-background")?"background":"color";return $.querySelector("option")==null&&S($,L,X==="background"?"#ffffff":"#000000"),new i.default($,q[X])}else return $.querySelector("option")==null&&($.classList.contains("ql-font")?S($,D):$.classList.contains("ql-header")?S($,z):$.classList.contains("ql-size")&&S($,V)),new k.default($)});var G=function(){F.pickers.forEach(function(X){X.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,G)}}]),M}(s.default);J.DEFAULTS=(0,y.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,K=this.container.querySelector("input.ql-image[type=file]");K==null&&(K=document.createElement("input"),K.setAttribute("type","file"),K.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),K.classList.add("ql-image"),K.addEventListener("change",function(){if(K.files!=null&&K.files[0]!=null){var C=new FileReader;C.onload=function(q){var F=M.quill.getSelection(!0);M.quill.updateContents(new h.default().retain(F.index).delete(F.length).insert({image:q.target.result}),e.default.sources.USER),M.quill.setSelection(F.index+1,e.default.sources.SILENT),K.value=""},C.readAsDataURL(K.files[0])}}),this.container.appendChild(K)),K.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var H=function(I){O(M,I);function M(K,C){A(this,M);var q=v(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,K,C));return q.textbox=q.root.querySelector('input[type="text"]'),q.listen(),q}return E(M,[{key:"listen",value:function(){var C=this;this.textbox.addEventListener("keydown",function(q){a.default.match(q,"enter")?(C.save(),q.preventDefault()):a.default.match(q,"escape")&&(C.cancel(),q.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),q!=null?this.textbox.value=q:C!==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-"+C)||""),this.root.setAttribute("data-mode",C)}},{key:"restoreFocus",value:function(){var C=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=C}},{key:"save",value:function(){var C=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var q=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",C,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",C,e.default.sources.USER)),this.quill.root.scrollTop=q;break}case"video":C=R(C);case"formula":{if(!C)break;var F=this.quill.getSelection(!0);if(F!=null){var G=F.index+F.length;this.quill.insertEmbed(G,this.root.getAttribute("data-mode"),C,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(G+1," ",e.default.sources.USER),this.quill.setSelection(G+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M}(T.default);function R(I){var M=I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=I.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":I}function S(I,M){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(C){var q=document.createElement("option");C===K?q.setAttribute("selected","selected"):q.setAttribute("value",C),I.appendChild(q)})}p.BaseTooltip=H,p.default=J},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function m(){this.head=this.tail=null,this.length=0}return m.prototype.append=function(){for(var _=[],y=0;y<arguments.length;y++)_[y]=arguments[y];this.insertBefore(_[0],null),_.length>1&&this.append.apply(this,_.slice(1))},m.prototype.contains=function(_){for(var y,g=this.iterator();y=g();)if(y===_)return!0;return!1},m.prototype.insertBefore=function(_,y){_&&(_.next=y,y!=null?(_.prev=y.prev,y.prev!=null&&(y.prev.next=_),y.prev=_,y===this.head&&(this.head=_)):this.tail!=null?(this.tail.next=_,_.prev=this.tail,this.tail=_):(_.prev=null,this.head=this.tail=_),this.length+=1)},m.prototype.offset=function(_){for(var y=0,g=this.head;g!=null;){if(g===_)return y;y+=g.length(),g=g.next}return-1},m.prototype.remove=function(_){this.contains(_)&&(_.prev!=null&&(_.prev.next=_.next),_.next!=null&&(_.next.prev=_.prev),_===this.head&&(this.head=_.next),_===this.tail&&(this.tail=_.prev),this.length-=1)},m.prototype.iterator=function(_){return _===void 0&&(_=this.head),function(){var y=_;return _!=null&&(_=_.next),y}},m.prototype.find=function(_,y){y===void 0&&(y=!1);for(var g,h=this.iterator();g=h();){var o=g.length();if(_<o||y&&_===o&&(g.next==null||g.next.length()!==0))return[g,_];_-=o}return[null,0]},m.prototype.forEach=function(_){for(var y,g=this.iterator();y=g();)_(y)},m.prototype.forEachAt=function(_,y,g){if(!(y<=0))for(var h=this.find(_),o=h[0],e=h[1],t,a=_-e,l=this.iterator(o);(t=l())&&a<_+y;){var s=t.length();_>a?g(t,_-a,Math.min(y,a+s-_)):g(t,0,Math.min(s,_+y-a)),a+=s}},m.prototype.map=function(_){return this.reduce(function(y,g){return y.push(_(g)),y},[])},m.prototype.reduce=function(_,y){for(var g,h=this.iterator();g=h();)y=_(y,g);return y},m}();p.default=E},function(b,p,f){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])};return function(e,t){o(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(17),_=f(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},g=100,h=function(o){E(e,o);function e(t){var a=o.call(this,t)||this;return a.scroll=a,a.observer=new MutationObserver(function(l){a.update(l)}),a.observer.observe(a.domNode,y),a.attach(),a}return e.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,a){this.update(),t===0&&a===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,t,a)},e.prototype.formatAt=function(t,a,l,s){this.update(),o.prototype.formatAt.call(this,t,a,l,s)},e.prototype.insertAt=function(t,a,l){this.update(),o.prototype.insertAt.call(this,t,a,l)},e.prototype.optimize=function(t,a){var l=this;t===void 0&&(t=[]),a===void 0&&(a={}),o.prototype.optimize.call(this,a);for(var s=[].slice.call(this.observer.takeRecords());s.length>0;)t.push(s.pop());for(var r=function(d,k){k===void 0&&(k=!0),!(d==null||d===l)&&d.domNode.parentNode!=null&&(d.domNode[_.DATA_KEY].mutations==null&&(d.domNode[_.DATA_KEY].mutations=[]),k&&r(d.parent))},i=function(d){d.domNode[_.DATA_KEY]==null||d.domNode[_.DATA_KEY].mutations==null||(d instanceof m.default&&d.children.forEach(i),d.optimize(a))},c=t,n=0;c.length>0;n+=1){if(n>=g)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(d){var k=_.find(d.target,!0);k!=null&&(k.domNode===d.target&&(d.type==="childList"?(r(_.find(d.previousSibling,!1)),[].forEach.call(d.addedNodes,function(w){var T=_.find(w,!1);r(T,!1),T instanceof m.default&&T.children.forEach(function(P){r(P,!1)})})):d.type==="attributes"&&r(k.prev)),r(k))}),this.children.forEach(i),c=[].slice.call(this.observer.takeRecords()),s=c.slice();s.length>0;)t.push(s.pop())}},e.prototype.update=function(t,a){var l=this;a===void 0&&(a={}),t=t||this.observer.takeRecords(),t.map(function(s){var r=_.find(s.target,!0);return r==null?null:r.domNode[_.DATA_KEY].mutations==null?(r.domNode[_.DATA_KEY].mutations=[s],r):(r.domNode[_.DATA_KEY].mutations.push(s),null)}).forEach(function(s){s==null||s===l||s.domNode[_.DATA_KEY]==null||s.update(s.domNode[_.DATA_KEY].mutations||[],a)}),this.domNode[_.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[_.DATA_KEY].mutations,a),this.optimize(t,a)},e.blotName="scroll",e.defaultChild="block",e.scope=_.Scope.BLOCK_BLOT,e.tagName="DIV",e}(m.default);p.default=h},function(b,p,f){var E=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])};return function(o,e){h(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(18),_=f(1);function y(h,o){if(Object.keys(h).length!==Object.keys(o).length)return!1;for(var e in h)if(h[e]!==o[e])return!1;return!0}var g=function(h){E(o,h);function o(){return h!==null&&h.apply(this,arguments)||this}return o.formats=function(e){if(e.tagName!==o.tagName)return h.formats.call(this,e)},o.prototype.format=function(e,t){var a=this;e===this.statics.blotName&&!t?(this.children.forEach(function(l){l instanceof m.default||(l=l.wrap(o.blotName,!0)),a.attributes.copy(l)}),this.unwrap()):h.prototype.format.call(this,e,t)},o.prototype.formatAt=function(e,t,a,l){if(this.formats()[a]!=null||_.query(a,_.Scope.ATTRIBUTE)){var s=this.isolate(e,t);s.format(a,l)}else h.prototype.formatAt.call(this,e,t,a,l)},o.prototype.optimize=function(e){h.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var a=this.next;a instanceof o&&a.prev===this&&y(t,a.formats())&&(a.moveChildren(this),a.remove())},o.blotName="inline",o.scope=_.Scope.INLINE_BLOT,o.tagName="SPAN",o}(m.default);p.default=g},function(b,p,f){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){g(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(18),_=f(1),y=function(g){E(h,g);function h(){return g!==null&&g.apply(this,arguments)||this}return h.formats=function(o){var e=_.query(h.blotName).tagName;if(o.tagName!==e)return g.formats.call(this,o)},h.prototype.format=function(o,e){_.query(o,_.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!e?this.replaceWith(h.blotName):g.prototype.format.call(this,o,e))},h.prototype.formatAt=function(o,e,t,a){_.query(t,_.Scope.BLOCK)!=null?this.format(t,a):g.prototype.formatAt.call(this,o,e,t,a)},h.prototype.insertAt=function(o,e,t){if(t==null||_.query(e,_.Scope.INLINE)!=null)g.prototype.insertAt.call(this,o,e,t);else{var a=this.split(o),l=_.create(e,t);a.parent.insertBefore(l,a)}},h.prototype.update=function(o,e){navigator.userAgent.match(/Trident/)?this.build():g.prototype.update.call(this,o,e)},h.blotName="block",h.scope=_.Scope.BLOCK_BLOT,h.tagName="P",h}(m.default);p.default=y},function(b,p,f){var E=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,h){g.__proto__=h}||function(g,h){for(var o in h)h.hasOwnProperty(o)&&(g[o]=h[o])};return function(g,h){y(g,h);function o(){this.constructor=g}g.prototype=h===null?Object.create(h):(o.prototype=h.prototype,new o)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(19),_=function(y){E(g,y);function g(){return y!==null&&y.apply(this,arguments)||this}return g.formats=function(h){},g.prototype.format=function(h,o){y.prototype.formatAt.call(this,0,this.length(),h,o)},g.prototype.formatAt=function(h,o,e,t){h===0&&o===this.length()?this.format(e,t):y.prototype.formatAt.call(this,h,o,e,t)},g.prototype.formats=function(){return this.statics.formats(this.domNode)},g}(m.default);p.default=_},function(b,p,f){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){g(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var m=f(19),_=f(1),y=function(g){E(h,g);function h(o){var e=g.call(this,o)||this;return e.text=e.statics.value(e.domNode),e}return h.create=function(o){return document.createTextNode(o)},h.value=function(o){var e=o.data;return e.normalize&&(e=e.normalize()),e},h.prototype.deleteAt=function(o,e){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+e)},h.prototype.index=function(o,e){return this.domNode===o?e:-1},h.prototype.insertAt=function(o,e,t){t==null?(this.text=this.text.slice(0,o)+e+this.text.slice(o),this.domNode.data=this.text):g.prototype.insertAt.call(this,o,e,t)},h.prototype.length=function(){return this.text.length},h.prototype.optimize=function(o){g.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},h.prototype.position=function(o,e){return[this.domNode,o]},h.prototype.split=function(o,e){if(e===void 0&&(e=!1),!e){if(o===0)return this;if(o===this.length())return this.next}var t=_.create(this.domNode.splitText(o));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},h.prototype.update=function(o,e){var t=this;o.some(function(a){return a.type==="characterData"&&a.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},h.prototype.value=function(){return this.text},h.blotName="text",h.scope=_.Scope.INLINE_BLOT,h}(m.default);p.default=y},function(b,p,f){var E=document.createElement("div");if(E.classList.toggle("test-class",!1),E.classList.contains("test-class")){var m=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,y){return arguments.length>1&&!this.contains(_)==!y?y:m.call(this,_)}}String.prototype.startsWith||(String.prototype.startsWith=function(_,y){return y=y||0,this.substr(y,_.length)===_}),String.prototype.endsWith||(String.prototype.endsWith=function(_,y){var g=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>g.length)&&(y=g.length),y-=_.length;var h=g.indexOf(_,y);return h!==-1&&h===y}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof y!="function")throw new TypeError("predicate must be a function");for(var g=Object(this),h=g.length>>>0,o=arguments[1],e,t=0;t<h;t++)if(e=g[t],y.call(o,e,t,g))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(b,p){var f=-1,E=1,m=0;function _(n,d,k){if(n==d)return n?[[m,n]]:[];(k<0||n.length<k)&&(k=null);var w=o(n,d),T=n.substring(0,w);n=n.substring(w),d=d.substring(w),w=e(n,d);var P=n.substring(n.length-w);n=n.substring(0,n.length-w),d=d.substring(0,d.length-w);var A=y(n,d);return T&&A.unshift([m,T]),P&&A.push([m,P]),a(A),k!=null&&(A=r(A,k)),A=i(A),A}function y(n,d){var k;if(!n)return[[E,d]];if(!d)return[[f,n]];var w=n.length>d.length?n:d,T=n.length>d.length?d:n,P=w.indexOf(T);if(P!=-1)return k=[[E,w.substring(0,P)],[m,T],[E,w.substring(P+T.length)]],n.length>d.length&&(k[0][0]=k[2][0]=f),k;if(T.length==1)return[[f,n],[E,d]];var A=t(n,d);if(A){var v=A[0],O=A[1],N=A[2],L=A[3],D=A[4],z=_(v,N),V=_(O,L);return z.concat([[m,D]],V)}return g(n,d)}function g(n,d){for(var k=n.length,w=d.length,T=Math.ceil((k+w)/2),P=T,A=2*T,v=new Array(A),O=new Array(A),N=0;N<A;N++)v[N]=-1,O[N]=-1;v[P+1]=0,O[P+1]=0;for(var L=k-w,D=L%2!=0,z=0,V=0,J=0,H=0,R=0;R<T;R++){for(var S=-R+z;S<=R-V;S+=2){var I=P+S,M;S==-R||S!=R&&v[I-1]<v[I+1]?M=v[I+1]:M=v[I-1]+1;for(var K=M-S;M<k&&K<w&&n.charAt(M)==d.charAt(K);)M++,K++;if(v[I]=M,M>k)V+=2;else if(K>w)z+=2;else if(D){var C=P+L-S;if(C>=0&&C<A&&O[C]!=-1){var q=k-O[C];if(M>=q)return h(n,d,M,K)}}}for(var F=-R+J;F<=R-H;F+=2){var C=P+F,q;F==-R||F!=R&&O[C-1]<O[C+1]?q=O[C+1]:q=O[C-1]+1;for(var G=q-F;q<k&&G<w&&n.charAt(k-q-1)==d.charAt(w-G-1);)q++,G++;if(O[C]=q,q>k)H+=2;else if(G>w)J+=2;else if(!D){var I=P+L-F;if(I>=0&&I<A&&v[I]!=-1){var M=v[I],K=P+M-I;if(q=k-q,M>=q)return h(n,d,M,K)}}}}return[[f,n],[E,d]]}function h(n,d,k,w){var T=n.substring(0,k),P=d.substring(0,w),A=n.substring(k),v=d.substring(w),O=_(T,P),N=_(A,v);return O.concat(N)}function o(n,d){if(!n||!d||n.charAt(0)!=d.charAt(0))return 0;for(var k=0,w=Math.min(n.length,d.length),T=w,P=0;k<T;)n.substring(P,T)==d.substring(P,T)?(k=T,P=k):w=T,T=Math.floor((w-k)/2+k);return T}function e(n,d){if(!n||!d||n.charAt(n.length-1)!=d.charAt(d.length-1))return 0;for(var k=0,w=Math.min(n.length,d.length),T=w,P=0;k<T;)n.substring(n.length-T,n.length-P)==d.substring(d.length-T,d.length-P)?(k=T,P=k):w=T,T=Math.floor((w-k)/2+k);return T}function t(n,d){var k=n.length>d.length?n:d,w=n.length>d.length?d:n;if(k.length<4||w.length*2<k.length)return null;function T(V,J,H){for(var R=V.substring(H,H+Math.floor(V.length/4)),S=-1,I="",M,K,C,q;(S=J.indexOf(R,S+1))!=-1;){var F=o(V.substring(H),J.substring(S)),G=e(V.substring(0,H),J.substring(0,S));I.length<G+F&&(I=J.substring(S-G,S)+J.substring(S,S+F),M=V.substring(0,H-G),K=V.substring(H+F),C=J.substring(0,S-G),q=J.substring(S+F))}return I.length*2>=V.length?[M,K,C,q,I]:null}var P=T(k,w,Math.ceil(k.length/4)),A=T(k,w,Math.ceil(k.length/2)),v;if(!P&&!A)return null;A?P?v=P[4].length>A[4].length?P:A:v=A:v=P;var O,N,L,D;n.length>d.length?(O=v[0],N=v[1],L=v[2],D=v[3]):(L=v[0],D=v[1],O=v[2],N=v[3]);var z=v[4];return[O,N,L,D,z]}function a(n){n.push([m,""]);for(var d=0,k=0,w=0,T="",P="",A;d<n.length;)switch(n[d][0]){case E:w++,P+=n[d][1],d++;break;case f:k++,T+=n[d][1],d++;break;case m:k+w>1?(k!==0&&w!==0&&(A=o(P,T),A!==0&&(d-k-w>0&&n[d-k-w-1][0]==m?n[d-k-w-1][1]+=P.substring(0,A):(n.splice(0,0,[m,P.substring(0,A)]),d++),P=P.substring(A),T=T.substring(A)),A=e(P,T),A!==0&&(n[d][1]=P.substring(P.length-A)+n[d][1],P=P.substring(0,P.length-A),T=T.substring(0,T.length-A))),k===0?n.splice(d-w,k+w,[E,P]):w===0?n.splice(d-k,k+w,[f,T]):n.splice(d-k-w,k+w,[f,T],[E,P]),d=d-k-w+(k?1:0)+(w?1:0)+1):d!==0&&n[d-1][0]==m?(n[d-1][1]+=n[d][1],n.splice(d,1)):d++,w=0,k=0,T="",P="";break}n[n.length-1][1]===""&&n.pop();var v=!1;for(d=1;d<n.length-1;)n[d-1][0]==m&&n[d+1][0]==m&&(n[d][1].substring(n[d][1].length-n[d-1][1].length)==n[d-1][1]?(n[d][1]=n[d-1][1]+n[d][1].substring(0,n[d][1].length-n[d-1][1].length),n[d+1][1]=n[d-1][1]+n[d+1][1],n.splice(d-1,1),v=!0):n[d][1].substring(0,n[d+1][1].length)==n[d+1][1]&&(n[d-1][1]+=n[d+1][1],n[d][1]=n[d][1].substring(n[d+1][1].length)+n[d+1][1],n.splice(d+1,1),v=!0)),d++;v&&a(n)}var l=_;l.INSERT=E,l.DELETE=f,l.EQUAL=m,b.exports=l;function s(n,d){if(d===0)return[m,n];for(var k=0,w=0;w<n.length;w++){var T=n[w];if(T[0]===f||T[0]===m){var P=k+T[1].length;if(d===P)return[w+1,n];if(d<P){n=n.slice();var A=d-k,v=[T[0],T[1].slice(0,A)],O=[T[0],T[1].slice(A)];return n.splice(w,1,v,O),[w+1,n]}else k=P}}throw new Error("cursor_pos is out of bounds!")}function r(n,d){var k=s(n,d),w=k[1],T=k[0],P=w[T],A=w[T+1];if(P==null)return n;if(P[0]!==m)return n;if(A!=null&&P[1]+A[1]===A[1]+P[1])return w.splice(T,2,A,P),c(w,T,2);if(A!=null&&A[1].indexOf(P[1])===0){w.splice(T,2,[A[0],P[1]],[0,P[1]]);var v=A[1].slice(P[1].length);return v.length>0&&w.splice(T+2,0,[A[0],v]),c(w,T,3)}else return n}function i(n){for(var d=!1,k=function(A){return A.charCodeAt(0)>=56320&&A.charCodeAt(0)<=57343},w=function(A){return A.charCodeAt(A.length-1)>=55296&&A.charCodeAt(A.length-1)<=56319},T=2;T<n.length;T+=1)n[T-2][0]===m&&w(n[T-2][1])&&n[T-1][0]===f&&k(n[T-1][1])&&n[T][0]===E&&k(n[T][1])&&(d=!0,n[T-1][1]=n[T-2][1].slice(-1)+n[T-1][1],n[T][1]=n[T-2][1].slice(-1)+n[T][1],n[T-2][1]=n[T-2][1].slice(0,-1));if(!d)return n;for(var P=[],T=0;T<n.length;T+=1)n[T][1].length>0&&P.push(n[T]);return P}function c(n,d,k){for(var w=d+k-1;w>=0&&w>=d-1;w--)if(w+1<n.length){var T=n[w],P=n[w+1];T[0]===P[1]&&n.splice(w,2,[T[0],T[1]+P[1]])}return n}},function(b,p){p=b.exports=typeof Object.keys=="function"?Object.keys:f,p.shim=f;function f(E){var m=[];for(var _ in E)m.push(_);return m}},function(b,p){var f=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";p=b.exports=f?E:m,p.supported=E;function E(_){return Object.prototype.toString.call(_)=="[object Arguments]"}p.unsupported=m;function m(_){return _&&typeof _=="object"&&typeof _.length=="number"&&Object.prototype.hasOwnProperty.call(_,"callee")&&!Object.prototype.propertyIsEnumerable.call(_,"callee")||!1}},function(b,p){var f=Object.prototype.hasOwnProperty,E="~";function m(){}Object.create&&(m.prototype=Object.create(null),new m().__proto__||(E=!1));function _(g,h,o){this.fn=g,this.context=h,this.once=o||!1}function y(){this._events=new m,this._eventsCount=0}y.prototype.eventNames=function(){var h=[],o,e;if(this._eventsCount===0)return h;for(e in o=this._events)f.call(o,e)&&h.push(E?e.slice(1):e);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(o)):h},y.prototype.listeners=function(h,o){var e=E?E+h:h,t=this._events[e];if(o)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var a=0,l=t.length,s=new Array(l);a<l;a++)s[a]=t[a].fn;return s},y.prototype.emit=function(h,o,e,t,a,l){var s=E?E+h:h;if(!this._events[s])return!1;var r=this._events[s],i=arguments.length,c,n;if(r.fn){switch(r.once&&this.removeListener(h,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,e),!0;case 4:return r.fn.call(r.context,o,e,t),!0;case 5:return r.fn.call(r.context,o,e,t,a),!0;case 6:return r.fn.call(r.context,o,e,t,a,l),!0}for(n=1,c=new Array(i-1);n<i;n++)c[n-1]=arguments[n];r.fn.apply(r.context,c)}else{var d=r.length,k;for(n=0;n<d;n++)switch(r[n].once&&this.removeListener(h,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,e);break;case 4:r[n].fn.call(r[n].context,o,e,t);break;default:if(!c)for(k=1,c=new Array(i-1);k<i;k++)c[k-1]=arguments[k];r[n].fn.apply(r[n].context,c)}}return!0},y.prototype.on=function(h,o,e){var t=new _(o,e||this),a=E?E+h:h;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],t]:this._events[a].push(t):(this._events[a]=t,this._eventsCount++),this},y.prototype.once=function(h,o,e){var t=new _(o,e||this,!0),a=E?E+h:h;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],t]:this._events[a].push(t):(this._events[a]=t,this._eventsCount++),this},y.prototype.removeListener=function(h,o,e,t){var a=E?E+h:h;if(!this._events[a])return this;if(!o)return--this._eventsCount===0?this._events=new m:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn===o&&(!t||l.once)&&(!e||l.context===e)&&(--this._eventsCount===0?this._events=new m:delete this._events[a]);else{for(var s=0,r=[],i=l.length;s<i;s++)(l[s].fn!==o||t&&!l[s].once||e&&l[s].context!==e)&&r.push(l[s]);r.length?this._events[a]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new m:delete this._events[a]}return this},y.prototype.removeAllListeners=function(h){var o;return h?(o=E?E+h:h,this._events[o]&&(--this._eventsCount===0?this._events=new m:delete this._events[o])):(this._events=new m,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=E,y.EventEmitter=y,typeof b<"u"&&(b.exports=y)},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.matchText=p.matchSpacing=p.matchNewline=p.matchBlot=p.matchAttributor=p.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},m=function(){function W(Y,te){var ne=[],Q=!0,fe=!1,ae=void 0;try{for(var ue=Y[Symbol.iterator](),Ne;!(Q=(Ne=ue.next()).done)&&(ne.push(Ne.value),!(te&&ne.length===te));Q=!0);}catch(Ae){fe=!0,ae=Ae}finally{try{!Q&&ue.return&&ue.return()}finally{if(fe)throw ae}}return ne}return function(Y,te){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return W(Y,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function W(Y,te){for(var ne=0;ne<te.length;ne++){var Q=te[ne];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(Y,Q.key,Q)}}return function(Y,te,ne){return te&&W(Y.prototype,te),ne&&W(Y,ne),Y}}(),y=f(3),g=O(y),h=f(2),o=O(h),e=f(0),t=O(e),a=f(5),l=O(a),s=f(10),r=O(s),i=f(9),c=O(i),n=f(36),d=f(37),k=f(13),w=O(k),T=f(26),P=f(38),A=f(39),v=f(40);function O(W){return W&&W.__esModule?W:{default:W}}function N(W,Y,te){return Y in W?Object.defineProperty(W,Y,{value:te,enumerable:!0,configurable:!0,writable:!0}):W[Y]=te,W}function L(W,Y){if(!(W instanceof Y))throw new TypeError("Cannot call a class as a function")}function D(W,Y){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:W}function z(W,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);W.prototype=Object.create(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Y):W.__proto__=Y)}var V=(0,r.default)("quill:clipboard"),J="__ql-matcher",H=[[Node.TEXT_NODE,me],[Node.TEXT_NODE,ce],["br",re],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,$],[Node.ELEMENT_NODE,be],["li",le],["b",G.bind(G,"bold")],["i",G.bind(G,"italic")],["style",oe]],R=[n.AlignAttribute,P.DirectionAttribute].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),S=[n.AlignStyle,d.BackgroundStyle,T.ColorStyle,P.DirectionStyle,A.FontStyle,v.SizeStyle].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),I=function(W){z(Y,W);function Y(te,ne){L(this,Y);var Q=D(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,te,ne));return Q.quill.root.addEventListener("paste",Q.onPaste.bind(Q)),Q.container=Q.quill.addContainer("ql-clipboard"),Q.container.setAttribute("contenteditable",!0),Q.container.setAttribute("tabindex",-1),Q.matchers=[],H.concat(Q.options.matchers).forEach(function(fe){var ae=m(fe,2),ue=ae[0],Ne=ae[1];!ne.matchVisual&&Ne===de||Q.addMatcher(ue,Ne)}),Q}return _(Y,[{key:"addMatcher",value:function(ne,Q){this.matchers.push([ne,Q])}},{key:"convert",value:function(ne){if(typeof ne=="string")return this.container.innerHTML=ne.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[w.default.blotName]){var fe=this.container.innerText;return this.container.innerHTML="",new o.default().insert(fe,N({},w.default.blotName,Q[w.default.blotName]))}var ae=this.prepareMatching(),ue=m(ae,2),Ne=ue[0],Ae=ue[1],ye=F(this.container,Ne,Ae);return C(ye,`
|
|
33
|
-
`)&&ye.ops[ye.ops.length-1].attributes==null&&(ye=ye.compose(new o.default().retain(ye.length()-1).delete(1))),V.log("convert",this.container.innerHTML,ye),this.container.innerHTML="",ye}},{key:"dangerouslyPasteHTML",value:function(ne,Q){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof ne=="string")this.quill.setContents(this.convert(ne),Q),this.quill.setSelection(0,l.default.sources.SILENT);else{var ae=this.convert(Q);this.quill.updateContents(new o.default().retain(ne).concat(ae),fe),this.quill.setSelection(ne+ae.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(ne){var Q=this;if(!(ne.defaultPrevented||!this.quill.isEnabled())){var fe=this.quill.getSelection(),ae=new o.default().retain(fe.index),ue=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){ae=ae.concat(Q.convert()).delete(fe.length),Q.quill.updateContents(ae,l.default.sources.USER),Q.quill.setSelection(ae.length()-fe.length,l.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=ue,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ne=this,Q=[],fe=[];return this.matchers.forEach(function(ae){var ue=m(ae,2),Ne=ue[0],Ae=ue[1];switch(Ne){case Node.TEXT_NODE:fe.push(Ae);break;case Node.ELEMENT_NODE:Q.push(Ae);break;default:[].forEach.call(ne.container.querySelectorAll(Ne),function(ye){ye[J]=ye[J]||[],ye[J].push(Ae)});break}}),[Q,fe]}}]),Y}(c.default);I.DEFAULTS={matchers:[],matchVisual:!0};function M(W,Y,te){return(typeof Y>"u"?"undefined":E(Y))==="object"?Object.keys(Y).reduce(function(ne,Q){return M(ne,Q,Y[Q])},W):W.reduce(function(ne,Q){return Q.attributes&&Q.attributes[Y]?ne.push(Q):ne.insert(Q.insert,(0,g.default)({},N({},Y,te),Q.attributes))},new o.default)}function K(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var Y="__ql-computed-style";return W[Y]||(W[Y]=window.getComputedStyle(W))}function C(W,Y){for(var te="",ne=W.ops.length-1;ne>=0&&te.length<Y.length;--ne){var Q=W.ops[ne];if(typeof Q.insert!="string")break;te=Q.insert+te}return te.slice(-1*Y.length)===Y}function q(W){if(W.childNodes.length===0)return!1;var Y=K(W);return["block","list-item"].indexOf(Y.display)>-1}function F(W,Y,te){return W.nodeType===W.TEXT_NODE?te.reduce(function(ne,Q){return Q(W,ne)},new o.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(ne,Q){var fe=F(Q,Y,te);return Q.nodeType===W.ELEMENT_NODE&&(fe=Y.reduce(function(ae,ue){return ue(Q,ae)},fe),fe=(Q[J]||[]).reduce(function(ae,ue){return ue(Q,ae)},fe)),ne.concat(fe)},new o.default):new o.default}function G(W,Y,te){return M(te,W,!0)}function $(W,Y){var te=t.default.Attributor.Attribute.keys(W),ne=t.default.Attributor.Class.keys(W),Q=t.default.Attributor.Style.keys(W),fe={};return te.concat(ne).concat(Q).forEach(function(ae){var ue=t.default.query(ae,t.default.Scope.ATTRIBUTE);ue!=null&&(fe[ue.attrName]=ue.value(W),fe[ue.attrName])||(ue=R[ae],ue!=null&&(ue.attrName===ae||ue.keyName===ae)&&(fe[ue.attrName]=ue.value(W)||void 0),ue=S[ae],ue!=null&&(ue.attrName===ae||ue.keyName===ae)&&(ue=S[ae],fe[ue.attrName]=ue.value(W)||void 0))}),Object.keys(fe).length>0&&(Y=M(Y,fe)),Y}function X(W,Y){var te=t.default.query(W);if(te==null)return Y;if(te.prototype instanceof t.default.Embed){var ne={},Q=te.value(W);Q!=null&&(ne[te.blotName]=Q,Y=new o.default().insert(ne,te.formats(W)))}else typeof te.formats=="function"&&(Y=M(Y,te.blotName,te.formats(W)));return Y}function re(W,Y){return C(Y,`
|
|
34
|
-
`)||Y.insert(`
|
|
35
|
-
`),Y}function oe(){return new o.default}function le(W,Y){var te=t.default.query(W);if(te==null||te.blotName!=="list-item"||!C(Y,`
|
|
36
|
-
`))return Y;for(var ne=-1,Q=W.parentNode;!Q.classList.contains("ql-clipboard");)(t.default.query(Q)||{}).blotName==="list"&&(ne+=1),Q=Q.parentNode;return ne<=0?Y:Y.compose(new o.default().retain(Y.length()-1).retain(1,{indent:ne}))}function ce(W,Y){return C(Y,`
|
|
37
|
-
`)||(q(W)||Y.length()>0&&W.nextSibling&&q(W.nextSibling))&&Y.insert(`
|
|
38
|
-
`),Y}function de(W,Y){if(q(W)&&W.nextElementSibling!=null&&!C(Y,`
|
|
39
|
-
|
|
40
|
-
`)){var te=W.offsetHeight+parseFloat(K(W).marginTop)+parseFloat(K(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+te*1.5&&Y.insert(`
|
|
41
|
-
`)}return Y}function be(W,Y){var te={},ne=W.style||{};return ne.fontStyle&&K(W).fontStyle==="italic"&&(te.italic=!0),ne.fontWeight&&(K(W).fontWeight.startsWith("bold")||parseInt(K(W).fontWeight)>=700)&&(te.bold=!0),Object.keys(te).length>0&&(Y=M(Y,te)),parseFloat(ne.textIndent||0)>0&&(Y=new o.default().insert(" ").concat(Y)),Y}function me(W,Y){var te=W.data;if(W.parentNode.tagName==="O:P")return Y.insert(te.trim());if(te.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return Y;if(!K(W.parentNode).whiteSpace.startsWith("pre")){var ne=function(fe,ae){return ae=ae.replace(/[^\u00a0]/g,""),ae.length<1&&fe?" ":ae};te=te.replace(/\r\n/g," ").replace(/\n/g," "),te=te.replace(/\s\s+/g,ne.bind(ne,!0)),(W.previousSibling==null&&q(W.parentNode)||W.previousSibling!=null&&q(W.previousSibling))&&(te=te.replace(/^\s+/,ne.bind(ne,!1))),(W.nextSibling==null&&q(W.parentNode)||W.nextSibling!=null&&q(W.nextSibling))&&(te=te.replace(/\s+$/,ne.bind(ne,!1)))}return Y.insert(te)}p.default=I,p.matchAttributor=$,p.matchBlot=X,p.matchNewline=ce,p.matchSpacing=de,p.matchText=me},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function a(l,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,s,r){return s&&a(l.prototype,s),r&&a(l,r),l}}(),m=function a(l,s,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,s);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:a(c,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=f(6),y=g(_);function g(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return E(l,[{key:"optimize",value:function(r){m(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return m(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(y.default);t.blotName="bold",t.tagName=["STRONG","B"],p.default=t},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.addControls=p.default=void 0;var E=function(){function v(O,N){var L=[],D=!0,z=!1,V=void 0;try{for(var J=O[Symbol.iterator](),H;!(D=(H=J.next()).done)&&(L.push(H.value),!(N&&L.length===N));D=!0);}catch(R){z=!0,V=R}finally{try{!D&&J.return&&J.return()}finally{if(z)throw V}}return L}return function(O,N){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return v(O,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function v(O,N){for(var L=0;L<N.length;L++){var D=N[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(O,D.key,D)}}return function(O,N,L){return N&&v(O.prototype,N),L&&v(O,L),O}}(),_=f(2),y=r(_),g=f(0),h=r(g),o=f(5),e=r(o),t=f(10),a=r(t),l=f(9),s=r(l);function r(v){return v&&v.__esModule?v:{default:v}}function i(v,O,N){return O in v?Object.defineProperty(v,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):v[O]=N,v}function c(v,O){if(!(v instanceof O))throw new TypeError("Cannot call a class as a function")}function n(v,O){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:v}function d(v,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);v.prototype=Object.create(O&&O.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(v,O):v.__proto__=O)}var k=(0,a.default)("quill:toolbar"),w=function(v){d(O,v);function O(N,L){c(this,O);var D=n(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,L));if(Array.isArray(D.options.container)){var z=document.createElement("div");P(z,D.options.container),N.container.parentNode.insertBefore(z,N.container),D.container=z}else typeof D.options.container=="string"?D.container=document.querySelector(D.options.container):D.container=D.options.container;if(!(D.container instanceof HTMLElement)){var V;return V=k.error("Container required for toolbar",D.options),n(D,V)}return D.container.classList.add("ql-toolbar"),D.controls=[],D.handlers={},Object.keys(D.options.handlers).forEach(function(J){D.addHandler(J,D.options.handlers[J])}),[].forEach.call(D.container.querySelectorAll("button, select"),function(J){D.attach(J)}),D.quill.on(e.default.events.EDITOR_CHANGE,function(J,H){J===e.default.events.SELECTION_CHANGE&&D.update(H)}),D.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var J=D.quill.selection.getRange(),H=E(J,1),R=H[0];D.update(R)}),D}return m(O,[{key:"addHandler",value:function(L,D){this.handlers[L]=D}},{key:"attach",value:function(L){var D=this,z=[].find.call(L.classList,function(J){return J.indexOf("ql-")===0});if(z){if(z=z.slice(3),L.tagName==="BUTTON"&&L.setAttribute("type","button"),this.handlers[z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[z]==null){k.warn("ignoring attaching to disabled format",z,L);return}if(h.default.query(z)==null){k.warn("ignoring attaching to nonexistent format",z,L);return}}var V=L.tagName==="SELECT"?"change":"click";L.addEventListener(V,function(J){var H=void 0;if(L.tagName==="SELECT"){if(L.selectedIndex<0)return;var R=L.options[L.selectedIndex];R.hasAttribute("selected")?H=!1:H=R.value||!1}else L.classList.contains("ql-active")?H=!1:H=L.value||!L.hasAttribute("value"),J.preventDefault();D.quill.focus();var S=D.quill.selection.getRange(),I=E(S,1),M=I[0];if(D.handlers[z]!=null)D.handlers[z].call(D,H);else if(h.default.query(z).prototype instanceof h.default.Embed){if(H=prompt("Enter "+z),!H)return;D.quill.updateContents(new y.default().retain(M.index).delete(M.length).insert(i({},z,H)),e.default.sources.USER)}else D.quill.format(z,H,e.default.sources.USER);D.update(M)}),this.controls.push([z,L])}}},{key:"update",value:function(L){var D=L==null?{}:this.quill.getFormat(L);this.controls.forEach(function(z){var V=E(z,2),J=V[0],H=V[1];if(H.tagName==="SELECT"){var R=void 0;if(L==null)R=null;else if(D[J]==null)R=H.querySelector("option[selected]");else if(!Array.isArray(D[J])){var S=D[J];typeof S=="string"&&(S=S.replace(/\"/g,'\\"')),R=H.querySelector('option[value="'+S+'"]')}R==null?(H.value="",H.selectedIndex=-1):R.selected=!0}else if(L==null)H.classList.remove("ql-active");else if(H.hasAttribute("value")){var I=D[J]===H.getAttribute("value")||D[J]!=null&&D[J].toString()===H.getAttribute("value")||D[J]==null&&!H.getAttribute("value");H.classList.toggle("ql-active",I)}else H.classList.toggle("ql-active",D[J]!=null)})}}]),O}(s.default);w.DEFAULTS={};function T(v,O,N){var L=document.createElement("button");L.setAttribute("type","button"),L.classList.add("ql-"+O),N!=null&&(L.value=N),v.appendChild(L)}function P(v,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(N){var L=document.createElement("span");L.classList.add("ql-formats"),N.forEach(function(D){if(typeof D=="string")T(L,D);else{var z=Object.keys(D)[0],V=D[z];Array.isArray(V)?A(L,z,V):T(L,z,V)}}),v.appendChild(L)})}function A(v,O,N){var L=document.createElement("select");L.classList.add("ql-"+O),N.forEach(function(D){var z=document.createElement("option");D!==!1?z.setAttribute("value",D):z.setAttribute("selected","selected"),L.appendChild(z)}),v.appendChild(L)}w.DEFAULTS={container:null,handlers:{clean:function(){var O=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var L=this.quill.getFormat();Object.keys(L).forEach(function(D){h.default.query(D,h.default.Scope.INLINE)!=null&&O.quill.format(D,!1)})}else this.quill.removeFormat(N,e.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",e.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",O,e.default.sources.USER)},indent:function(O){var N=this.quill.getSelection(),L=this.quill.getFormat(N),D=parseInt(L.indent||0);if(O==="+1"||O==="-1"){var z=O==="+1"?1:-1;L.direction==="rtl"&&(z*=-1),this.quill.format("indent",D+z,e.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,e.default.sources.USER)},list:function(O){var N=this.quill.getSelection(),L=this.quill.getFormat(N);O==="check"?L.list==="checked"||L.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",O,e.default.sources.USER)}}},p.default=w,p.addControls=P},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function a(l,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,s,r){return s&&a(l.prototype,s),r&&a(l,r),l}}(),m=function a(l,s,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,s);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:a(c,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=f(28),y=g(_);function g(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(s,r){h(this,l);var i=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,s));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(c){c.classList.add("ql-primary")}),i}return E(l,[{key:"buildItem",value:function(r){var i=m(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){m(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i);var c=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";c&&(c.tagName==="line"?c.style.stroke=n:c.style.fill=n)}}]),l}(y.default);p.default=t},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function a(l,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,s,r){return s&&a(l.prototype,s),r&&a(l,r),l}}(),m=function a(l,s,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,s);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:a(c,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=f(28),y=g(_);function g(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(s,r){h(this,l);var i=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,s));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(c){c.innerHTML=r[c.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return E(l,[{key:"selectItem",value:function(r,i){m(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),l}(y.default);p.default=t},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function y(g,h){for(var o=0;o<h.length;o++){var e=h[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(g,e.key,e)}}return function(g,h,o){return h&&y(g.prototype,h),o&&y(g,o),g}}();function m(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(g,h){var o=this;m(this,y),this.quill=g,this.boundsContainer=h||document.body,this.root=g.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return E(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(h){var o=h.left+h.width/2-this.root.offsetWidth/2,e=h.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect(),l=0;if(a.right>t.right&&(l=t.right-a.right,this.root.style.left=o+l+"px"),a.left<t.left&&(l=t.left-a.left,this.root.style.left=o+l+"px"),a.bottom>t.bottom){var s=a.bottom-a.top,r=h.bottom-h.top+s;this.root.style.top=e-r+"px",this.root.classList.add("ql-flip")}return l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),y}();p.default=_},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function A(v,O){var N=[],L=!0,D=!1,z=void 0;try{for(var V=v[Symbol.iterator](),J;!(L=(J=V.next()).done)&&(N.push(J.value),!(O&&N.length===O));L=!0);}catch(H){D=!0,z=H}finally{try{!L&&V.return&&V.return()}finally{if(D)throw z}}return N}return function(v,O){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return A(v,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function A(v,O,N){v===null&&(v=Function.prototype);var L=Object.getOwnPropertyDescriptor(v,O);if(L===void 0){var D=Object.getPrototypeOf(v);return D===null?void 0:A(D,O,N)}else{if("value"in L)return L.value;var z=L.get;return z===void 0?void 0:z.call(N)}},_=function(){function A(v,O){for(var N=0;N<O.length;N++){var L=O[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(v,L.key,L)}}return function(v,O,N){return O&&A(v.prototype,O),N&&A(v,N),v}}(),y=f(3),g=c(y),h=f(8),o=c(h),e=f(43),t=c(e),a=f(27),l=c(a),s=f(15),r=f(41),i=c(r);function c(A){return A&&A.__esModule?A:{default:A}}function n(A,v){if(!(A instanceof v))throw new TypeError("Cannot call a class as a function")}function d(A,v){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:A}function k(A,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);A.prototype=Object.create(v&&v.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(A,v):A.__proto__=v)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],T=function(A){k(v,A);function v(O,N){n(this,v),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=w);var L=d(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,O,N));return L.quill.container.classList.add("ql-snow"),L}return _(v,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),i.default),this.tooltip=new P(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(L,D){N.handlers.link.call(N,!D.format.link)})}}]),v}(t.default);T.DEFAULTS=(0,g.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(v){if(v){var O=this.quill.getSelection();if(O==null||O.length==0)return;var N=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var L=this.quill.theme.tooltip;L.edit("link",N)}else this.quill.format("link",!1)}}}}});var P=function(A){k(v,A);function v(O,N){n(this,v);var L=d(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,O,N));return L.preview=L.root.querySelector("a.ql-preview"),L}return _(v,[{key:"listen",value:function(){var N=this;m(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(L){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),L.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(L){if(N.linkRange!=null){var D=N.linkRange;N.restoreFocus(),N.quill.formatText(D,"link",!1,o.default.sources.USER),delete N.linkRange}L.preventDefault(),N.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(L,D,z){if(L!=null){if(L.length===0&&z===o.default.sources.USER){var V=N.quill.scroll.descendant(l.default,L.index),J=E(V,2),H=J[0],R=J[1];if(H!=null){N.linkRange=new s.Range(L.index-R,H.length());var S=l.default.formats(H.domNode);N.preview.textContent=S,N.preview.setAttribute("href",S),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){m(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),v}(e.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),p.default=T},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(29),m=Q(E),_=f(36),y=f(38),g=f(64),h=f(65),o=Q(h),e=f(66),t=Q(e),a=f(67),l=Q(a),s=f(37),r=f(26),i=f(39),c=f(40),n=f(56),d=Q(n),k=f(68),w=Q(k),T=f(27),P=Q(T),A=f(69),v=Q(A),O=f(70),N=Q(O),L=f(71),D=Q(L),z=f(72),V=Q(z),J=f(73),H=Q(J),R=f(13),S=Q(R),I=f(74),M=Q(I),K=f(75),C=Q(K),q=f(57),F=Q(q),G=f(41),$=Q(G),X=f(28),re=Q(X),oe=f(59),le=Q(oe),ce=f(60),de=Q(ce),be=f(61),me=Q(be),W=f(108),Y=Q(W),te=f(62),ne=Q(te);function Q(fe){return fe&&fe.__esModule?fe:{default:fe}}m.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":_.AlignClass,"attributors/class/background":s.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":y.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":c.SizeClass,"attributors/style/align":_.AlignStyle,"attributors/style/background":s.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":c.SizeStyle},!0),m.default.register({"formats/align":_.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":g.IndentClass,"formats/background":s.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":c.SizeClass,"formats/blockquote":o.default,"formats/code-block":S.default,"formats/header":t.default,"formats/list":l.default,"formats/bold":d.default,"formats/code":R.Code,"formats/italic":w.default,"formats/link":P.default,"formats/script":v.default,"formats/strike":N.default,"formats/underline":D.default,"formats/image":V.default,"formats/video":H.default,"formats/list/item":a.ListItem,"modules/formula":M.default,"modules/syntax":C.default,"modules/toolbar":F.default,"themes/bubble":Y.default,"themes/snow":ne.default,"ui/icons":$.default,"ui/picker":re.default,"ui/icon-picker":de.default,"ui/color-picker":le.default,"ui/tooltip":me.default},!0),p.default=m.default},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.IndentClass=void 0;var E=function(){function l(s,r){for(var i=0;i<r.length;i++){var c=r[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(s,c.key,c)}}return function(s,r,i){return r&&l(s.prototype,r),i&&l(s,i),s}}(),m=function l(s,r,i){s===null&&(s=Function.prototype);var c=Object.getOwnPropertyDescriptor(s,r);if(c===void 0){var n=Object.getPrototypeOf(s);return n===null?void 0:l(n,r,i)}else{if("value"in c)return c.value;var d=c.get;return d===void 0?void 0:d.call(i)}},_=f(0),y=g(_);function g(l){return l&&l.__esModule?l:{default:l}}function h(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")}function o(l,s){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:l}function e(l,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);l.prototype=Object.create(s&&s.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(l,s):l.__proto__=s)}var t=function(l){e(s,l);function s(){return h(this,s),o(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return E(s,[{key:"add",value:function(i,c){if(c==="+1"||c==="-1"){var n=this.value(i)||0;c=c==="+1"?n+1:n-1}return c===0?(this.remove(i),!0):m(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"add",this).call(this,i,c)}},{key:"canAdd",value:function(i,c){return m(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"canAdd",this).call(this,i,c)||m(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"canAdd",this).call(this,i,parseInt(c))}},{key:"value",value:function(i){return parseInt(m(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"value",this).call(this,i))||void 0}}]),s}(y.default.Attributor.Class),a=new t("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});p.IndentClass=a},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(4),m=_(E);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(m.default);o.blotName="blockquote",o.tagName="blockquote",p.default=o},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function t(a,l){for(var s=0;s<l.length;s++){var r=l[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(a,r.key,r)}}return function(a,l,s){return l&&t(a.prototype,l),s&&t(a,s),a}}(),m=f(4),_=y(m);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function h(t,a){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:t}function o(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);t.prototype=Object.create(a&&a.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(t,a):t.__proto__=a)}var e=function(t){o(a,t);function a(){return g(this,a),h(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return E(a,null,[{key:"formats",value:function(s){return this.tagName.indexOf(s.tagName)+1}}]),a}(_.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],p.default=e},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.ListItem=void 0;var E=function(){function n(d,k){for(var w=0;w<k.length;w++){var T=k[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(d,T.key,T)}}return function(d,k,w){return k&&n(d.prototype,k),w&&n(d,w),d}}(),m=function n(d,k,w){d===null&&(d=Function.prototype);var T=Object.getOwnPropertyDescriptor(d,k);if(T===void 0){var P=Object.getPrototypeOf(d);return P===null?void 0:n(P,k,w)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(w)}},_=f(0),y=t(_),g=f(4),h=t(g),o=f(25),e=t(o);function t(n){return n&&n.__esModule?n:{default:n}}function a(n,d,k){return d in n?Object.defineProperty(n,d,{value:k,enumerable:!0,configurable:!0,writable:!0}):n[d]=k,n}function l(n,d){if(!(n instanceof d))throw new TypeError("Cannot call a class as a function")}function s(n,d){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:n}function r(n,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);n.prototype=Object.create(d&&d.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(n,d):n.__proto__=d)}var i=function(n){r(d,n);function d(){return l(this,d),s(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return E(d,[{key:"format",value:function(w,T){w===c.blotName&&!T?this.replaceWith(y.default.create(this.statics.scope)):m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,w,T)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(w,T){return this.parent.isolate(this.offset(this.parent),this.length()),w===this.parent.statics.blotName?(this.parent.replaceWith(w,T),this):(this.parent.unwrap(),m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replaceWith",this).call(this,w,T))}}],[{key:"formats",value:function(w){return w.tagName===this.tagName?void 0:m(d.__proto__||Object.getPrototypeOf(d),"formats",this).call(this,w)}}]),d}(h.default);i.blotName="list-item",i.tagName="LI";var c=function(n){r(d,n),E(d,null,[{key:"create",value:function(w){var T=w==="ordered"?"OL":"UL",P=m(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,T);return(w==="checked"||w==="unchecked")&&P.setAttribute("data-checked",w==="checked"),P}},{key:"formats",value:function(w){if(w.tagName==="OL")return"ordered";if(w.tagName==="UL")return w.hasAttribute("data-checked")?w.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function d(k){l(this,d);var w=s(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,k)),T=function(A){if(A.target.parentNode===k){var v=w.statics.formats(k),O=y.default.find(A.target);v==="checked"?O.format("list","unchecked"):v==="unchecked"&&O.format("list","checked")}};return k.addEventListener("touchstart",T),k.addEventListener("mousedown",T),w}return E(d,[{key:"format",value:function(w,T){this.children.length>0&&this.children.tail.format(w,T)}},{key:"formats",value:function(){return a({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,T){if(w instanceof i)m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,w,T);else{var P=T==null?this.length():T.offset(this),A=this.split(P);A.parent.insertBefore(w,A)}}},{key:"optimize",value:function(w){m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,w);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&T.domNode.tagName===this.domNode.tagName&&T.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(T.moveChildren(this),T.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var T=y.default.create(this.statics.defaultChild);w.moveChildren(T),this.appendChild(T)}m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replace",this).call(this,w)}}]),d}(e.default);c.blotName="list",c.scope=y.default.Scope.BLOCK_BLOT,c.tagName=["OL","UL"],c.defaultChild="list-item",c.allowedChildren=[i],p.ListItem=i,p.default=c},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(56),m=_(E);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(m.default);o.blotName="italic",o.tagName=["EM","I"],p.default=o},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function a(l,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,s,r){return s&&a(l.prototype,s),r&&a(l,r),l}}(),m=function a(l,s,r){l===null&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,s);if(i===void 0){var c=Object.getPrototypeOf(l);return c===null?void 0:a(c,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},_=f(6),y=g(_);function g(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return E(l,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):m(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),l}(y.default);t.blotName="script",t.tagName=["SUB","SUP"],p.default=t},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(6),m=_(E);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(m.default);o.blotName="strike",o.tagName="S",p.default=o},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(6),m=_(E);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(m.default);o.blotName="underline",o.tagName="U",p.default=o},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&s(r.prototype,i),c&&s(r,c),r}}(),m=function s(r,i,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:s(d,i,c)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(c)}},_=f(0),y=h(_),g=f(27);function h(s){return s&&s.__esModule?s:{default:s}}function o(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}function e(s,r){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:s}function t(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(s,r):s.__proto__=r)}var a=["alt","height","width"],l=function(s){t(r,s);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(c,n){a.indexOf(c)>-1?n?this.domNode.setAttribute(c,n):this.domNode.removeAttribute(c):m(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,c,n)}}],[{key:"create",value:function(c){var n=m(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,c);return typeof c=="string"&&n.setAttribute("src",this.sanitize(c)),n}},{key:"formats",value:function(c){return a.reduce(function(n,d){return c.hasAttribute(d)&&(n[d]=c.getAttribute(d)),n},{})}},{key:"match",value:function(c){return/\.(jpe?g|gif|png)$/.test(c)||/^data:image\/.+;base64/.test(c)}},{key:"sanitize",value:function(c){return(0,g.sanitize)(c,["http","https","data"])?c:"//:0"}},{key:"value",value:function(c){return c.getAttribute("src")}}]),r}(y.default.Embed);l.blotName="image",l.tagName="IMG",p.default=l},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(r,i){for(var c=0;c<i.length;c++){var n=i[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,c){return i&&s(r.prototype,i),c&&s(r,c),r}}(),m=function s(r,i,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:s(d,i,c)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(c)}},_=f(4),y=f(27),g=h(y);function h(s){return s&&s.__esModule?s:{default:s}}function o(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}function e(s,r){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:s}function t(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(s,r):s.__proto__=r)}var a=["height","width"],l=function(s){t(r,s);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(c,n){a.indexOf(c)>-1?n?this.domNode.setAttribute(c,n):this.domNode.removeAttribute(c):m(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,c,n)}}],[{key:"create",value:function(c){var n=m(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,c);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(c)),n}},{key:"formats",value:function(c){return a.reduce(function(n,d){return c.hasAttribute(d)&&(n[d]=c.getAttribute(d)),n},{})}},{key:"sanitize",value:function(c){return g.default.sanitize(c)}},{key:"value",value:function(c){return c.getAttribute("src")}}]),r}(_.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",p.default=l},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.FormulaBlot=void 0;var E=function(){function c(n,d){for(var k=0;k<d.length;k++){var w=d[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,d,k){return d&&c(n.prototype,d),k&&c(n,k),n}}(),m=function c(n,d,k){n===null&&(n=Function.prototype);var w=Object.getOwnPropertyDescriptor(n,d);if(w===void 0){var T=Object.getPrototypeOf(n);return T===null?void 0:c(T,d,k)}else{if("value"in w)return w.value;var P=w.get;return P===void 0?void 0:P.call(k)}},_=f(35),y=t(_),g=f(5),h=t(g),o=f(9),e=t(o);function t(c){return c&&c.__esModule?c:{default:c}}function a(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function l(c,n){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:c}function s(c,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);c.prototype=Object.create(n&&n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(c,n):c.__proto__=n)}var r=function(c){s(n,c);function n(){return a(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return E(n,null,[{key:"create",value:function(k){var w=m(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,w,{throwOnError:!1,errorColor:"#f00"}),w.setAttribute("data-value",k)),w}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),n}(y.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(c){s(n,c),E(n,null,[{key:"register",value:function(){h.default.register(r,!0)}}]);function n(){a(this,n);var d=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return d}return n}(e.default);p.FormulaBlot=r,p.default=i},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.CodeToken=p.CodeBlock=void 0;var E=function(){function k(w,T){for(var P=0;P<T.length;P++){var A=T[P];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,P){return T&&k(w.prototype,T),P&&k(w,P),w}}(),m=function k(w,T,P){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var v=Object.getPrototypeOf(w);return v===null?void 0:k(v,T,P)}else{if("value"in A)return A.value;var O=A.get;return O===void 0?void 0:O.call(P)}},_=f(0),y=l(_),g=f(5),h=l(g),o=f(9),e=l(o),t=f(13),a=l(t);function l(k){return k&&k.__esModule?k:{default:k}}function s(k,w){if(!(k instanceof w))throw new TypeError("Cannot call a class as a function")}function r(k,w){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:k}function i(k,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);k.prototype=Object.create(w&&w.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(k,w):k.__proto__=w)}var c=function(k){i(w,k);function w(){return s(this,w),r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return E(w,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var A=this.domNode.textContent;this.cachedText!==A&&((A.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(A),this.domNode.normalize(),this.attach()),this.cachedText=A)}}]),w}(a.default);c.className="ql-syntax";var n=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),d=function(k){i(w,k),E(w,null,[{key:"register",value:function(){h.default.register(n,!0),h.default.register(c,!0)}}]);function w(T,P){s(this,w);var A=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T,P));if(typeof A.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var v=null;return A.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(v),v=setTimeout(function(){A.highlight(),v=null},A.options.interval)}),A.highlight(),A}return E(w,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var A=this.quill.getSelection();this.quill.scroll.descendants(c).forEach(function(v){v.highlight(P.options.highlight)}),this.quill.update(h.default.sources.SILENT),A!=null&&this.quill.setSelection(A,h.default.sources.SILENT)}}}]),w}(e.default);d.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var w=window.hljs.highlightAuto(k);return w.value}}(),interval:1e3},p.CodeBlock=c,p.CodeToken=n,p.default=d},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(b,p){b.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(b,p){b.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(b,p){b.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(b,p){b.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(b,p){b.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(b,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BubbleTooltip=void 0;var E=function w(T,P,A){T===null&&(T=Function.prototype);var v=Object.getOwnPropertyDescriptor(T,P);if(v===void 0){var O=Object.getPrototypeOf(T);return O===null?void 0:w(O,P,A)}else{if("value"in v)return v.value;var N=v.get;return N===void 0?void 0:N.call(A)}},m=function(){function w(T,P){for(var A=0;A<P.length;A++){var v=P[A];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(T,v.key,v)}}return function(T,P,A){return P&&w(T.prototype,P),A&&w(T,A),T}}(),_=f(3),y=s(_),g=f(8),h=s(g),o=f(43),e=s(o),t=f(15),a=f(41),l=s(a);function s(w){return w&&w.__esModule?w:{default:w}}function r(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function i(w,T){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:w}function c(w,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],d=function(w){c(T,w);function T(P,A){r(this,T),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=n);var v=i(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,P,A));return v.quill.container.classList.add("ql-bubble"),v}return m(T,[{key:"extendToolbar",value:function(A){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(A.container),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),l.default)}}]),T}(e.default);d.DEFAULTS=(0,y.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){T?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(w){c(T,w);function T(P,A){r(this,T);var v=i(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,P,A));return v.quill.on(h.default.events.EDITOR_CHANGE,function(O,N,L,D){if(O===h.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&D===h.default.sources.USER){v.show(),v.root.style.left="0px",v.root.style.width="",v.root.style.width=v.root.offsetWidth+"px";var z=v.quill.getLines(N.index,N.length);if(z.length===1)v.position(v.quill.getBounds(N));else{var V=z[z.length-1],J=v.quill.getIndex(V),H=Math.min(V.length()-1,N.index+N.length-J),R=v.quill.getBounds(new t.Range(J,H));v.position(R)}}else document.activeElement!==v.textbox&&v.quill.hasFocus()&&v.hide()}),v}return m(T,[{key:"listen",value:function(){var A=this;E(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){A.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!A.root.classList.contains("ql-hidden")){var v=A.quill.getSelection();v!=null&&A.position(A.quill.getBounds(v))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(A){var v=E(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,A),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",v===0)return v;O.style.marginLeft=-1*v-O.offsetWidth/2+"px"}}]),T}(o.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),p.BubbleTooltip=k,p.default=d},function(b,p,f){b.exports=f(63)}]).default})})(Kn);var nr=Kn.exports;const qn=Ee.getDefaultExportFromCjs(nr);var He=-1,Be=1,Re=0;function wt(j,U,b,p){if(j===U)return j?[[Re,j]]:[];if(b!=null){var f=lr(j,U,b);if(f)return f}var E=Mn(j,U),m=j.substring(0,E);j=j.substring(E),U=U.substring(E),E=Dn(j,U);var _=j.substring(j.length-E);j=j.substring(0,j.length-E),U=U.substring(0,U.length-E);var y=rr(j,U);return m&&y.unshift([Re,m]),_&&y.push([Re,_]),Vn(y,p),y}function rr(j,U){var b;if(!j)return[[Be,U]];if(!U)return[[He,j]];var p=j.length>U.length?j:U,f=j.length>U.length?U:j,E=p.indexOf(f);if(E!==-1)return b=[[Be,p.substring(0,E)],[Re,f],[Be,p.substring(E+f.length)]],j.length>U.length&&(b[0][0]=b[2][0]=He),b;if(f.length===1)return[[He,j],[Be,U]];var m=or(j,U);if(m){var _=m[0],y=m[1],g=m[2],h=m[3],o=m[4],e=wt(_,g),t=wt(y,h);return e.concat([[Re,o]],t)}return ir(j,U)}function ir(j,U){for(var b=j.length,p=U.length,f=Math.ceil((b+p)/2),E=f,m=2*f,_=new Array(m),y=new Array(m),g=0;g<m;g++)_[g]=-1,y[g]=-1;_[E+1]=0,y[E+1]=0;for(var h=b-p,o=h%2!==0,e=0,t=0,a=0,l=0,s=0;s<f;s++){for(var r=-s+e;r<=s-t;r+=2){var i=E+r,c;r===-s||r!==s&&_[i-1]<_[i+1]?c=_[i+1]:c=_[i-1]+1;for(var n=c-r;c<b&&n<p&&j.charAt(c)===U.charAt(n);)c++,n++;if(_[i]=c,c>b)t+=2;else if(n>p)e+=2;else if(o){var d=E+h-r;if(d>=0&&d<m&&y[d]!==-1){var k=b-y[d];if(c>=k)return Fn(j,U,c,n)}}}for(var w=-s+a;w<=s-l;w+=2){var d=E+w,k;w===-s||w!==s&&y[d-1]<y[d+1]?k=y[d+1]:k=y[d-1]+1;for(var T=k-w;k<b&&T<p&&j.charAt(b-k-1)===U.charAt(p-T-1);)k++,T++;if(y[d]=k,k>b)l+=2;else if(T>p)a+=2;else if(!o){var i=E+h-w;if(i>=0&&i<m&&_[i]!==-1){var c=_[i],n=E+c-i;if(k=b-k,c>=k)return Fn(j,U,c,n)}}}}return[[He,j],[Be,U]]}function Fn(j,U,b,p){var f=j.substring(0,b),E=U.substring(0,p),m=j.substring(b),_=U.substring(p),y=wt(f,E),g=wt(m,_);return y.concat(g)}function Mn(j,U){if(!j||!U||j.charAt(0)!==U.charAt(0))return 0;for(var b=0,p=Math.min(j.length,U.length),f=p,E=0;b<f;)j.substring(E,f)==U.substring(E,f)?(b=f,E=b):p=f,f=Math.floor((p-b)/2+b);return Gn(j.charCodeAt(f-1))&&f--,f}function Dn(j,U){if(!j||!U||j.slice(-1)!==U.slice(-1))return 0;for(var b=0,p=Math.min(j.length,U.length),f=p,E=0;b<f;)j.substring(j.length-f,j.length-E)==U.substring(U.length-f,U.length-E)?(b=f,E=b):p=f,f=Math.floor((p-b)/2+b);return $n(j.charCodeAt(j.length-f))&&f--,f}function or(j,U){var b=j.length>U.length?j:U,p=j.length>U.length?U:j;if(b.length<4||p.length*2<b.length)return null;function f(t,a,l){for(var s=t.substring(l,l+Math.floor(t.length/4)),r=-1,i="",c,n,d,k;(r=a.indexOf(s,r+1))!==-1;){var w=Mn(t.substring(l),a.substring(r)),T=Dn(t.substring(0,l),a.substring(0,r));i.length<T+w&&(i=a.substring(r-T,r)+a.substring(r,r+w),c=t.substring(0,l-T),n=t.substring(l+w),d=a.substring(0,r-T),k=a.substring(r+w))}return i.length*2>=t.length?[c,n,d,k,i]:null}var E=f(b,p,Math.ceil(b.length/4)),m=f(b,p,Math.ceil(b.length/2)),_;if(!E&&!m)return null;m?E?_=E[4].length>m[4].length?E:m:_=m:_=E;var y,g,h,o;j.length>U.length?(y=_[0],g=_[1],h=_[2],o=_[3]):(h=_[0],o=_[1],y=_[2],g=_[3]);var e=_[4];return[y,g,h,o,e]}function Vn(j,U){j.push([Re,""]);for(var b=0,p=0,f=0,E="",m="",_;b<j.length;){if(b<j.length-1&&!j[b][1]){j.splice(b,1);continue}switch(j[b][0]){case Be:f++,m+=j[b][1],b++;break;case He:p++,E+=j[b][1],b++;break;case Re:var y=b-f-p-1;if(U){if(y>=0&&Wn(j[y][1])){var g=j[y][1].slice(-1);if(j[y][1]=j[y][1].slice(0,-1),E=g+E,m=g+m,!j[y][1]){j.splice(y,1),b--;var h=y-1;j[h]&&j[h][0]===Be&&(f++,m=j[h][1]+m,h--),j[h]&&j[h][0]===He&&(p++,E=j[h][1]+E,h--),y=h}}if(Zn(j[b][1])){var g=j[b][1].charAt(0);j[b][1]=j[b][1].slice(1),E+=g,m+=g}}if(b<j.length-1&&!j[b][1]){j.splice(b,1);break}if(E.length>0||m.length>0){E.length>0&&m.length>0&&(_=Mn(m,E),_!==0&&(y>=0?j[y][1]+=m.substring(0,_):(j.splice(0,0,[Re,m.substring(0,_)]),b++),m=m.substring(_),E=E.substring(_)),_=Dn(m,E),_!==0&&(j[b][1]=m.substring(m.length-_)+j[b][1],m=m.substring(0,m.length-_),E=E.substring(0,E.length-_)));var o=f+p;E.length===0&&m.length===0?(j.splice(b-o,o),b=b-o):E.length===0?(j.splice(b-o,o,[Be,m]),b=b-o+1):m.length===0?(j.splice(b-o,o,[He,E]),b=b-o+1):(j.splice(b-o,o,[He,E],[Be,m]),b=b-o+2)}b!==0&&j[b-1][0]===Re?(j[b-1][1]+=j[b][1],j.splice(b,1)):b++,f=0,p=0,E="",m="";break}}j[j.length-1][1]===""&&j.pop();var e=!1;for(b=1;b<j.length-1;)j[b-1][0]===Re&&j[b+1][0]===Re&&(j[b][1].substring(j[b][1].length-j[b-1][1].length)===j[b-1][1]?(j[b][1]=j[b-1][1]+j[b][1].substring(0,j[b][1].length-j[b-1][1].length),j[b+1][1]=j[b-1][1]+j[b+1][1],j.splice(b-1,1),e=!0):j[b][1].substring(0,j[b+1][1].length)==j[b+1][1]&&(j[b-1][1]+=j[b+1][1],j[b][1]=j[b][1].substring(j[b+1][1].length)+j[b+1][1],j.splice(b+1,1),e=!0)),b++;e&&Vn(j,U)}function Gn(j){return j>=55296&&j<=56319}function $n(j){return j>=56320&&j<=57343}function Zn(j){return $n(j.charCodeAt(0))}function Wn(j){return Gn(j.charCodeAt(j.length-1))}function ar(j){for(var U=[],b=0;b<j.length;b++)j[b][1].length>0&&U.push(j[b]);return U}function jn(j,U,b,p){return Wn(j)||Zn(p)?null:ar([[Re,j],[He,U],[Be,b],[Re,p]])}function lr(j,U,b){var p=typeof b=="number"?{index:b,length:0}:b.oldRange,f=typeof b=="number"?null:b.newRange,E=j.length,m=U.length;if(p.length===0&&(f===null||f.length===0)){var _=p.index,y=j.slice(0,_),g=j.slice(_),h=f?f.index:null;e:{var o=_+m-E;if(h!==null&&h!==o||o<0||o>m)break e;var e=U.slice(0,o),t=U.slice(o);if(t!==g)break e;var a=Math.min(_,o),l=y.slice(0,a),s=e.slice(0,a);if(l!==s)break e;var r=y.slice(a),i=e.slice(a);return jn(l,r,i,g)}e:{if(h!==null&&h!==_)break e;var c=_,e=U.slice(0,c),t=U.slice(c);if(e!==y)break e;var n=Math.min(E-c,m-c),d=g.slice(g.length-n),k=t.slice(t.length-n);if(d!==k)break e;var r=g.slice(0,g.length-n),i=t.slice(0,t.length-n);return jn(y,r,i,d)}}if(p.length>0&&f&&f.length===0)e:{var l=j.slice(0,p.index),d=j.slice(p.index+p.length),a=l.length,n=d.length;if(m<a+n)break e;var s=U.slice(0,a),k=U.slice(m-n);if(l!==s||d!==k)break e;var r=j.slice(a,E-n),i=U.slice(a,m-n);return jn(l,r,i,d)}return null}function Gt(j,U,b){return wt(j,U,b,!0)}Gt.INSERT=Be;Gt.DELETE=He;Gt.EQUAL=Re;var ur=Gt,Kt={exports:{}};Kt.exports;(function(j,U){var b=200,p="__lodash_hash_undefined__",f=9007199254740991,E="[object Arguments]",m="[object Array]",_="[object Boolean]",y="[object Date]",g="[object Error]",h="[object Function]",o="[object GeneratorFunction]",e="[object Map]",t="[object Number]",a="[object Object]",l="[object Promise]",s="[object RegExp]",r="[object Set]",i="[object String]",c="[object Symbol]",n="[object WeakMap]",d="[object ArrayBuffer]",k="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",P="[object Int8Array]",A="[object Int16Array]",v="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",L="[object Uint16Array]",D="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,V=/\w*$/,J=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,R={};R[E]=R[m]=R[d]=R[k]=R[_]=R[y]=R[w]=R[T]=R[P]=R[A]=R[v]=R[e]=R[t]=R[a]=R[s]=R[r]=R[i]=R[c]=R[O]=R[N]=R[L]=R[D]=!0,R[g]=R[h]=R[n]=!1;var S=typeof Ee.commonjsGlobal=="object"&&Ee.commonjsGlobal&&Ee.commonjsGlobal.Object===Object&&Ee.commonjsGlobal,I=typeof self=="object"&&self&&self.Object===Object&&self,M=S||I||Function("return this")(),K=U&&!U.nodeType&&U,C=K&&!0&&j&&!j.nodeType&&j,q=C&&C.exports===K;function F(u,x){return u.set(x[0],x[1]),u}function G(u,x){return u.add(x),u}function $(u,x){for(var B=-1,Z=u?u.length:0;++B<Z&&x(u[B],B,u)!==!1;);return u}function X(u,x){for(var B=-1,Z=x.length,se=u.length;++B<Z;)u[se+B]=x[B];return u}function re(u,x,B,Z){var se=-1,ie=u?u.length:0;for(Z&&ie&&(B=u[++se]);++se<ie;)B=x(B,u[se],se,u);return B}function oe(u,x){for(var B=-1,Z=Array(u);++B<u;)Z[B]=x(B);return Z}function le(u,x){return u?.[x]}function ce(u){var x=!1;if(u!=null&&typeof u.toString!="function")try{x=!!(u+"")}catch{}return x}function de(u){var x=-1,B=Array(u.size);return u.forEach(function(Z,se){B[++x]=[se,Z]}),B}function be(u,x){return function(B){return u(x(B))}}function me(u){var x=-1,B=Array(u.size);return u.forEach(function(Z){B[++x]=Z}),B}var W=Array.prototype,Y=Function.prototype,te=Object.prototype,ne=M["__core-js_shared__"],Q=function(){var u=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),fe=Y.toString,ae=te.hasOwnProperty,ue=te.toString,Ne=RegExp("^"+fe.call(ae).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=q?M.Buffer:void 0,ye=M.Symbol,We=M.Uint8Array,ve=be(Object.getPrototypeOf,Object),Ie=Object.create,kt=te.propertyIsEnumerable,$t=W.splice,ft=Object.getOwnPropertySymbols,nt=Ae?Ae.isBuffer:void 0,Nt=be(Object.keys,Object),rt=De(M,"DataView"),Ye=De(M,"Map"),Me=De(M,"Promise"),it=De(M,"Set"),ct=De(M,"WeakMap"),Xe=De(Object,"create"),ht=Le(rt),Qe=Le(Ye),dt=Le(Me),vt=Le(it),pt=Le(ct),$e=ye?ye.prototype:void 0,St=$e?$e.valueOf:void 0;function ze(u){var x=-1,B=u?u.length:0;for(this.clear();++x<B;){var Z=u[x];this.set(Z[0],Z[1])}}function Zt(){this.__data__=Xe?Xe(null):{}}function Wt(u){return this.has(u)&&delete this.__data__[u]}function Yt(u){var x=this.__data__;if(Xe){var B=x[u];return B===p?void 0:B}return ae.call(x,u)?x[u]:void 0}function xt(u){var x=this.__data__;return Xe?x[u]!==void 0:ae.call(x,u)}function yt(u,x){var B=this.__data__;return B[u]=Xe&&x===void 0?p:x,this}ze.prototype.clear=Zt,ze.prototype.delete=Wt,ze.prototype.get=Yt,ze.prototype.has=xt,ze.prototype.set=yt;function we(u){var x=-1,B=u?u.length:0;for(this.clear();++x<B;){var Z=u[x];this.set(Z[0],Z[1])}}function Xt(){this.__data__=[]}function Qt(u){var x=this.__data__,B=at(x,u);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():$t.call(x,B,1),!0}function Jt(u){var x=this.__data__,B=at(x,u);return B<0?void 0:x[B][1]}function en(u){return at(this.__data__,u)>-1}function tn(u,x){var B=this.__data__,Z=at(B,u);return Z<0?B.push([u,x]):B[Z][1]=x,this}we.prototype.clear=Xt,we.prototype.delete=Qt,we.prototype.get=Jt,we.prototype.has=en,we.prototype.set=tn;function Se(u){var x=-1,B=u?u.length:0;for(this.clear();++x<B;){var Z=u[x];this.set(Z[0],Z[1])}}function nn(){this.__data__={hash:new ze,map:new(Ye||we),string:new ze}}function rn(u){return et(this,u).delete(u)}function on(u){return et(this,u).get(u)}function an(u){return et(this,u).has(u)}function ln(u,x){return et(this,u).set(u,x),this}Se.prototype.clear=nn,Se.prototype.delete=rn,Se.prototype.get=on,Se.prototype.has=an,Se.prototype.set=ln;function qe(u){this.__data__=new we(u)}function un(){this.__data__=new we}function sn(u){return this.__data__.delete(u)}function fn(u){return this.__data__.get(u)}function cn(u){return this.__data__.has(u)}function hn(u,x){var B=this.__data__;if(B instanceof we){var Z=B.__data__;if(!Ye||Z.length<b-1)return Z.push([u,x]),this;B=this.__data__=new Se(Z)}return B.set(u,x),this}qe.prototype.clear=un,qe.prototype.delete=sn,qe.prototype.get=fn,qe.prototype.has=cn,qe.prototype.set=hn;function ot(u,x){var B=_t(u)||ut(u)?oe(u.length,String):[],Z=B.length,se=!!Z;for(var ie in u)(x||ae.call(u,ie))&&!(se&&(ie=="length"||kn(ie,Z)))&&B.push(ie);return B}function Pt(u,x,B){var Z=u[x];(!(ae.call(u,x)&&It(Z,B))||B===void 0&&!(x in u))&&(u[x]=B)}function at(u,x){for(var B=u.length;B--;)if(It(u[B][0],x))return B;return-1}function Ce(u,x){return u&&bt(x,Et(x),u)}function gt(u,x,B,Z,se,ie,he){var pe;if(Z&&(pe=ie?Z(u,se,ie,he):Z(u)),pe!==void 0)return pe;if(!Ue(u))return u;var _e=_t(u);if(_e){if(pe=wn(u),!x)return On(u,pe)}else{var ge=Ve(u),xe=ge==h||ge==o;if(Mt(u))return lt(u,x);if(ge==a||ge==E||xe&&!ie){if(ce(u))return ie?u:{};if(pe=Fe(xe?{}:u),!x)return En(u,Ce(pe,u))}else{if(!R[ge])return ie?u:{};pe=Tn(u,ge,gt,x)}}he||(he=new qe);var je=he.get(u);if(je)return je;if(he.set(u,pe),!_e)var Oe=B?An(u):Et(u);return $(Oe||u,function(Pe,Te){Oe&&(Te=Pe,Pe=u[Te]),Pt(pe,Te,gt(Pe,x,B,Z,Te,u,he))}),pe}function dn(u){return Ue(u)?Ie(u):{}}function vn(u,x,B){var Z=x(u);return _t(u)?Z:X(Z,B(u))}function pn(u){return ue.call(u)}function yn(u){if(!Ue(u)||Sn(u))return!1;var x=Ot(u)||ce(u)?Ne:J;return x.test(Le(u))}function gn(u){if(!jt(u))return Nt(u);var x=[];for(var B in Object(u))ae.call(u,B)&&B!="constructor"&&x.push(B);return x}function lt(u,x){if(x)return u.slice();var B=new u.constructor(u.length);return u.copy(B),B}function mt(u){var x=new u.constructor(u.byteLength);return new We(x).set(new We(u)),x}function Je(u,x){var B=x?mt(u.buffer):u.buffer;return new u.constructor(B,u.byteOffset,u.byteLength)}function Lt(u,x,B){var Z=x?B(de(u),!0):de(u);return re(Z,F,new u.constructor)}function qt(u){var x=new u.constructor(u.source,V.exec(u));return x.lastIndex=u.lastIndex,x}function mn(u,x,B){var Z=x?B(me(u),!0):me(u);return re(Z,G,new u.constructor)}function bn(u){return St?Object(St.call(u)):{}}function _n(u,x){var B=x?mt(u.buffer):u.buffer;return new u.constructor(B,u.byteOffset,u.length)}function On(u,x){var B=-1,Z=u.length;for(x||(x=Array(Z));++B<Z;)x[B]=u[B];return x}function bt(u,x,B,Z){B||(B={});for(var se=-1,ie=x.length;++se<ie;){var he=x[se],pe=Z?Z(B[he],u[he],he,B,u):void 0;Pt(B,he,pe===void 0?u[he]:pe)}return B}function En(u,x){return bt(u,Ke(u),x)}function An(u){return vn(u,Et,Ke)}function et(u,x){var B=u.__data__;return Nn(x)?B[typeof x=="string"?"string":"hash"]:B.map}function De(u,x){var B=le(u,x);return yn(B)?B:void 0}var Ke=ft?be(ft,Object):Pn,Ve=pn;(rt&&Ve(new rt(new ArrayBuffer(1)))!=k||Ye&&Ve(new Ye)!=e||Me&&Ve(Me.resolve())!=l||it&&Ve(new it)!=r||ct&&Ve(new ct)!=n)&&(Ve=function(u){var x=ue.call(u),B=x==a?u.constructor:void 0,Z=B?Le(B):void 0;if(Z)switch(Z){case ht:return k;case Qe:return e;case dt:return l;case vt:return r;case pt:return n}return x});function wn(u){var x=u.length,B=u.constructor(x);return x&&typeof u[0]=="string"&&ae.call(u,"index")&&(B.index=u.index,B.input=u.input),B}function Fe(u){return typeof u.constructor=="function"&&!jt(u)?dn(ve(u)):{}}function Tn(u,x,B,Z){var se=u.constructor;switch(x){case d:return mt(u);case _:case y:return new se(+u);case k:return Je(u,Z);case w:case T:case P:case A:case v:case O:case N:case L:case D:return _n(u,Z);case e:return Lt(u,Z,B);case t:case i:return new se(u);case s:return qt(u);case r:return mn(u,Z,B);case c:return bn(u)}}function kn(u,x){return x=x??f,!!x&&(typeof u=="number"||H.test(u))&&u>-1&&u%1==0&&u<x}function Nn(u){var x=typeof u;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?u!=="__proto__":u===null}function Sn(u){return!!Q&&Q in u}function jt(u){var x=u&&u.constructor,B=typeof x=="function"&&x.prototype||te;return u===B}function Le(u){if(u!=null){try{return fe.call(u)}catch{}try{return u+""}catch{}}return""}function Rt(u){return gt(u,!0,!0)}function It(u,x){return u===x||u!==u&&x!==x}function ut(u){return xn(u)&&ae.call(u,"callee")&&(!kt.call(u,"callee")||ue.call(u)==E)}var _t=Array.isArray;function st(u){return u!=null&&Dt(u.length)&&!Ot(u)}function xn(u){return Bt(u)&&st(u)}var Mt=nt||Ln;function Ot(u){var x=Ue(u)?ue.call(u):"";return x==h||x==o}function Dt(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=f}function Ue(u){var x=typeof u;return!!u&&(x=="object"||x=="function")}function Bt(u){return!!u&&typeof u=="object"}function Et(u){return st(u)?ot(u):gn(u)}function Pn(){return[]}function Ln(){return!1}j.exports=Rt})(Kt,Kt.exports);var Yn=Kt.exports,Vt={exports:{}};Vt.exports;(function(j,U){var b=200,p="__lodash_hash_undefined__",f=1,E=2,m=9007199254740991,_="[object Arguments]",y="[object Array]",g="[object AsyncFunction]",h="[object Boolean]",o="[object Date]",e="[object Error]",t="[object Function]",a="[object GeneratorFunction]",l="[object Map]",s="[object Number]",r="[object Null]",i="[object Object]",c="[object Promise]",n="[object Proxy]",d="[object RegExp]",k="[object Set]",w="[object String]",T="[object Symbol]",P="[object Undefined]",A="[object WeakMap]",v="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",L="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",V="[object Int32Array]",J="[object Uint8Array]",H="[object Uint8ClampedArray]",R="[object Uint16Array]",S="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,C={};C[N]=C[L]=C[D]=C[z]=C[V]=C[J]=C[H]=C[R]=C[S]=!0,C[_]=C[y]=C[v]=C[h]=C[O]=C[o]=C[e]=C[t]=C[l]=C[s]=C[i]=C[d]=C[k]=C[w]=C[A]=!1;var q=typeof Ee.commonjsGlobal=="object"&&Ee.commonjsGlobal&&Ee.commonjsGlobal.Object===Object&&Ee.commonjsGlobal,F=typeof self=="object"&&self&&self.Object===Object&&self,G=q||F||Function("return this")(),$=U&&!U.nodeType&&U,X=$&&!0&&j&&!j.nodeType&&j,re=X&&X.exports===$,oe=re&&q.process,le=function(){try{return oe&&oe.binding&&oe.binding("util")}catch{}}(),ce=le&&le.isTypedArray;function de(u,x){for(var B=-1,Z=u==null?0:u.length,se=0,ie=[];++B<Z;){var he=u[B];x(he,B,u)&&(ie[se++]=he)}return ie}function be(u,x){for(var B=-1,Z=x.length,se=u.length;++B<Z;)u[se+B]=x[B];return u}function me(u,x){for(var B=-1,Z=u==null?0:u.length;++B<Z;)if(x(u[B],B,u))return!0;return!1}function W(u,x){for(var B=-1,Z=Array(u);++B<u;)Z[B]=x(B);return Z}function Y(u){return function(x){return u(x)}}function te(u,x){return u.has(x)}function ne(u,x){return u?.[x]}function Q(u){var x=-1,B=Array(u.size);return u.forEach(function(Z,se){B[++x]=[se,Z]}),B}function fe(u,x){return function(B){return u(x(B))}}function ae(u){var x=-1,B=Array(u.size);return u.forEach(function(Z){B[++x]=Z}),B}var ue=Array.prototype,Ne=Function.prototype,Ae=Object.prototype,ye=G["__core-js_shared__"],We=Ne.toString,ve=Ae.hasOwnProperty,Ie=function(){var u=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),kt=Ae.toString,$t=RegExp("^"+We.call(ve).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=re?G.Buffer:void 0,nt=G.Symbol,Nt=G.Uint8Array,rt=Ae.propertyIsEnumerable,Ye=ue.splice,Me=nt?nt.toStringTag:void 0,it=Object.getOwnPropertySymbols,ct=ft?ft.isBuffer:void 0,Xe=fe(Object.keys,Object),ht=Ke(G,"DataView"),Qe=Ke(G,"Map"),dt=Ke(G,"Promise"),vt=Ke(G,"Set"),pt=Ke(G,"WeakMap"),$e=Ke(Object,"create"),St=Le(ht),ze=Le(Qe),Zt=Le(dt),Wt=Le(vt),Yt=Le(pt),xt=nt?nt.prototype:void 0,yt=xt?xt.valueOf:void 0;function we(u){var x=-1,B=u==null?0:u.length;for(this.clear();++x<B;){var Z=u[x];this.set(Z[0],Z[1])}}function Xt(){this.__data__=$e?$e(null):{},this.size=0}function Qt(u){var x=this.has(u)&&delete this.__data__[u];return this.size-=x?1:0,x}function Jt(u){var x=this.__data__;if($e){var B=x[u];return B===p?void 0:B}return ve.call(x,u)?x[u]:void 0}function en(u){var x=this.__data__;return $e?x[u]!==void 0:ve.call(x,u)}function tn(u,x){var B=this.__data__;return this.size+=this.has(u)?0:1,B[u]=$e&&x===void 0?p:x,this}we.prototype.clear=Xt,we.prototype.delete=Qt,we.prototype.get=Jt,we.prototype.has=en,we.prototype.set=tn;function Se(u){var x=-1,B=u==null?0:u.length;for(this.clear();++x<B;){var Z=u[x];this.set(Z[0],Z[1])}}function nn(){this.__data__=[],this.size=0}function rn(u){var x=this.__data__,B=lt(x,u);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():Ye.call(x,B,1),--this.size,!0}function on(u){var x=this.__data__,B=lt(x,u);return B<0?void 0:x[B][1]}function an(u){return lt(this.__data__,u)>-1}function ln(u,x){var B=this.__data__,Z=lt(B,u);return Z<0?(++this.size,B.push([u,x])):B[Z][1]=x,this}Se.prototype.clear=nn,Se.prototype.delete=rn,Se.prototype.get=on,Se.prototype.has=an,Se.prototype.set=ln;function qe(u){var x=-1,B=u==null?0:u.length;for(this.clear();++x<B;){var Z=u[x];this.set(Z[0],Z[1])}}function un(){this.size=0,this.__data__={hash:new we,map:new(Qe||Se),string:new we}}function sn(u){var x=De(this,u).delete(u);return this.size-=x?1:0,x}function fn(u){return De(this,u).get(u)}function cn(u){return De(this,u).has(u)}function hn(u,x){var B=De(this,u),Z=B.size;return B.set(u,x),this.size+=B.size==Z?0:1,this}qe.prototype.clear=un,qe.prototype.delete=sn,qe.prototype.get=fn,qe.prototype.has=cn,qe.prototype.set=hn;function ot(u){var x=-1,B=u==null?0:u.length;for(this.__data__=new qe;++x<B;)this.add(u[x])}function Pt(u){return this.__data__.set(u,p),this}function at(u){return this.__data__.has(u)}ot.prototype.add=ot.prototype.push=Pt,ot.prototype.has=at;function Ce(u){var x=this.__data__=new Se(u);this.size=x.size}function gt(){this.__data__=new Se,this.size=0}function dn(u){var x=this.__data__,B=x.delete(u);return this.size=x.size,B}function vn(u){return this.__data__.get(u)}function pn(u){return this.__data__.has(u)}function yn(u,x){var B=this.__data__;if(B instanceof Se){var Z=B.__data__;if(!Qe||Z.length<b-1)return Z.push([u,x]),this.size=++B.size,this;B=this.__data__=new qe(Z)}return B.set(u,x),this.size=B.size,this}Ce.prototype.clear=gt,Ce.prototype.delete=dn,Ce.prototype.get=vn,Ce.prototype.has=pn,Ce.prototype.set=yn;function gn(u,x){var B=ut(u),Z=!B&&It(u),se=!B&&!Z&&st(u),ie=!B&&!Z&&!se&&Bt(u),he=B||Z||se||ie,pe=he?W(u.length,String):[],_e=pe.length;for(var ge in u)(x||ve.call(u,ge))&&!(he&&(ge=="length"||se&&(ge=="offset"||ge=="parent")||ie&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Tn(ge,_e)))&&pe.push(ge);return pe}function lt(u,x){for(var B=u.length;B--;)if(Rt(u[B][0],x))return B;return-1}function mt(u,x,B){var Z=x(u);return ut(u)?Z:be(Z,B(u))}function Je(u){return u==null?u===void 0?P:r:Me&&Me in Object(u)?Ve(u):jt(u)}function Lt(u){return Ue(u)&&Je(u)==_}function qt(u,x,B,Z,se){return u===x?!0:u==null||x==null||!Ue(u)&&!Ue(x)?u!==u&&x!==x:mn(u,x,B,Z,qt,se)}function mn(u,x,B,Z,se,ie){var he=ut(u),pe=ut(x),_e=he?y:Fe(u),ge=pe?y:Fe(x);_e=_e==_?i:_e,ge=ge==_?i:ge;var xe=_e==i,je=ge==i,Oe=_e==ge;if(Oe&&st(u)){if(!st(x))return!1;he=!0,xe=!1}if(Oe&&!xe)return ie||(ie=new Ce),he||Bt(u)?bt(u,x,B,Z,se,ie):En(u,x,_e,B,Z,se,ie);if(!(B&f)){var Pe=xe&&ve.call(u,"__wrapped__"),Te=je&&ve.call(x,"__wrapped__");if(Pe||Te){var Ze=Pe?u.value():u,Ge=Te?x.value():x;return ie||(ie=new Ce),se(Ze,Ge,B,Z,ie)}}return Oe?(ie||(ie=new Ce),An(u,x,B,Z,se,ie)):!1}function bn(u){if(!Dt(u)||Nn(u))return!1;var x=Mt(u)?$t:M;return x.test(Le(u))}function _n(u){return Ue(u)&&Ot(u.length)&&!!C[Je(u)]}function On(u){if(!Sn(u))return Xe(u);var x=[];for(var B in Object(u))ve.call(u,B)&&B!="constructor"&&x.push(B);return x}function bt(u,x,B,Z,se,ie){var he=B&f,pe=u.length,_e=x.length;if(pe!=_e&&!(he&&_e>pe))return!1;var ge=ie.get(u);if(ge&&ie.get(x))return ge==x;var xe=-1,je=!0,Oe=B&E?new ot:void 0;for(ie.set(u,x),ie.set(x,u);++xe<pe;){var Pe=u[xe],Te=x[xe];if(Z)var Ze=he?Z(Te,Pe,xe,x,u,ie):Z(Pe,Te,xe,u,x,ie);if(Ze!==void 0){if(Ze)continue;je=!1;break}if(Oe){if(!me(x,function(Ge,tt){if(!te(Oe,tt)&&(Pe===Ge||se(Pe,Ge,B,Z,ie)))return Oe.push(tt)})){je=!1;break}}else if(!(Pe===Te||se(Pe,Te,B,Z,ie))){je=!1;break}}return ie.delete(u),ie.delete(x),je}function En(u,x,B,Z,se,ie,he){switch(B){case O:if(u.byteLength!=x.byteLength||u.byteOffset!=x.byteOffset)return!1;u=u.buffer,x=x.buffer;case v:return!(u.byteLength!=x.byteLength||!ie(new Nt(u),new Nt(x)));case h:case o:case s:return Rt(+u,+x);case e:return u.name==x.name&&u.message==x.message;case d:case w:return u==x+"";case l:var pe=Q;case k:var _e=Z&f;if(pe||(pe=ae),u.size!=x.size&&!_e)return!1;var ge=he.get(u);if(ge)return ge==x;Z|=E,he.set(u,x);var xe=bt(pe(u),pe(x),Z,se,ie,he);return he.delete(u),xe;case T:if(yt)return yt.call(u)==yt.call(x)}return!1}function An(u,x,B,Z,se,ie){var he=B&f,pe=et(u),_e=pe.length,ge=et(x),xe=ge.length;if(_e!=xe&&!he)return!1;for(var je=_e;je--;){var Oe=pe[je];if(!(he?Oe in x:ve.call(x,Oe)))return!1}var Pe=ie.get(u);if(Pe&&ie.get(x))return Pe==x;var Te=!0;ie.set(u,x),ie.set(x,u);for(var Ze=he;++je<_e;){Oe=pe[je];var Ge=u[Oe],tt=x[Oe];if(Z)var Cn=he?Z(tt,Ge,Oe,x,u,ie):Z(Ge,tt,Oe,u,x,ie);if(!(Cn===void 0?Ge===tt||se(Ge,tt,B,Z,ie):Cn)){Te=!1;break}Ze||(Ze=Oe=="constructor")}if(Te&&!Ze){var Ct=u.constructor,Ft=x.constructor;Ct!=Ft&&"constructor"in u&&"constructor"in x&&!(typeof Ct=="function"&&Ct instanceof Ct&&typeof Ft=="function"&&Ft instanceof Ft)&&(Te=!1)}return ie.delete(u),ie.delete(x),Te}function et(u){return mt(u,Et,wn)}function De(u,x){var B=u.__data__;return kn(x)?B[typeof x=="string"?"string":"hash"]:B.map}function Ke(u,x){var B=ne(u,x);return bn(B)?B:void 0}function Ve(u){var x=ve.call(u,Me),B=u[Me];try{u[Me]=void 0;var Z=!0}catch{}var se=kt.call(u);return Z&&(x?u[Me]=B:delete u[Me]),se}var wn=it?function(u){return u==null?[]:(u=Object(u),de(it(u),function(x){return rt.call(u,x)}))}:Pn,Fe=Je;(ht&&Fe(new ht(new ArrayBuffer(1)))!=O||Qe&&Fe(new Qe)!=l||dt&&Fe(dt.resolve())!=c||vt&&Fe(new vt)!=k||pt&&Fe(new pt)!=A)&&(Fe=function(u){var x=Je(u),B=x==i?u.constructor:void 0,Z=B?Le(B):"";if(Z)switch(Z){case St:return O;case ze:return l;case Zt:return c;case Wt:return k;case Yt:return A}return x});function Tn(u,x){return x=x??m,!!x&&(typeof u=="number"||K.test(u))&&u>-1&&u%1==0&&u<x}function kn(u){var x=typeof u;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?u!=="__proto__":u===null}function Nn(u){return!!Ie&&Ie in u}function Sn(u){var x=u&&u.constructor,B=typeof x=="function"&&x.prototype||Ae;return u===B}function jt(u){return kt.call(u)}function Le(u){if(u!=null){try{return We.call(u)}catch{}try{return u+""}catch{}}return""}function Rt(u,x){return u===x||u!==u&&x!==x}var It=Lt(function(){return arguments}())?Lt:function(u){return Ue(u)&&ve.call(u,"callee")&&!rt.call(u,"callee")},ut=Array.isArray;function _t(u){return u!=null&&Ot(u.length)&&!Mt(u)}var st=ct||Ln;function xn(u,x){return qt(u,x)}function Mt(u){if(!Dt(u))return!1;var x=Je(u);return x==t||x==a||x==g||x==n}function Ot(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=m}function Dt(u){var x=typeof u;return u!=null&&(x=="object"||x=="function")}function Ue(u){return u!=null&&typeof u=="object"}var Bt=ce?Y(ce):_n;function Et(u){return _t(u)?gn(u):On(u)}function Pn(){return[]}function Ln(){return!1}j.exports=xn})(Vt,Vt.exports);var Xn=Vt.exports,Bn={},Qn=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(Bn,"__esModule",{value:!0});var sr=Qn(Yn),fr=Qn(Xn),In;(function(j){function U(E,m,_){E===void 0&&(E={}),m===void 0&&(m={}),typeof E!="object"&&(E={}),typeof m!="object"&&(m={});var y=sr.default(m);_||(y=Object.keys(y).reduce(function(h,o){return y[o]!=null&&(h[o]=y[o]),h},{}));for(var g in E)E[g]!==void 0&&m[g]===void 0&&(y[g]=E[g]);return Object.keys(y).length>0?y:void 0}j.compose=U;function b(E,m){E===void 0&&(E={}),m===void 0&&(m={}),typeof E!="object"&&(E={}),typeof m!="object"&&(m={});var _=Object.keys(E).concat(Object.keys(m)).reduce(function(y,g){return fr.default(E[g],m[g])||(y[g]=m[g]===void 0?null:m[g]),y},{});return Object.keys(_).length>0?_:void 0}j.diff=b;function p(E,m){E===void 0&&(E={}),m===void 0&&(m={}),E=E||{};var _=Object.keys(m).reduce(function(y,g){return m[g]!==E[g]&&E[g]!==void 0&&(y[g]=m[g]),y},{});return Object.keys(E).reduce(function(y,g){return E[g]!==m[g]&&m[g]===void 0&&(y[g]=null),y},_)}j.invert=p;function f(E,m,_){if(_===void 0&&(_=!1),typeof E!="object")return m;if(typeof m=="object"){if(!_)return m;var y=Object.keys(m).reduce(function(g,h){return E[h]===void 0&&(g[h]=m[h]),g},{});return Object.keys(y).length>0?y:void 0}}j.transform=f})(In||(In={}));Bn.default=In;var Ut={},Ht={},Un;function cr(){if(Un)return Ht;Un=1;var j=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ht,"__esModule",{value:!0});var U=j(Jn()),b=function(){function p(f){this.ops=f,this.index=0,this.offset=0}return p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(f){f||(f=1/0);var E=this.ops[this.index];if(E){var m=this.offset,_=U.default.length(E);if(f>=_-m?(f=_-m,this.index+=1,this.offset=0):this.offset+=f,typeof E.delete=="number")return{delete:f};var y={};return E.attributes&&(y.attributes=E.attributes),typeof E.retain=="number"?y.retain=f:typeof E.insert=="string"?y.insert=E.insert.substr(m,f):y.insert=E.insert,y}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?U.default.length(this.ops[this.index])-this.offset:1/0},p.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"},p.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var f=this.offset,E=this.index,m=this.next(),_=this.ops.slice(this.index);return this.offset=f,this.index=E,[m].concat(_)}else return[]},p}();return Ht.default=b,Ht}var Hn;function Jn(){if(Hn)return Ut;Hn=1;var j=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ut,"__esModule",{value:!0});var U=j(cr()),b;return function(p){function f(m){return new U.default(m)}p.iterator=f;function E(m){return typeof m.delete=="number"?m.delete:typeof m.retain=="number"?m.retain:typeof m.insert=="string"?m.insert.length:1}p.length=E}(b||(b={})),Ut.default=b,Ut}var Tt=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(j){return j&&j.__esModule?j:{default:j}},zt=Tt(ur),hr=Tt(Yn),Rn=Tt(Xn),At=Tt(Bn),ke=Tt(Jn()),dr=String.fromCharCode(0),vr=function(){function j(U){Array.isArray(U)?this.ops=U:U!=null&&Array.isArray(U.ops)?this.ops=U.ops:this.ops=[]}return j.prototype.insert=function(U,b){var p={};return typeof U=="string"&&U.length===0?this:(p.insert=U,b!=null&&typeof b=="object"&&Object.keys(b).length>0&&(p.attributes=b),this.push(p))},j.prototype.delete=function(U){return U<=0?this:this.push({delete:U})},j.prototype.retain=function(U,b){if(U<=0)return this;var p={retain:U};return b!=null&&typeof b=="object"&&Object.keys(b).length>0&&(p.attributes=b),this.push(p)},j.prototype.push=function(U){var b=this.ops.length,p=this.ops[b-1];if(U=hr.default(U),typeof p=="object"){if(typeof U.delete=="number"&&typeof p.delete=="number")return this.ops[b-1]={delete:p.delete+U.delete},this;if(typeof p.delete=="number"&&U.insert!=null&&(b-=1,p=this.ops[b-1],typeof p!="object"))return this.ops.unshift(U),this;if(Rn.default(U.attributes,p.attributes)){if(typeof U.insert=="string"&&typeof p.insert=="string")return this.ops[b-1]={insert:p.insert+U.insert},typeof U.attributes=="object"&&(this.ops[b-1].attributes=U.attributes),this;if(typeof U.retain=="number"&&typeof p.retain=="number")return this.ops[b-1]={retain:p.retain+U.retain},typeof U.attributes=="object"&&(this.ops[b-1].attributes=U.attributes),this}}return b===this.ops.length?this.ops.push(U):this.ops.splice(b,0,U),this},j.prototype.chop=function(){var U=this.ops[this.ops.length-1];return U&&U.retain&&!U.attributes&&this.ops.pop(),this},j.prototype.filter=function(U){return this.ops.filter(U)},j.prototype.forEach=function(U){this.ops.forEach(U)},j.prototype.map=function(U){return this.ops.map(U)},j.prototype.partition=function(U){var b=[],p=[];return this.forEach(function(f){var E=U(f)?b:p;E.push(f)}),[b,p]},j.prototype.reduce=function(U,b){return this.ops.reduce(U,b)},j.prototype.changeLength=function(){return this.reduce(function(U,b){return b.insert?U+ke.default.length(b):b.delete?U-b.delete:U},0)},j.prototype.length=function(){return this.reduce(function(U,b){return U+ke.default.length(b)},0)},j.prototype.slice=function(U,b){U===void 0&&(U=0),b===void 0&&(b=1/0);for(var p=[],f=ke.default.iterator(this.ops),E=0;E<b&&f.hasNext();){var m=void 0;E<U?m=f.next(U-E):(m=f.next(b-E),p.push(m)),E+=ke.default.length(m)}return new j(p)},j.prototype.compose=function(U){var b=ke.default.iterator(this.ops),p=ke.default.iterator(U.ops),f=[],E=p.peek();if(E!=null&&typeof E.retain=="number"&&E.attributes==null){for(var m=E.retain;b.peekType()==="insert"&&b.peekLength()<=m;)m-=b.peekLength(),f.push(b.next());E.retain-m>0&&p.next(E.retain-m)}for(var _=new j(f);b.hasNext()||p.hasNext();)if(p.peekType()==="insert")_.push(p.next());else if(b.peekType()==="delete")_.push(b.next());else{var y=Math.min(b.peekLength(),p.peekLength()),g=b.next(y),h=p.next(y);if(typeof h.retain=="number"){var o={};typeof g.retain=="number"?o.retain=y:o.insert=g.insert;var e=At.default.compose(g.attributes,h.attributes,typeof g.retain=="number");if(e&&(o.attributes=e),_.push(o),!p.hasNext()&&Rn.default(_.ops[_.ops.length-1],o)){var t=new j(b.rest());return _.concat(t).chop()}}else typeof h.delete=="number"&&typeof g.retain=="number"&&_.push(h)}return _.chop()},j.prototype.concat=function(U){var b=new j(this.ops.slice());return U.ops.length>0&&(b.push(U.ops[0]),b.ops=b.ops.concat(U.ops.slice(1))),b},j.prototype.diff=function(U,b){if(this.ops===U.ops)return new j;var p=[this,U].map(function(y){return y.map(function(g){if(g.insert!=null)return typeof g.insert=="string"?g.insert:dr;var h=y===U?"on":"with";throw new Error("diff() called "+h+" non-document")}).join("")}),f=new j,E=zt.default(p[0],p[1],b),m=ke.default.iterator(this.ops),_=ke.default.iterator(U.ops);return E.forEach(function(y){for(var g=y[1].length;g>0;){var h=0;switch(y[0]){case zt.default.INSERT:h=Math.min(_.peekLength(),g),f.push(_.next(h));break;case zt.default.DELETE:h=Math.min(g,m.peekLength()),m.next(h),f.delete(h);break;case zt.default.EQUAL:h=Math.min(m.peekLength(),_.peekLength(),g);var o=m.next(h),e=_.next(h);Rn.default(o.insert,e.insert)?f.retain(h,At.default.diff(o.attributes,e.attributes)):f.push(e).delete(h);break}g-=h}}),f.chop()},j.prototype.eachLine=function(U,b){b===void 0&&(b=`
|
|
42
|
-
`);for(var p=ke.default.iterator(this.ops),f=new j,E=0;p.hasNext();){if(p.peekType()!=="insert")return;var m=p.peek(),_=ke.default.length(m)-p.peekLength(),y=typeof m.insert=="string"?m.insert.indexOf(b,_)-_:-1;if(y<0)f.push(p.next());else if(y>0)f.push(p.next(y));else{if(U(f,p.next(1).attributes||{},E)===!1)return;E+=1,f=new j}}f.length()>0&&U(f,{},E)},j.prototype.invert=function(U){var b=new j;return this.reduce(function(p,f){if(f.insert)b.delete(ke.default.length(f));else{if(f.retain&&f.attributes==null)return b.retain(f.retain),p+f.retain;if(f.delete||f.retain&&f.attributes){var E=f.delete||f.retain,m=U.slice(p,p+E);return m.forEach(function(_){f.delete?b.push(_):f.retain&&f.attributes&&b.retain(ke.default.length(_),At.default.invert(f.attributes,_.attributes))}),p+E}}return p},0),b.chop()},j.prototype.transform=function(U,b){if(b===void 0&&(b=!1),b=!!b,typeof U=="number")return this.transformPosition(U,b);for(var p=U,f=ke.default.iterator(this.ops),E=ke.default.iterator(p.ops),m=new j;f.hasNext()||E.hasNext();)if(f.peekType()==="insert"&&(b||E.peekType()!=="insert"))m.retain(ke.default.length(f.next()));else if(E.peekType()==="insert")m.push(E.next());else{var _=Math.min(f.peekLength(),E.peekLength()),y=f.next(_),g=E.next(_);if(y.delete)continue;g.delete?m.push(g):m.retain(_,At.default.transform(y.attributes,g.attributes,b))}return m.chop()},j.prototype.transformPosition=function(U,b){b===void 0&&(b=!1),b=!!b;for(var p=ke.default.iterator(this.ops),f=0;p.hasNext()&&f<=U;){var E=p.peekLength(),m=p.peekType();if(p.next(),m==="delete"){U-=Math.min(E,U-f);continue}else m==="insert"&&(f<U||!b)&&(U+=E);f+=E}return U},j.Op=ke.default,j.AttributeMap=At.default,j}(),pr=vr;const yr=Ee.getDefaultExportFromCjs(pr);/*!
|
|
43
|
-
* VueQuill @vueup/vue-quill v1.2.0
|
|
44
|
-
* https://vueup.github.io/vue-quill/
|
|
45
|
-
*
|
|
46
|
-
* Includes quill v1.3.7
|
|
47
|
-
* https://quilljs.com/
|
|
48
|
-
*
|
|
49
|
-
* Copyright (c) 2023 Ahmad Luthfi Masruri
|
|
50
|
-
* Released under the MIT license
|
|
51
|
-
* Date: 2023-05-12T08:44:03.742Z
|
|
52
|
-
*/const zn={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},gr=ee.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:j=>["delta","html","text"].includes(j)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:j=>["snow","bubble",""].includes(j)},toolbar:{type:[String,Array,Object],required:!1,validator:j=>typeof j=="string"&&j!==""?j.charAt(0)==="#"?!0:Object.keys(zn).indexOf(j)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(j,U)=>{ee.onMounted(()=>{E()}),ee.onBeforeUnmount(()=>{b=null});let b,p;const f=ee.ref(),E=()=>{var v;if(f.value){if(p=m(),j.modules)if(Array.isArray(j.modules))for(const O of j.modules)qn.register(`modules/${O.name}`,O.module);else qn.register(`modules/${j.modules.name}`,j.modules.module);b=new qn(f.value,p),c(j.content),b.on("text-change",o),b.on("selection-change",t),b.on("editor-change",a),j.theme!=="bubble"&&f.value.classList.remove("ql-bubble"),j.theme!=="snow"&&f.value.classList.remove("ql-snow"),(v=b.getModule("toolbar"))===null||v===void 0||v.container.addEventListener("mousedown",O=>{O.preventDefault()}),U.emit("ready",b)}},m=()=>{const v={};if(j.theme!==""&&(v.theme=j.theme),j.readOnly&&(v.readOnly=j.readOnly),j.placeholder&&(v.placeholder=j.placeholder),j.toolbar&&j.toolbar!==""&&(v.modules={toolbar:(()=>{if(typeof j.toolbar=="object")return j.toolbar;if(typeof j.toolbar=="string")return j.toolbar.charAt(0)==="#"?j.toolbar:zn[j.toolbar]})()}),j.modules){const O=(()=>{var N,L;const D={};if(Array.isArray(j.modules))for(const z of j.modules)D[z.name]=(N=z.options)!==null&&N!==void 0?N:{};else D[j.modules.name]=(L=j.modules.options)!==null&&L!==void 0?L:{};return D})();v.modules=Object.assign({},v.modules,O)}return Object.assign({},j.globalOptions,j.options,v)},_=v=>typeof v=="object"&&v?v.slice():v,y=v=>Object.values(v.ops).some(O=>!O.retain||Object.keys(O).length!==1);let g;const h=v=>{if(typeof g==typeof v){if(v===g)return!0;if(typeof v=="object"&&v&&typeof g=="object"&&g)return!y(g.diff(v))}return!1},o=(v,O,N)=>{g=_(i()),h(j.content)||U.emit("update:content",g),U.emit("textChange",{delta:v,oldContents:O,source:N})},e=ee.ref(),t=(v,O,N)=>{e.value=!!b?.hasFocus(),U.emit("selectionChange",{range:v,oldRange:O,source:N})};ee.watch(e,v=>{v?U.emit("focus",f):U.emit("blur",f)});const a=(...v)=>{v[0]==="text-change"&&U.emit("editorChange",{name:v[0],delta:v[1],oldContents:v[2],source:v[3]}),v[0]==="selection-change"&&U.emit("editorChange",{name:v[0],range:v[1],oldRange:v[2],source:v[3]})},l=()=>f.value,s=()=>{var v;return(v=b?.getModule("toolbar"))===null||v===void 0?void 0:v.container},r=()=>{if(b)return b;throw`The quill editor hasn't been instantiated yet,
|
|
53
|
-
make sure to call this method when the editor ready
|
|
54
|
-
or use v-on:ready="onReady(quill)" event instead.`},i=(v,O)=>j.contentType==="html"?k():j.contentType==="text"?n(v,O):b?.getContents(v,O),c=(v,O="api")=>{const N=v||(j.contentType==="delta"?new yr:"");j.contentType==="html"?w(N):j.contentType==="text"?d(N,O):b?.setContents(N,O),g=_(N)},n=(v,O)=>{var N;return(N=b?.getText(v,O))!==null&&N!==void 0?N:""},d=(v,O="api")=>{b?.setText(v,O)},k=()=>{var v;return(v=b?.root.innerHTML)!==null&&v!==void 0?v:""},w=v=>{b&&(b.root.innerHTML=v)},T=(v,O="api")=>{const N=b?.clipboard.convert(v);N&&b?.setContents(N,O)},P=()=>{b?.focus()},A=()=>{ee.nextTick(()=>{var v;!U.slots.toolbar&&b&&((v=b.getModule("toolbar"))===null||v===void 0||v.container.remove()),E()})};return ee.watch(()=>j.content,v=>{if(!b||!v||h(v))return;const O=b.getSelection();O&&ee.nextTick(()=>b?.setSelection(O)),c(v)},{deep:!0}),ee.watch(()=>j.enable,v=>{b&&b.enable(v)}),{editor:f,getEditor:l,getToolbar:s,getQuill:r,getContents:i,setContents:c,getHTML:k,setHTML:w,pasteHTML:T,focus:P,getText:n,setText:d,reinit:A}},render(){var j,U;return[(U=(j=this.$slots).toolbar)===null||U===void 0?void 0:U.call(j),ee.h("div",{ref:"editor",...this.$attrs})]}});const mr=["name","value"],br=["id","data-test","name","required","readonly","autocomplete","placeholder","disabled","maxlength","row"],_r=["id","data-test","name","type","required","readonly","autocomplete","placeholder","disabled","maxlength"],Or={key:4,class:"suffix"},Er={key:5,class:"fresh-booking-input-limit"},Ar=ee.defineComponent({__name:"TextField",props:{modelValue:{},description:{},suffix:{},label:{},id:{},name:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},type:{default:"text"},autocomplete:{},disabled:{type:Boolean,default:!1},limit:{default:1/0},rows:{default:3},inputStyle:{}},emits:["update:modelValue"],setup(j,{emit:U}){const b=j,p=ee.ref(),f=ee.ref(),E=b.id||ee.ranId(),m=()=>{U("update:modelValue",f.value.getHTML())},_=ee.ref({placeholder:b.placeholder,readOnly:b.readonly,theme:"snow"}),y=ee.computed({get:()=>b.modelValue,set:a=>{U("update:modelValue",a)}}),g=ee.computed(()=>{const a=b.limit;let l=0;return b.modelValue&&(l=b.modelValue.toString().length),a-l}),h=ee.computed(()=>b.readonly?void 0:b.placeholder),o=ee.computed(()=>!!b.name&&!!b.autocomplete);function e(){if(b.type==="textarea"){const a=p.value;a.setAttribute("style",`height:${a.scrollHeight}px`)}}function t(){const a=p.value;a.style.height="auto",a.style.height=a.scrollHeight+"px"}return ee.onMounted(()=>{e()}),(a,l)=>(ee.openBlock(),ee.createBlock(ee.InputField,{label:a.label,id:ee.unref(E),icon:a.icon,"icon-color":a.iconColor,"icon-type":a.iconType,required:a.required,type:a.type,readonly:a.readonly,description:a.description,limit:a.limit},{default:ee.withCtx(()=>[o.value?ee.createCommentVNode("",!0):(ee.openBlock(),ee.createElementBlock("input",{key:0,type:"hidden",name:a.name,value:a.modelValue},null,8,mr)),a.type==="textarea"?ee.withDirectives((ee.openBlock(),ee.createElementBlock("textarea",ee.mergeProps({key:1,"onUpdate:modelValue":l[0]||(l[0]=s=>y.value=s)},a.$attrs,{ref_key:"textField",ref:p,id:ee.unref(E),"data-test":ee.unref(ee.createTestName)(a.name),name:o.value?a.name:void 0,required:!!a.required,readonly:!!a.readonly,autocomplete:a.autocomplete||"off",placeholder:h.value,disabled:a.disabled,maxlength:a.limit,row:a.rows,style:a.inputStyle,onInput:t}),null,16,br)),[[ee.vModelText,y.value]]):a.type==="editor"?(ee.openBlock(),ee.createBlock(ee.unref(gr),{key:2,content:a.modelValue,ref_key:"editorField",ref:f,options:_.value,"content-type":"html",id:ee.unref(E),name:o.value?a.name:null,required:!!a.required,autocomplete:a.autocomplete||"off",placeholder:h.value,disabled:a.disabled,style:ee.normalizeStyle(a.inputStyle),"onUpdate:content":m},null,8,["content","options","id","name","required","autocomplete","placeholder","disabled","style"])):ee.withDirectives((ee.openBlock(),ee.createElementBlock("input",ee.mergeProps({key:3,"onUpdate:modelValue":l[1]||(l[1]=s=>y.value=s)},a.$attrs,{id:ee.unref(E),"data-test":ee.unref(ee.createTestName)(a.name),name:o.value?a.name:void 0,type:a.type,required:!!a.required,readonly:!!a.readonly,autocomplete:a.autocomplete||"off",placeholder:h.value,disabled:a.disabled,maxlength:a.limit,style:a.inputStyle}),null,16,_r)),[[ee.vModelDynamic,y.value]]),a.suffix?(ee.openBlock(),ee.createElementBlock("div",Or,[ee.createBaseVNode("div",null,[ee.createBaseVNode("span",null,ee.toDisplayString(a.suffix),1)])])):ee.createCommentVNode("",!0),g.value!==1/0?(ee.openBlock(),ee.createElementBlock("div",Er,[ee.createBaseVNode("span",{class:ee.normalizeClass({danger:g.value<=15})},ee.toDisplayString(g.value),3),ee.createTextVNode("/"),ee.createBaseVNode("small",null,ee.toDisplayString(a.limit),1)])):ee.createCommentVNode("",!0)]),_:1},8,["label","id","icon","icon-color","icon-type","required","type","readonly","description","limit"]))}});const wr=ee._export_sfc(Ar,[["__scopeId","data-v-a648c80a"]]);exports.TextField=wr;exports._sfc_main=tr;
|