PageSourceSearch

https://cdn.archidekt.com/_next/static/chunks/4095.d7e810a0639c375c.js

js archidekt.com collected 2026-09-25 18:53:52 UTC 154,484 bytes, 7 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4095],{24022:(t,e,i)=>{i.d(e,{A:()=>l});var s=i(76636);let l=function(t,e){return(0,s.A)(t,e)}},24095:(t,e,i)=>{i.d(e,{A:()=>h});var s=i(24022),l=i(76430),r=i(62579),n=i(75038),o=class extends l.Component{constructor(t){super(t),this.editingAreaRef=(0,l.createRef)(),this.containerRef=(0,l.createRef)(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp","useSemanticHTML"],this.state={generation:0},this.selection=null,this.onEditorChange=(t,e,i,s)=>{"text-change"===t?this.onEditorChangeText?.(!1!==this.props.useSemanticHTML?this.editor.getSemanticHTML():this.editor.root.innerHTML,e,s,this.unprivilegedEditor):"selection-change"===t&&this.onEditorChangeSelection?.(e,s,this.unprivilegedEditor)};const e=this.isControlled()?t.value:t.defaultValue;this.value=e??""}validateProps(t){if(l.Children.count(t.children)>1)throw Error("The Quill editing area can only be composed of a single React element.");if(l.Children.count(t.children)){let e=l.Children.only(t.children);if(e?.type==="textarea")throw Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.value===this.lastDeltaChangeSet)throw Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(t,e){if(this.validateProps(t),!this.editor||this.state.generation!==e.generation)return!0;if("value"in t){let e=this.getEditorContents(),i=t.value??"";this.isEqualValue(i,e)||this.setEditorContents(this.editor,i)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),[...this.cleanProps,...this.dirtyProps].some(e=>!(0,s.A)(t[e],this.props[e]))}shouldComponentRegenerate(t){return this.dirtyProps.some(e=>!(0,s.A)(t[e],this.props[e]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(t,e){if(this.editor&&this.shouldComponentRegenerate(t)){let t=this.editor.getContents(),e=this.editor.getSelection();this.regenerationSnapshot={delta:t,selection:e},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.editor&&t.placeholder!==this.props.placeholder&&(this.editor.root.dataset.placeholder=this.props.placeholder||""),this.state.generation!==e.generation){let{delta:t,selection:e}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();let i=this.editor;i.setContents(t),a(()=>this.setEditorSelection(i,e))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){if(!this.editor)return;this.unhookEditor(this.editor);let t=this.props.modules?.toolbar;if(!("object"==typeof t&&t&&"container"in t&&"string"==typeof t.container||"string"==typeof t)){let t=this.containerRef.current?.querySelector(".ql-toolbar");t&&t.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw Error("Accessing non-instantiated editor");return this.editor}createEditor(t,e){let i=new r.Ay(t,e);return null!=e.tabIndex&&this.setEditorTabIndex(i,e.tabIndex),this.hookEditor(i),i}hookEditor(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)}unhookEditor(t){t.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(t){return t&&t.ops}isEqualValue(t,e){return this.isDelta(t)&&this.isDelta(e)?(0,s.A)(t.ops,e.ops):(0,s.A)(t,e)}setEditorContents(t,e){this.value=e;let i=this.getEditorSelection();"string"==typeof e?t.setContents(t.clipboard.convert({html:e})):t.setContents(e),a(()=>this.setEditorSelection(t,i))}setEditorSelection(t,e){if(this.selection=e,e){let i=t.getLength();e.index=Math.max(0,Math.min(e.index,i-1)),e.length=Math.max(0,Math.min(e.length,i-1-e.index)),t.setSelection(e)}}setEditorTabIndex(t,e){t?.scroll?.domNode&&(t.scroll.domNode.tabIndex=e)}setEditorReadOnly(t,e){e?t.disable():t.enable()}makeUnprivilegedEditor(t){return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){let t=this.editingAreaRef.current;if(!t)throw Error("Cannot find element for editing area");if(3===t.nodeType)throw Error("Editing area cannot be a text node");return t}renderEditingArea(){let{children:t,preserveWhitespace:e}=this.props,{generation:i}=this.state;return l.Children.count(t)?l.cloneElement(l.Children.only(t),{key:i,ref:this.editingAreaRef}):e?(0,n.jsx)("pre",{ref:this.editingAreaRef},i):(0,n.jsx)("div",{ref:this.editingAreaRef},i)}render(){return(0,n.jsx)("div",{ref:this.containerRef,id:this.props.id,style:this.props.style,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,children:this.renderEditingArea()},this.state.generation)}onEditorChangeText(t,e,i,s){if(!this.editor)return;let l=this.isDelta(this.value)?s.getContents():!1!==this.props.useSemanticHTML?s.getSemanticHTML():s.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=e,this.value=l,this.props.onChange?.(t,e,i,s))}
1onEditorChangeSelection(t,e,i){if(!this.editor)return;let l=this.getEditorSelection(),r=!l&&t,n=l&&!t;!(0,s.A)(t,l)&&(this.selection=t,this.props.onChangeSelection?.(t,e,i),r?this.props.onFocus?.(t,e,i):n&&this.props.onBlur?.(l,e,i))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}};function a(t){Promise.resolve().then(t)}o.displayName="React Quill",o.Quill=r.Ay,o.defaultProps={theme:"snow",modules:{},readOnly:!1};var h=o},47287:(t,e,i)=>{i.d(e,{A:()=>l,b:()=>s});var s=i(66852);let l=s},62579:(t,e,i)=>{let s;i.d(e,{Ay:()=>sf});var l={};i.r(l),i.d(l,{Attributor:()=>o,AttributorStore:()=>y,BlockBlot:()=>C,ClassAttributor:()=>f,ContainerBlot:()=>R,EmbedBlot:()=>B,InlineBlot:()=>S,LeafBlot:()=>E,ParentBlot:()=>k,Registry:()=>c,Scope:()=>n,ScrollBlot:()=>U,StyleAttributor:()=>g,TextBlot:()=>j});var r=i(10547),n=((s=n||{})[s.TYPE=3]="TYPE",s[s.LEVEL=12]="LEVEL",s[s.ATTRIBUTE=13]="ATTRIBUTE",s[s.BLOT=14]="BLOT",s[s.INLINE=7]="INLINE",s[s.BLOCK=11]="BLOCK",s[s.BLOCK_BLOT=10]="BLOCK_BLOT",s[s.INLINE_BLOT=6]="INLINE_BLOT",s[s.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",s[s.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",s[s.ANY=15]="ANY",s);class o{constructor(t,e,i={}){this.attrName=t,this.keyName=e;const s=n.TYPE&n.ATTRIBUTE;this.scope=null!=i.scope?i.scope&n.LEVEL|s:n.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.whitelist)}static keys(t){return Array.from(t.attributes).map(t=>t.name)}add(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)}canAdd(t,e){return null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1)}remove(t){t.removeAttribute(this.keyName)}value(t){let e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class a extends Error{constructor(t){super(t="[Parchment] "+t),this.message=t,this.name=this.constructor.name}}let h=class t{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(null==t)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let i=null;try{i=t.parentNode}catch{return null}return this.find(i,e)}return null}create(e,i,s){let l=this.query(i);if(null==l)throw new a(`Unable to create ${i} blot`);let r=i instanceof Node||i.nodeType===Node.TEXT_NODE?i:l.create(s),n=new l(e,r,s);return t.blots.set(n.domNode,n),n}find(e,i=!1){return t.find(e,i)}query(t,e=n.ANY){let i;return"string"==typeof t?i=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?i=this.types.text:"number"==typeof t?t&n.LEVEL&n.BLOCK?i=this.types.block:t&n.LEVEL&n.INLINE&&(i=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(t=>!!(i=this.classes[t])),i=i||this.tags[t.tagName]),null==i?null:"scope"in i&&e&n.LEVEL&i.scope&&e&n.TYPE&i.scope?i:null}register(...t){return t.map(t=>{let e="blotName"in t,i="attrName"in t;if(!e&&!i)throw new a("Invalid definition");if(e&&"abstract"===t.blotName)throw new a("Cannot register abstract class");let s=e?t.blotName:i?t.attrName:void 0;return this.types[s]=t,i?"string"==typeof t.keyName&&(this.attributes[t.keyName]=t):e&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(t=>t.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(e=>{(null==this.tags[e]||null==t.className)&&(this.tags[e]=t)}))),t})}};h.blots=new WeakMap;let c=h;function d(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(t=>0===t.indexOf(`${e}-`))}class u extends o{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0)}remove(t){d(t,this.keyName).forEach(e=>{t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")}value(t){let e=(d(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}let f=u;function p(t){let e=t.split("-"),i=e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("");return e[0]+i}class m extends o{static keys(t){return(t.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(t,e){return!!this.canAdd(t,e)&&(t.style[p(this.keyName)]=e,!0)}remove(t){t.style[p(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){let e=t.style[p(this.keyName)];return this.canAdd(t,e)?e:""}}let g=m;class b{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};let t=c.find(this.domNode);
1if(null==t)return;let e=o.keys(this.domNode),i=f.keys(this.domNode),s=g.keys(this.domNode);e.concat(i).concat(s).forEach(e=>{let i=t.scroll.query(e,n.ATTRIBUTE);i instanceof o&&(this.attributes[i.attrName]=i)})}copy(t){Object.keys(this.attributes).forEach(e=>{let i=this.attributes[e].value(this.domNode);t.format(e,i)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}let y=b,v=class{constructor(t,e){this.scroll=t,this.domNode=e,c.blots.set(e,this),this.prev=null,this.next=null}static create(t){let e,i;if(null==this.tagName)throw new a("Blot definition missing tagName");return Array.isArray(this.tagName)?("string"==typeof t?parseInt(i=t.toUpperCase(),10).toString()===i&&(i=parseInt(i,10)):"number"==typeof t&&(i=t),e="number"==typeof i?document.createElement(this.tagName[i-1]):i&&this.tagName.indexOf(i)>-1?document.createElement(i):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){let t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){null!=this.parent&&this.parent.removeChild(this),c.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,i,s){let l=this.isolate(t,e);if(null!=this.scroll.query(i,n.BLOT)&&s)l.wrap(i,s);else if(null!=this.scroll.query(i,n.ATTRIBUTE)){let t=this.scroll.create(this.statics.scope);l.wrap(t),t.format(i,s)}}insertAt(t,e,i){let s=null==i?this.scroll.create("text",e):this.scroll.create(e,i),l=this.split(t);this.parent.insertBefore(s,l||void 0)}isolate(t,e){let i=this.split(t);if(null==i)throw Error("Attempt to isolate at end");return i.split(e),i}length(){return 1}offset(t=this.parent){return null==this.parent||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){!this.statics.requiredContainer||this.parent instanceof this.statics.requiredContainer||this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){let i="string"==typeof t?this.scroll.create(t,e):t;return null!=this.parent&&(this.parent.insertBefore(i,this.next||void 0),this.remove()),i}split(t,e){return 0===t?this:this.next}update(t,e){}wrap(t,e){let i="string"==typeof t?this.scroll.create(t,e):t;if(null!=this.parent&&this.parent.insertBefore(i,this.next||void 0),"function"!=typeof i.appendChild)throw new a(`Cannot wrap ${t}`);return i.appendChild(this),i}};v.blotName="abstract";let N=v,x=class extends N{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let i=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(i+=1),[this.parent.domNode,i]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};x.scope=n.INLINE_BLOT;let E=x;class A{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){let e=t.slice(1);this.append(...e)}}at(t){let e=this.iterator(),i=e();for(;i&&t>0;)t-=1,i=e();return i}contains(t){let e=this.iterator(),i=e();for(;i;){if(i===t)return!0;i=e()}return!1}indexOf(t){let e=this.iterator(),i=e(),s=0;for(;i;){if(i===t)return s;s+=1,i=e()}return -1}insertBefore(t,e){null!=t&&(this.remove(t),t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,i=this.head;for(;null!=i;){if(i===t)return e;e+=i.length(),i=i.next}return -1}remove(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{let e=t;return null!=t&&(t=t.next),e}}find(t,e=!1){let i=this.iterator(),s=i();for(;s;){let l=s.length();if(t<l||e&&t===l&&(null==s.next||0!==s.next.length()))return[s,t];t-=l,s=i()}return[null,0]}forEach(t){let e=this.iterator(),i=e();for(;i;)t(i),i=e()}forEachAt(t,e,i){if(e<=0)return;let[s,l]=this.find(t),r=t-l,n=this.iterator(s),o=n();for(;o&&r<t+e;){let s=o.length();t>r?i(o,t-r,Math.min(e,r+s-t)):i(o,0,Math.min(s,t+e-r)),r+=s,o=n()}}map(t){return this.reduce((e,i)=>(e.push(t(i)),e),[])}reduce(t,e){let i=this.iterator(),s=i();for(;s;)e=t(e,s),s=i();return e}}function q(t,e){let i=e.find(t);if(i)return i;try{return e.create(t)}catch{let i=e.create(n.INLINE);
vendor: 4,398 bytes, line 1
1return Array.from(t.childNodes).forEach(t=>{i.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(i.domNode,t),i.attach(),i}}let w=class t extends N{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(e){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=e,t.uiClass&&this.uiNode.classList.add(t.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new A,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{let e=q(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(t){if(t instanceof a)return;throw t}})}deleteAt(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(t,e,i)=>{t.deleteAt(e,i)})}descendant(e,i=0){let[s,l]=this.children.find(i);return null==e.blotName&&e(s)||null!=e.blotName&&s instanceof e?[s,l]:s instanceof t?s.descendant(e,l):[null,-1]}descendants(e,i=0,s=Number.MAX_VALUE){let l=[],r=s;return this.children.forEachAt(i,s,(i,s,n)=>{(null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e)&&l.push(i),i instanceof t&&(l=l.concat(i.descendants(e,s,r))),r-=n}),l}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(i=>{e||this.statics.allowedChildren.some(t=>i instanceof t)||(i.statics.scope===n.BLOCK_BLOT?(null!=i.next&&this.splitAfter(i),null!=i.prev&&this.splitAfter(i.prev),i.parent.unwrap(),e=!0):i instanceof t?i.unwrap():i.remove())})}formatAt(t,e,i,s){this.children.forEachAt(t,e,(t,e,l)=>{t.formatAt(e,l,i,s)})}insertAt(t,e,i){let[s,l]=this.children.find(t);if(s)s.insertAt(l,e,i);else{let t=null==i?this.scroll.create("text",e):this.scroll.create(e,i);this.appendChild(t)}}insertBefore(t,e){null!=t.parent&&t.parent.children.remove(t);let i=null;this.children.insertBefore(t,e||null),t.parent=this,null!=e&&(i=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==i)&&this.domNode.insertBefore(t.domNode,i),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(i=>{t.insertBefore(i,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,i=!1){let[s,l]=this.children.find(e,i),r=[[this,e]];return s instanceof t?r.concat(s.path(l,i)):(null!=s&&r.push([s,l]),r)}removeChild(t){this.children.remove(t)}replaceWith(e,i){let s="string"==typeof e?this.scroll.create(e,i):e;return s instanceof t&&this.moveChildren(s),super.replaceWith(s)}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}let i=this.clone();return this.parent&&this.parent.insertBefore(i,this.next||void 0),this.children.forEachAt(t,this.length(),(t,s,l)=>{let r=t.split(s,e);null!=r&&i.appendChild(r)}),i}splitAfter(t){let e=this.clone();for(;null!=t.next;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){let i=[],s=[];t.forEach(t=>{t.target===this.domNode&&"childList"===t.type&&(i.push(...t.addedNodes),s.push(...t.removedNodes))}),s.forEach(t=>{if(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;let e=this.scroll.find(t);null!=e&&(null==e.domNode.parentNode||e.domNode.parentNode===this.domNode)&&e.detach()}),i.filter(t=>t.parentNode===this.domNode&&t!==this.uiNode).sort((t,e)=>t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(t=>{let e=null;null!=t.nextSibling&&(e=this.scroll.find(t.nextSibling));let i=q(t,this.scroll);(i.next!==e||null==i.next)&&(null!=i.parent&&i.parent.removeChild(this),this.insertBefore(i,e||void 0))}),this.enforceAllowedChildren()}};w.uiClass="";let k=w,L=class t extends k{static create(t){return super.create(t)}static formats(e,i){let s=i.query(t.blotName);if(null==s||e.tagName!==s.tagName){if("string"==typeof this.tagName)return!0;
1if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new y(this.domNode)}format(e,i){if(e!==this.statics.blotName||i){let t=this.scroll.query(e,n.INLINE);null!=t&&(t instanceof o?this.attributes.attribute(t,i):i&&(e!==this.statics.blotName||this.formats()[e]!==i)&&this.replaceWith(e,i))}else this.children.forEach(e=>{e instanceof t||(e=e.wrap(t.blotName,!0)),this.attributes.copy(e)}),this.unwrap()}formats(){let t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,s){null!=this.formats()[i]||this.scroll.query(i,n.ATTRIBUTE)?this.isolate(t,e).format(i,s):super.formatAt(t,e,i,s)}optimize(e){super.optimize(e);let i=this.formats();if(0===Object.keys(i).length)return this.unwrap();let s=this.next;s instanceof t&&s.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(let i in t)if(t[i]!==e[i])return!1;return!0}(i,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(t,e){let i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}wrap(e,i){let s=super.wrap(e,i);return s instanceof t&&this.attributes.move(s),s}};L.allowedChildren=[L,E],L.blotName="inline",L.scope=n.INLINE_BLOT,L.tagName="SPAN";let S=L,T=class t extends k{static create(t){return super.create(t)}static formats(e,i){let s=i.query(t.blotName);if(null==s||e.tagName!==s.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new y(this.domNode)}format(e,i){let s=this.scroll.query(e,n.BLOCK);null!=s&&(s instanceof o?this.attributes.attribute(s,i):e!==this.statics.blotName||i?i&&(e!==this.statics.blotName||this.formats()[e]!==i)&&this.replaceWith(e,i):this.replaceWith(t.blotName))}formats(){let t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,s){null!=this.scroll.query(i,n.BLOCK)?this.format(i,s):super.formatAt(t,e,i,s)}insertAt(t,e,i){if(null==i||null!=this.scroll.query(e,n.INLINE))super.insertAt(t,e,i);else{let s=this.split(t);if(null!=s){let t=this.scroll.create(e,i);s.parent.insertBefore(t,s)}else throw Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){let i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}};T.blotName="block",T.scope=n.BLOCK_BLOT,T.tagName="P",T.allowedChildren=[S,T,E];let C=T,O=class extends k{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,i,s){super.formatAt(t,e,i,s),this.enforceAllowedChildren()}insertAt(t,e,i){super.insertAt(t,e,i),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};O.blotName="container",O.scope=n.BLOCK_BLOT;let R=O;class I extends E{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,i,s){0===t&&e===this.length()?this.format(i,s):super.formatAt(t,e,i,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}let B=I,M={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},D=class extends k{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(t=>{this.update(t)}),this.observer.observe(this.domNode,M),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){let i=this.registry.find(t,e);return i?i.scroll===this?i:e?this.find(i.scroll.domNode.parentNode,!0):null:null}query(t,e=n.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),0===t&&e===this.length()?this.children.forEac
1h(t=>{t.remove()}):super.deleteAt(t,e)}formatAt(t,e,i,s){this.update(),super.formatAt(t,e,i,s)}insertAt(t,e,i){this.update(),super.insertAt(t,e,i)}optimize(t=[],e={}){super.optimize(e);let i=e.mutationsMap||new WeakMap,s=Array.from(this.observer.takeRecords());for(;s.length>0;)t.push(s.pop());let l=(t,e=!0)=>{null==t||t===this||null!=t.domNode.parentNode&&(i.has(t.domNode)||i.set(t.domNode,[]),e&&l(t.parent))},r=t=>{i.has(t.domNode)&&(t instanceof k&&t.children.forEach(r),i.delete(t.domNode),t.optimize(e))},n=t;for(let e=0;n.length>0;e+=1){if(e>=100)throw Error("[Parchment] Maximum optimize iterations reached");for(n.forEach(t=>{let e=this.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(l(this.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach(t=>{let e=this.find(t,!1);l(e,!1),e instanceof k&&e.children.forEach(t=>{l(t,!1)})})):"attributes"===t.type&&l(e.prev)),l(e))}),this.children.forEach(r),s=(n=Array.from(this.observer.takeRecords())).slice();s.length>0;)t.push(s.pop())}}update(t,e={}){t=t||this.observer.takeRecords();let i=new WeakMap;t.map(t=>{let e=this.find(t.target,!0);return null==e?null:i.has(e.domNode)?(i.get(e.domNode).push(t),null):(i.set(e.domNode,[t]),e)}).forEach(t=>{null!=t&&t!==this&&i.has(t.domNode)&&t.update(i.get(t.domNode)||[],e)}),e.mutationsMap=i,i.has(this.domNode)&&super.update(i.get(this.domNode),e),this.optimize(t,e)}};D.blotName="scroll",D.defaultChild=C,D.allowedChildren=[C,R],D.scope=n.BLOCK_BLOT,D.tagName="DIV";let U=D,_=class t extends E{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,i){null==i?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,i)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}let i=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(i,this.next||void 0),this.text=this.statics.value(this.domNode),i}update(t,e){t.some(t=>"characterData"===t.type&&t.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};_.blotName="text",_.scope=n.INLINE_BLOT;let j=_;var P=i(78420),H=i(40942),F=i(96785),$=i(16875),V=i(10713),z=i(9949),K=i(84153),Z=i(28186),W=i(7231),G=i(22507
1),X=i(7924),Y=i(88769),Q=i(9135),J=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,X.A)(e,(0,G.A)(t)),t=(0,Y.A)(t);return e}:Q.A,tt=i(57764),te=i(47125);let ti=function(t){return(0,te.A)(t,K.A,J)};var ts=i(62486),tl=Object.prototype.hasOwnProperty;let tr=function(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&tl.call(t,"index")&&(i.index=t.index,i.input=t.input),i};var tn=i(26783);let to=function(t,e){var i=e?(0,tn.A)(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)};var ta=/\w*$/;let th=function(t){var e=new t.constructor(t.source,ta.exec(t));return e.lastIndex=t.lastIndex,e};var tc=i(36135),td=tc.A?tc.A.prototype:void 0,tu=td?td.valueOf:void 0,tf=i(26473);let tp=function(t,e,i){var s=t.constructor;switch(e){case"[object ArrayBuffer]":return(0,tn.A)(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return to(t,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,tf.A)(t,i);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return th(t);case"[object Symbol]":return tu?Object(tu.call(t)):{}}};var tm=i(39666),tg=i(51299),tb=i(59732),ty=i(50514),tv=i(9965),tN=i(88551),tx=tN.A&&tN.A.isMap,tE=tx?(0,tv.A)(tx):function(t){return(0,ty.A)(t)&&"[object Map]"==(0,ts.A)(t)},tA=i(70941),tq=tN.A&&tN.A.isSet,tw=tq?(0,tv.A)(tq):function(t){return(0,ty.A)(t)&&"[object Set]"==(0,ts.A)(t)},tk="[object Arguments]",tL="[object Function]",tS="[object Object]",tT={};tT[tk]=tT["[object Array]"]=tT["[object ArrayBuffer]"]=tT["[object DataView]"]=tT["[object Boolean]"]=tT["[object Date]"]=tT["[object Float32Array]"]=tT["[object Float64Array]"]=tT["[object Int8Array]"]=tT["[object Int16Array]"]=tT["[object Int32Array]"]=tT["[object Map]"]=tT["[object Number]"]=tT[tS]=tT["[object RegExp]"]=tT["[object Set]"]=tT["[object String]"]=tT["[object Symbol]"]=tT["[object Uint8Array]"]=tT["[object Uint8ClampedArray]"]=tT["[object Uint16Array]"]=tT["[object Uint32Array]"]=!0,tT["[object Error]"]=tT[tL]=tT["[object WeakMap]"]=!1;let tC=function t(e,i,s,l,r,n){var o,a=1&i,h=2&i,c=4&i;if(s&&(o=r?s(e,l,r,n):s(e)),void 0!==o)return o;if(!(0,tA.A)(e))return e;var d=(0,tg.A)(e);if(d){if(o=tr(e),!a)return(0,W.A)(e,o)}else{var u,f,p,m,g=(0,ts.A)(e),b=g==tL||"[object GeneratorFunction]"==g;if((0,tb.A)(e))return(0,Z.A)(e,a);if(g==tS||g==tk||b&&!r){if(o=h||b?{}:(0,tm.A)(e),!a)return h?(f=(u=o)&&(0,V.A)(e,(0,K.A)(e),u),(0,V.A)(e,J(e),f)):(m=(p=o)&&(0,V.A)(e,(0,z.A)(e),p),(0,V.A)(e,(0,G.A)(e),m))}else{if(!tT[g])return r?e:{};o=tp(e,g,a)}}n||(n=new H.A);var y=n.get(e);if(y)return y;n.set(e,o),tw(e)?e.forEach(function(l){o.add(t(l,i,s,l,e,n))}):tE(e)&&e.forEach(function(l,r){o.set(r,t(l,i,s,r,e,n))});var v=c?h?ti:tt.A:h?K.A:z.A,N=d?void 0:v(e);return(0,F.A)(N||e,function(l,r){N&&(l=e[r=l]),(0,$.A)(o,r,t(l,i,s,r,e,n))}),o},tO=function(t){return tC(t,5)};var tR=i(24022);class tI extends B{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}tI.blotName="break",tI.tagName="BR";class tB extends j{}let tM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function tD(t){return t.replace(/[&<>"']/g,t=>tM[t])}class tU extends S{static allowedChildren=[tU,tI,B,tB];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,e){let i=tU.order.indexOf(t),s=tU.order.indexOf(e);return i>=0||s>=0?i-s:t===e?0:t<e?-1:1}formatAt(t,e,i,s){if(0>tU.compare(this.statics.blotName,i)&&this.scroll.query(i,n.BLOT)){let l=this.isolate(t,e);s&&l.wrap(i,s)}else super.formatAt(t,e,i,s)}optimize(t){if(super.optimize(t),this.parent instanceof tU&&tU.compare(this.statics.blotName,this.parent.statics.blotName)>0){let t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}let t_=tU;class tj extends C{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=tH(this)),this.cache.delta}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}formatAt(t,e,i,s){e<=0||(this.scroll.query(i,n.BLOCK)?t+e===this.length()&&this.format(i,s):super.formatAt(t,Math.min(e,this.length()-t-1),i,s),this.cache={})}insertAt(t,e,i){if(null!=i){super.insertAt(t,e,i),this.cache={};return}if(0===e.length)return;let s=e.split("\n"),l=s.shift();l.length>0&&(t<this.length()-1||null==this.children.tail?super.insertAt(Math.min(t,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});let r=this;s.reduce((t,e)=>((r=r.split(t,!0)).insertAt(0,e),e.length),t+l.length)}insertBefore(t,e){let{head:i}=this.children;super.insertBefore(t,e),i instanceof tI&&i.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(t,e){super.moveChildren(t,e),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&(0===t||t>=this.length()-1)){let e=this.clone();return 0===t?(this.parent.insertBefore(e,this),this):(this.parent.insertBefore(e,this.next),e)}let i=super.split(t,e);return this.cache={},i}}tj.blotName="block",tj.tagName="P",tj.defaultChild=tI,tj.allowedChildren=[tI,t_,B,tB];class tP extends B{attach(){super.attach(),this.attributes=new y(this.domNode)}delta(){return new P().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){let i=this.scroll.query(t,n.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,e)}formatAt(t,e,i,s){this.format(i,s)}insertAt(t,e,i){if(null!=i)return void super.insertAt(t,e,i);let s=e.split("\n"),l=s.pop(),r=s.map(t=>{let e=this.scroll.create(tj.blotName);return e.insertAt(0,t),e}),n=this.split(t);r.forEach(t=>{this.parent.insertBefore(t,n)}),l&&this.parent.insertBefore(this.scroll.create("text",l),n)}}function tH(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];
1return t.descendants(E).reduce((t,i)=>0===i.length()?t:t.insert(i.value(),tF(i,{},e)),new P).insert("\n",tF(t))}function tF(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return null==t||("formats"in t&&"function"==typeof t.formats&&(e={...e,...t.formats()},i&&delete e["code-token"]),null==t.parent||"scroll"===t.parent.statics.blotName||t.parent.statics.scope!==t.statics.scope)?e:tF(t.parent,e,i)}tP.scope=n.BLOCK_BLOT;class t$ extends B{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\uFEFF";static value(){}constructor(t,e,i){super(t,e),this.selection=i,this.textNode=document.createTextNode(t$.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(t,e){if(0!==this.savedLength)return void super.format(t,e);let i=this,s=0;for(;null!=i&&i.statics.scope!==n.BLOCK_BLOT;)s+=i.offset(i.parent),i=i.parent;null!=i&&(this.savedLength=t$.CONTENTS.length,i.optimize(),i.formatAt(s,t$.CONTENTS.length,t,e),this.savedLength=0)}index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){let t;if(this.selection.composing||null==this.parent)return null;let e=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);let i=this.prev instanceof tB?this.prev:null,s=i?i.length():0,l=this.next instanceof tB?this.next:null,r=l?l.text:"",{textNode:n}=this,o=n.data.split(t$.CONTENTS).join("");if(n.data=t$.CONTENTS,i)t=i,(o||l)&&(i.insertAt(i.length(),o+r),l&&l.remove());else if(l)t=l,l.insertAt(0,o);else{let e=document.createTextNode(o);t=this.scroll.create(e),this.parent.insertBefore(t,this)}if(this.remove(),e){let r=(t,e)=>i&&t===i.domNode?e:t===n?s+e-1:l&&t===l.domNode?s+o.length+e:null,a=r(e.start.node,e.start.offset),h=r(e.end.node,e.end.offset);if(null!==a&&null!==h)return{startNode:t.domNode,startOffset:a,endNode:t.domNode,endOffset:h}}return null}update(t,e){if(t.some(t=>"characterData"===t.type&&t.target===this.textNode)){let t=this.restore();t&&(e.range=t)}}optimize(t){super.optimize(t);let{parent:e}=this;for(;e;){if("A"===e.domNode.tagName){this.savedLength=t$.CONTENTS.length,e.isolate(this.offset(e),this.length()).unwrap(),this.savedLength=0;break}e=e.parent}}value(){return""}}var tV=i(47287);let tz=new WeakMap,tK=["error","warn","log","info"],tZ="warn";function tW(t){if(tZ&&tK.indexOf(t)<=tK.indexOf(tZ)){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];console[t](...i)}}function tG(t){return tK.reduce((e,i)=>(e[i]=tW.bind(console,i,t),e),{})}tG.level=t=>{tZ=t},tW.level=tG.level;let tX=tG("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(t=>{document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];Array.from(document.querySelectorAll(".ql-container")).forEach(t=>{let i=tz.get(t);i&&i.emitter&&i.emitter.handleDOM(...e)})})});class tY extends tV.b{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",tX.error)}emit(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return tX.log.call(tX,...e),super.emit(...e)}handleDOM(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];
1(this.domListeners[t.type]||[]).forEach(e=>{let{node:s,handler:l}=e;(t.target===s||s.contains(t.target))&&l(t,...i)})}listenDOM(t,e,i){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:e,handler:i})}}let tQ=tG("quill:selection");class tJ{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=t,this.length=e}}class t1{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new tJ(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,tY.sources.USER),1)}),this.emitter.on(tY.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;let t=this.getNativeRange();null==t||t.start.node!==this.cursor.textNode&&this.emitter.once(tY.events.SCROLL_UPDATE,(e,i)=>{try{this.root.contains(t.start.node)&&this.root.contains(t.end.node)&&this.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset);let s=i.some(t=>"characterData"===t.type||"childList"===t.type||"attributes"===t.type&&t.target===this.root);this.update(s?tY.sources.SILENT:e)}catch(t){}})}),this.emitter.on(tY.events.SCROLL_OPTIMIZE,(t,e)=>{if(e.range){let{startNode:t,startOffset:i,endNode:s,endOffset:l}=e.range;this.setNativeRange(t,i,s,l),this.update(tY.sources.SILENT)}}),this.update(tY.sources.SILENT)}handleComposition(){this.emitter.on(tY.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(tY.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){let t=this.cursor.restore();t&&setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(tY.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,e){this.scroll.update();let i=this.getNativeRange();if(!(null==i||!i.native.collapsed||this.scroll.query(t,n.BLOCK))){if(i.start.node!==this.cursor.textNode){let t=this.scroll.find(i.start.node,!1);if(null==t)return;if(t instanceof E){let e=t.split(i.start.offset);t.parent.insertBefore(this.cursor,e)}else t.insertBefore(this.cursor,i.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let e,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=this.scroll.length();s=Math.min((t=Math.min(t,l-1))+s,l-1)-t;let[r,n]=this.scroll.leaf(t);if(null==r)return null;if(s>0&&n===r.length()){let[e]=this.scroll.leaf(t+1);if(e){let[i]=this.scroll.line(t),[s]=this.scroll.line(t+1);i===s&&(r=e,n=0)}}[e,n]=r.position(n,!0);let o=document.createRange();if(s>0)return(o.setStart(e,n),[r,n]=this.scroll.leaf(t+s),null==r)?null:([e,n]=r.position(n,!0),o.setEnd(e,n),o.getBoundingClientRect());let a="left";if(e instanceof Text){if(!e.data.length)return null;n<e.data.length?(o.setStart(e,n),o.setEnd(e,n+1)):(o.setStart(e,n-1),o.setEnd(e,n),a="right"),i=o.getBoundingClientRect()}else{if(!(r.domNode instanceof Element))return null;i=r.domNode.getBoundingClientRect(),n>0&&(a="right")}return{bottom:i.top+i.height,height:i.height,left:i[a],right:i[a],top:i.top,width:0}}getNativeRange(){let t=document.getSelection();if(null==t||t.rangeCount<=0)return null;let e=t.getRangeAt(0);if(null==e)return null;let i=this.normalizeNative(e);return tQ.info("getNativeRange",i),i}getRange(){let t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];let e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&t0(this.root,document.activeElement)}normalizedToRange(t){let e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);let i=e.map(t=>{let[e,i]=t,s=this.scroll.find(e,!0),l=s.offset(this.scroll);
1return 0===i?l:s instanceof E?l+s.index(e,i):l+s.length()}),s=Math.min(Math.max(...i),this.scroll.length()-1),l=Math.min(s,...i);return new tJ(l,s-l)}normalizeNative(t){if(!t0(this.root,t.startContainer)||!t.collapsed&&!t0(this.root,t.endContainer))return null;let e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(t=>{let{node:e,offset:i}=t;for(;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>i)e=e.childNodes[i],i=0;else if(e.childNodes.length===i)i=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length>0?e.childNodes.length:e.childNodes.length+1;else break;t.node=e,t.offset=i}),e}rangeToNative(t){let e=this.scroll.length(),i=(t,i)=>{t=Math.min(e-1,t);let[s,l]=this.scroll.leaf(t);return s?s.position(l,i):[null,-1]};return[...i(t.index,!1),...i(t.index+t.length,!0)]}setNativeRange(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(tQ.info("setNativeRange",t,e,i,s),null!=t&&(null==this.root.parentNode||null==t.parentNode||null==i.parentNode))return;let r=document.getSelection();if(null!=r)if(null!=t){this.hasFocus()||this.root.focus({preventScroll:!0});let{native:n}=this.getNativeRange()||{};if(null==n||l||t!==n.startContainer||e!==n.startOffset||i!==n.endContainer||s!==n.endOffset){t instanceof Element&&"BR"===t.tagName&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),i instanceof Element&&"BR"===i.tagName&&(s=Array.from(i.parentNode.childNodes).indexOf(i),i=i.parentNode);let l=document.createRange();l.setStart(t,e),l.setEnd(i,s),r.removeAllRanges(),r.addRange(l)}}else r.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tY.sources.API;if("string"==typeof e&&(i=e,e=!1),tQ.info("setRange",t),null!=t){let i=this.rangeToNative(t);this.setNativeRange(...i,e)}else this.setNativeRange(null);this.update(i)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tY.sources.USER,e=this.lastRange,[i,s]=this.getRange();if(this.lastRange=i,this.lastNative=s,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,tR.A)(e,this.lastRange)){if(!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode){let t=this.cursor.restore();t&&this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}let i=[tY.events.SELECTION_CHANGE,tO(this.lastRange),tO(e),t];this.emitter.emit(tY.events.EDITOR_CHANGE,...i),t!==tY.sources.SILENT&&this.emitter.emit(...i)}}}function t0(t,e){try{e.parentNode}catch(t){return!1}return t.contains(e)}let t2=/^[ -~]*$/;class t5{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){var e;let i;this.scroll.update();let s=this.scroll.length();this.scroll.batchStart();let l=t6(t),o=new P;return(e=l.ops.slice(),i=[],e.forEach(t=>{"string"==typeof t.insert?t.insert.split("\n").forEach((e,s)=>{s&&i.push({insert:"\n",attributes:t.attributes}),e&&i.push({insert:e,attributes:t.attributes})}):i.push(t)}),i).reduce((t,e)=>{let i=P.Op.length(e),l=e.attributes||{},a=!1,h=!1;if(null!=e.insert){if(o.retain(i),"string"==typeof e.insert){let i=e.insert;h=!i.endsWith("\n")&&(s<=t||!!this.scroll.descendant(tP,t)[0]),this.scroll.insertAt(t,i);let[n,o]=this.scroll.line(t),a=(0,r.A)({},tF(n));if(n instanceof tj){let[t]=n.descendant(E,o);t&&(a=(0,r.A)(a,tF(t)))}l=P.AttributeMap.diff(a,l)||{}}else if("object"==typeof e.insert){let i=Object.keys(e.insert)[0];if(null==i)return t;let o=null!=this.scroll.query(i,n.INLINE);if(o)(s<=t||this.scroll.descendant(tP,t)[0])&&(h=!0);else if(t>0){let[e,i]=this.scroll.descendant(E,t-1);e instanceof tB?"\n"!==e.value()[i]&&(a=!0):e instanceof B&&e.statics.scope===n.INLINE_BLOT&&(a=!0)}if(this.scroll.insertAt(t,i,e.insert[i]),o){let[e]=this.scroll.descendant(E,t);if(e){let t=(0,r.A)({},tF(e));l=P.AttributeMap.diff(t,l)||{}}}}s+=i}else if(o.push(e),null!==e.retain&&"object"==typeof e.retain){let i=Object.keys(e.retain)[0];if(null==i)return t;this.scroll.updateEmbedAt(t,i,e.retain[i])}
1Object.keys(l).forEach(e=>{this.scroll.formatAt(t,i,e,l[e])});let c=+!!a,d=+!!h;return s+=c+d,o.retain(c),o.delete(d),t+i+c+d},0),o.reduce((t,e)=>"number"==typeof e.delete?(this.scroll.deleteAt(t,e.delete),t):t+P.Op.length(e),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(l)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update(new P().retain(t).delete(e))}formatLine(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(i).forEach(s=>{this.scroll.lines(t,Math.max(e,1)).forEach(t=>{t.format(s,i[s])})}),this.scroll.optimize();let s=new P().retain(t).retain(e,tO(i));return this.update(s)}formatText(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(i).forEach(s=>{this.scroll.formatAt(t,e,s,i[s])});let s=new P().retain(t).retain(e,tO(i));return this.update(s)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce((t,e)=>t.concat(e.delta()),new P)}getFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],s=[];0===e?this.scroll.path(t).forEach(t=>{let[e]=t;e instanceof tj?i.push(e):e instanceof E&&s.push(e)}):(i=this.scroll.lines(t,e),s=this.scroll.descendants(E,t,e));let[l,r]=[i,s].map(t=>{let e=t.shift();if(null==e)return{};let i=tF(e);for(;Object.keys(i).length>0;){let e=t.shift();if(null==e)break;i=function(t,e){return Object.keys(e).reduce((i,s)=>{if(null==t[s])return i;let l=e[s];return l===t[s]?i[s]=l:Array.isArray(l)?0>l.indexOf(t[s])?i[s]=l.concat([t[s]]):i[s]=l:i[s]=[l,t[s]],i},{})}(tF(e),i)}return i});return{...l,...r}}getHTML(t,e){let[i,s]=this.scroll.line(t);if(i){let l=i.length();return i.length()>=s+e&&(0!==s||e!==l)?t4(i,s,e,!0):t4(this.scroll,t,e,!0)}return""}getText(t,e){return this.getContents(t,e).filter(t=>"string"==typeof t.insert).map(t=>t.insert).join("")}insertContents(t,e){let i=t6(e),s=new P().retain(t).concat(i);return this.scroll.insertContents(t,i),this.update(s)}insertEmbed(t,e,i){return this.scroll.insertAt(t,e,i),this.update(new P().retain(t).insert({[e]:i}))}insertText(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(i).forEac
1h(s=>{this.scroll.formatAt(t,e.length,s,i[s])}),this.update(new P().retain(t).insert(e,tO(i)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;let t=this.scroll.children.head;return t?.statics.blotName===tj.blotName&&!(t.children.length>1)&&t.children.head instanceof tI}removeFormat(t,e){let i=this.getText(t,e),[s,l]=this.scroll.line(t+e),r=0,n=new P;null!=s&&(r=s.length()-l,n=s.delta().slice(l,l+r-1).insert("\n"));let o=this.getContents(t,e+r).diff(new P().insert(i).concat(n)),a=new P().retain(t).concat(o);return this.applyDelta(a)}update(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(t2)&&this.scroll.find(e[0].target)){let l=this.scroll.find(e[0].target),r=tF(l),n=l.offset(this.scroll),o=e[0].oldValue.replace(t$.CONTENTS,""),a=new P().insert(o),h=new P().insert(l.value()),c=i&&{oldRange:t8(i.oldRange,-n),newRange:t8(i.newRange,-n)};t=new P().retain(n).concat(a.diff(h,c)).reduce((t,e)=>e.insert?t.insert(e.insert,r):t.push(e),new P),this.delta=s.compose(t)}else this.delta=this.getDelta(),t&&(0,tR.A)(s.compose(t),this.delta)||(t=s.diff(this.delta,i));return t}}function t4(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in t&&"function"==typeof t.html)return t.html(e,i);if(t instanceof tB)return tD(t.value().slice(e,e+i)).replaceAll(" ","&nbsp;");if(t instanceof k){if("list-container"===t.statics.blotName){let s=[];return t.children.forEachAt(e,i,(t,e,i)=>{let l="formats"in t&&"function"==typeof t.formats?t.formats():{};s.push({child:t,offset:e,length:i,indent:l.indent||0,type:l.list})}),function t(e,i,s){if(0===e.length){let[e]=t3(s.pop());return i<=0?`</li></${e}>`:`</li></${e}>${t([],i-1,s)}`}let[{child:l,offset:r,length:n,indent:o,type:a},...h]=e,[c,d]=t3(a);if(o>i)return(s.push(a),o===i+1)?`<${c}><li${d}>${t4(l,r,n)}${t(h,o,s)}`:`<${c}><li>${t(e,i+1,s)}`;let u=s[s.length-1];if(o===i&&a===u)return`</li><li${d}>${t4(l,r,n)}${t(h,o,s)}`;let[f]=t3(s.pop());return`</li></${f}>${t(e,i-1,s)}`}(s,-1,[])}let l=[];if(t.children.forEachAt(e,i,(t,e,i)=>{l.push(t4(t,e,i))}),s||"list"===t.statics.blotName)return l.join("");let{outerHTML:r,innerHTML:n}=t.domNode,[o,a]=r.split(`>${n}<`);return"<table"===o?`<table style="border: 1px solid #000;">${l.join("")}<${a}`:`${o}>${l.join("")}<${a}`}return t.domNode instanceof Element?t.domNode.outerHTML:""}function t3(t){let e="ordered"===t?"ol":"ul";switch(t){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function t6(t){return t.reduce((t,e)=>{if("string"==typeof e.insert){let i=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(i,e.attributes)}return t.push(e)},new P)}function t8(t,e){let{index:i,length:s}=t;return new tJ(i+e,s)}class t7{static DEFAULTS={};constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=e}}let t9=t7;class et extends B{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(t=>{this.contentNode.appendChild(t)}),this.leftGuard=document.createTextNode("\uFEFF"),this.rightGuard=document.createTextNode("\uFEFF"),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e,i=null,s=t.data.split("\uFEFF").join("");if(t===this.leftGuard)if(this.prev instanceof tB){let t=this.prev.length();this.prev.insertAt(t,s),i={startNode:this.prev.domNode,startOffset:t+s.length}}else e=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(e),this),i={startNode:e,startOffset:s.length};else t===this.rightGuard&&(this.next instanceof tB?(this.next.insertAt(0,s),i={startNode:this.next.domNode,startOffset:s.length}):(e=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(e),this.next),i={startNode:e,startOffset:s.length}));return t.data="\uFEFF",i}update(t,e){t.forEach(t=>{if("characterData"===t.type&&(t.target===this.leftGuard||t.target===this.rightGuard)){let i=this.restore(t.target);i&&(e.range=i)}})}}let ee=et;class ei{isComposing=!1;constructor(t,e){this.scroll=t,this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){let e=t.target instanceof Node?this.scroll.find(t.target,!0):null;!e||e instanceof ee||(this.emitter.emit(tY.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(tY.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(tY.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(tY.events.COMPOSITION_END,t),this.isComposing=!1}}class es{static DEFAULTS={modules:{}};static themes={default:es};modules={};constructor(t,e){this.quill=t,this.options=e}
1init(){Object.keys(this.options.modules).forEach(t=>{null==this.modules[t]&&this.addModule(t)})}addModule(t){let e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}let el=es,er=t=>t.parentElement||t.getRootNode().host||null,en=t=>{let e=t.getBoundingClientRect(),i="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1,s="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*i,bottom:e.top+t.clientHeight*s,left:e.left}},eo=t=>{let e=parseInt(t,10);return Number.isNaN(e)?0:e},ea=(t,e,i,s,l,r)=>t<i&&e>s?0:t<i?-(i-t+l):e>s?e-t>s-i?t+l-i:e-s+r:0,eh=["block","break","cursor","inline","scroll","text"],ec=tG("quill"),ed=new c;k.uiClass="ql-ui";class eu{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:ed,theme:"default"};static events=tY.events;static sources=tY.sources;static version="2.0.3";static imports={delta:P,parchment:l,"core/module":t9,"core/theme":el};static debug(t){!0===t&&(t="log"),tG.level(t)}static find(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return tz.get(t)||ed.find(t,e)}static import(t){return null==this.imports[t]&&ec.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){let t=arguments.length<=0?void 0:arguments[0],e=!!(arguments.length<=1?void 0:arguments[1]),i="attrName"in t?t.attrName:t.blotName;"string"==typeof i?this.register(`formats/${i}`,t,e):Object.keys(t).forEach(i=>{this.register(i,t[i],e)})}else{let t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],i=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[t]||i||ec.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&"boolean"!=typeof e&&"abstract"!==e.blotName&&ed.register(e),"function"==typeof e.register&&e.register(ed)}}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=function(t,e){let i=ef(t);if(!i)throw Error("Invalid Quill container");let s=e.theme&&e.theme!==eu.DEFAULTS.theme?eu.import(`themes/${e.theme}`):el;if(!s)throw Error(`Invalid theme ${e.theme}. Did you register it?`);let{modules:l,...n}=eu.DEFAULTS,{modules:o,...a}=s.DEFAULTS,h=ep(e.modules);null!=h&&h.toolbar&&h.toolbar.constructor!==Object&&(h={...h,toolbar:{container:h.toolbar}});let d=(0,r.A)({},ep(l),ep(o),h),u={...n,...em(a),...em(e)},f=e.registry;if(f)e.formats&&ec.warn('Ignoring "formats" option because "registry" is specified');else{var p,m;let t;f=e.formats?(p=e.formats,m=u.registry,t=new c,eh.forEach(e=>{let i=m.query(e);i&&t.register(i)}),p.forEach(e=>{let i=m.query(e);i||ec.error(`Cannot register "${e}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;i;)if(t.register(i),i="blotName"in i?i.requiredContainer??null:null,(s+=1)>100){ec.error(`Cycle detected in registering blot requiredContainer: "${e}"`);break}}),t):u.registry}return{...u,registry:f,container:i,theme:s,modules:Object.entries(d).reduce((t,e)=>{let[i,s]=e;if(!s)return t;let l=eu.import(`modules/${i}`);return null==l?(ec.error(`Cannot load ${i} module. Are you sure you registered it?`),t):{...t,[i]:(0,r.A)({},l.DEFAULTS||{},s)}},{}),bounds:ef(u.bounds)}}(t,e),this.container=this.options.container,null==this.container)return void ec.error("Invalid Quill container",t);this.options.debug&&eu.debug(this.options.debug);const i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",tz.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new tY;const s=U.blotName,l=this.options.registry.query(s);if(!l||!("blotName"in l))throw Error(`Cannot initialize Quill without "${s}" blot`);if(this.scroll=new l(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new t5(this.scroll),this.selection=new t1(this.scroll,this.emitter),this.composition=new ei(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.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(
1),this.emitter.on(tY.events.EDITOR_CHANGE,t=>{t===tY.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(tY.events.SCROLL_UPDATE,(t,e)=>{let i=this.selection.lastRange,[s]=this.selection.getRange(),l=i&&s?{oldRange:i,newRange:s}:void 0;eg.call(this,()=>this.editor.update(null,e,l),t)}),this.emitter.on(tY.events.SCROLL_EMBED_UPDATE,(t,e)=>{let i=this.selection.lastRange,[s]=this.selection.getRange(),l=i&&s?{oldRange:i,newRange:s}:void 0;eg.call(this,()=>{let i=new P().retain(t.offset(this)).retain({[t.statics.blotName]:e});return this.editor.update(i,[],l)},eu.sources.USER)}),i){const t=this.clipboard.convert({html:`${i}<p><br></p>`,text:"\n"});this.setContents(t)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){let e=t;(t=document.createElement("div")).classList.add(e)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,i){return[t,e,,i]=eb(t,e,i),eg.call(this,()=>this.editor.deleteText(t,e),i,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;let e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tY.sources.API;return eg.call(this,()=>{let i=this.getSelection(!0),s=new P;if(null==i)return s;if(this.scroll.query(t,n.BLOCK))s=this.editor.formatLine(i.index,i.length,{[t]:e});else{if(0===i.length)return this.selection.format(t,e),s;s=this.editor.formatText(i.index,i.length,{[t]:e})}return this.setSelection(i,tY.sources.SILENT),s},i)}formatLine(t,e,i,s,l){let r;return[t,e,r,l]=eb(t,e,i,s,l),eg.call(this,()=>this.editor.formatLine(t,e,r),l,t,0)}formatText(t,e,i,s,l){let r;return[t,e,r,l]=eb(t,e,i,s,l),eg.call(this,()=>this.editor.formatText(t,e,r),l,t,0)}getBounds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=null;if(!(i="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length)))return null;let s=this.container.getBoundingClientRect();return{bottom:i.bottom-s.top,height:i.height,left:i.left-s.left,right:i.right-s.left,top:i.top-s.top,width:i.width}}getContents(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t;return[t,e]=eb(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=eb(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=eb(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}
1insertEmbed(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:eu.sources.API;return eg.call(this,()=>this.editor.insertEmbed(t,e,i),s,t)}insertText(t,e,i,s,l){let r;return[t,,r,l]=eb(t,0,i,s,l),eg.call(this,()=>this.editor.insertText(t,e,r),l,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,i){return[t,e,,i]=eb(t,e,i),eg.call(this,()=>this.editor.removeFormat(t,e),i,t)}scrollRectIntoView(t){((t,e)=>{let i=t.ownerDocument,s=e,l=t;for(;l;){let t=l===i.body,e=t?{top:0,right:window.visualViewport?.width??i.documentElement.clientWidth,bottom:window.visualViewport?.height??i.documentElement.clientHeight,left:0}:en(l),r=getComputedStyle(l),n=ea(s.left,s.right,e.left,e.right,eo(r.scrollPaddingLeft),eo(r.scrollPaddingRight)),o=ea(s.top,s.bottom,e.top,e.bottom,eo(r.scrollPaddingTop),eo(r.scrollPaddingBottom));if(n||o)if(t)i.defaultView?.scrollBy(n,o);else{let{scrollLeft:t,scrollTop:e}=l;o&&(l.scrollTop+=o),n&&(l.scrollLeft+=n);let i=l.scrollLeft-t,r=l.scrollTop-e;s={left:s.left-i,top:s.top-r,right:s.right-i,bottom:s.bottom-r}}l=t||"fixed"===r.position?null:er(l)}})(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){let t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tY.sources.API;return eg.call(this,()=>{t=new P(t);let e=this.getLength(),i=this.editor.deleteText(0,e),s=this.editor.insertContents(0,t),l=this.editor.deleteText(this.getLength()-1,1);return i.compose(s).compose(l)},e)}setSelection(t,e,i){null==t?this.selection.setRange(null,e||eu.sources.API):([t,e,,i]=eb(t,e,i),this.selection.setRange(new tJ(Math.max(0,t),e),i),i!==tY.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tY.sources.API,i=new P().insert(t);return this.setContents(i,e)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tY.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tY.sources.API;return eg.call(this,()=>(t=new P(t),this.editor.applyDelta(t)),e,!0)}}function ef(t){return"string"==typeof t?document.querySelector(t):t}function ep(t){return Object.entries(t??{}).reduce((t,e)=>{let[i,s]=e;return{...t,[i]:!0===s?{}:s}},{})}function em(t){return Object.fromEntries(Object.entries(t).filter(t=>void 0!==t[1]))}function eg(t,e,i,s){if(!this.isEnabled()&&e===tY.sources.USER&&!this.allowReadOnlyEdits)return new P;let l=null==i?null:this.getSelection(),r=this.editor.delta,n=t();if(null!=l&&(!0===i&&(i=l.index),null==s?l=ey(l,n,e):0!==s&&(l=ey(l,i,s,e)),this.setSelection(l,tY.sources.SILENT)),n.length()>0){let t=[tY.events.TEXT_CHANGE,n,r,e];this.emitter.emit(tY.events.EDITOR_CHANGE,...t),e!==tY.sources.SILENT&&this.emitter.emit(...t)}return n}function eb(t,e,i,s,l){let r={};return"number"==typeof t.index&&"number"==typeof t.length?("number"!=typeof e&&(l=s,s=i,i=e),e=t.length,t=t.index):"number"!=typeof e&&(l=s,s=i,i=e,e=0),"object"==typeof i?(r=i,l=s):"string"==typeof i&&(null!=s?r[i]=s:l=i),[t,e,r,l=l||tY.sources.API]}function ey(t,e,i,s){let l,r,n="number"==typeof i?i:0;return null==t?null:(e&&"function"==typeof e.transformPosition?[l,r]=[t.index,t.index+t.length].map(t=>e.transformPosition(t,s!==tY.sources.USER)):[l,r]=[t.index,t.index+t.length].map(t=>t<e||t===e&&s===tY.sources.USER?t:n>=0?t+n:Math.max(e,t+n)),new tJ(l,r-l))}class ev extends R{}let eN=ev;function ex(t){return t instanceof tj||t instanceof tP}function eE(t){return"function"==typeof t.updateContent}class eA extends U{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=tj;static allowedChildren=[tj,tP,eN];constructor(t,e,i){let{emitter:s}
1=i;super(t,e),this.emitter=s,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",t=>this.handleDragStart(t))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;let t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(tY.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(tY.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(tY.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){let[i,s]=this.line(t),[l]=this.line(t+e);if(super.deleteAt(t,e),null!=l&&i!==l&&s>0){if(i instanceof tP||l instanceof tP)return void this.optimize();let t=l.children.head instanceof tI?null:l.children.head;i.moveChildren(l,t),i.remove()}this.optimize()}enable(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,i,s){super.formatAt(t,e,i,s),this.optimize()}insertAt(t,e,i){if(t>=this.length())if(null==i||null==this.scroll.query(e,n.BLOCK)){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t),null==i&&e.endsWith("\n")?t.insertAt(0,e.slice(0,-1),i):t.insertAt(0,e,i)}else{let t=this.scroll.create(e,i);this.appendChild(t)}else super.insertAt(t,e,i);this.optimize()}insertBefore(t,e){if(t.statics.scope===n.INLINE_BLOT){let i=this.scroll.create(this.statics.defaultChild.blotName);i.appendChild(t),super.insertBefore(i,e)}else super.insertBefore(t,e)}insertContents(t,e){let i=this.deltaToRenderBlocks(e.concat(new P().insert("\n"))),s=i.pop();if(null==s)return;this.batchStart();let l=i.shift();if(l){let e="block"===l.type&&(0===l.delta.length()||!this.descendant(tP,t)[0]&&t<this.length()),i="block"===l.type?l.delta:new P().insert({[l.key]:l.value});eq(this,t,i);let s=+("block"===l.type),r=t+i.length()+s;e&&this.insertAt(r-1,"\n");let n=tF(this.line(t)[0]),o=P.AttributeMap.diff(n,l.attributes)||{};Object.keys(o).forEach(t=>{this.formatAt(r-1,1,t,o[t])}),t=r}let[r,n]=this.children.find(t);i.length&&(r&&(r=r.split(n),n=0),i.forEach(t=>{if("block"===t.type)eq(this.createBlock(t.attributes,r||void 0),0,t.delta);else{let e=this.create(t.key,t.value);this.insertBefore(e,r||void 0),Object.keys(t.attributes).forEach(i=>{e.format(i,t.attributes[i])})}})),"block"===s.type&&s.delta.length()&&eq(this,r?r.offset(r.scroll)+n:this.length(),s.delta),this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(t){let e=this.path(t).pop();if(!e)return[null,-1];let[i,s]=e;return i instanceof E?[i,s]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(ex,t)}lines(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=(t,e,s)=>{let l=[],r=s;return t.children.forEachAt(e,s,(t,e,s)=>{ex(t)?l.push(t):t instanceof R&&(l=l.concat(i(t,e,r))),r-=s}),l};return i(this,t,e)}optimize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!this.batch&&(super.optimize(t,e),t.length>0&&this.emitter.emit(tY.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let e=tY.sources.USER;"string"==typeof t&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),(t=t.filter(t=>{let{target:e}=t,i=this.find(e,!0);return i&&!eE(i)})).length>0&&this.emitter.emit(tY.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(tY.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,i){let[s]=this.descendant(t=>t instanceof tP,t);s&&s.statics.blotName===e&&eE(s)&&s.updateContent(i)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){let e=[],i=new P;return t.forEach(t=>{let s=t?.insert;if(s)if("string"==typeof s){let l=s.split("\n");l.slice(0,-1).forEach(s=>{i.insert(s,t.attributes),e.push({type:"block",delta:i,attributes:t.attributes??{}}),i=new P});let r=l[l.length-1];r&&i.insert(r,t.attributes)}else{let l=Object.keys(s)[0];if(!l)return;this.query(l,n.INLINE)?i.push(t):(i.length()&&e.push({type:"block",delta:i,attributes:{}}),i=new P,e.push({type:"blockEmbed",key:l,value:s[l],attributes:t.attributes??{}}))}}),i.length()&&e.push({type:"block",delta:i,attributes:{}}),e}createBlock(t,e){let i,s={};Object.entries(t).forEach(t=>{let[e,l]=t;null!=this.query(e,n.BLOCK&n.BLOT)?i=e:s[e]=l});let l=this.create(i||this.statics.defaultChild.blotName,i?t[i]:void 0);this.insertBefore(l,e||void 0);let r=l.length();
1return Object.entries(s).forEach(t=>{let[e,i]=t;l.formatAt(0,r,e,i)}),l}}function eq(t,e,i){i.reduce((e,i)=>{let s=P.Op.length(i),l=i.attributes||{};if(null!=i.insert){if("string"==typeof i.insert){let s=i.insert;t.insertAt(e,s);let[r]=t.descendant(E,e),n=tF(r);l=P.AttributeMap.diff(n,l)||{}}else if("object"==typeof i.insert){let s=Object.keys(i.insert)[0];if(null==s)return e;if(t.insertAt(e,s,i.insert[s]),null!=t.scroll.query(s,n.INLINE)){let[i]=t.descendant(E,e),s=tF(i);l=P.AttributeMap.diff(s,l)||{}}}}return Object.keys(l).forEach(i=>{t.formatAt(e,s,i,l[i])}),e+s},e)}let ew={scope:n.BLOCK,whitelist:["right","center","justify"]},ek=new o("align","align",ew),eL=new f("align","ql-align",ew),eS=new g("align","text-align",ew);class eT extends g{value(t){let e=super.value(t);if(!e.startsWith("rgb("))return e;let i=(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(t=>`00${parseInt(t,10).toString(16)}`.slice(-2)).join("");return`#${i}`}}let eC=new f("color","ql-color",{scope:n.INLINE}),eO=new eT("color","color",{scope:n.INLINE}),eR=new f("background","ql-bg",{scope:n.INLINE}),eI=new eT("background","background-color",{scope:n.INLINE});class eB extends eN{static create(t){let e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(t=>1>=t.length()?"":t.domNode.innerText).join("\n").slice(t,t+e)}html(t,e){return`<pre>
2${tD(this.code(t,e))}
3</pre>`}}class eM extends tj{static TAB="  ";static register(){eu.register(eB)}}class eD extends t_{}eD.blotName="code",eD.tagName="CODE",eM.blotName="code-block",eM.className="ql-code-block",eM.tagName="DIV",eB.blotName="code-block-container",eB.className="ql-code-block-container",eB.tagName="DIV",eB.allowedChildren=[eM],eM.allowedChildren=[tB,tI,t$],eM.requiredContainer=eB;let eU={scope:n.BLOCK,whitelist:["rtl"]},e_=new o("direction","dir",eU),ej=new f("direction","ql-direction",eU),eP=new g("direction","direction",eU),eH={scope:n.INLINE,whitelist:["serif","monospace"]},eF=new f("font","ql-font",eH);class e$ extends g{value(t){return super.value(t).replace(/["']/g,"")}}let eV=new e$("font","font-family",eH),ez=new f("size","ql-size",{scope:n.INLINE,whitelist:["small","large","huge"]}),eK=new g("size","font-size",{scope:n.INLINE,whitelist:["10px","18px","32px"]}),eZ=tG("quill:keyboard"),eW=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class eG extends t9{static match(t,e){return!["altKey","ctrlKey","metaKey","shiftKey"].some(i=>!!e[i]!==t[i]&&null!==e[i])&&(e.key===t.key||e.key===t.which)}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(t=>{this.options.bindings[t]&&this.addBinding(this.options.bindings[t])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=function(t){if("string"==typeof t||"number"==typeof t)t={key:t};else{if("object"!=typeof t)return null;t=tO(t)}return t.shortKey&&(t[eW]=t.shortKey,delete t.shortKey),t}(t);null==s?eZ.warn("Attempted to add invalid keyboard binding",s):("function"==typeof e&&(e={handler:e}),"function"==typeof i&&(i={handler:i}),(Array.isArray(s.key)?s.key:[s.key]).forEach(t=>{let l={...s,key:t,...e,...i};this.bindings[l.key]=this.bindings[l.key]||[],this.bindings[l.key].push(l)}))}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||229===t.keyCode&&("Enter"===t.key||"Backspace"===t.key))return;let e=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(e=>eG.match(t,e));if(0===e.length)return;let i=eu.find(t.target,!0);if(i&&i.scroll!==this.quill.scroll)return;let s=this.quill.getSelection();if(null==s||!this.quill.hasFocus())return;let[l,r]=this.quill.getLine(s.index),[n,o]=this.quill.getLeaf(s.index),[a,h]=0===s.length?[n,o]:this.quill.getLeaf(s.index+s.length),c=n instanceof j?n.value(
3).slice(0,o):"",d=a instanceof j?a.value().slice(h):"",u={collapsed:0===s.length,empty:0===s.length&&1>=l.length(),format:this.quill.getFormat(s),line:l,offset:r,prefix:c,suffix:d,event:t};e.some(t=>{if(null!=t.collapsed&&t.collapsed!==u.collapsed||null!=t.empty&&t.empty!==u.empty||null!=t.offset&&t.offset!==u.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(t=>null==u.format[t]))return!1}else if("object"==typeof t.format&&!Object.keys(t.format).every(e=>!0===t.format[e]?null!=u.format[e]:!1===t.format[e]?null==u.format[e]:(0,tR.A)(t.format[e],u.format[e])))return!1;return(null==t.prefix||!!t.prefix.test(u.prefix))&&(null==t.suffix||!!t.suffix.test(u.suffix))&&!0!==t.handler.call(this,s,u,t)})&&t.preventDefault()})}handleBackspace(t,e){let i=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(0===t.index||1>=this.quill.getLength())return;let s={},[l]=this.quill.getLine(t.index),r=new P().retain(t.index-i).delete(i);if(0===e.offset){let[e]=this.quill.getLine(t.index-1);if(e&&!("block"===e.statics.blotName&&1>=e.length())){let e=l.formats(),i=this.quill.getFormat(t.index-1,1);if(Object.keys(s=P.AttributeMap.diff(e,i)||{}).length>0){let e=new P().retain(t.index+l.length()-2).retain(1,s);r=r.compose(e)}}}this.quill.updateContents(r,eu.sources.USER),this.quill.focus()}handleDelete(t,e){let i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-i)return;let s={},[l]=this.quill.getLine(t.index),r=new P().retain(t.index).delete(i);if(e.offset>=l.length()-1){let[e]=this.quill.getLine(t.index+1);if(e){let i=l.formats(),n=this.quill.getFormat(t.index,1);Object.keys(s=P.AttributeMap.diff(i,n)||{}).length>0&&(r=r.retain(e.length()-1).retain(1,s))}}this.quill.updateContents(r,eu.sources.USER),this.quill.focus()}handleDeleteRange(t){e1({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){let i=Object.keys(e.format).reduce((t,i)=>(this.quill.scroll.query(i,n.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t),{}),s=new P().retain(t.index).delete(t.length).insert("\n",i);this.quill.updateContents(s,eu.sources.USER),this.quill.setSelection(t.index+1,eu.sources.SILENT),this.quill.focus()}}function eX(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,i){let{event:s}=i,{TAB:l}=this.quill.scroll.query("code-block");if(0===e.length&&!s.shiftKey){this.quill.insertText(e.index,l,eu.sources.USER),this.quill.setSelection(e.index+l.length,eu.sources.SILENT);return}let r=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e),{index:n,length:o}=e;r.forEach((e,i)=>{t?(e.insertAt(0,l),0===i?n+=l.length:o+=l.length):e.domNode.textContent.startsWith(l)&&(e.deleteAt(0,l.length),0===i?n-=l.length:o-=l.length)}),this.quill.update(eu.sources.USER),this.quill.setSelection(n,o,eu.sources.SILENT)}}}function eY(t,e){return{key:t,shiftKey:e,altKey:null,["ArrowLeft"===t?"prefix":"suffix"]:/^$/,handler(i){let{index:s}=i;"ArrowRight"===t&&(s+=i.length+1);let[l]=this.quill.getLeaf(s);return!(l instanceof B)||("ArrowLeft"===t?e?this.quill.setSelection(i.index-1,i.length+1,eu.sources.USER):this.quill.setSelection(i.index-1,eu.sources.USER):e?this.quill.setSelection(i.index,i.length+1,eu.sources.USER):this.quill.setSelection(i.index+i.length+1,eu.sources.USER),!1)}}}function eQ(t){return{key:t[0],shortKey:!0,handler(e,i){this.quill.format(t,!i.format[t],eu.sources.USER)}}}function eJ(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,i){let s=t?"prev":"next",l=i.line,r=l.parent[s];if(null!=r){if("table-row"===r.statics.blotName){let t=r.children.head,e=l;for(;null!=e.prev;)e=e.prev,t=t.next;let s=t.offset(this.quill.scroll)+Math.min(i.offset,t.length()-1);this.quill.setSelection(s,0,eu.sources.USER)}}else{let e=l.table()[s];null!=e&&(t?this.quill.setSelection(e.offset(this.quill.scroll)+e.length()-1,0,eu.sources.USER):this.quill.setSelection(e.offset(this.quill.scroll),0,eu.sources.USER))}return!1}}}function e1(t){let{quill:e,range:i}=t,s=e.getLines(i),l={};if(s.length>1){let t=s[0].formats(),e=s[s.length-1].formats();l=P.AttributeMap.diff(e,t)||{}}e.deleteText(i,eu.sources.USER),Object.keys(l).length>0&&e.formatLine(i.index,1,l,eu.sources.USER),e.setSelection(i.index,eu.sources.SILENT)}eG.DEFAULTS={bindings:{bold:eQ("bold"),italic:eQ("italic"),underline:eQ("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){return!!e.collapsed&&0!==e.offset||(this.quill.format("indent","+1",eu.sources.USER),!1)}}
3,outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return!!e.collapsed&&0!==e.offset||(this.quill.format("indent","-1",eu.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){null!=e.format.indent?this.quill.format("indent","-1",eu.sources.USER):null!=e.format.list&&this.quill.format("list",!1,eu.sources.USER)}},"indent code-block":eX(!0),"outdent code-block":eX(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,eu.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return!0;this.quill.history.cutoff();let i=new P().retain(t.index).delete(t.length).insert("	");return this.quill.updateContents(i,eu.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,eu.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,eu.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){let i={list:!1};e.format.indent&&(i.indent=!1),this.quill.formatLine(t.index,t.length,i,eu.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){let[e,i]=this.quill.getLine(t.index),s={...e.formats(),list:"checked"},l=new P().retain(t.index).insert("\n",s).retain(e.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,eu.sources.USER),this.quill.setSelection(t.index+1,eu.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){let[i,s]=this.quill.getLine(t.index),l=new P().retain(t.index).insert("\n",e.format).retain(i.length()-s-1).retain(1,{header:null});this.quill.updateContents(l,eu.sources.USER),this.quill.setSelection(t.index+1,eu.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){let e=this.quill.getModule("table");if(e){var i,s,l;let[r,n,o,a]=e.getTable(t),h=(i=n,s=o,l=a,null==i.prev&&null==i.next?null==s.prev&&null==s.next?0===l?-1:1:null==s.prev?-1:1:null==i.prev?-1:null==i.next?1:null);if(null==h)return;let c=r.offset();if(h<0){let e=new P().retain(c).insert("\n");this.quill.updateContents(e,eu.sources.USER),this.quill.setSelection(t.index+1,t.length,eu.sources.SILENT)}else if(h>0){c+=r.length();let t=new P().retain(c).insert("\n");this.quill.updateContents(t,eu.sources.USER),this.quill.setSelection(c,eu.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){let{event:i,line:s}=e,l=s.offset(this.quill.scroll);i.shiftKey?this.quill.setSelection(l-1,eu.sources.USER):this.quill.setSelection(l+s.length(),eu.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){let i;if(null==this.quill.scroll.query("list"))return!0;let{length:s}=e.prefix,[l,r]=this.quill.getLine(t.index);if(r>s)return!0;switch(e.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(t.index," ",eu.sources.USER),this.quill.history.cutoff();let n=new P().retain(t.index-r).delete(s+1).retain(l.length()-2-r).retain(1,{list:i});return this.quill.updateContents(n,eu.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-s,eu.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){let[e,i]=this.quill.getLine(t.index),s=2,l=e;for(;null!=l&&1>=l.length()&&l.formats()["code-block"];)if(l=l.prev,(s-=1)<=0){let s=new P().retain(t.index+e.length()-i-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(s,eu.sources.USER),this.quill.setSelection(t.index-1,eu.sources.SILENT),!1}return!0}},"embed left":eY("ArrowLeft",!1),"embed left shift":eY("ArrowLeft",!0),"embed right":eY("ArrowRight",!1),"embed right shift":eY("ArrowRight",!0),"table down":eJ(!1),"table up":eJ(!0)}};
3let e0=/font-weight:\s*normal/,e2=["P","OL","UL"],e5=t=>t&&e2.includes(t.tagName),e4=/\bmso-list:[^;]*ignore/i,e3=/\bmso-list:[^;]*\bl(\d+)/i,e6=/\bmso-list:[^;]*\blevel(\d+)/i,e8=[function(t){"urn:schemas-microsoft-com:office:word"===t.documentElement.getAttribute("xmlns:w")&&(t=>{let e=Array.from(t.querySelectorAll("[style*=mso-list]")),i=[],s=[];e.forEach(t=>{(t.getAttribute("style")||"").match(e4)?i.push(t):s.push(t)}),i.forEach(t=>t.parentNode?.removeChild(t));let l=t.documentElement.innerHTML,r=s.map(t=>((t,e)=>{let i=t.getAttribute("style"),s=i?.match(e3);if(!s)return null;let l=Number(s[1]),r=i?.match(e6),n=r?Number(r[1]):1,o=RegExp(`@list l${l}:level${n}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),a=e.match(o);return{id:l,indent:n,type:a&&"bullet"===a[1]?"bullet":"ordered",element:t}})(t,l)).filter(t=>t);for(;r.length;){let t=[],e=r.shift();for(;e;)t.push(e),e=r.length&&r[0]?.element===e.element.nextElementSibling&&r[0].id===e.id?r.shift():null;let i=document.createElement("ul");t.forEach(t=>{let e=document.createElement("li");e.setAttribute("data-list",t.type),t.indent>1&&e.setAttribute("class",`ql-indent-${t.indent-1}`),e.innerHTML=t.element.innerHTML,i.appendChild(e)});let s=t[0]?.element,{parentNode:l}=s??{};s&&l?.replaceChild(i,s),t.slice(1).forEach(t=>{let{element:e}=t;l?.removeChild(e)})}})(t)},function(t){t.querySelector('[id^="docs-internal-guid-"]')&&(Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter(t=>t.getAttribute("style")?.match(e0)).forEach(e=>{let i=t.createDocumentFragment();i.append(...e.childNodes),e.parentNode?.replaceChild(i,e)}),Array.from(t.querySelectorAll("br")).filter(t=>e5(t.previousElementSibling)&&e5(t.nextElementSibling)).forEach(t=>{t.parentNode?.removeChild(t)}))}],e7=tG("quill:clipboard"),e9=[[Node.TEXT_NODE,function(t,e,i){let s=t.data;if(t.parentElement?.tagName==="O:P")return e.insert(s.trim());if(!function t(e){return null!=e&&(io.has(e)||("PRE"===e.tagName?io.set(e,!0):io.set(e,t(e.parentNode))),io.get(e))}(t)){if(0===s.trim().length&&s.includes("\n")&&(!t.previousElementSibling||!t.nextElementSibling||ir(t.previousElementSibling,i)||ir(t.nextElementSibling,i)))return e;s=(s=s.replace(/[^\S\u00a0]/g," ")).replace(/ {2,}/g," "),(null==t.previousSibling&&null!=t.parentElement&&ir(t.parentElement,i)||t.previousSibling instanceof Element&&ir(t.previousSibling,i))&&(s=s.replace(/^ /,"")),(null==t.nextSibling&&null!=t.parentElement&&ir(t.parentElement,i)||t.nextSibling instanceof Element&&ir(t.nextSibling,i))&&(s=s.replace(/ $/,"")),s=s.replaceAll("\xa0"," ")}return e.insert(s)}],[Node.TEXT_NODE,ic],["br",function(t,e){return il(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,ic],[Node.ELEMENT_NODE,function(t,e,i){let s=i.query(t);if(null==s)return e;if(s.prototype instanceof B){let e={},l=s.value(t);if(null!=l)return e[s.blotName]=l,new P().insert(e,s.formats(t,i))}else if(s.prototype instanceof C&&!il(e,"\n")&&e.insert("\n"),"blotName"in s&&"formats"in s&&"function"==typeof s.formats)return is(e,s.blotName,s.formats(t,i),i);return e}],[Node.ELEMENT_NODE,function(t,e,i){let s=o.keys(t),l=f.keys(t),r=g.keys(t),a={};return s.concat(l).concat(r).forEach(e=>{let s=i.query(e,n.ATTRIBUTE);null!=s&&(a[s.attrName]=s.value(t),a[s.attrName])||(null!=(s=it[e])&&(s.attrName===e||s.keyName===e)&&(a[s.attrName]=s.value(t)||void 0),null!=(s=ie[e])&&(s.attrName===e||s.keyName===e)&&(a[(s=ie[e]).attrName]=s.value(t)||void 0))}),Object.entries(a).reduce((t,e)=>{let[s,l]=e;return is(t,s,l,i)},e)}],[Node.ELEMENT_NODE,function(t,e,i){let s={},l=t.style||{};return("italic"===l.fontStyle&&(s.italic=!0),"underline"===l.textDecoration&&(s.underline=!0),"line-through"===l.textDecoration&&(s.strike=!0),(l.fontWeight?.startsWith("bold")||parseInt(l.fontWeight,10)>=700)&&(s.bold=!0),e=Object.entries(s).reduce((t,e)=>{let[s,l]=e;return is(t,s,l,i)},e),parseFloat(l.textIndent||0)>0)?new P().insert("	").concat(e):e}],["li",function(t,e,i){let s=i.query(t);if(null==s||"list"!==s.blotName||!il(e,"\n"))return e;let l=-1,r=t.parentNode;for(;null!=r;)["OL","UL"].includes(r.tagName)&&(l+=1),r=r.parentNode;return l<=0?e:e.reduce((t,e)=>e.insert?e.attributes&&"number"==typeof e.attributes.indent?t.push(e):t.insert(e.insert,{indent:l,...e.attributes||{}}):t,new P)}
3],["ol, ul",function(t,e,i){let s="OL"===t.tagName?"ordered":"bullet",l=t.getAttribute("data-checked");return l&&(s="true"===l?"checked":"unchecked"),is(e,"list",s,i)}],["pre",function(t,e,i){let s=i.query("code-block");return is(e,"code-block",!s||!("formats"in s)||"function"!=typeof s.formats||s.formats(t,i),i)}],["tr",function(t,e,i){let s=t.parentElement?.tagName==="TABLE"?t.parentElement:t.parentElement?.parentElement;return null!=s?is(e,"table",Array.from(s.querySelectorAll("tr")).indexOf(t)+1,i):e}],["b",ih("bold")],["i",ih("italic")],["strike",ih("strike")],["style",function(){return new P}]],it=[ek,e_].reduce((t,e)=>(t[e.keyName]=e,t),{}),ie=[eS,eI,eO,eP,eV,eK].reduce((t,e)=>(t[e.keyName]=e,t),{});class ii extends t9{static DEFAULTS={matchers:[]};constructor(t,e){super(t,e),this.quill.root.addEventListener("copy",t=>this.onCaptureCopy(t,!1)),this.quill.root.addEventListener("cut",t=>this.onCaptureCopy(t,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],e9.concat(this.options.matchers??[]).forEach(t=>{let[e,i]=t;this.addMatcher(e,i)})}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:i}=t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s[eM.blotName])return new P().insert(i||"",{[eM.blotName]:s[eM.blotName]});if(!e)return new P().insert(i||"",s);let l=this.convertHTML(e);return il(l,"\n")&&(null==l.ops[l.ops.length-1].attributes||s.table)?l.compose(new P().retain(l.length()-1).delete(1)):l}normalizeHTML(t){t.documentElement&&e8.forEach(e=>{e(t)})}convertHTML(t){let e=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(e);let i=e.body,s=new WeakMap,[l,r]=this.prepareMatching(i,s);return ia(this.quill.scroll,i,l,r,s)}dangerouslyPasteHTML(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eu.sources.API;if("string"==typeof t){let i=this.convert({html:t,text:""});this.quill.setContents(i,e),this.quill.setSelection(0,eu.sources.SILENT)}else{let s=this.convert({html:e,text:""});this.quill.updateContents(new P().retain(t).concat(s),i),this.quill.setSelection(t+s.length(),eu.sources.SILENT)}}onCaptureCopy(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault();let[i]=this.quill.selection.getRange();if(null==i)return;let{html:s,text:l}=this.onCopy(i,e);t.clipboardData?.setData("text/plain",l),t.clipboardData?.setData("text/html",s),e&&e1({range:i,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(t=>"#"!==t[0]).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();let e=this.quill.getSelection(!0);if(null==e)return;let i=t.clipboardData?.getData("text/html"),s=t.clipboardData?.getData("text/plain");if(!i&&!s){let e=t.clipboardData?.getData("text/uri-list");e&&(s=this.normalizeURIList(e))}let l=Array.from(t.clipboardData?.files||[]);if(!i&&l.length>0)return void this.quill.uploader.upload(e,l);if(i&&l.length>0){let t=new DOMParser().parseFromString(i,"text/html");if(1===t.body.childElementCount&&t.body.firstElementChild?.tagName==="IMG")return void this.quill.uploader.upload(e,l)}this.onPaste(e,{html:i,text:s})}onCopy(t){let e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:i,html:s}=e,l=this.quill.getFormat(t.index),r=this.convert({text:i,html:s},l);e7.log("onPaste",r,{text:i,html:s});let n=new P().retain(t.index).delete(t.length).concat(r);this.quill.updateContents(n,eu.sources.USER),this.quill.setSelection(n.length()-t.length,eu.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){let i=[],s=[];return this.matchers.forEach(l=>{let[r,n]=l;switch(r){case Node.TEXT_NODE:s.push(n);break;case Node.ELEMENT_NODE:i.push(n);break;default:Array.from(t.querySelectorAll(r)).forEach(t=>{if(e.has(t)){let i=e.get(t);i?.push(n)}else e.set(t,[n])})}}),[i,s]}}function is(t,e,i,s){return s.query(e)?t.reduce((t,s)=>s.insert?s.attributes&&s.attributes[e]?t.push(s):t.insert(s.insert,{...i?{[e]:i}:{},...s.attributes}):t,new P):t}function il(t,e){let i="";for(let s=t.ops.length-1;s>=0&&i.length<e.length;--s){let e=t.ops[s];if("string"!=typeof e.insert)break;i=e.insert+i}return i.slice(-1*e.length)===e}function ir(t,e){if(!(t instanceof Element))return!1;let i=e.query(t);return(!i||!(i.prototype instanceof B))&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())}let io=new WeakMap;
3function ia(t,e,i,s,l){return e.nodeType===e.TEXT_NODE?s.reduce((i,s)=>s(e,i,t),new P):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((r,n)=>{let o=ia(t,n,i,s,l);return n.nodeType===e.ELEMENT_NODE&&(o=i.reduce((e,i)=>i(n,e,t),o),o=(l.get(n)||[]).reduce((e,i)=>i(n,e,t),o)),r.concat(o)},new P):new P}function ih(t){return(e,i,s)=>is(i,t,!0,s)}function ic(t,e,i){if(!il(e,"\n")){if(ir(t,i)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return e.insert("\n");if(e.length()>0&&t.nextSibling){let s=t.nextSibling;for(;null!=s;){if(ir(s,i))return e.insert("\n");let t=i.query(s);if(t&&t.prototype instanceof tP)return e.insert("\n");s=s.firstChild}}}return e}class id extends t9{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,e){super(t,e),this.quill.on(eu.events.EDITOR_CHANGE,(t,e,i,s)=>{t===eu.events.SELECTION_CHANGE?e&&s!==eu.sources.SILENT&&(this.currentRange=e):t===eu.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&s!==eu.sources.USER?this.transform(e):this.record(e,i)),this.currentRange=ip(this.currentRange,e))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",t=>{"historyUndo"===t.inputType?(this.undo(),t.preventDefault()):"historyRedo"===t.inputType&&(this.redo(),t.preventDefault())})}change(t,e){if(0===this.stack[t].length)return;let i=this.stack[t].pop();if(!i)return;let s=this.quill.getContents(),l=i.delta.invert(s);this.stack[e].push({delta:l,range:ip(i.range,l)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,eu.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(0===t.ops.length)return;this.stack.redo=[];let i=t.invert(e),s=this.currentRange,l=Date.now();if(this.lastRecorded+this.options.delay>l&&this.stack.undo.length>0){let t=this.stack.undo.pop();t&&(i=i.compose(t.delta),s=t.range)}else this.lastRecorded=l;0!==i.length()&&(this.stack.undo.push({delta:i,range:s}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){iu(this.stack.undo,t),iu(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,eu.sources.USER);else{let e=function(t,e){let i,s=e.reduce((t,e)=>t+(e.delete||0),0),l=e.length()-s;
3return null!=(i=e.ops[e.ops.length-1])&&(null!=i.insert?"string"==typeof i.insert&&i.insert.endsWith("\n"):null!=i.attributes&&Object.keys(i.attributes).some(e=>null!=t.query(e,n.BLOCK)))&&(l-=1),l}(this.quill.scroll,t.delta);this.quill.setSelection(e,eu.sources.USER)}}}function iu(t,e){let i=e;for(let e=t.length-1;e>=0;e-=1){let s=t[e];t[e]={delta:i.transform(s.delta,!0),range:s.range&&ip(s.range,i)},i=s.delta.transform(i),0===t[e].delta.length()&&t.splice(e,1)}}function ip(t,e){if(!t)return t;let i=e.transformPosition(t.index);return{index:i,length:e.transformPosition(t.index+t.length)-i}}class im extends t9{constructor(t,e){super(t,e),t.root.addEventListener("drop",e=>{e.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(e.clientX,e.clientY);else if(document.caretPositionFromPoint){let t=document.caretPositionFromPoint(e.clientX,e.clientY);(i=document.createRange()).setStart(t.offsetNode,t.offset),i.setEnd(t.offsetNode,t.offset)}let s=i&&t.selection.normalizeNative(i);if(s){let i=t.selection.normalizedToRange(s);e.dataTransfer?.files&&this.upload(i,e.dataTransfer.files)}})}upload(t,e){let i=[];Array.from(e).forEach(t=>{t&&this.options.mimetypes?.includes(t.type)&&i.push(t)}),i.length>0&&this.options.handler.call(this,t,i)}}im.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){this.quill.scroll.query("image")&&Promise.all(e.map(t=>new Promise(e=>{let i=new FileReader;i.onload=()=>{e(i.result)},i.readAsDataURL(t)}))).then(e=>{let i=e.reduce((t,e)=>t.insert({image:e}),new P().retain(t.index).delete(t.length));this.quill.updateContents(i,tY.sources.USER),this.quill.setSelection(t.index+e.length,tY.sources.SILENT)})}};let ig=["insertText","insertReplacementText"];class ib extends t9{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",t=>{this.handleBeforeInput(t)}),/Android/i.test(navigator.userAgent)||t.on(eu.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){e1({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return!1;if(e){let i=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new P().retain(t.index).insert(e,i),eu.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,eu.sources.SILENT),!0}handleBeforeInput(t){var e;if(this.quill.composition.isComposing||t.defaultPrevented||!ig.includes(t.inputType))return;let i=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!i||!0===i.collapsed)return;let s="string"==typeof(e=t).data?e.data:e.dataTransfer?.types.includes("text/plain")?e.dataTransfer.getData("text/plain"):null;if(null==s)return;let l=this.quill.selection.normalizeNative(i),r=l?this.quill.selection.normalizedToRange(l):null;r&&this.replaceText(r,s)&&t.preventDefault()}handleCompositionStart(){let t=this.quill.getSelection();t&&this.replaceText(t)}}let iy=/Mac/i.test(navigator.platform);class iv extends t9{isListening=!1;selectionChangeDeadline=0;constructor(t,e){super(t,e),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,e){let{line:i,event:s}=e;if(!(i instanceof k)||!i.uiNode)return!0;let l="rtl"===getComputedStyle(i.domNode).direction;return!!l&&"ArrowRight"!==s.key||!l&&"ArrowLeft"!==s.key||(this.quill.setSelection(t.index-1,t.length+ +!!s.shiftKey,eu.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&("ArrowLeft"===t.key||"ArrowRight"===t.key||"ArrowUp"===t.key||"ArrowDown"===t.key||"Home"===t.key||iy&&"a"===t.key&&!0===t.ctrlKey||0)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+100,this.isListening)return;this.isListening=!0;let t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){let t=document.getSelection();if(!t)return;let e=t.getRangeAt(0);if(!0!==e.collapsed||0!==e.startOffset)return;let i=this.quill.scroll.find(e.startContainer);if(!(i instanceof k)||!i.uiNode)return;let s=document.createRange();s.setStartAfter(i.uiNode),s.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(s)}}eu.register({"blots/block":tj,"blots/block/embed":tP,"blots/break":tI,"blots/container":eN,"blots/cursor":t$,"blots/embed":ee,"blots/inline":t_,"blots/scroll":eA,"blots/text":tB,"modules/clipboard":ii,"modules/history":id,"modules/keyboard":eG,"modules/uploader":im,"modules/input":ib,"modules/uiNode":iv});class iN extends f{add(t,e){let i=0;if("+1"===e||"-1"===e){let s=this.value(t)||0;i="+1"===e?s+1:s-1}else"number"==typeof e&&(i=e);return 0===i?(this.remove(t),!0):super.add(t,i.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}let ix=new iN("indent","ql-indent",{scope:n.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class iE extends tj{static blotName="blockquote";static tagName="blockquote"}class iA extends tj{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}}class iq extends eN{}iq.blotName="list-container",iq.tagName="OL";class iw extends tj{static create(t){let e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){eu.register(iq)}constructor(t,e){super(t,e);const i=e.ownerDocument.createElement("span"),s=i=>{if(!t.isEnabled())return;let s=this.statics.formats(e,t);"checked"===s?(this.format("list","unchecked"),i.preventDefault()):"unchecked"===s&&(this.format("list","checked"),i.preventDefault())};i.addEventListener("mousedown",s),i.addEventListener("touchstart",s),this.attachUI(i)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}iw.blotName="list",iw.tagName="LI",iq.allowedChildren=[iw],iw.requiredContainer=iq;class ik extends t_{static blotName="bold";static tagName=["STRONG","B"];
3static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}let iL=ik;class iS extends iL{static blotName="italic";static tagName=["EM","I"]}class iT extends t_{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){let e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return iC(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("href",this.constructor.sanitize(e)):super.format(t,e)}}function iC(t,e){let i=document.createElement("a");i.href=t;let s=i.href.slice(0,i.href.indexOf(":"));return e.indexOf(s)>-1}class iO extends t_{static blotName="script";static tagName=["SUB","SUP"];static create(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):super.create(t)}static formats(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}class iR extends iL{static blotName="strike";static tagName=["S","STRIKE"]}class iI extends t_{static blotName="underline";static tagName="U"}class iB extends ee{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(null==window.katex)throw Error("Formula module requires KaTeX.");let e=super.create(t);return"string"==typeof t&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){let{formula:t}=this.value();return`<span>${t}</span>`}}let iM=["alt","height","width"];class iD extends B{static blotName="image";static tagName="IMG";static create(t){let e=super.create(t);return"string"==typeof t&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return iM.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return iC(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){iM.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}}let iU=["height","width"];class i_ extends tP{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){let e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return iU.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static sanitize(t){return iT.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){iU.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){let{video:t}=this.value();return`<a href="${t}">${t}</a>`}}let ij=new f("code-token","hljs",{scope:n.INLINE});class iP extends t_{static formats(t,e){for(;null!=t&&t!==e.domNode;){if(t.classList&&t.classList.contains(eM.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,i){super(t,e,i),ij.add(this.domNode,i)}format(t,e){t!==iP.blotName?super.format(t,e):e?ij.add(this.domNode,e):(ij.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),ij.value(this.domNode)||this.unwrap()}}iP.blotName="code-token",iP.className="ql-token";class iH extends eM{static create(t){let e=super.create(t);return"string"==typeof t&&e.setAttribute("data-language",t),e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),iP.blotName,!1),super.replaceWith(t,e)}}class iF extends eB{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===iH.blotName&&(this.forceNext=!0,this.children.forEac
3h(i=>{i.format(t,e)}))}formatAt(t,e,i,s){i===iH.blotName&&(this.forceNext=!0),super.formatAt(t,e,i,s)}highlight(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;let i=Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode),s=`${i.map(t=>t.textContent).join("\n")}
4`,l=iH.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==s){if(s.trim().length>0||null==this.cachedText){let e=this.children.reduce((t,e)=>t.concat(tH(e,!1)),new P),i=t(s,l);e.diff(i).reduce((t,e)=>{let{retain:i,attributes:s}=e;return i?(s&&Object.keys(s).forEach(e=>{[iH.blotName,iP.blotName].includes(e)&&this.formatAt(t,i,e,s[e])}),t+i):t},0)}this.cachedText=s,this.forceNext=!1}}html(t,e){let[i]=this.children.find(t),s=i?iH.formats(i.domNode):"plain";return`<pre data-language="${s}">
5${tD(this.code(t,e))}
6</pre>`}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){let t=iH.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}iF.allowedChildren=[iH],iH.requiredContainer=iF,iH.allowedChildren=[iP,t$,tB,tI];class i$ extends t9{static register(){eu.register(iP,!0),eu.register(iH,!0),eu.register(iF,!0)}constructor(t,e){if(super(t,e),null==this.options.hljs)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((t,e)=>{let{key:i}=e;return t[i]=!0,t},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(eu.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof iF))return;let e=this.quill.root.ownerDocument.createElement("select");
6this.options.languages.forEach(t=>{let{key:i,label:s}=t,l=e.ownerDocument.createElement("option");l.textContent=s,l.setAttribute("value",i),e.appendChild(l)}),e.addEventListener("change",()=>{t.format(iH.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),null==t.uiNode&&(t.attachUI(e),t.children.head&&(e.value=iH.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(eu.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(eu.sources.USER);let i=this.quill.getSelection();(null==t?this.quill.scroll.descendants(iF):[t]).forEach(t=>{t.highlight(this.highlightBlot,e)}),this.quill.update(eu.sources.SILENT),null!=i&&this.quill.setSelection(i,eu.sources.SILENT)}highlightBlot(t){var e,i,s;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(l=this.languages[l]?l:"plain"))return tD(t).split("\n").reduce((t,e,i)=>(0!==i&&t.insert("\n",{[eM.blotName]:l}),t.insert(e)),new P);let r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(eM.className),e=this.options.hljs,i=l,s=t,r.innerHTML="string"==typeof e.versionString&&parseInt(e.versionString.split(".")[0],10)>=11?e.highlight(s,{language:i}).value:e.highlight(i,s).value,ia(this.quill.scroll,r,[(t,e)=>{let i=ij.value(t);return i?e.compose(new P().retain(e.length(),{[iP.blotName]:i})):e}],[(t,e)=>t.data.split("\n").reduce((t,e,i)=>(0!==i&&t.insert("\n",{[eM.blotName]:l}),t.insert(e)),e)],new WeakMap)}}i$.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class iV extends tj{static blotName="table";static tagName="TD";static create(t){let e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",iW()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===iV.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class iz extends eN{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){let t=this.children.head.formats(),e=this.children.tail.formats(),i=this.next.children.head.formats(),s=this.next.children.tail.formats();return t.table===e.table&&t.table===i.table&&t.table===s.table}return!1}optimize(t){super.optimize(t),this.children.forEach(t=>{if(null==t.next)return;let e=t.formats(),i=t.next.formats();if(e.table!==i.table){let e=this.splitAfter(t);e&&e.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class iK extends eN{static blotName="table-body";static tagName="TBODY"}class iZ extends eN{static blotName="table-container";static tagName="TABLE";balanceCells(){let t=this.descendants(iz),e=t.reduce((t,e)=>Math.max(e.children.length,t),0);t.forEach(t=>{Array(e-t.children.length).fill(0).forEach(()=>{let e;null!=t.children.head&&(e=iV.formats(t.children.head.domNode));let i=this.scroll.create(iV.blotName,e);t.appendChild(i),i.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){let[e]=this.descendant(iK);null!=e&&null!=e.children.head&&e.children.forEach(e=>{let i=e.children.at(t);null!=i&&i.remove()})}insertColumn(t){let[e]=this.descendant(iK);null!=e&&null!=e.children.head&&e.children.forEach(e=>
6{let i=e.children.at(t),s=iV.formats(e.children.head.domNode),l=this.scroll.create(iV.blotName,s);e.insertBefore(l,i)})}insertRow(t){let[e]=this.descendant(iK);if(null==e||null==e.children.head)return;let i=iW(),s=this.scroll.create(iz.blotName);e.children.head.children.forEach(()=>{let t=this.scroll.create(iV.blotName,i);s.appendChild(t)});let l=e.children.at(t);e.insertBefore(s,l)}rows(){let t=this.children.head;return null==t?[]:t.children.map(t=>t)}}function iW(){let t=Math.random().toString(36).slice(2,6);return`row-${t}`}iZ.allowedChildren=[iK],iK.requiredContainer=iZ,iK.allowedChildren=[iz],iz.requiredContainer=iK,iz.allowedChildren=[iV],iV.requiredContainer=iz;class iG extends t9{static register(){eu.register(iV),eu.register(iz),eu.register(iK),eu.register(iZ)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(iZ).forEach(t=>{t.balanceCells()})}deleteColumn(){let[t,,e]=this.getTable();null!=e&&(t.deleteColumn(e.cellOffset()),this.quill.update(eu.sources.USER))}deleteRow(){let[,t]=this.getTable();null!=t&&(t.remove(),this.quill.update(eu.sources.USER))}deleteTable(){let[t]=this.getTable();if(null==t)return;let e=t.offset();t.remove(),this.quill.update(eu.sources.USER),this.quill.setSelection(e,eu.sources.SILENT)}getTable(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==t)return[null,null,null,-1];let[e,i]=this.quill.getLine(t.index);if(null==e||e.statics.blotName!==iV.blotName)return[null,null,null,-1];let s=e.parent;return[s.parent.parent,s,e,i]}insertColumn(t){let e=this.quill.getSelection();if(!e)return;let[i,s,l]=this.getTable(e);if(null==l)return;let r=l.cellOffset();i.insertColumn(r+t),this.quill.update(eu.sources.USER);let n=s.rowOffset();0===t&&(n+=1),this.quill.setSelection(e.index+n,e.length,eu.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){let e=this.quill.getSelection();if(!e)return;let[i,s,l]=this.getTable(e);if(null==l)return;let r=s.rowOffset();i.insertRow(r+t),this.quill.update(eu.sources.USER),t>0?this.quill.setSelection(e,eu.sources.SILENT):this.quill.setSelection(e.index+s.children.length,e.length,eu.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){let i=this.quill.getSelection();if(null==i)return;let s=Array(t).fill(0).reduce(t=>{let i=Array(e).fill("\n").join("");return t.insert(i,{table:iW()})},new P().retain(i.index));this.quill.updateContents(s,eu.sources.USER),this.quill.setSelection(i.index,eu.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(eu.events.SCROLL_OPTIMIZE,t=>{t.some(t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(eu.events.TEXT_CHANGE,(t,e,i)=>{i===eu.sources.USER&&this.balanceTables()}),!0))})}}let iX=tG("quill:toolbar");class iY extends t9{constructor(t,e){if(super(t,e),Array.isArray(this.options.container)){const e=document.createElement("div");e.setAttribute("role","toolbar"),function(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(e=>{let i=document.createElement("span");i.classList.add("ql-formats"),e.forEach(t=>{if("string"==typeof t)iQ(i,t);else{var e,s,l;let r,n=Object.keys(t)[0],o=t[n];Array.isArray(o)?(e=i,s=n,l=o,(r=document.createElement("select")).classList.add(`ql-${s}`),l.forEach(t=>{let e=document.createElement("option");!1!==t?e.setAttribute("value",String(t)):e.setAttribute("selected","selected"),r.appendChild(e)}),e.appendChild(r)):iQ(i,n,o)}}),t.appendChild(i)})}(e,this.options.container),t.container?.parentNode?.insertBefore(e,t.container),this.container=e}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement))return void iX.error("Container required for toolbar",this.options);this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(t=>{let e=this.options.handlers?.[t];e&&this.addHandler(t,e)}),Array.from(this.container.querySelectorAll("button, select")).forEac
6h(t=>{this.attach(t)}),this.quill.on(eu.events.EDITOR_CHANGE,()=>{let[t]=this.quill.selection.getRange();this.update(t)})}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(t=>0===t.indexOf("ql-"));if(!e)return;if(e=e.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[e]&&null==this.quill.scroll.query(e))return void iX.warn("ignoring attaching to nonexistent format",e,t);let i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,i=>{let s;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;let e=t.options[t.selectedIndex];s=!e.hasAttribute("selected")&&(e.value||!1)}else s=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();this.quill.focus();let[l]=this.quill.selection.getRange();if(null!=this.handlers[e])this.handlers[e].call(this,s);else if(this.quill.scroll.query(e).prototype instanceof B){if(!(s=prompt(`Enter ${e}`)))return;this.quill.updateContents(new P().retain(l.index).delete(l.length).insert({[e]:s}),eu.sources.USER)}else this.quill.format(e,s,eu.sources.USER);this.update(l)}),this.controls.push([e,t])}update(t){let e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(i=>{let[s,l]=i;if("SELECT"===l.tagName){let i=null;if(null==t)i=null;else if(null==e[s])i=l.querySelector("option[selected]");else if(!Array.isArray(e[s])){let t=e[s];"string"==typeof t&&(t=t.replace(/"/g,'\\"')),i=l.querySelector(`option[value="${t}"]`)}null==i?(l.value="",l.selectedIndex=-1):i.selected=!0}else if(null==t)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){let t=e[s],i=t===l.getAttribute("value")||null!=t&&t.toString()===l.getAttribute("value")||null==t&&!l.getAttribute("value");l.classList.toggle("ql-active",i),l.setAttribute("aria-pressed",i.toString())}else{let t=null!=e[s];l.classList.toggle("ql-active",t),l.setAttribute("aria-pressed",t.toString())}})}}function iQ(t,e,i){let s=document.createElement("button");s.setAttribute("type","button"),s.classList.add(`ql-${e}`),s.setAttribute("aria-pressed","false"),null!=i?(s.value=i,s.setAttribute("aria-label",`${e}: ${i}`)):s.setAttribute("aria-label",e),t.appendChild(s)}iY.DEFAULTS={},iY.DEFAULTS={container:null,handlers:{clean(){let t=this.quill.getSelection();null!=t&&(0===t.length?Object.keys(this.quill.getFormat()).forEach(t=>{null!=this.quill.scroll.query(t,n.INLINE)&&this.quill.format(t,!1,eu.sources.USER)}):this.quill.removeFormat(t.index,t.length,eu.sources.USER))},direction(t){let{align:e}=this.quill.getFormat();"rtl"===t&&null==e?this.quill.format("align","right",eu.sources.USER):t||"right"!==e||this.quill.format("align",!1,eu.sources.USER),this.quill.format("direction",t,eu.sources.USER)},indent(t){let e=this.quill.getSelection(),i=this.quill.getFormat(e),s=parseInt(i.indent||0,10);if("+1"===t||"-1"===t){let e="+1"===t?1:-1;"rtl"===i.direction&&(e*=-1),this.quill.format("indent",s+e,eu.sources.USER)}},link(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,eu.sources.USER)},list(t){let e=this.quill.getSelection(),i=this.quill.getFormat(e);"check"===t?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,eu.sources.USER):this.quill.format("list","unchecked",eu.sources.USER):this.quill.format("list",t,eu.sources.USER)}}};let iJ='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',i1={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<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"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><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"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/>
6<path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<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 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"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:iJ,"code-block":iJ
vendor: 12,560 bytes, line 6
6,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<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"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><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"/></svg>',header:{1:'<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>',2:'<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>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,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>',4:'<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,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,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>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><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 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"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><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 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 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"/></svg>'},script:{sub:'<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>',super:'<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>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><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 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"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<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"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'}
6,i0=0;function i2(t,e){t.setAttribute(e,`${"true"!==t.getAttribute(e)}`)}class i5{constructor(t){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",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),i2(this.label,"aria-expanded"),i2(this.options,"aria-hidden")}buildItem(t){let e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");let i=t.getAttribute("value");return i&&e.setAttribute("data-value",i),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.selectItem(e,!0),t.preventDefault();break;case"Escape":this.escape(),t.preventDefault()}}),e}buildLabel(){let t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","fal
6se"),this.container.appendChild(t),t}buildOptions(){let t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${i0}`,i0+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{let i=this.buildItem(e);t.appendChild(i),!0===e.selected&&this.selectItem(i)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.container.querySelector(".ql-selected");t===i||(null!=i&&i.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){let e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);let e=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}let i4=i5;class i3 extends i4{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(t=>{t.classList.add("ql-primary")})}buildItem(t){let e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);let i=this.label.querySelector(".ql-color-label"),s=t&&t.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=s:i.style.fill=s)}}class i6 extends i4{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(t=>{t.innerHTML=e[t.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);let i=t||this.defaultItem;if(null!=i){if(this.label.innerHTML===i.innerHTML)return;this.label.innerHTML=i.innerHTML}}}class i8{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(t=>{let{overflowY:e}=getComputedStyle(t,null);return"visible"!==e&&"clip"!==e})(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){let e=t.left+t.width/2-this.root.offsetWidth/2,i=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${i}px`,this.root.classList.remove("ql-flip");let s=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect(),r=0;if(l.right>s.right&&(r=s.right-l.right,this.root.style.left=`${e+r}px`),l.left<s.left&&(r=s.left-l.left,this.root.style.left=`${e+r}px`),l.bottom>s.bottom){let e=l.bottom-l.top,s=t.bottom-t.top+e;this.root.style.top=`${i-s}px`,this.root.classList.add("ql-flip")}return r}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}let i7=i8,i9=[!1,"center","right","justify"],st=["#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"],se=[!1,"serif","monospace"],si=["1","2","3",!1],ss=["small",!1,"large","huge"];class sl extends el{constructor(t,e){super(t,e);const i=e=>{document.body.contains(t.root)?(null==this.tooltip||this.tooltip.root.contains(e.target)||document.activeElement===this.tooltip.textbox||this.quill.hasFocus()||this.tooltip.hide(),null!=this.pickers&&this.pickers.forEac
6h(t=>{t.container.contains(e.target)||t.close()})):document.body.removeEventListener("click",i)};t.emitter.listenDOM("click",document.body,i)}addModule(t){let e=super.addModule(t);return"toolbar"===t&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(t=>{(t.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&null!=e[i=i.slice(3)])if("direction"===i)t.innerHTML=e[i][""]+e[i].rtl;else if("string"==typeof e[i])t.innerHTML=e[i];else{let s=t.value||"";null!=s&&e[i][s]&&(t.innerHTML=e[i][s])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(t=>{if(t.classList.contains("ql-align")&&(null==t.querySelector("option")&&sn(t,i9),"object"==typeof e.align))return new i6(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){let i=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&sn(t,st,"background"===i?"#ffffff":"#000000"),new i3(t,e[i])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?sn(t,se):t.classList.contains("ql-header")?sn(t,si):t.classList.contains("ql-size")&&sn(t,ss)),new i4(t)});let i=()=>{this.pickers.forEach(t=>{t.update()})};this.quill.on(tY.events.EDITOR_CHANGE,i)}}sl.DEFAULTS=(0,r.A)({},el.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",()=>{let e=this.quill.getSelection(!0);this.quill.uploader.upload(e,t.files),t.value=""}),this.container.appendChild(t)),t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class sr extends i7{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{"Enter"===t.key?(this.save(),t.preventDefault()):"Escape"===t.key&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");let i=this.quill.getBounds(this.quill.selection.savedRange);null!=i&&this.position(i),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{let{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,tY.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,tY.sources.USER)),this.quill.root.scrollTop=e;break}case"video":var e;let i;t=(i=(e=t).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?`${i[1]||"https"}://www.youtube.com/embed/${i[2]}?showinfo=0`:(i=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${i[1]||"https"}://player.vimeo.com/video/${i[2]}/`:e;case"formula":{if(!t)break;let e=this.quill.getSelection(!0);if(null!=e){let i=e.index+e.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),t,tY.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",tY.sources.USER),this.quill.setSelection(i+2,tY.sources.USER)}}}this.textbox.value="",this.hide()}}function sn(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(e=>{let s=document.createElement("option");e===i?s.setAttribute("selected","selected"):s.setAttribute("value",String(e)),t.appendChild(s)})}let so=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class sa extends sr{static 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>';constructor(t,e){super(t,e),this.quill.on(tY.events.EDITOR_CHANGE,(t,e,i,s)=>{if(t===tY.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&s===tY.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;let t=this.quill.getLines(e.index,e.length);if(1===t.length){let t=this.quill.getBounds(e);null!=t&&this.position(t)}else{let i=t[t.length-1],s=this.quill.getIndex(i),l=Math.min(i.length()-1,e.index+e.length-s),r=this.quill.getBounds(new tJ(s,l));null!=r&&this.position(r)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(tY.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;let t=this.quill.getSelection();if(null!=t){let e=this.quill.getBounds(t);null!=e&&this.position(e)}},1)})}cancel(){this.show()}position(t){let e=super.position(t),i=this.root.querySelector(".ql-tooltip-arrow");return i.style.marginLeft="",0!==e&&(i.style.marginLeft=`${-1*e-i.offsetWidth/2}px`),e}}class sh extends sl{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=so),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new sa(this.quill,this.options.bounds),null!=t.container&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),i1),this.buildPickers(t.container.querySelectorAll("select"),i1))}}sh.DEFAULTS=(0,r.A)({},sl.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,eu.sources.USER)}}}}});let sc=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class sd extends sr{static TEMPLATE='<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-action"></a><a class="ql-remove"></a>';preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(null!=this.linkRange){let t=this.linkRange;this.restoreFocus(),this.quill.formatText(t,"link",!1,tY.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(tY.events.SELECTION_CHANGE,(t,e,i)=>{if(null!=t){if(0===t.length&&i===tY.sources.USER){let[e,i]=this.quill.scroll.descendant(iT,t.index);if(null!=e){this.linkRange=new tJ(t.index-i,e.length());let s=iT.formats(e.domNode);this.preview.textContent=s,this.preview.setAttribute("href",s),this.show();let l=this.quill.getBounds(this.linkRange);null!=l&&this.position(l);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class su extends sl{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=sc),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){null!=t.container&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),i1),this.buildPickers(t.container.querySelectorAll("select"),i1),this.tooltip=new sd(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,i)=>{t.handlers.link.call(t,!i.format.link)}))}}su.DEFAULTS=(0,r.A)({},sl.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){let t=this.quill.getSelection();if(null==t||0===t.length)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e=`mailto:${e}`);let{tooltip:i}=this.quill.theme;i.edit("link",e)}else this.quill.format("link",!1,eu.sources.USER)}}}}}),eu.register({"attributors/attribute/direction":e_,"attributors/class/align":eL,"attributors/class/background":eR,"attributors/class/color":eC,"attributors/class/direction":ej,"attributors/class/font":eF,"attributors/class/size":ez,"attributors/style/align":eS,"attributors/style/background":eI,"attributors/style/color":eO,"attributors/style/direction":eP,"attributors/style/font":eV,"attributors/style/size":eK},!0),eu.register({"formats/align":eL,"formats/direction":ej,"formats/indent":ix,"formats/background":eI,"formats/color":eO,"formats/font":eF,"formats/size":ez,"formats/blockquote":iE,"formats/code-block":eM,"formats/header":iA,"formats/list":iw,"formats/bold":iL,"formats/code":eD,"formats/ital
6ic":iS,"formats/link":iT,"formats/script":iO,"formats/strike":iR,"formats/underline":iI,"formats/formula":iB,"formats/image":iD,"formats/video":i_,"modules/syntax":i$,"modules/table":iG,"modules/toolbar":iY,"themes/bubble":sh,"themes/snow":su,"ui/icons":i1,"ui/picker":i4,"ui/icon-picker":i6,"ui/color-picker":i3,"ui/tooltip":i7},!0);let sf=eu},66852:t=>{var e=Object.prototype.hasOwnProperty,i="~";function s(){}function l(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function r(t,e,s,r,n){if("function"!=typeof s)throw TypeError("The listener must be a function");var o=new l(s,r||t,n),a=i?i+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],o]:t._events[a].push(o):(t._events[a]=o,t._eventsCount++),t}function n(t,e){0==--t._eventsCount?t._events=new s:delete t._events[e]}function o(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(i=!1)),o.prototype.eventNames=function(){var t,s,l=[];if(0===this._eventsCount)return l;for(s in t=this._events)e.call(t,s)&&l.push(i?s.slice(1):s);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(t)):l},o.prototype.listeners=function(t){var e=i?i+t:t,s=this._events[e];if(!s)return[];if(s.fn)return[s.fn];for(var l=0,r=s.length,n=Array(r);l<r;l++)n[l]=s[l].fn;return n},o.prototype.listenerCount=function(t){var e=i?i+t:t,s=this._events[e];return s?s.fn?1:s.length:0},o.prototype.emit=function(t,e,s,l,r,n){var o=i?i+t:t;if(!this._events[o])return!1;var a,h,c=this._events[o],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,s),!0;case 4:return c.fn.call(c.context,e,s,l),!0;case 5:return c.fn.call(c.context,e,s,l,r),!0;case 6:return c.fn.call(c.context,e,s,l,r,n),!0}for(h=1,a=Array(d-1);h<d;h++)a[h-1]=arguments[h];c.fn.apply(c.context,a)}else{var u,f=c.length;for(h=0;h<f;h++)switch(c[h].once&&this.removeListener(t,c[h].fn,void 0,!0),d){case 1:c[h].fn.call(c[h].context);break;case 2:c[h].fn.call(c[h].context,e);break;case 3:c[h].fn.call(c[h].context,e,s);break;case 4:c[h].fn.call(c[h].context,e,s,l);break;default:if(!a)for(u=1,a=Array(d-1);u<d;u++)a[u-1]=arguments[u];c[h].fn.apply(c[h].context,a)}}return!0},o.prototype.on=function(t,e,i){return r(this,t,e,i,!1)},o.prototype.once=function(t,e,i){return r(this,t,e,i,!0)},o.prototype.removeListener=function(t,e,s,l){var r=i?i+t:t;if(!this._events[r])return this;if(!e)return n(this,r),this;var o=this._events[r];if(o.fn)o.fn!==e||l&&!o.once||s&&o.context!==s||n(this,r);else{for(var a=0,h=[],c=o.length;a<c;a++)(o[a].fn!==e||l&&!o[a].once||s&&o[a].context!==s)&&h.push(o[a]);h.length?this._events[r]=1===h.length?h[0]:h:n(this,r)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&n(this,e)):(this._events=new s,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=i,o.EventEmitter=o,t.exports=o}}]);
7//# sourceMappingURL=4095.d7e810a0639c375c.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.