/*!
* Quill Editor v1.3.7 (https://quilljs.com)
* Copyright 2017 Slab
* Copyright 2014 Jason Chen
* Copyright 2013 salesforce.com
* Licensed under BSD 3-Clause (https://github.com/quilljs/quill/blob/develop/LICENSE)
*/
(function e(t,r){if(typeof exports==="object"&&typeof module==="object")module.exports=r();else if(typeof define==="function"&&define.amd)define([],r);else if(typeof exports==="object")exports["Quill"]=r();else t["Quill"]=r()})(typeof self!=="undefined"?self:this,function(){return function(e){var t={};function r(n){if(t[n]){return t[n].exports}var i=t[n]={i:n,l:false,exports:{}};e[n].call(i.exports,i,i.exports,r);i.l=true;return i.exports}r.m=e;r.c=t;r.d=function(e,t,n){if(!r.o(e,t)){Object.defineProperty(e,t,{configurable:false,enumerable:true,get:n})}};r.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};r.d(t,"a",t);return t};r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};r.p="";return r(r.s=109)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(17);var i=r(18);var o=r(19);var a=r(45);var l=r(46);var u=r(47);var s=r(48);var f=r(49);var c=r(12);var d=r(32);var h=r(33);var p=r(31);var v=r(1);var y={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:n.default,Format:i.default,Leaf:o.default,Embed:s.default,Scroll:a.default,Block:u.default,Inline:l.default,Text:f.default,Attributor:{Attribute:c.default,Class:d.default,Style:h.default,Store:p.default}};t.default=y},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=function(e){n(t,e);function t(t){var r=this;t="[Parchment] "+t;r=e.call(this,t)||this;r.message=t;r.name=r.constructor.name;return r}return t}(Error);t.ParchmentError=i;var o={};var a={};var l={};var u={};t.DATA_KEY="__blot";var s;(function(e){e[e["TYPE"]=3]="TYPE";e[e["LEVEL"]=12]="LEVEL";e[e["ATTRIBUTE"]=13]="ATTRIBUTE";e[e["BLOT"]=14]="BLOT";e[e["INLINE"]=7]="INLINE";e[e["BLOCK"]=11]="BLOCK";e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT";e[e["INLINE_BLOT"]=6]="INLINE_BLOT";e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE";e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE";e[e["ANY"]=15]="ANY"})(s=t.Scope||(t.Scope={}));function f(e,t){var r=d(e);if(r==null){throw new i("Unable to create "+e+" blot")}var n=r;var o=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:n.create(t);return new n(o,t)}t.create=f;function c(e,r){if(r===void 0){r=false}if(e==null)return null;if(e[t.DATA_KEY]!=null)return e[t.DATA_KEY].blot;if(r)return c(e.parentNode,r);return null}t.find=c;function d(e,t){if(t===void 0){t=s.ANY}var r;if(typeof e==="string"){r=u[e]||o[e]}else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE){r=u["text"]}else if(typeof e==="number"){if(e&s.LEVEL&s.BLOCK){r=u["block"]}else if(e&s.LEVEL&s.INLINE){r=u["inline"]}}else if(e instanceof HTMLElement){var n=(e.getAttribute("class")||"").split(/\s+/);for(var i in n){r=a[n[i]];if(r)break}r=r||l[e.tagName]}if(r==null)return null;if(t&s.LEVEL&r.scope&&t&s.TYPE&r.scope)return r;return null}t.query=d;function h(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(e.length>1){return e.map(function(e){return h(e)})}var r=e[0];if(typeof r.blotName!=="string"&&typeof r.attrName!=="string"){throw new i("Invalid definition")}else if(r.blotName==="abstract"){throw new i("Cannot register abstract class")}u[r.blotName||r.attrName]=r;if(typeof r.keyName==="string"){o[r.keyName]=r}else{if(r.className!=null){a[r.className]=r}if(r.tagName!=null){if(Array.isArray(r.tagName)){r.tagName=r.tagName.map(function(e){return e.toUpperCase()})}else{r.tagName=r.tagName.toUpperCase()}var n=Array.isArray(r.tagName)?r.tagName:[r.tagName];n.forEach(function(e){if(l[e]==null||r.className==null){l[e]=r}})}}return r}t.register=h},function(e,t,r){var n=r(51);var i=r(11);var o=r(3);var a=r(20);var l=String.fromCharCode(0);var u=function(e){if(Array.isArray(e)){this.ops=e}else if(e!=null&&Array.isArray(e.ops)){this.ops=e.ops}else{this.ops=[]}};u.prototype.insert=function(e,t){var r={};if(e.length===0)return this;r.insert=e;if(t!=null&&typeof t==="object"&&Object.keys(t).length>0){r.attributes=t}return this.push(r)};u.prototype["delete"]=function(e){if(e<=0)return this;return this.push({delete:e})};u.prototype.retain=function(e,t){if(e<=0)return this;var r={retain:e};if(t!=null&&typeof t==="object"&&Object.keys(t).length>0){r.attributes=t}return this.push(r)};u.prototype.push=function(e){var t=this.ops.length;var r=this.ops[t-1];e=o(true,{},e);if(typeof r==="object"){if(typeof e["delete"]==="number"&&typeof r["delete"]==="number"){this.ops[t-1]={delete:r["delete"]+e["delete"]};return this}if(typeof r["delete"]==="number"&&e.insert!=null){t-=1;r=this.ops[t-1];if(typeof r!=="object"){this.ops.unshift(e);return this}}if(i(e.attributes,r.attributes)){if(typeof e.insert==="string"&&typeof r.insert==="string"){this.ops[t-1]={insert:r.insert+e.insert};if(typeof e.attributes==="object")this.ops[t-1].attributes=e.attributes;return this}else if(typeof e.retain==="number"&&typeof r.retain==="number"){this.ops[t-1]={retain:r.retain+e.retain};if(typeof e.attributes==="object")this.ops[t-1].attributes=e.attributes;return this}}}if(t===this.ops.length){this.ops.push(e)}else{this.ops.splice(t,0,e)}return this};u.prototype.chop=function(){var e=this.ops[this.ops.length-1];if(e&&e.retain&&!e.attributes){this.ops.pop()}return this};u.prototype.filter=function(e){return this.ops.filter(e)};u.prototype.forEach=function(e){this.ops.forEach(e)};u.prototype.map=function(e){return this.ops.map(e)};u.prototype.partition=function(e){var t=[],r=[];this.forEach(function(n){var i=e(n)?t:r;i.push(n)});return[t,r]};u.prototype.reduce=function(e,t){return this.ops.reduce(e,t)};u.prototype.changeLength=function(){return this.reduce(function(e,t){if(t.insert){return e+a.length(t)}else if(t.delete){return e-t.delete}return e},0)};u.prototype.length=function(){return this.reduce(function(e,t){return e+a.length(t)},0)};u.prototype.slice=function(e,t){e=e||0;if(typeof t!=="number")t=Infinity;var r=[];var n=a.iterator(this.ops);var i=0;while(i<t&&n.hasNext()){var o;if(i<e){o=n.next(e-i)}else{o=n.next(t-i);r.push(o)}i+=a.length(o)}return new u(r)};u.prototype.compose=function(e){var t=a.iterator(this.ops);var r=a.iterator(e.ops);var n=[];var o=r.peek();if(o!=null&&typeof o.retain==="number"&&o.attributes==null){var l=o.retain;while(t.peekType()==="insert"&&t.peekLength()<=l){l-=t.peekLength();n.push(t.next())}if(o.retain-l>0){r.next(o.retain-l)}}var s=new u(n);while(t.hasNext()||r.hasNext()){if(r.peekType()==="insert"){s.push(r.next())}else if(t.peekType()==="delete"){s.push(t.next())}else{var f=Math.min(t.peekLength(),r.peekLength());var c=t.next(f);var d=r.next(f);if(typeof d.retain==="number"){var h={};if(typeof c.retain==="number"){h.retain=f}else{h.insert=c.insert}var p=a.attributes.compose(c.attributes,d.attributes,typeof c.retain==="number");if(p)h.attributes=p;s.push(h);if(!r.hasNext()&&i(s.ops[s.ops.length-1],h)){var v=new u(t.rest());return s.concat(v).chop()}}else if(typeof d["delete"]==="number"&&typeof c.retain==="number"){s.push(d)}}}return s.chop()};u.prototype.concat=function(e){var t=new u(this.ops.slice());if(e.ops.length>0){t.push(e.ops[0]);t.ops=t.ops.concat(e.ops.slice(1))}return t};u.prototype.diff=function(e,t){if(this.ops===e.ops){return new u}var r=[this,e].map(function(t){return t.map(function(r){if(r.insert!=null){return typeof r.insert==="string"?r.insert:l}var n=t===e?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")});var o=new u;var s=n(r[0],r[1],t);var f=a.iterator(this.ops);var c=a.iterator(e.ops);s.forEach(function(e){var t=e[1].length;while(t>0){var r=0;switch(e[0]){case n.INSERT:r=Math.min(c.peekLength(),t);o.push(c.next(r));break;case n.DELETE:r=Math.min(t,f.peekLength());f.next(r);o["delete"](r);break;case n.EQUAL:r=Math.min(f.peekLength(),c.peekLength(),t);var l=f.next(r);var u=c.next(r);if(i(l.insert,u.insert)){o.retain(r,a.attributes.diff(l.attributes,u.attributes))}else{o.push(u)["delete"](r)}break}t-=r}});return o.chop()};u.prototype.eachLine=function(e,t){t=t||"\n";var r=a.iterator(this.ops);var n=new u;var i=0;while(r.hasNext()){if(r.peekType()!=="insert")return;var o=r.peek();var l=a.length(o)-r.peekLength();var s=typeof o.insert==="string"?o.insert.indexOf(t,l)-l:-1;if(s<0){n.push(r.next())}else if(s>0){n.push(r.next(s))}else{if(e(n,r.next(1).attributes||{},i)===false){return}i+=1;n=new u}}if(n.length()>0){e(n,{},i)}};u.prototype.transform=function(e,t){t=!!t;if(typeof e==="number"){return this.transformPosition(e,t)}var r=a.iterator(this.ops);var n=a.iterator(e.ops);var i=new u;while(r.hasNext()||n.hasNext()){if(r.peekType()==="insert"&&(t||n.peekType()!=="insert")){i.retain(a.length(r.next()))}else if(n.peekType()==="insert"){i.push(n.next())}else{var o=Math.min(r.peekLength(),n.peekLength());var l=r.next(o);var s=n.next(o);if(l["delete"]){continue}else if(s["delete"]){i.push(s)}else{i.retain(o,a.attributes.transform(l.attributes,s.attributes,t))}}}return i.chop()};u.prototype.transformPosition=function(e,t){t=!!t;var r=a.iterator(this.ops);var n=0;while(r.hasNext()&&n<=e){var i=r.peekLength();var o=r.peekType();r.next();if(o==="delete"){e-=Math.min(i,e-n);continue}else if(o==="insert"&&(n<e||!t)){e+=i}n+=i}return e};e.exports=u},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty;var n=Object.prototype.toString;var i=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var a=function e(t){if(typeof Array.isArray==="function"){return Array.isArray(t)}return n.call(t)==="[object Array]"};var l=function e(t){if(!t||n.call(t)!=="[object Object]"){return false}var i=r.call(t,"constructor");var o=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o){return false}var a;for(a in t){}return typeof a==="undefined"||r.call(t,a)};var u=function e(t,r){if(i&&r.name==="__proto__"){i(t,r.name,{enumerable:true,configurable:true,value:r.newValue,writable:true})}else{t[r.name]=r.newValue}};var s=function e(t,n){if(n==="__proto__"){if(!r.call(t,n)){return void 0}else if(o){return o(t,n).value}}return t[n]};e.exports=function e(){var t,r,n,i,o,f;var c=arguments[0];var d=1;var h=arguments.length;var p=false;if(typeof c==="boolean"){p=c;c=arguments[1]||{};d=2}if(c==null||typeof c!=="object"&&typeof c!=="function"){c={}}for(;d<h;++d){t=arguments[d];if(t!=null){for(r in t){n=s(c,r);i=s(t,r);if(c!==i){if(p&&i&&(l(i)||(o=a(i)))){if(o){o=false;f=n&&a(n)?n:[]}else{f=n&&l(n)?n:{}}u(c,{name:r,newValue:e(p,f,i)})}else if(typeof i!=="undefined"){u(c,{name:r,newValue:i})}}}}}return c}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.BlockEmbed=t.bubbleFormats=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(3);var a=b(o);var l=r(2);var u=b(l);var s=r(0);var f=b(s);var c=r(16);var d=b(c);var h=r(6);var p=b(h);var v=r(7);var y=b(v);function b(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function m(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function _(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var O=1;var w=function(e){_(t,e);function t(){g(this,t);return m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"attach",value:function e(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this);this.attributes=new f.default.Attributor.Store(this.domNode)}},{key:"delta",value:function e(){return(new u.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function e(t,r){var n=f.default.query(t,f.default.Scope.BLOCK_ATTRIBUTE);if(n!=null){this.attributes.attribute(n,r)}}},{key:"formatAt",value:function e(t,r,n,i){this.format(n,i)}},{key:"insertAt",value:function e(r,n,o){if(typeof n==="string"&&n.endsWith("\n")){var a=f.default.create(k.blotName);this.parent.insertBefore(a,r===0?this:this.next);a.insertAt(0,n.slice(0,-1))}else{i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,r,n,o)}}}]);return t}(f.default.Embed);w.scope=f.default.Scope.BLOCK_BLOT;var k=function(e){_(t,e);function t(e){g(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.cache={};return r}n(t,[{key:"delta",value:function e(){if(this.cache.delta==null){this.cache.delta=this.descendants(f.default.Leaf).reduce(function(e,t){if(t.length()===0){return e}else{return e.insert(t.value(),x(t))}},new u.default).insert("\n",x(this))}return this.cache.delta}},{key:"deleteAt",value:function e(r,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,r,n);this.cache={}}},{key:"formatAt",value:function e(r,n,o,a){if(n<=0)return;if(f.default.query(o,f.default.Scope.BLOCK)){if(r+n===this.length()){this.format(o,a)}}else{i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,r,Math.min(n,this.length()-r-1),o,a)}this.cache={}}},{key:"insertAt",value:function e(r,n,o){if(o!=null)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,r,n,o);if(n.length===0)return;var a=n.split("\n");var l=a.shift();if(l.length>0){if(r<this.length()-1||this.children.tail==null){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(r,this.length()-1),l)}else{this.children.tail.insertAt(this.children.tail.length(),l)}this.cache={}}var u=this;a.reduce(function(e,t){u=u.split(e,true);u.insertAt(0,t);return t.length},r+l.length)}},{key:"insertBefore",value:function e(r,n){var o=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,r,n);if(o instanceof d.default){o.remove()}this.cache={}}},{key:"length",value:function e(){if(this.cache.length==null){this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+O}return this.cache.length}},{key:"moveChildren",value:function e(r,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,r,n);this.cache={}}},{key:"optimize",value:function e(r){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,r);this.cache={}}},{key:"path",value:function e(r){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,r,true)}},{key:"removeChild",value:function e(r){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,r);this.cache={}}},{key:"split",value:function e(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(n&&(r===0||r>=this.length()-O)){var o=this.clone();if(r===0){this.parent.insertBefore(o,this);return this}else{this.parent.insertBefore(o,this.next);return o}}else{var a=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,r,n);this.cache={};return a}}}]);return t}(f.default.Block);k.blotName="block";k.tagName="P";k.defaultChild="break";k.allowedChildren=[p.default,f.default.Embed,y.default];function x(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(e==null)return t;if(typeof e.formats==="function"){t=(0,a.default)(t,e.formats())}if(e.parent==null||e.parent.blotName=="scroll"||e.parent.statics.scope!==e.statics.scope){return t}return x(e.parent,t)}t.bubbleFormats=x;t.BlockEmbed=w;t.default=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.overload=t.expandConfig=undefined;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();r(50);var a=r(2);var l=x(a);var u=r(14);var s=x(u);var f=r(8);var c=x(f);var d=r(9);var h=x(d);var p=r(0);var v=x(p);var y=r(15);var b=x(y);var g=r(3);var m=x(g);var _=r(10);var O=x(_);var w=r(34);var k=x(w);function x(e){return e&&e.__esModule?e:{default:e}}function E(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function N(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var j=(0,O.default)("quill");var A=function(){o(e,null,[{key:"debug",value:function e(t){if(t===true){t="log"}O.default.level(t)}},{key:"find",value:function e(t){return t.__quill||v.default.find(t)}},{key:"import",value:function e(t){if(this.imports[t]==null){j.error("Cannot import "+t+". Are you sure it was registered?")}return this.imports[t]}},{key:"register",value:function e(t,r){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(typeof t!=="string"){var o=t.attrName||t.blotName;if(typeof o==="string"){this.register("formats/"+o,t,r)}else{Object.keys(t).forEach(function(e){n.register(e,t[e],r)})}}else{if(this.imports[t]!=null&&!i){j.warn("Overwriting "+t+" with",r)}this.imports[t]=r;if((t.startsWith("blots/")||t.startsWith("formats/"))&&r.blotName!=="abstract"){v.default.register(r)}else if(t.startsWith("modules")&&typeof r.register==="function"){r.register()}}}}]);function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};N(this,e);this.options=q(t,n);this.container=this.options.container;if(this.container==null){return j.error("Invalid Quill container",t)}if(this.options.debug){e.debug(this.options.debug)}var i=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.root.setAttribute("data-gramm",false);this.scrollingContainer=this.options.scrollingContainer||this.root;this.emitter=new c.default;this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new s.default(this.scroll);this.selection=new b.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(c.default.events.EDITOR_CHANGE,function(e){if(e===c.default.events.TEXT_CHANGE){r.root.classList.toggle("ql-blank",r.editor.isBlank())}});this.emitter.on(c.default.events.SCROLL_UPDATE,function(e,t){var n=r.selection.lastRange;var i=n&&n.length===0?n.index:undefined;T.call(r,function(){return r.editor.update(null,t,i)},e)});var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o);this.history.clear();if(this.options.placeholder){this.root.setAttribute("data-placeholder",this.options.placeholder)}if(this.options.readOnly){this.disable()}}o(e,[{key:"addContainer",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(typeof t==="string"){var n=t;t=document.createElement("div");t.classList.add(n)}this.container.insertBefore(t,r);return t}},{key:"blur",value:function e(){this.selection.setRange(null)}},{key:"deleteText",value:function e(t,r,n){var o=this;var a=P(t,r,n);var l=i(a,4);t=l[0];r=l[1];n=l[3];return T.call(this,function(){return o.editor.deleteText(t,r)},n,t,-1*r)}},{key:"disable",value:function e(){this.enable(false)}},{key:"enable",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;this.scroll.enable(t);this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function e(){var t=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=t;this.scrollIntoView()}},{key:"format",value:function e(t,r){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:c.default.sources.API;return T.call(this,function(){var e=n.getSelection(true);var i=new l.default;if(e==null){return i}else if(v.default.query(t,v.default.Scope.BLOCK)){i=n.editor.formatLine(e.index,e.length,E({},t,r))}else if(e.length===0){n.selection.format(t,r);return i}else{i=n.editor.formatText(e.index,e.length,E({},t,r))}n.setSelection(e,c.default.sources.SILENT);return i},i)}},{key:"formatLine",value:function e(t,r,n,o,a){var l=this;var u=void 0;var s=P(t,r,n,o,a);var f=i(s,4);t=f[0];r=f[1];u=f[2];a=f[3];return T.call(this,function(){return l.editor.formatLine(t,r,u)},a,t,0)}},{key:"formatText",value:function e(t,r,n,o,a){var l=this;var u=void 0;var s=P(t,r,n,o,a);var f=i(s,4);t=f[0];r=f[1];u=f[2];a=f[3];return T.call(this,function(){return l.editor.formatText(t,r,u)},a,t,0)}},{key:"getBounds",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=void 0;if(typeof t==="number"){n=this.selection.getBounds(t,r)}else{n=this.selection.getBounds(t.index,t.length)}var i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}},{key:"getContents",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.getLength()-t;var n=P(t,r);var o=i(n,2);t=o[0];r=o[1];return this.editor.getContents(t,r)}},{key:"getFormat",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.getSelection(true);var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(typeof t==="number"){return this.editor.getFormat(t,r)}else{return this.editor.getFormat(t.index,t.length)}}},{key:"getIndex",value:function e(t){return t.offset(this.scroll)}},{key:"getLength",value:function e(){return this.scroll.length()}},{key:"getLeaf",value:function e(t){return this.scroll.leaf(t)}},{key:"getLine",value:function e(t){return this.scroll.line(t)}},{key:"getLines",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.MAX_VALUE;if(typeof t!=="number"){return this.scroll.lines(t.index,t.length)}else{return this.scroll.lines(t,r)}}},{key:"getModule",value:function e(t){return this.theme.modules[t]}},{key:"getSelection",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(t)this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.getLength()-t;var n=P(t,r);var o=i(n,2);t=o[0];r=o[1];return this.editor.getText(t,r)}},{key:"hasFocus",value:function e(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function t(r,n,i){var o=this;var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:e.sources.API;return T.call(this,function(){return o.editor.insertEmbed(r,n,i)},a,r)}},{key:"insertText",value:function e(t,r,n,o,a){var l=this;var u=void 0;var s=P(t,0,n,o,a);var f=i(s,4);t=f[0];u=f[2];a=f[3];return T.call(this,function(){return l.editor.insertText(t,r,u)},a,t,r.length)}},{key:"isEnabled",value:function e(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function e(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function e(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function e(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function e(t,r,n){this.clipboard.dangerouslyPasteHTML(t,r,n)}},{key:"removeFormat",value:function e(t,r,n){var o=this;var a=P(t,r,n);var l=i(a,4);t=l[0];r=l[1];n=l[3];return T.call(this,function(){return o.editor.removeFormat(t,r)},n,t)}},{key:"scrollIntoView",value:function e(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c.default.sources.API;return T.call(this,function(){t=new l.default(t);var e=r.getLength();var n=r.editor.deleteText(0,e);var i=r.editor.applyDelta(t);var o=i.ops[i.ops.length-1];if(o!=null&&typeof o.insert==="string"&&o.insert[o.insert.length-1]==="\n"){r.editor.deleteText(r.getLength()-1,1);i.delete(1)}var a=n.compose(i);return a},n)}},{key:"setSelection",value:function t(r,n,o){if(r==null){this.selection.setRange(null,n||e.sources.API)}else{var a=P(r,n,o);var l=i(a,4);r=l[0];n=l[1];o=l[3];this.selection.setRange(new y.Range(r,n),o);if(o!==c.default.sources.SILENT){this.selection.scrollIntoView(this.scrollingContainer)}}}},{key:"setText",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c.default.sources.API;var n=(new l.default).insert(t);return this.setContents(n,r)}},{key:"update",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:c.default.sources.USER;var r=this.scroll.update(t);this.selection.update(t);return r}},{key:"updateContents",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c.default.sources.API;return T.call(this,function(){t=new l.default(t);return r.editor.applyDelta(t,n)},n,true)}}]);return e}();A.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:false,scrollingContainer:null,strict:true,theme:"default"};A.events=c.default.events;A.sources=c.default.sources;A.version=false?"dev":"1.3.7";A.imports={delta:l.default,parchment:v.default,"core/module":h.default,"core/theme":k.default};function q(e,t){t=(0,m.default)(true,{container:e,modules:{clipboard:true,keyboard:true,history:true}},t);if(!t.theme||t.theme===A.DEFAULTS.theme){t.theme=k.default}else{t.theme=A.import("themes/"+t.theme);if(t.theme==null){throw new Error("Invalid theme "+t.theme+". Did you register it?")}}var r=(0,m.default)(true,{},t.theme.DEFAULTS);[r,t].forEach(function(e){e.modules=e.modules||{};Object.keys(e.modules).forEach(function(t){if(e.modules[t]===true){e.modules[t]={}}})});var n=Object.keys(r.modules).concat(Object.keys(t.modules));var i=n.reduce(function(e,t){var r=A.import("modules/"+t);if(r==null){j.error("Cannot load "+t+" module. Are you sure you registered it?")}else{e[t]=r.DEFAULTS||{}}return e},{});if(t.modules!=null&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object){t.modules.toolbar={container:t.modules.toolbar}}t=(0,m.default)(true,{},A.DEFAULTS,{modules:i},r,t);["bounds","container","scrollingContainer"].forEach(function(e){if(typeof t[e]==="string"){t[e]=document.querySelector(t[e])}});t.modules=Object.keys(t.modules).reduce(function(e,r){if(t.modules[r]){e[r]=t.modules[r]}return e},{});return t}function T(e,t,r,n){if(this.options.strict&&!this.isEnabled()&&t===c.default.sources.USER){return new l.default}var i=r==null?null:this.getSelection();var o=this.editor.delta;var a=e();if(i!=null){if(r===true)r=i.index;if(n==null){i=S(i,a,t)}else if(n!==0){i=S(i,r,n,t)}this.setSelection(i,c.default.sources.SILENT)}if(a.length()>0){var u;var s=[c.default.events.TEXT_CHANGE,a,o,t];(u=this.emitter).emit.apply(u,[c.default.events.EDITOR_CHANGE].concat(s));if(t!==c.default.sources.SILENT){var f;(f=this.emitter).emit.apply(f,s)}}return a}function P(e,t,r,i,o){var a={};if(typeof e.index==="number"&&typeof e.length==="number"){if(typeof t!=="number"){o=i,i=r,r=t,t=e.length,e=e.index}else{t=e.length,e=e.index}}else if(typeof t!=="number"){o=i,i=r,r=t,t=0}if((typeof r==="undefined"?"undefined":n(r))==="object"){a=r;o=i}else if(typeof r==="string"){if(i!=null){a[r]=i}else{o=r}}o=o||c.default.sources.API;return[e,t,a,o]}function S(e,t,r,n){if(e==null)return null;var o=void 0,a=void 0;if(t instanceof l.default){var u=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,n!==c.default.sources.USER)});var s=i(u,2);o=s[0];a=s[1]}else{var f=[e.index,e.index+e.length].map(function(e){if(e<t||e===t&&n===c.default.sources.USER)return e;if(r>=0){return e+r}else{return Math.max(t,e+r)}});var d=i(f,2);o=d[0];a=d[1]}return new y.Range(o,a-o)}t.expandConfig=q;t.overload=P;t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(7);var a=s(o);var l=r(0);var u=s(l);function s(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function c(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function d(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var h=function(e){d(t,e);function t(){f(this,t);return c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"formatAt",value:function e(r,n,o,a){if(t.compare(this.statics.blotName,o)<0&&u.default.query(o,u.default.Scope.BLOT)){var l=this.isolate(r,n);if(a){l.wrap(o,a)}}else{i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,r,n,o,a)}}},{key:"optimize",value:function e(r){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,r);if(this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n);n.wrap(this)}}}],[{key:"compare",value:function e(r,n){var i=t.order.indexOf(r);var o=t.order.indexOf(n);if(i>=0||o>=0){return i-o}else if(r===n){return 0}else if(r<n){return-1}else{return 1}}}]);return t}(u.default.Inline);h.allowedChildren=[h,u.default.Embed,a.default];h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"];t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(0);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var s=function(e){u(t,e);function t(){a(this,t);return l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(i.default.Text);t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(54);var a=s(o);var l=r(10);var u=s(l);function s(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function c(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function d(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var h=(0,u.default)("quill:events");var p=["selectionchange","mousedown","mouseup","click"];p.forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){if(e.__quill&&e.__quill.emitter){var r;(r=e.__quill.emitter).handleDOM.apply(r,t)}})})});var v=function(e){d(t,e);function t(){f(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));e.listeners={};e.on("error",h.error);return e}n(t,[{key:"emit",value:function e(){h.log.apply(h,arguments);i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++){n[i-1]=arguments[i]}(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,i=e.handler;if(t.target===r||r.contains(t.target)){i.apply(undefined,[t].concat(n))}})}},{key:"listenDOM",value:function e(t,r,n){if(!this.listeners[t]){this.listeners[t]=[]}this.listeners[t].push({node:r,handler:n})}}]);return t}(a.default);v.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};v.sources={API:"api",SILENT:"silent",USER:"user"};t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};n(this,e);this.quill=t;this.options=r};i.DEFAULTS={};t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=["error","warn","log","info"];var i="warn";function o(e){if(n.indexOf(e)<=n.indexOf(i)){var t;for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++){o[a-1]=arguments[a]}(t=console)[e].apply(t,o)}}function a(e){return n.reduce(function(t,r){t[r]=o.bind(console,r,e);return t},{})}o.level=a.level=function(e){i=e};t.default=a},function(e,t,r){var n=Array.prototype.slice;var i=r(52);var o=r(53);var a=e.exports=function(e,t,r){if(!r)r={};if(e===t){return true}else if(e instanceof Date&&t instanceof Date){return e.getTime()===t.getTime()}else if(!e||!t||typeof e!="object"&&typeof t!="object"){return r.strict?e===t:e==t}else{return s(e,t,r)}};function l(e){return e===null||e===undefined}function u(e){if(!e||typeof e!=="object"||typeof e.length!=="number")return false;if(typeof e.copy!=="function"||typeof e.slice!=="function"){return false}if(e.length>0&&typeof e[0]!=="number")return false;return true}function s(e,t,r){var s,f;if(l(e)||l(t))return false;if(e.prototype!==t.prototype)return false;if(o(e)){if(!o(t)){return false}e=n.call(e);t=n.call(t);return a(e,t,r)}if(u(e)){if(!u(t)){return false}if(e.length!==t.length)return false;for(s=0;s<e.length;s++){if(e[s]!==t[s])return false}return true}try{var c=i(e),d=i(t)}catch(e){return false}if(c.length!=d.length)return false;c.sort();d.sort();for(s=c.length-1;s>=0;s--){if(c[s]!=d[s])return false}for(s=c.length-1;s>=0;s--){f=c[s];if(!a(e[f],t[f],r))return false}return typeof e===typeof t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var i=function(){function e(e,t,r){if(r===void 0){r={}}this.attrName=e;this.keyName=t;var i=n.Scope.TYPE&n.Scope.ATTRIBUTE;if(r.scope!=null){this.scope=r.scope&n.Scope.LEVEL|i}else{this.scope=n.Scope.ATTRIBUTE}if(r.whitelist!=null)this.whitelist=r.whitelist}e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})};e.prototype.add=function(e,t){if(!this.canAdd(e,t))return false;e.setAttribute(this.keyName,t);return true};e.prototype.canAdd=function(e,t){var r=n.query(e,n.Scope.BLOT&(this.scope|n.Scope.TYPE));if(r==null)return false;if(this.whitelist==null)return true;if(typeof t==="string"){return this.whitelist.indexOf(t.replace(/["']/g,""))>-1}else{return this.whitelist.indexOf(t)>-1}};e.prototype.remove=function(e){e.removeAttribute(this.keyName)};e.prototype.value=function(e){var t=e.getAttribute(this.keyName);if(this.canAdd(e,t)&&t){return t}return""};return e}();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.Code=undefined;var n=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var o=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var a=r(2);var l=y(a);var u=r(0);var s=y(u);var f=r(4);var c=y(f);var d=r(6);var h=y(d);var p=r(7);var v=y(p);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function g(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function m(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){m(t,e);function t(){b(this,t);return g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(h.default);_.blotName="code";_.tagName="CODE";var O=function(e){m(t,e);function t(){b(this,t);return g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}i(t,[{key:"delta",value:function e(){var t=this;var r=this.domNode.textContent;if(r.endsWith("\n")){r=r.slice(0,-1)}return r.split("\n").reduce(function(e,r){return e.insert(r).insert("\n",t.formats())},new l.default)}},{key:"format",value:function e(r,i){if(r===this.statics.blotName&&i)return;var a=this.descendant(v.default,this.length()-1),l=n(a,1),u=l[0];if(u!=null){u.deleteAt(u.length()-1,1)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,r,i)}},{key:"formatAt",value:function e(r,n,i,o){if(n===0)return;if(s.default.query(i,s.default.Scope.BLOCK)==null||i===this.statics.blotName&&o===this.statics.formats(this.domNode)){return}var a=this.newlineIndex(r);if(a<0||a>=r+n)return;var l=this.newlineIndex(r,true)+1;var u=a-l+1;var f=this.isolate(l,u);var c=f.next;f.format(i,o);if(c instanceof t){c.formatAt(0,r-l+n-u,i,o)}}},{key:"insertAt",value:function e(t,r,i){if(i!=null)return;var o=this.descendant(v.default,t),a=n(o,2),l=a[0],u=a[1];l.insertAt(u,r)}},{key:"length",value:function e(){var e=this.domNode.textContent.length;if(!this.domNode.textContent.endsWith("\n")){return e+1}return e}},{key:"newlineIndex",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!r){var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}else{return this.domNode.textContent.slice(0,t).lastIndexOf("\n")}}},{key:"optimize",value:function e(r){if(!this.domNode.textContent.endsWith("\n")){this.appendChild(s.default.create("text","\n"))}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,r);var n=this.next;if(n!=null&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)){n.optimize(r);n.moveChildren(this);n.remove()}}},{key:"replace",value:function e(r){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,r);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var t=s.default.find(e);if(t==null){e.parentNode.removeChild(e)}else if(t instanceof s.default.Embed){t.remove()}else{t.unwrap()}})}}],[{key:"create",value:function e(r){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,r);n.setAttribute("spellcheck",false);return n}},{key:"formats",value:function e(){return true}}]);return t}(c.default);O.blotName="code-block";O.tagName="PRE";O.TAB=" ";t.Code=_;t.default=O},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var a=r(2);var l=N(a);var u=r(20);var s=N(u);var f=r(0);var c=N(f);var d=r(13);var h=N(d);var p=r(24);var v=N(p);var y=r(4);var b=N(y);var g=r(16);var m=N(g);var _=r(21);var O=N(_);var w=r(11);var k=N(w);var x=r(3);var E=N(x);function N(e){return e&&e.__esModule?e:{default:e}}function j(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function A(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var q=/^[ -~]*$/;var T=function(){function e(t){A(this,e);this.scroll=t;this.delta=this.getDelta()}o(e,[{key:"applyDelta",value:function e(t){var r=this;var o=false;this.scroll.update();var a=this.scroll.length();this.scroll.batchStart();t=S(t);t.reduce(function(e,t){var l=t.retain||t.delete||t.insert.length||1;var u=t.attributes||{};if(t.insert!=null){if(typeof t.insert==="string"){var f=t.insert;if(f.endsWith("\n")&&o){o=false;f=f.slice(0,-1)}if(e>=a&&!f.endsWith("\n")){o=true}r.scroll.insertAt(e,f);var d=r.scroll.line(e),h=i(d,2),p=h[0],v=h[1];var g=(0,E.default)({},(0,y.bubbleFormats)(p));if(p instanceof b.default){var m=p.descendant(c.default.Leaf,v),_=i(m,1),O=_[0];g=(0,E.default)(g,(0,y.bubbleFormats)(O))}u=s.default.attributes.diff(g,u)||{}}else if(n(t.insert)==="object"){var w=Object.keys(t.insert)[0];if(w==null)return e;r.scroll.insertAt(e,w,t.insert[w])}a+=l}Object.keys(u).forEach(function(t){r.scroll.formatAt(e,l,t,u[t])});return e+l},0);t.reduce(function(e,t){if(typeof t.delete==="number"){r.scroll.deleteAt(e,t.delete);return e}return e+(t.retain||t.insert.length||1)},0);this.scroll.batchEnd();return this.update(t)}},{key:"deleteText",value:function e(t,r){this.scroll.deleteAt(t,r);return this.update((new l.default).retain(t).delete(r))}},{key:"formatLine",value:function e(t,r){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};this.scroll.update();Object.keys(i).forEach(function(e){if(n.scroll.whitelist!=null&&!n.scroll.whitelist[e])return;var o=n.scroll.lines(t,Math.max(r,1));var a=r;o.forEach(function(r){var o=r.length();if(!(r instanceof h.default)){r.format(e,i[e])}else{var l=t-r.offset(n.scroll);var u=r.newlineIndex(l+a)-l+1;r.formatAt(l,u,e,i[e])}a-=o})});this.scroll.optimize();return this.update((new l.default).retain(t).retain(r,(0,O.default)(i)))}},{key:"formatText",value:function e(t,r){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};Object.keys(i).forEach(function(e){n.scroll.formatAt(t,r,e,i[e])});return this.update((new l.default).retain(t).retain(r,(0,O.default)(i)))}},{key:"getContents",value:function e(t,r){return this.delta.slice(t,t+r)}},{key:"getDelta",value:function e(){return this.scroll.lines().reduce(function(e,t){return e.concat(t.delta())},new l.default)}},{key:"getFormat",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=[],o=[];if(r===0){this.scroll.path(t).forEach(function(e){var t=i(e,1),r=t[0];if(r instanceof b.default){n.push(r)}else if(r instanceof c.default.Leaf){o.push(r)}})}else{n=this.scroll.lines(t,r);o=this.scroll.descendants(c.default.Leaf,t,r)}var a=[n,o].map(function(e){if(e.length===0)return{};var t=(0,y.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var r=e.shift();if(r==null)return t;t=P((0,y.bubbleFormats)(r),t)}return t});return E.default.apply(E.default,a)}},{key:"getText",value:function e(t,r){return this.getContents(t,r).filter(function(e){return typeof e.insert==="string"}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function e(t,r,n){this.scroll.insertAt(t,r,n);return this.update((new l.default).retain(t).insert(j({},r,n)))}},{key:"insertText",value:function e(t,r){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r=r.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(t,r);Object.keys(i).forEach(function(e){n.scroll.formatAt(t,r.length,e,i[e])});return this.update((new l.default).retain(t).insert(r,(0,O.default)(i)))}},{key:"isBlank",value:function e(){if(this.scroll.children.length==0)return true;if(this.scroll.children.length>1)return false;var t=this.scroll.children.head;if(t.statics.blotName!==b.default.blotName)return false;if(t.children.length>1)return false;return t.children.head instanceof m.default}},{key:"removeFormat",value:function e(t,r){var n=this.getText(t,r);var o=this.scroll.line(t+r),a=i(o,2),u=a[0],s=a[1];var f=0,c=new l.default;if(u!=null){if(!(u instanceof h.default)){f=u.length()-s}else{f=u.newlineIndex(s)-s+1}c=u.delta().slice(s,s+f-1).insert("\n")}var d=this.getContents(t,r+f);var p=d.diff((new l.default).insert(n).concat(c));var v=(new l.default).retain(t).concat(p);return this.applyDelta(v)}},{key:"update",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;var i=this.delta;if(r.length===1&&r[0].type==="characterData"&&r[0].target.data.match(q)&&c.default.find(r[0].target)){var o=c.default.find(r[0].target);var a=(0,y.bubbleFormats)(o);var u=o.offset(this.scroll);var s=r[0].oldValue.replace(v.default.CONTENTS,"");var f=(new l.default).insert(s);var d=(new l.default).insert(o.value());var h=(new l.default).retain(u).concat(f.diff(d,n));t=h.reduce(function(e,t){if(t.insert){return e.insert(t.insert,a)}else{return e.push(t)}},new l.default);this.delta=i.compose(t)}else{this.delta=this.getDelta();if(!t||!(0,k.default)(i.compose(t),this.delta)){t=i.diff(this.delta,n)}}return t}}]);return e}();function P(e,t){return Object.keys(t).reduce(function(r,n){if(e[n]==null)return r;if(t[n]===e[n]){r[n]=t[n]}else if(Array.isArray(t[n])){if(t[n].indexOf(e[n])<0){r[n]=t[n].concat([e[n]])}}else{r[n]=[t[n],e[n]]}return r},{})}function S(e){return e.reduce(function(e,t){if(t.insert===1){var r=(0,O.default)(t.attributes);delete r["image"];return e.insert({image:t.attributes.image},r)}if(t.attributes!=null&&(t.attributes.list===true||t.attributes.bullet===true)){t=(0,O.default)(t);if(t.attributes.list){t.attributes.list="ordered"}else{t.attributes.list="bullet";delete t.attributes.bullet}}if(typeof t.insert==="string"){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)},new l.default)}t.default=T},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.Range=undefined;var n=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var o=r(0);var a=v(o);var l=r(21);var u=v(l);var s=r(11);var f=v(s);var c=r(8);var d=v(c);var h=r(10);var p=v(h);function v(e){return e&&e.__esModule?e:{default:e}}function y(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++){r[t]=e[t]}return r}else{return Array.from(e)}}function b(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var g=(0,p.default)("quill:selection");var m=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;b(this,e);this.index=t;this.length=r};var _=function(){function e(t,r){var n=this;b(this,e);this.emitter=r;this.scroll=t;this.composing=false;this.mouseDown=false;this.root=this.scroll.domNode;this.cursor=a.default.create("cursor",this);this.lastRange=this.savedRange=new m(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,function(){if(!n.mouseDown){setTimeout(n.update.bind(n,d.default.sources.USER),1)}});this.emitter.on(d.default.events.EDITOR_CHANGE,function(e,t){if(e===d.default.events.TEXT_CHANGE&&t.length()>0){n.update(d.default.sources.SILENT)}});this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,function(){if(!n.hasFocus())return;var e=n.getNativeRange();if(e==null)return;if(e.start.node===n.cursor.textNode)return;n.emitter.once(d.default.events.SCROLL_UPDATE,function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}})});this.emitter.on(d.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var r=t.range,i=r.startNode,o=r.startOffset,a=r.endNode,l=r.endOffset;n.setNativeRange(i,o,a,l)}});this.update(d.default.sources.SILENT)}i(e,[{key:"handleComposition",value:function e(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=true});this.root.addEventListener("compositionend",function(){t.composing=false;if(t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function e(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=true});this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=false;t.update(d.default.sources.USER)})}},{key:"focus",value:function e(){if(this.hasFocus())return;this.root.focus();this.setRange(this.savedRange)}},{key:"format",value:function e(t,r){if(this.scroll.whitelist!=null&&!this.scroll.whitelist[t])return;this.scroll.update();var n=this.getNativeRange();if(n==null||!n.native.collapsed||a.default.query(t,a.default.Scope.BLOCK))return;if(n.start.node!==this.cursor.textNode){var i=a.default.find(n.start.node,false);if(i==null)return;if(i instanceof a.default.Leaf){var o=i.split(n.start.offset);i.parent.insertBefore(this.cursor,o)}else{i.insertBefore(this.cursor,n.start.node)}this.cursor.attach()}this.cursor.format(t,r);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}},{key:"getBounds",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var i=this.scroll.length();t=Math.min(t,i-1);r=Math.min(t+r,i-1)-t;var o=void 0,a=this.scroll.leaf(t),l=n(a,2),u=l[0],s=l[1];if(u==null)return null;var f=u.position(s,true);var c=n(f,2);o=c[0];s=c[1];var d=document.createRange();if(r>0){d.setStart(o,s);var h=this.scroll.leaf(t+r);var p=n(h,2);u=p[0];s=p[1];if(u==null)return null;var v=u.position(s,true);var y=n(v,2);o=y[0];s=y[1];d.setEnd(o,s);return d.getBoundingClientRect()}else{var b="left";var g=void 0;if(o instanceof Text){if(s<o.data.length){d.setStart(o,s);d.setEnd(o,s+1)}else{d.setStart(o,s-1);d.setEnd(o,s);b="right"}g=d.getBoundingClientRect()}else{g=u.domNode.getBoundingClientRect();if(s>0)b="right"}return{bottom:g.top+g.height,height:g.height,left:g[b],right:g[b],top:g.top,width:0}}}},{key:"getNativeRange",value:function e(){var t=document.getSelection();if(t==null||t.rangeCount<=0)return null;var r=t.getRangeAt(0);if(r==null)return null;var n=this.normalizeNative(r);g.info("getNativeRange",n);return n}},{key:"getRange",value:function e(){var t=this.getNativeRange();if(t==null)return[null,null];var r=this.normalizedToRange(t);return[r,t]}},{key:"hasFocus",value:function e(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function e(t){var r=this;var i=[[t.start.node,t.start.offset]];if(!t.native.collapsed){i.push([t.end.node,t.end.offset])}var o=i.map(function(e){var t=n(e,2),i=t[0],o=t[1];var l=a.default.find(i,true);var u=l.offset(r.scroll);if(o===0){return u}else if(l instanceof a.default.Container){return u+l.length()}else{return u+l.index(i,o)}});var l=Math.min(Math.max.apply(Math,y(o)),this.scroll.length()-1);var u=Math.min.apply(Math,[l].concat(y(o)));return new m(u,l-u)}},{key:"normalizeNative",value:function e(t){if(!O(this.root,t.startContainer)||!t.collapsed&&!O(this.root,t.endContainer)){return null}var r={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};[r.start,r.end].forEach(function(e){var t=e.node,r=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0){if(t.childNodes.length>r){t=t.childNodes[r];r=0}else if(t.childNodes.length===r){t=t.lastChild;r=t instanceof Text?t.data.length:t.childNodes.length+1}else{break}}e.node=t,e.offset=r});return r}},{key:"rangeToNative",value:function e(t){var r=this;var i=t.collapsed?[t.index]:[t.index,t.index+t.length];var o=[];var a=this.scroll.length();i.forEach(function(e,t){e=Math.min(a-1,e);var i=void 0,l=r.scroll.leaf(e),u=n(l,2),s=u[0],f=u[1];var c=s.position(f,t!==0);var d=n(c,2);i=d[0];f=d[1];o.push(i,f)});if(o.length<2){o=o.concat(o)}return o}},{key:"scrollIntoView",value:function e(t){var r=this.lastRange;if(r==null)return;var i=this.getBounds(r.index,r.length);if(i==null)return;var o=this.scroll.length()-1;var a=this.scroll.line(Math.min(r.index,o)),l=n(a,1),u=l[0];var s=u;if(r.length>0){var f=this.scroll.line(Math.min(r.index+r.length,o));var c=n(f,1);s=c[0]}if(u==null||s==null)return;var d=t.getBoundingClientRect();if(i.top<d.top){t.scrollTop-=d.top-i.top}else if(i.bottom>d.bottom){t.scrollTop+=i.bottom-d.bottom}}},{key:"setNativeRange",value:function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:r;var o=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;g.info("setNativeRange",t,r,n,i);if(t!=null&&(this.root.parentNode==null||t.parentNode==null||n.parentNode==null)){return}var a=document.getSelection();if(a==null)return;if(t!=null){if(!this.hasFocus())this.root.focus();var l=(this.getNativeRange()||{}).native;if(l==null||o||t!==l.startContainer||r!==l.startOffset||n!==l.endContainer||i!==l.endOffset){if(t.tagName=="BR"){r=[].indexOf.call(t.parentNode.childNodes,t);t=t.parentNode}if(n.tagName=="BR"){i=[].indexOf.call(n.parentNode.childNodes,n);n=n.parentNode}var u=document.createRange();u.setStart(t,r);u.setEnd(n,i);a.removeAllRanges();a.addRange(u)}}else{a.removeAllRanges();this.root.blur();document.body.focus()}}},{key:"setRange",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:d.default.sources.API;if(typeof r==="string"){n=r;r=false}g.info("setRange",t);if(t!=null){var i=this.rangeToNative(t);this.setNativeRange.apply(this,y(i).concat([r]))}else{this.setNativeRange(null)}this.update(n)}},{key:"update",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:d.default.sources.USER;var r=this.lastRange;var i=this.getRange(),o=n(i,2),a=o[0],l=o[1];this.lastRange=a;if(this.lastRange!=null){this.savedRange=this.lastRange}if(!(0,f.default)(r,this.lastRange)){var s;if(!this.composing&&l!=null&&l.native.collapsed&&l.start.node!==this.cursor.textNode){this.cursor.restore()}var c=[d.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(r),t];(s=this.emitter).emit.apply(s,[d.default.events.EDITOR_CHANGE].concat(c));if(t!==d.default.sources.SILENT){var h;(h=this.emitter).emit.apply(h,c)}}}}]);return e}();function O(e,t){try{t.parentNode}catch(e){return false}if(t instanceof Text){t=t.parentNode}return e.contains(t)}t.Range=m;t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(0);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=function(e){f(t,e);function t(){u(this,t);return s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"insertInto",value:function e(r,n){if(r.children.length===0){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,r,n)}else{this.remove()}}},{key:"length",value:function e(){return 0}},{key:"value",value:function e(){return""}}],[{key:"value",value:function e(){return undefined}}]);return t}(a.default.Embed);c.blotName="break";c.tagName="BR";t.default=c},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(44);var o=r(30);var a=r(1);var l=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.build();return r}t.prototype.appendChild=function(e){this.insertBefore(e)};t.prototype.attach=function(){e.prototype.attach.call(this);this.children.forEach(function(e){e.attach()})};t.prototype.build=function(){var e=this;this.children=new i.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var r=u(t);e.insertBefore(r,e.children.head||undefined)}catch(e){if(e instanceof a.ParchmentError)return;else throw e}})};t.prototype.deleteAt=function(e,t){if(e===0&&t===this.length()){return this.remove()}this.children.forEachAt(e,t,function(e,t,r){e.deleteAt(t,r)})};t.prototype.descendant=function(e,r){var n=this.children.find(r),i=n[0],o=n[1];if(e.blotName==null&&e(i)||e.blotName!=null&&i instanceof e){return[i,o]}else if(i instanceof t){return i.descendant(e,o)}else{return[null,-1]}};t.prototype.descendants=function(e,r,n){if(r===void 0){r=0}if(n===void 0){n=Number.MAX_VALUE}var i=[];var o=n;this.children.forEachAt(r,n,function(r,n,a){if(e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e){i.push(r)}if(r instanceof t){i=i.concat(r.descendants(e,n,o))}o-=a});return i};t.prototype.detach=function(){this.children.forEach(function(e){e.detach()});e.prototype.detach.call(this)};t.prototype.formatAt=function(e,t,r,n){this.children.forEachAt(e,t,function(e,t,i){e.formatAt(t,i,r,n)})};t.prototype.insertAt=function(e,t,r){var n=this.children.find(e),i=n[0],o=n[1];if(i){i.insertAt(o,t,r)}else{var l=r==null?a.create("text",t):a.create(t,r);this.appendChild(l)}};t.prototype.insertBefore=function(e,t){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(t){return e instanceof t})){throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName)}e.insertInto(this,t)};t.prototype.length=function(){return this.children.reduce(function(e,t){return e+t.length()},0)};t.prototype.moveChildren=function(e,t){this.children.forEach(function(r){e.insertBefore(r,t)})};t.prototype.optimize=function(t){e.prototype.optimize.call(this,t);if(this.children.length===0){if(this.statics.defaultChild!=null){var r=a.create(this.statics.defaultChild);this.appendChild(r);r.optimize(t)}else{this.remove()}}};t.prototype.path=function(e,r){if(r===void 0){r=false}var n=this.children.find(e,r),i=n[0],o=n[1];var a=[[this,e]];if(i instanceof t){return a.concat(i.path(o,r))}else if(i!=null){a.push([i,o])}return a};t.prototype.removeChild=function(e){this.children.remove(e)};t.prototype.replace=function(r){if(r instanceof t){r.moveChildren(this)}e.prototype.replace.call(this,r)};t.prototype.split=function(e,t){if(t===void 0){t=false}if(!t){if(e===0)return this;if(e===this.length())return this.next}var r=this.clone();this.parent.insertBefore(r,this.next);this.children.forEachAt(e,this.length(),function(e,n,i){e=e.split(n,t);r.appendChild(e)});return r};t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};t.prototype.update=function(e,t){var r=this;var n=[];var i=[];e.forEach(function(e){if(e.target===r.domNode&&e.type==="childList"){n.push.apply(n,e.addedNodes);i.push.apply(i,e.removedNodes)}});i.forEach(function(e){if(e.parentNode!=null&&e.tagName!=="IFRAME"&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY){return}var t=a.find(e);if(t==null)return;if(t.domNode.parentNode==null||t.domNode.parentNode===r.domNode){t.detach()}});n.filter(function(e){return e.parentNode==r.domNode}).sort(function(e,t){if(e===t)return 0;if(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING){return 1}return-1}).forEach(function(e){var t=null;if(e.nextSibling!=null){t=a.find(e.nextSibling)}var n=u(e);if(n.next!=t||n.next==null){if(n.parent!=null){n.parent.removeChild(r)}r.insertBefore(n,t||undefined)}})};return t}(o.default);function u(e){var t=a.find(e);if(t==null){try{t=a.create(e)}catch(r){t=a.create(a.Scope.INLINE);[].slice.call(e.childNodes).forEach(function(e){t.domNode.appendChild(e)});if(e.parentNode){e.parentNode.replaceChild(t.domNode,e)}t.attach()}}return t}t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(12);var o=r(31);var a=r(17);var l=r(1);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.attributes=new o.default(r.domNode);return r}t.formats=function(e){if(typeof this.tagName==="string"){return true}else if(Array.isArray(this.tagName)){return e.tagName.toLowerCase()}return undefined};t.prototype.format=function(e,t){var r=l.query(e);if(r instanceof i.default){this.attributes.attribute(r,t)}else if(t){if(r!=null&&(e!==this.statics.blotName||this.formats()[e]!==t)){this.replaceWith(e,t)}}};t.prototype.formats=function(){var e=this.attributes.values();var t=this.statics.formats(this.domNode);if(t!=null){e[this.statics.blotName]=t}return e};t.prototype.replaceWith=function(t,r){var n=e.prototype.replaceWith.call(this,t,r);this.attributes.copy(n);return n};t.prototype.update=function(t,r){var n=this;e.prototype.update.call(this,t,r);if(t.some(function(e){return e.target===n.domNode&&e.type==="attributes"})){this.attributes.build()}};t.prototype.wrap=function(r,n){var i=e.prototype.wrap.call(this,r,n);if(i instanceof t&&i.statics.scope===this.statics.scope){this.attributes.move(i)}return i};return t}(a.default);t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(30);var o=r(1);var a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.value=function(e){return true};t.prototype.index=function(e,t){if(this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY){return Math.min(t,1)}return-1};t.prototype.position=function(e,t){var r=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);if(e>0)r+=1;return[this.parent.domNode,r]};t.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||true,e};t.scope=o.Scope.INLINE_BLOT;return t}(i.default);t.default=a},function(e,t,r){var n=r(11);var i=r(3);var o={attributes:{compose:function(e,t,r){if(typeof e!=="object")e={};if(typeof t!=="object")t={};var n=i(true,{},t);if(!r){n=Object.keys(n).reduce(function(e,t){if(n[t]!=null){e[t]=n[t]}return e},{})}for(var o in e){if(e[o]!==undefined&&t[o]===undefined){n[o]=e[o]}}return Object.keys(n).length>0?n:undefined},diff:function(e,t){if(typeof e!=="object")e={};if(typeof t!=="object")t={};var r=Object.keys(e).concat(Object.keys(t)).reduce(function(r,i){if(!n(e[i],t[i])){r[i]=t[i]===undefined?null:t[i]}return r},{});return Object.keys(r).length>0?r:undefined},transform:function(e,t,r){if(typeof e!=="object")return t;if(typeof t!=="object")return undefined;if(!r)return t;var n=Object.keys(t).reduce(function(r,n){if(e[n]===undefined)r[n]=t[n];return r},{});return Object.keys(n).length>0?n:undefined}},iterator:function(e){return new a(e)},length:function(e){if(typeof e["delete"]==="number"){return e["delete"]}else if(typeof e.retain==="number"){return e.retain}else{return typeof e.insert==="string"?e.insert.length:1}}};function a(e){this.ops=e;this.index=0;this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<Infinity};a.prototype.next=function(e){if(!e)e=Infinity;var t=this.ops[this.index];if(t){var r=this.offset;var n=o.length(t);if(e>=n-r){e=n-r;this.index+=1;this.offset=0}else{this.offset+=e}if(typeof t["delete"]==="number"){return{delete:e}}else{var i={};if(t.attributes){i.attributes=t.attributes}if(typeof t.retain==="number"){i.retain=e}else if(typeof t.insert==="string"){i.insert=t.insert.substr(r,e)}else{i.insert=t.insert}return i}}else{return{retain:Infinity}}};a.prototype.peek=function(){return this.ops[this.index]};a.prototype.peekLength=function(){if(this.ops[this.index]){return o.length(this.ops[this.index])-this.offset}else{return Infinity}};a.prototype.peekType=function(){if(this.ops[this.index]){if(typeof this.ops[this.index]["delete"]==="number"){return"delete"}else if(typeof this.ops[this.index].retain==="number"){return"retain"}else{return"insert"}}return"retain"};a.prototype.rest=function(){if(!this.hasNext()){return[]}else if(this.offset===0){return this.ops.slice(this.index)}else{var e=this.offset;var t=this.index;var r=this.next();var n=this.ops.slice(this.index);this.offset=e;this.index=t;return[r].concat(n)}};e.exports=o},function(e,t){var r=function(){"use strict";function e(e,t){return t!=null&&e instanceof t}var t;try{t=Map}catch(e){t=function(){}}var r;try{r=Set}catch(e){r=function(){}}var n;try{n=Promise}catch(e){n=function(){}}function i(o,a,l,u,f){if(typeof a==="object"){l=a.depth;u=a.prototype;f=a.includeNonEnumerable;a=a.circular}var c=[];var d=[];var h=typeof Buffer!="undefined";if(typeof a=="undefined")a=true;if(typeof l=="undefined")l=Infinity;function p(o,l){if(o===null)return null;if(l===0)return o;var v;var y;if(typeof o!="object"){return o}if(e(o,t)){v=new t}else if(e(o,r)){v=new r}else if(e(o,n)){v=new n(function(e,t){o.then(function(t){e(p(t,l-1))},function(e){t(p(e,l-1))})})}else if(i.__isArray(o)){v=[]}else if(i.__isRegExp(o)){v=new RegExp(o.source,s(o));if(o.lastIndex)v.lastIndex=o.lastIndex}else if(i.__isDate(o)){v=new Date(o.getTime())}else if(h&&Buffer.isBuffer(o)){if(Buffer.allocUnsafe){v=Buffer.allocUnsafe(o.length)}else{v=new Buffer(o.length)}o.copy(v);return v}else if(e(o,Error)){v=Object.create(o)}else{if(typeof u=="undefined"){y=Object.getPrototypeOf(o);v=Object.create(y)}else{v=Object.create(u);y=u}}if(a){var b=c.indexOf(o);if(b!=-1){return d[b]}c.push(o);d.push(v)}if(e(o,t)){o.forEach(function(e,t){var r=p(t,l-1);var n=p(e,l-1);v.set(r,n)})}if(e(o,r)){o.forEach(function(e){var t=p(e,l-1);v.add(t)})}for(var g in o){var m;if(y){m=Object.getOwnPropertyDescriptor(y,g)}if(m&&m.set==null){continue}v[g]=p(o[g],l-1)}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(o);for(var g=0;g<_.length;g++){var O=_[g];var w=Object.getOwnPropertyDescriptor(o,O);if(w&&!w.enumerable&&!f){continue}v[O]=p(o[O],l-1);if(!w.enumerable){Object.defineProperty(v,O,{enumerable:false})}}}if(f){var k=Object.getOwnPropertyNames(o);for(var g=0;g<k.length;g++){var x=k[g];var w=Object.getOwnPropertyDescriptor(o,x);if(w&&w.enumerable){continue}v[x]=p(o[x],l-1);Object.defineProperty(v,x,{enumerable:false})}}return v}return p(o,l)}i.clonePrototype=function e(t){if(t===null)return null;var r=function(){};r.prototype=t;return new r};function o(e){return Object.prototype.toString.call(e)}i.__objToStr=o;function a(e){return typeof e==="object"&&o(e)==="[object Date]"}i.__isDate=a;function l(e){return typeof e==="object"&&o(e)==="[object Array]"}i.__isArray=l;function u(e){return typeof e==="object"&&o(e)==="[object RegExp]"}i.__isRegExp=u;function s(e){var t="";if(e.global)t+="g";if(e.ignoreCase)t+="i";if(e.multiline)t+="m";return t}i.__getRegExpFlags=s;return i}();if(typeof e==="object"&&e.exports){e.exports=r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var o=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var a=r(0);var l=g(a);var u=r(8);var s=g(u);var f=r(4);var c=g(f);var d=r(16);var h=g(d);var p=r(13);var v=g(p);var y=r(25);var b=g(y);function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function O(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}function w(e){return e instanceof c.default||e instanceof f.BlockEmbed}var k=function(e){O(t,e);function t(e,r){m(this,t);var n=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.emitter=r.emitter;if(Array.isArray(r.whitelist)){n.whitelist=r.whitelist.reduce(function(e,t){e[t]=true;return e},{})}n.domNode.addEventListener("DOMNodeInserted",function(){});n.optimize();n.enable();return n}i(t,[{key:"batchStart",value:function e(){this.batch=true}},{key:"batchEnd",value:function e(){this.batch=false;this.optimize()}},{key:"deleteAt",value:function e(r,i){var a=this.line(r),l=n(a,2),u=l[0],s=l[1];var c=this.line(r+i),d=n(c,1),p=d[0];o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,r,i);if(p!=null&&u!==p&&s>0){if(u instanceof f.BlockEmbed||p instanceof f.BlockEmbed){this.optimize();return}if(u instanceof v.default){var y=u.newlineIndex(u.length(),true);if(y>-1){u=u.split(y+1);if(u===p){this.optimize();return}}}else if(p instanceof v.default){var b=p.newlineIndex(0);if(b>-1){p.split(b+1)}}var g=p.children.head instanceof h.default?null:p.children.head;u.moveChildren(p,g);u.remove()}this.optimize()}},{key:"enable",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function e(r,n,i,a){if(this.whitelist!=null&&!this.whitelist[i])return;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,r,n,i,a);this.optimize()}},{key:"insertAt",value:function e(r,n,i){if(i!=null&&this.whitelist!=null&&!this.whitelist[n])return;if(r>=this.length()){if(i==null||l.default.query(n,l.default.Scope.BLOCK)==null){var a=l.default.create(this.statics.defaultChild);this.appendChild(a);if(i==null&&n.endsWith("\n")){n=n.slice(0,-1)}a.insertAt(0,n,i)}else{var u=l.default.create(n,i);this.appendChild(u)}}else{o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,r,n,i)}this.optimize()}},{key:"insertBefore",value:function e(r,n){if(r.statics.scope===l.default.Scope.INLINE_BLOT){var i=l.default.create(this.statics.defaultChild);i.appendChild(r);r=i}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,r,n)}},{key:"leaf",value:function e(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function e(t){if(t===this.length()){return this.line(t-1)}return this.descendant(w,t)}},{key:"lines",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.MAX_VALUE;var n=function e(t,r,n){var i=[],o=n;t.children.forEachAt(r,n,function(t,r,n){if(w(t)){i.push(t)}else if(t instanceof l.default.Container){i=i.concat(e(t,r,o))}o-=n});return i};return n(this,t,r)}},{key:"optimize",value:function e(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.batch===true)return;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,r,n);if(r.length>0){this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,r,n)}}},{key:"path",value:function e(r){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,r).slice(1)}},{key:"update",value:function e(r){if(this.batch===true)return;var n=s.default.sources.USER;if(typeof r==="string"){n=r}if(!Array.isArray(r)){r=this.observer.takeRecords()}if(r.length>0){this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,r)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,r.concat([]));if(r.length>0){this.emitter.emit(s.default.events.SCROLL_UPDATE,n,r)}}}]);return t}(l.default.Scroll);k.blotName="scroll";k.className="ql-editor";k.tagName="DIV";k.defaultChild="block";k.allowedChildren=[c.default,f.BlockEmbed,b.default];t.default=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SHORTKEY=t.default=undefined;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var a=r(21);var l=x(a);var u=r(11);var s=x(u);var f=r(3);var c=x(f);var d=r(2);var h=x(d);var p=r(20);var v=x(p);var y=r(0);var b=x(y);var g=r(5);var m=x(g);var _=r(10);var O=x(_);var w=r(9);var k=x(w);function x(e){return e&&e.__esModule?e:{default:e}}function E(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function N(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function j(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function A(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var q=(0,O.default)("quill:keyboard");var T=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";var P=function(e){A(t,e);o(t,null,[{key:"match",value:function e(t,r){r=D(r);if(["altKey","ctrlKey","metaKey","shiftKey"].some(function(e){return!!r[e]!==t[e]&&r[e]!==null})){return false}return r.key===(t.which||t.keyCode)}}]);function t(e,r){N(this,t);var n=j(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));n.bindings={};Object.keys(n.options.bindings).forEach(function(t){if(t==="list autofill"&&e.scroll.whitelist!=null&&!e.scroll.whitelist["list"]){return}if(n.options.bindings[t]){n.addBinding(n.options.bindings[t])}});n.addBinding({key:t.keys.ENTER,shiftKey:null},R);n.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});if(/Firefox/i.test(navigator.userAgent)){n.addBinding({key:t.keys.BACKSPACE},{collapsed:true},C);n.addBinding({key:t.keys.DELETE},{collapsed:true},L)}else{n.addBinding({key:t.keys.BACKSPACE},{collapsed:true,prefix:/^.?$/},C);n.addBinding({key:t.keys.DELETE},{collapsed:true,suffix:/^.?$/},L)}n.addBinding({key:t.keys.BACKSPACE},{collapsed:false},M);n.addBinding({key:t.keys.DELETE},{collapsed:false},M);n.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:true,offset:0},C);n.listen();return n}o(t,[{key:"addBinding",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i=D(t);if(i==null||i.key==null){return q.warn("Attempted to add invalid keyboard binding",i)}if(typeof r==="function"){r={handler:r}}if(typeof n==="function"){n={handler:n}}i=(0,c.default)(i,r,n);this.bindings[i.key]=this.bindings[i.key]||[];this.bindings[i.key].push(i)}},{key:"listen",value:function e(){var r=this;this.quill.root.addEventListener("keydown",function(e){if(e.defaultPrevented)return;var o=e.which||e.keyCode;var a=(r.bindings[o]||[]).filter(function(r){return t.match(e,r)});if(a.length===0)return;var l=r.quill.getSelection();if(l==null||!r.quill.hasFocus())return;var u=r.quill.getLine(l.index),f=i(u,2),c=f[0],d=f[1];var h=r.quill.getLeaf(l.index),p=i(h,2),v=p[0],y=p[1];var g=l.length===0?[v,y]:r.quill.getLeaf(l.index+l.length),m=i(g,2),_=m[0],O=m[1];var w=v instanceof b.default.Text?v.value().slice(0,y):"";var k=_ instanceof b.default.Text?_.value().slice(O):"";var x={collapsed:l.length===0,empty:l.length===0&&c.length()<=1,format:r.quill.getFormat(l),offset:d,prefix:w,suffix:k};var E=a.some(function(e){if(e.collapsed!=null&&e.collapsed!==x.collapsed)return false;if(e.empty!=null&&e.empty!==x.empty)return false;if(e.offset!=null&&e.offset!==x.offset)return false;if(Array.isArray(e.format)){if(e.format.every(function(e){return x.format[e]==null})){return false}}else if(n(e.format)==="object"){if(!Object.keys(e.format).every(function(t){if(e.format[t]===true)return x.format[t]!=null;if(e.format[t]===false)return x.format[t]==null;return(0,s.default)(e.format[t],x.format[t])})){return false}}if(e.prefix!=null&&!e.prefix.test(x.prefix))return false;if(e.suffix!=null&&!e.suffix.test(x.suffix))return false;return e.handler.call(r,l,x)!==true});if(E){e.preventDefault()}})}}]);return t}(k.default);P.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};P.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:P.keys.TAB,format:["blockquote","indent","list"],handler:function e(t,r){if(r.collapsed&&r.offset!==0)return true;this.quill.format("indent","+1",m.default.sources.USER)}},outdent:{key:P.keys.TAB,shiftKey:true,format:["blockquote","indent","list"],handler:function e(t,r){if(r.collapsed&&r.offset!==0)return true;this.quill.format("indent","-1",m.default.sources.USER)}},"outdent backspace":{key:P.keys.BACKSPACE,collapsed:true,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function e(t,r){if(r.format.indent!=null){this.quill.format("indent","-1",m.default.sources.USER)}else if(r.format.list!=null){this.quill.format("list",false,m.default.sources.USER)}}},"indent code-block":I(true),"outdent code-block":I(false),"remove tab":{key:P.keys.TAB,shiftKey:true,collapsed:true,prefix:/\t$/,handler:function e(t){this.quill.deleteText(t.index-1,1,m.default.sources.USER)}},tab:{key:P.keys.TAB,handler:function e(t){this.quill.history.cutoff();var r=(new h.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(r,m.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(t.index+1,m.default.sources.SILENT)}},"list empty enter":{key:P.keys.ENTER,collapsed:true,format:["list"],empty:true,handler:function e(t,r){this.quill.format("list",false,m.default.sources.USER);if(r.format.indent){this.quill.format("indent",false,m.default.sources.USER)}}},"checklist enter":{key:P.keys.ENTER,collapsed:true,format:{list:"checked"},handler:function e(t){var r=this.quill.getLine(t.index),n=i(r,2),o=n[0],a=n[1];var l=(0,c.default)({},o.formats(),{list:"checked"});var u=(new h.default).retain(t.index).insert("\n",l).retain(o.length()-a-1).retain(1,{list:"unchecked"});this.quill.updateContents(u,m.default.sources.USER);this.quill.setSelection(t.index+1,m.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:P.keys.ENTER,collapsed:true,format:["header"],suffix:/^$/,handler:function e(t,r){var n=this.quill.getLine(t.index),o=i(n,2),a=o[0],l=o[1];var u=(new h.default).retain(t.index).insert("\n",r.format).retain(a.length()-l-1).retain(1,{header:null});this.quill.updateContents(u,m.default.sources.USER);this.quill.setSelection(t.index+1,m.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:true,format:{list:false},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function e(t,r){var n=r.prefix.length;var o=this.quill.getLine(t.index),a=i(o,2),l=a[0],u=a[1];if(u>n)return true;var s=void 0;switch(r.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",m.default.sources.USER);this.quill.history.cutoff();var f=(new h.default).retain(t.index-u).delete(n+1).retain(l.length()-2-u).retain(1,{list:s});this.quill.updateContents(f,m.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(t.index-n,m.default.sources.SILENT)}},"code exit":{key:P.keys.ENTER,collapsed:true,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function e(t){var r=this.quill.getLine(t.index),n=i(r,2),o=n[0],a=n[1];var l=(new h.default).retain(t.index+o.length()-a-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,m.default.sources.USER)}},"embed left":S(P.keys.LEFT,false),"embed left shift":S(P.keys.LEFT,true),"embed right":S(P.keys.RIGHT,false),"embed right shift":S(P.keys.RIGHT,true)}};function S(e,t){var r;var n=e===P.keys.LEFT?"prefix":"suffix";return r={key:e,shiftKey:t,altKey:null},E(r,n,/^$/),E(r,"handler",function r(n){var o=n.index;if(e===P.keys.RIGHT){o+=n.length+1}var a=this.quill.getLeaf(o),l=i(a,1),u=l[0];if(!(u instanceof b.default.Embed))return true;if(e===P.keys.LEFT){if(t){this.quill.setSelection(n.index-1,n.length+1,m.default.sources.USER)}else{this.quill.setSelection(n.index-1,m.default.sources.USER)}}else{if(t){this.quill.setSelection(n.index,n.length+1,m.default.sources.USER)}else{this.quill.setSelection(n.index+n.length+1,m.default.sources.USER)}}return false}),r}function C(e,t){if(e.index===0||this.quill.getLength()<=1)return;var r=this.quill.getLine(e.index),n=i(r,1),o=n[0];var a={};if(t.offset===0){var l=this.quill.getLine(e.index-1),u=i(l,1),s=u[0];if(s!=null&&s.length()>1){var f=o.formats();var c=this.quill.getFormat(e.index-1,1);a=v.default.attributes.diff(f,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,m.default.sources.USER);if(Object.keys(a).length>0){this.quill.formatLine(e.index-d,d,a,m.default.sources.USER)}this.quill.focus()}function L(e,t){var r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;var n={},o=0;var a=this.quill.getLine(e.index),l=i(a,1),u=l[0];if(t.offset>=u.length()-1){var s=this.quill.getLine(e.index+1),f=i(s,1),c=f[0];if(c){var d=u.formats();var h=this.quill.getFormat(e.index,1);n=v.default.attributes.diff(d,h)||{};o=c.length()}}this.quill.deleteText(e.index,r,m.default.sources.USER);if(Object.keys(n).length>0){this.quill.formatLine(e.index+o-1,r,n,m.default.sources.USER)}}function M(e){var t=this.quill.getLines(e);var r={};if(t.length>1){var n=t[0].formats();var i=t[t.length-1].formats();r=v.default.attributes.diff(i,n)||{}}this.quill.deleteText(e,m.default.sources.USER);if(Object.keys(r).length>0){this.quill.formatLine(e.index,1,r,m.default.sources.USER)}this.quill.setSelection(e.index,m.default.sources.SILENT);this.quill.focus()}function R(e,t){var r=this;if(e.length>0){this.quill.scroll.deleteAt(e.index,e.length)}var n=Object.keys(t.format).reduce(function(e,r){if(b.default.query(r,b.default.Scope.BLOCK)&&!Array.isArray(t.format[r])){e[r]=t.format[r]}return e},{});this.quill.insertText(e.index,"\n",n,m.default.sources.USER);this.quill.setSelection(e.index+1,m.default.sources.SILENT);this.quill.focus();Object.keys(t.format).forEach(function(e){if(n[e]!=null)return;if(Array.isArray(t.format[e]))return;if(e==="link")return;r.quill.format(e,t.format[e],m.default.sources.USER)})}function I(e){return{key:P.keys.TAB,shiftKey:!e,format:{"code-block":true},handler:function t(r){var n=b.default.query("code-block");var o=r.index,a=r.length;var l=this.quill.scroll.descendant(n,o),u=i(l,2),s=u[0],f=u[1];if(s==null)return;var c=this.quill.getIndex(s);var d=s.newlineIndex(f,true)+1;var h=s.newlineIndex(c+f+a);var p=s.domNode.textContent.slice(d,h).split("\n");f=0;p.forEach(function(t,r){if(e){s.insertAt(d+f,n.TAB);f+=n.TAB.length;if(r===0){o+=n.TAB.length}else{a+=n.TAB.length}}else if(t.startsWith(n.TAB)){s.deleteAt(d+f,n.TAB.length);f-=n.TAB.length;if(r===0){o-=n.TAB.length}else{a-=n.TAB.length}}f+=t.length+1});this.quill.update(m.default.sources.USER);this.quill.setSelection(o,a,m.default.sources.SILENT)}}}function B(e){return{key:e[0].toUpperCase(),shortKey:true,handler:function t(r,n){this.quill.format(e,!n.format[e],m.default.sources.USER)}}}function D(e){if(typeof e==="string"||typeof e==="number"){return D({key:e})}if((typeof e==="undefined"?"undefined":n(e))==="object"){e=(0,l.default)(e,false)}if(typeof e.key==="string"){if(P.keys[e.key.toUpperCase()]!=null){e.key=P.keys[e.key.toUpperCase()]}else if(e.key.length===1){e.key=e.key.toUpperCase().charCodeAt(0)}else{return null}}if(e.shortKey){e[T]=e.shortKey;delete e.shortKey}return e}t.default=P;t.SHORTKEY=T},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var a=r(0);var l=f(a);var u=r(7);var s=f(u);function f(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function d(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var p=function(e){h(t,e);o(t,null,[{key:"value",value:function e(){return undefined}}]);function t(e,r){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.selection=r;n.textNode=document.createTextNode(t.CONTENTS);n.domNode.appendChild(n.textNode);n._length=0;return n}o(t,[{key:"detach",value:function e(){if(this.parent!=null)this.parent.removeChild(this)}},{key:"format",value:function e(r,n){if(this._length!==0){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,r,n)}var o=this,a=0;while(o!=null&&o.statics.scope!==l.default.Scope.BLOCK_BLOT){a+=o.offset(o.parent);o=o.parent}if(o!=null){this._length=t.CONTENTS.length;o.optimize();o.formatAt(a,t.CONTENTS.length,r,n);this._length=0}}},{key:"index",value:function e(r,n){if(r===this.textNode)return 0;return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,r,n)}},{key:"length",value:function e(){return this._length}},{key:"position",value:function e(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function e(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function e(){if(this.selection.composing||this.parent==null)return;var r=this.textNode;var i=this.selection.getNativeRange();var o=void 0,a=void 0,u=void 0;if(i!=null&&i.start.node===r&&i.end.node===r){var f=[r,i.start.offset,i.end.offset];o=f[0];a=f[1];u=f[2]}while(this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode){this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode)}if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");if(this.next instanceof s.default){o=this.next.domNode;this.next.insertAt(0,c);this.textNode.data=t.CONTENTS}else{this.textNode.data=c;this.parent.insertBefore(l.default.create(this.textNode),this);this.textNode=document.createTextNode(t.CONTENTS);this.domNode.appendChild(this.textNode)}}this.remove();if(a!=null){var d=[a,u].map(function(e){return Math.max(0,Math.min(o.data.length,e-1))});var h=n(d,2);a=h[0];u=h[1];return{startNode:o,startOffset:a,endNode:o,endOffset:u}}}},{key:"update",value:function e(t,r){var n=this;if(t.some(function(e){return e.type==="characterData"&&e.target===n.textNode})){var i=this.restore();if(i)r.range=i}}},{key:"value",value:function e(){return""}}]);return t}(l.default.Embed);p.blotName="cursor";p.className="ql-cursor";p.tagName="span";p.CONTENTS="\ufeff";t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(0);var i=l(n);var o=r(4);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=function(e){f(t,e);function t(){u(this,t);return s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(i.default.Container);c.allowedChildren=[a.default,o.BlockEmbed,c];t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ColorStyle=t.ColorClass=t.ColorAttributor=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(0);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=function(e){f(t,e);function t(){u(this,t);return s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"value",value:function e(r){var e=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,r);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+e.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")}}]);return t}(a.default.Attributor.Style);var d=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE});var h=new c("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=c;t.ColorClass=d;t.ColorStyle=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sanitize=t.default=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(6);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=function(e){f(t,e);function t(){u(this,t);return s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"format",value:function e(r,n){if(r!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,r,n);n=this.constructor.sanitize(n);this.domNode.setAttribute("href",n)}}],[{key:"create",value:function e(r){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,r);r=this.sanitize(r);n.setAttribute("href",r);n.setAttribute("rel","noopener noreferrer");n.setAttribute("target","_blank");return n}},{key:"formats",value:function e(t){return t.getAttribute("href")}},{key:"sanitize",value:function e(t){return d(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]);return t}(a.default);c.blotName="link";c.tagName="A";c.SANITIZED_URL="about:blank";c.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function d(e,t){var r=document.createElement("a");r.href=e;var n=r.href.slice(0,r.href.indexOf(":"));return t.indexOf(n)>-1}t.default=c;t.sanitize=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var o=r(23);var a=s(o);var l=r(107);var u=s(l);function s(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var c=0;function d(e,t){e.setAttribute(t,!(e.getAttribute(t)==="true"))}var h=function(){function e(t){var r=this;f(this,e);this.select=t;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,this.select);this.label.addEventListener("mousedown",function(){r.togglePicker()});this.label.addEventListener("keydown",function(e){switch(e.keyCode){case a.default.keys.ENTER:r.togglePicker();break;case a.default.keys.ESCAPE:r.escape();e.preventDefault();break;default:}});this.select.addEventListener("change",this.update.bind(this))}i(e,[{key:"togglePicker",value:function e(){this.container.classList.toggle("ql-expanded");d(this.label,"aria-expanded");d(this.options,"aria-hidden")}},{key:"buildItem",value:function e(t){var r=this;var n=document.createElement("span");n.tabIndex="0";n.setAttribute("role","button");n.classList.add("ql-picker-item");if(t.hasAttribute("value")){n.setAttribute("data-value",t.getAttribute("value"))}if(t.textContent){n.setAttribute("data-label",t.textContent)}n.addEventListener("click",function(){r.selectItem(n,true)});n.addEventListener("keydown",function(e){switch(e.keyCode){case a.default.keys.ENTER:r.selectItem(n,true);e.preventDefault();break;case a.default.keys.ESCAPE:r.escape();e.preventDefault();break;default:}});return n}},{key:"buildLabel",value:function e(){var t=document.createElement("span");t.classList.add("ql-picker-label");t.innerHTML=u.default;t.tabIndex="0";t.setAttribute("role","button");t.setAttribute("aria-expanded","false");this.container.appendChild(t);return t}},{key:"buildOptions",value:function e(){var t=this;var r=document.createElement("span");r.classList.add("ql-picker-options");r.setAttribute("aria-hidden","true");r.tabIndex="-1";r.id="ql-picker-options-"+c;c+=1;this.label.setAttribute("aria-controls",r.id);this.options=r;[].slice.call(this.select.options).forEach(function(e){var n=t.buildItem(e);r.appendChild(n);if(e.selected===true){t.selectItem(n)}});this.container.appendChild(r)}},{key:"buildPicker",value:function e(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},{key:"escape",value:function e(){var t=this;this.close();setTimeout(function(){return t.label.focus()},1)}},{key:"close",value:function e(){this.container.classList.remove("ql-expanded");this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var i=this.container.querySelector(".ql-selected");if(t===i)return;if(i!=null){i.classList.remove("ql-selected")}if(t==null)return;t.classList.add("ql-selected");this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t);if(t.hasAttribute("data-value")){this.label.setAttribute("data-value",t.getAttribute("data-value"))}else{this.label.removeAttribute("data-value")}if(t.hasAttribute("data-label")){this.label.setAttribute("data-label",t.getAttribute("data-label"))}else{this.label.removeAttribute("data-label")}if(r){if(typeof Event==="function"){this.select.dispatchEvent(new Event("change"))}else if((typeof Event==="undefined"?"undefined":n(Event))==="object"){var o=document.createEvent("Event");o.initEvent("change",true,true);this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function e(){var t=void 0;if(this.select.selectedIndex>-1){var r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex];this.selectItem(r)}else{this.selectItem(null)}var n=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]);return e}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(0);var i=q(n);var o=r(5);var a=q(o);var l=r(4);var u=q(l);var s=r(16);var f=q(s);var c=r(25);var d=q(c);var h=r(24);var p=q(h);var v=r(35);var y=q(v);var b=r(6);var g=q(b);var m=r(22);var _=q(m);var O=r(7);var w=q(O);var k=r(55);var x=q(k);var E=r(42);var N=q(E);var j=r(23);var A=q(j);function q(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":u.default,"blots/block/embed":l.BlockEmbed,"blots/break":f.default,"blots/container":d.default,"blots/cursor":p.default,"blots/embed":y.default,"blots/inline":g.default,"blots/scroll":_.default,"blots/text":w.default,"modules/clipboard":x.default,"modules/history":N.default,"modules/keyboard":A.default});i.default.register(u.default,f.default,p.default,g.default,_.default,w.default);t.default=a.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var i=function(){function e(e){this.domNode=e;this.domNode[n.DATA_KEY]={blot:this}}Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:true,configurable:true});e.create=function(e){if(this.tagName==null){throw new n.ParchmentError("Blot definition missing tagName")}var t;if(Array.isArray(this.tagName)){if(typeof e==="string"){e=e.toUpperCase();if(parseInt(e).toString()===e){e=parseInt(e)}}if(typeof e==="number"){t=document.createElement(this.tagName[e-1])}else if(this.tagName.indexOf(e)>-1){t=document.createElement(e)}else{t=document.createElement(this.tagName[0])}}else{t=document.createElement(this.tagName)}if(this.className){t.classList.add(this.className)}return t};e.prototype.attach=function(){if(this.parent!=null){this.scroll=this.parent.scroll}};e.prototype.clone=function(){var e=this.domNode.cloneNode(false);return n.create(e)};e.prototype.detach=function(){if(this.parent!=null)this.parent.removeChild(this);delete this.domNode[n.DATA_KEY]};e.prototype.deleteAt=function(e,t){var r=this.isolate(e,t);r.remove()};e.prototype.formatAt=function(e,t,r,i){var o=this.isolate(e,t);if(n.query(r,n.Scope.BLOT)!=null&&i){o.wrap(r,i)}else if(n.query(r,n.Scope.ATTRIBUTE)!=null){var a=n.create(this.statics.scope);o.wrap(a);a.format(r,i)}};e.prototype.insertAt=function(e,t,r){var i=r==null?n.create("text",t):n.create(t,r);var o=this.split(e);this.parent.insertBefore(i,o)};e.prototype.insertInto=function(e,t){if(t===void 0){t=null}if(this.parent!=null){this.parent.children.remove(this)}var r=null;e.children.insertBefore(this,t);if(t!=null){r=t.domNode}if(this.domNode.parentNode!=e.domNode||this.domNode.nextSibling!=r){e.domNode.insertBefore(this.domNode,r)}this.parent=e;this.attach()};e.prototype.isolate=function(e,t){var r=this.split(e);r.split(t);return r};e.prototype.length=function(){return 1};e.prototype.offset=function(e){if(e===void 0){e=this.parent}if(this.parent==null||this==e)return 0;return this.parent.children.offset(this)+this.parent.offset(e)};e.prototype.optimize=function(e){if(this.domNode[n.DATA_KEY]!=null){delete this.domNode[n.DATA_KEY].mutations}};e.prototype.remove=function(){if(this.domNode.parentNode!=null){this.domNode.parentNode.removeChild(this.domNode)}this.detach()};e.prototype.replace=function(e){if(e.parent==null)return;e.parent.insertBefore(this,e.next);e.remove()};e.prototype.replaceWith=function(e,t){var r=typeof e==="string"?n.create(e,t):e;r.replace(this);return r};e.prototype.split=function(e,t){return e===0?this:this.next};e.prototype.update=function(e,t){};e.prototype.wrap=function(e,t){var r=typeof e==="string"?n.create(e,t):e;if(this.parent!=null){this.parent.insertBefore(r,this.next)}r.appendChild(this);return r};e.blotName="abstract";return e}();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(12);var i=r(32);var o=r(33);var a=r(1);var l=function(){function e(e){this.attributes={};this.domNode=e;this.build()}e.prototype.attribute=function(e,t){if(t){if(e.add(this.domNode,t)){if(e.value(this.domNode)!=null){this.attributes[e.attrName]=e}else{delete this.attributes[e.attrName]}}}else{e.remove(this.domNode);delete this.attributes[e.attrName]}};e.prototype.build=function(){var e=this;this.attributes={};var t=n.default.keys(this.domNode);var r=i.default.keys(this.domNode);var l=o.default.keys(this.domNode);t.concat(r).concat(l).forEach(function(t){var r=a.query(t,a.Scope.ATTRIBUTE);if(r instanceof n.default){e.attributes[r.attrName]=r}})};e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach(function(r){var n=t.attributes[r].value(t.domNode);e.format(r,n)})};e.prototype.move=function(e){var t=this;this.copy(e);Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)});this.attributes={}};e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(t,r){t[r]=e.attributes[r].value(e.domNode);return t},{})};return e}();t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(12);function o(e,t){var r=e.getAttribute("class")||"";return r.split(/\s+/).filter(function(e){return e.indexOf(t+"-")===0})}var a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})};t.prototype.add=function(e,t){if(!this.canAdd(e,t))return false;this.remove(e);e.classList.add(this.keyName+"-"+t);return true};t.prototype.remove=function(e){var t=o(e,this.keyName);t.forEach(function(t){e.classList.remove(t)});if(e.classList.length===0){e.removeAttribute("class")}};t.prototype.value=function(e){var t=o(e,this.keyName)[0]||"";var r=t.slice(this.keyName.length+1);return this.canAdd(e,r)?r:""};return t}(i.default);t.default=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(12);function o(e){var t=e.split("-");var r=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return t[0]+r}var a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})};t.prototype.add=function(e,t){if(!this.canAdd(e,t))return false;e.style[o(this.keyName)]=t;return true};t.prototype.remove=function(e){e.style[o(this.keyName)]="";if(!e.getAttribute("style")){e.removeAttribute("style")}};t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""};return t}(i.default);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var o=function(){function e(t,r){i(this,e);this.quill=t;this.options=r;this.modules={}}n(e,[{key:"init",value:function e(){var t=this;Object.keys(this.options.modules).forEach(function(e){if(t.modules[e]==null){t.addModule(e)}})}},{key:"addModule",value:function e(t){var r=this.quill.constructor.import("modules/"+t);this.modules[t]=new r(this.quill,this.options.modules[t]||{});return this.modules[t]}}]);return e}();o.DEFAULTS={modules:{}};o.themes={default:o};t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(0);var a=s(o);var l=r(7);var u=s(l);function s(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function c(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function d(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var h="\ufeff";var p=function(e){d(t,e);function t(e){f(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.contentNode=document.createElement("span");r.contentNode.setAttribute("contenteditable",false);[].slice.call(r.domNode.childNodes).forEach(function(e){r.contentNode.appendChild(e)});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);return r}n(t,[{key:"index",value:function e(r,n){if(r===this.leftGuard)return 0;if(r===this.rightGuard)return 1;return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,r,n)}},{key:"restore",value:function e(t){var r=void 0,n=void 0;var i=t.data.split(h).join("");if(t===this.leftGuard){if(this.prev instanceof u.default){var o=this.prev.length();this.prev.insertAt(o,i);r={startNode:this.prev.domNode,startOffset:o+i.length}}else{n=document.createTextNode(i);this.parent.insertBefore(a.default.create(n),this);r={startNode:n,startOffset:i.length}}}else if(t===this.rightGuard){if(this.next instanceof u.default){this.next.insertAt(0,i);r={startNode:this.next.domNode,startOffset:i.length}}else{n=document.createTextNode(i);this.parent.insertBefore(a.default.create(n),this.next);r={startNode:n,startOffset:i.length}}}t.data=h;return r}},{key:"update",value:function e(t,r){var n=this;t.forEach(function(e){if(e.type==="characterData"&&(e.target===n.leftGuard||e.target===n.rightGuard)){var t=n.restore(e.target);if(t)r.range=t}})}}]);return t}(a.default.Embed);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AlignStyle=t.AlignClass=t.AlignAttribute=undefined;var n=r(0);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]};var l=new i.default.Attributor.Attribute("align","align",a);var u=new i.default.Attributor.Class("align","ql-align",a);var s=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=l;t.AlignClass=u;t.AlignStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BackgroundStyle=t.BackgroundClass=undefined;var n=r(0);var i=a(n);var o=r(26);function a(e){return e&&e.__esModule?e:{default:e}}var l=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE});var u=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=l;t.BackgroundStyle=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=undefined;var n=r(0);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]};var l=new i.default.Attributor.Attribute("direction","dir",a);var u=new i.default.Attributor.Class("direction","ql-direction",a);var s=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=l;t.DirectionClass=u;t.DirectionStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FontClass=t.FontStyle=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(0);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]};var d=new a.default.Attributor.Class("font","ql-font",c);var h=function(e){f(t,e);function t(){u(this,t);return s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"value",value:function e(r){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,r).replace(/["']/g,"")}}]);return t}(a.default.Attributor.Style);var p=new h("font","font-family",c);t.FontStyle=p;t.FontClass=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SizeStyle=t.SizeClass=undefined;var n=r(0);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}var a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]});var l=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a;t.SizeStyle=l},function(e,t,r){"use strict";e.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLastChangeIndex=t.default=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=r(0);var o=f(i);var a=r(5);var l=f(a);var u=r(9);var s=f(u);function f(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function d(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var p=function(e){h(t,e);function t(e,r){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));n.lastRecorded=0;n.ignoreChange=false;n.clear();n.quill.on(l.default.events.EDITOR_CHANGE,function(e,t,r,i){if(e!==l.default.events.TEXT_CHANGE||n.ignoreChange)return;if(!n.options.userOnly||i===l.default.sources.USER){n.record(t,r)}else{n.transform(t)}});n.quill.keyboard.addBinding({key:"Z",shortKey:true},n.undo.bind(n));n.quill.keyboard.addBinding({key:"Z",shortKey:true,shiftKey:true},n.redo.bind(n));if(/Win/i.test(navigator.platform)){n.quill.keyboard.addBinding({key:"Y",shortKey:true},n.redo.bind(n))}return n}n(t,[{key:"change",value:function e(t,r){if(this.stack[t].length===0)return;var n=this.stack[t].pop();this.stack[r].push(n);this.lastRecorded=0;this.ignoreChange=true;this.quill.updateContents(n[t],l.default.sources.USER);this.ignoreChange=false;var i=y(n[t]);this.quill.setSelection(i)}},{key:"clear",value:function e(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function e(){this.lastRecorded=0}},{key:"record",value:function e(t,r){if(t.ops.length===0)return;this.stack.redo=[];var n=this.quill.getContents().diff(r);var i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo);t=o.redo.compose(t)}else{this.lastRecorded=i}this.stack.undo.push({redo:t,undo:n});if(this.stack.undo.length>this.options.maxStack){this.stack.undo.shift()}}},{key:"redo",value:function e(){this.change("redo","undo")}},{key:"transform",value:function e(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,true);e.redo=t.transform(e.redo,true)});this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,true);e.redo=t.transform(e.redo,true)})}},{key:"undo",value:function e(){this.change("undo","redo")}}]);return t}(s.default);p.DEFAULTS={delay:1e3,maxStack:100,userOnly:false};function v(e){var t=e.ops[e.ops.length-1];if(t==null)return false;if(t.insert!=null){return typeof t.insert==="string"&&t.insert.endsWith("\n")}if(t.attributes!=null){return Object.keys(t.attributes).some(function(e){return o.default.query(e,o.default.Scope.BLOCK)!=null})}return false}function y(e){var t=e.reduce(function(e,t){e+=t.delete||0;return e},0);var r=e.length()-t;if(v(e)){r-=1}return r}t.default=p;t.getLastChangeIndex=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.BaseTooltip=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(3);var a=k(o);var l=r(2);var u=k(l);var s=r(8);var f=k(s);var c=r(23);var d=k(c);var h=r(34);var p=k(h);var v=r(59);var y=k(v);var b=r(60);var g=k(b);var m=r(28);var _=k(m);var O=r(61);var w=k(O);function k(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function E(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function N(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var j=[false,"center","right","justify"];var A=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"];var q=[false,"serif","monospace"];var T=["1","2","3",false];var P=["small",false,"large","huge"];var S=function(e){N(t,e);function t(e,r){x(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));var i=function t(r){if(!document.body.contains(e.root)){return document.body.removeEventListener("click",t)}if(n.tooltip!=null&&!n.tooltip.root.contains(r.target)&&document.activeElement!==n.tooltip.textbox&&!n.quill.hasFocus()){n.tooltip.hide()}if(n.pickers!=null){n.pickers.forEach(function(e){if(!e.container.contains(r.target)){e.close()}})}};e.emitter.listenDOM("click",document.body,i);return n}n(t,[{key:"addModule",value:function e(r){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,r);if(r==="toolbar"){this.extendToolbar(n)}return n}},{key:"buildButtons",value:function e(t,r){t.forEach(function(e){var t=e.getAttribute("class")||"";t.split(/\s+/).forEach(function(t){if(!t.startsWith("ql-"))return;t=t.slice("ql-".length);if(r[t]==null)return;if(t==="direction"){e.innerHTML=r[t][""]+r[t]["rtl"]}else if(typeof r[t]==="string"){e.innerHTML=r[t]}else{var n=e.value||"";if(n!=null&&r[t][n]){e.innerHTML=r[t][n]}}})})}},{key:"buildPickers",value:function e(t,r){var n=this;this.pickers=t.map(function(e){if(e.classList.contains("ql-align")){if(e.querySelector("option")==null){M(e,j)}return new g.default(e,r.align)}else if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var t=e.classList.contains("ql-background")?"background":"color";if(e.querySelector("option")==null){M(e,A,t==="background"?"#ffffff":"#000000")}return new y.default(e,r[t])}else{if(e.querySelector("option")==null){if(e.classList.contains("ql-font")){M(e,q)}else if(e.classList.contains("ql-header")){M(e,T)}else if(e.classList.contains("ql-size")){M(e,P)}}return new _.default(e)}});var i=function e(){n.pickers.forEach(function(e){e.update()})};this.quill.on(f.default.events.EDITOR_CHANGE,i)}}]);return t}(p.default);S.DEFAULTS=(0,a.default)(true,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function e(){this.quill.theme.tooltip.edit("formula")},image:function e(){var t=this;var r=this.container.querySelector("input.ql-image[type=file]");if(r==null){r=document.createElement("input");r.setAttribute("type","file");r.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon");r.classList.add("ql-image");r.addEventListener("change",function(){if(r.files!=null&&r.files[0]!=null){var e=new FileReader;e.onload=function(e){var n=t.quill.getSelection(true);t.quill.updateContents((new u.default).retain(n.index).delete(n.length).insert({image:e.target.result}),f.default.sources.USER);t.quill.setSelection(n.index+1,f.default.sources.SILENT);r.value=""};e.readAsDataURL(r.files[0])}});this.container.appendChild(r)}r.click()},video:function e(){this.quill.theme.tooltip.edit("video")}}}}});var C=function(e){N(t,e);function t(e,r){x(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));n.textbox=n.root.querySelector('input[type="text"]');n.listen();return n}n(t,[{key:"listen",value:function e(){var t=this;this.textbox.addEventListener("keydown",function(e){if(d.default.match(e,"enter")){t.save();e.preventDefault()}else if(d.default.match(e,"escape")){t.cancel();e.preventDefault()}})}},{key:"cancel",value:function e(){this.hide()}},{key:"edit",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"link";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");if(r!=null){this.textbox.value=r}else if(t!==this.root.getAttribute("data-mode")){this.textbox.value=""}this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||"");this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function e(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function e(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var r=this.quill.root.scrollTop;if(this.linkRange){this.quill.formatText(this.linkRange,"link",t,f.default.sources.USER);delete this.linkRange}else{this.restoreFocus();this.quill.format("link",t,f.default.sources.USER)}this.quill.root.scrollTop=r;break}case"video":{t=L(t)}case"formula":{if(!t)break;var n=this.quill.getSelection(true);if(n!=null){var i=n.index+n.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),t,f.default.sources.USER);if(this.root.getAttribute("data-mode")==="formula"){this.quill.insertText(i+1," ",f.default.sources.USER)}this.quill.setSelection(i+2,f.default.sources.USER)}break}default:}this.textbox.value="";this.hide()}}]);return t}(w.default);function L(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(t){return(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0"}if(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)){return(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/"}return e}function M(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;t.forEach(function(t){var n=document.createElement("option");if(t===r){n.setAttribute("selected","selected")}else{n.setAttribute("value",t)}e.appendChild(n)})}t.BaseTooltip=C;t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(){this.head=this.tail=null;this.length=0}e.prototype.append=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}this.insertBefore(e[0],null);if(e.length>1){this.append.apply(this,e.slice(1))}};e.prototype.contains=function(e){var t,r=this.iterator();while(t=r()){if(t===e)return true}return false};e.prototype.insertBefore=function(e,t){if(!e)return;e.next=t;if(t!=null){e.prev=t.prev;if(t.prev!=null){t.prev.next=e}t.prev=e;if(t===this.head){this.head=e}}else if(this.tail!=null){this.tail.next=e;e.prev=this.tail;this.tail=e}else{e.prev=null;this.head=this.tail=e}this.length+=1};e.prototype.offset=function(e){var t=0,r=this.head;while(r!=null){if(r===e)return t;t+=r.length();r=r.next}return-1};e.prototype.remove=function(e){if(!this.contains(e))return;if(e.prev!=null)e.prev.next=e.next;if(e.next!=null)e.next.prev=e.prev;if(e===this.head)this.head=e.next;if(e===this.tail)this.tail=e.prev;this.length-=1};e.prototype.iterator=function(e){if(e===void 0){e=this.head}return function(){var t=e;if(e!=null)e=e.next;return t}};e.prototype.find=function(e,t){if(t===void 0){t=false}var r,n=this.iterator();while(r=n()){var i=r.length();if(e<i||t&&e===i&&(r.next==null||r.next.length()!==0)){return[r,e]}e-=i}return[null,0]};e.prototype.forEach=function(e){var t,r=this.iterator();while(t=r()){e(t)}};e.prototype.forEachAt=function(e,t,r){if(t<=0)return;var n=this.find(e),i=n[0],o=n[1];var a,l=e-o,u=this.iterator(i);while((a=u())&&l<e+t){var s=a.length();if(e>l){r(a,e-l,Math.min(t,l+s-e))}else{r(a,0,Math.min(s,e+t-l))}l+=s}};e.prototype.map=function(e){return this.reduce(function(t,r){t.push(e(r));return t},[])};e.prototype.reduce=function(e,t){var r,n=this.iterator();while(r=n()){t=e(t,r)}return t};return e}();t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(17);var o=r(1);var a={attributes:true,characterData:true,characterDataOldValue:true,childList:true,subtree:true};var l=100;var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.scroll=r;r.observer=new MutationObserver(function(e){r.update(e)});r.observer.observe(r.domNode,a);r.attach();return r}t.prototype.detach=function(){e.prototype.detach.call(this);this.observer.disconnect()};t.prototype.deleteAt=function(t,r){this.update();if(t===0&&r===this.length()){this.children.forEach(function(e){e.remove()})}else{e.prototype.deleteAt.call(this,t,r)}};t.prototype.formatAt=function(t,r,n,i){this.update();e.prototype.formatAt.call(this,t,r,n,i)};t.prototype.insertAt=function(t,r,n){this.update();e.prototype.insertAt.call(this,t,r,n)};t.prototype.optimize=function(t,r){var n=this;if(t===void 0){t=[]}if(r===void 0){r={}}e.prototype.optimize.call(this,r);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)t.push(a.pop());var u=function(e,t){if(t===void 0){t=true}if(e==null||e===n)return;if(e.domNode.parentNode==null)return;if(e.domNode[o.DATA_KEY].mutations==null){e.domNode[o.DATA_KEY].mutations=[]}if(t)u(e.parent)};var s=function(e){if(e.domNode[o.DATA_KEY]==null||e.domNode[o.DATA_KEY].mutations==null){return}if(e instanceof i.default){e.children.forEach(s)}e.optimize(r)};var f=t;for(var c=0;f.length>0;c+=1){if(c>=l){throw new Error("[Parchment] Maximum optimize iterations reached")}f.forEach(function(e){var t=o.find(e.target,true);if(t==null)return;if(t.domNode===e.target){if(e.type==="childList"){u(o.find(e.previousSibling,false));[].forEach.call(e.addedNodes,function(e){var t=o.find(e,false);u(t,false);if(t instanceof i.default){t.children.forEach(function(e){u(e,false)})}})}else if(e.type==="attributes"){u(t.prev)}}u(t)});this.children.forEach(s);f=[].slice.call(this.observer.takeRecords());a=f.slice();while(a.length>0)t.push(a.pop())}};t.prototype.update=function(t,r){var n=this;if(r===void 0){r={}}t=t||this.observer.takeRecords();t.map(function(e){var t=o.find(e.target,true);if(t==null)return null;if(t.domNode[o.DATA_KEY].mutations==null){t.domNode[o.DATA_KEY].mutations=[e];return t}else{t.domNode[o.DATA_KEY].mutations.push(e);return null}}).forEach(function(e){if(e==null||e===n||e.domNode[o.DATA_KEY]==null)return;e.update(e.domNode[o.DATA_KEY].mutations||[],r)});if(this.domNode[o.DATA_KEY].mutations!=null){e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,r)}this.optimize(t,r)};t.blotName="scroll";t.defaultChild="block";t.scope=o.Scope.BLOCK_BLOT;t.tagName="DIV";return t}(i.default);t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(18);var o=r(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return false;for(var r in e){if(e[r]!==t[r])return false}return true}var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.formats=function(r){if(r.tagName===t.tagName)return undefined;return e.formats.call(this,r)};t.prototype.format=function(r,n){var o=this;if(r===this.statics.blotName&&!n){this.children.forEach(function(e){if(!(e instanceof i.default)){e=e.wrap(t.blotName,true)}o.attributes.copy(e)});this.unwrap()}else{e.prototype.format.call(this,r,n)}};t.prototype.formatAt=function(t,r,n,i){if(this.formats()[n]!=null||o.query(n,o.Scope.ATTRIBUTE)){var a=this.isolate(t,r);a.format(n,i)}else{e.prototype.formatAt.call(this,t,r,n,i)}};t.prototype.optimize=function(r){e.prototype.optimize.call(this,r);var n=this.formats();if(Object.keys(n).length===0){return this.unwrap()}var i=this.next;if(i instanceof t&&i.prev===this&&a(n,i.formats())){i.moveChildren(this);i.remove()}};t.blotName="inline";t.scope=o.Scope.INLINE_BLOT;t.tagName="SPAN";return t}(i.default);t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(18);var o=r(1);var a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.formats=function(r){var n=o.query(t.blotName).tagName;if(r.tagName===n)return undefined;return e.formats.call(this,r)};t.prototype.format=function(r,n){if(o.query(r,o.Scope.BLOCK)==null){return}else if(r===this.statics.blotName&&!n){this.replaceWith(t.blotName)}else{e.prototype.format.call(this,r,n)}};t.prototype.formatAt=function(t,r,n,i){if(o.query(n,o.Scope.BLOCK)!=null){this.format(n,i)}else{e.prototype.formatAt.call(this,t,r,n,i)}};t.prototype.insertAt=function(t,r,n){if(n==null||o.query(r,o.Scope.INLINE)!=null){e.prototype.insertAt.call(this,t,r,n)}else{var i=this.split(t);var a=o.create(r,n);i.parent.insertBefore(a,i)}};t.prototype.update=function(t,r){if(navigator.userAgent.match(/Trident/)){this.build()}else{e.prototype.update.call(this,t,r)}};t.blotName="block";t.scope=o.Scope.BLOCK_BLOT;t.tagName="P";return t}(i.default);t.default=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(19);var o=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.formats=function(e){return undefined};t.prototype.format=function(t,r){e.prototype.formatAt.call(this,0,this.length(),t,r)};t.prototype.formatAt=function(t,r,n,i){if(t===0&&r===this.length()){this.format(n,i)}else{e.prototype.formatAt.call(this,t,r,n,i)}};t.prototype.formats=function(){return this.statics.formats(this.domNode)};return t}(i.default);t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(19);var o=r(1);var a=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.text=r.statics.value(r.domNode);return r}t.create=function(e){return document.createTextNode(e)};t.value=function(e){var t=e.data;if(t["normalize"])t=t["normalize"]();return t};t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)};t.prototype.index=function(e,t){if(this.domNode===e){return t}return-1};t.prototype.insertAt=function(t,r,n){if(n==null){this.text=this.text.slice(0,t)+r+this.text.slice(t);this.domNode.data=this.text}else{e.prototype.insertAt.call(this,t,r,n)}};t.prototype.length=function(){return this.text.length};t.prototype.optimize=function(r){e.prototype.optimize.call(this,r);this.text=this.statics.value(this.domNode);if(this.text.length===0){this.remove()}else if(this.next instanceof t&&this.next.prev===this){this.insertAt(this.length(),this.next.value());this.next.remove()}};t.prototype.position=function(e,t){if(t===void 0){t=false}return[this.domNode,e]};t.prototype.split=function(e,t){if(t===void 0){t=false}if(!t){if(e===0)return this;if(e===this.length())return this.next}var r=o.create(this.domNode.splitText(e));this.parent.insertBefore(r,this.next);this.text=this.statics.value(this.domNode);return r};t.prototype.update=function(e,t){var r=this;if(e.some(function(e){return e.type==="characterData"&&e.target===r.domNode})){this.text=this.statics.value(this.domNode)}};t.prototype.value=function(){return this.text};t.blotName="text";t.scope=o.Scope.INLINE_BLOT;return t}(i.default);t.default=a},function(e,t,r){"use strict";var n=document.createElement("div");n.classList.toggle("test-class",false);if(n.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){if(arguments.length>1&&!this.contains(e)===!t){return t}else{return i.call(this,e)}}}if(!String.prototype.startsWith){String.prototype.startsWith=function(e,t){t=t||0;return this.substr(t,e.length)===e}}if(!String.prototype.endsWith){String.prototype.endsWith=function(e,t){var r=this.toString();if(typeof t!=="number"||!isFinite(t)||Math.floor(t)!==t||t>r.length){t=r.length}t-=e.length;var n=r.indexOf(e,t);return n!==-1&&n===t}}if(!Array.prototype.find){Object.defineProperty(Array.prototype,"find",{value:function e(t){if(this===null){throw new TypeError("Array.prototype.find called on null or undefined")}if(typeof t!=="function"){throw new TypeError("predicate must be a function")}var r=Object(this);var n=r.length>>>0;var i=arguments[1];var e;for(var o=0;o<n;o++){e=r[o];if(t.call(i,e,o,r)){return e}}return undefined}})}document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",false,false);document.execCommand("autoUrlDetect",false,false)})},function(e,t){
/**
* This library modifies the diff-patch-match library by Neil Fraser
* by removing the patch and match functionality and certain advanced
* options in the diff function. The original license is as follows:
*
* ===
*
* Diff Match and Patch
*
* Copyright 2006 Google Inc.
* http://code.google.com/p/google-diff-match-patch/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var r=-1;var n=1;var i=0;function o(e,t,r){if(e==t){if(e){return[[i,e]]}return[]}if(r<0||e.length<r){r=null}var n=s(e,t);var o=e.substring(0,n);e=e.substring(n);t=t.substring(n);n=f(e,t);var l=e.substring(e.length-n);e=e.substring(0,e.length-n);t=t.substring(0,t.length-n);var u=a(e,t);if(o){u.unshift([i,o])}if(l){u.push([i,l])}d(u);if(r!=null){u=v(u,r)}u=y(u);return u}function a(e,t){var a;if(!e){return[[n,t]]}if(!t){return[[r,e]]}var u=e.length>t.length?e:t;var s=e.length>t.length?t:e;var f=u.indexOf(s);if(f!=-1){a=[[n,u.substring(0,f)],[i,s],[n,u.substring(f+s.length)]];if(e.length>t.length){a[0][0]=a[2][0]=r}return a}if(s.length==1){return[[r,e],[n,t]]}var d=c(e,t);if(d){var h=d[0];var p=d[1];var v=d[2];var y=d[3];var b=d[4];var g=o(h,v);var m=o(p,y);return g.concat([[i,b]],m)}return l(e,t)}function l(e,t){var i=e.length;var o=t.length;var a=Math.ceil((i+o)/2);var l=a;var s=2*a;var f=new Array(s);var c=new Array(s);for(var d=0;d<s;d++){f[d]=-1;c[d]=-1}f[l+1]=0;c[l+1]=0;var h=i-o;var p=h%2!=0;var v=0;var y=0;var b=0;var g=0;for(var m=0;m<a;m++){for(var _=-m+v;_<=m-y;_+=2){var O=l+_;var w;if(_==-m||_!=m&&f[O-1]<f[O+1]){w=f[O+1]}else{w=f[O-1]+1}var k=w-_;while(w<i&&k<o&&e.charAt(w)==t.charAt(k)){w++;k++}f[O]=w;if(w>i){y+=2}else if(k>o){v+=2}else if(p){var x=l+h-_;if(x>=0&&x<s&&c[x]!=-1){var E=i-c[x];if(w>=E){return u(e,t,w,k)}}}}for(var N=-m+b;N<=m-g;N+=2){var x=l+N;var E;if(N==-m||N!=m&&c[x-1]<c[x+1]){E=c[x+1]}else{E=c[x-1]+1}var j=E-N;while(E<i&&j<o&&e.charAt(i-E-1)==t.charAt(o-j-1)){E++;j++}c[x]=E;if(E>i){g+=2}else if(j>o){b+=2}else if(!p){var O=l+h-N;if(O>=0&&O<s&&f[O]!=-1){var w=f[O];var k=l+w-O;E=i-E;if(w>=E){return u(e,t,w,k)}}}}}return[[r,e],[n,t]]}function u(e,t,r,n){var i=e.substring(0,r);var a=t.substring(0,n);var l=e.substring(r);var u=t.substring(n);var s=o(i,a);var f=o(l,u);return s.concat(f)}function s(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0)){return 0}var r=0;var n=Math.min(e.length,t.length);var i=n;var o=0;while(r<i){if(e.substring(o,i)==t.substring(o,i)){r=i;o=r}else{n=i}i=Math.floor((n-r)/2+r)}return i}function f(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1)){return 0}var r=0;var n=Math.min(e.length,t.length);var i=n;var o=0;while(r<i){if(e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)){r=i;o=r}else{n=i}i=Math.floor((n-r)/2+r)}return i}function c(e,t){var r=e.length>t.length?e:t;var n=e.length>t.length?t:e;if(r.length<4||n.length*2<r.length){return null}function i(e,t,r){var n=e.substring(r,r+Math.floor(e.length/4));var i=-1;var o="";var a,l,u,c;while((i=t.indexOf(n,i+1))!=-1){var d=s(e.substring(r),t.substring(i));var h=f(e.substring(0,r),t.substring(0,i));if(o.length<h+d){o=t.substring(i-h,i)+t.substring(i,i+d);a=e.substring(0,r-h);l=e.substring(r+d);u=t.substring(0,i-h);c=t.substring(i+d)}}if(o.length*2>=e.length){return[a,l,u,c,o]}else{return null}}var o=i(r,n,Math.ceil(r.length/4));var a=i(r,n,Math.ceil(r.length/2));var l;if(!o&&!a){return null}else if(!a){l=o}else if(!o){l=a}else{l=o[4].length>a[4].length?o:a}var u,c,d,h;if(e.length>t.length){u=l[0];c=l[1];d=l[2];h=l[3]}else{d=l[0];h=l[1];u=l[2];c=l[3]}var p=l[4];return[u,c,d,h,p]}function d(e){e.push([i,""]);var t=0;var o=0;var a=0;var l="";var u="";var c;while(t<e.length){switch(e[t][0]){case n:a++;u+=e[t][1];t++;break;case r:o++;l+=e[t][1];t++;break;case i:if(o+a>1){if(o!==0&&a!==0){c=s(u,l);if(c!==0){if(t-o-a>0&&e[t-o-a-1][0]==i){e[t-o-a-1][1]+=u.substring(0,c)}else{e.splice(0,0,[i,u.substring(0,c)]);t++}u=u.substring(c);l=l.substring(c)}c=f(u,l);if(c!==0){e[t][1]=u.substring(u.length-c)+e[t][1];u=u.substring(0,u.length-c);l=l.substring(0,l.length-c)}}if(o===0){e.splice(t-a,o+a,[n,u])}else if(a===0){e.splice(t-o,o+a,[r,l])}else{e.splice(t-o-a,o+a,[r,l],[n,u])}t=t-o-a+(o?1:0)+(a?1:0)+1}else if(t!==0&&e[t-1][0]==i){e[t-1][1]+=e[t][1];e.splice(t,1)}else{t++}a=0;o=0;l="";u="";break}}if(e[e.length-1][1]===""){e.pop()}var h=false;t=1;while(t<e.length-1){if(e[t-1][0]==i&&e[t+1][0]==i){if(e[t][1].substring(e[t][1].length-e[t-1][1].length)==e[t-1][1]){e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length);e[t+1][1]=e[t-1][1]+e[t+1][1];e.splice(t-1,1);h=true}else if(e[t][1].substring(0,e[t+1][1].length)==e[t+1][1]){e[t-1][1]+=e[t+1][1];e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1];e.splice(t+1,1);h=true}}t++}if(h){d(e)}}var h=o;h.INSERT=n;h.DELETE=r;h.EQUAL=i;e.exports=h;function p(e,t){if(t===0){return[i,e]}for(var n=0,o=0;o<e.length;o++){var a=e[o];if(a[0]===r||a[0]===i){var l=n+a[1].length;if(t===l){return[o+1,e]}else if(t<l){e=e.slice();var u=t-n;var s=[a[0],a[1].slice(0,u)];var f=[a[0],a[1].slice(u)];e.splice(o,1,s,f);return[o+1,e]}else{n=l}}}throw new Error("cursor_pos is out of bounds!")}function v(e,t){var r=p(e,t);var n=r[1];var o=r[0];var a=n[o];var l=n[o+1];if(a==null){return e}else if(a[0]!==i){return e}else{if(l!=null&&a[1]+l[1]===l[1]+a[1]){n.splice(o,2,l,a);return b(n,o,2)}else if(l!=null&&l[1].indexOf(a[1])===0){n.splice(o,2,[l[0],a[1]],[0,a[1]]);var u=l[1].slice(a[1].length);if(u.length>0){n.splice(o+2,0,[l[0],u])}return b(n,o,3)}else{return e}}}function y(e){var t=false;var o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343};var a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319};for(var l=2;l<e.length;l+=1){if(e[l-2][0]===i&&a(e[l-2][1])&&e[l-1][0]===r&&o(e[l-1][1])&&e[l][0]===n&&o(e[l][1])){t=true;e[l-1][1]=e[l-2][1].slice(-1)+e[l-1][1];e[l][1]=e[l-2][1].slice(-1)+e[l][1];e[l-2][1]=e[l-2][1].slice(0,-1)}}if(!t){return e}var u=[];for(var l=0;l<e.length;l+=1){if(e[l][1].length>0){u.push(e[l])}}return u}function b(e,t,r){for(var n=t+r-1;n>=0&&n>=t-1;n--){if(n+1<e.length){var i=e[n];var o=e[n+1];if(i[0]===o[1]){e.splice(n,2,[i[0],i[1]+o[1]])}}}return e}},function(e,t){t=e.exports=typeof Object.keys==="function"?Object.keys:r;t.shim=r;function r(e){var t=[];for(var r in e)t.push(r);return t}},function(e,t){var r=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";t=e.exports=r?n:i;t.supported=n;function n(e){return Object.prototype.toString.call(e)=="[object Arguments]"}t.unsupported=i;function i(e){return e&&typeof e=="object"&&typeof e.length=="number"&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||false}},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function i(){}if(Object.create){i.prototype=Object.create(null);if(!(new i).__proto__)n=false}function o(e,t,r){this.fn=e;this.context=t;this.once=r||false}function a(){this._events=new i;this._eventsCount=0}a.prototype.eventNames=function e(){var t=[],i,o;if(this._eventsCount===0)return t;for(o in i=this._events){if(r.call(i,o))t.push(n?o.slice(1):o)}if(Object.getOwnPropertySymbols){return t.concat(Object.getOwnPropertySymbols(i))}return t};a.prototype.listeners=function e(t,r){var i=n?n+t:t,o=this._events[i];if(r)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var a=0,l=o.length,u=new Array(l);a<l;a++){u[a]=o[a].fn}return u};a.prototype.emit=function e(t,r,i,o,a,l){var u=n?n+t:t;if(!this._events[u])return false;var s=this._events[u],f=arguments.length,c,d;if(s.fn){if(s.once)this.removeListener(t,s.fn,undefined,true);switch(f){case 1:return s.fn.call(s.context),true;case 2:return s.fn.call(s.context,r),true;case 3:return s.fn.call(s.context,r,i),true;case 4:return s.fn.call(s.context,r,i,o),true;case 5:return s.fn.call(s.context,r,i,o,a),true;case 6:return s.fn.call(s.context,r,i,o,a,l),true}for(d=1,c=new Array(f-1);d<f;d++){c[d-1]=arguments[d]}s.fn.apply(s.context,c)}else{var h=s.length,p;for(d=0;d<h;d++){if(s[d].once)this.removeListener(t,s[d].fn,undefined,true);switch(f){case 1:s[d].fn.call(s[d].context);break;case 2:s[d].fn.call(s[d].context,r);break;case 3:s[d].fn.call(s[d].context,r,i);break;case 4:s[d].fn.call(s[d].context,r,i,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++){c[p-1]=arguments[p]}s[d].fn.apply(s[d].context,c)}}}return true};a.prototype.on=function e(t,r,i){var a=new o(r,i||this),l=n?n+t:t;if(!this._events[l])this._events[l]=a,this._eventsCount++;else if(!this._events[l].fn)this._events[l].push(a);else this._events[l]=[this._events[l],a];return this};a.prototype.once=function e(t,r,i){var a=new o(r,i||this,true),l=n?n+t:t;if(!this._events[l])this._events[l]=a,this._eventsCount++;else if(!this._events[l].fn)this._events[l].push(a);else this._events[l]=[this._events[l],a];return this};a.prototype.removeListener=function e(t,r,o,a){var l=n?n+t:t;if(!this._events[l])return this;if(!r){if(--this._eventsCount===0)this._events=new i;else delete this._events[l];return this}var u=this._events[l];if(u.fn){if(u.fn===r&&(!a||u.once)&&(!o||u.context===o)){if(--this._eventsCount===0)this._events=new i;else delete this._events[l]}}else{for(var s=0,f=[],c=u.length;s<c;s++){if(u[s].fn!==r||a&&!u[s].once||o&&u[s].context!==o){f.push(u[s])}}if(f.length)this._events[l]=f.length===1?f[0]:f;else if(--this._eventsCount===0)this._events=new i;else delete this._events[l]}return this};a.prototype.removeAllListeners=function e(t){var r;if(t){r=n?n+t:t;if(this._events[r]){if(--this._eventsCount===0)this._events=new i;else delete this._events[r]}}else{this._events=new i;this._eventsCount=0}return this};a.prototype.off=a.prototype.removeListener;a.prototype.addListener=a.prototype.on;a.prototype.setMaxListeners=function e(){return this};a.prefixed=n;a.EventEmitter=a;if("undefined"!==typeof e){e.exports=a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=undefined;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var a=r(3);var l=N(a);var u=r(2);var s=N(u);var f=r(0);var c=N(f);var d=r(5);var h=N(d);var p=r(10);var v=N(p);var y=r(9);var b=N(y);var g=r(36);var m=r(37);var _=r(13);var O=N(_);var w=r(26);var k=r(38);var x=r(39);var E=r(40);function N(e){return e&&e.__esModule?e:{default:e}}function j(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function A(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function q(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function T(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var P=(0,v.default)("quill:clipboard");var S="__ql-matcher";var C=[[Node.TEXT_NODE,$],[Node.TEXT_NODE,G],["br",V],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,X],["li",W],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",Z]];var L=[g.AlignAttribute,k.DirectionAttribute].reduce(function(e,t){e[t.keyName]=t;return e},{});var M=[g.AlignStyle,m.BackgroundStyle,w.ColorStyle,k.DirectionStyle,x.FontStyle,E.SizeStyle].reduce(function(e,t){e[t.keyName]=t;return e},{});var R=function(e){T(t,e);function t(e,r){A(this,t);var n=q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));n.quill.root.addEventListener("paste",n.onPaste.bind(n));n.container=n.quill.addContainer("ql-clipboard");n.container.setAttribute("contenteditable",true);n.container.setAttribute("tabindex",-1);n.matchers=[];C.concat(n.options.matchers).forEach(function(e){var t=i(e,2),o=t[0],a=t[1];if(!r.matchVisual&&a===Y)return;n.addMatcher(o,a)});return n}o(t,[{key:"addMatcher",value:function e(t,r){this.matchers.push([t,r])}},{key:"convert",value:function e(t){if(typeof t==="string"){this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><");return this.convert()}var r=this.quill.getFormat(this.quill.selection.savedRange.index);if(r[O.default.blotName]){var n=this.container.innerText;this.container.innerHTML="";return(new s.default).insert(n,j({},O.default.blotName,r[O.default.blotName]))}var o=this.prepareMatching(),a=i(o,2),l=a[0],u=a[1];var f=F(this.container,l,u);if(D(f,"\n")&&f.ops[f.ops.length-1].attributes==null){f=f.compose((new s.default).retain(f.length()-1).delete(1))}P.log("convert",this.container.innerHTML,f);this.container.innerHTML="";return f}},{key:"dangerouslyPasteHTML",value:function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:h.default.sources.API;if(typeof t==="string"){this.quill.setContents(this.convert(t),r);this.quill.setSelection(0,h.default.sources.SILENT)}else{var i=this.convert(r);this.quill.updateContents((new s.default).retain(t).concat(i),n);this.quill.setSelection(t+i.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function e(t){var r=this;if(t.defaultPrevented||!this.quill.isEnabled())return;var n=this.quill.getSelection();var i=(new s.default).retain(n.index);var o=this.quill.scrollingContainer.scrollTop;this.container.focus();this.quill.selection.update(h.default.sources.SILENT);setTimeout(function(){i=i.concat(r.convert()).delete(n.length);r.quill.updateContents(i,h.default.sources.USER);r.quill.setSelection(i.length()-n.length,h.default.sources.SILENT);r.quill.scrollingContainer.scrollTop=o;r.quill.focus()},1)}},{key:"prepareMatching",value:function e(){var t=this;var r=[],n=[];this.matchers.forEach(function(e){var o=i(e,2),a=o[0],l=o[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:r.push(l);break;default:[].forEach.call(t.container.querySelectorAll(a),function(e){e[S]=e[S]||[];e[S].push(l)});break}});return[r,n]}}]);return t}(b.default);R.DEFAULTS={matchers:[],matchVisual:true};function I(e,t,r){if((typeof t==="undefined"?"undefined":n(t))==="object"){return Object.keys(t).reduce(function(e,r){return I(e,r,t[r])},e)}else{return e.reduce(function(e,n){if(n.attributes&&n.attributes[t]){return e.push(n)}else{return e.insert(n.insert,(0,l.default)({},j({},t,r),n.attributes))}},new s.default)}}function B(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function D(e,t){var r="";for(var n=e.ops.length-1;n>=0&&r.length<t.length;--n){var i=e.ops[n];if(typeof i.insert!=="string")break;r=i.insert+r}return r.slice(-1*t.length)===t}function U(e){if(e.childNodes.length===0)return false;var t=B(e);return["block","list-item"].indexOf(t.display)>-1}function F(e,t,r){if(e.nodeType===e.TEXT_NODE){return r.reduce(function(t,r){return r(e,t)},new s.default)}else if(e.nodeType===e.ELEMENT_NODE){return[].reduce.call(e.childNodes||[],function(n,i){var o=F(i,t,r);if(i.nodeType===e.ELEMENT_NODE){o=t.reduce(function(e,t){return t(i,e)},o);o=(i[S]||[]).reduce(function(e,t){return t(i,e)},o)}return n.concat(o)},new s.default)}else{return new s.default}}function H(e,t,r){return I(r,e,true)}function K(e,t){var r=c.default.Attributor.Attribute.keys(e);var n=c.default.Attributor.Class.keys(e);var i=c.default.Attributor.Style.keys(e);var o={};r.concat(n).concat(i).forEach(function(t){var r=c.default.query(t,c.default.Scope.ATTRIBUTE);if(r!=null){o[r.attrName]=r.value(e);if(o[r.attrName])return}r=L[t];if(r!=null&&(r.attrName===t||r.keyName===t)){o[r.attrName]=r.value(e)||undefined}r=M[t];if(r!=null&&(r.attrName===t||r.keyName===t)){r=M[t];o[r.attrName]=r.value(e)||undefined}});if(Object.keys(o).length>0){t=I(t,o)}return t}function z(e,t){var r=c.default.query(e);if(r==null)return t;if(r.prototype instanceof c.default.Embed){var n={};var i=r.value(e);if(i!=null){n[r.blotName]=i;t=(new s.default).insert(n,r.formats(e))}}else if(typeof r.formats==="function"){t=I(t,r.blotName,r.formats(e))}return t}function V(e,t){if(!D(t,"\n")){t.insert("\n")}return t}function Z(){return new s.default}function W(e,t){var r=c.default.query(e);if(r==null||r.blotName!=="list-item"||!D(t,"\n")){return t}var n=-1,i=e.parentNode;while(!i.classList.contains("ql-clipboard")){if((c.default.query(i)||{}).blotName==="list"){n+=1}i=i.parentNode}if(n<=0)return t;return t.compose((new s.default).retain(t.length()-1).retain(1,{indent:n}))}function G(e,t){if(!D(t,"\n")){if(U(e)||t.length()>0&&e.nextSibling&&U(e.nextSibling)){t.insert("\n")}}return t}function Y(e,t){if(U(e)&&e.nextElementSibling!=null&&!D(t,"\n\n")){var r=e.offsetHeight+parseFloat(B(e).marginTop)+parseFloat(B(e).marginBottom);if(e.nextElementSibling.offsetTop>e.offsetTop+r*1.5){t.insert("\n")}}return t}function X(e,t){var r={};var n=e.style||{};if(n.fontStyle&&B(e).fontStyle==="italic"){r.italic=true}if(n.fontWeight&&(B(e).fontWeight.startsWith("bold")||parseInt(B(e).fontWeight)>=700)){r.bold=true}if(Object.keys(r).length>0){t=I(t,r)}if(parseFloat(n.textIndent||0)>0){t=(new s.default).insert("\t").concat(t)}return t}function $(e,t){var r=e.data;if(e.parentNode.tagName==="O:P"){return t.insert(r.trim())}if(r.trim().length===0&&e.parentNode.classList.contains("ql-clipboard")){return t}if(!B(e.parentNode).whiteSpace.startsWith("pre")){var n=function e(t,r){r=r.replace(/[^\u00a0]/g,"");return r.length<1&&t?" ":r};r=r.replace(/\r\n/g," ").replace(/\n/g," ");r=r.replace(/\s\s+/g,n.bind(n,true));if(e.previousSibling==null&&U(e.parentNode)||e.previousSibling!=null&&U(e.previousSibling)){r=r.replace(/^\s+/,n.bind(n,false))}if(e.nextSibling==null&&U(e.parentNode)||e.nextSibling!=null&&U(e.nextSibling)){r=r.replace(/\s+$/,n.bind(n,false))}}return t.insert(r)}t.default=R;t.matchAttributor=K;t.matchBlot=z;t.matchNewline=G;t.matchSpacing=Y;t.matchText=$},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(6);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=function(e){f(t,e);function t(){u(this,t);return s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"optimize",value:function e(r){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,r);if(this.domNode.tagName!==this.statics.tagName[0]){this.replaceWith(this.statics.blotName)}}}],[{key:"create",value:function e(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function e(){return true}}]);return t}(a.default);c.blotName="bold";c.tagName=["STRONG","B"];t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addControls=t.default=undefined;var n=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var o=r(2);var a=v(o);var l=r(0);var u=v(l);var s=r(5);var f=v(s);var c=r(10);var d=v(c);var h=r(9);var p=v(h);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function b(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function g(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function m(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=(0,d.default)("quill:toolbar");var O=function(e){m(t,e);function t(e,r){b(this,t);var i=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(Array.isArray(i.options.container)){var o=document.createElement("div");k(o,i.options.container);e.container.parentNode.insertBefore(o,e.container);i.container=o}else if(typeof i.options.container==="string"){i.container=document.querySelector(i.options.container)}else{i.container=i.options.container}if(!(i.container instanceof HTMLElement)){var a;return a=_.error("Container required for toolbar",i.options),g(i,a)}i.container.classList.add("ql-toolbar");i.controls=[];i.handlers={};Object.keys(i.options.handlers).forEach(function(e){i.addHandler(e,i.options.handlers[e])});[].forEach.call(i.container.querySelectorAll("button, select"),function(e){i.attach(e)});i.quill.on(f.default.events.EDITOR_CHANGE,function(e,t){if(e===f.default.events.SELECTION_CHANGE){i.update(t)}});i.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var e=i.quill.selection.getRange(),t=n(e,1),r=t[0];i.update(r)});return i}i(t,[{key:"addHandler",value:function e(t,r){this.handlers[t]=r}},{key:"attach",value:function e(t){var r=this;var i=[].find.call(t.classList,function(e){return e.indexOf("ql-")===0});if(!i)return;i=i.slice("ql-".length);if(t.tagName==="BUTTON"){t.setAttribute("type","button")}if(this.handlers[i]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[i]==null){_.warn("ignoring attaching to disabled format",i,t);return}if(u.default.query(i)==null){_.warn("ignoring attaching to nonexistent format",i,t);return}}var o=t.tagName==="SELECT"?"change":"click";t.addEventListener(o,function(e){var o=void 0;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;var l=t.options[t.selectedIndex];if(l.hasAttribute("selected")){o=false}else{o=l.value||false}}else{if(t.classList.contains("ql-active")){o=false}else{o=t.value||!t.hasAttribute("value")}e.preventDefault()}r.quill.focus();var s=r.quill.selection.getRange(),c=n(s,1),d=c[0];if(r.handlers[i]!=null){r.handlers[i].call(r,o)}else if(u.default.query(i).prototype instanceof u.default.Embed){o=prompt("Enter "+i);if(!o)return;r.quill.updateContents((new a.default).retain(d.index).delete(d.length).insert(y({},i,o)),f.default.sources.USER)}else{r.quill.format(i,o,f.default.sources.USER)}r.update(d)});this.controls.push([i,t])}},{key:"update",value:function e(t){var r=t==null?{}:this.quill.getFormat(t);this.controls.forEach(function(e){var i=n(e,2),o=i[0],a=i[1];if(a.tagName==="SELECT"){var l=void 0;if(t==null){l=null}else if(r[o]==null){l=a.querySelector("option[selected]")}else if(!Array.isArray(r[o])){var u=r[o];if(typeof u==="string"){u=u.replace(/\"/g,'\\"')}l=a.querySelector('option[value="'+u+'"]')}if(l==null){a.value="";a.selectedIndex=-1}else{l.selected=true}}else{if(t==null){a.classList.remove("ql-active")}else if(a.hasAttribute("value")){var s=r[o]===a.getAttribute("value")||r[o]!=null&&r[o].toString()===a.getAttribute("value")||r[o]==null&&!a.getAttribute("value");a.classList.toggle("ql-active",s)}else{a.classList.toggle("ql-active",r[o]!=null)}}})}}]);return t}(p.default);O.DEFAULTS={};function w(e,t,r){var n=document.createElement("button");n.setAttribute("type","button");n.classList.add("ql-"+t);if(r!=null){n.value=r}e.appendChild(n)}function k(e,t){if(!Array.isArray(t[0])){t=[t]}t.forEach(function(t){var r=document.createElement("span");r.classList.add("ql-formats");t.forEach(function(e){if(typeof e==="string"){w(r,e)}else{var t=Object.keys(e)[0];var n=e[t];if(Array.isArray(n)){x(r,t,n)}else{w(r,t,n)}}});e.appendChild(r)})}function x(e,t,r){var n=document.createElement("select");n.classList.add("ql-"+t);r.forEach(function(e){var t=document.createElement("option");if(e!==false){t.setAttribute("value",e)}else{t.setAttribute("selected","selected")}n.appendChild(t)});e.appendChild(n)}O.DEFAULTS={container:null,handlers:{clean:function e(){var t=this;var r=this.quill.getSelection();if(r==null)return;if(r.length==0){var n=this.quill.getFormat();Object.keys(n).forEach(function(e){if(u.default.query(e,u.default.Scope.INLINE)!=null){t.quill.format(e,false)}})}else{this.quill.removeFormat(r,f.default.sources.USER)}},direction:function e(t){var r=this.quill.getFormat()["align"];if(t==="rtl"&&r==null){this.quill.format("align","right",f.default.sources.USER)}else if(!t&&r==="right"){this.quill.format("align",false,f.default.sources.USER)}this.quill.format("direction",t,f.default.sources.USER)},indent:function e(t){var r=this.quill.getSelection();var n=this.quill.getFormat(r);var e=parseInt(n.indent||0);if(t==="+1"||t==="-1"){var i=t==="+1"?1:-1;if(n.direction==="rtl")i*=-1;this.quill.format("indent",e+i,f.default.sources.USER)}},link:function e(t){if(t===true){t=prompt("Enter link URL:")}this.quill.format("link",t,f.default.sources.USER)},list:function e(t){var r=this.quill.getSelection();var n=this.quill.getFormat(r);if(t==="check"){if(n["list"]==="checked"||n["list"]==="unchecked"){this.quill.format("list",false,f.default.sources.USER)}else{this.quill.format("list","unchecked",f.default.sources.USER)}}else{this.quill.format("list",t,f.default.sources.USER)}}}};t.default=O;t.addControls=k},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(28);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=function(e){f(t,e);function t(e,r){u(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.label.innerHTML=r;n.container.classList.add("ql-color-picker");[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")});return n}n(t,[{key:"buildItem",value:function e(r){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,r);n.style.backgroundColor=r.getAttribute("value")||"";return n}},{key:"selectItem",value:function e(r,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,r,n);var o=this.label.querySelector(".ql-color-label");var a=r?r.getAttribute("data-value")||"":"";if(o){if(o.tagName==="line"){o.style.stroke=a}else{o.style.fill=a}}}}]);return t}(a.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(28);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=function(e){f(t,e);function t(e,r){u(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.container.classList.add("ql-icon-picker");[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=r[e.getAttribute("data-value")||""]});n.defaultItem=n.container.querySelector(".ql-selected");n.selectItem(n.defaultItem);return n}n(t,[{key:"selectItem",value:function e(r,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,r,n);r=r||this.defaultItem;this.label.innerHTML=r.innerHTML}}]);return t}(a.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var o=function(){function e(t,r){var n=this;i(this,e);this.quill=t;this.boundsContainer=r||document.body;this.root=t.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;if(this.quill.root===this.quill.scrollingContainer){this.quill.root.addEventListener("scroll",function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})}this.hide()}n(e,[{key:"hide",value:function e(){this.root.classList.add("ql-hidden")}},{key:"position",value:function e(t){var r=t.left+t.width/2-this.root.offsetWidth/2;var n=this.quill.root.offsetWidth-this.root.offsetWidth>t.left?-10:10;var i=t.bottom+this.quill.root.scrollTop;this.root.style.left=r+n+"px";this.root.style.top=i+"px";this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect();var a=this.root.getBoundingClientRect();var l=0;if(a.right>o.right){l=o.right-a.right;this.root.style.left=r+l+"px"}if(a.left<o.left){l=o.left-a.left;this.root.style.left=r+l+"px"}if(a.bottom>o.bottom){var u=a.bottom-a.top;var s=t.bottom-t.top+u;this.root.style.top=i-s+"px";this.root.classList.add("ql-flip")}return l}},{key:"show",value:function e(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);return e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){r.push(l.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"])a["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var a=r(3);var l=b(a);var u=r(8);var s=b(u);var f=r(43);var c=b(f);var d=r(27);var h=b(d);var p=r(15);var v=r(41);var y=b(v);function b(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function m(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function _(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var O=[[{header:["1","2","3",false]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];var w=function(e){_(t,e);function t(e,r){g(this,t);if(r.modules.toolbar!=null&&r.modules.toolbar.container==null){r.modules.toolbar.container=O}var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));n.quill.container.classList.add("ql-snow");return n}o(t,[{key:"extendToolbar",value:function e(t){t.container.classList.add("ql-snow");this.buildButtons([].slice.call(t.container.querySelectorAll("button")),y.default);this.buildPickers([].slice.call(t.container.querySelectorAll("select")),y.default);this.tooltip=new k(this.quill,this.options.bounds);if(t.container.querySelector(".ql-link")){this.quill.keyboard.addBinding({key:"K",shortKey:true},function(e,r){t.handlers["link"].call(t,!r.format.link)})}}}]);return t}(c.default);w.DEFAULTS=(0,l.default)(true,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function e(t){if(t){var r=this.quill.getSelection();if(r==null||r.length==0)return;var n=this.quill.getText(r);if(/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0){n="mailto:"+n}var i=this.quill.theme.tooltip;i.edit("link",n)}else{this.quill.format("link",false)}}}}}});var k=function(e){_(t,e);function t(e,r){g(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));n.preview=n.root.querySelector("a.ql-preview");return n}o(t,[{key:"listen",value:function e(){var r=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(e){if(r.root.classList.contains("ql-editing")){r.save()}else{r.edit("link",r.preview.textContent)}e.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(r.linkRange!=null){var t=r.linkRange;r.restoreFocus();r.quill.formatText(t,"link",false,s.default.sources.USER);delete r.linkRange}e.preventDefault();r.hide()});this.quill.on(s.default.events.SELECTION_CHANGE,function(e,t,i){if(e==null)return;if(e.length===0&&i===s.default.sources.USER){var o=r.quill.scroll.descendant(h.default,e.index),a=n(o,2),l=a[0],u=a[1];if(l!=null){r.linkRange=new p.Range(e.index-u,l.length());var f=h.default.formats(l.domNode);r.preview.textContent=f;r.preview.setAttribute("href",f);r.show();r.position(r.quill.getBounds(r.linkRange));return}}else{delete r.linkRange}r.hide()})}},{key:"show",value:function e(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return t}(f.BaseTooltip);k.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://virtualmin.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");t.default=w},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(29);var i=re(n);var o=r(36);var a=r(38);var l=r(64);var u=r(65);var s=re(u);var f=r(66);var c=re(f);var d=r(67);var h=re(d);var p=r(37);var v=r(26);var y=r(39);var b=r(40);var g=r(56);var m=re(g);var _=r(68);var O=re(_);var w=r(27);var k=re(w);var x=r(69);var E=re(x);var N=r(70);var j=re(N);var A=r(71);var q=re(A);var T=r(72);var P=re(T);var S=r(73);var C=re(S);var L=r(13);var M=re(L);var R=r(74);var I=re(R);var B=r(75);var D=re(B);var U=r(57);var F=re(U);var H=r(41);var K=re(H);var z=r(28);var V=re(z);var Z=r(59);var W=re(Z);var G=r(60);var Y=re(G);var X=r(61);var $=re(X);var Q=r(108);var J=re(Q);var ee=r(62);var te=re(ee);function re(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":y.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":y.FontStyle,"attributors/style/size":b.SizeStyle},true);i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":l.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":y.FontClass,"formats/size":b.SizeClass,"formats/blockquote":s.default,"formats/code-block":M.default,"formats/header":c.default,"formats/list":h.default,"formats/bold":m.default,"formats/code":L.Code,"formats/italic":O.default,"formats/link":k.default,"formats/script":E.default,"formats/strike":j.default,"formats/underline":q.default,"formats/image":P.default,"formats/video":C.default,"formats/list/item":d.ListItem,"modules/formula":I.default,"modules/syntax":D.default,"modules/toolbar":F.default,"themes/bubble":J.default,"themes/snow":te.default,"ui/icons":K.default,"ui/picker":V.default,"ui/icon-picker":Y.default,"ui/color-picker":W.default,"ui/tooltip":$.default},true);t.default=i.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IndentClass=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(0);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=function(e){f(t,e);function t(){u(this,t);return s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"add",value:function e(r,n){if(n==="+1"||n==="-1"){var o=this.value(r)||0;n=n==="+1"?o+1:o-1}if(n===0){this.remove(r);return true}else{return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,r,n)}}},{key:"canAdd",value:function e(r,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,r,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,r,parseInt(n))}},{key:"value",value:function e(r){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,r))||undefined}}]);return t}(a.default.Attributor.Class);var d=new c("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(4);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var s=function(e){u(t,e);function t(){a(this,t);return l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(i.default);s.blotName="blockquote";s.tagName="blockquote";t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=r(4);var o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function u(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){s(t,e);function t(){l(this,t);return u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,null,[{key:"formats",value:function e(t){return this.tagName.indexOf(t.tagName)+1}}]);return t}(o.default);f.blotName="header";f.tagName=["H1","H2","H3","H4","H5","H6"];t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.ListItem=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(0);var a=c(o);var l=r(4);var u=c(l);var s=r(25);var f=c(s);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function h(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function v(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var y=function(e){v(t,e);function t(){h(this,t);return p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"format",value:function e(r,n){if(r===b.blotName&&!n){this.replaceWith(a.default.create(this.statics.scope))}else{i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,r,n)}}},{key:"remove",value:function e(){if(this.prev==null&&this.next==null){this.parent.remove()}else{i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}}},{key:"replaceWith",value:function e(r,n){this.parent.isolate(this.offset(this.parent),this.length());if(r===this.parent.statics.blotName){this.parent.replaceWith(r,n);return this}else{this.parent.unwrap();return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,r,n)}}}],[{key:"formats",value:function e(r){return r.tagName===this.tagName?undefined:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,r)}}]);return t}(u.default);y.blotName="list-item";y.tagName="LI";var b=function(e){v(t,e);n(t,null,[{key:"create",value:function e(r){var n=r==="ordered"?"OL":"UL";var o=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);if(r==="checked"||r==="unchecked"){o.setAttribute("data-checked",r==="checked")}return o}},{key:"formats",value:function e(t){if(t.tagName==="OL")return"ordered";if(t.tagName==="UL"){if(t.hasAttribute("data-checked")){return t.getAttribute("data-checked")==="true"?"checked":"unchecked"}else{return"bullet"}}return undefined}}]);function t(e){h(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));var n=function t(n){if(n.target.parentNode!==e)return;var i=r.statics.formats(e);var o=a.default.find(n.target);if(i==="checked"){o.format("list","unchecked")}else if(i==="unchecked"){o.format("list","checked")}};e.addEventListener("touchstart",n);e.addEventListener("mousedown",n);return r}n(t,[{key:"format",value:function e(t,r){if(this.children.length>0){this.children.tail.format(t,r)}}},{key:"formats",value:function e(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function e(r,n){if(r instanceof y){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,r,n)}else{var o=n==null?this.length():n.offset(this);var a=this.split(o);a.parent.insertBefore(r,a)}}},{key:"optimize",value:function e(r){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,r);var n=this.next;if(n!=null&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")){n.moveChildren(this);n.remove()}}},{key:"replace",value:function e(r){if(r.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);r.moveChildren(n);this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,r)}}]);return t}(f.default);b.blotName="list";b.scope=a.default.Scope.BLOCK_BLOT;b.tagName=["OL","UL"];b.defaultChild="list-item";b.allowedChildren=[y];t.ListItem=y;t.default=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(56);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var s=function(e){u(t,e);function t(){a(this,t);return l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(i.default);s.blotName="italic";s.tagName=["EM","I"];t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(6);var a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=function(e){f(t,e);function t(){u(this,t);return s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,null,[{key:"create",value:function e(r){if(r==="super"){return document.createElement("sup")}else if(r==="sub"){return document.createElement("sub")}else{return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,r)}}},{key:"formats",value:function e(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super";return undefined}}]);return t}(a.default);c.blotName="script";c.tagName=["SUB","SUP"];t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(6);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var s=function(e){u(t,e);function t(){a(this,t);return l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(i.default);s.blotName="strike";s.tagName="S";t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(6);var i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var s=function(e){u(t,e);function t(){a(this,t);return l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(i.default);s.blotName="underline";s.tagName="U";t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(0);var a=u(o);var l=r(27);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function f(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=["alt","height","width"];var h=function(e){c(t,e);function t(){s(this,t);return f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"format",value:function e(r,n){if(d.indexOf(r)>-1){if(n){this.domNode.setAttribute(r,n)}else{this.domNode.removeAttribute(r)}}else{i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,r,n)}}}],[{key:"create",value:function e(r){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,r);if(typeof r==="string"){n.setAttribute("src",this.sanitize(r))}return n}},{key:"formats",value:function e(t){return d.reduce(function(e,r){if(t.hasAttribute(r)){e[r]=t.getAttribute(r)}return e},{})}},{key:"match",value:function e(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function e(t){return(0,l.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function e(t){return t.getAttribute("src")}}]);return t}(a.default.Embed);h.blotName="image";h.tagName="IMG";t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(4);var a=r(27);var l=u(a);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function f(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=["height","width"];var h=function(e){c(t,e);function t(){s(this,t);return f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"format",value:function e(r,n){if(d.indexOf(r)>-1){if(n){this.domNode.setAttribute(r,n)}else{this.domNode.removeAttribute(r)}}else{i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,r,n)}}}],[{key:"create",value:function e(r){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,r);n.setAttribute("frameborder","0");n.setAttribute("allowfullscreen",true);n.setAttribute("src",this.sanitize(r));return n}},{key:"formats",value:function e(t){return d.reduce(function(e,r){if(t.hasAttribute(r)){e[r]=t.getAttribute(r)}return e},{})}},{key:"sanitize",value:function e(t){return l.default.sanitize(t)}},{key:"value",value:function e(t){return t.getAttribute("src")}}]);return t}(o.BlockEmbed);h.blotName="video";h.className="ql-video";h.tagName="IFRAME";t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.FormulaBlot=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(35);var a=c(o);var l=r(5);var u=c(l);var s=r(9);var f=c(s);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function h(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function p(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var v=function(e){p(t,e);function t(){d(this,t);return h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,null,[{key:"create",value:function e(r){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,r);if(typeof r==="string"){window.katex.render(r,n,{throwOnError:false,errorColor:"#f00"});n.setAttribute("data-value",r)}return n}},{key:"value",value:function e(t){return t.getAttribute("data-value")}}]);return t}(a.default);v.blotName="formula";v.className="ql-formula";v.tagName="SPAN";var y=function(e){p(t,e);n(t,null,[{key:"register",value:function e(){u.default.register(v,true)}}]);function t(){d(this,t);var e=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(window.katex==null){throw new Error("Formula module requires KaTeX.")}return e}return t}(f.default);t.FormulaBlot=v;t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.CodeToken=t.CodeBlock=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var o=r(0);var a=h(o);var l=r(5);var u=h(l);var s=r(9);var f=h(s);var c=r(13);var d=h(c);function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function v(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function y(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=function(e){y(t,e);function t(){p(this,t);return v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}n(t,[{key:"replaceWith",value:function e(r){this.domNode.textContent=this.domNode.textContent;this.attach();i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,r)}},{key:"highlight",value:function e(t){var r=this.domNode.textContent;if(this.cachedText!==r){if(r.trim().length>0||this.cachedText==null){this.domNode.innerHTML=t(r);this.domNode.normalize();this.attach()}this.cachedText=r}}}]);return t}(d.default);b.className="ql-syntax";var g=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE});var m=function(e){y(t,e);n(t,null,[{key:"register",value:function e(){u.default.register(g,true);u.default.register(b,true)}}]);function t(e,r){p(this,t);var n=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(typeof n.options.highlight!=="function"){throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.")}var i=null;n.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(i);i=setTimeout(function(){n.highlight();i=null},n.options.interval)});n.highlight();return n}n(t,[{key:"highlight",value:function e(){var t=this;if(this.quill.selection.composing)return;this.quill.update(u.default.sources.USER);var r=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(e){e.highlight(t.options.highlight)});this.quill.update(u.default.sources.SILENT);if(r!=null){this.quill.setSelection(r,u.default.sources.SILENT)}}}]);return t}(f.default);m.DEFAULTS={highlight:function(){if(window.hljs==null)return null;return function(e){var t=window.hljs.highlightAuto(e);return t.value}}(),interval:1e3};t.CodeBlock=b;t.CodeToken=g;t.default=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.BubbleTooltip=undefined;var n=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var o=Object.getPrototypeOf(t);if(o===null){return undefined}else{return e(o,r,n)}}else if("value"in i){return i.value}else{var a=i.get;if(a===undefined){return undefined}return a.call(n)}};var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var o=r(3);var a=p(o);var l=r(8);var u=p(l);var s=r(43);var f=p(s);var c=r(15);var d=r(41);var h=p(d);function p(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function b(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];var m=function(e){b(t,e);function t(e,r){v(this,t);if(r.modules.toolbar!=null&&r.modules.toolbar.container==null){r.modules.toolbar.container=g}var n=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));n.quill.container.classList.add("ql-bubble");return n}i(t,[{key:"extendToolbar",value:function e(t){this.tooltip=new _(this.quill,this.options.bounds);this.tooltip.root.appendChild(t.container);this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default);this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default)}}]);return t}(f.default);m.DEFAULTS=(0,a.default)(true,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function e(t){if(!t){this.quill.format("link",false)}else{this.quill.theme.tooltip.edit()}}}}}});var _=function(e){b(t,e);function t(e,r){v(this,t);var n=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));n.quill.on(u.default.events.EDITOR_CHANGE,function(e,t,r,i){if(e!==u.default.events.SELECTION_CHANGE)return;if(t!=null&&t.length>0&&i===u.default.sources.USER){n.show();n.root.style.left="0px";n.root.style.width="";n.root.style.width=n.root.offsetWidth+"px";var o=n.quill.getLines(t.index,t.length);if(o.length===1){n.position(n.quill.getBounds(t))}else{var a=o[o.length-1];var l=n.quill.getIndex(a);var s=Math.min(a.length()-1,t.index+t.length-l);var f=n.quill.getBounds(new c.Range(l,s));n.position(f)}}else if(document.activeElement!==n.textbox&&n.quill.hasFocus()){n.hide()}});return n}i(t,[{key:"listen",value:function e(){var r=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){r.root.classList.remove("ql-editing")});this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(r.root.classList.contains("ql-hidden"))return;var e=r.quill.getSelection();if(e!=null){r.position(r.quill.getBounds(e))}},1)})}},{key:"cancel",value:function e(){this.show()}},{key:"position",value:function e(r){var i=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,r);var o=this.root.querySelector(".ql-tooltip-arrow");o.style.marginLeft="";if(i===0)return i;o.style.marginLeft=-1*i-o.offsetWidth/2+"px"}}]);return t}(s.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");t.BubbleTooltip=_;t.default=m},function(e,t,r){e.exports=r(63)}])["default"]});"use strict";function _instanceof(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}(function(){var e={};"use strict";Object.defineProperty(e,"__esModule",{value:true});var t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function r(e,t){if(!_instanceof(e,t)){throw new TypeError("Cannot call a class as a function")}}var n=e.ImageDrop=function(){function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};r(this,e);this.quill=t;this.handleDrop=this.handleDrop.bind(this);this.handlePaste=this.handlePaste.bind(this);this.quill.root.addEventListener("drop",this.handleDrop,false);this.quill.root.addEventListener("paste",this.handlePaste,false)}t(e,[{key:"handleDrop",value:function e(t){t.preventDefault();if(t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length){if(document.caretRangeFromPoint){var r=document.getSelection();var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(r&&n){r.setBaseAndExtent(n.startContainer,n.startOffset,n.startContainer,n.startOffset)}}this.readFiles(t.dataTransfer.files,this.insert.bind(this))}}},{key:"handlePaste",value:function e(t){var r=this;if(t.clipboardData&&t.clipboardData.items&&t.clipboardData.items.length){var n=true;var i=false;var o=undefined;try{for(var a=t.clipboardData.items[Symbol.iterator](),l;!(n=(l=a.next()).done);n=true){var u=l.value;if(u.kind==="file"){t.preventDefault();this.readFiles(t.clipboardData.items,function(e){var t=r.quill.getSelection();r.insert(e);if(t){r.quill.setSelection({index:t.index+2,length:0})}});break}}}catch(e){i=true;o=e}finally{try{if(!n&&a.return!=null){a.return()}}finally{if(i){throw o}}}}}},{key:"insert",value:function e(t){var r=(this.quill.getSelection()||{}).index||this.quill.getLength();this.quill.insertEmbed(r,"image",t,"user")}},{key:"readFiles",value:function e(t,r){[].forEach.call(t,function(e){if(!e.type.match(/^image\/(gif|jpe?g|a?png|svg|webp|bmp|vnd\.microsoft\.icon)/i)){return}var t=new FileReader;t.onload=function(e){r(e.target.result)};var n=e.getAsFile?e.getAsFile():e;if(_instanceof(n,Blob)){t.readAsDataURL(n)}})}}]);return e}();window.Quill.register("modules/imageDrop",e.ImageDrop)})();