Mango.Nop.Plugins/Nop.Plugin.Misc.AIPlugin/js/devextreme/dx-quill.min.js

2 lines
347 KiB
JavaScript

/*! For license information please see dx-quill.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DevExpress=e():(t.DevExpress=t.DevExpress||{},t.DevExpress.Quill=e())}(this,(()=>(()=>{var t={1674:(t,e,r)=>{"use strict";r.d(e,{Z:()=>d});var n=r(1233),o=r(3866),i=r(3398);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===u(i)?i:String(i)),n)}var o,i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=s(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(this,arguments)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(s,t);var e,r,n,u=p(s);function s(t,e){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return a(this,s),(n=u.call(this,t,e,o)).allowedTags=null!==(r=o.allowedTags)&&void 0!==r?r:[],n}return e=s,n=[{key:"keys",value:function(t){return(0,o.dj)(c(y(s),"keys",this),t,i.WT.attribute)}}],(r=[{key:"add",value:function(t,e){return o.Mx.call(this,c(y(s.prototype),"add",this),t,e)}},{key:"remove",value:function(t){return o.Mx.call(this,c(y(s.prototype),"remove",this),t)}},{key:"value",value:function(t){return o.Mx.call(this,c(y(s.prototype),"value",this),t)}},{key:"canAdd",value:function(t,e){return o.ud.call(this,c(y(s.prototype),"canAdd",this),t,e)}}])&&l(e.prototype,r),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(n.Attributor)},3866:(t,e,r)=>{"use strict";r.d(e,{Mx:()=>o,dj:()=>u,ud:()=>i});var n=r(3398);function o(t){var e=this.keyName;this.keyName=(0,n.mQ)(this.keyName);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var u=t.call.apply(t,[this].concat(o));return this.keyName=e,u}function i(t,e,r){return this.allowedTags.indexOf(e.tagName)>-1&&t.call(this,e,r)}function u(t,e,r){return t(e).map((function(t){return(0,n.jf)(e.tagName,t,r)}))}},4569:(t,e,r)=>{"use strict";r.d(e,{Z:()=>d});var n=r(1233),o=r(3866),i=r(3398);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===u(i)?i:String(i)),n)}var o,i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=s(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(this,arguments)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(s,t);var e,r,n,u=p(s);function s(t,e){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return a(this,s),(n=u.call(this,t,e,o)).allowedTags=null!==(r=o.allowedTags)&&void 0!==r?r:[],n}return e=s,n=[{key:"keys",value:function(t){return(0,o.dj)(c(y(s),"keys",this),t,i.WT.style)}}],(r=[{key:"add",value:function(t,e){return o.Mx.call(this,c(y(s.prototype),"add",this),t,e)}},{key:"remove",value:function(t){return o.Mx.call(this,c(y(s.prototype),"remove",this),t)}},{key:"value",value:function(t){return o.Mx.call(this,c(y(s.prototype),"value",this),t)}},{key:"canAdd",value:function(t,e){return o.ud.call(this,c(y(s.prototype),"canAdd",this),t,e)}}])&&l(e.prototype,r),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(n.StyleAttributor)},3398:(t,e,r)=>{"use strict";r.d(e,{WT:()=>c,jf:()=>f,mQ:()=>p});var n=r(19),o=r(8252);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c={attribute:"attr",style:"style"},s=a(a({},n.Sp.allowedTags.reduce((function(t,e){return t[e]={name:n.Sp.name,keyNamesSet:n.bc},t}),{})),o.Pw.allowedTags.reduce((function(t,e){return t[e]={name:o.Pw.name,keyNamesSet:o.fU},t}),{}));function f(t,e,r){var n=s[t];return n&&n.keyNamesSet.has(e)?"".concat(r).concat(n.name,"_").concat(e):e}function p(t){return t.replace(/([^]*_)/,"")}},6446:(t,e,r)=>{"use strict";r.d(e,{i2:()=>E,qz:()=>k,E2:()=>x,ZP:()=>N});var n=r(9098),o=r.n(n),i=r(1233),u=r(4122),a=r(6603),l=r(8222),c=r(3398);function s(t,e,r,n){return r.map((r=>{const o=n?(0,c.jf)(t,r,n):r;return e.scroll.query(o,i.Scope.ATTRIBUTE)})).filter((t=>t instanceof i.Attributor)).reduce(((t,e)=>(t[e.attrName]=e,t)),{})}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function v(t,e,r){return e&&b(t.prototype,e),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f(e)?e:String(e)}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=w(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},g.apply(this,arguments)}function w(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function O(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=_(t);if(e){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}i.AttributorStore.prototype.build=function(){const{tagName:t}=this.domNode,e=i.Registry.find(this.domNode);if(null==e)return;const r=i.Attributor.keys(this.domNode),n=i.ClassAttributor.keys(this.domNode),o=i.StyleAttributor.keys(this.domNode);this.attributes={...s(t,e,r,c.WT.attribute),...s(t,e,n),...s(t,e,o,c.WT.style)}};var N=function(t){O(r,t);var e=S(r);function r(t,n){var o;return d(this,r),(o=e.call(this,t,n)).cache={},o}return v(r,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=k(this)),this.cache.delta}},{key:"deleteAt",value:function(t,e){g(_(r.prototype),"deleteAt",this).call(this,t,e),this.cache={}}},{key:"formatAt",value:function(t,e,n,o){e<=0||(this.scroll.query(n,i.Scope.BLOCK)?t+e===this.length()&&this.format(n,o):g(_(r.prototype),"formatAt",this).call(this,t,Math.min(e,this.length()-t-1),n,o),this.cache={})}},{key:"insertAt",value:function(t,e,n){if(null!=n)return g(_(r.prototype),"insertAt",this).call(this,t,e,n),void(this.cache={});if(0!==e.length){var o=e.split("\n"),i=o.shift();i.length>0&&(t<this.length()-1||null==this.children.tail?g(_(r.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var u=this;o.reduce((function(t,e){return(u=u.split(t,!0)).insertAt(0,e),e.length}),t+i.length)}}},{key:"insertBefore",value:function(t,e){var n=this.children.head;e&&!this.domNode.contains(e.domNode)||g(_(r.prototype),"insertBefore",this).call(this,t,e),n instanceof u.Z&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=g(_(r.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,e){g(_(r.prototype),"moveChildren",this).call(this,t,e),this.cache={}}},{key:"optimize",value:function(t){g(_(r.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return g(_(r.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){g(_(r.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&(0===t||t>=this.length()-1)){var n=this.clone();return 0===t?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var o=g(_(r.prototype),"split",this).call(this,t,e);return this.cache={},o}}]),r}(i.BlockBlot);N.blotName="block",N.tagName="P",N.defaultChild=u.Z,N.allowedChildren=[u.Z,a.Z,i.EmbedBlot,l.Z];var E=function(t){O(r,t);var e=S(r);function r(){return d(this,r),e.apply(this,arguments)}return v(r,[{key:"attach",value:function(){g(_(r.prototype),"attach",this).call(this),this.attributes=new i.AttributorStore(this.domNode)}},{key:"delta",value:function(){return(new(o())).insert(this.value(),h(h({},this.formats()),this.attributes.values()))}},{key:"format",value:function(t,e){var r=this.scroll.query(t,i.Scope.BLOCK_ATTRIBUTE);null!=r&&this.attributes.attribute(r,e)}},{key:"formatAt",value:function(t,e,r,n){this.format(r,n)}},{key:"insertAt",value:function(t,e,n){if("string"==typeof e&&e.endsWith("\n")){var o=this.scroll.create(N.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,e.slice(0,-1))}else g(_(r.prototype),"insertAt",this).call(this,t,e,n)}}]),r}(i.EmbedBlot);function k(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.descendants(i.LeafBlot).reduce((function(t,r){return 0===r.length()?t:t.insert(r.value(),x(r,{},e))}),new(o())).insert("\n",x(t))}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==t?e:("function"==typeof t.formats&&(e=h(h({},e),t.formats()),r&&delete e["code-token"]),null==t.parent||"scroll"===t.parent.statics.blotName||t.parent.statics.scope!==t.statics.scope?e:x(t.parent,e,r))}E.scope=i.Scope.BLOCK_BLOT},4122:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,u=void 0,u=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(u)?u:String(u)),o)}var i,u}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=c(t);if(e){var o=c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}r.d(e,{Z:()=>f});var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(c,t);var e,r,n,l=a(c);function c(){return o(this,c),l.apply(this,arguments)}return e=c,n=[{key:"value",value:function(){}}],(r=[{key:"optimize",value:function(){(this.prev||this.next)&&this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),c}(r(1233).EmbedBlot);s.blotName="break",s.tagName="BR";const f=s},3553:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,u=void 0,u=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(u)?u:String(u)),o)}var i,u}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=c(t);if(e){var o=c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}r.d(e,{Z:()=>s});const s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(c,t);var e,r,n,l=a(c);function c(){return i(this,c),l.apply(this,arguments)}return e=c,r&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(r(1233).ContainerBlot)},3657:(t,e,r)=>{"use strict";r.d(e,{Z:()=>y});var n=r(1233),o=r(8222);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,u=void 0,u=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===i(u)?u:String(u)),n)}var o,u}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=l(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},a.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(f,t);var e,r,i,l=s(f);function f(t,e,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(n=l.call(this,t,e)).selection=r,n.textNode=document.createTextNode(f.CONTENTS),n.domNode.appendChild(n.textNode),n.savedLength=0,n}return e=f,i=[{key:"value",value:function(){}}],(r=[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,e){if(0===this.savedLength){for(var r=this,o=0;null!=r&&r.statics.scope!==n.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this.savedLength=f.CONTENTS.length,r.optimize(),r.formatAt(o,f.CONTENTS.length,t,e),this.savedLength=0)}else a(p(f.prototype),"format",this).call(this,t,e)}},{key:"index",value:function(t,e){return t===this.textNode?0:a(p(f.prototype),"index",this).call(this,t,e)}},{key:"length",value:function(){return this.savedLength}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(p(f.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(this.selection.composing||null==this.parent)return null;for(var t=this.selection.getNativeRange();null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);var e,r=this.prev instanceof o.Z?this.prev:null,n=r?r.length():0,i=this.next instanceof o.Z?this.next:null,u=i?i.text:"",a=this.textNode,l=a.data.split(f.CONTENTS).join("");if(a.data=f.CONTENTS,r)e=r,(l||i)&&(r.insertAt(r.length(),l+u),i&&i.remove());else if(i)e=i,i.insertAt(0,l);else{var c=document.createTextNode(l);e=this.scroll.create(c),this.parent.insertBefore(e,this)}if(this.remove(),t){var s=function(t,e){return r&&t===r.domNode?e:t===a?n+e-1:i&&t===i.domNode?n+l.length+e:null},p=s(t.start.node,t.start.offset),h=s(t.end.node,t.end.offset);if(null!==p&&null!==h)return{startNode:e.domNode,startOffset:p,endNode:e.domNode,endOffset:h}}return null}},{key:"update",value:function(t,e){var r=this;if(t.some((function(t){return"characterData"===t.type&&t.target===r.textNode}))){var n=this.restore();n&&(e.range=n)}}},{key:"value",value:function(){return""}}])&&u(e.prototype,r),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),f}(n.EmbedBlot);h.blotName="cursor",h.className="ql-cursor",h.tagName="span",h.CONTENTS="\ufeff";const y=h},7452:(t,e,r)=>{"use strict";r.d(e,{Z:()=>y});var n=r(1233),o=r(8222);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,u=void 0,u=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===i(u)?u:String(u)),n)}var o,u}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=l(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},a.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var h="\ufeff";const y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(l,t);var e,r,n,i=s(l);function l(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(r=i.call(this,t,e)).contentNode=document.createElement("span"),r.contentNode.setAttribute("contenteditable",!1),Array.from(r.domNode.childNodes).forEach((function(t){r.contentNode.appendChild(t)})),r.leftGuard=document.createTextNode(h),r.rightGuard=document.createTextNode(h),r.domNode.appendChild(r.leftGuard),r.domNode.appendChild(r.contentNode),r.domNode.appendChild(r.rightGuard),r}return e=l,(r=[{key:"index",value:function(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:a(p(l.prototype),"index",this).call(this,t,e)}},{key:"restore",value:function(t){var e,r,n=t.data.split(h).join("");if(t===this.leftGuard)if(this.prev instanceof o.Z){var i=this.prev.length();this.prev.insertAt(i,n),e={startNode:this.prev.domNode,startOffset:i+n.length}}else r=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(r),this),e={startNode:r,startOffset:n.length};else t===this.rightGuard&&(this.next instanceof o.Z?(this.next.insertAt(0,n),e={startNode:this.next.domNode,startOffset:n.length}):(r=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(r),this.next),e={startNode:r,startOffset:n.length}));return t.data=h,e}},{key:"update",value:function(t,e){var r=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===r.leftGuard||t.target===r.rightGuard)){var n=r.restore(t.target);n&&(e.range=n)}}))}}])&&u(e.prototype,r),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(n.EmbedBlot)},6603:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n=r(1233),o=r(4122),i=r(8222);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===u(i)?i:String(i)),n)}var o,i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=s(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(this,arguments)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(u,t);var e,r,o,i=p(u);function u(){return a(this,u),i.apply(this,arguments)}return e=u,o=[{key:"compare",value:function(t,e){var r=u.order.indexOf(t),n=u.order.indexOf(e);return r>=0||n>=0?r-n:t===e?0:t<e?-1:1}}],(r=[{key:"formatAt",value:function(t,e,r,o){if(u.compare(this.statics.blotName,r)<0&&this.scroll.query(r,n.Scope.BLOT)){var i=this.isolate(t,e);o&&i.wrap(r,o)}else c(y(u.prototype),"formatAt",this).call(this,t,e,r,o)}},{key:"optimize",value:function(t){if(c(y(u.prototype),"optimize",this).call(this,t),this.parent instanceof u&&u.compare(this.statics.blotName,this.parent.statics.blotName)>0){var e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}}])&&l(e.prototype,r),o&&l(e,o),Object.defineProperty(e,"prototype",{writable:!1}),u}(n.InlineBlot);d.allowedChildren=[d,o.Z,n.EmbedBlot,i.Z],d.order=["cursor","inline","link","underline","strike","italic","bold","script","code"];const b=d},3272:(t,e,r)=>{"use strict";r.d(e,{Z:()=>O});var n=r(1233),o=r(2069),i=r(6446),u=r(4122),a=r(3553),l=r(1969);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==c(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===c(i)?i:String(i)),n)}var o,i}function h(){return h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=y(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},h.apply(this,arguments)}function y(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=m(t);if(e){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t){return t instanceof i.ZP||t instanceof i.i2}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(f,t);var e,r,a,c=b(f);function f(t,e,r){var n,o=r.emitter,i=r.toggleBlankClass;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(n=c.call(this,t,e)).emitter=o,n.toggleBlankClass=i,n.batch=!1,n.optimize(),n.enable(),n.domNode.addEventListener("dragstart",(function(t){return n.handleDragStart(t)})),n}return e=f,r=[{key:"batchStart",value:function(){Array.isArray(this.batch)||(this.batch=[])}},{key:"batchEnd",value:function(){var t=this.batch;this.batch=!1,this.update(t)}},{key:"emitMount",value:function(t){this.emitter.emit(o.Z.events.SCROLL_BLOT_MOUNT,t)}},{key:"emitUnmount",value:function(t){this.emitter.emit(o.Z.events.SCROLL_BLOT_UNMOUNT,t)}},{key:"deleteAt",value:function(t,e){var r=s(this.line(t),2),n=r[0],o=r[1],a=s(this.line(t+e),1)[0];if(h(m(f.prototype),"deleteAt",this).call(this,t,e),null!=a&&n!==a&&o>0){var c=(n instanceof l.zW||a instanceof l.zW)&&n.parent!==a.parent;if(!(n instanceof i.i2||a instanceof i.i2||c)){var p=a.children.head instanceof u.Z?null:a.children.head;n.moveChildren(a,p),n.remove()}}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,e,r,n){h(m(f.prototype),"formatAt",this).call(this,t,e,r,n),this.optimize()}},{key:"handleDragStart",value:function(t){t.preventDefault()}},{key:"insertAt",value:function(t,e,r){if(t>=this.length())if(null==r||null==this.scroll.query(e,n.Scope.BLOCK)){var o=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(o),null==r&&e.endsWith("\n")?o.insertAt(0,e.slice(0,-1),r):o.insertAt(0,e,r)}else{var i=this.scroll.create(e,r);this.appendChild(i)}else h(m(f.prototype),"insertAt",this).call(this,t,e,r);this.optimize()}},{key:"insertBefore",value:function(t,e){if(t.statics.scope===n.Scope.INLINE_BLOT){var r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(t),h(m(f.prototype),"insertBefore",this).call(this,r,e)}else h(m(f.prototype),"insertBefore",this).call(this,t,e)}},{key:"isEnabled",value:function(){return"true"===this.domNode.getAttribute("contenteditable")}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(g,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,r=function t(e,r,o){var i=[],u=o;return e.children.forEachAt(r,o,(function(e,r,o){g(e)?i.push(e):e instanceof n.ContainerBlot&&(i=i.concat(t(e,r,u))),u-=o})),i};return r(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(h(m(f.prototype),"optimize",this).call(this,t,e),t.length>0&&this.emitter.emit(o.Z.events.SCROLL_OPTIMIZE,t,e))}},{key:"path",value:function(t){return h(m(f.prototype),"path",this).call(this,t).slice(1)}},{key:"remove",value:function(){}},{key:"update",value:function(t){var e=this;if(this.batch)Array.isArray(t)&&(this.batch=this.batch.concat(t),this.toggleBlankClass());else{var r=o.Z.sources.USER;"string"==typeof t&&(r=t),Array.isArray(t)||(t=this.observer.takeRecords()),(t=t.filter((function(t){var r=t.target,n=e.find(r,!0);return n&&n.scroll===e}))).length>0&&this.emitter.emit(o.Z.events.SCROLL_BEFORE_UPDATE,r,t),h(m(f.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(o.Z.events.SCROLL_UPDATE,r,t)}}}],r&&p(e.prototype,r),a&&p(e,a),Object.defineProperty(e,"prototype",{writable:!1}),f}(n.ScrollBlot);w.blotName="scroll",w.className="ql-editor",w.tagName="DIV",w.defaultChild=i.ZP,w.allowedChildren=[i.ZP,i.i2,a.Z];const O=w},8222:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,u=void 0,u=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(u)?u:String(u)),o)}var i,u}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=c(t);if(e){var o=c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}r.d(e,{Z:()=>s,b:()=>f});var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(c,t);var e,r,n,l=a(c);function c(){return i(this,c),l.apply(this,arguments)}return e=c,r&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(r(1233).TextBlot);function f(t){return t.replace(/[&<>"']/g,(function(t){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[t]}))}},2432:(t,e,r)=>{"use strict";r.d(e,{default:()=>v});var n=r(281),o=r(6446),i=r(4122),u=r(3553),a=r(3657),l=r(7452),c=r(6603),s=r(3272),f=r(8222),p=r(5635),h=r(2613),y=r(3071),d=r(3859),b=r(990);n.ZP.register({"blots/block":o.ZP,"blots/block/embed":o.i2,"blots/break":i.Z,"blots/container":u.Z,"blots/cursor":a.Z,"blots/embed":l.Z,"blots/inline":c.Z,"blots/scroll":s.Z,"blots/text":f.Z,"modules/clipboard":p.ZP,"modules/history":h.Z,"modules/keyboard":y.ZP,"modules/uploader":d.Z,"modules/input":b.Z});const v=n.ZP},6229:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var n=r(7452),o=r(2069);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,u=void 0,u=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===i(u)?u:String(u)),n)}var o,u}const a=function(){function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.emitter=r,this.isComposing=!1,e.domNode.addEventListener("compositionstart",(function(t){n.isComposing||n.handleCompositionStart(t)})),e.domNode.addEventListener("compositionend",(function(t){n.isComposing&&n.handleCompositionEnd(t)}))}var e,r,i;return e=t,(r=[{key:"isCompositionInProgress",value:function(){return this.isComposing}},{key:"handleCompositionStart",value:function(t){var e=t.target instanceof Node?this.scroll.find(t.target,!0):null;!e||e instanceof n.Z||(this.emitter.emit(o.Z.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(o.Z.events.COMPOSITION_START,t),this.isComposing=!0)}},{key:"handleCompositionEnd",value:function(t){this.emitter.emit(o.Z.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(o.Z.events.COMPOSITION_END,t),this.isComposing=!1}}])&&u(e.prototype,r),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},2861:(t,e,r)=>{"use strict";r.d(e,{Z:()=>I});var n=r(8805),o=r.n(n),i=r(732),u=r.n(i),a=r(9098),l=r.n(a),c=r(1233),s=r(4506),f=r(7800),p=r(3657),h=r(6446),y=r(4122),d=r(8222);var b=r(5874);function v(t){return N(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||P(t)||S()}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){w(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function w(t,e,r){return(e=k(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function j(t,e){return N(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||P(t,e)||S()}function S(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(t,e){if(t){if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(t,e):void 0}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function N(t){if(Array.isArray(t))return t}function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,k(n.key),n)}}function k(t){var e=function(t,e){if("object"!==O(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===O(e)?e:String(e)}var x=/^[ -~]*$/;function T(t,e,r){if(0===t.length){var n=j(L(r.pop()),1)[0];return e<=0?"</li></".concat(n,">"):"</li></".concat(n,">").concat(T([],e-1,r))}var o=v(t),i=o[0],u=i.child,a=i.offset,l=i.length,c=i.indent,s=i.type,f=o.slice(1),p=j(L(s,u),2),h=p[0],y=p[1];if(c>e)return r.push(s),c===e+1?"<".concat(h,"><li").concat(y,">").concat(A(u,a,l)).concat(T(f,c,r)):"<".concat(h,"><li>").concat(T(t,e+1,r));var d=r[r.length-1];if(c===e&&s===d)return"</li><li".concat(y,">").concat(A(u,a,l)).concat(T(f,c,r));var b=j(L(r.pop()),1)[0];return"</li></".concat(b,">").concat(T(t,e-1,r))}function A(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"==typeof t.html)return t.html(e,r);if(t instanceof d.Z)return(0,d.b)(t.value().slice(e,e+r));if(t.children){if("list-container"===t.statics.blotName){var o=[];return t.children.forEachAt(e,r,(function(t,e,r){var n=t.formats();o.push({child:t,offset:e,length:r,indent:n.indent||0,type:n.list})})),T(o,-1,[])}var i=[];if(t.children.forEachAt(e,r,(function(t,e,r){i.push(A(t,e,r))})),R(t.children,i),n||"list"===t.statics.blotName)return i.join("");var u=C(t),a=u.outerHTML,l=u.innerHTML,c=a.split(">".concat(l,"<")),s=j(c,2),f=s[0],p=s[1];return 0===f.indexOf("<table")?"".concat(f.replace(/(\sdata-.+?=["'].*?["'])/g,""),">").concat(i.join("").replace(/(\sdata-table.+?=["'].*?["'])/g,""),"<").concat(p):"".concat(f,">").concat(i.join(""),"<").concat(p)}return t.domNode.outerHTML}function R(t,e){1===t.length&&t.head instanceof y.Z&&e.push("<br>")}function C(t){var e=t.domNode.cloneNode(!0);return function(t,e){["tableCellLine","tableHeaderCellLine","tableCell","tableHeaderCell"].includes(t.statics.blotName)&&(r=e,n=t.statics.className,r.classList.remove(n),0===r.classList.length&&r.removeAttribute("class"));var r,n;return e}(t,e)}function Z(t,e){return Object.keys(e).reduce((function(r,n){return null==t[n]||(e[n]===t[n]?r[n]=e[n]:Array.isArray(e[n])?e[n].indexOf(t[n])<0&&(r[n]=e[n].concat([t[n]])):r[n]=[e[n],t[n]]),r}),{})}function L(t,e){var r="ordered"===t?"ol":"ul",n=e?"".concat(function(t){var e=t.domNode;if(!e.hasAttributes())return"";for(var r=e.attributes,n=" ",o=0;o<r.length;o+=1){var i=r[o].name,u=r[o].value;"class"===i&&(u=B(u)),u.length&&-1===i.indexOf("data-")&&(n+="".concat(i,'="').concat(u,'"'))}return n.length>1?n:""}(e)):"";switch(t){case"checked":return[r,"".concat(n,' data-list="checked"')];case"unchecked":return[r,"".concat(n,' data-list="unchecked"')];default:return[r,n]}}function B(t){return t.replace(/ql-indent-\d/g,"").trim()}function q(t,e){var r=t.index,n=t.length;return new f.e(r+e,n)}const I=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta(),this.immediateFormats=new Set}var e,r,n;return e=t,r=[{key:"addImmediateFormat",value:function(t){this.immediateFormats.add(t)}},{key:"applyDelta",value:function(t){var e=this;this.scroll.update();var r=this.scroll.length();this.scroll.batchStart();var n=function(t){return t.reduce((function(t,e){if("string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new(l()))}(t),o=new(l());return n.reduce((function(t,n){var i=a.Op.length(n),l=n.attributes||{},s=!1;if(null!=n.insert){if(o.retain(i),"string"==typeof n.insert){var f=n.insert;s=!f.endsWith("\n")&&(r<=t||e.scroll.descendant(h.i2,t)[0]),e.scroll.insertAt(t,f);var p=j(e.scroll.line(t),2),y=p[0],d=p[1],b=u()({},(0,h.E2)(y));if(y instanceof h.ZP){var v=j(y.descendant(c.LeafBlot,d),1)[0];b=u()(b,(0,h.E2)(v))}l=a.AttributeMap.diff(b,l)||{}}else if("object"===O(n.insert)){var m=Object.keys(n.insert)[0];if(null==m)return t;s=null!=e.scroll.query(m,c.Scope.INLINE)&&(r<=t||e.scroll.descendant(h.i2,t)[0]),e.scroll.insertAt(t,m,n.insert[m])}r+=i}else o.push(n);var g=Object.keys(l);e.immediateFormats.forEach((function(r){g.indexOf(r)>-1&&(e.scroll.formatAt(t,i,r,l[r]),delete l[r])})),Object.keys(l).forEach((function(r){e.scroll.formatAt(t,i,r,l[r])}));var w=s?1:0;return r+=w,o.delete(w),t+i+w}),0),o.reduce((function(t,r){return"number"==typeof r.delete?(e.scroll.deleteAt(t,r.delete),t):t+a.Op.length(r)}),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new(l())).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach((function(o){r.scroll.lines(t,Math.max(e,1)).forEach((function(t){t.format(o,n[o])}))})),this.scroll.optimize();var i=(new(l())).retain(t).retain(e,o()(n));return this.update(i)}},{key:"formatText",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach((function(o){r.scroll.formatAt(t,e,o,n[o])}));var i=(new(l())).retain(t).retain(e,o()(n));return this.update(i)}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new(l()))}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=[];0===e?this.scroll.path(t).forEach((function(t){var e=j(t,1)[0];e instanceof h.ZP?r.push(e):e instanceof c.LeafBlot&&n.push(e)})):(r=this.scroll.lines(t,e),n=this.scroll.descendants(c.LeafBlot,t,e));var o=[r,n].map((function(t){if(0===t.length)return{};for(var e=(0,h.E2)(t.shift());Object.keys(e).length>0;){var r=t.shift();if(null==r)return e;e=Z((0,h.E2)(r),e)}return e})),i=j(o,2);return r=i[0],n=i[1],g(g({},r),n)}},{key:"getHTML",value:function(t,e){var r=j(this.scroll.line(t),2),n=r[0],o=r[1];return n.length()>o+e?A(n,o,e,!0):A(this.scroll,t,e,!0)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,r){return this.scroll.insertAt(t,e,r),this.update((new(l())).retain(t).insert(w({},e,r)))}},{key:"insertText",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(n).forEach((function(o){r.scroll.formatAt(t,e.length,o,n[o])})),this.update((new(l())).retain(t).insert(e,o()(n)))}},{key:"isBlank",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.scroll.children.length)return!0;if(t)return!1;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===h.ZP.blotName&&!(e.children.length>1)&&e.children.head instanceof y.Z}},{key:"removeFormat",value:function(t,e){var r=this.getText(t,e),n=j(this.scroll.line(t+e),2),o=n[0],i=n[1],u=0,a=new(l());null!=o&&(u=o.length()-i,a=o.delta().slice(i,i+u-1).insert("\n"));var c=this.getContents(t,e+u).diff((new(l())).insert(r).concat(a)),s=(new(l())).retain(t).concat(c);return this.applyDelta(s)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(x)&&this.scroll.find(e[0].target)){var o=this.scroll.find(e[0].target),i=(0,h.E2)(o),u=o.offset(this.scroll),a=e[0].oldValue.replace(p.Z.CONTENTS,""),c=(new(l())).insert(a),f=(new(l())).insert(o.value()),y=r&&{oldRange:q(r.oldRange,-u),newRange:q(r.newRange,-u)},d=(new(l())).retain(u).concat(c.diff(f,y));t=d.reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new(l())),this.delta=n.compose(t)}else this.delta=this.getDelta(),t&&(0,s.Z)(n.compose(t),this.delta)||this.deltaContainsRetain(n)||(t=n.diff(this.delta,r));return t}},{key:"deltaContainsRetain",value:function(t){return t.ops.some((function(t){return(0,b.Z)(t.retain)}))}}],r&&E(e.prototype,r),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},2069:(t,e,r)=>{"use strict";r.d(e,{Z:()=>v});var n=r(3034),o=r.n(n),i=r(8034),u=r(2598);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===a(i)?i:String(i)),n)}var o,i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=s(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(this,arguments)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var d=(0,r(3122).Z)("quill:events");(0,i.Z)()&&["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=r[0],i=null==o||null===(t=o.target)||void 0===t?void 0:t.shadowRoot,a=null!=i?i:document,l=a.querySelectorAll(".ql-container");Array.from(l).forEach((function(t){var e,n=u.Z.get(t);n&&n.emitter&&(e=n.emitter).handleDOM.apply(e,r)}))}))}));var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var e,r,n,o=p(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).listeners={},t.on("error",d.error),t}return e=i,r=[{key:"emit",value:function(){for(var t,e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(t=d.log).call.apply(t,[d].concat(n)),(e=c(y(i.prototype),"emit",this)).call.apply(e,[this].concat(n))}},{key:"handleDOM",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];(this.listeners[t.type]||[]).forEach((function(e){var n=e.node,o=e.handler;(t.target===n||n.contains(t.target))&&o.apply(void 0,[t].concat(r))}))}},{key:"listenDOM",value:function(t,e,r){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:r})}}],r&&l(e.prototype,r),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(o());b.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",CONTENT_SETTED:"content-setted",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"},b.sources={API:"api",SILENT:"silent",USER:"user"};const v=b},2598:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=new WeakMap},3122:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var n=["error","warn","log","info"],o="warn";function i(t){if(n.indexOf(t)<=n.indexOf(o)){for(var e,r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];(e=console)[t].apply(e,i)}}function u(t){return n.reduce((function(e,r){return e[r]=i.bind(console,r,t),e}),{})}u.level=function(t){o=t},i.level=u.level;const a=u},7094:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,u=void 0,u=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(u)?u:String(u)),o)}var i,u}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,{Z:()=>l});var a=i((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t),this.quill=e,this.options=r}));a.DEFAULTS={};const l=a},281:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>x});var n=r(9098),o=r.n(n),i=r(8805),u=r.n(i),a=r(732),l=r.n(a),c=r(1233),s=r(2861),f=r(2069),p=r(7094),h=r(7800),y=r(2598),d=r(3122),b=r(1690),v=r(5874),m=r(6229);function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function w(t,e,r){return(e=_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_(n.key),n)}}function _(t){var e=function(t,e){if("object"!==g(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===g(e)?e:String(e)}var N=(0,d.Z)("quill"),E="style-data-key",k=new c.Registry;c.ParentBlot.uiClass="ql-ui";var x=function(){function t(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,t),this.options=T(e,n),this.container=this.options.container,null==this.container)return N.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",y.Z.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.Z;var i=this.options.registry.query(c.ScrollBlot.blotName);this.scroll=new i(this.options.registry,this.root,{emitter:this.emitter,toggleBlankClass:this.toggleBlankClass.bind(this)}),this.editor=new s.Z(this.scroll),this.composition=new m.Z(this.scroll,this.emitter),this.selection=new h.Z(this.scroll,this.emitter,this.composition),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.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.init(),this.emitter.on(f.Z.events.EDITOR_CHANGE,(function(t){t===f.Z.events.TEXT_CHANGE&&r.toggleBlankClass()})),this.emitter.on(f.Z.events.SCROLL_UPDATE,(function(t,e){var n=r.selection.lastRange,o=O(r.selection.getRange(),1)[0],i=n&&o?{oldRange:n,newRange:o}:void 0;A.call(r,(function(){return r.editor.update(null,e,i)}),t)})),this.setContents(this.getInitialContent(o)),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}var e,r,n;return e=t,r=[{key:"getInitialContent",value:function(t){return this.clipboard.convert({html:"".concat(t,"<p><br></p>"),text:"\n"})}},{key:"toggleBlankClass",value:function(){var t=this.composition.isCompositionInProgress();this.root.classList.toggle("ql-blank",this.editor.isBlank(t))}},{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var r=t;(t=document.createElement("div")).classList.add(r)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,r){var n=this,o=O(R(t,e,r),4);return t=o[0],e=o[1],r=o[3],A.call(this,(function(){return n.editor.deleteText(t,e)}),r,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"editReadOnly",value:function(t){this.allowReadOnlyEdits=!0;var e=t();return this.allowReadOnlyEdits=!1,e}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.Z.sources.API;return this.applyCompositionChanges(),A.call(this,(function(){var n=r.getSelection(!0),i=new(o());if(null==n)return i;if(r.scroll.query(t,c.Scope.BLOCK))i=r.editor.formatLine(n.index,n.length,w({},t,e));else{if(0===n.length)return r.selection.format(t,e),i;i=r.editor.formatText(n.index,n.length,w({},t,e))}return r.setSelection(n,f.Z.sources.SILENT),i}),n)}},{key:"formatLine",value:function(t,e,r,n,o){var i,u=this,a=O(R(t,e,r,n,o),4);return t=a[0],e=a[1],i=a[2],o=a[3],A.call(this,(function(){return u.editor.formatLine(t,e,i)}),o,t,0)}},{key:"formatText",value:function(t,e,r,n,o){var i,u=this,a=O(R(t,e,r,n,o),4);return t=a[0],e=a[1],i=a[2],o=a[3],A.call(this,(function(){return u.editor.formatText(t,e,i)}),o,t,0)}},{key:"getBounds",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e="number"==typeof t?this.selection.getBounds(t,r):this.selection.getBounds(t.index,t.length);var n=this.container.getBoundingClientRect();return{bottom:e.bottom-n.top,height:e.height,left:e.left-n.left,right:e.right-n.left,top:e.top-n.top,width:e.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,r=R(t,e),n=O(r,2);return t=n[0],e=n[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,v.Z)(t)?"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length):{}}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getSemanticHTML",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,r=R(t,e),n=O(r,2);return t=n[0],e=n[1],this.editor.getHTML(t,e)}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,r=R(t,e),n=O(r,2);return t=n[0],e=n[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,r,n){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return A.call(this,(function(){return o.editor.insertEmbed(e,r,n)}),i,e)}},{key:"insertText",value:function(t,e,r,n,o){var i,u=this,a=O(R(t,0,r,n,o),4);return t=a[0],i=a[2],o=a[3],A.call(this,(function(){return u.editor.insertText(t,e,i)}),o,t,e.length)}},{key:"isEnabled",value:function(){return this.scroll.isEnabled()}},{key:"off",value:function(){var t;return(t=this.emitter).off.apply(t,arguments)}},{key:"on",value:function(){var t;return(t=this.emitter).on.apply(t,arguments)}},{key:"once",value:function(){var t;return(t=this.emitter).once.apply(t,arguments)}},{key:"removeFormat",value:function(t,e,r){var n=this,o=O(R(t,e,r),4);return t=o[0],e=o[1],r=o[3],A.call(this,(function(){return n.editor.removeFormat(t,e)}),r,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Z.sources.API;return A.call(this,(function(){e=new(o())(e);var n=r.getLength(),i=r.editor.deleteText(0,n),u=r.editor.applyDelta(e),a=r.editor.deleteText(r.getLength()-1,1);return r.emitter.emit(t.events.CONTENT_SETTED),i.compose(u).compose(a)}),n)}},{key:"setSelection",value:function(e,r,n){if(null==e)this.selection.setRange(null,r||t.sources.API);else{var o=O(R(e,r,n),4);e=o[0],r=o[1],n=o[3],this.selection.setRange(new h.e(Math.max(0,e),r),n),n!==f.Z.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Z.sources.API,r=(new(o())).insert(t);return this.setContents(r,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.Z.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Z.sources.API;return A.call(this,(function(){return t=new(o())(t),e.editor.applyDelta(t,r)}),r,!0)}},{key:"applyCompositionChanges",value:function(){this.composition.handleCompositionEnd({})}}],n=[{key:"debug",value:function(t){!0===t&&(t="log"),d.Z.level(t)}},{key:"find",value:function(t){return y.Z.get(t)||k.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&N.error("Cannot import ".concat(t,". Are you sure it was registered?")),this.imports[t]}},{key:"register",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/".concat(o),t,e):Object.keys(t).forEach((function(n){r.register(n,t[n],e)}))}else null==this.imports[t]||n||N.warn("Overwriting ".concat(t," with"),e),this.imports[t]=e,0!==t.indexOf("blots/")&&0!==t.indexOf("formats/")||"abstract"===e.blotName||k.register(e),"function"==typeof e.register&&e.register(k)}}],r&&P(e.prototype,r),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function T(t,e){if((e=l()({container:t,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0}},e)).theme&&e.theme!==x.DEFAULTS.theme){if(e.theme=x.import("themes/".concat(e.theme)),null==e.theme)throw new Error("Invalid theme ".concat(e.theme,". Did you register it?"))}else e.theme=b.Z;var r=u()(e.theme.DEFAULTS);[r,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var n=Object.keys(r.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var r=x.import("modules/".concat(e));return null==r?N.error("Cannot load ".concat(e," module. Are you sure you registered it?")):t[e]=r.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=l()({},x.DEFAULTS,{modules:n},r,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,r){return e.modules[r]&&(t[r]=e.modules[r]),t}),{}),e}function A(t,e,r,n){if(!this.isEnabled()&&e===f.Z.sources.USER&&!this.allowReadOnlyEdits)return new(o());var i=null==r?null:this.getSelection(),u=this.editor.delta,a=t();if(null!=i&&(!0===r&&(r=i.index),null==n?i=C(i,a,e):0!==n&&(i=C(i,r,n,e)),this.setSelection(i,f.Z.sources.SILENT)),a.length()>0){var l,c,s=[f.Z.events.TEXT_CHANGE,a,u,e];if((l=this.emitter).emit.apply(l,[f.Z.events.EDITOR_CHANGE].concat(s)),e!==f.Z.sources.SILENT)(c=this.emitter).emit.apply(c,s)}return a}function R(t,e,r,n,o){var i={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=n,n=r,r=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=n,n=r,r=e,e=0),"object"===g(r)?(i=r,o=n):"string"==typeof r&&(null!=n?i[r]=n:o=r),[t,e,i,o=o||f.Z.sources.API]}function C(t,e,r,n){if(null==t)return null;var i,u;if(e instanceof o()){var a=O([t.index,t.index+t.length].map((function(t){return e.transformPosition(t,n!==f.Z.sources.USER)})),2);i=a[0],u=a[1]}else{var l=O([t.index,t.index+t.length].map((function(t){return t<e||t===e&&n===f.Z.sources.USER?t:r>=0?t+r:Math.max(e,t+r)})),2);i=l[0],u=l[1]}return new h.e(i,u-i)}x.DEFAULTS={bounds:null,modules:{},placeholder:"",readOnly:!1,registry:k,scrollingContainer:null,theme:"default"},x.events=f.Z.events,x.sources=f.Z.sources,x.version="1.7.3",x.MS_LIST_DATA_KEY="mso-list-data",x.replaceStyleAttribute=function(t){return t.replace(/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,(function(t,e,r,n){return e+r.replace(/style\s*=/gi,"".concat(E,"="))+n}))},x.restoreStyleAttribute=function(t){t.querySelectorAll("[".concat(E,"]")).forEach((function(t){var e=t.getAttribute(E);t.style=e,t.setAttribute(x.MS_LIST_DATA_KEY,e),t.removeAttribute(E)}))},x.imports={delta:o(),parchment:c,"core/module":p.Z,"core/theme":b.Z}},7800:(t,e,r)=>{"use strict";r.d(e,{Z:()=>g,e:()=>m});var n=r(1233),o=r(8805),i=r.n(o),u=r(4506),a=r(2069);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===l(i)?i:String(i)),n)}var o,i}function y(t,e,r){return e&&h(t.prototype,e),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var b=(0,r(3122).Z)("quill:selection");function v(t){return t<0?0:t}var m=y((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,t),this.index=e,this.length=r})),g=function(){function t(e,r,n){var o=this;d(this,t),this.emitter=r,this.scroll=e,this.composition=n,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new m(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||o.composition.isCompositionInProgress()||setTimeout(o.update.bind(o,a.Z.sources.USER),1)})),this.emitter.on(a.Z.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var t=o.getNativeRange();null!=t&&t.start.node!==o.cursor.textNode&&o.emitter.once(a.Z.events.SCROLL_UPDATE,(function(){try{o.root.contains(t.start.node)&&o.root.contains(t.end.node)&&o.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset),o.update(a.Z.sources.SILENT)}catch(t){}}))}})),this.emitter.on(a.Z.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var r=e.range,n=r.startNode,i=r.startOffset,u=r.endNode,l=r.endOffset;o.setNativeRange(n,i,u,l),o.update(a.Z.sources.SILENT)}})),this.update(a.Z.sources.SILENT)}return y(t,[{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(a.Z.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){this.scroll.update();var r=this.getNativeRange();if(null!=r&&r.native.collapsed&&!this.scroll.query(t,n.Scope.BLOCK)){if(r.start.node!==this.cursor.textNode){var o=this.scroll.find(r.start.node,!1);if(null==o)return;if(o instanceof n.LeafBlot){var i=o.split(r.start.offset);o.parent.insertBefore(this.cursor,i)}else o.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}},{key:"getBounds",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),r=Math.min(t+r,n-1)-t;var o=this.scroll.leaf(t),i=s(o,2),u=i[0],a=i[1];if(null==u)return null;var l=this.getPositionData(u,a,!0),c=s(l,2);e=c[0],a=c[1];var f=document.createRange();if(r>0){f.setStart(e,a);var p=this.scroll.leaf(t+r),h=s(p,2);if(u=h[0],a=h[1],null==u)return null;var y=this.getPositionData(u,a,!0),d=s(y,2);return e=d[0],a=d[1],f.setEnd(e,a),f.getBoundingClientRect()}var b,m="left";if(e instanceof Text){if(a<e.data.length)f.setStart(e,a),f.setEnd(e,a+1);else{var g=v(a-1);f.setStart(e,g),f.setEnd(e,a),m="right"}b=f.getBoundingClientRect()}else b=u.domNode.getBoundingClientRect(),a>0&&(m="right");return{bottom:b.top+b.height,height:b.height,left:b[m],right:b[m],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var t,e,r=this.root.getRootNode(),n=null!==(t=null===(e=r.getSelection)||void 0===e?void 0:e.call(r))&&void 0!==t?t:document.getSelection();if(null==n||n.rangeCount<=0)return null;var o=n.getRangeAt(0);if(null==o)return null;var i=this.normalizeNative(o);return b.info("getNativeRange",i),i}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){var t=this.root.getRootNode();return t.activeElement===this.root||w(this.root,t.activeElement)}},{key:"normalizedToRange",value:function(t){var e=this,r=[[t.start.node,t.start.offset]];t.native.collapsed||r.push([t.end.node,t.end.offset]);var o=r.map((function(t){var r=s(t,2),o=r[0],i=r[1],u=e.scroll.find(o,!0),a=u.offset(e.scroll);return 0===i?a:u instanceof n.LeafBlot?a+u.index(o,i):a+u.length()})),i=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),u=Math.min.apply(Math,[i].concat(c(o)));return new m(u,i-u)}},{key:"normalizeNative",value:function(t){if(!w(this.root,t.startContainer)||!t.collapsed&&!w(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,r=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>r)e=e.childNodes[r],r=0;else{if(e.childNodes.length!==r)break;r=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length>0?e.childNodes.length:e.childNodes.length+1}t.node=e,t.offset=r})),e}},{key:"rangeToNative",value:function(t){var e=this,r=t.collapsed?[t.index]:[t.index,t.index+t.length],n=[],o=this.scroll.length();return r.forEach((function(t,r){t=Math.min(o-1,t);var i=s(e.scroll.leaf(t),2),u=i[0],a=i[1],l=s(e.getPositionData(u,a,0!==r),2),c=l[0],f=l[1];n.push(c,f)})),n.length<2?n.concat(n):n}},{key:"getPositionData",value:function(t,e,r){return t instanceof n.LeafBlot?t.position(e,r):[t.domNode,e]}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var r=this.getBounds(e.index,e.length);if(null!=r){var n=this.scroll.length()-1,o=s(this.scroll.line(Math.min(e.index,n)),1)[0],i=o;if(e.length>0)i=s(this.scroll.line(Math.min(e.index+e.length,n)),1)[0];if(null!=o&&null!=i){var u=t.getBoundingClientRect();r.top<u.top?t.scrollTop-=u.top-r.top:r.bottom>u.bottom&&(t.scrollTop+=r.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b.info("setNativeRange",t,e,r,n),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=r.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var u=this.getNativeRange()||{},a=u.native;if(null==a||o||t!==a.startContainer||e!==a.startOffset||r!==a.endContainer||n!==a.endOffset){"BR"===t.tagName&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),"BR"===r.tagName&&(n=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);var l=document.createRange();e=v(e),n=v(n),l.setStart(t,e),l.setEnd(r,n),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Z.sources.API;if("string"==typeof e&&(r=e,e=!1),b.info("setRange",t),null!=t){var n=this.rangeToNative(t);this.setNativeRange.apply(this,c(n).concat([e]))}else this.setNativeRange(null);this.update(r)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z.sources.USER,e=this.lastRange,r=this.getRange(),n=s(r,2),o=n[0],l=n[1];if(this.lastRange=o,this.lastNative=l,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.Z)(e,this.lastRange)){var c;if(!this.composition.isCompositionInProgress()&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode){var f=this.cursor.restore();f&&this.setNativeRange(f.startNode,f.startOffset,f.endNode,f.endOffset)}var p,h=[a.Z.events.SELECTION_CHANGE,i()(this.lastRange),i()(e),t];if((c=this.emitter).emit.apply(c,[a.Z.events.EDITOR_CHANGE].concat(h)),t!==a.Z.sources.SILENT)(p=this.emitter).emit.apply(p,h)}}}]),t}();function w(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}},1690:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,u=void 0,u=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(u)?u:String(u)),o)}var i,u}r.d(e,{Z:()=>u});var i=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=r,this.modules={}}var e,r,n;return e=t,(r=[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/".concat(t));return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();i.DEFAULTS={modules:{}},i.themes={default:i};const u=i},715:(t,e,r)=>{"use strict";r.d(e,{HE:()=>a,dk:()=>u,if:()=>i});var n=r(1233),o={scope:n.Scope.BLOCK,whitelist:["right","center","justify"]},i=new n.Attributor("align","align",o),u=new n.ClassAttributor("align","ql-align",o),a=new n.StyleAttributor("align","text-align",o)},7898:(t,e,r)=>{"use strict";r.d(e,{Y:()=>i,w:()=>u});var n=r(1233),o=r(6039),i=new n.ClassAttributor("background","ql-bg",{scope:n.Scope.INLINE}),u=new o.OO("background","background-color",{scope:n.Scope.INLINE})},3991:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,u=void 0,u=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(u)?u:String(u)),o)}var i,u}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=a(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},u.apply(this,arguments)}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}r.d(e,{Z:()=>h});var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(s,t);var e,r,n,a=c(s);function s(){return o(this,s),a.apply(this,arguments)}return e=s,n=[{key:"create",value:function(){return u(f(s),"create",this).call(this)}},{key:"formats",value:function(){return!0}}],(r=[{key:"optimize",value:function(t){u(f(s.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(r(6603).Z);p.blotName="bold",p.tagName=["STRONG","B"];const h=p},7309:(t,e,r)=>{"use strict";r.d(e,{EK:()=>S,ZP:()=>j,se:()=>O});var n=r(6446),o=r(4122),i=r(3657),u=r(6603),a=r(8222),l=r(3553),c=r(281);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==s(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===s(i)?i:String(i)),n)}var o,i}function h(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=d(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},y.apply(this,arguments)}function d(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=w(t)););return t}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=w(t);if(e){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}function g(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}var O=function(t){b(r,t);var e=m(r);function r(){return f(this,r),e.apply(this,arguments)}return h(r,[{key:"code",value:function(t,e){var r=this.children.map((function(t){return t.length()<=1?"":t.domNode.textContent})).join("\n").slice(t,t+e);return(0,a.b)(r)}},{key:"html",value:function(t,e){return"<pre>\n".concat(this.code(t,e),"\n</pre>")}}],[{key:"create",value:function(t){var e=y(w(r),"create",this).call(this,t);return e.setAttribute("spellcheck",!1),e}}]),r}(l.Z),j=function(t){b(r,t);var e=m(r);function r(){return f(this,r),e.apply(this,arguments)}return h(r,null,[{key:"register",value:function(){c.ZP.register(O)}}]),r}(n.ZP),S=function(t){b(r,t);var e=m(r);function r(){return f(this,r),e.apply(this,arguments)}return h(r)}(u.Z);S.blotName="code",S.tagName="CODE",j.blotName="code-block",j.className="ql-code-block",j.tagName="DIV",O.blotName="code-block-container",O.className="ql-code-block-container",O.tagName="DIV",O.allowedChildren=[j],j.allowedChildren=[a.Z,o.Z,i.Z],j.requiredContainer=O,j.TAB=" "},6039:(t,e,r)=>{"use strict";r.d(e,{HQ:()=>d,Hn:()=>y,OO:()=>h});var n=r(1233);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,u=void 0,u=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===o(u)?u:String(u)),n)}var i,u}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=l(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},a.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(l,t);var e,r,n,o=s(l);function l(){return i(this,l),o.apply(this,arguments)}return e=l,(r=[{key:"value",value:function(t){var e=a(p(l.prototype),"value",this).call(this,t);if(0!==e.indexOf("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");var r=e.split(",").map((function(t){return"00".concat(parseInt(t,10).toString(16)).slice(-2)})).join("");return"#".concat(r)}}])&&u(e.prototype,r),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(n.StyleAttributor),y=new n.ClassAttributor("color","ql-color",{scope:n.Scope.INLINE}),d=new h("color","color",{scope:n.Scope.INLINE})},4048:(t,e,r)=>{"use strict";r.d(e,{H8:()=>a,IF:()=>i,hY:()=>u});var n=r(1233),o={scope:n.Scope.BLOCK,whitelist:["rtl"]},i=new n.Attributor("direction","dir",o),u=new n.ClassAttributor("direction","ql-direction",o),a=new n.StyleAttributor("direction","direction",o)},5832:(t,e,r)=>{"use strict";r.d(e,{H:()=>d,_:()=>y});var n=r(1233);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,u=void 0,u=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===o(u)?u:String(u)),n)}var i,u}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=l(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},a.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var h={scope:n.Scope.INLINE,whitelist:["serif","monospace"]},y=new n.ClassAttributor("font","ql-font",h),d=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(l,t);var e,r,n,o=s(l);function l(){return i(this,l),o.apply(this,arguments)}return e=l,(r=[{key:"value",value:function(t){return a(p(l.prototype),"value",this).call(this,t).replace(/["']/g,"")}}])&&u(e.prototype,r),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(n.StyleAttributor))("font","font-family",h)},7256:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,u=void 0,u=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(u)?u:String(u)),o)}var i,u}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=a(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},u.apply(this,arguments)}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}r.d(e,{N:()=>h,Z:()=>p});var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(s,t);var e,r,n,a=c(s);function s(){return o(this,s),a.apply(this,arguments)}return e=s,n=[{key:"create",value:function(t){var e=u(f(s),"create",this).call(this,t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return h(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}],(r=[{key:"format",value:function(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("href",this.constructor.sanitize(e)):u(f(s.prototype),"format",this).call(this,t,e)}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(r(6603).Z);function h(t,e){var r=document.createElement("a");r.href=t;var n=r.href.slice(0,r.href.indexOf(":"));return e.indexOf(n)>-1}p.blotName="link",p.tagName="A",p.SANITIZED_URL="about:blank",p.PROTOCOL_WHITELIST=["http","https","mailto","tel"]},1629:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i,m:()=>o});var n=r(1233),o=new n.ClassAttributor("size","ql-size",{scope:n.Scope.INLINE,whitelist:["small","large","huge"]}),i=new n.StyleAttributor("size","font-size",{scope:n.Scope.INLINE,whitelist:["10px","18px","32px"]})},1342:(t,e,r)=>{"use strict";r.d(e,{Du:()=>s,h6:()=>f,kk:()=>c,yA:()=>l});var n=r(6062),o=r(1801),i=r(8252);function u(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var l=i.F1.map((function(t){return(0,n.Z)(i.Pw,t)})),c=i.Mu.map((function(t){return(0,o.Z)(i.Pw,t)})),s=c.reduce((function(t,e){return t[e.attrName]=e,t}),{}),f=[].concat(u(l),u(c)).reduce((function(t,e){return t[e.keyName]=e,t}),{})},8252:(t,e,r)=>{"use strict";r.d(e,{F1:()=>o,Mu:()=>i,Pw:()=>n,fU:()=>u});var n={name:"cell",allowedTags:["TH","TD","TR"]},o=["height","width"],i=["height","width","vertical-align","text-align","background-color","border","border-style","border-width","border-color","padding","padding-top","padding-right","padding-bottom","padding-left"],u=new Set([].concat(o,i))},6062:(t,e,r)=>{"use strict";r.d(e,{Z:()=>l});var n=r(1674),o=r(2141),i=r(3398),u=["name"];function a(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function l(t,e){var r=t.name,l=a(t,u),c="".concat(r).concat((0,o.Z)(e)),s="".concat(i.WT.attribute).concat(r,"_").concat(e);return new n.Z(c,s,l)}},1801:(t,e,r)=>{"use strict";r.d(e,{Z:()=>s});var n=r(4569),o=r(2141),i=r(3398),u=["name","formatName"];function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function s(t,e){var r=t.name,l=t.formatName,s=c(t,u),f=a(e.split("-"),2),p=f[0],h=f[1],y="".concat(r).concat((0,o.Z)(null!=l?l:p)).concat(h?(0,o.Z)(h):""),d="".concat(i.WT.style).concat(r,"_").concat(e);return new n.Z(y,d,s)}},319:(t,e,r)=>{"use strict";r.d(e,{Qu:()=>l,VT:()=>c,Zt:()=>f,li:()=>s});var n=r(6062),o=r(1801),i=r(19);function u(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var l=i.N2.map((function(t){return(0,n.Z)(i.Sp,t)})),c=i.GX.map((function(t){return(0,o.Z)(i.Sp,t)})),s=c.reduce((function(t,e){return t[e.attrName]=e,t}),{}),f=[].concat(u(l),u(c)).reduce((function(t,e){return t[e.keyName]=e,t}),{})},19:(t,e,r)=>{"use strict";r.d(e,{GX:()=>i,N2:()=>o,Sp:()=>n,bc:()=>u});var n={name:"table",allowedTags:["TABLE"]},o=["height","width"],i=["height","width","text-align","background-color","border","border-style","border-width","border-color"],u=new Set([].concat(o,i))},8536:(t,e,r)=>{"use strict";function n(){return Math.random().toString(36).slice(2,6)}r.d(e,{Z:()=>n})},1969:(t,e,r)=>{"use strict";r.d(e,{KA:()=>B,Lv:()=>U,RM:()=>I,SC:()=>L,iD:()=>T,pj:()=>R,xD:()=>D,xJ:()=>M,xs:()=>C,zW:()=>x});var n=r(6446),o=r(4122),i=r(3553),u=r(5874),a=r(1342),l=r(319),c=r(8536),s=r(2795);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||y(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===f(i)?i:String(i)),n)}var o,i}function m(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=w(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},g.apply(this,arguments)}function w(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function O(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=_(t);if(e){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}var N=["row","cell"],E="data-table-";function k(t,e,r){t.forEachAt(e,r,(function(t,e,r){t.deleteAt(e,r)}))}var x=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r,[{key:"optimize",value:function(){var t,e=this.domNode.getAttribute("".concat(E,"row"));if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var n=this.domNode,o={row:e};Object.keys(a.Du).forEach((function(t){var e=n.dataset[t.toLowerCase()];e&&(o[t]=e)})),this.wrap(this.statics.requiredContainer.blotName,o)}for(var i=arguments.length,u=new Array(i),l=0;l<i;l++)u[l]=arguments[l];(t=g(_(r.prototype),"optimize",this)).call.apply(t,[this].concat(u))}},{key:"format",value:function(t,e){"tableCellLine"===t&&null===e&&(e=this.formats().tableCellLine);var n=N.indexOf(t)>-1;if(n||l.li[t]||a.Du[t]){var o,i,u="data-".concat(n?"table-":"").concat(t.toLowerCase());if((0,s.Z)(this.domNode,u,e),a.Du[t])null===(o=this.cell())||void 0===o||o.format(t,e);if(l.li[t])null===(i=this.cell())||void 0===i||null===(i=i.table())||void 0===i||i.format(t,e)}else g(_(r.prototype),"format",this).call(this,t,e)}},{key:"cell",value:function(){return"row"in this.parent?this.parent:null}}],[{key:"create",value:function(t){var e=g(_(r),"create",this).call(this,t);return N.forEach((function(r){var n,o="row"===r?U:z;e.setAttribute("".concat(E).concat(r),null!==(n=null==t?void 0:t[r])&&void 0!==n?n:o())})),e}},{key:"formats",value:function(t){return N.reduce((function(e,r){var n="".concat(E).concat(r);return t.hasAttribute(n)&&(e[r]=t.getAttribute(n)||void 0),e}),{})}}]),r}(n.ZP);x.blotName="tableCellLine",x.className="ql-table-cell-line",x.tagName="P";var T=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r)}(x);T.blotName="tableHeaderCellLine",T.className="ql-table-header-cell-line";var A=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r,[{key:"format",value:function(t,e){var r;null===(r=a.Du[t])||void 0===r||r.add(this.domNode,e)}},{key:"checkMerge",value:function(){if(g(_(r.prototype),"checkMerge",this).call(this)&&null!=this.next.children.head){var t=this.children.head.formats()[this.children.head.statics.blotName],e=this.children.tail.formats()[this.children.tail.statics.blotName],n=this.next.children.head.formats()[this.next.children.head.statics.blotName],o=this.next.children.tail.formats()[this.next.children.tail.statics.blotName];return t.cell===e.cell&&t.cell===n.cell&&t.cell===o.cell}return!1}},{key:"formats",value:function(){return r.cellFormats(this.domNode)}},{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"row",value:function(){return"table"in this.parent?this.parent:null}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){var t;return null===(t=this.row())||void 0===t?void 0:t.table()}},{key:"optimize",value:function(){var t,e,n=null!==(t=this.domNode.getAttribute("".concat(E,"row")))&&void 0!==t?t:this.domNode.getAttribute("".concat(E,"header-row"));!this.statics.requiredContainer||this.parent instanceof this.statics.requiredContainer||this.wrap(this.statics.requiredContainer.blotName,{row:n});for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];(e=g(_(r.prototype),"optimize",this)).call.apply(e,[this].concat(i))}},{key:"deleteAt",value:function(t,e){k(this.children,t,e)}}],[{key:"create",value:function(t){var e=g(_(r),"create",this).call(this,t);return t&&Object.keys(t).forEach((function(r){var n;null===(n=a.Du[r])||void 0===n||n.add(e,t[r])})),e}},{key:"cellFormats",value:function(t){var e,r={};(t.hasAttribute("".concat(E,"row"))||t.hasAttribute("".concat(E,"header-row")))&&(r.row=null!==(e=t.getAttribute("".concat(E,"row")))&&void 0!==e?e:t.getAttribute("".concat(E,"header-row")));return Object.keys(a.Du).forEach((function(e){var n,o=null===(n=t.firstElementChild)||void 0===n?void 0:n.dataset[e.toLowerCase()];o&&(r[e]=o)})),r}}]),r}(i.Z);A.tagName=["TD","TH"];var R=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r,[{key:"format",value:function(t,e){"row"===t?(this.domNode.setAttribute("".concat(E).concat(t),e),this.children.forEach((function(r){r.format(t,e)}))):g(_(r.prototype),"format",this).call(this,t,e)}}],[{key:"create",value:function(t){var e=g(_(r),"create",this).call(this,t),n="".concat(E,"row");return null!=t&&t.row&&e.setAttribute(n,t.row),e}}]),r}(A);R.blotName="tableCell",R.className="ql-table-data-cell",R.dataAttribute="".concat(E,"row"),R.defaultChild=x;var C=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r,[{key:"format",value:function(t,e){"row"===t?(this.domNode.setAttribute("".concat(E).concat(t),e),this.children.forEach((function(r){r.format(t,e)}))):g(_(r.prototype),"format",this).call(this,t,e)}}],[{key:"create",value:function(t){var e=g(_(r),"create",this).call(this,t),n="".concat(E,"header-row");return t&&t.row&&e.setAttribute(n,t.row),e}}]),r}(A);C.tagName=["TH","TD"],C.className="ql-table-header-cell",C.blotName="tableHeaderCell",C.dataAttribute="".concat(E,"header-row"),C.defaultChild=T;var Z=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r,[{key:"checkMerge",value:function(){if(g(_(r.prototype),"checkMerge",this).call(this)&&(0,u.Z)(this.next.children.head)){var t=this.children.head.formats(),e=this.children.tail.formats(),n=this.next.children.head.formats(),o=this.next.children.tail.formats();return t.row===e.row&&t.row===n.row&&t.row===o.row}return!1}},{key:"optimize",value:function(){for(var t,e=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(t=g(_(r.prototype),"optimize",this)).call.apply(t,[this].concat(o));var a=this.childFormatName;this.children.forEach((function(t){if((0,u.Z)(t.next)){var r=t.formats(),n=t.next.formats();if(r[a]!==n[a]){var o=e.splitAfter(t);o&&o.optimize(),e.prev&&e.prev.optimize()}}}))}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var t;return null===(t=this.parent)||void 0===t?void 0:t.parent}},{key:"formats",value:function(){var t={},e="".concat(E,"row");return this.domNode.hasAttribute(e)&&(t[e]=this.domNode.getAttribute(e)),t}}],[{key:"create",value:function(t){var e=g(_(r),"create",this).call(this,t);return null!=t&&t.row&&e.setAttribute("".concat(E,"row"),t.row),e}}]),r}(i.Z);Z.tagName="TR";var L=function(t){O(r,t);var e=S(r);function r(t,n){var o;return b(this,r),(o=e.call(this,t,n)).childFormatName="table",o}return m(r,[{key:"deleteAt",value:function(t,e){k(this.children,t,e)}}]),r}(Z);L.blotName="tableRow";var B=function(t){O(r,t);var e=S(r);function r(t,n){var o;return b(this,r),(o=e.call(this,t,n)).childFormatName="tableHeaderCell",o}return m(r)}(Z);B.blotName="tableHeaderRow";var q=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r,[{key:"optimize",value:function(){var t;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var e,n=(null===(e=this.children.head.children.head.children)||void 0===e||null===(e=e.head)||void 0===e?void 0:e.domNode)||null,o={};n&&Object.keys(l.li).forEach((function(t){var e=n.dataset[t.toLowerCase()];e&&(o[t]=e)})),this.wrap(this.statics.requiredContainer.blotName,o)}for(var i=arguments.length,u=new Array(i),a=0;a<i;a++)u[a]=arguments[a];(t=g(_(r.prototype),"optimize",this)).call.apply(t,[this].concat(u))}}]),r}(i.Z),I=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r)}(q);I.blotName="tableBody",I.tagName="TBODY";var D=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r)}(q);D.blotName="tableHeader",D.tagName="THEAD";var M=function(t){O(r,t);var e=S(r);function r(){return b(this,r),e.apply(this,arguments)}return m(r,[{key:"balanceCells",value:function(){var t=this.descendants(B),e=this.descendants(L),r=this.getMaxTableColCount(t,e);this.balanceRows(r,t,C),this.balanceRows(r,e,R)}},{key:"getMaxTableColCount",value:function(t,e){return Math.max(this.getMaxRowColCount(t),this.getMaxRowColCount(e))}},{key:"getMaxRowColCount",value:function(t){return Math.max.apply(Math,h(t.map((function(t){return t.children.length}))))}},{key:"balanceRows",value:function(t,e,r){var n=this;e.forEach((function(e){new Array(t-e.children.length).fill(0).forEach((function(){var t;(0,u.Z)(e.children.head)&&(t=r.cellFormats(e.children.head.domNode));var o=n.scroll.create(r.blotName,t),i=n.scroll.create(r.allowedChildren[0].blotName,t);o.appendChild(i),e.appendChild(o),o.optimize()}))}))}},{key:"cells",value:function(t){return this.rows().map((function(e){return e.children.at(t)}))}},{key:"deleteColumn",value:function(t){var e=this;[D,I].forEach((function(r){var n=p(e.descendants(r),1)[0];(0,u.Z)(n)&&(0,u.Z)(n.children.head)&&n.children.forEach((function(e){var r=e.children.at(t);(0,u.Z)(r)&&r.remove()}))}))}},{key:"insertColumn",value:function(t){var e=this;[D,I].forEach((function(r){var n=p(e.descendants(r),1)[0];if((0,u.Z)(n)&&(0,u.Z)(n.children.head)){var i=r===D?C:R,a=r===D?T:x;n.children.forEach((function(r){var n=r.children.at(t),u=a.formats(r.children.head.children.head.domNode),l=e.scroll.create(i.blotName,{row:u.row}),c=e.scroll.create(a.blotName,{row:u.row}),s=e.scroll.create(o.Z.blotName);c.appendChild(s),l.appendChild(c),r.insertBefore(l,n)}))}}))}},{key:"insertRow",value:function(t){var e=this,r=p(this.descendants(I),1)[0];if((0,u.Z)(r)&&(0,u.Z)(r.children.head)){var n=U(),i=this.scroll.create(L.blotName,{row:n});r.children.head.children.forEach((function(){var t=e.scroll.create(R.blotName,{row:n}),r=e.scroll.create(x.blotName,{row:n}),u=e.scroll.create(o.Z.blotName);r.appendChild(u),t.appendChild(r),i.appendChild(t)}));var a=r.children.at(t);r.insertBefore(i,a)}}},{key:"insertHeaderRow",value:function(){var t=this,e=p(this.descendants(D),1)[0],r=p(this.descendants(I),1)[0];if(!(0,u.Z)(e)&&(0,u.Z)(r)&&(0,u.Z)(r.children.head)){var n=U(),i=this.scroll.create(D.blotName),a=this.scroll.create(B.blotName),l=this.children.at(0);i.appendChild(a),r.children.head.children.forEach((function(){var e=t.scroll.create(C.blotName,{row:n}),r=t.scroll.create(T.blotName,{row:n}),i=t.scroll.create(o.Z.blotName);r.appendChild(i),e.appendChild(r),a.appendChild(e),e.optimize()})),this.insertBefore(i,l)}}},{key:"rows",value:function(){var t=this.children.head;return(0,u.Z)(t)?t.children.map((function(t){return t})):[]}},{key:"formats",value:function(){var t={},e=this.cells()[0].domNode.firstElementChild;return Object.keys(l.li).forEach((function(r){var n=null==e?void 0:e.dataset[r.toLowerCase()];n&&(t[r]=n)})),t}},{key:"format",value:function(t,e){var r=l.li[t];if(r){var n="data-".concat(t.toLowerCase());this.cells().forEach((function(t){(0,s.Z)(t.children.head.domNode,n,e)})),r.add(this.domNode,e)}}}],[{key:"create",value:function(t){var e=g(_(r),"create",this).call(this,t);return t&&Object.keys(t).forEach((function(r){var n;null===(n=l.li[r])||void 0===n||n.add(e,t[r])})),e}}]),r}(i.Z);function U(){return"row-".concat((0,c.Z)())}function z(){return"cell-".concat((0,c.Z)())}M.blotName="tableContainer",M.tagName="TABLE",M.allowedChildren=[D,I],I.requiredContainer=M,D.requiredContainer=M,I.allowedChildren=[L],L.requiredContainer=I,L.allowedChildren=[R],R.requiredContainer=L,x.requiredContainer=R,R.allowedChildren=[x],D.allowedChildren=[B],B.requiredContainer=D,T.requiredContainer=C,C.allowedChildren=[T],B.allowedChildren=[C],C.requiredContainer=B},2795:(t,e,r)=>{"use strict";function n(t,e,r){r?t.setAttribute(e,r):t.removeAttribute(e)}r.d(e,{Z:()=>n})},5635:(t,e,r)=>{"use strict";r.d(e,{HI:()=>I,PF:()=>D,ZP:()=>q,fw:()=>F});var n=r(9098),o=r.n(n),i=r(1233),u=r(6446),a=r(281),l=r(3122),c=r(7094),s=r(715),f=r(7898),p=r(7309),h=r(6039),y=r(4048),d=r(5832),b=r(1629),v=r(3071),m=r(2141);function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function j(t,e,r){return(e=N(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return P(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,N(n.key),n)}}function N(t){var e=function(t,e){if("object"!==O(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===O(e)?e:String(e)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=A(t);if(e){var o=A(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return x(this,r)}}function x(t,e){if(e&&("object"===O(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return T(t)}function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}var R=(0,l.Z)("quill:clipboard"),C=[[3,$],[3,K],["br",function(t,e){D(e,"\n")||e.insert("\n");return e}],[1,K],[1,function(t,e,r){var n=r.query(t);if(null==n)return e;if(n.prototype instanceof i.EmbedBlot){var u={},a=n.value(t);if(null!=a)return u[n.blotName]=a,(new(o())).insert(u,n.formats(t,r))}else if(n.prototype instanceof i.BlockBlot&&!D(e,"\n")&&e.insert("\n"),"function"==typeof n.formats)return I(e,n.blotName,n.formats(t,r));return e}],[1,function(t,e,r){if(-1===["TD","TH","TR","TABLE"].indexOf(t.tagName)){var n=i.Attributor.keys(t),o=i.ClassAttributor.keys(t),u=i.StyleAttributor.keys(t),a={};if(n.concat(o).concat(u).forEach((function(e){var n=r.query(e,i.Scope.ATTRIBUTE);null!=n&&(a[n.attrName]=n.value(t),a[n.attrName])||(null==(n=L[e])||n.attrName!==e&&n.keyName!==e||(a[n.attrName]=n.value(t)||void 0),null==(n=B[e])||n.attrName!==e&&n.keyName!==e||(n=B[e],a[n.attrName]=n.value(t)||void 0))})),Object.keys(a).length>0)return I(e,a)}return e}],[1,function(t,e){var r={},n=t.style||{};["height","width"].forEach((function(e){var o=-1!==["TD","TH"].indexOf(t.tagName),i="TABLE"===t.tagName;if((o||i)&&n[e]){var u="".concat(i?"table":"cell").concat((0,m.Z)(e));r[u]=n[e]}})),"italic"===n.fontStyle&&(r.italic=!0);-1!==n.textDecoration.indexOf("underline")&&(r.underline=!0);-1!==n.textDecoration.indexOf("line-through")&&(r.strike=!0);(0===n.fontWeight.indexOf("bold")||parseInt(n.fontWeight,10)>=700)&&(r.bold=!0);Object.keys(r).length>0&&(e=I(e,r));if(parseFloat(n.textIndent||0)>0)return(new(o())).insert("\t").concat(e);return e}],["li",function(t,e,r){var n=r.query(t);if(null==n||"list"!==n.blotName||!D(e,"\n"))return e;var i=-1,u=t.parentNode;for(;null!=u;)-1!==["OL","UL"].indexOf(u.tagName)&&(i+=1),u=u.parentNode;return i<=0?e:e.reduce((function(t,e){return e.attributes&&"number"==typeof e.attributes.indent?t.push(e):t.insert(e.insert,w({indent:i},e.attributes||{}))}),new(o()))}],["ol, ul",function(t,e){var r="OL"===t.tagName?"ordered":"bullet";return I(e,"list",r)}],["pre",function(t,e,r){var n=r.query("code-block"),o=!n||n.formats(t,r);return I(e,"code-block",o)}],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["strike",H.bind(H,"strike")],["style",function(){return new(o())}]],Z=[$,K],L=[s.if,y.IF].reduce((function(t,e){return t[e.keyName]=e,t}),{}),B=[s.HE,f.w,h.HQ,y.H8,d.H,b.Z].reduce((function(t,e){return t[e.keyName]=e,t}),{}),q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(u,t);var e,r,n,i=k(u);function u(t,e){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(n=i.call(this,t,e)).quill.root.addEventListener("copy",(function(t){return n.onCaptureCopy(t,!1)})),n.quill.root.addEventListener("cut",(function(t){return n.onCaptureCopy(t,!0)})),n.quill.root.addEventListener("paste",n.onCapturePaste.bind(T(n))),n.matchers=[],n.tableBlots=null!==(r=e.tableBlots)&&void 0!==r?r:[],n.multilineParagraph=!1,C.concat(n.options.matchers).forEach((function(t){var e=S(t,2),r=e[0],o=e[1];n.addMatcher(r,o)})),n}return e=u,r=[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"addTableBlot",value:function(t){this.tableBlots.push(t)}},{key:"convert",value:function(t){var e=t.html,r=t.text,n=t.keepLastNewLine,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i[p.ZP.blotName]?(new(o())).insert(r,j({},p.ZP.blotName,i[p.ZP.blotName])):e?this.applyMatchers(e,n,i):this.applyTextMatchers(r)}},{key:"applyTextMatchers",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(0===e.length)return new(o());var r=this.prepareTextMatching(),n=this.quill.root.ownerDocument.createElement("div");n.textContent=e;var i=n.childNodes[0];return r.reduce((function(e,r){return r(i,e,t.quill.scroll)}),new(o()))}},{key:"applyMatchers",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.ZP.replaceStyleAttribute(t),u=(new DOMParser).parseFromString(i,"text/html");a.ZP.restoreStyleAttribute(u);var l=u.body,c=new WeakMap,s=this.prepareMatching(l,c),f=S(s,2),p=f[0],h=f[1],y=F(this.quill.scroll,l,p,h,c,this.multilineParagraph);return e||!D(y,"\n")||null!=y.ops[y.ops.length-1].attributes&&!Object.values(n).some((function(t){return r.tableBlots.includes(t)}))?y:y.compose((new(o())).retain(y.length()-1).delete(1))}},{key:"dangerouslyPasteHTML",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.ZP.sources.API;if("string"==typeof t){var n=this.convert({html:t,text:""});this.quill.setContents(n,e),this.quill.setSelection(0,a.ZP.sources.SILENT)}else{var i=this.convert({html:e,text:""});this.quill.updateContents((new(o())).retain(t).concat(i),r),this.quill.setSelection(t+i.length(),a.ZP.sources.SILENT)}}},{key:"onCaptureCopy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t.defaultPrevented&&t.clipboardData){t.preventDefault();var r=this.quill.selection.getRange(),n=S(r,1),o=n[0];if(null!=o){var i=this.onCopy(o,e),u=i.html,a=i.text;t.clipboardData.setData("text/plain",a),t.clipboardData.setData("text/html",u),e&&(this.raiseCallback("onCut",t),(0,v.WQ)({range:o,quill:this.quill}))}}}},{key:"onCapturePaste",value:function(t){if(!t.defaultPrevented&&this.quill.isEnabled()&&(this.raiseCallback("onPaste",t),t.clipboardData)){t.preventDefault();var e=this.quill.getSelection(!0);if(null!=e){var r=t.clipboardData.getData("text/html"),n=Array.from(t.clipboardData.files||[]);if(!r&&n.length>0)this.quill.uploader.upload(e,n);else{if(r&&n.length>0){var o=(new DOMParser).parseFromString(r,"text/html").body;if(1===o.childElementCount&&"IMG"===o.firstElementChild.tagName)return void this.quill.uploader.upload(e,n)}var i=t.clipboardData.getData("text/plain");this.onPaste(e,{html:r,text:i,keepLastNewLine:!0})}}}}},{key:"raiseCallback",value:function(t,e){var r=this.options[t];r&&"function"==typeof r&&r(e)}},{key:"onCopy",value:function(t){var e=t.index,r=t.length,n=this.quill.getText(e,r);return{html:this.quill.getSemanticHTML(e,r),text:n}}},{key:"onPaste",value:function(t,e){var r=e.text,n=e.html,i=e.keepLastNewLine,u=this.quill.getFormat(t.index),l=this.convert({text:r,html:n,keepLastNewLine:i},u);R.log("onPaste",l,{text:r,html:n});var c=(new(o())).retain(t.index).delete(t.length).concat(l);this.quill.updateContents(c,a.ZP.sources.USER),this.quill.setSelection(c.length()-t.length,a.ZP.sources.SILENT),this.quill.scrollIntoView()}},{key:"prepareMatching",value:function(t,e){var r=[],n=[];return this.matchers.forEach((function(o){var i=S(o,2),u=i[0],a=i[1];switch(u){case 3:n.push(a);break;case 1:r.push(a);break;default:Array.from(t.querySelectorAll(u)).forEach((function(t){e.has(t)?e.get(t).push(a):e.set(t,[a])}))}})),[r,n]}},{key:"prepareTextMatching",value:function(){var t=[W];return this.matchers.forEach((function(e){var r=S(e,2),n=r[0],o=r[1];-1===Z.indexOf(o)&&3===n&&t.push(o)})),t}}],r&&_(e.prototype,r),n&&_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(c.Z);function I(t,e,r){return"object"===O(e)?Object.keys(e).reduce((function(t,r){return I(t,r,e[r])}),t):t.reduce((function(t,n){if(n.attributes&&n.attributes[e])return t.push(n);var o=r?j({},e,r):{};return t.insert(n.insert,w(w({},o),n.attributes))}),new(o()))}function D(t,e){for(var r="",n=t.ops.length-1;n>=0&&r.length<e.length;--n){var o=t.ops[n];if("string"!=typeof o.insert)break;r=o.insert+r}return r.slice(-1*e.length)===e}function M(t){return 0!==t.childNodes.length&&-1!==["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].indexOf(t.tagName.toLowerCase())}q.DEFAULTS={matchers:[]};var U=new WeakMap;function z(t){return null!=t&&(U.has(t)||("PRE"===t.tagName?U.set(t,!0):U.set(t,z(t.parentNode))),U.get(t))}function F(t,e,r,n,i,u){return e.nodeType===e.TEXT_NODE?n.reduce((function(r,n){return n(e,r,t)}),new(o())):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((function(o,a,l,c){var s=F(t,a,r,n,i,u),f=l<c.length-1&&c[l+1],p=f&&f.nodeType===e.ELEMENT_NODE&&["ul","ol"].indexOf(f.tagName.toLowerCase())>-1;a.nodeType===e.ELEMENT_NODE&&(u="br"===a.tagName.toLowerCase(),s=r.reduce((function(e,r){return r(a,e,t)}),s),s=(i.get(a)||[]).reduce((function(e,r){return r(a,e,t)}),s));var h=o.concat(s);return u&&p&&h.insert("\n"),h}),new(o())):new(o())}function H(t,e,r){return I(r,t,!0)}function K(t,e,r){if(!D(e,"\n")){if(M(t))return e.insert("\n");if(e.length()>0&&t.nextSibling)for(var n=t.nextSibling;null!=n;){if(M(n))return e.insert("\n");var o=r.query(n);if((null==o?void 0:o.prototype)instanceof u.i2)return e.insert("\n");n=n.firstChild}}return e}function W(t,e){var r=t.data||"";return r=r.replace(/\r\n/g,"\n"),e.insert(r)}function $(t,e){var r=t.data;if("O:P"===t.parentNode.tagName)return e.insert(r.trim());if(0===r.trim().length&&-1!==r.indexOf("\n"))return e;if(!z(t)){var n=function(t,e){var r=e.replace(/[^\u00a0]/g,"");return r.length<1&&t?" ":r};r=(r=r.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==t.previousSibling&&M(t.parentNode)||null!=t.previousSibling&&M(t.previousSibling))&&(r=r.replace(/^\s+/,n.bind(n,!1))),(null==t.nextSibling&&M(t.parentNode)||null!=t.nextSibling&&M(t.nextSibling))&&(r=r.replace(/\s+$/,n.bind(n,!1)))}return e.insert(r)}},2613:(t,e,r)=>{"use strict";r.d(e,{Z:()=>y});var n=r(1233),o=r(281),i=r(7094),u=r(8034);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===a(i)?i:String(i)),n)}var o,i}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(f,t);var e,r,i,a=s(f);function f(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(r=a.call(this,t,e)).lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.ZP.events.EDITOR_CHANGE,(function(t,e,n,i){t!==o.ZP.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.ZP.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"z",shortKey:!0},r.undo.bind(p(r))),r.quill.keyboard.addBinding({key:"z",shortKey:!0,shiftKey:!0},r.redo.bind(p(r))),(0,u.Z)()&&/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"y",shortKey:!0},r.redo.bind(p(r))),r.quill.root.addEventListener("beforeinput",(function(t){"historyUndo"===t.inputType?(r.undo(),t.preventDefault()):"historyRedo"===t.inputType&&(r.redo(),t.preventDefault())})),r}return e=f,(r=[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var r=this.stack[t].pop(),i=this.quill.getContents(),u=r.invert(i);this.stack[e].push(u),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r,o.ZP.sources.USER),this.ignoreChange=!1;var a=function(t,e){var r=e.reduce((function(t,e){return t+(e.delete||0)}),0),o=e.length()-r;return function(t,e){var r=e.ops[e.ops.length-1];return null!=r&&(null!=r.insert?"string"==typeof r.insert&&r.insert.endsWith("\n"):null!=r.attributes&&Object.keys(r.attributes).some((function(e){return null!=t.query(e,n.Scope.BLOCK)})))}(t,e)&&(o-=1),o}(this.quill.scroll,r);this.quill.setSelection(a)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var r=t.invert(e),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var o=this.stack.undo.pop();r=r.compose(o)}else this.lastRecorded=n;0!==r.length()&&(this.stack.undo.push(r),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){d(this.stack.undo,t),d(this.stack.redo,t)}},{key:"undo",value:function(){this.change("undo","redo")}}])&&l(e.prototype,r),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),f}(i.Z);function d(t,e){for(var r=e,n=t.length-1;n>=0;n-=1){var o=t[n];t[n]=r.transform(o,!0),r=o.transform(r),0===t[n].length()&&t.splice(n,1)}}y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1}},990:(t,e,r)=>{"use strict";r.d(e,{Z:()=>d});var n=r(9098),o=r.n(n),i=r(7094),u=r(281),a=r(3071);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===l(i)?i:String(i)),n)}var o,i}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p(this,r)}}function p(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var y=["insertText","insertReplacementText"];const d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(l,t);var e,r,n,i=f(l);function l(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),r=i.call(this,t,e),t.root.addEventListener("beforeinput",(function(t){r.handleBeforeInput(t)})),/Android/i.test(navigator.userAgent)||t.on(u.ZP.events.COMPOSITION_BEFORE_START,(function(){r.handleCompositionStart()})),r}return e=l,r=[{key:"deleteRange",value:function(t){(0,a.WQ)({range:t,quill:this.quill})}},{key:"replaceText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return!1;if(e){var r=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents((new(o())).retain(t.index).insert(e,r),u.ZP.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,u.ZP.sources.SILENT),!0}},{key:"handleBeforeInput",value:function(t){if(this.quill.composition.isCompositionInProgress()||t.defaultPrevented||!y.includes(t.inputType))"insertFromDrop"===t.inputType&&t.dataTransfer.getData("text/html").includes("<table")&&t.preventDefault();else{var e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(e&&!0!==e.collapsed){var r=function(t){var e;return"string"==typeof t.data?t.data:null!==(e=t.dataTransfer)&&void 0!==e&&e.types.includes("text/plain")?t.dataTransfer.getData("text/plain"):null}(t);if(null!=r){var n=this.quill.selection.normalizeNative(e),o=n?this.quill.selection.normalizedToRange(n):null;o&&this.replaceText(o,r)&&t.preventDefault()}}}}},{key:"handleCompositionStart",value:function(){var t=this.quill.getSelection();t&&this.replaceText(t)}}],r&&c(e.prototype,r),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(i.Z)},3071:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>x,WQ:()=>Z});var n=r(8805),o=r.n(n),i=r(9098),u=r.n(i),a=r(1233),l=r(4506),c=r(281),s=r(3122),f=r(7094),p=r(8034);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return(e=w(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,w(n.key),n)}}function w(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===h(e)?e:String(e)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=P(t);if(e){var o=P(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function S(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}var _=(0,s.Z)("quill:keyboard"),N={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus",esc:"escape"},E={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},k=(0,p.Z)()&&/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(s,t);var e,r,n,o=j(s);function s(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(r=o.call(this,t,e)).bindings={},Object.keys(r.options.bindings).forEach((function(t){r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addInternalBindings(),r.listen(),r}return e=s,r=[{key:"addInternalBindings",value:function(){var t=this;this.quill.once(c.ZP.events.CONTENT_SETTED,(function(){t.addBinding({key:"enter",shiftKey:null},t.handleEnter),t.addBinding({key:"enter",metaKey:null,ctrlKey:null,altKey:null},(function(){})),(0,p.Z)()&&/Firefox/i.test(navigator.userAgent)?(t.addBinding({key:"backspace"},{collapsed:!0},t.handleBackspace),t.addBinding({key:"del"},{collapsed:!0},t.handleDelete)):(t.addBinding({key:"backspace"},{collapsed:!0,prefix:/^.?$/},t.handleBackspace),t.addBinding({key:"del"},{collapsed:!0,suffix:/^.?$/},t.handleDelete)),t.addBinding({key:"backspace"},{collapsed:!1},t.handleDeleteRange),t.addBinding({key:"del"},{collapsed:!1},t.handleDeleteRange),t.addBinding({key:"backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},t.handleBackspace)}))}},{key:"addBinding",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=C(t);if(null!=o){"function"==typeof r&&(r={handler:r}),"function"==typeof n&&(n={handler:n});var i=o.which?"which":"key",u=Array.isArray(o[i])?o[i]:[o[i]];u.forEach((function(t){var i=v(v(v({},o),{},{key:t},r),n);e.bindings[i.key]=e.bindings[i.key]||[],e.bindings[i.key].push(i)}))}else _.warn("Attempted to add invalid keyboard binding",o)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(e){if(!e.defaultPrevented&&!e.isComposing){t.raiseOnKeydownCallback(e);var r=s.normalizeKeyName(e),n=(t.bindings[r]||[]).concat(t.bindings[e.which]||[]).filter((function(t){return s.match(e,t)}));if(0!==n.length){var o=t.quill.getSelection();if(null!=o&&t.quill.hasFocus()){var i=y(t.quill.getLine(o.index),2),u=i[0],c=i[1],f=y(t.quill.getLeaf(o.index),2),p=f[0],d=f[1],b=y(0===o.length?[p,d]:t.quill.getLeaf(o.index+o.length),2),v=b[0],m=b[1],g=p instanceof a.TextBlot?p.value().slice(0,d):"",w=v instanceof a.TextBlot?v.value().slice(m):"",O={collapsed:0===o.length,empty:0===o.length&&u.length()<=1,format:t.quill.getFormat(o),line:u,offset:c,prefix:g,suffix:w,event:e},j=!1;n.some((function(e){if(null!=e.collapsed&&e.collapsed!==O.collapsed)return!1;if(null!=e.empty&&e.empty!==O.empty)return!1;if(null!=e.offset&&e.offset!==O.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==O.format[t]})))return!1}else if("object"===h(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=O.format[t]:!1===e.format[t]?null==O.format[t]:(0,l.Z)(e.format[t],O.format[t])})))return!1;if(null!=e.prefix&&!e.prefix.test(O.prefix))return!1;if(null!=e.suffix&&!e.suffix.test(O.suffix))return!1;var r=e.handler.call(t,o,O,e),n=null==r?void 0:r.preventAfterAllMatches;return(j=!0!==r||n)&&!n})),j&&e.preventDefault()}}}}))}},{key:"raiseOnKeydownCallback",value:function(t){var e=this.options.onKeydown;e&&"function"==typeof e&&e(t)}},{key:"handleBackspace",value:function(t,e){var r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(!(0===t.index||this.quill.getLength()<=1)){var n={},o=y(this.quill.getLine(t.index),1)[0],a=(new(u())).retain(t.index-r).delete(r);if(0===e.offset){var l=y(this.quill.getLine(t.index-1),1)[0];if(l){var s="block"===l.statics.blotName&&l.length()<=1,f=l.statics.blotName.startsWith("table"),p="block"===o.statics.blotName&&o.length()<=1;if(f&&(p&&o.remove(),this.quill.setSelection(t.index-1)),!s&&!f){var h=o.formats(),d=this.quill.getFormat(t.index-1,1);if(n=i.AttributeMap.diff(h,d)||{},Object.keys(n).length>0){var b=(new(u())).retain(t.index+o.length()-2).retain(1,n);a=a.compose(b)}}}}this.quill.updateContents(a,c.ZP.sources.USER),this.quill.focus()}}},{key:"handleDelete",value:function(t,e){var r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-r)){var n={},o=y(this.quill.getLine(t.index),1)[0],a=(new(u())).retain(t.index).delete(r);if(e.offset>=o.length()-1){var l=y(this.quill.getLine(t.index+1),1)[0];if(l){var s=o.formats(),f=this.quill.getFormat(t.index,1);n=i.AttributeMap.diff(s,f)||{},Object.keys(n).length>0&&(a=a.retain(l.length()-1).retain(1,n))}}this.quill.updateContents(a,c.ZP.sources.USER),this.quill.focus()}}},{key:"handleDeleteRange",value:function(t,e){this.raiseOnKeydownCallback(e.event),Z({range:t,quill:this.quill}),this.quill.focus()}},{key:"handleEnter",value:function(t,e){var r=this,n=Object.keys(e.format).reduce((function(t,n){return r.quill.scroll.query(n,a.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{}),o=(new(u())).retain(t.index).delete(t.length).insert("\n",n);this.quill.updateContents(o,c.ZP.sources.USER),this.quill.setSelection(t.index+1,c.ZP.sources.SILENT),this.quill.focus();var i,l,s,f,p,h=y(this.quill.getLine(t.index+1),1)[0],d=(i=h.domNode,l=window.innerHeight,s=i.getBoundingClientRect(),f=s.y,p=s.bottom,f<0||!(p>=l)&&null);null!==d&&h.domNode.scrollIntoView(d),Object.keys(e.format).forEach((function(t){null==n[t]&&(Array.isArray(e.format[t])||"code"!==t&&"link"!==t&&(r.raiseOnKeydownCallback(e.event),r.quill.format(t,e.format[t],c.ZP.sources.USER)))}))}}],n=[{key:"match",value:function(t,e){return!["altKey","ctrlKey","metaKey","shiftKey"].some((function(r){return!!e[r]!==t[r]&&null!==e[r]}))&&(e.key===s.normalizeKeyName(t)||e.key===t.which)}},{key:"normalizeKeyName",value:function(t){var e=t.key,r=t.which,n=!!e,o=n?e:r;return o&&(o=n?N[o.toLowerCase()]||o:E[o]||String.fromCharCode(o)),o}}],r&&g(e.prototype,r),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(f.Z);function T(t){return{key:"tab",shiftKey:!t,format:{"code-block":!0},handler:function(e){var r=this.quill.scroll.query("code-block"),n=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e),o=e.index,i=e.length;n.forEach((function(e,n){t?(e.insertAt(0,r.TAB),0===n?o+=r.TAB.length:i+=r.TAB.length):0===e.domNode.textContent.indexOf(r.TAB)&&(e.deleteAt(0,r.TAB.length),0===n?o-=r.TAB.length:i-=r.TAB.length)})),this.quill.update(c.ZP.sources.USER),this.quill.setSelection(o,i,c.ZP.sources.SILENT)}}}function A(t,e){return m(m({key:t,shiftKey:e,altKey:null},"leftArrow"===t?"prefix":"suffix",/^$/),"handler",(function(r){var n=r.index;return"rightArrow"===t&&(n+=r.length+1),!(y(this.quill.getLeaf(n),1)[0]instanceof a.EmbedBlot)||("leftArrow"===t?e?this.quill.setSelection(r.index-1,r.length+1,c.ZP.sources.USER):this.quill.setSelection(r.index-1,c.ZP.sources.USER):e?this.quill.setSelection(r.index,r.length+1,c.ZP.sources.USER):this.quill.setSelection(r.index+r.length+1,c.ZP.sources.USER),!1)}))}function R(t,e){return{key:t[0],which:e,shortKey:!0,handler:function(e,r){return this.quill.format(t,!r.format[t],c.ZP.sources.USER),{preventAfterAllMatches:!0}}}}function C(t){if("string"==typeof t||"number"==typeof t)t={key:t};else{if("object"!==h(t))return null;t=o()(t)}return t.shortKey&&(t[k]=t.shortKey,delete t.shortKey),t}function Z(t){var e=t.quill,r=t.range,n=e.getLines(r),o={};if(n.length>1){var u=n[0].formats(),a=n[n.length-1].formats();o=i.AttributeMap.diff(a,u)||{}}e.deleteText(r,c.ZP.sources.USER),Object.keys(o).length>0&&e.formatLine(r.index,1,o,c.ZP.sources.USER),e.setSelection(r.index,c.ZP.sources.SILENT)}x.DEFAULTS={bindings:{bold:R("bold",66),italic:R("italic",73),underline:R("underline",85),indent:{key:"tab",format:["blockquote","indent","list"],handler:function(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",c.ZP.sources.USER),!1)}},outdent:{key:"tab",shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",c.ZP.sources.USER),!1)}},"outdent backspace":{key:"backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",c.ZP.sources.USER):null!=e.format.list&&this.quill.format("list",!1,c.ZP.sources.USER)}},"indent code-block":T(!0),"outdent code-block":T(!1),"remove tab":{key:"tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,c.ZP.sources.USER)}},tab:{key:"tab",handler:function(t,e){var r=e.format;if(r.tableCellLine||r.tableHeaderCellLine||r.tableHeaderCell||r.table)return!0;this.quill.history.cutoff();var n=(new(u())).retain(t.index).delete(t.length).insert("\t");return this.quill.updateContents(n,c.ZP.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,c.ZP.sources.SILENT),!1}},"blockquote empty enter":{key:"enter",collapsed:!0,format:["blockquote"],empty:!0,handler:function(){this.quill.format("blockquote",!1,c.ZP.sources.USER)}},"list empty enter":{key:"enter",collapsed:!0,format:["list"],empty:!0,handler:function(t,e){var r={list:!1};e.format.indent&&(r.indent=!1),this.quill.formatLine(t.index,t.length,r,c.ZP.sources.USER)}},"checklist enter":{key:"enter",collapsed:!0,format:{list:"checked"},handler:function(t){var e=y(this.quill.getLine(t.index),2),r=e[0],n=e[1],o=v(v({},r.formats()),{},{list:"checked"}),i=(new(u())).retain(t.index).insert("\n",o).retain(r.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,c.ZP.sources.USER),this.quill.setSelection(t.index+1,c.ZP.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:"enter",collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var r=y(this.quill.getLine(t.index),2),n=r[0],o=r[1],i=(new(u())).retain(t.index).insert("\n",e.format).retain(n.length()-o-1).retain(1,{header:null});this.quill.updateContents(i,c.ZP.sources.USER),this.quill.setSelection(t.index+1,c.ZP.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:"space",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){if(null==this.quill.scroll.query("list"))return!0;var r,n=e.prefix.length,o=y(this.quill.getLine(t.index),2),i=o[0],a=o[1];if(a>n)return!0;switch(e.prefix.trim()){case"[]":case"[ ]":r="unchecked";break;case"[x]":r="checked";break;case"-":case"*":r="bullet";break;default:r="ordered"}this.quill.insertText(t.index," ",c.ZP.sources.USER),this.quill.history.cutoff();var l=(new(u())).retain(t.index-a).delete(n+1).retain(i.length()-2-a).retain(1,{list:r});return this.raiseOnKeydownCallback(e.event),this.quill.updateContents(l,c.ZP.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,c.ZP.sources.SILENT),!1}},"code exit":{key:"enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler:function(t){for(var e=y(this.quill.getLine(t.index),2),r=e[0],n=e[1],o=2,i=r;null!=i&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,(o-=1)<=0){var a=(new(u())).retain(t.index+r.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,c.ZP.sources.USER),this.quill.setSelection(t.index-1,c.ZP.sources.SILENT),!1}return!0}},"embed left":A("leftArrow",!1),"embed left shift":A("leftArrow",!0),"embed right":A("rightArrow",!1),"embed right shift":A("rightArrow",!0)}}},5657:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>q});var n=r(9098),o=r.n(n),i=r(1233),u=r(6603),a=r(281),l=r(7094),c=r(6446),s=r(4122),f=r(3657),p=r(8222),h=r(7309),y=r(5635),d=r(8034);function b(t,e){for(var r=t.split(".").map(Number),n=e.split(".").map(Number),o=Math.max(r.length,n.length),i=0;i<o;i+=1){var u,a,l=null!==(u=r[i])&&void 0!==u?u:0,c=null!==(a=n[i])&&void 0!==a?a:0;if(l!==c)return l>c}return!0}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function m(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,P(n.key),n)}}function S(t,e,r){return e&&j(t.prototype,e),r&&j(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function P(t){var e=function(t,e){if("object"!==v(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===v(e)?e:String(e)}function _(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}function E(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=R(t);if(e){var o=R(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k(this,r)}}function k(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return x(t)}function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(){return T="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=A(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},T.apply(this,arguments)}function A(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=R(t)););return t}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}var C=new i.ClassAttributor("code-token","hljs",{scope:i.Scope.INLINE}),Z=function(t){_(r,t);var e=E(r);function r(t,n,o){var i;return O(this,r),i=e.call(this,t,n,o),C.add(i.domNode,o),i}return S(r,[{key:"format",value:function(t,e){t!==r.blotName?T(R(r.prototype),"format",this).call(this,t,e):e?C.add(this.domNode,e):(C.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}},{key:"optimize",value:function(){for(var t,e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];(t=T(R(r.prototype),"optimize",this)).call.apply(t,[this].concat(n)),C.value(this.domNode)||this.unwrap()}}],[{key:"formats",value:function(t,e){for(;null!=t&&t!==e.domNode;){if(t.classList&&t.classList.contains(h.ZP.className))return T(R(r),"formats",this).call(this,t,e);t=t.parentNode}}}]),r}(u.Z);Z.blotName="code-token",Z.className="ql-token";var L=function(t){_(r,t);var e=E(r);function r(){return O(this,r),e.apply(this,arguments)}return S(r,[{key:"format",value:function(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):T(R(r.prototype),"format",this).call(this,t,e)}},{key:"replaceWith",value:function(t,e){return this.formatAt(0,this.length(),Z.blotName,!1),T(R(r.prototype),"replaceWith",this).call(this,t,e)}}],[{key:"create",value:function(t){var e=T(R(r),"create",this).call(this,t);return"string"==typeof t&&e.setAttribute("data-language",t),e}},{key:"formats",value:function(t){return t.getAttribute("data-language")||"plain"}},{key:"register",value:function(){}}]),r}(h.ZP),B=function(t){_(r,t);var e=E(r);function r(){return O(this,r),e.apply(this,arguments)}return S(r,[{key:"attach",value:function(){T(R(r.prototype),"attach",this).call(this),this.forceNext=!1,this.scroll.emitMount(this)}},{key:"format",value:function(t,e){t===L.blotName&&(this.forceNext=!0,this.children.forEach((function(r){r.format(t,e)})))}},{key:"formatAt",value:function(t,e,n,o){n===L.blotName&&(this.forceNext=!0),T(R(r.prototype),"formatAt",this).call(this,t,e,n,o)}},{key:"highlight",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=this.children.head){var n=Array.from(this.domNode.childNodes).filter((function(t){return t!==e.uiNode})),i="".concat(n.map((function(t){return t.textContent})).join("\n"),"\n"),u=L.formats(this.children.head.domNode);if(r||this.forceNext||this.cachedText!==i){if(i.trim().length>0||null==this.cachedText){var a=this.children.reduce((function(t,e){return t.concat((0,c.qz)(e,!1))}),new(o())),l=t(i,u);a.diff(l).reduce((function(t,r){var n=r.retain,o=r.attributes;return n?(o&&Object.keys(o).forEach((function(r){-1!==[L.blotName,Z.blotName].indexOf(r)&&e.formatAt(t,n,r,o[r])})),t+n):t}),0)}this.cachedText=i,this.forceNext=!1}}}},{key:"html",value:function(t,e){var r=g(this.children.find(t),1)[0],n=r?L.formats(r.domNode):"plain";return'<pre data-language="'.concat(n,'">\n').concat(this.code(t,e),"\n</pre>")}},{key:"optimize",value:function(t){if(T(R(r.prototype),"optimize",this).call(this,t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){var e=L.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}]),r}(h.se);B.allowedChildren=[L],L.requiredContainer=B,L.allowedChildren=[Z,f.Z,p.Z,s.Z];var q=function(t){_(r,t);var e=E(r);function r(t,n){var o;if(O(this,r),null==(o=e.call(this,t,n)).options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");return o.languages=o.options.languages.reduce((function(t,e){return t[e.key]=!0,t}),{}),o.highlightBlot=o.highlightBlot.bind(x(o)),o.initListener(),o.initTimer(),o}return S(r,[{key:"initListener",value:function(){var t=this;this.quill.on(a.ZP.events.SCROLL_BLOT_MOUNT,(function(e){if(e instanceof B){var r=t.quill.root.ownerDocument.createElement("select");t.options.languages.forEach((function(t){var e=t.key,n=t.label,o=r.ownerDocument.createElement("option");o.textContent=n,o.setAttribute("value",e),r.appendChild(o)})),r.addEventListener("change",(function(){e.format(L.blotName,r.value),t.quill.root.focus(),t.highlight(e,!0)})),null==e.uiNode&&(e.attachUI(r),e.children.head&&(r.value=L.formats(e.children.head.domNode)))}}))}},{key:"initTimer",value:function(){var t=this,e=null;this.quill.on(a.ZP.events.SCROLL_OPTIMIZE,(function(){clearTimeout(e),e=setTimeout((function(){t.highlight(),e=null}),t.options.interval)}))}},{key:"highlight",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.quill.selection.composing){this.quill.update(a.ZP.sources.USER);var n=this.quill.getSelection(),o=null==e?this.quill.scroll.descendants(B):[e];o.forEach((function(e){e.highlight(t.highlightBlot,r)})),this.quill.update(a.ZP.sources.SILENT),null!=n&&this.quill.hasFocus()&&this.quill.setSelection(n,a.ZP.sources.SILENT)}}},{key:"highlightBlot",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(e=this.languages[e]?e:"plain"))return(0,p.b)(t).split("\n").reduce((function(t,r,n){return 0!==n&&t.insert("\n",m({},h.ZP.blotName,e)),t.insert(r)}),new(o()));var r=this.quill.root.ownerDocument.createElement("div");r.classList.add(h.ZP.className);var n=this.options.hljs.versionString;return b(n,"10.7")?r.innerHTML=this.options.hljs.highlight(t,{language:e}).value:r.innerHTML=this.options.hljs.highlight(e,t).value,(0,y.fw)(this.quill.scroll,r,[function(t,e){var r=C.value(t);return r?e.compose((new(o())).retain(e.length(),m({},Z.blotName,r))):e}],[function(t,r){return t.data.split("\n").reduce((function(t,r,n){return 0!==n&&t.insert("\n",m({},h.ZP.blotName,e)),t.insert(r)}),r)}],new WeakMap)}}],[{key:"register",value:function(){a.ZP.register(Z,!0),a.ZP.register(L,!0),a.ZP.register(B,!0)}}]),r}(l.Z);q.DEFAULTS={hljs:(0,d.Z)()?window.hljs:null,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"Javascript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]}},867:(t,e,r)=>{"use strict";r.d(e,{Z:()=>T});var n=r(9098),o=r.n(n),i=r(1233),u=r(281),a=r(7094),l=r(1969),c=r(5874),s=r(5635),f=r(9466),p=r(7896),h=r(319),y=r(1342),d=r(2480);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function v(t,e,r){return(e=j(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,j(n.key),n)}}function j(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===b(e)?e:String(e)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=N(t);if(e){var o=N(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _(this,r)}}function _(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function N(t){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},N(t)}var E=[null,null,null,-1],k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(a,t);var e,r,n,i=P(a);function a(){var t;w(this,a);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=i.call.apply(i,[this].concat(r))).tableBlots=[l.zW.blotName,l.iD.blotName],t.tableBlots.forEach((function(e){t.quill.editor.addImmediateFormat(e)})),t.integrateClipboard(),t.addKeyboardHandlers(),t.listenBalanceCells(),t}return e=a,r=[{key:"integrateClipboard",value:function(){var t=this;this.tableBlots.forEach((function(e){t.quill.clipboard.addTableBlot(e)})),this.quill.clipboard.addMatcher("td, th",x),this.quill.clipboard.addMatcher("table",(0,p.F)(h.Zt)),this.quill.clipboard.addMatcher("td, th",(0,p.a)(y.h6))}},{key:"addKeyboardHandlers",value:function(){var t=this,e=a.keyboardBindings;Object.keys(e).forEach((function(r){e[r]&&t.quill.keyboard.addBinding(e[r])}))}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(l.xJ).forEach((function(t){t.balanceCells()}))}},{key:"deleteColumn",value:function(){var t=m(this.getTable(),3),e=t[0],r=t[2];(0,c.Z)(r)&&(e.deleteColumn(r.cellOffset()),this.quill.update(u.ZP.sources.USER))}},{key:"deleteRow",value:function(){var t=m(this.getTable(),2)[1];(0,c.Z)(t)&&(t.remove(),this.quill.update(u.ZP.sources.USER))}},{key:"deleteTable",value:function(){var t=m(this.getTable(),1)[0];if((0,c.Z)(t)){var e=t.offset();t.remove(),this.quill.update(u.ZP.sources.USER),this.quill.setSelection(e,u.ZP.sources.SILENT)}}},{key:"getTable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!(0,c.Z)(t))return E;var e=this.quill.getLine(t.index),r=m(e,2),n=r[0],o=r[1];if(!(0,c.Z)(n)||-1===this.tableBlots.indexOf(n.statics.blotName))return E;var i=n.parent,u=i.parent,a=u.parent.parent;return[a,u,i,o]}},{key:"insertColumn",value:function(t){var e=this.quill.getSelection(),r=m(this.getTable(e),3),n=r[0],o=r[1],i=r[2];if((0,c.Z)(i)){var a=i.cellOffset();n.insertColumn(a+t),this.quill.update(u.ZP.sources.USER);var l=o.rowOffset();0===t&&(l+=1),this.quill.setSelection(e.index+l,e.length,u.ZP.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(t){var e=this.quill.getSelection(),r=m(this.getTable(e),3),n=r[0],o=r[1],i=r[2];if((0,c.Z)(i)){var a=o.rowOffset();n.insertRow(a+t),this.quill.update(u.ZP.sources.USER),t>0?this.quill.setSelection(e,u.ZP.sources.SILENT):this.quill.setSelection(e.index+o.children.length,e.length,u.ZP.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var t=this.quill.getSelection(),e=m(this.getTable(t),3),r=e[0],n=e[2];(0,c.Z)(n)&&(r.insertHeaderRow(),this.quill.update(u.ZP.sources.USER))}},{key:"insertTable",value:function(t,e){var r=this.quill.getSelection();if((0,c.Z)(r)){var n=new Array(t).fill(0).reduce((function(t){var r=(0,l.Lv)();return new Array(e).fill("\n").forEach((function(e){t.insert(e,{tableCellLine:{row:r,cell:(0,l.Lv)()}})})),t}),(new(o())).retain(r.index));this.quill.updateContents(n,u.ZP.sources.USER),this.quill.setSelection(r.index,u.ZP.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var t=this;this.quill.on(u.ZP.events.SCROLL_OPTIMIZE,(function(e){e.some((function(e){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(e.target.tagName)&&(t.quill.once(u.ZP.events.TEXT_CHANGE,(function(e,r,n){n===u.ZP.sources.USER&&t.balanceTables()})),!0)}))})),this.quill.on(u.ZP.events.CONTENT_SETTED,(function(){t.quill.once(u.ZP.events.TEXT_CHANGE,(function(){t.balanceTables()}))}))}}],n=[{key:"register",value:function(){u.ZP.register(l.zW,!0),u.ZP.register(l.iD,!0),u.ZP.register(l.xs,!0),u.ZP.register(l.pj,!0),u.ZP.register(l.KA,!0),u.ZP.register(l.SC,!0),u.ZP.register(l.RM,!0),u.ZP.register(l.xD,!0),u.ZP.register(l.xJ,!0),[h.li,y.Du].forEach((function(t){Object.keys(t).forEach((function(e){u.ZP.register(v({},"formats/".concat(e),t[e]),!0)}))}))}}],r&&O(e.prototype,r),n&&O(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(a.Z);function x(t,e){var r=t.parentNode,n="TABLE"===r.parentNode.tagName?r.parentNode:r.parentNode.parentNode,i="THEAD"===r.parentNode.tagName||null,u=Array.from(n.querySelectorAll("tr")),a=Array.from(r.querySelectorAll("th,td")),l=u.indexOf(r)+1,c=a.indexOf(t)+1,f=i?"tableHeaderCellLine":"tableCellLine";return 0===e.length()?e=(new(o())).insert("\n",v({},f,{row:l,cell:c})):((0,s.PF)(e,"\n")||e.insert("\n"),(0,s.HI)(e,f,{row:l,cell:c}))}k.keyboardBindings={"table backspace":{key:"backspace",format:["tableCellLine","tableHeaderCellLine"],collapsed:!0,offset:0,handler:function(t){var e=m(this.quill.getLine(t.index),1)[0];return!(!e.prev||-1===["tableCellLine","tableHeaderCellLine"].indexOf(e.prev.statics.blotName))}},"table delete":{key:"del",format:["tableCellLine","tableHeaderCellLine"],collapsed:!0,suffix:/^$/,handler:function(){}},"table enter":{key:"enter",shiftKey:null,format:["tableCellLine","tableHeaderCellLine"],handler:function(t,e){var r,n,o=this,a=this.quill.getModule("table");if(a){var l=this.quill,c=m(a.getTable(t),1)[0];if(1===(null===(r=this.quill.selection)||void 0===r?void 0:r.lastNative.native.endContainer.nodeType)){var s=c.offset();(0,d.Z)({quill:l,index:s,table:c})}else if(null===(n=this.quill.selection)||void 0===n||!n.composing){t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var f=Object.keys(e.format).reduce((function(t,r){return o.quill.scroll.query(r,i.Scope.BLOCK)&&!Array.isArray(e.format[r])&&(t[r]=e.format[r]),t}),{});this.quill.insertText(t.index,"\n",f.tableCellLine,u.ZP.sources.USER),this.quill.setSelection(t.index+1,u.ZP.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==f[t]&&(Array.isArray(e.format[t])||"link"!==t&&o.quill.format(t,e.format[t],u.ZP.sources.USER))}))}}}},"table tab":{key:"tab",shiftKey:null,format:["tableCellLine","tableHeaderCellLine"],handler:function(t,e){var r=e.event,n=e.line,o=n.offset(this.quill.scroll);r.shiftKey?this.quill.setSelection(o-1,u.ZP.sources.USER):this.quill.setSelection(o+n.length(),u.ZP.sources.USER)}},"table down":(0,f.Z)(!1,["tableCellLine","tableHeaderCellLine"]),"table up":(0,f.Z)(!0,["tableCellLine","tableHeaderCellLine"])};const T=k},6054:(t,e,r)=>{"use strict";r.d(e,{Z:()=>ut});var n=r(9098),o=r.n(n),i=r(281),u=r(7094),a=r(6446),l=r(3553),c=r(5874),s=r(319),f=r(8536),p=r(2795);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||b(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||b(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){if(t){if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==h(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===h(i)?i:String(i)),n)}var o,i}function w(t,e,r){return e&&g(t.prototype,e),r&&g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function O(){return O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=j(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},O.apply(this,arguments)}function j(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=E(t)););return t}function S(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return N(this,r)}}function N(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}var k="data-tablelite-",x=function(t){S(r,t);var e=_(r);function r(){return m(this,r),e.apply(this,arguments)}return w(r,[{key:"format",value:function(t,e){if(s.li[t]){var n,o="data-".concat(t.toLowerCase());(0,p.Z)(this.domNode,o,e),null===(n=this.row())||void 0===n||null===(n=n.table())||void 0===n||n.format(t,e)}else O(E(r.prototype),"format",this).call(this,t,e)}},{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"row",value:function(){return"table"in this.parent?this.parent:null}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){var t;return null===(t=this.row())||void 0===t?void 0:t.table()}}],[{key:"create",value:function(t){var e=O(E(r),"create",this).call(this),n=this.dataAttribute;return(0,p.Z)(e,n,null!=t?t:D()),e}},{key:"formats",value:function(t){var e=this.dataAttribute;if(t.hasAttribute(e))return t.getAttribute(e)}}]),r}(a.ZP);x.tagName=["TD","TH"];var T=function(t){S(r,t);var e=_(r);function r(){return m(this,r),e.apply(this,arguments)}return w(r,[{key:"format",value:function(t,e){t===r.blotName&&e?this.domNode.setAttribute(r.dataAttribute,e):O(E(r.prototype),"format",this).call(this,t,e)}}]),r}(x);T.blotName="table",T.dataAttribute="".concat(k,"row");var A=function(t){S(r,t);var e=_(r);function r(){return m(this,r),e.apply(this,arguments)}return w(r,[{key:"format",value:function(t,e){t===r.blotName&&e?this.domNode.setAttribute(r.dataAttribute,e):O(E(r.prototype),"format",this).call(this,t,e)}}]),r}(x);A.tagName=["TH","TD"],A.blotName="tableHeaderCell",A.dataAttribute="".concat(k,"header-row");var R=function(t){S(r,t);var e=_(r);function r(){return m(this,r),e.apply(this,arguments)}return w(r,[{key:"checkMerge",value:function(){if(O(E(r.prototype),"checkMerge",this).call(this)&&(0,c.Z)(this.next.children.head)){var t=this.childFormatName,e=this.children.head.formats(),n=this.children.tail.formats(),o=this.next.children.head.formats(),i=this.next.children.tail.formats();return e[t]===n[t]&&e[t]===o[t]&&e[t]===i[t]}return!1}},{key:"optimize",value:function(){for(var t,e=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(t=O(E(r.prototype),"optimize",this)).call.apply(t,[this].concat(o));var u=this.childFormatName;this.children.forEach((function(t){if((0,c.Z)(t.next)){var r=t.formats(),n=t.next.formats();if(r[u]!==n[u]){var o=e.splitAfter(t);o&&o.optimize(),e.prev&&e.prev.optimize()}}}))}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var t;return null===(t=this.parent)||void 0===t?void 0:t.parent}}]),r}(l.Z);R.tagName="TR";var C=function(t){S(r,t);var e=_(r);function r(t,n){var o;return m(this,r),(o=e.call(this,t,n)).childFormatName="table",o}return w(r)}(R);C.blotName="tableRow";var Z=function(t){S(r,t);var e=_(r);function r(t,n){var o;return m(this,r),(o=e.call(this,t,n)).childFormatName="tableHeaderCell",o}return w(r)}(R);Z.blotName="tableHeaderRow";var L=function(t){S(r,t);var e=_(r);function r(){return m(this,r),e.apply(this,arguments)}return w(r,[{key:"optimize",value:function(){var t;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var e=this.children.head.children.head.domNode,n={};Object.keys(s.li).forEach((function(t){var r=e.dataset[t.toLowerCase()];r&&(n[t]=r)})),this.wrap(this.statics.requiredContainer.blotName,n)}for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];(t=O(E(r.prototype),"optimize",this)).call.apply(t,[this].concat(i))}}]),r}(l.Z),B=function(t){S(r,t);var e=_(r);function r(){return m(this,r),e.apply(this,arguments)}return w(r)}(L);B.blotName="tableBody",B.tagName=["TBODY"];var q=function(t){S(r,t);var e=_(r);function r(){return m(this,r),e.apply(this,arguments)}return w(r)}(L);q.blotName="tableHeader",q.tagName=["THEAD"];var I=function(t){S(r,t);var e=_(r);function r(){return m(this,r),e.apply(this,arguments)}return w(r,[{key:"balanceCells",value:function(){var t=this.descendants(Z),e=this.descendants(C),r=this.getMaxTableColCount(t,e);this.balanceRows(r,t,A),this.balanceRows(r,e,T)}},{key:"getMaxTableColCount",value:function(t,e){return Math.max(this.getMaxRowColCount(t),this.getMaxRowColCount(e))}},{key:"getMaxRowColCount",value:function(t){return Math.max.apply(Math,d(t.map((function(t){return t.children.length}))))}},{key:"balanceRows",value:function(t,e,r){var n=this;e.forEach((function(e){new Array(t-e.children.length).fill(0).forEach((function(){var t;(0,c.Z)(e.children.head)&&(t=r.formats(e.children.head.domNode));var o=n.scroll.create(r.blotName,t);e.appendChild(o),o.optimize()}))}))}},{key:"cells",value:function(t){return this.rows().map((function(e){return e.children.at(t)}))}},{key:"deleteColumn",value:function(t){var e=this;[q,B].forEach((function(r){var n=y(e.descendants(r),1)[0];(0,c.Z)(n)&&(0,c.Z)(n.children.head)&&n.children.forEach((function(e){var r=e.children.at(t);(0,c.Z)(r)&&r.remove()}))}))}},{key:"insertColumn",value:function(t){var e=this;[q,B].forEach((function(r){var n=y(e.descendants(r),1)[0];if((0,c.Z)(n)&&(0,c.Z)(n.children.head)){var o=r===q?A:T;n.children.forEach((function(r){var n=r.children.at(t),i=o.formats(r.children.head.domNode),u=e.scroll.create(o.blotName,i);r.insertBefore(u,n)}))}}))}},{key:"insertRow",value:function(t){var e=this,r=y(this.descendants(B),1)[0];if((0,c.Z)(r)&&(0,c.Z)(r.children.head)){var n=D(),o=this.scroll.create(C.blotName);r.children.head.children.forEach((function(){var t=e.scroll.create(T.blotName,n);o.appendChild(t)}));var i=r.children.at(t);r.insertBefore(o,i)}}},{key:"insertHeaderRow",value:function(){var t=this,e=y(this.descendants(q),1)[0],r=y(this.descendants(B),1)[0];if(!(0,c.Z)(e)&&(0,c.Z)(r)&&(0,c.Z)(r.children.head)){var n=D(),o=this.scroll.create(q.blotName),i=this.scroll.create(Z.blotName),u=this.children.at(0);o.appendChild(i),r.children.head.children.forEach((function(){var e=t.scroll.create(A.blotName,n);i.appendChild(e),e.optimize()})),this.insertBefore(o,u)}}},{key:"rows",value:function(){var t=this.children.head;return(0,c.Z)(t)?t.children.map((function(t){return t})):[]}},{key:"formats",value:function(){var t={},e=this.cells()[0].domNode;return Object.keys(s.li).forEach((function(r){var n=e.dataset[r.toLowerCase()];n&&(t[r]=n)})),t}},{key:"format",value:function(t,e){var r=s.li[t];if(r){var n="data-".concat(t.toLowerCase());this.cells().forEach((function(t){(0,p.Z)(t.domNode,n,e)})),r.add(this.domNode,e)}}}],[{key:"create",value:function(t){var e=O(E(r),"create",this).call(this,t);return t&&Object.keys(t).forEach((function(r){var n;null===(n=s.li[r])||void 0===n||n.add(e,t[r])})),e}}]),r}(l.Z);function D(){return"row-".concat((0,f.Z)())}I.blotName="tableContainer",I.tagName="TABLE",I.allowedChildren=[q,B],B.requiredContainer=I,q.requiredContainer=I,B.allowedChildren=[C],C.requiredContainer=B,C.allowedChildren=[T],T.requiredContainer=C,q.allowedChildren=[Z],Z.requiredContainer=q,Z.allowedChildren=[A],A.requiredContainer=Z;var M=r(5635),U=r(9466);function z(t){var e=t.quill,r=t.index,n=t.range,u=r-1,a=(new(o())).retain(u).insert("\n");e.updateContents(a,i.ZP.sources.USER),e.setSelection(n.index+1,n.length,i.ZP.sources.SILENT)}var F=r(2480);function H(t,e,r){return null==t.prev&&null==t.next?null==e.prev&&null==e.next?0===r?-1:1:null==e.prev?-1:1:null==t.prev?-1:null==t.next?1:null}var K=r(7896),W=r(1342);function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function G(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return V(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Q(n.key),n)}}function Q(t){var e=function(t,e){if("object"!==$(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===$(e)?e:String(e)}function J(t,e){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},J(t,e)}function tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=rt(t);if(e){var o=rt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return et(this,r)}}function et(t,e){if(e&&("object"===$(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function rt(t){return rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rt(t)}var nt=[null,null,null,-1],ot=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&J(t,e)}(a,t);var e,r,n,u=tt(a);function a(){var t;Y(this,a);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=u.call.apply(u,[this].concat(r))).tableBlots=[T.blotName,A.blotName],t.tableBlots.forEach((function(e){t.quill.editor.addImmediateFormat(e)})),t.integrateClipboard(),t.addKeyboardHandlers(),t.listenBalanceCells(),t}return e=a,r=[{key:"integrateClipboard",value:function(){var t=this;this.tableBlots.forEach((function(e){return t.quill.clipboard.addTableBlot(e)})),this.quill.clipboard.addMatcher("tr",it),this.quill.clipboard.addMatcher("table",(0,K.F)(s.Zt)),this.quill.clipboard.addMatcher("td, th",(0,K.a)(W.h6))}},{key:"addKeyboardHandlers",value:function(){var t=this,e=a.keyboardBindings;Object.keys(e).forEach((function(r){e[r]&&t.quill.keyboard.addBinding(e[r])}))}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(I).forEach((function(t){t.balanceCells()}))}},{key:"deleteColumn",value:function(){var t=G(this.getTable(),3),e=t[0],r=t[2];(0,c.Z)(r)&&(e.deleteColumn(r.cellOffset()),this.quill.update(i.ZP.sources.USER))}},{key:"deleteRow",value:function(){var t=G(this.getTable(),2)[1];(0,c.Z)(t)&&(t.remove(),this.quill.update(i.ZP.sources.USER))}},{key:"deleteTable",value:function(){var t=G(this.getTable(),1)[0];if((0,c.Z)(t)){var e=t.offset();t.remove(),this.quill.update(i.ZP.sources.USER),this.quill.setSelection(e,i.ZP.sources.SILENT)}}},{key:"getTable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!(0,c.Z)(t))return nt;var e=this.quill.getLine(t.index),r=G(e,2),n=r[0],o=r[1];if(!(0,c.Z)(n)||-1===this.tableBlots.indexOf(n.statics.blotName))return nt;var i=n.parent,u=i.parent.parent;return[u,i,n,o]}},{key:"insertColumn",value:function(t){var e=this.quill.getSelection(),r=G(this.getTable(e),3),n=r[0],o=r[1],u=r[2];if((0,c.Z)(u)){var a=u.cellOffset();n.insertColumn(a+t),this.quill.update(i.ZP.sources.USER);var l=o.rowOffset();0===t&&(l+=1),this.quill.setSelection(e.index+l,e.length,i.ZP.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(t){var e=this.quill.getSelection(),r=G(this.getTable(e),3),n=r[0],o=r[1],u=r[2];if((0,c.Z)(u)){var a=o.rowOffset();n.insertRow(a+t),this.quill.update(i.ZP.sources.USER),t>0?this.quill.setSelection(e,i.ZP.sources.SILENT):this.quill.setSelection(e.index+o.children.length,e.length,i.ZP.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var t=this.quill.getSelection(),e=G(this.getTable(t),3),r=e[0],n=e[2];(0,c.Z)(n)&&(r.insertHeaderRow(),this.quill.update(i.ZP.sources.USER))}},{key:"insertTable",value:function(t,e){var r=this.quill.getSelection();if((0,c.Z)(r)){var n=new Array(t).fill(0).reduce((function(t){var r=new Array(e).fill("\n").join("");return t.insert(r,{table:D()})}),(new(o())).retain(r.index));this.quill.updateContents(n,i.ZP.sources.USER),this.quill.setSelection(r.index,i.ZP.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var t=this;this.quill.on(i.ZP.events.SCROLL_OPTIMIZE,(function(e){e.some((function(e){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(e.target.tagName)&&(t.quill.once(i.ZP.events.TEXT_CHANGE,(function(e,r,n){n===i.ZP.sources.USER&&t.balanceTables()})),!0)}))})),this.quill.on(i.ZP.events.CONTENT_SETTED,(function(){t.quill.once(i.ZP.events.TEXT_CHANGE,(function(){t.balanceTables()}))}))}}],n=[{key:"register",value:function(){i.ZP.register(A,!0),i.ZP.register(T,!0),i.ZP.register(Z,!0),i.ZP.register(C,!0),i.ZP.register(B,!0),i.ZP.register(q,!0),i.ZP.register(I,!0),[s.li,W.Du].forEach((function(t){Object.keys(t).forEach((function(e){var r,n,o;i.ZP.register((r={},n="formats/".concat(e),o=t[e],(n=Q(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r),!0)}))}))}}],r&&X(e.prototype,r),n&&X(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(u.Z);function it(t,e){var r="TABLE"===t.parentNode.tagName?t.parentNode:t.parentNode.parentNode,n="THEAD"===t.parentNode.tagName||null,o=Array.from(r.querySelectorAll("tr")).indexOf(t)+1;return(0,M.HI)(e,n?"tableHeaderCell":"table",o)}ot.keyboardBindings={"table backspace":{key:"backspace",format:["table","tableHeaderCell"],collapsed:!0,offset:0,handler:function(){}},"table delete":{key:"del",format:["table","tableHeaderCell"],collapsed:!0,suffix:/^$/,handler:function(){}},"table enter":{key:"enter",shiftKey:null,format:["table"],handler:function(t){var e=this.quill.getModule("table");if(e){var r=this.quill,n=G(e.getTable(t),4),o=n[0],i=H(n[1],n[2],n[3]),u=o.children.length>1&&o.children.head;if(null==i||i<0&&u)return;var a=o.offset();i<0?z({quill:r,index:a,range:t}):(0,F.Z)({quill:r,index:a,table:o})}}},"table header enter":{key:"enter",shiftKey:null,format:["tableHeaderCell"],handler:function(t){var e=this.quill.getModule("table");if(e){var r=this.quill,n=G(e.getTable(t),4),o=n[0],i=H(n[1],n[2],n[3]);if(null==i)return;var u=o.offset(),a=o.children.length>1&&o.children.tail;i<0||i>0&&a?z({quill:r,index:u,range:t}):(0,F.Z)({quill:r,index:u,table:o})}}},"table tab":{key:"tab",shiftKey:null,format:["table","tableHeaderCell"],handler:function(t,e){var r=e.event,n=e.line,o=n.offset(this.quill.scroll);r.shiftKey?this.quill.setSelection(o-1,i.ZP.sources.USER):this.quill.setSelection(o+n.length(),i.ZP.sources.USER)}},"table down":(0,U.Z)(!1,["table","tableHeaderCell"]),"table up":(0,U.Z)(!0,["table","tableHeaderCell"])};const ut=ot},2480:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n=r(9098),o=r.n(n),i=r(281);function u(t){var e=t.quill,r=t.index+t.table.length(),n=(new(o())).retain(r).insert("\n");e.updateContents(n,i.ZP.sources.USER),e.setSelection(r,i.ZP.sources.USER)}},9466:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(281);function o(t,e){return{key:t?"upArrow":"downArrow",collapsed:!0,format:e,handler:function(e,r){var o=t?"prev":"next",i=r.line,u=i.statics.blotName.indexOf("Line")>-1?i.parent:i,a=u.parent.parent[o],l=u.parent[o]||(null==a?void 0:a.children.head);if(null!=l){if("tableRow"===l.statics.blotName||"tableHeaderRow"===l.statics.blotName){for(var c=l.children.head,s=u;null!=s.prev;)s=s.prev,c=c.next;var f=c.offset(this.quill.scroll)+Math.min(r.offset,c.length()-1);this.quill.setSelection(f,0,n.ZP.sources.USER)}}else{var p=u.table()[o];null!=p&&(t?this.quill.setSelection(p.offset(this.quill.scroll)+p.length()-1,0,n.ZP.sources.USER):this.quill.setSelection(p.offset(this.quill.scroll),0,n.ZP.sources.USER))}return!1}}}},7896:(t,e,r)=>{"use strict";r.d(e,{F:()=>h,a:()=>y});var n=r(1233),o=r(1674),i=r(4569),u=r(5635);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e,r,n){t[e]=!n&&t[e]?t[e]:r}function p(t,e,r,o,i,u){return t.filter((function(t){return!!t})).forEach((function(t){var a=r.query(t,n.Scope.ATTRIBUTE);if(null!==a){var l=a.value(e);if(l)return void f(i,a.attrName,l,u)}var c=o[t];if(null!=c&&(c.attrName===t||c.keyName===t)){var s=c.value(e)||void 0;f(i,c.attrName,s,u)}})),i}function h(t){return function(e,r,n){var a=o.Z.keys(e),l=i.Z.keys(e),s=c(c({},p(a,e,n,t,{},!0)),p(l,e,n,t,{},!0));return Object.keys(s).length>0?(0,u.HI)(r,s):r}}function y(t){return function(e,r,n){var a,l=o.Z.keys(e),s=i.Z.keys(e),f="TR"===(null===(a=e.parentNode)||void 0===a?void 0:a.tagName)?e.parentNode:void 0,h=c(c({},p(l,e,n,t,{},!0)),p(s,e,n,t,{},!0));f&&(h=p(i.Z.keys(f),f,n,t,h,!1));return Object.keys(h).length>0?(0,u.HI)(r,h):r}}},3859:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n=r(9098),o=r.n(n),i=r(2069),u=r(7094),a=r(8034);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===l(e)?e:String(e)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var e,r,n,o=p(i);function i(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this,t,e)).preventImageUploading(!1),r.addDragOverHandler(),r.addDropHandler(),r}return e=i,(r=[{key:"addDragOverHandler",value:function(){if((0,a.Z)()){var t=window.navigator.userAgent.toLowerCase();(-1!==t.indexOf("msie ")||-1!==t.indexOf("trident/")||-1!==t.indexOf("edge/"))&&this.quill.root.addEventListener("dragover",(function(t){t.preventDefault()}))}}},{key:"addDropHandler",value:function(){var t=this;this.quill.root.addEventListener("drop",(function(e){var r=0===e.dataTransfer.files.length,n=t.options.onDrop;if(n&&"function"==typeof n&&n(e),!r&&!t.preventImageUpload){var o;if(e.preventDefault(),document.caretRangeFromPoint)o=document.caretRangeFromPoint(e.clientX,e.clientY);else{if(!document.caretPositionFromPoint)return;var i=document.caretPositionFromPoint(e.clientX,e.clientY);(o=document.createRange()).setStart(i.offsetNode,i.offset),o.setEnd(i.offsetNode,i.offset)}var u=t.quill.selection.normalizeNative(o),a=t.quill.selection.normalizedToRange(u);t.upload(a,e.dataTransfer.files)}}))}},{key:"preventImageUploading",value:function(t){return void 0!==t&&(this.preventImageUpload=t),this.preventImageUpload}},{key:"upload",value:function(t,e,r){var n=this;if(!this.preventImageUpload||r){var o=[];Array.from(e).forEach((function(t){t&&-1!==n.options.mimetypes.indexOf(t.type)&&o.push(t)})),o.length>0&&this.options.handler.call(this,t,o,this.options.imageBlot)}}}])&&c(e.prototype,r),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(u.Z);d.DEFAULTS={mimetypes:["image/png","image/jpeg","image/pjpeg","image/gif","image/webp","image/bmp","image/svg+xml","image/vnd.microsoft.icon"],imageBlot:"image",handler:function(t,e,r){var n=this,u=e.map((function(t){return new Promise((function(e){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.readAsDataURL(t)}))}));Promise.all(u).then((function(e){var u=e.reduce((function(t,e){return t.insert((n={},i=e,(o=s(o=r))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n));var n,o,i}),(new(o())).retain(t.index).delete(t.length));n.quill.updateContents(u,i.Z.sources.USER),n.quill.setSelection(t.index+e.length,i.Z.sources.SILENT)}))}};const b=d},2141:(t,e,r)=>{"use strict";function n(t){return t?t.substring(0,1).toUpperCase()+t.substring(1):""}r.d(e,{Z:()=>n})},8034:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=function(){return"undefined"!=typeof window}},5874:(t,e,r)=>{"use strict";function n(t){return null!=t}r.d(e,{Z:()=>n})},4506:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(t===e)return!0;if(null==t||null==e||"object"!==n(t)||"object"!==n(e))return!1;if(Array.isArray(t))return!(!Array.isArray(e)||t.length!==e.length)&&t.every((function(t,r){return o(t,e[r])}));if(Array.isArray(e))return!1;var r=Object.keys(t),i=Object.keys(e);return r.length===i.length&&r.every((function(r){return Object.prototype.hasOwnProperty.call(e,r)&&o(t[r],e[r])}))}r.d(e,{Z:()=>o})},1233:(t,e,r)=>{"use strict";var n;r.r(e),r.d(e,{Attributor:()=>g,AttributorStore:()=>N,BlockBlot:()=>R,ClassAttributor:()=>j,ContainerBlot:()=>b,EmbedBlot:()=>Z,InlineBlot:()=>x,LeafBlot:()=>m,ParentBlot:()=>y,Registry:()=>s,Scope:()=>o,ScrollBlot:()=>I,StyleAttributor:()=>_,TextBlot:()=>M}),function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(n||(n={}));const o=n;const i=function(){function t(){this.head=null,this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.insertBefore(t[0],null),t.length>1){var r=t.slice(1);this.append.apply(this,r)}},t.prototype.at=function(t){for(var e=this.iterator(),r=e();r&&t>0;)t-=1,r=e();return r},t.prototype.contains=function(t){for(var e=this.iterator(),r=e();r;){if(r===t)return!0;r=e()}return!1},t.prototype.indexOf=function(t){for(var e=this.iterator(),r=e(),n=0;r;){if(r===t)return n;n+=1,r=e()}return-1},t.prototype.insertBefore=function(t,e){null!=t&&(this.remove(t),t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,r=this.head;null!=r;){if(r===t)return e;e+=r.length(),r=r.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var r=this.iterator(),n=r();n;){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o,n=r()}return[null,0]},t.prototype.forEach=function(t){for(var e=this.iterator(),r=e();r;)t(r),r=e()},t.prototype.forEachAt=function(t,e,r){if(!(e<=0))for(var n=this.find(t),o=n[0],i=t-n[1],u=this.iterator(o),a=u();a&&i<t+e;){var l=a.length();t>i?r(a,t-i,Math.min(e,i+l-t)):r(a,0,Math.min(l,t+e-i)),i+=l,a=u()}},t.prototype.map=function(t){return this.reduce((function(e,r){return e.push(t(r)),e}),[])},t.prototype.reduce=function(t,e){for(var r=this.iterator(),n=r();n;)e=t(e,n),n=r();return e},t}();var u,a=(u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},u(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const l=function(t){function e(e){var r=this;return e="[Parchment] "+e,(r=t.call(this,e)||this).message=e,r.name=r.constructor.name,r}return a(e,t),e}(Error);var c=function(){function t(){this.attributes={},this.classes={},this.tags={},this.types={}}return t.find=function(t,e){if(void 0===e&&(e=!1),null==t)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){var r=null;try{r=t.parentNode}catch(t){return null}return this.find(r,e)}return null},t.prototype.create=function(e,r,n){var o=this.query(r);if(null==o)throw new l("Unable to create ".concat(r," blot"));var i=o,u=r instanceof Node||r.nodeType===Node.TEXT_NODE?r:i.create(n),a=new i(e,u,n);return t.blots.set(a.domNode,a),a},t.prototype.find=function(e,r){return void 0===r&&(r=!1),t.find(e,r)},t.prototype.query=function(t,e){var r,n=this;if(void 0===e&&(e=o.ANY),"string"==typeof t)r=this.types[t]||this.attributes[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)r=this.types.text;else if("number"==typeof t)t&o.LEVEL&o.BLOCK?r=this.types.block:t&o.LEVEL&o.INLINE&&(r=this.types.inline);else if(t instanceof Element){(t.getAttribute("class")||"").split(/\s+/).some((function(t){return!!(r=n.classes[t])})),r=r||this.tags[t.tagName]}return null==r?null:e&o.LEVEL&r.scope&&e&o.TYPE&r.scope?r:null},t.prototype.register=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(e.length>1)return e.map((function(e){return t.register(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new l("Invalid definition");if("abstract"===n.blotName)throw new l("Cannot register abstract class");if(this.types[n.blotName||n.attrName]=n,"string"==typeof n.keyName)this.attributes[n.keyName]=n;else if(null!=n.className&&(this.classes[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var o=Array.isArray(n.tagName)?n.tagName:[n.tagName];o.forEach((function(e){null!=t.tags[e]&&null!=n.className||(t.tags[e]=n)}))}return n},t.blots=new WeakMap,t}();const s=c;const f=function(){function t(t,e){this.scroll=t,this.domNode=e,s.blots.set(e,this),this.prev=null,this.next=null}return t.create=function(t){if(null==this.tagName)throw new l("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t,10).toString()===t&&(t=parseInt(t,10))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!1,configurable:!0}),t.prototype.attach=function(){},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return this.scroll.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),s.blots.delete(this.domNode)},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,r,n){var i=this.isolate(t,e);if(null!=this.scroll.query(r,o.BLOT)&&n)i.wrap(r,n);else if(null!=this.scroll.query(r,o.ATTRIBUTE)){var u=this.scroll.create(this.statics.scope);i.wrap(u),u.format(r,n)}},t.prototype.insertAt=function(t,e,r){var n=null==r?this.scroll.create("text",e):this.scroll.create(e,r),o=this.split(t);this.parent.insertBefore(n,o||void 0)},t.prototype.isolate=function(t,e){var r=this.split(t);if(null==r)throw new Error("Attempt to isolate at end");return r.split(e),r},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){!this.statics.requiredContainer||this.parent instanceof this.statics.requiredContainer||this.wrap(this.statics.requiredContainer.blotName)},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replaceWith=function(t,e){var r="string"==typeof t?this.scroll.create(t,e):t;return null!=this.parent&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var r="string"==typeof t?this.scroll.create(t,e):t;if(null!=this.parent&&this.parent.insertBefore(r,this.next||void 0),"function"!=typeof r.appendChild)throw new l("Cannot wrap ".concat(t));return r.appendChild(this),r},t.blotName="abstract",t}();var p=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function h(t,e){var r=e.find(t);if(null==r)try{r=e.create(t)}catch(n){r=e.create(o.INLINE),Array.from(t.childNodes).forEach((function(t){r.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach()}return r}const y=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.uiNode=null,n.build(),n}return p(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.attachUI=function(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,e.uiClass&&this.uiNode.classList.add(e.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)},e.prototype.build=function(){var t=this;this.children=new i,Array.from(this.domNode.childNodes).filter((function(e){return e!==t.uiNode})).reverse().forEach((function(e){try{var r=h(e,t.scroll);t.insertBefore(r,t.children.head||void 0)}catch(t){if(t instanceof l)return;throw t}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,r){t.deleteAt(e,r)}))},e.prototype.descendant=function(t,r){void 0===r&&(r=0);var n=this.children.find(r),o=n[0],i=n[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,r,n){void 0===r&&(r=0),void 0===n&&(n=Number.MAX_VALUE);var o=[],i=n;return this.children.forEachAt(r,n,(function(r,n,u){(null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t)&&o.push(r),r instanceof e&&(o=o.concat(r.descendants(t,n,i))),i-=u})),o},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.enforceAllowedChildren=function(){var t=this,r=!1;this.children.forEach((function(n){r||(t.statics.allowedChildren.some((function(t){return n instanceof t}))||(n.statics.scope===o.BLOCK_BLOT?(null!=n.next&&t.splitAfter(n),null!=n.prev&&t.splitAfter(n.prev),n.parent.unwrap(),r=!0):n instanceof e?n.unwrap():n.remove()))}))},e.prototype.formatAt=function(t,e,r,n){this.children.forEachAt(t,e,(function(t,e,o){t.formatAt(e,o,r,n)}))},e.prototype.insertAt=function(t,e,r){var n=this.children.find(t),o=n[0],i=n[1];if(o)o.insertAt(i,e,r);else{var u=null==r?this.scroll.create("text",e):this.scroll.create(e,r);this.appendChild(u)}},e.prototype.insertBefore=function(t,e){null!=t.parent&&t.parent.children.remove(t);var r=null;this.children.insertBefore(t,e||null),t.parent=this,null!=e&&(r=e.domNode),this.domNode.parentNode===t.domNode&&this.domNode.nextSibling===r||this.domNode.insertBefore(t.domNode,r),t.attach()},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(r){t.insertBefore(r,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){var r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r)}else this.remove()},e.prototype.path=function(t,r){void 0===r&&(r=!1);var n=this.children.find(t,r),o=n[0],i=n[1],u=[[this,t]];return o instanceof e?u.concat(o.path(i,r)):(null!=o&&u.push([o,i]),u)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replaceWith=function(r,n){var o="string"==typeof r?this.scroll.create(r,n):r;return o instanceof e&&this.moveChildren(o),t.prototype.replaceWith.call(this,o)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(function(t,n,o){var i=t.split(n,e);null!=i&&r.appendChild(i)})),r},e.prototype.splitAfter=function(t){for(var e=this.clone();null!=t.next;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e},e.prototype.unwrap=function(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()},e.prototype.update=function(t,e){var r=this,n=[],o=[];t.forEach((function(t){t.target===r.domNode&&"childList"===t.type&&(n.push.apply(n,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=r.scroll.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==r.domNode||e.detach())}})),n.filter((function(t){return t.parentNode===r.domNode||t===r.uiNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=r.scroll.find(t.nextSibling));var n=h(t,r.scroll);n.next===e&&null!=n.next||(null!=n.parent&&n.parent.removeChild(r),r.insertBefore(n,e||void 0))})),this.enforceAllowedChildren()},e.uiClass="",e}(f);var d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.checkMerge=function(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName},e.prototype.deleteAt=function(e,r){t.prototype.deleteAt.call(this,e,r),this.enforceAllowedChildren()},e.prototype.formatAt=function(e,r,n,o){t.prototype.formatAt.call(this,e,r,n,o),this.enforceAllowedChildren()},e.prototype.insertAt=function(e,r,n){t.prototype.insertAt.call(this,e,r,n),this.enforceAllowedChildren()},e.prototype.optimize=function(e){t.prototype.optimize.call(this,e),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())},e.blotName="container",e.scope=o.BLOCK_BLOT,e}(y);var v=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=o.INLINE_BLOT,e}(f);const g=function(){function t(t,e,r){void 0===r&&(r={}),this.attrName=t,this.keyName=e;var n=o.TYPE&o.ATTRIBUTE;this.scope=null!=r.scope?r.scope&o.LEVEL|n:o.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist)}return t.keys=function(t){return Array.from(t.attributes).map((function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1)},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();var w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function O(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf("".concat(e,"-"))}))}const j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add("".concat(this.keyName,"-").concat(e)),!0)},e.prototype.remove=function(t){O(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(O(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(g);var S=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function P(t){var e=t.split("-"),r=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+r}const _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[P(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[P(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[P(this.keyName)];return this.canAdd(t,e)?e:""},e}(g);const N=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=s.find(this.domNode);if(null!=e){var r=g.keys(this.domNode),n=j.keys(this.domNode),i=_.keys(this.domNode);r.concat(n).concat(i).forEach((function(r){var n=e.scroll.query(r,o.ATTRIBUTE);n instanceof g&&(t.attributes[n.attrName]=n)}))}},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(r){var n=e.attributes[r].value(e.domNode);t.format(r,n)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,r){return e[r]=t.attributes[r].value(t.domNode),e}),{})},t}();var E=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();var k=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.attributes=new N(n.domNode),n}return E(e,t),e.formats=function(t,r){var n=r.query(e.blotName);if(null==n||t.tagName!==n.tagName)return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,r){var n=this;if(t!==this.statics.blotName||r){var i=this.scroll.query(t,o.INLINE);if(null==i)return;i instanceof g?this.attributes.attribute(i,r):!r||t===this.statics.blotName&&this.formats()[t]===r||this.replaceWith(t,r)}else this.children.forEach((function(t){t instanceof e||(t=t.wrap(e.blotName,!0)),n.attributes.copy(t)})),this.unwrap()},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.formatAt=function(e,r,n,i){null!=this.formats()[n]||this.scroll.query(n,o.ATTRIBUTE)?this.isolate(e,r).format(n,i):t.prototype.formatAt.call(this,e,r,n,i)},e.prototype.optimize=function(r){t.prototype.optimize.call(this,r);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var r in t)if(t[r]!==e[r])return!1;return!0}(n,o.formats())&&(o.moveChildren(this),o.remove())},e.prototype.replaceWith=function(e,r){var n=t.prototype.replaceWith.call(this,e,r);return this.attributes.copy(n),n},e.prototype.update=function(e,r){var n=this;t.prototype.update.call(this,e,r),e.some((function(t){return t.target===n.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(r,n){var o=t.prototype.wrap.call(this,r,n);return o instanceof e&&this.attributes.move(o),o},e.allowedChildren=[e,m],e.blotName="inline",e.scope=o.INLINE_BLOT,e.tagName="SPAN",e}(y);const x=k;var T=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.attributes=new N(n.domNode),n}return T(e,t),e.formats=function(t,r){var n=r.query(e.blotName);if(null==n||t.tagName!==n.tagName)return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,r){var n=this.scroll.query(t,o.BLOCK);null!=n&&(n instanceof g?this.attributes.attribute(n,r):t!==this.statics.blotName||r?!r||t===this.statics.blotName&&this.formats()[t]===r||this.replaceWith(t,r):this.replaceWith(e.blotName))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.formatAt=function(e,r,n,i){null!=this.scroll.query(n,o.BLOCK)?this.format(n,i):t.prototype.formatAt.call(this,e,r,n,i)},e.prototype.insertAt=function(e,r,n){if(null==n||null!=this.scroll.query(r,o.INLINE))t.prototype.insertAt.call(this,e,r,n);else{var i=this.split(e);if(null==i)throw new Error("Attempt to insertAt after block boundaries");var u=this.scroll.create(r,n);i.parent.insertBefore(u,i)}},e.prototype.replaceWith=function(e,r){var n=t.prototype.replaceWith.call(this,e,r);return this.attributes.copy(n),n},e.prototype.update=function(e,r){var n=this;t.prototype.update.call(this,e,r),e.some((function(t){return t.target===n.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.blotName="block",e.scope=o.BLOCK_BLOT,e.tagName="P",e.allowedChildren=[x,e,m],e}(y);const R=A;var C=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C(e,t),e.formats=function(t,e){},e.prototype.format=function(e,r){t.prototype.formatAt.call(this,0,this.length(),e,r)},e.prototype.formatAt=function(e,r,n,o){0===e&&r===this.length()?this.format(n,o):t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode,this.scroll)},e}(m);var L=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),B={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},q=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.registry=e,n.scroll=n,n.build(),n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,B),n.attach(),n}return L(e,t),e.prototype.create=function(t,e){return this.registry.create(this,t,e)},e.prototype.find=function(t,e){void 0===e&&(e=!1);var r=this.registry.find(t,e);return r?r.scroll===this?r:e?this.find(r.scroll.domNode.parentNode,!0):null:null},e.prototype.query=function(t,e){return void 0===e&&(e=o.ANY),this.registry.query(t,e)},e.prototype.register=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(t=this.registry).register.apply(t,e)},e.prototype.build=function(){null!=this.scroll&&t.prototype.build.call(this)},e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,r){this.update(),0===e&&r===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,r)},e.prototype.formatAt=function(e,r,n,o){this.update(),t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.insertAt=function(e,r,n){this.update(),t.prototype.insertAt.call(this,e,r,n)},e.prototype.optimize=function(e,r){var n=this;void 0===e&&(e=[]),void 0===r&&(r={}),t.prototype.optimize.call(this,r);for(var o=r.mutationsMap||new WeakMap,i=Array.from(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var u=function t(e,r){void 0===r&&(r=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(o.has(e.domNode)||o.set(e.domNode,[]),r&&t(e.parent))},a=function t(e){o.has(e.domNode)&&(e instanceof y&&e.children.forEach(t),o.delete(e.domNode),e.optimize(r))},l=e,c=0;l.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach((function(t){var e=n.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(u(n.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach((function(t){var e=n.find(t,!1);u(e,!1),e instanceof y&&e.children.forEach((function(t){u(t,!1)}))}))):"attributes"===t.type&&u(e.prev)),u(e))})),this.children.forEach(a),i=(l=Array.from(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,r){var n=this;void 0===r&&(r={}),e=e||this.observer.takeRecords();var o=new WeakMap;e.map((function(t){var e=n.find(t.target,!0);return null==e?null:o.has(e.domNode)?(o.get(e.domNode).push(t),null):(o.set(e.domNode,[t]),e)})).forEach((function(t){null!=t&&t!==n&&o.has(t.domNode)&&t.update(o.get(t.domNode)||[],r)})),r.mutationsMap=o,o.has(this.domNode)&&t.prototype.update.call(this,o.get(this.domNode),r),this.optimize(e,r)},e.blotName="scroll",e.defaultChild=R,e.allowedChildren=[R,b],e.scope=o.BLOCK_BLOT,e.tagName="DIV",e}(y);const I=q;var D=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const M=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.text=n.statics.value(n.domNode),n}return D(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){return t.data},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,r,n){null==n?(this.text=this.text.slice(0,e)+r+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,r,n)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(r){t.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r},e.prototype.update=function(t,e){var r=this;t.some((function(t){return"characterData"===t.type&&t.target===r.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.INLINE_BLOT,e}(m)},3034:function(t,e){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function o(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function u(t,e,r,o,u){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||t,u),l=n?n+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],a]:t._events[l].push(a):(t._events[l]=a,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),l.prototype.eventNames=function(){var t,e,o=[];if(0===this._eventsCount)return o;for(e in t=this._events)r.call(t,e)&&o.push(n?e.slice(1):e);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},l.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,u=new Array(i);o<i;o++)u[o]=r[o].fn;return u},l.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},l.prototype.emit=function(t,e,r,o,i,u){var a=n?n+t:t;if(!this._events[a])return!1;var l,c,s=this._events[a],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,r),!0;case 4:return s.fn.call(s.context,e,r,o),!0;case 5:return s.fn.call(s.context,e,r,o,i),!0;case 6:return s.fn.call(s.context,e,r,o,i,u),!0}for(c=1,l=new Array(f-1);c<f;c++)l[c-1]=arguments[c];s.fn.apply(s.context,l)}else{var p,h=s.length;for(c=0;c<h;c++)switch(s[c].once&&this.removeListener(t,s[c].fn,void 0,!0),f){case 1:s[c].fn.call(s[c].context);break;case 2:s[c].fn.call(s[c].context,e);break;case 3:s[c].fn.call(s[c].context,e,r);break;case 4:s[c].fn.call(s[c].context,e,r,o);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];s[c].fn.apply(s[c].context,l)}}return!0},l.prototype.on=function(t,e,r){return u(this,t,e,r,!1)},l.prototype.once=function(t,e,r){return u(this,t,e,r,!0)},l.prototype.removeListener=function(t,e,r,o){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==e||o&&!u.once||r&&u.context!==r||a(this,i);else{for(var l=0,c=[],s=u.length;l<s;l++)(u[l].fn!==e||o&&!u[l].once||r&&u[l].context!==r)&&c.push(u[l]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},l.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,void 0!==t&&(t.exports=l)},1456:t=>{var e=-1;function r(t,a,l,c){if(t===a)return t?[[0,t]]:[];if(null!=l){var s=function(t,e,r){var n="number"==typeof r?{index:r,length:0}:r.oldRange,o="number"==typeof r?null:r.newRange,i=t.length,u=e.length;if(0===n.length&&(null===o||0===o.length)){var a=n.index,l=t.slice(0,a),c=t.slice(a),s=o?o.index:null,p=a+u-i;if((null===s||s===p)&&!(p<0||p>u)){var h=e.slice(0,p);if((b=e.slice(p))===c){var y=Math.min(a,p);if((m=l.slice(0,y))===(w=h.slice(0,y)))return f(m,l.slice(y),h.slice(y),c)}}if(null===s||s===a){var d=a,b=(h=e.slice(0,d),e.slice(d));if(h===l){var v=Math.min(i-d,u-d);if((g=c.slice(c.length-v))===(O=b.slice(b.length-v)))return f(l,c.slice(0,c.length-v),b.slice(0,b.length-v),g)}}}if(n.length>0&&o&&0===o.length){var m=t.slice(0,n.index),g=t.slice(n.index+n.length);if(!(u<(y=m.length)+(v=g.length))){var w=e.slice(0,y),O=e.slice(u-v);if(m===w&&g===O)return f(m,t.slice(y,i-v),e.slice(y,u-v),g)}}return null}(t,a,l);if(s)return s}var p=o(t,a),h=t.substring(0,p);p=i(t=t.substring(p),a=a.substring(p));var y=t.substring(t.length-p),d=function(t,u){var a;if(!t)return[[1,u]];if(!u)return[[e,t]];var l=t.length>u.length?t:u,c=t.length>u.length?u:t,s=l.indexOf(c);if(-1!==s)return a=[[1,l.substring(0,s)],[0,c],[1,l.substring(s+c.length)]],t.length>u.length&&(a[0][0]=a[2][0]=e),a;if(1===c.length)return[[e,t],[1,u]];var f=function(t,e){var r=t.length>e.length?t:e,n=t.length>e.length?e:t;if(r.length<4||2*n.length<r.length)return null;function u(t,e,r){for(var n,u,a,l,c=t.substring(r,r+Math.floor(t.length/4)),s=-1,f="";-1!==(s=e.indexOf(c,s+1));){var p=o(t.substring(r),e.substring(s)),h=i(t.substring(0,r),e.substring(0,s));f.length<h+p&&(f=e.substring(s-h,s)+e.substring(s,s+p),n=t.substring(0,r-h),u=t.substring(r+p),a=e.substring(0,s-h),l=e.substring(s+p))}return 2*f.length>=t.length?[n,u,a,l,f]:null}var a,l,c,s,f,p=u(r,n,Math.ceil(r.length/4)),h=u(r,n,Math.ceil(r.length/2));if(!p&&!h)return null;a=h?p&&p[4].length>h[4].length?p:h:p;t.length>e.length?(l=a[0],c=a[1],s=a[2],f=a[3]):(s=a[0],f=a[1],l=a[2],c=a[3]);var y=a[4];return[l,c,s,f,y]}(t,u);if(f){var p=f[0],h=f[1],y=f[2],d=f[3],b=f[4],v=r(p,y),m=r(h,d);return v.concat([[0,b]],m)}return function(t,r){for(var o=t.length,i=r.length,u=Math.ceil((o+i)/2),a=u,l=2*u,c=new Array(l),s=new Array(l),f=0;f<l;f++)c[f]=-1,s[f]=-1;c[a+1]=0,s[a+1]=0;for(var p=o-i,h=p%2!=0,y=0,d=0,b=0,v=0,m=0;m<u;m++){for(var g=-m+y;g<=m-d;g+=2){for(var w=a+g,O=(N=g===-m||g!==m&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-g;N<o&&O<i&&t.charAt(N)===r.charAt(O);)N++,O++;if(c[w]=N,N>o)d+=2;else if(O>i)y+=2;else if(h){if((P=a+p-g)>=0&&P<l&&-1!==s[P])if(N>=(S=o-s[P]))return n(t,r,N,O)}}for(var j=-m+b;j<=m-v;j+=2){for(var S,P=a+j,_=(S=j===-m||j!==m&&s[P-1]<s[P+1]?s[P+1]:s[P-1]+1)-j;S<o&&_<i&&t.charAt(o-S-1)===r.charAt(i-_-1);)S++,_++;if(s[P]=S,S>o)v+=2;else if(_>i)b+=2;else if(!h){if((w=a+p-j)>=0&&w<l&&-1!==c[w]){var N;O=a+(N=c[w])-w;if(N>=(S=o-S))return n(t,r,N,O)}}}}return[[e,t],[1,r]]}(t,u)}(t=t.substring(0,t.length-p),a=a.substring(0,a.length-p));return h&&d.unshift([0,h]),y&&d.push([0,y]),u(d,c),d}function n(t,e,n,o){var i=t.substring(0,n),u=e.substring(0,o),a=t.substring(n),l=e.substring(o),c=r(i,u),s=r(a,l);return c.concat(s)}function o(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var r=0,n=Math.min(t.length,e.length),o=n,i=0;r<o;)t.substring(i,o)==e.substring(i,o)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return a(t.charCodeAt(o-1))&&o--,o}function i(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var r=0,n=Math.min(t.length,e.length),o=n,i=0;r<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return l(t.charCodeAt(t.length-o))&&o--,o}function u(t,r){t.push([0,""]);for(var n,a=0,l=0,f=0,p="",h="";a<t.length;)if(a<t.length-1&&!t[a][1])t.splice(a,1);else switch(t[a][0]){case 1:f++,h+=t[a][1],a++;break;case e:l++,p+=t[a][1],a++;break;case 0:var y=a-f-l-1;if(r){if(y>=0&&s(t[y][1])){var d=t[y][1].slice(-1);if(t[y][1]=t[y][1].slice(0,-1),p=d+p,h=d+h,!t[y][1]){t.splice(y,1),a--;var b=y-1;t[b]&&1===t[b][0]&&(f++,h=t[b][1]+h,b--),t[b]&&t[b][0]===e&&(l++,p=t[b][1]+p,b--),y=b}}if(c(t[a][1])){d=t[a][1].charAt(0);t[a][1]=t[a][1].slice(1),p+=d,h+=d}}if(a<t.length-1&&!t[a][1]){t.splice(a,1);break}if(p.length>0||h.length>0){p.length>0&&h.length>0&&(0!==(n=o(h,p))&&(y>=0?t[y][1]+=h.substring(0,n):(t.splice(0,0,[0,h.substring(0,n)]),a++),h=h.substring(n),p=p.substring(n)),0!==(n=i(h,p))&&(t[a][1]=h.substring(h.length-n)+t[a][1],h=h.substring(0,h.length-n),p=p.substring(0,p.length-n)));var v=f+l;0===p.length&&0===h.length?(t.splice(a-v,v),a-=v):0===p.length?(t.splice(a-v,v,[1,h]),a=a-v+1):0===h.length?(t.splice(a-v,v,[e,p]),a=a-v+1):(t.splice(a-v,v,[e,p],[1,h]),a=a-v+2)}0!==a&&0===t[a-1][0]?(t[a-1][1]+=t[a][1],t.splice(a,1)):a++,f=0,l=0,p="",h=""}""===t[t.length-1][1]&&t.pop();var m=!1;for(a=1;a<t.length-1;)0===t[a-1][0]&&0===t[a+1][0]&&(t[a][1].substring(t[a][1].length-t[a-1][1].length)===t[a-1][1]?(t[a][1]=t[a-1][1]+t[a][1].substring(0,t[a][1].length-t[a-1][1].length),t[a+1][1]=t[a-1][1]+t[a+1][1],t.splice(a-1,1),m=!0):t[a][1].substring(0,t[a+1][1].length)==t[a+1][1]&&(t[a-1][1]+=t[a+1][1],t[a][1]=t[a][1].substring(t[a+1][1].length)+t[a+1][1],t.splice(a+1,1),m=!0)),a++;m&&u(t,r)}function a(t){return t>=55296&&t<=56319}function l(t){return t>=56320&&t<=57343}function c(t){return l(t.charCodeAt(0))}function s(t){return a(t.charCodeAt(t.length-1))}function f(t,r,n,o){return s(t)||c(o)?null:function(t){for(var e=[],r=0;r<t.length;r++)t[r][1].length>0&&e.push(t[r]);return e}([[0,t],[e,r],[1,n],[0,o]])}function p(t,e,n){return r(t,e,n,!0)}p.INSERT=1,p.DELETE=e,p.EQUAL=0,t.exports=p},8805:(t,e,r)=>{t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",u="[object Boolean]",a="[object Date]",l="[object Function]",c="[object GeneratorFunction]",s="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",y="[object RegExp]",d="[object Set]",b="[object String]",v="[object Symbol]",m="[object WeakMap]",g="[object ArrayBuffer]",w="[object DataView]",O="[object Float32Array]",j="[object Float64Array]",S="[object Int8Array]",P="[object Int16Array]",_="[object Int32Array]",N="[object Uint8Array]",E="[object Uint8ClampedArray]",k="[object Uint16Array]",x="[object Uint32Array]",T=/\w*$/,A=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,C={};C[i]=C["[object Array]"]=C[g]=C[w]=C[u]=C[a]=C[O]=C[j]=C[S]=C[P]=C[_]=C[s]=C[f]=C[p]=C[y]=C[d]=C[b]=C[v]=C[N]=C[E]=C[k]=C[x]=!0,C["[object Error]"]=C[l]=C[m]=!1;var Z="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,L="object"==typeof self&&self&&self.Object===Object&&self,B=Z||L||Function("return this")(),q=e&&!e.nodeType&&e,I=q&&t&&!t.nodeType&&t,D=I&&I.exports===q;function M(t,e){return t.set(e[0],e[1]),t}function U(t,e){return t.add(e),t}function z(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function F(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function H(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function K(t,e){return function(r){return t(e(r))}}function W(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var $,G=Array.prototype,V=Function.prototype,Y=Object.prototype,X=B["__core-js_shared__"],Q=($=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"",J=V.toString,tt=Y.hasOwnProperty,et=Y.toString,rt=RegExp("^"+J.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=D?B.Buffer:void 0,ot=B.Symbol,it=B.Uint8Array,ut=K(Object.getPrototypeOf,Object),at=Object.create,lt=Y.propertyIsEnumerable,ct=G.splice,st=Object.getOwnPropertySymbols,ft=nt?nt.isBuffer:void 0,pt=K(Object.keys,Object),ht=It(B,"DataView"),yt=It(B,"Map"),dt=It(B,"Promise"),bt=It(B,"Set"),vt=It(B,"WeakMap"),mt=It(Object,"create"),gt=Ft(ht),wt=Ft(yt),Ot=Ft(dt),jt=Ft(bt),St=Ft(vt),Pt=ot?ot.prototype:void 0,_t=Pt?Pt.valueOf:void 0;function Nt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xt(t){this.__data__=new Et(t)}function Tt(t,e){var r=Kt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Wt(t)}(t)&&tt.call(t,"callee")&&(!lt.call(t,"callee")||et.call(t)==i)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var u in t)!e&&!tt.call(t,u)||o&&("length"==u||Ut(u,n))||r.push(u);return r}function At(t,e,r){var n=t[e];tt.call(t,e)&&Ht(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Rt(t,e){for(var r=t.length;r--;)if(Ht(t[r][0],e))return r;return-1}function Ct(t,e,r,n,o,h,m){var A;if(n&&(A=h?n(t,o,h,m):n(t)),void 0!==A)return A;if(!Vt(t))return t;var R=Kt(t);if(R){if(A=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&tt.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,A)}else{var Z=Mt(t),L=Z==l||Z==c;if($t(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(Z==p||Z==i||L&&!h){if(F(t))return h?t:{};if(A=function(t){return"function"!=typeof t.constructor||zt(t)?{}:(e=ut(t),Vt(e)?at(e):{});var e}(L?{}:t),!e)return function(t,e){return Bt(t,Dt(t),e)}(t,function(t,e){return t&&Bt(e,Yt(e),t)}(A,t))}else{if(!C[Z])return h?t:{};A=function(t,e,r,n){var o=t.constructor;switch(e){case g:return Lt(t);case u:case a:return new o(+t);case w:return function(t,e){var r=e?Lt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case O:case j:case S:case P:case _:case N:case E:case k:case x:return function(t,e){var r=e?Lt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case s:return function(t,e,r){return z(e?r(H(t),!0):H(t),M,new t.constructor)}(t,n,r);case f:case b:return new o(t);case y:return function(t){var e=new t.constructor(t.source,T.exec(t));return e.lastIndex=t.lastIndex,e}(t);case d:return function(t,e,r){return z(e?r(W(t),!0):W(t),U,new t.constructor)}(t,n,r);case v:return i=t,_t?Object(_t.call(i)):{}}var i}(t,Z,Ct,e)}}m||(m=new xt);var B=m.get(t);if(B)return B;if(m.set(t,A),!R)var q=r?function(t){return function(t,e,r){var n=e(t);return Kt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Yt,Dt)}(t):Yt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(q||t,(function(o,i){q&&(o=t[i=o]),At(A,i,Ct(o,e,r,n,i,t,m))})),A}function Zt(t){return!(!Vt(t)||(e=t,Q&&Q in e))&&(Gt(t)||F(t)?rt:A).test(Ft(t));var e}function Lt(t){var e=new t.constructor(t.byteLength);return new it(e).set(new it(t)),e}function Bt(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var u=e[o],a=n?n(r[u],t[u],u,r,t):void 0;At(r,u,void 0===a?t[u]:a)}return r}function qt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function It(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Zt(r)?r:void 0}Nt.prototype.clear=function(){this.__data__=mt?mt(null):{}},Nt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Nt.prototype.get=function(t){var e=this.__data__;if(mt){var r=e[t];return r===n?void 0:r}return tt.call(e,t)?e[t]:void 0},Nt.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:tt.call(e,t)},Nt.prototype.set=function(t,e){return this.__data__[t]=mt&&void 0===e?n:e,this},Et.prototype.clear=function(){this.__data__=[]},Et.prototype.delete=function(t){var e=this.__data__,r=Rt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ct.call(e,r,1),!0)},Et.prototype.get=function(t){var e=this.__data__,r=Rt(e,t);return r<0?void 0:e[r][1]},Et.prototype.has=function(t){return Rt(this.__data__,t)>-1},Et.prototype.set=function(t,e){var r=this.__data__,n=Rt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},kt.prototype.clear=function(){this.__data__={hash:new Nt,map:new(yt||Et),string:new Nt}},kt.prototype.delete=function(t){return qt(this,t).delete(t)},kt.prototype.get=function(t){return qt(this,t).get(t)},kt.prototype.has=function(t){return qt(this,t).has(t)},kt.prototype.set=function(t,e){return qt(this,t).set(t,e),this},xt.prototype.clear=function(){this.__data__=new Et},xt.prototype.delete=function(t){return this.__data__.delete(t)},xt.prototype.get=function(t){return this.__data__.get(t)},xt.prototype.has=function(t){return this.__data__.has(t)},xt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Et){var n=r.__data__;if(!yt||n.length<199)return n.push([t,e]),this;r=this.__data__=new kt(n)}return r.set(t,e),this};var Dt=st?K(st,Object):function(){return[]},Mt=function(t){return et.call(t)};function Ut(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||R.test(t))&&t>-1&&t%1==0&&t<e}function zt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Y)}function Ft(t){if(null!=t){try{return J.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ht(t,e){return t===e||t!=t&&e!=e}(ht&&Mt(new ht(new ArrayBuffer(1)))!=w||yt&&Mt(new yt)!=s||dt&&Mt(dt.resolve())!=h||bt&&Mt(new bt)!=d||vt&&Mt(new vt)!=m)&&(Mt=function(t){var e=et.call(t),r=e==p?t.constructor:void 0,n=r?Ft(r):void 0;if(n)switch(n){case gt:return w;case wt:return s;case Ot:return h;case jt:return d;case St:return m}return e});var Kt=Array.isArray;function Wt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}(t.length)&&!Gt(t)}var $t=ft||function(){return!1};function Gt(t){var e=Vt(t)?et.call(t):"";return e==l||e==c}function Vt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Yt(t){return Wt(t)?Tt(t):function(t){if(!zt(t))return pt(t);var e=[];for(var r in Object(t))tt.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return Ct(t,!0,!0)}},2722:(t,e,r)=>{t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",u="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",s="[object Function]",f="[object Map]",p="[object Number]",h="[object Object]",y="[object Promise]",d="[object RegExp]",b="[object Set]",v="[object String]",m="[object Symbol]",g="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",j=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[i]=P[u]=P[w]=P[a]=P[O]=P[l]=P[c]=P[s]=P[f]=P[p]=P[h]=P[d]=P[b]=P[v]=P[g]=!1;var _="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,N="object"==typeof self&&self&&self.Object===Object&&self,E=_||N||Function("return this")(),k=e&&!e.nodeType&&e,x=k&&t&&!t.nodeType&&t,T=x&&x.exports===k,A=T&&_.process,R=function(){try{return A&&A.binding&&A.binding("util")}catch(t){}}(),C=R&&R.isTypedArray;function Z(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function L(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function B(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var q,I,D,M=Array.prototype,U=Function.prototype,z=Object.prototype,F=E["__core-js_shared__"],H=U.toString,K=z.hasOwnProperty,W=(q=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",$=z.toString,G=RegExp("^"+H.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=T?E.Buffer:void 0,Y=E.Symbol,X=E.Uint8Array,Q=z.propertyIsEnumerable,J=M.splice,tt=Y?Y.toStringTag:void 0,et=Object.getOwnPropertySymbols,rt=V?V.isBuffer:void 0,nt=(I=Object.keys,D=Object,function(t){return I(D(t))}),ot=Rt(E,"DataView"),it=Rt(E,"Map"),ut=Rt(E,"Promise"),at=Rt(E,"Set"),lt=Rt(E,"WeakMap"),ct=Rt(Object,"create"),st=Bt(ot),ft=Bt(it),pt=Bt(ut),ht=Bt(at),yt=Bt(lt),dt=Y?Y.prototype:void 0,bt=dt?dt.valueOf:void 0;function vt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function gt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function wt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new gt;++e<r;)this.add(t[e])}function Ot(t){var e=this.__data__=new mt(t);this.size=e.size}function jt(t,e){var r=Dt(t),n=!r&&It(t),o=!r&&!n&&Mt(t),i=!r&&!n&&!o&&Kt(t),u=r||n||o||i,a=u?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],l=a.length;for(var c in t)!e&&!K.call(t,c)||u&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Lt(c,l))||a.push(c);return a}function St(t,e){for(var r=t.length;r--;)if(qt(t[r][0],e))return r;return-1}function Pt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":tt&&tt in Object(t)?function(t){var e=K.call(t,tt),r=t[tt];try{t[tt]=void 0;var n=!0}catch(t){}var o=$.call(t);n&&(e?t[tt]=r:delete t[tt]);return o}(t):function(t){return $.call(t)}(t)}function _t(t){return Ht(t)&&Pt(t)==i}function Nt(t,e,r,n,o){return t===e||(null==t||null==e||!Ht(t)&&!Ht(e)?t!=t&&e!=e:function(t,e,r,n,o,s){var y=Dt(t),g=Dt(e),j=y?u:Zt(t),S=g?u:Zt(e),P=(j=j==i?h:j)==h,_=(S=S==i?h:S)==h,N=j==S;if(N&&Mt(t)){if(!Mt(e))return!1;y=!0,P=!1}if(N&&!P)return s||(s=new Ot),y||Kt(t)?xt(t,e,r,n,o,s):function(t,e,r,n,o,i,u){switch(r){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!i(new X(t),new X(e)));case a:case l:case p:return qt(+t,+e);case c:return t.name==e.name&&t.message==e.message;case d:case v:return t==e+"";case f:var s=L;case b:var h=1&n;if(s||(s=B),t.size!=e.size&&!h)return!1;var y=u.get(t);if(y)return y==e;n|=2,u.set(t,e);var g=xt(s(t),s(e),n,o,i,u);return u.delete(t),g;case m:if(bt)return bt.call(t)==bt.call(e)}return!1}(t,e,j,r,n,o,s);if(!(1&r)){var E=P&&K.call(t,"__wrapped__"),k=_&&K.call(e,"__wrapped__");if(E||k){var x=E?t.value():t,T=k?e.value():e;return s||(s=new Ot),o(x,T,r,n,s)}}if(!N)return!1;return s||(s=new Ot),function(t,e,r,n,o,i){var u=1&r,a=Tt(t),l=a.length,c=Tt(e).length;if(l!=c&&!u)return!1;var s=l;for(;s--;){var f=a[s];if(!(u?f in e:K.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var h=!0;i.set(t,e),i.set(e,t);var y=u;for(;++s<l;){var d=t[f=a[s]],b=e[f];if(n)var v=u?n(b,d,f,e,t,i):n(d,b,f,t,e,i);if(!(void 0===v?d===b||o(d,b,r,n,i):v)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var m=t.constructor,g=e.constructor;m==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof g&&g instanceof g||(h=!1)}return i.delete(t),i.delete(e),h}(t,e,r,n,o,s)}(t,e,r,n,Nt,o))}function Et(t){return!(!Ft(t)||function(t){return!!W&&W in t}(t))&&(Ut(t)?G:j).test(Bt(t))}function kt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||z,e!==n)return nt(t);var e,r,n,o=[];for(var i in Object(t))K.call(t,i)&&"constructor"!=i&&o.push(i);return o}function xt(t,e,r,n,o,i){var u=1&r,a=t.length,l=e.length;if(a!=l&&!(u&&l>a))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var s=-1,f=!0,p=2&r?new wt:void 0;for(i.set(t,e),i.set(e,t);++s<a;){var h=t[s],y=e[s];if(n)var d=u?n(y,h,s,e,t,i):n(h,y,s,t,e,i);if(void 0!==d){if(d)continue;f=!1;break}if(p){if(!Z(e,(function(t,e){if(u=e,!p.has(u)&&(h===t||o(h,t,r,n,i)))return p.push(e);var u}))){f=!1;break}}else if(h!==y&&!o(h,y,r,n,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function Tt(t){return function(t,e,r){var n=e(t);return Dt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Wt,Ct)}function At(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Rt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Et(r)?r:void 0}vt.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},vt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},vt.prototype.get=function(t){var e=this.__data__;if(ct){var r=e[t];return r===n?void 0:r}return K.call(e,t)?e[t]:void 0},vt.prototype.has=function(t){var e=this.__data__;return ct?void 0!==e[t]:K.call(e,t)},vt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ct&&void 0===e?n:e,this},mt.prototype.clear=function(){this.__data__=[],this.size=0},mt.prototype.delete=function(t){var e=this.__data__,r=St(e,t);return!(r<0)&&(r==e.length-1?e.pop():J.call(e,r,1),--this.size,!0)},mt.prototype.get=function(t){var e=this.__data__,r=St(e,t);return r<0?void 0:e[r][1]},mt.prototype.has=function(t){return St(this.__data__,t)>-1},mt.prototype.set=function(t,e){var r=this.__data__,n=St(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},gt.prototype.clear=function(){this.size=0,this.__data__={hash:new vt,map:new(it||mt),string:new vt}},gt.prototype.delete=function(t){var e=At(this,t).delete(t);return this.size-=e?1:0,e},gt.prototype.get=function(t){return At(this,t).get(t)},gt.prototype.has=function(t){return At(this,t).has(t)},gt.prototype.set=function(t,e){var r=At(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},wt.prototype.add=wt.prototype.push=function(t){return this.__data__.set(t,n),this},wt.prototype.has=function(t){return this.__data__.has(t)},Ot.prototype.clear=function(){this.__data__=new mt,this.size=0},Ot.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Ot.prototype.get=function(t){return this.__data__.get(t)},Ot.prototype.has=function(t){return this.__data__.has(t)},Ot.prototype.set=function(t,e){var r=this.__data__;if(r instanceof mt){var n=r.__data__;if(!it||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new gt(n)}return r.set(t,e),this.size=r.size,this};var Ct=et?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}(et(t),(function(e){return Q.call(t,e)})))}:function(){return[]},Zt=Pt;function Lt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||S.test(t))&&t>-1&&t%1==0&&t<e}function Bt(t){if(null!=t){try{return H.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function qt(t,e){return t===e||t!=t&&e!=e}(ot&&Zt(new ot(new ArrayBuffer(1)))!=O||it&&Zt(new it)!=f||ut&&Zt(ut.resolve())!=y||at&&Zt(new at)!=b||lt&&Zt(new lt)!=g)&&(Zt=function(t){var e=Pt(t),r=e==h?t.constructor:void 0,n=r?Bt(r):"";if(n)switch(n){case st:return O;case ft:return f;case pt:return y;case ht:return b;case yt:return g}return e});var It=_t(function(){return arguments}())?_t:function(t){return Ht(t)&&K.call(t,"callee")&&!Q.call(t,"callee")},Dt=Array.isArray;var Mt=rt||function(){return!1};function Ut(t){if(!Ft(t))return!1;var e=Pt(t);return e==s||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function zt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Ft(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ht(t){return null!=t&&"object"==typeof t}var Kt=C?function(t){return function(e){return t(e)}}(C):function(t){return Ht(t)&&zt(t.length)&&!!P[Pt(t)]};function Wt(t){return null!=(e=t)&&zt(e.length)&&!Ut(e)?jt(t):kt(t);var e}t.exports=function(t,e){return Nt(t,e)}},732:(t,e,r)=>{t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",u="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s[i]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s[u]=s["[object Map]"]=s["[object Number]"]=s[a]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=f||p||Function("return this")(),y=e&&!e.nodeType&&e,d=y&&t&&!t.nodeType&&t,b=d&&d.exports===y,v=b&&f.process,m=function(){try{var t=d&&d.require&&d.require("util").types;return t||v&&v.binding&&v.binding("util")}catch(t){}}(),g=m&&m.isTypedArray;function w(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var O,j,S,P=Array.prototype,_=Function.prototype,N=Object.prototype,E=h["__core-js_shared__"],k=_.toString,x=N.hasOwnProperty,T=(O=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",A=N.toString,R=k.call(Object),C=RegExp("^"+k.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=b?h.Buffer:void 0,L=h.Symbol,B=h.Uint8Array,q=Z?Z.allocUnsafe:void 0,I=(j=Object.getPrototypeOf,S=Object,function(t){return j(S(t))}),D=Object.create,M=N.propertyIsEnumerable,U=P.splice,z=L?L.toStringTag:void 0,F=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),H=Z?Z.isBuffer:void 0,K=Math.max,W=Date.now,$=dt(h,"Map"),G=dt(Object,"create"),V=function(){function t(){}return function(e){if(!Et(e))return{};if(D)return D(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function Y(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Q(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function J(t){var e=this.__data__=new X(t);this.size=e.size}function tt(t,e){var r=jt(t),n=!r&&Ot(t),o=!r&&!n&&Pt(t),i=!r&&!n&&!o&&xt(t),u=r||n||o||i,a=u?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],l=a.length;for(var c in t)!e&&!x.call(t,c)||u&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bt(c,l))||a.push(c);return a}function et(t,e,r){(void 0!==r&&!wt(t[e],r)||void 0===r&&!(e in t))&&ot(t,e,r)}function rt(t,e,r){var n=t[e];x.call(t,e)&&wt(n,r)&&(void 0!==r||e in t)||ot(t,e,r)}function nt(t,e){for(var r=t.length;r--;)if(wt(t[r][0],e))return r;return-1}function ot(t,e,r){"__proto__"==e&&F?F(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}Y.prototype.clear=function(){this.__data__=G?G(null):{},this.size=0},Y.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Y.prototype.get=function(t){var e=this.__data__;if(G){var r=e[t];return r===n?void 0:r}return x.call(e,t)?e[t]:void 0},Y.prototype.has=function(t){var e=this.__data__;return G?void 0!==e[t]:x.call(e,t)},Y.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=G&&void 0===e?n:e,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(t){var e=this.__data__,r=nt(e,t);return!(r<0)&&(r==e.length-1?e.pop():U.call(e,r,1),--this.size,!0)},X.prototype.get=function(t){var e=this.__data__,r=nt(e,t);return r<0?void 0:e[r][1]},X.prototype.has=function(t){return nt(this.__data__,t)>-1},X.prototype.set=function(t,e){var r=this.__data__,n=nt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new($||X),string:new Y}},Q.prototype.delete=function(t){var e=yt(this,t).delete(t);return this.size-=e?1:0,e},Q.prototype.get=function(t){return yt(this,t).get(t)},Q.prototype.has=function(t){return yt(this,t).has(t)},Q.prototype.set=function(t,e){var r=yt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},J.prototype.clear=function(){this.__data__=new X,this.size=0},J.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},J.prototype.get=function(t){return this.__data__.get(t)},J.prototype.has=function(t){return this.__data__.has(t)},J.prototype.set=function(t,e){var r=this.__data__;if(r instanceof X){var n=r.__data__;if(!$||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Q(n)}return r.set(t,e),this.size=r.size,this};var it,ut=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),u=i.length;u--;){var a=i[it?u:++n];if(!1===e(o[a],a,o))break}return t};function at(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":z&&z in Object(t)?function(t){var e=x.call(t,z),r=t[z];try{t[z]=void 0;var n=!0}catch(t){}var o=A.call(t);n&&(e?t[z]=r:delete t[z]);return o}(t):function(t){return A.call(t)}(t)}function lt(t){return kt(t)&&at(t)==i}function ct(t){return!(!Et(t)||function(t){return!!T&&T in t}(t))&&(_t(t)?C:l).test(function(t){if(null!=t){try{return k.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function st(t){if(!Et(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=vt(t),r=[];for(var n in t)("constructor"!=n||!e&&x.call(t,n))&&r.push(n);return r}function ft(t,e,r,n,o){t!==e&&ut(e,(function(i,u){if(o||(o=new J),Et(i))!function(t,e,r,n,o,i,u){var l=mt(t,r),c=mt(e,r),s=u.get(c);if(s)return void et(t,r,s);var f=i?i(l,c,r+"",t,e,u):void 0,p=void 0===f;if(p){var h=jt(c),y=!h&&Pt(c),d=!h&&!y&&xt(c);f=c,h||y||d?jt(l)?f=l:kt(w=l)&&St(w)?f=function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(l):y?(p=!1,f=function(t,e){if(e)return t.slice();var r=t.length,n=q?q(r):new t.constructor(r);return t.copy(n),n}(c,!0)):d?(p=!1,b=c,v=!0?(m=b.buffer,g=new m.constructor(m.byteLength),new B(g).set(new B(m)),g):b.buffer,f=new b.constructor(v,b.byteOffset,b.length)):f=[]:function(t){if(!kt(t)||at(t)!=a)return!1;var e=I(t);if(null===e)return!0;var r=x.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&k.call(r)==R}(c)||Ot(c)?(f=l,Ot(l)?f=function(t){return function(t,e,r,n){var o=!r;r||(r={});var i=-1,u=e.length;for(;++i<u;){var a=e[i],l=n?n(r[a],t[a],a,r,t):void 0;void 0===l&&(l=t[a]),o?ot(r,a,l):rt(r,a,l)}return r}(t,Tt(t))}(l):Et(l)&&!_t(l)||(f=function(t){return"function"!=typeof t.constructor||vt(t)?{}:V(I(t))}(c))):p=!1}var b,v,m,g;var w;p&&(u.set(c,f),o(f,c,n,i,u),u.delete(c));et(t,r,f)}(t,e,u,r,ft,n,o);else{var l=n?n(mt(t,u),i,u+"",t,e,o):void 0;void 0===l&&(l=i),et(t,u,l)}}),Tt)}function pt(t,e){return gt(function(t,e,r){return e=K(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=K(n.length-e,0),u=Array(i);++o<i;)u[o]=n[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=n[o];return a[e]=r(u),w(t,this,a)}}(t,e,Ct),t+"")}var ht=F?function(t,e){return F(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:Ct;function yt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function dt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ct(r)?r:void 0}function bt(t,e){var r=typeof t;return!!(e=null==e?o:e)&&("number"==r||"symbol"!=r&&c.test(t))&&t>-1&&t%1==0&&t<e}function vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||N)}function mt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var gt=function(t){var e=0,r=0;return function(){var n=W(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ht);function wt(t,e){return t===e||t!=t&&e!=e}var Ot=lt(function(){return arguments}())?lt:function(t){return kt(t)&&x.call(t,"callee")&&!M.call(t,"callee")},jt=Array.isArray;function St(t){return null!=t&&Nt(t.length)&&!_t(t)}var Pt=H||function(){return!1};function _t(t){if(!Et(t))return!1;var e=at(t);return e==u||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Nt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Et(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function kt(t){return null!=t&&"object"==typeof t}var xt=g?function(t){return function(e){return t(e)}}(g):function(t){return kt(t)&&Nt(t.length)&&!!s[at(t)]};function Tt(t){return St(t)?tt(t,!0):st(t)}var At,Rt=(At=function(t,e,r){ft(t,e,r)},pt((function(t,e){var r=-1,n=e.length,o=n>1?e[n-1]:void 0,i=n>2?e[2]:void 0;for(o=At.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,e,r){if(!Et(r))return!1;var n=typeof e;return!!("number"==n?St(r)&&bt(e,r.length):"string"==n&&e in r)&&wt(r[e],t)}(e[0],e[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var u=e[r];u&&At(t,u,r,o)}return t})));function Ct(t){return t}t.exports=Rt},5143:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(8805),o=r(2722);var i;!function(t){t.compose=function(t={},e={},r=!1){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});let o=n(e);r||(o=Object.keys(o).reduce(((t,e)=>(null!=o[e]&&(t[e]=o[e]),t)),{}));for(const r in t)void 0!==t[r]&&void 0===e[r]&&(o[r]=t[r]);return Object.keys(o).length>0?o:void 0},t.diff=function(t={},e={}){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});const r=Object.keys(t).concat(Object.keys(e)).reduce(((r,n)=>(o(t[n],e[n])||(r[n]=void 0===e[n]?null:e[n]),r)),{});return Object.keys(r).length>0?r:void 0},t.invert=function(t={},e={}){t=t||{};const r=Object.keys(e).reduce(((r,n)=>(e[n]!==t[n]&&void 0!==t[n]&&(r[n]=e[n]),r)),{});return Object.keys(t).reduce(((r,n)=>(t[n]!==e[n]&&void 0===e[n]&&(r[n]=null),r)),r)},t.transform=function(t,e,r=!1){if("object"!=typeof t)return e;if("object"!=typeof e)return;if(!r)return e;const n=Object.keys(e).reduce(((r,n)=>(void 0===t[n]&&(r[n]=e[n]),r)),{});return Object.keys(n).length>0?n:void 0}}(i||(i={})),e.default=i},9098:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=r(1456),o=r(8805),i=r(2722),u=r(5143);e.AttributeMap=u.default;const a=r(6237);e.Op=a.default;const l=r(2849);e.OpIterator=l.default;const c=String.fromCharCode(0),s=(t,e)=>{if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);const r=Object.keys(t)[0];if(!r||r!==Object.keys(e)[0])throw new Error(`embed types not matched: ${r} != ${Object.keys(e)[0]}`);return[r,t[r],e[r]]};class f{constructor(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}static registerEmbed(t,e){this.handlers[t]=e}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){const e=this.handlers[t];if(!e)throw new Error(`no handlers for embed type "${t}"`);return e}insert(t,e){const r={};return"string"==typeof t&&0===t.length?this:(r.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(r.attributes=e),this.push(r))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,e){if("number"==typeof t&&t<=0)return this;const r={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(r.attributes=e),this.push(r)}push(t){let e=this.ops.length,r=this.ops[e-1];if(t=o(t),"object"==typeof r){if("number"==typeof t.delete&&"number"==typeof r.delete)return this.ops[e-1]={delete:r.delete+t.delete},this;if("number"==typeof r.delete&&null!=t.insert&&(e-=1,r=this.ops[e-1],"object"!=typeof r))return this.ops.unshift(t),this;if(i(t.attributes,r.attributes)){if("string"==typeof t.insert&&"string"==typeof r.insert)return this.ops[e-1]={insert:r.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof r.retain)return this.ops[e-1]={retain:r.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this}chop(){const t=this.ops[this.ops.length-1];return t&&"number"==typeof t.retain&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){const e=[],r=[];return this.forEach((n=>{(t(n)?e:r).push(n)})),[e,r]}reduce(t,e){return this.ops.reduce(t,e)}changeLength(){return this.reduce(((t,e)=>e.insert?t+a.default.length(e):e.delete?t-e.delete:t),0)}length(){return this.reduce(((t,e)=>t+a.default.length(e)),0)}slice(t=0,e=1/0){const r=[],n=new l.default(this.ops);let o=0;for(;o<e&&n.hasNext();){let i;o<t?i=n.next(t-o):(i=n.next(e-o),r.push(i)),o+=a.default.length(i)}return new f(r)}compose(t){const e=new l.default(this.ops),r=new l.default(t.ops),n=[],o=r.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){let t=o.retain;for(;"insert"===e.peekType()&&e.peekLength()<=t;)t-=e.peekLength(),n.push(e.next());o.retain-t>0&&r.next(o.retain-t)}const a=new f(n);for(;e.hasNext()||r.hasNext();)if("insert"===r.peekType())a.push(r.next());else if("delete"===e.peekType())a.push(e.next());else{const t=Math.min(e.peekLength(),r.peekLength()),n=e.next(t),o=r.next(t);if(o.retain){const l={};if("number"==typeof n.retain)l.retain="number"==typeof o.retain?t:o.retain;else if("number"==typeof o.retain)null==n.retain?l.insert=n.insert:l.retain=n.retain;else{const t=null==n.retain?"insert":"retain",[e,r,i]=s(n[t],o.retain),u=f.getHandler(e);l[t]={[e]:u.compose(r,i,"retain"===t)}}const c=u.default.compose(n.attributes,o.attributes,"number"==typeof n.retain);if(c&&(l.attributes=c),a.push(l),!r.hasNext()&&i(a.ops[a.ops.length-1],l)){const t=new f(e.rest());return a.concat(t).chop()}}else"number"==typeof o.delete&&("number"==typeof n.retain||"object"==typeof n.retain&&null!==n.retain)&&a.push(o)}return a.chop()}concat(t){const e=new f(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e}diff(t,e){if(this.ops===t.ops)return new f;const r=[this,t].map((e=>e.map((r=>{if(null!=r.insert)return"string"==typeof r.insert?r.insert:c;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join(""))),o=new f,a=n(r[0],r[1],e),s=new l.default(this.ops),p=new l.default(t.ops);return a.forEach((t=>{let e=t[1].length;for(;e>0;){let r=0;switch(t[0]){case n.INSERT:r=Math.min(p.peekLength(),e),o.push(p.next(r));break;case n.DELETE:r=Math.min(e,s.peekLength()),s.next(r),o.delete(r);break;case n.EQUAL:r=Math.min(s.peekLength(),p.peekLength(),e);const t=s.next(r),a=p.next(r);i(t.insert,a.insert)?o.retain(r,u.default.diff(t.attributes,a.attributes)):o.push(a).delete(r)}e-=r}})),o.chop()}eachLine(t,e="\n"){const r=new l.default(this.ops);let n=new f,o=0;for(;r.hasNext();){if("insert"!==r.peekType())return;const i=r.peek(),u=a.default.length(i)-r.peekLength(),l="string"==typeof i.insert?i.insert.indexOf(e,u)-u:-1;if(l<0)n.push(r.next());else if(l>0)n.push(r.next(l));else{if(!1===t(n,r.next(1).attributes||{},o))return;o+=1,n=new f}}n.length()>0&&t(n,{},o)}invert(t){const e=new f;return this.reduce(((r,n)=>{if(n.insert)e.delete(a.default.length(n));else{if("number"==typeof n.retain&&null==n.attributes)return e.retain(n.retain),r+n.retain;if(n.delete||"number"==typeof n.retain){const o=n.delete||n.retain;return t.slice(r,r+o).forEach((t=>{n.delete?e.push(t):n.retain&&n.attributes&&e.retain(a.default.length(t),u.default.invert(n.attributes,t.attributes))})),r+o}if("object"==typeof n.retain&&null!==n.retain){const o=t.slice(r,r+1),i=new l.default(o.ops).next(),[a,c,p]=s(n.retain,i.insert),h=f.getHandler(a);return e.retain({[a]:h.invert(c,p)},u.default.invert(n.attributes,i.attributes)),r+1}}return r}),0),e.chop()}transform(t,e=!1){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);const r=t,n=new l.default(this.ops),o=new l.default(r.ops),i=new f;for(;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===o.peekType())if("insert"===o.peekType())i.push(o.next());else{const t=Math.min(n.peekLength(),o.peekLength()),r=n.next(t),a=o.next(t);if(r.delete)continue;if(a.delete)i.push(a);else{const n=r.retain,o=a.retain;let l="object"==typeof o&&null!==o?o:t;if("object"==typeof n&&null!==n&&"object"==typeof o&&null!==o){const t=Object.keys(n)[0];if(t===Object.keys(o)[0]){const r=f.getHandler(t);r&&(l={[t]:r.transform(n[t],o[t],e)})}}i.retain(l,u.default.transform(r.attributes,a.attributes,e))}}else i.retain(a.default.length(n.next()));return i.chop()}transformPosition(t,e=!1){e=!!e;const r=new l.default(this.ops);let n=0;for(;r.hasNext()&&n<=t;){const o=r.peekLength(),i=r.peekType();r.next(),"delete"!==i?("insert"===i&&(n<t||!e)&&(t+=o),n+=o):t-=Math.min(o,t-n)}return t}}f.Op=a.default,f.OpIterator=l.default,f.AttributeMap=u.default,f.handlers={},e.default=f,t.exports=f,t.exports.default=f},6237:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.length=function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"object"==typeof t.retain&&null!==t.retain?1:"string"==typeof t.insert?t.insert.length:1}}(r||(r={})),e.default=r},2849:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(6237);e.default=class{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const e=this.ops[this.index];if(e){const r=this.offset,o=n.default.length(e);if(t>=o-r?(t=o-r,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};{const n={};return e.attributes&&(n.attributes=e.attributes),"number"==typeof e.retain?n.retain=t:"object"==typeof e.retain&&null!==e.retain?n.retain=e.retain:"string"==typeof e.insert?n.insert=e.insert.substr(r,t):n.insert=e.insert,n}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?"number"==typeof t.delete?"delete":"number"==typeof t.retain||"object"==typeof t.retain&&null!==t.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const t=this.offset,e=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[r].concat(n)}}return[]}}},1863:(t,e,r)=>{"use strict";var n=r(9731);t.exports=n},6572:(t,e,r)=>{"use strict";var n=r(4401);t.exports=n},2318:(t,e,r)=>{"use strict";var n=r(3661);t.exports=n},576:(t,e,r)=>{"use strict";var n=r(5606);t.exports=n},2327:(t,e,r)=>{"use strict";r(5445);var n=r(6731);t.exports=n("Array","fill")},3274:(t,e,r)=>{"use strict";r(9477),r(6272);var n=r(577);t.exports=n.Array.from},5339:(t,e,r)=>{"use strict";r(2947);var n=r(577);t.exports=n.Object.values},1189:(t,e,r)=>{"use strict";r(538);var n=r(6731);t.exports=n("String","endsWith")},5142:(t,e,r)=>{"use strict";r(297)},1019:(t,e,r)=>{"use strict";r(4660)},1183:(t,e,r)=>{"use strict";r(5275)},2570:(t,e,r)=>{"use strict";r(2839)},297:(t,e,r)=>{"use strict";var n=r(1863);t.exports=n},4660:(t,e,r)=>{"use strict";var n=r(6572);t.exports=n},5275:(t,e,r)=>{"use strict";var n=r(2318);t.exports=n},2839:(t,e,r)=>{"use strict";var n=r(576);t.exports=n},6324:(t,e,r)=>{"use strict";var n=r(2539),o=r(7471),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},2162:(t,e,r)=>{"use strict";var n=r(2539),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},2572:(t,e,r)=>{"use strict";var n=r(5485),o=r(3830),i=r(8503).f,u=n("unscopables"),a=Array.prototype;void 0===a[u]&&i(a,u,{configurable:!0,value:o(null)}),t.exports=function(t){a[u][t]=!0}},8874:(t,e,r)=>{"use strict";var n=r(3988),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},9236:(t,e,r)=>{"use strict";var n=r(6015),o=r(7234),i=r(3235);t.exports=function(t){for(var e=n(this),r=i(e),u=arguments.length,a=o(u>1?arguments[1]:void 0,r),l=u>2?arguments[2]:void 0,c=void 0===l?r:o(l,r);c>a;)e[a++]=t;return e}},8459:(t,e,r)=>{"use strict";var n=r(9794),o=r(2977),i=r(6015),u=r(9154),a=r(7024),l=r(6467),c=r(3235),s=r(3003),f=r(2387),p=r(7874),h=Array;t.exports=function(t){var e=i(t),r=l(this),y=arguments.length,d=y>1?arguments[1]:void 0,b=void 0!==d;b&&(d=n(d,y>2?arguments[2]:void 0));var v,m,g,w,O,j,S=p(e),P=0;if(!S||this===h&&a(S))for(v=c(e),m=r?new this(v):h(v);v>P;P++)j=b?d(e[P],P):e[P],s(m,P,j);else for(O=(w=f(e,S)).next,m=r?new this:[];!(g=o(O,w)).done;P++)j=b?u(w,d,[g.value,P],!0):g.value,s(m,P,j);return m.length=P,m}},5644:(t,e,r)=>{"use strict";var n=r(7625),o=r(7234),i=r(3235),u=function(t){return function(e,r,u){var a,l=n(e),c=i(l),s=o(u,c);if(t&&r!=r){for(;c>s;)if((a=l[s++])!=a)return!0}else for(;c>s;s++)if((t||s in l)&&l[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9154:(t,e,r)=>{"use strict";var n=r(8874),o=r(8880);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},3346:(t,e,r)=>{"use strict";var n=r(5485)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},4545:(t,e,r)=>{"use strict";var n=r(4038),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},2702:(t,e,r)=>{"use strict";var n=r(1923),o=r(2539),i=r(4545),u=r(5485)("toStringTag"),a=Object,l="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),u))?r:l?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},1358:(t,e,r)=>{"use strict";var n=r(2623),o=r(3054),i=r(3037),u=r(8503);t.exports=function(t,e,r){for(var a=o(e),l=u.f,c=i.f,s=0;s<a.length;s++){var f=a[s];n(t,f)||r&&n(r,f)||l(t,f,c(e,f))}}},6775:(t,e,r)=>{"use strict";var n=r(5485)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},6141:(t,e,r)=>{"use strict";var n=r(5202);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},3585:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},8868:(t,e,r)=>{"use strict";var n=r(5007),o=r(8503),i=r(4238);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},4238:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3003:(t,e,r)=>{"use strict";var n=r(3164),o=r(8503),i=r(4238);t.exports=function(t,e,r){var u=n(e);u in t?o.f(t,u,i(0,r)):t[u]=r}},916:(t,e,r)=>{"use strict";var n=r(2539),o=r(8503),i=r(6614),u=r(2136);t.exports=function(t,e,r,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(n(r)&&i(r,c,a),a.global)l?t[e]=r:u(e,r);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},2136:(t,e,r)=>{"use strict";var n=r(730),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},5007:(t,e,r)=>{"use strict";var n=r(5202);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8629:t=>{"use strict";var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},2215:(t,e,r)=>{"use strict";var n=r(730),o=r(3988),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},932:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7626:(t,e,r)=>{"use strict";var n,o,i=r(730),u=r(932),a=i.process,l=i.Deno,c=a&&a.versions||l&&l.version,s=c&&c.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},6731:(t,e,r)=>{"use strict";var n=r(730),o=r(4038);t.exports=function(t,e){return o(n[t].prototype[e])}},8552:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2189:(t,e,r)=>{"use strict";var n=r(730),o=r(3037).f,i=r(8868),u=r(916),a=r(2136),l=r(1358),c=r(3455);t.exports=function(t,e){var r,s,f,p,h,y=t.target,d=t.global,b=t.stat;if(r=d?n:b?n[y]||a(y,{}):(n[y]||{}).prototype)for(s in e){if(p=e[s],f=t.dontCallGetSet?(h=o(r,s))&&h.value:r[s],!c(d?s:y+(b?".":"#")+s,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),u(r,s,p,t)}}},5202:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},9794:(t,e,r)=>{"use strict";var n=r(6192),o=r(6324),i=r(2865),u=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?u(t,e):function(){return t.apply(e,arguments)}}},2865:(t,e,r)=>{"use strict";var n=r(5202);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},2977:(t,e,r)=>{"use strict";var n=r(2865),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9895:(t,e,r)=>{"use strict";var n=r(5007),o=r(2623),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},6589:(t,e,r)=>{"use strict";var n=r(4038),o=r(6324);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},6192:(t,e,r)=>{"use strict";var n=r(4545),o=r(4038);t.exports=function(t){if("Function"===n(t))return o(t)}},4038:(t,e,r)=>{"use strict";var n=r(2865),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},7300:(t,e,r)=>{"use strict";var n=r(730),o=r(2539),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},7874:(t,e,r)=>{"use strict";var n=r(2702),o=r(3923),i=r(2219),u=r(7817),a=r(5485)("iterator");t.exports=function(t){if(!i(t))return o(t,a)||o(t,"@@iterator")||u[n(t)]}},2387:(t,e,r)=>{"use strict";var n=r(2977),o=r(6324),i=r(8874),u=r(7471),a=r(7874),l=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(o(r))return i(n(r,t));throw new l(u(t)+" is not iterable")}},3923:(t,e,r)=>{"use strict";var n=r(6324),o=r(2219);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},730:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},2623:(t,e,r)=>{"use strict";var n=r(4038),o=r(6015),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},7467:t=>{"use strict";t.exports={}},845:(t,e,r)=>{"use strict";var n=r(7300);t.exports=n("document","documentElement")},2470:(t,e,r)=>{"use strict";var n=r(5007),o=r(5202),i=r(2215);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6854:(t,e,r)=>{"use strict";var n=r(4038),o=r(5202),i=r(4545),u=Object,a=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):u(t)}:u},7821:(t,e,r)=>{"use strict";var n=r(4038),o=r(2539),i=r(6838),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},5378:(t,e,r)=>{"use strict";var n,o,i,u=r(2543),a=r(730),l=r(3988),c=r(8868),s=r(2623),f=r(6838),p=r(3511),h=r(7467),y="Object already initialized",d=a.TypeError,b=a.WeakMap;if(u||f.state){var v=f.state||(f.state=new b);v.get=v.get,v.has=v.has,v.set=v.set,n=function(t,e){if(v.has(t))throw new d(y);return e.facade=t,v.set(t,e),e},o=function(t){return v.get(t)||{}},i=function(t){return v.has(t)}}else{var m=p("state");h[m]=!0,n=function(t,e){if(s(t,m))throw new d(y);return e.facade=t,c(t,m,e),e},o=function(t){return s(t,m)?t[m]:{}},i=function(t){return s(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!l(e)||(r=o(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}},7024:(t,e,r)=>{"use strict";var n=r(5485),o=r(7817),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},2539:(t,e,r)=>{"use strict";var n=r(8629),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},6467:(t,e,r)=>{"use strict";var n=r(4038),o=r(5202),i=r(2539),u=r(2702),a=r(7300),l=r(7821),c=function(){},s=[],f=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=n(p.exec),y=!p.test(c),d=function(t){if(!i(t))return!1;try{return f(c,s,t),!0}catch(t){return!1}},b=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!h(p,l(t))}catch(t){return!0}};b.sham=!0,t.exports=!f||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?b:d},3455:(t,e,r)=>{"use strict";var n=r(5202),o=r(2539),i=/#|\.prototype\./,u=function(t,e){var r=l[a(t)];return r===s||r!==c&&(o(e)?n(e):!!e)},a=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},l=u.data={},c=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},2219:t=>{"use strict";t.exports=function(t){return null==t}},3988:(t,e,r)=>{"use strict";var n=r(2539),o=r(8629),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},4708:t=>{"use strict";t.exports=!1},184:(t,e,r)=>{"use strict";var n=r(3988),o=r(4545),i=r(5485)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},8820:(t,e,r)=>{"use strict";var n=r(7300),o=r(2539),i=r(7676),u=r(3713),a=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},8880:(t,e,r)=>{"use strict";var n=r(2977),o=r(8874),i=r(3923);t.exports=function(t,e,r){var u,a;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw r;return r}u=n(u,t)}catch(t){a=!0,u=t}if("throw"===e)throw r;if(a)throw u;return o(u),r}},3450:(t,e,r)=>{"use strict";var n=r(344).IteratorPrototype,o=r(3830),i=r(4238),u=r(3506),a=r(7817),l=function(){return this};t.exports=function(t,e,r,c){var s=e+" Iterator";return t.prototype=o(n,{next:i(+!c,r)}),u(t,s,!1,!0),a[s]=l,t}},3174:(t,e,r)=>{"use strict";var n=r(2189),o=r(2977),i=r(4708),u=r(9895),a=r(2539),l=r(3450),c=r(8059),s=r(5502),f=r(3506),p=r(8868),h=r(916),y=r(5485),d=r(7817),b=r(344),v=u.PROPER,m=u.CONFIGURABLE,g=b.IteratorPrototype,w=b.BUGGY_SAFARI_ITERATORS,O=y("iterator"),j="keys",S="values",P="entries",_=function(){return this};t.exports=function(t,e,r,u,y,b,N){l(r,e,u);var E,k,x,T=function(t){if(t===y&&L)return L;if(!w&&t&&t in C)return C[t];switch(t){case j:case S:case P:return function(){return new r(this,t)}}return function(){return new r(this)}},A=e+" Iterator",R=!1,C=t.prototype,Z=C[O]||C["@@iterator"]||y&&C[y],L=!w&&Z||T(y),B="Array"===e&&C.entries||Z;if(B&&(E=c(B.call(new t)))!==Object.prototype&&E.next&&(i||c(E)===g||(s?s(E,g):a(E[O])||h(E,O,_)),f(E,A,!0,!0),i&&(d[A]=_)),v&&y===S&&Z&&Z.name!==S&&(!i&&m?p(C,"name",S):(R=!0,L=function(){return o(Z,this)})),y)if(k={values:T(S),keys:b?L:T(j),entries:T(P)},N)for(x in k)(w||R||!(x in C))&&h(C,x,k[x]);else n({target:e,proto:!0,forced:w||R},k);return i&&!N||C[O]===L||h(C,O,L,{name:y}),d[e]=L,k}},344:(t,e,r)=>{"use strict";var n,o,i,u=r(5202),a=r(2539),l=r(3988),c=r(3830),s=r(8059),f=r(916),p=r(5485),h=r(4708),y=p("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(n=o):d=!0),!l(n)||u((function(){var t={};return n[y].call(t)!==t}))?n={}:h&&(n=c(n)),a(n[y])||f(n,y,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},7817:t=>{"use strict";t.exports={}},3235:(t,e,r)=>{"use strict";var n=r(3627);t.exports=function(t){return n(t.length)}},6614:(t,e,r)=>{"use strict";var n=r(4038),o=r(5202),i=r(2539),u=r(2623),a=r(5007),l=r(9895).CONFIGURABLE,c=r(7821),s=r(5378),f=s.enforce,p=s.get,h=String,y=Object.defineProperty,d=n("".slice),b=n("".replace),v=n([].join),m=a&&!o((function(){return 8!==y((function(){}),"length",{value:8}).length})),g=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===d(h(e),0,7)&&(e="["+b(h(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!u(t,"name")||l&&t.name!==e)&&(a?y(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&u(r,"arity")&&t.length!==r.arity&&y(t,"length",{value:r.arity});try{r&&u(r,"constructor")&&r.constructor?a&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return u(n,"source")||(n.source=v(g,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&p(this).source||c(this)}),"toString")},3041:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},50:(t,e,r)=>{"use strict";var n=r(184),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},3830:(t,e,r)=>{"use strict";var n,o=r(8874),i=r(3944),u=r(8552),a=r(7467),l=r(845),c=r(2215),s=r(3511),f=s("IE_PROTO"),p=function(){},h=function(t){return"<script>"+t+"</"+"script>"},y=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;d="undefined"!=typeof document?document.domain&&n?y(n):((e=c("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):y(n);for(var r=u.length;r--;)delete d.prototype[u[r]];return d()};a[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p.prototype=o(t),r=new p,p.prototype=null,r[f]=t):r=d(),void 0===e?r:i.f(r,e)}},3944:(t,e,r)=>{"use strict";var n=r(5007),o=r(2268),i=r(8503),u=r(8874),a=r(7625),l=r(4254);e.f=n&&!o?Object.defineProperties:function(t,e){u(t);for(var r,n=a(e),o=l(e),c=o.length,s=0;c>s;)i.f(t,r=o[s++],n[r]);return t}},8503:(t,e,r)=>{"use strict";var n=r(5007),o=r(2470),i=r(2268),u=r(8874),a=r(3164),l=TypeError,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(u(t),e=a(e),u(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r.writable){var n=s(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:p in r?r.configurable:n.configurable,enumerable:f in r?r.enumerable:n.enumerable,writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(u(t),e=a(e),u(r),o)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},3037:(t,e,r)=>{"use strict";var n=r(5007),o=r(2977),i=r(6251),u=r(4238),a=r(7625),l=r(3164),c=r(2623),s=r(2470),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=l(e),s)try{return f(t,e)}catch(t){}if(c(t,e))return u(!o(i.f,t,e),t[e])}},5974:(t,e,r)=>{"use strict";var n=r(7862),o=r(8552).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},1526:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},8059:(t,e,r)=>{"use strict";var n=r(2623),o=r(2539),i=r(6015),u=r(3511),a=r(6141),l=u("IE_PROTO"),c=Object,s=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(n(e,l))return e[l];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof c?s:null}},7676:(t,e,r)=>{"use strict";var n=r(4038);t.exports=n({}.isPrototypeOf)},7862:(t,e,r)=>{"use strict";var n=r(4038),o=r(2623),i=r(7625),u=r(5644).indexOf,a=r(7467),l=n([].push);t.exports=function(t,e){var r,n=i(t),c=0,s=[];for(r in n)!o(a,r)&&o(n,r)&&l(s,r);for(;e.length>c;)o(n,r=e[c++])&&(~u(s,r)||l(s,r));return s}},4254:(t,e,r)=>{"use strict";var n=r(7862),o=r(8552);t.exports=Object.keys||function(t){return n(t,o)}},6251:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},5502:(t,e,r)=>{"use strict";var n=r(6589),o=r(8874),i=r(2162);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},7830:(t,e,r)=>{"use strict";var n=r(5007),o=r(5202),i=r(4038),u=r(8059),a=r(4254),l=r(7625),c=i(r(6251).f),s=i([].push),f=n&&o((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),p=function(t){return function(e){for(var r,o=l(e),i=a(o),p=f&&null===u(o),h=i.length,y=0,d=[];h>y;)r=i[y++],n&&!(p?r in o:c(o,r))||s(d,t?[r,o[r]]:o[r]);return d}};t.exports={entries:p(!0),values:p(!1)}},532:(t,e,r)=>{"use strict";var n=r(2977),o=r(2539),i=r(3988),u=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw new u("Can't convert object to primitive value")}},3054:(t,e,r)=>{"use strict";var n=r(7300),o=r(4038),i=r(5974),u=r(1526),a=r(8874),l=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=u.f;return r?l(e,r(t)):e}},577:(t,e,r)=>{"use strict";var n=r(730);t.exports=n},6373:(t,e,r)=>{"use strict";var n=r(2219),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},3506:(t,e,r)=>{"use strict";var n=r(8503).f,o=r(2623),i=r(5485)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},3511:(t,e,r)=>{"use strict";var n=r(6568),o=r(2858),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},6838:(t,e,r)=>{"use strict";var n=r(730),o=r(2136),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},6568:(t,e,r)=>{"use strict";var n=r(4708),o=r(6838);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.34.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6365:(t,e,r)=>{"use strict";var n=r(4038),o=r(3550),i=r(2532),u=r(6373),a=n("".charAt),l=n("".charCodeAt),c=n("".slice),s=function(t){return function(e,r){var n,s,f=i(u(e)),p=o(r),h=f.length;return p<0||p>=h?t?"":void 0:(n=l(f,p))<55296||n>56319||p+1===h||(s=l(f,p+1))<56320||s>57343?t?a(f,p):n:t?c(f,p,p+2):s-56320+(n-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},3370:(t,e,r)=>{"use strict";var n=r(7626),o=r(5202),i=r(730).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},7234:(t,e,r)=>{"use strict";var n=r(3550),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},7625:(t,e,r)=>{"use strict";var n=r(6854),o=r(6373);t.exports=function(t){return n(o(t))}},3550:(t,e,r)=>{"use strict";var n=r(3041);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},3627:(t,e,r)=>{"use strict";var n=r(3550),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},6015:(t,e,r)=>{"use strict";var n=r(6373),o=Object;t.exports=function(t){return o(n(t))}},634:(t,e,r)=>{"use strict";var n=r(2977),o=r(3988),i=r(8820),u=r(3923),a=r(532),l=r(5485),c=TypeError,s=l("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,l=u(t,s);if(l){if(void 0===e&&(e="default"),r=n(l,t,e),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},3164:(t,e,r)=>{"use strict";var n=r(634),o=r(8820);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},1923:(t,e,r)=>{"use strict";var n={};n[r(5485)("toStringTag")]="z",t.exports="[object z]"===String(n)},2532:(t,e,r)=>{"use strict";var n=r(2702),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},7471:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},2858:(t,e,r)=>{"use strict";var n=r(4038),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},3713:(t,e,r)=>{"use strict";var n=r(3370);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2268:(t,e,r)=>{"use strict";var n=r(5007),o=r(5202);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2543:(t,e,r)=>{"use strict";var n=r(730),o=r(2539),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5485:(t,e,r)=>{"use strict";var n=r(730),o=r(6568),i=r(2623),u=r(2858),a=r(3370),l=r(3713),c=n.Symbol,s=o("wks"),f=l?c.for||c:c&&c.withoutSetter||u;t.exports=function(t){return i(s,t)||(s[t]=a&&i(c,t)?c[t]:f("Symbol."+t)),s[t]}},5445:(t,e,r)=>{"use strict";var n=r(2189),o=r(9236),i=r(2572);n({target:"Array",proto:!0},{fill:o}),i("fill")},6272:(t,e,r)=>{"use strict";var n=r(2189),o=r(8459);n({target:"Array",stat:!0,forced:!r(3346)((function(t){Array.from(t)}))},{from:o})},2947:(t,e,r)=>{"use strict";var n=r(2189),o=r(7830).values;n({target:"Object",stat:!0},{values:function(t){return o(t)}})},538:(t,e,r)=>{"use strict";var n,o=r(2189),i=r(6192),u=r(3037).f,a=r(3627),l=r(2532),c=r(50),s=r(6373),f=r(6775),p=r(4708),h=i("".endsWith),y=i("".slice),d=Math.min,b=f("endsWith");o({target:"String",proto:!0,forced:!!(p||b||(n=u(String.prototype,"endsWith"),!n||n.writable))&&!b},{endsWith:function(t){var e=l(s(this));c(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,o=void 0===r?n:d(a(r),n),i=l(t);return h?h(e,i,o):y(e,o-i.length,o)===i}})},9477:(t,e,r)=>{"use strict";var n=r(6365).charAt,o=r(2532),i=r(5378),u=r(3174),a=r(3585),l="String Iterator",c=i.set,s=i.getterFor(l);u(String,"String",(function(t){c(this,{type:l,string:o(t),index:0})}),(function(){var t,e=s(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))}))},9731:(t,e,r)=>{"use strict";var n=r(2327);t.exports=n},4401:(t,e,r)=>{"use strict";var n=r(3274);t.exports=n},3661:(t,e,r)=>{"use strict";var n=r(5339);t.exports=n},5606:(t,e,r)=>{"use strict";var n=r(1189);t.exports=n}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.d(n,{default:()=>or});r(1019),r(5142),r(1183),r(2570);var t=r(2432),e=r(715),o=r(4048),i=r(1233);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===u(i)?i:String(i)),n)}var o,i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=s(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(this,arguments)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var e,r,n,o=p(i);function i(){return a(this,i),o.apply(this,arguments)}return e=i,r=[{key:"add",value:function(t,e){if("+1"===e||"-1"===e){var r=this.value(t)||0;e="+1"===e?r+1:r-1}return 0===e?(this.remove(t),!0):c(y(i.prototype),"add",this).call(this,t,e)}},{key:"canAdd",value:function(t,e){return c(y(i.prototype),"canAdd",this).call(this,t,e)||c(y(i.prototype),"canAdd",this).call(this,t,parseInt(e,10))}},{key:"value",value:function(t){return parseInt(c(y(i.prototype),"value",this).call(this,t),10)||void 0}}],r&&l(e.prototype,r),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.ClassAttributor);const b=new d("indent","ql-indent",{scope:i.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});var v=r(6446);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==m(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===m(i)?i:String(i)),n)}var o,i}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=P(t);if(e){var o=P(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function S(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(i,t);var e,r,n,o=j(i);function i(){return w(this,i),o.apply(this,arguments)}return e=i,r&&g(e.prototype,r),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(v.ZP);_.blotName="blockquote",_.tagName="blockquote";const N=_;function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==E(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===E(i)?i:String(i)),n)}var o,i}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=C(t);if(e){var o=C(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return R(this,r)}}function R(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function C(t){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},C(t)}var Z=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}(i,t);var e,r,n,o=A(i);function i(){return k(this,i),o.apply(this,arguments)}return e=i,n=[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}],(r=null)&&x(e.prototype,r),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(v.ZP);Z.blotName="header",Z.tagName=["H1","H2","H3","H4","H5","H6"];const L=Z;var B=r(3553),q=r(281);function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function D(){return D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=M(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},D.apply(this,arguments)}function M(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=G(t)););return t}function U(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==I(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==I(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===I(i)?i:String(i)),n)}var o,i}function z(t,e,r){return e&&U(t.prototype,e),r&&U(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function F(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K(t,e)}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=G(t);if(e){var o=G(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return $(this,r)}}function $(t,e){if(e&&("object"===I(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function G(t){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},G(t)}var V=function(t){H(r,t);var e=W(r);function r(){return F(this,r),e.apply(this,arguments)}return z(r)}(B.Z);V.blotName="list-container",V.tagName="OL";var Y=function(t){H(r,t);var e=W(r);function r(t,n){var o;F(this,r),o=e.call(this,t,n);var i=n.ownerDocument.createElement("span"),u=function(e){if(t.isEnabled()){var r=o.statics.formats(n,t);"checked"===r?(o.format("list","unchecked"),e.preventDefault()):"unchecked"===r&&(o.format("list","checked"),e.preventDefault())}};return i.addEventListener("mousedown",u),i.addEventListener("touchstart",u),o.attachUI(i),o}return z(r,[{key:"format",value:function(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):D(G(r.prototype),"format",this).call(this,t,e)}}],[{key:"create",value:function(t){var e=D(G(r),"create",this).call(this);return e.setAttribute("data-list",t),e}},{key:"formats",value:function(t){return t.getAttribute("data-list")||void 0}},{key:"register",value:function(){q.ZP.register(V)}}]),r}(v.ZP);Y.blotName="list",Y.tagName="LI",V.allowedChildren=[Y],Y.requiredContainer=V;var X=r(7898),Q=r(6039),J=r(5832),tt=r(1629),et=r(3991);function rt(t){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(t)}function nt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==rt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===rt(i)?i:String(i)),n)}var o,i}function ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function it(t,e){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},it(t,e)}function ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=lt(t);if(e){var o=lt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return at(this,r)}}function at(t,e){if(e&&("object"===rt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function lt(t){return lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lt(t)}var ct=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e)}(i,t);var e,r,n,o=ut(i);function i(){return ot(this,i),o.apply(this,arguments)}return e=i,r&&nt(e.prototype,r),n&&nt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(et.Z);ct.blotName="italic",ct.tagName=["EM","I"];const st=ct;var ft=r(7256),pt=r(6603);function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==ht(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===ht(i)?i:String(i)),n)}var o,i}function bt(){return bt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=vt(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},bt.apply(this,arguments)}function vt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ot(t)););return t}function mt(t,e){return mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mt(t,e)}function gt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Ot(t);if(e){var o=Ot(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return wt(this,r)}}function wt(t,e){if(e&&("object"===ht(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ot(t){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ot(t)}var jt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mt(t,e)}(i,t);var e,r,n,o=gt(i);function i(){return yt(this,i),o.apply(this,arguments)}return e=i,n=[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):bt(Ot(i),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}],(r=null)&&dt(e.prototype,r),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(pt.Z);jt.blotName="script",jt.tagName=["SUB","SUP"];const St=jt;function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function _t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==Pt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===Pt(i)?i:String(i)),n)}var o,i}function Nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Et(t,e){return Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Et(t,e)}function kt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Tt(t);if(e){var o=Tt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xt(this,r)}}function xt(t,e){if(e&&("object"===Pt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Tt(t){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tt(t)}var At=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Et(t,e)}(i,t);var e,r,n,o=kt(i);function i(){return Nt(this,i),o.apply(this,arguments)}return e=i,r&&_t(e.prototype,r),n&&_t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(et.Z);At.blotName="strike",At.tagName=["S","STRIKE"];const Rt=At;function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function Zt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==Ct(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===Ct(i)?i:String(i)),n)}var o,i}function Lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bt(t,e){return Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bt(t,e)}function qt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Dt(t);if(e){var o=Dt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return It(this,r)}}function It(t,e){if(e&&("object"===Ct(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Dt(t){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dt(t)}var Mt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bt(t,e)}(i,t);var e,r,n,o=qt(i);function i(){return Lt(this,i),o.apply(this,arguments)}return e=i,r&&Zt(e.prototype,r),n&&Zt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(pt.Z);Mt.blotName="underline",Mt.tagName="U";const Ut=Mt;var zt=r(7452),Ft=r(8034);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==Ht(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===Ht(i)?i:String(i)),n)}var o,i}function $t(){return $t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=Gt(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},$t.apply(this,arguments)}function Gt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Qt(t)););return t}function Vt(t,e){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vt(t,e)}function Yt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Qt(t);if(e){var o=Qt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Xt(this,r)}}function Xt(t,e){if(e&&("object"===Ht(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Qt(t){return Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qt(t)}var Jt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vt(t,e)}(i,t);var e,r,n,o=Yt(i);function i(){return Kt(this,i),o.apply(this,arguments)}return e=i,r=[{key:"html",value:function(){var t=this.value().formula;return"<span>".concat(t,"</span>")}}],n=[{key:"create",value:function(t){var e=null;if((0,Ft.Z)()&&(e=window.katex),null==e)throw new Error("Formula module requires KaTeX.");var r=$t(Qt(i),"create",this).call(this,t);return"string"==typeof t&&(e.render(t,r,{throwOnError:!1,errorColor:"#f00"}),r.setAttribute("data-value",t)),r}},{key:"value",value:function(t){return t.getAttribute("data-value")}}],r&&Wt(e.prototype,r),n&&Wt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(zt.Z);Jt.blotName="formula",Jt.className="ql-formula",Jt.tagName="SPAN";const te=Jt;function ee(t){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(t)}function re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==ee(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===ee(i)?i:String(i)),n)}var o,i}function oe(){return oe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=ie(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},oe.apply(this,arguments)}function ie(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ce(t)););return t}function ue(t,e){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ue(t,e)}function ae(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=ce(t);if(e){var o=ce(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return le(this,r)}}function le(t,e){if(e&&("object"===ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ce(t){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ce(t)}var se=["alt","height","width"],fe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ue(t,e)}(i,t);var e,r,n,o=ae(i);function i(){return re(this,i),o.apply(this,arguments)}return e=i,n=[{key:"create",value:function(t){var e=oe(ce(i),"create",this).call(this,t);return"string"==typeof t&&e.setAttribute("src",this.sanitize(t)),e}},{key:"formats",value:function(t){return se.reduce((function(e,r){return t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"register",value:function(){(0,Ft.Z)()&&/Firefox/i.test(navigator.userAgent)&&setTimeout((function(){document.execCommand("enableObjectResizing",!1,!1)}),1)}},{key:"sanitize",value:function(t){return(0,ft.N)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}],(r=[{key:"format",value:function(t,e){se.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):oe(ce(i.prototype),"format",this).call(this,t,e)}}])&&ne(e.prototype,r),n&&ne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.EmbedBlot);fe.blotName="image",fe.tagName="IMG";const pe=fe;function he(t){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(t)}function ye(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function de(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==he(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==he(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===he(i)?i:String(i)),n)}var o,i}function be(){return be="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=ve(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},be.apply(this,arguments)}function ve(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Oe(t)););return t}function me(t,e){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},me(t,e)}function ge(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Oe(t);if(e){var o=Oe(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return we(this,r)}}function we(t,e){if(e&&("object"===he(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Oe(t){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oe(t)}var je=["height","width"],Se=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&me(t,e)}(i,t);var e,r,n,o=ge(i);function i(){return ye(this,i),o.apply(this,arguments)}return e=i,r=[{key:"format",value:function(t,e){je.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):be(Oe(i.prototype),"format",this).call(this,t,e)}},{key:"html",value:function(){var t=this.value().video;return'<a href="'.concat(t,'">').concat(t,"</a>")}}],n=[{key:"create",value:function(t){var e=be(Oe(i),"create",this).call(this,t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen",!0),e.setAttribute("src",this.sanitize(t)),e}},{key:"formats",value:function(t){return je.reduce((function(e,r){return t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e}),{})}},{key:"sanitize",value:function(t){return ft.Z.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}],r&&de(e.prototype,r),n&&de(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(v.i2);Se.blotName="video",Se.className="ql-video",Se.tagName="IFRAME";const Pe=Se;var _e=r(7309),Ne=r(5657),Ee=r(867),ke=r(9098),xe=r.n(ke);function Te(t){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Te(t)}function Ae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Re(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==Te(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Te(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===Te(i)?i:String(i)),n)}var o,i}function Ce(t,e){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ce(t,e)}function Ze(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Be(t);if(e){var o=Be(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Le(this,r)}}function Le(t,e){if(e&&("object"===Te(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Be(t){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Be(t)}var qe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ce(t,e)}(i,t);var e,r,n,o=Ze(i);function i(){return Ae(this,i),o.apply(this,arguments)}return e=i,n=[{key:"value",value:function(){return"\n"}}],(r=[{key:"length",value:function(){return 1}},{key:"value",value:function(){return"\n"}},{key:"optimize",value:function(){this.prev||this.next||this.remove()}}])&&Re(e.prototype,r),n&&Re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.EmbedBlot);qe.blotName="multilineBreak",qe.tagName="BR";const Ie=qe;function De(t){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(t)}function Me(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ue(n.key),n)}}function Ue(t){var e=function(t,e){if("object"!==De(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===De(e)?e:String(e)}function ze(t,e){return ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ze(t,e)}function Fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=We(t);if(e){var o=We(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return He(this,r)}}function He(t,e){if(e&&("object"===De(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ke(t)}function Ke(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function We(t){return We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},We(t)}function $e(t){return t.nextSibling||t.previousSibling?(new(xe())).insert({multilineBreak:""}):(new(xe())).insert("\n")}var Ge=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ze(t,e)}(i,t);var e,r,n,o=Fe(i);function i(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n,u,a;return r=o.call(this,t,e),q.ZP.register((n={},a=Ie,(u=Ue(u="blots/multilineBreak"))in n?Object.defineProperty(n,u,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[u]=a,n),!0),t.keyboard.addBinding({key:"enter",shiftKey:!0},r.enterHandler.bind(Ke(r))),t.keyboard.bindings.enter.unshift(t.keyboard.bindings.enter.pop()),t.clipboard.addMatcher("BR",$e),r}return e=i,(r=[{key:"enterHandler",value:function(t){var e=this.quill.getLeaf(t.index)[0],r=this.quill.getLeaf(t.index+1)[0];this.quill.insertEmbed(t.index,"multilineBreak",!0,"user"),null!==r&&e.parent===r.parent||this.quill.insertEmbed(t.index,"multilineBreak",!0,"user"),this.quill.setSelection(t.index+1,q.ZP.sources.SILENT)}}])&&Me(e.prototype,r),n&&Me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(r(7094).Z);const Ve=Ge;var Ye=r(6054),Xe=r(1342),Qe=r(319);function Je(t){return Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Je(t)}function tr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function er(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(r),!0).forEach((function(e){rr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rr(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Je(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Je(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nr(t,e){return e.reduce((function(e,r){return e["".concat(t).concat(r.attrName)]=r,e}),{})}t.default.register(er(er(er(er({"attributors/attribute/direction":o.IF},nr("attributors/attribute/",Qe.Qu)),nr("attributors/attribute/",Xe.yA)),{},{"attributors/class/align":e.dk,"attributors/class/background":X.Y,"attributors/class/color":Q.Hn,"attributors/class/direction":o.hY,"attributors/class/font":J._,"attributors/class/size":tt.m,"attributors/style/align":e.HE,"attributors/style/background":X.w,"attributors/style/color":Q.HQ,"attributors/style/direction":o.H8,"attributors/style/font":J.H,"attributors/style/size":tt.Z},nr("attributors/style/",Qe.VT)),nr("attributors/style/",Xe.kk)),!0),t.default.register({"formats/align":e.dk,"formats/direction":o.hY,"formats/indent":b,"formats/background":X.w,"formats/color":Q.HQ,"formats/font":J._,"formats/size":tt.m,"formats/blockquote":N,"formats/code-block":_e.ZP,"formats/header":L,"formats/list":Y,"formats/bold":et.Z,"formats/code":_e.EK,"formats/italic":st,"formats/link":ft.Z,"formats/script":St,"formats/strike":Rt,"formats/underline":Ut,"formats/formula":te,"formats/image":pe,"formats/video":Pe,"tableModules/lite":Ye.Z,"tableModules/main":Ee.Z,"modules/syntax":Ne.ZP,"modules/multiline":Ve,"modules/table":Ee.Z},!0);const or=t.default})(),n=n.default})()));