diff --git a/assets/index-lCDAlMZD.js b/assets/index-dMYkArDA.js similarity index 87% rename from assets/index-lCDAlMZD.js rename to assets/index-dMYkArDA.js index d85d4563..74903612 100644 --- a/assets/index-lCDAlMZD.js +++ b/assets/index-dMYkArDA.js @@ -94,7 +94,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `),u&&h==d.nodeValue.length)for(let p=d,m;p;p=p.parentNode){if(m=p.nextSibling){m.nodeName=="BR"&&(s=c={node:m.parentNode,offset:Co(m)+1});break}let A=p.pmViewDesc;if(A&&A.node&&A.node.isBlock)break}}else{let p=d.childNodes[h-1];u=p&&(p.nodeName=="BR"||p.contentEditable=="false")}}if(Ia&&l.focusNode&&l.focusNode!=c.node&&l.focusNode.nodeType==1){let d=l.focusNode.childNodes[l.focusOffset];d&&d.contentEditable=="false"&&(o=!0)}if(!(o||u&&Eo)&&Xu(s.node,s.offset,l.anchorNode,l.anchorOffset)&&Xu(c.node,c.offset,l.focusNode,l.focusOffset))return;let f=!1;if((l.extend||t==n)&&!u){l.collapse(s.node,s.offset);try{t!=n&&l.extend(c.node,c.offset),f=!0}catch{}}if(!f){if(t>n){let h=s;s=c,c=h}let d=document.createRange();d.setEnd(c.node,c.offset),d.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(d)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,o=0;o=r:tr){let s=r+i.border,c=a-i.border;if(t>=s&&n<=c){this.dirty=t==r||n==a?ou:HO,t==s&&n==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=vs:i.markDirty(t-s,n-s);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?ou:vs}r=a}this.dirty=ou}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?ou:HO;n.dirty{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,i=this}matchesWidget(t){return this.dirty==ji&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Oie extends Up{constructor(t,n,r,o){super(t,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Wu extends Up{constructor(t,n,r,o){super(t,[],r,o),this.mark=n}static create(t,n,r,o){let i=o.nodeViews[n.type.name],a=i&&i(n,o,r);return(!a||!a.dom)&&(a=zs.renderSpec(document,n.type.spec.toDOM(n,r))),new Wu(t,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&vs||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=vs&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=ji){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(i=z3(i,0,t,r));for(let s=0;s{if(!c)return a;if(c.parent)return c.parent.posBeforeChild(c)},r,o),u=l&&l.dom,f=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=zs.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let d=u;return u=CI(u,r,n),l?c=new Tie(t,n,r,o,u,f||null,d,l,i,a+1):n.isText?new c2(t,n,r,o,u,d,i):new cc(t,n,r,o,u,f||null,d,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>st.empty)}return t}matchesNode(t,n,r){return this.dirty==ji&&t.eq(this.node)&&J3(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,o=n,i=t.composing?this.localCompositionInfo(t,n):null,a=i&&i.pos>-1?i:null,s=i&&i.pos<0,c=new Nie(this,a&&a.node,t);Iie(this.node,this.innerDeco,(l,u,f)=>{l.spec.marks?c.syncToMarks(l.spec.marks,r,t):l.type.side>=0&&!f&&c.syncToMarks(u==this.node.childCount?In.none:this.node.child(u).marks,r,t),c.placeWidget(l,t,o)},(l,u,f,d)=>{c.syncToMarks(l.marks,r,t);let h;c.findNodeMatch(l,u,f,d)||s&&t.state.selection.from>o&&t.state.selection.to-1&&c.updateNodeAt(l,u,f,h,t)||c.updateNextNode(l,u,f,t,d,o)||c.addNode(l,u,f,t,o),o+=l.nodeSize}),c.syncToMarks([],r,t),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==ou)&&(a&&this.protectLocalComposition(t,a),NI(this.contentDOM,this.children,t),Pd&&Fie(this.dom))}localCompositionInfo(t,n){let{from:r,to:o}=t.state.selection;if(!(t.state.selection instanceof Xn)||rn+this.node.content.size)return null;let i=t.domSelectionRange(),a=_ie(i.focusNode,i.focusOffset);if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let s=a.nodeValue,c=Eie(this.node.content,s,r-n,o-n);return c<0?null:{node:a,pos:c,text:s}}else return{node:a,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new Oie(this,i,n,o);t.input.compositionNodes.push(a),this.children=z3(this.children,r,r+o.length,t,a)}update(t,n,r,o){return this.dirty==vs||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,o),!0)}updateInner(t,n,r,o){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=ji}updateOuterDeco(t){if(J3(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=PI(this.dom,this.nodeDOM,G3(this.outerDeco,this.node,n),G3(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function GO(e,t,n,r,o){CI(r,t,e);let i=new cc(void 0,e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class c2 extends cc{constructor(t,n,r,o,i,a,s){super(t,n,r,o,i,null,a,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,o){return this.dirty==vs||this.dirty!=ji&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=ji||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=t,this.dirty=ji,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let o=this.node.cut(t,n),i=document.createTextNode(o.text);return new c2(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=vs)}get domAtom(){return!1}}class kI extends Up{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==ji&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Tie extends cc{constructor(t,n,r,o,i,a,s,c,l,u){super(t,n,r,o,i,a,s,l,u),this.spec=c}update(t,n,r,o){if(this.dirty==vs)return!1;if(this.spec.update){let i=this.spec.update(t,n,r);return i&&this.updateInner(t,n,r,o),i}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,o){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function NI(e,t,n){let r=e.firstChild,o=!1;for(let i=0;i>1,a=Math.min(i,t.length);for(;o-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let c=Wu.create(this.top,t[i],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(t,n,r,o){let i=-1,a;if(o>=this.preMatch.index&&(a=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,r))i=this.top.children.indexOf(a,this.index);else for(let s=this.index,c=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let l=n.children[r-1];if(l instanceof Wu)n=l,r=l.children.length;else{s=l,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=s.node;if(c){if(c!=e.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}function Cie(e,t){return e.type.side-t.type.side}function Iie(e,t,n,r){let o=t.locals(e),i=0;if(o.length==0){for(let l=0;li;)s.push(o[a++]);let p=i+d.nodeSize;if(d.isText){let A=p;a!A.inline):s.slice();r(d,m,t.forChild(i,d),h),i=p}}function Fie(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function _ie(e,t){for(;;){if(e.nodeType==3)return e;if(e.nodeType==1&&t>0){if(e.childNodes.length>t&&e.childNodes[t].nodeType==3)return e.childNodes[t];e=e.childNodes[t-1],t=rs(e)}else if(e.nodeType==1&&t=n){if(i>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let l=s=0&&l+t.length+s>=n)return s+l;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function z3(e,t,n,r,o){let i=[];for(let a=0,s=0;a=n||u<=t?i.push(c):(ln&&i.push(c.slice(n-l,c.size,r)))}return i}function l5(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),i=o&&o.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),c,l;if(l2(n)){for(c=s;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&Yt.isSelectable(u)&&o.parent&&!(u.isInline&&aie(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;l=new Yt(a==f?s:r.resolve(f))}}else{let u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;c=r.resolve(u)}if(!l){let u=t=="pointer"||e.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=o)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!II(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Wie(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,Co(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&ni&&lc<=11&&(r.disabled=!0,r.disabled=!1)}function FI(e,t){if(t instanceof Yt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(qO(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else qO(e)}function qO(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function c5(e,t,n,r){return e.someProp("createSelectionBetween",o=>o(e,t,n))||Xn.between(t,n,r)}function eT(e){return e.editable&&!e.hasFocus()?!1:_I(e)}function _I(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Vie(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Xu(t.node,t.offset,n.anchorNode,n.anchorOffset)}function $3(e,t){let{$anchor:n,$head:r}=e.selection,o=t>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&xn.findFrom(i,t)}function Bl(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function tT(e,t,n){let r=e.state.selection;if(r instanceof Xn)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(o.pos+i.nodeSize*(t<0?-1:1));return Bl(e,new Xn(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let o=$3(e.state,t);return o&&o instanceof Yt?Bl(e,o):!1}else if(!(Ki&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter,a;if(!i||i.isText)return!1;let s=t<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(a=e.docView.descAt(s))&&!a.contentDOM?Yt.isSelectable(i)?Bl(e,new Yt(t<0?e.state.doc.resolve(o.pos-i.nodeSize):o)):Vp?Bl(e,new Xn(e.state.doc.resolve(t<0?s:s+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Yt&&r.node.isInline)return Bl(e,new Xn(t>0?r.$to:r.$from));{let o=$3(e.state,t);return o?Bl(e,o):!1}}}function eg(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Oh(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function wf(e,t){return t<0?Uie(e):Yie(e)}function Uie(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=!1;for(Ia&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Oh(s,-1))o=n,i=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(EI(n))break;{let s=n.previousSibling;for(;s&&Oh(s,-1);)o=n.parentNode,i=Co(s),s=s.previousSibling;if(s)n=s,r=eg(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?j3(e,n,r):o&&j3(e,o,i)}function Yie(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o=eg(n),i,a;for(;;)if(r{e.state==o&&nl(e)},50)}function nT(e,t){let n=e.state.doc.resolve(t);if(!(po||uie)&&n.parent.inlineContent){let o=e.coordsAtPos(t);if(t>n.start()){let i=e.coordsAtPos(t-1),a=(i.top+i.bottom)/2;if(a>o.top&&a1)return i.lefto.top&&a1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function rT(e,t,n){let r=e.state.selection;if(r instanceof Xn&&!r.empty||n.indexOf("s")>-1||Ki&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=$3(e.state,t);if(a&&a instanceof Yt)return Bl(e,a)}if(!o.parent.inlineContent){let a=t<0?o:i,s=r instanceof qo?xn.near(a,t):xn.findFrom(a,t);return s?Bl(e,s):!1}return!1}function oT(e,t){if(!(e.state.selection instanceof Xn))return!0;let{$head:n,$anchor:r,empty:o}=e.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let a=e.state.tr;return t<0?a.delete(n.pos-i.nodeSize,n.pos):a.delete(n.pos,n.pos+i.nodeSize),e.dispatch(a),!0}return!1}function iT(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Bie(e){if(!Eo||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;iT(e,r,"true"),setTimeout(()=>iT(e,r,"false"),20)}return!1}function Die(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function Kie(e,t){let n=t.keyCode,r=Die(t);if(n==8||Ki&&n==72&&r=="c")return oT(e,-1)||wf(e,-1);if(n==46&&!t.shiftKey||Ki&&n==68&&r=="c")return oT(e,1)||wf(e,1);if(n==13||n==27)return!0;if(n==37||Ki&&n==66&&r=="c"){let o=n==37?nT(e,e.state.selection.from)=="ltr"?-1:1:-1;return tT(e,o,r)||wf(e,o)}else if(n==39||Ki&&n==70&&r=="c"){let o=n==39?nT(e,e.state.selection.from)=="ltr"?1:-1:1;return tT(e,o,r)||wf(e,o)}else{if(n==38||Ki&&n==80&&r=="c")return rT(e,-1,r)||wf(e,-1);if(n==40||Ki&&n==78&&r=="c")return Bie(e)||rT(e,1,r)||wf(e,1);if(r==(Ki?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function XI(e,t){e.someProp("transformCopied",h=>{t=h(t,e)});let n=[],{content:r,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let a=e.someProp("clipboardSerializer")||zs.fromSchema(e.state.schema),s=ZI(),c=s.createElement("div");c.appendChild(a.serializeFragment(r,{document:s}));let l=c.firstChild,u,f=0;for(;l&&l.nodeType==1&&(u=QI[l.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let p=s.createElement(u[h]);for(;c.firstChild;)p.appendChild(c.firstChild);c.appendChild(p),f++}l=c.firstChild}l&&l.nodeType==1&&l.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let d=e.someProp("clipboardTextSerializer",h=>h(t,e))||t.content.textBetween(0,t.content.size,` `);return{dom:c,text:d}}function WI(e,t,n,r,o){let i=o.parent.type.spec.code,a,s;if(!n&&!t)return null;let c=t&&(r||i||!n);if(c){if(e.someProp("transformPastedText",d=>{t=d(t,i||r,e)}),i)return t?new Rt(st.from(e.state.schema.text(t.replace(/\r\n?/g,` -`))),0,0):Rt.empty;let f=e.someProp("clipboardTextParser",d=>d(t,o,r,e));if(f)s=f;else{let d=o.marks(),{schema:h}=e.state,p=zs.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let A=a.appendChild(document.createElement("p"));m&&A.appendChild(p.serializeNode(h.text(m,d)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=Jie(n),Vp&&zie(a);let l=a&&a.querySelector("[data-pm-slice]"),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let d=a.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;a=d}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||xd.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(c||u),context:o,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!Hie.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)s=$ie(aT(s,+u[1],+u[2]),u[4]);else if(s=Rt.maxOpen(Gie(s.content,o),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f{s=f(s,e)}),s}const Hie=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Gie(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let o=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(s=>{if(!a)return;let c=o.findWrapping(s.type),l;if(!c)return a=null;if(l=a.length&&i.length&&UI(c,i,s,a[a.length-1],0))a[a.length-1]=l;else{a.length&&(a[a.length-1]=YI(a[a.length-1],i.length));let u=VI(s,c);a.push(u),o=o.matchType(u.type),i=c}}),a)return st.from(a)}return e}function VI(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,st.from(e));return e}function UI(e,t,n,r,o){if(o1&&(i=0),o=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(st.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function aT(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=ZI().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),o;if((o=r&&QI[r[1].toLowerCase()])&&(e=o.map(i=>"<"+i+">").join("")+e+o.map(i=>"").reverse().join("")),n.innerHTML=e,o)for(let i=0;i=0;s-=2){let c=n.nodes[r[s]];if(!c||c.hasRequiredAttrs())break;o=st.from(c.create(r[s+1],o)),i++,a++}return new Rt(o,i,a)}const Xo={},Wo={},jie={touchstart:!0,touchmove:!0};class qie{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function eae(e){for(let t in Xo){let n=Xo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{nae(e,r)&&!u5(e,r)&&(e.editable||!(r.type in Wo))&&n(e,r)},jie[t]?{passive:!0}:void 0)}Eo&&e.dom.addEventListener("input",()=>null),ex(e)}function nc(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function tae(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function ex(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>u5(e,r))})}function u5(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function nae(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function rae(e,t){!u5(e,t)&&Xo[t.type]&&(e.editable||!(t.type in Wo))&&Xo[t.type](e,t)}Wo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!DI(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(wa&&po&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Pd&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",o=>o(e,qc(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||Kie(e,n)?n.preventDefault():nc(e,"key")};Wo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Wo.keypress=(e,t)=>{let n=t;if(DI(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ki&&n.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Xn)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",i=>i(e,r.$from.pos,r.$to.pos,o))&&e.dispatch(e.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function u2(e){return{left:e.clientX,top:e.clientY}}function oae(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function f5(e,t,n,r,o){if(r==-1)return!1;let i=e.state.doc.resolve(r);for(let a=i.depth+1;a>0;a--)if(e.someProp(t,s=>a>i.depth?s(e,n,i.nodeAfter,i.before(a),o,!0):s(e,n,i.node(a),i.before(a),o,!1)))return!0;return!1}function pd(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);n=="pointer"&&r.setMeta("pointer",!0),e.dispatch(r)}function iae(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Yt.isSelectable(r)?(pd(e,new Yt(n),"pointer"),!0):!1}function aae(e,t){if(t==-1)return!1;let n=e.state.selection,r,o;n instanceof Yt&&(r=n.node);let i=e.state.doc.resolve(t);for(let a=i.depth+1;a>0;a--){let s=a>i.depth?i.nodeAfter:i.node(a);if(Yt.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(a);break}}return o!=null?(pd(e,Yt.create(e.state.doc,o),"pointer"),!0):!1}function sae(e,t,n,r,o){return f5(e,"handleClickOn",t,n,r)||e.someProp("handleClick",i=>i(e,t,r))||(o?aae(e,n):iae(e,n))}function lae(e,t,n,r){return f5(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",o=>o(e,t,r))}function cae(e,t,n,r){return f5(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",o=>o(e,t,r))||uae(e,n,r)}function uae(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(pd(e,Xn.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(t);for(let i=o.depth+1;i>0;i--){let a=i>o.depth?o.nodeAfter:o.node(i),s=o.before(i);if(a.inlineContent)pd(e,Xn.create(r,s+1,s+1+a.content.size),"pointer");else if(Yt.isSelectable(a))pd(e,Yt.create(r,s),"pointer");else continue;return!0}}function d5(e){return tg(e)}const BI=Ki?"metaKey":"ctrlKey";Xo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=d5(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&oae(n,e.input.lastClick)&&!n[BI]&&(e.input.lastClick.type=="singleClick"?i="doubleClick":e.input.lastClick.type=="doubleClick"&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let a=e.posAtCoords(u2(n));a&&(i=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new fae(e,a,n,!!r)):(i=="doubleClick"?lae:cae)(e,a.pos,a.inside,n)?n.preventDefault():nc(e,"pointer"))};class fae{constructor(t,n,r,o){this.view=t,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[BI],this.allowDefault=r.shiftKey;let i,a;if(n.inside>-1)i=t.state.doc.nodeAt(n.inside),a=n.inside;else{let u=t.state.doc.resolve(n.pos);i=u.parent,a=u.depth?u.before():0}const s=o?null:r.target,c=s?t.docView.nearestDesc(s,!0):null;this.target=c?c.dom:null;let{selection:l}=t.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||l instanceof Yt&&l.from<=a&&l.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ia&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),nc(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>nl(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(u2(t))),this.updateAllowDefault(t),this.allowDefault||!n?nc(this.view,"pointer"):sae(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Eo&&this.mightDrag&&!this.mightDrag.node.isAtom||po&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(pd(this.view,xn.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):nc(this.view,"pointer")}move(t){this.updateAllowDefault(t),nc(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Xo.touchstart=e=>{e.input.lastTouch=Date.now(),d5(e),nc(e,"pointer")};Xo.touchmove=e=>{e.input.lastTouch=Date.now(),nc(e,"pointer")};Xo.contextmenu=e=>d5(e);function DI(e,t){return e.composing?!0:Eo&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const dae=wa?5e3:-1;Wo.compositionstart=Wo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),tg(e,!0),e.markCursor=null;else if(tg(e),Ia&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let a=i<0?o.lastChild:o.childNodes[i-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else o=a,i=-1}}e.input.composing=!0}KI(e,dae)};Wo.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,KI(e,20))};function KI(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>tg(e),t))}function HI(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=hae());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function hae(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function tg(e,t=!1){if(!(wa&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),HI(e),t||e.docView&&e.docView.dirty){let n=l5(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function pae(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const ip=ni&&lc<15||Pd&&fie<604;Xo.copy=Wo.cut=(e,t)=>{let n=t,r=e.state.selection,o=n.type=="cut";if(r.empty)return;let i=ip?null:n.clipboardData,a=r.content(),{dom:s,text:c}=XI(e,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",c)):pae(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function mae(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function vae(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ap(e,r.value,null,o,t):ap(e,r.textContent,r.innerHTML,o,t)},50)}function ap(e,t,n,r,o){let i=WI(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",c=>c(e,o,i||Rt.empty)))return!0;if(!i)return!1;let a=mae(i),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function GI(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Wo.paste=(e,t)=>{let n=t;if(e.composing&&!wa)return;let r=ip?null:n.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&ap(e,GI(r),r.getData("text/html"),o,n)?n.preventDefault():vae(e,n)};class JI{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const zI=Ki?"altKey":"ctrlKey";Xo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=e.state.selection,i=o.empty?null:e.posAtCoords(u2(n)),a;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Yt?o.to-1:o.to))){if(r&&r.mightDrag)a=Yt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=e.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=e.docView&&(a=Yt.create(e.state.doc,u.posBefore))}}let s=(a||e.state.selection).content(),{dom:c,text:l}=XI(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(ip?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",ip||n.dataTransfer.setData("text/plain",l),e.dragging=new JI(s,!n[zI],a)};Xo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Wo.dragover=Wo.dragenter=(e,t)=>t.preventDefault();Wo.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(u2(n));if(!o)return;let i=e.state.doc.resolve(o.pos),a=r&&r.slice;a?e.someProp("transformPasted",p=>{a=p(a,e)}):a=WI(e,GI(n.dataTransfer),ip?null:n.dataTransfer.getData("text/html"),!1,i);let s=!!(r&&!n[zI]);if(e.someProp("handleDrop",p=>p(e,n,a||Rt.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let c=a?IN(e.state.doc,i.pos,a):i.pos;c==null&&(c=i.pos);let l=e.state.tr;if(s){let{node:p}=r;p?p.replace(l):l.deleteSelection()}let u=l.mapping.map(c),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=l.doc;if(f?l.replaceRangeWith(u,u,a.content.firstChild):l.replaceRange(u,u,a),l.doc.eq(d))return;let h=l.doc.resolve(u);if(f&&Yt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))l.setSelection(new Yt(h));else{let p=l.mapping.map(c);l.mapping.maps[l.mapping.maps.length-1].forEach((m,A,x,y)=>p=y),l.setSelection(c5(e,h,l.doc.resolve(p)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))};Xo.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&nl(e)},20))};Xo.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Xo.beforeinput=(e,t)=>{if(po&&wa&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,qc(8,"Backspace")))))return;let{$cursor:o}=e.state.selection;o&&o.pos>0&&e.dispatch(e.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let e in Wo)Xo[e]=Wo[e];function sp(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class ng{constructor(t,n){this.toDOM=t,this.spec=n||Ru,this.side=this.spec.side||0}map(t,n,r,o){let{pos:i,deleted:a}=t.mapResult(n.from+o,this.side<0?-1:1);return a?null:new ki(i-r,i-r,this)}valid(){return!0}eq(t){return this==t||t instanceof ng&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&sp(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class uc{constructor(t,n){this.attrs=t,this.spec=n||Ru}map(t,n,r,o){let i=t.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=a?null:new ki(i,a,this)}valid(t,n){return n.from=t&&(!i||i(s.spec))&&r.push(s.copy(s.from+o,s.to+o))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,o+s,i)}}map(t,n,r){return this==co||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Ru)}mapInner(t,n,r,o,i){let a;for(let s=0;s{let l=c+r,u;if(u=jI(n,s,l)){for(o||(o=this.children.slice());is&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let i=t+1,a=i+n.content.size;for(let s=0;si&&c.type instanceof uc){let l=Math.max(i,c.from)-i,u=Math.min(a,c.to)-i;lo.map(t,n,Ru));return zl.from(r)}forChild(t,n){if(n.isLeaf)return Nr.empty;let r=[];for(let o=0;on instanceof Nr)?t:t.reduce((n,r)=>n.concat(r instanceof Nr?r:r.members),[]))}}}function gae(e,t,n,r,o,i,a){let s=e.slice();for(let l=0,u=i;l{let A=m-p-(h-d);for(let x=0;xy+u-f)continue;let R=s[x]+u-f;h>=R?s[x+1]=d<=R?-2:-1:d>=u&&A&&(s[x]+=A,s[x+1]+=A)}f+=A}),u=n.maps[l].map(u,-1)}let c=!1;for(let l=0;l=r.content.size){c=!0;continue}let d=n.map(e[l+1]+i,-1),h=d-o,{index:p,offset:m}=r.content.findIndex(f),A=r.maybeChild(p);if(A&&m==f&&m+A.nodeSize==h){let x=s[l+2].mapInner(n,A,u+1,e[l]+i+1,a);x!=co?(s[l]=f,s[l+1]=h,s[l+2]=x):(s[l+1]=-2,c=!0)}else c=!0}if(c){let l=Aae(s,e,t,n,o,i,a),u=rg(l,r,0,a);t=u.local;for(let f=0;fn&&a.to{let l=jI(e,s,c+n);if(l){i=!0;let u=rg(l,s,n+c+1,r);u!=co&&o.push(c,c+s.nodeSize,u)}});let a=$I(i?qI(e):e,-n).sort(yu);for(let s=0;s0;)t++;e.splice(t,0,n)}function Uy(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=co&&t.push(r)}),e.cursorWrapper&&t.push(Nr.create(e.state.doc,[e.cursorWrapper.deco])),zl.from(t)}const Rae={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},yae=ni&&lc<=11;class xae{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class bae{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new xae,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),yae&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Rae)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(eT(this.view)){if(this.suppressingSelectionUpdates)return nl(this.view);if(ni&&lc<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Xu(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let i=t.focusNode;i;i=op(i))n.add(i);for(let i=t.anchorNode;i;i=op(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&eT(t)&&!this.ignoreSelectionChange(r),i=-1,a=-1,s=!1,c=[];if(t.editable)for(let u=0;u1){let u=c.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],d=u[1];f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}}let l=null;i<0&&o&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||o)&&(i>-1&&(t.docView.markDirty(i,a),Sae(t)),this.handleDOMChange(i,a,s,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||nl(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;uo;A--){let x=r.childNodes[A-1],y=x.pmViewDesc;if(x.nodeName=="BR"&&!y){i=A;break}if(!y||y.size)break}let f=e.state.doc,d=e.someProp("domParser")||xd.fromSchema(e.state.schema),h=f.resolve(a),p=null,m=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:l,ruleFromNode:Lae,context:h});if(l&&l[0].pos!=null){let A=l[0].pos,x=l[1]&&l[1].pos;x==null&&(x=A),p={anchor:A+a,head:x+a}}return{doc:m,sel:p,from:a,to:s}}function Lae(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Eo&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Eo&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Oae=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Tae(e,t,n,r,o){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let O=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,k=l5(e,O);if(k&&!e.state.selection.eq(k)){if(po&&wa&&e.input.lastKeyCode===13&&Date.now()-100N(e,qc(13,"Enter"))))return;let F=e.state.tr.setSelection(k);O=="pointer"?F.setMeta("pointer",!0):O=="key"&&F.scrollIntoView(),i&&F.setMeta("composition",i),e.dispatch(F)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=wae(e,t,n),u=e.state.doc,f=u.slice(l.from,l.to),d,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||wa)&&o.some(O=>O.nodeType==1&&!Oae.test(O.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",O=>O(e,qc(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&c instanceof Xn&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))p={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let O=fT(e,e.state.doc,l.sel);if(O&&!O.eq(e.state.selection)){let k=e.state.tr.setSelection(O);i&&k.setMeta("composition",i),e.dispatch(k)}}return}if(po&&e.cursorWrapper&&l.sel&&l.sel.anchor==e.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let O=p.endB-p.start;l.sel={anchor:l.sel.anchor+O,head:l.sel.anchor+O}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=l.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),ni&&lc<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=l.doc.resolveNoCache(p.start-l.from),A=l.doc.resolveNoCache(p.endB-l.from),x=u.resolve(p.start),y=m.sameParent(A)&&m.parent.inlineContent&&x.end()>=p.endA,R;if((Pd&&e.input.lastIOSEnter>Date.now()-225&&(!y||o.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!y&&m.posO(e,qc(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&Nae(u,p.start,p.endA,m,A)&&e.someProp("handleKeyDown",O=>O(e,qc(8,"Backspace")))){wa&&po&&e.domObserver.suppressSelectionUpdates();return}po&&wa&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),wa&&!y&&m.start()!=A.start()&&A.parentOffset==0&&m.depth==A.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,A=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{e.someProp("handleKeyDown",function(O){return O(e,qc(13,"Enter"))})},20));let g=p.start,b=p.endA,w,T,M;if(y){if(m.pos==A.pos)ni&&lc<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>nl(e),20)),w=e.state.tr.delete(g,b),T=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(M=kae(m.parent.content.cut(m.parentOffset,A.parentOffset),x.parent.content.cut(x.parentOffset,p.endA-x.start()))))w=e.state.tr,M.type=="add"?w.addMark(g,b,M.mark):w.removeMark(g,b,M.mark);else if(m.parent.child(m.index()).isText&&m.index()==A.index()-(A.textOffset?0:1)){let O=m.parent.textBetween(m.parentOffset,A.parentOffset);if(e.someProp("handleTextInput",k=>k(e,g,b,O)))return;w=e.state.tr.insertText(O,g,b)}}if(w||(w=e.state.tr.replace(g,b,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let O=fT(e,w.doc,l.sel);O&&!(po&&wa&&e.composing&&O.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:c5(e,t.resolve(n.anchor),t.resolve(n.head))}function kae(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,o=n,i=r,a,s,c;for(let u=0;uu.mark(s.addToSet(u.marks));else if(o.length==0&&i.length==1)s=i[0],a="remove",c=u=>u.mark(s.removeFromSet(u.marks));else return null;let l=[];for(let u=0;un||Yy(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let i=e.node(r).maybeChild(e.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function Pae(e,t,n,r,o){let i=e.findDiffStart(t,n);if(i==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(o=="end"){let c=Math.max(0,i-Math.min(a,s));r-=a+c-i}if(a=a?i-r:0;i-=c,i&&i=s?i-r:0;i-=c,i&&i=56320&&t<=57343&&n>=55296&&n<=56319}class Cae{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new qie,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(gT),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=mT(this),pT(this),this.nodeViews=vT(this),this.docView=GO(this.state.doc,hT(this),Uy(this),this.dom,this),this.domObserver=new bae(this,(r,o,i,a)=>Tae(this,r,o,i,a)),this.domObserver.start(),eae(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ex(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(gT),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let o=this.state,i=!1,a=!1;t.storedMarks&&this.composing&&(HI(this),a=!0),this.state=t;let s=o.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=vT(this);Fae(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&ex(this),this.editable=mT(this),pT(this);let c=Uy(this),l=hT(this),u=o.plugins!=t.plugins&&!o.doc.eq(t.doc)?"reset":t.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(t.doc,l,c);(f||!t.selection.eq(o.selection))&&(a=!0);let d=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&pie(this);if(a){this.domObserver.stop();let h=f&&(ni||po)&&!this.composing&&!o.selection.empty&&!t.selection.empty&&Iae(o.selection,t.selection);if(f){let p=po?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(t.doc,l,c,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=GO(t.doc,l,c,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Vie(this))?nl(this,h):(FI(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&mie(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Yt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&QO(this,n.getBoundingClientRect(),t)}else QO(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new JI(t.slice,t.move,o<0?void 0:Yt.create(this.state.doc,o))}someProp(t,n){let r=this._props&&this._props[t],o;if(r!=null&&(o=n?n(r):r))return o;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return xie(this,t)}coordsAtPos(t,n=1){return LI(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let o=this.docView.posFromDOM(t,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,n){return Lie(this,n||this.state,t)}pasteHTML(t,n){return ap(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return ap(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(tae(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Uy(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(t){return rae(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return Eo&&this.root.nodeType===11&&sie(this.dom.ownerDocument)==this.dom?Mae(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function hT(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[ki.node(0,e.state.doc.content.size,t)]}function pT(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:ki.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function mT(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Iae(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function vT(e){let t=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(t,o)||(t[o]=r[o])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Fae(e,t){let n=0,r=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let o in t)r++;return n!=r}function gT(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Rc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},og={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},_ae=typeof navigator<"u"&&/Mac/.test(navigator.platform),Eae=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var eo=0;eo<10;eo++)Rc[48+eo]=Rc[96+eo]=String(eo);for(var eo=1;eo<=24;eo++)Rc[eo+111]="F"+eo;for(var eo=65;eo<=90;eo++)Rc[eo]=String.fromCharCode(eo+32),og[eo]=String.fromCharCode(eo);for(var Qy in Rc)og.hasOwnProperty(Qy)||(og[Qy]=Rc[Qy]);function Xae(e){var t=_ae&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Eae&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?og:Rc)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Wae=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Vae(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,o,i,a;for(let s=0;s127)&&(i=Rc[r.keyCode])&&i!=o){let s=t[Zy(i,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var ig=200,Zr=function(){};Zr.prototype.append=function(t){return t.length?(t=Zr.from(t),!this.length&&t||t.length=n?Zr.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Zr.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Zr.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Zr.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,a){return o.push(t(i,a))},n,r),o};Zr.from=function(t){return t instanceof Zr?t:t&&t.length?new tF(t):Zr.empty};var tF=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new t(this.values.slice(o,i))},t.prototype.getInner=function(o){return this.values[o]},t.prototype.forEachInner=function(o,i,a,s){for(var c=i;c=a;c--)if(o(this.values[c],s+c)===!1)return!1},t.prototype.leafAppend=function(o){if(this.length+o.length<=ig)return new t(this.values.concat(o.flatten()))},t.prototype.leafPrepend=function(o){if(this.length+o.length<=ig)return new t(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Zr);Zr.empty=new tF([]);var Yae=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(o-s,0),Math.min(this.length,i)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,o,i,a){var s=this.left.length;if(o>s&&this.right.forEachInvertedInner(r,o-s,Math.max(i,s)-s,a+s)===!1||i=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},t.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new t(this.left,o)},t.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new t(o,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Zr);const Qae=500;class Oa{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let a=t.tr,s,c,l=[],u=[];return this.items.forEach((f,d)=>{if(!f.step){o||(o=this.remapping(r,d+1),i=o.maps.length),i--,u.push(f);return}if(o){u.push(new Ka(f.map));let h=f.step.map(o.slice(i)),p;h&&a.maybeStep(h).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],l.push(new Ka(p,void 0,void 0,l.length+u.length))),i--,p&&o.appendMap(p,i)}else a.maybeStep(f.step);if(f.selection)return s=o?f.selection.map(o.slice(i)):f.selection,c=new Oa(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:a,selection:s}}addTransform(t,n,r,o){let i=[],a=this.eventCount,s=this.items,c=!o&&s.length?s.get(s.length-1):null;for(let u=0;uBae&&(s=Zae(s,l),a-=l),new Oa(s.append(i),a)}remapping(t,n){let r=new ad;return this.items.forEach((o,i)=>{let a=o.mirrorOffset!=null&&i-o.mirrorOffset>=t?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new Oa(this.items.append(t.map(n=>new Ka(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},o);let c=n;this.items.forEach(d=>{let h=i.getMirror(--c);if(h==null)return;a=Math.min(a,h);let p=i.maps[h];if(d.step){let m=t.steps[h].invert(t.docs[h]),A=d.selection&&d.selection.map(i.slice(c+1,h));A&&s++,r.push(new Ka(p,m,A))}else r.push(new Ka(p))},o);let l=[];for(let d=n;dQae&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,o=[],i=0;return this.items.forEach((a,s)=>{if(s>=t)o.push(a),a.selection&&i++;else if(a.step){let c=a.step.map(n.slice(r)),l=c&&c.getMap();if(r--,l&&n.appendMap(l,r),c){let u=a.selection&&a.selection.map(n.slice(r));u&&i++;let f=new Ka(l.invert(),c,u),d,h=o.length-1;(d=o.length&&o[h].merge(f))?o[h]=d:o.push(f)}}else a.map&&r--},this.items.length,0),new Oa(Zr.from(o.reverse()),i)}}Oa.empty=new Oa(Zr.empty,0);function Zae(e,t){let n;return e.forEach((r,o)=>{if(r.selection&&t--==0)return n=o,!1}),e.slice(n)}class Ka{constructor(t,n,r,o){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Ka(n.getMap().invert(),n,this.selection)}}}class Dl{constructor(t,n,r,o,i){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const Bae=20;function Dae(e,t,n,r){let o=n.getMeta(fc),i;if(o)return o.historyState;n.getMeta(Hae)&&(e=new Dl(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(fc))return a.getMeta(fc).redo?new Dl(e.done.addTransform(n,void 0,r,jm(t)),e.undone,RT(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Dl(e.done,e.undone.addTransform(n,void 0,r,jm(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),c=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!Kae(n,e.prevRanges)),l=a?By(e.prevRanges,n.mapping):RT(n.mapping.maps[n.steps.length-1]);return new Dl(e.done.addTransform(n,c?t.selection.getBookmark():void 0,r,jm(t)),Oa.empty,l,n.time,s??e.prevComposition)}else return(i=n.getMeta("rebased"))?new Dl(e.done.rebased(n,i),e.undone.rebased(n,i),By(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Dl(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),By(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Kae(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,o)=>{for(let i=0;i=t[i]&&(n=!0)}),n}function RT(e){let t=[];return e.forEach((n,r,o,i)=>t.push(o,i)),t}function By(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=fc.getState(e);return!n||n.done.eventCount==0?!1:(t&&nF(n,e,t,!1),!0)},oF=(e,t)=>{let n=fc.getState(e);return!n||n.undone.eventCount==0?!1:(t&&nF(n,e,t,!0),!0)};function Jae(e={}){return new Ud({view(t){return new zae(t,e)}})}class zae{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=a=>{this[o](a)};return t.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,c=t.nodeAfter;if(s||c){let l=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(l){let u=l.getBoundingClientRect(),f=s?u.bottom:u.top;s&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,a;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,a=-pageYOffset;else{let s=o.getBoundingClientRect();i=s.left-o.scrollLeft,a=s.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,t):o;if(n&&!i){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=IN(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}class Rr extends xn{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Rr.valid(r)?new Rr(r):xn.near(r)}content(){return Rt.empty}eq(t){return t instanceof Rr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Rr(t.resolve(n.pos))}getBookmark(){return new m5(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!$ae(t)||!jae(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(t.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Rr.valid(t))return t;let o=t.pos,i=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){i=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;o+=n;let c=t.doc.resolve(o);if(Rr.valid(c))return c}for(;;){let a=n>0?i.firstChild:i.lastChild;if(!a){if(i.isAtom&&!i.isText&&!Yt.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=a,o+=n;let s=t.doc.resolve(o);if(Rr.valid(s))return s}return null}}}Rr.prototype.visible=!1;Rr.findFrom=Rr.findGapCursorFrom;xn.jsonID("gapcursor",Rr);class m5{constructor(t){this.pos=t}map(t){return new m5(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Rr.valid(n)?new Rr(n):xn.near(n)}}function $ae(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function jae(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function qae(){return new Ud({props:{decorations:rse,createSelectionBetween(e,t,n){return t.pos==n.pos&&Rr.valid(n)?new Rr(n):null},handleClick:tse,handleKeyDown:ese,handleDOMEvents:{beforeinput:nse}}})}const ese=eF({ArrowLeft:Am("horiz",-1),ArrowRight:Am("horiz",1),ArrowUp:Am("vert",-1),ArrowDown:Am("vert",1)});function Am(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,o,i){let a=r.selection,s=t>0?a.$to:a.$from,c=a.empty;if(a instanceof Xn){if(!i.endOfTextblock(n)||s.depth==0)return!1;c=!1,s=r.doc.resolve(t>0?s.after():s.before())}let l=Rr.findGapCursorFrom(s,t,c);return l?(o&&o(r.tr.setSelection(new Rr(l))),!0):!1}}function tse(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Rr.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Yt.isSelectable(e.state.doc.nodeAt(o.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Rr(r))),!0)}function nse(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Rr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=st.empty;for(let a=r.length-1;a>=0;a--)o=st.from(r[a].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new Rt(o,0,0));return i.setSelection(Xn.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function rse(e){if(!(e.selection instanceof Rr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Nr.create(e.doc,[ki.widget(e.selection.head,t,{key:"gapcursor"})])}const ose=["li",0],ise={parseDOM:[{tag:"li"}],toDOM(){return ose},defining:!0};function ase(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=!1,c=a;if(!a)return!1;if(a.depth>=2&&o.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(o.index(a.depth-1)==0)return!1;let u=n.doc.resolve(a.start-2);c=new Sv(u,u,a.depth),a.endIndex=0;u--)i=st.from(n[u].type.create(n[u].attrs,i));e.step(new ro(t.start-(r?2:0),t.end,t.start,t.end,new Rt(i,0,0),n.length,!0));let a=0;for(let u=0;u=o.depth-3;x--)f=st.from(o.node(x).copy(f));let h=o.indexAfter(-1){if(A>-1)return!1;x.isTextblock&&x.content.size==0&&(A=y+1)}),A>-1&&m.setSelection(xn.near(m.doc.resolve(A))),r(m.scrollIntoView())}return!0}let c=i.pos==o.end()?s.contentMatchAt(0).defaultType:null,l=n.tr.delete(o.pos,i.pos),u=c?[t?{type:e,attrs:t}:null,{type:c}]:void 0;return sd(l.doc,o.pos,2,u)?(r&&r(l.split(o.pos,2,u).scrollIntoView()),!0):!1}}function iF(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,a=>a.childCount>0&&a.firstChild.type==e);return i?n?r.node(i.depth-1).type==e?cse(t,n,e,i):use(t,n,i):!0:!1}}function cse(e,t,n,r){let o=e.tr,i=r.end,a=r.$to.end(r.depth);im;p--)h-=o.child(p).nodeSize,r.delete(h-1,h+1);let i=r.doc.resolve(n.start),a=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==o.childCount,l=i.node(-1),u=i.index(-1);if(!l.canReplace(u+(s?0:1),u+1,a.content.append(c?st.empty:st.from(o))))return!1;let f=i.pos,d=f+a.nodeSize;return r.step(new ro(f-(s?1:0),d+(c?1:0),f+1,d-1,new Rt((s?st.empty:st.from(o.copy(st.empty))).append(c?st.empty:st.from(o.copy(st.empty))),s?0:1,c?0:1),s?0:1)),t(r.scrollIntoView()),!0}function xT(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,l=>l.childCount>0&&l.firstChild.type==e);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let s=i.parent,c=s.child(a-1);if(c.type!=e)return!1;if(n){let l=c.lastChild&&c.lastChild.type==s.type,u=st.from(l?e.create():null),f=new Rt(st.from(e.create(null,st.from(s.type.create(null,u)))),l?3:1,0),d=i.start,h=i.end;n(t.tr.step(new ro(d-(l?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class fl{constructor(t,n,r={}){this.match=t,this.match=t,this.handler=typeof n=="string"?fse(n):n,this.undoable=r.undoable!==!1}}function fse(e){return function(t,n,r,o){let i=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);i+=n[0].slice(a+n[1].length),r+=a;let s=r-o;s>0&&(i=n[0].slice(a-s,a)+i,r=o)}return t.tr.insertText(i,r,o)}}const dse=500;function hse({rules:e}){let t=new Ud({state:{init(){return null},apply(n,r){let o=n.getMeta(this);return o||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,o,i){return bT(n,r,o,i,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&bT(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function bT(e,t,n,r,o,i){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t);if(s.parent.type.spec.code)return!1;let c=s.parent.textBetween(Math.max(0,s.parentOffset-dse),s.parentOffset,null,"")+r;for(let l=0;l{let n=e.plugins;for(let r=0;r=0;c--)a.step(s.steps[c].invert(s.docs[c]));if(i.text){let c=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,e.schema.text(i.text,c))}else a.delete(i.from,i.to);t(a)}return!0}}return!1},mse=new fl(/--$/,"—"),vse=new fl(/\.\.\.$/,"…"),gse=new fl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),Ase=new fl(/"$/,"”"),Rse=new fl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),yse=new fl(/'$/,"’"),xse=[gse,Ase,Rse,yse];function v5(e,t,n=null,r){return new fl(e,(o,i,a,s)=>{let c=n instanceof Function?n(i):n,l=o.tr.delete(a,s),u=l.doc.resolve(a),f=u.blockRange(),d=f&&sb(f,t,c);if(!d)return null;l.wrap(f,d);let h=l.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Vd(l.doc,a-1)&&(!r||r(i,h))&&l.join(a-1),l})}const bse=e=>{const t={},n=(r,o)=>t[r]=o;return n("Alt-ArrowUp",DH),n("Alt-ArrowDown",KH),n("Mod-z",rF),n("Mod-y",oF),n("Backspace",pse),n("Escape",$H),n("Mod-b",kr(e.marks.strong)),n("Mod-i",kr(e.marks.em)),n("Mod-u",kr(e.marks.underline)),n("Mod-d",kr(e.marks.strikethrough)),n("Mod-e",kr(e.marks.code)),n("Mod-;",kr(e.marks.superscript)),n("Mod-'",kr(e.marks.subscript)),n("Enter",Eg(lse(e.nodes.list_item),BN,DN,KN,zH)),n("Mod-[",iF(e.nodes.list_item)),n("Mod-]",xT(e.nodes.list_item)),n("Tab",xT(e.nodes.list_item)),t},Sse=e=>v5(/^\s*>\s$/,e),Mse=e=>v5(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),wse=e=>v5(/^\s*([-+*])\s$/,e),Lse=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new fl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(`${n[2]} `,r,o),s=i.marks.code.create();return a.addMark(r,r+n[2].length,s)})},Ose=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new fl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(n[0],r,o),s=i.marks.link.create({href:n[0],title:n[0]});return a.addMark(r,r+n[0].length,s)})},Tse=e=>{const t=[...xse,vse,mse];return t.push(Sse(e.nodes.blockquote)),t.push(Mse(e.nodes.ordered_list)),t.push(wse(e.nodes.bullet_list)),t.push(Lse()),t.push(Ose()),hse({rules:t})},kse=e=>e.type.name==="paragraph"&&e.nodeSize===2,Nse=e=>new Ud({props:{decorations(t){const{$from:n}=t.selection;if(kse(n.parent)){const r=ki.node(n.before(),n.after(),{"data-placeholder":e});return Nr.create(t.doc,[r])}}}}),Pse=(e,t)=>{const n=t==null?void 0:t.placeholder,r=[Tse(e),AT(bse(e)),AT(oG),Jae(),qae(),Gae()];return n&&r.push(Nse(n)),r},Cse=["p",0],Ise=["blockquote",0],Fse=["hr"],_se=["pre",["code",0]],Ese=["br"],aF={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return Cse}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return Ise}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return Fse}},heading:{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return _se}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){let{src:t,alt:n,title:r}=e.attrs;return["img",{src:t,alt:n,title:r}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return Ese}}},Xse=["em",0],Wse=["strong",0],Vse=["code",0],sF={link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){let{href:t,title:n}=e.attrs;return["a",{href:t,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return Xse}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM(){return Wse}},code:{parseDOM:[{tag:"code"}],toDOM(){return Vse}}};new SN({nodes:aF,marks:sF});const Use={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>{const n={order:+((e.hasAttribute("start")?e.getAttribute("start"):1)||1)},{listStyleType:r,fontSize:o,color:i}=e.style;return r&&(n.listStyleType=r),o&&(n.fontsize=o),i&&(n.color=i),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:r,color:o}=e.attrs;let i="";n&&(i+=`list-style-type: ${n};`),r&&(i+=`font-size: ${r};`),o&&(i+=`color: ${o};`);const a={style:i};return t!==1&&(a.start=t),["ol",a,0]}},Yse={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:r,color:o}=e.style;return n&&(t.listStyleType=n),r&&(t.fontsize=r),o&&(t.color=o),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:r}=e.attrs;let o="";return t&&(o+=`list-style-type: ${t};`),n&&(o+=`font-size: ${n};`),r&&(o+=`color: ${r};`),["ul",{style:o},0]}},Qse={...ise,content:"paragraph block*",group:"block"},Zse={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:e=>{const{textAlign:t,textIndent:n}=e.style;let r=e.getAttribute("align")||t||"";r=/(left|right|center|justify)/.test(r)?r:"";let o=0;n&&(/em/.test(n)?o=parseInt(n):/px/.test(n)&&(o=Math.floor(parseInt(n)/20),o||(o=1)));const i=+(e.getAttribute("data-indent")||0);return{align:r,indent:i,textIndent:o}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:r}=e.attrs;let o="";t&&t!=="left"&&(o+=`text-align: ${t};`),r&&(o+=`text-indent: ${r*20}px;`);const i={style:o};return n&&(i["data-indent"]=n),["p",i,0]}},{doc:Bse,blockquote:Dse,text:Kse}=aF,Hse={doc:Bse,paragraph:Zse,blockquote:Dse,text:Kse,ordered_list:Use,bullet_list:Yse,list_item:Qse},Gse={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},Jse={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},zse={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:e=>e==="line-through"&&null},{style:"text-decoration-line",getAttrs:e=>e==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},$se={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:e=>e==="underline"&&null},{style:"text-decoration-line",getAttrs:e=>e==="underline"&&null}],toDOM:()=>["span",{style:"text-decoration: underline;"},0]},jse={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:e=>e?{color:e}:{}}],toDOM:e=>{const{color:t}=e.attrs;let n="";return t&&(n+=`color: ${t};`),["span",{style:n},0]}},qse={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{style:"background-color",getAttrs:e=>e?{backcolor:e}:{}}],toDOM:e=>{const{backcolor:t}=e.attrs;let n="";return t&&(n+=`background-color: ${t};`),["span",{style:n},0]}},ele={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:e=>e?{fontsize:e}:{}}],toDOM:e=>{const{fontsize:t}=e.attrs;let n="";return t&&(n+=`font-size: ${t};`),["span",{style:n},0]}},tle={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:e=>({fontname:e&&typeof e=="string"?e.replace(/[\"\']/g,""):""})}],toDOM:e=>{const{fontname:t}=e.attrs;let n="";return t&&(n+=`font-family: "${t}";`),["span",{style:n},0]}},nle={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href"),n=e.getAttribute("title");return{href:t,title:n}}}],toDOM:e=>["a",e.attrs,0]},rle={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:ole,strong:ile,code:ale}=sF,sle={em:ole,strong:ile,fontsize:ele,fontname:tle,code:ale,forecolor:jse,backcolor:qse,subscript:Gse,superscript:Jse,strikethrough:zse,underline:$se,link:nle,mark:rle},lle=Hse,cle=sle,lF=new SN({nodes:lle,marks:cle}),g5=e=>{const t=`
${e}
`,r=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return xd.fromSchema(lF).parse(r)},cF=(e,t,n,r)=>new Cae(e,{state:Bf.create({doc:g5(t),plugins:Pse(lF,r)}),...n});function ule(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}var Qr=(e=>(e.RICH_TEXT_COMMAND="RICH_TEXT_COMMAND",e.SYNC_RICH_TEXT_ATTRS_TO_STORE="SYNC_RICH_TEXT_ATTRS_TO_STORE",e.OPEN_CHART_DATA_EDITOR="OPEN_CHART_DATA_EDITOR",e.OPEN_LATEX_EDITOR="OPEN_LATEX_EDITOR",e))(Qr||{});const to=ule(),fle=(e,t,n)=>{const{selection:r,doc:o}=e;if(!r||!o)return e;const{from:i,to:a}=r,{nodes:s}=t,c=s.blockquote,l=s.list_item,u=s.paragraph,f=[];n=n||"";const d=new Set([c,l,u]);return o.nodesBetween(i,a,(h,p)=>{const m=h.type;return(h.attrs.align||"")!==n&&d.has(m)&&f.push({node:h,pos:p,nodeType:m}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:m,nodeType:A}=h;let{attrs:x}=p;n?x={...x,align:n}:x={...x,align:null},e=e.setNodeMarkup(m,A,x,p.marks)}),e},dle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=fle(n.tr.setSelection(o),r,t);e.dispatch(i)};function hle(e,t,n,r){if(!e.doc)return e;const o=e.doc.nodeAt(t);if(!o)return e;const i=0,a=8;let s=(o.attrs[r]||0)+n;if(sa&&(s=a),s===o.attrs[r])return e;const c={...o.attrs,[r]:s};return e.setNodeMarkup(t,o.type,c,o.marks)}const uF=(e,t,n,r)=>{const{selection:o,doc:i}=e;if(!o||!i||!(o instanceof Xn||o instanceof qo))return e;const{from:a,to:s}=o;return i.nodesBetween(a,s,(c,l)=>{const u=c.type;return u.name==="paragraph"||u.name==="blockquote"?(e=hle(e,l,n,r),!1):!Ov(c,t)}),e},ple=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=uF(n.tr.setSelection(o),r,t,"indent");return i.docChanged?(e.dispatch(i),!0):!1},mle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=uF(n.tr.setSelection(o),r,t,"textIndent");return i.docChanged?(e.dispatch(i),!0):!1},ag=(e,t,n,r={})=>(o,i)=>{const{schema:a,selection:s}=o,{$from:c,$to:l}=s,u=c.blockRange(l);if(!u)return!1;const f=jN(h=>Ov(h,a))(s);if(u.depth>=1&&f&&u.depth-f.depth<=1){if(f.node.type===e&&!n)return iF(t)(o,i);if(Ov(f.node,a)&&e.validContent(f.node.content)){const{tr:h}=o,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,e,p),i&&i(h),!1}}const d={...r};return n&&(d.listStyleType=n),ase(e,d)(o,i)},A0=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=n.tr.setSelection(o),{doc:a}=i;if(!a)return i;const{from:s,to:c}=o;a.nodesBetween(s,c,(l,u)=>{if(Ov(l,r)&&s-3<=u&&c+3>=u+l.nodeSize){const f=Array.isArray(t)?t:[t];for(const d of f)i.setNodeAttribute(u,d.key,d.value)}return!1}),e.dispatch(i)},vle=Ie({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=ft(),{handleElementId:a,textFormatPainter:s,richTextAttrs:c}=Ee(i),l=he();let u;const f=Fn.debounce(function(){o("update",u.dom.innerHTML)},300,{trailing:!0}),d=()=>{i.setDisableHotkeysState(!0),o("focus")},h=()=>{i.setDisableHotkeysState(!1),o("blur")},p=Fn.debounce(function(){const b=Q4(u,{color:r.defaultColor,fontname:r.defaultFontName});i.setRichtextAttrs(b)},30,{trailing:!0}),m=()=>{f(),p()},A=Me(()=>r.value);Tt(A,()=>{if(!u||u.hasFocus())return;const{doc:b,tr:w}=u.state;u.dispatch(w.replaceRangeWith(0,b.content.size,g5(A.value)))}),Tt(()=>r.editable,()=>{u.setProps({editable:()=>r.editable})}),t({focus:()=>u.focus()});const y=({target:b,action:w})=>{if(!b&&a.value!==r.elementId||b&&b!==r.elementId)return;const T="command"in w?[w]:w;for(const M of T)if(M.command==="fontname"&&M.value){const O=u.state.schema.marks.fontname.create({fontname:M.value});Er(u),Da(u,O)}else if(M.command==="fontsize"&&M.value){const O=u.state.schema.marks.fontsize.create({fontsize:M.value});Er(u),Da(u,O),A0(u,{key:"fontsize",value:M.value})}else if(M.command==="fontsize-add"){const O=M.value?+M.value:2;Er(u);const k=SM(u)+O+"px",F=u.state.schema.marks.fontsize.create({fontsize:k});Da(u,F),A0(u,{key:"fontsize",value:k})}else if(M.command==="fontsize-reduce"){const O=M.value?+M.value:2;Er(u);let k=SM(u)-O;k<12&&(k=12);const F=u.state.schema.marks.fontsize.create({fontsize:k+"px"});Da(u,F),A0(u,{key:"fontsize",value:k+"px"})}else if(M.command==="color"&&M.value){const O=u.state.schema.marks.forecolor.create({color:M.value});Er(u),Da(u,O),A0(u,{key:"color",value:M.value})}else if(M.command==="backcolor"&&M.value){const O=u.state.schema.marks.backcolor.create({backcolor:M.value});Er(u),Da(u,O)}else if(M.command==="bold")Er(u),kr(u.state.schema.marks.strong)(u.state,u.dispatch);else if(M.command==="em")Er(u),kr(u.state.schema.marks.em)(u.state,u.dispatch);else if(M.command==="underline")Er(u),kr(u.state.schema.marks.underline)(u.state,u.dispatch);else if(M.command==="strikethrough")Er(u),kr(u.state.schema.marks.strikethrough)(u.state,u.dispatch);else if(M.command==="subscript")kr(u.state.schema.marks.subscript)(u.state,u.dispatch);else if(M.command==="superscript")kr(u.state.schema.marks.superscript)(u.state,u.dispatch);else if(M.command==="blockquote")Fm("blockquote",u.state)?HH(u.state,u.dispatch):tG(u.state.schema.nodes.blockquote)(u.state,u.dispatch);else if(M.command==="code")kr(u.state.schema.marks.code)(u.state,u.dispatch);else if(M.command==="align"&&M.value)dle(u,M.value);else if(M.command==="indent"&&M.value)ple(u,+M.value);else if(M.command==="textIndent"&&M.value)mle(u,+M.value);else if(M.command==="bulletList"){const O=M.value||"",{bullet_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};ag(k,F,O,N)(u.state,u.dispatch)}else if(M.command==="orderedList"){const O=M.value||"",{ordered_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};ag(k,F,O,N)(u.state,u.dispatch)}else if(M.command==="clear"){Er(u);const{$from:O,$to:k}=u.state.selection;u.dispatch(u.state.tr.removeMark(O.pos,k.pos)),A0(u,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(M.command==="link"){const O=u.state.schema.marks.link,{from:k,to:F}=u.state.selection,N=iG(u.state.doc,k,F,O);if(N)if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Da(u,E,{from:N.from.pos,to:N.to.pos+1})}else u.dispatch(u.state.tr.removeMark(N.from.pos,N.to.pos+1,O));else if(cG(u.state,O))if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Da(u,E)}else kr(O)(u.state,u.dispatch);else M.value&&(Er(u),kr(O,{href:M.value,title:M.value})(u.state,u.dispatch))}else M.command==="insert"&&M.value&&u.dispatch(u.state.tr.insertText(M.value));u.focus(),f(),p()},R=()=>{if(!s.value)return;const{keep:b,...w}=s.value,T=[{command:"clear"}];for(const M of Object.keys(w)){const O=M,k=s.value[M];k===!0?T.push({command:O}):k&&T.push({command:O,value:k})}y({action:T}),b||i.setTextFormatPainter(null)};Gt(()=>{u=cF(l.value,A.value,{handleDOMEvents:{focus:d,blur:h,keydown:m,click:p,mouseup:R},editable:()=>r.editable}),r.autoFocus&&u.focus()}),wn(()=>{u&&u.destroy()});const g=()=>{a.value===r.elementId&&p()};return to.on(Qr.RICH_TEXT_COMMAND,y),to.on(Qr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g),wn(()=>{to.off(Qr.RICH_TEXT_COMMAND,y),to.off(Qr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g)}),(b,w)=>(Y(),ee("div",{class:Je(["prosemirror-editor",{"format-painter":G(s)}]),ref_key:"editorViewRef",ref:l,onMousedown:w[0]||(w[0]=T=>o("mousedown",T))},null,34))}}),fF=Xe(vle,[["__scopeId","data-v-23fdc807"]]),dF=e=>(rn("data-v-88c920e1"),e=e(),on(),e),gle=dF(()=>V("div",{class:"drag-handler top"},null,-1)),Ale=dF(()=>V("div",{class:"drag-handler bottom"},null,-1)),Rle=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=lt(),{handleElementId:o,isScaling:i}=Ee(n),{addHistorySnapshot:a}=Jt(),s=he(),c=Me(()=>t.elementInfo.shadow),{shadowStyle:l}=wc(c),u=(y,R=!0)=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo,R))},f=he(-1),d=he(-1);Tt(i,()=>{o.value===t.elementInfo.id&&(i.value||(!t.elementInfo.vertical&&f.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:f.value}}),f.value=-1),t.elementInfo.vertical&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{width:d.value}}),d.value=-1)))});const h=y=>{const R=y[0].contentRect;if(!s.value)return;const g=R.height+20,b=R.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==g&&(i.value?f.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}})),t.elementInfo.vertical&&t.elementInfo.width!==b&&(i.value?d.value=b:r.updateElement({id:t.elementInfo.id,props:{width:b}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),wn(()=>{s.value&&p.unobserve(s.value)});const m=y=>{r.updateElement({id:t.elementInfo.id,props:{content:y}}),a()},A=Fn.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(t.elementInfo.id)},300,{trailing:!0}),x=Me(()=>o.value===t.elementInfo.id);return Tt(x,()=>{x.value||A()}),(y,R)=>{const g=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-text",{lock:y.elementInfo.lock}]),style:we({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px",height:y.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${y.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",ref_key:"elementRef",ref:s,style:we({width:y.elementInfo.vertical?"auto":y.elementInfo.width+"px",height:y.elementInfo.vertical?y.elementInfo.height+"px":"auto",backgroundColor:y.elementInfo.fill,opacity:y.elementInfo.opacity,textShadow:G(l),lineHeight:y.elementInfo.lineHeight,letterSpacing:(y.elementInfo.wordSpace||0)+"px",color:y.elementInfo.defaultColor,fontFamily:y.elementInfo.defaultFontName,writingMode:y.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:R[2]||(R[2]=b=>u(b)),onTouchstart:R[3]||(R[3]=b=>u(b))},[L(s2,{width:y.elementInfo.width,height:y.elementInfo.height,outline:y.elementInfo.outline},null,8,["width","height","outline"]),L(fF,{class:"text",elementId:y.elementInfo.id,defaultColor:y.elementInfo.defaultColor,defaultFontName:y.elementInfo.defaultFontName,editable:!y.elementInfo.lock,value:y.elementInfo.content,style:we({"--paragraphSpace":`${y.elementInfo.paragraphSpace===void 0?5:y.elementInfo.paragraphSpace}px`}),onUpdate:R[0]||(R[0]=b=>m(b)),onMousedown:R[1]||(R[1]=b=>u(b,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),gle,Ale],36)),[[g,y.contextmenus]])],4)],6)}}}),hF=Xe(Rle,[["__scopeId","data-v-88c920e1"]]),yle=["id","gradientTransform"],xle=["stop-color"],ble=["stop-color"],Sle=["id"],Mle=["stop-color"],wle=["stop-color"],pF=Ie({__name:"GradientDefs",props:{id:{},type:{},color1:{},color2:{},rotate:{default:0}},setup(e){return(t,n)=>t.type==="linear"?(Y(),ee("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[V("stop",{offset:"0%","stop-color":t.color1},null,8,xle),V("stop",{offset:"100%","stop-color":t.color2},null,8,ble)],8,yle)):(Y(),ee("radialGradient",{key:1,id:t.id},[V("stop",{offset:"0%","stop-color":t.color1},null,8,Mle),V("stop",{offset:"100%","stop-color":t.color2},null,8,wle)],8,Sle))}}),Lle=["width","height"],Ole={key:0},Tle=["transform"],kle=["d","fill","stroke","stroke-width","stroke-dasharray"],Nle=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=lt(),{handleElementId:o,shapeFormatPainter:i}=Ee(n),{addHistorySnapshot:a}=Jt(),s=(M,O=!0)=>{t.elementInfo.lock||(M.stopPropagation(),t.selectElement(M,t.elementInfo,O))},c=()=>{if(!i.value)return;const{keep:M,...O}=i.value;r.updateElement({id:t.elementInfo.id,props:O}),a(),M||n.setShapeFormatPainter(null)},l=Me(()=>t.elementInfo.outline),{outlineWidth:u,outlineColor:f,strokeDashArray:d}=Hd(l),h=Me(()=>t.elementInfo.shadow),{shadowStyle:p}=wc(h),m=Me(()=>t.elementInfo.flipH),A=Me(()=>t.elementInfo.flipV),{flipStyle:x}=a2(m,A),y=he(!1);Tt(o,()=>{o.value!==t.elementInfo.id&&y.value&&(y.value=!1)});const R=Me(()=>{const M={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:M}),g=M=>{const O={...R.value,content:M};r.updateElement({id:t.elementInfo.id,props:{text:O}}),a()},b=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},w=he(),T=()=>{y.value=!0,Wr(()=>w.value&&w.value.focus())};return(M,O)=>{const k=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-shape",{lock:M.elementInfo.lock,"format-painter":G(i)}]),style:we({top:M.elementInfo.top+"px",left:M.elementInfo.left+"px",width:M.elementInfo.width+"px",height:M.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${M.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",style:we({opacity:M.elementInfo.opacity,filter:G(p)?`drop-shadow(${G(p)})`:"",transform:G(x),color:R.value.defaultColor,fontFamily:R.value.defaultFontName}),onMousedown:O[3]||(O[3]=F=>s(F)),onMouseup:O[4]||(O[4]=F=>c()),onTouchstart:O[5]||(O[5]=F=>s(F)),onDblclick:O[6]||(O[6]=F=>T())},[(Y(),ee("svg",{overflow:"visible",width:M.elementInfo.width,height:M.elementInfo.height},[M.elementInfo.gradient?(Y(),ee("defs",Ole,[L(pF,{id:`editabel-gradient-${M.elementInfo.id}`,type:M.elementInfo.gradient.type,color1:M.elementInfo.gradient.color[0],color2:M.elementInfo.gradient.color[1],rotate:M.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Ze("",!0),V("g",{transform:`scale(${M.elementInfo.width/M.elementInfo.viewBox[0]}, ${M.elementInfo.height/M.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:M.elementInfo.path,fill:M.elementInfo.gradient?`url(#editabel-gradient-${M.elementInfo.id})`:M.elementInfo.fill,stroke:G(f),"stroke-width":G(u),"stroke-dasharray":G(d)},null,8,kle)],8,Tle)],8,Lle)),V("div",{class:Je(["shape-text",[R.value.align,{editable:y.value||R.value.content}]])},[y.value||R.value.content?(Y(),Te(fF,{key:0,ref_key:"prosemirrorEditorRef",ref:w,elementId:M.elementInfo.id,defaultColor:R.value.defaultColor,defaultFontName:R.value.defaultFontName,editable:!M.elementInfo.lock,value:R.value.content,onUpdate:O[0]||(O[0]=F=>g(F)),onBlur:O[1]||(O[1]=F=>b()),onMousedown:O[2]||(O[2]=F=>s(F,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Ze("",!0)],2)],36)),[[k,M.contextmenus]])],4)],6)}}}),mF=Xe(Nle,[["__scopeId","data-v-63255815"]]),Ple=["id","markerWidth","markerHeight","refX","refY"],Cle=["d","fill","transform"],Cd=Ie({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(e){const t=e,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},r={"arrow-start":180,"arrow-end":0},o=Me(()=>n[t.type]),i=Me(()=>r[`${t.type}-${t.position}`]||0),a=Me(()=>t.baseSize<2?2:t.baseSize);return(s,c)=>(Y(),ee("marker",{id:`${s.id}-${s.type}-${s.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:a.value*3,markerHeight:a.value*3,refX:a.value*1.5,refY:a.value*1.5},[V("path",{d:o.value,fill:s.color,transform:`scale(${a.value*.3}, ${a.value*.3}) rotate(${i.value}, 5, 5)`},null,8,Cle)],8,Ple))}}),Ile=["width","height"],Fle=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],_le=["d"],Ele=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=l=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo))},r=Me(()=>t.elementInfo.shadow),{shadowStyle:o}=wc(r),i=Me(()=>{const l=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return l<24?24:l}),a=Me(()=>{const l=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return l<24?24:l}),s=Me(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const l=t.elementInfo.width;return l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`}),c=Me(()=>Tb(t.elementInfo));return(l,u)=>{const f=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-shape",{lock:l.elementInfo.lock}]),style:we({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[V("div",{class:"element-content",style:we({filter:G(o)?`drop-shadow(${G(o)})`:""}),onMousedown:u[0]||(u[0]=d=>n(d)),onTouchstart:u[1]||(u[1]=d=>n(d))},[(Y(),ee("svg",{overflow:"visible",width:i.value,height:a.value},[V("defs",null,[l.elementInfo.points[0]?(Y(),Te(Cd,{key:0,id:l.elementInfo.id,position:"start",type:l.elementInfo.points[0],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0),l.elementInfo.points[1]?(Y(),Te(Cd,{key:1,id:l.elementInfo.id,position:"end",type:l.elementInfo.points[1],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0)]),V("path",{class:"line-point",d:c.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":s.value,fill:"none","marker-start":l.elementInfo.points[0]?`url(#${l.elementInfo.id}-${l.elementInfo.points[0]}-start)`:"","marker-end":l.elementInfo.points[1]?`url(#${l.elementInfo.id}-${l.elementInfo.points[1]}-end)`:""},null,8,Fle),Ke(V("path",{class:"line-path",d:c.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,_le),[[f,l.contextmenus]])],8,Ile))],36)],6)}}}),vF=Xe(Ele,[["__scopeId","data-v-7ecafe01"]]),z0={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},Xle=8,ST={"&":"&","<":"<",">":">",'"':""","'":"'"};function MT(e,t){return typeof e=="number"?e+t:e}function sg(e){if(typeof e=="string"){const t=/^(\d+)\s*(.*)$/g.exec(e);return{value:t?+t[1]:0,unit:(t==null?void 0:t[2])||void 0}}return{value:Number(e)}}function A5(e){return String.fromCharCode(97+e%26)}const Ky=2221e-19;function Wle(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)}function R0(e,t,n){return t/n.range*e}function Vle(e,t){const n=Math.pow(10,t||Xle);return Math.round(e*n)/n}function Ule(e){if(e===1)return e;function t(a,s){return a%s===0?s:t(s,a%s)}function n(a){return a*a+1}let r=2,o=2,i;if(e%2===0)return 2;do r=n(r)%e,o=n(n(o))%e,i=t(Math.abs(r-o),e);while(i===1);return i}function Hy(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function Yle(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const o={high:t.high,low:t.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};o.valueRange=o.high-o.low,o.oom=Wle(o.valueRange),o.step=Math.pow(10,o.oom),o.min=Math.floor(o.low/o.step)*o.step,o.max=Math.ceil(o.high/o.step)*o.step,o.range=o.max-o.min,o.numberOfSteps=Math.round(o.range/o.step);const a=R0(e,o.step,o)=n)o.step=1;else if(r&&s=n)o.step=s;else{let d=0;for(;;){if(a&&R0(e,o.step,o)<=n)o.step*=2;else if(!a&&R0(e,o.step/2,o)>=n){if(o.step/=2,r&&o.step%1!==0){o.step*=2;break}}else break;if(d++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}o.step=Math.max(o.step,Ky);function c(d,h){return d===(d+=h)&&(d*=1+(h>0?Ky:-Ky)),d}let l=o.min,u=o.max;for(;l+o.step<=o.low;)l=c(l,o.step);for(;u-o.step>=o.high;)u=c(u,-o.step);o.min=l,o.max=u,o.range=o.max-o.min;const f=[];for(let d=o.min;d<=o.max;d=c(d,o.step)){const h=Vle(d);h!==f[f.length-1]&&f.push(h)}return o.values=f,o}function Vu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re;function tx(e,t){return Array.from({length:e},t?(n,r)=>t(r):()=>{})}const Qle=(e,t)=>e+(t||0),Zle=(e,t)=>tx(Math.max(...e.map(n=>n.length)),n=>t(...e.map(r=>r[n])));function zn(e,t){return e!==null&&typeof e=="object"&&Reflect.has(e,t)}function Th(e){return e!==null&&isFinite(e)}function gF(e){return!e&&e!==0}function md(e){return Th(e)?Number(e):void 0}function Ble(e){return Array.isArray(e)?e.every(Array.isArray):!1}function AF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=0;e[n?"reduceRight":"reduce"]((o,i,a)=>t(i,r++,a),void 0)}function RF(e,t){const n=Array.isArray(e)?e[t]:zn(e,"data")?e.data[t]:null;return zn(n,"meta")?n.meta:void 0}function yF(e){return e==null||typeof e=="number"&&isNaN(e)}function Dle(e){return Array.isArray(e)&&e.every(t=>Array.isArray(t)||zn(t,"data"))}function Kle(e){return typeof e=="object"&&e!==null&&(Reflect.has(e,"x")||Reflect.has(e,"y"))}function R5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";return Kle(e)&&zn(e,t)?md(e[t]):md(e)}function nx(e,t,n){t={...t,...n?n==="x"?t.axisX:t.axisY:{}};const r={high:t.high===void 0?-Number.MAX_VALUE:+t.high,low:t.low===void 0?Number.MAX_VALUE:+t.low},o=t.high===void 0,i=t.low===void 0;function a(s){if(!yF(s))if(Array.isArray(s))for(let c=0;cr.high&&(r.high=c),i&&c0||(r.high=1),r.low=0)),r}function y5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o;const i={labels:(e.labels||[]).slice(),series:Jle(e.series,n,r)},a=i.labels.length;return Ble(i.series)?(o=Math.max(a,...i.series.map(s=>s.length)),i.series.forEach(s=>{s.push(...tx(Math.max(0,o-s.length)))})):o=i.series.length,i.labels.push(...tx(Math.max(0,o-a),()=>"")),t&&Hle(i),i}function Hle(e){var t;(t=e.labels)===null||t===void 0||t.reverse(),e.series.reverse();for(const n of e.series)zn(n,"data")?n.data.reverse():Array.isArray(n)&&n.reverse()}function Gle(e,t){let n,r;if(typeof e!="object"){const o=md(e);t==="x"?n=o:r=o}else zn(e,"x")&&(n=md(e.x)),zn(e,"y")&&(r=md(e.y));if(!(n===void 0&&r===void 0))return{x:n,y:r}}function wT(e,t){if(!yF(e))return t?Gle(e,t):md(e)}function rx(e,t){return Array.isArray(e)?e.map(n=>zn(n,"value")?wT(n.value,t):wT(n,t)):rx(e.data,t)}function Jle(e,t,n){if(Dle(e))return e.map(o=>rx(o,t));const r=rx(e,t);return n?r.map(o=>[o]):r}function zle(e,t,n){const r={increasingX:!1,fillHoles:!1,...n},o=[];let i=!0;for(let a=0;a=2&&e[a]<=e[a-2]&&(i=!0),i&&(o.push({pathCoordinates:[],valueData:[]}),i=!1),o[o.length-1].pathCoordinates.push(e[a],e[a+1]),o[o.length-1].valueData.push(t[a/2]));return o}function cp(e){let t="";return e==null?e:(typeof e=="number"?t=""+e:typeof e=="object"?t=JSON.stringify({data:e}):t=String(e),Object.keys(ST).reduce((n,r)=>n.replaceAll(r,ST[r]),t))}class $le{call(t,n){return this.svgElements.forEach(r=>Reflect.apply(r[t],r,n)),this}attr(){for(var t=arguments.length,n=new Array(t),r=0;r3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;const{easing:i,...a}=n,s={};let c,l;i&&(c=Array.isArray(i)?i:xF[i]),a.begin=MT(a.begin,"ms"),a.dur=MT(a.dur,"ms"),c&&(a.calcMode="spline",a.keySplines=c.join(" "),a.keyTimes="0;1"),r&&(a.fill="freeze",s[t]=a.from,e.attr(s),l=sg(a.begin||0).value,a.begin="indefinite");const u=e.elem("animate",{attributeName:t,...a});r&&setTimeout(()=>{try{u._node.beginElement()}catch{s[t]=a.to,e.attr(s),u.remove()}},l);const f=u.getNode();o&&f.addEventListener("beginEvent",()=>o.emit("animationBegin",{element:e,animate:f,params:n})),f.addEventListener("endEvent",()=>{o&&o.emit("animationEnd",{element:e,animate:f,params:n}),r&&(s[t]=a.to,e.attr(s),u.remove())})}class rc{attr(t,n){return typeof t=="string"?n?this._node.getAttributeNS(n,t):this._node.getAttribute(t):(Object.keys(t).forEach(r=>{if(t[r]!==void 0)if(r.indexOf(":")!==-1){const o=r.split(":");this._node.setAttributeNS(z0[o[0]],r,String(t[r]))}else this._node.setAttribute(r,String(t[r]))}),this)}elem(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return new rc(t,n,r,this,o)}parent(){return this._node.parentNode instanceof SVGElement?new rc(this._node.parentNode):null}root(){let t=this._node;for(;t.nodeName!=="svg"&&t.parentElement;)t=t.parentElement;return new rc(t)}querySelector(t){const n=this._node.querySelector(t);return n?new rc(n):null}querySelectorAll(t){const n=this._node.querySelectorAll(t);return new $le(n)}getNode(){return this._node}foreignObject(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;if(typeof t=="string"){const s=document.createElement("div");s.innerHTML=t,i=s.firstChild}else i=t;i instanceof Element&&i.setAttribute("xmlns",z0.xmlns);const a=this.elem("foreignObject",n,r,o);return a._node.appendChild(i),a}text(t){return this._node.appendChild(document.createTextNode(t)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var t;return(t=this._node.parentNode)===null||t===void 0||t.removeChild(this._node),this.parent()}replace(t){var n;return(n=this._node.parentNode)===null||n===void 0||n.replaceChild(t._node,this._node),t}append(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this}classes(){const t=this._node.getAttribute("class");return t?t.trim().split(/\s+/):[]}addClass(t){return this._node.setAttribute("class",this.classes().concat(t.trim().split(/\s+/)).filter(function(n,r,o){return o.indexOf(n)===r}).join(" ")),this}removeClass(t){const n=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter(r=>n.indexOf(r)===-1).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2?arguments[2]:void 0;return Object.keys(t).forEach(o=>{const i=t[o];Array.isArray(i)?i.forEach(a=>LT(this,o,a,!1,r)):LT(this,o,i,n,r)}),this}constructor(t,n,r,o,i=!1){t instanceof Element?this._node=t:(this._node=document.createElementNS(z0.svg,t),t==="svg"&&this.attr({"xmlns:ct":z0.ct})),n&&this.attr(n),r&&this.addClass(r),o&&(i&&o._node.firstChild?o._node.insertBefore(this._node,o._node.firstChild):o._node.appendChild(this._node))}}rc.Easing=xF;function x5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"100%",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"100%",r=arguments.length>3?arguments[3]:void 0;Array.from(e.querySelectorAll("svg")).filter(i=>i.getAttributeNS(z0.xmlns,"ct")).forEach(i=>e.removeChild(i));const o=new rc("svg").attr({width:t,height:n}).attr({style:"width: ".concat(t,"; height: ").concat(n,";")});return r&&o.addClass(r),e.appendChild(o.getNode()),o}function jle(e){return typeof e=="number"?{top:e,right:e,bottom:e,left:e}:e===void 0?{top:0,right:0,bottom:0,left:0}:{top:typeof e.top=="number"?e.top:0,right:typeof e.right=="number"?e.right:0,bottom:typeof e.bottom=="number"?e.bottom:0,left:typeof e.left=="number"?e.left:0}}function b5(e,t){var n,r,o,i;const a=!!(t.axisX||t.axisY),s=((n=t.axisY)===null||n===void 0?void 0:n.offset)||0,c=((r=t.axisX)===null||r===void 0?void 0:r.offset)||0,l=(o=t.axisY)===null||o===void 0?void 0:o.position,u=(i=t.axisX)===null||i===void 0?void 0:i.position;let f=e.width()||sg(t.width).value||0,d=e.height()||sg(t.height).value||0;const h=jle(t.chartPadding);f=Math.max(f,s+h.left+h.right),d=Math.max(d,c+h.top+h.bottom);const p={x1:0,x2:0,y1:0,y2:0,padding:h,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return a?(u==="start"?(p.y2=h.top+c,p.y1=Math.max(d-h.bottom,p.y2+1)):(p.y2=h.top,p.y1=Math.max(d-h.bottom-c,p.y2+1)),l==="start"?(p.x1=h.left+s,p.x2=Math.max(f-h.right,p.x1+1)):(p.x1=h.left,p.x2=Math.max(f-h.right-s,p.x1+1))):(p.x1=h.left,p.x2=Math.max(f-h.right,p.x1+1),p.y2=h.top,p.y1=Math.max(d-h.bottom,p.y2+1)),p}function qle(e,t,n,r,o,i,a,s){const c={["".concat(n.units.pos,"1")]:e,["".concat(n.units.pos,"2")]:e,["".concat(n.counterUnits.pos,"1")]:r,["".concat(n.counterUnits.pos,"2")]:r+o},l=i.elem("line",c,a.join(" "));s.emit("draw",{type:"grid",axis:n,index:t,group:i,element:l,...c})}function bF(e,t,n,r){const o=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);r.emit("draw",{type:"gridBackground",group:e,element:o})}function ece(e,t,n,r,o,i,a,s,c,l){const u={[o.units.pos]:e+a[o.units.pos],[o.counterUnits.pos]:a[o.counterUnits.pos],[o.units.len]:t,[o.counterUnits.len]:Math.max(0,i-10)},f=Math.round(u[o.units.len]),d=Math.round(u[o.counterUnits.len]),h=document.createElement("span");h.className=c.join(" "),h.style[o.units.len]=f+"px",h.style[o.counterUnits.len]=d+"px",h.textContent=String(r);const p=s.foreignObject(h,{style:"overflow: visible;",...u});l.emit("draw",{type:"label",axis:o,index:n,group:s,element:p,text:r,...u})}function OT(e,t,n){let r;const o=[];function i(s){const c=r;r=Vu({},e),t&&t.forEach(l=>{window.matchMedia(l[0]).matches&&(r=Vu(r,l[1]))}),n&&s&&n.emit("optionsChanged",{previousOptions:c,currentOptions:r})}function a(){o.forEach(s=>s.removeEventListener("change",i))}if(window.matchMedia)t&&t.forEach(s=>{const c=window.matchMedia(s[0]);c.addEventListener("change",i),o.push(c)});else throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return i(),{removeMediaQueryListeners:a,getCurrentOptions(){return r}}}const ox={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},tce={accuracy:3};function Rm(e,t,n,r,o,i){const a={command:o?e.toLowerCase():e.toUpperCase(),...t,...i?{data:i}:{}};n.splice(r,0,a)}function Gy(e,t){e.forEach((n,r)=>{ox[n.command.toLowerCase()].forEach((o,i)=>{t(n,o,r,i,e)})})}class qs{static join(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;const o=new qs(n,r);for(let i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return Rm("M",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}line(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return Rm("L",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}curve(t,n,r,o,i,a){let s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,c=arguments.length>7?arguments[7]:void 0;return Rm("C",{x1:+t,y1:+n,x2:+r,y2:+o,x:+i,y:+a},this.pathElements,this.pos++,s,c),this}arc(t,n,r,o,i,a,s){let c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l=arguments.length>8?arguments[8]:void 0;return Rm("A",{rx:t,ry:n,xAr:r,lAf:o,sf:i,x:a,y:s},this.pathElements,this.pos++,c,l),this}parse(t){const n=t.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((o,i)=>(i.match(/[A-Za-z]/)&&o.push([]),o[o.length-1].push(i),o),[]);n[n.length-1][0].toUpperCase()==="Z"&&n.pop();const r=n.map(o=>{const i=o.shift(),a=ox[i.toLowerCase()];return{command:i,...a.reduce((s,c,l)=>(s[c]=+o[l],s),{})}});return this.pathElements.splice(this.pos,0,...r),this.pos+=r.length,this}stringify(){const t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((n,r)=>{const o=ox[r.command.toLowerCase()].map(i=>{const a=r[i];return this.options.accuracy?Math.round(a*t)/t:a});return n+r.command+o.join(",")},"")+(this.close?"Z":"")}scale(t,n){return Gy(this.pathElements,(r,o)=>{r[o]*=o[0]==="x"?t:n}),this}translate(t,n){return Gy(this.pathElements,(r,o)=>{r[o]+=o[0]==="x"?t:n}),this}transform(t){return Gy(this.pathElements,(n,r,o,i,a)=>{const s=t(n,r,o,i,a);(s||s===0)&&(n[r]=s)}),this}clone(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const n=new qs(t||this.close);return n.pos=this.pos,n.pathElements=this.pathElements.slice().map(r=>({...r})),n.options={...this.options},n}splitByCommand(t){const n=[new qs];return this.pathElements.forEach(r=>{r.command===t.toUpperCase()&&n[n.length-1].pathElements.length!==0&&n.push(new qs),n[n.length-1].pathElements.push(r)}),n}constructor(t=!1,n){this.close=t,this.pathElements=[],this.pos=0,this.options={...tce,...n}}}function ix(e){const t={fillHoles:!1,...e};return function(r,o){const i=new qs;let a=!0;for(let s=0;s1)return qs.join(i.map(a=>n(a.pathCoordinates,a.valueData)));{if(r=i[0].pathCoordinates,o=i[0].valueData,r.length<=4)return ix()(r,o);const a=[],s=[],c=r.length/2,l=[],u=[],f=[],d=[];for(let p=0;p0!=u[p]>0?l[p]=0:(l[p]=3*(d[p-1]+d[p])/((2*d[p]+d[p-1])/u[p-1]+(d[p]+2*d[p-1])/u[p]),isFinite(l[p])||(l[p]=0));const h=new qs().move(a[0],s[0],!1,o[0]);for(let p=0;pi(n)),r.forEach(i=>i(t,n))}constructor(){this.listeners=new Map,this.allListeners=new Set}}const Jy=new WeakMap;class S5{update(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),n&&(this.options=Vu({},r?this.options:this.defaultOptions,n),!this.initializeTimeoutId)){var o;(o=this.optionsProvider)===null||o===void 0||o.removeMediaQueryListeners(),this.optionsProvider=OT(this.options,this.responsiveOptions,this.eventEmitter)}return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){if(this.initializeTimeoutId)window.clearTimeout(this.initializeTimeoutId);else{var t;window.removeEventListener("resize",this.resizeListener),(t=this.optionsProvider)===null||t===void 0||t.removeMediaQueryListeners()}return Jy.delete(this.container),this}on(t,n){return this.eventEmitter.on(t,n),this}off(t,n){return this.eventEmitter.off(t,n),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=OT(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",()=>this.update()),this.options.plugins&&this.options.plugins.forEach(t=>{Array.isArray(t)?t[0](this,t[1]):t(this)}),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(t,n,r,o,i){this.data=n,this.defaultOptions=r,this.options=o,this.responsiveOptions=i,this.eventEmitter=new rce,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout(()=>this.initialize(),0);const a=typeof t=="string"?document.querySelector(t):t;if(!a)throw new Error("Target element is not found");this.container=a;const s=Jy.get(a);s&&s.detach(),Jy.set(a,this)}}const ko={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};class SF{createGridAndLabels(t,n,r,o){const i=this.units.pos==="x"?r.axisX:r.axisY,a=this.ticks.map((c,l)=>this.projectValue(c,l)),s=this.ticks.map(i.labelInterpolationFnc);a.forEach((c,l)=>{const u=s[l],f={x:0,y:0};let d;a[l+1]?d=a[l+1]-c:d=Math.max(this.axisLength-c,this.axisLength/this.ticks.length),!(u!==""&&gF(u))&&(this.units.pos==="x"?(c=this.chartRect.x1+c,f.x=r.axisX.labelOffset.x,r.axisX.position==="start"?f.y=this.chartRect.padding.top+r.axisX.labelOffset.y+5:f.y=this.chartRect.y1+r.axisX.labelOffset.y+5):(c=this.chartRect.y1-c,f.y=r.axisY.labelOffset.y-d,r.axisY.position==="start"?f.x=this.chartRect.padding.left+r.axisY.labelOffset.x:f.x=this.chartRect.x2+r.axisY.labelOffset.x+10),i.showGrid&&qle(c,l,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[r.classNames.grid,r.classNames[this.units.dir]],o),i.showLabel&&ece(c,d,l,u,this,i.offset,f,n,[r.classNames.label,r.classNames[this.units.dir],i.position==="start"?r.classNames[i.position]:r.classNames.end],o))})}constructor(t,n,r){this.units=t,this.chartRect=n,this.ticks=r,this.counterUnits=t===ko.x?ko.y:ko.x,this.axisLength=n[this.units.rectEnd]-n[this.units.rectStart],this.gridOffset=n[this.units.rectOffset]}}class ax extends SF{projectValue(t){const n=Number(R5(t,this.units.pos));return this.axisLength*(n-this.bounds.min)/this.bounds.range}constructor(t,n,r,o){const i=o.highLow||nx(n,o,t.pos),a=Yle(r[t.rectEnd]-r[t.rectStart],i,o.scaleMinSpace||20,o.onlyInteger),s={min:a.min,max:a.max};super(t,r,a.values),this.bounds=a,this.range=s}}class qm extends SF{projectValue(t,n){return this.stepLength*n}constructor(t,n,r,o){const i=o.ticks||[];super(t,r,i);const a=Math.max(1,i.length-(o.stretch?1:0));this.stepLength=this.axisLength/a,this.stretch=!!o.stretch}}function y0(e,t,n){var r;if(zn(e,"name")&&e.name&&(!((r=t.series)===null||r===void 0)&&r[e.name])){const i=(t==null?void 0:t.series[e.name])[n];return i===void 0?t[n]:i}else return t[n]}const TT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:lp,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:lp,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class oce extends S5{createChart(t){const{data:n}=this,r=y5(n,t.reverseData,!0),o=x5(this.container,t.width,t.height,t.classNames.chart);this.svg=o;const i=o.elem("g").addClass(t.classNames.gridGroup),a=o.elem("g"),s=o.elem("g").addClass(t.classNames.labelGroup),c=b5(o,t);let l,u;t.axisX.type===void 0?l=new qm(ko.x,r.series,c,{...t.axisX,ticks:r.labels,stretch:t.fullWidth}):l=new t.axisX.type(ko.x,r.series,c,t.axisX),t.axisY.type===void 0?u=new ax(ko.y,r.series,c,{...t.axisY,high:Th(t.high)?t.high:t.axisY.high,low:Th(t.low)?t.low:t.axisY.low}):u=new t.axisY.type(ko.y,r.series,c,t.axisY),l.createGridAndLabels(i,s,t,this.eventEmitter),u.createGridAndLabels(i,s,t,this.eventEmitter),t.showGridBackground&&bF(i,c,t.classNames.gridBackground,this.eventEmitter),AF(n.series,(f,d)=>{const h=a.elem("g"),p=zn(f,"name")&&f.name,m=zn(f,"className")&&f.className,A=zn(f,"meta")?f.meta:void 0;p&&h.attr({"ct:series-name":p}),A&&h.attr({"ct:meta":cp(A)}),h.addClass([t.classNames.series,m||"".concat(t.classNames.series,"-").concat(A5(d))].join(" "));const x=[],y=[];r.series[d].forEach((w,T)=>{const M={x:c.x1+l.projectValue(w,T,r.series[d]),y:c.y1-u.projectValue(w,T,r.series[d])};x.push(M.x,M.y),y.push({value:w,valueIndex:T,meta:RF(f,T)})});const R={lineSmooth:y0(f,t,"lineSmooth"),showPoint:y0(f,t,"showPoint"),showLine:y0(f,t,"showLine"),showArea:y0(f,t,"showArea"),areaBase:y0(f,t,"areaBase")};let g;typeof R.lineSmooth=="function"?g=R.lineSmooth:g=R.lineSmooth?nce():ix();const b=g(x,y);if(R.showPoint&&b.pathElements.forEach(w=>{const{data:T}=w,M=h.elem("line",{x1:w.x,y1:w.y,x2:w.x+.01,y2:w.y},t.classNames.point);if(T){let O,k;zn(T.value,"x")&&(O=T.value.x),zn(T.value,"y")&&(k=T.value.y),M.attr({"ct:value":[O,k].filter(Th).join(","),"ct:meta":cp(T.meta)})}this.eventEmitter.emit("draw",{type:"point",value:T==null?void 0:T.value,index:(T==null?void 0:T.valueIndex)||0,meta:T==null?void 0:T.meta,series:f,seriesIndex:d,axisX:l,axisY:u,group:h,element:M,x:w.x,y:w.y,chartRect:c})}),R.showLine){const w=h.elem("path",{d:b.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.series[d],path:b.clone(),chartRect:c,index:d,series:f,seriesIndex:d,meta:A,axisX:l,axisY:u,group:h,element:w})}if(R.showArea&&u.range){const w=Math.max(Math.min(R.areaBase,u.range.max),u.range.min),T=c.y1-u.projectValue(w);b.splitByCommand("M").filter(M=>M.pathElements.length>1).map(M=>{const O=M.pathElements[0],k=M.pathElements[M.pathElements.length-1];return M.clone(!0).position(0).remove(1).move(O.x,T).line(O.x,O.y).position(M.pathElements.length+1).line(k.x,T)}).forEach(M=>{const O=h.elem("path",{d:M.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.series[d],path:M.clone(),series:f,seriesIndex:d,axisX:l,axisY:u,chartRect:c,index:d,group:h,element:O,meta:A})})}},t.reverseData),this.eventEmitter.emit("created",{chartRect:c,axisX:l,axisY:u,svg:o,options:t})}constructor(t,n,r,o){super(t,n,TT,Vu({},TT,r),o),this.data=n}}function ice(e){return Zle(e,function(){for(var t=arguments.length,n=new Array(t),r=0;r({x:o.x+(zn(i,"x")?i.x:0),y:o.y+(zn(i,"y")?i.y:0)}),{x:0,y:0})})}const kT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:lp,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:lp,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class ace extends S5{createChart(t){const{data:n}=this,r=y5(n,t.reverseData,t.horizontalBars?"x":"y",!0),o=x5(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:"")),i=t.stackBars&&t.stackMode!==!0&&r.series.length?nx([ice(r.series)],t,t.horizontalBars?"x":"y"):nx(r.series,t,t.horizontalBars?"x":"y");this.svg=o;const a=o.elem("g").addClass(t.classNames.gridGroup),s=o.elem("g"),c=o.elem("g").addClass(t.classNames.labelGroup);typeof t.high=="number"&&(i.high=t.high),typeof t.low=="number"&&(i.low=t.low);const l=b5(o,t);let u;const f=t.distributeSeries&&t.stackBars?r.labels.slice(0,1):r.labels;let d,h,p;t.horizontalBars?(t.axisX.type===void 0?u=h=new ax(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}):u=h=new t.axisX.type(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}),t.axisY.type===void 0?d=p=new qm(ko.y,r.series,l,{ticks:f}):d=p=new t.axisY.type(ko.y,r.series,l,t.axisY)):(t.axisX.type===void 0?d=h=new qm(ko.x,r.series,l,{ticks:f}):d=h=new t.axisX.type(ko.x,r.series,l,t.axisX),t.axisY.type===void 0?u=p=new ax(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}):u=p=new t.axisY.type(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}));const m=t.horizontalBars?l.x1+u.projectValue(0):l.y1-u.projectValue(0),A=t.stackMode==="accumulate",x=t.stackMode==="accumulate-relative",y=[],R=[];let g=y;d.createGridAndLabels(a,c,t,this.eventEmitter),u.createGridAndLabels(a,c,t,this.eventEmitter),t.showGridBackground&&bF(a,l,t.classNames.gridBackground,this.eventEmitter),AF(n.series,(b,w)=>{const T=w-(n.series.length-1)/2;let M;t.distributeSeries&&!t.stackBars?M=d.axisLength/r.series.length/2:t.distributeSeries&&t.stackBars?M=d.axisLength/2:M=d.axisLength/r.series[w].length/2;const O=s.elem("g"),k=zn(b,"name")&&b.name,F=zn(b,"className")&&b.className,N=zn(b,"meta")?b.meta:void 0;k&&O.attr({"ct:series-name":k}),N&&O.attr({"ct:meta":cp(N)}),O.addClass([t.classNames.series,F||"".concat(t.classNames.series,"-").concat(A5(w))].join(" ")),r.series[w].forEach((E,C)=>{const _=zn(E,"x")&&E.x,I=zn(E,"y")&&E.y;let W;t.distributeSeries&&!t.stackBars?W=w:t.distributeSeries&&t.stackBars?W=0:W=C;let Z;t.horizontalBars?Z={x:l.x1+u.projectValue(_||0,C,r.series[w]),y:l.y1-d.projectValue(I||0,W,r.series[w])}:Z={x:l.x1+d.projectValue(_||0,W,r.series[w]),y:l.y1-u.projectValue(I||0,C,r.series[w])},d instanceof qm&&(d.stretch||(Z[d.units.pos]+=M*(t.horizontalBars?-1:1)),Z[d.units.pos]+=t.stackBars||t.distributeSeries?0:T*t.seriesBarDistance*(t.horizontalBars?-1:1)),x&&(g=I>=0||_>=0?y:R);const J=g[C]||m;if(g[C]=J-(m-Z[d.counterUnits.pos]),E===void 0)return;const le={["".concat(d.units.pos,"1")]:Z[d.units.pos],["".concat(d.units.pos,"2")]:Z[d.units.pos]};t.stackBars&&(A||x||!t.stackMode)?(le["".concat(d.counterUnits.pos,"1")]=J,le["".concat(d.counterUnits.pos,"2")]=g[C]):(le["".concat(d.counterUnits.pos,"1")]=m,le["".concat(d.counterUnits.pos,"2")]=Z[d.counterUnits.pos]),le.x1=Math.min(Math.max(le.x1,l.x1),l.x2),le.x2=Math.min(Math.max(le.x2,l.x1),l.x2),le.y1=Math.min(Math.max(le.y1,l.y2),l.y1),le.y2=Math.min(Math.max(le.y2,l.y2),l.y1);const D=RF(b,C),Q=O.elem("line",le,t.classNames.bar).attr({"ct:value":[_,I].filter(Th).join(","),"ct:meta":cp(D)});this.eventEmitter.emit("draw",{type:"bar",value:E,index:C,meta:D,series:b,seriesIndex:w,axisX:h,axisY:p,chartRect:l,group:O,element:Q,...le})})},t.reverseData),this.eventEmitter.emit("created",{chartRect:l,axisX:h,axisY:p,svg:o,options:t})}constructor(t,n,r,o){super(t,n,kT,Vu({},kT,r),o),this.data=n}}const NT={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:lp,labelDirection:"neutral",ignoreEmptyValues:!1};function sce(e,t,n){const r=t.x>e.x;return r&&n==="explode"||!r&&n==="implode"?"start":r&&n==="implode"||!r&&n==="explode"?"end":"middle"}class lce extends S5{createChart(t){const{data:n}=this,r=y5(n),o=[];let i,a,s=t.startAngle;const c=x5(this.container,t.width,t.height,t.donut?t.classNames.chartDonut:t.classNames.chartPie);this.svg=c;const l=b5(c,t);let u=Math.min(l.width()/2,l.height()/2);const f=t.total||r.series.reduce(Qle,0),d=sg(t.donutWidth);d.unit==="%"&&(d.value*=u/100),u-=t.donut?d.value/2:0,t.labelPosition==="outside"||t.donut?a=u:t.labelPosition==="center"?a=0:a=u/2,t.labelOffset&&(a+=t.labelOffset);const h={x:l.x1+l.width()/2,y:l.y2+l.height()/2},p=n.series.filter(m=>zn(m,"value")?m.value!==0:m!==0).length===1;n.series.forEach((m,A)=>o[A]=c.elem("g")),t.showLabel&&(i=c.elem("g")),n.series.forEach((m,A)=>{var x,y;if(r.series[A]===0&&t.ignoreEmptyValues)return;const R=zn(m,"name")&&m.name,g=zn(m,"className")&&m.className,b=zn(m,"meta")?m.meta:void 0;R&&o[A].attr({"ct:series-name":R}),o[A].addClass([(x=t.classNames)===null||x===void 0?void 0:x.series,g||"".concat((y=t.classNames)===null||y===void 0?void 0:y.series,"-").concat(A5(A))].join(" "));let w=f>0?s+r.series[A]/f*360:0;const T=Math.max(0,s-(A===0||p?0:.2));w-T>=359.99&&(w=T+359.99);const M=Hy(h.x,h.y,u,T),O=Hy(h.x,h.y,u,w),k=new qs(!t.donut).move(O.x,O.y).arc(u,u,0,+(w-s>180),0,M.x,M.y);t.donut||k.line(h.x,h.y);const F=o[A].elem("path",{d:k.stringify()},t.donut?t.classNames.sliceDonut:t.classNames.slicePie);if(F.attr({"ct:value":r.series[A],"ct:meta":cp(b)}),t.donut&&F.attr({style:"stroke-width: "+d.value+"px"}),this.eventEmitter.emit("draw",{type:"slice",value:r.series[A],totalDataSum:f,index:A,meta:b,series:m,group:o[A],element:F,path:k.clone(),center:h,radius:u,startAngle:s,endAngle:w,chartRect:l}),t.showLabel){let N;n.series.length===1?N={x:h.x,y:h.y}:N=Hy(h.x,h.y,a,s+(w-s)/2);let E;r.labels&&!gF(r.labels[A])?E=r.labels[A]:E=r.series[A];const C=t.labelInterpolationFnc(E,A);if(C||C===0){const _=i.elem("text",{dx:N.x,dy:N.y,"text-anchor":sce(h,N,t.labelDirection)},t.classNames.label).text(String(C));this.eventEmitter.emit("draw",{type:"label",index:A,group:i,element:_,text:""+C,chartRect:l,series:m,meta:b,...N})}}s=w}),this.eventEmitter.emit("created",{chartRect:l,svg:c,options:t})}constructor(t,n,r,o){super(t,n,NT,Vu({},NT,r),o),this.data=n}}const cce=Ie({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColor:{},legends:{},options:{},gridColor:{},legend:{}},setup(e){const t=e,n=he(),r=jo(qu)||he(1);let o;const i=Me(()=>t.legend?t.height-20:t.height),a=()=>({...t.data,series:t.data.series[0]}),s=()=>({...t.options||{},width:t.width*r.value,height:i.value*r.value}),c=()=>{if(!n.value)return;const h=s();t.type==="bar"&&(o=new ace(n.value,t.data,h)),t.type==="line"&&(o=new oce(n.value,t.data,h)),t.type==="pie"&&(o=new lce(n.value,a(),h))};Tt([()=>t.width,()=>t.height,()=>t.data,()=>t.options,r],()=>{if(!o){c();return}const h=s(),p=t.type==="pie"?a():t.data;o.update(p,h)}),Gt(c);const u=Me(()=>{let h=[];if(t.themeColor.length>=10)h=t.themeColor;else if(t.themeColor.length===1)h=rt(t.themeColor[0]).analogous(10).map(p=>p.toRgbString());else{const p=t.themeColor.length,m=rt(t.themeColor[p-1]).analogous(11-p).map(A=>A.toRgbString());h=[...t.themeColor.slice(0,p-1),...m]}return h}),f=()=>{if(n.value)for(let h=0;h<10;h++)n.value.style.setProperty(`--theme-color-${h+1}`,u.value[h])};Tt(u,f),Gt(f);const d=()=>{n.value&&t.gridColor&&n.value.style.setProperty("--grid-color",t.gridColor)};return Tt(()=>t.gridColor,d),Gt(d),(h,p)=>(Y(),ee("div",{class:"chart",style:we({flexDirection:h.legend==="top"?"column-reverse":"column"})},[V("div",{class:"chart-content",ref_key:"chartRef",ref:n,style:we({width:h.width+"px",height:i.value+"px",transform:`scale(${1/G(r)})`})},null,4),h.legend?(Y(),ee("div",{key:0,class:"legends",style:we({transform:`scale(${1/G(r)})`})},[(Y(!0),ee(We,null,ot(h.legends,(m,A)=>(Y(),ee("div",{class:"legend",key:A,style:we({color:h.gridColor})},[V("div",{class:"block",style:we({backgroundColor:u.value[A]})},null,4),Ve(" "+gt(m),1)],4))),128))],4)):Ze("",!0)],4))}}),MF=Xe(cce,[["__scopeId","data-v-786c4a79"]]),uce=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{to.emit(Qr.OPEN_CHART_DATA_EDITOR)};return(o,i)=>{const a=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-chart",{lock:o.elementInfo.lock}]),style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",style:we({backgroundColor:o.elementInfo.fill}),onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[L(s2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),L(MF,{width:o.elementInfo.width,height:o.elementInfo.height,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||""},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend"])],36)),[[a,o.contextmenus]])],4)],6)}}}),wF=Xe(uce,[["__scopeId","data-v-e98d2ede"]]),LF=e=>{if(!e)return{};const{bold:t,em:n,underline:r,strikethrough:o,color:i,backcolor:a,fontsize:s,fontname:c,align:l}=e;let u=`${r?"underline":""} ${o?"line-through":""}`;return u===" "&&(u="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:u,color:i||"#000",backgroundColor:a||"",fontSize:s||"14px",fontFamily:c||"微软雅黑",textAlign:l||"left"}},OF=e=>e.replace(/\n/g,"
").replace(/ /g," "),TF=e=>({hideCells:Me(()=>{const n=[];for(let r=0;r1||a.rowspan>1)for(let s=r;s{const t=he(["",""]);return Tt(()=>e.value,()=>{e.value&&(t.value=zP(e.value.color))},{immediate:!0}),{subThemeColor:t}},fce=["innerHTML"],dce=Ie({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,r=t,o=he(),i=he(""),a=he(!1);Tt(()=>n.value,()=>{a.value||(i.value=n.value,o.value&&(o.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!o.value)return;const u=o.value.innerHTML;r("updateValue",u)},c=()=>{a.value=!0,o.value&&(o.value.onpaste=u=>{if(u.preventDefault(),!u.clipboardData)return;const f=u.clipboardData.items[0];f&&f.kind==="string"&&f.type==="text/plain"&&f.getAsString(d=>{if(typeof Ob(d)=="object")return;const p=JP(d);if(p){r("insertExcelData",p),o.value&&(o.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)})})},l=()=>{a.value=!1,o.value&&(o.value.onpaste=null)};return Wd(()=>{o.value&&(o.value.onpaste=null)}),(u,f)=>(Y(),ee("div",{class:"custom-textarea",ref_key:"textareaRef",ref:o,contenteditable:!0,onFocus:f[0]||(f[0]=d=>c()),onBlur:f[1]||(f[1]=d=>l()),onInput:f[2]||(f[2]=d=>s()),innerHTML:i.value},null,40,fce))}}),hce=Xe(dce,[["__scopeId","data-v-cfadb975"]]),pce={key:0,class:"handler"},mce=["onMousedown"],vce=["width"],gce=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],Ace=["innerHTML"],Rce=Ie({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:o}=Ee(ft()),i=he(!1),a=he([]),s=he([]),c=Me({get(){return n.data},set(z){r("change",z)}}),l=Me(()=>n.theme),{subThemeColor:u}=kF(l),f=he([]),d=Me(()=>f.value.reduce((z,oe)=>z+oe));Tt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(z=>z*n.width)},{immediate:!0});const h=()=>{a.value=[],s.value=[]};Tt(()=>n.editable,()=>{n.editable||h()});const p=Me(()=>{const z=[];for(let oe=1;oeAe+me);z.push(pe)}return z}),m=Me(()=>n.data),{hideCells:A}=TF(m),x=Me(()=>{if(!a.value.length)return[];const[z,oe]=a.value;if(!s.value.length)return[`${z}_${oe}`];const[pe,Ae]=s.value;if(z===pe&&oe===Ae)return[`${z}_${oe}`];const me=[],$=Math.min(z,pe),ue=Math.min(oe,Ae),X=Math.max(z,pe),ne=Math.max(oe,Ae);for(let se=0;se=$&&se<=X&&q>=ue&&q<=ne&&me.push(`${se}_${q}`)}return me});Tt(x,(z,oe)=>{Fn.isEqual(z,oe)||r("changeSelectedCells",x.value)});const y=Me(()=>x.value.length>1?null:x.value[0]),R=()=>i.value=!1,g=(z,oe,pe)=>{z.button===0&&(s.value=[],i.value=!0,a.value=[oe,pe])},b=(z,oe)=>{i.value&&(s.value=[z,oe])};Gt(()=>{document.addEventListener("mouseup",R)}),wn(()=>{document.removeEventListener("mouseup",R)});const w=(z,oe)=>A.value.includes(`${z}_${oe}`),T=z=>{const oe=c.value.length-1;a.value=[0,z],s.value=[oe,z]},M=z=>{const oe=c.value[z].length-1;a.value=[z,0],s.value=[z,oe]},O=()=>{const z=c.value.length-1,oe=c.value[z].length-1;a.value=[0,0],s.value=[z,oe]},k=z=>{const oe=JSON.parse(JSON.stringify(c.value)),pe=c.value[z],Ae=[];for(let me=0;me=0;$--)if(!w($,me)){oe[$][me].rowspan=oe[$][me].rowspan-1;break}oe.splice(z,1),c.value=oe},F=z=>{const oe=JSON.parse(JSON.stringify(c.value)),pe=[];for(let Ae=0;Ae=0;me--)if(!w(Ae,me)){oe[Ae][me].colspan=oe[Ae][me].colspan-1;break}c.value=oe.map(Ae=>(Ae.splice(z,1),Ae)),f.value.splice(z,1),r("changeColWidths",f.value)},N=z=>{const oe=JSON.parse(JSON.stringify(c.value)),pe=[];for(let Ae=0;Ae{c.value=c.value.map(oe=>{const pe={colspan:1,rowspan:1,text:"",id:pn(10)};return oe.splice(z,0,pe),oe}),f.value.splice(z,0,100),r("changeColWidths",f.value)},C=(z,oe)=>{let pe=JSON.parse(JSON.stringify(c.value));const Ae={colspan:1,rowspan:1,text:""};if(z){const me=[];for(let $=0;${const $=[];for(let ue=0;ue{const[z,oe]=a.value,[pe,Ae]=s.value,me=Math.min(z,pe),$=Math.min(oe,Ae),ue=Math.max(z,pe),X=Math.max(oe,Ae),ne=JSON.parse(JSON.stringify(c.value));ne[me][$].rowspan=ue-me+1,ne[me][$].colspan=X-$+1,c.value=ne,h()},I=(z,oe)=>{const pe=JSON.parse(JSON.stringify(c.value));pe[z][oe].rowspan=1,pe[z][oe].colspan=1,c.value=pe,h()},W=(z,oe)=>{h();let pe=!0;const Ae=f.value[oe],me=z.pageX,$=50;document.onmousemove=ue=>{if(!pe)return;const X=(ue.pageX-me)/o.value,ne=Ae+X<$?$:Math.round(Ae+X);f.value[oe]=ne},document.onmouseup=()=>{pe=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},Z=()=>{const z=JSON.parse(JSON.stringify(c.value));for(let oe=0;oe{const z=(me,$)=>c.value[me]?c.value[me][$]?w(me,$)?z(me,$+1):[me,$]:z(me+1,0):null;s.value=[];const oe=a.value[0],pe=a.value[1]+1,Ae=z(oe,pe);Ae?a.value=Ae:(N(oe+1),a.value=[oe+1,0]),Wr(()=>{const me=document.querySelector(".cell-text.active");me&&me.focus()})},le=z=>{if(!n.editable||!x.value.length)return;const oe=z.key.toUpperCase();if(x.value.length<2){if(oe===yt.TAB&&(z.preventDefault(),J()),z.ctrlKey&&oe===yt.UP){z.preventDefault();const pe=+x.value[0].split("_")[0];N(pe)}if(z.ctrlKey&&oe===yt.DOWN){z.preventDefault();const pe=+x.value[0].split("_")[0];N(pe+1)}if(z.ctrlKey&&oe===yt.LEFT){z.preventDefault();const pe=+x.value[0].split("_")[1];E(pe)}if(z.ctrlKey&&oe===yt.RIGHT){z.preventDefault();const pe=+x.value[0].split("_")[1];E(pe+1)}}else oe===yt.DELETE&&Z()};Gt(()=>{document.addEventListener("keydown",le)}),wn(()=>{document.removeEventListener("keydown",le)});const D=Fn.debounce(function(z,oe,pe){c.value[oe][pe].text=z,r("change",c.value)},300,{trailing:!0}),Q=(z,oe,pe)=>{const Ae=z.length,me=z[0].length;let $=0,ue=0;oe+Ae>c.value.length&&($=oe+Ae-c.value.length),pe+me>c.value[0].length&&(ue=pe+me-c.value[0].length),($||ue)&&C($,ue),Wr(()=>{for(let X=0;X{const z=[];for(let oe=0;oe{const z=B(),oe=z.length>1,pe=z[0].length>1;return{canDeleteRow:oe,canDeleteCol:pe}},U=(z,oe)=>{const pe=x.value.length>1,Ae=c.value[z][oe],me=pe,$=!pe&&(Ae.rowspan>1||Ae.colspan>1);return{canMerge:me,canSplit:$}},te=z=>{const oe=z.dataset.cellIndex,pe=+oe.split("_")[0],Ae=+oe.split("_")[1];x.value.includes(`${pe}_${Ae}`)||(a.value=[pe,Ae],s.value=[]);const{canMerge:me,canSplit:$}=U(pe,Ae),{canDeleteRow:ue,canDeleteCol:X}=H();return[{text:"插入列",children:[{text:"到左侧",handler:()=>E(Ae)},{text:"到右侧",handler:()=>E(Ae+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>N(pe)},{text:"到下方",handler:()=>N(pe+1)}]},{text:"删除列",disable:!X,handler:()=>F(Ae)},{text:"删除行",disable:!ue,handler:()=>k(pe)},{divider:!0},{text:"合并单元格",disable:!me,handler:_},{text:"取消合并单元格",disable:!$,handler:()=>I(pe,Ae)},{divider:!0},{text:"选中当前列",handler:()=>T(Ae)},{text:"选中当前行",handler:()=>M(pe)},{text:"选中全部单元格",handler:O}]};return(z,oe)=>{var Ae,me,$,ue,X;const pe=Sn("contextmenu");return Y(),ee("div",{class:"editable-table",style:we({width:d.value+"px"})},[z.editable?(Y(),ee("div",pce,[(Y(!0),ee(We,null,ot(p.value,(ne,se)=>(Y(),ee("div",{class:"drag-line",key:se,style:we({left:ne+"px"}),onMousedown:j=>W(j,se)},null,44,mce))),128))])):Ze("",!0),V("table",{class:Je({theme:l.value,"row-header":(Ae=l.value)==null?void 0:Ae.rowHeader,"row-footer":(me=l.value)==null?void 0:me.rowFooter,"col-header":($=l.value)==null?void 0:$.colHeader,"col-footer":(ue=l.value)==null?void 0:ue.colFooter}),style:we(`--themeColor: ${(X=l.value)==null?void 0:X.color}; --subThemeColor1: ${G(u)[0]}; --subThemeColor2: ${G(u)[1]}`)},[V("colgroup",null,[(Y(!0),ee(We,null,ot(f.value,(ne,se)=>(Y(),ee("col",{span:"1",key:se,width:ne},null,8,vce))),128))]),V("tbody",null,[(Y(!0),ee(We,null,ot(c.value,(ne,se)=>(Y(),ee("tr",{key:se,style:we({height:z.cellMinHeight+"px"})},[(Y(!0),ee(We,null,ot(ne,(j,q)=>Ke((Y(),ee("td",{class:Je(["cell",{selected:x.value.includes(`${se}_${q}`)&&x.value.length>1,active:y.value===`${se}_${q}`}]),style:we({borderStyle:z.outline.style,borderColor:z.outline.color,borderWidth:z.outline.width+"px",...G(LF)(j.style)}),key:j.id,rowspan:j.rowspan,colspan:j.colspan,"data-cell-index":`${se}_${q}`,onMousedown:ae=>g(ae,se,q),onMouseenter:ae=>b(se,q)},[y.value===`${se}_${q}`?(Y(),Te(hce,{key:0,class:Je(["cell-text",{active:y.value===`${se}_${q}`}]),style:we({minHeight:z.cellMinHeight-4+"px"}),value:j.text,onUpdateValue:ae=>G(D)(ae,se,q),onInsertExcelData:ae=>Q(ae,se,q)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(Y(),ee("div",{key:1,class:"cell-text",style:we({minHeight:z.cellMinHeight-4+"px"}),innerHTML:G(OF)(j.text)},null,12,Ace))],46,gce)),[[il,!G(A).includes(`${se}_${q}`)],[pe,ae=>te(ae)]])),128))],4))),128))])],6)],4)}}}),yce=Xe(Rce,[["__scopeId","data-v-d040a5e0"]]),xce={class:"element-content"},bce=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=lt(),{canvasScale:o,handleElementId:i,isScaling:a}=Ee(n),s=he(),{addHistorySnapshot:c}=Jt(),l=y=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo))},u=he(!1);Tt(i,()=>{i.value!==t.elementInfo.id&&(u.value=!1)}),Tt(u,()=>{n.setDisableHotkeysState(u.value)});const f=()=>{t.elementInfo.lock||(u.value=!0)},d=he(-1);Tt(a,()=>{i.value===t.elementInfo.id&&(a.value&&(u.value=!1),!a.value&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1))});const h=y=>{const R=y[0].contentRect;if(!s.value)return;const g=R.height;t.elementInfo.height!==g&&(a.value?d.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),wn(()=>{s.value&&p.unobserve(s.value)});const m=y=>{r.updateElement({id:t.elementInfo.id,props:{data:y}}),c()},A=y=>{const R=y.reduce((b,w)=>b+w),g=y.map(b=>b/R);r.updateElement({id:t.elementInfo.id,props:{width:R,colWidths:g}}),c()},x=y=>{Wr(()=>n.setSelectedTableCells(y))};return(y,R)=>{const g=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-table",{lock:y.elementInfo.lock}]),ref_key:"elementRef",ref:s,style:we({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${y.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",xce,[L(yce,{onMousedown:R[0]||(R[0]=Wt(()=>{},["stop"])),data:y.elementInfo.data,width:y.elementInfo.width,cellMinHeight:y.elementInfo.cellMinHeight,colWidths:y.elementInfo.colWidths,outline:y.elementInfo.outline,theme:y.elementInfo.theme,editable:u.value,onChange:R[1]||(R[1]=b=>m(b)),onChangeColWidths:R[2]||(R[2]=b=>A(b)),onChangeSelectedCells:R[3]||(R[3]=b=>x(b))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!u.value||y.elementInfo.lock?(Y(),ee("div",{key:0,class:Je(["table-mask",{lock:y.elementInfo.lock}]),onDblclick:R[4]||(R[4]=b=>f()),onMousedown:R[5]||(R[5]=b=>l(b)),onTouchstart:R[6]||(R[6]=b=>l(b))},[G(i)===y.elementInfo.id?(Y(),ee("div",{key:0,class:"mask-tip",style:we({transform:`scale(${1/G(o)})`})},"双击编辑",4)):Ze("",!0)],34)):Ze("",!0)])),[[g,y.contextmenus]])],4)],6)}}}),NF=Xe(bce,[["__scopeId","data-v-7795910a"]]),Sce=["width","height","stroke","stroke-width"],Mce=["transform"],wce=["d"],Lce=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{to.emit(Qr.OPEN_LATEX_EDITOR)};return(o,i)=>{const a=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-latex",{lock:o.elementInfo.lock}]),style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[(Y(),ee("svg",{overflow:"visible",width:o.elementInfo.width,height:o.elementInfo.height,stroke:o.elementInfo.color,"stroke-width":o.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${o.elementInfo.width/o.elementInfo.viewBox[0]}, ${o.elementInfo.height/o.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:o.elementInfo.path},null,8,wce)],8,Mce)],8,Sce))],32)),[[a,o.contextmenus]])],4)],6)}}}),PF=Xe(Lce,[["__scopeId","data-v-b73586f6"]]),Oce=(e,t)=>{Gt(()=>{if(!t.value)return;let n="normal";if(/m3u8(#|\?|$)/i.exec(e)?n="hls":/.flv(#|\?|$)/i.exec(e)&&(n="flv"),t.value&&n==="hls"&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),n==="hls"){const r=window.Hls;if(r&&r.isSupported()){const o=new r;o.loadSource(e),o.attachMedia(t.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const o=r.createPlayer({type:"flv",url:e});o.attachMediaElement(t.value),o.load()}}})},M5=e=>(rn("data-v-597c0901"),e=e(),on(),e),Tce={key:0,class:"load-error"},kce=["src","autoplay","poster"],Nce={class:"bezel"},Pce=M5(()=>V("div",{class:"controller-mask"},null,-1)),Cce={class:"controller"},Ice={class:"icons icons-left"},Fce={class:"icon-content"},_ce={class:"volume"},Ece={class:"icon-content"},Xce=M5(()=>V("span",{class:"thumb"},null,-1)),Wce=[Xce],Vce={class:"time"},Uce={class:"ptime"},Yce={class:"dtime"},Qce={class:"icons icons-right"},Zce={class:"speed"},Bce={class:"icon speed-icon"},Dce=["onClick"],Kce={class:"icon-content"},Hce={class:"bar"},Gce=M5(()=>V("span",{class:"thumb"},null,-1)),Jce=[Gce],zce=Ie({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,n=(X=0)=>{if(X===0||isNaN(X))return"00:00";const ne=ae=>ae<10?"0"+ae:""+ae,se=Math.floor(X/3600),j=Math.floor((X-se*3600)/60),q=Math.floor(X-se*3600-j*60);return(se>0?[se,j,q]:[j,q]).map(ne).join(":")},r=X=>X.getBoundingClientRect().left,o=he(),i=he(),a=he(),s=he(.5),c=he(!0),l=he(0),u=he(0),f=he(0),d=he(!1),h=he(!1),p=he(1),m=he(!1),A=he("00:00"),x=he("0"),y=Me(()=>n(l.value)),R=Me(()=>n(u.value)),g=Me(()=>l.value/u.value*100+"%"),b=Me(()=>f.value/u.value*100+"%"),w=Me(()=>s.value*100+"%"),T=he(!1),M=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],O=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,u.value),o.value.currentTime=X,l.value=X)},k=()=>{o.value&&(c.value=!1,o.value.play(),h.value=!0)},F=()=>{o.value&&(c.value=!0,o.value.pause(),h.value=!0)},N=()=>{c.value?k():F()},E=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,1),o.value.volume=X,s.value=X,o.value.muted&&X!==0&&(o.value.muted=!1))},C=X=>{o.value&&(o.value.playbackRate=X),p.value=X},_=()=>{var X;u.value=((X=o.value)==null?void 0:X.duration)||0},I=()=>{var X;l.value=((X=o.value)==null?void 0:X.currentTime)||0},W=()=>{d.value?(O(0),k()):F()},Z=()=>{var X;f.value=(X=o.value)!=null&&X.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},J=he(!1),le=()=>J.value=!0,D=X=>{if(!o.value||!i.value)return;let se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const j=se*u.value;o.value.currentTime=j,l.value=j},Q=X=>{if(!o.value||!i.value)return;let se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const j=se*u.value;o.value.currentTime=j,l.value=j,document.removeEventListener("mousemove",D),document.removeEventListener("touchmove",D),document.removeEventListener("mouseup",Q),document.removeEventListener("touchend",Q)},B=()=>{document.addEventListener("mousemove",D),document.addEventListener("touchmove",D),document.addEventListener("mouseup",Q),document.addEventListener("touchend",Q)},H=X=>{if(!a.value)return;const se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(a.value))/45;E(se)},U=()=>{document.removeEventListener("mousemove",H),document.removeEventListener("touchmove",H),document.removeEventListener("mouseup",U),document.removeEventListener("touchend",U)},te=()=>{document.addEventListener("mousemove",H),document.addEventListener("touchmove",H),document.addEventListener("mouseup",U),document.addEventListener("touchend",U)},z=X=>{if(!a.value)return;const ne=(X.clientX-r(a.value))/45;E(ne)},oe=X=>{if(u.value&&i.value){const ne=i.value.getBoundingClientRect().left,se=X.clientX-ne;if(se<0||se>i.value.offsetWidth)return;const j=u.value*(se/i.value.offsetWidth);x.value=`${se-(j>=3600?25:20)}px`,A.value=n(j),m.value=!0}},pe=()=>{o.value&&(o.value.muted?(o.value.muted=!1,E(.5)):(o.value.muted=!0,E(0)))},Ae=()=>{d.value=!d.value},me=he(-1),$=he(!1),ue=()=>{$.value=!1,clearTimeout(me.value),me.value=setTimeout(()=>{var X;(X=o.value)!=null&&X.played.length&&($.value=!0)},3e3)};return Oce(t.src,o),(X,ne)=>{const se=be("IconPause"),j=be("IconPlayOne"),q=be("IconVolumeMute"),ae=be("IconVolumeNotice"),ge=be("IconVolumeSmall");return Y(),ee("div",{class:Je(["video-player",{"hide-controller":$.value}]),style:we({width:X.width*X.scale+"px",height:X.height*X.scale+"px",transform:`scale(${1/X.scale})`}),onMousemove:ne[22]||(ne[22]=ce=>ue()),onClick:ne[23]||(ne[23]=ce=>ue())},[V("div",{class:"video-wrap",onClick:ne[8]||(ne[8]=ce=>N())},[J.value?(Y(),ee("div",Tce,"视频加载失败")):Ze("",!0),V("video",{class:"video",ref_key:"videoRef",ref:o,src:X.src,autoplay:X.autoplay,poster:X.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:ne[0]||(ne[0]=ce=>_()),onTimeupdate:ne[1]||(ne[1]=ce=>I()),onEnded:ne[2]||(ne[2]=ce=>W()),onProgress:ne[3]||(ne[3]=ce=>Z()),onPlay:ne[4]||(ne[4]=ce=>{ue(),c.value=!1}),onPause:ne[5]||(ne[5]=ce=>ue()),onError:ne[6]||(ne[6]=ce=>le())},null,40,kce),V("div",Nce,[V("span",{class:Je(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:ne[7]||(ne[7]=ce=>h.value=!1)},[c.value?(Y(),Te(se,{key:0})):(Y(),Te(j,{key:1}))],34)])]),Pce,V("div",Cce,[V("div",Ice,[V("div",{class:"icon play-icon",onClick:ne[9]||(ne[9]=ce=>N())},[V("span",Fce,[c.value?(Y(),Te(j,{key:0})):(Y(),Te(se,{key:1}))])]),V("div",_ce,[V("div",{class:"icon volume-icon",onClick:ne[10]||(ne[10]=ce=>pe())},[V("span",Ece,[s.value===0?(Y(),Te(q,{key:0})):s.value===1?(Y(),Te(ae,{key:1})):(Y(),Te(ge,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:ne[11]||(ne[11]=ce=>te()),onTouchstart:ne[12]||(ne[12]=ce=>te()),onClick:ne[13]||(ne[13]=ce=>z(ce))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:a},[V("div",{class:"volume-bar-inner",style:we({width:w.value})},Wce,4)],512)],32)]),V("span",Vce,[V("span",Uce,gt(y.value),1),Ve(" / "),V("span",Yce,gt(R.value),1)])]),V("div",Qce,[V("div",Zce,[V("div",Bce,[V("span",{class:"icon-content",onClick:ne[14]||(ne[14]=ce=>T.value=!T.value)},gt(p.value===1?"倍速":p.value+"x"),1),T.value?(Y(),ee("div",{key:0,class:"speed-menu",onMouseleave:ne[15]||(ne[15]=ce=>T.value=!1)},[(Y(),ee(We,null,ot(M,ce=>V("div",{class:Je(["speed-menu-item",{active:ce.value===p.value}]),key:ce.label,onClick:ve=>C(ce.value)},gt(ce.label),11,Dce)),64))],32)):Ze("",!0)])]),V("div",{class:"loop",onClick:ne[16]||(ne[16]=ce=>Ae())},[V("div",{class:Je(["icon loop-icon",{active:d.value}])},[V("span",Kce,"循环"+gt(d.value?"开":"关"),1)],2)])]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:i,onMousedown:ne[17]||(ne[17]=ce=>B()),onTouchstart:ne[18]||(ne[18]=ce=>B()),onMousemove:ne[19]||(ne[19]=ce=>oe(ce)),onMouseenter:ne[20]||(ne[20]=ce=>m.value=!0),onMouseleave:ne[21]||(ne[21]=ce=>m.value=!1)},[V("div",{class:Je(["bar-time",{hidden:!m.value}]),style:we({left:x.value})},gt(A.value),7),V("div",Hce,[V("div",{class:"loaded",style:we({width:b.value})},null,4),V("div",{class:"played",style:we({width:g.value})},Jce,4)])],544)])],38)}}}),CF=Xe(zce,[["__scopeId","data-v-597c0901"]]),$ce=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=(o,i=!0)=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo,i))};return(o,i)=>{const a=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-video",{lock:o.elementInfo.lock}]),style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",onMousedown:i[2]||(i[2]=s=>r(s,!1)),onTouchstart:i[3]||(i[3]=s=>r(s,!1))},[L(CF,{width:o.elementInfo.width,height:o.elementInfo.height,src:o.elementInfo.src,poster:o.elementInfo.poster,scale:G(n)},null,8,["width","height","src","poster","scale"]),(Y(),ee(We,null,ot(["t","b","l","r"],s=>V("div",{class:Je(["handler-border",s]),key:s,onMousedown:i[0]||(i[0]=c=>r(c)),onTouchstart:i[1]||(i[1]=c=>r(c))},null,34)),64))],32)),[[a,o.contextmenus]])],4)],6)}}}),IF=Xe($ce,[["__scopeId","data-v-c50d3bc7"]]),FF=e=>(rn("data-v-32038f5c"),e=e(),on(),e),jce=["src","autoplay"],qce={class:"controller"},eue={class:"icons"},tue={class:"icon-content"},nue={class:"volume"},rue={class:"icon-content"},oue=FF(()=>V("span",{class:"thumb"},null,-1)),iue=[oue],aue={class:"time"},sue={class:"ptime"},lue={class:"dtime"},cue={class:"bar"},uue=FF(()=>V("span",{class:"thumb"},null,-1)),fue=[uue],due=Ie({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const n=e,r=(U=0)=>{if(U===0||isNaN(U))return"00:00";const te=Ae=>Ae<10?"0"+Ae:""+Ae,z=Math.floor(U/3600),oe=Math.floor((U-z*3600)/60),pe=Math.floor(U-z*3600-oe*60);return(z>0?[z,oe,pe]:[oe,pe]).map(te).join(":")},o=U=>U.getBoundingClientRect().left,i=he(),a=he(),s=he(),c=he(.5),l=he(!0),u=he(0),f=he(0),d=he(0),h=he(!1),p=he("00:00"),m=he("0"),A=Me(()=>r(u.value)),x=Me(()=>r(f.value)),y=Me(()=>u.value/f.value*100+"%"),R=Me(()=>d.value/f.value*100+"%"),g=Me(()=>c.value*100+"%"),b=U=>{i.value&&(U=Math.max(U,0),U=Math.min(U,f.value),i.value.currentTime=U,u.value=U)},w=()=>{i.value&&(l.value=!1,i.value.play())},T=()=>{i.value&&(l.value=!0,i.value.pause())},M=()=>{l.value?w():T()},O=U=>{i.value&&(U=Math.max(U,0),U=Math.min(U,1),i.value.volume=U,c.value=U,i.value.muted&&U!==0&&(i.value.muted=!1))},k=()=>{var U;f.value=((U=i.value)==null?void 0:U.duration)||0},F=()=>{var U;u.value=((U=i.value)==null?void 0:U.currentTime)||0},N=()=>{l.value=!1},E=()=>{n.loop?(b(0),w()):T()},C=()=>{var U;d.value=(U=i.value)!=null&&U.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},_=()=>bn.error("视频加载失败"),I=U=>{if(!i.value||!a.value)return;let z=(("clientX"in U?U.clientX:U.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;z=Math.max(z,0),z=Math.min(z,1);const oe=z*f.value;i.value.currentTime=oe,u.value=oe},W=U=>{if(!i.value||!a.value)return;let z=(("clientX"in U?U.clientX:U.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;z=Math.max(z,0),z=Math.min(z,1);const oe=z*f.value;i.value.currentTime=oe,u.value=oe,document.removeEventListener("mousemove",I),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",W),document.removeEventListener("touchend",W)},Z=()=>{document.addEventListener("mousemove",I),document.addEventListener("touchmove",I),document.addEventListener("mouseup",W),document.addEventListener("touchend",W)},J=U=>{if(!s.value)return;const z=(("clientX"in U?U.clientX:U.changedTouches[0].clientX)-o(s.value))/45;O(z)},le=()=>{document.removeEventListener("mousemove",J),document.removeEventListener("touchmove",J),document.removeEventListener("mouseup",le),document.removeEventListener("touchend",le)},D=()=>{document.addEventListener("mousemove",J),document.addEventListener("touchmove",J),document.addEventListener("mouseup",le),document.addEventListener("touchend",le)},Q=U=>{if(!s.value)return;const te=(U.clientX-o(s.value))/45;O(te)},B=U=>{if(f.value&&a.value){const te=a.value.getBoundingClientRect().left,z=U.clientX-te;if(z<0||z>a.value.offsetWidth)return;const oe=f.value*(z/a.value.offsetWidth);m.value=`${z-(oe>=3600?25:20)}px`,p.value=r(oe),h.value=!0}},H=()=>{i.value&&(i.value.muted?(i.value.muted=!1,O(.5)):(i.value.muted=!0,O(0)))};return t({toggle:M}),(U,te)=>{const z=be("IconPlayOne"),oe=be("IconPause"),pe=be("IconVolumeMute"),Ae=be("IconVolumeNotice"),me=be("IconVolumeSmall");return Y(),ee("div",{class:"audio-player",style:we({transform:`scale(${1/U.scale})`})},[V("audio",{class:"audio",ref_key:"audioRef",ref:i,src:U.src,autoplay:U.autoplay,onDurationchange:te[0]||(te[0]=$=>k()),onTimeupdate:te[1]||(te[1]=$=>F()),onPlay:te[2]||(te[2]=$=>N()),onEnded:te[3]||(te[3]=$=>E()),onProgress:te[4]||(te[4]=$=>C()),onError:te[5]||(te[5]=$=>_())},null,40,jce),V("div",qce,[V("div",eue,[V("div",{class:"icon play-icon",onClick:te[6]||(te[6]=$=>M())},[V("span",tue,[l.value?(Y(),Te(z,{key:0})):(Y(),Te(oe,{key:1}))])]),V("div",nue,[V("div",{class:"icon volume-icon",onClick:te[7]||(te[7]=$=>H())},[V("span",rue,[c.value===0?(Y(),Te(pe,{key:0})):c.value===1?(Y(),Te(Ae,{key:1})):(Y(),Te(me,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:te[8]||(te[8]=$=>D()),onTouchstart:te[9]||(te[9]=$=>D()),onClick:te[10]||(te[10]=$=>Q($))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[V("div",{class:"volume-bar-inner",style:we({width:g.value})},iue,4)],512)],32)])]),V("span",aue,[V("span",sue,gt(A.value),1),Ve(" / "),V("span",lue,gt(x.value),1)]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:te[11]||(te[11]=$=>Z()),onTouchstart:te[12]||(te[12]=$=>Z()),onMousemove:te[13]||(te[13]=$=>B($)),onMouseenter:te[14]||(te[14]=$=>h.value=!0),onMouseleave:te[15]||(te[15]=$=>h.value=!1)},[V("div",{class:Je(["bar-time",{hidden:!h.value}]),style:we({left:m.value})},gt(p.value),7),V("div",cue,[V("div",{class:"loaded",style:we({width:R.value})},null,4),V("div",{class:"played",style:we({width:y.value})},fue,4)])],544)])],4)}}}),_F=Xe(due,[["__scopeId","data-v-32038f5c"]]),hue=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:r}=Ee(ft()),{viewportRatio:o}=Ee(lt()),i=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),a=Me(()=>{const c=Ht,l=Ht*o.value,u=280/n.value,f=50/n.value,d=t.elementInfo.width,h=t.elementInfo.height,p=t.elementInfo.left,m=t.elementInfo.top;let A=0,x=h;return p+u>=c&&(A=d-u),m+h+f>=l&&(x=-f),{left:A+"px",top:x+"px"}}),s=c=>{t.elementInfo.lock||(c.stopPropagation(),t.selectElement(c,t.elementInfo))};return(c,l)=>{const u=be("IconVolumeNotice"),f=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-audio",{lock:c.elementInfo.lock}]),style:we({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px",width:c.elementInfo.width+"px",height:c.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${c.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",onMousedown:l[1]||(l[1]=d=>s(d)),onTouchstart:l[2]||(l[2]=d=>s(d))},[L(u,{class:"audio-icon",style:we({fontSize:i.value,color:c.elementInfo.color})},null,8,["style"]),G(r)===c.elementInfo.id?(Y(),Te(_F,{key:0,class:"audio-player",style:we({...a.value}),src:c.elementInfo.src,loop:c.elementInfo.loop,scale:G(n),onMousedown:l[0]||(l[0]=Wt(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Ze("",!0)],32)),[[f,c.contextmenus]])],4)],6)}}}),EF=Xe(hue,[["__scopeId","data-v-5d8373ba"]]),pue=["id"],mue=Ie({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=Me(()=>({[kt.IMAGE]:yI,[kt.TEXT]:hF,[kt.SHAPE]:mF,[kt.LINE]:vF,[kt.CHART]:wF,[kt.TABLE]:NF,[kt.LATEX]:PF,[kt.VIDEO]:IF,[kt.AUDIO]:EF})[t.elementInfo.type]||null),{orderElement:r}=Tp(),{alignElementToCanvas:o}=i2(),{combineElements:i,uncombineElements:a}=Cb(),{deleteElement:s}=Op(),{lockElement:c,unlockElement:l}=$P(),{copyElement:u,pasteElement:f,cutElement:d}=Ib(),{selectAllElements:h}=Kg(),p=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>l(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:u},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>o(nn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"水平居中",handler:()=>o(nn.HORIZONTAL)},{text:"左对齐",handler:()=>o(nn.LEFT)},{text:"右对齐",handler:()=>o(nn.RIGHT)}]},{text:"垂直居中",handler:()=>o(nn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"垂直居中",handler:()=>o(nn.VERTICAL)},{text:"顶部对齐",handler:()=>o(nn.TOP)},{text:"底部对齐",handler:()=>o(nn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,hr.TOP),children:[{text:"置于顶层",handler:()=>r(t.elementInfo,hr.TOP)},{text:"上移一层",handler:()=>r(t.elementInfo,hr.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,hr.BOTTOM),children:[{text:"置于底层",handler:()=>r(t.elementInfo,hr.BOTTOM)},{text:"下移一层",handler:()=>r(t.elementInfo,hr.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:i,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:c},{text:"删除",subText:"Delete",handler:s}];return(m,A)=>(Y(),ee("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${m.elementInfo.id}`,style:we({zIndex:m.elementIndex})},[(Y(),Te(xs(n.value),{elementInfo:m.elementInfo,selectElement:m.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,pue))}}),vue=Ie({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:Je(`mouse-selection quadrant-${t.quadrant}`),style:we({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),gue=Xe(vue,[["__scopeId","data-v-053bfa3e"]]),Aue={class:"grid-lines"},Rue=["d","stroke"],yue=Ie({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=Ee(ft()),{currentSlide:r,viewportRatio:o}=Ee(lt()),i=Me(()=>{var c;return(c=r.value)==null?void 0:c.background}),a=Me(()=>{var u;const c=((u=i.value)==null?void 0:u.color)||"#fff",l=["#000","#fff"];return rt.mostReadable(c,l,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),s=Me(()=>{const c=Ht,l=Ht*o.value;let u="";for(let f=0;f<=Math.floor(l/n.value);f++)u+=`M0 ${f*n.value} L${c} ${f*n.value} `;for(let f=0;f<=Math.floor(c/n.value);f++)u+=`M${f*n.value} 0 L${f*n.value} ${l} `;return u});return(c,l)=>(Y(),ee("svg",Aue,[V("path",{style:we({transform:`scale(${G(t)})`}),d:s.value,fill:"none",stroke:a.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,Rue)]))}}),xue=Xe(yue,[["__scopeId","data-v-d6e1ea18"]]),f2=e=>({backgroundStyle:Me(()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:o,imageSize:i,gradientColor:a,gradientRotate:s,gradientType:c}=e.value;if(n==="solid")return{backgroundColor:r};if(n==="image")return o?i==="repeat"?{backgroundImage:`url(${o}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${o}`,backgroundRepeat:"no-repeat",backgroundSize:i||"cover"}:{backgroundColor:"#fff"};if(n==="gradient"){const l=s||0,u=a?a[0]:"#fff",f=a?a[1]:"#fff";return c==="radial"?{backgroundImage:`radial-gradient(${u}, ${f}`}:{backgroundImage:`linear-gradient(${l}deg, ${u}, ${f}`}}return{backgroundColor:"#fff"}})}),bue=Ie({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=Ee(ft()),{currentSlide:n}=Ee(lt()),r=Me(()=>{var i;return(i=n.value)==null?void 0:i.background}),{backgroundStyle:o}=f2(r);return(i,a)=>(Y(),ee("div",{class:"viewport-background",style:we(G(o))},[G(t)?(Y(),Te(xue,{key:0})):Ze("",!0)],4))}}),Sue=Xe(bue,[["__scopeId","data-v-203ea8ff"]]),Mue=Ie({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=Me(()=>t.axis.x*t.canvasScale+"px"),r=Me(()=>t.axis.y*t.canvasScale+"px"),o=Me(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(i,a)=>(Y(),ee("div",{class:"alignment-line",style:we({left:n.value,top:r.value})},[V("div",{class:Je(["line",i.type]),style:we(o.value)},null,6)],4))}}),XF=Xe(Mue,[["__scopeId","data-v-7cd3d25d"]]),wue={class:"ruler"},Lue=Ie({__name:"Ruler",props:{viewportStyles:{}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.viewportStyles.width*n.value/10);return(o,i)=>(Y(),ee("div",wue,[V("div",{class:"h",style:we({width:o.viewportStyles.width*G(n)+"px",left:o.viewportStyles.left+"px"})},[(Y(),ee(We,null,ot(20,a=>V("div",{class:Je(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:`marker-100-${a}`},[V("span",null,gt(a),1)],2)),64))],4),V("div",{class:"v",style:we({height:o.viewportStyles.height*G(n)+"px",top:o.viewportStyles.top+"px"})},[(Y(),ee(We,null,ot(20,a=>V("div",{class:Je(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:a,style:we({height:r.value+"px"})},[V("span",null,gt(a),1)],6)),64))],4)]))}}),Oue=Xe(Lue,[["__scopeId","data-v-b01be305"]]),Tue=["width","height"],kue=["d"],Nue=Ie({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,r=ft(),{creatingElement:o}=Ee(r),{ctrlOrShiftKeyActive:i}=Ee(Ss()),a=he(),s=he(),c=he(),l=he({x:0,y:0});Gt(()=>{if(!c.value)return;const{x:h,y:p}=c.value.getBoundingClientRect();l.value={x:h,y:p}});const u=h=>{let p=!0;const m=h.pageX,A=h.pageY;a.value=[m,A],document.onmousemove=x=>{if(!o.value||!p)return;let y=x.pageX,R=x.pageY;if(i.value){const g=y-m,b=R-A,w=Math.abs(g),T=Math.abs(b);if(o.value.type==="shape"){const M=b>0&&g<0||b<0&&g>0;w>T?R=M?A-g:A+g:y=M?m-b:m+b}else o.value.type==="line"&&(w>T?R=A:y=m)}s.value=[y,R]},document.onmouseup=x=>{var b,w;if(document.onmousemove=null,document.onmouseup=null,x.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const y=x.pageX,R=x.pageY,g=30;if(((b=o.value)==null?void 0:b.type)==="line"&&(Math.abs(y-m)>=g||Math.abs(R-A)>=g))n("created",{start:a.value,end:s.value});else if(((w=o.value)==null?void 0:w.type)!=="line"&&Math.abs(y-m)>=g&&Math.abs(R-A)>=g)n("created",{start:a.value,end:s.value});else{const M=Math.min(y,m),O=Math.min(R,A),k=Math.max(y,m),F=Math.max(R,A),N=k-M>=g?k-M:200,E=F-O>=g?F-O:200;n("created",{start:[M,O],end:[M+N,O+E]})}}},f=Me(()=>{if(!a.value||!s.value||!o.value||o.value.type!=="line")return null;const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),y=Math.max(h,m),R=Math.min(p,A),g=Math.max(p,A),b=y-x>=24?y-x:24,w=g-R>=24?g-R:24,T=h===x?0:y-x,M=p===R?0:g-R,O=m===x?0:y-x,k=A===R?0:g-R,F=`M${T}, ${M} L${O}, ${k}`;return{svgWidth:b,svgHeight:w,startX:T,startY:M,endX:O,endY:k,path:F}}),d=Me(()=>{if(!a.value||!s.value)return{};const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),y=Math.max(h,m),R=Math.min(p,A),g=Math.max(p,A),b=y-x,w=g-R;return{left:x-l.value.x+"px",top:R-l.value.y+"px",width:b+"px",height:w+"px"}});return(h,p)=>{var m,A;return Y(),ee("div",{class:"element-create-selection",ref_key:"selectionRef",ref:c,onMousedown:p[0]||(p[0]=Wt(x=>u(x),["stop"])),onContextmenu:p[1]||(p[1]=Wt(()=>{},["stop","prevent"]))},[a.value&&s.value?(Y(),ee("div",{key:0,class:Je(["selection",(m=G(o))==null?void 0:m.type]),style:we(d.value)},[((A=G(o))==null?void 0:A.type)==="line"&&f.value?(Y(),ee("svg",{key:0,overflow:"visible",width:f.value.svgWidth,height:f.value.svgHeight},[V("path",{d:f.value.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,kue)],8,Tue)):Ze("",!0)],6)):Ze("",!0)],544)}}}),Pue=Xe(Nue,[["__scopeId","data-v-7b17a883"]]),Cue={overflow:"visible"},Iue=["d","fill"],Fue=Ie({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,r=ft(),{ctrlOrShiftKeyActive:o}=Ee(Ss()),{theme:i}=Ee(lt()),a=he(),s=he(!1),c=he({x:0,y:0});Gt(()=>{if(!a.value)return;const{x:g,y:b}=a.value.getBoundingClientRect();c.value={x:g,y:b}});const l=he(null),u=he([]),f=he(!1),d=(g,b=!1)=>{let w=g.pageX-c.value.x,T=g.pageY-c.value.y;if(b)return{pageX:w,pageY:T};if(o.value&&u.value.length){const[M,O]=u.value[u.value.length-1];Math.abs(M-w)-Math.abs(O-T)>0?T=O:w=M}return{pageX:w,pageY:T}},h=g=>{if(s.value){const{pageX:T,pageY:M}=d(g,!0);u.value.push([T,M]),l.value=null;return}const{pageX:b,pageY:w}=d(g);if(l.value=[b,w],u.value.length>=2){const[T,M]=u.value[0];Math.abs(T-b)<5&&Math.abs(M-w)<5?f.value=!0:f.value=!1}else f.value=!1},p=Me(()=>{let g="";for(let b=0;b{const b=u.value.map(I=>I[0]),w=u.value.map(I=>I[1]),T=Math.min(...b),M=Math.min(...w),O=Math.max(...b),k=Math.max(...w),F=u.value.map(I=>[I[0]-T,I[1]-M]);let N="";for(let I=0;I{const{pageX:b,pageY:w}=d(g);s.value=!0,f.value?n("created",m()):u.value.push([b,w]),document.onmouseup=()=>{s.value=!1}},x=()=>{r.setCreatingCustomShapeState(!1)},y=()=>{n("created",{...m(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:i.value.themeColor,style:"solid"}}),x()},R=g=>{const b=g.key.toUpperCase();b===yt.ESC&&x(),b===yt.ENTER&&y()};return Gt(()=>{bn.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",R)}),wn(()=>{document.removeEventListener("keydown",R),bn.closeAll()}),(g,b)=>(Y(),ee("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:b[0]||(b[0]=Wt(w=>A(w),["stop"])),onMousemove:b[1]||(b[1]=w=>h(w)),onContextmenu:b[2]||(b[2]=Wt(w=>x(),["stop","prevent"]))},[(Y(),ee("svg",Cue,[V("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,Iue)]))],544))}}),_ue=Xe(Fue,[["__scopeId","data-v-8ea8c340"]]),ef=(e,t)=>{const n=Me(()=>[{direction:mt.LEFT_TOP,style:{}},{direction:mt.TOP,style:{left:e.value/2+"px"}},{direction:mt.RIGHT_TOP,style:{left:e.value+"px"}},{direction:mt.LEFT,style:{top:t.value/2+"px"}},{direction:mt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:mt.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:mt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:mt.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),r=Me(()=>[{direction:mt.LEFT,style:{top:t.value/2+"px"}},{direction:mt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),o=Me(()=>[{direction:mt.TOP,style:{left:e.value/2+"px"}},{direction:mt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),i=Me(()=>[{type:X0.T,style:{width:e.value+"px"}},{type:X0.B,style:{top:t.value+"px",width:e.value+"px"}},{type:X0.L,style:{height:t.value+"px"}},{type:X0.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:o,borderLines:i}},Eue=Ie({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=Me(()=>{const r="rotate-",o=t.rotate;return o>-22.5&&o<=22.5?r+0:o>22.5&&o<=67.5?r+45:o>67.5&&o<=112.5?r+90:o>112.5&&o<=157.5?r+135:o>157.5||o<=-157.5?r+0:o>-157.5&&o<=-112.5?r+45:o>-112.5&&o<=-67.5?r+90:o>-67.5&&o<=-22.5?r+135:r+0});return(r,o)=>(Y(),ee("div",{class:Je(["resize-handler",n.value,r.type])},null,2))}}),Oc=Xe(Eue,[["__scopeId","data-v-bb3f9e62"]]),Xue=Ie({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(Y(),ee("div",{class:Je(["border-line",t.type,{wide:t.isWide}])},null,2))}}),tf=Xe(Xue,[["__scopeId","data-v-7114fb45"]]),Wue=Ie({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:r}=Ee(ft()),o=Me(()=>t.elementList.filter(d=>n.value.includes(d.id))),i=he({minX:0,maxX:0,minY:0,maxY:0}),a=Me(()=>(i.value.maxX-i.value.minX)*r.value),s=Me(()=>(i.value.maxY-i.value.minY)*r.value),{resizeHandlers:c,borderLines:l}=ef(a,s);Lg(()=>{const{minX:d,maxX:h,minY:p,maxY:m}=ec(o.value);i.value={minX:d,maxX:h,minY:p,maxY:m}});const f=Me(()=>o.value.some(d=>!((d.type==="image"||d.type==="shape")&&!d.rotate)));return(d,h)=>(Y(),ee("div",{class:"multi-select-operate",style:we({left:i.value.minX*G(r)+"px",top:i.value.minY*G(r)+"px"})},[(Y(!0),ee(We,null,ot(G(l),p=>(Y(),Te(tf,{key:p.type,type:p.type,style:we(p.style)},null,8,["type","style"]))),128)),f.value?Ze("",!0):(Y(!0),ee(We,{key:0},ot(G(c),p=>(Y(),Te(Oc,{key:p.direction,type:p.direction,style:we(p.style),onMousedown:Wt(m=>d.scaleMultiElement(m,i.value,p.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),Vue=Xe(Wue,[["__scopeId","data-v-135c8cb7"]]),Uue={},Yue={class:"rotate-handler"};function Que(e,t){return Y(),ee("div",Yue)}const Gd=Xe(Uue,[["render",Que],["__scopeId","data-v-9f21fc0f"]]),Zue={inheritAttrs:!1},Bue=Ie({...Zue,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:r}=Ee(ft()),o=Me(()=>r.value===t.elementInfo.id),i=Me(()=>t.elementInfo.width*n.value),a=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:c}=ef(i,a);return(l,u)=>(Y(),ee("div",{class:Je(["image-element-operate",{cliping:o.value}])},[(Y(!0),ee(We,null,ot(G(c),f=>(Y(),Te(tf,{class:"operate-border-line",key:f.type,type:f.type,style:we(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(G(s),f=>(Y(),Te(Oc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:we(f.style),onMousedown:Wt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Gd,{class:"operate-rotate-handler",style:we({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=Wt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ze("",!0)],2))}}),Due=Xe(Bue,[["__scopeId","data-v-2a1bef4e"]]),Kue={class:"text-element-operate"},Hue={inheritAttrs:!1},Gue=Ie({...Hue,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:i,verticalTextElementResizeHandlers:a,borderLines:s}=ef(r,o),c=Me(()=>t.elementInfo.vertical?a.value:i.value);return(l,u)=>(Y(),ee("div",Kue,[(Y(!0),ee(We,null,ot(G(s),f=>(Y(),Te(tf,{class:"operate-border-line",key:f.type,type:f.type,style:we(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(c.value,f=>(Y(),Te(Oc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:we(f.style),onMousedown:Wt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Gd,{class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Wt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ze("",!0)]))}}),Jue={class:"shape-element-operate"},zue={inheritAttrs:!1},$ue=Ie({...zue,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=ef(r,o),s=Me(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoint===void 0)return{};const c=Gu[t.elementInfo.pathFormula];if("editable"in c){const l=c.getBaseSize(t.elementInfo.width,t.elementInfo.height)*t.elementInfo.keypoint;if(c.relative==="left")return{left:l*n.value+"px"};if(c.relative==="right")return{left:(t.elementInfo.width-l)*n.value+"px"};if(c.relative==="center")return{left:(t.elementInfo.width-l)/2*n.value+"px"};if(c.relative==="top")return{top:l*n.value+"px"};if(c.relative==="bottom")return{top:(t.elementInfo.height-l)*n.value+"px"}}return{}});return(c,l)=>(Y(),ee("div",Jue,[(Y(!0),ee(We,null,ot(G(a),u=>(Y(),Te(tf,{class:"operate-border-line",key:u.type,type:u.type,style:we(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(G(i),u=>(Y(),Te(Oc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:we(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Gd,{class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]),c.elementInfo.keypoint!==void 0?(Y(),ee("div",{key:0,class:"operate-keypoint-handler",style:we(s.value),onMousedown:l[1]||(l[1]=Wt(u=>c.moveShapeKeypoint(u,c.elementInfo),["stop"]))},null,36)):Ze("",!0)],64)):Ze("",!0)]))}}),jue=Xe($ue,[["__scopeId","data-v-e65e73bd"]]),que={class:"line-element-operate"},efe=["width","height","stroke"],tfe={key:0},nfe=["x1","y1","x2","y2"],rfe=["x1","y1","x2","y2"],ofe=["x1","y1","x2","y2"],ife=["x1","y1","x2","y2"],afe={inheritAttrs:!1},sfe=Ie({...afe,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),o=Me(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),i=Me(()=>{const a=[{handler:Go.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:Go.END,style:{left:t.elementInfo.end[0]*n.value+"px",top:t.elementInfo.end[1]*n.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken){const s=t.elementInfo.curve||t.elementInfo.broken;a.push({handler:Go.C,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[s,c]=t.elementInfo.cubic;a.push({handler:Go.C1,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}}),a.push({handler:Go.C2,style:{left:c[0]*n.value+"px",top:c[1]*n.value+"px"}})}return a});return(a,s)=>(Y(),ee("div",que,[a.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(i.value,c=>(Y(),Te(Oc,{class:"operate-resize-handler",key:c.handler,style:we(c.style),onMousedown:Wt(l=>a.dragLineElement(l,a.elementInfo,c.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(Y(),ee("svg",{width:r.value||1,height:o.value||1,stroke:a.elementInfo.color,overflow:"visible",style:we({transform:`scale(${G(n)})`})},[a.elementInfo.curve?(Y(),ee("g",tfe,[V("line",{class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,nfe),V("line",{class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,rfe)])):Ze("",!0),a.elementInfo.cubic?(Y(!0),ee(We,{key:1},ot(a.elementInfo.cubic,(c,l)=>(Y(),ee("g",{key:l},[l===0?(Y(),ee("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:c[0],y2:c[1]},null,8,ofe)):Ze("",!0),l===1?(Y(),ee("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:c[0],y2:c[1]},null,8,ife)):Ze("",!0)]))),128)):Ze("",!0)],12,efe))],64)):Ze("",!0)]))}}),lfe=Xe(sfe,[["__scopeId","data-v-32a06240"]]),cfe={class:"table-element-operate"},ufe={inheritAttrs:!1},ffe=Ie({...ufe,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.elementInfo.outline.width||1),o=Me(()=>(t.elementInfo.width+r.value)*n.value),i=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=ef(o,i);return(c,l)=>(Y(),ee("div",cfe,[(Y(!0),ee(We,null,ot(G(s),u=>(Y(),Te(tf,{class:"operate-border-line",key:u.type,type:u.type,style:we(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(G(a),u=>(Y(),Te(Oc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:we(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Gd,{class:"operate-rotate-handler",style:we({left:o.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"])],64)):Ze("",!0)]))}}),dfe={class:"common-element-operate"},hfe={inheritAttrs:!1},ym=Ie({...hfe,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=ef(r,o),s=Me(()=>["chart","video","audio"].includes(t.elementInfo.type));return(c,l)=>(Y(),ee("div",dfe,[(Y(!0),ee(We,null,ot(G(a),u=>(Y(),Te(tf,{class:"operate-border-line",key:u.type,type:u.type,style:we(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(G(i),u=>(Y(),Te(Oc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:we(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?Ze("",!0):(Y(),Te(Gd,{key:0,class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]))],64)):Ze("",!0)]))}}),WF=()=>{const e=lt(),{addHistorySnapshot:t}=Jt();return{setLink:(o,i)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(i.type==="web"&&!a.test(i.target))return bn.error("不是正确的网页链接地址"),!1;if(i.type==="slide"&&!i.target)return bn.error("请先选择链接目标"),!1;const s={link:i};return e.updateElement({id:o.id,props:s}),t(),!0},removeLink:o=>{e.removeElementProps({id:o.id,propName:"link"}),t()}}},pfe=Ie({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:0}},setup(e){return(t,n)=>(Y(),ee("div",{class:Je(["divider",t.type]),style:we({margin:t.type==="horizontal"?`${t.margin||24}px 0`:`0 ${t.margin||8}px`})},null,6))}}),Ut=Xe(pfe,[["__scopeId","data-v-c7c64e0b"]]),mfe=["href"],vfe={class:"btns"},gfe=Ie({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=ft(),r=lt(),{canvasScale:o}=Ee(n),{slides:i}=Ee(r),{removeLink:a}=WF(),s=Me(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),c=l=>{const u=i.value.findIndex(f=>f.id===l);u!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(u))};return(l,u)=>(Y(),ee("div",{class:"link-handler",style:we({top:s.value*G(o)+10+"px"})},[l.link.type==="web"?(Y(),ee("a",{key:0,class:"link",href:l.link.target,target:"_blank"},gt(l.link.target),9,mfe)):(Y(),ee("a",{key:1,class:"link",onClick:u[0]||(u[0]=f=>c(l.link.target))},"幻灯片页面 "+gt(l.link.target),1)),V("div",vfe,[V("div",{class:"btn",onClick:u[1]||(u[1]=f=>l.openLinkDialog())},"更换"),L(Ut,{type:"vertical"}),V("div",{class:"btn",onClick:u[2]||(u[2]=f=>G(a)(l.elementInfo))},"移除")])],4))}}),Afe=Xe(gfe,[["__scopeId","data-v-f8f46f78"]]),Rfe={key:1,class:"animation-index"},yfe=Ie({__name:"index",props:{elementInfo:{},isSelected:{type:Boolean},isActive:{type:Boolean},isActiveGroupElement:{type:Boolean},isMultiSelect:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},dragLineElement:{type:Function},moveShapeKeypoint:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,{canvasScale:n,toolbarState:r}=Ee(ft()),{formatedAnimations:o}=Ee(lt()),i=Me(()=>({[kt.IMAGE]:Due,[kt.TEXT]:Gue,[kt.SHAPE]:jue,[kt.LINE]:lfe,[kt.TABLE]:ffe,[kt.CHART]:ym,[kt.LATEX]:ym,[kt.VIDEO]:ym,[kt.AUDIO]:ym})[t.elementInfo.type]||null),a=Me(()=>{const l=[];for(let u=0;ud.elId).includes(t.elementInfo.id)&&l.push(u);return l}),s=Me(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),c=Me(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(l,u)=>(Y(),ee("div",{class:Je(["operate",{"multi-select":l.isMultiSelect&&!l.isActive}]),style:we({top:l.elementInfo.top*G(n)+"px",left:l.elementInfo.left*G(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${l.elementInfo.width*G(n)/2}px ${c.value*G(n)/2}px`})},[l.isSelected?(Y(),Te(xs(i.value),{key:0,elementInfo:l.elementInfo,handlerVisible:!l.elementInfo.lock&&(l.isActiveGroupElement||!l.isMultiSelect),rotateElement:l.rotateElement,scaleElement:l.scaleElement,dragLineElement:l.dragLineElement,moveShapeKeypoint:l.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Ze("",!0),G(r)==="elAnimation"&&a.value.length?(Y(),ee("div",Rfe,[(Y(!0),ee(We,null,ot(a.value,f=>(Y(),ee("div",{class:"index-item",key:f},gt(f+1),1))),128))])):Ze("",!0),l.isActive&&l.elementInfo.link?(Y(),Te(Afe,{key:2,elementInfo:l.elementInfo,link:l.elementInfo.link,openLinkDialog:l.openLinkDialog,onMousedown:u[0]||(u[0]=Wt(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Ze("",!0)],6))}}),xfe=Xe(yfe,[["__scopeId","data-v-b96daa51"]]),bfe=["src"],Sfe=Ie({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=wc(n),o=Me(()=>t.elementInfo.flipH),i=Me(()=>t.elementInfo.flipV),{flipStyle:a}=a2(o,i),s=Me(()=>t.elementInfo.clip),{clipShape:c,imgPosition:l}=i5(s),u=Me(()=>t.elementInfo.filters),{filter:f}=gI(u);return(d,h)=>(Y(),ee("div",{class:"base-element-image",style:we({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({filter:G(r)?`drop-shadow(${G(r)})`:"",transform:G(a)})},[L(AI,{elementInfo:d.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:we({clipPath:G(c).style})},[V("img",{src:d.elementInfo.src,draggable:!1,style:we({top:G(l).top,left:G(l).left,width:G(l).width,height:G(l).height,filter:G(f)}),alt:""},null,12,bfe),d.elementInfo.colorMask?(Y(),ee("div",{key:0,class:"color-mask",style:we({backgroundColor:d.elementInfo.colorMask})},null,4)):Ze("",!0)],4)],4)],4)],4))}}),VF=Xe(Sfe,[["__scopeId","data-v-71d24108"]]),Mfe=["innerHTML"],wfe=Ie({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=wc(n);return(o,i)=>(Y(),ee("div",{class:"base-element-text",style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({width:o.elementInfo.vertical?"auto":o.elementInfo.width+"px",height:o.elementInfo.vertical?o.elementInfo.height+"px":"auto",backgroundColor:o.elementInfo.fill,opacity:o.elementInfo.opacity,textShadow:G(r),lineHeight:o.elementInfo.lineHeight,letterSpacing:(o.elementInfo.wordSpace||0)+"px",color:o.elementInfo.defaultColor,fontFamily:o.elementInfo.defaultFontName,writingMode:o.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[L(s2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),V("div",{class:Je(["text ProseMirror-static",{thumbnail:o.target==="thumbnail"}]),style:we({"--paragraphSpace":`${o.elementInfo.paragraphSpace===void 0?5:o.elementInfo.paragraphSpace}px`}),innerHTML:o.elementInfo.content},null,14,Mfe)],4)],4)],4))}}),UF=Xe(wfe,[["__scopeId","data-v-a3ec163d"]]),Lfe=["width","height"],Ofe={key:0},Tfe=["transform"],kfe=["d","fill","stroke","stroke-width","stroke-dasharray"],Nfe=["innerHTML"],Pfe=Ie({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.outline),{outlineWidth:r,outlineColor:o,strokeDashArray:i}=Hd(n),a=Me(()=>t.elementInfo.shadow),{shadowStyle:s}=wc(a),c=Me(()=>t.elementInfo.flipH),l=Me(()=>t.elementInfo.flipV),{flipStyle:u}=a2(c,l),f=Me(()=>{const d={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:d});return(d,h)=>(Y(),ee("div",{class:"base-element-shape",style:we({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({opacity:d.elementInfo.opacity,filter:G(s)?`drop-shadow(${G(s)})`:"",transform:G(u),color:f.value.defaultColor,fontFamily:f.value.defaultFontName})},[(Y(),ee("svg",{overflow:"visible",width:d.elementInfo.width,height:d.elementInfo.height},[d.elementInfo.gradient?(Y(),ee("defs",Ofe,[L(pF,{id:`base-gradient-${d.elementInfo.id}`,type:d.elementInfo.gradient.type,color1:d.elementInfo.gradient.color[0],color2:d.elementInfo.gradient.color[1],rotate:d.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Ze("",!0),V("g",{transform:`scale(${d.elementInfo.width/d.elementInfo.viewBox[0]}, ${d.elementInfo.height/d.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:d.elementInfo.path,fill:d.elementInfo.gradient?`url(#base-gradient-${d.elementInfo.id})`:d.elementInfo.fill,stroke:G(o),"stroke-width":G(r),"stroke-dasharray":G(i)},null,8,kfe)],8,Tfe)],8,Lfe)),V("div",{class:Je(["shape-text",f.value.align])},[V("div",{class:"ProseMirror-static",innerHTML:f.value.content},null,8,Nfe)],2)],4)],4)],4))}}),YF=Xe(Pfe,[["__scopeId","data-v-2d39d3d1"]]),Cfe=["width","height"],Ife=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Ffe=Ie({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=wc(n),o=Me(()=>{const c=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return c<24?24:c}),i=Me(()=>{const c=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return c<24?24:c}),a=Me(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const c=t.elementInfo.width;return c<=8?`${c*5} ${c*2.5}`:`${c*5} ${c*1.5}`}),s=Me(()=>Tb(t.elementInfo));return(c,l)=>(Y(),ee("div",{class:"base-element-line",style:we({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px"})},[V("div",{class:"element-content",style:we({filter:G(r)?`drop-shadow(${G(r)})`:""})},[(Y(),ee("svg",{overflow:"visible",width:o.value,height:i.value},[V("defs",null,[c.elementInfo.points[0]?(Y(),Te(Cd,{key:0,id:c.elementInfo.id,position:"start",type:c.elementInfo.points[0],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0),c.elementInfo.points[1]?(Y(),Te(Cd,{key:1,id:c.elementInfo.id,position:"end",type:c.elementInfo.points[1],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0)]),V("path",{d:s.value,stroke:c.elementInfo.color,"stroke-width":c.elementInfo.width,"stroke-dasharray":a.value,fill:"none","marker-start":c.elementInfo.points[0]?`url(#${c.elementInfo.id}-${c.elementInfo.points[0]}-start)`:"","marker-end":c.elementInfo.points[1]?`url(#${c.elementInfo.id}-${c.elementInfo.points[1]}-end)`:""},null,8,Ife)],8,Cfe))],4)],4))}}),QF=Xe(Ffe,[["__scopeId","data-v-e7dc2b42"]]),_fe=Ie({__name:"BaseChartElement",props:{elementInfo:{}},setup(e){const t=jo(qu)||he(1),n=Me(()=>t.value<1),r=Me(()=>n.value?1/t.value:1);return(o,i)=>(Y(),ee("div",{class:"base-element-chart",style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({backgroundColor:o.elementInfo.fill})},[L(s2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),L(MF,{width:o.elementInfo.width*r.value,height:o.elementInfo.height*r.value,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||"",style:we({zoom:1/r.value})},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend","style"])],4)],4)],4))}}),ZF=Xe(_fe,[["__scopeId","data-v-37ca5799"]]),Efe=["width"],Xfe=["rowspan","colspan"],Wfe=["innerHTML"],Vfe=Ie({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,n=he([]),r=Me(()=>n.value.reduce((c,l)=>c+l));Tt([()=>t.colWidths,()=>t.width],()=>{n.value=t.colWidths.map(c=>c*t.width)},{immediate:!0});const o=Me(()=>t.data),{hideCells:i}=TF(o),a=Me(()=>t.theme),{subThemeColor:s}=kF(a);return(c,l)=>{var u,f,d,h,p;return Y(),ee("div",{class:"static-table",style:we({width:r.value+"px"})},[V("table",{class:Je({theme:a.value,"row-header":(u=a.value)==null?void 0:u.rowHeader,"row-footer":(f=a.value)==null?void 0:f.rowFooter,"col-header":(d=a.value)==null?void 0:d.colHeader,"col-footer":(h=a.value)==null?void 0:h.colFooter}),style:we(`--themeColor: ${(p=a.value)==null?void 0:p.color}; --subThemeColor1: ${G(s)[0]}; --subThemeColor2: ${G(s)[1]}`)},[V("colgroup",null,[(Y(!0),ee(We,null,ot(n.value,(m,A)=>(Y(),ee("col",{span:"1",key:A,width:m},null,8,Efe))),128))]),V("tbody",null,[(Y(!0),ee(We,null,ot(c.data,(m,A)=>(Y(),ee("tr",{key:A,style:we({height:c.cellMinHeight+"px"})},[(Y(!0),ee(We,null,ot(m,(x,y)=>Ke((Y(),ee("td",{class:"cell",style:we({borderStyle:c.outline.style,borderColor:c.outline.color,borderWidth:c.outline.width+"px",...G(LF)(x.style)}),key:x.id,rowspan:x.rowspan,colspan:x.colspan},[V("div",{class:"cell-text",style:we({minHeight:c.cellMinHeight-4+"px"}),innerHTML:G(OF)(x.text)},null,12,Wfe)],12,Xfe)),[[il,!G(i).includes(`${A}_${y}`)]])),128))],4))),128))])],6)],4)}}}),Ufe=Xe(Vfe,[["__scopeId","data-v-6d887dcd"]]),Yfe={class:"element-content"},Qfe=Ie({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:"base-element-table",style:we({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",Yfe,[L(Ufe,{data:t.elementInfo.data,width:t.elementInfo.width,cellMinHeight:t.elementInfo.cellMinHeight,colWidths:t.elementInfo.colWidths,outline:t.elementInfo.outline,theme:t.elementInfo.theme},null,8,["data","width","cellMinHeight","colWidths","outline","theme"])])],4)],4))}}),BF=Xe(Qfe,[["__scopeId","data-v-77cfa6e4"]]),Zfe={class:"element-content"},Bfe=["width","height","stroke","stroke-width"],Dfe=["transform"],Kfe=["d"],Hfe=Ie({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:"base-element-latex",style:we({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",Zfe,[(Y(),ee("svg",{overflow:"visible",width:t.elementInfo.width,height:t.elementInfo.height,stroke:t.elementInfo.color,"stroke-width":t.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${t.elementInfo.width/t.elementInfo.viewBox[0]}, ${t.elementInfo.height/t.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:t.elementInfo.path},null,8,Kfe)],8,Dfe)],8,Bfe))])],4)],4))}}),DF=Xe(Hfe,[["__scopeId","data-v-93374af9"]]),Gfe=Ie({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(t,n)=>{const r=be("IconPlayOne");return Y(),ee("div",{class:"base-element-video",style:we({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({backgroundImage:t.elementInfo.poster?`url(${t.elementInfo.poster})`:""})},[L(r,{class:"icon"})],4)],4)],4)}}}),Jfe=Xe(Gfe,[["__scopeId","data-v-2fb0e771"]]),zfe={class:"element-content"},$fe=Ie({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px");return(r,o)=>{const i=be("IconVolumeNotice");return Y(),ee("div",{class:"base-element-audio",style:we({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${r.elementInfo.rotate}deg)`})},[V("div",zfe,[L(i,{class:"audio-icon",style:we({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),jfe=Xe($fe,[["__scopeId","data-v-b33e6120"]]),qfe=Ie({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,n=Me(()=>({[kt.IMAGE]:VF,[kt.TEXT]:UF,[kt.SHAPE]:YF,[kt.LINE]:QF,[kt.CHART]:ZF,[kt.TABLE]:BF,[kt.LATEX]:DF,[kt.VIDEO]:Jfe,[kt.AUDIO]:jfe})[t.elementInfo.type]||null);return(r,o)=>(Y(),ee("div",{class:Je(["base-element",`base-element-${r.elementInfo.id}`]),style:we({zIndex:r.elementIndex})},[(Y(),Te(xs(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),ede={key:1,class:"placeholder"},tde=Ie({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:n}=Ee(lt()),r=Me(()=>t.slide.background),{backgroundStyle:o}=f2(r),i=Me(()=>t.size/Ht);return Bu(qu,i),(a,s)=>(Y(),ee("div",{class:"thumbnail-slide",style:we({width:a.size+"px",height:a.size*G(n)+"px"})},[a.visible?(Y(),ee("div",{key:0,class:"elements",style:we({width:G(Ht)+"px",height:G(Ht)*G(n)+"px",transform:`scale(${i.value})`})},[V("div",{class:"background",style:we(G(o))},null,4),(Y(!0),ee(We,null,ot(a.slide.elements,(c,l)=>(Y(),Te(qfe,{key:c.id,elementInfo:c,elementIndex:l+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(Y(),ee("div",ede,"加载中 ..."))],4))}}),Fa=Xe(tde,[["__scopeId","data-v-cbd76d0a"]]),nde=["onClick"],rde=Ie({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=t;return(r,o)=>(Y(),ee("div",{class:Je(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:we(r.tabsStyle||{})},[(Y(!0),ee(We,null,ot(r.tabs,i=>(Y(),ee("div",{class:Je(["tab",{active:i.key===r.value}]),key:i.key,style:we({...r.tabStyle||{},"--color":i.color}),onClick:a=>n("update:value",i.key)},gt(i.label),15,nde))),128))],6))}}),gs=Xe(rde,[["__scopeId","data-v-c7f9dce0"]]),ode=Ie({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=()=>{n.disabled||r("click")};return(i,a)=>(Y(),ee("button",{class:Je(["button",{disabled:i.disabled,checked:!i.disabled&&i.checked,default:!i.disabled&&i.type==="default",primary:!i.disabled&&i.type==="primary",checkbox:!i.disabled&&i.type==="checkbox",radio:!i.disabled&&i.type==="radio",small:i.size==="small",first:i.first,last:i.last}]),onClick:a[0]||(a[0]=s=>o())},[lr(i.$slots,"default",{},void 0,!0)],2))}}),et=Xe(ode,[["__scopeId","data-v-3e3d85be"]]),ide={key:0,class:"select-wrap"},ade={class:"selector"},sde={class:"icon"},lde=["onClick"],cde={class:"selector"},ude={class:"icon"},fde=Ie({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=Me(()=>{var f;return((f=n.options.find(d=>d.value===n.value))==null?void 0:f.label)||n.value}),o=t,i=he(!1),a=he(),s=he(0),c=()=>{a.value&&(s.value=a.value.clientWidth)},l=new ResizeObserver(c);Gt(()=>{a.value&&l.observe(a.value)}),wn(()=>{a.value&&l.unobserve(a.value)});const u=f=>{f.disabled||(o("update:value",f.value),i.value=!1)};return(f,d)=>{const h=be("IconDown");return f.disabled?(Y(),ee("div",ide,[V("div",{class:"select disabled",ref_key:"selectRef",ref:a},[V("div",ade,gt(f.value),1),V("div",sde,[lr(f.$slots,"icon",{},()=>[L(h,{size:14})],!0)])],512)])):(Y(),Te(Pt,{key:1,class:"select-wrap",trigger:"click",value:i.value,"onUpdate:value":d[0]||(d[0]=p=>i.value=p),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:ie(()=>[V("div",{class:"options",style:we({width:s.value+2+"px"})},[(Y(!0),ee(We,null,ot(f.options,p=>(Y(),ee("div",{class:Je(["option",{disabled:p.disabled,selected:p.value===f.value}]),key:p.value,onClick:m=>u(p)},gt(p.label),11,lde))),128))],4)]),default:ie(()=>[V("div",{class:"select",ref_key:"selectRef",ref:a},[V("div",cde,gt(r.value),1),V("div",ude,[lr(f.$slots,"icon",{},()=>[L(h,{size:14})],!0)])],512)]),_:3},8,["value","contentStyle"]))}}}),Gn=Xe(fde,[["__scopeId","data-v-618af0ca"]]),dde=e=>(rn("data-v-de4d9db3"),e=e(),on(),e),hde={class:"link-dialog"},pde={key:2,class:"preview"},mde=dde(()=>V("div",null,"预览:",-1)),vde={class:"btns"},gde=Ie({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var p;const n=t,{handleElement:r}=Ee(ft()),{slides:o,currentSlide:i}=Ee(lt()),a=he("web"),s=he(""),c=he(""),l=Me(()=>o.value.map((m,A)=>({label:`幻灯片 ${A+1}`,value:m.id,disabled:i.value.id===m.id})));c.value=((p=o.value.find(m=>m.id!==i.value.id))==null?void 0:p.id)||"";const u=Me(()=>c.value&&o.value.find(m=>m.id===c.value)||null),f=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:d}=WF();Gt(()=>{var m;(m=r.value)!=null&&m.link&&(r.value.link.type==="web"?s.value=r.value.link.target:r.value.link.type==="slide"&&(c.value=r.value.link.target),a.value=r.value.link.type)});const h=()=>{const m={type:a.value,target:a.value==="web"?s.value:c.value};r.value&&(d(r.value,m)?n("close"):s.value="")};return(m,A)=>(Y(),ee("div",hde,[L(gs,{tabs:f,value:a.value,"onUpdate:value":A[0]||(A[0]=x=>a.value=x),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(Y(),Te(_u,{key:0,class:"input",value:s.value,"onUpdate:value":A[1]||(A[1]=x=>s.value=x),placeholder:"请输入网页链接地址"},null,8,["value"])):Ze("",!0),a.value==="slide"?(Y(),Te(Gn,{key:1,class:"input",value:c.value,"onUpdate:value":A[2]||(A[2]=x=>c.value=x),options:l.value},null,8,["value","options"])):Ze("",!0),a.value==="slide"&&u.value?(Y(),ee("div",pde,[mde,L(Fa,{class:"thumbnail",slide:u.value,size:500},null,8,["slide"])])):Ze("",!0),V("div",vde,[L(et,{onClick:A[3]||(A[3]=x=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ve("取消")]),_:1}),L(et,{type:"primary",onClick:A[4]||(A[4]=x=>h())},{default:ie(()=>[Ve("确认")]),_:1})])]))}}),Ade=Xe(gde,[["__scopeId","data-v-de4d9db3"]]),Rde=Ie({__name:"Modal",props:{visible:{type:Boolean},width:{default:480},closeButton:{type:Boolean,default:!1},closeOnClickMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},contentStyle:{}},emits:["update:visible","closed"],setup(e,{emit:t}){const{IconClose:n}=Vv,r=e,o=he(),i=t,a=he(!1),s=Me(()=>({width:r.width+"px",...r.contentStyle||{}}));Tt(()=>r.visible,()=>{r.visible&&Wr(()=>o.value.focus())});const c=()=>{i("update:visible",!1),i("closed")},l=()=>{r.visible&&r.closeOnEsc&&c()},u=()=>{r.closeOnClickMask&&c()};return(f,d)=>(Y(),Te(eb,{to:"body"},[L(Ou,{name:"modal-fade"},{default:ie(()=>[Ke(V("div",{class:"modal",ref_key:"modalRef",ref:o,tabindex:"-1",onKeyup:d[4]||(d[4]=gc(h=>l(),["esc"]))},[V("div",{class:"mask",onClick:d[0]||(d[0]=h=>u())}),L(Ou,{name:"modal-zoom",onAfterLeave:d[2]||(d[2]=h=>a.value=!1),onBeforeEnter:d[3]||(d[3]=h=>a.value=!0)},{default:ie(()=>[Ke(V("div",{class:"modal-content",style:we(s.value)},[f.closeButton?(Y(),ee("span",{key:0,class:"close-btn",onClick:d[1]||(d[1]=h=>c())},[L(G(n))])):Ze("",!0),a.value?lr(f.$slots,"default",{key:1},void 0,!0):Ze("",!0)],4),[[il,f.visible]])]),_:3})],544),[[il,f.visible]])]),_:3})]))}}),Yp=Xe(Rde,[["__scopeId","data-v-4d27bcca"]]),yde={class:"operates"},xde={key:2,class:"drag-mask"},bde=Ie({__name:"index",setup(e){const t=ft(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:o,hiddenElementIdList:i,editorAreaFocus:a,gridLineSize:s,showRuler:c,creatingElement:l,creatingCustomShape:u,canvasScale:f,textFormatPainter:d}=Ee(t),{currentSlide:h}=Ee(lt()),{ctrlKeyState:p,spaceKeyState:m}=Ee(Ss()),A=he(),x=he([]),y=he(!1),R=()=>y.value=!0;Tt(o,()=>{t.setActiveGroupElementId("")});const g=he([]);Lg(()=>{g.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const w=he(),{dragViewport:T,viewportStyles:M}=Soe(w);woe(w);const{mouseSelection:O,mouseSelectionVisible:k,mouseSelectionQuadrant:F,updateMouseSelection:N}=Moe(g,A),{dragElement:E}=mI(g,x,f),{dragLineElement:C}=Toe(g),{selectElement:_}=Ooe(g,E),{scaleElement:I,scaleMultiElement:W}=pI(g,x,f),{rotateElement:Z}=dI(g,A,f),{moveShapeKeypoint:J}=koe(g,f),{selectAllElements:le}=Kg(),{deleteAllElements:D}=Op(),{pasteElement:Q}=Ib(),{enterScreeningFromStart:B}=Sc(),{updateSlideIndex:H}=Bd(),{createTextElement:U,createShapeElement:te}=Ju();Gt(()=>{n.value.length&&Wr(()=>t.setActiveElementIdList([]))});const z=ae=>{n.value.length&&t.setActiveElementIdList([]),m.value?T(ae):N(ae),a.value||t.setEditorareaFocus(!0),d.value&&t.setTextFormatPainter(null),boe()},oe=ae=>{if(n.value.length||l.value||u.value||!A.value)return;const ge=A.value.getBoundingClientRect(),ce=(ae.pageX-ge.x)/f.value,ve=(ae.pageY-ge.y)/f.value;U({left:ce,top:ve,width:200/f.value,height:0})};wn(()=>{d.value&&t.setTextFormatPainter(null)});const pe=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:Ae}=_b(),me=Fn.throttle(Ae,100,{leading:!0,trailing:!1}),$=Fn.throttle(H,300,{leading:!0,trailing:!1}),ue=ae=>{ae.preventDefault(),p.value?ae.deltaY>0?me("-"):ae.deltaY<0&&me("+"):ae.deltaY>0?$(yt.DOWN):ae.deltaY<0&&$(yt.UP)},X=()=>{t.setRulerState(!c.value)},{insertElementFromCreateSelection:ne,formatCreateSelection:se}=Noe(A),j=ae=>{const{start:ge,end:ce,path:ve,viewBox:ye}=ae,_e=se({start:ge,end:ce});if(_e){const Se={};ae.fill&&(Se.fill=ae.fill),ae.outline&&(Se.outline=ae.outline),te(_e,{path:ve,viewBox:ye},Se)}t.setCreatingCustomShapeState(!1)},q=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Q},{text:"全选",subText:"Ctrl + A",handler:le},{text:"标尺",subText:c.value?"√":"",handler:X},{text:"网格线",handler:()=>t.setGridLineSize(s.value?0:50),children:[{text:"无",subText:s.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:s.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:s.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:s.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:D},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:B}];return Bu(qu,f),(ae,ge)=>{const ce=Sn("contextmenu"),ve=Sn("click-outside");return Ke((Y(),ee("div",{class:"canvas",ref_key:"canvasRef",ref:w,onWheel:ge[4]||(ge[4]=ye=>ue(ye)),onMousedown:ge[5]||(ge[5]=ye=>z(ye)),onDblclick:ge[6]||(ge[6]=ye=>oe(ye))},[G(l)?(Y(),Te(Pue,{key:0,onCreated:ge[0]||(ge[0]=ye=>G(ne)(ye))})):Ze("",!0),G(u)?(Y(),Te(_ue,{key:1,onCreated:ge[1]||(ge[1]=ye=>j(ye))})):Ze("",!0),V("div",{class:"viewport-wrapper",style:we({width:G(M).width*G(f)+"px",height:G(M).height*G(f)+"px",left:G(M).left+"px",top:G(M).top+"px"})},[V("div",yde,[(Y(!0),ee(We,null,ot(x.value,(ye,_e)=>(Y(),Te(XF,{key:_e,type:ye.type,axis:ye.axis,length:ye.length,canvasScale:G(f)},null,8,["type","axis","length","canvasScale"]))),128)),G(n).length>1?(Y(),Te(Vue,{key:0,elementList:g.value,scaleMultiElement:G(W)},null,8,["elementList","scaleMultiElement"])):Ze("",!0),(Y(!0),ee(We,null,ot(g.value,ye=>Ke((Y(),Te(xfe,{key:ye.id,elementInfo:ye,isSelected:G(n).includes(ye.id),isActive:G(o)===ye.id,isActiveGroupElement:G(r)===ye.id,isMultiSelect:G(n).length>1,rotateElement:G(Z),scaleElement:G(I),openLinkDialog:R,dragLineElement:G(C),moveShapeKeypoint:G(J)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[il,!G(i).includes(ye.id)]])),128)),L(Sue)]),V("div",{class:"viewport",ref_key:"viewportRef",ref:A,style:we({transform:`scale(${G(f)})`})},[G(k)?(Y(),Te(gue,{key:0,top:G(O).top,left:G(O).left,width:G(O).width,height:G(O).height,quadrant:G(F)},null,8,["top","left","width","height","quadrant"])):Ze("",!0),(Y(!0),ee(We,null,ot(g.value,(ye,_e)=>Ke((Y(),Te(mue,{key:ye.id,elementInfo:ye,elementIndex:_e+1,isMultiSelect:G(n).length>1,selectElement:G(_),openLinkDialog:R},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[il,!G(i).includes(ye.id)]])),128))],4)],4),G(m)?(Y(),ee("div",xde)):Ze("",!0),G(c)?(Y(),Te(Oue,{key:3,viewportStyles:G(M)},null,8,["viewportStyles"])):Ze("",!0),L(Yp,{visible:y.value,"onUpdate:visible":ge[3]||(ge[3]=ye=>y.value=ye),width:540},{default:ie(()=>[L(Ade,{onClose:ge[2]||(ge[2]=ye=>y.value=!1)})]),_:1},8,["visible"])],32)),[[ce,q],[ve,pe]])}}}),Sde=Xe(bde,[["__scopeId","data-v-47bbcf7b"]]),Mde={class:"shape-item-thumbnail"},wde={class:"shape-content"},Lde={overflow:"visible",width:"18",height:"18"},Ode=["transform"],Tde=["fill","stroke","d"],kde=Ie({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(Y(),ee("div",Mde,[V("div",wde,[(Y(),ee("svg",Lde,[V("g",{transform:`scale(${18/t.shape.viewBox[0]}, ${18/t.shape.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:Je(["shape-path",{outlined:t.shape.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:t.shape.outlined?"#999":"transparent",stroke:t.shape.outlined?"transparent":"#999","stroke-width":"2",d:t.shape.path},null,10,Tde)],8,Ode)]))])]))}}),KF=Xe(kde,[["__scopeId","data-v-2896ae03"]]),Nde={class:"shape-pool"},Pde={class:"category-name"},Cde={class:"shape-list"},Ide=Ie({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Y(),ee("div",Nde,[(Y(!0),ee(We,null,ot(G(Nb),a=>(Y(),ee("div",{class:"category",key:a.type},[V("div",Pde,gt(a.type),1),V("div",Cde,[(Y(!0),ee(We,null,ot(a.children,(s,c)=>(Y(),Te(KF,{class:"shape-item",key:c,shape:s,onClick:l=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),Fde=Xe(Ide,[["__scopeId","data-v-553b0d02"]]),_de=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],Ede={class:"line-pool"},Xde={class:"category-name"},Wde={class:"line-list"},Vde=["onClick"],Ude={overflow:"visible",width:"20",height:"20"},Yde=["d","stroke-dasharray","marker-start","marker-end"],Qde=Ie({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Y(),ee("div",Ede,[(Y(!0),ee(We,null,ot(G(_de),(a,s)=>(Y(),ee("div",{class:"category",key:a.type},[V("div",Xde,gt(a.type),1),V("div",Wde,[(Y(!0),ee(We,null,ot(a.children,(c,l)=>(Y(),ee("div",{class:"line-item",key:l},[V("div",{class:"line-content",onClick:u=>r(c)},[(Y(),ee("svg",Ude,[V("defs",null,[c.points[0]?(Y(),Te(Cd,{key:0,class:"line-marker",id:`preset-line-${s}-${l}`,position:"start",type:c.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Ze("",!0),c.points[1]?(Y(),Te(Cd,{key:1,class:"line-marker",id:`preset-line-${s}-${l}`,position:"end",type:c.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Ze("",!0)]),V("path",{class:"line-path",d:c.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":c.style==="solid"?"0, 0":"4, 1","marker-start":c.points[0]?`url(#${`preset-line-${s}-${l}`}-${c.points[0]}-start)`:"","marker-end":c.points[1]?`url(#${`preset-line-${s}-${l}`}-${c.points[1]}-end)`:""},null,8,Yde)]))],8,Vde)]))),128))])]))),128))]))}}),Zde=Xe(Qde,[["__scopeId","data-v-b07efd40"]]),Bde={class:"chart-pool"},Dde=["onClick"],Kde=Ie({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,r=["bar","horizontalBar","line","area","scatter","pie","ring"],o=i=>{n("select",i)};return(i,a)=>{const s=be("IconChartLine"),c=be("IconChartHistogram"),l=be("IconChartPie"),u=be("IconChartHistogramOne"),f=be("IconChartLineArea"),d=be("IconChartRing"),h=be("IconChartScatter");return Y(),ee("ul",Bde,[(Y(),ee(We,null,ot(r,(p,m)=>V("li",{class:"chart-item",key:m},[V("div",{class:"chart-content",onClick:A=>o(p)},[p==="line"?(Y(),Te(s,{key:0,size:"24"})):p==="bar"?(Y(),Te(c,{key:1,size:"24"})):p==="pie"?(Y(),Te(l,{key:2,size:"24"})):p==="horizontalBar"?(Y(),Te(u,{key:3,size:"24"})):p==="area"?(Y(),Te(f,{key:4,size:"24"})):p==="ring"?(Y(),Te(d,{key:5,size:"24"})):p==="scatter"?(Y(),Te(h,{key:6,size:"24"})):Ze("",!0)],8,Dde)])),64))])}}}),Hde=Xe(Kde,[["__scopeId","data-v-a4bc3ce2"]]),HF=e=>(rn("data-v-246b23f6"),e=e(),on(),e),Gde={class:"prefix"},Jde={class:"input-wrap"},zde=["disabled","placeholder"],$de={class:"handlers"},jde=HF(()=>V("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[V("path",{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"})],-1)),qde=[jde],e0e=HF(()=>V("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[V("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})],-1)),t0e=[e0e],n0e={class:"suffix"},r0e=Ie({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{emit:t}){const n=e,r=t,o=he(0),i=he(!1);Tt(()=>n.value,()=>{n.value!==o.value&&(o.value=n.value)},{immediate:!0}),Tt(o,()=>{const u=+o.value;if(!isNaN(u)){{if(u>n.max)return;if(u{let u=+o.value;isNaN(u)?u=n.min:u>n.max?u=n.max:u{a(),r("enter",u)},c=u=>{a(),i.value=!1,r("blur",u)},l=u=>{i.value=!0,r("focus",u)};return(u,f)=>(Y(),ee("div",{class:Je(["number-input",{disabled:u.disabled,focused:i.value}])},[V("span",Gde,[lr(u.$slots,"prefix",{},void 0,!0)]),V("div",Jde,[Ke(V("input",{type:"text",disabled:u.disabled,"onUpdate:modelValue":f[0]||(f[0]=d=>o.value=d),placeholder:u.placeholder,onInput:f[1]||(f[1]=d=>r("input",d)),onFocus:f[2]||(f[2]=d=>l(d)),onBlur:f[3]||(f[3]=d=>c(d)),onChange:f[4]||(f[4]=d=>r("change",d)),onKeydown:f[5]||(f[5]=gc(d=>s(d),["enter"]))},null,40,zde),[[Bh,o.value]]),V("div",$de,[V("span",{class:"handler",onClick:f[6]||(f[6]=d=>o.value+=u.step)},qde),V("span",{class:"handler",onClick:f[7]||(f[7]=d=>o.value-=u.step)},t0e)])]),V("span",n0e,[lr(u.$slots,"suffix",{},void 0,!0)])],2))}}),Li=Xe(r0e,[["__scopeId","data-v-246b23f6"]]),GF=e=>(rn("data-v-81680e19"),e=e(),on(),e),o0e={class:"table-generator"},i0e={class:"title"},a0e={class:"lef"},s0e=["onMouseenter"],l0e={key:1,class:"custom"},c0e={class:"row"},u0e=GF(()=>V("div",{class:"label",style:{width:"25%"}},"行数:",-1)),f0e={class:"row"},d0e=GF(()=>V("div",{class:"label",style:{width:"25%"}},"列数:",-1)),h0e={class:"btns"},p0e=Ie({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,r=he([]),o=he(3),i=he(3),a=he(!1),s=()=>{if(!r.value.length)return;const[u,f]=r.value;n("insert",{row:u,col:f})},c=()=>{if(o.value<1||o.value>20||i.value<1||i.value>20)return bn.warning("行数/列数必须在0~20之间!");n("insert",{row:o.value,col:i.value}),a.value=!1},l=()=>{n("close"),a.value=!1};return(u,f)=>(Y(),ee("div",o0e,[V("div",i0e,[V("div",a0e,"表格 "+gt(r.value.length?`${r.value[0]} x ${r.value[1]}`:""),1),V("div",{class:"right",onClick:f[0]||(f[0]=d=>a.value=!a.value)},gt(a.value?"返回":"自定义"),1)]),a.value?(Y(),ee("div",l0e,[V("div",c0e,[u0e,L(Li,{min:1,max:20,value:o.value,"onUpdate:value":f[3]||(f[3]=d=>o.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",f0e,[d0e,L(Li,{min:1,max:20,value:i.value,"onUpdate:value":f[4]||(f[4]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",h0e,[L(et,{class:"btn",onClick:f[5]||(f[5]=d=>l())},{default:ie(()=>[Ve("取消")]),_:1}),L(et,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>c())},{default:ie(()=>[Ve("确认")]),_:1})])])):(Y(),ee("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[V("tbody",null,[(Y(),ee(We,null,ot(10,d=>V("tr",{key:d},[(Y(),ee(We,null,ot(10,h=>V("td",{onMouseenter:p=>r.value=[d,h],key:h},[V("div",{class:Je(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,s0e)),64))])),64))])],32))]))}}),m0e=Xe(p0e,[["__scopeId","data-v-81680e19"]]),v0e={class:"media-input"},g0e={class:"btns"},A0e={class:"btns"},R0e=Ie({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const n=t,r=he("video"),o=he("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),i=he("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!o.value)return bn.error("请先输入正确的视频地址");n("insertVideo",o.value)},c=()=>{if(!i.value)return bn.error("请先输入正确的音频地址");n("insertAudio",i.value)};return(l,u)=>(Y(),ee("div",v0e,[L(gs,{tabs:a,value:r.value,"onUpdate:value":u[0]||(u[0]=f=>r.value=f),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(Y(),ee(We,{key:0},[L(_u,{value:o.value,"onUpdate:value":u[1]||(u[1]=f=>o.value=f),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),V("div",g0e,[L(et,{onClick:u[2]||(u[2]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ve("取消")]),_:1}),L(et,{type:"primary",onClick:u[3]||(u[3]=f=>s())},{default:ie(()=>[Ve("确认")]),_:1})])],64)):Ze("",!0),r.value==="audio"?(Y(),ee(We,{key:1},[L(_u,{value:i.value,"onUpdate:value":u[4]||(u[4]=f=>i.value=f),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),V("div",A0e,[L(et,{onClick:u[5]||(u[5]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ve("取消")]),_:1}),L(et,{type:"primary",onClick:u[6]||(u[6]=f=>c())},{default:ie(()=>[Ve("确认")]),_:1})])],64)):Ze("",!0)]))}}),y0e=Xe(R0e,[["__scopeId","data-v-999b18ca"]]);var xm=82;function Jf(e){return sx[e]==null&&x0e(e),sx[e]}function x0e(e){var t=b0e[e];if(t!=null){for(var n=t.substring(3,5),r=1*n.charCodeAt(0)-xm,o=1*n.charCodeAt(1)-xm,i=t.substring(5),a=[[]],s=1/0,c=-1/0,l=1/0,u=-1/0,f=0;ff>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q":2242,"~":2246,"@":2273,"\\":804}[e]}var xi={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function S0e(e){e=e.replace(/\n/g," ");let t=0,n=[],r="";for(;t0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y,e[l].text=="'"?e[l].bbox.y=u:(To(e[l],xi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u-e[l].bbox.h:e[f].text=="\\int"?e[l].bbox.y=u:e[l].bbox.y=u-e[l].bbox.h/2)}else if(e[l].text=="_"){let u=1,f=l;for(;f>0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y+e[f].bbox.h,To(e[l],xi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u:e[f].text=="\\int"?e[l].bbox.y=u-e[l].bbox.h:e[l].bbox.y=u-e[l].bbox.h/2}function n(l,u,f,d,h){let p=l,m=h,A=1/0,x=-1/0;for(;d>0?p=0;){if(e[p].text==u)m++;else if(e[p].text==f){if(m--,m==0)break}else e[p].text=="^"||e[p].text=="_"||e[p].bbox&&(A=Math.min(A,e[p].bbox.y),x=Math.max(x,e[p].bbox.y+e[p].bbox.h));p+=d}return[A,x]}for(let l=0;ll.text=="&"||l.text=="\\\\"))return;let r=[],o=[],i=[];for(let l=0;l0&&(e.chld[y].text=="^"||e.chld[y].text=="_"||e.chld[y].text=="'");)y--;let R=hn[e.chld[y].text]&&hn[e.chld[y].text].flags.big;if(A.text=="'"){let g=y+1,b=0;for(;g1;L0e(e.chld,f);let p=zF(e.chld);e.text=="\\text"&&(p.x-=1,p.w+=2);for(let m=0;mr.bbox.w)u=u/Math.max(a.w,1)*r.bbox.w,u+=r.bbox.x;else{u=u/16*o;let d=(r.bbox.w-a.w/16*o)/2;u+=r.bbox.x+d}if(hn[r.text].flags.yfl)f=(f-a.ymin)/Math.max(a.ymax-a.ymin,1)*r.bbox.h,f+=r.bbox.y;else{if(f=f/16*o,i){let d=(a.ymax+a.ymin)/2;f-=d/16*o}f+=r.bbox.y+r.bbox.h/2}c.push([u,f])}t.push(c)}}else if(hn[r.text]&&hn[r.text].flags.txt||r.type=="char"){let a=r.bbox.x,s=!!(hn[r.text]&&hn[r.text].flags.txt);for(let c=Number(s);c16?h*=16/l.w:h+=(16-l.w)/2/16),h+=a,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}t.push(f)}r.mode=="tt"?a+=o:a+=l.w/16*o}}}return t}function Qa(e){return Math.round(e*100)/100}var w5=class{constructor(e){this._latex=e,this._tokens=S0e(e),this._tree=lx(this._tokens),JF(this._tree.chld),Ba(this._tree),O0e(this._tree),this._polylines=T0e(this._tree)}resolveScale(e){var t,n,r,o;if(e==null)return[16,16,16,16];let i=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let l=0;for(let f=0;fd(t,o,r,e));if(f)s=f;else{let d=o.marks(),{schema:h}=e.state,p=zs.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let A=a.appendChild(document.createElement("p"));m&&A.appendChild(p.serializeNode(h.text(m,d)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=Jie(n),Vp&&zie(a);let l=a&&a.querySelector("[data-pm-slice]"),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let d=a.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;a=d}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||xd.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(c||u),context:o,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!Hie.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)s=$ie(aT(s,+u[1],+u[2]),u[4]);else if(s=Rt.maxOpen(Gie(s.content,o),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f{s=f(s,e)}),s}const Hie=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Gie(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let o=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(s=>{if(!a)return;let c=o.findWrapping(s.type),l;if(!c)return a=null;if(l=a.length&&i.length&&UI(c,i,s,a[a.length-1],0))a[a.length-1]=l;else{a.length&&(a[a.length-1]=YI(a[a.length-1],i.length));let u=VI(s,c);a.push(u),o=o.matchType(u.type),i=c}}),a)return st.from(a)}return e}function VI(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,st.from(e));return e}function UI(e,t,n,r,o){if(o1&&(i=0),o=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(st.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function aT(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=ZI().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),o;if((o=r&&QI[r[1].toLowerCase()])&&(e=o.map(i=>"<"+i+">").join("")+e+o.map(i=>"").reverse().join("")),n.innerHTML=e,o)for(let i=0;i=0;s-=2){let c=n.nodes[r[s]];if(!c||c.hasRequiredAttrs())break;o=st.from(c.create(r[s+1],o)),i++,a++}return new Rt(o,i,a)}const Xo={},Wo={},jie={touchstart:!0,touchmove:!0};class qie{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function eae(e){for(let t in Xo){let n=Xo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{nae(e,r)&&!u5(e,r)&&(e.editable||!(r.type in Wo))&&n(e,r)},jie[t]?{passive:!0}:void 0)}Eo&&e.dom.addEventListener("input",()=>null),ex(e)}function nc(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function tae(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function ex(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>u5(e,r))})}function u5(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function nae(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function rae(e,t){!u5(e,t)&&Xo[t.type]&&(e.editable||!(t.type in Wo))&&Xo[t.type](e,t)}Wo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!DI(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(wa&&po&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Pd&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",o=>o(e,qc(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||Kie(e,n)?n.preventDefault():nc(e,"key")};Wo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Wo.keypress=(e,t)=>{let n=t;if(DI(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ki&&n.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Xn)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",i=>i(e,r.$from.pos,r.$to.pos,o))&&e.dispatch(e.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function u2(e){return{left:e.clientX,top:e.clientY}}function oae(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function f5(e,t,n,r,o){if(r==-1)return!1;let i=e.state.doc.resolve(r);for(let a=i.depth+1;a>0;a--)if(e.someProp(t,s=>a>i.depth?s(e,n,i.nodeAfter,i.before(a),o,!0):s(e,n,i.node(a),i.before(a),o,!1)))return!0;return!1}function pd(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);n=="pointer"&&r.setMeta("pointer",!0),e.dispatch(r)}function iae(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Yt.isSelectable(r)?(pd(e,new Yt(n),"pointer"),!0):!1}function aae(e,t){if(t==-1)return!1;let n=e.state.selection,r,o;n instanceof Yt&&(r=n.node);let i=e.state.doc.resolve(t);for(let a=i.depth+1;a>0;a--){let s=a>i.depth?i.nodeAfter:i.node(a);if(Yt.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(a);break}}return o!=null?(pd(e,Yt.create(e.state.doc,o),"pointer"),!0):!1}function sae(e,t,n,r,o){return f5(e,"handleClickOn",t,n,r)||e.someProp("handleClick",i=>i(e,t,r))||(o?aae(e,n):iae(e,n))}function lae(e,t,n,r){return f5(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",o=>o(e,t,r))}function cae(e,t,n,r){return f5(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",o=>o(e,t,r))||uae(e,n,r)}function uae(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(pd(e,Xn.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(t);for(let i=o.depth+1;i>0;i--){let a=i>o.depth?o.nodeAfter:o.node(i),s=o.before(i);if(a.inlineContent)pd(e,Xn.create(r,s+1,s+1+a.content.size),"pointer");else if(Yt.isSelectable(a))pd(e,Yt.create(r,s),"pointer");else continue;return!0}}function d5(e){return tg(e)}const BI=Ki?"metaKey":"ctrlKey";Xo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=d5(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&oae(n,e.input.lastClick)&&!n[BI]&&(e.input.lastClick.type=="singleClick"?i="doubleClick":e.input.lastClick.type=="doubleClick"&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let a=e.posAtCoords(u2(n));a&&(i=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new fae(e,a,n,!!r)):(i=="doubleClick"?lae:cae)(e,a.pos,a.inside,n)?n.preventDefault():nc(e,"pointer"))};class fae{constructor(t,n,r,o){this.view=t,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[BI],this.allowDefault=r.shiftKey;let i,a;if(n.inside>-1)i=t.state.doc.nodeAt(n.inside),a=n.inside;else{let u=t.state.doc.resolve(n.pos);i=u.parent,a=u.depth?u.before():0}const s=o?null:r.target,c=s?t.docView.nearestDesc(s,!0):null;this.target=c?c.dom:null;let{selection:l}=t.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||l instanceof Yt&&l.from<=a&&l.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ia&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),nc(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>nl(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(u2(t))),this.updateAllowDefault(t),this.allowDefault||!n?nc(this.view,"pointer"):sae(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Eo&&this.mightDrag&&!this.mightDrag.node.isAtom||po&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(pd(this.view,xn.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):nc(this.view,"pointer")}move(t){this.updateAllowDefault(t),nc(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Xo.touchstart=e=>{e.input.lastTouch=Date.now(),d5(e),nc(e,"pointer")};Xo.touchmove=e=>{e.input.lastTouch=Date.now(),nc(e,"pointer")};Xo.contextmenu=e=>d5(e);function DI(e,t){return e.composing?!0:Eo&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const dae=wa?5e3:-1;Wo.compositionstart=Wo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),tg(e,!0),e.markCursor=null;else if(tg(e),Ia&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let a=i<0?o.lastChild:o.childNodes[i-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else o=a,i=-1}}e.input.composing=!0}KI(e,dae)};Wo.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,KI(e,20))};function KI(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>tg(e),t))}function HI(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=hae());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function hae(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function tg(e,t=!1){if(!(wa&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),HI(e),t||e.docView&&e.docView.dirty){let n=l5(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function pae(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const ip=ni&&lc<15||Pd&&fie<604;Xo.copy=Wo.cut=(e,t)=>{let n=t,r=e.state.selection,o=n.type=="cut";if(r.empty)return;let i=ip?null:n.clipboardData,a=r.content(),{dom:s,text:c}=XI(e,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",c)):pae(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function mae(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function vae(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ap(e,r.value,null,o,t):ap(e,r.textContent,r.innerHTML,o,t)},50)}function ap(e,t,n,r,o){let i=WI(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",c=>c(e,o,i||Rt.empty)))return!0;if(!i)return!1;let a=mae(i),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function GI(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Wo.paste=(e,t)=>{let n=t;if(e.composing&&!wa)return;let r=ip?null:n.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&ap(e,GI(r),r.getData("text/html"),o,n)?n.preventDefault():vae(e,n)};class JI{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const zI=Ki?"altKey":"ctrlKey";Xo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=e.state.selection,i=o.empty?null:e.posAtCoords(u2(n)),a;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Yt?o.to-1:o.to))){if(r&&r.mightDrag)a=Yt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=e.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=e.docView&&(a=Yt.create(e.state.doc,u.posBefore))}}let s=(a||e.state.selection).content(),{dom:c,text:l}=XI(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(ip?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",ip||n.dataTransfer.setData("text/plain",l),e.dragging=new JI(s,!n[zI],a)};Xo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Wo.dragover=Wo.dragenter=(e,t)=>t.preventDefault();Wo.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(u2(n));if(!o)return;let i=e.state.doc.resolve(o.pos),a=r&&r.slice;a?e.someProp("transformPasted",p=>{a=p(a,e)}):a=WI(e,GI(n.dataTransfer),ip?null:n.dataTransfer.getData("text/html"),!1,i);let s=!!(r&&!n[zI]);if(e.someProp("handleDrop",p=>p(e,n,a||Rt.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let c=a?IN(e.state.doc,i.pos,a):i.pos;c==null&&(c=i.pos);let l=e.state.tr;if(s){let{node:p}=r;p?p.replace(l):l.deleteSelection()}let u=l.mapping.map(c),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=l.doc;if(f?l.replaceRangeWith(u,u,a.content.firstChild):l.replaceRange(u,u,a),l.doc.eq(d))return;let h=l.doc.resolve(u);if(f&&Yt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))l.setSelection(new Yt(h));else{let p=l.mapping.map(c);l.mapping.maps[l.mapping.maps.length-1].forEach((m,A,x,y)=>p=y),l.setSelection(c5(e,h,l.doc.resolve(p)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))};Xo.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&nl(e)},20))};Xo.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Xo.beforeinput=(e,t)=>{if(po&&wa&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,qc(8,"Backspace")))))return;let{$cursor:o}=e.state.selection;o&&o.pos>0&&e.dispatch(e.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let e in Wo)Xo[e]=Wo[e];function sp(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class ng{constructor(t,n){this.toDOM=t,this.spec=n||Ru,this.side=this.spec.side||0}map(t,n,r,o){let{pos:i,deleted:a}=t.mapResult(n.from+o,this.side<0?-1:1);return a?null:new ki(i-r,i-r,this)}valid(){return!0}eq(t){return this==t||t instanceof ng&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&sp(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class uc{constructor(t,n){this.attrs=t,this.spec=n||Ru}map(t,n,r,o){let i=t.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=a?null:new ki(i,a,this)}valid(t,n){return n.from=t&&(!i||i(s.spec))&&r.push(s.copy(s.from+o,s.to+o))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,o+s,i)}}map(t,n,r){return this==co||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Ru)}mapInner(t,n,r,o,i){let a;for(let s=0;s{let l=c+r,u;if(u=jI(n,s,l)){for(o||(o=this.children.slice());is&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let i=t+1,a=i+n.content.size;for(let s=0;si&&c.type instanceof uc){let l=Math.max(i,c.from)-i,u=Math.min(a,c.to)-i;lo.map(t,n,Ru));return zl.from(r)}forChild(t,n){if(n.isLeaf)return Nr.empty;let r=[];for(let o=0;on instanceof Nr)?t:t.reduce((n,r)=>n.concat(r instanceof Nr?r:r.members),[]))}}}function gae(e,t,n,r,o,i,a){let s=e.slice();for(let l=0,u=i;l{let A=m-p-(h-d);for(let x=0;xy+u-f)continue;let R=s[x]+u-f;h>=R?s[x+1]=d<=R?-2:-1:d>=u&&A&&(s[x]+=A,s[x+1]+=A)}f+=A}),u=n.maps[l].map(u,-1)}let c=!1;for(let l=0;l=r.content.size){c=!0;continue}let d=n.map(e[l+1]+i,-1),h=d-o,{index:p,offset:m}=r.content.findIndex(f),A=r.maybeChild(p);if(A&&m==f&&m+A.nodeSize==h){let x=s[l+2].mapInner(n,A,u+1,e[l]+i+1,a);x!=co?(s[l]=f,s[l+1]=h,s[l+2]=x):(s[l+1]=-2,c=!0)}else c=!0}if(c){let l=Aae(s,e,t,n,o,i,a),u=rg(l,r,0,a);t=u.local;for(let f=0;fn&&a.to{let l=jI(e,s,c+n);if(l){i=!0;let u=rg(l,s,n+c+1,r);u!=co&&o.push(c,c+s.nodeSize,u)}});let a=$I(i?qI(e):e,-n).sort(yu);for(let s=0;s0;)t++;e.splice(t,0,n)}function Uy(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=co&&t.push(r)}),e.cursorWrapper&&t.push(Nr.create(e.state.doc,[e.cursorWrapper.deco])),zl.from(t)}const Rae={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},yae=ni&&lc<=11;class xae{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class bae{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new xae,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),yae&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Rae)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(eT(this.view)){if(this.suppressingSelectionUpdates)return nl(this.view);if(ni&&lc<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Xu(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let i=t.focusNode;i;i=op(i))n.add(i);for(let i=t.anchorNode;i;i=op(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&eT(t)&&!this.ignoreSelectionChange(r),i=-1,a=-1,s=!1,c=[];if(t.editable)for(let u=0;u1){let u=c.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],d=u[1];f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}}let l=null;i<0&&o&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||o)&&(i>-1&&(t.docView.markDirty(i,a),Sae(t)),this.handleDOMChange(i,a,s,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||nl(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;uo;A--){let x=r.childNodes[A-1],y=x.pmViewDesc;if(x.nodeName=="BR"&&!y){i=A;break}if(!y||y.size)break}let f=e.state.doc,d=e.someProp("domParser")||xd.fromSchema(e.state.schema),h=f.resolve(a),p=null,m=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:l,ruleFromNode:Lae,context:h});if(l&&l[0].pos!=null){let A=l[0].pos,x=l[1]&&l[1].pos;x==null&&(x=A),p={anchor:A+a,head:x+a}}return{doc:m,sel:p,from:a,to:s}}function Lae(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Eo&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Eo&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Oae=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Tae(e,t,n,r,o){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let O=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,k=l5(e,O);if(k&&!e.state.selection.eq(k)){if(po&&wa&&e.input.lastKeyCode===13&&Date.now()-100N(e,qc(13,"Enter"))))return;let F=e.state.tr.setSelection(k);O=="pointer"?F.setMeta("pointer",!0):O=="key"&&F.scrollIntoView(),i&&F.setMeta("composition",i),e.dispatch(F)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=wae(e,t,n),u=e.state.doc,f=u.slice(l.from,l.to),d,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||wa)&&o.some(O=>O.nodeType==1&&!Oae.test(O.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",O=>O(e,qc(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&c instanceof Xn&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))p={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let O=fT(e,e.state.doc,l.sel);if(O&&!O.eq(e.state.selection)){let k=e.state.tr.setSelection(O);i&&k.setMeta("composition",i),e.dispatch(k)}}return}if(po&&e.cursorWrapper&&l.sel&&l.sel.anchor==e.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let O=p.endB-p.start;l.sel={anchor:l.sel.anchor+O,head:l.sel.anchor+O}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=l.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),ni&&lc<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=l.doc.resolveNoCache(p.start-l.from),A=l.doc.resolveNoCache(p.endB-l.from),x=u.resolve(p.start),y=m.sameParent(A)&&m.parent.inlineContent&&x.end()>=p.endA,R;if((Pd&&e.input.lastIOSEnter>Date.now()-225&&(!y||o.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!y&&m.posO(e,qc(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&Nae(u,p.start,p.endA,m,A)&&e.someProp("handleKeyDown",O=>O(e,qc(8,"Backspace")))){wa&&po&&e.domObserver.suppressSelectionUpdates();return}po&&wa&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),wa&&!y&&m.start()!=A.start()&&A.parentOffset==0&&m.depth==A.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,A=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{e.someProp("handleKeyDown",function(O){return O(e,qc(13,"Enter"))})},20));let g=p.start,b=p.endA,w,T,M;if(y){if(m.pos==A.pos)ni&&lc<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>nl(e),20)),w=e.state.tr.delete(g,b),T=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(M=kae(m.parent.content.cut(m.parentOffset,A.parentOffset),x.parent.content.cut(x.parentOffset,p.endA-x.start()))))w=e.state.tr,M.type=="add"?w.addMark(g,b,M.mark):w.removeMark(g,b,M.mark);else if(m.parent.child(m.index()).isText&&m.index()==A.index()-(A.textOffset?0:1)){let O=m.parent.textBetween(m.parentOffset,A.parentOffset);if(e.someProp("handleTextInput",k=>k(e,g,b,O)))return;w=e.state.tr.insertText(O,g,b)}}if(w||(w=e.state.tr.replace(g,b,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let O=fT(e,w.doc,l.sel);O&&!(po&&wa&&e.composing&&O.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:c5(e,t.resolve(n.anchor),t.resolve(n.head))}function kae(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,o=n,i=r,a,s,c;for(let u=0;uu.mark(s.addToSet(u.marks));else if(o.length==0&&i.length==1)s=i[0],a="remove",c=u=>u.mark(s.removeFromSet(u.marks));else return null;let l=[];for(let u=0;un||Yy(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let i=e.node(r).maybeChild(e.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function Pae(e,t,n,r,o){let i=e.findDiffStart(t,n);if(i==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(o=="end"){let c=Math.max(0,i-Math.min(a,s));r-=a+c-i}if(a=a?i-r:0;i-=c,i&&i=s?i-r:0;i-=c,i&&i=56320&&t<=57343&&n>=55296&&n<=56319}class Cae{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new qie,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(gT),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=mT(this),pT(this),this.nodeViews=vT(this),this.docView=GO(this.state.doc,hT(this),Uy(this),this.dom,this),this.domObserver=new bae(this,(r,o,i,a)=>Tae(this,r,o,i,a)),this.domObserver.start(),eae(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ex(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(gT),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let o=this.state,i=!1,a=!1;t.storedMarks&&this.composing&&(HI(this),a=!0),this.state=t;let s=o.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=vT(this);Fae(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&ex(this),this.editable=mT(this),pT(this);let c=Uy(this),l=hT(this),u=o.plugins!=t.plugins&&!o.doc.eq(t.doc)?"reset":t.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(t.doc,l,c);(f||!t.selection.eq(o.selection))&&(a=!0);let d=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&pie(this);if(a){this.domObserver.stop();let h=f&&(ni||po)&&!this.composing&&!o.selection.empty&&!t.selection.empty&&Iae(o.selection,t.selection);if(f){let p=po?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(t.doc,l,c,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=GO(t.doc,l,c,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Vie(this))?nl(this,h):(FI(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&mie(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Yt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&QO(this,n.getBoundingClientRect(),t)}else QO(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new JI(t.slice,t.move,o<0?void 0:Yt.create(this.state.doc,o))}someProp(t,n){let r=this._props&&this._props[t],o;if(r!=null&&(o=n?n(r):r))return o;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return xie(this,t)}coordsAtPos(t,n=1){return LI(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let o=this.docView.posFromDOM(t,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,n){return Lie(this,n||this.state,t)}pasteHTML(t,n){return ap(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return ap(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(tae(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Uy(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(t){return rae(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return Eo&&this.root.nodeType===11&&sie(this.dom.ownerDocument)==this.dom?Mae(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function hT(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[ki.node(0,e.state.doc.content.size,t)]}function pT(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:ki.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function mT(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Iae(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function vT(e){let t=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(t,o)||(t[o]=r[o])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Fae(e,t){let n=0,r=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let o in t)r++;return n!=r}function gT(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Rc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},og={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},_ae=typeof navigator<"u"&&/Mac/.test(navigator.platform),Eae=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var eo=0;eo<10;eo++)Rc[48+eo]=Rc[96+eo]=String(eo);for(var eo=1;eo<=24;eo++)Rc[eo+111]="F"+eo;for(var eo=65;eo<=90;eo++)Rc[eo]=String.fromCharCode(eo+32),og[eo]=String.fromCharCode(eo);for(var Qy in Rc)og.hasOwnProperty(Qy)||(og[Qy]=Rc[Qy]);function Xae(e){var t=_ae&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Eae&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?og:Rc)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Wae=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Vae(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,o,i,a;for(let s=0;s127)&&(i=Rc[r.keyCode])&&i!=o){let s=t[Zy(i,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var ig=200,Zr=function(){};Zr.prototype.append=function(t){return t.length?(t=Zr.from(t),!this.length&&t||t.length=n?Zr.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Zr.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Zr.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Zr.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,a){return o.push(t(i,a))},n,r),o};Zr.from=function(t){return t instanceof Zr?t:t&&t.length?new tF(t):Zr.empty};var tF=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new t(this.values.slice(o,i))},t.prototype.getInner=function(o){return this.values[o]},t.prototype.forEachInner=function(o,i,a,s){for(var c=i;c=a;c--)if(o(this.values[c],s+c)===!1)return!1},t.prototype.leafAppend=function(o){if(this.length+o.length<=ig)return new t(this.values.concat(o.flatten()))},t.prototype.leafPrepend=function(o){if(this.length+o.length<=ig)return new t(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Zr);Zr.empty=new tF([]);var Yae=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(o-s,0),Math.min(this.length,i)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,o,i,a){var s=this.left.length;if(o>s&&this.right.forEachInvertedInner(r,o-s,Math.max(i,s)-s,a+s)===!1||i=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},t.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new t(this.left,o)},t.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new t(o,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Zr);const Qae=500;class Oa{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let a=t.tr,s,c,l=[],u=[];return this.items.forEach((f,d)=>{if(!f.step){o||(o=this.remapping(r,d+1),i=o.maps.length),i--,u.push(f);return}if(o){u.push(new Ka(f.map));let h=f.step.map(o.slice(i)),p;h&&a.maybeStep(h).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],l.push(new Ka(p,void 0,void 0,l.length+u.length))),i--,p&&o.appendMap(p,i)}else a.maybeStep(f.step);if(f.selection)return s=o?f.selection.map(o.slice(i)):f.selection,c=new Oa(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:a,selection:s}}addTransform(t,n,r,o){let i=[],a=this.eventCount,s=this.items,c=!o&&s.length?s.get(s.length-1):null;for(let u=0;uBae&&(s=Zae(s,l),a-=l),new Oa(s.append(i),a)}remapping(t,n){let r=new ad;return this.items.forEach((o,i)=>{let a=o.mirrorOffset!=null&&i-o.mirrorOffset>=t?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new Oa(this.items.append(t.map(n=>new Ka(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},o);let c=n;this.items.forEach(d=>{let h=i.getMirror(--c);if(h==null)return;a=Math.min(a,h);let p=i.maps[h];if(d.step){let m=t.steps[h].invert(t.docs[h]),A=d.selection&&d.selection.map(i.slice(c+1,h));A&&s++,r.push(new Ka(p,m,A))}else r.push(new Ka(p))},o);let l=[];for(let d=n;dQae&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,o=[],i=0;return this.items.forEach((a,s)=>{if(s>=t)o.push(a),a.selection&&i++;else if(a.step){let c=a.step.map(n.slice(r)),l=c&&c.getMap();if(r--,l&&n.appendMap(l,r),c){let u=a.selection&&a.selection.map(n.slice(r));u&&i++;let f=new Ka(l.invert(),c,u),d,h=o.length-1;(d=o.length&&o[h].merge(f))?o[h]=d:o.push(f)}}else a.map&&r--},this.items.length,0),new Oa(Zr.from(o.reverse()),i)}}Oa.empty=new Oa(Zr.empty,0);function Zae(e,t){let n;return e.forEach((r,o)=>{if(r.selection&&t--==0)return n=o,!1}),e.slice(n)}class Ka{constructor(t,n,r,o){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Ka(n.getMap().invert(),n,this.selection)}}}class Dl{constructor(t,n,r,o,i){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const Bae=20;function Dae(e,t,n,r){let o=n.getMeta(fc),i;if(o)return o.historyState;n.getMeta(Hae)&&(e=new Dl(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(fc))return a.getMeta(fc).redo?new Dl(e.done.addTransform(n,void 0,r,jm(t)),e.undone,RT(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Dl(e.done,e.undone.addTransform(n,void 0,r,jm(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),c=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!Kae(n,e.prevRanges)),l=a?By(e.prevRanges,n.mapping):RT(n.mapping.maps[n.steps.length-1]);return new Dl(e.done.addTransform(n,c?t.selection.getBookmark():void 0,r,jm(t)),Oa.empty,l,n.time,s??e.prevComposition)}else return(i=n.getMeta("rebased"))?new Dl(e.done.rebased(n,i),e.undone.rebased(n,i),By(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Dl(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),By(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Kae(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,o)=>{for(let i=0;i=t[i]&&(n=!0)}),n}function RT(e){let t=[];return e.forEach((n,r,o,i)=>t.push(o,i)),t}function By(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=fc.getState(e);return!n||n.done.eventCount==0?!1:(t&&nF(n,e,t,!1),!0)},oF=(e,t)=>{let n=fc.getState(e);return!n||n.undone.eventCount==0?!1:(t&&nF(n,e,t,!0),!0)};function Jae(e={}){return new Ud({view(t){return new zae(t,e)}})}class zae{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=a=>{this[o](a)};return t.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,c=t.nodeAfter;if(s||c){let l=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(l){let u=l.getBoundingClientRect(),f=s?u.bottom:u.top;s&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,a;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,a=-pageYOffset;else{let s=o.getBoundingClientRect();i=s.left-o.scrollLeft,a=s.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,t):o;if(n&&!i){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=IN(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}class Rr extends xn{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Rr.valid(r)?new Rr(r):xn.near(r)}content(){return Rt.empty}eq(t){return t instanceof Rr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Rr(t.resolve(n.pos))}getBookmark(){return new m5(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!$ae(t)||!jae(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(t.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Rr.valid(t))return t;let o=t.pos,i=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){i=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;o+=n;let c=t.doc.resolve(o);if(Rr.valid(c))return c}for(;;){let a=n>0?i.firstChild:i.lastChild;if(!a){if(i.isAtom&&!i.isText&&!Yt.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=a,o+=n;let s=t.doc.resolve(o);if(Rr.valid(s))return s}return null}}}Rr.prototype.visible=!1;Rr.findFrom=Rr.findGapCursorFrom;xn.jsonID("gapcursor",Rr);class m5{constructor(t){this.pos=t}map(t){return new m5(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Rr.valid(n)?new Rr(n):xn.near(n)}}function $ae(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function jae(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function qae(){return new Ud({props:{decorations:rse,createSelectionBetween(e,t,n){return t.pos==n.pos&&Rr.valid(n)?new Rr(n):null},handleClick:tse,handleKeyDown:ese,handleDOMEvents:{beforeinput:nse}}})}const ese=eF({ArrowLeft:Am("horiz",-1),ArrowRight:Am("horiz",1),ArrowUp:Am("vert",-1),ArrowDown:Am("vert",1)});function Am(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,o,i){let a=r.selection,s=t>0?a.$to:a.$from,c=a.empty;if(a instanceof Xn){if(!i.endOfTextblock(n)||s.depth==0)return!1;c=!1,s=r.doc.resolve(t>0?s.after():s.before())}let l=Rr.findGapCursorFrom(s,t,c);return l?(o&&o(r.tr.setSelection(new Rr(l))),!0):!1}}function tse(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Rr.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Yt.isSelectable(e.state.doc.nodeAt(o.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Rr(r))),!0)}function nse(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Rr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=st.empty;for(let a=r.length-1;a>=0;a--)o=st.from(r[a].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new Rt(o,0,0));return i.setSelection(Xn.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function rse(e){if(!(e.selection instanceof Rr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Nr.create(e.doc,[ki.widget(e.selection.head,t,{key:"gapcursor"})])}const ose=["li",0],ise={parseDOM:[{tag:"li"}],toDOM(){return ose},defining:!0};function ase(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=!1,c=a;if(!a)return!1;if(a.depth>=2&&o.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(o.index(a.depth-1)==0)return!1;let u=n.doc.resolve(a.start-2);c=new Sv(u,u,a.depth),a.endIndex=0;u--)i=st.from(n[u].type.create(n[u].attrs,i));e.step(new ro(t.start-(r?2:0),t.end,t.start,t.end,new Rt(i,0,0),n.length,!0));let a=0;for(let u=0;u=o.depth-3;x--)f=st.from(o.node(x).copy(f));let h=o.indexAfter(-1){if(A>-1)return!1;x.isTextblock&&x.content.size==0&&(A=y+1)}),A>-1&&m.setSelection(xn.near(m.doc.resolve(A))),r(m.scrollIntoView())}return!0}let c=i.pos==o.end()?s.contentMatchAt(0).defaultType:null,l=n.tr.delete(o.pos,i.pos),u=c?[t?{type:e,attrs:t}:null,{type:c}]:void 0;return sd(l.doc,o.pos,2,u)?(r&&r(l.split(o.pos,2,u).scrollIntoView()),!0):!1}}function iF(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,a=>a.childCount>0&&a.firstChild.type==e);return i?n?r.node(i.depth-1).type==e?cse(t,n,e,i):use(t,n,i):!0:!1}}function cse(e,t,n,r){let o=e.tr,i=r.end,a=r.$to.end(r.depth);im;p--)h-=o.child(p).nodeSize,r.delete(h-1,h+1);let i=r.doc.resolve(n.start),a=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==o.childCount,l=i.node(-1),u=i.index(-1);if(!l.canReplace(u+(s?0:1),u+1,a.content.append(c?st.empty:st.from(o))))return!1;let f=i.pos,d=f+a.nodeSize;return r.step(new ro(f-(s?1:0),d+(c?1:0),f+1,d-1,new Rt((s?st.empty:st.from(o.copy(st.empty))).append(c?st.empty:st.from(o.copy(st.empty))),s?0:1,c?0:1),s?0:1)),t(r.scrollIntoView()),!0}function xT(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,l=>l.childCount>0&&l.firstChild.type==e);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let s=i.parent,c=s.child(a-1);if(c.type!=e)return!1;if(n){let l=c.lastChild&&c.lastChild.type==s.type,u=st.from(l?e.create():null),f=new Rt(st.from(e.create(null,st.from(s.type.create(null,u)))),l?3:1,0),d=i.start,h=i.end;n(t.tr.step(new ro(d-(l?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class fl{constructor(t,n,r={}){this.match=t,this.match=t,this.handler=typeof n=="string"?fse(n):n,this.undoable=r.undoable!==!1}}function fse(e){return function(t,n,r,o){let i=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);i+=n[0].slice(a+n[1].length),r+=a;let s=r-o;s>0&&(i=n[0].slice(a-s,a)+i,r=o)}return t.tr.insertText(i,r,o)}}const dse=500;function hse({rules:e}){let t=new Ud({state:{init(){return null},apply(n,r){let o=n.getMeta(this);return o||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,o,i){return bT(n,r,o,i,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&bT(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function bT(e,t,n,r,o,i){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t);if(s.parent.type.spec.code)return!1;let c=s.parent.textBetween(Math.max(0,s.parentOffset-dse),s.parentOffset,null,"")+r;for(let l=0;l{let n=e.plugins;for(let r=0;r=0;c--)a.step(s.steps[c].invert(s.docs[c]));if(i.text){let c=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,e.schema.text(i.text,c))}else a.delete(i.from,i.to);t(a)}return!0}}return!1},mse=new fl(/--$/,"—"),vse=new fl(/\.\.\.$/,"…"),gse=new fl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),Ase=new fl(/"$/,"”"),Rse=new fl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),yse=new fl(/'$/,"’"),xse=[gse,Ase,Rse,yse];function v5(e,t,n=null,r){return new fl(e,(o,i,a,s)=>{let c=n instanceof Function?n(i):n,l=o.tr.delete(a,s),u=l.doc.resolve(a),f=u.blockRange(),d=f&&sb(f,t,c);if(!d)return null;l.wrap(f,d);let h=l.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Vd(l.doc,a-1)&&(!r||r(i,h))&&l.join(a-1),l})}const bse=e=>{const t={},n=(r,o)=>t[r]=o;return n("Alt-ArrowUp",DH),n("Alt-ArrowDown",KH),n("Mod-z",rF),n("Mod-y",oF),n("Backspace",pse),n("Escape",$H),n("Mod-b",kr(e.marks.strong)),n("Mod-i",kr(e.marks.em)),n("Mod-u",kr(e.marks.underline)),n("Mod-d",kr(e.marks.strikethrough)),n("Mod-e",kr(e.marks.code)),n("Mod-;",kr(e.marks.superscript)),n("Mod-'",kr(e.marks.subscript)),n("Enter",Eg(lse(e.nodes.list_item),BN,DN,KN,zH)),n("Mod-[",iF(e.nodes.list_item)),n("Mod-]",xT(e.nodes.list_item)),n("Tab",xT(e.nodes.list_item)),t},Sse=e=>v5(/^\s*>\s$/,e),Mse=e=>v5(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),wse=e=>v5(/^\s*([-+*])\s$/,e),Lse=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new fl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(`${n[2]} `,r,o),s=i.marks.code.create();return a.addMark(r,r+n[2].length,s)})},Ose=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new fl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(n[0],r,o),s=i.marks.link.create({href:n[0],title:n[0]});return a.addMark(r,r+n[0].length,s)})},Tse=e=>{const t=[...xse,vse,mse];return t.push(Sse(e.nodes.blockquote)),t.push(Mse(e.nodes.ordered_list)),t.push(wse(e.nodes.bullet_list)),t.push(Lse()),t.push(Ose()),hse({rules:t})},kse=e=>e.type.name==="paragraph"&&e.nodeSize===2,Nse=e=>new Ud({props:{decorations(t){const{$from:n}=t.selection;if(kse(n.parent)){const r=ki.node(n.before(),n.after(),{"data-placeholder":e});return Nr.create(t.doc,[r])}}}}),Pse=(e,t)=>{const n=t==null?void 0:t.placeholder,r=[Tse(e),AT(bse(e)),AT(oG),Jae(),qae(),Gae()];return n&&r.push(Nse(n)),r},Cse=["p",0],Ise=["blockquote",0],Fse=["hr"],_se=["pre",["code",0]],Ese=["br"],aF={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return Cse}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return Ise}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return Fse}},heading:{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return _se}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){let{src:t,alt:n,title:r}=e.attrs;return["img",{src:t,alt:n,title:r}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return Ese}}},Xse=["em",0],Wse=["strong",0],Vse=["code",0],sF={link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){let{href:t,title:n}=e.attrs;return["a",{href:t,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return Xse}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM(){return Wse}},code:{parseDOM:[{tag:"code"}],toDOM(){return Vse}}};new SN({nodes:aF,marks:sF});const Use={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>{const n={order:+((e.hasAttribute("start")?e.getAttribute("start"):1)||1)},{listStyleType:r,fontSize:o,color:i}=e.style;return r&&(n.listStyleType=r),o&&(n.fontsize=o),i&&(n.color=i),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:r,color:o}=e.attrs;let i="";n&&(i+=`list-style-type: ${n};`),r&&(i+=`font-size: ${r};`),o&&(i+=`color: ${o};`);const a={style:i};return t!==1&&(a.start=t),["ol",a,0]}},Yse={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:r,color:o}=e.style;return n&&(t.listStyleType=n),r&&(t.fontsize=r),o&&(t.color=o),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:r}=e.attrs;let o="";return t&&(o+=`list-style-type: ${t};`),n&&(o+=`font-size: ${n};`),r&&(o+=`color: ${r};`),["ul",{style:o},0]}},Qse={...ise,content:"paragraph block*",group:"block"},Zse={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:e=>{const{textAlign:t,textIndent:n}=e.style;let r=e.getAttribute("align")||t||"";r=/(left|right|center|justify)/.test(r)?r:"";let o=0;n&&(/em/.test(n)?o=parseInt(n):/px/.test(n)&&(o=Math.floor(parseInt(n)/20),o||(o=1)));const i=+(e.getAttribute("data-indent")||0);return{align:r,indent:i,textIndent:o}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:r}=e.attrs;let o="";t&&t!=="left"&&(o+=`text-align: ${t};`),r&&(o+=`text-indent: ${r*20}px;`);const i={style:o};return n&&(i["data-indent"]=n),["p",i,0]}},{doc:Bse,blockquote:Dse,text:Kse}=aF,Hse={doc:Bse,paragraph:Zse,blockquote:Dse,text:Kse,ordered_list:Use,bullet_list:Yse,list_item:Qse},Gse={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},Jse={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},zse={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:e=>e==="line-through"&&null},{style:"text-decoration-line",getAttrs:e=>e==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},$se={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:e=>e==="underline"&&null},{style:"text-decoration-line",getAttrs:e=>e==="underline"&&null}],toDOM:()=>["span",{style:"text-decoration: underline;"},0]},jse={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:e=>e?{color:e}:{}}],toDOM:e=>{const{color:t}=e.attrs;let n="";return t&&(n+=`color: ${t};`),["span",{style:n},0]}},qse={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{style:"background-color",getAttrs:e=>e?{backcolor:e}:{}}],toDOM:e=>{const{backcolor:t}=e.attrs;let n="";return t&&(n+=`background-color: ${t};`),["span",{style:n},0]}},ele={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:e=>e?{fontsize:e}:{}}],toDOM:e=>{const{fontsize:t}=e.attrs;let n="";return t&&(n+=`font-size: ${t};`),["span",{style:n},0]}},tle={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:e=>({fontname:e&&typeof e=="string"?e.replace(/[\"\']/g,""):""})}],toDOM:e=>{const{fontname:t}=e.attrs;let n="";return t&&(n+=`font-family: ${t};`),["span",{style:n},0]}},nle={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href"),n=e.getAttribute("title");return{href:t,title:n}}}],toDOM:e=>["a",e.attrs,0]},rle={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:ole,strong:ile,code:ale}=sF,sle={em:ole,strong:ile,fontsize:ele,fontname:tle,code:ale,forecolor:jse,backcolor:qse,subscript:Gse,superscript:Jse,strikethrough:zse,underline:$se,link:nle,mark:rle},lle=Hse,cle=sle,lF=new SN({nodes:lle,marks:cle}),g5=e=>{const t=`
${e}
`,r=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return xd.fromSchema(lF).parse(r)},cF=(e,t,n,r)=>new Cae(e,{state:Bf.create({doc:g5(t),plugins:Pse(lF,r)}),...n});function ule(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}var Qr=(e=>(e.RICH_TEXT_COMMAND="RICH_TEXT_COMMAND",e.SYNC_RICH_TEXT_ATTRS_TO_STORE="SYNC_RICH_TEXT_ATTRS_TO_STORE",e.OPEN_CHART_DATA_EDITOR="OPEN_CHART_DATA_EDITOR",e.OPEN_LATEX_EDITOR="OPEN_LATEX_EDITOR",e))(Qr||{});const to=ule(),fle=(e,t,n)=>{const{selection:r,doc:o}=e;if(!r||!o)return e;const{from:i,to:a}=r,{nodes:s}=t,c=s.blockquote,l=s.list_item,u=s.paragraph,f=[];n=n||"";const d=new Set([c,l,u]);return o.nodesBetween(i,a,(h,p)=>{const m=h.type;return(h.attrs.align||"")!==n&&d.has(m)&&f.push({node:h,pos:p,nodeType:m}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:m,nodeType:A}=h;let{attrs:x}=p;n?x={...x,align:n}:x={...x,align:null},e=e.setNodeMarkup(m,A,x,p.marks)}),e},dle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=fle(n.tr.setSelection(o),r,t);e.dispatch(i)};function hle(e,t,n,r){if(!e.doc)return e;const o=e.doc.nodeAt(t);if(!o)return e;const i=0,a=8;let s=(o.attrs[r]||0)+n;if(sa&&(s=a),s===o.attrs[r])return e;const c={...o.attrs,[r]:s};return e.setNodeMarkup(t,o.type,c,o.marks)}const uF=(e,t,n,r)=>{const{selection:o,doc:i}=e;if(!o||!i||!(o instanceof Xn||o instanceof qo))return e;const{from:a,to:s}=o;return i.nodesBetween(a,s,(c,l)=>{const u=c.type;return u.name==="paragraph"||u.name==="blockquote"?(e=hle(e,l,n,r),!1):!Ov(c,t)}),e},ple=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=uF(n.tr.setSelection(o),r,t,"indent");return i.docChanged?(e.dispatch(i),!0):!1},mle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=uF(n.tr.setSelection(o),r,t,"textIndent");return i.docChanged?(e.dispatch(i),!0):!1},ag=(e,t,n,r={})=>(o,i)=>{const{schema:a,selection:s}=o,{$from:c,$to:l}=s,u=c.blockRange(l);if(!u)return!1;const f=jN(h=>Ov(h,a))(s);if(u.depth>=1&&f&&u.depth-f.depth<=1){if(f.node.type===e&&!n)return iF(t)(o,i);if(Ov(f.node,a)&&e.validContent(f.node.content)){const{tr:h}=o,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,e,p),i&&i(h),!1}}const d={...r};return n&&(d.listStyleType=n),ase(e,d)(o,i)},A0=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=n.tr.setSelection(o),{doc:a}=i;if(!a)return i;const{from:s,to:c}=o;a.nodesBetween(s,c,(l,u)=>{if(Ov(l,r)&&s-3<=u&&c+3>=u+l.nodeSize){const f=Array.isArray(t)?t:[t];for(const d of f)i.setNodeAttribute(u,d.key,d.value)}return!1}),e.dispatch(i)},vle=Ie({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=ft(),{handleElementId:a,textFormatPainter:s,richTextAttrs:c}=Ee(i),l=he();let u;const f=Fn.debounce(function(){o("update",u.dom.innerHTML)},300,{trailing:!0}),d=()=>{i.setDisableHotkeysState(!0),o("focus")},h=()=>{i.setDisableHotkeysState(!1),o("blur")},p=Fn.debounce(function(){const b=Q4(u,{color:r.defaultColor,fontname:r.defaultFontName});i.setRichtextAttrs(b)},30,{trailing:!0}),m=()=>{f(),p()},A=Me(()=>r.value);Tt(A,()=>{if(!u||u.hasFocus())return;const{doc:b,tr:w}=u.state;u.dispatch(w.replaceRangeWith(0,b.content.size,g5(A.value)))}),Tt(()=>r.editable,()=>{u.setProps({editable:()=>r.editable})}),t({focus:()=>u.focus()});const y=({target:b,action:w})=>{if(!b&&a.value!==r.elementId||b&&b!==r.elementId)return;const T="command"in w?[w]:w;for(const M of T)if(M.command==="fontname"&&M.value){const O=u.state.schema.marks.fontname.create({fontname:M.value});Er(u),Da(u,O)}else if(M.command==="fontsize"&&M.value){const O=u.state.schema.marks.fontsize.create({fontsize:M.value});Er(u),Da(u,O),A0(u,{key:"fontsize",value:M.value})}else if(M.command==="fontsize-add"){const O=M.value?+M.value:2;Er(u);const k=SM(u)+O+"px",F=u.state.schema.marks.fontsize.create({fontsize:k});Da(u,F),A0(u,{key:"fontsize",value:k})}else if(M.command==="fontsize-reduce"){const O=M.value?+M.value:2;Er(u);let k=SM(u)-O;k<12&&(k=12);const F=u.state.schema.marks.fontsize.create({fontsize:k+"px"});Da(u,F),A0(u,{key:"fontsize",value:k+"px"})}else if(M.command==="color"&&M.value){const O=u.state.schema.marks.forecolor.create({color:M.value});Er(u),Da(u,O),A0(u,{key:"color",value:M.value})}else if(M.command==="backcolor"&&M.value){const O=u.state.schema.marks.backcolor.create({backcolor:M.value});Er(u),Da(u,O)}else if(M.command==="bold")Er(u),kr(u.state.schema.marks.strong)(u.state,u.dispatch);else if(M.command==="em")Er(u),kr(u.state.schema.marks.em)(u.state,u.dispatch);else if(M.command==="underline")Er(u),kr(u.state.schema.marks.underline)(u.state,u.dispatch);else if(M.command==="strikethrough")Er(u),kr(u.state.schema.marks.strikethrough)(u.state,u.dispatch);else if(M.command==="subscript")kr(u.state.schema.marks.subscript)(u.state,u.dispatch);else if(M.command==="superscript")kr(u.state.schema.marks.superscript)(u.state,u.dispatch);else if(M.command==="blockquote")Fm("blockquote",u.state)?HH(u.state,u.dispatch):tG(u.state.schema.nodes.blockquote)(u.state,u.dispatch);else if(M.command==="code")kr(u.state.schema.marks.code)(u.state,u.dispatch);else if(M.command==="align"&&M.value)dle(u,M.value);else if(M.command==="indent"&&M.value)ple(u,+M.value);else if(M.command==="textIndent"&&M.value)mle(u,+M.value);else if(M.command==="bulletList"){const O=M.value||"",{bullet_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};ag(k,F,O,N)(u.state,u.dispatch)}else if(M.command==="orderedList"){const O=M.value||"",{ordered_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};ag(k,F,O,N)(u.state,u.dispatch)}else if(M.command==="clear"){Er(u);const{$from:O,$to:k}=u.state.selection;u.dispatch(u.state.tr.removeMark(O.pos,k.pos)),A0(u,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(M.command==="link"){const O=u.state.schema.marks.link,{from:k,to:F}=u.state.selection,N=iG(u.state.doc,k,F,O);if(N)if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Da(u,E,{from:N.from.pos,to:N.to.pos+1})}else u.dispatch(u.state.tr.removeMark(N.from.pos,N.to.pos+1,O));else if(cG(u.state,O))if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Da(u,E)}else kr(O)(u.state,u.dispatch);else M.value&&(Er(u),kr(O,{href:M.value,title:M.value})(u.state,u.dispatch))}else M.command==="insert"&&M.value&&u.dispatch(u.state.tr.insertText(M.value));u.focus(),f(),p()},R=()=>{if(!s.value)return;const{keep:b,...w}=s.value,T=[{command:"clear"}];for(const M of Object.keys(w)){const O=M,k=s.value[M];k===!0?T.push({command:O}):k&&T.push({command:O,value:k})}y({action:T}),b||i.setTextFormatPainter(null)};Gt(()=>{u=cF(l.value,A.value,{handleDOMEvents:{focus:d,blur:h,keydown:m,click:p,mouseup:R},editable:()=>r.editable}),r.autoFocus&&u.focus()}),wn(()=>{u&&u.destroy()});const g=()=>{a.value===r.elementId&&p()};return to.on(Qr.RICH_TEXT_COMMAND,y),to.on(Qr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g),wn(()=>{to.off(Qr.RICH_TEXT_COMMAND,y),to.off(Qr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g)}),(b,w)=>(Y(),ee("div",{class:Je(["prosemirror-editor",{"format-painter":G(s)}]),ref_key:"editorViewRef",ref:l,onMousedown:w[0]||(w[0]=T=>o("mousedown",T))},null,34))}}),fF=Xe(vle,[["__scopeId","data-v-23fdc807"]]),dF=e=>(rn("data-v-88c920e1"),e=e(),on(),e),gle=dF(()=>V("div",{class:"drag-handler top"},null,-1)),Ale=dF(()=>V("div",{class:"drag-handler bottom"},null,-1)),Rle=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=lt(),{handleElementId:o,isScaling:i}=Ee(n),{addHistorySnapshot:a}=Jt(),s=he(),c=Me(()=>t.elementInfo.shadow),{shadowStyle:l}=wc(c),u=(y,R=!0)=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo,R))},f=he(-1),d=he(-1);Tt(i,()=>{o.value===t.elementInfo.id&&(i.value||(!t.elementInfo.vertical&&f.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:f.value}}),f.value=-1),t.elementInfo.vertical&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{width:d.value}}),d.value=-1)))});const h=y=>{const R=y[0].contentRect;if(!s.value)return;const g=R.height+20,b=R.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==g&&(i.value?f.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}})),t.elementInfo.vertical&&t.elementInfo.width!==b&&(i.value?d.value=b:r.updateElement({id:t.elementInfo.id,props:{width:b}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),wn(()=>{s.value&&p.unobserve(s.value)});const m=y=>{r.updateElement({id:t.elementInfo.id,props:{content:y}}),a()},A=Fn.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(t.elementInfo.id)},300,{trailing:!0}),x=Me(()=>o.value===t.elementInfo.id);return Tt(x,()=>{x.value||A()}),(y,R)=>{const g=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-text",{lock:y.elementInfo.lock}]),style:we({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px",height:y.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${y.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",ref_key:"elementRef",ref:s,style:we({width:y.elementInfo.vertical?"auto":y.elementInfo.width+"px",height:y.elementInfo.vertical?y.elementInfo.height+"px":"auto",backgroundColor:y.elementInfo.fill,opacity:y.elementInfo.opacity,textShadow:G(l),lineHeight:y.elementInfo.lineHeight,letterSpacing:(y.elementInfo.wordSpace||0)+"px",color:y.elementInfo.defaultColor,fontFamily:y.elementInfo.defaultFontName,writingMode:y.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:R[2]||(R[2]=b=>u(b)),onTouchstart:R[3]||(R[3]=b=>u(b))},[L(s2,{width:y.elementInfo.width,height:y.elementInfo.height,outline:y.elementInfo.outline},null,8,["width","height","outline"]),L(fF,{class:"text",elementId:y.elementInfo.id,defaultColor:y.elementInfo.defaultColor,defaultFontName:y.elementInfo.defaultFontName,editable:!y.elementInfo.lock,value:y.elementInfo.content,style:we({"--paragraphSpace":`${y.elementInfo.paragraphSpace===void 0?5:y.elementInfo.paragraphSpace}px`}),onUpdate:R[0]||(R[0]=b=>m(b)),onMousedown:R[1]||(R[1]=b=>u(b,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),gle,Ale],36)),[[g,y.contextmenus]])],4)],6)}}}),hF=Xe(Rle,[["__scopeId","data-v-88c920e1"]]),yle=["id","gradientTransform"],xle=["stop-color"],ble=["stop-color"],Sle=["id"],Mle=["stop-color"],wle=["stop-color"],pF=Ie({__name:"GradientDefs",props:{id:{},type:{},color1:{},color2:{},rotate:{default:0}},setup(e){return(t,n)=>t.type==="linear"?(Y(),ee("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[V("stop",{offset:"0%","stop-color":t.color1},null,8,xle),V("stop",{offset:"100%","stop-color":t.color2},null,8,ble)],8,yle)):(Y(),ee("radialGradient",{key:1,id:t.id},[V("stop",{offset:"0%","stop-color":t.color1},null,8,Mle),V("stop",{offset:"100%","stop-color":t.color2},null,8,wle)],8,Sle))}}),Lle=["width","height"],Ole={key:0},Tle=["transform"],kle=["d","fill","stroke","stroke-width","stroke-dasharray"],Nle=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=lt(),{handleElementId:o,shapeFormatPainter:i}=Ee(n),{addHistorySnapshot:a}=Jt(),s=(M,O=!0)=>{t.elementInfo.lock||(M.stopPropagation(),t.selectElement(M,t.elementInfo,O))},c=()=>{if(!i.value)return;const{keep:M,...O}=i.value;r.updateElement({id:t.elementInfo.id,props:O}),a(),M||n.setShapeFormatPainter(null)},l=Me(()=>t.elementInfo.outline),{outlineWidth:u,outlineColor:f,strokeDashArray:d}=Hd(l),h=Me(()=>t.elementInfo.shadow),{shadowStyle:p}=wc(h),m=Me(()=>t.elementInfo.flipH),A=Me(()=>t.elementInfo.flipV),{flipStyle:x}=a2(m,A),y=he(!1);Tt(o,()=>{o.value!==t.elementInfo.id&&y.value&&(y.value=!1)});const R=Me(()=>{const M={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:M}),g=M=>{const O={...R.value,content:M};r.updateElement({id:t.elementInfo.id,props:{text:O}}),a()},b=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},w=he(),T=()=>{y.value=!0,Wr(()=>w.value&&w.value.focus())};return(M,O)=>{const k=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-shape",{lock:M.elementInfo.lock,"format-painter":G(i)}]),style:we({top:M.elementInfo.top+"px",left:M.elementInfo.left+"px",width:M.elementInfo.width+"px",height:M.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${M.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",style:we({opacity:M.elementInfo.opacity,filter:G(p)?`drop-shadow(${G(p)})`:"",transform:G(x),color:R.value.defaultColor,fontFamily:R.value.defaultFontName}),onMousedown:O[3]||(O[3]=F=>s(F)),onMouseup:O[4]||(O[4]=F=>c()),onTouchstart:O[5]||(O[5]=F=>s(F)),onDblclick:O[6]||(O[6]=F=>T())},[(Y(),ee("svg",{overflow:"visible",width:M.elementInfo.width,height:M.elementInfo.height},[M.elementInfo.gradient?(Y(),ee("defs",Ole,[L(pF,{id:`editabel-gradient-${M.elementInfo.id}`,type:M.elementInfo.gradient.type,color1:M.elementInfo.gradient.color[0],color2:M.elementInfo.gradient.color[1],rotate:M.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Ze("",!0),V("g",{transform:`scale(${M.elementInfo.width/M.elementInfo.viewBox[0]}, ${M.elementInfo.height/M.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:M.elementInfo.path,fill:M.elementInfo.gradient?`url(#editabel-gradient-${M.elementInfo.id})`:M.elementInfo.fill,stroke:G(f),"stroke-width":G(u),"stroke-dasharray":G(d)},null,8,kle)],8,Tle)],8,Lle)),V("div",{class:Je(["shape-text",[R.value.align,{editable:y.value||R.value.content}]])},[y.value||R.value.content?(Y(),Te(fF,{key:0,ref_key:"prosemirrorEditorRef",ref:w,elementId:M.elementInfo.id,defaultColor:R.value.defaultColor,defaultFontName:R.value.defaultFontName,editable:!M.elementInfo.lock,value:R.value.content,onUpdate:O[0]||(O[0]=F=>g(F)),onBlur:O[1]||(O[1]=F=>b()),onMousedown:O[2]||(O[2]=F=>s(F,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Ze("",!0)],2)],36)),[[k,M.contextmenus]])],4)],6)}}}),mF=Xe(Nle,[["__scopeId","data-v-63255815"]]),Ple=["id","markerWidth","markerHeight","refX","refY"],Cle=["d","fill","transform"],Cd=Ie({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(e){const t=e,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},r={"arrow-start":180,"arrow-end":0},o=Me(()=>n[t.type]),i=Me(()=>r[`${t.type}-${t.position}`]||0),a=Me(()=>t.baseSize<2?2:t.baseSize);return(s,c)=>(Y(),ee("marker",{id:`${s.id}-${s.type}-${s.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:a.value*3,markerHeight:a.value*3,refX:a.value*1.5,refY:a.value*1.5},[V("path",{d:o.value,fill:s.color,transform:`scale(${a.value*.3}, ${a.value*.3}) rotate(${i.value}, 5, 5)`},null,8,Cle)],8,Ple))}}),Ile=["width","height"],Fle=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],_le=["d"],Ele=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=l=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo))},r=Me(()=>t.elementInfo.shadow),{shadowStyle:o}=wc(r),i=Me(()=>{const l=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return l<24?24:l}),a=Me(()=>{const l=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return l<24?24:l}),s=Me(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const l=t.elementInfo.width;return l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`}),c=Me(()=>Tb(t.elementInfo));return(l,u)=>{const f=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-shape",{lock:l.elementInfo.lock}]),style:we({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[V("div",{class:"element-content",style:we({filter:G(o)?`drop-shadow(${G(o)})`:""}),onMousedown:u[0]||(u[0]=d=>n(d)),onTouchstart:u[1]||(u[1]=d=>n(d))},[(Y(),ee("svg",{overflow:"visible",width:i.value,height:a.value},[V("defs",null,[l.elementInfo.points[0]?(Y(),Te(Cd,{key:0,id:l.elementInfo.id,position:"start",type:l.elementInfo.points[0],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0),l.elementInfo.points[1]?(Y(),Te(Cd,{key:1,id:l.elementInfo.id,position:"end",type:l.elementInfo.points[1],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0)]),V("path",{class:"line-point",d:c.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":s.value,fill:"none","marker-start":l.elementInfo.points[0]?`url(#${l.elementInfo.id}-${l.elementInfo.points[0]}-start)`:"","marker-end":l.elementInfo.points[1]?`url(#${l.elementInfo.id}-${l.elementInfo.points[1]}-end)`:""},null,8,Fle),Ke(V("path",{class:"line-path",d:c.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,_le),[[f,l.contextmenus]])],8,Ile))],36)],6)}}}),vF=Xe(Ele,[["__scopeId","data-v-7ecafe01"]]),z0={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},Xle=8,ST={"&":"&","<":"<",">":">",'"':""","'":"'"};function MT(e,t){return typeof e=="number"?e+t:e}function sg(e){if(typeof e=="string"){const t=/^(\d+)\s*(.*)$/g.exec(e);return{value:t?+t[1]:0,unit:(t==null?void 0:t[2])||void 0}}return{value:Number(e)}}function A5(e){return String.fromCharCode(97+e%26)}const Ky=2221e-19;function Wle(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)}function R0(e,t,n){return t/n.range*e}function Vle(e,t){const n=Math.pow(10,t||Xle);return Math.round(e*n)/n}function Ule(e){if(e===1)return e;function t(a,s){return a%s===0?s:t(s,a%s)}function n(a){return a*a+1}let r=2,o=2,i;if(e%2===0)return 2;do r=n(r)%e,o=n(n(o))%e,i=t(Math.abs(r-o),e);while(i===1);return i}function Hy(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function Yle(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const o={high:t.high,low:t.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};o.valueRange=o.high-o.low,o.oom=Wle(o.valueRange),o.step=Math.pow(10,o.oom),o.min=Math.floor(o.low/o.step)*o.step,o.max=Math.ceil(o.high/o.step)*o.step,o.range=o.max-o.min,o.numberOfSteps=Math.round(o.range/o.step);const a=R0(e,o.step,o)=n)o.step=1;else if(r&&s=n)o.step=s;else{let d=0;for(;;){if(a&&R0(e,o.step,o)<=n)o.step*=2;else if(!a&&R0(e,o.step/2,o)>=n){if(o.step/=2,r&&o.step%1!==0){o.step*=2;break}}else break;if(d++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}o.step=Math.max(o.step,Ky);function c(d,h){return d===(d+=h)&&(d*=1+(h>0?Ky:-Ky)),d}let l=o.min,u=o.max;for(;l+o.step<=o.low;)l=c(l,o.step);for(;u-o.step>=o.high;)u=c(u,-o.step);o.min=l,o.max=u,o.range=o.max-o.min;const f=[];for(let d=o.min;d<=o.max;d=c(d,o.step)){const h=Vle(d);h!==f[f.length-1]&&f.push(h)}return o.values=f,o}function Vu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re;function tx(e,t){return Array.from({length:e},t?(n,r)=>t(r):()=>{})}const Qle=(e,t)=>e+(t||0),Zle=(e,t)=>tx(Math.max(...e.map(n=>n.length)),n=>t(...e.map(r=>r[n])));function zn(e,t){return e!==null&&typeof e=="object"&&Reflect.has(e,t)}function Th(e){return e!==null&&isFinite(e)}function gF(e){return!e&&e!==0}function md(e){return Th(e)?Number(e):void 0}function Ble(e){return Array.isArray(e)?e.every(Array.isArray):!1}function AF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=0;e[n?"reduceRight":"reduce"]((o,i,a)=>t(i,r++,a),void 0)}function RF(e,t){const n=Array.isArray(e)?e[t]:zn(e,"data")?e.data[t]:null;return zn(n,"meta")?n.meta:void 0}function yF(e){return e==null||typeof e=="number"&&isNaN(e)}function Dle(e){return Array.isArray(e)&&e.every(t=>Array.isArray(t)||zn(t,"data"))}function Kle(e){return typeof e=="object"&&e!==null&&(Reflect.has(e,"x")||Reflect.has(e,"y"))}function R5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";return Kle(e)&&zn(e,t)?md(e[t]):md(e)}function nx(e,t,n){t={...t,...n?n==="x"?t.axisX:t.axisY:{}};const r={high:t.high===void 0?-Number.MAX_VALUE:+t.high,low:t.low===void 0?Number.MAX_VALUE:+t.low},o=t.high===void 0,i=t.low===void 0;function a(s){if(!yF(s))if(Array.isArray(s))for(let c=0;cr.high&&(r.high=c),i&&c0||(r.high=1),r.low=0)),r}function y5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o;const i={labels:(e.labels||[]).slice(),series:Jle(e.series,n,r)},a=i.labels.length;return Ble(i.series)?(o=Math.max(a,...i.series.map(s=>s.length)),i.series.forEach(s=>{s.push(...tx(Math.max(0,o-s.length)))})):o=i.series.length,i.labels.push(...tx(Math.max(0,o-a),()=>"")),t&&Hle(i),i}function Hle(e){var t;(t=e.labels)===null||t===void 0||t.reverse(),e.series.reverse();for(const n of e.series)zn(n,"data")?n.data.reverse():Array.isArray(n)&&n.reverse()}function Gle(e,t){let n,r;if(typeof e!="object"){const o=md(e);t==="x"?n=o:r=o}else zn(e,"x")&&(n=md(e.x)),zn(e,"y")&&(r=md(e.y));if(!(n===void 0&&r===void 0))return{x:n,y:r}}function wT(e,t){if(!yF(e))return t?Gle(e,t):md(e)}function rx(e,t){return Array.isArray(e)?e.map(n=>zn(n,"value")?wT(n.value,t):wT(n,t)):rx(e.data,t)}function Jle(e,t,n){if(Dle(e))return e.map(o=>rx(o,t));const r=rx(e,t);return n?r.map(o=>[o]):r}function zle(e,t,n){const r={increasingX:!1,fillHoles:!1,...n},o=[];let i=!0;for(let a=0;a=2&&e[a]<=e[a-2]&&(i=!0),i&&(o.push({pathCoordinates:[],valueData:[]}),i=!1),o[o.length-1].pathCoordinates.push(e[a],e[a+1]),o[o.length-1].valueData.push(t[a/2]));return o}function cp(e){let t="";return e==null?e:(typeof e=="number"?t=""+e:typeof e=="object"?t=JSON.stringify({data:e}):t=String(e),Object.keys(ST).reduce((n,r)=>n.replaceAll(r,ST[r]),t))}class $le{call(t,n){return this.svgElements.forEach(r=>Reflect.apply(r[t],r,n)),this}attr(){for(var t=arguments.length,n=new Array(t),r=0;r3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;const{easing:i,...a}=n,s={};let c,l;i&&(c=Array.isArray(i)?i:xF[i]),a.begin=MT(a.begin,"ms"),a.dur=MT(a.dur,"ms"),c&&(a.calcMode="spline",a.keySplines=c.join(" "),a.keyTimes="0;1"),r&&(a.fill="freeze",s[t]=a.from,e.attr(s),l=sg(a.begin||0).value,a.begin="indefinite");const u=e.elem("animate",{attributeName:t,...a});r&&setTimeout(()=>{try{u._node.beginElement()}catch{s[t]=a.to,e.attr(s),u.remove()}},l);const f=u.getNode();o&&f.addEventListener("beginEvent",()=>o.emit("animationBegin",{element:e,animate:f,params:n})),f.addEventListener("endEvent",()=>{o&&o.emit("animationEnd",{element:e,animate:f,params:n}),r&&(s[t]=a.to,e.attr(s),u.remove())})}class rc{attr(t,n){return typeof t=="string"?n?this._node.getAttributeNS(n,t):this._node.getAttribute(t):(Object.keys(t).forEach(r=>{if(t[r]!==void 0)if(r.indexOf(":")!==-1){const o=r.split(":");this._node.setAttributeNS(z0[o[0]],r,String(t[r]))}else this._node.setAttribute(r,String(t[r]))}),this)}elem(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return new rc(t,n,r,this,o)}parent(){return this._node.parentNode instanceof SVGElement?new rc(this._node.parentNode):null}root(){let t=this._node;for(;t.nodeName!=="svg"&&t.parentElement;)t=t.parentElement;return new rc(t)}querySelector(t){const n=this._node.querySelector(t);return n?new rc(n):null}querySelectorAll(t){const n=this._node.querySelectorAll(t);return new $le(n)}getNode(){return this._node}foreignObject(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;if(typeof t=="string"){const s=document.createElement("div");s.innerHTML=t,i=s.firstChild}else i=t;i instanceof Element&&i.setAttribute("xmlns",z0.xmlns);const a=this.elem("foreignObject",n,r,o);return a._node.appendChild(i),a}text(t){return this._node.appendChild(document.createTextNode(t)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var t;return(t=this._node.parentNode)===null||t===void 0||t.removeChild(this._node),this.parent()}replace(t){var n;return(n=this._node.parentNode)===null||n===void 0||n.replaceChild(t._node,this._node),t}append(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this}classes(){const t=this._node.getAttribute("class");return t?t.trim().split(/\s+/):[]}addClass(t){return this._node.setAttribute("class",this.classes().concat(t.trim().split(/\s+/)).filter(function(n,r,o){return o.indexOf(n)===r}).join(" ")),this}removeClass(t){const n=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter(r=>n.indexOf(r)===-1).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2?arguments[2]:void 0;return Object.keys(t).forEach(o=>{const i=t[o];Array.isArray(i)?i.forEach(a=>LT(this,o,a,!1,r)):LT(this,o,i,n,r)}),this}constructor(t,n,r,o,i=!1){t instanceof Element?this._node=t:(this._node=document.createElementNS(z0.svg,t),t==="svg"&&this.attr({"xmlns:ct":z0.ct})),n&&this.attr(n),r&&this.addClass(r),o&&(i&&o._node.firstChild?o._node.insertBefore(this._node,o._node.firstChild):o._node.appendChild(this._node))}}rc.Easing=xF;function x5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"100%",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"100%",r=arguments.length>3?arguments[3]:void 0;Array.from(e.querySelectorAll("svg")).filter(i=>i.getAttributeNS(z0.xmlns,"ct")).forEach(i=>e.removeChild(i));const o=new rc("svg").attr({width:t,height:n}).attr({style:"width: ".concat(t,"; height: ").concat(n,";")});return r&&o.addClass(r),e.appendChild(o.getNode()),o}function jle(e){return typeof e=="number"?{top:e,right:e,bottom:e,left:e}:e===void 0?{top:0,right:0,bottom:0,left:0}:{top:typeof e.top=="number"?e.top:0,right:typeof e.right=="number"?e.right:0,bottom:typeof e.bottom=="number"?e.bottom:0,left:typeof e.left=="number"?e.left:0}}function b5(e,t){var n,r,o,i;const a=!!(t.axisX||t.axisY),s=((n=t.axisY)===null||n===void 0?void 0:n.offset)||0,c=((r=t.axisX)===null||r===void 0?void 0:r.offset)||0,l=(o=t.axisY)===null||o===void 0?void 0:o.position,u=(i=t.axisX)===null||i===void 0?void 0:i.position;let f=e.width()||sg(t.width).value||0,d=e.height()||sg(t.height).value||0;const h=jle(t.chartPadding);f=Math.max(f,s+h.left+h.right),d=Math.max(d,c+h.top+h.bottom);const p={x1:0,x2:0,y1:0,y2:0,padding:h,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return a?(u==="start"?(p.y2=h.top+c,p.y1=Math.max(d-h.bottom,p.y2+1)):(p.y2=h.top,p.y1=Math.max(d-h.bottom-c,p.y2+1)),l==="start"?(p.x1=h.left+s,p.x2=Math.max(f-h.right,p.x1+1)):(p.x1=h.left,p.x2=Math.max(f-h.right-s,p.x1+1))):(p.x1=h.left,p.x2=Math.max(f-h.right,p.x1+1),p.y2=h.top,p.y1=Math.max(d-h.bottom,p.y2+1)),p}function qle(e,t,n,r,o,i,a,s){const c={["".concat(n.units.pos,"1")]:e,["".concat(n.units.pos,"2")]:e,["".concat(n.counterUnits.pos,"1")]:r,["".concat(n.counterUnits.pos,"2")]:r+o},l=i.elem("line",c,a.join(" "));s.emit("draw",{type:"grid",axis:n,index:t,group:i,element:l,...c})}function bF(e,t,n,r){const o=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);r.emit("draw",{type:"gridBackground",group:e,element:o})}function ece(e,t,n,r,o,i,a,s,c,l){const u={[o.units.pos]:e+a[o.units.pos],[o.counterUnits.pos]:a[o.counterUnits.pos],[o.units.len]:t,[o.counterUnits.len]:Math.max(0,i-10)},f=Math.round(u[o.units.len]),d=Math.round(u[o.counterUnits.len]),h=document.createElement("span");h.className=c.join(" "),h.style[o.units.len]=f+"px",h.style[o.counterUnits.len]=d+"px",h.textContent=String(r);const p=s.foreignObject(h,{style:"overflow: visible;",...u});l.emit("draw",{type:"label",axis:o,index:n,group:s,element:p,text:r,...u})}function OT(e,t,n){let r;const o=[];function i(s){const c=r;r=Vu({},e),t&&t.forEach(l=>{window.matchMedia(l[0]).matches&&(r=Vu(r,l[1]))}),n&&s&&n.emit("optionsChanged",{previousOptions:c,currentOptions:r})}function a(){o.forEach(s=>s.removeEventListener("change",i))}if(window.matchMedia)t&&t.forEach(s=>{const c=window.matchMedia(s[0]);c.addEventListener("change",i),o.push(c)});else throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return i(),{removeMediaQueryListeners:a,getCurrentOptions(){return r}}}const ox={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},tce={accuracy:3};function Rm(e,t,n,r,o,i){const a={command:o?e.toLowerCase():e.toUpperCase(),...t,...i?{data:i}:{}};n.splice(r,0,a)}function Gy(e,t){e.forEach((n,r)=>{ox[n.command.toLowerCase()].forEach((o,i)=>{t(n,o,r,i,e)})})}class qs{static join(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;const o=new qs(n,r);for(let i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return Rm("M",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}line(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return Rm("L",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}curve(t,n,r,o,i,a){let s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,c=arguments.length>7?arguments[7]:void 0;return Rm("C",{x1:+t,y1:+n,x2:+r,y2:+o,x:+i,y:+a},this.pathElements,this.pos++,s,c),this}arc(t,n,r,o,i,a,s){let c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l=arguments.length>8?arguments[8]:void 0;return Rm("A",{rx:t,ry:n,xAr:r,lAf:o,sf:i,x:a,y:s},this.pathElements,this.pos++,c,l),this}parse(t){const n=t.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((o,i)=>(i.match(/[A-Za-z]/)&&o.push([]),o[o.length-1].push(i),o),[]);n[n.length-1][0].toUpperCase()==="Z"&&n.pop();const r=n.map(o=>{const i=o.shift(),a=ox[i.toLowerCase()];return{command:i,...a.reduce((s,c,l)=>(s[c]=+o[l],s),{})}});return this.pathElements.splice(this.pos,0,...r),this.pos+=r.length,this}stringify(){const t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((n,r)=>{const o=ox[r.command.toLowerCase()].map(i=>{const a=r[i];return this.options.accuracy?Math.round(a*t)/t:a});return n+r.command+o.join(",")},"")+(this.close?"Z":"")}scale(t,n){return Gy(this.pathElements,(r,o)=>{r[o]*=o[0]==="x"?t:n}),this}translate(t,n){return Gy(this.pathElements,(r,o)=>{r[o]+=o[0]==="x"?t:n}),this}transform(t){return Gy(this.pathElements,(n,r,o,i,a)=>{const s=t(n,r,o,i,a);(s||s===0)&&(n[r]=s)}),this}clone(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const n=new qs(t||this.close);return n.pos=this.pos,n.pathElements=this.pathElements.slice().map(r=>({...r})),n.options={...this.options},n}splitByCommand(t){const n=[new qs];return this.pathElements.forEach(r=>{r.command===t.toUpperCase()&&n[n.length-1].pathElements.length!==0&&n.push(new qs),n[n.length-1].pathElements.push(r)}),n}constructor(t=!1,n){this.close=t,this.pathElements=[],this.pos=0,this.options={...tce,...n}}}function ix(e){const t={fillHoles:!1,...e};return function(r,o){const i=new qs;let a=!0;for(let s=0;s1)return qs.join(i.map(a=>n(a.pathCoordinates,a.valueData)));{if(r=i[0].pathCoordinates,o=i[0].valueData,r.length<=4)return ix()(r,o);const a=[],s=[],c=r.length/2,l=[],u=[],f=[],d=[];for(let p=0;p0!=u[p]>0?l[p]=0:(l[p]=3*(d[p-1]+d[p])/((2*d[p]+d[p-1])/u[p-1]+(d[p]+2*d[p-1])/u[p]),isFinite(l[p])||(l[p]=0));const h=new qs().move(a[0],s[0],!1,o[0]);for(let p=0;pi(n)),r.forEach(i=>i(t,n))}constructor(){this.listeners=new Map,this.allListeners=new Set}}const Jy=new WeakMap;class S5{update(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),n&&(this.options=Vu({},r?this.options:this.defaultOptions,n),!this.initializeTimeoutId)){var o;(o=this.optionsProvider)===null||o===void 0||o.removeMediaQueryListeners(),this.optionsProvider=OT(this.options,this.responsiveOptions,this.eventEmitter)}return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){if(this.initializeTimeoutId)window.clearTimeout(this.initializeTimeoutId);else{var t;window.removeEventListener("resize",this.resizeListener),(t=this.optionsProvider)===null||t===void 0||t.removeMediaQueryListeners()}return Jy.delete(this.container),this}on(t,n){return this.eventEmitter.on(t,n),this}off(t,n){return this.eventEmitter.off(t,n),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=OT(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",()=>this.update()),this.options.plugins&&this.options.plugins.forEach(t=>{Array.isArray(t)?t[0](this,t[1]):t(this)}),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(t,n,r,o,i){this.data=n,this.defaultOptions=r,this.options=o,this.responsiveOptions=i,this.eventEmitter=new rce,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout(()=>this.initialize(),0);const a=typeof t=="string"?document.querySelector(t):t;if(!a)throw new Error("Target element is not found");this.container=a;const s=Jy.get(a);s&&s.detach(),Jy.set(a,this)}}const ko={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};class SF{createGridAndLabels(t,n,r,o){const i=this.units.pos==="x"?r.axisX:r.axisY,a=this.ticks.map((c,l)=>this.projectValue(c,l)),s=this.ticks.map(i.labelInterpolationFnc);a.forEach((c,l)=>{const u=s[l],f={x:0,y:0};let d;a[l+1]?d=a[l+1]-c:d=Math.max(this.axisLength-c,this.axisLength/this.ticks.length),!(u!==""&&gF(u))&&(this.units.pos==="x"?(c=this.chartRect.x1+c,f.x=r.axisX.labelOffset.x,r.axisX.position==="start"?f.y=this.chartRect.padding.top+r.axisX.labelOffset.y+5:f.y=this.chartRect.y1+r.axisX.labelOffset.y+5):(c=this.chartRect.y1-c,f.y=r.axisY.labelOffset.y-d,r.axisY.position==="start"?f.x=this.chartRect.padding.left+r.axisY.labelOffset.x:f.x=this.chartRect.x2+r.axisY.labelOffset.x+10),i.showGrid&&qle(c,l,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[r.classNames.grid,r.classNames[this.units.dir]],o),i.showLabel&&ece(c,d,l,u,this,i.offset,f,n,[r.classNames.label,r.classNames[this.units.dir],i.position==="start"?r.classNames[i.position]:r.classNames.end],o))})}constructor(t,n,r){this.units=t,this.chartRect=n,this.ticks=r,this.counterUnits=t===ko.x?ko.y:ko.x,this.axisLength=n[this.units.rectEnd]-n[this.units.rectStart],this.gridOffset=n[this.units.rectOffset]}}class ax extends SF{projectValue(t){const n=Number(R5(t,this.units.pos));return this.axisLength*(n-this.bounds.min)/this.bounds.range}constructor(t,n,r,o){const i=o.highLow||nx(n,o,t.pos),a=Yle(r[t.rectEnd]-r[t.rectStart],i,o.scaleMinSpace||20,o.onlyInteger),s={min:a.min,max:a.max};super(t,r,a.values),this.bounds=a,this.range=s}}class qm extends SF{projectValue(t,n){return this.stepLength*n}constructor(t,n,r,o){const i=o.ticks||[];super(t,r,i);const a=Math.max(1,i.length-(o.stretch?1:0));this.stepLength=this.axisLength/a,this.stretch=!!o.stretch}}function y0(e,t,n){var r;if(zn(e,"name")&&e.name&&(!((r=t.series)===null||r===void 0)&&r[e.name])){const i=(t==null?void 0:t.series[e.name])[n];return i===void 0?t[n]:i}else return t[n]}const TT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:lp,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:lp,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class oce extends S5{createChart(t){const{data:n}=this,r=y5(n,t.reverseData,!0),o=x5(this.container,t.width,t.height,t.classNames.chart);this.svg=o;const i=o.elem("g").addClass(t.classNames.gridGroup),a=o.elem("g"),s=o.elem("g").addClass(t.classNames.labelGroup),c=b5(o,t);let l,u;t.axisX.type===void 0?l=new qm(ko.x,r.series,c,{...t.axisX,ticks:r.labels,stretch:t.fullWidth}):l=new t.axisX.type(ko.x,r.series,c,t.axisX),t.axisY.type===void 0?u=new ax(ko.y,r.series,c,{...t.axisY,high:Th(t.high)?t.high:t.axisY.high,low:Th(t.low)?t.low:t.axisY.low}):u=new t.axisY.type(ko.y,r.series,c,t.axisY),l.createGridAndLabels(i,s,t,this.eventEmitter),u.createGridAndLabels(i,s,t,this.eventEmitter),t.showGridBackground&&bF(i,c,t.classNames.gridBackground,this.eventEmitter),AF(n.series,(f,d)=>{const h=a.elem("g"),p=zn(f,"name")&&f.name,m=zn(f,"className")&&f.className,A=zn(f,"meta")?f.meta:void 0;p&&h.attr({"ct:series-name":p}),A&&h.attr({"ct:meta":cp(A)}),h.addClass([t.classNames.series,m||"".concat(t.classNames.series,"-").concat(A5(d))].join(" "));const x=[],y=[];r.series[d].forEach((w,T)=>{const M={x:c.x1+l.projectValue(w,T,r.series[d]),y:c.y1-u.projectValue(w,T,r.series[d])};x.push(M.x,M.y),y.push({value:w,valueIndex:T,meta:RF(f,T)})});const R={lineSmooth:y0(f,t,"lineSmooth"),showPoint:y0(f,t,"showPoint"),showLine:y0(f,t,"showLine"),showArea:y0(f,t,"showArea"),areaBase:y0(f,t,"areaBase")};let g;typeof R.lineSmooth=="function"?g=R.lineSmooth:g=R.lineSmooth?nce():ix();const b=g(x,y);if(R.showPoint&&b.pathElements.forEach(w=>{const{data:T}=w,M=h.elem("line",{x1:w.x,y1:w.y,x2:w.x+.01,y2:w.y},t.classNames.point);if(T){let O,k;zn(T.value,"x")&&(O=T.value.x),zn(T.value,"y")&&(k=T.value.y),M.attr({"ct:value":[O,k].filter(Th).join(","),"ct:meta":cp(T.meta)})}this.eventEmitter.emit("draw",{type:"point",value:T==null?void 0:T.value,index:(T==null?void 0:T.valueIndex)||0,meta:T==null?void 0:T.meta,series:f,seriesIndex:d,axisX:l,axisY:u,group:h,element:M,x:w.x,y:w.y,chartRect:c})}),R.showLine){const w=h.elem("path",{d:b.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.series[d],path:b.clone(),chartRect:c,index:d,series:f,seriesIndex:d,meta:A,axisX:l,axisY:u,group:h,element:w})}if(R.showArea&&u.range){const w=Math.max(Math.min(R.areaBase,u.range.max),u.range.min),T=c.y1-u.projectValue(w);b.splitByCommand("M").filter(M=>M.pathElements.length>1).map(M=>{const O=M.pathElements[0],k=M.pathElements[M.pathElements.length-1];return M.clone(!0).position(0).remove(1).move(O.x,T).line(O.x,O.y).position(M.pathElements.length+1).line(k.x,T)}).forEach(M=>{const O=h.elem("path",{d:M.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.series[d],path:M.clone(),series:f,seriesIndex:d,axisX:l,axisY:u,chartRect:c,index:d,group:h,element:O,meta:A})})}},t.reverseData),this.eventEmitter.emit("created",{chartRect:c,axisX:l,axisY:u,svg:o,options:t})}constructor(t,n,r,o){super(t,n,TT,Vu({},TT,r),o),this.data=n}}function ice(e){return Zle(e,function(){for(var t=arguments.length,n=new Array(t),r=0;r({x:o.x+(zn(i,"x")?i.x:0),y:o.y+(zn(i,"y")?i.y:0)}),{x:0,y:0})})}const kT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:lp,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:lp,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class ace extends S5{createChart(t){const{data:n}=this,r=y5(n,t.reverseData,t.horizontalBars?"x":"y",!0),o=x5(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:"")),i=t.stackBars&&t.stackMode!==!0&&r.series.length?nx([ice(r.series)],t,t.horizontalBars?"x":"y"):nx(r.series,t,t.horizontalBars?"x":"y");this.svg=o;const a=o.elem("g").addClass(t.classNames.gridGroup),s=o.elem("g"),c=o.elem("g").addClass(t.classNames.labelGroup);typeof t.high=="number"&&(i.high=t.high),typeof t.low=="number"&&(i.low=t.low);const l=b5(o,t);let u;const f=t.distributeSeries&&t.stackBars?r.labels.slice(0,1):r.labels;let d,h,p;t.horizontalBars?(t.axisX.type===void 0?u=h=new ax(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}):u=h=new t.axisX.type(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}),t.axisY.type===void 0?d=p=new qm(ko.y,r.series,l,{ticks:f}):d=p=new t.axisY.type(ko.y,r.series,l,t.axisY)):(t.axisX.type===void 0?d=h=new qm(ko.x,r.series,l,{ticks:f}):d=h=new t.axisX.type(ko.x,r.series,l,t.axisX),t.axisY.type===void 0?u=p=new ax(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}):u=p=new t.axisY.type(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}));const m=t.horizontalBars?l.x1+u.projectValue(0):l.y1-u.projectValue(0),A=t.stackMode==="accumulate",x=t.stackMode==="accumulate-relative",y=[],R=[];let g=y;d.createGridAndLabels(a,c,t,this.eventEmitter),u.createGridAndLabels(a,c,t,this.eventEmitter),t.showGridBackground&&bF(a,l,t.classNames.gridBackground,this.eventEmitter),AF(n.series,(b,w)=>{const T=w-(n.series.length-1)/2;let M;t.distributeSeries&&!t.stackBars?M=d.axisLength/r.series.length/2:t.distributeSeries&&t.stackBars?M=d.axisLength/2:M=d.axisLength/r.series[w].length/2;const O=s.elem("g"),k=zn(b,"name")&&b.name,F=zn(b,"className")&&b.className,N=zn(b,"meta")?b.meta:void 0;k&&O.attr({"ct:series-name":k}),N&&O.attr({"ct:meta":cp(N)}),O.addClass([t.classNames.series,F||"".concat(t.classNames.series,"-").concat(A5(w))].join(" ")),r.series[w].forEach((E,C)=>{const _=zn(E,"x")&&E.x,I=zn(E,"y")&&E.y;let W;t.distributeSeries&&!t.stackBars?W=w:t.distributeSeries&&t.stackBars?W=0:W=C;let Z;t.horizontalBars?Z={x:l.x1+u.projectValue(_||0,C,r.series[w]),y:l.y1-d.projectValue(I||0,W,r.series[w])}:Z={x:l.x1+d.projectValue(_||0,W,r.series[w]),y:l.y1-u.projectValue(I||0,C,r.series[w])},d instanceof qm&&(d.stretch||(Z[d.units.pos]+=M*(t.horizontalBars?-1:1)),Z[d.units.pos]+=t.stackBars||t.distributeSeries?0:T*t.seriesBarDistance*(t.horizontalBars?-1:1)),x&&(g=I>=0||_>=0?y:R);const J=g[C]||m;if(g[C]=J-(m-Z[d.counterUnits.pos]),E===void 0)return;const le={["".concat(d.units.pos,"1")]:Z[d.units.pos],["".concat(d.units.pos,"2")]:Z[d.units.pos]};t.stackBars&&(A||x||!t.stackMode)?(le["".concat(d.counterUnits.pos,"1")]=J,le["".concat(d.counterUnits.pos,"2")]=g[C]):(le["".concat(d.counterUnits.pos,"1")]=m,le["".concat(d.counterUnits.pos,"2")]=Z[d.counterUnits.pos]),le.x1=Math.min(Math.max(le.x1,l.x1),l.x2),le.x2=Math.min(Math.max(le.x2,l.x1),l.x2),le.y1=Math.min(Math.max(le.y1,l.y2),l.y1),le.y2=Math.min(Math.max(le.y2,l.y2),l.y1);const D=RF(b,C),Q=O.elem("line",le,t.classNames.bar).attr({"ct:value":[_,I].filter(Th).join(","),"ct:meta":cp(D)});this.eventEmitter.emit("draw",{type:"bar",value:E,index:C,meta:D,series:b,seriesIndex:w,axisX:h,axisY:p,chartRect:l,group:O,element:Q,...le})})},t.reverseData),this.eventEmitter.emit("created",{chartRect:l,axisX:h,axisY:p,svg:o,options:t})}constructor(t,n,r,o){super(t,n,kT,Vu({},kT,r),o),this.data=n}}const NT={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:lp,labelDirection:"neutral",ignoreEmptyValues:!1};function sce(e,t,n){const r=t.x>e.x;return r&&n==="explode"||!r&&n==="implode"?"start":r&&n==="implode"||!r&&n==="explode"?"end":"middle"}class lce extends S5{createChart(t){const{data:n}=this,r=y5(n),o=[];let i,a,s=t.startAngle;const c=x5(this.container,t.width,t.height,t.donut?t.classNames.chartDonut:t.classNames.chartPie);this.svg=c;const l=b5(c,t);let u=Math.min(l.width()/2,l.height()/2);const f=t.total||r.series.reduce(Qle,0),d=sg(t.donutWidth);d.unit==="%"&&(d.value*=u/100),u-=t.donut?d.value/2:0,t.labelPosition==="outside"||t.donut?a=u:t.labelPosition==="center"?a=0:a=u/2,t.labelOffset&&(a+=t.labelOffset);const h={x:l.x1+l.width()/2,y:l.y2+l.height()/2},p=n.series.filter(m=>zn(m,"value")?m.value!==0:m!==0).length===1;n.series.forEach((m,A)=>o[A]=c.elem("g")),t.showLabel&&(i=c.elem("g")),n.series.forEach((m,A)=>{var x,y;if(r.series[A]===0&&t.ignoreEmptyValues)return;const R=zn(m,"name")&&m.name,g=zn(m,"className")&&m.className,b=zn(m,"meta")?m.meta:void 0;R&&o[A].attr({"ct:series-name":R}),o[A].addClass([(x=t.classNames)===null||x===void 0?void 0:x.series,g||"".concat((y=t.classNames)===null||y===void 0?void 0:y.series,"-").concat(A5(A))].join(" "));let w=f>0?s+r.series[A]/f*360:0;const T=Math.max(0,s-(A===0||p?0:.2));w-T>=359.99&&(w=T+359.99);const M=Hy(h.x,h.y,u,T),O=Hy(h.x,h.y,u,w),k=new qs(!t.donut).move(O.x,O.y).arc(u,u,0,+(w-s>180),0,M.x,M.y);t.donut||k.line(h.x,h.y);const F=o[A].elem("path",{d:k.stringify()},t.donut?t.classNames.sliceDonut:t.classNames.slicePie);if(F.attr({"ct:value":r.series[A],"ct:meta":cp(b)}),t.donut&&F.attr({style:"stroke-width: "+d.value+"px"}),this.eventEmitter.emit("draw",{type:"slice",value:r.series[A],totalDataSum:f,index:A,meta:b,series:m,group:o[A],element:F,path:k.clone(),center:h,radius:u,startAngle:s,endAngle:w,chartRect:l}),t.showLabel){let N;n.series.length===1?N={x:h.x,y:h.y}:N=Hy(h.x,h.y,a,s+(w-s)/2);let E;r.labels&&!gF(r.labels[A])?E=r.labels[A]:E=r.series[A];const C=t.labelInterpolationFnc(E,A);if(C||C===0){const _=i.elem("text",{dx:N.x,dy:N.y,"text-anchor":sce(h,N,t.labelDirection)},t.classNames.label).text(String(C));this.eventEmitter.emit("draw",{type:"label",index:A,group:i,element:_,text:""+C,chartRect:l,series:m,meta:b,...N})}}s=w}),this.eventEmitter.emit("created",{chartRect:l,svg:c,options:t})}constructor(t,n,r,o){super(t,n,NT,Vu({},NT,r),o),this.data=n}}const cce=Ie({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColor:{},legends:{},options:{},gridColor:{},legend:{}},setup(e){const t=e,n=he(),r=jo(qu)||he(1);let o;const i=Me(()=>t.legend?t.height-20:t.height),a=()=>({...t.data,series:t.data.series[0]}),s=()=>({...t.options||{},width:t.width*r.value,height:i.value*r.value}),c=()=>{if(!n.value)return;const h=s();t.type==="bar"&&(o=new ace(n.value,t.data,h)),t.type==="line"&&(o=new oce(n.value,t.data,h)),t.type==="pie"&&(o=new lce(n.value,a(),h))};Tt([()=>t.width,()=>t.height,()=>t.data,()=>t.options,r],()=>{if(!o){c();return}const h=s(),p=t.type==="pie"?a():t.data;o.update(p,h)}),Gt(c);const u=Me(()=>{let h=[];if(t.themeColor.length>=10)h=t.themeColor;else if(t.themeColor.length===1)h=rt(t.themeColor[0]).analogous(10).map(p=>p.toRgbString());else{const p=t.themeColor.length,m=rt(t.themeColor[p-1]).analogous(11-p).map(A=>A.toRgbString());h=[...t.themeColor.slice(0,p-1),...m]}return h}),f=()=>{if(n.value)for(let h=0;h<10;h++)n.value.style.setProperty(`--theme-color-${h+1}`,u.value[h])};Tt(u,f),Gt(f);const d=()=>{n.value&&t.gridColor&&n.value.style.setProperty("--grid-color",t.gridColor)};return Tt(()=>t.gridColor,d),Gt(d),(h,p)=>(Y(),ee("div",{class:"chart",style:we({flexDirection:h.legend==="top"?"column-reverse":"column"})},[V("div",{class:"chart-content",ref_key:"chartRef",ref:n,style:we({width:h.width+"px",height:i.value+"px",transform:`scale(${1/G(r)})`})},null,4),h.legend?(Y(),ee("div",{key:0,class:"legends",style:we({transform:`scale(${1/G(r)})`})},[(Y(!0),ee(We,null,ot(h.legends,(m,A)=>(Y(),ee("div",{class:"legend",key:A,style:we({color:h.gridColor})},[V("div",{class:"block",style:we({backgroundColor:u.value[A]})},null,4),Ve(" "+gt(m),1)],4))),128))],4)):Ze("",!0)],4))}}),MF=Xe(cce,[["__scopeId","data-v-786c4a79"]]),uce=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{to.emit(Qr.OPEN_CHART_DATA_EDITOR)};return(o,i)=>{const a=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-chart",{lock:o.elementInfo.lock}]),style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",style:we({backgroundColor:o.elementInfo.fill}),onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[L(s2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),L(MF,{width:o.elementInfo.width,height:o.elementInfo.height,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||""},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend"])],36)),[[a,o.contextmenus]])],4)],6)}}}),wF=Xe(uce,[["__scopeId","data-v-e98d2ede"]]),LF=e=>{if(!e)return{};const{bold:t,em:n,underline:r,strikethrough:o,color:i,backcolor:a,fontsize:s,fontname:c,align:l}=e;let u=`${r?"underline":""} ${o?"line-through":""}`;return u===" "&&(u="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:u,color:i||"#000",backgroundColor:a||"",fontSize:s||"14px",fontFamily:c||"微软雅黑",textAlign:l||"left"}},OF=e=>e.replace(/\n/g,"
").replace(/ /g," "),TF=e=>({hideCells:Me(()=>{const n=[];for(let r=0;r1||a.rowspan>1)for(let s=r;s{const t=he(["",""]);return Tt(()=>e.value,()=>{e.value&&(t.value=zP(e.value.color))},{immediate:!0}),{subThemeColor:t}},fce=["innerHTML"],dce=Ie({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,r=t,o=he(),i=he(""),a=he(!1);Tt(()=>n.value,()=>{a.value||(i.value=n.value,o.value&&(o.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!o.value)return;const u=o.value.innerHTML;r("updateValue",u)},c=()=>{a.value=!0,o.value&&(o.value.onpaste=u=>{if(u.preventDefault(),!u.clipboardData)return;const f=u.clipboardData.items[0];f&&f.kind==="string"&&f.type==="text/plain"&&f.getAsString(d=>{if(typeof Ob(d)=="object")return;const p=JP(d);if(p){r("insertExcelData",p),o.value&&(o.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)})})},l=()=>{a.value=!1,o.value&&(o.value.onpaste=null)};return Wd(()=>{o.value&&(o.value.onpaste=null)}),(u,f)=>(Y(),ee("div",{class:"custom-textarea",ref_key:"textareaRef",ref:o,contenteditable:!0,onFocus:f[0]||(f[0]=d=>c()),onBlur:f[1]||(f[1]=d=>l()),onInput:f[2]||(f[2]=d=>s()),innerHTML:i.value},null,40,fce))}}),hce=Xe(dce,[["__scopeId","data-v-cfadb975"]]),pce={key:0,class:"handler"},mce=["onMousedown"],vce=["width"],gce=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],Ace=["innerHTML"],Rce=Ie({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:o}=Ee(ft()),i=he(!1),a=he([]),s=he([]),c=Me({get(){return n.data},set(z){r("change",z)}}),l=Me(()=>n.theme),{subThemeColor:u}=kF(l),f=he([]),d=Me(()=>f.value.reduce((z,oe)=>z+oe));Tt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(z=>z*n.width)},{immediate:!0});const h=()=>{a.value=[],s.value=[]};Tt(()=>n.editable,()=>{n.editable||h()});const p=Me(()=>{const z=[];for(let oe=1;oeAe+me);z.push(pe)}return z}),m=Me(()=>n.data),{hideCells:A}=TF(m),x=Me(()=>{if(!a.value.length)return[];const[z,oe]=a.value;if(!s.value.length)return[`${z}_${oe}`];const[pe,Ae]=s.value;if(z===pe&&oe===Ae)return[`${z}_${oe}`];const me=[],$=Math.min(z,pe),ue=Math.min(oe,Ae),X=Math.max(z,pe),ne=Math.max(oe,Ae);for(let se=0;se=$&&se<=X&&q>=ue&&q<=ne&&me.push(`${se}_${q}`)}return me});Tt(x,(z,oe)=>{Fn.isEqual(z,oe)||r("changeSelectedCells",x.value)});const y=Me(()=>x.value.length>1?null:x.value[0]),R=()=>i.value=!1,g=(z,oe,pe)=>{z.button===0&&(s.value=[],i.value=!0,a.value=[oe,pe])},b=(z,oe)=>{i.value&&(s.value=[z,oe])};Gt(()=>{document.addEventListener("mouseup",R)}),wn(()=>{document.removeEventListener("mouseup",R)});const w=(z,oe)=>A.value.includes(`${z}_${oe}`),T=z=>{const oe=c.value.length-1;a.value=[0,z],s.value=[oe,z]},M=z=>{const oe=c.value[z].length-1;a.value=[z,0],s.value=[z,oe]},O=()=>{const z=c.value.length-1,oe=c.value[z].length-1;a.value=[0,0],s.value=[z,oe]},k=z=>{const oe=JSON.parse(JSON.stringify(c.value)),pe=c.value[z],Ae=[];for(let me=0;me=0;$--)if(!w($,me)){oe[$][me].rowspan=oe[$][me].rowspan-1;break}oe.splice(z,1),c.value=oe},F=z=>{const oe=JSON.parse(JSON.stringify(c.value)),pe=[];for(let Ae=0;Ae=0;me--)if(!w(Ae,me)){oe[Ae][me].colspan=oe[Ae][me].colspan-1;break}c.value=oe.map(Ae=>(Ae.splice(z,1),Ae)),f.value.splice(z,1),r("changeColWidths",f.value)},N=z=>{const oe=JSON.parse(JSON.stringify(c.value)),pe=[];for(let Ae=0;Ae{c.value=c.value.map(oe=>{const pe={colspan:1,rowspan:1,text:"",id:pn(10)};return oe.splice(z,0,pe),oe}),f.value.splice(z,0,100),r("changeColWidths",f.value)},C=(z,oe)=>{let pe=JSON.parse(JSON.stringify(c.value));const Ae={colspan:1,rowspan:1,text:""};if(z){const me=[];for(let $=0;${const $=[];for(let ue=0;ue{const[z,oe]=a.value,[pe,Ae]=s.value,me=Math.min(z,pe),$=Math.min(oe,Ae),ue=Math.max(z,pe),X=Math.max(oe,Ae),ne=JSON.parse(JSON.stringify(c.value));ne[me][$].rowspan=ue-me+1,ne[me][$].colspan=X-$+1,c.value=ne,h()},I=(z,oe)=>{const pe=JSON.parse(JSON.stringify(c.value));pe[z][oe].rowspan=1,pe[z][oe].colspan=1,c.value=pe,h()},W=(z,oe)=>{h();let pe=!0;const Ae=f.value[oe],me=z.pageX,$=50;document.onmousemove=ue=>{if(!pe)return;const X=(ue.pageX-me)/o.value,ne=Ae+X<$?$:Math.round(Ae+X);f.value[oe]=ne},document.onmouseup=()=>{pe=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},Z=()=>{const z=JSON.parse(JSON.stringify(c.value));for(let oe=0;oe{const z=(me,$)=>c.value[me]?c.value[me][$]?w(me,$)?z(me,$+1):[me,$]:z(me+1,0):null;s.value=[];const oe=a.value[0],pe=a.value[1]+1,Ae=z(oe,pe);Ae?a.value=Ae:(N(oe+1),a.value=[oe+1,0]),Wr(()=>{const me=document.querySelector(".cell-text.active");me&&me.focus()})},le=z=>{if(!n.editable||!x.value.length)return;const oe=z.key.toUpperCase();if(x.value.length<2){if(oe===yt.TAB&&(z.preventDefault(),J()),z.ctrlKey&&oe===yt.UP){z.preventDefault();const pe=+x.value[0].split("_")[0];N(pe)}if(z.ctrlKey&&oe===yt.DOWN){z.preventDefault();const pe=+x.value[0].split("_")[0];N(pe+1)}if(z.ctrlKey&&oe===yt.LEFT){z.preventDefault();const pe=+x.value[0].split("_")[1];E(pe)}if(z.ctrlKey&&oe===yt.RIGHT){z.preventDefault();const pe=+x.value[0].split("_")[1];E(pe+1)}}else oe===yt.DELETE&&Z()};Gt(()=>{document.addEventListener("keydown",le)}),wn(()=>{document.removeEventListener("keydown",le)});const D=Fn.debounce(function(z,oe,pe){c.value[oe][pe].text=z,r("change",c.value)},300,{trailing:!0}),Q=(z,oe,pe)=>{const Ae=z.length,me=z[0].length;let $=0,ue=0;oe+Ae>c.value.length&&($=oe+Ae-c.value.length),pe+me>c.value[0].length&&(ue=pe+me-c.value[0].length),($||ue)&&C($,ue),Wr(()=>{for(let X=0;X{const z=[];for(let oe=0;oe{const z=B(),oe=z.length>1,pe=z[0].length>1;return{canDeleteRow:oe,canDeleteCol:pe}},U=(z,oe)=>{const pe=x.value.length>1,Ae=c.value[z][oe],me=pe,$=!pe&&(Ae.rowspan>1||Ae.colspan>1);return{canMerge:me,canSplit:$}},te=z=>{const oe=z.dataset.cellIndex,pe=+oe.split("_")[0],Ae=+oe.split("_")[1];x.value.includes(`${pe}_${Ae}`)||(a.value=[pe,Ae],s.value=[]);const{canMerge:me,canSplit:$}=U(pe,Ae),{canDeleteRow:ue,canDeleteCol:X}=H();return[{text:"插入列",children:[{text:"到左侧",handler:()=>E(Ae)},{text:"到右侧",handler:()=>E(Ae+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>N(pe)},{text:"到下方",handler:()=>N(pe+1)}]},{text:"删除列",disable:!X,handler:()=>F(Ae)},{text:"删除行",disable:!ue,handler:()=>k(pe)},{divider:!0},{text:"合并单元格",disable:!me,handler:_},{text:"取消合并单元格",disable:!$,handler:()=>I(pe,Ae)},{divider:!0},{text:"选中当前列",handler:()=>T(Ae)},{text:"选中当前行",handler:()=>M(pe)},{text:"选中全部单元格",handler:O}]};return(z,oe)=>{var Ae,me,$,ue,X;const pe=Sn("contextmenu");return Y(),ee("div",{class:"editable-table",style:we({width:d.value+"px"})},[z.editable?(Y(),ee("div",pce,[(Y(!0),ee(We,null,ot(p.value,(ne,se)=>(Y(),ee("div",{class:"drag-line",key:se,style:we({left:ne+"px"}),onMousedown:j=>W(j,se)},null,44,mce))),128))])):Ze("",!0),V("table",{class:Je({theme:l.value,"row-header":(Ae=l.value)==null?void 0:Ae.rowHeader,"row-footer":(me=l.value)==null?void 0:me.rowFooter,"col-header":($=l.value)==null?void 0:$.colHeader,"col-footer":(ue=l.value)==null?void 0:ue.colFooter}),style:we(`--themeColor: ${(X=l.value)==null?void 0:X.color}; --subThemeColor1: ${G(u)[0]}; --subThemeColor2: ${G(u)[1]}`)},[V("colgroup",null,[(Y(!0),ee(We,null,ot(f.value,(ne,se)=>(Y(),ee("col",{span:"1",key:se,width:ne},null,8,vce))),128))]),V("tbody",null,[(Y(!0),ee(We,null,ot(c.value,(ne,se)=>(Y(),ee("tr",{key:se,style:we({height:z.cellMinHeight+"px"})},[(Y(!0),ee(We,null,ot(ne,(j,q)=>Ke((Y(),ee("td",{class:Je(["cell",{selected:x.value.includes(`${se}_${q}`)&&x.value.length>1,active:y.value===`${se}_${q}`}]),style:we({borderStyle:z.outline.style,borderColor:z.outline.color,borderWidth:z.outline.width+"px",...G(LF)(j.style)}),key:j.id,rowspan:j.rowspan,colspan:j.colspan,"data-cell-index":`${se}_${q}`,onMousedown:ae=>g(ae,se,q),onMouseenter:ae=>b(se,q)},[y.value===`${se}_${q}`?(Y(),Te(hce,{key:0,class:Je(["cell-text",{active:y.value===`${se}_${q}`}]),style:we({minHeight:z.cellMinHeight-4+"px"}),value:j.text,onUpdateValue:ae=>G(D)(ae,se,q),onInsertExcelData:ae=>Q(ae,se,q)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(Y(),ee("div",{key:1,class:"cell-text",style:we({minHeight:z.cellMinHeight-4+"px"}),innerHTML:G(OF)(j.text)},null,12,Ace))],46,gce)),[[il,!G(A).includes(`${se}_${q}`)],[pe,ae=>te(ae)]])),128))],4))),128))])],6)],4)}}}),yce=Xe(Rce,[["__scopeId","data-v-d040a5e0"]]),xce={class:"element-content"},bce=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=lt(),{canvasScale:o,handleElementId:i,isScaling:a}=Ee(n),s=he(),{addHistorySnapshot:c}=Jt(),l=y=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo))},u=he(!1);Tt(i,()=>{i.value!==t.elementInfo.id&&(u.value=!1)}),Tt(u,()=>{n.setDisableHotkeysState(u.value)});const f=()=>{t.elementInfo.lock||(u.value=!0)},d=he(-1);Tt(a,()=>{i.value===t.elementInfo.id&&(a.value&&(u.value=!1),!a.value&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1))});const h=y=>{const R=y[0].contentRect;if(!s.value)return;const g=R.height;t.elementInfo.height!==g&&(a.value?d.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),wn(()=>{s.value&&p.unobserve(s.value)});const m=y=>{r.updateElement({id:t.elementInfo.id,props:{data:y}}),c()},A=y=>{const R=y.reduce((b,w)=>b+w),g=y.map(b=>b/R);r.updateElement({id:t.elementInfo.id,props:{width:R,colWidths:g}}),c()},x=y=>{Wr(()=>n.setSelectedTableCells(y))};return(y,R)=>{const g=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-table",{lock:y.elementInfo.lock}]),ref_key:"elementRef",ref:s,style:we({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${y.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",xce,[L(yce,{onMousedown:R[0]||(R[0]=Wt(()=>{},["stop"])),data:y.elementInfo.data,width:y.elementInfo.width,cellMinHeight:y.elementInfo.cellMinHeight,colWidths:y.elementInfo.colWidths,outline:y.elementInfo.outline,theme:y.elementInfo.theme,editable:u.value,onChange:R[1]||(R[1]=b=>m(b)),onChangeColWidths:R[2]||(R[2]=b=>A(b)),onChangeSelectedCells:R[3]||(R[3]=b=>x(b))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!u.value||y.elementInfo.lock?(Y(),ee("div",{key:0,class:Je(["table-mask",{lock:y.elementInfo.lock}]),onDblclick:R[4]||(R[4]=b=>f()),onMousedown:R[5]||(R[5]=b=>l(b)),onTouchstart:R[6]||(R[6]=b=>l(b))},[G(i)===y.elementInfo.id?(Y(),ee("div",{key:0,class:"mask-tip",style:we({transform:`scale(${1/G(o)})`})},"双击编辑",4)):Ze("",!0)],34)):Ze("",!0)])),[[g,y.contextmenus]])],4)],6)}}}),NF=Xe(bce,[["__scopeId","data-v-7795910a"]]),Sce=["width","height","stroke","stroke-width"],Mce=["transform"],wce=["d"],Lce=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{to.emit(Qr.OPEN_LATEX_EDITOR)};return(o,i)=>{const a=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-latex",{lock:o.elementInfo.lock}]),style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[(Y(),ee("svg",{overflow:"visible",width:o.elementInfo.width,height:o.elementInfo.height,stroke:o.elementInfo.color,"stroke-width":o.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${o.elementInfo.width/o.elementInfo.viewBox[0]}, ${o.elementInfo.height/o.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:o.elementInfo.path},null,8,wce)],8,Mce)],8,Sce))],32)),[[a,o.contextmenus]])],4)],6)}}}),PF=Xe(Lce,[["__scopeId","data-v-b73586f6"]]),Oce=(e,t)=>{Gt(()=>{if(!t.value)return;let n="normal";if(/m3u8(#|\?|$)/i.exec(e)?n="hls":/.flv(#|\?|$)/i.exec(e)&&(n="flv"),t.value&&n==="hls"&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),n==="hls"){const r=window.Hls;if(r&&r.isSupported()){const o=new r;o.loadSource(e),o.attachMedia(t.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const o=r.createPlayer({type:"flv",url:e});o.attachMediaElement(t.value),o.load()}}})},M5=e=>(rn("data-v-597c0901"),e=e(),on(),e),Tce={key:0,class:"load-error"},kce=["src","autoplay","poster"],Nce={class:"bezel"},Pce=M5(()=>V("div",{class:"controller-mask"},null,-1)),Cce={class:"controller"},Ice={class:"icons icons-left"},Fce={class:"icon-content"},_ce={class:"volume"},Ece={class:"icon-content"},Xce=M5(()=>V("span",{class:"thumb"},null,-1)),Wce=[Xce],Vce={class:"time"},Uce={class:"ptime"},Yce={class:"dtime"},Qce={class:"icons icons-right"},Zce={class:"speed"},Bce={class:"icon speed-icon"},Dce=["onClick"],Kce={class:"icon-content"},Hce={class:"bar"},Gce=M5(()=>V("span",{class:"thumb"},null,-1)),Jce=[Gce],zce=Ie({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,n=(X=0)=>{if(X===0||isNaN(X))return"00:00";const ne=ae=>ae<10?"0"+ae:""+ae,se=Math.floor(X/3600),j=Math.floor((X-se*3600)/60),q=Math.floor(X-se*3600-j*60);return(se>0?[se,j,q]:[j,q]).map(ne).join(":")},r=X=>X.getBoundingClientRect().left,o=he(),i=he(),a=he(),s=he(.5),c=he(!0),l=he(0),u=he(0),f=he(0),d=he(!1),h=he(!1),p=he(1),m=he(!1),A=he("00:00"),x=he("0"),y=Me(()=>n(l.value)),R=Me(()=>n(u.value)),g=Me(()=>l.value/u.value*100+"%"),b=Me(()=>f.value/u.value*100+"%"),w=Me(()=>s.value*100+"%"),T=he(!1),M=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],O=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,u.value),o.value.currentTime=X,l.value=X)},k=()=>{o.value&&(c.value=!1,o.value.play(),h.value=!0)},F=()=>{o.value&&(c.value=!0,o.value.pause(),h.value=!0)},N=()=>{c.value?k():F()},E=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,1),o.value.volume=X,s.value=X,o.value.muted&&X!==0&&(o.value.muted=!1))},C=X=>{o.value&&(o.value.playbackRate=X),p.value=X},_=()=>{var X;u.value=((X=o.value)==null?void 0:X.duration)||0},I=()=>{var X;l.value=((X=o.value)==null?void 0:X.currentTime)||0},W=()=>{d.value?(O(0),k()):F()},Z=()=>{var X;f.value=(X=o.value)!=null&&X.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},J=he(!1),le=()=>J.value=!0,D=X=>{if(!o.value||!i.value)return;let se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const j=se*u.value;o.value.currentTime=j,l.value=j},Q=X=>{if(!o.value||!i.value)return;let se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const j=se*u.value;o.value.currentTime=j,l.value=j,document.removeEventListener("mousemove",D),document.removeEventListener("touchmove",D),document.removeEventListener("mouseup",Q),document.removeEventListener("touchend",Q)},B=()=>{document.addEventListener("mousemove",D),document.addEventListener("touchmove",D),document.addEventListener("mouseup",Q),document.addEventListener("touchend",Q)},H=X=>{if(!a.value)return;const se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(a.value))/45;E(se)},U=()=>{document.removeEventListener("mousemove",H),document.removeEventListener("touchmove",H),document.removeEventListener("mouseup",U),document.removeEventListener("touchend",U)},te=()=>{document.addEventListener("mousemove",H),document.addEventListener("touchmove",H),document.addEventListener("mouseup",U),document.addEventListener("touchend",U)},z=X=>{if(!a.value)return;const ne=(X.clientX-r(a.value))/45;E(ne)},oe=X=>{if(u.value&&i.value){const ne=i.value.getBoundingClientRect().left,se=X.clientX-ne;if(se<0||se>i.value.offsetWidth)return;const j=u.value*(se/i.value.offsetWidth);x.value=`${se-(j>=3600?25:20)}px`,A.value=n(j),m.value=!0}},pe=()=>{o.value&&(o.value.muted?(o.value.muted=!1,E(.5)):(o.value.muted=!0,E(0)))},Ae=()=>{d.value=!d.value},me=he(-1),$=he(!1),ue=()=>{$.value=!1,clearTimeout(me.value),me.value=setTimeout(()=>{var X;(X=o.value)!=null&&X.played.length&&($.value=!0)},3e3)};return Oce(t.src,o),(X,ne)=>{const se=be("IconPause"),j=be("IconPlayOne"),q=be("IconVolumeMute"),ae=be("IconVolumeNotice"),ge=be("IconVolumeSmall");return Y(),ee("div",{class:Je(["video-player",{"hide-controller":$.value}]),style:we({width:X.width*X.scale+"px",height:X.height*X.scale+"px",transform:`scale(${1/X.scale})`}),onMousemove:ne[22]||(ne[22]=ce=>ue()),onClick:ne[23]||(ne[23]=ce=>ue())},[V("div",{class:"video-wrap",onClick:ne[8]||(ne[8]=ce=>N())},[J.value?(Y(),ee("div",Tce,"视频加载失败")):Ze("",!0),V("video",{class:"video",ref_key:"videoRef",ref:o,src:X.src,autoplay:X.autoplay,poster:X.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:ne[0]||(ne[0]=ce=>_()),onTimeupdate:ne[1]||(ne[1]=ce=>I()),onEnded:ne[2]||(ne[2]=ce=>W()),onProgress:ne[3]||(ne[3]=ce=>Z()),onPlay:ne[4]||(ne[4]=ce=>{ue(),c.value=!1}),onPause:ne[5]||(ne[5]=ce=>ue()),onError:ne[6]||(ne[6]=ce=>le())},null,40,kce),V("div",Nce,[V("span",{class:Je(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:ne[7]||(ne[7]=ce=>h.value=!1)},[c.value?(Y(),Te(se,{key:0})):(Y(),Te(j,{key:1}))],34)])]),Pce,V("div",Cce,[V("div",Ice,[V("div",{class:"icon play-icon",onClick:ne[9]||(ne[9]=ce=>N())},[V("span",Fce,[c.value?(Y(),Te(j,{key:0})):(Y(),Te(se,{key:1}))])]),V("div",_ce,[V("div",{class:"icon volume-icon",onClick:ne[10]||(ne[10]=ce=>pe())},[V("span",Ece,[s.value===0?(Y(),Te(q,{key:0})):s.value===1?(Y(),Te(ae,{key:1})):(Y(),Te(ge,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:ne[11]||(ne[11]=ce=>te()),onTouchstart:ne[12]||(ne[12]=ce=>te()),onClick:ne[13]||(ne[13]=ce=>z(ce))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:a},[V("div",{class:"volume-bar-inner",style:we({width:w.value})},Wce,4)],512)],32)]),V("span",Vce,[V("span",Uce,gt(y.value),1),Ve(" / "),V("span",Yce,gt(R.value),1)])]),V("div",Qce,[V("div",Zce,[V("div",Bce,[V("span",{class:"icon-content",onClick:ne[14]||(ne[14]=ce=>T.value=!T.value)},gt(p.value===1?"倍速":p.value+"x"),1),T.value?(Y(),ee("div",{key:0,class:"speed-menu",onMouseleave:ne[15]||(ne[15]=ce=>T.value=!1)},[(Y(),ee(We,null,ot(M,ce=>V("div",{class:Je(["speed-menu-item",{active:ce.value===p.value}]),key:ce.label,onClick:ve=>C(ce.value)},gt(ce.label),11,Dce)),64))],32)):Ze("",!0)])]),V("div",{class:"loop",onClick:ne[16]||(ne[16]=ce=>Ae())},[V("div",{class:Je(["icon loop-icon",{active:d.value}])},[V("span",Kce,"循环"+gt(d.value?"开":"关"),1)],2)])]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:i,onMousedown:ne[17]||(ne[17]=ce=>B()),onTouchstart:ne[18]||(ne[18]=ce=>B()),onMousemove:ne[19]||(ne[19]=ce=>oe(ce)),onMouseenter:ne[20]||(ne[20]=ce=>m.value=!0),onMouseleave:ne[21]||(ne[21]=ce=>m.value=!1)},[V("div",{class:Je(["bar-time",{hidden:!m.value}]),style:we({left:x.value})},gt(A.value),7),V("div",Hce,[V("div",{class:"loaded",style:we({width:b.value})},null,4),V("div",{class:"played",style:we({width:g.value})},Jce,4)])],544)])],38)}}}),CF=Xe(zce,[["__scopeId","data-v-597c0901"]]),$ce=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=(o,i=!0)=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo,i))};return(o,i)=>{const a=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-video",{lock:o.elementInfo.lock}]),style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",onMousedown:i[2]||(i[2]=s=>r(s,!1)),onTouchstart:i[3]||(i[3]=s=>r(s,!1))},[L(CF,{width:o.elementInfo.width,height:o.elementInfo.height,src:o.elementInfo.src,poster:o.elementInfo.poster,scale:G(n)},null,8,["width","height","src","poster","scale"]),(Y(),ee(We,null,ot(["t","b","l","r"],s=>V("div",{class:Je(["handler-border",s]),key:s,onMousedown:i[0]||(i[0]=c=>r(c)),onTouchstart:i[1]||(i[1]=c=>r(c))},null,34)),64))],32)),[[a,o.contextmenus]])],4)],6)}}}),IF=Xe($ce,[["__scopeId","data-v-c50d3bc7"]]),FF=e=>(rn("data-v-32038f5c"),e=e(),on(),e),jce=["src","autoplay"],qce={class:"controller"},eue={class:"icons"},tue={class:"icon-content"},nue={class:"volume"},rue={class:"icon-content"},oue=FF(()=>V("span",{class:"thumb"},null,-1)),iue=[oue],aue={class:"time"},sue={class:"ptime"},lue={class:"dtime"},cue={class:"bar"},uue=FF(()=>V("span",{class:"thumb"},null,-1)),fue=[uue],due=Ie({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const n=e,r=(U=0)=>{if(U===0||isNaN(U))return"00:00";const te=Ae=>Ae<10?"0"+Ae:""+Ae,z=Math.floor(U/3600),oe=Math.floor((U-z*3600)/60),pe=Math.floor(U-z*3600-oe*60);return(z>0?[z,oe,pe]:[oe,pe]).map(te).join(":")},o=U=>U.getBoundingClientRect().left,i=he(),a=he(),s=he(),c=he(.5),l=he(!0),u=he(0),f=he(0),d=he(0),h=he(!1),p=he("00:00"),m=he("0"),A=Me(()=>r(u.value)),x=Me(()=>r(f.value)),y=Me(()=>u.value/f.value*100+"%"),R=Me(()=>d.value/f.value*100+"%"),g=Me(()=>c.value*100+"%"),b=U=>{i.value&&(U=Math.max(U,0),U=Math.min(U,f.value),i.value.currentTime=U,u.value=U)},w=()=>{i.value&&(l.value=!1,i.value.play())},T=()=>{i.value&&(l.value=!0,i.value.pause())},M=()=>{l.value?w():T()},O=U=>{i.value&&(U=Math.max(U,0),U=Math.min(U,1),i.value.volume=U,c.value=U,i.value.muted&&U!==0&&(i.value.muted=!1))},k=()=>{var U;f.value=((U=i.value)==null?void 0:U.duration)||0},F=()=>{var U;u.value=((U=i.value)==null?void 0:U.currentTime)||0},N=()=>{l.value=!1},E=()=>{n.loop?(b(0),w()):T()},C=()=>{var U;d.value=(U=i.value)!=null&&U.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},_=()=>bn.error("视频加载失败"),I=U=>{if(!i.value||!a.value)return;let z=(("clientX"in U?U.clientX:U.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;z=Math.max(z,0),z=Math.min(z,1);const oe=z*f.value;i.value.currentTime=oe,u.value=oe},W=U=>{if(!i.value||!a.value)return;let z=(("clientX"in U?U.clientX:U.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;z=Math.max(z,0),z=Math.min(z,1);const oe=z*f.value;i.value.currentTime=oe,u.value=oe,document.removeEventListener("mousemove",I),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",W),document.removeEventListener("touchend",W)},Z=()=>{document.addEventListener("mousemove",I),document.addEventListener("touchmove",I),document.addEventListener("mouseup",W),document.addEventListener("touchend",W)},J=U=>{if(!s.value)return;const z=(("clientX"in U?U.clientX:U.changedTouches[0].clientX)-o(s.value))/45;O(z)},le=()=>{document.removeEventListener("mousemove",J),document.removeEventListener("touchmove",J),document.removeEventListener("mouseup",le),document.removeEventListener("touchend",le)},D=()=>{document.addEventListener("mousemove",J),document.addEventListener("touchmove",J),document.addEventListener("mouseup",le),document.addEventListener("touchend",le)},Q=U=>{if(!s.value)return;const te=(U.clientX-o(s.value))/45;O(te)},B=U=>{if(f.value&&a.value){const te=a.value.getBoundingClientRect().left,z=U.clientX-te;if(z<0||z>a.value.offsetWidth)return;const oe=f.value*(z/a.value.offsetWidth);m.value=`${z-(oe>=3600?25:20)}px`,p.value=r(oe),h.value=!0}},H=()=>{i.value&&(i.value.muted?(i.value.muted=!1,O(.5)):(i.value.muted=!0,O(0)))};return t({toggle:M}),(U,te)=>{const z=be("IconPlayOne"),oe=be("IconPause"),pe=be("IconVolumeMute"),Ae=be("IconVolumeNotice"),me=be("IconVolumeSmall");return Y(),ee("div",{class:"audio-player",style:we({transform:`scale(${1/U.scale})`})},[V("audio",{class:"audio",ref_key:"audioRef",ref:i,src:U.src,autoplay:U.autoplay,onDurationchange:te[0]||(te[0]=$=>k()),onTimeupdate:te[1]||(te[1]=$=>F()),onPlay:te[2]||(te[2]=$=>N()),onEnded:te[3]||(te[3]=$=>E()),onProgress:te[4]||(te[4]=$=>C()),onError:te[5]||(te[5]=$=>_())},null,40,jce),V("div",qce,[V("div",eue,[V("div",{class:"icon play-icon",onClick:te[6]||(te[6]=$=>M())},[V("span",tue,[l.value?(Y(),Te(z,{key:0})):(Y(),Te(oe,{key:1}))])]),V("div",nue,[V("div",{class:"icon volume-icon",onClick:te[7]||(te[7]=$=>H())},[V("span",rue,[c.value===0?(Y(),Te(pe,{key:0})):c.value===1?(Y(),Te(Ae,{key:1})):(Y(),Te(me,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:te[8]||(te[8]=$=>D()),onTouchstart:te[9]||(te[9]=$=>D()),onClick:te[10]||(te[10]=$=>Q($))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[V("div",{class:"volume-bar-inner",style:we({width:g.value})},iue,4)],512)],32)])]),V("span",aue,[V("span",sue,gt(A.value),1),Ve(" / "),V("span",lue,gt(x.value),1)]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:te[11]||(te[11]=$=>Z()),onTouchstart:te[12]||(te[12]=$=>Z()),onMousemove:te[13]||(te[13]=$=>B($)),onMouseenter:te[14]||(te[14]=$=>h.value=!0),onMouseleave:te[15]||(te[15]=$=>h.value=!1)},[V("div",{class:Je(["bar-time",{hidden:!h.value}]),style:we({left:m.value})},gt(p.value),7),V("div",cue,[V("div",{class:"loaded",style:we({width:R.value})},null,4),V("div",{class:"played",style:we({width:y.value})},fue,4)])],544)])],4)}}}),_F=Xe(due,[["__scopeId","data-v-32038f5c"]]),hue=Ie({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:r}=Ee(ft()),{viewportRatio:o}=Ee(lt()),i=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),a=Me(()=>{const c=Ht,l=Ht*o.value,u=280/n.value,f=50/n.value,d=t.elementInfo.width,h=t.elementInfo.height,p=t.elementInfo.left,m=t.elementInfo.top;let A=0,x=h;return p+u>=c&&(A=d-u),m+h+f>=l&&(x=-f),{left:A+"px",top:x+"px"}}),s=c=>{t.elementInfo.lock||(c.stopPropagation(),t.selectElement(c,t.elementInfo))};return(c,l)=>{const u=be("IconVolumeNotice"),f=Sn("contextmenu");return Y(),ee("div",{class:Je(["editable-element-audio",{lock:c.elementInfo.lock}]),style:we({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px",width:c.elementInfo.width+"px",height:c.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${c.elementInfo.rotate}deg)`})},[Ke((Y(),ee("div",{class:"element-content",onMousedown:l[1]||(l[1]=d=>s(d)),onTouchstart:l[2]||(l[2]=d=>s(d))},[L(u,{class:"audio-icon",style:we({fontSize:i.value,color:c.elementInfo.color})},null,8,["style"]),G(r)===c.elementInfo.id?(Y(),Te(_F,{key:0,class:"audio-player",style:we({...a.value}),src:c.elementInfo.src,loop:c.elementInfo.loop,scale:G(n),onMousedown:l[0]||(l[0]=Wt(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Ze("",!0)],32)),[[f,c.contextmenus]])],4)],6)}}}),EF=Xe(hue,[["__scopeId","data-v-5d8373ba"]]),pue=["id"],mue=Ie({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=Me(()=>({[kt.IMAGE]:yI,[kt.TEXT]:hF,[kt.SHAPE]:mF,[kt.LINE]:vF,[kt.CHART]:wF,[kt.TABLE]:NF,[kt.LATEX]:PF,[kt.VIDEO]:IF,[kt.AUDIO]:EF})[t.elementInfo.type]||null),{orderElement:r}=Tp(),{alignElementToCanvas:o}=i2(),{combineElements:i,uncombineElements:a}=Cb(),{deleteElement:s}=Op(),{lockElement:c,unlockElement:l}=$P(),{copyElement:u,pasteElement:f,cutElement:d}=Ib(),{selectAllElements:h}=Kg(),p=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>l(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:u},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>o(nn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"水平居中",handler:()=>o(nn.HORIZONTAL)},{text:"左对齐",handler:()=>o(nn.LEFT)},{text:"右对齐",handler:()=>o(nn.RIGHT)}]},{text:"垂直居中",handler:()=>o(nn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"垂直居中",handler:()=>o(nn.VERTICAL)},{text:"顶部对齐",handler:()=>o(nn.TOP)},{text:"底部对齐",handler:()=>o(nn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,hr.TOP),children:[{text:"置于顶层",handler:()=>r(t.elementInfo,hr.TOP)},{text:"上移一层",handler:()=>r(t.elementInfo,hr.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,hr.BOTTOM),children:[{text:"置于底层",handler:()=>r(t.elementInfo,hr.BOTTOM)},{text:"下移一层",handler:()=>r(t.elementInfo,hr.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:i,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:c},{text:"删除",subText:"Delete",handler:s}];return(m,A)=>(Y(),ee("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${m.elementInfo.id}`,style:we({zIndex:m.elementIndex})},[(Y(),Te(xs(n.value),{elementInfo:m.elementInfo,selectElement:m.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,pue))}}),vue=Ie({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:Je(`mouse-selection quadrant-${t.quadrant}`),style:we({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),gue=Xe(vue,[["__scopeId","data-v-053bfa3e"]]),Aue={class:"grid-lines"},Rue=["d","stroke"],yue=Ie({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=Ee(ft()),{currentSlide:r,viewportRatio:o}=Ee(lt()),i=Me(()=>{var c;return(c=r.value)==null?void 0:c.background}),a=Me(()=>{var u;const c=((u=i.value)==null?void 0:u.color)||"#fff",l=["#000","#fff"];return rt.mostReadable(c,l,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),s=Me(()=>{const c=Ht,l=Ht*o.value;let u="";for(let f=0;f<=Math.floor(l/n.value);f++)u+=`M0 ${f*n.value} L${c} ${f*n.value} `;for(let f=0;f<=Math.floor(c/n.value);f++)u+=`M${f*n.value} 0 L${f*n.value} ${l} `;return u});return(c,l)=>(Y(),ee("svg",Aue,[V("path",{style:we({transform:`scale(${G(t)})`}),d:s.value,fill:"none",stroke:a.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,Rue)]))}}),xue=Xe(yue,[["__scopeId","data-v-d6e1ea18"]]),f2=e=>({backgroundStyle:Me(()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:o,imageSize:i,gradientColor:a,gradientRotate:s,gradientType:c}=e.value;if(n==="solid")return{backgroundColor:r};if(n==="image")return o?i==="repeat"?{backgroundImage:`url(${o}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${o}`,backgroundRepeat:"no-repeat",backgroundSize:i||"cover"}:{backgroundColor:"#fff"};if(n==="gradient"){const l=s||0,u=a?a[0]:"#fff",f=a?a[1]:"#fff";return c==="radial"?{backgroundImage:`radial-gradient(${u}, ${f}`}:{backgroundImage:`linear-gradient(${l}deg, ${u}, ${f}`}}return{backgroundColor:"#fff"}})}),bue=Ie({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=Ee(ft()),{currentSlide:n}=Ee(lt()),r=Me(()=>{var i;return(i=n.value)==null?void 0:i.background}),{backgroundStyle:o}=f2(r);return(i,a)=>(Y(),ee("div",{class:"viewport-background",style:we(G(o))},[G(t)?(Y(),Te(xue,{key:0})):Ze("",!0)],4))}}),Sue=Xe(bue,[["__scopeId","data-v-203ea8ff"]]),Mue=Ie({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=Me(()=>t.axis.x*t.canvasScale+"px"),r=Me(()=>t.axis.y*t.canvasScale+"px"),o=Me(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(i,a)=>(Y(),ee("div",{class:"alignment-line",style:we({left:n.value,top:r.value})},[V("div",{class:Je(["line",i.type]),style:we(o.value)},null,6)],4))}}),XF=Xe(Mue,[["__scopeId","data-v-7cd3d25d"]]),wue={class:"ruler"},Lue=Ie({__name:"Ruler",props:{viewportStyles:{}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.viewportStyles.width*n.value/10);return(o,i)=>(Y(),ee("div",wue,[V("div",{class:"h",style:we({width:o.viewportStyles.width*G(n)+"px",left:o.viewportStyles.left+"px"})},[(Y(),ee(We,null,ot(20,a=>V("div",{class:Je(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:`marker-100-${a}`},[V("span",null,gt(a),1)],2)),64))],4),V("div",{class:"v",style:we({height:o.viewportStyles.height*G(n)+"px",top:o.viewportStyles.top+"px"})},[(Y(),ee(We,null,ot(20,a=>V("div",{class:Je(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:a,style:we({height:r.value+"px"})},[V("span",null,gt(a),1)],6)),64))],4)]))}}),Oue=Xe(Lue,[["__scopeId","data-v-b01be305"]]),Tue=["width","height"],kue=["d"],Nue=Ie({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,r=ft(),{creatingElement:o}=Ee(r),{ctrlOrShiftKeyActive:i}=Ee(Ss()),a=he(),s=he(),c=he(),l=he({x:0,y:0});Gt(()=>{if(!c.value)return;const{x:h,y:p}=c.value.getBoundingClientRect();l.value={x:h,y:p}});const u=h=>{let p=!0;const m=h.pageX,A=h.pageY;a.value=[m,A],document.onmousemove=x=>{if(!o.value||!p)return;let y=x.pageX,R=x.pageY;if(i.value){const g=y-m,b=R-A,w=Math.abs(g),T=Math.abs(b);if(o.value.type==="shape"){const M=b>0&&g<0||b<0&&g>0;w>T?R=M?A-g:A+g:y=M?m-b:m+b}else o.value.type==="line"&&(w>T?R=A:y=m)}s.value=[y,R]},document.onmouseup=x=>{var b,w;if(document.onmousemove=null,document.onmouseup=null,x.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const y=x.pageX,R=x.pageY,g=30;if(((b=o.value)==null?void 0:b.type)==="line"&&(Math.abs(y-m)>=g||Math.abs(R-A)>=g))n("created",{start:a.value,end:s.value});else if(((w=o.value)==null?void 0:w.type)!=="line"&&Math.abs(y-m)>=g&&Math.abs(R-A)>=g)n("created",{start:a.value,end:s.value});else{const M=Math.min(y,m),O=Math.min(R,A),k=Math.max(y,m),F=Math.max(R,A),N=k-M>=g?k-M:200,E=F-O>=g?F-O:200;n("created",{start:[M,O],end:[M+N,O+E]})}}},f=Me(()=>{if(!a.value||!s.value||!o.value||o.value.type!=="line")return null;const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),y=Math.max(h,m),R=Math.min(p,A),g=Math.max(p,A),b=y-x>=24?y-x:24,w=g-R>=24?g-R:24,T=h===x?0:y-x,M=p===R?0:g-R,O=m===x?0:y-x,k=A===R?0:g-R,F=`M${T}, ${M} L${O}, ${k}`;return{svgWidth:b,svgHeight:w,startX:T,startY:M,endX:O,endY:k,path:F}}),d=Me(()=>{if(!a.value||!s.value)return{};const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),y=Math.max(h,m),R=Math.min(p,A),g=Math.max(p,A),b=y-x,w=g-R;return{left:x-l.value.x+"px",top:R-l.value.y+"px",width:b+"px",height:w+"px"}});return(h,p)=>{var m,A;return Y(),ee("div",{class:"element-create-selection",ref_key:"selectionRef",ref:c,onMousedown:p[0]||(p[0]=Wt(x=>u(x),["stop"])),onContextmenu:p[1]||(p[1]=Wt(()=>{},["stop","prevent"]))},[a.value&&s.value?(Y(),ee("div",{key:0,class:Je(["selection",(m=G(o))==null?void 0:m.type]),style:we(d.value)},[((A=G(o))==null?void 0:A.type)==="line"&&f.value?(Y(),ee("svg",{key:0,overflow:"visible",width:f.value.svgWidth,height:f.value.svgHeight},[V("path",{d:f.value.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,kue)],8,Tue)):Ze("",!0)],6)):Ze("",!0)],544)}}}),Pue=Xe(Nue,[["__scopeId","data-v-7b17a883"]]),Cue={overflow:"visible"},Iue=["d","fill"],Fue=Ie({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,r=ft(),{ctrlOrShiftKeyActive:o}=Ee(Ss()),{theme:i}=Ee(lt()),a=he(),s=he(!1),c=he({x:0,y:0});Gt(()=>{if(!a.value)return;const{x:g,y:b}=a.value.getBoundingClientRect();c.value={x:g,y:b}});const l=he(null),u=he([]),f=he(!1),d=(g,b=!1)=>{let w=g.pageX-c.value.x,T=g.pageY-c.value.y;if(b)return{pageX:w,pageY:T};if(o.value&&u.value.length){const[M,O]=u.value[u.value.length-1];Math.abs(M-w)-Math.abs(O-T)>0?T=O:w=M}return{pageX:w,pageY:T}},h=g=>{if(s.value){const{pageX:T,pageY:M}=d(g,!0);u.value.push([T,M]),l.value=null;return}const{pageX:b,pageY:w}=d(g);if(l.value=[b,w],u.value.length>=2){const[T,M]=u.value[0];Math.abs(T-b)<5&&Math.abs(M-w)<5?f.value=!0:f.value=!1}else f.value=!1},p=Me(()=>{let g="";for(let b=0;b{const b=u.value.map(I=>I[0]),w=u.value.map(I=>I[1]),T=Math.min(...b),M=Math.min(...w),O=Math.max(...b),k=Math.max(...w),F=u.value.map(I=>[I[0]-T,I[1]-M]);let N="";for(let I=0;I{const{pageX:b,pageY:w}=d(g);s.value=!0,f.value?n("created",m()):u.value.push([b,w]),document.onmouseup=()=>{s.value=!1}},x=()=>{r.setCreatingCustomShapeState(!1)},y=()=>{n("created",{...m(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:i.value.themeColor,style:"solid"}}),x()},R=g=>{const b=g.key.toUpperCase();b===yt.ESC&&x(),b===yt.ENTER&&y()};return Gt(()=>{bn.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",R)}),wn(()=>{document.removeEventListener("keydown",R),bn.closeAll()}),(g,b)=>(Y(),ee("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:b[0]||(b[0]=Wt(w=>A(w),["stop"])),onMousemove:b[1]||(b[1]=w=>h(w)),onContextmenu:b[2]||(b[2]=Wt(w=>x(),["stop","prevent"]))},[(Y(),ee("svg",Cue,[V("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,Iue)]))],544))}}),_ue=Xe(Fue,[["__scopeId","data-v-8ea8c340"]]),ef=(e,t)=>{const n=Me(()=>[{direction:mt.LEFT_TOP,style:{}},{direction:mt.TOP,style:{left:e.value/2+"px"}},{direction:mt.RIGHT_TOP,style:{left:e.value+"px"}},{direction:mt.LEFT,style:{top:t.value/2+"px"}},{direction:mt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:mt.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:mt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:mt.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),r=Me(()=>[{direction:mt.LEFT,style:{top:t.value/2+"px"}},{direction:mt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),o=Me(()=>[{direction:mt.TOP,style:{left:e.value/2+"px"}},{direction:mt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),i=Me(()=>[{type:X0.T,style:{width:e.value+"px"}},{type:X0.B,style:{top:t.value+"px",width:e.value+"px"}},{type:X0.L,style:{height:t.value+"px"}},{type:X0.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:o,borderLines:i}},Eue=Ie({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=Me(()=>{const r="rotate-",o=t.rotate;return o>-22.5&&o<=22.5?r+0:o>22.5&&o<=67.5?r+45:o>67.5&&o<=112.5?r+90:o>112.5&&o<=157.5?r+135:o>157.5||o<=-157.5?r+0:o>-157.5&&o<=-112.5?r+45:o>-112.5&&o<=-67.5?r+90:o>-67.5&&o<=-22.5?r+135:r+0});return(r,o)=>(Y(),ee("div",{class:Je(["resize-handler",n.value,r.type])},null,2))}}),Oc=Xe(Eue,[["__scopeId","data-v-bb3f9e62"]]),Xue=Ie({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(Y(),ee("div",{class:Je(["border-line",t.type,{wide:t.isWide}])},null,2))}}),tf=Xe(Xue,[["__scopeId","data-v-7114fb45"]]),Wue=Ie({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:r}=Ee(ft()),o=Me(()=>t.elementList.filter(d=>n.value.includes(d.id))),i=he({minX:0,maxX:0,minY:0,maxY:0}),a=Me(()=>(i.value.maxX-i.value.minX)*r.value),s=Me(()=>(i.value.maxY-i.value.minY)*r.value),{resizeHandlers:c,borderLines:l}=ef(a,s);Lg(()=>{const{minX:d,maxX:h,minY:p,maxY:m}=ec(o.value);i.value={minX:d,maxX:h,minY:p,maxY:m}});const f=Me(()=>o.value.some(d=>!((d.type==="image"||d.type==="shape")&&!d.rotate)));return(d,h)=>(Y(),ee("div",{class:"multi-select-operate",style:we({left:i.value.minX*G(r)+"px",top:i.value.minY*G(r)+"px"})},[(Y(!0),ee(We,null,ot(G(l),p=>(Y(),Te(tf,{key:p.type,type:p.type,style:we(p.style)},null,8,["type","style"]))),128)),f.value?Ze("",!0):(Y(!0),ee(We,{key:0},ot(G(c),p=>(Y(),Te(Oc,{key:p.direction,type:p.direction,style:we(p.style),onMousedown:Wt(m=>d.scaleMultiElement(m,i.value,p.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),Vue=Xe(Wue,[["__scopeId","data-v-135c8cb7"]]),Uue={},Yue={class:"rotate-handler"};function Que(e,t){return Y(),ee("div",Yue)}const Gd=Xe(Uue,[["render",Que],["__scopeId","data-v-9f21fc0f"]]),Zue={inheritAttrs:!1},Bue=Ie({...Zue,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:r}=Ee(ft()),o=Me(()=>r.value===t.elementInfo.id),i=Me(()=>t.elementInfo.width*n.value),a=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:c}=ef(i,a);return(l,u)=>(Y(),ee("div",{class:Je(["image-element-operate",{cliping:o.value}])},[(Y(!0),ee(We,null,ot(G(c),f=>(Y(),Te(tf,{class:"operate-border-line",key:f.type,type:f.type,style:we(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(G(s),f=>(Y(),Te(Oc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:we(f.style),onMousedown:Wt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Gd,{class:"operate-rotate-handler",style:we({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=Wt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ze("",!0)],2))}}),Due=Xe(Bue,[["__scopeId","data-v-2a1bef4e"]]),Kue={class:"text-element-operate"},Hue={inheritAttrs:!1},Gue=Ie({...Hue,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:i,verticalTextElementResizeHandlers:a,borderLines:s}=ef(r,o),c=Me(()=>t.elementInfo.vertical?a.value:i.value);return(l,u)=>(Y(),ee("div",Kue,[(Y(!0),ee(We,null,ot(G(s),f=>(Y(),Te(tf,{class:"operate-border-line",key:f.type,type:f.type,style:we(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(c.value,f=>(Y(),Te(Oc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:we(f.style),onMousedown:Wt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Gd,{class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Wt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ze("",!0)]))}}),Jue={class:"shape-element-operate"},zue={inheritAttrs:!1},$ue=Ie({...zue,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=ef(r,o),s=Me(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoint===void 0)return{};const c=Gu[t.elementInfo.pathFormula];if("editable"in c){const l=c.getBaseSize(t.elementInfo.width,t.elementInfo.height)*t.elementInfo.keypoint;if(c.relative==="left")return{left:l*n.value+"px"};if(c.relative==="right")return{left:(t.elementInfo.width-l)*n.value+"px"};if(c.relative==="center")return{left:(t.elementInfo.width-l)/2*n.value+"px"};if(c.relative==="top")return{top:l*n.value+"px"};if(c.relative==="bottom")return{top:(t.elementInfo.height-l)*n.value+"px"}}return{}});return(c,l)=>(Y(),ee("div",Jue,[(Y(!0),ee(We,null,ot(G(a),u=>(Y(),Te(tf,{class:"operate-border-line",key:u.type,type:u.type,style:we(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(G(i),u=>(Y(),Te(Oc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:we(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Gd,{class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]),c.elementInfo.keypoint!==void 0?(Y(),ee("div",{key:0,class:"operate-keypoint-handler",style:we(s.value),onMousedown:l[1]||(l[1]=Wt(u=>c.moveShapeKeypoint(u,c.elementInfo),["stop"]))},null,36)):Ze("",!0)],64)):Ze("",!0)]))}}),jue=Xe($ue,[["__scopeId","data-v-e65e73bd"]]),que={class:"line-element-operate"},efe=["width","height","stroke"],tfe={key:0},nfe=["x1","y1","x2","y2"],rfe=["x1","y1","x2","y2"],ofe=["x1","y1","x2","y2"],ife=["x1","y1","x2","y2"],afe={inheritAttrs:!1},sfe=Ie({...afe,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),o=Me(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),i=Me(()=>{const a=[{handler:Go.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:Go.END,style:{left:t.elementInfo.end[0]*n.value+"px",top:t.elementInfo.end[1]*n.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken){const s=t.elementInfo.curve||t.elementInfo.broken;a.push({handler:Go.C,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[s,c]=t.elementInfo.cubic;a.push({handler:Go.C1,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}}),a.push({handler:Go.C2,style:{left:c[0]*n.value+"px",top:c[1]*n.value+"px"}})}return a});return(a,s)=>(Y(),ee("div",que,[a.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(i.value,c=>(Y(),Te(Oc,{class:"operate-resize-handler",key:c.handler,style:we(c.style),onMousedown:Wt(l=>a.dragLineElement(l,a.elementInfo,c.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(Y(),ee("svg",{width:r.value||1,height:o.value||1,stroke:a.elementInfo.color,overflow:"visible",style:we({transform:`scale(${G(n)})`})},[a.elementInfo.curve?(Y(),ee("g",tfe,[V("line",{class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,nfe),V("line",{class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,rfe)])):Ze("",!0),a.elementInfo.cubic?(Y(!0),ee(We,{key:1},ot(a.elementInfo.cubic,(c,l)=>(Y(),ee("g",{key:l},[l===0?(Y(),ee("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:c[0],y2:c[1]},null,8,ofe)):Ze("",!0),l===1?(Y(),ee("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:c[0],y2:c[1]},null,8,ife)):Ze("",!0)]))),128)):Ze("",!0)],12,efe))],64)):Ze("",!0)]))}}),lfe=Xe(sfe,[["__scopeId","data-v-32a06240"]]),cfe={class:"table-element-operate"},ufe={inheritAttrs:!1},ffe=Ie({...ufe,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.elementInfo.outline.width||1),o=Me(()=>(t.elementInfo.width+r.value)*n.value),i=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=ef(o,i);return(c,l)=>(Y(),ee("div",cfe,[(Y(!0),ee(We,null,ot(G(s),u=>(Y(),Te(tf,{class:"operate-border-line",key:u.type,type:u.type,style:we(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(G(a),u=>(Y(),Te(Oc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:we(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Gd,{class:"operate-rotate-handler",style:we({left:o.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"])],64)):Ze("",!0)]))}}),dfe={class:"common-element-operate"},hfe={inheritAttrs:!1},ym=Ie({...hfe,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ee(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=ef(r,o),s=Me(()=>["chart","video","audio"].includes(t.elementInfo.type));return(c,l)=>(Y(),ee("div",dfe,[(Y(!0),ee(We,null,ot(G(a),u=>(Y(),Te(tf,{class:"operate-border-line",key:u.type,type:u.type,style:we(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(We,{key:0},[(Y(!0),ee(We,null,ot(G(i),u=>(Y(),Te(Oc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:we(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?Ze("",!0):(Y(),Te(Gd,{key:0,class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]))],64)):Ze("",!0)]))}}),WF=()=>{const e=lt(),{addHistorySnapshot:t}=Jt();return{setLink:(o,i)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(i.type==="web"&&!a.test(i.target))return bn.error("不是正确的网页链接地址"),!1;if(i.type==="slide"&&!i.target)return bn.error("请先选择链接目标"),!1;const s={link:i};return e.updateElement({id:o.id,props:s}),t(),!0},removeLink:o=>{e.removeElementProps({id:o.id,propName:"link"}),t()}}},pfe=Ie({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:0}},setup(e){return(t,n)=>(Y(),ee("div",{class:Je(["divider",t.type]),style:we({margin:t.type==="horizontal"?`${t.margin||24}px 0`:`0 ${t.margin||8}px`})},null,6))}}),Ut=Xe(pfe,[["__scopeId","data-v-c7c64e0b"]]),mfe=["href"],vfe={class:"btns"},gfe=Ie({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=ft(),r=lt(),{canvasScale:o}=Ee(n),{slides:i}=Ee(r),{removeLink:a}=WF(),s=Me(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),c=l=>{const u=i.value.findIndex(f=>f.id===l);u!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(u))};return(l,u)=>(Y(),ee("div",{class:"link-handler",style:we({top:s.value*G(o)+10+"px"})},[l.link.type==="web"?(Y(),ee("a",{key:0,class:"link",href:l.link.target,target:"_blank"},gt(l.link.target),9,mfe)):(Y(),ee("a",{key:1,class:"link",onClick:u[0]||(u[0]=f=>c(l.link.target))},"幻灯片页面 "+gt(l.link.target),1)),V("div",vfe,[V("div",{class:"btn",onClick:u[1]||(u[1]=f=>l.openLinkDialog())},"更换"),L(Ut,{type:"vertical"}),V("div",{class:"btn",onClick:u[2]||(u[2]=f=>G(a)(l.elementInfo))},"移除")])],4))}}),Afe=Xe(gfe,[["__scopeId","data-v-f8f46f78"]]),Rfe={key:1,class:"animation-index"},yfe=Ie({__name:"index",props:{elementInfo:{},isSelected:{type:Boolean},isActive:{type:Boolean},isActiveGroupElement:{type:Boolean},isMultiSelect:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},dragLineElement:{type:Function},moveShapeKeypoint:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,{canvasScale:n,toolbarState:r}=Ee(ft()),{formatedAnimations:o}=Ee(lt()),i=Me(()=>({[kt.IMAGE]:Due,[kt.TEXT]:Gue,[kt.SHAPE]:jue,[kt.LINE]:lfe,[kt.TABLE]:ffe,[kt.CHART]:ym,[kt.LATEX]:ym,[kt.VIDEO]:ym,[kt.AUDIO]:ym})[t.elementInfo.type]||null),a=Me(()=>{const l=[];for(let u=0;ud.elId).includes(t.elementInfo.id)&&l.push(u);return l}),s=Me(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),c=Me(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(l,u)=>(Y(),ee("div",{class:Je(["operate",{"multi-select":l.isMultiSelect&&!l.isActive}]),style:we({top:l.elementInfo.top*G(n)+"px",left:l.elementInfo.left*G(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${l.elementInfo.width*G(n)/2}px ${c.value*G(n)/2}px`})},[l.isSelected?(Y(),Te(xs(i.value),{key:0,elementInfo:l.elementInfo,handlerVisible:!l.elementInfo.lock&&(l.isActiveGroupElement||!l.isMultiSelect),rotateElement:l.rotateElement,scaleElement:l.scaleElement,dragLineElement:l.dragLineElement,moveShapeKeypoint:l.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Ze("",!0),G(r)==="elAnimation"&&a.value.length?(Y(),ee("div",Rfe,[(Y(!0),ee(We,null,ot(a.value,f=>(Y(),ee("div",{class:"index-item",key:f},gt(f+1),1))),128))])):Ze("",!0),l.isActive&&l.elementInfo.link?(Y(),Te(Afe,{key:2,elementInfo:l.elementInfo,link:l.elementInfo.link,openLinkDialog:l.openLinkDialog,onMousedown:u[0]||(u[0]=Wt(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Ze("",!0)],6))}}),xfe=Xe(yfe,[["__scopeId","data-v-b96daa51"]]),bfe=["src"],Sfe=Ie({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=wc(n),o=Me(()=>t.elementInfo.flipH),i=Me(()=>t.elementInfo.flipV),{flipStyle:a}=a2(o,i),s=Me(()=>t.elementInfo.clip),{clipShape:c,imgPosition:l}=i5(s),u=Me(()=>t.elementInfo.filters),{filter:f}=gI(u);return(d,h)=>(Y(),ee("div",{class:"base-element-image",style:we({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({filter:G(r)?`drop-shadow(${G(r)})`:"",transform:G(a)})},[L(AI,{elementInfo:d.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:we({clipPath:G(c).style})},[V("img",{src:d.elementInfo.src,draggable:!1,style:we({top:G(l).top,left:G(l).left,width:G(l).width,height:G(l).height,filter:G(f)}),alt:""},null,12,bfe),d.elementInfo.colorMask?(Y(),ee("div",{key:0,class:"color-mask",style:we({backgroundColor:d.elementInfo.colorMask})},null,4)):Ze("",!0)],4)],4)],4)],4))}}),VF=Xe(Sfe,[["__scopeId","data-v-71d24108"]]),Mfe=["innerHTML"],wfe=Ie({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=wc(n);return(o,i)=>(Y(),ee("div",{class:"base-element-text",style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({width:o.elementInfo.vertical?"auto":o.elementInfo.width+"px",height:o.elementInfo.vertical?o.elementInfo.height+"px":"auto",backgroundColor:o.elementInfo.fill,opacity:o.elementInfo.opacity,textShadow:G(r),lineHeight:o.elementInfo.lineHeight,letterSpacing:(o.elementInfo.wordSpace||0)+"px",color:o.elementInfo.defaultColor,fontFamily:o.elementInfo.defaultFontName,writingMode:o.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[L(s2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),V("div",{class:Je(["text ProseMirror-static",{thumbnail:o.target==="thumbnail"}]),style:we({"--paragraphSpace":`${o.elementInfo.paragraphSpace===void 0?5:o.elementInfo.paragraphSpace}px`}),innerHTML:o.elementInfo.content},null,14,Mfe)],4)],4)],4))}}),UF=Xe(wfe,[["__scopeId","data-v-a3ec163d"]]),Lfe=["width","height"],Ofe={key:0},Tfe=["transform"],kfe=["d","fill","stroke","stroke-width","stroke-dasharray"],Nfe=["innerHTML"],Pfe=Ie({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.outline),{outlineWidth:r,outlineColor:o,strokeDashArray:i}=Hd(n),a=Me(()=>t.elementInfo.shadow),{shadowStyle:s}=wc(a),c=Me(()=>t.elementInfo.flipH),l=Me(()=>t.elementInfo.flipV),{flipStyle:u}=a2(c,l),f=Me(()=>{const d={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:d});return(d,h)=>(Y(),ee("div",{class:"base-element-shape",style:we({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({opacity:d.elementInfo.opacity,filter:G(s)?`drop-shadow(${G(s)})`:"",transform:G(u),color:f.value.defaultColor,fontFamily:f.value.defaultFontName})},[(Y(),ee("svg",{overflow:"visible",width:d.elementInfo.width,height:d.elementInfo.height},[d.elementInfo.gradient?(Y(),ee("defs",Ofe,[L(pF,{id:`base-gradient-${d.elementInfo.id}`,type:d.elementInfo.gradient.type,color1:d.elementInfo.gradient.color[0],color2:d.elementInfo.gradient.color[1],rotate:d.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Ze("",!0),V("g",{transform:`scale(${d.elementInfo.width/d.elementInfo.viewBox[0]}, ${d.elementInfo.height/d.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:d.elementInfo.path,fill:d.elementInfo.gradient?`url(#base-gradient-${d.elementInfo.id})`:d.elementInfo.fill,stroke:G(o),"stroke-width":G(r),"stroke-dasharray":G(i)},null,8,kfe)],8,Tfe)],8,Lfe)),V("div",{class:Je(["shape-text",f.value.align])},[V("div",{class:"ProseMirror-static",innerHTML:f.value.content},null,8,Nfe)],2)],4)],4)],4))}}),YF=Xe(Pfe,[["__scopeId","data-v-2d39d3d1"]]),Cfe=["width","height"],Ife=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Ffe=Ie({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=wc(n),o=Me(()=>{const c=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return c<24?24:c}),i=Me(()=>{const c=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return c<24?24:c}),a=Me(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const c=t.elementInfo.width;return c<=8?`${c*5} ${c*2.5}`:`${c*5} ${c*1.5}`}),s=Me(()=>Tb(t.elementInfo));return(c,l)=>(Y(),ee("div",{class:"base-element-line",style:we({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px"})},[V("div",{class:"element-content",style:we({filter:G(r)?`drop-shadow(${G(r)})`:""})},[(Y(),ee("svg",{overflow:"visible",width:o.value,height:i.value},[V("defs",null,[c.elementInfo.points[0]?(Y(),Te(Cd,{key:0,id:c.elementInfo.id,position:"start",type:c.elementInfo.points[0],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0),c.elementInfo.points[1]?(Y(),Te(Cd,{key:1,id:c.elementInfo.id,position:"end",type:c.elementInfo.points[1],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0)]),V("path",{d:s.value,stroke:c.elementInfo.color,"stroke-width":c.elementInfo.width,"stroke-dasharray":a.value,fill:"none","marker-start":c.elementInfo.points[0]?`url(#${c.elementInfo.id}-${c.elementInfo.points[0]}-start)`:"","marker-end":c.elementInfo.points[1]?`url(#${c.elementInfo.id}-${c.elementInfo.points[1]}-end)`:""},null,8,Ife)],8,Cfe))],4)],4))}}),QF=Xe(Ffe,[["__scopeId","data-v-e7dc2b42"]]),_fe=Ie({__name:"BaseChartElement",props:{elementInfo:{}},setup(e){const t=jo(qu)||he(1),n=Me(()=>t.value<1),r=Me(()=>n.value?1/t.value:1);return(o,i)=>(Y(),ee("div",{class:"base-element-chart",style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({backgroundColor:o.elementInfo.fill})},[L(s2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),L(MF,{width:o.elementInfo.width*r.value,height:o.elementInfo.height*r.value,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||"",style:we({zoom:1/r.value})},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend","style"])],4)],4)],4))}}),ZF=Xe(_fe,[["__scopeId","data-v-37ca5799"]]),Efe=["width"],Xfe=["rowspan","colspan"],Wfe=["innerHTML"],Vfe=Ie({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,n=he([]),r=Me(()=>n.value.reduce((c,l)=>c+l));Tt([()=>t.colWidths,()=>t.width],()=>{n.value=t.colWidths.map(c=>c*t.width)},{immediate:!0});const o=Me(()=>t.data),{hideCells:i}=TF(o),a=Me(()=>t.theme),{subThemeColor:s}=kF(a);return(c,l)=>{var u,f,d,h,p;return Y(),ee("div",{class:"static-table",style:we({width:r.value+"px"})},[V("table",{class:Je({theme:a.value,"row-header":(u=a.value)==null?void 0:u.rowHeader,"row-footer":(f=a.value)==null?void 0:f.rowFooter,"col-header":(d=a.value)==null?void 0:d.colHeader,"col-footer":(h=a.value)==null?void 0:h.colFooter}),style:we(`--themeColor: ${(p=a.value)==null?void 0:p.color}; --subThemeColor1: ${G(s)[0]}; --subThemeColor2: ${G(s)[1]}`)},[V("colgroup",null,[(Y(!0),ee(We,null,ot(n.value,(m,A)=>(Y(),ee("col",{span:"1",key:A,width:m},null,8,Efe))),128))]),V("tbody",null,[(Y(!0),ee(We,null,ot(c.data,(m,A)=>(Y(),ee("tr",{key:A,style:we({height:c.cellMinHeight+"px"})},[(Y(!0),ee(We,null,ot(m,(x,y)=>Ke((Y(),ee("td",{class:"cell",style:we({borderStyle:c.outline.style,borderColor:c.outline.color,borderWidth:c.outline.width+"px",...G(LF)(x.style)}),key:x.id,rowspan:x.rowspan,colspan:x.colspan},[V("div",{class:"cell-text",style:we({minHeight:c.cellMinHeight-4+"px"}),innerHTML:G(OF)(x.text)},null,12,Wfe)],12,Xfe)),[[il,!G(i).includes(`${A}_${y}`)]])),128))],4))),128))])],6)],4)}}}),Ufe=Xe(Vfe,[["__scopeId","data-v-6d887dcd"]]),Yfe={class:"element-content"},Qfe=Ie({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:"base-element-table",style:we({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",Yfe,[L(Ufe,{data:t.elementInfo.data,width:t.elementInfo.width,cellMinHeight:t.elementInfo.cellMinHeight,colWidths:t.elementInfo.colWidths,outline:t.elementInfo.outline,theme:t.elementInfo.theme},null,8,["data","width","cellMinHeight","colWidths","outline","theme"])])],4)],4))}}),BF=Xe(Qfe,[["__scopeId","data-v-77cfa6e4"]]),Zfe={class:"element-content"},Bfe=["width","height","stroke","stroke-width"],Dfe=["transform"],Kfe=["d"],Hfe=Ie({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:"base-element-latex",style:we({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",Zfe,[(Y(),ee("svg",{overflow:"visible",width:t.elementInfo.width,height:t.elementInfo.height,stroke:t.elementInfo.color,"stroke-width":t.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${t.elementInfo.width/t.elementInfo.viewBox[0]}, ${t.elementInfo.height/t.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:t.elementInfo.path},null,8,Kfe)],8,Dfe)],8,Bfe))])],4)],4))}}),DF=Xe(Hfe,[["__scopeId","data-v-93374af9"]]),Gfe=Ie({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(t,n)=>{const r=be("IconPlayOne");return Y(),ee("div",{class:"base-element-video",style:we({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({backgroundImage:t.elementInfo.poster?`url(${t.elementInfo.poster})`:""})},[L(r,{class:"icon"})],4)],4)],4)}}}),Jfe=Xe(Gfe,[["__scopeId","data-v-2fb0e771"]]),zfe={class:"element-content"},$fe=Ie({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px");return(r,o)=>{const i=be("IconVolumeNotice");return Y(),ee("div",{class:"base-element-audio",style:we({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${r.elementInfo.rotate}deg)`})},[V("div",zfe,[L(i,{class:"audio-icon",style:we({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),jfe=Xe($fe,[["__scopeId","data-v-b33e6120"]]),qfe=Ie({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,n=Me(()=>({[kt.IMAGE]:VF,[kt.TEXT]:UF,[kt.SHAPE]:YF,[kt.LINE]:QF,[kt.CHART]:ZF,[kt.TABLE]:BF,[kt.LATEX]:DF,[kt.VIDEO]:Jfe,[kt.AUDIO]:jfe})[t.elementInfo.type]||null);return(r,o)=>(Y(),ee("div",{class:Je(["base-element",`base-element-${r.elementInfo.id}`]),style:we({zIndex:r.elementIndex})},[(Y(),Te(xs(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),ede={key:1,class:"placeholder"},tde=Ie({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:n}=Ee(lt()),r=Me(()=>t.slide.background),{backgroundStyle:o}=f2(r),i=Me(()=>t.size/Ht);return Bu(qu,i),(a,s)=>(Y(),ee("div",{class:"thumbnail-slide",style:we({width:a.size+"px",height:a.size*G(n)+"px"})},[a.visible?(Y(),ee("div",{key:0,class:"elements",style:we({width:G(Ht)+"px",height:G(Ht)*G(n)+"px",transform:`scale(${i.value})`})},[V("div",{class:"background",style:we(G(o))},null,4),(Y(!0),ee(We,null,ot(a.slide.elements,(c,l)=>(Y(),Te(qfe,{key:c.id,elementInfo:c,elementIndex:l+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(Y(),ee("div",ede,"加载中 ..."))],4))}}),Fa=Xe(tde,[["__scopeId","data-v-cbd76d0a"]]),nde=["onClick"],rde=Ie({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=t;return(r,o)=>(Y(),ee("div",{class:Je(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:we(r.tabsStyle||{})},[(Y(!0),ee(We,null,ot(r.tabs,i=>(Y(),ee("div",{class:Je(["tab",{active:i.key===r.value}]),key:i.key,style:we({...r.tabStyle||{},"--color":i.color}),onClick:a=>n("update:value",i.key)},gt(i.label),15,nde))),128))],6))}}),gs=Xe(rde,[["__scopeId","data-v-c7f9dce0"]]),ode=Ie({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=()=>{n.disabled||r("click")};return(i,a)=>(Y(),ee("button",{class:Je(["button",{disabled:i.disabled,checked:!i.disabled&&i.checked,default:!i.disabled&&i.type==="default",primary:!i.disabled&&i.type==="primary",checkbox:!i.disabled&&i.type==="checkbox",radio:!i.disabled&&i.type==="radio",small:i.size==="small",first:i.first,last:i.last}]),onClick:a[0]||(a[0]=s=>o())},[lr(i.$slots,"default",{},void 0,!0)],2))}}),et=Xe(ode,[["__scopeId","data-v-3e3d85be"]]),ide={key:0,class:"select-wrap"},ade={class:"selector"},sde={class:"icon"},lde=["onClick"],cde={class:"selector"},ude={class:"icon"},fde=Ie({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=Me(()=>{var f;return((f=n.options.find(d=>d.value===n.value))==null?void 0:f.label)||n.value}),o=t,i=he(!1),a=he(),s=he(0),c=()=>{a.value&&(s.value=a.value.clientWidth)},l=new ResizeObserver(c);Gt(()=>{a.value&&l.observe(a.value)}),wn(()=>{a.value&&l.unobserve(a.value)});const u=f=>{f.disabled||(o("update:value",f.value),i.value=!1)};return(f,d)=>{const h=be("IconDown");return f.disabled?(Y(),ee("div",ide,[V("div",{class:"select disabled",ref_key:"selectRef",ref:a},[V("div",ade,gt(f.value),1),V("div",sde,[lr(f.$slots,"icon",{},()=>[L(h,{size:14})],!0)])],512)])):(Y(),Te(Pt,{key:1,class:"select-wrap",trigger:"click",value:i.value,"onUpdate:value":d[0]||(d[0]=p=>i.value=p),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:ie(()=>[V("div",{class:"options",style:we({width:s.value+2+"px"})},[(Y(!0),ee(We,null,ot(f.options,p=>(Y(),ee("div",{class:Je(["option",{disabled:p.disabled,selected:p.value===f.value}]),key:p.value,onClick:m=>u(p)},gt(p.label),11,lde))),128))],4)]),default:ie(()=>[V("div",{class:"select",ref_key:"selectRef",ref:a},[V("div",cde,gt(r.value),1),V("div",ude,[lr(f.$slots,"icon",{},()=>[L(h,{size:14})],!0)])],512)]),_:3},8,["value","contentStyle"]))}}}),Gn=Xe(fde,[["__scopeId","data-v-618af0ca"]]),dde=e=>(rn("data-v-de4d9db3"),e=e(),on(),e),hde={class:"link-dialog"},pde={key:2,class:"preview"},mde=dde(()=>V("div",null,"预览:",-1)),vde={class:"btns"},gde=Ie({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var p;const n=t,{handleElement:r}=Ee(ft()),{slides:o,currentSlide:i}=Ee(lt()),a=he("web"),s=he(""),c=he(""),l=Me(()=>o.value.map((m,A)=>({label:`幻灯片 ${A+1}`,value:m.id,disabled:i.value.id===m.id})));c.value=((p=o.value.find(m=>m.id!==i.value.id))==null?void 0:p.id)||"";const u=Me(()=>c.value&&o.value.find(m=>m.id===c.value)||null),f=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:d}=WF();Gt(()=>{var m;(m=r.value)!=null&&m.link&&(r.value.link.type==="web"?s.value=r.value.link.target:r.value.link.type==="slide"&&(c.value=r.value.link.target),a.value=r.value.link.type)});const h=()=>{const m={type:a.value,target:a.value==="web"?s.value:c.value};r.value&&(d(r.value,m)?n("close"):s.value="")};return(m,A)=>(Y(),ee("div",hde,[L(gs,{tabs:f,value:a.value,"onUpdate:value":A[0]||(A[0]=x=>a.value=x),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(Y(),Te(_u,{key:0,class:"input",value:s.value,"onUpdate:value":A[1]||(A[1]=x=>s.value=x),placeholder:"请输入网页链接地址"},null,8,["value"])):Ze("",!0),a.value==="slide"?(Y(),Te(Gn,{key:1,class:"input",value:c.value,"onUpdate:value":A[2]||(A[2]=x=>c.value=x),options:l.value},null,8,["value","options"])):Ze("",!0),a.value==="slide"&&u.value?(Y(),ee("div",pde,[mde,L(Fa,{class:"thumbnail",slide:u.value,size:500},null,8,["slide"])])):Ze("",!0),V("div",vde,[L(et,{onClick:A[3]||(A[3]=x=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ve("取消")]),_:1}),L(et,{type:"primary",onClick:A[4]||(A[4]=x=>h())},{default:ie(()=>[Ve("确认")]),_:1})])]))}}),Ade=Xe(gde,[["__scopeId","data-v-de4d9db3"]]),Rde=Ie({__name:"Modal",props:{visible:{type:Boolean},width:{default:480},closeButton:{type:Boolean,default:!1},closeOnClickMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},contentStyle:{}},emits:["update:visible","closed"],setup(e,{emit:t}){const{IconClose:n}=Vv,r=e,o=he(),i=t,a=he(!1),s=Me(()=>({width:r.width+"px",...r.contentStyle||{}}));Tt(()=>r.visible,()=>{r.visible&&Wr(()=>o.value.focus())});const c=()=>{i("update:visible",!1),i("closed")},l=()=>{r.visible&&r.closeOnEsc&&c()},u=()=>{r.closeOnClickMask&&c()};return(f,d)=>(Y(),Te(eb,{to:"body"},[L(Ou,{name:"modal-fade"},{default:ie(()=>[Ke(V("div",{class:"modal",ref_key:"modalRef",ref:o,tabindex:"-1",onKeyup:d[4]||(d[4]=gc(h=>l(),["esc"]))},[V("div",{class:"mask",onClick:d[0]||(d[0]=h=>u())}),L(Ou,{name:"modal-zoom",onAfterLeave:d[2]||(d[2]=h=>a.value=!1),onBeforeEnter:d[3]||(d[3]=h=>a.value=!0)},{default:ie(()=>[Ke(V("div",{class:"modal-content",style:we(s.value)},[f.closeButton?(Y(),ee("span",{key:0,class:"close-btn",onClick:d[1]||(d[1]=h=>c())},[L(G(n))])):Ze("",!0),a.value?lr(f.$slots,"default",{key:1},void 0,!0):Ze("",!0)],4),[[il,f.visible]])]),_:3})],544),[[il,f.visible]])]),_:3})]))}}),Yp=Xe(Rde,[["__scopeId","data-v-4d27bcca"]]),yde={class:"operates"},xde={key:2,class:"drag-mask"},bde=Ie({__name:"index",setup(e){const t=ft(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:o,hiddenElementIdList:i,editorAreaFocus:a,gridLineSize:s,showRuler:c,creatingElement:l,creatingCustomShape:u,canvasScale:f,textFormatPainter:d}=Ee(t),{currentSlide:h}=Ee(lt()),{ctrlKeyState:p,spaceKeyState:m}=Ee(Ss()),A=he(),x=he([]),y=he(!1),R=()=>y.value=!0;Tt(o,()=>{t.setActiveGroupElementId("")});const g=he([]);Lg(()=>{g.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const w=he(),{dragViewport:T,viewportStyles:M}=Soe(w);woe(w);const{mouseSelection:O,mouseSelectionVisible:k,mouseSelectionQuadrant:F,updateMouseSelection:N}=Moe(g,A),{dragElement:E}=mI(g,x,f),{dragLineElement:C}=Toe(g),{selectElement:_}=Ooe(g,E),{scaleElement:I,scaleMultiElement:W}=pI(g,x,f),{rotateElement:Z}=dI(g,A,f),{moveShapeKeypoint:J}=koe(g,f),{selectAllElements:le}=Kg(),{deleteAllElements:D}=Op(),{pasteElement:Q}=Ib(),{enterScreeningFromStart:B}=Sc(),{updateSlideIndex:H}=Bd(),{createTextElement:U,createShapeElement:te}=Ju();Gt(()=>{n.value.length&&Wr(()=>t.setActiveElementIdList([]))});const z=ae=>{n.value.length&&t.setActiveElementIdList([]),m.value?T(ae):N(ae),a.value||t.setEditorareaFocus(!0),d.value&&t.setTextFormatPainter(null),boe()},oe=ae=>{if(n.value.length||l.value||u.value||!A.value)return;const ge=A.value.getBoundingClientRect(),ce=(ae.pageX-ge.x)/f.value,ve=(ae.pageY-ge.y)/f.value;U({left:ce,top:ve,width:200/f.value,height:0})};wn(()=>{d.value&&t.setTextFormatPainter(null)});const pe=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:Ae}=_b(),me=Fn.throttle(Ae,100,{leading:!0,trailing:!1}),$=Fn.throttle(H,300,{leading:!0,trailing:!1}),ue=ae=>{ae.preventDefault(),p.value?ae.deltaY>0?me("-"):ae.deltaY<0&&me("+"):ae.deltaY>0?$(yt.DOWN):ae.deltaY<0&&$(yt.UP)},X=()=>{t.setRulerState(!c.value)},{insertElementFromCreateSelection:ne,formatCreateSelection:se}=Noe(A),j=ae=>{const{start:ge,end:ce,path:ve,viewBox:ye}=ae,_e=se({start:ge,end:ce});if(_e){const Se={};ae.fill&&(Se.fill=ae.fill),ae.outline&&(Se.outline=ae.outline),te(_e,{path:ve,viewBox:ye},Se)}t.setCreatingCustomShapeState(!1)},q=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Q},{text:"全选",subText:"Ctrl + A",handler:le},{text:"标尺",subText:c.value?"√":"",handler:X},{text:"网格线",handler:()=>t.setGridLineSize(s.value?0:50),children:[{text:"无",subText:s.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:s.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:s.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:s.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:D},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:B}];return Bu(qu,f),(ae,ge)=>{const ce=Sn("contextmenu"),ve=Sn("click-outside");return Ke((Y(),ee("div",{class:"canvas",ref_key:"canvasRef",ref:w,onWheel:ge[4]||(ge[4]=ye=>ue(ye)),onMousedown:ge[5]||(ge[5]=ye=>z(ye)),onDblclick:ge[6]||(ge[6]=ye=>oe(ye))},[G(l)?(Y(),Te(Pue,{key:0,onCreated:ge[0]||(ge[0]=ye=>G(ne)(ye))})):Ze("",!0),G(u)?(Y(),Te(_ue,{key:1,onCreated:ge[1]||(ge[1]=ye=>j(ye))})):Ze("",!0),V("div",{class:"viewport-wrapper",style:we({width:G(M).width*G(f)+"px",height:G(M).height*G(f)+"px",left:G(M).left+"px",top:G(M).top+"px"})},[V("div",yde,[(Y(!0),ee(We,null,ot(x.value,(ye,_e)=>(Y(),Te(XF,{key:_e,type:ye.type,axis:ye.axis,length:ye.length,canvasScale:G(f)},null,8,["type","axis","length","canvasScale"]))),128)),G(n).length>1?(Y(),Te(Vue,{key:0,elementList:g.value,scaleMultiElement:G(W)},null,8,["elementList","scaleMultiElement"])):Ze("",!0),(Y(!0),ee(We,null,ot(g.value,ye=>Ke((Y(),Te(xfe,{key:ye.id,elementInfo:ye,isSelected:G(n).includes(ye.id),isActive:G(o)===ye.id,isActiveGroupElement:G(r)===ye.id,isMultiSelect:G(n).length>1,rotateElement:G(Z),scaleElement:G(I),openLinkDialog:R,dragLineElement:G(C),moveShapeKeypoint:G(J)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[il,!G(i).includes(ye.id)]])),128)),L(Sue)]),V("div",{class:"viewport",ref_key:"viewportRef",ref:A,style:we({transform:`scale(${G(f)})`})},[G(k)?(Y(),Te(gue,{key:0,top:G(O).top,left:G(O).left,width:G(O).width,height:G(O).height,quadrant:G(F)},null,8,["top","left","width","height","quadrant"])):Ze("",!0),(Y(!0),ee(We,null,ot(g.value,(ye,_e)=>Ke((Y(),Te(mue,{key:ye.id,elementInfo:ye,elementIndex:_e+1,isMultiSelect:G(n).length>1,selectElement:G(_),openLinkDialog:R},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[il,!G(i).includes(ye.id)]])),128))],4)],4),G(m)?(Y(),ee("div",xde)):Ze("",!0),G(c)?(Y(),Te(Oue,{key:3,viewportStyles:G(M)},null,8,["viewportStyles"])):Ze("",!0),L(Yp,{visible:y.value,"onUpdate:visible":ge[3]||(ge[3]=ye=>y.value=ye),width:540},{default:ie(()=>[L(Ade,{onClose:ge[2]||(ge[2]=ye=>y.value=!1)})]),_:1},8,["visible"])],32)),[[ce,q],[ve,pe]])}}}),Sde=Xe(bde,[["__scopeId","data-v-47bbcf7b"]]),Mde={class:"shape-item-thumbnail"},wde={class:"shape-content"},Lde={overflow:"visible",width:"18",height:"18"},Ode=["transform"],Tde=["fill","stroke","d"],kde=Ie({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(Y(),ee("div",Mde,[V("div",wde,[(Y(),ee("svg",Lde,[V("g",{transform:`scale(${18/t.shape.viewBox[0]}, ${18/t.shape.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:Je(["shape-path",{outlined:t.shape.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:t.shape.outlined?"#999":"transparent",stroke:t.shape.outlined?"transparent":"#999","stroke-width":"2",d:t.shape.path},null,10,Tde)],8,Ode)]))])]))}}),KF=Xe(kde,[["__scopeId","data-v-2896ae03"]]),Nde={class:"shape-pool"},Pde={class:"category-name"},Cde={class:"shape-list"},Ide=Ie({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Y(),ee("div",Nde,[(Y(!0),ee(We,null,ot(G(Nb),a=>(Y(),ee("div",{class:"category",key:a.type},[V("div",Pde,gt(a.type),1),V("div",Cde,[(Y(!0),ee(We,null,ot(a.children,(s,c)=>(Y(),Te(KF,{class:"shape-item",key:c,shape:s,onClick:l=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),Fde=Xe(Ide,[["__scopeId","data-v-553b0d02"]]),_de=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],Ede={class:"line-pool"},Xde={class:"category-name"},Wde={class:"line-list"},Vde=["onClick"],Ude={overflow:"visible",width:"20",height:"20"},Yde=["d","stroke-dasharray","marker-start","marker-end"],Qde=Ie({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Y(),ee("div",Ede,[(Y(!0),ee(We,null,ot(G(_de),(a,s)=>(Y(),ee("div",{class:"category",key:a.type},[V("div",Xde,gt(a.type),1),V("div",Wde,[(Y(!0),ee(We,null,ot(a.children,(c,l)=>(Y(),ee("div",{class:"line-item",key:l},[V("div",{class:"line-content",onClick:u=>r(c)},[(Y(),ee("svg",Ude,[V("defs",null,[c.points[0]?(Y(),Te(Cd,{key:0,class:"line-marker",id:`preset-line-${s}-${l}`,position:"start",type:c.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Ze("",!0),c.points[1]?(Y(),Te(Cd,{key:1,class:"line-marker",id:`preset-line-${s}-${l}`,position:"end",type:c.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Ze("",!0)]),V("path",{class:"line-path",d:c.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":c.style==="solid"?"0, 0":"4, 1","marker-start":c.points[0]?`url(#${`preset-line-${s}-${l}`}-${c.points[0]}-start)`:"","marker-end":c.points[1]?`url(#${`preset-line-${s}-${l}`}-${c.points[1]}-end)`:""},null,8,Yde)]))],8,Vde)]))),128))])]))),128))]))}}),Zde=Xe(Qde,[["__scopeId","data-v-b07efd40"]]),Bde={class:"chart-pool"},Dde=["onClick"],Kde=Ie({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,r=["bar","horizontalBar","line","area","scatter","pie","ring"],o=i=>{n("select",i)};return(i,a)=>{const s=be("IconChartLine"),c=be("IconChartHistogram"),l=be("IconChartPie"),u=be("IconChartHistogramOne"),f=be("IconChartLineArea"),d=be("IconChartRing"),h=be("IconChartScatter");return Y(),ee("ul",Bde,[(Y(),ee(We,null,ot(r,(p,m)=>V("li",{class:"chart-item",key:m},[V("div",{class:"chart-content",onClick:A=>o(p)},[p==="line"?(Y(),Te(s,{key:0,size:"24"})):p==="bar"?(Y(),Te(c,{key:1,size:"24"})):p==="pie"?(Y(),Te(l,{key:2,size:"24"})):p==="horizontalBar"?(Y(),Te(u,{key:3,size:"24"})):p==="area"?(Y(),Te(f,{key:4,size:"24"})):p==="ring"?(Y(),Te(d,{key:5,size:"24"})):p==="scatter"?(Y(),Te(h,{key:6,size:"24"})):Ze("",!0)],8,Dde)])),64))])}}}),Hde=Xe(Kde,[["__scopeId","data-v-a4bc3ce2"]]),HF=e=>(rn("data-v-246b23f6"),e=e(),on(),e),Gde={class:"prefix"},Jde={class:"input-wrap"},zde=["disabled","placeholder"],$de={class:"handlers"},jde=HF(()=>V("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[V("path",{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"})],-1)),qde=[jde],e0e=HF(()=>V("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[V("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})],-1)),t0e=[e0e],n0e={class:"suffix"},r0e=Ie({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{emit:t}){const n=e,r=t,o=he(0),i=he(!1);Tt(()=>n.value,()=>{n.value!==o.value&&(o.value=n.value)},{immediate:!0}),Tt(o,()=>{const u=+o.value;if(!isNaN(u)){{if(u>n.max)return;if(u{let u=+o.value;isNaN(u)?u=n.min:u>n.max?u=n.max:u{a(),r("enter",u)},c=u=>{a(),i.value=!1,r("blur",u)},l=u=>{i.value=!0,r("focus",u)};return(u,f)=>(Y(),ee("div",{class:Je(["number-input",{disabled:u.disabled,focused:i.value}])},[V("span",Gde,[lr(u.$slots,"prefix",{},void 0,!0)]),V("div",Jde,[Ke(V("input",{type:"text",disabled:u.disabled,"onUpdate:modelValue":f[0]||(f[0]=d=>o.value=d),placeholder:u.placeholder,onInput:f[1]||(f[1]=d=>r("input",d)),onFocus:f[2]||(f[2]=d=>l(d)),onBlur:f[3]||(f[3]=d=>c(d)),onChange:f[4]||(f[4]=d=>r("change",d)),onKeydown:f[5]||(f[5]=gc(d=>s(d),["enter"]))},null,40,zde),[[Bh,o.value]]),V("div",$de,[V("span",{class:"handler",onClick:f[6]||(f[6]=d=>o.value+=u.step)},qde),V("span",{class:"handler",onClick:f[7]||(f[7]=d=>o.value-=u.step)},t0e)])]),V("span",n0e,[lr(u.$slots,"suffix",{},void 0,!0)])],2))}}),Li=Xe(r0e,[["__scopeId","data-v-246b23f6"]]),GF=e=>(rn("data-v-81680e19"),e=e(),on(),e),o0e={class:"table-generator"},i0e={class:"title"},a0e={class:"lef"},s0e=["onMouseenter"],l0e={key:1,class:"custom"},c0e={class:"row"},u0e=GF(()=>V("div",{class:"label",style:{width:"25%"}},"行数:",-1)),f0e={class:"row"},d0e=GF(()=>V("div",{class:"label",style:{width:"25%"}},"列数:",-1)),h0e={class:"btns"},p0e=Ie({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,r=he([]),o=he(3),i=he(3),a=he(!1),s=()=>{if(!r.value.length)return;const[u,f]=r.value;n("insert",{row:u,col:f})},c=()=>{if(o.value<1||o.value>20||i.value<1||i.value>20)return bn.warning("行数/列数必须在0~20之间!");n("insert",{row:o.value,col:i.value}),a.value=!1},l=()=>{n("close"),a.value=!1};return(u,f)=>(Y(),ee("div",o0e,[V("div",i0e,[V("div",a0e,"表格 "+gt(r.value.length?`${r.value[0]} x ${r.value[1]}`:""),1),V("div",{class:"right",onClick:f[0]||(f[0]=d=>a.value=!a.value)},gt(a.value?"返回":"自定义"),1)]),a.value?(Y(),ee("div",l0e,[V("div",c0e,[u0e,L(Li,{min:1,max:20,value:o.value,"onUpdate:value":f[3]||(f[3]=d=>o.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",f0e,[d0e,L(Li,{min:1,max:20,value:i.value,"onUpdate:value":f[4]||(f[4]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",h0e,[L(et,{class:"btn",onClick:f[5]||(f[5]=d=>l())},{default:ie(()=>[Ve("取消")]),_:1}),L(et,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>c())},{default:ie(()=>[Ve("确认")]),_:1})])])):(Y(),ee("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[V("tbody",null,[(Y(),ee(We,null,ot(10,d=>V("tr",{key:d},[(Y(),ee(We,null,ot(10,h=>V("td",{onMouseenter:p=>r.value=[d,h],key:h},[V("div",{class:Je(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,s0e)),64))])),64))])],32))]))}}),m0e=Xe(p0e,[["__scopeId","data-v-81680e19"]]),v0e={class:"media-input"},g0e={class:"btns"},A0e={class:"btns"},R0e=Ie({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const n=t,r=he("video"),o=he("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),i=he("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!o.value)return bn.error("请先输入正确的视频地址");n("insertVideo",o.value)},c=()=>{if(!i.value)return bn.error("请先输入正确的音频地址");n("insertAudio",i.value)};return(l,u)=>(Y(),ee("div",v0e,[L(gs,{tabs:a,value:r.value,"onUpdate:value":u[0]||(u[0]=f=>r.value=f),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(Y(),ee(We,{key:0},[L(_u,{value:o.value,"onUpdate:value":u[1]||(u[1]=f=>o.value=f),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),V("div",g0e,[L(et,{onClick:u[2]||(u[2]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ve("取消")]),_:1}),L(et,{type:"primary",onClick:u[3]||(u[3]=f=>s())},{default:ie(()=>[Ve("确认")]),_:1})])],64)):Ze("",!0),r.value==="audio"?(Y(),ee(We,{key:1},[L(_u,{value:i.value,"onUpdate:value":u[4]||(u[4]=f=>i.value=f),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),V("div",A0e,[L(et,{onClick:u[5]||(u[5]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ve("取消")]),_:1}),L(et,{type:"primary",onClick:u[6]||(u[6]=f=>c())},{default:ie(()=>[Ve("确认")]),_:1})])],64)):Ze("",!0)]))}}),y0e=Xe(R0e,[["__scopeId","data-v-999b18ca"]]);var xm=82;function Jf(e){return sx[e]==null&&x0e(e),sx[e]}function x0e(e){var t=b0e[e];if(t!=null){for(var n=t.substring(3,5),r=1*n.charCodeAt(0)-xm,o=1*n.charCodeAt(1)-xm,i=t.substring(5),a=[[]],s=1/0,c=-1/0,l=1/0,u=-1/0,f=0;ff>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q":2242,"~":2246,"@":2273,"\\":804}[e]}var xi={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function S0e(e){e=e.replace(/\n/g," ");let t=0,n=[],r="";for(;t0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y,e[l].text=="'"?e[l].bbox.y=u:(To(e[l],xi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u-e[l].bbox.h:e[f].text=="\\int"?e[l].bbox.y=u:e[l].bbox.y=u-e[l].bbox.h/2)}else if(e[l].text=="_"){let u=1,f=l;for(;f>0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y+e[f].bbox.h,To(e[l],xi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u:e[f].text=="\\int"?e[l].bbox.y=u-e[l].bbox.h:e[l].bbox.y=u-e[l].bbox.h/2}function n(l,u,f,d,h){let p=l,m=h,A=1/0,x=-1/0;for(;d>0?p=0;){if(e[p].text==u)m++;else if(e[p].text==f){if(m--,m==0)break}else e[p].text=="^"||e[p].text=="_"||e[p].bbox&&(A=Math.min(A,e[p].bbox.y),x=Math.max(x,e[p].bbox.y+e[p].bbox.h));p+=d}return[A,x]}for(let l=0;ll.text=="&"||l.text=="\\\\"))return;let r=[],o=[],i=[];for(let l=0;l0&&(e.chld[y].text=="^"||e.chld[y].text=="_"||e.chld[y].text=="'");)y--;let R=hn[e.chld[y].text]&&hn[e.chld[y].text].flags.big;if(A.text=="'"){let g=y+1,b=0;for(;g1;L0e(e.chld,f);let p=zF(e.chld);e.text=="\\text"&&(p.x-=1,p.w+=2);for(let m=0;mr.bbox.w)u=u/Math.max(a.w,1)*r.bbox.w,u+=r.bbox.x;else{u=u/16*o;let d=(r.bbox.w-a.w/16*o)/2;u+=r.bbox.x+d}if(hn[r.text].flags.yfl)f=(f-a.ymin)/Math.max(a.ymax-a.ymin,1)*r.bbox.h,f+=r.bbox.y;else{if(f=f/16*o,i){let d=(a.ymax+a.ymin)/2;f-=d/16*o}f+=r.bbox.y+r.bbox.h/2}c.push([u,f])}t.push(c)}}else if(hn[r.text]&&hn[r.text].flags.txt||r.type=="char"){let a=r.bbox.x,s=!!(hn[r.text]&&hn[r.text].flags.txt);for(let c=Number(s);c16?h*=16/l.w:h+=(16-l.w)/2/16),h+=a,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}t.push(f)}r.mode=="tt"?a+=o:a+=l.w/16*o}}}return t}function Qa(e){return Math.round(e*100)/100}var w5=class{constructor(e){this._latex=e,this._tokens=S0e(e),this._tree=lx(this._tokens),JF(this._tree.chld),Ba(this._tree),O0e(this._tree),this._polylines=T0e(this._tree)}resolveScale(e){var t,n,r,o;if(e==null)return[16,16,16,16];let i=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let l=0;for(let f=0;f - +