From 551f42750abb506f231bb4328fb002a6fdf99085 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Thu, 20 Mar 2025 13:21:59 +0000 Subject: [PATCH] deploy to github pages ad2a7cb32d3168408b87c68ffb14ed1413f3135f --- .../{index-BPtj-xeu.js => index-hALcQX-p.js} | 32 +++++++++---------- index.html | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) rename assets/{index-BPtj-xeu.js => index-hALcQX-p.js} (98%) diff --git a/assets/index-BPtj-xeu.js b/assets/index-hALcQX-p.js similarity index 98% rename from assets/index-BPtj-xeu.js rename to assets/index-hALcQX-p.js index 90d5170a..8198fe7d 100644 --- a/assets/index-BPtj-xeu.js +++ b/assets/index-hALcQX-p.js @@ -2,7 +2,7 @@ var _ue=Object.defineProperty;var Oue=(e,t,n)=>t in e?_ue(e,t,{enumerable:!0,con * @vue/shared v3.4.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function TS(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const Gn={},Yp=[],ra=()=>{},kue=()=>!1,k2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),q_=e=>e.startsWith("onUpdate:"),Dr=Object.assign,eO=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pue=Object.prototype.hasOwnProperty,Vn=(e,t)=>Pue.call(e,t),kt=Array.isArray,Zp=e=>Dv(e)==="[object Map]",o0=e=>Dv(e)==="[object Set]",ZN=e=>Dv(e)==="[object Date]",Cue=e=>Dv(e)==="[object RegExp]",zt=e=>typeof e=="function",Cr=e=>typeof e=="string",du=e=>typeof e=="symbol",lr=e=>e!==null&&typeof e=="object",tO=e=>(lr(e)||zt(e))&&zt(e.then)&&zt(e.catch),NB=Object.prototype.toString,Dv=e=>NB.call(e),Iue=e=>Dv(e).slice(8,-1),FB=e=>Dv(e)==="[object Object]",nO=e=>Cr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qp=TS(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_S=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Nue=/-(\w)/g,vo=_S(e=>e.replace(Nue,(t,n)=>n?n.toUpperCase():"")),Fue=/\B([A-Z])/g,qo=_S(e=>e.replace(Fue,"-$1").toLowerCase()),P2=_S(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qg=_S(e=>e?`on${P2(e)}`:""),ko=(e,t)=>!Object.is(e,t),Hp=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Zb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Qb=e=>{const t=Cr(e)?Number(e):NaN;return isNaN(t)?e:t};let QN;const XB=()=>QN||(QN=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Eue="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",Xue=TS(Eue);function we(e){if(kt(e)){const t={};for(let n=0;n{if(n){const r=n.split(Vue);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ge(e){let t="";if(Cr(e))t=e;else if(kt(e))for(let n=0;nZf(n,t))}const VB=e=>!!(e&&e.__v_isRef===!0),dt=e=>Cr(e)?e:e==null?"":kt(e)||lr(e)&&(e.toString===NB||!zt(e.toString))?VB(e)?dt(e.value):JSON.stringify(e,DB,2):String(e),DB=(e,t)=>VB(t)?DB(e,t.value):Zp(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[Pw(r,o)+" =>"]=i,n),{})}:o0(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Pw(n))}:du(t)?Pw(t):lr(t)&&!kt(t)&&!FB(t)?String(t):t,Pw=(e,t="")=>{var n;return du(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function TS(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const Gn={},Yp=[],ra=()=>{},kue=()=>!1,k2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),q_=e=>e.startsWith("onUpdate:"),Dr=Object.assign,eO=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pue=Object.prototype.hasOwnProperty,Vn=(e,t)=>Pue.call(e,t),kt=Array.isArray,Zp=e=>Dv(e)==="[object Map]",o0=e=>Dv(e)==="[object Set]",ZN=e=>Dv(e)==="[object Date]",Cue=e=>Dv(e)==="[object RegExp]",zt=e=>typeof e=="function",Cr=e=>typeof e=="string",du=e=>typeof e=="symbol",lr=e=>e!==null&&typeof e=="object",tO=e=>(lr(e)||zt(e))&&zt(e.then)&&zt(e.catch),NB=Object.prototype.toString,Dv=e=>NB.call(e),Iue=e=>Dv(e).slice(8,-1),FB=e=>Dv(e)==="[object Object]",nO=e=>Cr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qp=TS(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_S=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Nue=/-(\w)/g,vo=_S(e=>e.replace(Nue,(t,n)=>n?n.toUpperCase():"")),Fue=/\B([A-Z])/g,qo=_S(e=>e.replace(Fue,"-$1").toLowerCase()),P2=_S(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qg=_S(e=>e?`on${P2(e)}`:""),ko=(e,t)=>!Object.is(e,t),Hp=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Zb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Qb=e=>{const t=Cr(e)?Number(e):NaN;return isNaN(t)?e:t};let QN;const XB=()=>QN||(QN=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Eue="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",Xue=TS(Eue);function Me(e){if(kt(e)){const t={};for(let n=0;n{if(n){const r=n.split(Vue);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ge(e){let t="";if(Cr(e))t=e;else if(kt(e))for(let n=0;nZf(n,t))}const VB=e=>!!(e&&e.__v_isRef===!0),dt=e=>Cr(e)?e:e==null?"":kt(e)||lr(e)&&(e.toString===NB||!zt(e.toString))?VB(e)?dt(e.value):JSON.stringify(e,DB,2):String(e),DB=(e,t)=>VB(t)?DB(e,t.value):Zp(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[Pw(r,o)+" =>"]=i,n),{})}:o0(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Pw(n))}:du(t)?Pw(t):lr(t)&&!kt(t)&&!FB(t)?String(t):t,Pw=(e,t="")=>{var n;return du(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -10,7 +10,7 @@ var _ue=Object.defineProperty;var Oue=(e,t,n)=>t in e?_ue(e,t,{enumerable:!0,con * @vue/runtime-core v3.4.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Lce(e,t){}const Tce={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},_ce={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function lc(e,t,n,r){try{return r?e(...r):e()}catch(i){a0(i,t,n)}}function Da(e,t,n,r){if(zt(e)){const i=lc(e,t,n,r);return i&&tO(i)&&i.catch(o=>{a0(o,t,n)}),i}if(kt(e)){const i=[];for(let o=0;o>>1,i=lo[r],o=Dm(i);oKl&&lo.splice(t,1)}function Kb(e){kt(e)?Gp.push(...e):(!uf||!uf.includes(e,e.allowRecurse?ch+1:ch))&&Gp.push(e),uY()}function qN(e,t,n=Vm?Kl+1:0){for(;nDm(n)-Dm(r));if(Gp.length=0,uf){uf.push(...t);return}for(uf=t,ch=0;che.id==null?1/0:e.id,Cce=(e,t)=>{const n=Dm(e)-Dm(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function cY(e){T8=!1,Vm=!0,lo.sort(Cce);try{for(Kl=0;Klfp.emit(i,...o)),yA=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{fY(o,t)}),setTimeout(()=>{fp||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,yA=[])},3e3)):yA=[]}let yi=null,FS=null;function Um(e){const t=yi;return yi=e,FS=e&&e.type.__scopeId||null,t}function $t(e){FS=e}function jt(){FS=null}const Ice=e=>ie;function ie(e,t=yi,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&E8(-1);const o=Um(t);let a;try{a=e(...i)}finally{Um(o),r._d&&E8(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function ze(e,t){if(yi===null)return e;const n=E2(yi),r=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),s0(()=>{e.isUnmounting=!0}),e}const rs=[Function,Array],gO={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rs,onEnter:rs,onAfterEnter:rs,onEnterCancelled:rs,onBeforeLeave:rs,onLeave:rs,onAfterLeave:rs,onLeaveCancelled:rs,onBeforeAppear:rs,onAppear:rs,onAfterAppear:rs,onAppearCancelled:rs},dY=e=>{const t=e.subTree;return t.component?dY(t.component):t},Nce={name:"BaseTransition",props:gO,setup(e,{slots:t}){const n=Ac(),r=vO();return()=>{const i=t.default&&ES(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const d of i)if(d.type!==Li){o=d;break}}const a=Cn(e),{mode:s}=a;if(r.isLeaving)return Cw(o);const l=e7(o);if(!l)return Cw(o);let u=vv(l,a,r,n,d=>u=d);Hf(l,u);const c=n.subTree,f=c&&e7(c);if(f&&f.type!==Li&&!sl(l,f)&&dY(n).type!==Li){const d=vv(f,a,r,n);if(Hf(f,d),s==="out-in"&&l.type!==Li)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Cw(o);s==="in-out"&&l.type!==Li&&(d.delayLeave=(h,p,v)=>{const g=pY(r,f);g[String(f.key)]=f,h[cf]=()=>{p(),h[cf]=void 0,delete u.delayedLeave},u.delayedLeave=v})}return o}}},hY=Nce;function pY(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function vv(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:g,onAppear:m,onAfterAppear:y,onAppearCancelled:R}=t,A=String(e.key),x=pY(n,e),S=(T,w)=>{T&&Da(T,r,9,w)},M=(T,w)=>{const P=w[1];S(T,w),kt(T)?T.every(k=>k.length<=1)&&P():T.length<=1&&P()},L={mode:a,persisted:s,beforeEnter(T){let w=l;if(!n.isMounted)if(o)w=g||l;else return;T[cf]&&T[cf](!0);const P=x[A];P&&sl(e,P)&&P.el[cf]&&P.el[cf](),S(w,[T])},enter(T){let w=u,P=c,k=f;if(!n.isMounted)if(o)w=m||u,P=y||c,k=R||f;else return;let N=!1;const C=T[AA]=I=>{N||(N=!0,I?S(k,[T]):S(P,[T]),L.delayedLeave&&L.delayedLeave(),T[AA]=void 0)};w?M(w,[T,C]):C()},leave(T,w){const P=String(e.key);if(T[AA]&&T[AA](!0),n.isUnmounting)return w();S(d,[T]);let k=!1;const N=T[cf]=C=>{k||(k=!0,w(),C?S(v,[T]):S(p,[T]),T[cf]=void 0,x[P]===e&&delete x[P])};x[P]=e,h?M(h,[T,N]):N()},clone(T){const w=vv(T,t,n,r,i);return i&&i(w),w}};return L}function Cw(e){if(I2(e))return e=hu(e),e.children=null,e}function e7(e){if(!I2(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&zt(n.default))return n.default()}}function Hf(e,t){e.shapeFlag&6&&e.component?Hf(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ES(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Fce(e){zt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:a=!0,onError:s}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let h;return l||(h=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,g)=>{s(p,()=>v(f()),()=>g(p),c+1)});throw p}).then(p=>h!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Ee({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const h=gi;if(u)return()=>Iw(u,h);const p=y=>{l=null,a0(y,h,13,!r)};if(a&&h.suspense||F2)return d().then(y=>()=>Iw(y,h)).catch(y=>(p(y),()=>r?O(r,{error:y}):null));const v=he(!1),g=he(),m=he(!!i);return i&&setTimeout(()=>{m.value=!1},i),o!=null&&setTimeout(()=>{if(!v.value&&!g.value){const y=new Error(`Async component timed out after ${o}ms.`);p(y),g.value=y}},o),d().then(()=>{v.value=!0,h.parent&&I2(h.parent.vnode)&&(h.parent.effect.dirty=!0,NS(h.parent.update))}).catch(y=>{p(y),g.value=y}),()=>{if(v.value&&u)return Iw(u,h);if(g.value&&r)return O(r,{error:g.value});if(n&&!m.value)return O(n)}}})}function Iw(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=O(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const I2=e=>e.type.__isKeepAlive,Ece={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ac(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(y,R,A,x,S)=>{const M=y.component;u(y,R,A,0,s),l(M.vnode,y,R,A,M,s,x,y.slotScopeIds,S),wi(()=>{M.isDeactivated=!1,M.a&&Hp(M.a);const L=y.props&&y.props.onVnodeMounted;L&&Ko(L,M.parent,y)},s)},r.deactivate=y=>{const R=y.component;$b(R.m),$b(R.a),u(y,d,null,1,s),wi(()=>{R.da&&Hp(R.da);const A=y.props&&y.props.onVnodeUnmounted;A&&Ko(A,R.parent,y),R.isDeactivated=!0},s)};function h(y){Nw(y),c(y,n,s,!0)}function p(y){i.forEach((R,A)=>{const x=U8(R.type);x&&(!y||!y(x))&&v(A)})}function v(y){const R=i.get(y);!a||!sl(R,a)?h(R):a&&Nw(a),i.delete(y),o.delete(y)}Lt(()=>[e.include,e.exclude],([y,R])=>{y&&p(A=>cg(y,A)),R&&p(A=>!cg(R,A))},{flush:"post",deep:!0});let g=null;const m=()=>{g!=null&&(N8(n.subTree.type)?wi(()=>{i.set(g,RA(n.subTree))},n.subTree.suspense):i.set(g,RA(n.subTree)))};return Wt(m),WS(m),s0(()=>{i.forEach(y=>{const{subTree:R,suspense:A}=n,x=RA(R);if(y.type===x.type&&y.key===x.key){Nw(x);const S=x.component.da;S&&wi(S,A);return}h(y)})}),()=>{if(g=null,!t.default)return null;const y=t.default(),R=y[0];if(y.length>1)return a=null,y;if(!Kf(R)||!(R.shapeFlag&4)&&!(R.shapeFlag&128))return a=null,R;let A=RA(R);const x=A.type,S=U8(_h(A)?A.type.__asyncResolved||{}:x),{include:M,exclude:L,max:T}=e;if(M&&(!S||!cg(M,S))||L&&S&&cg(L,S))return a=A,R;const w=A.key==null?x:A.key,P=i.get(w);return A.el&&(A=hu(A),R.shapeFlag&128&&(R.ssContent=A)),g=w,P?(A.el=P.el,A.component=P.component,A.transition&&Hf(A,A.transition),A.shapeFlag|=512,o.delete(w),o.add(w)):(o.add(w),T&&o.size>parseInt(T,10)&&v(o.values().next().value)),A.shapeFlag|=256,a=A,N8(R.type)?R:A}}},Xce=Ece;function cg(e,t){return kt(e)?e.some(n=>cg(n,t)):Cr(e)?e.split(",").includes(t):Cue(e)?e.test(t):!1}function vY(e,t){mY(e,"a",t)}function gY(e,t){mY(e,"da",t)}function mY(e,t,n=gi){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(XS(t,r,n),n){let i=n.parent;for(;i&&i.parent;)I2(i.parent.vnode)&&Wce(r,t,n,i),i=i.parent}}function Wce(e,t,n,r){const i=XS(t,e,r,!0);En(()=>{eO(r[t],i)},n)}function Nw(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function RA(e){return e.shapeFlag&128?e.ssContent:e}function XS(e,t,n=gi,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{ud();const s=Hh(n),l=Da(t,n,e,a);return s(),cd(),l});return r?i.unshift(o):i.push(o),o}}const yc=e=>(t,n=gi)=>{(!F2||e==="sp")&&XS(e,(...r)=>t(...r),n)},mO=yc("bm"),Wt=yc("m"),yY=yc("bu"),WS=yc("u"),s0=yc("bum"),En=yc("um"),AY=yc("sp"),RY=yc("rtg"),bY=yc("rtc");function xY(e,t=gi){XS("ec",e,t)}const yO="components",Vce="directives";function xe(e,t){return AO(yO,e,!0,t)||e}const SY=Symbol.for("v-ndc");function xu(e){return Cr(e)?AO(yO,e,!1)||e:e||SY}function _n(e){return AO(Vce,e)}function AO(e,t,n=!0,r=!1){const i=yi||gi;if(i){const o=i.type;if(e===yO){const s=U8(o,!1);if(s&&(s===t||s===vo(t)||s===P2(vo(t))))return o}const a=t7(i[e]||o[e],t)||t7(i.appContext[e],t);return!a&&r?o:a}}function t7(e,t){return e&&(e[t]||e[vo(t)]||e[P2(vo(t))])}function Je(e,t,n,r){let i;const o=n&&n[r];if(kt(e)||Cr(e)){i=new Array(e.length);for(let a=0,s=e.length;at(a,s,void 0,o&&o[s]));else{const a=Object.keys(e);i=new Array(a.length);for(let s=0,l=a.length;s{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function ar(e,t,n={},r,i){if(yi.isCE||yi.parent&&_h(yi.parent)&&yi.parent.isCE)return t!=="default"&&(n.name=t),O("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),U();const a=o&&wY(o(n)),s=Te(Ne,{key:(n.key||a&&a.key||`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function wY(e){return e.some(t=>Kf(t)?!(t.type===Li||t.type===Ne&&!wY(t.children)):!0)?e:null}function Uce(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Qg(r)]=e[r];return n}const _8=e=>e?aZ(e)?E2(e):_8(e.parent):null,Hg=Dr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_8(e.parent),$root:e=>_8(e.root),$emit:e=>e.emit,$options:e=>RO(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,NS(e.update)}),$nextTick:e=>e.n||(e.n=hr.bind(e.proxy)),$watch:e=>xfe.bind(e)}),Fw=(e,t)=>e!==Gn&&!e.__isScriptSetup&&Vn(e,t),O8={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Fw(r,t))return a[t]=1,r[t];if(i!==Gn&&Vn(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&Vn(u,t))return a[t]=3,o[t];if(n!==Gn&&Vn(n,t))return a[t]=4,n[t];k8&&(a[t]=0)}}const c=Hg[t];let f,d;if(c)return t==="$attrs"&&da(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Gn&&Vn(n,t))return a[t]=4,n[t];if(d=l.config.globalProperties,Vn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Fw(i,t)?(i[t]=n,!0):r!==Gn&&Vn(r,t)?(r[t]=n,!0):Vn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||e!==Gn&&Vn(e,a)||Fw(t,a)||(s=o[0])&&Vn(s,a)||Vn(r,a)||Vn(Hg,a)||Vn(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Vn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Bce=Dr({},O8,{get(e,t){if(t!==Symbol.unscopables)return O8.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Xue(t)}});function Yce(){return null}function Zce(){return null}function Qce(e){}function Hce(e){}function Kce(){return null}function Gce(){}function zce(e,t){return null}function Jce(){return MY().slots}function $ce(){return MY().attrs}function MY(){const e=Ac();return e.setupContext||(e.setupContext=uZ(e))}function Bm(e){return kt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function jce(e,t){const n=Bm(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?kt(i)||zt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function qce(e,t){return!e||!t?e||t:kt(e)&&kt(t)?e.concat(t):Dr({},Bm(e),Bm(t))}function efe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function tfe(e){const t=Ac();let n=e();return W8(),tO(n)&&(n=n.catch(r=>{throw Hh(t),r})),[n,()=>Hh(t)]}let k8=!0;function nfe(e){const t=RO(e),n=e.proxy,r=e.ctx;k8=!1,t.beforeCreate&&n7(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:R,unmounted:A,render:x,renderTracked:S,renderTriggered:M,errorCaptured:L,serverPrefetch:T,expose:w,inheritAttrs:P,components:k,directives:N,filters:C}=t;if(u&&rfe(u,r,null),a)for(const W in a){const B=a[W];zt(B)&&(r[W]=B.bind(n))}if(i){const W=i.call(n,n);lr(W)&&(e.data=C2(W))}if(k8=!0,o)for(const W in o){const B=o[W],K=zt(B)?B.bind(n,n):zt(B.get)?B.get.bind(n,n):ra,j=!zt(B)&&zt(B.set)?B.set.bind(n):ra,D=Se({get:K,set:j});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>D.value,set:Y=>D.value=Y})}if(s)for(const W in s)LY(s[W],r,n,W);if(l){const W=zt(l)?l.call(n):l;Reflect.ownKeys(W).forEach(B=>{l0(B,W[B])})}c&&n7(c,e,"c");function F(W,B){kt(B)?B.forEach(K=>W(K.bind(n))):B&&W(B.bind(n))}if(F(mO,f),F(Wt,d),F(yY,h),F(WS,p),F(vY,v),F(gY,g),F(xY,L),F(bY,S),F(RY,M),F(s0,y),F(En,A),F(AY,T),kt(w))if(w.length){const W=e.exposed||(e.exposed={});w.forEach(B=>{Object.defineProperty(W,B,{get:()=>n[B],set:K=>n[B]=K})})}else e.exposed||(e.exposed={});x&&e.render===ra&&(e.render=x),P!=null&&(e.inheritAttrs=P),k&&(e.components=k),N&&(e.directives=N)}function rfe(e,t,n=ra){kt(e)&&(e=P8(e));for(const r in e){const i=e[r];let o;lr(i)?"default"in i?o=xs(i.from||r,i.default,!0):o=xs(i.from||r):o=xs(i),Ir(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function n7(e,t,n){Da(kt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function LY(e,t,n,r){const i=r.includes(".")?zY(n,r):()=>n[r];if(Cr(e)){const o=t[e];zt(o)&&Lt(i,o)}else if(zt(e))Lt(i,e.bind(n));else if(lr(e))if(kt(e))e.forEach(o=>LY(o,t,n,r));else{const o=zt(e.handler)?e.handler.bind(n):t[e.handler];zt(o)&&Lt(i,o,e)}}function RO(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>zb(l,u,a,!0)),zb(l,t,a)),lr(t)&&o.set(t,l),l}function zb(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&zb(e,o,n,!0),i&&i.forEach(a=>zb(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=ife[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const ife={data:r7,props:i7,emits:i7,methods:fg,computed:fg,beforeCreate:wo,created:wo,beforeMount:wo,mounted:wo,beforeUpdate:wo,updated:wo,beforeDestroy:wo,beforeUnmount:wo,destroyed:wo,unmounted:wo,activated:wo,deactivated:wo,errorCaptured:wo,serverPrefetch:wo,components:fg,directives:fg,watch:afe,provide:r7,inject:ofe};function r7(e,t){return t?e?function(){return Dr(zt(e)?e.call(this,this):e,zt(t)?t.call(this,this):t)}:t:e}function ofe(e,t){return fg(P8(e),P8(t))}function P8(e){if(kt(e)){const t={};for(let n=0;n1)return n&&zt(t)?t.call(r&&r.proxy):t}}function _Y(){return!!(gi||yi||zp)}const OY={},kY=()=>Object.create(OY),PY=e=>Object.getPrototypeOf(e)===OY;function ufe(e,t,n,r=!1){const i={},o=kY();e.propsDefaults=Object.create(null),CY(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:nY(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function cfe(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=Cn(i),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=IY(f,t,!0);Dr(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return lr(e)&&r.set(e,Yp),Yp;if(kt(o))for(let c=0;c-1,h[1]=v<0||p-1||Vn(h,"default"))&&s.push(f)}}}const u=[a,s];return lr(e)&&r.set(e,u),u}function o7(e){return e[0]!=="$"&&!Qp(e)}function a7(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function s7(e,t){return a7(e)===a7(t)}function l7(e,t){return kt(t)?t.findIndex(n=>s7(n,e)):zt(t)&&s7(t,e)?0:-1}const NY=e=>e[0]==="_"||e==="$stable",bO=e=>kt(e)?e.map(Jo):[Jo(e)],dfe=(e,t,n)=>{if(t._n)return t;const r=ie((...i)=>bO(t(...i)),n);return r._c=!1,r},FY=(e,t,n)=>{const r=e._ctx;for(const i in e){if(NY(i))continue;const o=e[i];if(zt(o))t[i]=dfe(i,o,r);else if(o!=null){const a=bO(o);t[i]=()=>a}}},EY=(e,t)=>{const n=bO(t);e.slots.default=()=>n},XY=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},hfe=(e,t,n)=>{const r=e.slots=kY();if(e.vnode.shapeFlag&32){const i=t._;i?(XY(r,t,n),n&&EB(r,"_",i,!0)):FY(t,r)}else t&&EY(e,t)},pfe=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=Gn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:XY(i,t,n):(o=!t.$stable,FY(t,i)),a=t}else t&&(EY(e,t),a={default:1});if(o)for(const s in i)!NY(s)&&a[s]==null&&delete i[s]};function Jb(e,t,n,r,i=!1){if(kt(e)){e.forEach((d,h)=>Jb(d,t&&(kt(t)?t[h]:t),n,r,i));return}if(_h(r)&&!i)return;const o=r.shapeFlag&4?E2(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Gn?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(Cr(u)?(c[u]=null,Vn(f,u)&&(f[u]=null)):Ir(u)&&(u.value=null)),zt(l))lc(l,s,12,[a,c]);else{const d=Cr(l),h=Ir(l);if(d||h){const p=()=>{if(e.f){const v=d?Vn(f,l)?f[l]:c[l]:l.value;i?kt(v)&&eO(v,o):kt(v)?v.includes(o)||v.push(o):d?(c[l]=[o],Vn(f,l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else d?(c[l]=a,Vn(f,l)&&(f[l]=a)):h&&(l.value=a,e.k&&(c[e.k]=a))};a?(p.id=-1,wi(p,n)):p()}}}const WY=Symbol("_vte"),vfe=e=>e.__isTeleport,Kg=e=>e&&(e.disabled||e.disabled===""),u7=e=>typeof SVGElement<"u"&&e instanceof SVGElement,c7=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,I8=(e,t)=>{const n=e&&e.to;return Cr(n)?t?t(n):null:n},gfe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,m=Kg(t.props);let{shapeFlag:y,children:R,dynamicChildren:A}=t;if(e==null){const x=t.el=v(""),S=t.anchor=v(""),M=t.target=I8(t.props,p),L=t.targetStart=v(""),T=t.targetAnchor=v("");h(x,n,r),h(S,n,r),L[WY]=T,M&&(h(L,M),h(T,M),a==="svg"||u7(M)?a="svg":(a==="mathml"||c7(M))&&(a="mathml"));const w=(P,k)=>{y&16&&c(R,P,k,i,o,a,s,l)};m?w(n,S):M&&w(M,T)}else{t.el=e.el,t.targetStart=e.targetStart;const x=t.anchor=e.anchor,S=t.target=e.target,M=t.targetAnchor=e.targetAnchor,L=Kg(e.props),T=L?n:S,w=L?x:M;if(a==="svg"||u7(S)?a="svg":(a==="mathml"||c7(S))&&(a="mathml"),A?(d(e.dynamicChildren,A,T,i,o,a,s),SO(e,t,!0)):l||f(e,t,T,w,i,o,a,s,!1),m)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):bA(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=I8(t.props,p);P&&bA(t,P,null,u,0)}else L&&bA(t,S,M,u,1)}VY(t)},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(i(u),i(c)),o&&i(l),a&16){const h=o||!Kg(d);for(let p=0;p{f7||(console.error("Hydration completed but contains mismatches."),f7=!0)},yfe=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Afe=e=>e.namespaceURI.includes("MathML"),xA=e=>{if(yfe(e))return"svg";if(Afe(e))return"mathml"},SA=e=>e.nodeType===8;function Rfe(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:u}}=e,c=(R,A)=>{if(!A.hasChildNodes()){n(null,R,A),Gb(),A._vnode=R;return}f(A.firstChild,R,null,null,null),Gb(),A._vnode=R},f=(R,A,x,S,M,L=!1)=>{L=L||!!A.dynamicChildren;const T=SA(R)&&R.data==="[",w=()=>v(R,A,x,S,M,T),{type:P,ref:k,shapeFlag:N,patchFlag:C}=A;let I=R.nodeType;A.el=R,C===-2&&(L=!1,A.dynamicChildren=null);let F=null;switch(P){case Nf:I!==3?A.children===""?(l(A.el=i(""),a(R),R),F=R):F=w():(R.data!==A.children&&(E0(),R.data=A.children),F=o(R));break;case Li:y(R)?(F=o(R),m(A.el=R.content.firstChild,R,x)):I!==8||T?F=w():F=o(R);break;case Oh:if(T&&(R=o(R),I=R.nodeType),I===1||I===3){F=R;const W=!A.children.length;for(let B=0;B{L=L||!!A.dynamicChildren;const{type:T,props:w,patchFlag:P,shapeFlag:k,dirs:N,transition:C}=A,I=T==="input"||T==="option";if(I||P!==-1){N&&Yl(A,null,x,"created");let F=!1;if(y(R)){F=YY(S,C)&&x&&x.vnode.props&&x.vnode.props.appear;const B=R.content.firstChild;F&&C.beforeEnter(B),m(B,R,x),A.el=R=B}if(k&16&&!(w&&(w.innerHTML||w.textContent))){let B=h(R.firstChild,A,R,x,S,M,L);for(;B;){E0();const K=B;B=B.nextSibling,s(K)}}else k&8&&R.textContent!==A.children&&(E0(),R.textContent=A.children);if(w){if(I||!L||P&48)for(const B in w)(I&&(B.endsWith("value")||B==="indeterminate")||k2(B)&&!Qp(B)||B[0]===".")&&r(R,B,null,w[B],void 0,x);else if(w.onClick)r(R,"onClick",null,w.onClick,void 0,x);else if(P&4&&iu(w.style))for(const B in w.style)w.style[B]}let W;(W=w&&w.onVnodeBeforeMount)&&Ko(W,x,A),N&&Yl(A,null,x,"beforeMount"),((W=w&&w.onVnodeMounted)||N||F)&&qY(()=>{W&&Ko(W,x,A),F&&C.enter(R),N&&Yl(A,null,x,"mounted")},S)}return R.nextSibling},h=(R,A,x,S,M,L,T)=>{T=T||!!A.dynamicChildren;const w=A.children,P=w.length;for(let k=0;k{const{slotScopeIds:T}=A;T&&(M=M?M.concat(T):T);const w=a(R),P=h(o(R),A,w,x,S,M,L);return P&&SA(P)&&P.data==="]"?o(A.anchor=P):(E0(),l(A.anchor=u("]"),w,P),P)},v=(R,A,x,S,M,L)=>{if(E0(),A.el=null,L){const P=g(R);for(;;){const k=o(R);if(k&&k!==P)s(k);else break}}const T=o(R),w=a(R);return s(R),n(null,A,w,T,x,S,xA(w),M),T},g=(R,A="[",x="]")=>{let S=0;for(;R;)if(R=o(R),R&&SA(R)&&(R.data===A&&S++,R.data===x)){if(S===0)return o(R);S--}return R},m=(R,A,x)=>{const S=A.parentNode;S&&S.replaceChild(R,A);let M=x;for(;M;)M.vnode.el===A&&(M.vnode.el=M.subTree.el=R),M=M.parent},y=R=>R.nodeType===1&&R.tagName.toLowerCase()==="template";return[c,f]}const wi=qY;function DY(e){return BY(e)}function UY(e){return BY(e,Rfe)}function BY(e,t){const n=XB();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=ra,insertStaticContent:p}=e,v=(q,E,te,le=null,ne=null,re=null,ae=void 0,ve=null,ce=!!E.dynamicChildren)=>{if(q===E)return;q&&!sl(q,E)&&(le=de(q),Y(q,ne,re,!0),q=null),E.patchFlag===-2&&(ce=!1,E.dynamicChildren=null);const{type:ge,ref:Re,shapeFlag:We}=E;switch(ge){case Nf:g(q,E,te,le);break;case Li:m(q,E,te,le);break;case Oh:q==null&&y(E,te,le,ae);break;case Ne:k(q,E,te,le,ne,re,ae,ve,ce);break;default:We&1?x(q,E,te,le,ne,re,ae,ve,ce):We&6?N(q,E,te,le,ne,re,ae,ve,ce):(We&64||We&128)&&ge.process(q,E,te,le,ne,re,ae,ve,ce,ue)}Re!=null&&ne&&Jb(Re,q&&q.ref,re,E||q,!E)},g=(q,E,te,le)=>{if(q==null)r(E.el=s(E.children),te,le);else{const ne=E.el=q.el;E.children!==q.children&&u(ne,E.children)}},m=(q,E,te,le)=>{q==null?r(E.el=l(E.children||""),te,le):E.el=q.el},y=(q,E,te,le)=>{[q.el,q.anchor]=p(q.children,E,te,le,q.el,q.anchor)},R=({el:q,anchor:E},te,le)=>{let ne;for(;q&&q!==E;)ne=d(q),r(q,te,le),q=ne;r(E,te,le)},A=({el:q,anchor:E})=>{let te;for(;q&&q!==E;)te=d(q),i(q),q=te;i(E)},x=(q,E,te,le,ne,re,ae,ve,ce)=>{E.type==="svg"?ae="svg":E.type==="math"&&(ae="mathml"),q==null?S(E,te,le,ne,re,ae,ve,ce):T(q,E,ne,re,ae,ve,ce)},S=(q,E,te,le,ne,re,ae,ve)=>{let ce,ge;const{props:Re,shapeFlag:We,transition:Fe,dirs:Ke}=q;if(ce=q.el=a(q.type,re,Re&&Re.is,Re),We&8?c(ce,q.children):We&16&&L(q.children,ce,null,le,ne,Ew(q,re),ae,ve),Ke&&Yl(q,null,le,"created"),M(ce,q,q.scopeId,ae,le),Re){for(const _e in Re)_e!=="value"&&!Qp(_e)&&o(ce,_e,null,Re[_e],re,le);"value"in Re&&o(ce,"value",null,Re.value,re),(ge=Re.onVnodeBeforeMount)&&Ko(ge,le,q)}Ke&&Yl(q,null,le,"beforeMount");const Ue=YY(ne,Fe);Ue&&Fe.beforeEnter(ce),r(ce,E,te),((ge=Re&&Re.onVnodeMounted)||Ue||Ke)&&wi(()=>{ge&&Ko(ge,le,q),Ue&&Fe.enter(ce),Ke&&Yl(q,null,le,"mounted")},ne)},M=(q,E,te,le,ne)=>{if(te&&h(q,te),le)for(let re=0;re{for(let ge=ce;ge{const ve=E.el=q.el;let{patchFlag:ce,dynamicChildren:ge,dirs:Re}=E;ce|=q.patchFlag&16;const We=q.props||Gn,Fe=E.props||Gn;let Ke;if(te&&Od(te,!1),(Ke=Fe.onVnodeBeforeUpdate)&&Ko(Ke,te,E,q),Re&&Yl(E,q,te,"beforeUpdate"),te&&Od(te,!0),(We.innerHTML&&Fe.innerHTML==null||We.textContent&&Fe.textContent==null)&&c(ve,""),ge?w(q.dynamicChildren,ge,ve,te,le,Ew(E,ne),re):ae||B(q,E,ve,null,te,le,Ew(E,ne),re,!1),ce>0){if(ce&16)P(ve,We,Fe,te,ne);else if(ce&2&&We.class!==Fe.class&&o(ve,"class",null,Fe.class,ne),ce&4&&o(ve,"style",We.style,Fe.style,ne),ce&8){const Ue=E.dynamicProps;for(let _e=0;_e{Ke&&Ko(Ke,te,E,q),Re&&Yl(E,q,te,"updated")},le)},w=(q,E,te,le,ne,re,ae)=>{for(let ve=0;ve{if(E!==te){if(E!==Gn)for(const re in E)!Qp(re)&&!(re in te)&&o(q,re,E[re],null,ne,le);for(const re in te){if(Qp(re))continue;const ae=te[re],ve=E[re];ae!==ve&&re!=="value"&&o(q,re,ve,ae,ne,le)}"value"in te&&o(q,"value",E.value,te.value,ne)}},k=(q,E,te,le,ne,re,ae,ve,ce)=>{const ge=E.el=q?q.el:s(""),Re=E.anchor=q?q.anchor:s("");let{patchFlag:We,dynamicChildren:Fe,slotScopeIds:Ke}=E;Ke&&(ve=ve?ve.concat(Ke):Ke),q==null?(r(ge,te,le),r(Re,te,le),L(E.children||[],te,Re,ne,re,ae,ve,ce)):We>0&&We&64&&Fe&&q.dynamicChildren?(w(q.dynamicChildren,Fe,te,ne,re,ae,ve),(E.key!=null||ne&&E===ne.subTree)&&SO(q,E,!0)):B(q,E,te,Re,ne,re,ae,ve,ce)},N=(q,E,te,le,ne,re,ae,ve,ce)=>{E.slotScopeIds=ve,q==null?E.shapeFlag&512?ne.ctx.activate(E,te,le,ae,ce):C(E,te,le,ne,re,ae,ce):I(q,E,ce)},C=(q,E,te,le,ne,re,ae)=>{const ve=q.component=oZ(q,le,ne);if(I2(q)&&(ve.ctx.renderer=ue),sZ(ve,!1,ae),ve.asyncDep){if(ne&&ne.registerDep(ve,F,ae),!q.el){const ce=ve.subTree=O(Li);m(null,ce,E,te)}}else F(ve,q,E,te,ne,re,ae)},I=(q,E,te)=>{const le=E.component=q.component;if(_fe(q,E,te))if(le.asyncDep&&!le.asyncResolved){W(le,E,te);return}else le.next=E,Pce(le.update),le.effect.dirty=!0,le.update();else E.el=q.el,le.vnode=E},F=(q,E,te,le,ne,re,ae)=>{const ve=()=>{if(q.isMounted){let{next:Re,bu:We,u:Fe,parent:Ke,vnode:Ue}=q;{const Qe=ZY(q);if(Qe){Re&&(Re.el=Ue.el,W(q,Re,ae)),Qe.asyncDep.then(()=>{q.isUnmounted||ve()});return}}let _e=Re,ye;Od(q,!1),Re?(Re.el=Ue.el,W(q,Re,ae)):Re=Ue,We&&Hp(We),(ye=Re.props&&Re.props.onVnodeBeforeUpdate)&&Ko(ye,Ke,Re,Ue),Od(q,!0);const Le=GR(q),Ie=q.subTree;q.subTree=Le,v(Ie,Le,f(Ie.el),de(Ie),q,ne,re),Re.el=Le.el,_e===null&&wO(q,Le.el),Fe&&wi(Fe,ne),(ye=Re.props&&Re.props.onVnodeUpdated)&&wi(()=>Ko(ye,Ke,Re,Ue),ne)}else{let Re;const{el:We,props:Fe}=E,{bm:Ke,m:Ue,parent:_e}=q,ye=_h(E);if(Od(q,!1),Ke&&Hp(Ke),!ye&&(Re=Fe&&Fe.onVnodeBeforeMount)&&Ko(Re,_e,E),Od(q,!0),We&&se){const Le=()=>{q.subTree=GR(q),se(We,q.subTree,q,ne,null)};ye?E.type.__asyncLoader().then(()=>!q.isUnmounted&&Le()):Le()}else{const Le=q.subTree=GR(q);v(null,Le,te,le,q,ne,re),E.el=Le.el}if(Ue&&wi(Ue,ne),!ye&&(Re=Fe&&Fe.onVnodeMounted)){const Le=E;wi(()=>Ko(Re,_e,Le),ne)}(E.shapeFlag&256||_e&&_h(_e.vnode)&&_e.vnode.shapeFlag&256)&&q.a&&wi(q.a,ne),q.isMounted=!0,E=te=le=null}},ce=q.effect=new pv(ve,ra,()=>NS(ge),q.scope),ge=q.update=()=>{ce.dirty&&ce.run()};ge.i=q,ge.id=q.uid,Od(q,!0),ge()},W=(q,E,te)=>{E.component=q;const le=q.vnode.props;q.vnode=E,q.next=null,cfe(q,E.props,le,te),pfe(q,E.children,te),ud(),qN(q),cd()},B=(q,E,te,le,ne,re,ae,ve,ce=!1)=>{const ge=q&&q.children,Re=q?q.shapeFlag:0,We=E.children,{patchFlag:Fe,shapeFlag:Ke}=E;if(Fe>0){if(Fe&128){j(ge,We,te,le,ne,re,ae,ve,ce);return}else if(Fe&256){K(ge,We,te,le,ne,re,ae,ve,ce);return}}Ke&8?(Re&16&&G(ge,ne,re),We!==ge&&c(te,We)):Re&16?Ke&16?j(ge,We,te,le,ne,re,ae,ve,ce):G(ge,ne,re,!0):(Re&8&&c(te,""),Ke&16&&L(We,te,le,ne,re,ae,ve,ce))},K=(q,E,te,le,ne,re,ae,ve,ce)=>{q=q||Yp,E=E||Yp;const ge=q.length,Re=E.length,We=Math.min(ge,Re);let Fe;for(Fe=0;FeRe?G(q,ne,re,!0,!1,We):L(E,te,le,ne,re,ae,ve,ce,We)},j=(q,E,te,le,ne,re,ae,ve,ce)=>{let ge=0;const Re=E.length;let We=q.length-1,Fe=Re-1;for(;ge<=We&&ge<=Fe;){const Ke=q[ge],Ue=E[ge]=ce?ff(E[ge]):Jo(E[ge]);if(sl(Ke,Ue))v(Ke,Ue,te,null,ne,re,ae,ve,ce);else break;ge++}for(;ge<=We&&ge<=Fe;){const Ke=q[We],Ue=E[Fe]=ce?ff(E[Fe]):Jo(E[Fe]);if(sl(Ke,Ue))v(Ke,Ue,te,null,ne,re,ae,ve,ce);else break;We--,Fe--}if(ge>We){if(ge<=Fe){const Ke=Fe+1,Ue=KeFe)for(;ge<=We;)Y(q[ge],ne,re,!0),ge++;else{const Ke=ge,Ue=ge,_e=new Map;for(ge=Ue;ge<=Fe;ge++){const it=E[ge]=ce?ff(E[ge]):Jo(E[ge]);it.key!=null&&_e.set(it.key,ge)}let ye,Le=0;const Ie=Fe-Ue+1;let Qe=!1,ct=0;const Pe=new Array(Ie);for(ge=0;ge=Ie){Y(it,ne,re,!0);continue}let St;if(it.key!=null)St=_e.get(it.key);else for(ye=Ue;ye<=Fe;ye++)if(Pe[ye-Ue]===0&&sl(it,E[ye])){St=ye;break}St===void 0?Y(it,ne,re,!0):(Pe[St-Ue]=ge+1,St>=ct?ct=St:Qe=!0,v(it,E[St],te,null,ne,re,ae,ve,ce),Le++)}const tt=Qe?bfe(Pe):Yp;for(ye=tt.length-1,ge=Ie-1;ge>=0;ge--){const it=Ue+ge,St=E[it],ht=it+1{const{el:re,type:ae,transition:ve,children:ce,shapeFlag:ge}=q;if(ge&6){D(q.component.subTree,E,te,le);return}if(ge&128){q.suspense.move(E,te,le);return}if(ge&64){ae.move(q,E,te,ue);return}if(ae===Ne){r(re,E,te);for(let We=0;Weve.enter(re),ne);else{const{leave:We,delayLeave:Fe,afterLeave:Ke}=ve,Ue=()=>r(re,E,te),_e=()=>{We(re,()=>{Ue(),Ke&&Ke()})};Fe?Fe(re,Ue,_e):_e()}else r(re,E,te)},Y=(q,E,te,le=!1,ne=!1)=>{const{type:re,props:ae,ref:ve,children:ce,dynamicChildren:ge,shapeFlag:Re,patchFlag:We,dirs:Fe,cacheIndex:Ke}=q;if(We===-2&&(ne=!1),ve!=null&&Jb(ve,null,te,q,!0),Ke!=null&&(E.renderCache[Ke]=void 0),Re&256){E.ctx.deactivate(q);return}const Ue=Re&1&&Fe,_e=!_h(q);let ye;if(_e&&(ye=ae&&ae.onVnodeBeforeUnmount)&&Ko(ye,E,q),Re&6)$(q.component,te,le);else{if(Re&128){q.suspense.unmount(te,le);return}Ue&&Yl(q,null,E,"beforeUnmount"),Re&64?q.type.remove(q,E,te,ue,le):ge&&!ge.hasOnce&&(re!==Ne||We>0&&We&64)?G(ge,E,te,!1,!0):(re===Ne&&We&384||!ne&&Re&16)&&G(ce,E,te),le&&Z(q)}(_e&&(ye=ae&&ae.onVnodeUnmounted)||Ue)&&wi(()=>{ye&&Ko(ye,E,q),Ue&&Yl(q,null,E,"unmounted")},te)},Z=q=>{const{type:E,el:te,anchor:le,transition:ne}=q;if(E===Ne){H(te,le);return}if(E===Oh){A(q);return}const re=()=>{i(te),ne&&!ne.persisted&&ne.afterLeave&&ne.afterLeave()};if(q.shapeFlag&1&&ne&&!ne.persisted){const{leave:ae,delayLeave:ve}=ne,ce=()=>ae(te,re);ve?ve(q.el,re,ce):ce()}else re()},H=(q,E)=>{let te;for(;q!==E;)te=d(q),i(q),q=te;i(E)},$=(q,E,te)=>{const{bum:le,scope:ne,update:re,subTree:ae,um:ve,m:ce,a:ge}=q;$b(ce),$b(ge),le&&Hp(le),ne.stop(),re&&(re.active=!1,Y(ae,q,E,te)),ve&&wi(ve,E),wi(()=>{q.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&q.asyncDep&&!q.asyncResolved&&q.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},G=(q,E,te,le=!1,ne=!1,re=0)=>{for(let ae=re;ae{if(q.shapeFlag&6)return de(q.component.subTree);if(q.shapeFlag&128)return q.suspense.next();const E=d(q.anchor||q.el),te=E&&E[WY];return te?d(te):E};let J=!1;const Ae=(q,E,te)=>{q==null?E._vnode&&Y(E._vnode,null,null,!0):v(E._vnode||null,q,E,null,null,null,te),J||(J=!0,qN(),Gb(),J=!1),E._vnode=q},ue={p:v,um:Y,m:D,r:Z,mt:C,mc:L,pc:B,pbc:w,n:de,o:e};let fe,se;return t&&([fe,se]=t(ue)),{render:Ae,hydrate:fe,createApp:lfe(Ae,fe)}}function Ew({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Od({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function YY(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function SO(e,t,n=!1){const r=e.children,i=t.children;if(kt(r)&&kt(i))for(let o=0;o>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function ZY(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ZY(t)}function $b(e){if(e)for(let t=0;txs(QY);function Bv(e,t){return N2(e,null,t)}function KY(e,t){return N2(e,null,{flush:"post"})}function GY(e,t){return N2(e,null,{flush:"sync"})}const wA={};function Lt(e,t,n){return N2(e,t,n)}function N2(e,t,{immediate:n,deep:r,flush:i,once:o,onTrack:a,onTrigger:s}=Gn){if(t&&o){const S=t;t=(...M)=>{S(...M),x()}}const l=gi,u=S=>r===!0?S:Af(S,r===!1?1:void 0);let c,f=!1,d=!1;if(Ir(e)?(c=()=>e.value,f=Zh(e)):iu(e)?(c=()=>u(e),f=!0):kt(e)?(d=!0,f=e.some(S=>iu(S)||Zh(S)),c=()=>e.map(S=>{if(Ir(S))return S.value;if(iu(S))return u(S);if(zt(S))return lc(S,l,2)})):zt(e)?t?c=()=>lc(e,l,2):c=()=>(h&&h(),Da(e,l,3,[p])):c=ra,t&&r){const S=c;c=()=>Af(S())}let h,p=S=>{h=R.onStop=()=>{lc(S,l,4),h=R.onStop=void 0}},v;if(F2)if(p=ra,t?n&&Da(t,l,3,[c(),d?[]:void 0,p]):c(),i==="sync"){const S=HY();v=S.__watcherHandles||(S.__watcherHandles=[])}else return ra;let g=d?new Array(e.length).fill(wA):wA;const m=()=>{if(!(!R.active||!R.dirty))if(t){const S=R.run();(r||f||(d?S.some((M,L)=>ko(M,g[L])):ko(S,g)))&&(h&&h(),Da(t,l,3,[S,g===wA?void 0:d&&g[0]===wA?[]:g,p]),g=S)}else R.run()};m.allowRecurse=!!t;let y;i==="sync"?y=m:i==="post"?y=()=>wi(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),y=()=>NS(m));const R=new pv(c,ra,y),A=oO(),x=()=>{R.stop(),A&&eO(A.effects,R)};return t?n?m():g=R.run():i==="post"?wi(R.run.bind(R),l&&l.suspense):R.run(),v&&v.push(x),x}function xfe(e,t,n){const r=this.proxy,i=Cr(e)?e.includes(".")?zY(r,e):()=>r[e]:e.bind(r,r);let o;zt(t)?o=t:(o=t.handler,n=t);const a=Hh(this),s=N2(i,o.bind(r),n);return a(),s}function zY(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Af(r,t,n)});else if(FB(e)){for(const r in e)Af(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Af(e[r],t,n)}return e}function Sfe(e,t,n=Gn){const r=Ac(),i=vo(t),o=qo(t),a=JY(e,t),s=oY((l,u)=>{let c,f=Gn,d;return GY(()=>{const h=e[t];ko(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){if(!ko(h,c)&&!(f!==Gn&&ko(h,f)))return;const p=r.vnode.props;p&&(t in p||i in p||o in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${o}`in p)||(c=h,u());const v=n.set?n.set(h):h;r.emit(`update:${t}`,v),ko(h,v)&&ko(h,f)&&!ko(v,d)&&u(),f=h,d=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Gn:s,done:!1}:{done:!0}}}},s}const JY=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vo(t)}Modifiers`]||e[`${qo(t)}Modifiers`];function wfe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Gn;let i=n;const o=t.startsWith("update:"),a=o&&JY(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Cr(c)?c.trim():c)),a.number&&(i=n.map(Zb)));let s,l=r[s=Qg(t)]||r[s=Qg(vo(t))];!l&&o&&(l=r[s=Qg(qo(t))]),l&&Da(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Da(u,e,6,i)}}function $Y(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!zt(e)){const l=u=>{const c=$Y(u,t,!0);c&&(s=!0,Dr(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(lr(e)&&r.set(e,null),null):(kt(o)?o.forEach(l=>a[l]=null):Dr(a,o),lr(e)&&r.set(e,a),a)}function VS(e,t){return!e||!k2(t)?!1:(t=t.slice(2).replace(/Once$/,""),Vn(e,t[0].toLowerCase()+t.slice(1))||Vn(e,qo(t))||Vn(e,t))}function GR(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=e,g=Um(e);let m,y;try{if(n.shapeFlag&4){const A=i||r,x=A;m=Jo(u.call(x,A,c,f,h,d,p)),y=s}else{const A=t;m=Jo(A.length>1?A(f,{attrs:s,slots:a,emit:l}):A(f,null)),y=t.props?s:Lfe(s)}}catch(A){Gg.length=0,a0(A,e,1),m=O(Li)}let R=m;if(y&&v!==!1){const A=Object.keys(y),{shapeFlag:x}=R;A.length&&x&7&&(o&&A.some(q_)&&(y=Tfe(y,o)),R=hu(R,y,!1,!0))}return n.dirs&&(R=hu(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&(R.transition=n.transition),m=R,Um(g),m}function Mfe(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||k2(n))&&((t||(t={}))[n]=e[n]);return t},Tfe=(e,t)=>{const n={};for(const r in e)(!q_(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _fe(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?d7(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let F8=0;const Ofe={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(e==null)Pfe(t,n,r,i,o,a,s,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Cfe(e,t,n,r,i,a,s,l,u)}},hydrate:Ife,normalize:Nfe},kfe=Ofe;function Ym(e,t){const n=e.props&&e.props[t];zt(n)&&n()}function Pfe(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=jY(e,i,r,t,f,n,o,a,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,a),d.deps>0?(Ym(e,"onPending"),Ym(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),Jp(d,e.ssFallback)):d.resolve(!1,!0)}function Cfe(e,t,n,r,i,o,a,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:g,isHydrating:m}=f;if(v)f.pendingBranch=d,sl(d,v)?(l(v,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():g&&(m||(l(p,h,n,r,i,null,o,a,s),Jp(f,h)))):(f.pendingId=F8++,m?(f.isHydrating=!1,f.activeBranch=v):u(v,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(l(p,h,n,r,i,null,o,a,s),Jp(f,h))):p&&sl(d,p)?(l(p,d,n,r,i,f,o,a,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(p&&sl(d,p))l(p,d,n,r,i,f,o,a,s),Jp(f,d);else if(Ym(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=F8++,l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:R}=f;y>0?setTimeout(()=>{f.pendingId===R&&f.fallback(h)},y):y===0&&f.fallback(h)}}function jY(e,t,n,r,i,o,a,s,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:g}}=u;let m;const y=Ffe(e);y&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const R=e.props?Qb(e.props.timeout):void 0,A=o,x={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:F8++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(S=!1,M=!1){const{vnode:L,activeBranch:T,pendingBranch:w,pendingId:P,effects:k,parentComponent:N,container:C}=x;let I=!1;x.isHydrating?x.isHydrating=!1:S||(I=T&&w.transition&&w.transition.mode==="out-in",I&&(T.transition.afterLeave=()=>{P===x.pendingId&&(d(w,C,o===A?p(T):o,0),Kb(k))}),T&&(v(T.el)!==x.hiddenContainer&&(o=p(T)),h(T,N,x,!0)),I||d(w,C,o,0)),Jp(x,w),x.pendingBranch=null,x.isInFallback=!1;let F=x.parent,W=!1;for(;F;){if(F.pendingBranch){F.effects.push(...k),W=!0;break}F=F.parent}!W&&!I&&Kb(k),x.effects=[],y&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!M&&t.resolve()),Ym(L,"onResolve")},fallback(S){if(!x.pendingBranch)return;const{vnode:M,activeBranch:L,parentComponent:T,container:w,namespace:P}=x;Ym(M,"onFallback");const k=p(L),N=()=>{x.isInFallback&&(f(null,S,w,k,T,null,P,s,l),Jp(x,S))},C=S.transition&&S.transition.mode==="out-in";C&&(L.transition.afterLeave=N),x.isInFallback=!0,h(L,T,null,!0),C||N()},move(S,M,L){x.activeBranch&&d(x.activeBranch,S,M,L),x.container=S},next(){return x.activeBranch&&p(x.activeBranch)},registerDep(S,M,L){const T=!!x.pendingBranch;T&&x.deps++;const w=S.vnode.el;S.asyncDep.catch(P=>{a0(P,S,0)}).then(P=>{if(S.isUnmounted||x.isUnmounted||x.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:k}=S;V8(S,P,!1),w&&(k.el=w);const N=!w&&S.subTree.el;M(S,k,v(w||S.subTree.el),w?null:p(S.subTree),x,a,L),N&&g(N),wO(S,k.el),T&&--x.deps===0&&x.resolve()})},unmount(S,M){x.isUnmounted=!0,x.activeBranch&&h(x.activeBranch,n,S,M),x.pendingBranch&&h(x.pendingBranch,n,S,M)}};return x}function Ife(e,t,n,r,i,o,a,s,l){const u=t.suspense=jY(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,a);return u.deps===0&&u.resolve(!1,!0),c}function Nfe(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=h7(r?n.default:n),e.ssFallback=r?h7(n.fallback):O(Li)}function h7(e){let t;if(zt(e)){const n=Qh&&e._c;n&&(e._d=!1,U()),e=e(),n&&(e._d=!0,t=ho,eZ())}return kt(e)&&(e=Mfe(e)),e=Jo(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function qY(e,t){t&&t.pendingBranch?kt(e)?t.effects.push(...e):t.effects.push(e):Kb(e)}function Jp(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,wO(r,i))}function Ffe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ne=Symbol.for("v-fgt"),Nf=Symbol.for("v-txt"),Li=Symbol.for("v-cmt"),Oh=Symbol.for("v-stc"),Gg=[];let ho=null;function U(e=!1){Gg.push(ho=e?null:[])}function eZ(){Gg.pop(),ho=Gg[Gg.length-1]||null}let Qh=1;function E8(e){Qh+=e,e<0&&ho&&(ho.hasOnce=!0)}function tZ(e){return e.dynamicChildren=Qh>0?ho||Yp:null,eZ(),Qh>0&&ho&&ho.push(e),e}function ee(e,t,n,r,i,o){return tZ(V(e,t,n,r,i,o,!0))}function Te(e,t,n,r,i){return tZ(O(e,t,n,r,i,!0))}function Kf(e){return e?e.__v_isVNode===!0:!1}function sl(e,t){return e.type===t.type&&e.key===t.key}function Efe(e){}const nZ=({key:e})=>e??null,zR=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Cr(e)||Ir(e)||zt(e)?{i:yi,r:e,k:t,f:!!n}:e:null);function V(e,t=null,n=null,r=0,i=null,o=e===Ne?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nZ(t),ref:t&&zR(t),scopeId:FS,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yi};return s?(MO(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Cr(n)?8:16),Qh>0&&!a&&ho&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ho.push(l),l}const O=Xfe;function Xfe(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===SY)&&(e=Li),Kf(e)){const s=hu(e,t,!0);return n&&MO(s,n),Qh>0&&!o&&ho&&(s.shapeFlag&6?ho[ho.indexOf(e)]=s:ho.push(s)),s.patchFlag=-2,s}if(Qfe(e)&&(e=e.__vccOpts),t){t=rZ(t);let{class:s,style:l}=t;s&&!Cr(s)&&(t.class=Ge(s)),lr(l)&&(cO(l)&&!kt(l)&&(l=Dr({},l)),t.style=we(l))}const a=Cr(e)?1:N8(e)?128:vfe(e)?64:lr(e)?4:zt(e)?2:0;return V(e,t,n,r,i,a,o,!0)}function rZ(e){return e?cO(e)||PY(e)?Dr({},e):e:null}function hu(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?iZ(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&nZ(u),ref:t&&t.ref?n&&o?kt(o)?o.concat(zR(t)):[o,zR(t)]:zR(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hu(e.ssContent),ssFallback:e.ssFallback&&hu(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Hf(c,l.clone(c)),c}function De(e=" ",t=0){return O(Nf,null,e,t)}function Wfe(e,t){const n=O(Oh,null,e);return n.staticCount=t,n}function Ye(e="",t=!1){return t?(U(),Te(Li,null,e)):O(Li,null,e)}function Jo(e){return e==null||typeof e=="boolean"?O(Li):kt(e)?O(Ne,null,e.slice()):typeof e=="object"?ff(e):O(Nf,null,String(e))}function ff(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hu(e)}function MO(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(kt(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),MO(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!PY(t)?t._ctx=yi:i===3&&yi&&(yi.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else zt(t)?(t={default:t,_ctx:yi},n=32):(t=String(t),r&64?(n=16,t=[De(t)]):n=8);e.children=t,e.shapeFlag|=n}function iZ(...e){const t={};for(let n=0;ngi||yi;let jb,X8;{const e=XB(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};jb=t("__VUE_INSTANCE_SETTERS__",n=>gi=n),X8=t("__VUE_SSR_SETTERS__",n=>F2=n)}const Hh=e=>{const t=gi;return jb(e),e.scope.on(),()=>{e.scope.off(),jb(t)}},W8=()=>{gi&&gi.scope.off(),jb(null)};function aZ(e){return e.vnode.shapeFlag&4}let F2=!1;function sZ(e,t=!1,n=!1){t&&X8(t);const{props:r,children:i}=e.vnode,o=aZ(e);ufe(e,r,o,t),hfe(e,i,n);const a=o?Ufe(e,t):void 0;return t&&X8(!1),a}function Ufe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,O8);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?uZ(e):null,o=Hh(e);ud();const a=lc(r,e,0,[e.props,i]);if(cd(),o(),tO(a)){if(a.then(W8,W8),t)return a.then(s=>{V8(e,s,t)}).catch(s=>{a0(s,e,0)});e.asyncDep=a}else V8(e,a,t)}else lZ(e,t)}function V8(e,t,n){zt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:lr(t)&&(e.setupState=hO(t)),lZ(e,n)}let qb,D8;function Bfe(e){qb=e,D8=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Bce))}}const Yfe=()=>!qb;function lZ(e,t,n){const r=e.type;if(!e.render){if(!t&&qb&&!r.render){const i=r.template||RO(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Dr(Dr({isCustomElement:o,delimiters:s},a),l);r.render=qb(i,u)}}e.render=r.render||ra,D8&&D8(e)}{const i=Hh(e);ud();try{nfe(e)}finally{cd(),i()}}}const Zfe={get(e,t){return da(e,"get",""),e[t]}};function uZ(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zfe),slots:e.slots,emit:e.emit,expose:t}}function E2(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hO(IS(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Hg)return Hg[n](e)},has(t,n){return n in t||n in Hg}})):e.proxy}function U8(e,t=!0){return zt(e)?e.displayName||e.name:e.name||t&&e.__name}function Qfe(e){return zt(e)&&"__vccOpts"in e}const Se=(e,t)=>vce(e,t,F2);function cZ(e,t,n){const r=arguments.length;return r===2?lr(t)&&!kt(t)?Kf(t)?O(e,null,[t]):O(e,t):O(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Kf(n)&&(n=[n]),O(e,t,n))}function Hfe(){}function Kfe(e,t,n,r){const i=n[r];if(i&&fZ(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function fZ(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&ho&&ho.push(e),!0}const dZ="3.4.34",Gfe=ra,zfe=_ce,Jfe=fp,$fe=fY,jfe={createComponentInstance:oZ,setupComponent:sZ,renderComponentRoot:GR,setCurrentRenderingInstance:Um,isVNode:Kf,normalizeVNode:Jo,getComponentPublicInstance:E2},qfe=jfe,ede=null,tde=null,nde=null;/** +**/function Lce(e,t){}const Tce={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},_ce={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function lc(e,t,n,r){try{return r?e(...r):e()}catch(i){a0(i,t,n)}}function Da(e,t,n,r){if(zt(e)){const i=lc(e,t,n,r);return i&&tO(i)&&i.catch(o=>{a0(o,t,n)}),i}if(kt(e)){const i=[];for(let o=0;o>>1,i=lo[r],o=Dm(i);oKl&&lo.splice(t,1)}function Kb(e){kt(e)?Gp.push(...e):(!uf||!uf.includes(e,e.allowRecurse?ch+1:ch))&&Gp.push(e),uY()}function qN(e,t,n=Vm?Kl+1:0){for(;nDm(n)-Dm(r));if(Gp.length=0,uf){uf.push(...t);return}for(uf=t,ch=0;che.id==null?1/0:e.id,Cce=(e,t)=>{const n=Dm(e)-Dm(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function cY(e){T8=!1,Vm=!0,lo.sort(Cce);try{for(Kl=0;Klfp.emit(i,...o)),yA=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{fY(o,t)}),setTimeout(()=>{fp||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,yA=[])},3e3)):yA=[]}let yi=null,FS=null;function Um(e){const t=yi;return yi=e,FS=e&&e.type.__scopeId||null,t}function $t(e){FS=e}function jt(){FS=null}const Ice=e=>ie;function ie(e,t=yi,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&E8(-1);const o=Um(t);let a;try{a=e(...i)}finally{Um(o),r._d&&E8(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function ze(e,t){if(yi===null)return e;const n=E2(yi),r=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),s0(()=>{e.isUnmounting=!0}),e}const rs=[Function,Array],gO={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rs,onEnter:rs,onAfterEnter:rs,onEnterCancelled:rs,onBeforeLeave:rs,onLeave:rs,onAfterLeave:rs,onLeaveCancelled:rs,onBeforeAppear:rs,onAppear:rs,onAfterAppear:rs,onAppearCancelled:rs},dY=e=>{const t=e.subTree;return t.component?dY(t.component):t},Nce={name:"BaseTransition",props:gO,setup(e,{slots:t}){const n=Ac(),r=vO();return()=>{const i=t.default&&ES(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const d of i)if(d.type!==Li){o=d;break}}const a=Cn(e),{mode:s}=a;if(r.isLeaving)return Cw(o);const l=e7(o);if(!l)return Cw(o);let u=vv(l,a,r,n,d=>u=d);Hf(l,u);const c=n.subTree,f=c&&e7(c);if(f&&f.type!==Li&&!sl(l,f)&&dY(n).type!==Li){const d=vv(f,a,r,n);if(Hf(f,d),s==="out-in"&&l.type!==Li)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Cw(o);s==="in-out"&&l.type!==Li&&(d.delayLeave=(h,p,v)=>{const g=pY(r,f);g[String(f.key)]=f,h[cf]=()=>{p(),h[cf]=void 0,delete u.delayedLeave},u.delayedLeave=v})}return o}}},hY=Nce;function pY(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function vv(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:g,onAppear:m,onAfterAppear:y,onAppearCancelled:R}=t,A=String(e.key),x=pY(n,e),S=(T,w)=>{T&&Da(T,r,9,w)},M=(T,w)=>{const P=w[1];S(T,w),kt(T)?T.every(k=>k.length<=1)&&P():T.length<=1&&P()},L={mode:a,persisted:s,beforeEnter(T){let w=l;if(!n.isMounted)if(o)w=g||l;else return;T[cf]&&T[cf](!0);const P=x[A];P&&sl(e,P)&&P.el[cf]&&P.el[cf](),S(w,[T])},enter(T){let w=u,P=c,k=f;if(!n.isMounted)if(o)w=m||u,P=y||c,k=R||f;else return;let N=!1;const C=T[AA]=I=>{N||(N=!0,I?S(k,[T]):S(P,[T]),L.delayedLeave&&L.delayedLeave(),T[AA]=void 0)};w?M(w,[T,C]):C()},leave(T,w){const P=String(e.key);if(T[AA]&&T[AA](!0),n.isUnmounting)return w();S(d,[T]);let k=!1;const N=T[cf]=C=>{k||(k=!0,w(),C?S(v,[T]):S(p,[T]),T[cf]=void 0,x[P]===e&&delete x[P])};x[P]=e,h?M(h,[T,N]):N()},clone(T){const w=vv(T,t,n,r,i);return i&&i(w),w}};return L}function Cw(e){if(I2(e))return e=hu(e),e.children=null,e}function e7(e){if(!I2(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&zt(n.default))return n.default()}}function Hf(e,t){e.shapeFlag&6&&e.component?Hf(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ES(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Fce(e){zt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:a=!0,onError:s}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let h;return l||(h=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,g)=>{s(p,()=>v(f()),()=>g(p),c+1)});throw p}).then(p=>h!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Ee({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const h=gi;if(u)return()=>Iw(u,h);const p=y=>{l=null,a0(y,h,13,!r)};if(a&&h.suspense||F2)return d().then(y=>()=>Iw(y,h)).catch(y=>(p(y),()=>r?O(r,{error:y}):null));const v=he(!1),g=he(),m=he(!!i);return i&&setTimeout(()=>{m.value=!1},i),o!=null&&setTimeout(()=>{if(!v.value&&!g.value){const y=new Error(`Async component timed out after ${o}ms.`);p(y),g.value=y}},o),d().then(()=>{v.value=!0,h.parent&&I2(h.parent.vnode)&&(h.parent.effect.dirty=!0,NS(h.parent.update))}).catch(y=>{p(y),g.value=y}),()=>{if(v.value&&u)return Iw(u,h);if(g.value&&r)return O(r,{error:g.value});if(n&&!m.value)return O(n)}}})}function Iw(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=O(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const I2=e=>e.type.__isKeepAlive,Ece={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ac(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(y,R,A,x,S)=>{const M=y.component;u(y,R,A,0,s),l(M.vnode,y,R,A,M,s,x,y.slotScopeIds,S),wi(()=>{M.isDeactivated=!1,M.a&&Hp(M.a);const L=y.props&&y.props.onVnodeMounted;L&&Ko(L,M.parent,y)},s)},r.deactivate=y=>{const R=y.component;$b(R.m),$b(R.a),u(y,d,null,1,s),wi(()=>{R.da&&Hp(R.da);const A=y.props&&y.props.onVnodeUnmounted;A&&Ko(A,R.parent,y),R.isDeactivated=!0},s)};function h(y){Nw(y),c(y,n,s,!0)}function p(y){i.forEach((R,A)=>{const x=U8(R.type);x&&(!y||!y(x))&&v(A)})}function v(y){const R=i.get(y);!a||!sl(R,a)?h(R):a&&Nw(a),i.delete(y),o.delete(y)}Lt(()=>[e.include,e.exclude],([y,R])=>{y&&p(A=>cg(y,A)),R&&p(A=>!cg(R,A))},{flush:"post",deep:!0});let g=null;const m=()=>{g!=null&&(N8(n.subTree.type)?wi(()=>{i.set(g,RA(n.subTree))},n.subTree.suspense):i.set(g,RA(n.subTree)))};return Wt(m),WS(m),s0(()=>{i.forEach(y=>{const{subTree:R,suspense:A}=n,x=RA(R);if(y.type===x.type&&y.key===x.key){Nw(x);const S=x.component.da;S&&wi(S,A);return}h(y)})}),()=>{if(g=null,!t.default)return null;const y=t.default(),R=y[0];if(y.length>1)return a=null,y;if(!Kf(R)||!(R.shapeFlag&4)&&!(R.shapeFlag&128))return a=null,R;let A=RA(R);const x=A.type,S=U8(_h(A)?A.type.__asyncResolved||{}:x),{include:M,exclude:L,max:T}=e;if(M&&(!S||!cg(M,S))||L&&S&&cg(L,S))return a=A,R;const w=A.key==null?x:A.key,P=i.get(w);return A.el&&(A=hu(A),R.shapeFlag&128&&(R.ssContent=A)),g=w,P?(A.el=P.el,A.component=P.component,A.transition&&Hf(A,A.transition),A.shapeFlag|=512,o.delete(w),o.add(w)):(o.add(w),T&&o.size>parseInt(T,10)&&v(o.values().next().value)),A.shapeFlag|=256,a=A,N8(R.type)?R:A}}},Xce=Ece;function cg(e,t){return kt(e)?e.some(n=>cg(n,t)):Cr(e)?e.split(",").includes(t):Cue(e)?e.test(t):!1}function vY(e,t){mY(e,"a",t)}function gY(e,t){mY(e,"da",t)}function mY(e,t,n=gi){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(XS(t,r,n),n){let i=n.parent;for(;i&&i.parent;)I2(i.parent.vnode)&&Wce(r,t,n,i),i=i.parent}}function Wce(e,t,n,r){const i=XS(t,e,r,!0);En(()=>{eO(r[t],i)},n)}function Nw(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function RA(e){return e.shapeFlag&128?e.ssContent:e}function XS(e,t,n=gi,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{ud();const s=Hh(n),l=Da(t,n,e,a);return s(),cd(),l});return r?i.unshift(o):i.push(o),o}}const yc=e=>(t,n=gi)=>{(!F2||e==="sp")&&XS(e,(...r)=>t(...r),n)},mO=yc("bm"),Wt=yc("m"),yY=yc("bu"),WS=yc("u"),s0=yc("bum"),En=yc("um"),AY=yc("sp"),RY=yc("rtg"),bY=yc("rtc");function xY(e,t=gi){XS("ec",e,t)}const yO="components",Vce="directives";function xe(e,t){return AO(yO,e,!0,t)||e}const SY=Symbol.for("v-ndc");function xu(e){return Cr(e)?AO(yO,e,!1)||e:e||SY}function _n(e){return AO(Vce,e)}function AO(e,t,n=!0,r=!1){const i=yi||gi;if(i){const o=i.type;if(e===yO){const s=U8(o,!1);if(s&&(s===t||s===vo(t)||s===P2(vo(t))))return o}const a=t7(i[e]||o[e],t)||t7(i.appContext[e],t);return!a&&r?o:a}}function t7(e,t){return e&&(e[t]||e[vo(t)]||e[P2(vo(t))])}function Je(e,t,n,r){let i;const o=n&&n[r];if(kt(e)||Cr(e)){i=new Array(e.length);for(let a=0,s=e.length;at(a,s,void 0,o&&o[s]));else{const a=Object.keys(e);i=new Array(a.length);for(let s=0,l=a.length;s{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function ar(e,t,n={},r,i){if(yi.isCE||yi.parent&&_h(yi.parent)&&yi.parent.isCE)return t!=="default"&&(n.name=t),O("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),U();const a=o&&wY(o(n)),s=Te(Ne,{key:(n.key||a&&a.key||`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function wY(e){return e.some(t=>Kf(t)?!(t.type===Li||t.type===Ne&&!wY(t.children)):!0)?e:null}function Uce(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Qg(r)]=e[r];return n}const _8=e=>e?aZ(e)?E2(e):_8(e.parent):null,Hg=Dr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_8(e.parent),$root:e=>_8(e.root),$emit:e=>e.emit,$options:e=>RO(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,NS(e.update)}),$nextTick:e=>e.n||(e.n=hr.bind(e.proxy)),$watch:e=>xfe.bind(e)}),Fw=(e,t)=>e!==Gn&&!e.__isScriptSetup&&Vn(e,t),O8={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Fw(r,t))return a[t]=1,r[t];if(i!==Gn&&Vn(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&Vn(u,t))return a[t]=3,o[t];if(n!==Gn&&Vn(n,t))return a[t]=4,n[t];k8&&(a[t]=0)}}const c=Hg[t];let f,d;if(c)return t==="$attrs"&&da(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Gn&&Vn(n,t))return a[t]=4,n[t];if(d=l.config.globalProperties,Vn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Fw(i,t)?(i[t]=n,!0):r!==Gn&&Vn(r,t)?(r[t]=n,!0):Vn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||e!==Gn&&Vn(e,a)||Fw(t,a)||(s=o[0])&&Vn(s,a)||Vn(r,a)||Vn(Hg,a)||Vn(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Vn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Bce=Dr({},O8,{get(e,t){if(t!==Symbol.unscopables)return O8.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Xue(t)}});function Yce(){return null}function Zce(){return null}function Qce(e){}function Hce(e){}function Kce(){return null}function Gce(){}function zce(e,t){return null}function Jce(){return MY().slots}function $ce(){return MY().attrs}function MY(){const e=Ac();return e.setupContext||(e.setupContext=uZ(e))}function Bm(e){return kt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function jce(e,t){const n=Bm(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?kt(i)||zt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function qce(e,t){return!e||!t?e||t:kt(e)&&kt(t)?e.concat(t):Dr({},Bm(e),Bm(t))}function efe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function tfe(e){const t=Ac();let n=e();return W8(),tO(n)&&(n=n.catch(r=>{throw Hh(t),r})),[n,()=>Hh(t)]}let k8=!0;function nfe(e){const t=RO(e),n=e.proxy,r=e.ctx;k8=!1,t.beforeCreate&&n7(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:R,unmounted:A,render:x,renderTracked:S,renderTriggered:M,errorCaptured:L,serverPrefetch:T,expose:w,inheritAttrs:P,components:k,directives:N,filters:C}=t;if(u&&rfe(u,r,null),a)for(const W in a){const B=a[W];zt(B)&&(r[W]=B.bind(n))}if(i){const W=i.call(n,n);lr(W)&&(e.data=C2(W))}if(k8=!0,o)for(const W in o){const B=o[W],K=zt(B)?B.bind(n,n):zt(B.get)?B.get.bind(n,n):ra,j=!zt(B)&&zt(B.set)?B.set.bind(n):ra,D=Se({get:K,set:j});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>D.value,set:Y=>D.value=Y})}if(s)for(const W in s)LY(s[W],r,n,W);if(l){const W=zt(l)?l.call(n):l;Reflect.ownKeys(W).forEach(B=>{l0(B,W[B])})}c&&n7(c,e,"c");function F(W,B){kt(B)?B.forEach(K=>W(K.bind(n))):B&&W(B.bind(n))}if(F(mO,f),F(Wt,d),F(yY,h),F(WS,p),F(vY,v),F(gY,g),F(xY,L),F(bY,S),F(RY,M),F(s0,y),F(En,A),F(AY,T),kt(w))if(w.length){const W=e.exposed||(e.exposed={});w.forEach(B=>{Object.defineProperty(W,B,{get:()=>n[B],set:K=>n[B]=K})})}else e.exposed||(e.exposed={});x&&e.render===ra&&(e.render=x),P!=null&&(e.inheritAttrs=P),k&&(e.components=k),N&&(e.directives=N)}function rfe(e,t,n=ra){kt(e)&&(e=P8(e));for(const r in e){const i=e[r];let o;lr(i)?"default"in i?o=xs(i.from||r,i.default,!0):o=xs(i.from||r):o=xs(i),Ir(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function n7(e,t,n){Da(kt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function LY(e,t,n,r){const i=r.includes(".")?zY(n,r):()=>n[r];if(Cr(e)){const o=t[e];zt(o)&&Lt(i,o)}else if(zt(e))Lt(i,e.bind(n));else if(lr(e))if(kt(e))e.forEach(o=>LY(o,t,n,r));else{const o=zt(e.handler)?e.handler.bind(n):t[e.handler];zt(o)&&Lt(i,o,e)}}function RO(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>zb(l,u,a,!0)),zb(l,t,a)),lr(t)&&o.set(t,l),l}function zb(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&zb(e,o,n,!0),i&&i.forEach(a=>zb(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=ife[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const ife={data:r7,props:i7,emits:i7,methods:fg,computed:fg,beforeCreate:wo,created:wo,beforeMount:wo,mounted:wo,beforeUpdate:wo,updated:wo,beforeDestroy:wo,beforeUnmount:wo,destroyed:wo,unmounted:wo,activated:wo,deactivated:wo,errorCaptured:wo,serverPrefetch:wo,components:fg,directives:fg,watch:afe,provide:r7,inject:ofe};function r7(e,t){return t?e?function(){return Dr(zt(e)?e.call(this,this):e,zt(t)?t.call(this,this):t)}:t:e}function ofe(e,t){return fg(P8(e),P8(t))}function P8(e){if(kt(e)){const t={};for(let n=0;n1)return n&&zt(t)?t.call(r&&r.proxy):t}}function _Y(){return!!(gi||yi||zp)}const OY={},kY=()=>Object.create(OY),PY=e=>Object.getPrototypeOf(e)===OY;function ufe(e,t,n,r=!1){const i={},o=kY();e.propsDefaults=Object.create(null),CY(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:nY(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function cfe(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=Cn(i),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=IY(f,t,!0);Dr(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return lr(e)&&r.set(e,Yp),Yp;if(kt(o))for(let c=0;c-1,h[1]=v<0||p-1||Vn(h,"default"))&&s.push(f)}}}const u=[a,s];return lr(e)&&r.set(e,u),u}function o7(e){return e[0]!=="$"&&!Qp(e)}function a7(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function s7(e,t){return a7(e)===a7(t)}function l7(e,t){return kt(t)?t.findIndex(n=>s7(n,e)):zt(t)&&s7(t,e)?0:-1}const NY=e=>e[0]==="_"||e==="$stable",bO=e=>kt(e)?e.map(Jo):[Jo(e)],dfe=(e,t,n)=>{if(t._n)return t;const r=ie((...i)=>bO(t(...i)),n);return r._c=!1,r},FY=(e,t,n)=>{const r=e._ctx;for(const i in e){if(NY(i))continue;const o=e[i];if(zt(o))t[i]=dfe(i,o,r);else if(o!=null){const a=bO(o);t[i]=()=>a}}},EY=(e,t)=>{const n=bO(t);e.slots.default=()=>n},XY=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},hfe=(e,t,n)=>{const r=e.slots=kY();if(e.vnode.shapeFlag&32){const i=t._;i?(XY(r,t,n),n&&EB(r,"_",i,!0)):FY(t,r)}else t&&EY(e,t)},pfe=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=Gn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:XY(i,t,n):(o=!t.$stable,FY(t,i)),a=t}else t&&(EY(e,t),a={default:1});if(o)for(const s in i)!NY(s)&&a[s]==null&&delete i[s]};function Jb(e,t,n,r,i=!1){if(kt(e)){e.forEach((d,h)=>Jb(d,t&&(kt(t)?t[h]:t),n,r,i));return}if(_h(r)&&!i)return;const o=r.shapeFlag&4?E2(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Gn?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(Cr(u)?(c[u]=null,Vn(f,u)&&(f[u]=null)):Ir(u)&&(u.value=null)),zt(l))lc(l,s,12,[a,c]);else{const d=Cr(l),h=Ir(l);if(d||h){const p=()=>{if(e.f){const v=d?Vn(f,l)?f[l]:c[l]:l.value;i?kt(v)&&eO(v,o):kt(v)?v.includes(o)||v.push(o):d?(c[l]=[o],Vn(f,l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else d?(c[l]=a,Vn(f,l)&&(f[l]=a)):h&&(l.value=a,e.k&&(c[e.k]=a))};a?(p.id=-1,wi(p,n)):p()}}}const WY=Symbol("_vte"),vfe=e=>e.__isTeleport,Kg=e=>e&&(e.disabled||e.disabled===""),u7=e=>typeof SVGElement<"u"&&e instanceof SVGElement,c7=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,I8=(e,t)=>{const n=e&&e.to;return Cr(n)?t?t(n):null:n},gfe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,m=Kg(t.props);let{shapeFlag:y,children:R,dynamicChildren:A}=t;if(e==null){const x=t.el=v(""),S=t.anchor=v(""),M=t.target=I8(t.props,p),L=t.targetStart=v(""),T=t.targetAnchor=v("");h(x,n,r),h(S,n,r),L[WY]=T,M&&(h(L,M),h(T,M),a==="svg"||u7(M)?a="svg":(a==="mathml"||c7(M))&&(a="mathml"));const w=(P,k)=>{y&16&&c(R,P,k,i,o,a,s,l)};m?w(n,S):M&&w(M,T)}else{t.el=e.el,t.targetStart=e.targetStart;const x=t.anchor=e.anchor,S=t.target=e.target,M=t.targetAnchor=e.targetAnchor,L=Kg(e.props),T=L?n:S,w=L?x:M;if(a==="svg"||u7(S)?a="svg":(a==="mathml"||c7(S))&&(a="mathml"),A?(d(e.dynamicChildren,A,T,i,o,a,s),SO(e,t,!0)):l||f(e,t,T,w,i,o,a,s,!1),m)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):bA(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=I8(t.props,p);P&&bA(t,P,null,u,0)}else L&&bA(t,S,M,u,1)}VY(t)},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(i(u),i(c)),o&&i(l),a&16){const h=o||!Kg(d);for(let p=0;p{f7||(console.error("Hydration completed but contains mismatches."),f7=!0)},yfe=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Afe=e=>e.namespaceURI.includes("MathML"),xA=e=>{if(yfe(e))return"svg";if(Afe(e))return"mathml"},SA=e=>e.nodeType===8;function Rfe(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:u}}=e,c=(R,A)=>{if(!A.hasChildNodes()){n(null,R,A),Gb(),A._vnode=R;return}f(A.firstChild,R,null,null,null),Gb(),A._vnode=R},f=(R,A,x,S,M,L=!1)=>{L=L||!!A.dynamicChildren;const T=SA(R)&&R.data==="[",w=()=>v(R,A,x,S,M,T),{type:P,ref:k,shapeFlag:N,patchFlag:C}=A;let I=R.nodeType;A.el=R,C===-2&&(L=!1,A.dynamicChildren=null);let F=null;switch(P){case Nf:I!==3?A.children===""?(l(A.el=i(""),a(R),R),F=R):F=w():(R.data!==A.children&&(E0(),R.data=A.children),F=o(R));break;case Li:y(R)?(F=o(R),m(A.el=R.content.firstChild,R,x)):I!==8||T?F=w():F=o(R);break;case Oh:if(T&&(R=o(R),I=R.nodeType),I===1||I===3){F=R;const W=!A.children.length;for(let B=0;B{L=L||!!A.dynamicChildren;const{type:T,props:w,patchFlag:P,shapeFlag:k,dirs:N,transition:C}=A,I=T==="input"||T==="option";if(I||P!==-1){N&&Yl(A,null,x,"created");let F=!1;if(y(R)){F=YY(S,C)&&x&&x.vnode.props&&x.vnode.props.appear;const B=R.content.firstChild;F&&C.beforeEnter(B),m(B,R,x),A.el=R=B}if(k&16&&!(w&&(w.innerHTML||w.textContent))){let B=h(R.firstChild,A,R,x,S,M,L);for(;B;){E0();const K=B;B=B.nextSibling,s(K)}}else k&8&&R.textContent!==A.children&&(E0(),R.textContent=A.children);if(w){if(I||!L||P&48)for(const B in w)(I&&(B.endsWith("value")||B==="indeterminate")||k2(B)&&!Qp(B)||B[0]===".")&&r(R,B,null,w[B],void 0,x);else if(w.onClick)r(R,"onClick",null,w.onClick,void 0,x);else if(P&4&&iu(w.style))for(const B in w.style)w.style[B]}let W;(W=w&&w.onVnodeBeforeMount)&&Ko(W,x,A),N&&Yl(A,null,x,"beforeMount"),((W=w&&w.onVnodeMounted)||N||F)&&qY(()=>{W&&Ko(W,x,A),F&&C.enter(R),N&&Yl(A,null,x,"mounted")},S)}return R.nextSibling},h=(R,A,x,S,M,L,T)=>{T=T||!!A.dynamicChildren;const w=A.children,P=w.length;for(let k=0;k{const{slotScopeIds:T}=A;T&&(M=M?M.concat(T):T);const w=a(R),P=h(o(R),A,w,x,S,M,L);return P&&SA(P)&&P.data==="]"?o(A.anchor=P):(E0(),l(A.anchor=u("]"),w,P),P)},v=(R,A,x,S,M,L)=>{if(E0(),A.el=null,L){const P=g(R);for(;;){const k=o(R);if(k&&k!==P)s(k);else break}}const T=o(R),w=a(R);return s(R),n(null,A,w,T,x,S,xA(w),M),T},g=(R,A="[",x="]")=>{let S=0;for(;R;)if(R=o(R),R&&SA(R)&&(R.data===A&&S++,R.data===x)){if(S===0)return o(R);S--}return R},m=(R,A,x)=>{const S=A.parentNode;S&&S.replaceChild(R,A);let M=x;for(;M;)M.vnode.el===A&&(M.vnode.el=M.subTree.el=R),M=M.parent},y=R=>R.nodeType===1&&R.tagName.toLowerCase()==="template";return[c,f]}const wi=qY;function DY(e){return BY(e)}function UY(e){return BY(e,Rfe)}function BY(e,t){const n=XB();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=ra,insertStaticContent:p}=e,v=(q,E,te,le=null,ne=null,re=null,ae=void 0,ve=null,ce=!!E.dynamicChildren)=>{if(q===E)return;q&&!sl(q,E)&&(le=de(q),Y(q,ne,re,!0),q=null),E.patchFlag===-2&&(ce=!1,E.dynamicChildren=null);const{type:ge,ref:Re,shapeFlag:We}=E;switch(ge){case Nf:g(q,E,te,le);break;case Li:m(q,E,te,le);break;case Oh:q==null&&y(E,te,le,ae);break;case Ne:k(q,E,te,le,ne,re,ae,ve,ce);break;default:We&1?x(q,E,te,le,ne,re,ae,ve,ce):We&6?N(q,E,te,le,ne,re,ae,ve,ce):(We&64||We&128)&&ge.process(q,E,te,le,ne,re,ae,ve,ce,ue)}Re!=null&&ne&&Jb(Re,q&&q.ref,re,E||q,!E)},g=(q,E,te,le)=>{if(q==null)r(E.el=s(E.children),te,le);else{const ne=E.el=q.el;E.children!==q.children&&u(ne,E.children)}},m=(q,E,te,le)=>{q==null?r(E.el=l(E.children||""),te,le):E.el=q.el},y=(q,E,te,le)=>{[q.el,q.anchor]=p(q.children,E,te,le,q.el,q.anchor)},R=({el:q,anchor:E},te,le)=>{let ne;for(;q&&q!==E;)ne=d(q),r(q,te,le),q=ne;r(E,te,le)},A=({el:q,anchor:E})=>{let te;for(;q&&q!==E;)te=d(q),i(q),q=te;i(E)},x=(q,E,te,le,ne,re,ae,ve,ce)=>{E.type==="svg"?ae="svg":E.type==="math"&&(ae="mathml"),q==null?S(E,te,le,ne,re,ae,ve,ce):T(q,E,ne,re,ae,ve,ce)},S=(q,E,te,le,ne,re,ae,ve)=>{let ce,ge;const{props:Re,shapeFlag:We,transition:Fe,dirs:Ke}=q;if(ce=q.el=a(q.type,re,Re&&Re.is,Re),We&8?c(ce,q.children):We&16&&L(q.children,ce,null,le,ne,Ew(q,re),ae,ve),Ke&&Yl(q,null,le,"created"),M(ce,q,q.scopeId,ae,le),Re){for(const _e in Re)_e!=="value"&&!Qp(_e)&&o(ce,_e,null,Re[_e],re,le);"value"in Re&&o(ce,"value",null,Re.value,re),(ge=Re.onVnodeBeforeMount)&&Ko(ge,le,q)}Ke&&Yl(q,null,le,"beforeMount");const Ue=YY(ne,Fe);Ue&&Fe.beforeEnter(ce),r(ce,E,te),((ge=Re&&Re.onVnodeMounted)||Ue||Ke)&&wi(()=>{ge&&Ko(ge,le,q),Ue&&Fe.enter(ce),Ke&&Yl(q,null,le,"mounted")},ne)},M=(q,E,te,le,ne)=>{if(te&&h(q,te),le)for(let re=0;re{for(let ge=ce;ge{const ve=E.el=q.el;let{patchFlag:ce,dynamicChildren:ge,dirs:Re}=E;ce|=q.patchFlag&16;const We=q.props||Gn,Fe=E.props||Gn;let Ke;if(te&&Od(te,!1),(Ke=Fe.onVnodeBeforeUpdate)&&Ko(Ke,te,E,q),Re&&Yl(E,q,te,"beforeUpdate"),te&&Od(te,!0),(We.innerHTML&&Fe.innerHTML==null||We.textContent&&Fe.textContent==null)&&c(ve,""),ge?w(q.dynamicChildren,ge,ve,te,le,Ew(E,ne),re):ae||B(q,E,ve,null,te,le,Ew(E,ne),re,!1),ce>0){if(ce&16)P(ve,We,Fe,te,ne);else if(ce&2&&We.class!==Fe.class&&o(ve,"class",null,Fe.class,ne),ce&4&&o(ve,"style",We.style,Fe.style,ne),ce&8){const Ue=E.dynamicProps;for(let _e=0;_e{Ke&&Ko(Ke,te,E,q),Re&&Yl(E,q,te,"updated")},le)},w=(q,E,te,le,ne,re,ae)=>{for(let ve=0;ve{if(E!==te){if(E!==Gn)for(const re in E)!Qp(re)&&!(re in te)&&o(q,re,E[re],null,ne,le);for(const re in te){if(Qp(re))continue;const ae=te[re],ve=E[re];ae!==ve&&re!=="value"&&o(q,re,ve,ae,ne,le)}"value"in te&&o(q,"value",E.value,te.value,ne)}},k=(q,E,te,le,ne,re,ae,ve,ce)=>{const ge=E.el=q?q.el:s(""),Re=E.anchor=q?q.anchor:s("");let{patchFlag:We,dynamicChildren:Fe,slotScopeIds:Ke}=E;Ke&&(ve=ve?ve.concat(Ke):Ke),q==null?(r(ge,te,le),r(Re,te,le),L(E.children||[],te,Re,ne,re,ae,ve,ce)):We>0&&We&64&&Fe&&q.dynamicChildren?(w(q.dynamicChildren,Fe,te,ne,re,ae,ve),(E.key!=null||ne&&E===ne.subTree)&&SO(q,E,!0)):B(q,E,te,Re,ne,re,ae,ve,ce)},N=(q,E,te,le,ne,re,ae,ve,ce)=>{E.slotScopeIds=ve,q==null?E.shapeFlag&512?ne.ctx.activate(E,te,le,ae,ce):C(E,te,le,ne,re,ae,ce):I(q,E,ce)},C=(q,E,te,le,ne,re,ae)=>{const ve=q.component=oZ(q,le,ne);if(I2(q)&&(ve.ctx.renderer=ue),sZ(ve,!1,ae),ve.asyncDep){if(ne&&ne.registerDep(ve,F,ae),!q.el){const ce=ve.subTree=O(Li);m(null,ce,E,te)}}else F(ve,q,E,te,ne,re,ae)},I=(q,E,te)=>{const le=E.component=q.component;if(_fe(q,E,te))if(le.asyncDep&&!le.asyncResolved){W(le,E,te);return}else le.next=E,Pce(le.update),le.effect.dirty=!0,le.update();else E.el=q.el,le.vnode=E},F=(q,E,te,le,ne,re,ae)=>{const ve=()=>{if(q.isMounted){let{next:Re,bu:We,u:Fe,parent:Ke,vnode:Ue}=q;{const Qe=ZY(q);if(Qe){Re&&(Re.el=Ue.el,W(q,Re,ae)),Qe.asyncDep.then(()=>{q.isUnmounted||ve()});return}}let _e=Re,ye;Od(q,!1),Re?(Re.el=Ue.el,W(q,Re,ae)):Re=Ue,We&&Hp(We),(ye=Re.props&&Re.props.onVnodeBeforeUpdate)&&Ko(ye,Ke,Re,Ue),Od(q,!0);const Le=GR(q),Ie=q.subTree;q.subTree=Le,v(Ie,Le,f(Ie.el),de(Ie),q,ne,re),Re.el=Le.el,_e===null&&wO(q,Le.el),Fe&&wi(Fe,ne),(ye=Re.props&&Re.props.onVnodeUpdated)&&wi(()=>Ko(ye,Ke,Re,Ue),ne)}else{let Re;const{el:We,props:Fe}=E,{bm:Ke,m:Ue,parent:_e}=q,ye=_h(E);if(Od(q,!1),Ke&&Hp(Ke),!ye&&(Re=Fe&&Fe.onVnodeBeforeMount)&&Ko(Re,_e,E),Od(q,!0),We&&se){const Le=()=>{q.subTree=GR(q),se(We,q.subTree,q,ne,null)};ye?E.type.__asyncLoader().then(()=>!q.isUnmounted&&Le()):Le()}else{const Le=q.subTree=GR(q);v(null,Le,te,le,q,ne,re),E.el=Le.el}if(Ue&&wi(Ue,ne),!ye&&(Re=Fe&&Fe.onVnodeMounted)){const Le=E;wi(()=>Ko(Re,_e,Le),ne)}(E.shapeFlag&256||_e&&_h(_e.vnode)&&_e.vnode.shapeFlag&256)&&q.a&&wi(q.a,ne),q.isMounted=!0,E=te=le=null}},ce=q.effect=new pv(ve,ra,()=>NS(ge),q.scope),ge=q.update=()=>{ce.dirty&&ce.run()};ge.i=q,ge.id=q.uid,Od(q,!0),ge()},W=(q,E,te)=>{E.component=q;const le=q.vnode.props;q.vnode=E,q.next=null,cfe(q,E.props,le,te),pfe(q,E.children,te),ud(),qN(q),cd()},B=(q,E,te,le,ne,re,ae,ve,ce=!1)=>{const ge=q&&q.children,Re=q?q.shapeFlag:0,We=E.children,{patchFlag:Fe,shapeFlag:Ke}=E;if(Fe>0){if(Fe&128){j(ge,We,te,le,ne,re,ae,ve,ce);return}else if(Fe&256){K(ge,We,te,le,ne,re,ae,ve,ce);return}}Ke&8?(Re&16&&G(ge,ne,re),We!==ge&&c(te,We)):Re&16?Ke&16?j(ge,We,te,le,ne,re,ae,ve,ce):G(ge,ne,re,!0):(Re&8&&c(te,""),Ke&16&&L(We,te,le,ne,re,ae,ve,ce))},K=(q,E,te,le,ne,re,ae,ve,ce)=>{q=q||Yp,E=E||Yp;const ge=q.length,Re=E.length,We=Math.min(ge,Re);let Fe;for(Fe=0;FeRe?G(q,ne,re,!0,!1,We):L(E,te,le,ne,re,ae,ve,ce,We)},j=(q,E,te,le,ne,re,ae,ve,ce)=>{let ge=0;const Re=E.length;let We=q.length-1,Fe=Re-1;for(;ge<=We&&ge<=Fe;){const Ke=q[ge],Ue=E[ge]=ce?ff(E[ge]):Jo(E[ge]);if(sl(Ke,Ue))v(Ke,Ue,te,null,ne,re,ae,ve,ce);else break;ge++}for(;ge<=We&&ge<=Fe;){const Ke=q[We],Ue=E[Fe]=ce?ff(E[Fe]):Jo(E[Fe]);if(sl(Ke,Ue))v(Ke,Ue,te,null,ne,re,ae,ve,ce);else break;We--,Fe--}if(ge>We){if(ge<=Fe){const Ke=Fe+1,Ue=KeFe)for(;ge<=We;)Y(q[ge],ne,re,!0),ge++;else{const Ke=ge,Ue=ge,_e=new Map;for(ge=Ue;ge<=Fe;ge++){const it=E[ge]=ce?ff(E[ge]):Jo(E[ge]);it.key!=null&&_e.set(it.key,ge)}let ye,Le=0;const Ie=Fe-Ue+1;let Qe=!1,ct=0;const Pe=new Array(Ie);for(ge=0;ge=Ie){Y(it,ne,re,!0);continue}let St;if(it.key!=null)St=_e.get(it.key);else for(ye=Ue;ye<=Fe;ye++)if(Pe[ye-Ue]===0&&sl(it,E[ye])){St=ye;break}St===void 0?Y(it,ne,re,!0):(Pe[St-Ue]=ge+1,St>=ct?ct=St:Qe=!0,v(it,E[St],te,null,ne,re,ae,ve,ce),Le++)}const tt=Qe?bfe(Pe):Yp;for(ye=tt.length-1,ge=Ie-1;ge>=0;ge--){const it=Ue+ge,St=E[it],ht=it+1{const{el:re,type:ae,transition:ve,children:ce,shapeFlag:ge}=q;if(ge&6){D(q.component.subTree,E,te,le);return}if(ge&128){q.suspense.move(E,te,le);return}if(ge&64){ae.move(q,E,te,ue);return}if(ae===Ne){r(re,E,te);for(let We=0;Weve.enter(re),ne);else{const{leave:We,delayLeave:Fe,afterLeave:Ke}=ve,Ue=()=>r(re,E,te),_e=()=>{We(re,()=>{Ue(),Ke&&Ke()})};Fe?Fe(re,Ue,_e):_e()}else r(re,E,te)},Y=(q,E,te,le=!1,ne=!1)=>{const{type:re,props:ae,ref:ve,children:ce,dynamicChildren:ge,shapeFlag:Re,patchFlag:We,dirs:Fe,cacheIndex:Ke}=q;if(We===-2&&(ne=!1),ve!=null&&Jb(ve,null,te,q,!0),Ke!=null&&(E.renderCache[Ke]=void 0),Re&256){E.ctx.deactivate(q);return}const Ue=Re&1&&Fe,_e=!_h(q);let ye;if(_e&&(ye=ae&&ae.onVnodeBeforeUnmount)&&Ko(ye,E,q),Re&6)$(q.component,te,le);else{if(Re&128){q.suspense.unmount(te,le);return}Ue&&Yl(q,null,E,"beforeUnmount"),Re&64?q.type.remove(q,E,te,ue,le):ge&&!ge.hasOnce&&(re!==Ne||We>0&&We&64)?G(ge,E,te,!1,!0):(re===Ne&&We&384||!ne&&Re&16)&&G(ce,E,te),le&&Z(q)}(_e&&(ye=ae&&ae.onVnodeUnmounted)||Ue)&&wi(()=>{ye&&Ko(ye,E,q),Ue&&Yl(q,null,E,"unmounted")},te)},Z=q=>{const{type:E,el:te,anchor:le,transition:ne}=q;if(E===Ne){H(te,le);return}if(E===Oh){A(q);return}const re=()=>{i(te),ne&&!ne.persisted&&ne.afterLeave&&ne.afterLeave()};if(q.shapeFlag&1&&ne&&!ne.persisted){const{leave:ae,delayLeave:ve}=ne,ce=()=>ae(te,re);ve?ve(q.el,re,ce):ce()}else re()},H=(q,E)=>{let te;for(;q!==E;)te=d(q),i(q),q=te;i(E)},$=(q,E,te)=>{const{bum:le,scope:ne,update:re,subTree:ae,um:ve,m:ce,a:ge}=q;$b(ce),$b(ge),le&&Hp(le),ne.stop(),re&&(re.active=!1,Y(ae,q,E,te)),ve&&wi(ve,E),wi(()=>{q.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&q.asyncDep&&!q.asyncResolved&&q.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},G=(q,E,te,le=!1,ne=!1,re=0)=>{for(let ae=re;ae{if(q.shapeFlag&6)return de(q.component.subTree);if(q.shapeFlag&128)return q.suspense.next();const E=d(q.anchor||q.el),te=E&&E[WY];return te?d(te):E};let J=!1;const Ae=(q,E,te)=>{q==null?E._vnode&&Y(E._vnode,null,null,!0):v(E._vnode||null,q,E,null,null,null,te),J||(J=!0,qN(),Gb(),J=!1),E._vnode=q},ue={p:v,um:Y,m:D,r:Z,mt:C,mc:L,pc:B,pbc:w,n:de,o:e};let fe,se;return t&&([fe,se]=t(ue)),{render:Ae,hydrate:fe,createApp:lfe(Ae,fe)}}function Ew({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Od({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function YY(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function SO(e,t,n=!1){const r=e.children,i=t.children;if(kt(r)&&kt(i))for(let o=0;o>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function ZY(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ZY(t)}function $b(e){if(e)for(let t=0;txs(QY);function Bv(e,t){return N2(e,null,t)}function KY(e,t){return N2(e,null,{flush:"post"})}function GY(e,t){return N2(e,null,{flush:"sync"})}const wA={};function Lt(e,t,n){return N2(e,t,n)}function N2(e,t,{immediate:n,deep:r,flush:i,once:o,onTrack:a,onTrigger:s}=Gn){if(t&&o){const S=t;t=(...M)=>{S(...M),x()}}const l=gi,u=S=>r===!0?S:Af(S,r===!1?1:void 0);let c,f=!1,d=!1;if(Ir(e)?(c=()=>e.value,f=Zh(e)):iu(e)?(c=()=>u(e),f=!0):kt(e)?(d=!0,f=e.some(S=>iu(S)||Zh(S)),c=()=>e.map(S=>{if(Ir(S))return S.value;if(iu(S))return u(S);if(zt(S))return lc(S,l,2)})):zt(e)?t?c=()=>lc(e,l,2):c=()=>(h&&h(),Da(e,l,3,[p])):c=ra,t&&r){const S=c;c=()=>Af(S())}let h,p=S=>{h=R.onStop=()=>{lc(S,l,4),h=R.onStop=void 0}},v;if(F2)if(p=ra,t?n&&Da(t,l,3,[c(),d?[]:void 0,p]):c(),i==="sync"){const S=HY();v=S.__watcherHandles||(S.__watcherHandles=[])}else return ra;let g=d?new Array(e.length).fill(wA):wA;const m=()=>{if(!(!R.active||!R.dirty))if(t){const S=R.run();(r||f||(d?S.some((M,L)=>ko(M,g[L])):ko(S,g)))&&(h&&h(),Da(t,l,3,[S,g===wA?void 0:d&&g[0]===wA?[]:g,p]),g=S)}else R.run()};m.allowRecurse=!!t;let y;i==="sync"?y=m:i==="post"?y=()=>wi(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),y=()=>NS(m));const R=new pv(c,ra,y),A=oO(),x=()=>{R.stop(),A&&eO(A.effects,R)};return t?n?m():g=R.run():i==="post"?wi(R.run.bind(R),l&&l.suspense):R.run(),v&&v.push(x),x}function xfe(e,t,n){const r=this.proxy,i=Cr(e)?e.includes(".")?zY(r,e):()=>r[e]:e.bind(r,r);let o;zt(t)?o=t:(o=t.handler,n=t);const a=Hh(this),s=N2(i,o.bind(r),n);return a(),s}function zY(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Af(r,t,n)});else if(FB(e)){for(const r in e)Af(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Af(e[r],t,n)}return e}function Sfe(e,t,n=Gn){const r=Ac(),i=vo(t),o=qo(t),a=JY(e,t),s=oY((l,u)=>{let c,f=Gn,d;return GY(()=>{const h=e[t];ko(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){if(!ko(h,c)&&!(f!==Gn&&ko(h,f)))return;const p=r.vnode.props;p&&(t in p||i in p||o in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${o}`in p)||(c=h,u());const v=n.set?n.set(h):h;r.emit(`update:${t}`,v),ko(h,v)&&ko(h,f)&&!ko(v,d)&&u(),f=h,d=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Gn:s,done:!1}:{done:!0}}}},s}const JY=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vo(t)}Modifiers`]||e[`${qo(t)}Modifiers`];function wfe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Gn;let i=n;const o=t.startsWith("update:"),a=o&&JY(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Cr(c)?c.trim():c)),a.number&&(i=n.map(Zb)));let s,l=r[s=Qg(t)]||r[s=Qg(vo(t))];!l&&o&&(l=r[s=Qg(qo(t))]),l&&Da(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Da(u,e,6,i)}}function $Y(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!zt(e)){const l=u=>{const c=$Y(u,t,!0);c&&(s=!0,Dr(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(lr(e)&&r.set(e,null),null):(kt(o)?o.forEach(l=>a[l]=null):Dr(a,o),lr(e)&&r.set(e,a),a)}function VS(e,t){return!e||!k2(t)?!1:(t=t.slice(2).replace(/Once$/,""),Vn(e,t[0].toLowerCase()+t.slice(1))||Vn(e,qo(t))||Vn(e,t))}function GR(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=e,g=Um(e);let m,y;try{if(n.shapeFlag&4){const A=i||r,x=A;m=Jo(u.call(x,A,c,f,h,d,p)),y=s}else{const A=t;m=Jo(A.length>1?A(f,{attrs:s,slots:a,emit:l}):A(f,null)),y=t.props?s:Lfe(s)}}catch(A){Gg.length=0,a0(A,e,1),m=O(Li)}let R=m;if(y&&v!==!1){const A=Object.keys(y),{shapeFlag:x}=R;A.length&&x&7&&(o&&A.some(q_)&&(y=Tfe(y,o)),R=hu(R,y,!1,!0))}return n.dirs&&(R=hu(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&(R.transition=n.transition),m=R,Um(g),m}function Mfe(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||k2(n))&&((t||(t={}))[n]=e[n]);return t},Tfe=(e,t)=>{const n={};for(const r in e)(!q_(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _fe(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?d7(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let F8=0;const Ofe={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(e==null)Pfe(t,n,r,i,o,a,s,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Cfe(e,t,n,r,i,a,s,l,u)}},hydrate:Ife,normalize:Nfe},kfe=Ofe;function Ym(e,t){const n=e.props&&e.props[t];zt(n)&&n()}function Pfe(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=jY(e,i,r,t,f,n,o,a,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,a),d.deps>0?(Ym(e,"onPending"),Ym(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),Jp(d,e.ssFallback)):d.resolve(!1,!0)}function Cfe(e,t,n,r,i,o,a,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:g,isHydrating:m}=f;if(v)f.pendingBranch=d,sl(d,v)?(l(v,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():g&&(m||(l(p,h,n,r,i,null,o,a,s),Jp(f,h)))):(f.pendingId=F8++,m?(f.isHydrating=!1,f.activeBranch=v):u(v,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(l(p,h,n,r,i,null,o,a,s),Jp(f,h))):p&&sl(d,p)?(l(p,d,n,r,i,f,o,a,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(p&&sl(d,p))l(p,d,n,r,i,f,o,a,s),Jp(f,d);else if(Ym(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=F8++,l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:R}=f;y>0?setTimeout(()=>{f.pendingId===R&&f.fallback(h)},y):y===0&&f.fallback(h)}}function jY(e,t,n,r,i,o,a,s,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:g}}=u;let m;const y=Ffe(e);y&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const R=e.props?Qb(e.props.timeout):void 0,A=o,x={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:F8++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(S=!1,M=!1){const{vnode:L,activeBranch:T,pendingBranch:w,pendingId:P,effects:k,parentComponent:N,container:C}=x;let I=!1;x.isHydrating?x.isHydrating=!1:S||(I=T&&w.transition&&w.transition.mode==="out-in",I&&(T.transition.afterLeave=()=>{P===x.pendingId&&(d(w,C,o===A?p(T):o,0),Kb(k))}),T&&(v(T.el)!==x.hiddenContainer&&(o=p(T)),h(T,N,x,!0)),I||d(w,C,o,0)),Jp(x,w),x.pendingBranch=null,x.isInFallback=!1;let F=x.parent,W=!1;for(;F;){if(F.pendingBranch){F.effects.push(...k),W=!0;break}F=F.parent}!W&&!I&&Kb(k),x.effects=[],y&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!M&&t.resolve()),Ym(L,"onResolve")},fallback(S){if(!x.pendingBranch)return;const{vnode:M,activeBranch:L,parentComponent:T,container:w,namespace:P}=x;Ym(M,"onFallback");const k=p(L),N=()=>{x.isInFallback&&(f(null,S,w,k,T,null,P,s,l),Jp(x,S))},C=S.transition&&S.transition.mode==="out-in";C&&(L.transition.afterLeave=N),x.isInFallback=!0,h(L,T,null,!0),C||N()},move(S,M,L){x.activeBranch&&d(x.activeBranch,S,M,L),x.container=S},next(){return x.activeBranch&&p(x.activeBranch)},registerDep(S,M,L){const T=!!x.pendingBranch;T&&x.deps++;const w=S.vnode.el;S.asyncDep.catch(P=>{a0(P,S,0)}).then(P=>{if(S.isUnmounted||x.isUnmounted||x.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:k}=S;V8(S,P,!1),w&&(k.el=w);const N=!w&&S.subTree.el;M(S,k,v(w||S.subTree.el),w?null:p(S.subTree),x,a,L),N&&g(N),wO(S,k.el),T&&--x.deps===0&&x.resolve()})},unmount(S,M){x.isUnmounted=!0,x.activeBranch&&h(x.activeBranch,n,S,M),x.pendingBranch&&h(x.pendingBranch,n,S,M)}};return x}function Ife(e,t,n,r,i,o,a,s,l){const u=t.suspense=jY(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,a);return u.deps===0&&u.resolve(!1,!0),c}function Nfe(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=h7(r?n.default:n),e.ssFallback=r?h7(n.fallback):O(Li)}function h7(e){let t;if(zt(e)){const n=Qh&&e._c;n&&(e._d=!1,U()),e=e(),n&&(e._d=!0,t=ho,eZ())}return kt(e)&&(e=Mfe(e)),e=Jo(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function qY(e,t){t&&t.pendingBranch?kt(e)?t.effects.push(...e):t.effects.push(e):Kb(e)}function Jp(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,wO(r,i))}function Ffe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ne=Symbol.for("v-fgt"),Nf=Symbol.for("v-txt"),Li=Symbol.for("v-cmt"),Oh=Symbol.for("v-stc"),Gg=[];let ho=null;function U(e=!1){Gg.push(ho=e?null:[])}function eZ(){Gg.pop(),ho=Gg[Gg.length-1]||null}let Qh=1;function E8(e){Qh+=e,e<0&&ho&&(ho.hasOnce=!0)}function tZ(e){return e.dynamicChildren=Qh>0?ho||Yp:null,eZ(),Qh>0&&ho&&ho.push(e),e}function ee(e,t,n,r,i,o){return tZ(V(e,t,n,r,i,o,!0))}function Te(e,t,n,r,i){return tZ(O(e,t,n,r,i,!0))}function Kf(e){return e?e.__v_isVNode===!0:!1}function sl(e,t){return e.type===t.type&&e.key===t.key}function Efe(e){}const nZ=({key:e})=>e??null,zR=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Cr(e)||Ir(e)||zt(e)?{i:yi,r:e,k:t,f:!!n}:e:null);function V(e,t=null,n=null,r=0,i=null,o=e===Ne?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nZ(t),ref:t&&zR(t),scopeId:FS,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yi};return s?(MO(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Cr(n)?8:16),Qh>0&&!a&&ho&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ho.push(l),l}const O=Xfe;function Xfe(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===SY)&&(e=Li),Kf(e)){const s=hu(e,t,!0);return n&&MO(s,n),Qh>0&&!o&&ho&&(s.shapeFlag&6?ho[ho.indexOf(e)]=s:ho.push(s)),s.patchFlag=-2,s}if(Qfe(e)&&(e=e.__vccOpts),t){t=rZ(t);let{class:s,style:l}=t;s&&!Cr(s)&&(t.class=Ge(s)),lr(l)&&(cO(l)&&!kt(l)&&(l=Dr({},l)),t.style=Me(l))}const a=Cr(e)?1:N8(e)?128:vfe(e)?64:lr(e)?4:zt(e)?2:0;return V(e,t,n,r,i,a,o,!0)}function rZ(e){return e?cO(e)||PY(e)?Dr({},e):e:null}function hu(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?iZ(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&nZ(u),ref:t&&t.ref?n&&o?kt(o)?o.concat(zR(t)):[o,zR(t)]:zR(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hu(e.ssContent),ssFallback:e.ssFallback&&hu(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Hf(c,l.clone(c)),c}function De(e=" ",t=0){return O(Nf,null,e,t)}function Wfe(e,t){const n=O(Oh,null,e);return n.staticCount=t,n}function Ye(e="",t=!1){return t?(U(),Te(Li,null,e)):O(Li,null,e)}function Jo(e){return e==null||typeof e=="boolean"?O(Li):kt(e)?O(Ne,null,e.slice()):typeof e=="object"?ff(e):O(Nf,null,String(e))}function ff(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hu(e)}function MO(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(kt(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),MO(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!PY(t)?t._ctx=yi:i===3&&yi&&(yi.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else zt(t)?(t={default:t,_ctx:yi},n=32):(t=String(t),r&64?(n=16,t=[De(t)]):n=8);e.children=t,e.shapeFlag|=n}function iZ(...e){const t={};for(let n=0;ngi||yi;let jb,X8;{const e=XB(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};jb=t("__VUE_INSTANCE_SETTERS__",n=>gi=n),X8=t("__VUE_SSR_SETTERS__",n=>F2=n)}const Hh=e=>{const t=gi;return jb(e),e.scope.on(),()=>{e.scope.off(),jb(t)}},W8=()=>{gi&&gi.scope.off(),jb(null)};function aZ(e){return e.vnode.shapeFlag&4}let F2=!1;function sZ(e,t=!1,n=!1){t&&X8(t);const{props:r,children:i}=e.vnode,o=aZ(e);ufe(e,r,o,t),hfe(e,i,n);const a=o?Ufe(e,t):void 0;return t&&X8(!1),a}function Ufe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,O8);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?uZ(e):null,o=Hh(e);ud();const a=lc(r,e,0,[e.props,i]);if(cd(),o(),tO(a)){if(a.then(W8,W8),t)return a.then(s=>{V8(e,s,t)}).catch(s=>{a0(s,e,0)});e.asyncDep=a}else V8(e,a,t)}else lZ(e,t)}function V8(e,t,n){zt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:lr(t)&&(e.setupState=hO(t)),lZ(e,n)}let qb,D8;function Bfe(e){qb=e,D8=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Bce))}}const Yfe=()=>!qb;function lZ(e,t,n){const r=e.type;if(!e.render){if(!t&&qb&&!r.render){const i=r.template||RO(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Dr(Dr({isCustomElement:o,delimiters:s},a),l);r.render=qb(i,u)}}e.render=r.render||ra,D8&&D8(e)}{const i=Hh(e);ud();try{nfe(e)}finally{cd(),i()}}}const Zfe={get(e,t){return da(e,"get",""),e[t]}};function uZ(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zfe),slots:e.slots,emit:e.emit,expose:t}}function E2(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hO(IS(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Hg)return Hg[n](e)},has(t,n){return n in t||n in Hg}})):e.proxy}function U8(e,t=!0){return zt(e)?e.displayName||e.name:e.name||t&&e.__name}function Qfe(e){return zt(e)&&"__vccOpts"in e}const Se=(e,t)=>vce(e,t,F2);function cZ(e,t,n){const r=arguments.length;return r===2?lr(t)&&!kt(t)?Kf(t)?O(e,null,[t]):O(e,t):O(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Kf(n)&&(n=[n]),O(e,t,n))}function Hfe(){}function Kfe(e,t,n,r){const i=n[r];if(i&&fZ(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function fZ(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&ho&&ho.push(e),!0}const dZ="3.4.34",Gfe=ra,zfe=_ce,Jfe=fp,$fe=fY,jfe={createComponentInstance:oZ,setupComponent:sZ,renderComponentRoot:GR,setCurrentRenderingInstance:Um,isVNode:Kf,normalizeVNode:Jo,getComponentPublicInstance:E2},qfe=jfe,ede=null,tde=null,nde=null;/** * @vue/runtime-dom v3.4.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -18,7 +18,7 @@ var _ue=Object.defineProperty;var Oue=(e,t,n)=>t in e?_ue(e,t,{enumerable:!0,con * vue v3.4.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Ude=()=>{},Bde=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:hY,BaseTransitionPropsValidators:gO,Comment:Li,DeprecationTypes:nde,EffectScope:rO,ErrorCodes:Tce,ErrorTypeStrings:zfe,Fragment:Ne,KeepAlive:Xce,ReactiveEffect:pv,Static:Oh,Suspense:kfe,Teleport:xO,Text:Nf,TrackOpTypes:wce,Transition:Kh,TransitionGroup:Ode,TriggerOpTypes:Mce,VueElement:DS,assertNumber:Lce,callWithAsyncErrorHandling:Da,callWithErrorHandling:lc,camelize:vo,capitalize:P2,cloneVNode:hu,compatUtils:tde,compile:Ude,computed:Se,createApp:PZ,createBlock:Te,createCommentVNode:Ye,createElementBlock:ee,createElementVNode:V,createHydrationRenderer:UY,createPropsRestProxy:efe,createRenderer:DY,createSSRApp:Vde,createSlots:Dce,createStaticVNode:Wfe,createTextVNode:De,createVNode:O,customRef:oY,defineAsyncComponent:Fce,defineComponent:Ee,defineCustomElement:AZ,defineEmits:Zce,defineExpose:Qce,defineModel:Gce,defineOptions:Hce,defineProps:Yce,defineSSRCustomElement:Mde,defineSlots:Kce,devtools:Jfe,effect:Kue,effectScope:iO,getCurrentInstance:Ac,getCurrentScope:oO,getTransitionRawChildren:ES,guardReactiveProps:rZ,h:cZ,handleError:a0,hasInjectionContext:_Y,hydrate:kZ,initCustomFormatter:Hfe,initDirectivesForSSR:Dde,inject:xs,isMemoSame:fZ,isProxy:cO,isReactive:iu,isReadonly:Qf,isRef:Ir,isRuntimeOnly:Yfe,isShallow:Zh,isVNode:Kf,markRaw:IS,mergeDefaults:jce,mergeModels:qce,mergeProps:iZ,nextTick:hr,normalizeClass:Ge,normalizeProps:Bue,normalizeStyle:we,onActivated:vY,onBeforeMount:mO,onBeforeUnmount:s0,onBeforeUpdate:yY,onDeactivated:gY,onErrorCaptured:xY,onMounted:Wt,onRenderTracked:bY,onRenderTriggered:RY,onScopeDispose:BB,onServerPrefetch:AY,onUnmounted:En,onUpdated:WS,openBlock:U,popScopeId:jt,provide:l0,proxyRefs:hO,pushScopeId:$t,queuePostFlushCb:Kb,reactive:C2,readonly:uO,ref:he,registerRuntimeCompiler:Bfe,render:yv,renderList:Je,renderSlot:ar,resolveComponent:xe,resolveDirective:_n,resolveDynamicComponent:xu,resolveFilter:ede,resolveTransitionHooks:vv,setBlockTracking:E8,setDevtoolsHook:$fe,setTransitionHooks:Hf,shallowReactive:nY,shallowReadonly:pce,shallowRef:gce,ssrContextKey:QY,ssrUtils:qfe,stop:Gue,toDisplayString:dt,toHandlerKey:Qg,toHandlers:Uce,toRaw:Cn,toRef:Uv,toRefs:aY,toValue:Ace,transformVNodeArgs:Efe,triggerRef:yce,unref:z,useAttrs:$ce,useCssModule:Tde,useCssVars:fde,useModel:Sfe,useSSRContext:HY,useSlots:Jce,useTransitionState:vO,vModelCheckbox:LO,vModelDynamic:MZ,vModelRadio:TO,vModelSelect:SZ,vModelText:Zm,vShow:hc,version:dZ,warn:Gfe,watch:Lt,watchEffect:Bv,watchPostEffect:KY,watchSyncEffect:GY,withAsyncContext:tfe,withCtx:ie,withDefaults:zce,withDirectives:ze,withKeys:pl,withMemo:Kfe,withModifiers:Nt,withScopeId:Ice},Symbol.toStringTag,{value:"Module"}));var Yde=!1;/*! +**/const Ude=()=>{},Bde=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:hY,BaseTransitionPropsValidators:gO,Comment:Li,DeprecationTypes:nde,EffectScope:rO,ErrorCodes:Tce,ErrorTypeStrings:zfe,Fragment:Ne,KeepAlive:Xce,ReactiveEffect:pv,Static:Oh,Suspense:kfe,Teleport:xO,Text:Nf,TrackOpTypes:wce,Transition:Kh,TransitionGroup:Ode,TriggerOpTypes:Mce,VueElement:DS,assertNumber:Lce,callWithAsyncErrorHandling:Da,callWithErrorHandling:lc,camelize:vo,capitalize:P2,cloneVNode:hu,compatUtils:tde,compile:Ude,computed:Se,createApp:PZ,createBlock:Te,createCommentVNode:Ye,createElementBlock:ee,createElementVNode:V,createHydrationRenderer:UY,createPropsRestProxy:efe,createRenderer:DY,createSSRApp:Vde,createSlots:Dce,createStaticVNode:Wfe,createTextVNode:De,createVNode:O,customRef:oY,defineAsyncComponent:Fce,defineComponent:Ee,defineCustomElement:AZ,defineEmits:Zce,defineExpose:Qce,defineModel:Gce,defineOptions:Hce,defineProps:Yce,defineSSRCustomElement:Mde,defineSlots:Kce,devtools:Jfe,effect:Kue,effectScope:iO,getCurrentInstance:Ac,getCurrentScope:oO,getTransitionRawChildren:ES,guardReactiveProps:rZ,h:cZ,handleError:a0,hasInjectionContext:_Y,hydrate:kZ,initCustomFormatter:Hfe,initDirectivesForSSR:Dde,inject:xs,isMemoSame:fZ,isProxy:cO,isReactive:iu,isReadonly:Qf,isRef:Ir,isRuntimeOnly:Yfe,isShallow:Zh,isVNode:Kf,markRaw:IS,mergeDefaults:jce,mergeModels:qce,mergeProps:iZ,nextTick:hr,normalizeClass:Ge,normalizeProps:Bue,normalizeStyle:Me,onActivated:vY,onBeforeMount:mO,onBeforeUnmount:s0,onBeforeUpdate:yY,onDeactivated:gY,onErrorCaptured:xY,onMounted:Wt,onRenderTracked:bY,onRenderTriggered:RY,onScopeDispose:BB,onServerPrefetch:AY,onUnmounted:En,onUpdated:WS,openBlock:U,popScopeId:jt,provide:l0,proxyRefs:hO,pushScopeId:$t,queuePostFlushCb:Kb,reactive:C2,readonly:uO,ref:he,registerRuntimeCompiler:Bfe,render:yv,renderList:Je,renderSlot:ar,resolveComponent:xe,resolveDirective:_n,resolveDynamicComponent:xu,resolveFilter:ede,resolveTransitionHooks:vv,setBlockTracking:E8,setDevtoolsHook:$fe,setTransitionHooks:Hf,shallowReactive:nY,shallowReadonly:pce,shallowRef:gce,ssrContextKey:QY,ssrUtils:qfe,stop:Gue,toDisplayString:dt,toHandlerKey:Qg,toHandlers:Uce,toRaw:Cn,toRef:Uv,toRefs:aY,toValue:Ace,transformVNodeArgs:Efe,triggerRef:yce,unref:z,useAttrs:$ce,useCssModule:Tde,useCssVars:fde,useModel:Sfe,useSSRContext:HY,useSlots:Jce,useTransitionState:vO,vModelCheckbox:LO,vModelDynamic:MZ,vModelRadio:TO,vModelSelect:SZ,vModelText:Zm,vShow:hc,version:dZ,warn:Gfe,watch:Lt,watchEffect:Bv,watchPostEffect:KY,watchSyncEffect:GY,withAsyncContext:tfe,withCtx:ie,withDefaults:zce,withDirectives:ze,withKeys:pl,withMemo:Kfe,withModifiers:Nt,withScopeId:Ice},Symbol.toStringTag,{value:"Module"}));var Yde=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT @@ -113,16 +113,16 @@ Column: `+(T[T.length-1].length+1)+` Char: `+e[n])}return n+1&&(n+=1),M}if(e.charCodeAt(n+1)===u){if(e.charCodeAt(n+2)==s){const I=n;for(;n!==-1&&(e.charCodeAt(n)!==a||e.charCodeAt(n-1)!=s||e.charCodeAt(n-2)!=s||n==-1);)n=e.indexOf(">",n+1);n===-1&&(n=e.length),r&&M.push(e.substring(I,n+1))}else{if(e.charCodeAt(n+2)===d&&e.charCodeAt(n+8)===d&&e.substr(n+3,5).toLowerCase()==="cdata"){var w=e.indexOf("]]>",n);w==-1?(M.push(e.substr(n+9)),n=e.length):(M.push(e.substring(n+9,w)),n=w+3);continue}{const I=n+1;n+=2;for(var P=!1;(e.charCodeAt(n)!==a||P===!0)&&e[n];)e.charCodeAt(n)===d?P=!0:P===!0&&e.charCodeAt(n)===h&&(P=!1),n++;M.push(e.substring(I,n))}}n++;continue}var k=y();M.push(k),k.tagName[0]==="?"&&(M.push(...k.children),k.children=[])}else{var N=v();if(i)N.length>0&&M.push(N);else{var C=N.trim();C.length>0&&M.push(C)}n++}return M}function v(){var S=n;return(n=e.indexOf("<",n)-1)===-2&&(n=e.length),e.slice(S,n+1)}function g(){for(var S=n;`\r >/= `.indexOf(e[n])===-1&&e[n];)n++;return e.slice(S,n)}var m=t.noChildNodes||["img","br","input","meta","link","hr"];function y(){n++;const S=g(),M={};let L=[];for(;e.charCodeAt(n)!==a&&e[n];){var T=e.charCodeAt(n);if(T>64&&T<91||T>96&&T<123){for(var w=g(),P=e.charCodeAt(n);P&&P!==c&&P!==f&&!(P>64&&P<91||P>96&&P<123)&&P!==a;)n++,P=e.charCodeAt(n);if(P===c||P===f){var k=R();if(n===-1)return{tagName:S,attributes:M,children:L}}else k=null,n--;M[w]=k}n++}if(e.charCodeAt(n-1)!==l)if(S=="script"){var N=n+1;n=e.indexOf("<\/script>",n),L=[e.slice(N,n)],n+=9}else S=="style"?(N=n+1,n=e.indexOf("",n),L=[e.slice(N,n)],n+=8):m.indexOf(S)===-1?(n++,L=p(S)):n++;else n++;return{tagName:S,attributes:M,children:L}}function R(){var S=e[n],M=n+1;return n=e.indexOf(S,M),e.slice(M,n)}var A,x=null;if(t.attrValue!==void 0)for(t.attrName=t.attrName||"id",x=[];A=void 0,A=new RegExp("\\s"+t.attrName+`\\s*=['"]`+t.attrValue+`['"]`).exec(e),(n=A?A.index:-1)!==-1;)(n=e.lastIndexOf("<",n))!==-1&&x.push(y()),e=e.substr(n),n=0;else x=t.parseNode?y():p("");return t.filter&&(x=CG(x,t.filter)),t.simplify?PG(Array.isArray(x)?x:[x]):(t.setPos&&(x.pos=n),x)}function PG(e){var t={};if(!e.length)return"";if(e.length===1&&typeof e[0]=="string")return e[0];for(var n in e.forEach(function(r){if(typeof r=="object"){t[r.tagName]||(t[r.tagName]=[]);var i=PG(r.children);t[r.tagName].push(i),Object.keys(r.attributes).length&&typeof i!="string"&&(i._attributes=r.attributes)}}),t)t[n].length==1&&(t[n]=t[n][0]);return t}function CG(e,t,n=0,r=""){var i=[];return e.forEach(function(o,a){if(typeof o=="object"&&t(o,a,n,r)&&i.push(o),o.children){var s=CG(o.children,t,n+1,(r?r+".":"")+a+"."+o.tagName);i=i.concat(s)}}),i}function MRe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(l,u){if(l){if(typeof l=="string")return HE(l,u);var c=Object.prototype.toString.call(l).slice(8,-1);if(c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set")return Array.from(l);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return HE(l,u)}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function HE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n={};if(!e.length)return n;if(e.length===1&&typeof e[0]=="string")return Object.keys(t).length?{attrs:b5({order:x5++},t),value:e[0]}:e[0];var r,i=MRe(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(wv(o)!=="object")return;if(o.tagName!=="?xml"){n[o.tagName]||(n[o.tagName]=[]);var a=IG(o.children||[],o.attributes);wv(a)==="object"&&(a.attrs?a.attrs.order=x5++:a.attrs={order:x5++}),Object.keys(o.attributes||{}).length&&(a.attrs=b5(b5({},a.attrs),o.attributes)),n[o.tagName].push(a)}}}catch(l){i.e(l)}finally{i.f()}for(var s in n)n[s].length===1&&(n[s]=n[s][0]);return n}function ro(e,t){return NG.apply(this,arguments)}function NG(){return(NG=$r(rn.mark(function e(t,n){var r;return rn.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,t.file(n).async("string");case 3:return r=i.sent,i.abrupt("return",IG(wRe(r)));case 7:return i.prev=7,i.t0=i.catch(0),i.abrupt("return",null);case 10:case"end":return i.stop()}},e,null,[[0,7]])}))).apply(this,arguments)}function Fx(e){return Fx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fx(e)}var LRe=/^\s+/,TRe=/\s+$/;function At(e,t){if(t=t||{},(e=e||"")instanceof At)return e;if(!(this instanceof At))return new At(e,t);var n=function(r){var i={r:0,g:0,b:0},o=1,a=null,s=null,l=null,u=!1,c=!1;typeof r=="string"&&(r=function(p){p=p.replace(LRe,"").replace(TRe,"").toLowerCase();var v,g=!1;if(QT[p])p=QT[p],g=!0;else if(p=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(v=$s.rgb.exec(p))?{r:v[1],g:v[2],b:v[3]}:(v=$s.rgba.exec(p))?{r:v[1],g:v[2],b:v[3],a:v[4]}:(v=$s.hsl.exec(p))?{h:v[1],s:v[2],l:v[3]}:(v=$s.hsla.exec(p))?{h:v[1],s:v[2],l:v[3],a:v[4]}:(v=$s.hsv.exec(p))?{h:v[1],s:v[2],v:v[3]}:(v=$s.hsva.exec(p))?{h:v[1],s:v[2],v:v[3],a:v[4]}:(v=$s.hex8.exec(p))?{r:Ma(v[1]),g:Ma(v[2]),b:Ma(v[3]),a:qE(v[4]),format:g?"name":"hex8"}:(v=$s.hex6.exec(p))?{r:Ma(v[1]),g:Ma(v[2]),b:Ma(v[3]),format:g?"name":"hex"}:(v=$s.hex4.exec(p))?{r:Ma(v[1]+""+v[1]),g:Ma(v[2]+""+v[2]),b:Ma(v[3]+""+v[3]),a:qE(v[4]+""+v[4]),format:g?"name":"hex8"}:(v=$s.hex3.exec(p))?{r:Ma(v[1]+""+v[1]),g:Ma(v[2]+""+v[2]),b:Ma(v[3]+""+v[3]),format:g?"name":"hex"}:!1}(r)),Fx(r)=="object"&&(Vu(r.r)&&Vu(r.g)&&Vu(r.b)?(f=r.r,d=r.g,h=r.b,i={r:255*kr(f,255),g:255*kr(d,255),b:255*kr(h,255)},u=!0,c=String(r.r).substr(-1)==="%"?"prgb":"rgb"):Vu(r.h)&&Vu(r.s)&&Vu(r.v)?(a=_g(r.s),s=_g(r.v),i=function(p,v,g){p=6*kr(p,360),v=kr(v,100),g=kr(g,100);var m=Math.floor(p),y=p-m,R=g*(1-v),A=g*(1-y*v),x=g*(1-(1-y)*v),S=m%6;return{r:255*[g,A,R,R,x,g][S],g:255*[x,g,g,A,R,R][S],b:255*[R,R,x,g,g,A][S]}}(r.h,a,s),u=!0,c="hsv"):Vu(r.h)&&Vu(r.s)&&Vu(r.l)&&(a=_g(r.s),l=_g(r.l),i=function(p,v,g){var m,y,R;function A(M,L,T){return T<0&&(T+=1),T>1&&(T-=1),T<1/6?M+6*(L-M)*T:T<.5?L:T<2/3?M+(L-M)*(2/3-T)*6:M}if(p=kr(p,360),v=kr(v,100),g=kr(g,100),v===0)m=y=R=g;else{var x=g<.5?g*(1+v):g+v-g*v,S=2*g-x;m=A(S,x,p+1/3),y=A(S,x,p),R=A(S,x,p-1/3)}return{r:255*m,g:255*y,b:255*R}}(r.h,a,l),u=!0,c="hsl"),r.hasOwnProperty("a")&&(o=r.a));var f,d,h;return o=FG(o),{ok:u,format:r.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function GE(e,t,n){e=kr(e,255),t=kr(t,255),n=kr(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(At(r));return o}function WRe(e,t){t=t||6;for(var n=At(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(At({h:r,s:i,v:o})),o=(o+s)%1;return a}At.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=FG(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=zE(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=zE(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return this._a==1?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=GE(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=GE(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return this._a==1?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return JE(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(t,n,r,i,o){var a=[cl(Math.round(t).toString(16)),cl(Math.round(n).toString(16)),cl(Math.round(r).toString(16)),cl(EG(i))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*kr(this._r,255))+"%",g:Math.round(100*kr(this._g,255))+"%",b:Math.round(100*kr(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*kr(this._r,255))+"%, "+Math.round(100*kr(this._g,255))+"%, "+Math.round(100*kr(this._b,255))+"%)":"rgba("+Math.round(100*kr(this._r,255))+"%, "+Math.round(100*kr(this._g,255))+"%, "+Math.round(100*kr(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(VRe[JE(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+$E(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=At(e);n="#"+$E(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||e!=="hex"&&e!=="hex6"&&e!=="hex3"&&e!=="hex4"&&e!=="hex8"&&e!=="name"?(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),e!=="hex"&&e!=="hex6"||(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString()):e==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return At(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(PRe,arguments)},brighten:function(){return this._applyModification(CRe,arguments)},darken:function(){return this._applyModification(IRe,arguments)},desaturate:function(){return this._applyModification(_Re,arguments)},saturate:function(){return this._applyModification(ORe,arguments)},greyscale:function(){return this._applyModification(kRe,arguments)},spin:function(){return this._applyModification(NRe,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(XRe,arguments)},complement:function(){return this._applyCombination(FRe,arguments)},monochromatic:function(){return this._applyCombination(WRe,arguments)},splitcomplement:function(){return this._applyCombination(ERe,arguments)},triad:function(){return this._applyCombination(jE,[3])},tetrad:function(){return this._applyCombination(jE,[4])}},At.fromRatio=function(e,t){if(Fx(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=r==="a"?e[r]:_g(e[r]));e=n}return At(e,t)},At.equals=function(e,t){return!(!e||!t)&&At(e).toRgbString()==At(t).toRgbString()},At.random=function(){return At.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},At.mix=function(e,t,n){n=n===0?0:n||50;var r=At(e).toRgb(),i=At(t).toRgb(),o=n/100;return At({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},At.readability=function(e,t){var n=At(e),r=At(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},At.isReadable=function(e,t,n){var r,i,o=At.readability(e,t);switch(i=!1,(r=function(a){var s,l;return s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase(),l=(a.size||"small").toLowerCase(),s!=="AA"&&s!=="AAA"&&(s="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:s,size:l}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},At.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;ul&&(l=r,s=At(t[u]));return At.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,At.mostReadable(e,["#fff","#000"],n))};var QT=At.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},VRe=At.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(QT);function FG(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function kr(e,t){(function(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1})(e)&&(e="100%");var n=function(r){return typeof r=="string"&&r.indexOf("%")!=-1}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function p3(e){return Math.min(1,Math.max(0,e))}function Ma(e){return parseInt(e,16)}function cl(e){return e.length==1?"0"+e:""+e}function _g(e){return e<=1&&(e=100*e+"%"),e}function EG(e){return Math.round(255*parseFloat(e)).toString(16)}function qE(e){return Ma(e)/255}var Dc,YA,ZA,$s=(YA="[\\s|\\(]+("+(Dc="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Dc+")[,|\\s]+("+Dc+")\\s*\\)?",ZA="[\\s|\\(]+("+Dc+")[,|\\s]+("+Dc+")[,|\\s]+("+Dc+")[,|\\s]+("+Dc+")\\s*\\)?",{CSS_UNIT:new RegExp(Dc),rgb:new RegExp("rgb"+YA),rgba:new RegExp("rgba"+ZA),hsl:new RegExp("hsl"+YA),hsla:new RegExp("hsla"+ZA),hsv:new RegExp("hsv"+YA),hsva:new RegExp("hsva"+ZA),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Vu(e){return!!$s.CSS_UNIT.exec(e)}function DRe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(l,u){if(l){if(typeof l=="string")return eX(l,u);var c=Object.prototype.toString.call(l).slice(8,-1);if(c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set")return Array.from(l);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return eX(l,u)}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function eX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>18]+n[(258048&t)>>12]+n[(4032&t)>>6]+n[63&t];return o===1?s+=n[(252&(t=r[a]))>>2]+n[(3&t)<<4]+"==":o===2&&(s+=n[(64512&(t=r[a]<<8|r[a+1]))>>10]+n[(1008&t)>>4]+n[(15&t)<<2]+"="),s}function S5(e){return e.substr(2+(~-e.lastIndexOf(".")>>>0))}function D0(e,t){if(!e)return e;var n="";if(e.constructor===Array)for(var r=0;r":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,function(n){return t[n]})}function HT(e){var t="";switch(e.toLowerCase()){case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"gif":t="image/gif";break;case"emf":t="image/x-emf";break;case"wmf":t="image/x-wmf";break;case"svg":t="image/svg+xml";break;case"mp4":t="video/mp4";break;case"webm":t="video/webm";break;case"ogg":t="video/ogg";break;case"avi":t="video/avi";break;case"mpg":t="video/mpg";break;case"wmv":t="video/wmv";break;case"mp3":t="audio/mpeg";break;case"wav":t="audio/wav";break;case"tif":case"tiff":t="image/tiff"}return t}function URe(e){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(e)}function U0(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function tX(e){if(!DOMParser)return!0;var t=new DOMParser().parseFromString(e,"text/html");return(t.body.textContent||t.body.innerText).trim()!==""}function KT(e,t,n,r){var i,o;if(n)o=n;else{var a=Me(t.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);o=a||(a=Me(t.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||Me(t.slideMasterContent,["p:sldMaster","p:clrMap","attrs"])}var s=e.substr(2);if(s==="phClr"&&r)i=r;else{if(o)switch(s){case"tx1":case"tx2":case"bg1":case"bg2":e="a:"+o[s]}else switch(e){case"tx1":e="a:dk1";break;case"tx2":e="a:dk2";break;case"bg1":e="a:lt1";break;case"bg2":e="a:lt2"}var l=Me(t.themeContent,["a:theme","a:themeElements","a:clrScheme",e]);!(i=Me(l,["a:srgbClr","attrs","val"]))&&l&&(i=Me(l,["a:sysClr","attrs","lastClr"]))}return i}function Og(e,t,n){var r=e["p:spPr"]["a:ln"],i=parseInt(Me(r,["attrs","w"]))/12700;isNaN(i)&&(i=r||t!=="obj"?0:1);var o=Me(r,["a:solidFill","a:srgbClr","attrs","val"]);if(!o){var a=Me(r,["a:solidFill","a:schemeClr"]);o=KT("a:"+Me(a,["attrs","val"]),n)}if(!o){var s=Me(e,["p:style","a:lnRef","a:schemeClr"]);if(o=KT("a:"+Me(s,["attrs","val"]),n)){var l=Me(s,["a:shade","attrs","val"]);if(l){l=parseInt(l)/1e5;var u=At("#"+o).toHsl();o=At({h:u.h,s:u.s,l:u.l*l,a:u.a}).toHex()}}}o=o?"#".concat(o):"#000";var c="solid",f="0";switch(Me(r,["a:prstDash","attrs","val"])){case"solid":c="solid",f="0";break;case"dash":c="dashed",f="5";break;case"dashDot":c="dashed",f="5, 5, 1, 5";break;case"dot":c="dotted",f="1, 5";break;case"lgDash":c="dashed",f="10, 5";break;case"lgDashDotDot":c="dotted",f="10, 5, 1, 5, 1, 5";break;case"sysDash":c="dashed",f="5, 2";break;case"sysDashDot":c="dotted",f="5, 2, 1, 5";break;case"sysDashDotDot":c="dotted",f="5, 2, 1, 5, 1, 5";break;case"sysDot":c="dotted",f="2, 5"}return{borderColor:o,borderWidth:i,borderType:c,strokeDasharray:f}}function w5(e,t,n){return n<0&&(n+=6),n>=6&&(n-=6),n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e}function VG(e,t,n){var r=At(e).toHsl();t>=1&&(t=1);var i=r.l*t+(1-t);return n?At({h:r.h,s:r.s,l:i,a:r.a}).toHex8():At({h:r.h,s:r.s,l:i,a:r.a}).toHex()}function $u(e){var t="";return e["a:noFill"]&&(t="NO_FILL"),e["a:solidFill"]&&(t="SOLID_FILL"),e["a:gradFill"]&&(t="GRADIENT_FILL"),e["a:pattFill"]&&(t="PATTERN_FILL"),e["a:blipFill"]&&(t="PIC_FILL"),e["a:grpFill"]&&(t="GROUP_FILL"),t}function DG(e,t,n){return GT.apply(this,arguments)}function GT(){return GT=$r(rn.mark(function e(t,n,r){var i,o,a,s,l,u,c;return rn.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(o=n["a:blip"].attrs["r:embed"],t==="slideBg"||t==="slide"?a=Me(r,["slideResObj",o,"target"]):t==="slideLayoutBg"?a=Me(r,["layoutResObj",o,"target"]):t==="slideMasterBg"?a=Me(r,["masterResObj",o,"target"]):t==="themeBg"?a=Me(r,["themeResObj",o,"target"]):t==="diagramBg"&&(a=Me(r,["diagramResObj",o,"target"])),a){f.next=4;break}return f.abrupt("return",a);case 4:if(i=Me(r,["loaded-images",a])){f.next=18;break}if(a=WG(a),(s=a.split(".").pop())!=="xml"){f.next=10;break}return f.abrupt("return",void 0);case 10:return f.next=12,r.zip.file(a).async("arraybuffer");case 12:l=f.sent,u=HT(s),i="data:".concat(u,";base64,").concat(XG(l)),(c=r["loaded-images"]||{})[a]=i,r["loaded-images"]=c;case 18:return f.abrupt("return",i);case 19:case"end":return f.stop()}},e)})),GT.apply(this,arguments)}function BRe(e){var t=Me(e["a:blip"],["a:alphaModFix","attrs"]),n=1;return t&&t.amt&&t.amt!==""&&(n=parseInt(t.amt)/1e5),n}function I1(e,t,n){return UG.apply(this,arguments)}function UG(){return(UG=$r(rn.mark(function e(t,n,r){var i,o,a,s;return rn.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,DG(n,t["a:blipFill"],r);case 2:return i=l.sent,o=t["a:blipFill"]["a:blip"],a=Me(o,["a:alphaModFix","attrs"]),s=1,a&&a.amt&&a.amt!==""&&(s=parseInt(a.amt)/1e5),l.abrupt("return",{picBase64:i,opacity:s});case 8:case"end":return l.stop()}},e)}))).apply(this,arguments)}function YRe(e,t){for(var n=e["a:gsLst"]["a:gs"],r=[],i=0;i1e3&&(x=A-1e3,S=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],M=[],Object.keys(S).forEach(function(_e){var ye=S[_e];if(_e!=="attrs")if(ye.constructor===Array)for(var Le=0;Le1e3)){Ue.next=89;break}if(Y=D-1e3,Z=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],H=[],Object.keys(Z).forEach(function(_e){var ye=Z[_e];if(_e!=="attrs")if(ye.constructor===Array)for(var Le=0;Le1e3)){Ue.next=142;break}if(re=ne-1e3,ae=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],ve=[],Object.keys(ae).forEach(function(_e){var ye=ae[_e];if(_e!=="attrs")if(ye.constructor===Array)for(var Le=0;Le=360&&(N-=360),P?At({h:N,s:k.s,l:k.l,a:k.a}).toHex8():At({h:N,s:k.s,l:k.l,a:k.a}).toHex()}(s,R,g));var A=parseInt(Me(i,["a:lumMod","attrs","val"]))/1e5;isNaN(A)||(s=function(T,w,P){var k=At(T).toHsl(),N=k.l*w;return N>=1&&(N=1),P?At({h:k.h,s:k.s,l:N,a:k.a}).toHex8():At({h:k.h,s:k.s,l:N,a:k.a}).toHex()}(s,A,g));var x=parseInt(Me(i,["a:lumOff","attrs","val"]))/1e5;isNaN(x)||(s=function(T,w,P){var k=At(T).toHsl(),N=w+k.l;return N>=1?P?At({h:k.h,s:k.s,l:1,a:k.a}).toHex8():At({h:k.h,s:k.s,l:1,a:k.a}).toHex():P?At({h:k.h,s:k.s,l:N,a:k.a}).toHex8():At({h:k.h,s:k.s,l:N,a:k.a}).toHex()}(s,x,g));var S=parseInt(Me(i,["a:satMod","attrs","val"]))/1e5;isNaN(S)||(s=function(T,w,P){var k=At(T).toHsl(),N=k.s*w;return N>=1&&(N=1),P?At({h:k.h,s:N,l:k.l,a:k.a}).toHex8():At({h:k.h,s:N,l:k.l,a:k.a}).toHex()}(s,S,g));var M=parseInt(Me(i,["a:shade","attrs","val"]))/1e5;isNaN(M)||(s=function(T,w,P){var k=At(T).toHsl();w>=1&&(w=1);var N=Math.min(k.l*w,1);return P?At({h:k.h,s:k.s,l:N,a:k.a}).toHex8():At({h:k.h,s:k.s,l:N,a:k.a}).toHex()}(s,M,g));var L=parseInt(Me(i,["a:tint","attrs","val"]))/1e5;return isNaN(L)||(s=VG(s,L,g)),s&&s.indexOf("#")===-1&&(s="#"+s),s}function QRe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(l,u){if(l){if(typeof l=="string")return nX(l,u);var c=Object.prototype.toString.call(l).slice(8,-1);if(c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set")return Array.from(l);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return nX(l,u)}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function nX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function iX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&p.shift(),(d=d.concat(p)).sort(function(R,A){return!R.attrs||!A.attrs||R.attrs.order-A.attrs.order})));var v=KRe(f,t,r,i),g=zRe(f);if(g?(u?u&&u!==g&&(a+=""),a+="<".concat(g,">"),u=g):(a+="<".concat(g,">"),u=g),a+='
  • ')):(u&&(a+=""),u=""),a+='

    ')),d){var m,y=rX(d);try{for(y.s();!(m=y.n()).done;)a+=oX(m.value,f,e,s,n,r,i)}catch(R){y.e(R)}finally{y.f()}}else a+=oX(f,t,e,s,n,r,i);a+=g?"

  • ":"

    "}}catch(R){c.e(R)}finally{c.f()}return a}function zRe(e){var t=e["a:pPr"];return t?t["a:buChar"]?"ul":t["a:buAutoNum"]?"ol":"":""}function oX(e,t,n,r,i,o,a){var s=n["a:lstStyle"],l=a.slideMasterTextStyles,u=1,c=Me(t["a:pPr"],["attrs","lvl"]);c!==void 0&&(u=parseInt(c)+1);var f=e["a:t"];typeof f!="string"&&(f=Me(e,["a:fld","a:t"])),typeof f!="string"&&(f=" ");var d="",h=function(T,w,P,k,N,C){var I,F=Me(T,["a:rPr"]);if(F&&$u(F)==="SOLID_FILL"&&(I=Yn(F["a:solidFill"],void 0,void 0,C)),!I&&Me(P,["a:lvl"+N+"pPr","a:defRPr"])){var W=Me(P,["a:lvl"+N+"pPr","a:defRPr"]);$u(W)==="SOLID_FILL"&&(I=Yn(W["a:solidFill"],void 0,void 0,C))}if(!I){var B=Me(w,["p:style","a:fontRef"]);B&&(I=Yn(B,void 0,void 0,C)),!I&&k&&(I=Yn(k,void 0,void 0,C))}return I||""}(e,t,s,r,u,a),p=function(T,w,P,k){var N,C;if(Me(T,["a:rPr","attrs","sz"])&&(N=Me(T,["a:rPr","attrs","sz"])/100),isNaN(N)||!N){var I=Me(w,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);N=parseInt(I)/100}return!isNaN(N)&&N||(P==="title"||P==="subTitle"||P==="ctrTitle"?C=Me(k,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):P==="body"?C=Me(k,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):P==="dt"||P==="sldNum"?C="1200":P||(C=Me(k,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),C&&(N=parseInt(C)/100)),Me(T,["a:rPr","attrs","baseline"])&&!isNaN(N)&&(N-=10),(N=isNaN(N)||!N?18:N)+"pt"}(e,i,o,l),v=function(T,w,P){var k=Me(T,["a:rPr","a:latin","attrs","typeface"]);if(!k){var N=Me(P.themeContent,["a:theme","a:themeElements","a:fontScheme"]);k=Me(N,w==="title"||w==="subTitle"||w==="ctrTitle"?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return k||""}(e,o,a),g=function(T){return Me(T,["a:rPr","attrs","b"])==="1"?"bold":""}(e),m=function(T){return Me(T,["a:rPr","attrs","i"])==="1"?"italic":""}(e),y=function(T){return Me(T,["a:rPr","attrs","u"])==="sng"?"underline":""}(e),R=function(T){return Me(T,["a:rPr","attrs","strike"])==="sngStrike"?"line-through":""}(e),A=function(T){var w=Me(T,["a:rPr","attrs","spc"]);return w?parseInt(w)/100+"pt":""}(e),x=function(T,w){var P=Me(T,["a:rPr","a:effectLst","a:outerShdw"]);if(P){var k=YG(P,w);if(k){var N=k.h,C=k.v,I=k.blur,F=k.color;if(!isNaN(C)&&!isNaN(N))return N+"pt "+C+"pt "+(I?I+"pt":"")+" "+F}}return""}(e,a),S=function(T){var w=Me(T,["a:rPr","attrs","baseline"]);return w?parseInt(w)>0?"super":"sub":""}(e);h&&(d+="color: ".concat(h,";")),p&&(d+="font-size: ".concat(p,";")),v&&(d+="font-family: ".concat(v,";")),g&&(d+="font-weight: ".concat(g,";")),m&&(d+="font-style: ".concat(m,";")),y&&(d+="text-decoration: ".concat(y,";")),R&&(d+="text-decoration-line: ".concat(R,";")),A&&(d+="letter-spacing: ".concat(A,";")),S&&(d+="vertical-align: ".concat(S,";")),x&&(d+="text-shadow: ".concat(x,";"));var M=Me(e,["a:rPr","a:hlinkClick","attrs","r:id"]);if(M){var L=a.slideResObj[M].target;return'').concat(f.replace(/\t/g,"    ").replace(/\s/g," "),"")}return'').concat(f.replace(/\t/g,"    ").replace(/\s/g," "),"")}function JRe(e,t,n,r,i,o,a){var s,l=i;if(o>=i)for(;l<=o;){var u=l*(Math.PI/180),c=e+Math.cos(u)*n,f=t+Math.sin(u)*r;l===i&&(s=" M"+c+" "+f),s+=" L"+c+" "+f,l++}else for(;l>o;){var d=l*(Math.PI/180),h=e+Math.cos(d)*n,p=t+Math.sin(d)*r;l===i&&(s=" M "+h+" "+p),s+=" L "+h+" "+p,l--}return s+=""}function $Re(e,t,n){var r=Me(e,["a:pathLst"]),i=Me(r,["a:path"]);Array.isArray(i)&&(i=i.pop());var o=parseInt(i.attrs.w),a=parseInt(i.attrs.h),s=o===0?0:1/o*t,l=a===0?0:1/a*n,u="",c=Me(i,["a:moveTo"]),f=i["a:lnTo"],d=i["a:cubicBezTo"],h=i["a:arcTo"],p=Me(i,["a:close"]);Array.isArray(c)||(c=[c]);var v=[];if(c.length>0){if(Object.keys(c).forEach(function(C){var I=c[C]["a:pt"];I&&Object.keys(I).forEach(function(F){var W=I[F],B=W.x,K=W.y,j=W.order;v.push({type:"movto",x:B,y:K,order:j})})}),f&&Object.keys(f).forEach(function(C){var I=f[C]["a:pt"];I&&Object.keys(I).forEach(function(F){var W=I[F],B=W.x,K=W.y,j=W.order;v.push({type:"lnto",x:B,y:K,order:j})})}),d){var g=[];Array.isArray(d)||(d=[d]),Object.keys(d).forEach(function(C){g.push(d[C]["a:pt"])}),g.forEach(function(C){var I=[];C.forEach(function(W){var B={x:W.attrs.x,y:W.attrs.y};I.push(B)});var F=C[0].attrs.order;v.push({type:"cubicBezTo",cubBzPt:I,order:F})})}if(h){var m=h.attrs,y=m.order,R=m.hR,A=m.wR,x=m.stAng,S=m.swAng,M=0,L=0,T=Me(h,["a:pt","attrs"]);T&&(M=T.x,L=T.y),v.push({type:"arcTo",hR:R,wR:A,stAng:x,swAng:S,shftX:M,shftY:L,order:y})}p&&(Array.isArray(p)||(p=[p]),Object.keys(p).forEach(function(){v.push({type:"close",order:1/0})})),v.sort(function(C,I){return C.order-I.order});for(var w=0;w0&&n.isBandRowAttr===1&&r){if(o="",t%2==0&&r["a:band2H"]){var g=Me(r,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(g){var m=Yn(g,void 0,void 0,i);m&&(o=m)}var y=Me(r,["a:band2H","a:tcTxStyle"]);if(y){var R=Yn(y,void 0,void 0,i);R&&(a=R)}Me(y,["attrs","b"])==="on"&&(s=!0)}if(t%2!=0&&r["a:band1H"]){var A=Me(r,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(A){var x=Yn(A,void 0,void 0,i);x&&(o=x)}var S=Me(r,["a:band1H","a:tcTxStyle"]);if(S){var M=Yn(S,void 0,void 0,i);M&&(a=M),Me(S,["attrs","b"])==="on"&&(s=!0)}}}if(t===e.length-1&&n.isLstRowAttr===1&&r){var L=Me(r,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(L){var T=Yn(L,void 0,void 0,i);T&&(o=T)}var w=Me(r,["a:lastRow","a:tcTxStyle"]);if(w){var P=Yn(w,void 0,void 0,i);P&&(a=P),Me(w,["attrs","b"])==="on"&&(s=!0)}}return{fillColor:o,fontColor:a,fontBold:s}}function M5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function uX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n").replaceAll(/&/g,"&").replaceAll(/'/g,"'").replaceAll(/"/g,'"')}(xr(QG(e)[0])),order:t}}function t6(e,t,n){return n6.apply(this,arguments)}function n6(){return n6=$r(rn.mark(function e(t,n,r){var i,o,a,s,l,u,c,f,d,h,p,v,g,m,y,R,A,x,S,M;return rn.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(i=t.attrs.order,o=Me(t,["p:grpSpPr","a:xfrm"])){L.next=4;break}return L.abrupt("return",null);case 4:a=parseInt(o["a:off"].attrs.x)*Mi,s=parseInt(o["a:off"].attrs.y)*Mi,l=parseInt(o["a:chOff"].attrs.x)*Mi,u=parseInt(o["a:chOff"].attrs.y)*Mi,c=parseInt(o["a:ext"].attrs.cx)*Mi,f=parseInt(o["a:ext"].attrs.cy)*Mi,d=parseInt(o["a:chExt"].attrs.cx)*Mi,h=parseInt(o["a:chExt"].attrs.cy)*Mi,(p=Me(o,["attrs","rot"])||0)&&(p=Mv(p)),v=c/d,g=f/h,m=[],L.t0=rn.keys(t);case 18:if((L.t1=L.t0()).done){L.next=48;break}if(y=L.t1.value,t[y].constructor!==Array){L.next=42;break}R=$o(t[y]),L.prev=22,R.s();case 24:if((A=R.n()).done){L.next=32;break}return x=A.value,L.next=28,Ah(y,x,n,r);case 28:(S=L.sent)&&m.push(S);case 30:L.next=24;break;case 32:L.next=37;break;case 34:L.prev=34,L.t2=L.catch(22),R.e(L.t2);case 37:return L.prev=37,R.f(),L.finish(37);case 40:L.next=46;break;case 42:return L.next=44,Ah(y,t[y],n,r);case 44:(M=L.sent)&&m.push(M);case 46:L.next=18;break;case 48:return L.abrupt("return",{type:"group",top:s,left:a,width:c,height:f,rotate:p,order:i,elements:m.map(function(T){return ju(ju({},T),{},{left:(T.left-l)*v,top:(T.top-u)*g,width:T.width*v,height:T.height*g})})});case 49:case"end":return L.stop()}},e,null,[[22,34,37,40]])})),n6.apply(this,arguments)}function JG(e,t,n){return r6.apply(this,arguments)}function r6(){return r6=$r(rn.mark(function e(t,n,r){var i,o,a,s,l,u;return rn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=Me(t,["p:nvSpPr","p:cNvPr","attrs","name"]),o=Me(t,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),a=Me(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),s=Me(t,["attrs","order"]),a?(l=n.slideLayoutTables.typeTable[a],u=n.slideMasterTables.typeTable[a]):o&&(l=n.slideLayoutTables.idxTable[o],u=n.slideMasterTables.idxTable[o]),a||Me(t,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"&&(a="text"),a||(a=Me(l,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),a||(a=Me(u,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),a||(a=r==="diagramBg"?"diagram":"obj"),c.next=11,$G(t,l,u,i,a,s,n,r);case 11:return c.abrupt("return",c.sent);case 12:case"end":return c.stop()}},e)})),r6.apply(this,arguments)}function ube(e,t,n){return i6.apply(this,arguments)}function i6(){return i6=$r(rn.mark(function e(t,n,r){var i,o,a;return rn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=t["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,o=t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]===void 0?void 0:t["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,a=t.attrs.order,s.next=5,$G(t,void 0,void 0,i,o,a,n,r);case 5:return s.abrupt("return",s.sent);case 6:case"end":return s.stop()}},e)})),i6.apply(this,arguments)}function $G(e,t,n,r,i,o,a,s){return o6.apply(this,arguments)}function o6(){return o6=$r(rn.mark(function e(t,n,r,i,o,a,s,l){var u,c,f,d,h,p,v,g,m,y,R,A,x,S,M,L,T,w,P,k,N,C,I,F,W,B,K,j,D,Y,Z,H,$,G;return rn.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return c=Me(t,u=["p:spPr","a:xfrm"]),f=Me(n,u),d=Me(r,u),h=Me(t,["p:spPr","a:prstGeom","attrs","prst"]),p=Me(t,["p:spPr","a:custGeom"]),v=qv(c,f,d),g=v.top,m=v.left,y=e1(c,f,d),R=y.width,A=y.height,x=Me(c,["attrs","flipV"])==="1",S=Me(c,["attrs","flipH"])==="1",M=Mv(Me(c,["attrs","rot"])),(L=Me(t,["p:txXfrm"]))?(w=Me(L,["attrs","rot"]))&&(T=Mv(w)+90):T=M,P="",t["p:txBody"]&&(P=$T(t["p:txBody"],t,n,o,s)),k=Og(t,o,s),N=k.borderColor,C=k.borderWidth,I=k.borderType,F=k.strokeDasharray,de.next=18,BG(t,void 0,s,l);case 18:if(de.t0=de.sent,de.t0){de.next=21;break}de.t0="";case 21:if(W=de.t0,(K=Me(t,["p:spPr","a:effectLst","a:outerShdw"]))&&(B=YG(K,s)),j=GRe(t,n,r),D=Me(t,["p:txBody","a:bodyPr","attrs","vert"])==="eaVert",Y={left:m,top:g,width:R,height:A,borderColor:N,borderWidth:C,borderType:I,borderStrokeDasharray:F,fill:W,content:P,isFlipV:x,isFlipH:S,rotate:M,vAlign:j,name:i,order:a},B&&(Y.shadow=B),!p||o==="diagram"){de.next=35;break}return Z=Me(c,["a:ext","attrs"]),H=parseInt(Z.cx)*Mi,$=parseInt(Z.cy)*Mi,G=$Re(p,H,$),Y.content&&!tX(Y.content)&&(Y.content=""),de.abrupt("return",ju(ju({},Y),{},{type:"shape",shapType:"custom",path:G}));case 35:if(!h||o!=="obj"&&o){de.next=38;break}return Y.content&&!tX(Y.content)&&(Y.content=""),de.abrupt("return",ju(ju({},Y),{},{type:"shape",shapType:h}));case 38:return de.abrupt("return",ju(ju({},Y),{},{type:"text",isVertical:D,rotate:T}));case 39:case"end":return de.stop()}},e)})),o6.apply(this,arguments)}function cbe(e,t,n){return a6.apply(this,arguments)}function a6(){return a6=$r(rn.mark(function e(t,n,r){var i,o,a,s,l,u,c,f,d,h,p,v,g,m,y,R,A,x,S,M,L,T,w,P,k,N,C,I,F,W,B,K,j,D;return rn.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return i=r==="slideMasterBg"?n.masterResObj:r==="slideLayoutBg"?n.layoutResObj:n.slideResObj,o=t.attrs.order,a=t["p:blipFill"]["a:blip"].attrs["r:embed"],s=i[a].target,l=S5(s).toLowerCase(),u=n.zip,Y.next=8,u.file(s).async("arraybuffer");case 8:if(c=Y.sent,f=t["p:spPr"]["a:xfrm"],d=HT(l),h=qv(f,void 0,void 0),p=h.top,v=h.left,g=e1(f,void 0,void 0),m=g.width,y=g.height,R="data:".concat(d,";base64,").concat(XG(c)),A=Me(f,["attrs","flipV"])==="1",x=Me(f,["attrs","flipH"])==="1",S=0,(M=Me(t,["p:spPr","a:xfrm","attrs","rot"]))&&(S=Mv(M)),L=Me(t,["p:nvPicPr","p:nvPr","a:videoFile"]),I=!1,!L){Y.next=36;break}if(T=L.attrs["r:link"],!URe(w=i[T].target)){Y.next=29;break}w=WG(w),I=!0,Y.next=36;break;case 29:if((P=S5(w).toLowerCase())!=="mp4"&&P!=="webm"&&P!=="ogg"){Y.next=36;break}return Y.next=33,u.file(w).async("arraybuffer");case 33:N=Y.sent,k=HT(P),C=URL.createObjectURL(new Blob([N],{type:k}));case 36:if(!(F=Me(t,["p:nvPicPr","p:nvPr","a:audioFile"]))){Y.next=46;break}if(W=F.attrs["r:link"],B=i[W].target,(K=S5(B).toLowerCase())!=="mp3"&&K!=="wav"&&K!=="ogg"){Y.next=46;break}return Y.next=44,u.file(B).async("arraybuffer");case 44:j=Y.sent,D=URL.createObjectURL(new Blob([j]));case 46:if(!L||I){Y.next=48;break}return Y.abrupt("return",{type:"video",top:p,left:v,width:m,height:y,rotate:S,blob:C,order:o});case 48:if(!L||!I){Y.next=50;break}return Y.abrupt("return",{type:"video",top:p,left:v,width:m,height:y,rotate:S,src:w,order:o});case 50:if(!F){Y.next=52;break}return Y.abrupt("return",{type:"audio",top:p,left:v,width:m,height:y,rotate:S,blob:D,order:o});case 52:return Y.abrupt("return",{type:"image",top:p,left:v,width:m,height:y,rotate:S,src:R,isFlipV:A,isFlipH:x,order:o});case 53:case"end":return Y.stop()}},e)})),a6.apply(this,arguments)}function fbe(e,t,n){return s6.apply(this,arguments)}function s6(){return s6=$r(rn.mark(function e(t,n,r){var i,o,a;return rn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i=Me(t,["a:graphic","a:graphicData","attrs","uri"]),s.t0=i,s.next=s.t0==="http://schemas.openxmlformats.org/drawingml/2006/table"?4:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/chart"?8:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/diagram"?12:s.t0==="http://schemas.openxmlformats.org/presentationml/2006/ole"?16:23;break;case 4:return s.next=6,dbe(t,n);case 6:return o=s.sent,s.abrupt("break",23);case 8:return s.next=10,hbe(t,n);case 10:return o=s.sent,s.abrupt("break",23);case 12:return s.next=14,pbe(t,n);case 14:return o=s.sent,s.abrupt("break",23);case 16:if((a=Me(t,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))||(a=Me(t,["a:graphic","a:graphicData","p:oleObj"])),!a){s.next=22;break}return s.next=21,t6(a,n,r);case 21:o=s.sent;case 22:return s.abrupt("break",23);case 23:return s.abrupt("return",o);case 24:case"end":return s.stop()}},e)})),s6.apply(this,arguments)}function dbe(e,t){return l6.apply(this,arguments)}function l6(){return l6=$r(rn.mark(function e(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,v,g,m,y,R,A,x,S,M,L,T,w,P,k,N,C,I,F,W,B,K,j,D,Y,Z,H,$,G,de,J,Ae,ue,fe,se,q;return rn.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(r=t.attrs.order,i=Me(t,["a:graphic","a:graphicData","a:tbl"]),o=Me(t,["p:xfrm"]),a=qv(o,void 0,void 0),s=a.top,l=a.left,u=e1(o,void 0,void 0),c=u.width,f=u.height,d=Me(t,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),h=d.attrs?d.attrs.firstRow:void 0,p=d.attrs?d.attrs.firstCol:void 0,v=d.attrs?d.attrs.lastRow:void 0,g=d.attrs?d.attrs.lastCol:void 0,m=d.attrs?d.attrs.bandRow:void 0,y=d.attrs?d.attrs.bandCol:void 0,R={isFrstRowAttr:h&&h==="1"?1:0,isFrstColAttr:p&&p==="1"?1:0,isLstRowAttr:v&&v==="1"?1:0,isLstColAttr:g&&g==="1"?1:0,isBandRowAttr:m&&m==="1"?1:0,isBandColAttr:y&&y==="1"?1:0},(x=d["a:tableStyleId"])&&(S=n.tableStyles["a:tblStyleLst"]["a:tblStyle"]))if(S.constructor===Array)for(M=0;M0&&R.isBandColAttr===1)||R.isFrstColAttr===1&&F===0||R.isLstRowAttr===1&&F===C.length-1||H===Y.length-1||H%2!=0&&(Me(A,["a:band2V"])===void 0?Me(A,["a:band1V"])&&(G="a:band2V"):G="a:band2V"),H===Y.length-1&&R.isLstColAttr===1&&(G="a:lastCol",R.isLstRowAttr===1&&F===C.length-1&&Me(A,["a:swCell"])?G="a:swCell":R.isFrstRowAttr===1&&F===0&&Me(A,["a:nwCell"])&&(G="a:nwCell")),de=$T($["a:txBody"],$,void 0,void 0,n),E.next=42,aX($,A,G,n);case 42:J=E.sent,Ae={text:de},J.rowSpan&&(Ae.rowSpan=J.rowSpan),J.colSpan&&(Ae.colSpan=J.colSpan),J.vMerge&&(Ae.vMerge=J.vMerge),J.hMerge&&(Ae.hMerge=J.hMerge),(J.fontBold||D)&&(Ae.fontBold=J.fontBold||D),(J.fontColor||j)&&(Ae.fontColor=J.fontColor||j),(J.fillColor||K||k)&&(Ae.fillColor=J.fillColor||K||k),Z.push(Ae);case 52:H++,E.next=34;break;case 55:E.next=73;break;case 57:return ue=void 0,R.isFrstColAttr===1&&R.isLstRowAttr!==1?ue="a:firstCol":R.isBandColAttr===1&&R.isLstRowAttr!==1&&(Me(A,["a:band2V"])||Me(A,["a:band1V"]))&&(ue="a:band2V"),R.isLstColAttr===1&&R.isLstRowAttr!==1&&(ue="a:lastCol"),fe=$T(Y["a:txBody"],Y,void 0,void 0,n),E.next=63,aX(Y,A,ue,n);case 63:se=E.sent,q={text:fe},se.rowSpan&&(q.rowSpan=se.rowSpan),se.colSpan&&(q.colSpan=se.colSpan),se.vMerge&&(q.vMerge=se.vMerge),se.hMerge&&(q.hMerge=se.hMerge),(se.fontBold||D)&&(q.fontBold=se.fontBold||D),(se.fontColor||j)&&(q.fontColor=se.fontColor||j),(se.fillColor||K||k)&&(q.fillColor=se.fillColor||K||k),Z.push(q);case 73:I.push(Z);case 74:F++,E.next=27;break;case 77:return E.abrupt("return",ju({type:"table",top:s,left:l,width:c,height:f,data:I,order:r},L||{}));case 78:case"end":return E.stop()}},e)})),l6.apply(this,arguments)}function hbe(e,t){return u6.apply(this,arguments)}function u6(){return u6=$r(rn.mark(function e(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,v,g;return rn.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return r=t.attrs.order,i=Me(t,["p:xfrm"]),o=qv(i,void 0,void 0),a=o.top,s=o.left,l=e1(i,void 0,void 0),u=l.width,c=l.height,f=t["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],d=n.slideResObj[f].target,m.next=8,ro(n.zip,d);case 8:if(h=m.sent,p=Me(h,["c:chartSpace","c:chart","c:plotArea"]),v=HRe(p,n)){m.next=13;break}return m.abrupt("return",{});case 13:return g={type:"chart",top:a,left:s,width:u,height:c,data:v.data,colors:v.colors,chartType:v.type,order:r},v.marker!==void 0&&(g.marker=v.marker),v.barDir!==void 0&&(g.barDir=v.barDir),v.holeSize!==void 0&&(g.holeSize=v.holeSize),v.grouping!==void 0&&(g.grouping=v.grouping),v.style!==void 0&&(g.style=v.style),m.abrupt("return",g);case 20:case"end":return m.stop()}},e)})),u6.apply(this,arguments)}function pbe(e,t){return c6.apply(this,arguments)}function c6(){return c6=$r(rn.mark(function e(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,v,g;return rn.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(r=t.attrs.order,i=Me(t,["p:xfrm"]),o=qv(i,void 0,void 0),a=o.left,s=o.top,l=e1(i,void 0,void 0),u=l.width,c=l.height,f=Me(n.digramFileContent,["p:drawing","p:spTree","p:sp"]),d=[],!f){m.next=26;break}h=$o(f),m.prev=8,h.s();case 10:if((p=h.n()).done){m.next=18;break}return v=p.value,m.next=14,JG(v,n,"diagramBg");case 14:(g=m.sent)&&d.push(g);case 16:m.next=10;break;case 18:m.next=23;break;case 20:m.prev=20,m.t0=m.catch(8),h.e(m.t0);case 23:return m.prev=23,h.f(),m.finish(23);case 26:return m.abrupt("return",{type:"diagram",left:a,top:s,width:u,height:c,elements:d,order:r});case 27:case"end":return m.stop()}},e,null,[[8,20,23,26]])})),c6.apply(this,arguments)}const ii=" ";function vbe(e){let t="";Array.isArray(e)||(e=[e]);for(let n=0;ne.phi1&&(e.phi2-=2*pf),e.sweepFlag===1&&e.phi2r)return[];if(r===0)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];const i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}const Du=Math.PI/180;function dX(e,t,n){return(1-n)*e+n*t}function hX(e,t,n,r){return e+Math.cos(r/180*pf)*t+Math.sin(r/180*pf)*n}function pX(e,t,n,r){const o=t-e,a=n-t,s=r-n,l=3*o+3*s-6*a,u=(a-o)*6,c=3*o;return Math.abs(l)<1e-6?[-c/u]:gbe(u/l,c/l,1e-6)}function vX(e,t,n,r,i){const o=1-i,a=o*o*o,s=3*o*o*i,l=3*o*i*i,u=i*i*i;return e*a+t*s+n*l+r*u}function gbe(e,t,n=1e-6){const r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];const i=Math.sqrt(r);return[-(e/2)-i,-(e/2)+i]}function mbe(e,t,n){e.cX||bk(e,t,n);const r=Math.min(e.phi1,e.phi2),i=Math.max(e.phi1,e.phi2),o=i-r,a=Math.ceil(o/90),s=new Array(a);let l=t,u=n;for(let c=0;c{const[T,w]=f6([M*e.rX,L*e.rY],e.xRot);return[e.cX+T,e.cY+w]};[x.x1,x.y1]=S(v,g),[x.x2,x.y2]=S(R,A),[x.x,x.y]=S(m,y),e.relative&&(x.x1-=l,x.y1-=u,x.x2-=l,x.y2-=u,x.x-=l,x.y-=u),[l,u]=[x.x,x.y],s[c]=x}return s}function ybe(e=1e13){yl(e);function t(n){return Math.round(n*e)/e}return function(r){return"x1"in r&&typeof r.x1<"u"&&(r.x1=t(r.x1)),"y1"in r&&typeof r.y1<"u"&&(r.y1=t(r.y1)),"x2"in r&&typeof r.x2<"u"&&(r.x2=t(r.x2)),"y2"in r&&typeof r.y2<"u"&&(r.y2=t(r.y2)),"x"in r&&typeof r.x<"u"&&(r.x=t(r.x)),"y"in r&&typeof r.y<"u"&&(r.y=t(r.y)),"rX"in r&&typeof r.rX<"u"&&(r.rX=t(r.rX)),"rY"in r&&typeof r.rY<"u"&&(r.rY=t(r.rY)),r}}function jG(){return Al((e,t,n)=>(e.relative&&(typeof e.x1<"u"&&(e.x1+=t),typeof e.y1<"u"&&(e.y1+=n),typeof e.x2<"u"&&(e.x2+=t),typeof e.y2<"u"&&(e.y2+=n),typeof e.x<"u"&&(e.x+=t),typeof e.y<"u"&&(e.y+=n),e.relative=!1),e))}function Abe(){return Al((e,t,n)=>(e.relative||(typeof e.x1<"u"&&(e.x1-=t),typeof e.y1<"u"&&(e.y1-=n),typeof e.x2<"u"&&(e.x2-=t),typeof e.y2<"u"&&(e.y2-=n),typeof e.x<"u"&&(e.x-=t),typeof e.y<"u"&&(e.y-=n),e.relative=!0),e))}function Rbe(e=!0,t=!0,n=!0){return Al((r,i,o,a,s)=>{if(isNaN(a)&&!(r.type<.MOVE_TO))throw new Error("path must start with moveto");return t&&r.type<.HORIZ_LINE_TO&&(r.type=lt.LINE_TO,r.y=r.relative?0:o),n&&r.type<.VERT_LINE_TO&&(r.type=lt.LINE_TO,r.x=r.relative?0:i),e&&r.type<.CLOSE_PATH&&(r.type=lt.LINE_TO,r.x=r.relative?a-i:a,r.y=r.relative?s-o:s),r.type<.ARC&&(r.rX===0||r.rY===0)&&(r.type=lt.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r})}function qG(){let e=NaN,t=NaN,n=NaN,r=NaN;return Al((i,o,a)=>(i.type<.SMOOTH_CURVE_TO&&(i.type=lt.CURVE_TO,e=isNaN(e)?o:e,t=isNaN(t)?a:t,i.x1=i.relative?o-e:2*o-e,i.y1=i.relative?a-t:2*a-t),i.type<.CURVE_TO?(e=i.relative?o+i.x2:i.x2,t=i.relative?a+i.y2:i.y2):(e=NaN,t=NaN),i.type<.SMOOTH_QUAD_TO&&(i.type=lt.QUAD_TO,n=isNaN(n)?o:n,r=isNaN(r)?a:r,i.x1=i.relative?o-n:2*o-n,i.y1=i.relative?a-r:2*a-r),i.type<.QUAD_TO?(n=i.relative?o+i.x1:i.x1,r=i.relative?a+i.y1:i.y1):(n=NaN,r=NaN),i))}function ez(){let e=NaN,t=NaN;return Al((n,r,i)=>{if(n.type<.SMOOTH_QUAD_TO&&(n.type=lt.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?i:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?i-t:2*i-t),n.type<.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?i+n.y1:n.y1;const o=n.x1,a=n.y1;n.type=lt.CURVE_TO,n.x1=((n.relative?0:r)+o*2)/3,n.y1=((n.relative?0:i)+a*2)/3,n.x2=(n.x+o*2)/3,n.y2=(n.y+a*2)/3}else e=NaN,t=NaN;return n})}function Al(e){let t=0,n=0,r=NaN,i=NaN;return function(a){if(isNaN(r)&&!(a.type<.MOVE_TO))throw new Error("path must start with moveto");const s=e(a,t,n,r,i);return a.type<.CLOSE_PATH&&(t=r,n=i),"x"in a&&typeof a.x<"u"&&(t=a.relative?t+a.x:a.x),"y"in a&&typeof a.y<"u"&&(n=a.relative?n+a.y:a.y),a.type<.MOVE_TO&&(r=t,i=n),s}}function bbe(e=0){yl(e);let t=NaN,n=NaN,r=NaN,i=NaN;return Al((o,a,s,l,u)=>{const c=Math.abs;let f=!1,d=0,h=0;if(o.type<.SMOOTH_CURVE_TO&&(d=isNaN(t)?0:a-t,h=isNaN(n)?0:s-n),o.type&(lt.CURVE_TO|lt.SMOOTH_CURVE_TO)?(t=o.relative?a+o.x2:o.x2,n=o.relative?s+o.y2:o.y2):(t=NaN,n=NaN),o.type<.SMOOTH_QUAD_TO?(r=isNaN(r)?a:2*a-r,i=isNaN(i)?s:2*s-i):o.type<.QUAD_TO?(r=o.relative?a+o.x1:o.x1,i=o.relative?s+o.y1:o.y2):(r=NaN,i=NaN),o.type<.LINE_COMMANDS||o.type<.ARC&&(o.rX===0||o.rY===0||!o.lArcFlag)||o.type<.CURVE_TO||o.type<.SMOOTH_CURVE_TO||o.type<.QUAD_TO||o.type<.SMOOTH_QUAD_TO){const p=typeof o.x>"u"?0:o.relative?o.x:o.x-a,v=typeof o.y>"u"?0:o.relative?o.y:o.y-s;d=isNaN(r)?typeof o.x1>"u"?d:o.relative?o.x:o.x1-a:r-a,h=isNaN(i)?typeof o.y1>"u"?h:o.relative?o.y:o.y1-s:i-s;const g=typeof o.x2>"u"?0:o.relative?o.x:o.x2-a,m=typeof o.y2>"u"?0:o.relative?o.y:o.y2-s;c(p)<=e&&c(v)<=e&&c(d)<=e&&c(h)<=e&&c(g)<=e&&c(m)<=e&&(f=!0)}return o.type<.CLOSE_PATH&&c(a-l)<=e&&c(s-u)<=e&&(f=!0),f?[]:o})}function hd(e,t,n,r,i,o){return yl(e,t,n,r,i,o),Al((a,s,l,u)=>{const c=a.x1,f=a.x2,d=a.relative&&!isNaN(u),h=typeof a.x<"u"?a.x:d?0:s,p=typeof a.y<"u"?a.y:d?0:l;a.type<.HORIZ_LINE_TO&&t!==0&&(a.type=lt.LINE_TO,a.y=a.relative?0:l),a.type<.VERT_LINE_TO&&n!==0&&(a.type=lt.LINE_TO,a.x=a.relative?0:s),typeof a.x<"u"&&(a.x=a.x*e+p*n+(d?0:i)),typeof a.y<"u"&&(a.y=h*t+a.y*r+(d?0:o)),typeof a.x1<"u"&&(a.x1=a.x1*e+a.y1*n+(d?0:i)),typeof a.y1<"u"&&(a.y1=c*t+a.y1*r+(d?0:o)),typeof a.x2<"u"&&(a.x2=a.x2*e+a.y2*n+(d?0:i)),typeof a.y2<"u"&&(a.y2=f*t+a.y2*r+(d?0:o));function v(m){return m*m}const g=e*r-t*n;if(typeof a.xRot<"u"&&(e!==1||t!==0||n!==0||r!==1))if(g===0)delete a.rX,delete a.rY,delete a.xRot,delete a.lArcFlag,delete a.sweepFlag,a.type=lt.LINE_TO;else{const m=a.xRot*Math.PI/180,y=Math.sin(m),R=Math.cos(m),A=1/v(a.rX),x=1/v(a.rY),S=v(R)*A+v(y)*x,M=2*y*R*(A-x),L=v(y)*A+v(R)*x,T=S*r*r-M*t*r+L*t*t,w=M*(e*r+t*n)-2*(S*n*r+L*e*t),P=S*n*n-M*e*n+L*e*e,k=(Math.atan2(w,T-P)+Math.PI)%Math.PI/2,N=Math.sin(k),C=Math.cos(k);a.rX=Math.abs(g)/Math.sqrt(T*v(C)+w*N*C+P*v(N)),a.rY=Math.abs(g)/Math.sqrt(T*v(N)-w*N*C+P*v(C)),a.xRot=k*180/Math.PI}return typeof a.sweepFlag<"u"&&0>g&&(a.sweepFlag=+!a.sweepFlag),a})}function xbe(e,t=0,n=0){yl(e,t,n);const r=Math.sin(e),i=Math.cos(e);return hd(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)}function Sbe(e,t=0){return yl(e,t),hd(1,0,0,1,e,t)}function wbe(e,t=e){return yl(e,t),hd(e,0,0,t,0,0)}function Mbe(e){return yl(e),hd(1,0,Math.atan(e),1,0,0)}function Lbe(e){return yl(e),hd(1,Math.atan(e),0,1,0,0)}function Tbe(e=0){return yl(e),hd(-1,0,0,1,e,0)}function _be(e=0){return yl(e),hd(1,0,0,-1,0,e)}function Obe(){return Al((e,t,n)=>lt.ARC===e.type?mbe(e,e.relative?0:t,e.relative?0:n):e)}function kbe(){return Al((e,t,n)=>(e.relative&&(t=0,n=0),lt.ARC===e.type&&bk(e,t,n),e))}function tz(){return e=>({...e})}function Pbe(){const e=tz(),t=jG(),n=ez(),r=qG(),i=Al((o,a,s)=>{const l=r(n(t(e(o))));function u(f){f>i.maxX&&(i.maxX=f),fi.maxY&&(i.maxY=f),fh&&u(vX(a,l.x1,l.x2,l.x,h));const d=pX(s,l.y1,l.y2,l.y);for(const h of d)0h&&c(vX(s,l.y1,l.y2,l.y,h))}if(l.type<.ARC){u(l.x),c(l.y),bk(l,a,s);const f=l.xRot/180*Math.PI,d=Math.cos(f)*l.rX,h=Math.sin(f)*l.rX,p=-Math.sin(f)*l.rY,v=Math.cos(f)*l.rY,[g,m]=l.phi1l.phi2?[l.phi2+360,l.phi1+360]:[l.phi2,l.phi1],y=([x,S])=>{const L=Math.atan2(S,x)*180/Math.PI;return Lg&&xg&&xe===" "||e===" "||e==="\r"||e===` -`,gX=e=>48<=e.charCodeAt(0)&&e.charCodeAt(0)<=57;class Ibe extends nz{constructor(){super();Tr(this,"curNumber","");Tr(this,"curCommandType",-1);Tr(this,"curCommandRelative",!1);Tr(this,"canParseCommandOrComma",!0);Tr(this,"curNumberHasExp",!1);Tr(this,"curNumberHasExpDigits",!1);Tr(this,"curNumberHasDecimal",!1);Tr(this,"curArgs",[])}finish(n=[]){if(this.parse(" ",n),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return n}parse(n,r=[]){const i=o=>{r.push(o),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let o=0;ou)throw new SyntaxError(`Expected positive number, got "${u}" at index "${o}"`)}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError(`Expected a flag, got "${this.curNumber}" at index "${o}"`)}this.curArgs.push(u),this.curArgs.length===Nbe[this.curCommandType]&&(lt.HORIZ_LINE_TO===this.curCommandType?i({type:lt.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):lt.VERT_LINE_TO===this.curCommandType?i({type:lt.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===lt.MOVE_TO||this.curCommandType===lt.LINE_TO||this.curCommandType===lt.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),lt.MOVE_TO===this.curCommandType&&(this.curCommandType=lt.LINE_TO)):this.curCommandType===lt.CURVE_TO?i({type:lt.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===lt.SMOOTH_CURVE_TO?i({type:lt.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===lt.QUAD_TO?i({type:lt.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===lt.ARC&&i({type:lt.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Cbe(a)){if(a===","&&this.canParseCommandOrComma){this.canParseCommandOrComma=!1;continue}if(a==="+"||a==="-"||a==="."){this.curNumber=a,this.curNumberHasDecimal=a===".";continue}if(l){this.curNumber=a,this.curNumberHasDecimal=!1;continue}if(this.curArgs.length!==0)throw new SyntaxError(`Unterminated command at index ${o}.`);if(!this.canParseCommandOrComma)throw new SyntaxError(`Unexpected character "${a}" at index ${o}. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,a==="z"||a==="Z"){r.push({type:lt.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1;continue}else if(a==="h"||a==="H")this.curCommandType=lt.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=lt.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=lt.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=lt.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=lt.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=lt.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=lt.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="T")this.curCommandType=lt.SMOOTH_QUAD_TO,this.curCommandRelative=a==="t";else if(a==="a"||a==="A")this.curCommandType=lt.ARC,this.curCommandRelative=a==="a";else throw new SyntaxError(`Unexpected character "${a}" at index ${o}.`)}}return r}transform(n){return Object.create(this,{parse:{value(i,o=[]){const a=Object.getPrototypeOf(this).parse.call(this,i);for(const s of a){const l=n(s);Array.isArray(l)?o.push(...l):o.push(l)}return o}}})}}const cr=class cr extends nz{constructor(n){super();Tr(this,"commands");typeof n=="string"?this.commands=cr.parse(n):this.commands=n}encode(){return cr.encode(this.commands)}getBounds(){const n=Si.CALCULATE_BOUNDS();return this.transform(n),n}transform(n){const r=[];for(const i of this.commands){const o=n(i);Array.isArray(o)?r.push(...o):r.push(o)}return this.commands=r,this}static encode(n){return vbe(n)}static parse(n){const r=new Ibe,i=[];return r.parse(n,i),r.finish(i),i}};Tr(cr,"CLOSE_PATH",1),Tr(cr,"MOVE_TO",2),Tr(cr,"HORIZ_LINE_TO",4),Tr(cr,"VERT_LINE_TO",8),Tr(cr,"LINE_TO",16),Tr(cr,"CURVE_TO",32),Tr(cr,"SMOOTH_CURVE_TO",64),Tr(cr,"QUAD_TO",128),Tr(cr,"SMOOTH_QUAD_TO",256),Tr(cr,"ARC",512),Tr(cr,"LINE_COMMANDS",cr.LINE_TO|cr.HORIZ_LINE_TO|cr.VERT_LINE_TO),Tr(cr,"DRAWING_COMMANDS",cr.HORIZ_LINE_TO|cr.VERT_LINE_TO|cr.LINE_TO|cr.CURVE_TO|cr.SMOOTH_CURVE_TO|cr.QUAD_TO|cr.SMOOTH_QUAD_TO|cr.ARC);let lt=cr;const Nbe={[lt.MOVE_TO]:2,[lt.LINE_TO]:2,[lt.HORIZ_LINE_TO]:1,[lt.VERT_LINE_TO]:1,[lt.CLOSE_PATH]:0,[lt.QUAD_TO]:4,[lt.SMOOTH_QUAD_TO]:2,[lt.CURVE_TO]:6,[lt.SMOOTH_CURVE_TO]:4,[lt.ARC]:7};var Fbe=function(){function e(t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(r.push(l.value),!(n&&r.length===n));i=!0);}catch(u){o=!0,a=u}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),cm=Math.PI*2,L5=function(t,n,r,i,o,a,s){var l=t.x,u=t.y;l*=n,u*=r;var c=i*l-o*u,f=o*l+i*u;return{x:c+a,y:f+s}},Ebe=function(t,n){var r=n===1.5707963267948966?.551915024494:n===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(n/4),i=Math.cos(t),o=Math.sin(t),a=Math.cos(t+n),s=Math.sin(t+n);return[{x:i-o*r,y:o+i*r},{x:a+s*r,y:s-a*r},{x:a,y:s}]},mX=function(t,n,r,i){var o=t*i-n*r<0?-1:1,a=t*r+n*i;return a>1&&(a=1),a<-1&&(a=-1),o*Math.acos(a)},Xbe=function(t,n,r,i,o,a,s,l,u,c,f,d){var h=Math.pow(o,2),p=Math.pow(a,2),v=Math.pow(f,2),g=Math.pow(d,2),m=h*p-h*g-p*v;m<0&&(m=0),m/=h*g+p*v,m=Math.sqrt(m)*(s===l?-1:1);var y=m*o/a*d,R=m*-a/o*f,A=c*y-u*R+(t+r)/2,x=u*y+c*R+(n+i)/2,S=(f-y)/o,M=(d-R)/a,L=(-f-y)/o,T=(-d-R)/a,w=mX(1,0,S,M),P=mX(S,M,L,T);return l===0&&P>0&&(P-=cm),l===1&&P<0&&(P+=cm),[A,x,w,P]},Wbe=function(t){var n=t.px,r=t.py,i=t.cx,o=t.cy,a=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,d=t.sweepFlag,h=d===void 0?0:d,p=[];if(a===0||s===0)return[];var v=Math.sin(u*cm/360),g=Math.cos(u*cm/360),m=g*(n-i)/2+v*(r-o)/2,y=-v*(n-i)/2+g*(r-o)/2;if(m===0&&y===0)return[];a=Math.abs(a),s=Math.abs(s);var R=Math.pow(m,2)/Math.pow(a,2)+Math.pow(y,2)/Math.pow(s,2);R>1&&(a*=Math.sqrt(R),s*=Math.sqrt(R));var A=Xbe(n,r,i,o,a,s,f,h,v,g,m,y),x=Fbe(A,4),S=x[0],M=x[1],L=x[2],T=x[3],w=Math.abs(T)/(cm/4);Math.abs(1-w)<1e-7&&(w=1);var P=Math.max(Math.ceil(w),1);T/=P;for(var k=0;k{const t=new lt(e),n=[];for(const r of t.commands){const i=Vbe[r.type];if((r.type===2||r.type===16)&&n.push({x:r.x,y:r.y,relative:r.relative,type:i}),r.type===32)n.push({x:r.x,y:r.y,curve:{type:"cubic",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2},relative:r.relative,type:i});else if(r.type===128)n.push({x:r.x,y:r.y,curve:{type:"quadratic",x1:r.x1,y1:r.y1},relative:r.relative,type:i});else if(r.type===512){const o=n[n.length-1];if(!["M","L","Q","C"].includes(o.type))continue;const a=Wbe({px:o.x,py:o.y,cx:r.x,cy:r.y,rx:r.rX,ry:r.rY,xAxisRotation:r.xRot,largeArcFlag:r.lArcFlag,sweepFlag:r.sweepFlag});for(const s of a)n.push({x:s.x,y:s.y,curve:{type:"cubic",x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2},relative:!1,type:"C"})}else if(r.type===1)n.push({close:!0,type:i});else continue}return n},Dbe=e=>{try{const t=new lt(e),n=[],r=[];for(const i of t.commands){const o="x"in i?i.x:0,a="y"in i?i.y:0;n.push(o),r.push(a)}return{minX:Math.min(...n),minY:Math.min(...r),maxX:Math.max(...n),maxY:Math.max(...r)}}catch{return{minX:0,minY:0,maxX:0,maxY:0}}},AX=(e,t)=>e.replace(/font-size:\s*([\d.]+)pt/g,(n,r)=>`font-size: ${(parseFloat(r)*t).toFixed(1)}px`),Ube=()=>{const e=at(),{theme:t}=Ve(at()),{addHistorySnapshot:n}=on(),{addSlidesFromData:r}=K2(),{isEmptySlide:i}=bc(),o=he(!1),a=(c,f=!1)=>{const d=c[0],h=new FileReader;h.addEventListener("load",()=>{try{const p=JSON.parse(ZH(h.result));f?(e.updateSlideIndex(0),e.setSlides(p),n()):i.value?(e.setSlides(p),n()):r(p)}catch{un.error("无法正确读取 / 解析该文件")}}),h.readAsText(d)},s=c=>{let f=[0,0],d=[0,0];!c.isFlipV&&!c.isFlipH?(f=[0,0],d=[c.width,c.height]):c.isFlipV&&c.isFlipH?(f=[c.width,c.height],d=[0,0]):c.isFlipV&&!c.isFlipH?(f=[0,c.height],d=[c.width,0]):(f=[c.width,0],d=[0,c.height]);const h={type:"line",id:Qt(10),width:c.borderWidth||1,left:c.left,top:c.top,start:f,end:d,style:c.borderType,color:c.borderColor,points:["",/straightConnector/.test(c.shapType)?"arrow":""]};return/bentConnector/.test(c.shapType)&&(h.broken2=[Math.abs(f[0]-d[0])/2,Math.abs(f[1]-d[1])/2]),h},l=(c,f,d,h,p,v,g)=>{const m=g*(Math.PI/180),y=c+d/2,R=f+h/2,A=p-d/2,x=v-h/2,S=A*Math.cos(m)+x*Math.sin(m),M=-A*Math.sin(m)+x*Math.cos(m),L=y+S,T=R+M;return{x:L,y:T}};return{importSpecificFile:a,importPPTXFile:(c,f=!1)=>{const d=c[0];if(!d)return;o.value=!0;const h=[];for(const v of nk)h.push(...v.children);const p=new FileReader;p.onload=async v=>{let g=null;try{g=await tbe(v.target.result)}catch{o.value=!1,un.error("无法正确读取 / 解析该文件");return}const m=96/72,y=g.size.width;e.setViewportSize(y*m),e.setTheme({themeColors:g.themeColors});const R=[];for(const A of g.slides){const{type:x,value:S}=A.fill;let M;x==="image"?M={type:"image",image:{src:S.picBase64,size:"cover"}}:x==="gradient"?M={type:"gradient",gradient:{type:"linear",colors:S.colors.map(w=>({...w,pos:parseInt(w.pos)})),rotate:S.rot}}:M={type:"solid",color:S};const L={id:Qt(10),elements:[],background:M,remark:A.note||""},T=w=>{var k,N,C;const P=w.sort((I,F)=>I.order-F.order);for(const I of P){const F=I.width||1,W=I.height||1,B=I.left,K=I.top;if(I.width=I.width*m,I.height=I.height*m,I.left=I.left*m,I.top=I.top*m,I.type==="text"){const j={type:"text",id:Qt(10),width:I.width,height:I.height,left:I.left,top:I.top,rotate:I.rotate,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,content:AX(I.content,m),lineHeight:1,outline:{color:I.borderColor,width:I.borderWidth,style:I.borderType},fill:I.fill.type==="color"?I.fill.value:"",vertical:I.isVertical};I.shadow&&(j.shadow={h:I.shadow.h*m,v:I.shadow.v*m,blur:I.shadow.blur*m,color:I.shadow.color}),L.elements.push(j)}else if(I.type==="image")L.elements.push({type:"image",id:Qt(10),src:I.src,width:I.width,height:I.height,left:I.left,top:I.top,fixedRatio:!0,rotate:I.rotate,flipH:I.isFlipH,flipV:I.isFlipV});else if(I.type==="audio")L.elements.push({type:"audio",id:Qt(10),src:I.blob,width:I.width,height:I.height,left:I.left,top:I.top,rotate:0,fixedRatio:!1,color:t.value.themeColors[0],loop:!1,autoplay:!1});else if(I.type==="video")L.elements.push({type:"video",id:Qt(10),src:I.blob||I.src,width:I.width,height:I.height,left:I.left,top:I.top,rotate:0,autoplay:!1});else if(I.type==="shape")if(I.shapType==="line"||/Connector/.test(I.shapType)){const j=s(I);L.elements.push(j)}else{const j=h.find(G=>G.pptxShapeType===I.shapType),D={mid:"middle",down:"bottom",up:"top"},Y=((k=I.fill)==null?void 0:k.type)==="gradient"?{type:"linear",colors:I.fill.value.colors.map(G=>({...G,pos:parseInt(G.pos)})),rotate:I.fill.value.rot}:void 0,Z=((N=I.fill)==null?void 0:N.type)==="image"?I.fill.value.picBase64:void 0,H=((C=I.fill)==null?void 0:C.type)==="color"?I.fill.value:"",$={type:"shape",id:Qt(10),width:I.width,height:I.height,left:I.left,top:I.top,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:H,gradient:Y,pattern:Z,fixedRatio:!1,rotate:I.rotate,outline:{color:I.borderColor,width:I.borderWidth,style:I.borderType},text:{content:AX(I.content,m),defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,align:D[I.vAlign]||"middle"},flipH:I.isFlipH,flipV:I.isFlipV};if(I.shadow&&($.shadow={h:I.shadow.h*m,v:I.shadow.v*m,blur:I.shadow.blur*m,color:I.shadow.color}),j&&($.path=j.path,$.viewBox=j.viewBox,j.pathFormula)){$.pathFormula=j.pathFormula,$.viewBox=[I.width,I.height];const G=f0[j.pathFormula];"editable"in G&&G.editable?($.path=G.formula(I.width,I.height,G.defaultValue),$.keypoints=G.defaultValue):$.path=G.formula(I.width,I.height)}if(I.shapType==="custom")if(I.path.indexOf("NaN")!==-1)$.path="";else{$.special=!0,$.path=I.path;const{maxX:G,maxY:de}=Dbe($.path);$.viewBox=[G||F,de||W]}$.path&&L.elements.push($)}else if(I.type==="table"){const j=I.data.length,D=I.data[0].length,Y={fontname:t.value.fontName,color:t.value.fontColor},Z=[];for(let $=0;$`坐标${G+1}`),D=["X","Y"],Y=I.data;else{const $=I.data;j=Object.values($[0].xlabels),D=$.map(G=>G.key),Y=$.map(G=>G.values.map(de=>de.y))}const Z={};let H="bar";switch(I.chartType){case"barChart":case"bar3DChart":H="bar",I.barDir==="bar"&&(H="column"),(I.grouping==="stacked"||I.grouping==="percentStacked")&&(Z.stack=!0);break;case"lineChart":case"line3DChart":(I.grouping==="stacked"||I.grouping==="percentStacked")&&(Z.stack=!0),H="line";break;case"areaChart":case"area3DChart":(I.grouping==="stacked"||I.grouping==="percentStacked")&&(Z.stack=!0),H="area";break;case"scatterChart":case"bubbleChart":H="scatter";break;case"pieChart":case"pie3DChart":H="pie";break;case"radarChart":H="radar";break;case"doughnutChart":H="ring";break}L.elements.push({type:"chart",id:Qt(10),chartType:H,width:I.width,height:I.height,left:I.left,top:I.top,rotate:0,themeColors:I.colors.length?I.colors:t.value.themeColors,textColor:t.value.fontColor,data:{labels:j,legends:D,series:Y},options:Z})}else if(I.type==="group"){const j=I.elements.map(D=>{let Y=D.left+B,Z=D.top+K;if(I.rotate){const{x:H,y:$}=l(B,K,F,W,D.left,D.top,I.rotate);Y=H,Z=$}return{...D,left:Y,top:Z}});T(j)}else if(I.type==="diagram"){const j=I.elements.map(D=>({...D,left:D.left+B,top:D.top+K}));T(j)}}};T([...A.elements,...A.layoutElements]),R.push(L)}f?(e.updateSlideIndex(0),e.setSlides(R),n()):i.value?(e.setSlides(R),n()):r(R),o.value=!1},p.readAsArrayBuffer(d)},exporting:o}},Bbe={class:"hotkey-doc"},Ybe={class:"title"},Zbe={class:"label"},Qbe={class:"value"},Hbe={key:1,class:"row"},Kbe=Ee({__name:"HotkeyDoc",setup(e){return(t,n)=>(U(),ee("div",Bbe,[(U(!0),ee(Ne,null,Je(z(e2e),r=>(U(),ee(Ne,{key:r.type},[V("div",Ybe,dt(r.type),1),(U(!0),ee(Ne,null,Je(r.children,i=>(U(),ee("div",{class:"hotkey-item",key:i.label},[i.value?(U(),ee(Ne,{key:0},[V("div",Zbe,dt(i.label),1),V("div",Qbe,dt(i.value),1)],64)):(U(),ee("div",Hbe,dt(i.label),1))]))),128))],64))),128))]))}}),Gbe=Be(Kbe,[["__scopeId","data-v-42fbe598"]]),zbe=["accept"],Jbe=Ee({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,r=he(),i=()=>{r.value&&(r.value.value="",r.value.click())},o=a=>{const s=a.target.files;s&&n("change",s)};return(a,s)=>(U(),ee("div",{class:"file-input",onClick:s[1]||(s[1]=l=>i())},[ar(a.$slots,"default",{},void 0,!0),V("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:r,accept:a.accept,onChange:s[0]||(s[0]=l=>o(l))},null,40,zbe)]))}}),Jf=Be(Jbe,[["__scopeId","data-v-1bd53d05"]]),$be=e=>($t("data-v-cb40f98b"),e=e(),jt(),e),jbe={class:"spin"},qbe=$be(()=>V("div",{class:"spinner"},null,-1)),exe={class:"text"},txe=Ee({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},tip:{default:""}},setup(e){return(t,n)=>t.loading?(U(),ee("div",{key:0,class:Ge(["fullscreen-spin",{mask:t.mask}])},[V("div",jbe,[qbe,V("div",exe,dt(t.tip),1)])],2)):Ye("",!0)}}),ny=Be(txe,[["__scopeId","data-v-cb40f98b"]]),nxe={class:"header"},rxe=Ee({__name:"Drawer",props:{visible:{type:Boolean},width:{default:320},contentStyle:{},placement:{default:"right"}},emits:["update:visible"],setup(e,{emit:t}){const n=e,r=t,i=he(!1),o=Se(()=>({width:n.width+"px",...n.contentStyle||{}}));return(a,s)=>{const l=xe("IconClose");return U(),Te(xO,{to:"body"},[O(Kh,{name:`drawer-slide-${a.placement}`,onAfterLeave:s[1]||(s[1]=u=>i.value=!1),onBeforeEnter:s[2]||(s[2]=u=>i.value=!0)},{default:ie(()=>[ze(V("div",{class:Ge(["drawer",a.placement]),style:we({width:n.width+"px"})},[V("div",nxe,[ar(a.$slots,"title",{},void 0,!0),V("span",{class:"close-btn",onClick:s[0]||(s[0]=u=>r("update:visible",!1))},[O(l)])]),i.value?(U(),ee("div",{key:0,class:"content",style:we(o.value)},[ar(a.$slots,"default",{},void 0,!0)],4)):Ye("",!0)],6),[[hc,a.visible]])]),_:3},8,["name"])])}}}),ixe=Be(rxe,[["__scopeId","data-v-46f39759"]]),oxe={class:"prefix"},axe=["disabled","value","placeholder","maxlength"],sxe={class:"suffix"},lxe=Ee({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},simple:{type:Boolean,default:!1},maxlength:{}},emits:["update:value","input","change","blur","focus","enter","backspace"],setup(e,{expose:t,emit:n}){const r=n,i=he(!1),o=c=>{r("update:value",c.target.value)},a=c=>{i.value=!1,r("blur",c)},s=c=>{i.value=!0,r("focus",c)},l=he();return t({focus:()=>{l.value&&l.value.focus()}}),(c,f)=>(U(),ee("div",{class:Ge(["input",{disabled:c.disabled,focused:i.value,simple:c.simple}])},[V("span",oxe,[ar(c.$slots,"prefix",{},void 0,!0)]),V("input",{type:"text",ref_key:"inputRef",ref:l,disabled:c.disabled,value:c.value,placeholder:c.placeholder,maxlength:c.maxlength,onInput:f[0]||(f[0]=d=>o(d)),onFocus:f[1]||(f[1]=d=>s(d)),onBlur:f[2]||(f[2]=d=>a(d)),onChange:f[3]||(f[3]=d=>r("change",d)),onKeydown:[f[4]||(f[4]=pl(d=>r("enter",d),["enter"])),f[5]||(f[5]=pl(d=>r("backspace",d),["backspace"]))]},null,40,axe),V("span",sxe,[ar(c.$slots,"suffix",{},void 0,!0)])],2))}}),pu=Be(lxe,[["__scopeId","data-v-cc7e5c91"]]);var aa="top",Os="bottom",ks="right",sa="left",xk="auto",ry=[aa,Os,ks,sa],Lv="start",r2="end",uxe="clippingParents",rz="viewport",N1="popper",cxe="reference",RX=ry.reduce(function(e,t){return e.concat([t+"-"+Lv,t+"-"+r2])},[]),iz=[].concat(ry,[xk]).reduce(function(e,t){return e.concat([t,t+"-"+Lv,t+"-"+r2])},[]),fxe="beforeRead",dxe="read",hxe="afterRead",pxe="beforeMain",vxe="main",gxe="afterMain",mxe="beforeWrite",yxe="write",Axe="afterWrite",Rxe=[fxe,dxe,hxe,pxe,vxe,gxe,mxe,yxe,Axe];function vu(e){return e?(e.nodeName||"").toLowerCase():null}function Qa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function t0(e){var t=Qa(e).Element;return e instanceof t||e instanceof Element}function ws(e){var t=Qa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sk(e){if(typeof ShadowRoot>"u")return!1;var t=Qa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bxe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ws(o)||!vu(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function xxe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!ws(i)||!vu(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const oz={name:"applyStyles",enabled:!0,phase:"write",fn:bxe,effect:xxe,requires:["computeStyles"]};function lu(e){return e.split("-")[0]}var Eh=Math.max,Ex=Math.min,Tv=Math.round;function d6(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function az(){return!/^((?!chrome|android).)*safari/i.test(d6())}function _v(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ws(e)&&(i=e.offsetWidth>0&&Tv(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Tv(r.height)/e.offsetHeight||1);var a=t0(e)?Qa(e):window,s=a.visualViewport,l=!az()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function wk(e){var t=_v(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vc(e){return Qa(e).getComputedStyle(e)}function Sxe(e){return["table","td","th"].indexOf(vu(e))>=0}function pd(e){return((t0(e)?e.ownerDocument:e.document)||window.document).documentElement}function v3(e){return vu(e)==="html"?e:e.assignedSlot||e.parentNode||(Sk(e)?e.host:null)||pd(e)}function bX(e){return!ws(e)||vc(e).position==="fixed"?null:e.offsetParent}function wxe(e){var t=/firefox/i.test(d6()),n=/Trident/i.test(d6());if(n&&ws(e)){var r=vc(e);if(r.position==="fixed")return null}var i=v3(e);for(Sk(i)&&(i=i.host);ws(i)&&["html","body"].indexOf(vu(i))<0;){var o=vc(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function iy(e){for(var t=Qa(e),n=bX(e);n&&Sxe(n)&&vc(n).position==="static";)n=bX(n);return n&&(vu(n)==="html"||vu(n)==="body"&&vc(n).position==="static")?t:n||wxe(e)||t}function Mk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fm(e,t,n){return Eh(e,Ex(t,n))}function Mxe(e,t,n){var r=fm(e,t,n);return r>n?n:r}function lz(){return{top:0,right:0,bottom:0,left:0}}function uz(e){return Object.assign({},lz(),e)}function cz(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lxe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uz(typeof t!="number"?t:cz(t,ry))};function Txe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=lu(n.placement),l=Mk(s),u=[sa,ks].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=Lxe(i.padding,n),d=wk(o),h=l==="y"?aa:sa,p=l==="y"?Os:ks,v=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=iy(o),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,R=v/2-g/2,A=f[h],x=y-d[c]-f[p],S=y/2-d[c]/2+R,M=fm(A,S,x),L=l;n.modifiersData[r]=(t={},t[L]=M,t.centerOffset=M-S,t)}}function _xe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||sz(t.elements.popper,i)&&(t.elements.arrow=i))}const Oxe={name:"arrow",enabled:!0,phase:"main",fn:Txe,effect:_xe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ov(e){return e.split("-")[1]}var kxe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pxe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Tv(n*i)/i||0,y:Tv(r*i)/i||0}}function xX(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,p=a.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),R=sa,A=aa,x=window;if(u){var S=iy(n),M="clientHeight",L="clientWidth";if(S===Qa(n)&&(S=pd(n),vc(S).position!=="static"&&s==="absolute"&&(M="scrollHeight",L="scrollWidth")),S=S,i===aa||(i===sa||i===ks)&&o===r2){A=Os;var T=f&&S===x&&x.visualViewport?x.visualViewport.height:S[M];v-=T-r.height,v*=l?1:-1}if(i===sa||(i===aa||i===Os)&&o===r2){R=ks;var w=f&&S===x&&x.visualViewport?x.visualViewport.width:S[L];h-=w-r.width,h*=l?1:-1}}var P=Object.assign({position:s},u&&kxe),k=c===!0?Pxe({x:h,y:v},Qa(n)):{x:h,y:v};if(h=k.x,v=k.y,l){var N;return Object.assign({},P,(N={},N[A]=y?"0":"",N[R]=m?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",N))}return Object.assign({},P,(t={},t[A]=y?v+"px":"",t[R]=m?h+"px":"",t.transform="",t))}function Cxe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:lu(t.placement),variation:Ov(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xX(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xX(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ixe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cxe,data:{}};var QA={passive:!0};function Nxe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Qa(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,QA)}),s&&l.addEventListener("resize",n.update,QA),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,QA)}),s&&l.removeEventListener("resize",n.update,QA)}}const Fxe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nxe,data:{}};var Exe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ab(e){return e.replace(/left|right|bottom|top/g,function(t){return Exe[t]})}var Xxe={start:"end",end:"start"};function SX(e){return e.replace(/start|end/g,function(t){return Xxe[t]})}function Lk(e){var t=Qa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Tk(e){return _v(pd(e)).left+Lk(e).scrollLeft}function Wxe(e,t){var n=Qa(e),r=pd(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=az();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Tk(e),y:l}}function Vxe(e){var t,n=pd(e),r=Lk(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Eh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Eh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Tk(e),l=-r.scrollTop;return vc(i||n).direction==="rtl"&&(s+=Eh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function _k(e){var t=vc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function fz(e){return["html","body","#document"].indexOf(vu(e))>=0?e.ownerDocument.body:ws(e)&&_k(e)?e:fz(v3(e))}function dm(e,t){var n;t===void 0&&(t=[]);var r=fz(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Qa(r),a=i?[o].concat(o.visualViewport||[],_k(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(dm(v3(a)))}function h6(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dxe(e,t){var n=_v(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function wX(e,t,n){return t===rz?h6(Wxe(e,n)):t0(t)?Dxe(t,n):h6(Vxe(pd(e)))}function Uxe(e){var t=dm(v3(e)),n=["absolute","fixed"].indexOf(vc(e).position)>=0,r=n&&ws(e)?iy(e):e;return t0(r)?t.filter(function(i){return t0(i)&&sz(i,r)&&vu(i)!=="body"}):[]}function Bxe(e,t,n,r){var i=t==="clippingParents"?Uxe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=wX(e,u,r);return l.top=Eh(c.top,l.top),l.right=Ex(c.right,l.right),l.bottom=Ex(c.bottom,l.bottom),l.left=Eh(c.left,l.left),l},wX(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function dz(e){var t=e.reference,n=e.element,r=e.placement,i=r?lu(r):null,o=r?Ov(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case aa:l={x:a,y:t.y-n.height};break;case Os:l={x:a,y:t.y+t.height};break;case ks:l={x:t.x+t.width,y:s};break;case sa:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?Mk(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Lv:l[u]=l[u]-(t[c]/2-n[c]/2);break;case r2:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function i2(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?uxe:s,u=n.rootBoundary,c=u===void 0?rz:u,f=n.elementContext,d=f===void 0?N1:f,h=n.altBoundary,p=h===void 0?!1:h,v=n.padding,g=v===void 0?0:v,m=uz(typeof g!="number"?g:cz(g,ry)),y=d===N1?cxe:N1,R=e.rects.popper,A=e.elements[p?y:d],x=Bxe(t0(A)?A:A.contextElement||pd(e.elements.popper),l,c,a),S=_v(e.elements.reference),M=dz({reference:S,element:R,strategy:"absolute",placement:i}),L=h6(Object.assign({},R,M)),T=d===N1?L:S,w={top:x.top-T.top+m.top,bottom:T.bottom-x.bottom+m.bottom,left:x.left-T.left+m.left,right:T.right-x.right+m.right},P=e.modifiersData.offset;if(d===N1&&P){var k=P[i];Object.keys(w).forEach(function(N){var C=[ks,Os].indexOf(N)>=0?1:-1,I=[aa,Os].indexOf(N)>=0?"y":"x";w[N]+=k[I]*C})}return w}function Yxe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?iz:l,c=Ov(r),f=c?s?RX:RX.filter(function(p){return Ov(p)===c}):ry,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=i2(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[lu(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function Zxe(e){if(lu(e)===xk)return[];var t=Ab(e);return[SX(e),t,SX(t)]}function Qxe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,v=n.allowedAutoPlacements,g=t.options.placement,m=lu(g),y=m===g,R=l||(y||!p?[Ab(g)]:Zxe(g)),A=[g].concat(R).reduce(function(H,$){return H.concat(lu($)===xk?Yxe(t,{placement:$,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):$)},[]),x=t.rects.reference,S=t.rects.popper,M=new Map,L=!0,T=A[0],w=0;w=0,I=C?"width":"height",F=i2(t,{placement:P,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),W=C?N?ks:sa:N?Os:aa;x[I]>S[I]&&(W=Ab(W));var B=Ab(W),K=[];if(o&&K.push(F[k]<=0),s&&K.push(F[W]<=0,F[B]<=0),K.every(function(H){return H})){T=P,L=!1;break}M.set(P,K)}if(L)for(var j=p?3:1,D=function($){var G=A.find(function(de){var J=M.get(de);if(J)return J.slice(0,$).every(function(Ae){return Ae})});if(G)return T=G,"break"},Y=j;Y>0;Y--){var Z=D(Y);if(Z==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const Hxe={name:"flip",enabled:!0,phase:"main",fn:Qxe,requiresIfExists:["offset"],data:{_skip:!1}};function MX(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function LX(e){return[aa,ks,Os,sa].some(function(t){return e[t]>=0})}function Kxe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=i2(t,{elementContext:"reference"}),s=i2(t,{altBoundary:!0}),l=MX(a,r),u=MX(s,i,o),c=LX(l),f=LX(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Gxe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kxe};function zxe(e,t,n){var r=lu(e),i=[sa,aa].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[sa,ks].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Jxe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=iz.reduce(function(c,f){return c[f]=zxe(f,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const $xe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jxe};function jxe(e){var t=e.state,n=e.name;t.modifiersData[n]=dz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const qxe={name:"popperOffsets",enabled:!0,phase:"read",fn:jxe,data:{}};function eSe(e){return e==="x"?"y":"x"}function tSe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,v=p===void 0?0:p,g=i2(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=lu(t.placement),y=Ov(t.placement),R=!y,A=Mk(m),x=eSe(A),S=t.modifiersData.popperOffsets,M=t.rects.reference,L=t.rects.popper,T=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,w=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(o){var N,C=A==="y"?aa:sa,I=A==="y"?Os:ks,F=A==="y"?"height":"width",W=S[A],B=W+g[C],K=W-g[I],j=h?-L[F]/2:0,D=y===Lv?M[F]:L[F],Y=y===Lv?-L[F]:-M[F],Z=t.elements.arrow,H=h&&Z?wk(Z):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lz(),G=$[C],de=$[I],J=fm(0,M[F],H[F]),Ae=R?M[F]/2-j-J-G-w.mainAxis:D-J-G-w.mainAxis,ue=R?-M[F]/2+j+J+de+w.mainAxis:Y+J+de+w.mainAxis,fe=t.elements.arrow&&iy(t.elements.arrow),se=fe?A==="y"?fe.clientTop||0:fe.clientLeft||0:0,q=(N=P==null?void 0:P[A])!=null?N:0,E=W+Ae-q-se,te=W+ue-q,le=fm(h?Ex(B,E):B,W,h?Eh(K,te):K);S[A]=le,k[A]=le-W}if(s){var ne,re=A==="x"?aa:sa,ae=A==="x"?Os:ks,ve=S[x],ce=x==="y"?"height":"width",ge=ve+g[re],Re=ve-g[ae],We=[aa,sa].indexOf(m)!==-1,Fe=(ne=P==null?void 0:P[x])!=null?ne:0,Ke=We?ge:ve-M[ce]-L[ce]-Fe+w.altAxis,Ue=We?ve+M[ce]+L[ce]-Fe-w.altAxis:Re,_e=h&&We?Mxe(Ke,ve,Ue):fm(h?Ke:ge,ve,h?Ue:Re);S[x]=_e,k[x]=_e-ve}t.modifiersData[r]=k}}const nSe={name:"preventOverflow",enabled:!0,phase:"main",fn:tSe,requiresIfExists:["offset"]};function rSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iSe(e){return e===Qa(e)||!ws(e)?Lk(e):rSe(e)}function oSe(e){var t=e.getBoundingClientRect(),n=Tv(t.width)/e.offsetWidth||1,r=Tv(t.height)/e.offsetHeight||1;return n!==1||r!==1}function aSe(e,t,n){n===void 0&&(n=!1);var r=ws(t),i=ws(t)&&oSe(t),o=pd(t),a=_v(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((vu(t)!=="body"||_k(o))&&(s=iSe(t)),ws(t)?(l=_v(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Tk(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function sSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function lSe(e){var t=sSe(e);return Rxe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function uSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cSe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var TX={placement:"bottom",modifiers:[],strategy:"absolute"};function _X(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function mz(e,t){return typeof e=="function"?e.apply(void 0,t):e}function OX(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function gSe(e){return e.split(/\s+/).filter(Boolean)}function bp(e){return[].concat(e)}function kX(e,t){e.indexOf(t)===-1&&e.push(t)}function mSe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function ySe(e){return e.split("-")[0]}function Xx(e){return[].slice.call(e)}function PX(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function hm(){return document.createElement("div")}function g3(e){return["Element","Fragment"].some(function(t){return Ok(e,t)})}function ASe(e){return Ok(e,"NodeList")}function RSe(e){return Ok(e,"MouseEvent")}function bSe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function xSe(e){return g3(e)?[e]:ASe(e)?Xx(e):Array.isArray(e)?e:Xx(document.querySelectorAll(e))}function _5(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function CX(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function SSe(e){var t,n=bp(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function wSe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,u=ySe(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,d=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,p=u==="left"?c.right.x:0,v=o.top-r+f>l,g=r-o.bottom-d>l,m=o.left-n+h>l,y=n-o.right-p>l;return v||g||m||y})}function O5(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function IX(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Hl={isTouch:!1},NX=0;function MSe(){Hl.isTouch||(Hl.isTouch=!0,window.performance&&document.addEventListener("mousemove",yz))}function yz(){var e=performance.now();e-NX<20&&(Hl.isTouch=!1,document.removeEventListener("mousemove",yz)),NX=e}function LSe(){var e=document.activeElement;if(bSe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function TSe(){document.addEventListener("touchstart",MSe,sh),window.addEventListener("blur",LSe)}var _Se=typeof window<"u"&&typeof document<"u",OSe=_Se?!!window.msCrypto:!1,kSe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},PSe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},fl=Object.assign({appendTo:gz,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},kSe,PSe),CSe=Object.keys(fl),ISe=function(t){var n=Object.keys(t);n.forEach(function(r){fl[r]=t[r]})};function Az(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=fl[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function NSe(e,t){var n=t?Object.keys(Az(Object.assign({},fl,{plugins:t}))):CSe,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function FX(e,t){var n=Object.assign({},t,{content:mz(t.content,[e])},t.ignoreAttributes?{}:NSe(e,t.plugins));return n.aria=Object.assign({},fl.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var FSe=function(){return"innerHTML"};function p6(e,t){e[FSe()]=t}function EX(e){var t=hm();return e===!0?t.className=pz:(t.className=vz,g3(e)?t.appendChild(e):p6(t,e)),t}function XX(e,t){g3(t.content)?(p6(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?p6(e,t.content):e.textContent=t.content)}function v6(e){var t=e.firstElementChild,n=Xx(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(hz)}),arrow:n.find(function(r){return r.classList.contains(pz)||r.classList.contains(vz)}),backdrop:n.find(function(r){return r.classList.contains(vSe)})}}function Rz(e){var t=hm(),n=hm();n.className=pSe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=hm();r.className=hz,r.setAttribute("data-state","hidden"),XX(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=v6(t),l=s.box,u=s.content,c=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&XX(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(EX(a.arrow))):l.appendChild(EX(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}Rz.$$tippy=!0;var ESe=1,HA=[],k5=[];function XSe(e,t){var n=FX(e,Object.assign({},fl,Az(PX(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,d,h=[],p=OX(E,n.interactiveDebounce),v,g=ESe++,m=null,y=mSe(n.plugins),R={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},A={id:g,reference:e,popper:hm(),popperInstance:m,props:n,state:R,plugins:y,clearDelayTimeouts:Ke,setProps:Ue,setContent:_e,show:ye,hide:Le,hideWithInteractivity:Ie,enable:We,disable:Fe,unmount:Qe,destroy:ct};if(!n.render)return A;var x=n.render(A),S=x.popper,M=x.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+A.id,A.popper=S,e._tippy=A,S._tippy=A;var L=y.map(function(Pe){return Pe.fn(A)}),T=e.hasAttribute("aria-expanded");return fe(),j(),W(),B("onCreate",[A]),n.showOnCreate&&ge(),S.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",p)}),A;function w(){var Pe=A.props.touch;return Array.isArray(Pe)?Pe:[Pe,0]}function P(){return w()[0]==="hold"}function k(){var Pe;return!!((Pe=A.props.render)!=null&&Pe.$$tippy)}function N(){return v||e}function C(){var Pe=N().parentNode;return Pe?SSe(Pe):document}function I(){return v6(S)}function F(Pe){return A.state.isMounted&&!A.state.isVisible||Hl.isTouch||c&&c.type==="focus"?0:T5(A.props.delay,Pe?0:1,fl.delay)}function W(Pe){Pe===void 0&&(Pe=!1),S.style.pointerEvents=A.props.interactive&&!Pe?"":"none",S.style.zIndex=""+A.props.zIndex}function B(Pe,tt,it){if(it===void 0&&(it=!0),L.forEach(function(ht){ht[Pe]&&ht[Pe].apply(ht,tt)}),it){var St;(St=A.props)[Pe].apply(St,tt)}}function K(){var Pe=A.props.aria;if(Pe.content){var tt="aria-"+Pe.content,it=S.id,St=bp(A.props.triggerTarget||e);St.forEach(function(ht){var gt=ht.getAttribute(tt);if(A.state.isVisible)ht.setAttribute(tt,gt?gt+" "+it:it);else{var wt=gt&>.replace(it,"").trim();wt?ht.setAttribute(tt,wt):ht.removeAttribute(tt)}})}}function j(){if(!(T||!A.props.aria.expanded)){var Pe=bp(A.props.triggerTarget||e);Pe.forEach(function(tt){A.props.interactive?tt.setAttribute("aria-expanded",A.state.isVisible&&tt===N()?"true":"false"):tt.removeAttribute("aria-expanded")})}}function D(){C().removeEventListener("mousemove",p),HA=HA.filter(function(Pe){return Pe!==p})}function Y(Pe){if(!(Hl.isTouch&&(l||Pe.type==="mousedown"))){var tt=Pe.composedPath&&Pe.composedPath()[0]||Pe.target;if(!(A.props.interactive&&IX(S,tt))){if(bp(A.props.triggerTarget||e).some(function(it){return IX(it,tt)})){if(Hl.isTouch||A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[A,Pe]);A.props.hideOnClick===!0&&(A.clearDelayTimeouts(),A.hide(),s=!0,setTimeout(function(){s=!1}),A.state.isMounted||G())}}}function Z(){l=!0}function H(){l=!1}function $(){var Pe=C();Pe.addEventListener("mousedown",Y,!0),Pe.addEventListener("touchend",Y,sh),Pe.addEventListener("touchstart",H,sh),Pe.addEventListener("touchmove",Z,sh)}function G(){var Pe=C();Pe.removeEventListener("mousedown",Y,!0),Pe.removeEventListener("touchend",Y,sh),Pe.removeEventListener("touchstart",H,sh),Pe.removeEventListener("touchmove",Z,sh)}function de(Pe,tt){Ae(Pe,function(){!A.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&tt()})}function J(Pe,tt){Ae(Pe,tt)}function Ae(Pe,tt){var it=I().box;function St(ht){ht.target===it&&(O5(it,"remove",St),tt())}if(Pe===0)return tt();O5(it,"remove",f),O5(it,"add",St),f=St}function ue(Pe,tt,it){it===void 0&&(it=!1);var St=bp(A.props.triggerTarget||e);St.forEach(function(ht){ht.addEventListener(Pe,tt,it),h.push({node:ht,eventType:Pe,handler:tt,options:it})})}function fe(){P()&&(ue("touchstart",q,{passive:!0}),ue("touchend",te,{passive:!0})),gSe(A.props.trigger).forEach(function(Pe){if(Pe!=="manual")switch(ue(Pe,q),Pe){case"mouseenter":ue("mouseleave",te);break;case"focus":ue(OSe?"focusout":"blur",le);break;case"focusin":ue("focusout",le);break}})}function se(){h.forEach(function(Pe){var tt=Pe.node,it=Pe.eventType,St=Pe.handler,ht=Pe.options;tt.removeEventListener(it,St,ht)}),h=[]}function q(Pe){var tt,it=!1;if(!(!A.state.isEnabled||ne(Pe)||s)){var St=((tt=c)==null?void 0:tt.type)==="focus";c=Pe,v=Pe.currentTarget,j(),!A.state.isVisible&&RSe(Pe)&&HA.forEach(function(ht){return ht(Pe)}),Pe.type==="click"&&(A.props.trigger.indexOf("mouseenter")<0||a)&&A.props.hideOnClick!==!1&&A.state.isVisible?it=!0:ge(Pe),Pe.type==="click"&&(a=!it),it&&!St&&Re(Pe)}}function E(Pe){var tt=Pe.target,it=N().contains(tt)||S.contains(tt);if(!(Pe.type==="mousemove"&&it)){var St=ce().concat(S).map(function(ht){var gt,wt=ht._tippy,Bt=(gt=wt.popperInstance)==null?void 0:gt.state;return Bt?{popperRect:ht.getBoundingClientRect(),popperState:Bt,props:n}:null}).filter(Boolean);wSe(St,Pe)&&(D(),Re(Pe))}}function te(Pe){var tt=ne(Pe)||A.props.trigger.indexOf("click")>=0&&a;if(!tt){if(A.props.interactive){A.hideWithInteractivity(Pe);return}Re(Pe)}}function le(Pe){A.props.trigger.indexOf("focusin")<0&&Pe.target!==N()||A.props.interactive&&Pe.relatedTarget&&S.contains(Pe.relatedTarget)||Re(Pe)}function ne(Pe){return Hl.isTouch?P()!==Pe.type.indexOf("touch")>=0:!1}function re(){ae();var Pe=A.props,tt=Pe.popperOptions,it=Pe.placement,St=Pe.offset,ht=Pe.getReferenceClientRect,gt=Pe.moveTransition,wt=k()?v6(S).arrow:null,Bt=ht?{getBoundingClientRect:ht,contextElement:ht.contextElement||N()}:e,qt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(wl){var $i=wl.state;if(k()){var R0=I(),Ad=R0.box;["placement","reference-hidden","escaped"].forEach(function(Lu){Lu==="placement"?Ad.setAttribute("data-placement",$i.placement):$i.attributes.popper["data-popper-"+Lu]?Ad.setAttribute("data-"+Lu,""):Ad.removeAttribute("data-"+Lu)}),$i.attributes.popper={}}}},Qn=[{name:"offset",options:{offset:St}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!gt}},qt];k()&&wt&&Qn.push({name:"arrow",options:{element:wt,padding:3}}),Qn.push.apply(Qn,(tt==null?void 0:tt.modifiers)||[]),A.popperInstance=hSe(Bt,S,Object.assign({},tt,{placement:it,onFirstUpdate:d,modifiers:Qn}))}function ae(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function ve(){var Pe=A.props.appendTo,tt,it=N();A.props.interactive&&Pe===gz||Pe==="parent"?tt=it.parentNode:tt=mz(Pe,[it]),tt.contains(S)||tt.appendChild(S),A.state.isMounted=!0,re()}function ce(){return Xx(S.querySelectorAll("[data-tippy-root]"))}function ge(Pe){A.clearDelayTimeouts(),Pe&&B("onTrigger",[A,Pe]),$();var tt=F(!0),it=w(),St=it[0],ht=it[1];Hl.isTouch&&St==="hold"&&ht&&(tt=ht),tt?r=setTimeout(function(){A.show()},tt):A.show()}function Re(Pe){if(A.clearDelayTimeouts(),B("onUntrigger",[A,Pe]),!A.state.isVisible){G();return}if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Pe.type)>=0&&a)){var tt=F(!1);tt?i=setTimeout(function(){A.state.isVisible&&A.hide()},tt):o=requestAnimationFrame(function(){A.hide()})}}function We(){A.state.isEnabled=!0}function Fe(){A.hide(),A.state.isEnabled=!1}function Ke(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Ue(Pe){if(!A.state.isDestroyed){B("onBeforeUpdate",[A,Pe]),se();var tt=A.props,it=FX(e,Object.assign({},tt,PX(Pe),{ignoreAttributes:!0}));A.props=it,fe(),tt.interactiveDebounce!==it.interactiveDebounce&&(D(),p=OX(E,it.interactiveDebounce)),tt.triggerTarget&&!it.triggerTarget?bp(tt.triggerTarget).forEach(function(St){St.removeAttribute("aria-expanded")}):it.triggerTarget&&e.removeAttribute("aria-expanded"),j(),W(),M&&M(tt,it),A.popperInstance&&(re(),ce().forEach(function(St){requestAnimationFrame(St._tippy.popperInstance.forceUpdate)})),B("onAfterUpdate",[A,Pe])}}function _e(Pe){A.setProps({content:Pe})}function ye(){var Pe=A.state.isVisible,tt=A.state.isDestroyed,it=!A.state.isEnabled,St=Hl.isTouch&&!A.props.touch,ht=T5(A.props.duration,0,fl.duration);if(!(Pe||tt||it||St)&&!N().hasAttribute("disabled")&&(B("onShow",[A],!1),A.props.onShow(A)!==!1)){if(A.state.isVisible=!0,k()&&(S.style.visibility="visible"),W(),$(),A.state.isMounted||(S.style.transition="none"),k()){var gt=I(),wt=gt.box,Bt=gt.content;_5([wt,Bt],0)}d=function(){var Qn;if(!(!A.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=A.props.moveTransition,k()&&A.props.animation){var Ws=I(),wl=Ws.box,$i=Ws.content;_5([wl,$i],ht),CX([wl,$i],"visible")}K(),j(),kX(k5,A),(Qn=A.popperInstance)==null||Qn.forceUpdate(),B("onMount",[A]),A.props.animation&&k()&&J(ht,function(){A.state.isShown=!0,B("onShown",[A])})}},ve()}}function Le(){var Pe=!A.state.isVisible,tt=A.state.isDestroyed,it=!A.state.isEnabled,St=T5(A.props.duration,1,fl.duration);if(!(Pe||tt||it)&&(B("onHide",[A],!1),A.props.onHide(A)!==!1)){if(A.state.isVisible=!1,A.state.isShown=!1,u=!1,a=!1,k()&&(S.style.visibility="hidden"),D(),G(),W(!0),k()){var ht=I(),gt=ht.box,wt=ht.content;A.props.animation&&(_5([gt,wt],St),CX([gt,wt],"hidden"))}K(),j(),A.props.animation?k()&&de(St,A.unmount):A.unmount()}}function Ie(Pe){C().addEventListener("mousemove",p),kX(HA,p),p(Pe)}function Qe(){A.state.isVisible&&A.hide(),A.state.isMounted&&(ae(),ce().forEach(function(Pe){Pe._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),k5=k5.filter(function(Pe){return Pe!==A}),A.state.isMounted=!1,B("onHidden",[A]))}function ct(){A.state.isDestroyed||(A.clearDelayTimeouts(),A.unmount(),se(),delete e._tippy,A.state.isDestroyed=!0,B("onDestroy",[A]))}}function v0(e,t){t===void 0&&(t={});var n=fl.plugins.concat(t.plugins||[]);TSe();var r=Object.assign({},t,{plugins:n}),i=xSe(e),o=i.reduce(function(a,s){var l=s&&XSe(s,r);return l&&a.push(l),a},[]);return g3(e)?o[0]:o}v0.defaultProps=fl;v0.setDefaultProps=ISe;v0.currentInput=Hl;Object.assign({},oz,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});v0.setDefaultProps({render:Rz});const WSe=Ee({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1},offset:{default:8}},emits:["update:value","show","hide"],setup(e,{emit:t}){const n=e,r=t,i=he(),o=he(),a=he(),s=he(!1),l=Se(()=>n.contentStyle||{});return Lt(()=>n.value,()=>{i.value&&(n.value?i.value.show():i.value.hide())}),En(()=>{i.value&&i.value.destroy()}),Wt(()=>{i.value=v0(o.value,{content:a.value,allowHTML:!0,trigger:n.trigger,placement:n.placement,interactive:!0,appendTo:n.appendTo||document.body,maxWidth:"none",offset:[0,n.offset],duration:200,animation:"scale",theme:"popover",onShow(){s.value=!0},onShown(){n.value||(r("update:value",!0),r("show"))},onHidden(){n.value&&(r("update:value",!1),r("hide")),s.value=!1}})}),(u,c)=>(U(),ee("div",{class:Ge(["popover",{center:u.center}]),ref_key:"triggerRef",ref:o},[V("div",{class:"popover-content",style:we(l.value),ref_key:"contentRef",ref:a},[s.value?ar(u.$slots,"content",{key:0},void 0,!0):Ye("",!0)],4),ar(u.$slots,"default",{},void 0,!0)],2))}}),It=Be(WSe,[["__scopeId","data-v-3501b1f4"]]),VSe=Ee({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,i)=>(U(),ee("div",{class:Ge(["popover-menu-item",{center:r.center}]),onClick:i[0]||(i[0]=o=>n("click"))},[ar(r.$slots,"default",{},void 0,!0)],2))}}),Qr=Be(VSe,[["__scopeId","data-v-1f176c16"]]),DSe=e=>($t("data-v-1a42e944"),e=e(),jt(),e),USe={class:"editor-header"},BSe={class:"left"},YSe={class:"menu-item"},ZSe={class:"title"},QSe=["title"],HSe={class:"right"},KSe={class:"group-menu-item"},GSe={class:"arrow-btn"},zSe=DSe(()=>V("span",{class:"text ai"},"AI",-1)),JSe=[zSe],$Se={class:"github-link",href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},jSe={class:"menu-item"},qSe=Ee({__name:"index",setup(e){const t=pt(),n=at(),{title:r}=Ve(n),{enterScreening:i,enterScreeningFromStart:o}=dd(),{importSpecificFile:a,importPPTXFile:s,exporting:l}=Ube(),{resetSlides:u}=bc(),c=he(!1),f=he(!1),d=he(!1),h=he(),p=he(""),v=()=>{p.value=r.value,d.value=!0,hr(()=>{var x;return(x=h.value)==null?void 0:x.focus()})},g=()=>{n.setTitle(p.value),d.value=!1},m=x=>{window.open(x),c.value=!1},y=x=>{t.setDialogForExport(x),c.value=!1},R=()=>{t.setMarkupPanelState(!0)},A=()=>{t.setAIPPTDialogState(!0)};return(x,S)=>{const M=xe("IconHamburgerButton"),L=xe("IconPpt"),T=xe("IconDown"),w=xe("IconDownload"),P=xe("IconGithub"),k=_n("tooltip");return U(),ee("div",USe,[V("div",BSe,[O(It,{trigger:"click",placement:"bottom-start",value:c.value,"onUpdate:value":S[9]||(S[9]=N=>c.value=N)},{content:ie(()=>[O(Qr,{onClick:S[0]||(S[0]=N=>{A(),c.value=!1})},{default:ie(()=>[De("AI 生成 PPT")]),_:1}),O(Jf,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:S[1]||(S[1]=N=>{z(s)(N),c.value=!1})},{default:ie(()=>[O(Qr,null,{default:ie(()=>[De("导入 pptx 文件(测试版)")]),_:1})]),_:1}),O(Jf,{accept:".pptist",onChange:S[2]||(S[2]=N=>{z(a)(N),c.value=!1})},{default:ie(()=>[O(Qr,null,{default:ie(()=>[De("导入 pptist 文件")]),_:1})]),_:1}),O(Qr,{onClick:S[3]||(S[3]=N=>y("pptx"))},{default:ie(()=>[De("导出文件")]),_:1}),O(Qr,{onClick:S[4]||(S[4]=N=>{z(u)(),c.value=!1})},{default:ie(()=>[De("重置幻灯片")]),_:1}),O(Qr,{onClick:S[5]||(S[5]=N=>{R(),c.value=!1})},{default:ie(()=>[De("幻灯片类型标注")]),_:1}),O(Qr,{onClick:S[6]||(S[6]=N=>m("https://github.com/pipipi-pikachu/PPTist/issues"))},{default:ie(()=>[De("意见反馈")]),_:1}),O(Qr,{onClick:S[7]||(S[7]=N=>m("https://github.com/pipipi-pikachu/PPTist/blob/master/doc/Q&A.md"))},{default:ie(()=>[De("常见问题")]),_:1}),O(Qr,{onClick:S[8]||(S[8]=N=>{c.value=!1,f.value=!0})},{default:ie(()=>[De("快捷操作")]),_:1})]),default:ie(()=>[V("div",YSe,[O(M,{class:"icon"})])]),_:1},8,["value"]),V("div",ZSe,[d.value?(U(),Te(pu,{key:0,class:"title-input",ref_key:"titleInputRef",ref:h,value:p.value,"onUpdate:value":S[10]||(S[10]=N=>p.value=N),onBlur:S[11]||(S[11]=N=>g())},null,8,["value"])):(U(),ee("div",{key:1,class:"title-text",onClick:S[12]||(S[12]=N=>v()),title:z(r)},dt(z(r)),9,QSe))])]),V("div",HSe,[V("div",KSe,[ze((U(),ee("div",{class:"menu-item",onClick:S[13]||(S[13]=N=>z(i)())},[O(L,{class:"icon"})])),[[k,"幻灯片放映(F5)"]]),O(It,{trigger:"click",center:""},{content:ie(()=>[O(Qr,{onClick:S[14]||(S[14]=N=>z(o)())},{default:ie(()=>[De("从头开始")]),_:1}),O(Qr,{onClick:S[15]||(S[15]=N=>z(i)())},{default:ie(()=>[De("从当前页开始")]),_:1})]),default:ie(()=>[V("div",GSe,[O(T,{class:"arrow"})])]),_:1})]),ze((U(),ee("div",{class:"menu-item",onClick:S[16]||(S[16]=N=>{A(),c.value=!1})},JSe)),[[k,"AI生成PPT"]]),ze((U(),ee("div",{class:"menu-item",onClick:S[17]||(S[17]=N=>y("pptx"))},[O(w,{class:"icon"})])),[[k,"导出"]]),ze((U(),ee("a",$Se,[V("div",jSe,[O(P,{class:"icon"})])])),[[k,"Copyright © 2020-PRESENT pipipi-pikachu"]])]),O(ixe,{width:320,visible:f.value,"onUpdate:visible":S[18]||(S[18]=N=>f.value=N),placement:"right"},{title:ie(()=>[De("快捷操作")]),default:ie(()=>[O(Gbe)]),_:1},8,["visible"]),O(ny,{loading:z(l),tip:"正在导入..."},null,8,["loading"])])}}}),e3e=Be(qSe,[["__scopeId","data-v-1a42e944"]]),oy=Symbol(),kk=Symbol(),bz=Symbol(),t3e=()=>{const e=window.getSelection();e&&e.removeAllRanges()},n3e=e=>{const t=he(0),n=he(0),r=pt(),{canvasPercentage:i,canvasDragged:o}=Ve(r),{viewportRatio:a,viewportSize:s}=Ve(at()),l=()=>{if(!e.value)return;const h=e.value.clientWidth,p=e.value.clientHeight;if(p/h>a.value){const v=h*(i.value/100);r.setCanvasScale(v/s.value),t.value=(h-v)/2,n.value=(p-v*a.value)/2}else{const v=p*(i.value/100);r.setCanvasScale(v/(s.value*a.value)),t.value=(h-v/a.value)/2,n.value=(p-v)/2}};Lt(i,(h,p)=>{if(!e.value)return;const v=e.value.clientWidth,g=e.value.clientHeight;if(g/v>a.value){const m=v*(h/100),y=v*(p/100),R=m*a.value,A=y*a.value;r.setCanvasScale(m/s.value),t.value=t.value-(m-y)/2,n.value=n.value-(R-A)/2}else{const m=g*(h/100),y=g*(p/100),R=m/a.value,A=y/a.value;r.setCanvasScale(m/(s.value*a.value)),t.value=t.value-(R-A)/2,n.value=n.value-(m-y)/2}}),Lt(a,l),Lt(s,l),Lt(o,()=>{o.value||l()});const c=Se(()=>({width:s.value,height:s.value*a.value,left:t.value,top:n.value})),f=new ResizeObserver(l);return Wt(()=>{e.value&&f.observe(e.value)}),En(()=>{e.value&&f.unobserve(e.value)}),{viewportStyles:c,dragViewport:h=>{let p=!0;const v=h.pageX,g=h.pageY,m=t.value,y=n.value;document.onmousemove=R=>{if(!p)return;const A=R.pageX,x=R.pageY;t.value=m+(A-v),n.value=y+(x-g)},document.onmouseup=()=>{p=!1,document.onmousemove=null,document.onmouseup=null,r.setCanvasDragged(!0)}}}},r3e=(e,t)=>{const n=pt(),{canvasScale:r,hiddenElementIdList:i}=Ve(n),o=he(!1),a=he(1),s=he({top:0,left:0,width:0,height:0});return{mouseSelection:s,mouseSelectionVisible:o,mouseSelectionQuadrant:a,updateMouseSelection:u=>{if(!t.value)return;let c=!0;const f=t.value.getBoundingClientRect(),d=5,h=u.pageX,p=u.pageY,v=(h-f.x)/r.value,g=(p-f.y)/r.value;s.value={top:g,left:v,width:0,height:0},o.value=!1,a.value=4,document.onmousemove=m=>{if(!c)return;const y=m.pageX,R=m.pageY,A=(y-h)/r.value,x=(R-p)/r.value,S=Math.abs(A),M=Math.abs(x);if(S0&&x>0?L=4:A<0&&x<0?L=2:A>0&&x<0?L=1:A<0&&x>0&&(L=3),s.value={...s.value,width:S,height:M},o.value=!0,a.value=L},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,c=!1;let m=[];for(let R=0;Rx&&wS&&kx-M&&wS-L&&kx&&wS-L&&kx-M&&wS&&k{if(R.groupId){const A=m.map(S=>S.id);return e.value.filter(S=>S.groupId===R.groupId).every(S=>A.includes(S.id))}return!0});const y=m.map(R=>R.id);n.setActiveElementIdList(y),o.value=!1}}}},i3e=e=>{const{disableHotkeys:t}=Ve(pt()),{createImageElement:n,createTextElement:r}=d0(),i=o=>{if(!o.dataTransfer||o.dataTransfer.items.length===0)return;const a=o.dataTransfer.items,s=a[0];let l=!1;for(const u of a)if(u.kind==="file"&&u.type.indexOf("image")!==-1){const c=u.getAsFile();c&&Rc(c).then(f=>n(f)),l=!0}l||s.kind==="string"&&s.type==="text/plain"&&s.getAsString(u=>{if(t.value)return;const c=Mx(u);r({left:0,top:0,width:600,height:50},{content:c})})};Wt(()=>{e.value&&e.value.addEventListener("drop",i),document.ondragleave=o=>o.preventDefault(),document.ondrop=o=>o.preventDefault(),document.ondragenter=o=>o.preventDefault(),document.ondragover=o=>o.preventDefault()}),En(()=>{e.value&&e.value.removeEventListener("drop",i),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},o3e=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},xz=(e,t,n)=>{const r=at(),{addHistorySnapshot:i}=on();return{rotateElement:(a,s)=>{const l=!(a instanceof MouseEvent);if(l&&(!a.changedTouches||!a.changedTouches[0]))return;let u=!0,c=0;const f=s.rotate||0,d=s.left,h=s.top,p=s.width,v=s.height,g=d+p/2,m=h+v/2;if(!t.value)return;const y=t.value.getBoundingClientRect(),R=x=>{if(!u)return;const S=x instanceof MouseEvent?x.pageX:x.changedTouches[0].pageX,M=x instanceof MouseEvent?x.pageY:x.changedTouches[0].pageY,L=(S-y.left)/n.value,T=(M-y.top)/n.value,w=L-g,P=m-T;c=o3e(w,P);const k=5;Math.abs(c)<=k?c=0:c>0&&Math.abs(c-45)<=k?c-=c-45:c<0&&Math.abs(c+45)<=k?c-=c+45:c>0&&Math.abs(c-90)<=k?c-=c-90:c<0&&Math.abs(c+90)<=k?c-=c+90:c>0&&Math.abs(c-135)<=k?c-=c-135:c<0&&Math.abs(c+135)<=k?c-=c+135:c>0&&Math.abs(c-180)<=k?c-=c-180:c<0&&Math.abs(c+180)<=k&&(c-=c+180),e.value=e.value.map(N=>s.id===N.id?{...N,rotate:c}:N)},A=()=>{u=!1,document.onmousemove=null,document.onmouseup=null,f!==c&&(r.updateSlide({elements:e.value}),i())};l?(document.ontouchmove=R,document.ontouchend=A):(document.onmousemove=R,document.onmouseup=A)}}},kg={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},Sz={text:40,image:20,shape:20,chart:200,table:30,video:250,audio:20,latex:20},WX=(e,t)=>{const{left:n,top:r,width:i,height:o}=e,a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2))/2,s=Math.atan(o/i)*180/Math.PI,l=(180-t-s)*Math.PI/180,u=(s-t)*Math.PI/180,c=(90-t)*Math.PI/180,f=t*Math.PI/180,d=i/2,h=o/2,p=n+d,v=r+h,g={left:p+a*Math.cos(l),top:v-a*Math.sin(l)},m={left:p+h*Math.cos(c),top:v-h*Math.sin(c)},y={left:p+a*Math.cos(u),top:v-a*Math.sin(u)},R={left:p+d*Math.cos(f),top:v+d*Math.sin(f)},A={left:p-a*Math.cos(l),top:v+a*Math.sin(l)},x={left:p-h*Math.sin(f),top:v+h*Math.cos(f)},S={left:p-a*Math.cos(u),top:v+a*Math.sin(u)},M={left:p-d*Math.cos(f),top:v-d*Math.sin(f)};return{leftTopPoint:g,topPoint:m,rightTopPoint:y,rightPoint:R,rightBottomPoint:A,bottomPoint:x,leftBottomPoint:S,leftPoint:M}},VX=(e,t)=>({[Rt.RIGHT_BOTTOM]:t.leftTopPoint,[Rt.LEFT_BOTTOM]:t.rightTopPoint,[Rt.LEFT_TOP]:t.rightBottomPoint,[Rt.RIGHT_TOP]:t.leftBottomPoint,[Rt.TOP]:t.bottomPoint,[Rt.BOTTOM]:t.topPoint,[Rt.LEFT]:t.rightPoint,[Rt.RIGHT]:t.leftPoint})[e],wz=(e,t,n)=>{const r=pt(),i=at(),{activeElementIdList:o,activeGroupElementId:a}=Ve(r),{viewportRatio:s,viewportSize:l}=Ve(i),{ctrlOrShiftKeyActive:u}=Ve(Fs()),{addHistorySnapshot:c}=on();return{scaleElement:(h,p,v)=>{const g=!(h instanceof MouseEvent);if(g&&(!h.changedTouches||!h.changedTouches[0]))return;let m=!0;r.setScalingState(!0);const y=p.left,R=p.top,A=p.width,x=p.height,S=p.type==="table"?p.cellMinHeight:0,M="rotate"in p&&p.rotate?p.rotate:0,L=Math.PI*M/180,T=u.value||"fixedRatio"in p&&p.fixedRatio,w=A/x,P=g?h.changedTouches[0].pageX:h.pageX,k=g?h.changedTouches[0].pageY:h.pageY,N=Sz[p.type]||20,C=(Z,H)=>{if(!T)return Z1&&($=N*de),H==="width"?Z<$?$:Z:Z{const G=[];let de=!1,J=!1;const Ae={offsetX:0,offsetY:0};if(H||H===0)for(let ue=0;ue{if(!m)return;const H=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,$=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY,G=H-P,de=$-k;let J=A,Ae=x,ue=y,fe=R;if(M){const se=(Math.cos(L)*G+Math.sin(L)*de)/n.value;let q=(Math.cos(L)*de-Math.sin(L)*G)/n.value;T&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&(q=se/w),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&(q=-se/w)),v===Rt.RIGHT_BOTTOM?(J=C(A+se,"width"),Ae=C(x+q,"height")):v===Rt.LEFT_BOTTOM?(J=C(A-se,"width"),Ae=C(x+q,"height"),ue=y-(J-A)):v===Rt.LEFT_TOP?(J=C(A-se,"width"),Ae=C(x-q,"height"),ue=y-(J-A),fe=R-(Ae-x)):v===Rt.RIGHT_TOP?(J=C(A+se,"width"),Ae=C(x-q,"height"),fe=R-(Ae-x)):v===Rt.TOP?(Ae=C(x-q,"height"),fe=R-(Ae-x)):v===Rt.BOTTOM?Ae=C(x+q,"height"):v===Rt.LEFT?(J=C(A-se,"width"),ue=y-(J-A)):v===Rt.RIGHT&&(J=C(A+se,"width"));const E=WX({width:J,height:Ae,left:ue,top:fe},M),te=VX(v,E),le=te.left,ne=te.top,re=le-F,ae=ne-W;ue=ue-re,fe=fe-ae}else{let se=G/n.value,q=de/n.value;if(T&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&(q=se/w),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&(q=-se/w)),v===Rt.RIGHT_BOTTOM){const{offsetX:E,offsetY:te}=j(y+A+se,R+x+q);se=se-E,q=q-te,T&&(te?se=q*w:q=se/w),J=C(A+se,"width"),Ae=C(x+q,"height")}else if(v===Rt.LEFT_BOTTOM){const{offsetX:E,offsetY:te}=j(y+se,R+x+q);se=se-E,q=q-te,T&&(te?se=-q*w:q=-se/w),J=C(A-se,"width"),Ae=C(x+q,"height"),ue=y-(J-A)}else if(v===Rt.LEFT_TOP){const{offsetX:E,offsetY:te}=j(y+se,R+q);se=se-E,q=q-te,T&&(te?se=q*w:q=se/w),J=C(A-se,"width"),Ae=C(x-q,"height"),ue=y-(J-A),fe=R-(Ae-x)}else if(v===Rt.RIGHT_TOP){const{offsetX:E,offsetY:te}=j(y+A+se,R+q);se=se-E,q=q-te,T&&(te?se=-q*w:q=-se/w),J=C(A+se,"width"),Ae=C(x-q,"height"),fe=R-(Ae-x)}else if(v===Rt.LEFT){const{offsetX:E}=j(y+se,null);se=se-E,J=C(A-se,"width"),ue=y-(J-A)}else if(v===Rt.RIGHT){const{offsetX:E}=j(y+A+se,null);se=se-E,J=C(A+se,"width")}else if(v===Rt.TOP){const{offsetY:E}=j(null,R+q);q=q-E,Ae=C(x-q,"height"),fe=R-(Ae-x)}else if(v===Rt.BOTTOM){const{offsetY:E}=j(null,R+x+q);q=q-E,Ae=C(x+q,"height")}}e.value=e.value.map(se=>{if(p.id!==se.id)return se;if(se.type==="shape"&&"pathFormula"in se&&se.pathFormula){const q=f0[se.pathFormula];let E="";return"editable"in q?E=q.formula(J,Ae,se.keypoints):E=q.formula(J,Ae),{...se,left:ue,top:fe,width:J,height:Ae,viewBox:[J,Ae],path:E}}if(se.type==="table"){let q=S+(Ae-x)/se.data.length;return q=q<36?36:q,q===S?{...se,left:ue,width:J}:{...se,left:ue,top:fe,width:J,height:Ae,cellMinHeight:q<36?36:q}}return{...se,left:ue,top:fe,width:J,height:Ae}})},Y=Z=>{m=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const H=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,$=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;P===H&&k===$||(i.updateSlide({elements:e.value}),r.setScalingState(!1),c())};g?(document.ontouchmove=D,document.ontouchend=Y):(document.onmousemove=D,document.onmouseup=Y)},scaleMultiElement:(h,p,v)=>{let g=!0;const{minX:m,maxX:y,minY:R,maxY:A}=p,x=y-m,S=A-R,M=x/S,L=h.pageX,T=h.pageY,w=JSON.parse(JSON.stringify(e.value));document.onmousemove=P=>{if(!g)return;const k=P.pageX,N=P.pageY,C=(k-L)/n.value;let I=(N-T)/n.value;u.value&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&(I=C/M),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&(I=-C/M));let F=m,W=y,B=R,K=A;v===Rt.RIGHT_BOTTOM?(W=y+C,K=A+I):v===Rt.LEFT_BOTTOM?(F=m+C,K=A+I):v===Rt.LEFT_TOP?(F=m+C,B=R+I):v===Rt.RIGHT_TOP?(W=y+C,B=R+I):v===Rt.TOP?B=R+I:v===Rt.BOTTOM?K=A+I:v===Rt.LEFT?F=m+C:v===Rt.RIGHT&&(W=y+C);const j=W-F,D=K-B;let Y=j/x,Z=D/S;Y<=0&&(Y=0),Z<=0&&(Z=0),e.value=e.value.map(H=>{if((H.type==="image"||H.type==="shape")&&o.value.includes(H.id)){const $=w.find(G=>G.id===H.id);return{...H,width:$.width*Y,height:$.height*Z,left:F+($.left-m)*Y,top:B+($.top-R)*Z}}return H})},document.onmouseup=P=>{g=!1,document.onmousemove=null,document.onmouseup=null,!(L===P.pageX&&T===P.pageY)&&(i.updateSlide({elements:e.value}),c())}}}},a3e=(e,t)=>{const n=pt(),{activeElementIdList:r,activeGroupElementId:i,handleElementId:o,editorAreaFocus:a}=Ve(n),{ctrlOrShiftKeyActive:s}=Ve(Fs());return{selectElement:(u,c,f=!0)=>{if(a.value||n.setEditorareaFocus(!0),r.value.includes(c.id)){if(s.value){let d=[];if(c.groupId){const h=[];e.value.forEach(p=>{p.groupId===c.groupId&&h.push(p.id)}),d=r.value.filter(p=>!h.includes(p))}else d=r.value.filter(h=>h!==c.id);d.length>0&&n.setActiveElementIdList(d)}else if(o.value!==c.id)n.setHandleElementId(c.id);else if(i.value!==c.id){const d=u instanceof MouseEvent?u.pageX:u.changedTouches[0].pageX,h=u instanceof MouseEvent?u.pageY:u.changedTouches[0].pageY;u.target.onmouseup=p=>{const v=p.pageX,g=p.pageY;d===v&&h===g&&(n.setActiveGroupElementId(c.id),p.target.onmouseup=null)}}}else{let d=[];if(s.value?d=[...r.value,c.id]:d=[c.id],c.groupId){const h=[];e.value.forEach(p=>{p.groupId===c.groupId&&h.push(p.id)}),d=[...d,...h]}n.setActiveElementIdList(Zn.uniq(d)),n.setHandleElementId(c.id)}f&&t(u,c)}}},Mz=(e,t,n)=>{const r=at(),{activeElementIdList:i,activeGroupElementId:o}=Ve(pt()),{shiftKeyState:a}=Ve(Fs()),{viewportRatio:s,viewportSize:l}=Ve(r),{addHistorySnapshot:u}=on();return{dragElement:(f,d)=>{const h=!(f instanceof MouseEvent);if(h&&(!f.changedTouches||!f.changedTouches[0])||!i.value.includes(d.id))return;let p=!0;const v=l.value,g=l.value*s.value,m=5,R=JSON.parse(JSON.stringify(e.value)).filter(Z=>i.value.includes(Z.id)),A=d.left,x=d.top,S=d.width,M="height"in d&&d.height?d.height:0,L="rotate"in d&&d.rotate?d.rotate:0,T=h?f.changedTouches[0].pageX:f.pageX,w=h?f.changedTouches[0].pageY:f.pageY;let P=null;const k=d.id===o.value;let N=[],C=[];for(const Z of e.value){if(Z.type==="line"||k&&Z.id===d.id||!k&&i.value.includes(Z.id))continue;let H,$,G,de;if("rotate"in Z&&Z.rotate){const{xRange:re,yRange:ae}=nv({left:Z.left,top:Z.top,width:Z.width,height:Z.height,rotate:Z.rotate});H=re[0],$=ae[0],G=re[1]-re[0],de=ae[1]-ae[0]}else H=Z.left,$=Z.top,G=Z.width,de=Z.height;const J=H+G,Ae=$+de,ue=$+de/2,fe=H+G/2,se={value:$,range:[H,J]},q={value:Ae,range:[H,J]},E={value:ue,range:[H,J]},te={value:H,range:[$,Ae]},le={value:J,range:[$,Ae]},ne={value:fe,range:[$,Ae]};N.push(se,q,E),C.push(te,le,ne)}const I={value:0,range:[0,v]},F={value:g,range:[0,v]},W={value:g/2,range:[0,v]},B={value:0,range:[0,g]},K={value:v,range:[0,g]},j={value:v/2,range:[0,g]};N.push(I,F,W),C.push(B,K,j),N=Sx(N),C=Sx(C);const D=Z=>{const H=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,$=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;if(P!==!1&&(P=Math.abs(T-H)Math.abs(de)&&(de=0),Math.abs(G)ae.id===d.id?{...ae,left:J,top:Ae}:ae);else{const ae=e.value.find(ve=>ve.id===d.id);if(!ae)return;e.value=e.value.map(ve=>i.value.includes(ve.id)?ve.id===d.id?{...ve,left:J,top:Ae}:{...ve,left:ve.left+(J-ae.left),top:ve.top+(Ae-ae.top)}:ve)}},Y=Z=>{p=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const H=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,$=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;T===H&&w===$||(r.updateSlide({elements:e.value}),u())};h?(document.ontouchmove=D,document.ontouchend=Y):(document.onmousemove=D,document.onmouseup=Y)}}},s3e=e=>{const t=at(),{canvasScale:n}=Ve(pt()),{ctrlOrShiftKeyActive:r}=Ve(Fs()),{addHistorySnapshot:i}=on();return{dragLineElement:(a,s,l)=>{let u=!0;const c=8,f=a.pageX,d=a.pageY,h=[];for(let p=0;p{if(!u)return;const v=p.pageX,g=p.pageY,m=(v-f)/n.value,y=(g-d)/n.value;let R=s.left+s.start[0],A=s.top+s.start[1],x=s.left+s.end[0],S=s.top+s.end[1];const M=s.broken||s.broken2||s.curve||[0,0];let L=s.left+M[0],T=s.top+M[1];const[w,P]=s.cubic||[[0,0],[0,0]];let k=s.left+w[0],N=s.top+w[1],C=s.left+P[0],I=s.top+P[1];if(l===Go.START){R=R+m,A=A+y,Math.abs(R-x)x&&(j[0]=B-F,D[0]=0),A>S&&(j[1]=K-W,D[1]=0),e.value=e.value.map(Y=>{if(Y.id===s.id){const Z={...Y,left:F,top:W,start:j,end:D};return l===Go.START||l===Go.END?(r.value?(s.broken&&(Z.broken=[L-F,T-W]),s.curve&&(Z.curve=[L-F,T-W]),s.cubic&&(Z.cubic=[[k-F,N-W],[C-F,I-W]])):(s.broken&&(Z.broken=[(j[0]+D[0])/2,(j[1]+D[1])/2]),s.curve&&(Z.curve=[(j[0]+D[0])/2,(j[1]+D[1])/2]),s.cubic&&(Z.cubic=[[(j[0]+D[0])/2,(j[1]+D[1])/2],[(j[0]+D[0])/2,(j[1]+D[1])/2]])),s.broken2&&(Z.broken2=[(j[0]+D[0])/2,(j[1]+D[1])/2])):l===Go.C?(s.broken&&(Z.broken=[L-F,T-W]),s.curve&&(Z.curve=[L-F,T-W]),s.broken2&&(B-F>=K-W?Z.broken2=[L-F,Z.broken2[1]]:Z.broken2=[Z.broken2[0],T-W])):s.cubic&&(Z.cubic=[[k-F,N-W],[C-F,I-W]]),Z}return Y})},document.onmouseup=p=>{u=!1,document.onmousemove=null,document.onmouseup=null;const v=p.pageX,g=p.pageY;f===v&&d===g||(t.updateSlide({elements:e.value}),i())}}}},l3e=(e,t)=>{const n=at(),{addHistorySnapshot:r}=on();return{moveShapeKeypoint:(o,a,s=0)=>{const l=!(o instanceof MouseEvent);if(l&&(!o.changedTouches||!o.changedTouches[0]))return;let u=!0;const c=l?o.changedTouches[0].pageX:o.pageX,f=l?o.changedTouches[0].pageY:o.pageY,d=a.keypoints,h=f0[a.pathFormula];let p=null;if("editable"in h&&h.editable){const m=h.getBaseSize[s],y=h.range[s],R=h.relative[s],A=d[s],x=m(a.width,a.height),S=x*A,[M,L]=y;p={baseSize:x,originPos:S,min:M,max:L,relative:R}}const v=m=>{if(!u)return;const y=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,R=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY,A=(y-c)/t.value,x=(R-f)/t.value;e.value=e.value.map(S=>{if(S.id===a.id&&p){const{baseSize:M,originPos:L,min:T,max:w,relative:P}=p,k=S;let N=0;P==="center"?N=(L-A*2)/M:P==="left"?N=(L+A)/M:P==="right"?N=(L-A)/M:P==="top"?N=(L+x)/M:P==="bottom"?N=(L-x)/M:P==="left_bottom"?N=(L+A)/M:P==="right_bottom"?N=(L-A)/M:P==="top_right"?N=(L+x)/M:P==="bottom_right"&&(N=(L-x)/M),Nw&&(N=w);let C=[];return Array.isArray(d)?(C=[...d],C[s]=N):C=[N],{...S,keypoints:C,path:h.formula(k.width,k.height,C)}}return S})},g=m=>{u=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const y=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,R=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY;c===y&&f===R||(n.updateSlide({elements:e.value}),r())};l?(document.ontouchmove=v,document.ontouchend=g):(document.onmousemove=v,document.onmouseup=g)}}},u3e=e=>{const t=pt(),{canvasScale:n,creatingElement:r}=Ve(t),i=c=>{const{start:f,end:d}=c;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,v]=f,[g,m]=d,y=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,m),x=Math.max(v,m),S=(y-h.x)/n.value,M=(A-h.y)/n.value,L=(R-y)/n.value,T=(x-A)/n.value;return{left:S,top:M,width:L,height:T}},o=c=>{const{start:f,end:d}=c;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,v]=f,[g,m]=d,y=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,m),x=Math.max(v,m),S=(y-h.x)/n.value,M=(A-h.y)/n.value,L=(R-y)/n.value,T=(x-A)/n.value;return{left:S,top:M,start:[p===y?0:L,v===A?0:T],end:[g===y?0:L,m===A?0:T]}},{createTextElement:a,createShapeElement:s,createLineElement:l}=d0();return{formatCreateSelection:i,insertElementFromCreateSelection:c=>{if(!r.value)return;const f=r.value.type;if(f==="text"){const d=i(c);d&&a(d,{vertical:r.value.vertical})}else if(f==="shape"){const d=i(c);d&&s(d,r.value.data)}else if(f==="line"){const d=o(c);d&&l(d,r.value.data)}t.setCreatingElement(null)}}},m3=()=>{const e=at(),{activeElementIdList:t,activeElementList:n}=Ve(pt()),{currentSlide:r,viewportRatio:i,viewportSize:o}=Ve(e),{addHistorySnapshot:a}=on();return{alignElementToCanvas:l=>{const u=o.value,c=o.value*i.value,{minX:f,maxX:d,minY:h,maxY:p}=nc(n.value),v=JSON.parse(JSON.stringify(r.value.elements));for(const g of v)if(t.value.includes(g.id)){if(l===gn.CENTER){const m=h+(p-h)/2-c/2,y=f+(d-f)/2-u/2;g.top=g.top-m,g.left=g.left-y}if(l===gn.TOP){const m=h-0;g.top=g.top-m}else if(l===gn.VERTICAL){const m=h+(p-h)/2-c/2;g.top=g.top-m}else if(l===gn.BOTTOM){const m=p-c;g.top=g.top-m}else if(l===gn.LEFT){const m=f-0;g.left=g.left-m}else if(l===gn.HORIZONTAL){const m=f+(d-f)/2-u/2;g.left=g.left-m}else if(l===gn.RIGHT){const m=d-u;g.left=g.left-m}}e.updateSlide({elements:v}),a()}}},vd=e=>({shadowStyle:Se(()=>{if(e.value){const{h:n,v:r,blur:i,color:o}=e.value;return`${n}px ${r}px ${i}px ${o}`}return""})}),y3=(e,t)=>({flipStyle:Se(()=>{let r="";return e.value&&t.value?r="rotateX(180deg) rotateY(180deg)":t.value?r="rotateX(180deg)":e.value&&(r="rotateY(180deg)"),r})});var Lz=(e=>(e.RECT="rect",e.ELLIPSE="ellipse",e.POLYGON="polygon",e))(Lz||{});const g6={rect:{name:"矩形",type:"rect",radius:"0",style:""},rect2:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L 0 ${t} Z`},rect3:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L ${e*.2} ${t} L 0 ${t*.8} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 round 10px)"},ellipse:{name:"圆形",type:"ellipse",style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:"polygon",style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M ${e*.5} 0 L 0 ${t} L ${e} ${t} Z`},triangle2:{name:"三角形2",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(e,t)=>`M ${e*.5} ${t} L 0 0 L ${e} 0 Z`},triangle3:{name:"三角形3",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M 0 0 L 0 ${t} L ${e} ${t} Z`},rhombus:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${t*.5} L ${e*.5} ${t} L 0 ${t*.5} Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${.38*t} L ${.82*e} ${t} L ${.18*e} ${t} L 0 ${.38*t} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.2} 0 L ${e*.8} 0 L ${e} ${t*.5} L ${e*.8} ${t} L ${e*.2} ${t} L 0 ${t*.5} Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e*.9} ${t*.2} L ${e} ${t*.6} L ${e*.75} ${t} L ${e*.25} ${t} L 0 ${t*.6} L ${e*.1} ${t*.2} Z`},octagon:{name:"八边形",type:"polygon",style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(e,t)=>`M ${e*.3} 0 L ${e*.7} 0 L ${e} ${t*.3} L ${e} ${t*.7} L ${e*.7} ${t} L ${e*.3} ${t} L 0 ${t*.7} L 0 ${t*.3} Z`},chevron:{name:"V形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(e,t)=>`M ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} L ${e*.25} ${t*.5} L 0 0 Z`},point:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(e,t)=>`M 0 0 L ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} Z`},arrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(e,t)=>`M 0 ${t*.2} L ${e*.6} ${t*.2} L ${e*.6} 0 L ${e} ${t*.5} L ${e*.6} ${t} L ${e*.6} ${t*.8} L 0 ${t*.8} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.3} 0 L ${e} 0 L ${e*.7} ${t} L 0 ${t} Z`},parallelogram2:{name:"平行四边形2",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(e,t)=>`M ${e*.3} ${t} L ${e} ${t} L ${e*.7} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.25} 0 L ${e*.75} 0 L ${e} ${t} L 0 ${t} Z`},trapezoid2:{name:"梯形2",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(e,t)=>`M 0 0 L ${e} 0 L ${e*.75} ${t} L ${e*.25} ${t} Z`}},Pk=e=>{const t=Se(()=>{let r=g6.rect;if(e.value.clip){const i=e.value.clip.shape||Lz.RECT;r=g6[i]}return r.radius!==void 0&&e.value.radius&&(r={...r,radius:`${e.value.radius}px`,style:`inset(0 round ${e.value.radius}px)`}),r}),n=Se(()=>{if(!e.value.clip)return{top:"0",left:"0",width:"100%",height:"100%"};const[r,i]=e.value.clip.range,o=(i[0]-r[0])/100,a=(i[1]-r[1])/100,s=r[0]/o,l=r[1]/a;return{left:-s+"%",top:-l+"%",width:100/o+"%",height:100/a+"%"}});return{clipShape:t,imgPosition:n}},Tz=e=>({filter:Se(()=>{if(!e.value)return"";let n="";const r=Object.keys(e.value);for(const i of r)n+=`${i}(${e.value[i]}) `;return n})}),t1=e=>{const t=Se(()=>{var o;return((o=e.value)==null?void 0:o.width)??0}),n=Se(()=>{var o;return((o=e.value)==null?void 0:o.style)||"solid"}),r=Se(()=>{var o;return((o=e.value)==null?void 0:o.color)||"#d14424"}),i=Se(()=>{const o=t.value;return n.value==="dashed"?o<=6?`${o*4.5} ${o*2}`:`${o*4} ${o*1.5}`:n.value==="dotted"?o<=6?`${o*1.8} ${o*1.6}`:`${o*1.5} ${o*1.2}`:"0 0"});return{outlineWidth:t,outlineStyle:n,outlineColor:r,strokeDashArray:i}},c3e=["width","height"],f3e=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],d3e=Ee({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(U(),ee("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:o.width,height:o.height},[V("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:o.radius,ry:o.radius,width:o.width,height:o.height,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,f3e)],8,c3e)):Ye("",!0)}}),h3e=Be(d3e,[["__scopeId","data-v-09a0319c"]]),p3e=["width","height"],v3e=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],g3e=Ee({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(U(),ee("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:o.width,height:o.height},[V("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:o.width/2,cy:o.height/2,rx:o.width/2,ry:o.height/2,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,v3e)],8,p3e)):Ye("",!0)}}),m3e=Be(g3e,[["__scopeId","data-v-19e68d74"]]),y3e=["width","height"],A3e=["d","stroke","stroke-width","stroke-dasharray"],R3e=Ee({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(U(),ee("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:o.width,height:o.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:o.createPath(o.width,o.height),stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,A3e)],8,y3e)):Ye("",!0)}}),b3e=Be(R3e,[["__scopeId","data-v-a036b0a3"]]),x3e={class:"image-outline"},_z=Ee({__name:"index",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo),{clipShape:r}=Pk(n);return(i,o)=>(U(),ee("div",x3e,[z(r).type==="rect"?(U(),Te(h3e,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,radius:z(r).radius,outline:i.elementInfo.outline},null,8,["width","height","radius","outline"])):z(r).type==="ellipse"?(U(),Te(m3e,{key:1,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"])):z(r).type==="polygon"?(U(),Te(b3e,{key:2,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline,createPath:z(r).createPath},null,8,["width","height","outline","createPath"])):Ye("",!0)]))}}),Oz=e=>($t("data-v-31b3b0f9"),e=e(),jt(),e),S3e=["src"],w3e=["src"],M3e=["onMousedown"],L3e=Oz(()=>V("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[V("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"})],-1)),T3e=[L3e],_3e=["onMousedown"],O3e=Oz(()=>V("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[V("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)),k3e=[O3e],P3e=Ee({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:i}=Ve(pt()),{ctrlOrShiftKeyActive:o}=Ve(Fs()),a=he({top:"0",left:"0"}),s=he(!1),l=he(null),u=()=>{const[L,T]=n.clipData?n.clipData.range:[[0,0],[100,100]],w=(T[0]-L[0])/100,P=(T[1]-L[1])/100,k=L[0]/w,N=L[1]/P;return{widthScale:w,heightScale:P,left:k,top:N}},c=Se(()=>{const{widthScale:L,heightScale:T,left:w,top:P}=u();return{left:-w,top:-P,width:100/L,height:100/T}}),f=Se(()=>({top:c.value.top+"%",left:c.value.left+"%",width:c.value.width+"%",height:c.value.height+"%"})),d=he({top:0,left:0,width:0,height:0}),h=Se(()=>{const{top:L,left:T,width:w,height:P}=d.value;return{top:L+"%",left:T+"%",width:w+"%",height:P+"%"}}),p=Se(()=>{const L=c.value.width,T=c.value.height,{top:w,left:P,width:k,height:N}=d.value;return{left:-P*(100/k)+"%",top:-w*(100/N)+"%",width:L/k*100+"%",height:T/N*100+"%"}}),v=()=>{const{left:L,top:T}=u();d.value={left:L,top:T,width:100,height:100},a.value={top:-T+"%",left:-L+"%"}},g=()=>{if(s.value)return;if(!l.value){r("clip",null);return}const{left:L,top:T}=u(),w={left:(d.value.left-L)/100*n.width,top:(d.value.top-T)/100*n.height,width:(d.value.width-100)/100*n.width,height:(d.value.height-100)/100*n.height},P={range:l.value,position:w};r("clip",P)},m=L=>{L.key.toUpperCase()===yt.ENTER&&g()};Wt(()=>{v(),document.addEventListener("keydown",m)}),En(()=>{document.removeEventListener("keydown",m)});const y=()=>{const L={left:parseInt(p.value.left),top:parseInt(p.value.top),width:parseInt(p.value.width),height:parseInt(p.value.height)},T=100/L.width,w=100/L.height,P=[-L.left*T,-L.top*w],k=[T*100+P[0],w*100+P[1]];l.value=[P,k]},R=L=>{s.value=!0;let T=!0;const w=L.pageX,P=L.pageY,k=c.value,N={...d.value};document.onmousemove=C=>{if(!T)return;const I=C.pageX,F=C.pageY,W=(I-w)/i.value,B=(F-P)/i.value,K=Math.sqrt(W*W+B*B),D=Math.atan2(B,W)-n.rotate/180*Math.PI,Y=K*Math.cos(D)/n.width*100,Z=K*Math.sin(D)/n.height*100;let H=N.left+Y,$=N.top+Z;H<0?H=0:H+N.width>k.width&&(H=k.width-N.width),$<0?$=0:$+N.height>k.height&&($=k.height-N.height),d.value={...d.value,left:H,top:$}},document.onmouseup=()=>{T=!1,document.onmousemove=null,document.onmouseup=null,y(),setTimeout(()=>{s.value=!1},0)}},A=(L,T)=>{s.value=!0;let w=!0;const P=50/n.width*100,k=50/n.height*100,N=L.pageX,C=L.pageY,I=c.value,F={...d.value},W=d.value.width/d.value.height;document.onmousemove=B=>{if(!w)return;const K=B.pageX,j=B.pageY,D=(K-N)/i.value,Y=(j-C)/i.value,Z=Math.sqrt(D*D+Y*Y),$=Math.atan2(Y,D)-n.rotate/180*Math.PI;let G=Z*Math.cos($)/n.width*100,de=Z*Math.sin($)/n.height*100;o.value&&((T===Rt.RIGHT_BOTTOM||T===Rt.LEFT_TOP)&&(de=G/W),(T===Rt.LEFT_BOTTOM||T===Rt.RIGHT_TOP)&&(de=-G/W));let J,Ae,ue,fe;T===Rt.LEFT_TOP?(F.left+G<0&&(G=-F.left),F.top+de<0&&(de=-F.top),F.width-GI.width&&(G=I.width-(F.left+F.width)),F.top+de<0&&(de=-F.top),F.width+GI.height&&(de=I.height-(F.top+F.height)),F.width-GI.width&&(G=I.width-(F.left+F.width)),F.top+F.height+de>I.height&&(de=I.height-(F.top+F.height)),F.width+GI.height&&(de=I.height-(F.top+F.height)),F.height+deI.width&&(G=I.width-(F.left+F.width)),F.width+G{w=!1,document.onmousemove=null,document.onmouseup=null,y(),setTimeout(()=>s.value=!1,0)}},x=Se(()=>{const L="rotate-",T=n.rotate;return T>-22.5&&T<=22.5?L+0:T>22.5&&T<=67.5?L+45:T>67.5&&T<=112.5?L+90:T>112.5&&T<=157.5?L+135:T>157.5||T<=-157.5?L+0:T>-157.5&&T<=-112.5?L+45:T>-112.5&&T<=-67.5?L+90:T>-67.5&&T<=-22.5?L+135:L+0}),S=[Rt.LEFT_TOP,Rt.RIGHT_TOP,Rt.LEFT_BOTTOM,Rt.RIGHT_BOTTOM],M=[Rt.TOP,Rt.BOTTOM,Rt.LEFT,Rt.RIGHT];return(L,T)=>{const w=_n("click-outside");return ze((U(),ee("div",{class:"image-clip-handler",style:we(a.value)},[V("img",{class:"bottom-img",src:L.src,draggable:!1,alt:"",style:we(f.value)},null,12,S3e),V("div",{class:"top-image-content",style:we({...h.value,clipPath:L.clipPath})},[V("img",{class:"top-img",src:L.src,draggable:!1,alt:"",style:we(p.value)},null,12,w3e)],4),V("div",{class:"operate",style:we(h.value),onMousedown:T[0]||(T[0]=Nt(P=>R(P),["stop"]))},[(U(),ee(Ne,null,Je(S,P=>V("div",{class:Ge(["clip-point",P,x.value]),key:P,onMousedown:Nt(k=>A(k,P),["stop"])},T3e,42,M3e)),64)),(U(),ee(Ne,null,Je(M,P=>V("div",{class:Ge(["clip-point",P,x.value]),key:P,onMousedown:Nt(k=>A(k,P),["stop"])},k3e,42,_3e)),64))],36)],4)),[[w,g]])}}}),C3e=Be(P3e,[["__scopeId","data-v-31b3b0f9"]]),I3e=["src"],N3e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{clipingImageElementId:i}=Ve(n),o=Se(()=>i.value===t.elementInfo.id),{addHistorySnapshot:a}=on(),s=Se(()=>t.elementInfo.shadow),{shadowStyle:l}=vd(s),u=Se(()=>t.elementInfo.flipH),c=Se(()=>t.elementInfo.flipV),{flipStyle:f}=y3(u,c),d=Se(()=>t.elementInfo),{clipShape:h,imgPosition:p}=Pk(d),v=Se(()=>t.elementInfo.filters),{filter:g}=Tz(v),m=R=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo))},y=R=>{if(n.setClipingImageElementId(""),!R)return;const{range:A,position:x}=R,S=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},M=t.elementInfo.left+x.left,L=t.elementInfo.top+x.top,T=t.elementInfo.width+x.width,w=t.elementInfo.height+x.height;let P=0,k=0;if(t.elementInfo.rotate){const C=M+T/2-(t.elementInfo.left+t.elementInfo.width/2),I=-(L+w/2-(t.elementInfo.top+t.elementInfo.height/2)),F=-t.elementInfo.rotate*Math.PI/180,W=C*Math.cos(F)-I*Math.sin(F),B=C*Math.sin(F)+I*Math.cos(F);P=W-C,k=-(B-I)}const N={clip:{...S,range:A},left:M+P,top:L+k,width:T,height:w};r.updateElement({id:t.elementInfo.id,props:N}),a()};return(R,A)=>{const x=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-image",{lock:R.elementInfo.lock}]),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)`})},[o.value?(U(),Te(C3e,{key:0,src:R.elementInfo.src,clipData:R.elementInfo.clip,width:R.elementInfo.width,height:R.elementInfo.height,top:R.elementInfo.top,left:R.elementInfo.left,rotate:R.elementInfo.rotate,clipPath:z(h).style,onClip:A[0]||(A[0]=S=>y(S))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):ze((U(),ee("div",{key:1,class:"element-content",style:we({filter:z(l)?`drop-shadow(${z(l)})`:"",transform:z(f)}),onMousedown:A[2]||(A[2]=S=>m(S)),onTouchstart:A[3]||(A[3]=S=>m(S))},[O(_z,{elementInfo:R.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:we({clipPath:z(h).style})},[V("img",{src:R.elementInfo.src,draggable:!1,style:we({top:z(p).top,left:z(p).left,width:z(p).width,height:z(p).height,filter:z(g)}),onDragstart:A[1]||(A[1]=Nt(()=>{},["prevent"])),alt:""},null,44,I3e),R.elementInfo.colorMask?(U(),ee("div",{key:0,class:"color-mask",style:we({backgroundColor:R.elementInfo.colorMask})},null,4)):Ye("",!0)],4)],36)),[[x,R.contextmenus]])],4)],6)}}}),kz=Be(N3e,[["__scopeId","data-v-86b9f3af"]]),F3e=["width","height"],E3e=["d","stroke","stroke-width","stroke-dasharray"],X3e=Ee({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(U(),ee("svg",{key:0,class:"element-outline",overflow:"visible",width:o.width,height:o.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${o.width},0 L${o.width},${o.height} L0,${o.height} Z`,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,E3e)],8,F3e)):Ye("",!0)}}),A3=Be(X3e,[["__scopeId","data-v-e2ef58f5"]]),Qi=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},o2=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let m6=null;const Ku=function(e,t,n){let r=m6||(m6=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},W3e=function(){m6=null},n0=function(e,t,n,r){return n&&(DX(e,t,n,r,-1)||DX(e,t,n,r,1))},V3e=/^(img|br|input|textarea|hr)$/i;function DX(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:$l(e))){let o=e.parentNode;if(!o||o.nodeType!=1||ay(e)||V3e.test(e.nodeName)||e.contentEditable=="false")return!1;t=Qi(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?$l(e):0}else return!1}}function $l(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function D3e(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=$l(e)}else if(e.parentNode&&!ay(e))t=Qi(e),e=e.parentNode;else return null}}function U3e(e,t){for(;;){if(e.nodeType==3&&t2),hs=kv||(gu?/Mac/.test(gu.platform):!1),Q3e=gu?/Win/.test(gu.platform):!1,al=/Android \d/.test(gd),sy=!!UX&&"webkitFontSmoothing"in UX.documentElement.style,H3e=sy?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function K3e(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Uu(e,t){return typeof e=="number"?e:e[t]}function G3e(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function BX(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;a;a=o2(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,u=l?K3e(o):G3e(s),c=0,f=0;if(t.topu.bottom-Uu(r,"bottom")&&(f=t.bottom-t.top>u.bottom-u.top?t.top+Uu(i,"top")-u.top:t.bottom-u.bottom+Uu(i,"bottom")),t.leftu.right-Uu(r,"right")&&(c=t.right-u.right+Uu(i,"right")),c||f)if(l)o.defaultView.scrollBy(c,f);else{let d=s.scrollLeft,h=s.scrollTop;f&&(s.scrollTop+=f),c&&(s.scrollLeft+=c);let p=s.scrollLeft-d,v=s.scrollTop-h;t={left:t.left-p,top:t.top-v,right:t.right-p,bottom:t.bottom-v}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function z3e(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let o=(t.left+t.right)/2,a=n+1;a=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:Iz(e.dom)}}function Iz(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=o2(r));return t}function J3e({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;Nz(n,r==0?0:r-t)}function Nz(e,t){for(let n=0;n=s){a=Math.max(p.bottom,a),s=Math.min(p.top,s);let v=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!l&&p.left<=t.left&&p.right>=t.left&&(l=c,u={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=f+1)}}return!n&&l&&(n=l,i=u,r=0),n&&n.nodeType==3?j3e(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:Fz(n,i)}function j3e(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function Ck(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function q3e(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function t4e(e,t,n,r){let i=-1;for(let o=t,a=!1;o!=e.dom;){let s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right-1?i:e.docView.posFromDOM(t,n,-1)}function Ez(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}let u;sy&&i&&r.nodeType==1&&(u=r.childNodes[i-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=t4e(e,r,i,t))}s==null&&(s=e4e(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function YX(e){return e.top=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:u++,F1(sf(Ku(r,l,u),c),c<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==$l(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return P5(l.getBoundingClientRect(),!1)}if(o==null&&i<$l(r)){let l=r.childNodes[i];if(l.nodeType==1)return P5(l.getBoundingClientRect(),!0)}return P5(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==$l(r))){let l=r.childNodes[i-1],u=l.nodeType==3?Ku(l,$l(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return F1(sf(u,1),!1)}if(o==null&&i<$l(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Ku(l,0,a?0:1):l.nodeType==1?l:null:null;if(u)return F1(sf(u,-1),!0)}return F1(sf(r.nodeType==3?Ku(r):r,-n),n>=0)}function F1(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function P5(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Wz(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function i4e(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return Wz(e,t,()=>{let{node:o}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=Xz(e,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Ku(s,0,s.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?a.top-c.top>(c.bottom-a.top)*2:c.bottom-a.bottom>(a.bottom-c.top)*2))return!1}}return!0})}const o4e=/[\u0590-\u08ac]/;function a4e(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return!o4e.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:Wz(e,t,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:f}=e.domSelectionRange(),d=s.caretBidiLevel;s.modify("move",n,"character");let h=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:p,focusOffset:v}=e.domSelectionRange(),g=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&u==v;try{s.collapse(c,f),l&&(l!=c||u!=f)&&s.extend&&s.extend(l,u)}catch{}return d!=null&&(s.caretBidiLevel=d),g})}let ZX=null,QX=null,HX=!1;function s4e(e,t,n){return ZX==t&&QX==n?HX:(ZX=t,QX=n,HX=n=="up"||n=="down"?i4e(e,t,n):a4e(e,t,n))}const Ms=0,KX=1,Rh=2,mu=3;class ly{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Ms,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nQi(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||a instanceof Dz){i=t-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Vz&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Qi(o.dom)+1:0}}else{let o,a=!0;for(;o=r=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,c);t=a;for(let f=s;f>0;f--){let d=this.children[f-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){i=Qi(d.dom)+1;break}t-=d.size}i==-1&&(i=0)}if(i>-1&&(u>n||s==this.children.length-1)){n=u;for(let c=s+1;ch&&ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n>18]+n[(258048&t)>>12]+n[(4032&t)>>6]+n[63&t];return o===1?s+=n[(252&(t=r[a]))>>2]+n[(3&t)<<4]+"==":o===2&&(s+=n[(64512&(t=r[a]<<8|r[a+1]))>>10]+n[(1008&t)>>4]+n[(15&t)<<2]+"="),s}function S5(e){return e.substr(2+(~-e.lastIndexOf(".")>>>0))}function D0(e,t){if(!e)return e;var n="";if(e.constructor===Array)for(var r=0;r":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,function(n){return t[n]})}function HT(e){var t="";switch(e.toLowerCase()){case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"gif":t="image/gif";break;case"emf":t="image/x-emf";break;case"wmf":t="image/x-wmf";break;case"svg":t="image/svg+xml";break;case"mp4":t="video/mp4";break;case"webm":t="video/webm";break;case"ogg":t="video/ogg";break;case"avi":t="video/avi";break;case"mpg":t="video/mpg";break;case"wmv":t="video/wmv";break;case"mp3":t="audio/mpeg";break;case"wav":t="audio/wav";break;case"tif":case"tiff":t="image/tiff"}return t}function URe(e){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(e)}function U0(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function tX(e){if(!DOMParser)return!0;var t=new DOMParser().parseFromString(e,"text/html");return(t.body.textContent||t.body.innerText).trim()!==""}function KT(e,t,n,r){var i,o;if(n)o=n;else{var a=we(t.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);o=a||(a=we(t.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||we(t.slideMasterContent,["p:sldMaster","p:clrMap","attrs"])}var s=e.substr(2);if(s==="phClr"&&r)i=r;else{if(o)switch(s){case"tx1":case"tx2":case"bg1":case"bg2":e="a:"+o[s]}else switch(e){case"tx1":e="a:dk1";break;case"tx2":e="a:dk2";break;case"bg1":e="a:lt1";break;case"bg2":e="a:lt2"}var l=we(t.themeContent,["a:theme","a:themeElements","a:clrScheme",e]);!(i=we(l,["a:srgbClr","attrs","val"]))&&l&&(i=we(l,["a:sysClr","attrs","lastClr"]))}return i}function Og(e,t,n){var r=e["p:spPr"]["a:ln"];if(!r){var i=we(e,["p:style","a:lnRef"]);if(i){var o=we(i,["attrs","idx"]);r=n.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:lnStyleLst"]["a:ln"][Number(o)-1]}}r||(r=e);var a=we(r,["a:noFill"])?0:parseInt(we(r,["attrs","w"]))/12700;isNaN(a)&&(a=r||t!=="obj"?0:1);var s=we(r,["a:solidFill","a:srgbClr","attrs","val"]);if(!s){var l=we(r,["a:solidFill","a:schemeClr"]);s=KT("a:"+we(l,["attrs","val"]),n)}if(!s){var u=we(e,["p:style","a:lnRef","a:schemeClr"]);if(s=KT("a:"+we(u,["attrs","val"]),n)){var c=we(u,["a:shade","attrs","val"]);if(c){c=parseInt(c)/1e5;var f=At("#"+s).toHsl();s=At({h:f.h,s:f.s,l:f.l*c,a:f.a}).toHex()}}}s=s?"#".concat(s):"#000";var d="solid",h="0";switch(we(r,["a:prstDash","attrs","val"])){case"solid":d="solid",h="0";break;case"dash":d="dashed",h="5";break;case"dashDot":d="dashed",h="5, 5, 1, 5";break;case"dot":d="dotted",h="1, 5";break;case"lgDash":d="dashed",h="10, 5";break;case"lgDashDotDot":d="dotted",h="10, 5, 1, 5, 1, 5";break;case"sysDash":d="dashed",h="5, 2";break;case"sysDashDot":d="dotted",h="5, 2, 1, 5";break;case"sysDashDotDot":d="dotted",h="5, 2, 1, 5, 1, 5";break;case"sysDot":d="dotted",h="2, 5"}return{borderColor:s,borderWidth:a,borderType:d,strokeDasharray:h}}function w5(e,t,n){return n<0&&(n+=6),n>=6&&(n-=6),n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e}function VG(e,t,n){var r=At(e).toHsl();t>=1&&(t=1);var i=r.l*t+(1-t);return n?At({h:r.h,s:r.s,l:i,a:r.a}).toHex8():At({h:r.h,s:r.s,l:i,a:r.a}).toHex()}function $u(e){var t="";return e["a:noFill"]&&(t="NO_FILL"),e["a:solidFill"]&&(t="SOLID_FILL"),e["a:gradFill"]&&(t="GRADIENT_FILL"),e["a:pattFill"]&&(t="PATTERN_FILL"),e["a:blipFill"]&&(t="PIC_FILL"),e["a:grpFill"]&&(t="GROUP_FILL"),t}function DG(e,t,n){return GT.apply(this,arguments)}function GT(){return GT=$r(rn.mark(function e(t,n,r){var i,o,a,s,l,u,c;return rn.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(o=n["a:blip"].attrs["r:embed"],t==="slideBg"||t==="slide"?a=we(r,["slideResObj",o,"target"]):t==="slideLayoutBg"?a=we(r,["layoutResObj",o,"target"]):t==="slideMasterBg"?a=we(r,["masterResObj",o,"target"]):t==="themeBg"?a=we(r,["themeResObj",o,"target"]):t==="diagramBg"&&(a=we(r,["diagramResObj",o,"target"])),a){f.next=4;break}return f.abrupt("return",a);case 4:if(i=we(r,["loaded-images",a])){f.next=18;break}if(a=WG(a),(s=a.split(".").pop())!=="xml"){f.next=10;break}return f.abrupt("return",void 0);case 10:return f.next=12,r.zip.file(a).async("arraybuffer");case 12:l=f.sent,u=HT(s),i="data:".concat(u,";base64,").concat(XG(l)),(c=r["loaded-images"]||{})[a]=i,r["loaded-images"]=c;case 18:return f.abrupt("return",i);case 19:case"end":return f.stop()}},e)})),GT.apply(this,arguments)}function BRe(e){var t=we(e["a:blip"],["a:alphaModFix","attrs"]),n=1;return t&&t.amt&&t.amt!==""&&(n=parseInt(t.amt)/1e5),n}function I1(e,t,n){return UG.apply(this,arguments)}function UG(){return(UG=$r(rn.mark(function e(t,n,r){var i,o,a,s;return rn.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,DG(n,t["a:blipFill"],r);case 2:return i=l.sent,o=t["a:blipFill"]["a:blip"],a=we(o,["a:alphaModFix","attrs"]),s=1,a&&a.amt&&a.amt!==""&&(s=parseInt(a.amt)/1e5),l.abrupt("return",{picBase64:i,opacity:s});case 8:case"end":return l.stop()}},e)}))).apply(this,arguments)}function YRe(e,t){for(var n=e["a:gsLst"]["a:gs"],r=[],i=0;i1e3&&(x=A-1e3,S=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],M=[],Object.keys(S).forEach(function(_e){var ye=S[_e];if(_e!=="attrs")if(ye.constructor===Array)for(var Le=0;Le1e3)){Ue.next=89;break}if(Y=D-1e3,Z=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],H=[],Object.keys(Z).forEach(function(_e){var ye=Z[_e];if(_e!=="attrs")if(ye.constructor===Array)for(var Le=0;Le1e3)){Ue.next=142;break}if(re=ne-1e3,ae=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],ve=[],Object.keys(ae).forEach(function(_e){var ye=ae[_e];if(_e!=="attrs")if(ye.constructor===Array)for(var Le=0;Le=360&&(N-=360),P?At({h:N,s:k.s,l:k.l,a:k.a}).toHex8():At({h:N,s:k.s,l:k.l,a:k.a}).toHex()}(s,R,g));var A=parseInt(we(i,["a:lumMod","attrs","val"]))/1e5;isNaN(A)||(s=function(T,w,P){var k=At(T).toHsl(),N=k.l*w;return N>=1&&(N=1),P?At({h:k.h,s:k.s,l:N,a:k.a}).toHex8():At({h:k.h,s:k.s,l:N,a:k.a}).toHex()}(s,A,g));var x=parseInt(we(i,["a:lumOff","attrs","val"]))/1e5;isNaN(x)||(s=function(T,w,P){var k=At(T).toHsl(),N=w+k.l;return N>=1?P?At({h:k.h,s:k.s,l:1,a:k.a}).toHex8():At({h:k.h,s:k.s,l:1,a:k.a}).toHex():P?At({h:k.h,s:k.s,l:N,a:k.a}).toHex8():At({h:k.h,s:k.s,l:N,a:k.a}).toHex()}(s,x,g));var S=parseInt(we(i,["a:satMod","attrs","val"]))/1e5;isNaN(S)||(s=function(T,w,P){var k=At(T).toHsl(),N=k.s*w;return N>=1&&(N=1),P?At({h:k.h,s:N,l:k.l,a:k.a}).toHex8():At({h:k.h,s:N,l:k.l,a:k.a}).toHex()}(s,S,g));var M=parseInt(we(i,["a:shade","attrs","val"]))/1e5;isNaN(M)||(s=function(T,w,P){var k=At(T).toHsl();w>=1&&(w=1);var N=Math.min(k.l*w,1);return P?At({h:k.h,s:k.s,l:N,a:k.a}).toHex8():At({h:k.h,s:k.s,l:N,a:k.a}).toHex()}(s,M,g));var L=parseInt(we(i,["a:tint","attrs","val"]))/1e5;return isNaN(L)||(s=VG(s,L,g)),s&&s.indexOf("#")===-1&&(s="#"+s),s}function QRe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(l,u){if(l){if(typeof l=="string")return nX(l,u);var c=Object.prototype.toString.call(l).slice(8,-1);if(c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set")return Array.from(l);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return nX(l,u)}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function nX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function iX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&p.shift(),(d=d.concat(p)).sort(function(R,A){return!R.attrs||!A.attrs||R.attrs.order-A.attrs.order})));var v=KRe(f,t,r,i),g=zRe(f);if(g?(u?u&&u!==g&&(a+=""),a+="<".concat(g,">"),u=g):(a+="<".concat(g,">"),u=g),a+='
  • ')):(u&&(a+=""),u=""),a+='

    ')),d){var m,y=rX(d);try{for(y.s();!(m=y.n()).done;)a+=oX(m.value,f,e,s,n,r,i)}catch(R){y.e(R)}finally{y.f()}}else a+=oX(f,t,e,s,n,r,i);a+=g?"

  • ":"

    "}}catch(R){c.e(R)}finally{c.f()}return a}function zRe(e){var t=e["a:pPr"];return t?t["a:buChar"]?"ul":t["a:buAutoNum"]?"ol":"":""}function oX(e,t,n,r,i,o,a){var s=n["a:lstStyle"],l=a.slideMasterTextStyles,u=1,c=we(t["a:pPr"],["attrs","lvl"]);c!==void 0&&(u=parseInt(c)+1);var f=e["a:t"];typeof f!="string"&&(f=we(e,["a:fld","a:t"])),typeof f!="string"&&(f=" ");var d="",h=function(T,w,P,k,N,C){var I,F=we(T,["a:rPr"]);if(F&&$u(F)==="SOLID_FILL"&&(I=Yn(F["a:solidFill"],void 0,void 0,C)),!I&&we(P,["a:lvl"+N+"pPr","a:defRPr"])){var W=we(P,["a:lvl"+N+"pPr","a:defRPr"]);$u(W)==="SOLID_FILL"&&(I=Yn(W["a:solidFill"],void 0,void 0,C))}if(!I){var B=we(w,["p:style","a:fontRef"]);B&&(I=Yn(B,void 0,void 0,C)),!I&&k&&(I=Yn(k,void 0,void 0,C))}return I||""}(e,t,s,r,u,a),p=function(T,w,P,k){var N,C;if(we(T,["a:rPr","attrs","sz"])&&(N=we(T,["a:rPr","attrs","sz"])/100),isNaN(N)||!N){var I=we(w,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);N=parseInt(I)/100}return!isNaN(N)&&N||(P==="title"||P==="subTitle"||P==="ctrTitle"?C=we(k,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):P==="body"?C=we(k,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):P==="dt"||P==="sldNum"?C="1200":P||(C=we(k,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),C&&(N=parseInt(C)/100)),we(T,["a:rPr","attrs","baseline"])&&!isNaN(N)&&(N-=10),(N=isNaN(N)||!N?18:N)+"pt"}(e,i,o,l),v=function(T,w,P){var k=we(T,["a:rPr","a:latin","attrs","typeface"]);if(!k){var N=we(P.themeContent,["a:theme","a:themeElements","a:fontScheme"]);k=we(N,w==="title"||w==="subTitle"||w==="ctrTitle"?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return k||""}(e,o,a),g=function(T){return we(T,["a:rPr","attrs","b"])==="1"?"bold":""}(e),m=function(T){return we(T,["a:rPr","attrs","i"])==="1"?"italic":""}(e),y=function(T){return we(T,["a:rPr","attrs","u"])==="sng"?"underline":""}(e),R=function(T){return we(T,["a:rPr","attrs","strike"])==="sngStrike"?"line-through":""}(e),A=function(T){var w=we(T,["a:rPr","attrs","spc"]);return w?parseInt(w)/100+"pt":""}(e),x=function(T,w){var P=we(T,["a:rPr","a:effectLst","a:outerShdw"]);if(P){var k=YG(P,w);if(k){var N=k.h,C=k.v,I=k.blur,F=k.color;if(!isNaN(C)&&!isNaN(N))return N+"pt "+C+"pt "+(I?I+"pt":"")+" "+F}}return""}(e,a),S=function(T){var w=we(T,["a:rPr","attrs","baseline"]);return w?parseInt(w)>0?"super":"sub":""}(e);h&&(d+="color: ".concat(h,";")),p&&(d+="font-size: ".concat(p,";")),v&&(d+="font-family: ".concat(v,";")),g&&(d+="font-weight: ".concat(g,";")),m&&(d+="font-style: ".concat(m,";")),y&&(d+="text-decoration: ".concat(y,";")),R&&(d+="text-decoration-line: ".concat(R,";")),A&&(d+="letter-spacing: ".concat(A,";")),S&&(d+="vertical-align: ".concat(S,";")),x&&(d+="text-shadow: ".concat(x,";"));var M=we(e,["a:rPr","a:hlinkClick","attrs","r:id"]);if(M){var L=a.slideResObj[M].target;return'').concat(f.replace(/\t/g,"    ").replace(/\s/g," "),"")}return'').concat(f.replace(/\t/g,"    ").replace(/\s/g," "),"")}function JRe(e,t,n,r,i,o,a){var s,l=i;if(o>=i)for(;l<=o;){var u=l*(Math.PI/180),c=e+Math.cos(u)*n,f=t+Math.sin(u)*r;l===i&&(s=" M"+c+" "+f),s+=" L"+c+" "+f,l++}else for(;l>o;){var d=l*(Math.PI/180),h=e+Math.cos(d)*n,p=t+Math.sin(d)*r;l===i&&(s=" M "+h+" "+p),s+=" L "+h+" "+p,l--}return s+=""}function $Re(e,t,n){var r=we(e,["a:pathLst"]),i=we(r,["a:path"]);Array.isArray(i)&&(i=i.pop());var o=parseInt(i.attrs.w),a=parseInt(i.attrs.h),s=o===0?0:1/o*t,l=a===0?0:1/a*n,u="",c=we(i,["a:moveTo"]),f=i["a:lnTo"],d=i["a:cubicBezTo"],h=i["a:arcTo"],p=we(i,["a:close"]);Array.isArray(c)||(c=[c]);var v=[];if(c.length>0){if(Object.keys(c).forEach(function(C){var I=c[C]["a:pt"];I&&Object.keys(I).forEach(function(F){var W=I[F],B=W.x,K=W.y,j=W.order;v.push({type:"movto",x:B,y:K,order:j})})}),f&&Object.keys(f).forEach(function(C){var I=f[C]["a:pt"];I&&Object.keys(I).forEach(function(F){var W=I[F],B=W.x,K=W.y,j=W.order;v.push({type:"lnto",x:B,y:K,order:j})})}),d){var g=[];Array.isArray(d)||(d=[d]),Object.keys(d).forEach(function(C){g.push(d[C]["a:pt"])}),g.forEach(function(C){var I=[];C.forEach(function(W){var B={x:W.attrs.x,y:W.attrs.y};I.push(B)});var F=C[0].attrs.order;v.push({type:"cubicBezTo",cubBzPt:I,order:F})})}if(h){var m=h.attrs,y=m.order,R=m.hR,A=m.wR,x=m.stAng,S=m.swAng,M=0,L=0,T=we(h,["a:pt","attrs"]);T&&(M=T.x,L=T.y),v.push({type:"arcTo",hR:R,wR:A,stAng:x,swAng:S,shftX:M,shftY:L,order:y})}p&&(Array.isArray(p)||(p=[p]),Object.keys(p).forEach(function(){v.push({type:"close",order:1/0})})),v.sort(function(C,I){return C.order-I.order});for(var w=0;w0&&n.isBandRowAttr===1&&r){if(o="",t%2==0&&r["a:band2H"]){var g=we(r,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(g){var m=Yn(g,void 0,void 0,i);m&&(o=m)}var y=we(r,["a:band2H","a:tcTxStyle"]);if(y){var R=Yn(y,void 0,void 0,i);R&&(a=R)}we(y,["attrs","b"])==="on"&&(s=!0)}if(t%2!=0&&r["a:band1H"]){var A=we(r,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(A){var x=Yn(A,void 0,void 0,i);x&&(o=x)}var S=we(r,["a:band1H","a:tcTxStyle"]);if(S){var M=Yn(S,void 0,void 0,i);M&&(a=M),we(S,["attrs","b"])==="on"&&(s=!0)}}}if(t===e.length-1&&n.isLstRowAttr===1&&r){var L=we(r,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(L){var T=Yn(L,void 0,void 0,i);T&&(o=T)}var w=we(r,["a:lastRow","a:tcTxStyle"]);if(w){var P=Yn(w,void 0,void 0,i);P&&(a=P),we(w,["attrs","b"])==="on"&&(s=!0)}}return{fillColor:o,fontColor:a,fontBold:s}}function M5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function uX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n").replaceAll(/&/g,"&").replaceAll(/'/g,"'").replaceAll(/"/g,'"')}(xr(QG(e)[0])),order:t}}function t6(e,t,n){return n6.apply(this,arguments)}function n6(){return n6=$r(rn.mark(function e(t,n,r){var i,o,a,s,l,u,c,f,d,h,p,v,g,m,y,R,A,x,S,M;return rn.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(i=t.attrs.order,o=we(t,["p:grpSpPr","a:xfrm"])){L.next=4;break}return L.abrupt("return",null);case 4:a=parseInt(o["a:off"].attrs.x)*Mi,s=parseInt(o["a:off"].attrs.y)*Mi,l=parseInt(o["a:chOff"].attrs.x)*Mi,u=parseInt(o["a:chOff"].attrs.y)*Mi,c=parseInt(o["a:ext"].attrs.cx)*Mi,f=parseInt(o["a:ext"].attrs.cy)*Mi,d=parseInt(o["a:chExt"].attrs.cx)*Mi,h=parseInt(o["a:chExt"].attrs.cy)*Mi,(p=we(o,["attrs","rot"])||0)&&(p=Mv(p)),v=c/d,g=f/h,m=[],L.t0=rn.keys(t);case 18:if((L.t1=L.t0()).done){L.next=48;break}if(y=L.t1.value,t[y].constructor!==Array){L.next=42;break}R=$o(t[y]),L.prev=22,R.s();case 24:if((A=R.n()).done){L.next=32;break}return x=A.value,L.next=28,Ah(y,x,n,r);case 28:(S=L.sent)&&m.push(S);case 30:L.next=24;break;case 32:L.next=37;break;case 34:L.prev=34,L.t2=L.catch(22),R.e(L.t2);case 37:return L.prev=37,R.f(),L.finish(37);case 40:L.next=46;break;case 42:return L.next=44,Ah(y,t[y],n,r);case 44:(M=L.sent)&&m.push(M);case 46:L.next=18;break;case 48:return L.abrupt("return",{type:"group",top:s,left:a,width:c,height:f,rotate:p,order:i,elements:m.map(function(T){return ju(ju({},T),{},{left:(T.left-l)*v,top:(T.top-u)*g,width:T.width*v,height:T.height*g})})});case 49:case"end":return L.stop()}},e,null,[[22,34,37,40]])})),n6.apply(this,arguments)}function JG(e,t,n){return r6.apply(this,arguments)}function r6(){return r6=$r(rn.mark(function e(t,n,r){var i,o,a,s,l,u;return rn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=we(t,["p:nvSpPr","p:cNvPr","attrs","name"]),o=we(t,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),a=we(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),s=we(t,["attrs","order"]),a?(l=n.slideLayoutTables.typeTable[a],u=n.slideMasterTables.typeTable[a]):o&&(l=n.slideLayoutTables.idxTable[o],u=n.slideMasterTables.idxTable[o]),a||we(t,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"&&(a="text"),a||(a=we(l,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),a||(a=we(u,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),a||(a=r==="diagramBg"?"diagram":"obj"),c.next=11,$G(t,l,u,i,a,s,n,r);case 11:return c.abrupt("return",c.sent);case 12:case"end":return c.stop()}},e)})),r6.apply(this,arguments)}function ube(e,t,n){return i6.apply(this,arguments)}function i6(){return i6=$r(rn.mark(function e(t,n,r){var i,o,a;return rn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=t["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,o=t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]===void 0?void 0:t["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,a=t.attrs.order,s.next=5,$G(t,void 0,void 0,i,o,a,n,r);case 5:return s.abrupt("return",s.sent);case 6:case"end":return s.stop()}},e)})),i6.apply(this,arguments)}function $G(e,t,n,r,i,o,a,s){return o6.apply(this,arguments)}function o6(){return o6=$r(rn.mark(function e(t,n,r,i,o,a,s,l){var u,c,f,d,h,p,v,g,m,y,R,A,x,S,M,L,T,w,P,k,N,C,I,F,W,B,K,j,D,Y,Z,H,$,G;return rn.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return c=we(t,u=["p:spPr","a:xfrm"]),f=we(n,u),d=we(r,u),h=we(t,["p:spPr","a:prstGeom","attrs","prst"]),p=we(t,["p:spPr","a:custGeom"]),v=qv(c,f,d),g=v.top,m=v.left,y=e1(c,f,d),R=y.width,A=y.height,x=we(c,["attrs","flipV"])==="1",S=we(c,["attrs","flipH"])==="1",M=Mv(we(c,["attrs","rot"])),(L=we(t,["p:txXfrm"]))?(w=we(L,["attrs","rot"]))&&(T=Mv(w)+90):T=M,P="",t["p:txBody"]&&(P=$T(t["p:txBody"],t,n,o,s)),k=Og(t,o,s),N=k.borderColor,C=k.borderWidth,I=k.borderType,F=k.strokeDasharray,de.next=18,BG(t,void 0,s,l);case 18:if(de.t0=de.sent,de.t0){de.next=21;break}de.t0="";case 21:if(W=de.t0,(K=we(t,["p:spPr","a:effectLst","a:outerShdw"]))&&(B=YG(K,s)),j=GRe(t,n,r),D=we(t,["p:txBody","a:bodyPr","attrs","vert"])==="eaVert",Y={left:m,top:g,width:R,height:A,borderColor:N,borderWidth:C,borderType:I,borderStrokeDasharray:F,fill:W,content:P,isFlipV:x,isFlipH:S,rotate:M,vAlign:j,name:i,order:a},B&&(Y.shadow=B),!p||o==="diagram"){de.next=35;break}return Z=we(c,["a:ext","attrs"]),H=parseInt(Z.cx)*Mi,$=parseInt(Z.cy)*Mi,G=$Re(p,H,$),Y.content&&!tX(Y.content)&&(Y.content=""),de.abrupt("return",ju(ju({},Y),{},{type:"shape",shapType:"custom",path:G}));case 35:if(!h||o!=="obj"&&o){de.next=38;break}return Y.content&&!tX(Y.content)&&(Y.content=""),de.abrupt("return",ju(ju({},Y),{},{type:"shape",shapType:h}));case 38:return de.abrupt("return",ju(ju({},Y),{},{type:"text",isVertical:D,rotate:T}));case 39:case"end":return de.stop()}},e)})),o6.apply(this,arguments)}function cbe(e,t,n){return a6.apply(this,arguments)}function a6(){return a6=$r(rn.mark(function e(t,n,r){var i,o,a,s,l,u,c,f,d,h,p,v,g,m,y,R,A,x,S,M,L,T,w,P,k,N,C,I,F,W,B,K,j,D;return rn.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return i=r==="slideMasterBg"?n.masterResObj:r==="slideLayoutBg"?n.layoutResObj:n.slideResObj,o=t.attrs.order,a=t["p:blipFill"]["a:blip"].attrs["r:embed"],s=i[a].target,l=S5(s).toLowerCase(),u=n.zip,Y.next=8,u.file(s).async("arraybuffer");case 8:if(c=Y.sent,f=t["p:spPr"]["a:xfrm"],d=HT(l),h=qv(f,void 0,void 0),p=h.top,v=h.left,g=e1(f,void 0,void 0),m=g.width,y=g.height,R="data:".concat(d,";base64,").concat(XG(c)),A=we(f,["attrs","flipV"])==="1",x=we(f,["attrs","flipH"])==="1",S=0,(M=we(t,["p:spPr","a:xfrm","attrs","rot"]))&&(S=Mv(M)),L=we(t,["p:nvPicPr","p:nvPr","a:videoFile"]),I=!1,!L){Y.next=36;break}if(T=L.attrs["r:link"],!URe(w=i[T].target)){Y.next=29;break}w=WG(w),I=!0,Y.next=36;break;case 29:if((P=S5(w).toLowerCase())!=="mp4"&&P!=="webm"&&P!=="ogg"){Y.next=36;break}return Y.next=33,u.file(w).async("arraybuffer");case 33:N=Y.sent,k=HT(P),C=URL.createObjectURL(new Blob([N],{type:k}));case 36:if(!(F=we(t,["p:nvPicPr","p:nvPr","a:audioFile"]))){Y.next=46;break}if(W=F.attrs["r:link"],B=i[W].target,(K=S5(B).toLowerCase())!=="mp3"&&K!=="wav"&&K!=="ogg"){Y.next=46;break}return Y.next=44,u.file(B).async("arraybuffer");case 44:j=Y.sent,D=URL.createObjectURL(new Blob([j]));case 46:if(!L||I){Y.next=48;break}return Y.abrupt("return",{type:"video",top:p,left:v,width:m,height:y,rotate:S,blob:C,order:o});case 48:if(!L||!I){Y.next=50;break}return Y.abrupt("return",{type:"video",top:p,left:v,width:m,height:y,rotate:S,src:w,order:o});case 50:if(!F){Y.next=52;break}return Y.abrupt("return",{type:"audio",top:p,left:v,width:m,height:y,rotate:S,blob:D,order:o});case 52:return Y.abrupt("return",{type:"image",top:p,left:v,width:m,height:y,rotate:S,src:R,isFlipV:A,isFlipH:x,order:o});case 53:case"end":return Y.stop()}},e)})),a6.apply(this,arguments)}function fbe(e,t,n){return s6.apply(this,arguments)}function s6(){return s6=$r(rn.mark(function e(t,n,r){var i,o,a;return rn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i=we(t,["a:graphic","a:graphicData","attrs","uri"]),s.t0=i,s.next=s.t0==="http://schemas.openxmlformats.org/drawingml/2006/table"?4:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/chart"?8:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/diagram"?12:s.t0==="http://schemas.openxmlformats.org/presentationml/2006/ole"?16:23;break;case 4:return s.next=6,dbe(t,n);case 6:return o=s.sent,s.abrupt("break",23);case 8:return s.next=10,hbe(t,n);case 10:return o=s.sent,s.abrupt("break",23);case 12:return s.next=14,pbe(t,n);case 14:return o=s.sent,s.abrupt("break",23);case 16:if((a=we(t,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))||(a=we(t,["a:graphic","a:graphicData","p:oleObj"])),!a){s.next=22;break}return s.next=21,t6(a,n,r);case 21:o=s.sent;case 22:return s.abrupt("break",23);case 23:return s.abrupt("return",o);case 24:case"end":return s.stop()}},e)})),s6.apply(this,arguments)}function dbe(e,t){return l6.apply(this,arguments)}function l6(){return l6=$r(rn.mark(function e(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,v,g,m,y,R,A,x,S,M,L,T,w,P,k,N,C,I,F,W,B,K,j,D,Y,Z,H,$,G,de,J,Ae,ue,fe,se,q;return rn.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(r=t.attrs.order,i=we(t,["a:graphic","a:graphicData","a:tbl"]),o=we(t,["p:xfrm"]),a=qv(o,void 0,void 0),s=a.top,l=a.left,u=e1(o,void 0,void 0),c=u.width,f=u.height,d=we(t,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),h=d.attrs?d.attrs.firstRow:void 0,p=d.attrs?d.attrs.firstCol:void 0,v=d.attrs?d.attrs.lastRow:void 0,g=d.attrs?d.attrs.lastCol:void 0,m=d.attrs?d.attrs.bandRow:void 0,y=d.attrs?d.attrs.bandCol:void 0,R={isFrstRowAttr:h&&h==="1"?1:0,isFrstColAttr:p&&p==="1"?1:0,isLstRowAttr:v&&v==="1"?1:0,isLstColAttr:g&&g==="1"?1:0,isBandRowAttr:m&&m==="1"?1:0,isBandColAttr:y&&y==="1"?1:0},(x=d["a:tableStyleId"])&&(S=n.tableStyles["a:tblStyleLst"]["a:tblStyle"]))if(S.constructor===Array)for(M=0;M0&&R.isBandColAttr===1)||R.isFrstColAttr===1&&F===0||R.isLstRowAttr===1&&F===C.length-1||H===Y.length-1||H%2!=0&&(we(A,["a:band2V"])===void 0?we(A,["a:band1V"])&&(G="a:band2V"):G="a:band2V"),H===Y.length-1&&R.isLstColAttr===1&&(G="a:lastCol",R.isLstRowAttr===1&&F===C.length-1&&we(A,["a:swCell"])?G="a:swCell":R.isFrstRowAttr===1&&F===0&&we(A,["a:nwCell"])&&(G="a:nwCell")),de=$T($["a:txBody"],$,void 0,void 0,n),E.next=42,aX($,A,G,n);case 42:J=E.sent,Ae={text:de},J.rowSpan&&(Ae.rowSpan=J.rowSpan),J.colSpan&&(Ae.colSpan=J.colSpan),J.vMerge&&(Ae.vMerge=J.vMerge),J.hMerge&&(Ae.hMerge=J.hMerge),(J.fontBold||D)&&(Ae.fontBold=J.fontBold||D),(J.fontColor||j)&&(Ae.fontColor=J.fontColor||j),(J.fillColor||K||k)&&(Ae.fillColor=J.fillColor||K||k),Z.push(Ae);case 52:H++,E.next=34;break;case 55:E.next=73;break;case 57:return ue=void 0,R.isFrstColAttr===1&&R.isLstRowAttr!==1?ue="a:firstCol":R.isBandColAttr===1&&R.isLstRowAttr!==1&&(we(A,["a:band2V"])||we(A,["a:band1V"]))&&(ue="a:band2V"),R.isLstColAttr===1&&R.isLstRowAttr!==1&&(ue="a:lastCol"),fe=$T(Y["a:txBody"],Y,void 0,void 0,n),E.next=63,aX(Y,A,ue,n);case 63:se=E.sent,q={text:fe},se.rowSpan&&(q.rowSpan=se.rowSpan),se.colSpan&&(q.colSpan=se.colSpan),se.vMerge&&(q.vMerge=se.vMerge),se.hMerge&&(q.hMerge=se.hMerge),(se.fontBold||D)&&(q.fontBold=se.fontBold||D),(se.fontColor||j)&&(q.fontColor=se.fontColor||j),(se.fillColor||K||k)&&(q.fillColor=se.fillColor||K||k),Z.push(q);case 73:I.push(Z);case 74:F++,E.next=27;break;case 77:return E.abrupt("return",ju({type:"table",top:s,left:l,width:c,height:f,data:I,order:r},L||{}));case 78:case"end":return E.stop()}},e)})),l6.apply(this,arguments)}function hbe(e,t){return u6.apply(this,arguments)}function u6(){return u6=$r(rn.mark(function e(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,v,g;return rn.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(r=t.attrs.order,i=we(t,["p:xfrm"]),o=qv(i,void 0,void 0),a=o.top,s=o.left,l=e1(i,void 0,void 0),u=l.width,c=l.height,f=t["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],(d=we(n.slideResObj,[f,"target"]))||(d=we(n.layoutResObj,[f,"target"])),d||(d=we(n.masterResObj,[f,"target"])),d){m.next=10;break}return m.abrupt("return",{});case 10:return m.next=12,ro(n.zip,d);case 12:if(h=m.sent,p=we(h,["c:chartSpace","c:chart","c:plotArea"]),v=HRe(p,n)){m.next=17;break}return m.abrupt("return",{});case 17:return g={type:"chart",top:a,left:s,width:u,height:c,data:v.data,colors:v.colors,chartType:v.type,order:r},v.marker!==void 0&&(g.marker=v.marker),v.barDir!==void 0&&(g.barDir=v.barDir),v.holeSize!==void 0&&(g.holeSize=v.holeSize),v.grouping!==void 0&&(g.grouping=v.grouping),v.style!==void 0&&(g.style=v.style),m.abrupt("return",g);case 24:case"end":return m.stop()}},e)})),u6.apply(this,arguments)}function pbe(e,t){return c6.apply(this,arguments)}function c6(){return c6=$r(rn.mark(function e(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,v,g;return rn.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(r=t.attrs.order,i=we(t,["p:xfrm"]),o=qv(i,void 0,void 0),a=o.left,s=o.top,l=e1(i,void 0,void 0),u=l.width,c=l.height,f=we(n.digramFileContent,["p:drawing","p:spTree","p:sp"]),d=[],!f){m.next=26;break}h=$o(f),m.prev=8,h.s();case 10:if((p=h.n()).done){m.next=18;break}return v=p.value,m.next=14,JG(v,n,"diagramBg");case 14:(g=m.sent)&&d.push(g);case 16:m.next=10;break;case 18:m.next=23;break;case 20:m.prev=20,m.t0=m.catch(8),h.e(m.t0);case 23:return m.prev=23,h.f(),m.finish(23);case 26:return m.abrupt("return",{type:"diagram",left:a,top:s,width:u,height:c,elements:d,order:r});case 27:case"end":return m.stop()}},e,null,[[8,20,23,26]])})),c6.apply(this,arguments)}const ii=" ";function vbe(e){let t="";Array.isArray(e)||(e=[e]);for(let n=0;ne.phi1&&(e.phi2-=2*pf),e.sweepFlag===1&&e.phi2r)return[];if(r===0)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];const i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}const Du=Math.PI/180;function dX(e,t,n){return(1-n)*e+n*t}function hX(e,t,n,r){return e+Math.cos(r/180*pf)*t+Math.sin(r/180*pf)*n}function pX(e,t,n,r){const o=t-e,a=n-t,s=r-n,l=3*o+3*s-6*a,u=(a-o)*6,c=3*o;return Math.abs(l)<1e-6?[-c/u]:gbe(u/l,c/l,1e-6)}function vX(e,t,n,r,i){const o=1-i,a=o*o*o,s=3*o*o*i,l=3*o*i*i,u=i*i*i;return e*a+t*s+n*l+r*u}function gbe(e,t,n=1e-6){const r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];const i=Math.sqrt(r);return[-(e/2)-i,-(e/2)+i]}function mbe(e,t,n){e.cX||bk(e,t,n);const r=Math.min(e.phi1,e.phi2),i=Math.max(e.phi1,e.phi2),o=i-r,a=Math.ceil(o/90),s=new Array(a);let l=t,u=n;for(let c=0;c{const[T,w]=f6([M*e.rX,L*e.rY],e.xRot);return[e.cX+T,e.cY+w]};[x.x1,x.y1]=S(v,g),[x.x2,x.y2]=S(R,A),[x.x,x.y]=S(m,y),e.relative&&(x.x1-=l,x.y1-=u,x.x2-=l,x.y2-=u,x.x-=l,x.y-=u),[l,u]=[x.x,x.y],s[c]=x}return s}function ybe(e=1e13){yl(e);function t(n){return Math.round(n*e)/e}return function(r){return"x1"in r&&typeof r.x1<"u"&&(r.x1=t(r.x1)),"y1"in r&&typeof r.y1<"u"&&(r.y1=t(r.y1)),"x2"in r&&typeof r.x2<"u"&&(r.x2=t(r.x2)),"y2"in r&&typeof r.y2<"u"&&(r.y2=t(r.y2)),"x"in r&&typeof r.x<"u"&&(r.x=t(r.x)),"y"in r&&typeof r.y<"u"&&(r.y=t(r.y)),"rX"in r&&typeof r.rX<"u"&&(r.rX=t(r.rX)),"rY"in r&&typeof r.rY<"u"&&(r.rY=t(r.rY)),r}}function jG(){return Al((e,t,n)=>(e.relative&&(typeof e.x1<"u"&&(e.x1+=t),typeof e.y1<"u"&&(e.y1+=n),typeof e.x2<"u"&&(e.x2+=t),typeof e.y2<"u"&&(e.y2+=n),typeof e.x<"u"&&(e.x+=t),typeof e.y<"u"&&(e.y+=n),e.relative=!1),e))}function Abe(){return Al((e,t,n)=>(e.relative||(typeof e.x1<"u"&&(e.x1-=t),typeof e.y1<"u"&&(e.y1-=n),typeof e.x2<"u"&&(e.x2-=t),typeof e.y2<"u"&&(e.y2-=n),typeof e.x<"u"&&(e.x-=t),typeof e.y<"u"&&(e.y-=n),e.relative=!0),e))}function Rbe(e=!0,t=!0,n=!0){return Al((r,i,o,a,s)=>{if(isNaN(a)&&!(r.type<.MOVE_TO))throw new Error("path must start with moveto");return t&&r.type<.HORIZ_LINE_TO&&(r.type=lt.LINE_TO,r.y=r.relative?0:o),n&&r.type<.VERT_LINE_TO&&(r.type=lt.LINE_TO,r.x=r.relative?0:i),e&&r.type<.CLOSE_PATH&&(r.type=lt.LINE_TO,r.x=r.relative?a-i:a,r.y=r.relative?s-o:s),r.type<.ARC&&(r.rX===0||r.rY===0)&&(r.type=lt.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r})}function qG(){let e=NaN,t=NaN,n=NaN,r=NaN;return Al((i,o,a)=>(i.type<.SMOOTH_CURVE_TO&&(i.type=lt.CURVE_TO,e=isNaN(e)?o:e,t=isNaN(t)?a:t,i.x1=i.relative?o-e:2*o-e,i.y1=i.relative?a-t:2*a-t),i.type<.CURVE_TO?(e=i.relative?o+i.x2:i.x2,t=i.relative?a+i.y2:i.y2):(e=NaN,t=NaN),i.type<.SMOOTH_QUAD_TO&&(i.type=lt.QUAD_TO,n=isNaN(n)?o:n,r=isNaN(r)?a:r,i.x1=i.relative?o-n:2*o-n,i.y1=i.relative?a-r:2*a-r),i.type<.QUAD_TO?(n=i.relative?o+i.x1:i.x1,r=i.relative?a+i.y1:i.y1):(n=NaN,r=NaN),i))}function ez(){let e=NaN,t=NaN;return Al((n,r,i)=>{if(n.type<.SMOOTH_QUAD_TO&&(n.type=lt.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?i:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?i-t:2*i-t),n.type<.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?i+n.y1:n.y1;const o=n.x1,a=n.y1;n.type=lt.CURVE_TO,n.x1=((n.relative?0:r)+o*2)/3,n.y1=((n.relative?0:i)+a*2)/3,n.x2=(n.x+o*2)/3,n.y2=(n.y+a*2)/3}else e=NaN,t=NaN;return n})}function Al(e){let t=0,n=0,r=NaN,i=NaN;return function(a){if(isNaN(r)&&!(a.type<.MOVE_TO))throw new Error("path must start with moveto");const s=e(a,t,n,r,i);return a.type<.CLOSE_PATH&&(t=r,n=i),"x"in a&&typeof a.x<"u"&&(t=a.relative?t+a.x:a.x),"y"in a&&typeof a.y<"u"&&(n=a.relative?n+a.y:a.y),a.type<.MOVE_TO&&(r=t,i=n),s}}function bbe(e=0){yl(e);let t=NaN,n=NaN,r=NaN,i=NaN;return Al((o,a,s,l,u)=>{const c=Math.abs;let f=!1,d=0,h=0;if(o.type<.SMOOTH_CURVE_TO&&(d=isNaN(t)?0:a-t,h=isNaN(n)?0:s-n),o.type&(lt.CURVE_TO|lt.SMOOTH_CURVE_TO)?(t=o.relative?a+o.x2:o.x2,n=o.relative?s+o.y2:o.y2):(t=NaN,n=NaN),o.type<.SMOOTH_QUAD_TO?(r=isNaN(r)?a:2*a-r,i=isNaN(i)?s:2*s-i):o.type<.QUAD_TO?(r=o.relative?a+o.x1:o.x1,i=o.relative?s+o.y1:o.y2):(r=NaN,i=NaN),o.type<.LINE_COMMANDS||o.type<.ARC&&(o.rX===0||o.rY===0||!o.lArcFlag)||o.type<.CURVE_TO||o.type<.SMOOTH_CURVE_TO||o.type<.QUAD_TO||o.type<.SMOOTH_QUAD_TO){const p=typeof o.x>"u"?0:o.relative?o.x:o.x-a,v=typeof o.y>"u"?0:o.relative?o.y:o.y-s;d=isNaN(r)?typeof o.x1>"u"?d:o.relative?o.x:o.x1-a:r-a,h=isNaN(i)?typeof o.y1>"u"?h:o.relative?o.y:o.y1-s:i-s;const g=typeof o.x2>"u"?0:o.relative?o.x:o.x2-a,m=typeof o.y2>"u"?0:o.relative?o.y:o.y2-s;c(p)<=e&&c(v)<=e&&c(d)<=e&&c(h)<=e&&c(g)<=e&&c(m)<=e&&(f=!0)}return o.type<.CLOSE_PATH&&c(a-l)<=e&&c(s-u)<=e&&(f=!0),f?[]:o})}function hd(e,t,n,r,i,o){return yl(e,t,n,r,i,o),Al((a,s,l,u)=>{const c=a.x1,f=a.x2,d=a.relative&&!isNaN(u),h=typeof a.x<"u"?a.x:d?0:s,p=typeof a.y<"u"?a.y:d?0:l;a.type<.HORIZ_LINE_TO&&t!==0&&(a.type=lt.LINE_TO,a.y=a.relative?0:l),a.type<.VERT_LINE_TO&&n!==0&&(a.type=lt.LINE_TO,a.x=a.relative?0:s),typeof a.x<"u"&&(a.x=a.x*e+p*n+(d?0:i)),typeof a.y<"u"&&(a.y=h*t+a.y*r+(d?0:o)),typeof a.x1<"u"&&(a.x1=a.x1*e+a.y1*n+(d?0:i)),typeof a.y1<"u"&&(a.y1=c*t+a.y1*r+(d?0:o)),typeof a.x2<"u"&&(a.x2=a.x2*e+a.y2*n+(d?0:i)),typeof a.y2<"u"&&(a.y2=f*t+a.y2*r+(d?0:o));function v(m){return m*m}const g=e*r-t*n;if(typeof a.xRot<"u"&&(e!==1||t!==0||n!==0||r!==1))if(g===0)delete a.rX,delete a.rY,delete a.xRot,delete a.lArcFlag,delete a.sweepFlag,a.type=lt.LINE_TO;else{const m=a.xRot*Math.PI/180,y=Math.sin(m),R=Math.cos(m),A=1/v(a.rX),x=1/v(a.rY),S=v(R)*A+v(y)*x,M=2*y*R*(A-x),L=v(y)*A+v(R)*x,T=S*r*r-M*t*r+L*t*t,w=M*(e*r+t*n)-2*(S*n*r+L*e*t),P=S*n*n-M*e*n+L*e*e,k=(Math.atan2(w,T-P)+Math.PI)%Math.PI/2,N=Math.sin(k),C=Math.cos(k);a.rX=Math.abs(g)/Math.sqrt(T*v(C)+w*N*C+P*v(N)),a.rY=Math.abs(g)/Math.sqrt(T*v(N)-w*N*C+P*v(C)),a.xRot=k*180/Math.PI}return typeof a.sweepFlag<"u"&&0>g&&(a.sweepFlag=+!a.sweepFlag),a})}function xbe(e,t=0,n=0){yl(e,t,n);const r=Math.sin(e),i=Math.cos(e);return hd(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)}function Sbe(e,t=0){return yl(e,t),hd(1,0,0,1,e,t)}function wbe(e,t=e){return yl(e,t),hd(e,0,0,t,0,0)}function Mbe(e){return yl(e),hd(1,0,Math.atan(e),1,0,0)}function Lbe(e){return yl(e),hd(1,Math.atan(e),0,1,0,0)}function Tbe(e=0){return yl(e),hd(-1,0,0,1,e,0)}function _be(e=0){return yl(e),hd(1,0,0,-1,0,e)}function Obe(){return Al((e,t,n)=>lt.ARC===e.type?mbe(e,e.relative?0:t,e.relative?0:n):e)}function kbe(){return Al((e,t,n)=>(e.relative&&(t=0,n=0),lt.ARC===e.type&&bk(e,t,n),e))}function tz(){return e=>({...e})}function Pbe(){const e=tz(),t=jG(),n=ez(),r=qG(),i=Al((o,a,s)=>{const l=r(n(t(e(o))));function u(f){f>i.maxX&&(i.maxX=f),fi.maxY&&(i.maxY=f),fh&&u(vX(a,l.x1,l.x2,l.x,h));const d=pX(s,l.y1,l.y2,l.y);for(const h of d)0h&&c(vX(s,l.y1,l.y2,l.y,h))}if(l.type<.ARC){u(l.x),c(l.y),bk(l,a,s);const f=l.xRot/180*Math.PI,d=Math.cos(f)*l.rX,h=Math.sin(f)*l.rX,p=-Math.sin(f)*l.rY,v=Math.cos(f)*l.rY,[g,m]=l.phi1l.phi2?[l.phi2+360,l.phi1+360]:[l.phi2,l.phi1],y=([x,S])=>{const L=Math.atan2(S,x)*180/Math.PI;return Lg&&xg&&xe===" "||e===" "||e==="\r"||e===` +`,gX=e=>48<=e.charCodeAt(0)&&e.charCodeAt(0)<=57;class Ibe extends nz{constructor(){super();Tr(this,"curNumber","");Tr(this,"curCommandType",-1);Tr(this,"curCommandRelative",!1);Tr(this,"canParseCommandOrComma",!0);Tr(this,"curNumberHasExp",!1);Tr(this,"curNumberHasExpDigits",!1);Tr(this,"curNumberHasDecimal",!1);Tr(this,"curArgs",[])}finish(n=[]){if(this.parse(" ",n),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return n}parse(n,r=[]){const i=o=>{r.push(o),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let o=0;ou)throw new SyntaxError(`Expected positive number, got "${u}" at index "${o}"`)}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError(`Expected a flag, got "${this.curNumber}" at index "${o}"`)}this.curArgs.push(u),this.curArgs.length===Nbe[this.curCommandType]&&(lt.HORIZ_LINE_TO===this.curCommandType?i({type:lt.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):lt.VERT_LINE_TO===this.curCommandType?i({type:lt.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===lt.MOVE_TO||this.curCommandType===lt.LINE_TO||this.curCommandType===lt.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),lt.MOVE_TO===this.curCommandType&&(this.curCommandType=lt.LINE_TO)):this.curCommandType===lt.CURVE_TO?i({type:lt.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===lt.SMOOTH_CURVE_TO?i({type:lt.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===lt.QUAD_TO?i({type:lt.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===lt.ARC&&i({type:lt.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Cbe(a)){if(a===","&&this.canParseCommandOrComma){this.canParseCommandOrComma=!1;continue}if(a==="+"||a==="-"||a==="."){this.curNumber=a,this.curNumberHasDecimal=a===".";continue}if(l){this.curNumber=a,this.curNumberHasDecimal=!1;continue}if(this.curArgs.length!==0)throw new SyntaxError(`Unterminated command at index ${o}.`);if(!this.canParseCommandOrComma)throw new SyntaxError(`Unexpected character "${a}" at index ${o}. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,a==="z"||a==="Z"){r.push({type:lt.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1;continue}else if(a==="h"||a==="H")this.curCommandType=lt.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=lt.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=lt.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=lt.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=lt.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=lt.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=lt.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="T")this.curCommandType=lt.SMOOTH_QUAD_TO,this.curCommandRelative=a==="t";else if(a==="a"||a==="A")this.curCommandType=lt.ARC,this.curCommandRelative=a==="a";else throw new SyntaxError(`Unexpected character "${a}" at index ${o}.`)}}return r}transform(n){return Object.create(this,{parse:{value(i,o=[]){const a=Object.getPrototypeOf(this).parse.call(this,i);for(const s of a){const l=n(s);Array.isArray(l)?o.push(...l):o.push(l)}return o}}})}}const cr=class cr extends nz{constructor(n){super();Tr(this,"commands");typeof n=="string"?this.commands=cr.parse(n):this.commands=n}encode(){return cr.encode(this.commands)}getBounds(){const n=Si.CALCULATE_BOUNDS();return this.transform(n),n}transform(n){const r=[];for(const i of this.commands){const o=n(i);Array.isArray(o)?r.push(...o):r.push(o)}return this.commands=r,this}static encode(n){return vbe(n)}static parse(n){const r=new Ibe,i=[];return r.parse(n,i),r.finish(i),i}};Tr(cr,"CLOSE_PATH",1),Tr(cr,"MOVE_TO",2),Tr(cr,"HORIZ_LINE_TO",4),Tr(cr,"VERT_LINE_TO",8),Tr(cr,"LINE_TO",16),Tr(cr,"CURVE_TO",32),Tr(cr,"SMOOTH_CURVE_TO",64),Tr(cr,"QUAD_TO",128),Tr(cr,"SMOOTH_QUAD_TO",256),Tr(cr,"ARC",512),Tr(cr,"LINE_COMMANDS",cr.LINE_TO|cr.HORIZ_LINE_TO|cr.VERT_LINE_TO),Tr(cr,"DRAWING_COMMANDS",cr.HORIZ_LINE_TO|cr.VERT_LINE_TO|cr.LINE_TO|cr.CURVE_TO|cr.SMOOTH_CURVE_TO|cr.QUAD_TO|cr.SMOOTH_QUAD_TO|cr.ARC);let lt=cr;const Nbe={[lt.MOVE_TO]:2,[lt.LINE_TO]:2,[lt.HORIZ_LINE_TO]:1,[lt.VERT_LINE_TO]:1,[lt.CLOSE_PATH]:0,[lt.QUAD_TO]:4,[lt.SMOOTH_QUAD_TO]:2,[lt.CURVE_TO]:6,[lt.SMOOTH_CURVE_TO]:4,[lt.ARC]:7};var Fbe=function(){function e(t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(r.push(l.value),!(n&&r.length===n));i=!0);}catch(u){o=!0,a=u}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),cm=Math.PI*2,L5=function(t,n,r,i,o,a,s){var l=t.x,u=t.y;l*=n,u*=r;var c=i*l-o*u,f=o*l+i*u;return{x:c+a,y:f+s}},Ebe=function(t,n){var r=n===1.5707963267948966?.551915024494:n===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(n/4),i=Math.cos(t),o=Math.sin(t),a=Math.cos(t+n),s=Math.sin(t+n);return[{x:i-o*r,y:o+i*r},{x:a+s*r,y:s-a*r},{x:a,y:s}]},mX=function(t,n,r,i){var o=t*i-n*r<0?-1:1,a=t*r+n*i;return a>1&&(a=1),a<-1&&(a=-1),o*Math.acos(a)},Xbe=function(t,n,r,i,o,a,s,l,u,c,f,d){var h=Math.pow(o,2),p=Math.pow(a,2),v=Math.pow(f,2),g=Math.pow(d,2),m=h*p-h*g-p*v;m<0&&(m=0),m/=h*g+p*v,m=Math.sqrt(m)*(s===l?-1:1);var y=m*o/a*d,R=m*-a/o*f,A=c*y-u*R+(t+r)/2,x=u*y+c*R+(n+i)/2,S=(f-y)/o,M=(d-R)/a,L=(-f-y)/o,T=(-d-R)/a,w=mX(1,0,S,M),P=mX(S,M,L,T);return l===0&&P>0&&(P-=cm),l===1&&P<0&&(P+=cm),[A,x,w,P]},Wbe=function(t){var n=t.px,r=t.py,i=t.cx,o=t.cy,a=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,d=t.sweepFlag,h=d===void 0?0:d,p=[];if(a===0||s===0)return[];var v=Math.sin(u*cm/360),g=Math.cos(u*cm/360),m=g*(n-i)/2+v*(r-o)/2,y=-v*(n-i)/2+g*(r-o)/2;if(m===0&&y===0)return[];a=Math.abs(a),s=Math.abs(s);var R=Math.pow(m,2)/Math.pow(a,2)+Math.pow(y,2)/Math.pow(s,2);R>1&&(a*=Math.sqrt(R),s*=Math.sqrt(R));var A=Xbe(n,r,i,o,a,s,f,h,v,g,m,y),x=Fbe(A,4),S=x[0],M=x[1],L=x[2],T=x[3],w=Math.abs(T)/(cm/4);Math.abs(1-w)<1e-7&&(w=1);var P=Math.max(Math.ceil(w),1);T/=P;for(var k=0;k{const t=new lt(e),n=[];for(const r of t.commands){const i=Vbe[r.type];if((r.type===2||r.type===16)&&n.push({x:r.x,y:r.y,relative:r.relative,type:i}),r.type===32)n.push({x:r.x,y:r.y,curve:{type:"cubic",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2},relative:r.relative,type:i});else if(r.type===128)n.push({x:r.x,y:r.y,curve:{type:"quadratic",x1:r.x1,y1:r.y1},relative:r.relative,type:i});else if(r.type===512){const o=n[n.length-1];if(!["M","L","Q","C"].includes(o.type))continue;const a=Wbe({px:o.x,py:o.y,cx:r.x,cy:r.y,rx:r.rX,ry:r.rY,xAxisRotation:r.xRot,largeArcFlag:r.lArcFlag,sweepFlag:r.sweepFlag});for(const s of a)n.push({x:s.x,y:s.y,curve:{type:"cubic",x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2},relative:!1,type:"C"})}else if(r.type===1)n.push({close:!0,type:i});else continue}return n},Dbe=e=>{try{const t=new lt(e),n=[],r=[];for(const i of t.commands){const o="x"in i?i.x:0,a="y"in i?i.y:0;n.push(o),r.push(a)}return{minX:Math.min(...n),minY:Math.min(...r),maxX:Math.max(...n),maxY:Math.max(...r)}}catch{return{minX:0,minY:0,maxX:0,maxY:0}}},AX=(e,t)=>e.replace(/font-size:\s*([\d.]+)pt/g,(n,r)=>`font-size: ${(parseFloat(r)*t).toFixed(1)}px`),Ube=()=>{const e=at(),{theme:t}=Ve(at()),{addHistorySnapshot:n}=on(),{addSlidesFromData:r}=K2(),{isEmptySlide:i}=bc(),o=he(!1),a=(c,f=!1)=>{const d=c[0],h=new FileReader;h.addEventListener("load",()=>{try{const p=JSON.parse(ZH(h.result));f?(e.updateSlideIndex(0),e.setSlides(p),n()):i.value?(e.setSlides(p),n()):r(p)}catch{un.error("无法正确读取 / 解析该文件")}}),h.readAsText(d)},s=c=>{let f=[0,0],d=[0,0];!c.isFlipV&&!c.isFlipH?(f=[0,0],d=[c.width,c.height]):c.isFlipV&&c.isFlipH?(f=[c.width,c.height],d=[0,0]):c.isFlipV&&!c.isFlipH?(f=[0,c.height],d=[c.width,0]):(f=[c.width,0],d=[0,c.height]);const h={type:"line",id:Qt(10),width:c.borderWidth||1,left:c.left,top:c.top,start:f,end:d,style:c.borderType,color:c.borderColor,points:["",/straightConnector/.test(c.shapType)?"arrow":""]};return/bentConnector/.test(c.shapType)&&(h.broken2=[Math.abs(f[0]-d[0])/2,Math.abs(f[1]-d[1])/2]),h},l=(c,f,d,h,p,v,g)=>{const m=g*(Math.PI/180),y=c+d/2,R=f+h/2,A=p-d/2,x=v-h/2,S=A*Math.cos(m)+x*Math.sin(m),M=-A*Math.sin(m)+x*Math.cos(m),L=y+S,T=R+M;return{x:L,y:T}};return{importSpecificFile:a,importPPTXFile:(c,f=!1)=>{const d=c[0];if(!d)return;o.value=!0;const h=[];for(const v of nk)h.push(...v.children);const p=new FileReader;p.onload=async v=>{let g=null;try{g=await tbe(v.target.result)}catch{o.value=!1,un.error("无法正确读取 / 解析该文件");return}const m=96/72,y=g.size.width;e.setViewportSize(y*m),e.setTheme({themeColors:g.themeColors});const R=[];for(const A of g.slides){const{type:x,value:S}=A.fill;let M;x==="image"?M={type:"image",image:{src:S.picBase64,size:"cover"}}:x==="gradient"?M={type:"gradient",gradient:{type:S.path==="line"?"linear":"radial",colors:S.colors.map(w=>({...w,pos:parseInt(w.pos)})),rotate:S.rot+90}}:M={type:"solid",color:S};const L={id:Qt(10),elements:[],background:M,remark:A.note||""},T=w=>{var k,N,C;const P=w.sort((I,F)=>I.order-F.order);for(const I of P){const F=I.width||1,W=I.height||1,B=I.left,K=I.top;if(I.width=I.width*m,I.height=I.height*m,I.left=I.left*m,I.top=I.top*m,I.type==="text"){const j={type:"text",id:Qt(10),width:I.width,height:I.height,left:I.left,top:I.top,rotate:I.rotate,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,content:AX(I.content,m),lineHeight:1,outline:{color:I.borderColor,width:I.borderWidth,style:I.borderType},fill:I.fill.type==="color"?I.fill.value:"",vertical:I.isVertical};I.shadow&&(j.shadow={h:I.shadow.h*m,v:I.shadow.v*m,blur:I.shadow.blur*m,color:I.shadow.color}),L.elements.push(j)}else if(I.type==="image")L.elements.push({type:"image",id:Qt(10),src:I.src,width:I.width,height:I.height,left:I.left,top:I.top,fixedRatio:!0,rotate:I.rotate,flipH:I.isFlipH,flipV:I.isFlipV});else if(I.type==="audio")L.elements.push({type:"audio",id:Qt(10),src:I.blob,width:I.width,height:I.height,left:I.left,top:I.top,rotate:0,fixedRatio:!1,color:t.value.themeColors[0],loop:!1,autoplay:!1});else if(I.type==="video")L.elements.push({type:"video",id:Qt(10),src:I.blob||I.src,width:I.width,height:I.height,left:I.left,top:I.top,rotate:0,autoplay:!1});else if(I.type==="shape")if(I.shapType==="line"||/Connector/.test(I.shapType)){const j=s(I);L.elements.push(j)}else{const j=h.find(G=>G.pptxShapeType===I.shapType),D={mid:"middle",down:"bottom",up:"top"},Y=((k=I.fill)==null?void 0:k.type)==="gradient"?{type:I.fill.value.path==="line"?"linear":"radial",colors:I.fill.value.colors.map(G=>({...G,pos:parseInt(G.pos)})),rotate:I.fill.value.rot}:void 0,Z=((N=I.fill)==null?void 0:N.type)==="image"?I.fill.value.picBase64:void 0,H=((C=I.fill)==null?void 0:C.type)==="color"?I.fill.value:"",$={type:"shape",id:Qt(10),width:I.width,height:I.height,left:I.left,top:I.top,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:H,gradient:Y,pattern:Z,fixedRatio:!1,rotate:I.rotate,outline:{color:I.borderColor,width:I.borderWidth,style:I.borderType},text:{content:AX(I.content,m),defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,align:D[I.vAlign]||"middle"},flipH:I.isFlipH,flipV:I.isFlipV};if(I.shadow&&($.shadow={h:I.shadow.h*m,v:I.shadow.v*m,blur:I.shadow.blur*m,color:I.shadow.color}),j&&($.path=j.path,$.viewBox=j.viewBox,j.pathFormula)){$.pathFormula=j.pathFormula,$.viewBox=[I.width,I.height];const G=f0[j.pathFormula];"editable"in G&&G.editable?($.path=G.formula(I.width,I.height,G.defaultValue),$.keypoints=G.defaultValue):$.path=G.formula(I.width,I.height)}if(I.shapType==="custom")if(I.path.indexOf("NaN")!==-1)$.path="";else{$.special=!0,$.path=I.path;const{maxX:G,maxY:de}=Dbe($.path);$.viewBox=[G||F,de||W]}$.path&&L.elements.push($)}else if(I.type==="table"){const j=I.data.length,D=I.data[0].length,Y={fontname:t.value.fontName,color:t.value.fontColor},Z=[];for(let $=0;$`坐标${G+1}`),D=["X","Y"],Y=I.data;else{const $=I.data;j=Object.values($[0].xlabels),D=$.map(G=>G.key),Y=$.map(G=>G.values.map(de=>de.y))}const Z={};let H="bar";switch(I.chartType){case"barChart":case"bar3DChart":H="bar",I.barDir==="bar"&&(H="column"),(I.grouping==="stacked"||I.grouping==="percentStacked")&&(Z.stack=!0);break;case"lineChart":case"line3DChart":(I.grouping==="stacked"||I.grouping==="percentStacked")&&(Z.stack=!0),H="line";break;case"areaChart":case"area3DChart":(I.grouping==="stacked"||I.grouping==="percentStacked")&&(Z.stack=!0),H="area";break;case"scatterChart":case"bubbleChart":H="scatter";break;case"pieChart":case"pie3DChart":H="pie";break;case"radarChart":H="radar";break;case"doughnutChart":H="ring";break}L.elements.push({type:"chart",id:Qt(10),chartType:H,width:I.width,height:I.height,left:I.left,top:I.top,rotate:0,themeColors:I.colors.length?I.colors:t.value.themeColors,textColor:t.value.fontColor,data:{labels:j,legends:D,series:Y},options:Z})}else if(I.type==="group"){const j=I.elements.map(D=>{let Y=D.left+B,Z=D.top+K;if(I.rotate){const{x:H,y:$}=l(B,K,F,W,D.left,D.top,I.rotate);Y=H,Z=$}return{...D,left:Y,top:Z}});T(j)}else if(I.type==="diagram"){const j=I.elements.map(D=>({...D,left:D.left+B,top:D.top+K}));T(j)}}};T([...A.elements,...A.layoutElements]),R.push(L)}f?(e.updateSlideIndex(0),e.setSlides(R),n()):i.value?(e.setSlides(R),n()):r(R),o.value=!1},p.readAsArrayBuffer(d)},exporting:o}},Bbe={class:"hotkey-doc"},Ybe={class:"title"},Zbe={class:"label"},Qbe={class:"value"},Hbe={key:1,class:"row"},Kbe=Ee({__name:"HotkeyDoc",setup(e){return(t,n)=>(U(),ee("div",Bbe,[(U(!0),ee(Ne,null,Je(z(e2e),r=>(U(),ee(Ne,{key:r.type},[V("div",Ybe,dt(r.type),1),(U(!0),ee(Ne,null,Je(r.children,i=>(U(),ee("div",{class:"hotkey-item",key:i.label},[i.value?(U(),ee(Ne,{key:0},[V("div",Zbe,dt(i.label),1),V("div",Qbe,dt(i.value),1)],64)):(U(),ee("div",Hbe,dt(i.label),1))]))),128))],64))),128))]))}}),Gbe=Be(Kbe,[["__scopeId","data-v-42fbe598"]]),zbe=["accept"],Jbe=Ee({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,r=he(),i=()=>{r.value&&(r.value.value="",r.value.click())},o=a=>{const s=a.target.files;s&&n("change",s)};return(a,s)=>(U(),ee("div",{class:"file-input",onClick:s[1]||(s[1]=l=>i())},[ar(a.$slots,"default",{},void 0,!0),V("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:r,accept:a.accept,onChange:s[0]||(s[0]=l=>o(l))},null,40,zbe)]))}}),Jf=Be(Jbe,[["__scopeId","data-v-1bd53d05"]]),$be=e=>($t("data-v-cb40f98b"),e=e(),jt(),e),jbe={class:"spin"},qbe=$be(()=>V("div",{class:"spinner"},null,-1)),exe={class:"text"},txe=Ee({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},tip:{default:""}},setup(e){return(t,n)=>t.loading?(U(),ee("div",{key:0,class:Ge(["fullscreen-spin",{mask:t.mask}])},[V("div",jbe,[qbe,V("div",exe,dt(t.tip),1)])],2)):Ye("",!0)}}),ny=Be(txe,[["__scopeId","data-v-cb40f98b"]]),nxe={class:"header"},rxe=Ee({__name:"Drawer",props:{visible:{type:Boolean},width:{default:320},contentStyle:{},placement:{default:"right"}},emits:["update:visible"],setup(e,{emit:t}){const n=e,r=t,i=he(!1),o=Se(()=>({width:n.width+"px",...n.contentStyle||{}}));return(a,s)=>{const l=xe("IconClose");return U(),Te(xO,{to:"body"},[O(Kh,{name:`drawer-slide-${a.placement}`,onAfterLeave:s[1]||(s[1]=u=>i.value=!1),onBeforeEnter:s[2]||(s[2]=u=>i.value=!0)},{default:ie(()=>[ze(V("div",{class:Ge(["drawer",a.placement]),style:Me({width:n.width+"px"})},[V("div",nxe,[ar(a.$slots,"title",{},void 0,!0),V("span",{class:"close-btn",onClick:s[0]||(s[0]=u=>r("update:visible",!1))},[O(l)])]),i.value?(U(),ee("div",{key:0,class:"content",style:Me(o.value)},[ar(a.$slots,"default",{},void 0,!0)],4)):Ye("",!0)],6),[[hc,a.visible]])]),_:3},8,["name"])])}}}),ixe=Be(rxe,[["__scopeId","data-v-46f39759"]]),oxe={class:"prefix"},axe=["disabled","value","placeholder","maxlength"],sxe={class:"suffix"},lxe=Ee({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},simple:{type:Boolean,default:!1},maxlength:{}},emits:["update:value","input","change","blur","focus","enter","backspace"],setup(e,{expose:t,emit:n}){const r=n,i=he(!1),o=c=>{r("update:value",c.target.value)},a=c=>{i.value=!1,r("blur",c)},s=c=>{i.value=!0,r("focus",c)},l=he();return t({focus:()=>{l.value&&l.value.focus()}}),(c,f)=>(U(),ee("div",{class:Ge(["input",{disabled:c.disabled,focused:i.value,simple:c.simple}])},[V("span",oxe,[ar(c.$slots,"prefix",{},void 0,!0)]),V("input",{type:"text",ref_key:"inputRef",ref:l,disabled:c.disabled,value:c.value,placeholder:c.placeholder,maxlength:c.maxlength,onInput:f[0]||(f[0]=d=>o(d)),onFocus:f[1]||(f[1]=d=>s(d)),onBlur:f[2]||(f[2]=d=>a(d)),onChange:f[3]||(f[3]=d=>r("change",d)),onKeydown:[f[4]||(f[4]=pl(d=>r("enter",d),["enter"])),f[5]||(f[5]=pl(d=>r("backspace",d),["backspace"]))]},null,40,axe),V("span",sxe,[ar(c.$slots,"suffix",{},void 0,!0)])],2))}}),pu=Be(lxe,[["__scopeId","data-v-cc7e5c91"]]);var aa="top",Os="bottom",ks="right",sa="left",xk="auto",ry=[aa,Os,ks,sa],Lv="start",r2="end",uxe="clippingParents",rz="viewport",N1="popper",cxe="reference",RX=ry.reduce(function(e,t){return e.concat([t+"-"+Lv,t+"-"+r2])},[]),iz=[].concat(ry,[xk]).reduce(function(e,t){return e.concat([t,t+"-"+Lv,t+"-"+r2])},[]),fxe="beforeRead",dxe="read",hxe="afterRead",pxe="beforeMain",vxe="main",gxe="afterMain",mxe="beforeWrite",yxe="write",Axe="afterWrite",Rxe=[fxe,dxe,hxe,pxe,vxe,gxe,mxe,yxe,Axe];function vu(e){return e?(e.nodeName||"").toLowerCase():null}function Qa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function t0(e){var t=Qa(e).Element;return e instanceof t||e instanceof Element}function ws(e){var t=Qa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sk(e){if(typeof ShadowRoot>"u")return!1;var t=Qa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bxe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ws(o)||!vu(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function xxe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!ws(i)||!vu(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const oz={name:"applyStyles",enabled:!0,phase:"write",fn:bxe,effect:xxe,requires:["computeStyles"]};function lu(e){return e.split("-")[0]}var Eh=Math.max,Ex=Math.min,Tv=Math.round;function d6(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function az(){return!/^((?!chrome|android).)*safari/i.test(d6())}function _v(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ws(e)&&(i=e.offsetWidth>0&&Tv(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Tv(r.height)/e.offsetHeight||1);var a=t0(e)?Qa(e):window,s=a.visualViewport,l=!az()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function wk(e){var t=_v(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vc(e){return Qa(e).getComputedStyle(e)}function Sxe(e){return["table","td","th"].indexOf(vu(e))>=0}function pd(e){return((t0(e)?e.ownerDocument:e.document)||window.document).documentElement}function v3(e){return vu(e)==="html"?e:e.assignedSlot||e.parentNode||(Sk(e)?e.host:null)||pd(e)}function bX(e){return!ws(e)||vc(e).position==="fixed"?null:e.offsetParent}function wxe(e){var t=/firefox/i.test(d6()),n=/Trident/i.test(d6());if(n&&ws(e)){var r=vc(e);if(r.position==="fixed")return null}var i=v3(e);for(Sk(i)&&(i=i.host);ws(i)&&["html","body"].indexOf(vu(i))<0;){var o=vc(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function iy(e){for(var t=Qa(e),n=bX(e);n&&Sxe(n)&&vc(n).position==="static";)n=bX(n);return n&&(vu(n)==="html"||vu(n)==="body"&&vc(n).position==="static")?t:n||wxe(e)||t}function Mk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fm(e,t,n){return Eh(e,Ex(t,n))}function Mxe(e,t,n){var r=fm(e,t,n);return r>n?n:r}function lz(){return{top:0,right:0,bottom:0,left:0}}function uz(e){return Object.assign({},lz(),e)}function cz(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lxe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uz(typeof t!="number"?t:cz(t,ry))};function Txe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=lu(n.placement),l=Mk(s),u=[sa,ks].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=Lxe(i.padding,n),d=wk(o),h=l==="y"?aa:sa,p=l==="y"?Os:ks,v=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=iy(o),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,R=v/2-g/2,A=f[h],x=y-d[c]-f[p],S=y/2-d[c]/2+R,M=fm(A,S,x),L=l;n.modifiersData[r]=(t={},t[L]=M,t.centerOffset=M-S,t)}}function _xe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||sz(t.elements.popper,i)&&(t.elements.arrow=i))}const Oxe={name:"arrow",enabled:!0,phase:"main",fn:Txe,effect:_xe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ov(e){return e.split("-")[1]}var kxe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pxe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Tv(n*i)/i||0,y:Tv(r*i)/i||0}}function xX(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,p=a.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),R=sa,A=aa,x=window;if(u){var S=iy(n),M="clientHeight",L="clientWidth";if(S===Qa(n)&&(S=pd(n),vc(S).position!=="static"&&s==="absolute"&&(M="scrollHeight",L="scrollWidth")),S=S,i===aa||(i===sa||i===ks)&&o===r2){A=Os;var T=f&&S===x&&x.visualViewport?x.visualViewport.height:S[M];v-=T-r.height,v*=l?1:-1}if(i===sa||(i===aa||i===Os)&&o===r2){R=ks;var w=f&&S===x&&x.visualViewport?x.visualViewport.width:S[L];h-=w-r.width,h*=l?1:-1}}var P=Object.assign({position:s},u&&kxe),k=c===!0?Pxe({x:h,y:v},Qa(n)):{x:h,y:v};if(h=k.x,v=k.y,l){var N;return Object.assign({},P,(N={},N[A]=y?"0":"",N[R]=m?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",N))}return Object.assign({},P,(t={},t[A]=y?v+"px":"",t[R]=m?h+"px":"",t.transform="",t))}function Cxe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:lu(t.placement),variation:Ov(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xX(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xX(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ixe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cxe,data:{}};var QA={passive:!0};function Nxe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Qa(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,QA)}),s&&l.addEventListener("resize",n.update,QA),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,QA)}),s&&l.removeEventListener("resize",n.update,QA)}}const Fxe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nxe,data:{}};var Exe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ab(e){return e.replace(/left|right|bottom|top/g,function(t){return Exe[t]})}var Xxe={start:"end",end:"start"};function SX(e){return e.replace(/start|end/g,function(t){return Xxe[t]})}function Lk(e){var t=Qa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Tk(e){return _v(pd(e)).left+Lk(e).scrollLeft}function Wxe(e,t){var n=Qa(e),r=pd(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=az();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Tk(e),y:l}}function Vxe(e){var t,n=pd(e),r=Lk(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Eh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Eh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Tk(e),l=-r.scrollTop;return vc(i||n).direction==="rtl"&&(s+=Eh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function _k(e){var t=vc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function fz(e){return["html","body","#document"].indexOf(vu(e))>=0?e.ownerDocument.body:ws(e)&&_k(e)?e:fz(v3(e))}function dm(e,t){var n;t===void 0&&(t=[]);var r=fz(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Qa(r),a=i?[o].concat(o.visualViewport||[],_k(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(dm(v3(a)))}function h6(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dxe(e,t){var n=_v(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function wX(e,t,n){return t===rz?h6(Wxe(e,n)):t0(t)?Dxe(t,n):h6(Vxe(pd(e)))}function Uxe(e){var t=dm(v3(e)),n=["absolute","fixed"].indexOf(vc(e).position)>=0,r=n&&ws(e)?iy(e):e;return t0(r)?t.filter(function(i){return t0(i)&&sz(i,r)&&vu(i)!=="body"}):[]}function Bxe(e,t,n,r){var i=t==="clippingParents"?Uxe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=wX(e,u,r);return l.top=Eh(c.top,l.top),l.right=Ex(c.right,l.right),l.bottom=Ex(c.bottom,l.bottom),l.left=Eh(c.left,l.left),l},wX(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function dz(e){var t=e.reference,n=e.element,r=e.placement,i=r?lu(r):null,o=r?Ov(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case aa:l={x:a,y:t.y-n.height};break;case Os:l={x:a,y:t.y+t.height};break;case ks:l={x:t.x+t.width,y:s};break;case sa:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?Mk(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Lv:l[u]=l[u]-(t[c]/2-n[c]/2);break;case r2:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function i2(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?uxe:s,u=n.rootBoundary,c=u===void 0?rz:u,f=n.elementContext,d=f===void 0?N1:f,h=n.altBoundary,p=h===void 0?!1:h,v=n.padding,g=v===void 0?0:v,m=uz(typeof g!="number"?g:cz(g,ry)),y=d===N1?cxe:N1,R=e.rects.popper,A=e.elements[p?y:d],x=Bxe(t0(A)?A:A.contextElement||pd(e.elements.popper),l,c,a),S=_v(e.elements.reference),M=dz({reference:S,element:R,strategy:"absolute",placement:i}),L=h6(Object.assign({},R,M)),T=d===N1?L:S,w={top:x.top-T.top+m.top,bottom:T.bottom-x.bottom+m.bottom,left:x.left-T.left+m.left,right:T.right-x.right+m.right},P=e.modifiersData.offset;if(d===N1&&P){var k=P[i];Object.keys(w).forEach(function(N){var C=[ks,Os].indexOf(N)>=0?1:-1,I=[aa,Os].indexOf(N)>=0?"y":"x";w[N]+=k[I]*C})}return w}function Yxe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?iz:l,c=Ov(r),f=c?s?RX:RX.filter(function(p){return Ov(p)===c}):ry,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=i2(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[lu(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function Zxe(e){if(lu(e)===xk)return[];var t=Ab(e);return[SX(e),t,SX(t)]}function Qxe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,v=n.allowedAutoPlacements,g=t.options.placement,m=lu(g),y=m===g,R=l||(y||!p?[Ab(g)]:Zxe(g)),A=[g].concat(R).reduce(function(H,$){return H.concat(lu($)===xk?Yxe(t,{placement:$,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):$)},[]),x=t.rects.reference,S=t.rects.popper,M=new Map,L=!0,T=A[0],w=0;w=0,I=C?"width":"height",F=i2(t,{placement:P,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),W=C?N?ks:sa:N?Os:aa;x[I]>S[I]&&(W=Ab(W));var B=Ab(W),K=[];if(o&&K.push(F[k]<=0),s&&K.push(F[W]<=0,F[B]<=0),K.every(function(H){return H})){T=P,L=!1;break}M.set(P,K)}if(L)for(var j=p?3:1,D=function($){var G=A.find(function(de){var J=M.get(de);if(J)return J.slice(0,$).every(function(Ae){return Ae})});if(G)return T=G,"break"},Y=j;Y>0;Y--){var Z=D(Y);if(Z==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const Hxe={name:"flip",enabled:!0,phase:"main",fn:Qxe,requiresIfExists:["offset"],data:{_skip:!1}};function MX(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function LX(e){return[aa,ks,Os,sa].some(function(t){return e[t]>=0})}function Kxe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=i2(t,{elementContext:"reference"}),s=i2(t,{altBoundary:!0}),l=MX(a,r),u=MX(s,i,o),c=LX(l),f=LX(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Gxe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kxe};function zxe(e,t,n){var r=lu(e),i=[sa,aa].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[sa,ks].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Jxe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=iz.reduce(function(c,f){return c[f]=zxe(f,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const $xe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jxe};function jxe(e){var t=e.state,n=e.name;t.modifiersData[n]=dz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const qxe={name:"popperOffsets",enabled:!0,phase:"read",fn:jxe,data:{}};function eSe(e){return e==="x"?"y":"x"}function tSe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,v=p===void 0?0:p,g=i2(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=lu(t.placement),y=Ov(t.placement),R=!y,A=Mk(m),x=eSe(A),S=t.modifiersData.popperOffsets,M=t.rects.reference,L=t.rects.popper,T=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,w=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(o){var N,C=A==="y"?aa:sa,I=A==="y"?Os:ks,F=A==="y"?"height":"width",W=S[A],B=W+g[C],K=W-g[I],j=h?-L[F]/2:0,D=y===Lv?M[F]:L[F],Y=y===Lv?-L[F]:-M[F],Z=t.elements.arrow,H=h&&Z?wk(Z):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lz(),G=$[C],de=$[I],J=fm(0,M[F],H[F]),Ae=R?M[F]/2-j-J-G-w.mainAxis:D-J-G-w.mainAxis,ue=R?-M[F]/2+j+J+de+w.mainAxis:Y+J+de+w.mainAxis,fe=t.elements.arrow&&iy(t.elements.arrow),se=fe?A==="y"?fe.clientTop||0:fe.clientLeft||0:0,q=(N=P==null?void 0:P[A])!=null?N:0,E=W+Ae-q-se,te=W+ue-q,le=fm(h?Ex(B,E):B,W,h?Eh(K,te):K);S[A]=le,k[A]=le-W}if(s){var ne,re=A==="x"?aa:sa,ae=A==="x"?Os:ks,ve=S[x],ce=x==="y"?"height":"width",ge=ve+g[re],Re=ve-g[ae],We=[aa,sa].indexOf(m)!==-1,Fe=(ne=P==null?void 0:P[x])!=null?ne:0,Ke=We?ge:ve-M[ce]-L[ce]-Fe+w.altAxis,Ue=We?ve+M[ce]+L[ce]-Fe-w.altAxis:Re,_e=h&&We?Mxe(Ke,ve,Ue):fm(h?Ke:ge,ve,h?Ue:Re);S[x]=_e,k[x]=_e-ve}t.modifiersData[r]=k}}const nSe={name:"preventOverflow",enabled:!0,phase:"main",fn:tSe,requiresIfExists:["offset"]};function rSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iSe(e){return e===Qa(e)||!ws(e)?Lk(e):rSe(e)}function oSe(e){var t=e.getBoundingClientRect(),n=Tv(t.width)/e.offsetWidth||1,r=Tv(t.height)/e.offsetHeight||1;return n!==1||r!==1}function aSe(e,t,n){n===void 0&&(n=!1);var r=ws(t),i=ws(t)&&oSe(t),o=pd(t),a=_v(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((vu(t)!=="body"||_k(o))&&(s=iSe(t)),ws(t)?(l=_v(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Tk(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function sSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function lSe(e){var t=sSe(e);return Rxe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function uSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cSe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var TX={placement:"bottom",modifiers:[],strategy:"absolute"};function _X(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function mz(e,t){return typeof e=="function"?e.apply(void 0,t):e}function OX(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function gSe(e){return e.split(/\s+/).filter(Boolean)}function bp(e){return[].concat(e)}function kX(e,t){e.indexOf(t)===-1&&e.push(t)}function mSe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function ySe(e){return e.split("-")[0]}function Xx(e){return[].slice.call(e)}function PX(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function hm(){return document.createElement("div")}function g3(e){return["Element","Fragment"].some(function(t){return Ok(e,t)})}function ASe(e){return Ok(e,"NodeList")}function RSe(e){return Ok(e,"MouseEvent")}function bSe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function xSe(e){return g3(e)?[e]:ASe(e)?Xx(e):Array.isArray(e)?e:Xx(document.querySelectorAll(e))}function _5(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function CX(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function SSe(e){var t,n=bp(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function wSe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,u=ySe(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,d=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,p=u==="left"?c.right.x:0,v=o.top-r+f>l,g=r-o.bottom-d>l,m=o.left-n+h>l,y=n-o.right-p>l;return v||g||m||y})}function O5(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function IX(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Hl={isTouch:!1},NX=0;function MSe(){Hl.isTouch||(Hl.isTouch=!0,window.performance&&document.addEventListener("mousemove",yz))}function yz(){var e=performance.now();e-NX<20&&(Hl.isTouch=!1,document.removeEventListener("mousemove",yz)),NX=e}function LSe(){var e=document.activeElement;if(bSe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function TSe(){document.addEventListener("touchstart",MSe,sh),window.addEventListener("blur",LSe)}var _Se=typeof window<"u"&&typeof document<"u",OSe=_Se?!!window.msCrypto:!1,kSe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},PSe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},fl=Object.assign({appendTo:gz,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},kSe,PSe),CSe=Object.keys(fl),ISe=function(t){var n=Object.keys(t);n.forEach(function(r){fl[r]=t[r]})};function Az(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=fl[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function NSe(e,t){var n=t?Object.keys(Az(Object.assign({},fl,{plugins:t}))):CSe,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function FX(e,t){var n=Object.assign({},t,{content:mz(t.content,[e])},t.ignoreAttributes?{}:NSe(e,t.plugins));return n.aria=Object.assign({},fl.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var FSe=function(){return"innerHTML"};function p6(e,t){e[FSe()]=t}function EX(e){var t=hm();return e===!0?t.className=pz:(t.className=vz,g3(e)?t.appendChild(e):p6(t,e)),t}function XX(e,t){g3(t.content)?(p6(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?p6(e,t.content):e.textContent=t.content)}function v6(e){var t=e.firstElementChild,n=Xx(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(hz)}),arrow:n.find(function(r){return r.classList.contains(pz)||r.classList.contains(vz)}),backdrop:n.find(function(r){return r.classList.contains(vSe)})}}function Rz(e){var t=hm(),n=hm();n.className=pSe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=hm();r.className=hz,r.setAttribute("data-state","hidden"),XX(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=v6(t),l=s.box,u=s.content,c=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&XX(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(EX(a.arrow))):l.appendChild(EX(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}Rz.$$tippy=!0;var ESe=1,HA=[],k5=[];function XSe(e,t){var n=FX(e,Object.assign({},fl,Az(PX(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,d,h=[],p=OX(E,n.interactiveDebounce),v,g=ESe++,m=null,y=mSe(n.plugins),R={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},A={id:g,reference:e,popper:hm(),popperInstance:m,props:n,state:R,plugins:y,clearDelayTimeouts:Ke,setProps:Ue,setContent:_e,show:ye,hide:Le,hideWithInteractivity:Ie,enable:We,disable:Fe,unmount:Qe,destroy:ct};if(!n.render)return A;var x=n.render(A),S=x.popper,M=x.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+A.id,A.popper=S,e._tippy=A,S._tippy=A;var L=y.map(function(Pe){return Pe.fn(A)}),T=e.hasAttribute("aria-expanded");return fe(),j(),W(),B("onCreate",[A]),n.showOnCreate&&ge(),S.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",p)}),A;function w(){var Pe=A.props.touch;return Array.isArray(Pe)?Pe:[Pe,0]}function P(){return w()[0]==="hold"}function k(){var Pe;return!!((Pe=A.props.render)!=null&&Pe.$$tippy)}function N(){return v||e}function C(){var Pe=N().parentNode;return Pe?SSe(Pe):document}function I(){return v6(S)}function F(Pe){return A.state.isMounted&&!A.state.isVisible||Hl.isTouch||c&&c.type==="focus"?0:T5(A.props.delay,Pe?0:1,fl.delay)}function W(Pe){Pe===void 0&&(Pe=!1),S.style.pointerEvents=A.props.interactive&&!Pe?"":"none",S.style.zIndex=""+A.props.zIndex}function B(Pe,tt,it){if(it===void 0&&(it=!0),L.forEach(function(ht){ht[Pe]&&ht[Pe].apply(ht,tt)}),it){var St;(St=A.props)[Pe].apply(St,tt)}}function K(){var Pe=A.props.aria;if(Pe.content){var tt="aria-"+Pe.content,it=S.id,St=bp(A.props.triggerTarget||e);St.forEach(function(ht){var gt=ht.getAttribute(tt);if(A.state.isVisible)ht.setAttribute(tt,gt?gt+" "+it:it);else{var wt=gt&>.replace(it,"").trim();wt?ht.setAttribute(tt,wt):ht.removeAttribute(tt)}})}}function j(){if(!(T||!A.props.aria.expanded)){var Pe=bp(A.props.triggerTarget||e);Pe.forEach(function(tt){A.props.interactive?tt.setAttribute("aria-expanded",A.state.isVisible&&tt===N()?"true":"false"):tt.removeAttribute("aria-expanded")})}}function D(){C().removeEventListener("mousemove",p),HA=HA.filter(function(Pe){return Pe!==p})}function Y(Pe){if(!(Hl.isTouch&&(l||Pe.type==="mousedown"))){var tt=Pe.composedPath&&Pe.composedPath()[0]||Pe.target;if(!(A.props.interactive&&IX(S,tt))){if(bp(A.props.triggerTarget||e).some(function(it){return IX(it,tt)})){if(Hl.isTouch||A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[A,Pe]);A.props.hideOnClick===!0&&(A.clearDelayTimeouts(),A.hide(),s=!0,setTimeout(function(){s=!1}),A.state.isMounted||G())}}}function Z(){l=!0}function H(){l=!1}function $(){var Pe=C();Pe.addEventListener("mousedown",Y,!0),Pe.addEventListener("touchend",Y,sh),Pe.addEventListener("touchstart",H,sh),Pe.addEventListener("touchmove",Z,sh)}function G(){var Pe=C();Pe.removeEventListener("mousedown",Y,!0),Pe.removeEventListener("touchend",Y,sh),Pe.removeEventListener("touchstart",H,sh),Pe.removeEventListener("touchmove",Z,sh)}function de(Pe,tt){Ae(Pe,function(){!A.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&tt()})}function J(Pe,tt){Ae(Pe,tt)}function Ae(Pe,tt){var it=I().box;function St(ht){ht.target===it&&(O5(it,"remove",St),tt())}if(Pe===0)return tt();O5(it,"remove",f),O5(it,"add",St),f=St}function ue(Pe,tt,it){it===void 0&&(it=!1);var St=bp(A.props.triggerTarget||e);St.forEach(function(ht){ht.addEventListener(Pe,tt,it),h.push({node:ht,eventType:Pe,handler:tt,options:it})})}function fe(){P()&&(ue("touchstart",q,{passive:!0}),ue("touchend",te,{passive:!0})),gSe(A.props.trigger).forEach(function(Pe){if(Pe!=="manual")switch(ue(Pe,q),Pe){case"mouseenter":ue("mouseleave",te);break;case"focus":ue(OSe?"focusout":"blur",le);break;case"focusin":ue("focusout",le);break}})}function se(){h.forEach(function(Pe){var tt=Pe.node,it=Pe.eventType,St=Pe.handler,ht=Pe.options;tt.removeEventListener(it,St,ht)}),h=[]}function q(Pe){var tt,it=!1;if(!(!A.state.isEnabled||ne(Pe)||s)){var St=((tt=c)==null?void 0:tt.type)==="focus";c=Pe,v=Pe.currentTarget,j(),!A.state.isVisible&&RSe(Pe)&&HA.forEach(function(ht){return ht(Pe)}),Pe.type==="click"&&(A.props.trigger.indexOf("mouseenter")<0||a)&&A.props.hideOnClick!==!1&&A.state.isVisible?it=!0:ge(Pe),Pe.type==="click"&&(a=!it),it&&!St&&Re(Pe)}}function E(Pe){var tt=Pe.target,it=N().contains(tt)||S.contains(tt);if(!(Pe.type==="mousemove"&&it)){var St=ce().concat(S).map(function(ht){var gt,wt=ht._tippy,Bt=(gt=wt.popperInstance)==null?void 0:gt.state;return Bt?{popperRect:ht.getBoundingClientRect(),popperState:Bt,props:n}:null}).filter(Boolean);wSe(St,Pe)&&(D(),Re(Pe))}}function te(Pe){var tt=ne(Pe)||A.props.trigger.indexOf("click")>=0&&a;if(!tt){if(A.props.interactive){A.hideWithInteractivity(Pe);return}Re(Pe)}}function le(Pe){A.props.trigger.indexOf("focusin")<0&&Pe.target!==N()||A.props.interactive&&Pe.relatedTarget&&S.contains(Pe.relatedTarget)||Re(Pe)}function ne(Pe){return Hl.isTouch?P()!==Pe.type.indexOf("touch")>=0:!1}function re(){ae();var Pe=A.props,tt=Pe.popperOptions,it=Pe.placement,St=Pe.offset,ht=Pe.getReferenceClientRect,gt=Pe.moveTransition,wt=k()?v6(S).arrow:null,Bt=ht?{getBoundingClientRect:ht,contextElement:ht.contextElement||N()}:e,qt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(wl){var $i=wl.state;if(k()){var R0=I(),Ad=R0.box;["placement","reference-hidden","escaped"].forEach(function(Lu){Lu==="placement"?Ad.setAttribute("data-placement",$i.placement):$i.attributes.popper["data-popper-"+Lu]?Ad.setAttribute("data-"+Lu,""):Ad.removeAttribute("data-"+Lu)}),$i.attributes.popper={}}}},Qn=[{name:"offset",options:{offset:St}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!gt}},qt];k()&&wt&&Qn.push({name:"arrow",options:{element:wt,padding:3}}),Qn.push.apply(Qn,(tt==null?void 0:tt.modifiers)||[]),A.popperInstance=hSe(Bt,S,Object.assign({},tt,{placement:it,onFirstUpdate:d,modifiers:Qn}))}function ae(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function ve(){var Pe=A.props.appendTo,tt,it=N();A.props.interactive&&Pe===gz||Pe==="parent"?tt=it.parentNode:tt=mz(Pe,[it]),tt.contains(S)||tt.appendChild(S),A.state.isMounted=!0,re()}function ce(){return Xx(S.querySelectorAll("[data-tippy-root]"))}function ge(Pe){A.clearDelayTimeouts(),Pe&&B("onTrigger",[A,Pe]),$();var tt=F(!0),it=w(),St=it[0],ht=it[1];Hl.isTouch&&St==="hold"&&ht&&(tt=ht),tt?r=setTimeout(function(){A.show()},tt):A.show()}function Re(Pe){if(A.clearDelayTimeouts(),B("onUntrigger",[A,Pe]),!A.state.isVisible){G();return}if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Pe.type)>=0&&a)){var tt=F(!1);tt?i=setTimeout(function(){A.state.isVisible&&A.hide()},tt):o=requestAnimationFrame(function(){A.hide()})}}function We(){A.state.isEnabled=!0}function Fe(){A.hide(),A.state.isEnabled=!1}function Ke(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Ue(Pe){if(!A.state.isDestroyed){B("onBeforeUpdate",[A,Pe]),se();var tt=A.props,it=FX(e,Object.assign({},tt,PX(Pe),{ignoreAttributes:!0}));A.props=it,fe(),tt.interactiveDebounce!==it.interactiveDebounce&&(D(),p=OX(E,it.interactiveDebounce)),tt.triggerTarget&&!it.triggerTarget?bp(tt.triggerTarget).forEach(function(St){St.removeAttribute("aria-expanded")}):it.triggerTarget&&e.removeAttribute("aria-expanded"),j(),W(),M&&M(tt,it),A.popperInstance&&(re(),ce().forEach(function(St){requestAnimationFrame(St._tippy.popperInstance.forceUpdate)})),B("onAfterUpdate",[A,Pe])}}function _e(Pe){A.setProps({content:Pe})}function ye(){var Pe=A.state.isVisible,tt=A.state.isDestroyed,it=!A.state.isEnabled,St=Hl.isTouch&&!A.props.touch,ht=T5(A.props.duration,0,fl.duration);if(!(Pe||tt||it||St)&&!N().hasAttribute("disabled")&&(B("onShow",[A],!1),A.props.onShow(A)!==!1)){if(A.state.isVisible=!0,k()&&(S.style.visibility="visible"),W(),$(),A.state.isMounted||(S.style.transition="none"),k()){var gt=I(),wt=gt.box,Bt=gt.content;_5([wt,Bt],0)}d=function(){var Qn;if(!(!A.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=A.props.moveTransition,k()&&A.props.animation){var Ws=I(),wl=Ws.box,$i=Ws.content;_5([wl,$i],ht),CX([wl,$i],"visible")}K(),j(),kX(k5,A),(Qn=A.popperInstance)==null||Qn.forceUpdate(),B("onMount",[A]),A.props.animation&&k()&&J(ht,function(){A.state.isShown=!0,B("onShown",[A])})}},ve()}}function Le(){var Pe=!A.state.isVisible,tt=A.state.isDestroyed,it=!A.state.isEnabled,St=T5(A.props.duration,1,fl.duration);if(!(Pe||tt||it)&&(B("onHide",[A],!1),A.props.onHide(A)!==!1)){if(A.state.isVisible=!1,A.state.isShown=!1,u=!1,a=!1,k()&&(S.style.visibility="hidden"),D(),G(),W(!0),k()){var ht=I(),gt=ht.box,wt=ht.content;A.props.animation&&(_5([gt,wt],St),CX([gt,wt],"hidden"))}K(),j(),A.props.animation?k()&&de(St,A.unmount):A.unmount()}}function Ie(Pe){C().addEventListener("mousemove",p),kX(HA,p),p(Pe)}function Qe(){A.state.isVisible&&A.hide(),A.state.isMounted&&(ae(),ce().forEach(function(Pe){Pe._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),k5=k5.filter(function(Pe){return Pe!==A}),A.state.isMounted=!1,B("onHidden",[A]))}function ct(){A.state.isDestroyed||(A.clearDelayTimeouts(),A.unmount(),se(),delete e._tippy,A.state.isDestroyed=!0,B("onDestroy",[A]))}}function v0(e,t){t===void 0&&(t={});var n=fl.plugins.concat(t.plugins||[]);TSe();var r=Object.assign({},t,{plugins:n}),i=xSe(e),o=i.reduce(function(a,s){var l=s&&XSe(s,r);return l&&a.push(l),a},[]);return g3(e)?o[0]:o}v0.defaultProps=fl;v0.setDefaultProps=ISe;v0.currentInput=Hl;Object.assign({},oz,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});v0.setDefaultProps({render:Rz});const WSe=Ee({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1},offset:{default:8}},emits:["update:value","show","hide"],setup(e,{emit:t}){const n=e,r=t,i=he(),o=he(),a=he(),s=he(!1),l=Se(()=>n.contentStyle||{});return Lt(()=>n.value,()=>{i.value&&(n.value?i.value.show():i.value.hide())}),En(()=>{i.value&&i.value.destroy()}),Wt(()=>{i.value=v0(o.value,{content:a.value,allowHTML:!0,trigger:n.trigger,placement:n.placement,interactive:!0,appendTo:n.appendTo||document.body,maxWidth:"none",offset:[0,n.offset],duration:200,animation:"scale",theme:"popover",onShow(){s.value=!0},onShown(){n.value||(r("update:value",!0),r("show"))},onHidden(){n.value&&(r("update:value",!1),r("hide")),s.value=!1}})}),(u,c)=>(U(),ee("div",{class:Ge(["popover",{center:u.center}]),ref_key:"triggerRef",ref:o},[V("div",{class:"popover-content",style:Me(l.value),ref_key:"contentRef",ref:a},[s.value?ar(u.$slots,"content",{key:0},void 0,!0):Ye("",!0)],4),ar(u.$slots,"default",{},void 0,!0)],2))}}),It=Be(WSe,[["__scopeId","data-v-3501b1f4"]]),VSe=Ee({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,i)=>(U(),ee("div",{class:Ge(["popover-menu-item",{center:r.center}]),onClick:i[0]||(i[0]=o=>n("click"))},[ar(r.$slots,"default",{},void 0,!0)],2))}}),Qr=Be(VSe,[["__scopeId","data-v-1f176c16"]]),DSe=e=>($t("data-v-1a42e944"),e=e(),jt(),e),USe={class:"editor-header"},BSe={class:"left"},YSe={class:"menu-item"},ZSe={class:"title"},QSe=["title"],HSe={class:"right"},KSe={class:"group-menu-item"},GSe={class:"arrow-btn"},zSe=DSe(()=>V("span",{class:"text ai"},"AI",-1)),JSe=[zSe],$Se={class:"github-link",href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},jSe={class:"menu-item"},qSe=Ee({__name:"index",setup(e){const t=pt(),n=at(),{title:r}=Ve(n),{enterScreening:i,enterScreeningFromStart:o}=dd(),{importSpecificFile:a,importPPTXFile:s,exporting:l}=Ube(),{resetSlides:u}=bc(),c=he(!1),f=he(!1),d=he(!1),h=he(),p=he(""),v=()=>{p.value=r.value,d.value=!0,hr(()=>{var x;return(x=h.value)==null?void 0:x.focus()})},g=()=>{n.setTitle(p.value),d.value=!1},m=x=>{window.open(x),c.value=!1},y=x=>{t.setDialogForExport(x),c.value=!1},R=()=>{t.setMarkupPanelState(!0)},A=()=>{t.setAIPPTDialogState(!0)};return(x,S)=>{const M=xe("IconHamburgerButton"),L=xe("IconPpt"),T=xe("IconDown"),w=xe("IconDownload"),P=xe("IconGithub"),k=_n("tooltip");return U(),ee("div",USe,[V("div",BSe,[O(It,{trigger:"click",placement:"bottom-start",value:c.value,"onUpdate:value":S[9]||(S[9]=N=>c.value=N)},{content:ie(()=>[O(Qr,{onClick:S[0]||(S[0]=N=>{A(),c.value=!1})},{default:ie(()=>[De("AI 生成 PPT")]),_:1}),O(Jf,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:S[1]||(S[1]=N=>{z(s)(N),c.value=!1})},{default:ie(()=>[O(Qr,null,{default:ie(()=>[De("导入 pptx 文件(测试版)")]),_:1})]),_:1}),O(Jf,{accept:".pptist",onChange:S[2]||(S[2]=N=>{z(a)(N),c.value=!1})},{default:ie(()=>[O(Qr,null,{default:ie(()=>[De("导入 pptist 文件")]),_:1})]),_:1}),O(Qr,{onClick:S[3]||(S[3]=N=>y("pptx"))},{default:ie(()=>[De("导出文件")]),_:1}),O(Qr,{onClick:S[4]||(S[4]=N=>{z(u)(),c.value=!1})},{default:ie(()=>[De("重置幻灯片")]),_:1}),O(Qr,{onClick:S[5]||(S[5]=N=>{R(),c.value=!1})},{default:ie(()=>[De("幻灯片类型标注")]),_:1}),O(Qr,{onClick:S[6]||(S[6]=N=>m("https://github.com/pipipi-pikachu/PPTist/issues"))},{default:ie(()=>[De("意见反馈")]),_:1}),O(Qr,{onClick:S[7]||(S[7]=N=>m("https://github.com/pipipi-pikachu/PPTist/blob/master/doc/Q&A.md"))},{default:ie(()=>[De("常见问题")]),_:1}),O(Qr,{onClick:S[8]||(S[8]=N=>{c.value=!1,f.value=!0})},{default:ie(()=>[De("快捷操作")]),_:1})]),default:ie(()=>[V("div",YSe,[O(M,{class:"icon"})])]),_:1},8,["value"]),V("div",ZSe,[d.value?(U(),Te(pu,{key:0,class:"title-input",ref_key:"titleInputRef",ref:h,value:p.value,"onUpdate:value":S[10]||(S[10]=N=>p.value=N),onBlur:S[11]||(S[11]=N=>g())},null,8,["value"])):(U(),ee("div",{key:1,class:"title-text",onClick:S[12]||(S[12]=N=>v()),title:z(r)},dt(z(r)),9,QSe))])]),V("div",HSe,[V("div",KSe,[ze((U(),ee("div",{class:"menu-item",onClick:S[13]||(S[13]=N=>z(i)())},[O(L,{class:"icon"})])),[[k,"幻灯片放映(F5)"]]),O(It,{trigger:"click",center:""},{content:ie(()=>[O(Qr,{onClick:S[14]||(S[14]=N=>z(o)())},{default:ie(()=>[De("从头开始")]),_:1}),O(Qr,{onClick:S[15]||(S[15]=N=>z(i)())},{default:ie(()=>[De("从当前页开始")]),_:1})]),default:ie(()=>[V("div",GSe,[O(T,{class:"arrow"})])]),_:1})]),ze((U(),ee("div",{class:"menu-item",onClick:S[16]||(S[16]=N=>{A(),c.value=!1})},JSe)),[[k,"AI生成PPT"]]),ze((U(),ee("div",{class:"menu-item",onClick:S[17]||(S[17]=N=>y("pptx"))},[O(w,{class:"icon"})])),[[k,"导出"]]),ze((U(),ee("a",$Se,[V("div",jSe,[O(P,{class:"icon"})])])),[[k,"Copyright © 2020-PRESENT pipipi-pikachu"]])]),O(ixe,{width:320,visible:f.value,"onUpdate:visible":S[18]||(S[18]=N=>f.value=N),placement:"right"},{title:ie(()=>[De("快捷操作")]),default:ie(()=>[O(Gbe)]),_:1},8,["visible"]),O(ny,{loading:z(l),tip:"正在导入..."},null,8,["loading"])])}}}),e3e=Be(qSe,[["__scopeId","data-v-1a42e944"]]),oy=Symbol(),kk=Symbol(),bz=Symbol(),t3e=()=>{const e=window.getSelection();e&&e.removeAllRanges()},n3e=e=>{const t=he(0),n=he(0),r=pt(),{canvasPercentage:i,canvasDragged:o}=Ve(r),{viewportRatio:a,viewportSize:s}=Ve(at()),l=()=>{if(!e.value)return;const h=e.value.clientWidth,p=e.value.clientHeight;if(p/h>a.value){const v=h*(i.value/100);r.setCanvasScale(v/s.value),t.value=(h-v)/2,n.value=(p-v*a.value)/2}else{const v=p*(i.value/100);r.setCanvasScale(v/(s.value*a.value)),t.value=(h-v/a.value)/2,n.value=(p-v)/2}};Lt(i,(h,p)=>{if(!e.value)return;const v=e.value.clientWidth,g=e.value.clientHeight;if(g/v>a.value){const m=v*(h/100),y=v*(p/100),R=m*a.value,A=y*a.value;r.setCanvasScale(m/s.value),t.value=t.value-(m-y)/2,n.value=n.value-(R-A)/2}else{const m=g*(h/100),y=g*(p/100),R=m/a.value,A=y/a.value;r.setCanvasScale(m/(s.value*a.value)),t.value=t.value-(R-A)/2,n.value=n.value-(m-y)/2}}),Lt(a,l),Lt(s,l),Lt(o,()=>{o.value||l()});const c=Se(()=>({width:s.value,height:s.value*a.value,left:t.value,top:n.value})),f=new ResizeObserver(l);return Wt(()=>{e.value&&f.observe(e.value)}),En(()=>{e.value&&f.unobserve(e.value)}),{viewportStyles:c,dragViewport:h=>{let p=!0;const v=h.pageX,g=h.pageY,m=t.value,y=n.value;document.onmousemove=R=>{if(!p)return;const A=R.pageX,x=R.pageY;t.value=m+(A-v),n.value=y+(x-g)},document.onmouseup=()=>{p=!1,document.onmousemove=null,document.onmouseup=null,r.setCanvasDragged(!0)}}}},r3e=(e,t)=>{const n=pt(),{canvasScale:r,hiddenElementIdList:i}=Ve(n),o=he(!1),a=he(1),s=he({top:0,left:0,width:0,height:0});return{mouseSelection:s,mouseSelectionVisible:o,mouseSelectionQuadrant:a,updateMouseSelection:u=>{if(!t.value)return;let c=!0;const f=t.value.getBoundingClientRect(),d=5,h=u.pageX,p=u.pageY,v=(h-f.x)/r.value,g=(p-f.y)/r.value;s.value={top:g,left:v,width:0,height:0},o.value=!1,a.value=4,document.onmousemove=m=>{if(!c)return;const y=m.pageX,R=m.pageY,A=(y-h)/r.value,x=(R-p)/r.value,S=Math.abs(A),M=Math.abs(x);if(S0&&x>0?L=4:A<0&&x<0?L=2:A>0&&x<0?L=1:A<0&&x>0&&(L=3),s.value={...s.value,width:S,height:M},o.value=!0,a.value=L},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,c=!1;let m=[];for(let R=0;Rx&&wS&&kx-M&&wS-L&&kx&&wS-L&&kx-M&&wS&&k{if(R.groupId){const A=m.map(S=>S.id);return e.value.filter(S=>S.groupId===R.groupId).every(S=>A.includes(S.id))}return!0});const y=m.map(R=>R.id);n.setActiveElementIdList(y),o.value=!1}}}},i3e=e=>{const{disableHotkeys:t}=Ve(pt()),{createImageElement:n,createTextElement:r}=d0(),i=o=>{if(!o.dataTransfer||o.dataTransfer.items.length===0)return;const a=o.dataTransfer.items,s=a[0];let l=!1;for(const u of a)if(u.kind==="file"&&u.type.indexOf("image")!==-1){const c=u.getAsFile();c&&Rc(c).then(f=>n(f)),l=!0}l||s.kind==="string"&&s.type==="text/plain"&&s.getAsString(u=>{if(t.value)return;const c=Mx(u);r({left:0,top:0,width:600,height:50},{content:c})})};Wt(()=>{e.value&&e.value.addEventListener("drop",i),document.ondragleave=o=>o.preventDefault(),document.ondrop=o=>o.preventDefault(),document.ondragenter=o=>o.preventDefault(),document.ondragover=o=>o.preventDefault()}),En(()=>{e.value&&e.value.removeEventListener("drop",i),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},o3e=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},xz=(e,t,n)=>{const r=at(),{addHistorySnapshot:i}=on();return{rotateElement:(a,s)=>{const l=!(a instanceof MouseEvent);if(l&&(!a.changedTouches||!a.changedTouches[0]))return;let u=!0,c=0;const f=s.rotate||0,d=s.left,h=s.top,p=s.width,v=s.height,g=d+p/2,m=h+v/2;if(!t.value)return;const y=t.value.getBoundingClientRect(),R=x=>{if(!u)return;const S=x instanceof MouseEvent?x.pageX:x.changedTouches[0].pageX,M=x instanceof MouseEvent?x.pageY:x.changedTouches[0].pageY,L=(S-y.left)/n.value,T=(M-y.top)/n.value,w=L-g,P=m-T;c=o3e(w,P);const k=5;Math.abs(c)<=k?c=0:c>0&&Math.abs(c-45)<=k?c-=c-45:c<0&&Math.abs(c+45)<=k?c-=c+45:c>0&&Math.abs(c-90)<=k?c-=c-90:c<0&&Math.abs(c+90)<=k?c-=c+90:c>0&&Math.abs(c-135)<=k?c-=c-135:c<0&&Math.abs(c+135)<=k?c-=c+135:c>0&&Math.abs(c-180)<=k?c-=c-180:c<0&&Math.abs(c+180)<=k&&(c-=c+180),e.value=e.value.map(N=>s.id===N.id?{...N,rotate:c}:N)},A=()=>{u=!1,document.onmousemove=null,document.onmouseup=null,f!==c&&(r.updateSlide({elements:e.value}),i())};l?(document.ontouchmove=R,document.ontouchend=A):(document.onmousemove=R,document.onmouseup=A)}}},kg={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},Sz={text:40,image:20,shape:20,chart:200,table:30,video:250,audio:20,latex:20},WX=(e,t)=>{const{left:n,top:r,width:i,height:o}=e,a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2))/2,s=Math.atan(o/i)*180/Math.PI,l=(180-t-s)*Math.PI/180,u=(s-t)*Math.PI/180,c=(90-t)*Math.PI/180,f=t*Math.PI/180,d=i/2,h=o/2,p=n+d,v=r+h,g={left:p+a*Math.cos(l),top:v-a*Math.sin(l)},m={left:p+h*Math.cos(c),top:v-h*Math.sin(c)},y={left:p+a*Math.cos(u),top:v-a*Math.sin(u)},R={left:p+d*Math.cos(f),top:v+d*Math.sin(f)},A={left:p-a*Math.cos(l),top:v+a*Math.sin(l)},x={left:p-h*Math.sin(f),top:v+h*Math.cos(f)},S={left:p-a*Math.cos(u),top:v+a*Math.sin(u)},M={left:p-d*Math.cos(f),top:v-d*Math.sin(f)};return{leftTopPoint:g,topPoint:m,rightTopPoint:y,rightPoint:R,rightBottomPoint:A,bottomPoint:x,leftBottomPoint:S,leftPoint:M}},VX=(e,t)=>({[Rt.RIGHT_BOTTOM]:t.leftTopPoint,[Rt.LEFT_BOTTOM]:t.rightTopPoint,[Rt.LEFT_TOP]:t.rightBottomPoint,[Rt.RIGHT_TOP]:t.leftBottomPoint,[Rt.TOP]:t.bottomPoint,[Rt.BOTTOM]:t.topPoint,[Rt.LEFT]:t.rightPoint,[Rt.RIGHT]:t.leftPoint})[e],wz=(e,t,n)=>{const r=pt(),i=at(),{activeElementIdList:o,activeGroupElementId:a}=Ve(r),{viewportRatio:s,viewportSize:l}=Ve(i),{ctrlOrShiftKeyActive:u}=Ve(Fs()),{addHistorySnapshot:c}=on();return{scaleElement:(h,p,v)=>{const g=!(h instanceof MouseEvent);if(g&&(!h.changedTouches||!h.changedTouches[0]))return;let m=!0;r.setScalingState(!0);const y=p.left,R=p.top,A=p.width,x=p.height,S=p.type==="table"?p.cellMinHeight:0,M="rotate"in p&&p.rotate?p.rotate:0,L=Math.PI*M/180,T=u.value||"fixedRatio"in p&&p.fixedRatio,w=A/x,P=g?h.changedTouches[0].pageX:h.pageX,k=g?h.changedTouches[0].pageY:h.pageY,N=Sz[p.type]||20,C=(Z,H)=>{if(!T)return Z1&&($=N*de),H==="width"?Z<$?$:Z:Z{const G=[];let de=!1,J=!1;const Ae={offsetX:0,offsetY:0};if(H||H===0)for(let ue=0;ue{if(!m)return;const H=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,$=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY,G=H-P,de=$-k;let J=A,Ae=x,ue=y,fe=R;if(M){const se=(Math.cos(L)*G+Math.sin(L)*de)/n.value;let q=(Math.cos(L)*de-Math.sin(L)*G)/n.value;T&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&(q=se/w),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&(q=-se/w)),v===Rt.RIGHT_BOTTOM?(J=C(A+se,"width"),Ae=C(x+q,"height")):v===Rt.LEFT_BOTTOM?(J=C(A-se,"width"),Ae=C(x+q,"height"),ue=y-(J-A)):v===Rt.LEFT_TOP?(J=C(A-se,"width"),Ae=C(x-q,"height"),ue=y-(J-A),fe=R-(Ae-x)):v===Rt.RIGHT_TOP?(J=C(A+se,"width"),Ae=C(x-q,"height"),fe=R-(Ae-x)):v===Rt.TOP?(Ae=C(x-q,"height"),fe=R-(Ae-x)):v===Rt.BOTTOM?Ae=C(x+q,"height"):v===Rt.LEFT?(J=C(A-se,"width"),ue=y-(J-A)):v===Rt.RIGHT&&(J=C(A+se,"width"));const E=WX({width:J,height:Ae,left:ue,top:fe},M),te=VX(v,E),le=te.left,ne=te.top,re=le-F,ae=ne-W;ue=ue-re,fe=fe-ae}else{let se=G/n.value,q=de/n.value;if(T&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&(q=se/w),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&(q=-se/w)),v===Rt.RIGHT_BOTTOM){const{offsetX:E,offsetY:te}=j(y+A+se,R+x+q);se=se-E,q=q-te,T&&(te?se=q*w:q=se/w),J=C(A+se,"width"),Ae=C(x+q,"height")}else if(v===Rt.LEFT_BOTTOM){const{offsetX:E,offsetY:te}=j(y+se,R+x+q);se=se-E,q=q-te,T&&(te?se=-q*w:q=-se/w),J=C(A-se,"width"),Ae=C(x+q,"height"),ue=y-(J-A)}else if(v===Rt.LEFT_TOP){const{offsetX:E,offsetY:te}=j(y+se,R+q);se=se-E,q=q-te,T&&(te?se=q*w:q=se/w),J=C(A-se,"width"),Ae=C(x-q,"height"),ue=y-(J-A),fe=R-(Ae-x)}else if(v===Rt.RIGHT_TOP){const{offsetX:E,offsetY:te}=j(y+A+se,R+q);se=se-E,q=q-te,T&&(te?se=-q*w:q=-se/w),J=C(A+se,"width"),Ae=C(x-q,"height"),fe=R-(Ae-x)}else if(v===Rt.LEFT){const{offsetX:E}=j(y+se,null);se=se-E,J=C(A-se,"width"),ue=y-(J-A)}else if(v===Rt.RIGHT){const{offsetX:E}=j(y+A+se,null);se=se-E,J=C(A+se,"width")}else if(v===Rt.TOP){const{offsetY:E}=j(null,R+q);q=q-E,Ae=C(x-q,"height"),fe=R-(Ae-x)}else if(v===Rt.BOTTOM){const{offsetY:E}=j(null,R+x+q);q=q-E,Ae=C(x+q,"height")}}e.value=e.value.map(se=>{if(p.id!==se.id)return se;if(se.type==="shape"&&"pathFormula"in se&&se.pathFormula){const q=f0[se.pathFormula];let E="";return"editable"in q?E=q.formula(J,Ae,se.keypoints):E=q.formula(J,Ae),{...se,left:ue,top:fe,width:J,height:Ae,viewBox:[J,Ae],path:E}}if(se.type==="table"){let q=S+(Ae-x)/se.data.length;return q=q<36?36:q,q===S?{...se,left:ue,width:J}:{...se,left:ue,top:fe,width:J,height:Ae,cellMinHeight:q<36?36:q}}return{...se,left:ue,top:fe,width:J,height:Ae}})},Y=Z=>{m=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const H=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,$=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;P===H&&k===$||(i.updateSlide({elements:e.value}),r.setScalingState(!1),c())};g?(document.ontouchmove=D,document.ontouchend=Y):(document.onmousemove=D,document.onmouseup=Y)},scaleMultiElement:(h,p,v)=>{let g=!0;const{minX:m,maxX:y,minY:R,maxY:A}=p,x=y-m,S=A-R,M=x/S,L=h.pageX,T=h.pageY,w=JSON.parse(JSON.stringify(e.value));document.onmousemove=P=>{if(!g)return;const k=P.pageX,N=P.pageY,C=(k-L)/n.value;let I=(N-T)/n.value;u.value&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&(I=C/M),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&(I=-C/M));let F=m,W=y,B=R,K=A;v===Rt.RIGHT_BOTTOM?(W=y+C,K=A+I):v===Rt.LEFT_BOTTOM?(F=m+C,K=A+I):v===Rt.LEFT_TOP?(F=m+C,B=R+I):v===Rt.RIGHT_TOP?(W=y+C,B=R+I):v===Rt.TOP?B=R+I:v===Rt.BOTTOM?K=A+I:v===Rt.LEFT?F=m+C:v===Rt.RIGHT&&(W=y+C);const j=W-F,D=K-B;let Y=j/x,Z=D/S;Y<=0&&(Y=0),Z<=0&&(Z=0),e.value=e.value.map(H=>{if((H.type==="image"||H.type==="shape")&&o.value.includes(H.id)){const $=w.find(G=>G.id===H.id);return{...H,width:$.width*Y,height:$.height*Z,left:F+($.left-m)*Y,top:B+($.top-R)*Z}}return H})},document.onmouseup=P=>{g=!1,document.onmousemove=null,document.onmouseup=null,!(L===P.pageX&&T===P.pageY)&&(i.updateSlide({elements:e.value}),c())}}}},a3e=(e,t)=>{const n=pt(),{activeElementIdList:r,activeGroupElementId:i,handleElementId:o,editorAreaFocus:a}=Ve(n),{ctrlOrShiftKeyActive:s}=Ve(Fs());return{selectElement:(u,c,f=!0)=>{if(a.value||n.setEditorareaFocus(!0),r.value.includes(c.id)){if(s.value){let d=[];if(c.groupId){const h=[];e.value.forEach(p=>{p.groupId===c.groupId&&h.push(p.id)}),d=r.value.filter(p=>!h.includes(p))}else d=r.value.filter(h=>h!==c.id);d.length>0&&n.setActiveElementIdList(d)}else if(o.value!==c.id)n.setHandleElementId(c.id);else if(i.value!==c.id){const d=u instanceof MouseEvent?u.pageX:u.changedTouches[0].pageX,h=u instanceof MouseEvent?u.pageY:u.changedTouches[0].pageY;u.target.onmouseup=p=>{const v=p.pageX,g=p.pageY;d===v&&h===g&&(n.setActiveGroupElementId(c.id),p.target.onmouseup=null)}}}else{let d=[];if(s.value?d=[...r.value,c.id]:d=[c.id],c.groupId){const h=[];e.value.forEach(p=>{p.groupId===c.groupId&&h.push(p.id)}),d=[...d,...h]}n.setActiveElementIdList(Zn.uniq(d)),n.setHandleElementId(c.id)}f&&t(u,c)}}},Mz=(e,t,n)=>{const r=at(),{activeElementIdList:i,activeGroupElementId:o}=Ve(pt()),{shiftKeyState:a}=Ve(Fs()),{viewportRatio:s,viewportSize:l}=Ve(r),{addHistorySnapshot:u}=on();return{dragElement:(f,d)=>{const h=!(f instanceof MouseEvent);if(h&&(!f.changedTouches||!f.changedTouches[0])||!i.value.includes(d.id))return;let p=!0;const v=l.value,g=l.value*s.value,m=5,R=JSON.parse(JSON.stringify(e.value)).filter(Z=>i.value.includes(Z.id)),A=d.left,x=d.top,S=d.width,M="height"in d&&d.height?d.height:0,L="rotate"in d&&d.rotate?d.rotate:0,T=h?f.changedTouches[0].pageX:f.pageX,w=h?f.changedTouches[0].pageY:f.pageY;let P=null;const k=d.id===o.value;let N=[],C=[];for(const Z of e.value){if(Z.type==="line"||k&&Z.id===d.id||!k&&i.value.includes(Z.id))continue;let H,$,G,de;if("rotate"in Z&&Z.rotate){const{xRange:re,yRange:ae}=nv({left:Z.left,top:Z.top,width:Z.width,height:Z.height,rotate:Z.rotate});H=re[0],$=ae[0],G=re[1]-re[0],de=ae[1]-ae[0]}else H=Z.left,$=Z.top,G=Z.width,de=Z.height;const J=H+G,Ae=$+de,ue=$+de/2,fe=H+G/2,se={value:$,range:[H,J]},q={value:Ae,range:[H,J]},E={value:ue,range:[H,J]},te={value:H,range:[$,Ae]},le={value:J,range:[$,Ae]},ne={value:fe,range:[$,Ae]};N.push(se,q,E),C.push(te,le,ne)}const I={value:0,range:[0,v]},F={value:g,range:[0,v]},W={value:g/2,range:[0,v]},B={value:0,range:[0,g]},K={value:v,range:[0,g]},j={value:v/2,range:[0,g]};N.push(I,F,W),C.push(B,K,j),N=Sx(N),C=Sx(C);const D=Z=>{const H=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,$=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;if(P!==!1&&(P=Math.abs(T-H)Math.abs(de)&&(de=0),Math.abs(G)ae.id===d.id?{...ae,left:J,top:Ae}:ae);else{const ae=e.value.find(ve=>ve.id===d.id);if(!ae)return;e.value=e.value.map(ve=>i.value.includes(ve.id)?ve.id===d.id?{...ve,left:J,top:Ae}:{...ve,left:ve.left+(J-ae.left),top:ve.top+(Ae-ae.top)}:ve)}},Y=Z=>{p=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const H=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,$=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;T===H&&w===$||(r.updateSlide({elements:e.value}),u())};h?(document.ontouchmove=D,document.ontouchend=Y):(document.onmousemove=D,document.onmouseup=Y)}}},s3e=e=>{const t=at(),{canvasScale:n}=Ve(pt()),{ctrlOrShiftKeyActive:r}=Ve(Fs()),{addHistorySnapshot:i}=on();return{dragLineElement:(a,s,l)=>{let u=!0;const c=8,f=a.pageX,d=a.pageY,h=[];for(let p=0;p{if(!u)return;const v=p.pageX,g=p.pageY,m=(v-f)/n.value,y=(g-d)/n.value;let R=s.left+s.start[0],A=s.top+s.start[1],x=s.left+s.end[0],S=s.top+s.end[1];const M=s.broken||s.broken2||s.curve||[0,0];let L=s.left+M[0],T=s.top+M[1];const[w,P]=s.cubic||[[0,0],[0,0]];let k=s.left+w[0],N=s.top+w[1],C=s.left+P[0],I=s.top+P[1];if(l===Go.START){R=R+m,A=A+y,Math.abs(R-x)x&&(j[0]=B-F,D[0]=0),A>S&&(j[1]=K-W,D[1]=0),e.value=e.value.map(Y=>{if(Y.id===s.id){const Z={...Y,left:F,top:W,start:j,end:D};return l===Go.START||l===Go.END?(r.value?(s.broken&&(Z.broken=[L-F,T-W]),s.curve&&(Z.curve=[L-F,T-W]),s.cubic&&(Z.cubic=[[k-F,N-W],[C-F,I-W]])):(s.broken&&(Z.broken=[(j[0]+D[0])/2,(j[1]+D[1])/2]),s.curve&&(Z.curve=[(j[0]+D[0])/2,(j[1]+D[1])/2]),s.cubic&&(Z.cubic=[[(j[0]+D[0])/2,(j[1]+D[1])/2],[(j[0]+D[0])/2,(j[1]+D[1])/2]])),s.broken2&&(Z.broken2=[(j[0]+D[0])/2,(j[1]+D[1])/2])):l===Go.C?(s.broken&&(Z.broken=[L-F,T-W]),s.curve&&(Z.curve=[L-F,T-W]),s.broken2&&(B-F>=K-W?Z.broken2=[L-F,Z.broken2[1]]:Z.broken2=[Z.broken2[0],T-W])):s.cubic&&(Z.cubic=[[k-F,N-W],[C-F,I-W]]),Z}return Y})},document.onmouseup=p=>{u=!1,document.onmousemove=null,document.onmouseup=null;const v=p.pageX,g=p.pageY;f===v&&d===g||(t.updateSlide({elements:e.value}),i())}}}},l3e=(e,t)=>{const n=at(),{addHistorySnapshot:r}=on();return{moveShapeKeypoint:(o,a,s=0)=>{const l=!(o instanceof MouseEvent);if(l&&(!o.changedTouches||!o.changedTouches[0]))return;let u=!0;const c=l?o.changedTouches[0].pageX:o.pageX,f=l?o.changedTouches[0].pageY:o.pageY,d=a.keypoints,h=f0[a.pathFormula];let p=null;if("editable"in h&&h.editable){const m=h.getBaseSize[s],y=h.range[s],R=h.relative[s],A=d[s],x=m(a.width,a.height),S=x*A,[M,L]=y;p={baseSize:x,originPos:S,min:M,max:L,relative:R}}const v=m=>{if(!u)return;const y=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,R=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY,A=(y-c)/t.value,x=(R-f)/t.value;e.value=e.value.map(S=>{if(S.id===a.id&&p){const{baseSize:M,originPos:L,min:T,max:w,relative:P}=p,k=S;let N=0;P==="center"?N=(L-A*2)/M:P==="left"?N=(L+A)/M:P==="right"?N=(L-A)/M:P==="top"?N=(L+x)/M:P==="bottom"?N=(L-x)/M:P==="left_bottom"?N=(L+A)/M:P==="right_bottom"?N=(L-A)/M:P==="top_right"?N=(L+x)/M:P==="bottom_right"&&(N=(L-x)/M),Nw&&(N=w);let C=[];return Array.isArray(d)?(C=[...d],C[s]=N):C=[N],{...S,keypoints:C,path:h.formula(k.width,k.height,C)}}return S})},g=m=>{u=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const y=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,R=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY;c===y&&f===R||(n.updateSlide({elements:e.value}),r())};l?(document.ontouchmove=v,document.ontouchend=g):(document.onmousemove=v,document.onmouseup=g)}}},u3e=e=>{const t=pt(),{canvasScale:n,creatingElement:r}=Ve(t),i=c=>{const{start:f,end:d}=c;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,v]=f,[g,m]=d,y=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,m),x=Math.max(v,m),S=(y-h.x)/n.value,M=(A-h.y)/n.value,L=(R-y)/n.value,T=(x-A)/n.value;return{left:S,top:M,width:L,height:T}},o=c=>{const{start:f,end:d}=c;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,v]=f,[g,m]=d,y=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,m),x=Math.max(v,m),S=(y-h.x)/n.value,M=(A-h.y)/n.value,L=(R-y)/n.value,T=(x-A)/n.value;return{left:S,top:M,start:[p===y?0:L,v===A?0:T],end:[g===y?0:L,m===A?0:T]}},{createTextElement:a,createShapeElement:s,createLineElement:l}=d0();return{formatCreateSelection:i,insertElementFromCreateSelection:c=>{if(!r.value)return;const f=r.value.type;if(f==="text"){const d=i(c);d&&a(d,{vertical:r.value.vertical})}else if(f==="shape"){const d=i(c);d&&s(d,r.value.data)}else if(f==="line"){const d=o(c);d&&l(d,r.value.data)}t.setCreatingElement(null)}}},m3=()=>{const e=at(),{activeElementIdList:t,activeElementList:n}=Ve(pt()),{currentSlide:r,viewportRatio:i,viewportSize:o}=Ve(e),{addHistorySnapshot:a}=on();return{alignElementToCanvas:l=>{const u=o.value,c=o.value*i.value,{minX:f,maxX:d,minY:h,maxY:p}=nc(n.value),v=JSON.parse(JSON.stringify(r.value.elements));for(const g of v)if(t.value.includes(g.id)){if(l===gn.CENTER){const m=h+(p-h)/2-c/2,y=f+(d-f)/2-u/2;g.top=g.top-m,g.left=g.left-y}if(l===gn.TOP){const m=h-0;g.top=g.top-m}else if(l===gn.VERTICAL){const m=h+(p-h)/2-c/2;g.top=g.top-m}else if(l===gn.BOTTOM){const m=p-c;g.top=g.top-m}else if(l===gn.LEFT){const m=f-0;g.left=g.left-m}else if(l===gn.HORIZONTAL){const m=f+(d-f)/2-u/2;g.left=g.left-m}else if(l===gn.RIGHT){const m=d-u;g.left=g.left-m}}e.updateSlide({elements:v}),a()}}},vd=e=>({shadowStyle:Se(()=>{if(e.value){const{h:n,v:r,blur:i,color:o}=e.value;return`${n}px ${r}px ${i}px ${o}`}return""})}),y3=(e,t)=>({flipStyle:Se(()=>{let r="";return e.value&&t.value?r="rotateX(180deg) rotateY(180deg)":t.value?r="rotateX(180deg)":e.value&&(r="rotateY(180deg)"),r})});var Lz=(e=>(e.RECT="rect",e.ELLIPSE="ellipse",e.POLYGON="polygon",e))(Lz||{});const g6={rect:{name:"矩形",type:"rect",radius:"0",style:""},rect2:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L 0 ${t} Z`},rect3:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L ${e*.2} ${t} L 0 ${t*.8} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 round 10px)"},ellipse:{name:"圆形",type:"ellipse",style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:"polygon",style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M ${e*.5} 0 L 0 ${t} L ${e} ${t} Z`},triangle2:{name:"三角形2",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(e,t)=>`M ${e*.5} ${t} L 0 0 L ${e} 0 Z`},triangle3:{name:"三角形3",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M 0 0 L 0 ${t} L ${e} ${t} Z`},rhombus:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${t*.5} L ${e*.5} ${t} L 0 ${t*.5} Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${.38*t} L ${.82*e} ${t} L ${.18*e} ${t} L 0 ${.38*t} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.2} 0 L ${e*.8} 0 L ${e} ${t*.5} L ${e*.8} ${t} L ${e*.2} ${t} L 0 ${t*.5} Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e*.9} ${t*.2} L ${e} ${t*.6} L ${e*.75} ${t} L ${e*.25} ${t} L 0 ${t*.6} L ${e*.1} ${t*.2} Z`},octagon:{name:"八边形",type:"polygon",style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(e,t)=>`M ${e*.3} 0 L ${e*.7} 0 L ${e} ${t*.3} L ${e} ${t*.7} L ${e*.7} ${t} L ${e*.3} ${t} L 0 ${t*.7} L 0 ${t*.3} Z`},chevron:{name:"V形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(e,t)=>`M ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} L ${e*.25} ${t*.5} L 0 0 Z`},point:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(e,t)=>`M 0 0 L ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} Z`},arrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(e,t)=>`M 0 ${t*.2} L ${e*.6} ${t*.2} L ${e*.6} 0 L ${e} ${t*.5} L ${e*.6} ${t} L ${e*.6} ${t*.8} L 0 ${t*.8} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.3} 0 L ${e} 0 L ${e*.7} ${t} L 0 ${t} Z`},parallelogram2:{name:"平行四边形2",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(e,t)=>`M ${e*.3} ${t} L ${e} ${t} L ${e*.7} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.25} 0 L ${e*.75} 0 L ${e} ${t} L 0 ${t} Z`},trapezoid2:{name:"梯形2",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(e,t)=>`M 0 0 L ${e} 0 L ${e*.75} ${t} L ${e*.25} ${t} Z`}},Pk=e=>{const t=Se(()=>{let r=g6.rect;if(e.value.clip){const i=e.value.clip.shape||Lz.RECT;r=g6[i]}return r.radius!==void 0&&e.value.radius&&(r={...r,radius:`${e.value.radius}px`,style:`inset(0 round ${e.value.radius}px)`}),r}),n=Se(()=>{if(!e.value.clip)return{top:"0",left:"0",width:"100%",height:"100%"};const[r,i]=e.value.clip.range,o=(i[0]-r[0])/100,a=(i[1]-r[1])/100,s=r[0]/o,l=r[1]/a;return{left:-s+"%",top:-l+"%",width:100/o+"%",height:100/a+"%"}});return{clipShape:t,imgPosition:n}},Tz=e=>({filter:Se(()=>{if(!e.value)return"";let n="";const r=Object.keys(e.value);for(const i of r)n+=`${i}(${e.value[i]}) `;return n})}),t1=e=>{const t=Se(()=>{var o;return((o=e.value)==null?void 0:o.width)??0}),n=Se(()=>{var o;return((o=e.value)==null?void 0:o.style)||"solid"}),r=Se(()=>{var o;return((o=e.value)==null?void 0:o.color)||"#d14424"}),i=Se(()=>{const o=t.value;return n.value==="dashed"?o<=6?`${o*4.5} ${o*2}`:`${o*4} ${o*1.5}`:n.value==="dotted"?o<=6?`${o*1.8} ${o*1.6}`:`${o*1.5} ${o*1.2}`:"0 0"});return{outlineWidth:t,outlineStyle:n,outlineColor:r,strokeDashArray:i}},c3e=["width","height"],f3e=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],d3e=Ee({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(U(),ee("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:o.width,height:o.height},[V("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:o.radius,ry:o.radius,width:o.width,height:o.height,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,f3e)],8,c3e)):Ye("",!0)}}),h3e=Be(d3e,[["__scopeId","data-v-09a0319c"]]),p3e=["width","height"],v3e=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],g3e=Ee({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(U(),ee("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:o.width,height:o.height},[V("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:o.width/2,cy:o.height/2,rx:o.width/2,ry:o.height/2,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,v3e)],8,p3e)):Ye("",!0)}}),m3e=Be(g3e,[["__scopeId","data-v-19e68d74"]]),y3e=["width","height"],A3e=["d","stroke","stroke-width","stroke-dasharray"],R3e=Ee({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(U(),ee("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:o.width,height:o.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:o.createPath(o.width,o.height),stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,A3e)],8,y3e)):Ye("",!0)}}),b3e=Be(R3e,[["__scopeId","data-v-a036b0a3"]]),x3e={class:"image-outline"},_z=Ee({__name:"index",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo),{clipShape:r}=Pk(n);return(i,o)=>(U(),ee("div",x3e,[z(r).type==="rect"?(U(),Te(h3e,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,radius:z(r).radius,outline:i.elementInfo.outline},null,8,["width","height","radius","outline"])):z(r).type==="ellipse"?(U(),Te(m3e,{key:1,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"])):z(r).type==="polygon"?(U(),Te(b3e,{key:2,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline,createPath:z(r).createPath},null,8,["width","height","outline","createPath"])):Ye("",!0)]))}}),Oz=e=>($t("data-v-31b3b0f9"),e=e(),jt(),e),S3e=["src"],w3e=["src"],M3e=["onMousedown"],L3e=Oz(()=>V("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[V("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"})],-1)),T3e=[L3e],_3e=["onMousedown"],O3e=Oz(()=>V("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[V("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)),k3e=[O3e],P3e=Ee({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:i}=Ve(pt()),{ctrlOrShiftKeyActive:o}=Ve(Fs()),a=he({top:"0",left:"0"}),s=he(!1),l=he(null),u=()=>{const[L,T]=n.clipData?n.clipData.range:[[0,0],[100,100]],w=(T[0]-L[0])/100,P=(T[1]-L[1])/100,k=L[0]/w,N=L[1]/P;return{widthScale:w,heightScale:P,left:k,top:N}},c=Se(()=>{const{widthScale:L,heightScale:T,left:w,top:P}=u();return{left:-w,top:-P,width:100/L,height:100/T}}),f=Se(()=>({top:c.value.top+"%",left:c.value.left+"%",width:c.value.width+"%",height:c.value.height+"%"})),d=he({top:0,left:0,width:0,height:0}),h=Se(()=>{const{top:L,left:T,width:w,height:P}=d.value;return{top:L+"%",left:T+"%",width:w+"%",height:P+"%"}}),p=Se(()=>{const L=c.value.width,T=c.value.height,{top:w,left:P,width:k,height:N}=d.value;return{left:-P*(100/k)+"%",top:-w*(100/N)+"%",width:L/k*100+"%",height:T/N*100+"%"}}),v=()=>{const{left:L,top:T}=u();d.value={left:L,top:T,width:100,height:100},a.value={top:-T+"%",left:-L+"%"}},g=()=>{if(s.value)return;if(!l.value){r("clip",null);return}const{left:L,top:T}=u(),w={left:(d.value.left-L)/100*n.width,top:(d.value.top-T)/100*n.height,width:(d.value.width-100)/100*n.width,height:(d.value.height-100)/100*n.height},P={range:l.value,position:w};r("clip",P)},m=L=>{L.key.toUpperCase()===yt.ENTER&&g()};Wt(()=>{v(),document.addEventListener("keydown",m)}),En(()=>{document.removeEventListener("keydown",m)});const y=()=>{const L={left:parseInt(p.value.left),top:parseInt(p.value.top),width:parseInt(p.value.width),height:parseInt(p.value.height)},T=100/L.width,w=100/L.height,P=[-L.left*T,-L.top*w],k=[T*100+P[0],w*100+P[1]];l.value=[P,k]},R=L=>{s.value=!0;let T=!0;const w=L.pageX,P=L.pageY,k=c.value,N={...d.value};document.onmousemove=C=>{if(!T)return;const I=C.pageX,F=C.pageY,W=(I-w)/i.value,B=(F-P)/i.value,K=Math.sqrt(W*W+B*B),D=Math.atan2(B,W)-n.rotate/180*Math.PI,Y=K*Math.cos(D)/n.width*100,Z=K*Math.sin(D)/n.height*100;let H=N.left+Y,$=N.top+Z;H<0?H=0:H+N.width>k.width&&(H=k.width-N.width),$<0?$=0:$+N.height>k.height&&($=k.height-N.height),d.value={...d.value,left:H,top:$}},document.onmouseup=()=>{T=!1,document.onmousemove=null,document.onmouseup=null,y(),setTimeout(()=>{s.value=!1},0)}},A=(L,T)=>{s.value=!0;let w=!0;const P=50/n.width*100,k=50/n.height*100,N=L.pageX,C=L.pageY,I=c.value,F={...d.value},W=d.value.width/d.value.height;document.onmousemove=B=>{if(!w)return;const K=B.pageX,j=B.pageY,D=(K-N)/i.value,Y=(j-C)/i.value,Z=Math.sqrt(D*D+Y*Y),$=Math.atan2(Y,D)-n.rotate/180*Math.PI;let G=Z*Math.cos($)/n.width*100,de=Z*Math.sin($)/n.height*100;o.value&&((T===Rt.RIGHT_BOTTOM||T===Rt.LEFT_TOP)&&(de=G/W),(T===Rt.LEFT_BOTTOM||T===Rt.RIGHT_TOP)&&(de=-G/W));let J,Ae,ue,fe;T===Rt.LEFT_TOP?(F.left+G<0&&(G=-F.left),F.top+de<0&&(de=-F.top),F.width-GI.width&&(G=I.width-(F.left+F.width)),F.top+de<0&&(de=-F.top),F.width+GI.height&&(de=I.height-(F.top+F.height)),F.width-GI.width&&(G=I.width-(F.left+F.width)),F.top+F.height+de>I.height&&(de=I.height-(F.top+F.height)),F.width+GI.height&&(de=I.height-(F.top+F.height)),F.height+deI.width&&(G=I.width-(F.left+F.width)),F.width+G{w=!1,document.onmousemove=null,document.onmouseup=null,y(),setTimeout(()=>s.value=!1,0)}},x=Se(()=>{const L="rotate-",T=n.rotate;return T>-22.5&&T<=22.5?L+0:T>22.5&&T<=67.5?L+45:T>67.5&&T<=112.5?L+90:T>112.5&&T<=157.5?L+135:T>157.5||T<=-157.5?L+0:T>-157.5&&T<=-112.5?L+45:T>-112.5&&T<=-67.5?L+90:T>-67.5&&T<=-22.5?L+135:L+0}),S=[Rt.LEFT_TOP,Rt.RIGHT_TOP,Rt.LEFT_BOTTOM,Rt.RIGHT_BOTTOM],M=[Rt.TOP,Rt.BOTTOM,Rt.LEFT,Rt.RIGHT];return(L,T)=>{const w=_n("click-outside");return ze((U(),ee("div",{class:"image-clip-handler",style:Me(a.value)},[V("img",{class:"bottom-img",src:L.src,draggable:!1,alt:"",style:Me(f.value)},null,12,S3e),V("div",{class:"top-image-content",style:Me({...h.value,clipPath:L.clipPath})},[V("img",{class:"top-img",src:L.src,draggable:!1,alt:"",style:Me(p.value)},null,12,w3e)],4),V("div",{class:"operate",style:Me(h.value),onMousedown:T[0]||(T[0]=Nt(P=>R(P),["stop"]))},[(U(),ee(Ne,null,Je(S,P=>V("div",{class:Ge(["clip-point",P,x.value]),key:P,onMousedown:Nt(k=>A(k,P),["stop"])},T3e,42,M3e)),64)),(U(),ee(Ne,null,Je(M,P=>V("div",{class:Ge(["clip-point",P,x.value]),key:P,onMousedown:Nt(k=>A(k,P),["stop"])},k3e,42,_3e)),64))],36)],4)),[[w,g]])}}}),C3e=Be(P3e,[["__scopeId","data-v-31b3b0f9"]]),I3e=["src"],N3e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{clipingImageElementId:i}=Ve(n),o=Se(()=>i.value===t.elementInfo.id),{addHistorySnapshot:a}=on(),s=Se(()=>t.elementInfo.shadow),{shadowStyle:l}=vd(s),u=Se(()=>t.elementInfo.flipH),c=Se(()=>t.elementInfo.flipV),{flipStyle:f}=y3(u,c),d=Se(()=>t.elementInfo),{clipShape:h,imgPosition:p}=Pk(d),v=Se(()=>t.elementInfo.filters),{filter:g}=Tz(v),m=R=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo))},y=R=>{if(n.setClipingImageElementId(""),!R)return;const{range:A,position:x}=R,S=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},M=t.elementInfo.left+x.left,L=t.elementInfo.top+x.top,T=t.elementInfo.width+x.width,w=t.elementInfo.height+x.height;let P=0,k=0;if(t.elementInfo.rotate){const C=M+T/2-(t.elementInfo.left+t.elementInfo.width/2),I=-(L+w/2-(t.elementInfo.top+t.elementInfo.height/2)),F=-t.elementInfo.rotate*Math.PI/180,W=C*Math.cos(F)-I*Math.sin(F),B=C*Math.sin(F)+I*Math.cos(F);P=W-C,k=-(B-I)}const N={clip:{...S,range:A},left:M+P,top:L+k,width:T,height:w};r.updateElement({id:t.elementInfo.id,props:N}),a()};return(R,A)=>{const x=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-image",{lock:R.elementInfo.lock}]),style:Me({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:Me({transform:`rotate(${R.elementInfo.rotate}deg)`})},[o.value?(U(),Te(C3e,{key:0,src:R.elementInfo.src,clipData:R.elementInfo.clip,width:R.elementInfo.width,height:R.elementInfo.height,top:R.elementInfo.top,left:R.elementInfo.left,rotate:R.elementInfo.rotate,clipPath:z(h).style,onClip:A[0]||(A[0]=S=>y(S))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):ze((U(),ee("div",{key:1,class:"element-content",style:Me({filter:z(l)?`drop-shadow(${z(l)})`:"",transform:z(f)}),onMousedown:A[2]||(A[2]=S=>m(S)),onTouchstart:A[3]||(A[3]=S=>m(S))},[O(_z,{elementInfo:R.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Me({clipPath:z(h).style})},[V("img",{src:R.elementInfo.src,draggable:!1,style:Me({top:z(p).top,left:z(p).left,width:z(p).width,height:z(p).height,filter:z(g)}),onDragstart:A[1]||(A[1]=Nt(()=>{},["prevent"])),alt:""},null,44,I3e),R.elementInfo.colorMask?(U(),ee("div",{key:0,class:"color-mask",style:Me({backgroundColor:R.elementInfo.colorMask})},null,4)):Ye("",!0)],4)],36)),[[x,R.contextmenus]])],4)],6)}}}),kz=Be(N3e,[["__scopeId","data-v-86b9f3af"]]),F3e=["width","height"],E3e=["d","stroke","stroke-width","stroke-dasharray"],X3e=Ee({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(U(),ee("svg",{key:0,class:"element-outline",overflow:"visible",width:o.width,height:o.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${o.width},0 L${o.width},${o.height} L0,${o.height} Z`,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,E3e)],8,F3e)):Ye("",!0)}}),A3=Be(X3e,[["__scopeId","data-v-e2ef58f5"]]),Qi=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},o2=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let m6=null;const Ku=function(e,t,n){let r=m6||(m6=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},W3e=function(){m6=null},n0=function(e,t,n,r){return n&&(DX(e,t,n,r,-1)||DX(e,t,n,r,1))},V3e=/^(img|br|input|textarea|hr)$/i;function DX(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:$l(e))){let o=e.parentNode;if(!o||o.nodeType!=1||ay(e)||V3e.test(e.nodeName)||e.contentEditable=="false")return!1;t=Qi(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?$l(e):0}else return!1}}function $l(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function D3e(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=$l(e)}else if(e.parentNode&&!ay(e))t=Qi(e),e=e.parentNode;else return null}}function U3e(e,t){for(;;){if(e.nodeType==3&&t2),hs=kv||(gu?/Mac/.test(gu.platform):!1),Q3e=gu?/Win/.test(gu.platform):!1,al=/Android \d/.test(gd),sy=!!UX&&"webkitFontSmoothing"in UX.documentElement.style,H3e=sy?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function K3e(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Uu(e,t){return typeof e=="number"?e:e[t]}function G3e(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function BX(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;a;a=o2(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,u=l?K3e(o):G3e(s),c=0,f=0;if(t.topu.bottom-Uu(r,"bottom")&&(f=t.bottom-t.top>u.bottom-u.top?t.top+Uu(i,"top")-u.top:t.bottom-u.bottom+Uu(i,"bottom")),t.leftu.right-Uu(r,"right")&&(c=t.right-u.right+Uu(i,"right")),c||f)if(l)o.defaultView.scrollBy(c,f);else{let d=s.scrollLeft,h=s.scrollTop;f&&(s.scrollTop+=f),c&&(s.scrollLeft+=c);let p=s.scrollLeft-d,v=s.scrollTop-h;t={left:t.left-p,top:t.top-v,right:t.right-p,bottom:t.bottom-v}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function z3e(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let o=(t.left+t.right)/2,a=n+1;a=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:Iz(e.dom)}}function Iz(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=o2(r));return t}function J3e({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;Nz(n,r==0?0:r-t)}function Nz(e,t){for(let n=0;n=s){a=Math.max(p.bottom,a),s=Math.min(p.top,s);let v=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!l&&p.left<=t.left&&p.right>=t.left&&(l=c,u={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=f+1)}}return!n&&l&&(n=l,i=u,r=0),n&&n.nodeType==3?j3e(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:Fz(n,i)}function j3e(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function Ck(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function q3e(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function t4e(e,t,n,r){let i=-1;for(let o=t,a=!1;o!=e.dom;){let s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right-1?i:e.docView.posFromDOM(t,n,-1)}function Ez(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}let u;sy&&i&&r.nodeType==1&&(u=r.childNodes[i-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=t4e(e,r,i,t))}s==null&&(s=e4e(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function YX(e){return e.top=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:u++,F1(sf(Ku(r,l,u),c),c<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==$l(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return P5(l.getBoundingClientRect(),!1)}if(o==null&&i<$l(r)){let l=r.childNodes[i];if(l.nodeType==1)return P5(l.getBoundingClientRect(),!0)}return P5(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==$l(r))){let l=r.childNodes[i-1],u=l.nodeType==3?Ku(l,$l(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return F1(sf(u,1),!1)}if(o==null&&i<$l(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Ku(l,0,a?0:1):l.nodeType==1?l:null:null;if(u)return F1(sf(u,-1),!0)}return F1(sf(r.nodeType==3?Ku(r):r,-n),n>=0)}function F1(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function P5(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Wz(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function i4e(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return Wz(e,t,()=>{let{node:o}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=Xz(e,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Ku(s,0,s.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?a.top-c.top>(c.bottom-a.top)*2:c.bottom-a.bottom>(a.bottom-c.top)*2))return!1}}return!0})}const o4e=/[\u0590-\u08ac]/;function a4e(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return!o4e.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:Wz(e,t,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:f}=e.domSelectionRange(),d=s.caretBidiLevel;s.modify("move",n,"character");let h=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:p,focusOffset:v}=e.domSelectionRange(),g=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&u==v;try{s.collapse(c,f),l&&(l!=c||u!=f)&&s.extend&&s.extend(l,u)}catch{}return d!=null&&(s.caretBidiLevel=d),g})}let ZX=null,QX=null,HX=!1;function s4e(e,t,n){return ZX==t&&QX==n?HX:(ZX=t,QX=n,HX=n=="up"||n=="down"?i4e(e,t,n):a4e(e,t,n))}const Ms=0,KX=1,Rh=2,mu=3;class ly{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Ms,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nQi(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||a instanceof Dz){i=t-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Vz&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Qi(o.dom)+1:0}}else{let o,a=!0;for(;o=r=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,c);t=a;for(let f=s;f>0;f--){let d=this.children[f-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){i=Qi(d.dom)+1;break}t-=d.size}i==-1&&(i=0)}if(i>-1&&(u>n||s==this.children.length-1)){n=u;for(let c=s+1;ch&&an){let h=s;s=l,l=h}let d=document.createRange();d.setEnd(l.node,l.offset),d.setStart(s.node,s.offset),u.removeAllRanges(),u.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,i=0;i=r:tr){let s=r+o.border,l=a-o.border;if(t>=s&&n<=l){this.dirty=t==r||n==a?Rh:KX,t==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=mu:o.markDirty(t-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?Rh:mu}r=a}this.dirty=Rh}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?Rh:KX;n.dirty{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!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,o=this}matchesWidget(t){return this.dirty==Ms&&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 l4e extends ly{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}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 r0 extends ly{constructor(t,n,r,i){super(t,[],r,i),this.mark=n}static create(t,n,r,i){let o=i.nodeViews[n.type.name],a=o&&o(n,i,r);return(!a||!a.dom)&&(a=Yv.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new r0(t,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&mu||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=mu&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Ms){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(o=S6(o,0,t,r));for(let s=0;s{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},r,i),c=u&&u.dom,f=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:f}=Yv.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!f&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let d=c;return c=Yz(c,r,n),u?l=new u4e(t,n,r,i,c,f||null,d,u,o,a+1):n.isText?new b3(t,n,r,i,c,d,o):new Xf(t,n,r,i,c,f||null,d,o,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=()=>ft.empty)}return t}matchesNode(t,n,r){return this.dirty==Ms&&t.eq(this.node)&&x6(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,i=n,o=t.composing?this.localCompositionInfo(t,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new f4e(this,a&&a.node,t);p4e(this.node,this.innerDeco,(u,c,f)=>{u.spec.marks?l.syncToMarks(u.spec.marks,r,t):u.type.side>=0&&!f&&l.syncToMarks(c==this.node.childCount?zn.none:this.node.child(c).marks,r,t),l.placeWidget(u,t,i)},(u,c,f,d)=>{l.syncToMarks(u.marks,r,t);let h;l.findNodeMatch(u,c,f,d)||s&&t.state.selection.from>i&&t.state.selection.to-1&&l.updateNodeAt(u,c,f,h,t)||l.updateNextNode(u,c,f,t,d,i)||l.addNode(u,c,f,t,i),i+=u.nodeSize}),l.syncToMarks([],r,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Rh)&&(a&&this.protectLocalComposition(t,a),Uz(this.contentDOM,this.children,t),kv&&v4e(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof nr)||rn+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=g4e(this.node.content,a,r-n,i-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new l4e(this,o,n,i);t.input.compositionNodes.push(a),this.children=S6(this.children,r,r+i.length,t,a)}update(t,n,r,i){return this.dirty==mu||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Ms}updateOuterDeco(t){if(x6(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Bz(this.dom,this.nodeDOM,b6(this.outerDeco,this.node,n),b6(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 GX(e,t,n,r,i){Yz(r,t,e);let o=new Xf(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class b3 extends Xf{constructor(t,n,r,i,o,a,s){super(t,n,r,i,o,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,i){return this.dirty==mu||this.dirty!=Ms&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Ms||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=Ms,!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 i=this.node.cut(t,n),o=document.createTextNode(i.text);return new b3(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=mu)}get domAtom(){return!1}isText(t){return this.node.text==t}}class Dz extends ly{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Ms&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class u4e extends Xf{constructor(t,n,r,i,o,a,s,l,u,c){super(t,n,r,i,o,a,s,u,c),this.spec=l}update(t,n,r,i){if(this.dirty==mu)return!1;if(this.spec.update){let o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,i),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,i)}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 Uz(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o>1,a=Math.min(o,t.length);for(;i-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=r0.create(this.top,t[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,n,r,i){let o=-1,a;if(i>=this.preMatch.index&&(a=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,r))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let u=n.children[r-1];if(u instanceof r0)n=u,r=u.children.length;else{s=u,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function h4e(e,t){return e.type.side-t.type.side}function p4e(e,t,n,r){let i=t.locals(e),o=0;if(i.length==0){for(let u=0;uo;)s.push(i[a++]);let p=o+d.nodeSize;if(d.isText){let g=p;a!g.inline):s.slice();r(d,v,t.forChild(o,d),h),o=p}}function v4e(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 g4e(e,t,n,r){for(let i=0,o=0;i=n){if(o>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let u=s=0&&u+t.length+s>=n)return s+u;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function S6(e,t,n,r,i){let o=[];for(let a=0,s=0;a=n||c<=t?o.push(l):(un&&o.push(l.slice(n-u,l.size,r)))}return o}function Ik(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),o=i&&i.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,u;if(R3(n)){for(l=s;i&&!i.node;)i=i.parent;let c=i.node;if(i&&c.isAtom&&Jt.isSelectable(c)&&i.parent&&!(c.isInline&&B3e(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;u=new Jt(a==f?s:r.resolve(f))}}else{let c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null;l=r.resolve(c)}if(!u){let c=t=="pointer"||e.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Zz(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function y4e(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setEnd(r.parentNode,Qi(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&la&&Ef<=11&&(r.disabled=!0,r.disabled=!1)}function Qz(e,t){if(t instanceof Jt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(qX(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else qX(e)}function qX(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Nk(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||nr.between(t,n,r)}function eW(e){return e.editable&&!e.hasFocus()?!1:Hz(e)}function Hz(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 A4e(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return n0(t.node,t.offset,n.anchorNode,n.anchorOffset)}function w6(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&Fn.findFrom(o,t)}function vf(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function tW(e,t,n){let r=e.state.selection;if(r instanceof nr)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=e.state.doc.resolve(i.pos+o.nodeSize*(t<0?-1:1));return vf(e,new nr(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=w6(e.state,t);return i&&i instanceof Jt?vf(e,i):!1}else if(!(hs&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,a;if(!o||o.isText)return!1;let s=t<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(a=e.docView.descAt(s))&&!a.contentDOM?Jt.isSelectable(o)?vf(e,new Jt(t<0?e.state.doc.resolve(i.pos-o.nodeSize):i)):sy?vf(e,new nr(e.state.doc.resolve(t<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Jt&&r.node.isInline)return vf(e,new nr(t>0?r.$to:r.$from));{let i=w6(e.state,t);return i?vf(e,i):!1}}}function Wx(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function vm(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Z0(e,t){return t<0?R4e(e):b4e(e)}function R4e(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=!1;for(vl&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(vm(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(Kz(n))break;{let s=n.previousSibling;for(;s&&vm(s,-1);)i=n.parentNode,o=Qi(s),s=s.previousSibling;if(s)n=s,r=Wx(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?M6(e,n,r):i&&M6(e,i,o)}function b4e(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=Wx(n),o,a;for(;;)if(r{e.state==i&&uc(e)},50)}function nW(e,t){let n=e.state.doc.resolve(t);if(!(po||Q3e)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let o=e.coordsAtPos(t-1),a=(o.top+o.bottom)/2;if(a>i.top&&a1)return o.lefti.top&&a1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function rW(e,t,n){let r=e.state.selection;if(r instanceof nr&&!r.empty||n.indexOf("s")>-1||hs&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=w6(e.state,t);if(a&&a instanceof Jt)return vf(e,a)}if(!i.parent.inlineContent){let a=t<0?i:o,s=r instanceof ia?Fn.near(a,t):Fn.findFrom(a,t);return s?vf(e,s):!1}return!1}function iW(e,t){if(!(e.state.selection instanceof nr))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=e.state.tr;return t<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),e.dispatch(a),!0}return!1}function oW(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function w4e(e){if(!No||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;oW(e,r,"true"),setTimeout(()=>oW(e,r,"false"),20)}return!1}function M4e(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function L4e(e,t){let n=t.keyCode,r=M4e(t);if(n==8||hs&&n==72&&r=="c")return iW(e,-1)||Z0(e,-1);if(n==46&&!t.shiftKey||hs&&n==68&&r=="c")return iW(e,1)||Z0(e,1);if(n==13||n==27)return!0;if(n==37||hs&&n==66&&r=="c"){let i=n==37?nW(e,e.state.selection.from)=="ltr"?-1:1:-1;return tW(e,i,r)||Z0(e,i)}else if(n==39||hs&&n==70&&r=="c"){let i=n==39?nW(e,e.state.selection.from)=="ltr"?1:-1:1;return tW(e,i,r)||Z0(e,i)}else{if(n==38||hs&&n==80&&r=="c")return rW(e,-1,r)||Z0(e,-1);if(n==40||hs&&n==78&&r=="c")return w4e(e)||rW(e,1,r)||Z0(e,1);if(r==(hs?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Gz(e,t){e.someProp("transformCopied",h=>{t=h(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;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")||Yv.fromSchema(e.state.schema),s=eJ(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let u=l.firstChild,c,f=0;for(;u&&u.nodeType==1&&(c=qz[u.nodeName.toLowerCase()]);){for(let h=c.length-1;h>=0;h--){let p=s.createElement(c[h]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),f++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${i} ${o}${f?` -${f}`:""} ${JSON.stringify(n)}`);let d=e.someProp("clipboardTextSerializer",h=>h(t,e))||t.content.textBetween(0,t.content.size,` `);return{dom:l,text:d,slice:t}}function zz(e,t,n,r,i){let o=i.parent.type.spec.code,a,s;if(!n&&!t)return null;let l=t&&(r||o||!n);if(l){if(e.someProp("transformPastedText",d=>{t=d(t,o||r,e)}),o)return t?new Mt(ft.from(e.state.schema.text(t.replace(/\r\n?/g,` -`))),0,0):Mt.empty;let f=e.someProp("clipboardTextParser",d=>d(t,i,r,e));if(f)s=f;else{let d=i.marks(),{schema:h}=e.state,p=Yv.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(v=>{let g=a.appendChild(document.createElement("p"));v&&g.appendChild(p.serializeNode(h.text(v,d)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=O4e(n),sy&&k4e(a);let u=a&&a.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let f=+c[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")||_O.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!T4e.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)s=P4e(aW(s,+c[1],+c[2]),c[4]);else if(s=Mt.maxOpen(_4e(s.content,i),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f{s=f(s,e)}),s}const T4e=/^(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 _4e(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),o,a=[];if(e.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),u;if(!l)return a=null;if(u=a.length&&o.length&&$z(l,o,s,a[a.length-1],0))a[a.length-1]=u;else{a.length&&(a[a.length-1]=jz(a[a.length-1],o.length));let c=Jz(s,l);a.push(c),i=i.matchType(c.type),o=l}}),a)return ft.from(a)}return e}function Jz(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ft.from(e));return e}function $z(e,t,n,r,i){if(i1&&(o=0),i=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(ft.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function aW(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=eJ().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&qz[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"").reverse().join("")),n.innerHTML=e,i)for(let o=0;o=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=ft.from(l.create(r[s+1],i)),o++,a++}return new Mt(i,o,a)}const Fo={},Eo={},C4e={touchstart:!0,touchmove:!0};class I4e{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.compositionNode=null,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 N4e(e){for(let t in Fo){let n=Fo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{E4e(e,r)&&!Fk(e,r)&&(e.editable||!(r.type in Eo))&&n(e,r)},C4e[t]?{passive:!0}:void 0)}No&&e.dom.addEventListener("input",()=>null),T6(e)}function Mf(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function F4e(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 T6(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>Fk(e,r))})}function Fk(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function E4e(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 X4e(e,t){!Fk(e,t)&&Fo[t.type]&&(e.editable||!(t.type in Eo))&&Fo[t.type](e,t)}Eo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!nJ(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(al&&po&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),kv&&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",i=>i(e,hh(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||L4e(e,n)?n.preventDefault():Mf(e,"key")};Eo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Eo.keypress=(e,t)=>{let n=t;if(nJ(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||hs&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof nr)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function x3(e){return{left:e.clientX,top:e.clientY}}function W4e(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function Ek(e,t,n,r,i){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,s=>a>o.depth?s(e,n,o.nodeAfter,o.before(a),i,!0):s(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function av(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function V4e(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Jt.isSelectable(r)?(av(e,new Jt(n)),!0):!1}function D4e(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Jt&&(r=n.node);let o=e.state.doc.resolve(t);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(Jt.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(av(e,Jt.create(e.state.doc,i)),!0):!1}function U4e(e,t,n,r,i){return Ek(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(i?D4e(e,n):V4e(e,n))}function B4e(e,t,n,r){return Ek(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function Y4e(e,t,n,r){return Ek(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||Z4e(e,n,r)}function Z4e(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(av(e,nr.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)av(e,nr.create(r,s+1,s+1+a.content.size));else if(Jt.isSelectable(a))av(e,Jt.create(r,s));else continue;return!0}}function Xk(e){return Vx(e)}const tJ=hs?"metaKey":"ctrlKey";Fo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=Xk(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&W4e(n,e.input.lastClick)&&!n[tJ]&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=e.posAtCoords(x3(n));a&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Q4e(e,a,n,!!r)):(o=="doubleClick"?B4e:Y4e)(e,a.pos,a.inside,n)?n.preventDefault():Mf(e,"pointer"))};class Q4e{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[tJ],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),a=n.inside;else{let c=t.state.doc.resolve(n.pos);o=c.parent,a=c.depth?c.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof Jt&&u.from<=a&&u.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&vl&&!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)),Mf(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(()=>uc(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(x3(t))),this.updateAllowDefault(t),this.allowDefault||!n?Mf(this.view,"pointer"):U4e(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||No&&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)?(av(this.view,Fn.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Mf(this.view,"pointer")}move(t){this.updateAllowDefault(t),Mf(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)}}Fo.touchstart=e=>{e.input.lastTouch=Date.now(),Xk(e),Mf(e,"pointer")};Fo.touchmove=e=>{e.input.lastTouch=Date.now(),Mf(e,"pointer")};Fo.contextmenu=e=>Xk(e);function nJ(e,t){return e.composing?!0:No&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const H4e=al?5e3:-1;Eo.compositionstart=Eo.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(),Vx(e,!0),e.markCursor=null;else if(Vx(e),vl&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else i=a,o=-1}}e.input.composing=!0}rJ(e,H4e)};Eo.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.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,rJ(e,20))};function rJ(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Vx(e),t))}function iJ(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=G4e());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function K4e(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=D3e(t.focusNode,t.focusOffset),r=U3e(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function G4e(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Vx(e,t=!1){if(!(al&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),iJ(e),t||e.docView&&e.docView.dirty){let n=Ik(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function z4e(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(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const a2=la&&Ef<15||kv&&H3e<604;Fo.copy=Eo.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=a2?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Gz(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):z4e(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function J4e(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function $4e(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 i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?s2(e,r.value,null,i,t):s2(e,r.textContent,r.innerHTML,i,t)},50)}function s2(e,t,n,r,i){let o=zz(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||Mt.empty)))return!0;if(!o)return!1;let a=J4e(o),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function oJ(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," "):""}Eo.paste=(e,t)=>{let n=t;if(e.composing&&!al)return;let r=a2?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&s2(e,oJ(r),r.getData("text/html"),i,n)?n.preventDefault():$4e(e,n)};class aJ{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const sJ=hs?"altKey":"ctrlKey";Fo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(x3(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof Jt?i.to-1:i.to))){if(r&&r.mightDrag)a=Jt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=e.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=e.docView&&(a=Jt.create(e.state.doc,f.posBefore))}}let s=(a||e.state.selection).content(),{dom:l,text:u,slice:c}=Gz(e,s);(!n.dataTransfer.files.length||!po||Cz>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(a2?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",a2||n.dataTransfer.setData("text/plain",u),e.dragging=new aJ(c,!n[sJ],a)};Fo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Eo.dragover=Eo.dragenter=(e,t)=>t.preventDefault();Eo.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(x3(n));if(!i)return;let o=e.state.doc.resolve(i.pos),a=r&&r.slice;a?e.someProp("transformPasted",p=>{a=p(a,e)}):a=zz(e,oJ(n.dataTransfer),a2?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[sJ]);if(e.someProp("handleDrop",p=>p(e,n,a||Mt.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?uQ(e.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let u=e.state.tr;if(s){let{node:p}=r;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(l),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=u.doc;if(f?u.replaceRangeWith(c,c,a.content.firstChild):u.replaceRange(c,c,a),u.doc.eq(d))return;let h=u.doc.resolve(c);if(f&&Jt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new Jt(h));else{let p=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((v,g,m,y)=>p=y),u.setSelection(Nk(e,h,u.doc.resolve(p)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))};Fo.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())&&uc(e)},20))};Fo.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)};Fo.beforeinput=(e,t)=>{if(po&&al&&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",o=>o(e,hh(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Eo)Fo[e]=Eo[e];function l2(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 Dx{constructor(t,n){this.toDOM=t,this.spec=n||Xh,this.side=this.spec.side||0}map(t,n,r,i){let{pos:o,deleted:a}=t.mapResult(n.from+i,this.side<0?-1:1);return a?null:new Va(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof Dx&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&l2(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Wf{constructor(t,n){this.attrs=t,this.spec=n||Xh}map(t,n,r,i){let o=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new Va(o,a,this)}valid(t,n){return n.from=t&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,i+s,o)}}map(t,n,r){return this==io||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Xh)}mapInner(t,n,r,i,o){let a;for(let s=0;s{let u=l+r,c;if(c=uJ(n,s,u)){for(i||(i=this.children.slice());os&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let o=t+1,a=o+n.content.size;for(let s=0;so&&l.type instanceof Wf){let u=Math.max(o,l.from)-o,c=Math.min(a,l.to)-o;ui.map(t,n,Xh));return bf.from(r)}forChild(t,n){if(n.isLeaf)return li.empty;let r=[];for(let i=0;in instanceof li)?t:t.reduce((n,r)=>n.concat(r instanceof li?r:r.members),[]))}}}function j4e(e,t,n,r,i,o,a){let s=e.slice();for(let u=0,c=o;u{let g=v-p-(h-d);for(let m=0;my+c-f)continue;let R=s[m]+c-f;h>=R?s[m+1]=d<=R?-2:-1:d>=c&&g&&(s[m]+=g,s[m+1]+=g)}f+=g}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u=r.content.size){l=!0;continue}let d=n.map(e[u+1]+o,-1),h=d-i,{index:p,offset:v}=r.content.findIndex(f),g=r.maybeChild(p);if(g&&v==f&&v+g.nodeSize==h){let m=s[u+2].mapInner(n,g,c+1,e[u]+o+1,a);m!=io?(s[u]=f,s[u+1]=h,s[u+2]=m):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=q4e(s,e,t,n,i,o,a),c=Ux(u,r,0,a);t=c.local;for(let f=0;fn&&a.to{let u=uJ(e,s,l+n);if(u){o=!0;let c=Ux(u,s,n+l+1,r);c!=io&&i.push(l,l+s.nodeSize,c)}});let a=lJ(o?cJ(e):e,-n).sort(Wh);for(let s=0;s0;)t++;e.splice(t,0,n)}function I5(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=io&&t.push(r)}),e.cursorWrapper&&t.push(li.create(e.state.doc,[e.cursorWrapper.deco])),bf.from(t)}const ewe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},twe=la&&Ef<=11;class nwe{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 rwe{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new nwe,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),twe&&(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,ewe)),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(eW(this.view)){if(this.suppressingSelectionUpdates)return uc(this.view);if(la&&Ef<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&n0(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 o=t.focusNode;o;o=o2(o))n.add(o);for(let o=t.anchorNode;o;o=o2(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.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(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&eW(t)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(t.editable)for(let c=0;cf.nodeName=="BR");if(c.length==2){let[f,d]=c;f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let d of c){let h=d.parentNode;h&&h.nodeName=="LI"&&(!f||awe(t,f)!=h)&&d.remove()}}}let u=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(o>-1&&(t.docView.markDirty(o,a),iwe(t)),this.handleDOMChange(o,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||uc(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 c=0;ci;g--){let m=r.childNodes[g-1],y=m.pmViewDesc;if(m.nodeName=="BR"&&!y){o=g;break}if(!y||y.size)break}let f=e.state.doc,d=e.someProp("domParser")||_O.fromSchema(e.state.schema),h=f.resolve(a),p=null,v=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:o,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:lwe,context:h});if(u&&u[0].pos!=null){let g=u[0].pos,m=u[1]&&u[1].pos;m==null&&(m=g),p={anchor:g+a,head:m+a}}return{doc:v,sel:p,from:a,to:s}}function lwe(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(No&&/^(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||No&&/^(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 uwe=/^(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 cwe(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let T=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,w=Ik(e,T);if(w&&!e.state.selection.eq(w)){if(po&&al&&e.input.lastKeyCode===13&&Date.now()-100k(e,hh(13,"Enter"))))return;let P=e.state.tr.setSelection(w);T=="pointer"?P.setMeta("pointer",!0):T=="key"&&P.scrollIntoView(),o&&P.setMeta("composition",o),e.dispatch(P)}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 l=e.state.selection,u=swe(e,t,n),c=e.state.doc,f=c.slice(u.from,u.to),d,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||al)&&i.some(T=>T.nodeType==1&&!uwe.test(T.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",T=>T(e,hh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof nr&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let T=dW(e,e.state.doc,u.sel);if(T&&!T.eq(e.state.selection)){let w=e.state.tr.setSelection(T);o&&w.setMeta("composition",o),e.dispatch(w)}}return}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=u.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),la&&Ef<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let v=u.doc.resolveNoCache(p.start-u.from),g=u.doc.resolveNoCache(p.endB-u.from),m=c.resolve(p.start),y=v.sameParent(g)&&v.parent.inlineContent&&m.end()>=p.endA,R;if((kv&&e.input.lastIOSEnter>Date.now()-225&&(!y||i.some(T=>T.nodeName=="DIV"||T.nodeName=="P"))||!y&&v.posT(e,hh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&dwe(c,p.start,p.endA,v,g)&&e.someProp("handleKeyDown",T=>T(e,hh(8,"Backspace")))){al&&po&&e.domObserver.suppressSelectionUpdates();return}po&&al&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),al&&!y&&v.start()!=g.start()&&g.parentOffset==0&&v.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,g=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(T){return T(e,hh(13,"Enter"))})},20));let A=p.start,x=p.endA,S,M,L;if(y){if(v.pos==g.pos)la&&Ef<=11&&v.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>uc(e),20)),S=e.state.tr.delete(A,x),M=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(L=fwe(v.parent.content.cut(v.parentOffset,g.parentOffset),m.parent.content.cut(m.parentOffset,p.endA-m.start()))))S=e.state.tr,L.type=="add"?S.addMark(A,x,L.mark):S.removeMark(A,x,L.mark);else if(v.parent.child(v.index()).isText&&v.index()==g.index()-(g.textOffset?0:1)){let T=v.parent.textBetween(v.parentOffset,g.parentOffset);if(e.someProp("handleTextInput",w=>w(e,A,x,T)))return;S=e.state.tr.insertText(T,A,x)}}if(S||(S=e.state.tr.replace(A,x,u.doc.slice(p.start-u.from,p.endB-u.from))),u.sel){let T=dW(e,S.doc,u.sel);T&&!(po&&al&&e.composing&&T.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:Nk(e,t.resolve(n.anchor),t.resolve(n.head))}function fwe(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,a,s,l;for(let c=0;cc.mark(s.addToSet(c.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=c=>c.mark(s.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||N5(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function hwe(e,t,n,r,i){let o=e.findDiffStart(t,n);if(o==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a=a?o-r:0;o-=l,o&&o=s?o-r:0;o-=l,o&&o=56320&&t<=57343&&n>=55296&&n<=56319}class pwe{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 I4e,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(yW),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=gW(this),vW(this),this.nodeViews=mW(this),this.docView=GX(this.state.doc,pW(this),I5(this),this.dom,this),this.domObserver=new rwe(this,(r,i,o,a)=>cwe(this,r,i,o,a)),this.domObserver.start(),N4e(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&&T6(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(yW),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 i=this.state,o=!1,a=!1;t.storedMarks&&this.composing&&(iJ(this),a=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=mW(this);gwe(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&T6(this),this.editable=gW(this),vW(this);let l=I5(this),u=pW(this),c=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",f=o||!this.docView.matchesNode(t.doc,u,l);(f||!t.selection.eq(i.selection))&&(a=!0);let d=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&z3e(this);if(a){this.domObserver.stop();let h=f&&(la||po)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&vwe(i.selection,t.selection);if(f){let p=po?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=K4e(this)),(o||!this.docView.update(t.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=GX(t.doc,u,l,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&A4e(this))?uc(this,h):(Qz(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():d&&J3e(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Jt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&BX(this,n.getBoundingClientRect(),t)}else BX(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(o))==r.node&&(i=o)}this.dragging=new aJ(t.slice,t.move,i<0?void 0:Jt.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return n4e(this,t)}coordsAtPos(t,n=1){return Xz(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 i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return s4e(this,n||this.state,t)}pasteHTML(t,n){return s2(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return s2(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(F4e(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],I5(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,W3e())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return X4e(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return No&&this.root.nodeType===11&&Y3e(this.dom.ownerDocument)==this.dom&&owe(this,t)||t}domSelection(){return this.root.getSelection()}}function pW(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"),[Va.node(0,e.state.doc.content.size,t)]}function vW(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:Va.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function gW(e){return!e.someProp("editable",t=>t(e.state)===!1)}function vwe(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 mW(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function gwe(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function yW(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 $f={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:"'"},Bx={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mwe=typeof navigator<"u"&&/Mac/.test(navigator.platform),ywe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Hi=0;Hi<10;Hi++)$f[48+Hi]=$f[96+Hi]=String(Hi);for(var Hi=1;Hi<=24;Hi++)$f[Hi+111]="F"+Hi;for(var Hi=65;Hi<=90;Hi++)$f[Hi]=String.fromCharCode(Hi+32),Bx[Hi]=String.fromCharCode(Hi);for(var F5 in $f)Bx.hasOwnProperty(F5)||(Bx[F5]=$f[F5]);function Awe(e){var t=mwe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||ywe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Bx:$f)[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 Rwe=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function bwe(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s127)&&(o=$f[r.keyCode])&&o!=i){let s=t[E5(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var Yx=200,Oi=function(){};Oi.prototype.append=function(t){return t.length?(t=Oi.from(t),!this.length&&t||t.length=n?Oi.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Oi.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Oi.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)};Oi.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(t(o,a))},n,r),i};Oi.from=function(t){return t instanceof Oi?t:t&&t.length?new dJ(t):Oi.empty};var dJ=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(i,o){return i==0&&o==this.length?this:new t(this.values.slice(i,o))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,o,a,s){for(var l=o;l=a;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=Yx)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=Yx)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Oi);Oi.empty=new dJ([]);var Swe=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(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,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}(Oi);const wwe=500;class ll{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 i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=t.tr,s,l,u=[],c=[];return this.items.forEach((f,d)=>{if(!f.step){i||(i=this.remapping(r,d+1),o=i.maps.length),o--,c.push(f);return}if(i){c.push(new Dl(f.map));let h=f.step.map(i.slice(o)),p;h&&a.maybeStep(h).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],u.push(new Dl(p,void 0,void 0,u.length+c.length))),o--,p&&i.appendMap(p,o)}else a.maybeStep(f.step);if(f.selection)return s=i?f.selection.map(i.slice(o)):f.selection,l=new ll(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(t,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let c=0;cLwe&&(s=Mwe(s,u),a-=u),new ll(s.append(o),a)}remapping(t,n){let r=new $p;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new ll(this.items.append(t.map(n=>new Dl(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},i);let l=n;this.items.forEach(d=>{let h=o.getMirror(--l);if(h==null)return;a=Math.min(a,h);let p=o.maps[h];if(d.step){let v=t.steps[h].invert(t.docs[h]),g=d.selection&&d.selection.map(o.slice(l+1,h));g&&s++,r.push(new Dl(p,v,g))}else r.push(new Dl(p))},i);let u=[];for(let d=n;dwwe&&(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,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=t)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=a.selection&&a.selection.map(n.slice(r));c&&o++;let f=new Dl(u.invert(),l,c),d,h=i.length-1;(d=i.length&&i[h].merge(f))?i[h]=d:i.push(f)}}else a.map&&r--},this.items.length,0),new ll(Oi.from(i.reverse()),o)}}ll.empty=new ll(Oi.empty,0);function Mwe(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class Dl{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Dl(n.getMap().invert(),n,this.selection)}}}class gf{constructor(t,n,r,i,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const Lwe=20;function Twe(e,t,n,r){let i=n.getMeta(Vf),o;if(i)return i.historyState;n.getMeta(Owe)&&(e=new gf(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(Vf))return a.getMeta(Vf).redo?new gf(e.done.addTransform(n,void 0,r,Rb(t)),e.undone,RW(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new gf(e.done,e.undone.addTransform(n,void 0,r,Rb(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!_we(n,e.prevRanges)),u=a?X5(e.prevRanges,n.mapping):RW(n.mapping.maps[n.steps.length-1]);return new gf(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,Rb(t)),ll.empty,u,n.time,s??e.prevComposition)}else return(o=n.getMeta("rebased"))?new gf(e.done.rebased(n,o),e.undone.rebased(n,o),X5(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new gf(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),X5(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function _we(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let o=0;o=t[o]&&(n=!0)}),n}function RW(e){let t=[];return e.forEach((n,r,i,o)=>t.push(i,o)),t}function X5(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=Vf.getState(e);return!n||n.done.eventCount==0?!1:(t&&hJ(n,e,t,!1),!0)},vJ=(e,t)=>{let n=Vf.getState(e);return!n||n.undone.eventCount==0?!1:(t&&hJ(n,e,t,!0),!0)};function Pwe(e={}){return new Qv({view(t){return new Cwe(t,e)}})}class Cwe{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(i=>{let o=a=>{this[i](a)};return t.dom.addEventListener(i,o),{name:i,handler:o}})}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,l=t.nodeAfter;if(s||l){let u=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(u){let c=u.getBoundingClientRect(),f=s?c.bottom:c.top;s&&l&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.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 i=this.editorView.dom.offsetParent;this.element||(this.element=i.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 o,a;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=i.getBoundingClientRect();o=s.left-i.scrollLeft,a=s.top-i.scrollTop}this.element.style.left=r.left-o+"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),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=uQ(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 zr extends Fn{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return zr.valid(r)?new zr(r):Fn.near(r)}content(){return Mt.empty}eq(t){return t instanceof zr&&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 zr(t.resolve(n.pos))}getBookmark(){return new Dk(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!Iwe(t)||!Nwe(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&zr.valid(t))return t;let i=t.pos,o=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){o=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;i+=n;let l=t.doc.resolve(i);if(zr.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!Jt.isSelectable(o)){t=t.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=a,i+=n;let s=t.doc.resolve(i);if(zr.valid(s))return s}return null}}}zr.prototype.visible=!1;zr.findFrom=zr.findGapCursorFrom;Fn.jsonID("gapcursor",zr);class Dk{constructor(t){this.pos=t}map(t){return new Dk(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return zr.valid(n)?new zr(n):Fn.near(n)}}function Iwe(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 i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Nwe(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 i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Fwe(){return new Qv({props:{decorations:Vwe,createSelectionBetween(e,t,n){return t.pos==n.pos&&zr.valid(n)?new zr(n):null},handleClick:Xwe,handleKeyDown:Ewe,handleDOMEvents:{beforeinput:Wwe}}})}const Ewe=fJ({ArrowLeft:KA("horiz",-1),ArrowRight:KA("horiz",1),ArrowUp:KA("vert",-1),ArrowDown:KA("vert",1)});function KA(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,o){let a=r.selection,s=t>0?a.$to:a.$from,l=a.empty;if(a instanceof nr){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=zr.findGapCursorFrom(s,t,l);return u?(i&&i(r.tr.setSelection(new zr(u))),!0):!1}}function Xwe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!zr.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Jt.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new zr(r))),!0)}function Wwe(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof zr))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 i=ft.empty;for(let a=r.length-1;a>=0;a--)i=ft.from(r[a].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new Mt(i,0,0));return o.setSelection(nr.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function Vwe(e){if(!(e.selection instanceof zr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",li.create(e.doc,[Va.widget(e.selection.head,t,{key:"gapcursor"})])}const Dwe=["li",0],Uwe={parseDOM:[{tag:"li"}],toDOM(){return Dwe},defining:!0};function Bwe(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=!1,l=a;if(!a)return!1;if(a.depth>=2&&i.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(i.index(a.depth-1)==0)return!1;let c=n.doc.resolve(a.start-2);l=new ox(c,c,a.depth),a.endIndex=0;c--)o=ft.from(n[c].type.create(n[c].attrs,o));e.step(new zi(t.start-(r?2:0),t.end,t.start,t.end,new Mt(o,0,0),n.length,!0));let a=0;for(let c=0;c=i.depth-3;m--)f=ft.from(i.node(m).copy(f));let h=i.indexAfter(-1){if(g>-1)return!1;m.isTextblock&&m.content.size==0&&(g=y+1)}),g>-1&&v.setSelection(Fn.near(v.doc.resolve(g))),r(v.scrollIntoView())}return!0}let l=o.pos==i.end()?s.contentMatchAt(0).defaultType:null,u=n.tr.delete(i.pos,o.pos),c=l?[null,{type:l}]:void 0;return jp(u.doc,i.pos,2,c)?(r&&r(u.split(i.pos,2,c).scrollIntoView()),!0):!1}}function gJ(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?Qwe(t,n,e,o):Hwe(t,n,o):!0:!1}}function Qwe(e,t,n,r){let i=e.tr,o=r.end,a=r.$to.end(r.depth);ov;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(s?0:1),c+1,a.content.append(l?ft.empty:ft.from(i))))return!1;let f=o.pos,d=f+a.nodeSize;return r.step(new zi(f-(s?1:0),d+(l?1:0),f+1,d-1,new Mt((s?ft.empty:ft.from(i.copy(ft.empty))).append(l?ft.empty:ft.from(i.copy(ft.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function xW(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=ft.from(u?e.create():null),f=new Mt(ft.from(e.create(null,ft.from(s.type.create(null,c)))),u?3:1,0),d=o.start,h=o.end;n(t.tr.step(new zi(d-(u?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class Sc{constructor(t,n,r={}){this.match=t,this.match=t,this.handler=typeof n=="string"?Kwe(n):n,this.undoable=r.undoable!==!1,this.inCode=r.inCode||!1}}function Kwe(e){return function(t,n,r,i){let o=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);o+=n[0].slice(a+n[1].length),r+=a;let s=r-i;s>0&&(o=n[0].slice(a-s,a)+o,r=i)}return t.tr.insertText(o,r,i)}}const Gwe=500;function zwe({rules:e}){let t=new Qv({state:{init(){return null},apply(n,r){let i=n.getMeta(this);return i||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,i,o){return SW(n,r,i,o,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&SW(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function SW(e,t,n,r,i,o){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t),l=s.parent.textBetween(Math.max(0,s.parentOffset-Gwe),s.parentOffset,null,"")+r;for(let u=0;u{let n=e.plugins;for(let r=0;r=0;l--)a.step(s.steps[l].invert(s.docs[l]));if(o.text){let l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else a.delete(o.from,o.to);t(a)}return!0}}return!1},$we=new Sc(/--$/,"—"),jwe=new Sc(/\.\.\.$/,"…"),qwe=new Sc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),eMe=new Sc(/"$/,"”"),tMe=new Sc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),nMe=new Sc(/'$/,"’"),rMe=[qwe,eMe,tMe,nMe];function Uk(e,t,n=null,r){return new Sc(e,(i,o,a,s)=>{let l=n instanceof Function?n(o):n,u=i.tr.delete(a,s),c=u.doc.resolve(a),f=c.blockRange(),d=f&&kO(f,t,l);if(!d)return null;u.wrap(f,d);let h=u.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Zv(u.doc,a-1)&&(!r||r(o,h))&&u.join(a-1),u})}const iMe=e=>{const t={},n=(r,i)=>t[r]=i;return n("Alt-ArrowUp",i0e),n("Alt-ArrowDown",o0e),n("Mod-z",pJ),n("Mod-y",vJ),n("Backspace",Jwe),n("Escape",c0e),n("Mod-b",si(e.marks.strong)),n("Mod-i",si(e.marks.em)),n("Mod-u",si(e.marks.underline)),n("Mod-d",si(e.marks.strikethrough)),n("Mod-e",si(e.marks.code)),n("Mod-;",si(e.marks.superscript)),n("Mod-'",si(e.marks.subscript)),n("Enter",ZS(Zwe(e.nodes.list_item),RQ,bQ,xQ,u0e)),n("Mod-[",gJ(e.nodes.list_item)),n("Mod-]",xW(e.nodes.list_item)),n("Tab",xW(e.nodes.list_item)),t},oMe=e=>Uk(/^\s*>\s$/,e),aMe=e=>Uk(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),sMe=e=>Uk(/^\s*([-+*])\s$/,e),lMe=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new Sc(e,(t,n,r,i)=>{const{schema:o}=t,a=t.tr.insertText(`${n[2]} `,r,i),s=o.marks.code.create();return a.addMark(r,r+n[2].length,s)})},uMe=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new Sc(e,(t,n,r,i)=>{const{schema:o}=t,a=t.tr.insertText(n[0],r,i),s=o.marks.link.create({href:n[0],title:n[0]});return a.addMark(r,r+n[0].length,s)})},cMe=e=>{const t=[...rMe,jwe,$we];return t.push(oMe(e.nodes.blockquote)),t.push(aMe(e.nodes.ordered_list)),t.push(sMe(e.nodes.bullet_list)),t.push(lMe()),t.push(uMe()),zwe({rules:t})},fMe=e=>e.type.name==="paragraph"&&e.nodeSize===2,dMe=e=>new Qv({props:{decorations(t){const{$from:n}=t.selection;if(fMe(n.parent)){const r=Va.node(n.before(),n.after(),{"data-placeholder":e});return li.create(t.doc,[r])}}}}),hMe=(e,t)=>{const n=t==null?void 0:t.placeholder,r=[cMe(e),AW(iMe(e)),AW(m0e),Pwe(),Fwe(),kwe()];return n&&r.push(dMe(n)),r},pMe=["p",0],vMe=["blockquote",0],gMe=["hr"],mMe=["pre",["code",0]],yMe=["br"],mJ={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return pMe}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return vMe}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return gMe}},heading:{attrs:{level:{default:1,validate:"number"}},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 mMe}},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|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 yMe}}},AMe=["em",0],RMe=["strong",0],bMe=["code",0],yJ={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|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 AMe}},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 RMe}},code:{parseDOM:[{tag:"code"}],toDOM(){return bMe}}};new qZ({nodes:mJ,marks:yJ});const xMe={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:i,color:o}=e.style;return r&&(n.listStyleType=r),i&&(n.fontsize=i),o&&(n.color=o),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:r,color:i}=e.attrs;let o="";n&&(o+=`list-style-type: ${n};`),r&&(o+=`font-size: ${r};`),i&&(o+=`color: ${i};`);const a={style:o};return t!==1&&(a.start=t),["ol",a,0]}},SMe={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:r,color:i}=e.style;return n&&(t.listStyleType=n),r&&(t.fontsize=r),i&&(t.color=i),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:r}=e.attrs;let i="";return t&&(i+=`list-style-type: ${t};`),n&&(i+=`font-size: ${n};`),r&&(i+=`color: ${r};`),["ul",{style:i},0]}},wMe={...Uwe,content:"paragraph block*",group:"block"},MMe={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 i=0;n&&(/em/.test(n)?i=parseInt(n):/px/.test(n)&&(i=Math.floor(parseInt(n)/16),i||(i=1)));const o=+(e.getAttribute("data-indent")||0);return{align:r,indent:o,textIndent:i}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:r}=e.attrs;let i="";t&&t!=="left"&&(i+=`text-align: ${t};`),r&&(i+=`text-indent: ${r}em;`);const o={style:i};return n&&(o["data-indent"]=n),["p",o,0]}},{doc:LMe,blockquote:TMe,text:_Me}=mJ,OMe={doc:LMe,paragraph:MMe,blockquote:TMe,text:_Me,ordered_list:xMe,bullet_list:SMe,list_item:wMe},kMe={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},PMe={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},CMe={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]},IMe={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]},NMe={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]}},FMe={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]}},EMe={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]}},XMe={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]}},WMe={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]},VMe={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:DMe,strong:UMe,code:BMe}=yJ,YMe={em:DMe,strong:UMe,fontsize:EMe,fontname:XMe,code:BMe,forecolor:NMe,backcolor:FMe,subscript:kMe,superscript:PMe,strikethrough:CMe,underline:IMe,link:WMe,mark:VMe},ZMe=OMe,QMe=YMe,AJ=new qZ({nodes:ZMe,marks:QMe}),Bk=e=>{const t=`
    ${e}
    `,r=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return _O.fromSchema(AJ).parse(r)},RJ=(e,t,n,r)=>new pwe(e,{state:Tp.create({doc:Bk(t),plugins:hMe(AJ,r)}),...n});function HMe(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(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}var Ti=(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))(Ti||{});const Gi=HMe(),KMe=(e,t,n)=>{const{selection:r,doc:i}=e;if(!r||!i)return e;const{from:o,to:a}=r,{nodes:s}=t,l=s.blockquote,u=s.list_item,c=s.paragraph,f=[];n=n||"";const d=new Set([l,u,c]);return i.nodesBetween(o,a,(h,p)=>{const v=h.type;return(h.attrs.align||"")!==n&&d.has(v)&&f.push({node:h,pos:p,nodeType:v}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:v,nodeType:g}=h;let{attrs:m}=p;n?m={...m,align:n}:m={...m,align:null},e=e.setNodeMarkup(v,g,m,p.marks)}),e},GMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=KMe(n.tr.setSelection(i),r,t);e.dispatch(o)};function zMe(e,t,n,r){if(!e.doc)return e;const i=e.doc.nodeAt(t);if(!i)return e;const o=0,a=8;let s=(i.attrs[r]||0)+n;if(sa&&(s=a),s===i.attrs[r])return e;const l={...i.attrs,[r]:s};return e.setNodeMarkup(t,i.type,l,i.marks)}const bJ=(e,t,n,r)=>{const{selection:i,doc:o}=e;if(!i||!o||!(i instanceof nr||i instanceof ia))return e;const{from:a,to:s}=i;return o.nodesBetween(a,s,(l,u)=>{const c=l.type;return c.name==="paragraph"||c.name==="blockquote"?(e=zMe(e,u,n,r),!1):!ux(l,t)}),e},JMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=bJ(n.tr.setSelection(i),r,t,"indent");return o.docChanged?(e.dispatch(o),!0):!1},$Me=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=bJ(n.tr.setSelection(i),r,t,"textIndent");return o.docChanged?(e.dispatch(o),!0):!1},Zx=(e,t,n,r={})=>(i,o)=>{const{schema:a,selection:s}=i,{$from:l,$to:u}=s,c=l.blockRange(u);if(!c)return!1;const f=_Q(h=>ux(h,a))(s);if(c.depth>=1&&f&&c.depth-f.depth<=1){if(f.node.type===e&&!n)return gJ(t)(i,o);if(ux(f.node,a)&&e.validContent(f.node.content)){const{tr:h}=i,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,e,p),o&&o(h),!1}}const d={...r};return n&&(d.listStyleType=n),Bwe(e,d)(i,o)},E1=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=n.tr.setSelection(i),{doc:a}=o;if(!a)return o;const{from:s,to:l}=i;a.nodesBetween(s,l,(u,c)=>{if(ux(u,r)&&s-3<=c&&l+3>=c+u.nodeSize){const f=Array.isArray(t)?t:[t];for(const d of f)o.setNodeAttribute(c,d.key,d.value)}return!1}),e.dispatch(o)},jMe=Ee({__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,i=n,o=pt(),{handleElementId:a,textFormatPainter:s,richTextAttrs:l,activeElementIdList:u}=Ve(o),{ctrlOrShiftKeyActive:c}=Ve(Fs()),f=he();let d;const h=Zn.debounce(function(M=!1){r.value.replace(/ style=\"\"/g,"")!==d.dom.innerHTML.replace(/ style=\"\"/g,"")&&i("update",{value:d.dom.innerHTML,ignore:M})},300,{trailing:!0}),p=()=>{(!c.value||u.value.length<=1)&&o.setDisableHotkeysState(!0),i("focus")},v=()=>{o.setDisableHotkeysState(!1),i("blur")},g=Zn.debounce(function(){const M=J8(d,{color:r.defaultColor,fontname:r.defaultFontName});o.setRichtextAttrs(M)},30,{trailing:!0}),m=(M,L)=>{const{ctrlKey:T,shiftKey:w,metaKey:P}=L,k=T||w||P,N=L.key.toUpperCase(),C=k&&(N===yt.Z||N===yt.Y);h(C),g()},y=Se(()=>r.value);Lt(y,()=>{if(!d||d.hasFocus())return;const{doc:M,tr:L}=d.state;d.dispatch(L.replaceRangeWith(0,M.content.size,Bk(y.value)))}),Lt(()=>r.editable,()=>{d.setProps({editable:()=>r.editable})}),t({focus:()=>d.focus()});const A=({target:M,action:L})=>{if(!M&&a.value!==r.elementId||M&&M!==r.elementId)return;const T="command"in L?[L]:L;for(const w of T)if(w.command==="fontname"&&w.value!==void 0){const P=d.state.schema.marks.fontname.create({fontname:w.value});pi(d),Vl(d,P),w.value&&!document.fonts.check(`16px ${w.value}`)&&un.warning("字体需要等待加载下载后生效,请稍等")}else if(w.command==="fontsize"&&w.value){const P=d.state.schema.marks.fontsize.create({fontsize:w.value});pi(d),Vl(d,P),E1(d,{key:"fontsize",value:w.value})}else if(w.command==="fontsize-add"){const P=w.value?+w.value:2;pi(d);const k=q7(d)+P+"px",N=d.state.schema.marks.fontsize.create({fontsize:k});Vl(d,N),E1(d,{key:"fontsize",value:k})}else if(w.command==="fontsize-reduce"){const P=w.value?+w.value:2;pi(d);let k=q7(d)-P;k<12&&(k=12);const N=d.state.schema.marks.fontsize.create({fontsize:k+"px"});Vl(d,N),E1(d,{key:"fontsize",value:k+"px"})}else if(w.command==="color"&&w.value){const P=d.state.schema.marks.forecolor.create({color:w.value});pi(d),Vl(d,P),E1(d,{key:"color",value:w.value})}else if(w.command==="backcolor"&&w.value){const P=d.state.schema.marks.backcolor.create({backcolor:w.value});pi(d),Vl(d,P)}else if(w.command==="bold")pi(d),si(d.state.schema.marks.strong)(d.state,d.dispatch);else if(w.command==="em")pi(d),si(d.state.schema.marks.em)(d.state,d.dispatch);else if(w.command==="underline")pi(d),si(d.state.schema.marks.underline)(d.state,d.dispatch);else if(w.command==="strikethrough")pi(d),si(d.state.schema.marks.strikethrough)(d.state,d.dispatch);else if(w.command==="subscript")si(d.state.schema.marks.subscript)(d.state,d.dispatch);else if(w.command==="superscript")si(d.state.schema.marks.superscript)(d.state,d.dispatch);else if(w.command==="blockquote")qR("blockquote",d.state)?a0e(d.state,d.dispatch):p0e(d.state.schema.nodes.blockquote)(d.state,d.dispatch);else if(w.command==="code")si(d.state.schema.marks.code)(d.state,d.dispatch);else if(w.command==="align"&&w.value)GMe(d,w.value);else if(w.command==="indent"&&w.value)JMe(d,+w.value);else if(w.command==="textIndent"&&w.value)$Me(d,+w.value);else if(w.command==="bulletList"){const P=w.value||"",{bullet_list:k,list_item:N}=d.state.schema.nodes,C={color:l.value.color,fontsize:l.value.fontsize};Zx(k,N,P,C)(d.state,d.dispatch)}else if(w.command==="orderedList"){const P=w.value||"",{ordered_list:k,list_item:N}=d.state.schema.nodes,C={color:l.value.color,fontsize:l.value.fontsize};Zx(k,N,P,C)(d.state,d.dispatch)}else if(w.command==="clear"){pi(d);const{$from:P,$to:k}=d.state.selection;d.dispatch(d.state.tr.removeMark(P.pos,k.pos)),E1(d,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(w.command==="link"){const P=d.state.schema.marks.link,{from:k,to:N}=d.state.selection,C=y0e(d.state.doc,k,N,P);if(C)if(w.value){const I=d.state.schema.marks.link.create({href:w.value,title:w.value});Vl(d,I,{from:C.from.pos,to:C.to.pos+1})}else d.dispatch(d.state.tr.removeMark(C.from.pos,C.to.pos+1,P));else if(x0e(d.state,P))if(w.value){const I=d.state.schema.marks.link.create({href:w.value,title:w.value});Vl(d,I)}else si(P)(d.state,d.dispatch);else w.value&&(pi(d),si(P,{href:w.value,title:w.value})(d.state,d.dispatch))}else w.command==="insert"&&w.value&&d.dispatch(d.state.tr.insertText(w.value));d.focus(),h(),g()},x=()=>{if(!s.value)return;const{keep:M,...L}=s.value,T=[{command:"clear"}];for(const w of Object.keys(L)){const P=w,k=s.value[w];k===!0?T.push({command:P}):k&&T.push({command:P,value:k})}A({action:T}),M||o.setTextFormatPainter(null)};Wt(()=>{d=RJ(f.value,y.value,{handleDOMEvents:{focus:p,blur:v,keydown:m,click:g,mouseup:x},editable:()=>r.editable}),r.autoFocus&&d.focus()}),En(()=>{d&&d.destroy()});const S=()=>{a.value===r.elementId&&g()};return Gi.on(Ti.RICH_TEXT_COMMAND,A),Gi.on(Ti.SYNC_RICH_TEXT_ATTRS_TO_STORE,S),En(()=>{Gi.off(Ti.RICH_TEXT_COMMAND,A),Gi.off(Ti.SYNC_RICH_TEXT_ATTRS_TO_STORE,S)}),(M,L)=>(U(),ee("div",{class:Ge(["prosemirror-editor",{"format-painter":z(s)}]),ref_key:"editorViewRef",ref:f,onMousedown:L[0]||(L[0]=T=>i("mousedown",T))},null,34))}}),xJ=Be(jMe,[["__scopeId","data-v-32b03815"]]),SJ=e=>($t("data-v-3b68a2d9"),e=e(),jt(),e),qMe=SJ(()=>V("div",{class:"drag-handler top"},null,-1)),e5e=SJ(()=>V("div",{class:"drag-handler bottom"},null,-1)),t5e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{handleElementId:i,isScaling:o}=Ve(n),{addHistorySnapshot:a}=on(),s=he(),l=Se(()=>t.elementInfo.shadow),{shadowStyle:u}=vd(l),c=(y,R=!0)=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo,R))},f=he(-1),d=he(-1);Lt(o,()=>{i.value===t.elementInfo.id&&(o.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 A=R.height+20,x=R.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==A&&(o.value?f.value=A:r.updateElement({id:t.elementInfo.id,props:{height:A}})),t.elementInfo.vertical&&t.elementInfo.width!==x&&(o.value?d.value=x:r.updateElement({id:t.elementInfo.id,props:{width:x}}))},p=new ResizeObserver(h);Wt(()=>{s.value&&p.observe(s.value)}),En(()=>{s.value&&p.unobserve(s.value)});const v=(y,R=!1)=>{r.updateElement({id:t.elementInfo.id,props:{content:y}}),R||a()},g=Zn.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(t.elementInfo.id)},300,{trailing:!0}),m=Se(()=>i.value===t.elementInfo.id);return Lt(m,()=>{m.value||g()}),(y,R)=>{const A=_n("contextmenu");return U(),ee("div",{class:Ge(["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)`})},[ze((U(),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:z(u),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]=x=>c(x)),onTouchstart:R[3]||(R[3]=x=>c(x))},[O(A3,{width:y.elementInfo.width,height:y.elementInfo.height,outline:y.elementInfo.outline},null,8,["width","height","outline"]),O(xJ,{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]=({value:x,ignore:S})=>v(x,S)),onMousedown:R[1]||(R[1]=x=>c(x,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),qMe,e5e],36)),[[A,y.contextmenus]])],4)],6)}}}),wJ=Be(t5e,[["__scopeId","data-v-3b68a2d9"]]),MJ=(e,t)=>({fill:Se(()=>e.value.pattern?`url(#${t}-pattern-${e.value.id})`:e.value.gradient?`url(#${t}-gradient-${e.value.id})`:e.value.fill||"none")}),n5e=["id","gradientTransform"],r5e=["offset","stop-color"],i5e=["id"],o5e=["offset","stop-color"],LJ=Ee({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(e){return(t,n)=>t.type==="linear"?(U(),ee("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[(U(!0),ee(Ne,null,Je(t.colors,(r,i)=>(U(),ee("stop",{key:i,offset:`${r.pos}%`,"stop-color":r.color},null,8,r5e))),128))],8,n5e)):(U(),ee("radialGradient",{key:1,id:t.id},[(U(!0),ee(Ne,null,Je(t.colors,(r,i)=>(U(),ee("stop",{key:i,offset:`${r.pos}%`,"stop-color":r.color},null,8,o5e))),128))],8,i5e))}}),a5e=["id"],s5e=["href"],TJ=Ee({__name:"PatternDefs",props:{id:{},src:{}},setup(e){return(t,n)=>(U(),ee("pattern",{id:t.id,patternContentUnits:"objectBoundingBox",patternUnits:"objectBoundingBox",width:"1",height:"1"},[V("image",{href:t.src,width:"1",height:"1",preserveAspectRatio:"xMidYMid slice"},null,8,s5e)],8,a5e))}}),l5e=["width","height"],u5e=["transform"],c5e=["d","fill","stroke","stroke-width","stroke-dasharray"],f5e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{handleElementId:i,shapeFormatPainter:o}=Ve(n),{addHistorySnapshot:a}=on(),s=(w,P=!0)=>{t.elementInfo.lock||(w.stopPropagation(),t.selectElement(w,t.elementInfo,P))},l=()=>{if(!o.value)return;const{keep:w,...P}=o.value;r.updateElement({id:t.elementInfo.id,props:P}),a(),w||n.setShapeFormatPainter(null)},u=Se(()=>t.elementInfo),{fill:c}=MJ(u,"editable"),f=Se(()=>t.elementInfo.outline),{outlineWidth:d,outlineColor:h,strokeDashArray:p}=t1(f),v=Se(()=>t.elementInfo.shadow),{shadowStyle:g}=vd(v),m=Se(()=>t.elementInfo.flipH),y=Se(()=>t.elementInfo.flipV),{flipStyle:R}=y3(m,y),A=he(!1);Lt(i,()=>{i.value!==t.elementInfo.id&&A.value&&(A.value=!1)});const x=Se(()=>{const w={content:"",defaultFontName:"",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:w}),S=(w,P=!1)=>{const k={...x.value,content:w};r.updateElement({id:t.elementInfo.id,props:{text:k}}),P||a()},M=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},L=he(),T=()=>{A.value=!0,hr(()=>L.value&&L.value.focus())};return(w,P)=>{const k=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-shape",{lock:w.elementInfo.lock,"format-painter":z(o)}]),style:we({top:w.elementInfo.top+"px",left:w.elementInfo.left+"px",width:w.elementInfo.width+"px",height:w.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${w.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",style:we({opacity:w.elementInfo.opacity,filter:z(g)?`drop-shadow(${z(g)})`:"",transform:z(R),color:x.value.defaultColor,fontFamily:x.value.defaultFontName}),onMousedown:P[3]||(P[3]=N=>s(N)),onMouseup:P[4]||(P[4]=N=>l()),onTouchstart:P[5]||(P[5]=N=>s(N)),onDblclick:P[6]||(P[6]=N=>T())},[(U(),ee("svg",{overflow:"visible",width:w.elementInfo.width,height:w.elementInfo.height},[V("defs",null,[w.elementInfo.pattern?(U(),Te(TJ,{key:0,id:`editable-pattern-${w.elementInfo.id}`,src:w.elementInfo.pattern},null,8,["id","src"])):w.elementInfo.gradient?(U(),Te(LJ,{key:1,id:`editable-gradient-${w.elementInfo.id}`,type:w.elementInfo.gradient.type,colors:w.elementInfo.gradient.colors,rotate:w.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])):Ye("",!0)]),V("g",{transform:`scale(${w.elementInfo.width/w.elementInfo.viewBox[0]}, ${w.elementInfo.height/w.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:w.elementInfo.path,fill:z(c),stroke:z(h),"stroke-width":z(d),"stroke-dasharray":z(p)},null,8,c5e)],8,u5e)],8,l5e)),V("div",{class:Ge(["shape-text",[x.value.align,{editable:A.value||x.value.content}]])},[A.value||x.value.content?(U(),Te(xJ,{key:0,ref_key:"prosemirrorEditorRef",ref:L,elementId:w.elementInfo.id,defaultColor:x.value.defaultColor,defaultFontName:x.value.defaultFontName,editable:!w.elementInfo.lock,value:x.value.content,onUpdate:P[0]||(P[0]=({value:N,ignore:C})=>S(N,C)),onBlur:P[1]||(P[1]=N=>M()),onMousedown:P[2]||(P[2]=N=>s(N,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Ye("",!0)],2)],36)),[[k,w.contextmenus]])],4)],6)}}}),_J=Be(f5e,[["__scopeId","data-v-5705d9f9"]]),d5e=["id","markerWidth","markerHeight","refX","refY"],h5e=["d","fill","transform"],jf=Ee({__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},i=Se(()=>n[t.type]),o=Se(()=>r[`${t.type}-${t.position}`]||0),a=Se(()=>t.baseSize<2?2:t.baseSize);return(s,l)=>(U(),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:i.value,fill:s.color,transform:`scale(${a.value*.3}, ${a.value*.3}) rotate(${o.value}, 5, 5)`},null,8,h5e)],8,d5e))}}),p5e=["width","height"],v5e=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],g5e=["d"],m5e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=u=>{t.elementInfo.lock||(u.stopPropagation(),t.selectElement(u,t.elementInfo))},r=Se(()=>t.elementInfo.shadow),{shadowStyle:i}=vd(r),o=Se(()=>{const u=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return u<24?24:u}),a=Se(()=>{const u=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return u<24?24:u}),s=Se(()=>{const u=t.elementInfo.width;return t.elementInfo.style==="dashed"?u<=8?`${u*5} ${u*2.5}`:`${u*5} ${u*1.5}`:t.elementInfo.style==="dotted"?u<=8?`${u*1.8} ${u*1.6}`:`${u*1.5} ${u*1.2}`:"0 0"}),l=Se(()=>tk(t.elementInfo));return(u,c)=>{const f=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-shape",{lock:u.elementInfo.lock}]),style:we({top:u.elementInfo.top+"px",left:u.elementInfo.left+"px"})},[V("div",{class:"element-content",style:we({filter:z(i)?`drop-shadow(${z(i)})`:""}),onMousedown:c[0]||(c[0]=d=>n(d)),onTouchstart:c[1]||(c[1]=d=>n(d))},[(U(),ee("svg",{overflow:"visible",width:o.value,height:a.value},[V("defs",null,[u.elementInfo.points[0]?(U(),Te(jf,{key:0,id:u.elementInfo.id,position:"start",type:u.elementInfo.points[0],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0),u.elementInfo.points[1]?(U(),Te(jf,{key:1,id:u.elementInfo.id,position:"end",type:u.elementInfo.points[1],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0)]),V("path",{class:"line-point",d:l.value,stroke:u.elementInfo.color,"stroke-width":u.elementInfo.width,"stroke-dasharray":s.value,fill:"none","marker-start":u.elementInfo.points[0]?`url(#${u.elementInfo.id}-${u.elementInfo.points[0]}-start)`:"","marker-end":u.elementInfo.points[1]?`url(#${u.elementInfo.id}-${u.elementInfo.points[1]}-end)`:""},null,8,v5e),ze(V("path",{class:"line-path",d:l.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,g5e),[[f,u.contextmenus]])],8,p5e))],36)],6)}}}),OJ=Be(m5e,[["__scopeId","data-v-9dc09347"]]),y5e=({type:e,data:t,themeColors:n,textColor:r,lineSmooth:i,stack:o})=>{if(e==="bar")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"bar",label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="column")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,yAxis:{type:"category",data:t.labels},xAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"bar",label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="line")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"line",smooth:i,label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="pie")return{color:n,textStyle:r?{color:r}:{},legend:{top:"bottom",textStyle:r?{color:r}:{}},series:[{data:t.series[0].map((a,s)=>({value:a,name:t.labels[s]})),label:r?{color:r}:{},type:"pie",radius:"70%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(e==="ring")return{color:n,textStyle:r?{color:r}:{},legend:{top:"bottom",textStyle:r?{color:r}:{}},series:[{data:t.series[0].map((a,s)=>({value:a,name:t.labels[s]})),label:r?{color:r}:{},type:"pie",radius:["40%","70%"],padAngle:1,avoidLabelOverlap:!1,itemStyle:{borderRadius:4},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(e==="area")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",boundaryGap:!1,data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"line",areaStyle:{},label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="radar")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,radar:{indicator:t.labels.map(a=>({name:a}))},series:[{data:t.series.map((a,s)=>({value:a,name:t.legends[s]})),type:"radar"}]};if(e==="scatter"){const a=[];for(let s=0;sd(t,i,r,e));if(f)s=f;else{let d=i.marks(),{schema:h}=e.state,p=Yv.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(v=>{let g=a.appendChild(document.createElement("p"));v&&g.appendChild(p.serializeNode(h.text(v,d)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=O4e(n),sy&&k4e(a);let u=a&&a.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let f=+c[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")||_O.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!T4e.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)s=P4e(aW(s,+c[1],+c[2]),c[4]);else if(s=Mt.maxOpen(_4e(s.content,i),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f{s=f(s,e)}),s}const T4e=/^(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 _4e(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),o,a=[];if(e.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),u;if(!l)return a=null;if(u=a.length&&o.length&&$z(l,o,s,a[a.length-1],0))a[a.length-1]=u;else{a.length&&(a[a.length-1]=jz(a[a.length-1],o.length));let c=Jz(s,l);a.push(c),i=i.matchType(c.type),o=l}}),a)return ft.from(a)}return e}function Jz(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ft.from(e));return e}function $z(e,t,n,r,i){if(i1&&(o=0),i=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(ft.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function aW(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=eJ().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&qz[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"").reverse().join("")),n.innerHTML=e,i)for(let o=0;o=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=ft.from(l.create(r[s+1],i)),o++,a++}return new Mt(i,o,a)}const Fo={},Eo={},C4e={touchstart:!0,touchmove:!0};class I4e{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.compositionNode=null,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 N4e(e){for(let t in Fo){let n=Fo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{E4e(e,r)&&!Fk(e,r)&&(e.editable||!(r.type in Eo))&&n(e,r)},C4e[t]?{passive:!0}:void 0)}No&&e.dom.addEventListener("input",()=>null),T6(e)}function Mf(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function F4e(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 T6(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>Fk(e,r))})}function Fk(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function E4e(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 X4e(e,t){!Fk(e,t)&&Fo[t.type]&&(e.editable||!(t.type in Eo))&&Fo[t.type](e,t)}Eo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!nJ(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(al&&po&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),kv&&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",i=>i(e,hh(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||L4e(e,n)?n.preventDefault():Mf(e,"key")};Eo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Eo.keypress=(e,t)=>{let n=t;if(nJ(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||hs&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof nr)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function x3(e){return{left:e.clientX,top:e.clientY}}function W4e(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function Ek(e,t,n,r,i){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,s=>a>o.depth?s(e,n,o.nodeAfter,o.before(a),i,!0):s(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function av(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function V4e(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Jt.isSelectable(r)?(av(e,new Jt(n)),!0):!1}function D4e(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Jt&&(r=n.node);let o=e.state.doc.resolve(t);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(Jt.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(av(e,Jt.create(e.state.doc,i)),!0):!1}function U4e(e,t,n,r,i){return Ek(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(i?D4e(e,n):V4e(e,n))}function B4e(e,t,n,r){return Ek(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function Y4e(e,t,n,r){return Ek(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||Z4e(e,n,r)}function Z4e(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(av(e,nr.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)av(e,nr.create(r,s+1,s+1+a.content.size));else if(Jt.isSelectable(a))av(e,Jt.create(r,s));else continue;return!0}}function Xk(e){return Vx(e)}const tJ=hs?"metaKey":"ctrlKey";Fo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=Xk(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&W4e(n,e.input.lastClick)&&!n[tJ]&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=e.posAtCoords(x3(n));a&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Q4e(e,a,n,!!r)):(o=="doubleClick"?B4e:Y4e)(e,a.pos,a.inside,n)?n.preventDefault():Mf(e,"pointer"))};class Q4e{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[tJ],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),a=n.inside;else{let c=t.state.doc.resolve(n.pos);o=c.parent,a=c.depth?c.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof Jt&&u.from<=a&&u.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&vl&&!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)),Mf(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(()=>uc(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(x3(t))),this.updateAllowDefault(t),this.allowDefault||!n?Mf(this.view,"pointer"):U4e(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||No&&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)?(av(this.view,Fn.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Mf(this.view,"pointer")}move(t){this.updateAllowDefault(t),Mf(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)}}Fo.touchstart=e=>{e.input.lastTouch=Date.now(),Xk(e),Mf(e,"pointer")};Fo.touchmove=e=>{e.input.lastTouch=Date.now(),Mf(e,"pointer")};Fo.contextmenu=e=>Xk(e);function nJ(e,t){return e.composing?!0:No&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const H4e=al?5e3:-1;Eo.compositionstart=Eo.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(),Vx(e,!0),e.markCursor=null;else if(Vx(e),vl&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else i=a,o=-1}}e.input.composing=!0}rJ(e,H4e)};Eo.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.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,rJ(e,20))};function rJ(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Vx(e),t))}function iJ(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=G4e());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function K4e(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=D3e(t.focusNode,t.focusOffset),r=U3e(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function G4e(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Vx(e,t=!1){if(!(al&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),iJ(e),t||e.docView&&e.docView.dirty){let n=Ik(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function z4e(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(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const a2=la&&Ef<15||kv&&H3e<604;Fo.copy=Eo.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=a2?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Gz(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):z4e(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function J4e(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function $4e(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 i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?s2(e,r.value,null,i,t):s2(e,r.textContent,r.innerHTML,i,t)},50)}function s2(e,t,n,r,i){let o=zz(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||Mt.empty)))return!0;if(!o)return!1;let a=J4e(o),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function oJ(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," "):""}Eo.paste=(e,t)=>{let n=t;if(e.composing&&!al)return;let r=a2?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&s2(e,oJ(r),r.getData("text/html"),i,n)?n.preventDefault():$4e(e,n)};class aJ{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const sJ=hs?"altKey":"ctrlKey";Fo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(x3(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof Jt?i.to-1:i.to))){if(r&&r.mightDrag)a=Jt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=e.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=e.docView&&(a=Jt.create(e.state.doc,f.posBefore))}}let s=(a||e.state.selection).content(),{dom:l,text:u,slice:c}=Gz(e,s);(!n.dataTransfer.files.length||!po||Cz>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(a2?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",a2||n.dataTransfer.setData("text/plain",u),e.dragging=new aJ(c,!n[sJ],a)};Fo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Eo.dragover=Eo.dragenter=(e,t)=>t.preventDefault();Eo.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(x3(n));if(!i)return;let o=e.state.doc.resolve(i.pos),a=r&&r.slice;a?e.someProp("transformPasted",p=>{a=p(a,e)}):a=zz(e,oJ(n.dataTransfer),a2?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[sJ]);if(e.someProp("handleDrop",p=>p(e,n,a||Mt.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?uQ(e.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let u=e.state.tr;if(s){let{node:p}=r;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(l),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=u.doc;if(f?u.replaceRangeWith(c,c,a.content.firstChild):u.replaceRange(c,c,a),u.doc.eq(d))return;let h=u.doc.resolve(c);if(f&&Jt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new Jt(h));else{let p=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((v,g,m,y)=>p=y),u.setSelection(Nk(e,h,u.doc.resolve(p)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))};Fo.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())&&uc(e)},20))};Fo.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)};Fo.beforeinput=(e,t)=>{if(po&&al&&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",o=>o(e,hh(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Eo)Fo[e]=Eo[e];function l2(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 Dx{constructor(t,n){this.toDOM=t,this.spec=n||Xh,this.side=this.spec.side||0}map(t,n,r,i){let{pos:o,deleted:a}=t.mapResult(n.from+i,this.side<0?-1:1);return a?null:new Va(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof Dx&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&l2(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Wf{constructor(t,n){this.attrs=t,this.spec=n||Xh}map(t,n,r,i){let o=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new Va(o,a,this)}valid(t,n){return n.from=t&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,i+s,o)}}map(t,n,r){return this==io||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Xh)}mapInner(t,n,r,i,o){let a;for(let s=0;s{let u=l+r,c;if(c=uJ(n,s,u)){for(i||(i=this.children.slice());os&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let o=t+1,a=o+n.content.size;for(let s=0;so&&l.type instanceof Wf){let u=Math.max(o,l.from)-o,c=Math.min(a,l.to)-o;ui.map(t,n,Xh));return bf.from(r)}forChild(t,n){if(n.isLeaf)return li.empty;let r=[];for(let i=0;in instanceof li)?t:t.reduce((n,r)=>n.concat(r instanceof li?r:r.members),[]))}}}function j4e(e,t,n,r,i,o,a){let s=e.slice();for(let u=0,c=o;u{let g=v-p-(h-d);for(let m=0;my+c-f)continue;let R=s[m]+c-f;h>=R?s[m+1]=d<=R?-2:-1:d>=c&&g&&(s[m]+=g,s[m+1]+=g)}f+=g}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u=r.content.size){l=!0;continue}let d=n.map(e[u+1]+o,-1),h=d-i,{index:p,offset:v}=r.content.findIndex(f),g=r.maybeChild(p);if(g&&v==f&&v+g.nodeSize==h){let m=s[u+2].mapInner(n,g,c+1,e[u]+o+1,a);m!=io?(s[u]=f,s[u+1]=h,s[u+2]=m):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=q4e(s,e,t,n,i,o,a),c=Ux(u,r,0,a);t=c.local;for(let f=0;fn&&a.to{let u=uJ(e,s,l+n);if(u){o=!0;let c=Ux(u,s,n+l+1,r);c!=io&&i.push(l,l+s.nodeSize,c)}});let a=lJ(o?cJ(e):e,-n).sort(Wh);for(let s=0;s0;)t++;e.splice(t,0,n)}function I5(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=io&&t.push(r)}),e.cursorWrapper&&t.push(li.create(e.state.doc,[e.cursorWrapper.deco])),bf.from(t)}const ewe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},twe=la&&Ef<=11;class nwe{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 rwe{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new nwe,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),twe&&(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,ewe)),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(eW(this.view)){if(this.suppressingSelectionUpdates)return uc(this.view);if(la&&Ef<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&n0(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 o=t.focusNode;o;o=o2(o))n.add(o);for(let o=t.anchorNode;o;o=o2(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.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(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&eW(t)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(t.editable)for(let c=0;cf.nodeName=="BR");if(c.length==2){let[f,d]=c;f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let d of c){let h=d.parentNode;h&&h.nodeName=="LI"&&(!f||awe(t,f)!=h)&&d.remove()}}}let u=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(o>-1&&(t.docView.markDirty(o,a),iwe(t)),this.handleDOMChange(o,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||uc(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 c=0;ci;g--){let m=r.childNodes[g-1],y=m.pmViewDesc;if(m.nodeName=="BR"&&!y){o=g;break}if(!y||y.size)break}let f=e.state.doc,d=e.someProp("domParser")||_O.fromSchema(e.state.schema),h=f.resolve(a),p=null,v=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:o,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:lwe,context:h});if(u&&u[0].pos!=null){let g=u[0].pos,m=u[1]&&u[1].pos;m==null&&(m=g),p={anchor:g+a,head:m+a}}return{doc:v,sel:p,from:a,to:s}}function lwe(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(No&&/^(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||No&&/^(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 uwe=/^(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 cwe(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let T=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,w=Ik(e,T);if(w&&!e.state.selection.eq(w)){if(po&&al&&e.input.lastKeyCode===13&&Date.now()-100k(e,hh(13,"Enter"))))return;let P=e.state.tr.setSelection(w);T=="pointer"?P.setMeta("pointer",!0):T=="key"&&P.scrollIntoView(),o&&P.setMeta("composition",o),e.dispatch(P)}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 l=e.state.selection,u=swe(e,t,n),c=e.state.doc,f=c.slice(u.from,u.to),d,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||al)&&i.some(T=>T.nodeType==1&&!uwe.test(T.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",T=>T(e,hh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof nr&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let T=dW(e,e.state.doc,u.sel);if(T&&!T.eq(e.state.selection)){let w=e.state.tr.setSelection(T);o&&w.setMeta("composition",o),e.dispatch(w)}}return}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=u.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),la&&Ef<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let v=u.doc.resolveNoCache(p.start-u.from),g=u.doc.resolveNoCache(p.endB-u.from),m=c.resolve(p.start),y=v.sameParent(g)&&v.parent.inlineContent&&m.end()>=p.endA,R;if((kv&&e.input.lastIOSEnter>Date.now()-225&&(!y||i.some(T=>T.nodeName=="DIV"||T.nodeName=="P"))||!y&&v.posT(e,hh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&dwe(c,p.start,p.endA,v,g)&&e.someProp("handleKeyDown",T=>T(e,hh(8,"Backspace")))){al&&po&&e.domObserver.suppressSelectionUpdates();return}po&&al&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),al&&!y&&v.start()!=g.start()&&g.parentOffset==0&&v.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,g=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(T){return T(e,hh(13,"Enter"))})},20));let A=p.start,x=p.endA,S,M,L;if(y){if(v.pos==g.pos)la&&Ef<=11&&v.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>uc(e),20)),S=e.state.tr.delete(A,x),M=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(L=fwe(v.parent.content.cut(v.parentOffset,g.parentOffset),m.parent.content.cut(m.parentOffset,p.endA-m.start()))))S=e.state.tr,L.type=="add"?S.addMark(A,x,L.mark):S.removeMark(A,x,L.mark);else if(v.parent.child(v.index()).isText&&v.index()==g.index()-(g.textOffset?0:1)){let T=v.parent.textBetween(v.parentOffset,g.parentOffset);if(e.someProp("handleTextInput",w=>w(e,A,x,T)))return;S=e.state.tr.insertText(T,A,x)}}if(S||(S=e.state.tr.replace(A,x,u.doc.slice(p.start-u.from,p.endB-u.from))),u.sel){let T=dW(e,S.doc,u.sel);T&&!(po&&al&&e.composing&&T.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:Nk(e,t.resolve(n.anchor),t.resolve(n.head))}function fwe(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,a,s,l;for(let c=0;cc.mark(s.addToSet(c.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=c=>c.mark(s.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||N5(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function hwe(e,t,n,r,i){let o=e.findDiffStart(t,n);if(o==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a=a?o-r:0;o-=l,o&&o=s?o-r:0;o-=l,o&&o=56320&&t<=57343&&n>=55296&&n<=56319}class pwe{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 I4e,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(yW),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=gW(this),vW(this),this.nodeViews=mW(this),this.docView=GX(this.state.doc,pW(this),I5(this),this.dom,this),this.domObserver=new rwe(this,(r,i,o,a)=>cwe(this,r,i,o,a)),this.domObserver.start(),N4e(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&&T6(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(yW),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 i=this.state,o=!1,a=!1;t.storedMarks&&this.composing&&(iJ(this),a=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=mW(this);gwe(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&T6(this),this.editable=gW(this),vW(this);let l=I5(this),u=pW(this),c=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",f=o||!this.docView.matchesNode(t.doc,u,l);(f||!t.selection.eq(i.selection))&&(a=!0);let d=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&z3e(this);if(a){this.domObserver.stop();let h=f&&(la||po)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&vwe(i.selection,t.selection);if(f){let p=po?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=K4e(this)),(o||!this.docView.update(t.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=GX(t.doc,u,l,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&A4e(this))?uc(this,h):(Qz(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():d&&J3e(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Jt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&BX(this,n.getBoundingClientRect(),t)}else BX(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(o))==r.node&&(i=o)}this.dragging=new aJ(t.slice,t.move,i<0?void 0:Jt.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return n4e(this,t)}coordsAtPos(t,n=1){return Xz(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 i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return s4e(this,n||this.state,t)}pasteHTML(t,n){return s2(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return s2(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(F4e(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],I5(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,W3e())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return X4e(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return No&&this.root.nodeType===11&&Y3e(this.dom.ownerDocument)==this.dom&&owe(this,t)||t}domSelection(){return this.root.getSelection()}}function pW(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"),[Va.node(0,e.state.doc.content.size,t)]}function vW(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:Va.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function gW(e){return!e.someProp("editable",t=>t(e.state)===!1)}function vwe(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 mW(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function gwe(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function yW(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 $f={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:"'"},Bx={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mwe=typeof navigator<"u"&&/Mac/.test(navigator.platform),ywe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Hi=0;Hi<10;Hi++)$f[48+Hi]=$f[96+Hi]=String(Hi);for(var Hi=1;Hi<=24;Hi++)$f[Hi+111]="F"+Hi;for(var Hi=65;Hi<=90;Hi++)$f[Hi]=String.fromCharCode(Hi+32),Bx[Hi]=String.fromCharCode(Hi);for(var F5 in $f)Bx.hasOwnProperty(F5)||(Bx[F5]=$f[F5]);function Awe(e){var t=mwe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||ywe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Bx:$f)[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 Rwe=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function bwe(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s127)&&(o=$f[r.keyCode])&&o!=i){let s=t[E5(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var Yx=200,Oi=function(){};Oi.prototype.append=function(t){return t.length?(t=Oi.from(t),!this.length&&t||t.length=n?Oi.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Oi.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Oi.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)};Oi.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(t(o,a))},n,r),i};Oi.from=function(t){return t instanceof Oi?t:t&&t.length?new dJ(t):Oi.empty};var dJ=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(i,o){return i==0&&o==this.length?this:new t(this.values.slice(i,o))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,o,a,s){for(var l=o;l=a;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=Yx)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=Yx)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Oi);Oi.empty=new dJ([]);var Swe=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(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,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}(Oi);const wwe=500;class ll{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 i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=t.tr,s,l,u=[],c=[];return this.items.forEach((f,d)=>{if(!f.step){i||(i=this.remapping(r,d+1),o=i.maps.length),o--,c.push(f);return}if(i){c.push(new Dl(f.map));let h=f.step.map(i.slice(o)),p;h&&a.maybeStep(h).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],u.push(new Dl(p,void 0,void 0,u.length+c.length))),o--,p&&i.appendMap(p,o)}else a.maybeStep(f.step);if(f.selection)return s=i?f.selection.map(i.slice(o)):f.selection,l=new ll(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(t,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let c=0;cLwe&&(s=Mwe(s,u),a-=u),new ll(s.append(o),a)}remapping(t,n){let r=new $p;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new ll(this.items.append(t.map(n=>new Dl(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},i);let l=n;this.items.forEach(d=>{let h=o.getMirror(--l);if(h==null)return;a=Math.min(a,h);let p=o.maps[h];if(d.step){let v=t.steps[h].invert(t.docs[h]),g=d.selection&&d.selection.map(o.slice(l+1,h));g&&s++,r.push(new Dl(p,v,g))}else r.push(new Dl(p))},i);let u=[];for(let d=n;dwwe&&(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,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=t)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=a.selection&&a.selection.map(n.slice(r));c&&o++;let f=new Dl(u.invert(),l,c),d,h=i.length-1;(d=i.length&&i[h].merge(f))?i[h]=d:i.push(f)}}else a.map&&r--},this.items.length,0),new ll(Oi.from(i.reverse()),o)}}ll.empty=new ll(Oi.empty,0);function Mwe(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class Dl{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Dl(n.getMap().invert(),n,this.selection)}}}class gf{constructor(t,n,r,i,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const Lwe=20;function Twe(e,t,n,r){let i=n.getMeta(Vf),o;if(i)return i.historyState;n.getMeta(Owe)&&(e=new gf(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(Vf))return a.getMeta(Vf).redo?new gf(e.done.addTransform(n,void 0,r,Rb(t)),e.undone,RW(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new gf(e.done,e.undone.addTransform(n,void 0,r,Rb(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!_we(n,e.prevRanges)),u=a?X5(e.prevRanges,n.mapping):RW(n.mapping.maps[n.steps.length-1]);return new gf(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,Rb(t)),ll.empty,u,n.time,s??e.prevComposition)}else return(o=n.getMeta("rebased"))?new gf(e.done.rebased(n,o),e.undone.rebased(n,o),X5(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new gf(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),X5(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function _we(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let o=0;o=t[o]&&(n=!0)}),n}function RW(e){let t=[];return e.forEach((n,r,i,o)=>t.push(i,o)),t}function X5(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=Vf.getState(e);return!n||n.done.eventCount==0?!1:(t&&hJ(n,e,t,!1),!0)},vJ=(e,t)=>{let n=Vf.getState(e);return!n||n.undone.eventCount==0?!1:(t&&hJ(n,e,t,!0),!0)};function Pwe(e={}){return new Qv({view(t){return new Cwe(t,e)}})}class Cwe{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(i=>{let o=a=>{this[i](a)};return t.dom.addEventListener(i,o),{name:i,handler:o}})}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,l=t.nodeAfter;if(s||l){let u=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(u){let c=u.getBoundingClientRect(),f=s?c.bottom:c.top;s&&l&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.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 i=this.editorView.dom.offsetParent;this.element||(this.element=i.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 o,a;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=i.getBoundingClientRect();o=s.left-i.scrollLeft,a=s.top-i.scrollTop}this.element.style.left=r.left-o+"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),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=uQ(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 zr extends Fn{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return zr.valid(r)?new zr(r):Fn.near(r)}content(){return Mt.empty}eq(t){return t instanceof zr&&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 zr(t.resolve(n.pos))}getBookmark(){return new Dk(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!Iwe(t)||!Nwe(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&zr.valid(t))return t;let i=t.pos,o=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){o=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;i+=n;let l=t.doc.resolve(i);if(zr.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!Jt.isSelectable(o)){t=t.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=a,i+=n;let s=t.doc.resolve(i);if(zr.valid(s))return s}return null}}}zr.prototype.visible=!1;zr.findFrom=zr.findGapCursorFrom;Fn.jsonID("gapcursor",zr);class Dk{constructor(t){this.pos=t}map(t){return new Dk(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return zr.valid(n)?new zr(n):Fn.near(n)}}function Iwe(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 i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Nwe(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 i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Fwe(){return new Qv({props:{decorations:Vwe,createSelectionBetween(e,t,n){return t.pos==n.pos&&zr.valid(n)?new zr(n):null},handleClick:Xwe,handleKeyDown:Ewe,handleDOMEvents:{beforeinput:Wwe}}})}const Ewe=fJ({ArrowLeft:KA("horiz",-1),ArrowRight:KA("horiz",1),ArrowUp:KA("vert",-1),ArrowDown:KA("vert",1)});function KA(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,o){let a=r.selection,s=t>0?a.$to:a.$from,l=a.empty;if(a instanceof nr){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=zr.findGapCursorFrom(s,t,l);return u?(i&&i(r.tr.setSelection(new zr(u))),!0):!1}}function Xwe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!zr.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Jt.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new zr(r))),!0)}function Wwe(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof zr))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 i=ft.empty;for(let a=r.length-1;a>=0;a--)i=ft.from(r[a].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new Mt(i,0,0));return o.setSelection(nr.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function Vwe(e){if(!(e.selection instanceof zr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",li.create(e.doc,[Va.widget(e.selection.head,t,{key:"gapcursor"})])}const Dwe=["li",0],Uwe={parseDOM:[{tag:"li"}],toDOM(){return Dwe},defining:!0};function Bwe(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=!1,l=a;if(!a)return!1;if(a.depth>=2&&i.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(i.index(a.depth-1)==0)return!1;let c=n.doc.resolve(a.start-2);l=new ox(c,c,a.depth),a.endIndex=0;c--)o=ft.from(n[c].type.create(n[c].attrs,o));e.step(new zi(t.start-(r?2:0),t.end,t.start,t.end,new Mt(o,0,0),n.length,!0));let a=0;for(let c=0;c=i.depth-3;m--)f=ft.from(i.node(m).copy(f));let h=i.indexAfter(-1){if(g>-1)return!1;m.isTextblock&&m.content.size==0&&(g=y+1)}),g>-1&&v.setSelection(Fn.near(v.doc.resolve(g))),r(v.scrollIntoView())}return!0}let l=o.pos==i.end()?s.contentMatchAt(0).defaultType:null,u=n.tr.delete(i.pos,o.pos),c=l?[null,{type:l}]:void 0;return jp(u.doc,i.pos,2,c)?(r&&r(u.split(i.pos,2,c).scrollIntoView()),!0):!1}}function gJ(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?Qwe(t,n,e,o):Hwe(t,n,o):!0:!1}}function Qwe(e,t,n,r){let i=e.tr,o=r.end,a=r.$to.end(r.depth);ov;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(s?0:1),c+1,a.content.append(l?ft.empty:ft.from(i))))return!1;let f=o.pos,d=f+a.nodeSize;return r.step(new zi(f-(s?1:0),d+(l?1:0),f+1,d-1,new Mt((s?ft.empty:ft.from(i.copy(ft.empty))).append(l?ft.empty:ft.from(i.copy(ft.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function xW(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=ft.from(u?e.create():null),f=new Mt(ft.from(e.create(null,ft.from(s.type.create(null,c)))),u?3:1,0),d=o.start,h=o.end;n(t.tr.step(new zi(d-(u?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class Sc{constructor(t,n,r={}){this.match=t,this.match=t,this.handler=typeof n=="string"?Kwe(n):n,this.undoable=r.undoable!==!1,this.inCode=r.inCode||!1}}function Kwe(e){return function(t,n,r,i){let o=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);o+=n[0].slice(a+n[1].length),r+=a;let s=r-i;s>0&&(o=n[0].slice(a-s,a)+o,r=i)}return t.tr.insertText(o,r,i)}}const Gwe=500;function zwe({rules:e}){let t=new Qv({state:{init(){return null},apply(n,r){let i=n.getMeta(this);return i||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,i,o){return SW(n,r,i,o,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&SW(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function SW(e,t,n,r,i,o){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t),l=s.parent.textBetween(Math.max(0,s.parentOffset-Gwe),s.parentOffset,null,"")+r;for(let u=0;u{let n=e.plugins;for(let r=0;r=0;l--)a.step(s.steps[l].invert(s.docs[l]));if(o.text){let l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else a.delete(o.from,o.to);t(a)}return!0}}return!1},$we=new Sc(/--$/,"—"),jwe=new Sc(/\.\.\.$/,"…"),qwe=new Sc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),eMe=new Sc(/"$/,"”"),tMe=new Sc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),nMe=new Sc(/'$/,"’"),rMe=[qwe,eMe,tMe,nMe];function Uk(e,t,n=null,r){return new Sc(e,(i,o,a,s)=>{let l=n instanceof Function?n(o):n,u=i.tr.delete(a,s),c=u.doc.resolve(a),f=c.blockRange(),d=f&&kO(f,t,l);if(!d)return null;u.wrap(f,d);let h=u.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Zv(u.doc,a-1)&&(!r||r(o,h))&&u.join(a-1),u})}const iMe=e=>{const t={},n=(r,i)=>t[r]=i;return n("Alt-ArrowUp",i0e),n("Alt-ArrowDown",o0e),n("Mod-z",pJ),n("Mod-y",vJ),n("Backspace",Jwe),n("Escape",c0e),n("Mod-b",si(e.marks.strong)),n("Mod-i",si(e.marks.em)),n("Mod-u",si(e.marks.underline)),n("Mod-d",si(e.marks.strikethrough)),n("Mod-e",si(e.marks.code)),n("Mod-;",si(e.marks.superscript)),n("Mod-'",si(e.marks.subscript)),n("Enter",ZS(Zwe(e.nodes.list_item),RQ,bQ,xQ,u0e)),n("Mod-[",gJ(e.nodes.list_item)),n("Mod-]",xW(e.nodes.list_item)),n("Tab",xW(e.nodes.list_item)),t},oMe=e=>Uk(/^\s*>\s$/,e),aMe=e=>Uk(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),sMe=e=>Uk(/^\s*([-+*])\s$/,e),lMe=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new Sc(e,(t,n,r,i)=>{const{schema:o}=t,a=t.tr.insertText(`${n[2]} `,r,i),s=o.marks.code.create();return a.addMark(r,r+n[2].length,s)})},uMe=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new Sc(e,(t,n,r,i)=>{const{schema:o}=t,a=t.tr.insertText(n[0],r,i),s=o.marks.link.create({href:n[0],title:n[0]});return a.addMark(r,r+n[0].length,s)})},cMe=e=>{const t=[...rMe,jwe,$we];return t.push(oMe(e.nodes.blockquote)),t.push(aMe(e.nodes.ordered_list)),t.push(sMe(e.nodes.bullet_list)),t.push(lMe()),t.push(uMe()),zwe({rules:t})},fMe=e=>e.type.name==="paragraph"&&e.nodeSize===2,dMe=e=>new Qv({props:{decorations(t){const{$from:n}=t.selection;if(fMe(n.parent)){const r=Va.node(n.before(),n.after(),{"data-placeholder":e});return li.create(t.doc,[r])}}}}),hMe=(e,t)=>{const n=t==null?void 0:t.placeholder,r=[cMe(e),AW(iMe(e)),AW(m0e),Pwe(),Fwe(),kwe()];return n&&r.push(dMe(n)),r},pMe=["p",0],vMe=["blockquote",0],gMe=["hr"],mMe=["pre",["code",0]],yMe=["br"],mJ={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return pMe}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return vMe}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return gMe}},heading:{attrs:{level:{default:1,validate:"number"}},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 mMe}},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|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 yMe}}},AMe=["em",0],RMe=["strong",0],bMe=["code",0],yJ={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|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 AMe}},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 RMe}},code:{parseDOM:[{tag:"code"}],toDOM(){return bMe}}};new qZ({nodes:mJ,marks:yJ});const xMe={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:i,color:o}=e.style;return r&&(n.listStyleType=r),i&&(n.fontsize=i),o&&(n.color=o),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:r,color:i}=e.attrs;let o="";n&&(o+=`list-style-type: ${n};`),r&&(o+=`font-size: ${r};`),i&&(o+=`color: ${i};`);const a={style:o};return t!==1&&(a.start=t),["ol",a,0]}},SMe={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:r,color:i}=e.style;return n&&(t.listStyleType=n),r&&(t.fontsize=r),i&&(t.color=i),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:r}=e.attrs;let i="";return t&&(i+=`list-style-type: ${t};`),n&&(i+=`font-size: ${n};`),r&&(i+=`color: ${r};`),["ul",{style:i},0]}},wMe={...Uwe,content:"paragraph block*",group:"block"},MMe={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 i=0;n&&(/em/.test(n)?i=parseInt(n):/px/.test(n)&&(i=Math.floor(parseInt(n)/16),i||(i=1)));const o=+(e.getAttribute("data-indent")||0);return{align:r,indent:o,textIndent:i}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:r}=e.attrs;let i="";t&&t!=="left"&&(i+=`text-align: ${t};`),r&&(i+=`text-indent: ${r}em;`);const o={style:i};return n&&(o["data-indent"]=n),["p",o,0]}},{doc:LMe,blockquote:TMe,text:_Me}=mJ,OMe={doc:LMe,paragraph:MMe,blockquote:TMe,text:_Me,ordered_list:xMe,bullet_list:SMe,list_item:wMe},kMe={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},PMe={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},CMe={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]},IMe={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]},NMe={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]}},FMe={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]}},EMe={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]}},XMe={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]}},WMe={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]},VMe={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:DMe,strong:UMe,code:BMe}=yJ,YMe={em:DMe,strong:UMe,fontsize:EMe,fontname:XMe,code:BMe,forecolor:NMe,backcolor:FMe,subscript:kMe,superscript:PMe,strikethrough:CMe,underline:IMe,link:WMe,mark:VMe},ZMe=OMe,QMe=YMe,AJ=new qZ({nodes:ZMe,marks:QMe}),Bk=e=>{const t=`
    ${e}
    `,r=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return _O.fromSchema(AJ).parse(r)},RJ=(e,t,n,r)=>new pwe(e,{state:Tp.create({doc:Bk(t),plugins:hMe(AJ,r)}),...n});function HMe(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(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}var Ti=(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))(Ti||{});const Gi=HMe(),KMe=(e,t,n)=>{const{selection:r,doc:i}=e;if(!r||!i)return e;const{from:o,to:a}=r,{nodes:s}=t,l=s.blockquote,u=s.list_item,c=s.paragraph,f=[];n=n||"";const d=new Set([l,u,c]);return i.nodesBetween(o,a,(h,p)=>{const v=h.type;return(h.attrs.align||"")!==n&&d.has(v)&&f.push({node:h,pos:p,nodeType:v}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:v,nodeType:g}=h;let{attrs:m}=p;n?m={...m,align:n}:m={...m,align:null},e=e.setNodeMarkup(v,g,m,p.marks)}),e},GMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=KMe(n.tr.setSelection(i),r,t);e.dispatch(o)};function zMe(e,t,n,r){if(!e.doc)return e;const i=e.doc.nodeAt(t);if(!i)return e;const o=0,a=8;let s=(i.attrs[r]||0)+n;if(sa&&(s=a),s===i.attrs[r])return e;const l={...i.attrs,[r]:s};return e.setNodeMarkup(t,i.type,l,i.marks)}const bJ=(e,t,n,r)=>{const{selection:i,doc:o}=e;if(!i||!o||!(i instanceof nr||i instanceof ia))return e;const{from:a,to:s}=i;return o.nodesBetween(a,s,(l,u)=>{const c=l.type;return c.name==="paragraph"||c.name==="blockquote"?(e=zMe(e,u,n,r),!1):!ux(l,t)}),e},JMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=bJ(n.tr.setSelection(i),r,t,"indent");return o.docChanged?(e.dispatch(o),!0):!1},$Me=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=bJ(n.tr.setSelection(i),r,t,"textIndent");return o.docChanged?(e.dispatch(o),!0):!1},Zx=(e,t,n,r={})=>(i,o)=>{const{schema:a,selection:s}=i,{$from:l,$to:u}=s,c=l.blockRange(u);if(!c)return!1;const f=_Q(h=>ux(h,a))(s);if(c.depth>=1&&f&&c.depth-f.depth<=1){if(f.node.type===e&&!n)return gJ(t)(i,o);if(ux(f.node,a)&&e.validContent(f.node.content)){const{tr:h}=i,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,e,p),o&&o(h),!1}}const d={...r};return n&&(d.listStyleType=n),Bwe(e,d)(i,o)},E1=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=n.tr.setSelection(i),{doc:a}=o;if(!a)return o;const{from:s,to:l}=i;a.nodesBetween(s,l,(u,c)=>{if(ux(u,r)&&s-3<=c&&l+3>=c+u.nodeSize){const f=Array.isArray(t)?t:[t];for(const d of f)o.setNodeAttribute(c,d.key,d.value)}return!1}),e.dispatch(o)},jMe=Ee({__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,i=n,o=pt(),{handleElementId:a,textFormatPainter:s,richTextAttrs:l,activeElementIdList:u}=Ve(o),{ctrlOrShiftKeyActive:c}=Ve(Fs()),f=he();let d;const h=Zn.debounce(function(M=!1){r.value.replace(/ style=\"\"/g,"")!==d.dom.innerHTML.replace(/ style=\"\"/g,"")&&i("update",{value:d.dom.innerHTML,ignore:M})},300,{trailing:!0}),p=()=>{(!c.value||u.value.length<=1)&&o.setDisableHotkeysState(!0),i("focus")},v=()=>{o.setDisableHotkeysState(!1),i("blur")},g=Zn.debounce(function(){const M=J8(d,{color:r.defaultColor,fontname:r.defaultFontName});o.setRichtextAttrs(M)},30,{trailing:!0}),m=(M,L)=>{const{ctrlKey:T,shiftKey:w,metaKey:P}=L,k=T||w||P,N=L.key.toUpperCase(),C=k&&(N===yt.Z||N===yt.Y);h(C),g()},y=Se(()=>r.value);Lt(y,()=>{if(!d||d.hasFocus())return;const{doc:M,tr:L}=d.state;d.dispatch(L.replaceRangeWith(0,M.content.size,Bk(y.value)))}),Lt(()=>r.editable,()=>{d.setProps({editable:()=>r.editable})}),t({focus:()=>d.focus()});const A=({target:M,action:L})=>{if(!M&&a.value!==r.elementId||M&&M!==r.elementId)return;const T="command"in L?[L]:L;for(const w of T)if(w.command==="fontname"&&w.value!==void 0){const P=d.state.schema.marks.fontname.create({fontname:w.value});pi(d),Vl(d,P),w.value&&!document.fonts.check(`16px ${w.value}`)&&un.warning("字体需要等待加载下载后生效,请稍等")}else if(w.command==="fontsize"&&w.value){const P=d.state.schema.marks.fontsize.create({fontsize:w.value});pi(d),Vl(d,P),E1(d,{key:"fontsize",value:w.value})}else if(w.command==="fontsize-add"){const P=w.value?+w.value:2;pi(d);const k=q7(d)+P+"px",N=d.state.schema.marks.fontsize.create({fontsize:k});Vl(d,N),E1(d,{key:"fontsize",value:k})}else if(w.command==="fontsize-reduce"){const P=w.value?+w.value:2;pi(d);let k=q7(d)-P;k<12&&(k=12);const N=d.state.schema.marks.fontsize.create({fontsize:k+"px"});Vl(d,N),E1(d,{key:"fontsize",value:k+"px"})}else if(w.command==="color"&&w.value){const P=d.state.schema.marks.forecolor.create({color:w.value});pi(d),Vl(d,P),E1(d,{key:"color",value:w.value})}else if(w.command==="backcolor"&&w.value){const P=d.state.schema.marks.backcolor.create({backcolor:w.value});pi(d),Vl(d,P)}else if(w.command==="bold")pi(d),si(d.state.schema.marks.strong)(d.state,d.dispatch);else if(w.command==="em")pi(d),si(d.state.schema.marks.em)(d.state,d.dispatch);else if(w.command==="underline")pi(d),si(d.state.schema.marks.underline)(d.state,d.dispatch);else if(w.command==="strikethrough")pi(d),si(d.state.schema.marks.strikethrough)(d.state,d.dispatch);else if(w.command==="subscript")si(d.state.schema.marks.subscript)(d.state,d.dispatch);else if(w.command==="superscript")si(d.state.schema.marks.superscript)(d.state,d.dispatch);else if(w.command==="blockquote")qR("blockquote",d.state)?a0e(d.state,d.dispatch):p0e(d.state.schema.nodes.blockquote)(d.state,d.dispatch);else if(w.command==="code")si(d.state.schema.marks.code)(d.state,d.dispatch);else if(w.command==="align"&&w.value)GMe(d,w.value);else if(w.command==="indent"&&w.value)JMe(d,+w.value);else if(w.command==="textIndent"&&w.value)$Me(d,+w.value);else if(w.command==="bulletList"){const P=w.value||"",{bullet_list:k,list_item:N}=d.state.schema.nodes,C={color:l.value.color,fontsize:l.value.fontsize};Zx(k,N,P,C)(d.state,d.dispatch)}else if(w.command==="orderedList"){const P=w.value||"",{ordered_list:k,list_item:N}=d.state.schema.nodes,C={color:l.value.color,fontsize:l.value.fontsize};Zx(k,N,P,C)(d.state,d.dispatch)}else if(w.command==="clear"){pi(d);const{$from:P,$to:k}=d.state.selection;d.dispatch(d.state.tr.removeMark(P.pos,k.pos)),E1(d,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(w.command==="link"){const P=d.state.schema.marks.link,{from:k,to:N}=d.state.selection,C=y0e(d.state.doc,k,N,P);if(C)if(w.value){const I=d.state.schema.marks.link.create({href:w.value,title:w.value});Vl(d,I,{from:C.from.pos,to:C.to.pos+1})}else d.dispatch(d.state.tr.removeMark(C.from.pos,C.to.pos+1,P));else if(x0e(d.state,P))if(w.value){const I=d.state.schema.marks.link.create({href:w.value,title:w.value});Vl(d,I)}else si(P)(d.state,d.dispatch);else w.value&&(pi(d),si(P,{href:w.value,title:w.value})(d.state,d.dispatch))}else w.command==="insert"&&w.value&&d.dispatch(d.state.tr.insertText(w.value));d.focus(),h(),g()},x=()=>{if(!s.value)return;const{keep:M,...L}=s.value,T=[{command:"clear"}];for(const w of Object.keys(L)){const P=w,k=s.value[w];k===!0?T.push({command:P}):k&&T.push({command:P,value:k})}A({action:T}),M||o.setTextFormatPainter(null)};Wt(()=>{d=RJ(f.value,y.value,{handleDOMEvents:{focus:p,blur:v,keydown:m,click:g,mouseup:x},editable:()=>r.editable}),r.autoFocus&&d.focus()}),En(()=>{d&&d.destroy()});const S=()=>{a.value===r.elementId&&g()};return Gi.on(Ti.RICH_TEXT_COMMAND,A),Gi.on(Ti.SYNC_RICH_TEXT_ATTRS_TO_STORE,S),En(()=>{Gi.off(Ti.RICH_TEXT_COMMAND,A),Gi.off(Ti.SYNC_RICH_TEXT_ATTRS_TO_STORE,S)}),(M,L)=>(U(),ee("div",{class:Ge(["prosemirror-editor",{"format-painter":z(s)}]),ref_key:"editorViewRef",ref:f,onMousedown:L[0]||(L[0]=T=>i("mousedown",T))},null,34))}}),xJ=Be(jMe,[["__scopeId","data-v-32b03815"]]),SJ=e=>($t("data-v-3b68a2d9"),e=e(),jt(),e),qMe=SJ(()=>V("div",{class:"drag-handler top"},null,-1)),e5e=SJ(()=>V("div",{class:"drag-handler bottom"},null,-1)),t5e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{handleElementId:i,isScaling:o}=Ve(n),{addHistorySnapshot:a}=on(),s=he(),l=Se(()=>t.elementInfo.shadow),{shadowStyle:u}=vd(l),c=(y,R=!0)=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo,R))},f=he(-1),d=he(-1);Lt(o,()=>{i.value===t.elementInfo.id&&(o.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 A=R.height+20,x=R.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==A&&(o.value?f.value=A:r.updateElement({id:t.elementInfo.id,props:{height:A}})),t.elementInfo.vertical&&t.elementInfo.width!==x&&(o.value?d.value=x:r.updateElement({id:t.elementInfo.id,props:{width:x}}))},p=new ResizeObserver(h);Wt(()=>{s.value&&p.observe(s.value)}),En(()=>{s.value&&p.unobserve(s.value)});const v=(y,R=!1)=>{r.updateElement({id:t.elementInfo.id,props:{content:y}}),R||a()},g=Zn.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(t.elementInfo.id)},300,{trailing:!0}),m=Se(()=>i.value===t.elementInfo.id);return Lt(m,()=>{m.value||g()}),(y,R)=>{const A=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-text",{lock:y.elementInfo.lock}]),style:Me({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:Me({transform:`rotate(${y.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",ref_key:"elementRef",ref:s,style:Me({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:z(u),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]=x=>c(x)),onTouchstart:R[3]||(R[3]=x=>c(x))},[O(A3,{width:y.elementInfo.width,height:y.elementInfo.height,outline:y.elementInfo.outline},null,8,["width","height","outline"]),O(xJ,{class:"text",elementId:y.elementInfo.id,defaultColor:y.elementInfo.defaultColor,defaultFontName:y.elementInfo.defaultFontName,editable:!y.elementInfo.lock,value:y.elementInfo.content,style:Me({"--paragraphSpace":`${y.elementInfo.paragraphSpace===void 0?5:y.elementInfo.paragraphSpace}px`}),onUpdate:R[0]||(R[0]=({value:x,ignore:S})=>v(x,S)),onMousedown:R[1]||(R[1]=x=>c(x,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),qMe,e5e],36)),[[A,y.contextmenus]])],4)],6)}}}),wJ=Be(t5e,[["__scopeId","data-v-3b68a2d9"]]),MJ=(e,t)=>({fill:Se(()=>e.value.pattern?`url(#${t}-pattern-${e.value.id})`:e.value.gradient?`url(#${t}-gradient-${e.value.id})`:e.value.fill||"none")}),n5e=["id","gradientTransform"],r5e=["offset","stop-color"],i5e=["id"],o5e=["offset","stop-color"],LJ=Ee({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(e){return(t,n)=>t.type==="linear"?(U(),ee("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[(U(!0),ee(Ne,null,Je(t.colors,(r,i)=>(U(),ee("stop",{key:i,offset:`${r.pos}%`,"stop-color":r.color},null,8,r5e))),128))],8,n5e)):(U(),ee("radialGradient",{key:1,id:t.id},[(U(!0),ee(Ne,null,Je(t.colors,(r,i)=>(U(),ee("stop",{key:i,offset:`${r.pos}%`,"stop-color":r.color},null,8,o5e))),128))],8,i5e))}}),a5e=["id"],s5e=["href"],TJ=Ee({__name:"PatternDefs",props:{id:{},src:{}},setup(e){return(t,n)=>(U(),ee("pattern",{id:t.id,patternContentUnits:"objectBoundingBox",patternUnits:"objectBoundingBox",width:"1",height:"1"},[V("image",{href:t.src,width:"1",height:"1",preserveAspectRatio:"xMidYMid slice"},null,8,s5e)],8,a5e))}}),l5e=["width","height"],u5e=["transform"],c5e=["d","fill","stroke","stroke-width","stroke-dasharray"],f5e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{handleElementId:i,shapeFormatPainter:o}=Ve(n),{addHistorySnapshot:a}=on(),s=(w,P=!0)=>{t.elementInfo.lock||(w.stopPropagation(),t.selectElement(w,t.elementInfo,P))},l=()=>{if(!o.value)return;const{keep:w,...P}=o.value;r.updateElement({id:t.elementInfo.id,props:P}),a(),w||n.setShapeFormatPainter(null)},u=Se(()=>t.elementInfo),{fill:c}=MJ(u,"editable"),f=Se(()=>t.elementInfo.outline),{outlineWidth:d,outlineColor:h,strokeDashArray:p}=t1(f),v=Se(()=>t.elementInfo.shadow),{shadowStyle:g}=vd(v),m=Se(()=>t.elementInfo.flipH),y=Se(()=>t.elementInfo.flipV),{flipStyle:R}=y3(m,y),A=he(!1);Lt(i,()=>{i.value!==t.elementInfo.id&&A.value&&(A.value=!1)});const x=Se(()=>{const w={content:"",defaultFontName:"",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:w}),S=(w,P=!1)=>{const k={...x.value,content:w};r.updateElement({id:t.elementInfo.id,props:{text:k}}),P||a()},M=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},L=he(),T=()=>{A.value=!0,hr(()=>L.value&&L.value.focus())};return(w,P)=>{const k=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-shape",{lock:w.elementInfo.lock,"format-painter":z(o)}]),style:Me({top:w.elementInfo.top+"px",left:w.elementInfo.left+"px",width:w.elementInfo.width+"px",height:w.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Me({transform:`rotate(${w.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",style:Me({opacity:w.elementInfo.opacity,filter:z(g)?`drop-shadow(${z(g)})`:"",transform:z(R),color:x.value.defaultColor,fontFamily:x.value.defaultFontName}),onMousedown:P[3]||(P[3]=N=>s(N)),onMouseup:P[4]||(P[4]=N=>l()),onTouchstart:P[5]||(P[5]=N=>s(N)),onDblclick:P[6]||(P[6]=N=>T())},[(U(),ee("svg",{overflow:"visible",width:w.elementInfo.width,height:w.elementInfo.height},[V("defs",null,[w.elementInfo.pattern?(U(),Te(TJ,{key:0,id:`editable-pattern-${w.elementInfo.id}`,src:w.elementInfo.pattern},null,8,["id","src"])):w.elementInfo.gradient?(U(),Te(LJ,{key:1,id:`editable-gradient-${w.elementInfo.id}`,type:w.elementInfo.gradient.type,colors:w.elementInfo.gradient.colors,rotate:w.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])):Ye("",!0)]),V("g",{transform:`scale(${w.elementInfo.width/w.elementInfo.viewBox[0]}, ${w.elementInfo.height/w.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:w.elementInfo.path,fill:z(c),stroke:z(h),"stroke-width":z(d),"stroke-dasharray":z(p)},null,8,c5e)],8,u5e)],8,l5e)),V("div",{class:Ge(["shape-text",[x.value.align,{editable:A.value||x.value.content}]])},[A.value||x.value.content?(U(),Te(xJ,{key:0,ref_key:"prosemirrorEditorRef",ref:L,elementId:w.elementInfo.id,defaultColor:x.value.defaultColor,defaultFontName:x.value.defaultFontName,editable:!w.elementInfo.lock,value:x.value.content,onUpdate:P[0]||(P[0]=({value:N,ignore:C})=>S(N,C)),onBlur:P[1]||(P[1]=N=>M()),onMousedown:P[2]||(P[2]=N=>s(N,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Ye("",!0)],2)],36)),[[k,w.contextmenus]])],4)],6)}}}),_J=Be(f5e,[["__scopeId","data-v-5705d9f9"]]),d5e=["id","markerWidth","markerHeight","refX","refY"],h5e=["d","fill","transform"],jf=Ee({__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},i=Se(()=>n[t.type]),o=Se(()=>r[`${t.type}-${t.position}`]||0),a=Se(()=>t.baseSize<2?2:t.baseSize);return(s,l)=>(U(),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:i.value,fill:s.color,transform:`scale(${a.value*.3}, ${a.value*.3}) rotate(${o.value}, 5, 5)`},null,8,h5e)],8,d5e))}}),p5e=["width","height"],v5e=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],g5e=["d"],m5e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=u=>{t.elementInfo.lock||(u.stopPropagation(),t.selectElement(u,t.elementInfo))},r=Se(()=>t.elementInfo.shadow),{shadowStyle:i}=vd(r),o=Se(()=>{const u=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return u<24?24:u}),a=Se(()=>{const u=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return u<24?24:u}),s=Se(()=>{const u=t.elementInfo.width;return t.elementInfo.style==="dashed"?u<=8?`${u*5} ${u*2.5}`:`${u*5} ${u*1.5}`:t.elementInfo.style==="dotted"?u<=8?`${u*1.8} ${u*1.6}`:`${u*1.5} ${u*1.2}`:"0 0"}),l=Se(()=>tk(t.elementInfo));return(u,c)=>{const f=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-shape",{lock:u.elementInfo.lock}]),style:Me({top:u.elementInfo.top+"px",left:u.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Me({filter:z(i)?`drop-shadow(${z(i)})`:""}),onMousedown:c[0]||(c[0]=d=>n(d)),onTouchstart:c[1]||(c[1]=d=>n(d))},[(U(),ee("svg",{overflow:"visible",width:o.value,height:a.value},[V("defs",null,[u.elementInfo.points[0]?(U(),Te(jf,{key:0,id:u.elementInfo.id,position:"start",type:u.elementInfo.points[0],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0),u.elementInfo.points[1]?(U(),Te(jf,{key:1,id:u.elementInfo.id,position:"end",type:u.elementInfo.points[1],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0)]),V("path",{class:"line-point",d:l.value,stroke:u.elementInfo.color,"stroke-width":u.elementInfo.width,"stroke-dasharray":s.value,fill:"none","marker-start":u.elementInfo.points[0]?`url(#${u.elementInfo.id}-${u.elementInfo.points[0]}-start)`:"","marker-end":u.elementInfo.points[1]?`url(#${u.elementInfo.id}-${u.elementInfo.points[1]}-end)`:""},null,8,v5e),ze(V("path",{class:"line-path",d:l.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,g5e),[[f,u.contextmenus]])],8,p5e))],36)],6)}}}),OJ=Be(m5e,[["__scopeId","data-v-9dc09347"]]),y5e=({type:e,data:t,themeColors:n,textColor:r,lineSmooth:i,stack:o})=>{if(e==="bar")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"bar",label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="column")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,yAxis:{type:"category",data:t.labels},xAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"bar",label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="line")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"line",smooth:i,label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="pie")return{color:n,textStyle:r?{color:r}:{},legend:{top:"bottom",textStyle:r?{color:r}:{}},series:[{data:t.series[0].map((a,s)=>({value:a,name:t.labels[s]})),label:r?{color:r}:{},type:"pie",radius:"70%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(e==="ring")return{color:n,textStyle:r?{color:r}:{},legend:{top:"bottom",textStyle:r?{color:r}:{}},series:[{data:t.series[0].map((a,s)=>({value:a,name:t.labels[s]})),label:r?{color:r}:{},type:"pie",radius:["40%","70%"],padAngle:1,avoidLabelOverlap:!1,itemStyle:{borderRadius:4},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(e==="area")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",boundaryGap:!1,data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"line",areaStyle:{},label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="radar")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,radar:{indicator:t.labels.map(a=>({name:a}))},series:[{data:t.series.map((a,s)=>({value:a,name:t.legends[s]})),type:"radar"}]};if(e==="scatter"){const a=[];for(let s=0;s0?2:0),T_(g,function(y,R){g[R]==="inherit"&&(g[R]=m[R])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:v_(f,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!o){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function iNe(e){var t=e.icon||"roundRect",n=od(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function DU(e,t,n,r){O_(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),__(e,t,n,r)}function dee(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],g=[-h.x,-h.y];r||(g[o]=c[u]);var m=[0,0],y=[-p.x,-p.y],R=ln(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var A=n.get("pageButtonPosition",!0);A==="end"?y[o]+=i[a]-p[a]:m[o]+=p[a]+R}y[1-o]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[a]=v?i[a]:h[a],x[s]=Math.max(h[s],p[s]),x[l]=Math.min(0,p[l]+y[1-o]),f.__rectSize=i[a],v){var S={x:0,y:0};S[a]=Math.max(i[a]-p[a]-R,0),S[s]=x[s],f.setClipPath(new ki({shape:S})),f.__rectSize=S[a]}else d.eachChild(function(L){L.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(n);return M.pageIndex!=null&&mo(c,{x:M.contentPosition[0],y:M.contentPosition[1]},v?n:null),this._updatePageInfoView(n,M),x},t.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;ke(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",Kt(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=jL[a],l=qL[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=A(f);p.contentPosition[a]=-v.s;for(var g=u+1,m=v,y=v,R=null;g<=d;++g)R=A(c[g]),(!R&&y.e>m.s+o||R&&!x(R,m.s))&&(y.i>m.i?m=y:m=R,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=R;for(var g=u-1,m=v,y=v,R=null;g>=-1;--g)R=A(c[g]),(!R||!x(y,R.s))&&m.i=M&&S.s<=M+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t}(fee);function uNe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function cNe(e){i0(hee),e.registerComponentModel(sNe),e.registerComponentView(lNe),uNe(e)}function fNe(e){i0(hee),i0(cNe)}var e8=Math.sin,t8=Math.cos,pee=Math.PI,th=Math.PI*2,dNe=180/pee,vee=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){this._add("C",t,n,r,i,o,a)},e.prototype.quadraticCurveTo=function(t,n,r,i){this._add("Q",t,n,r,i)},e.prototype.arc=function(t,n,r,i,o,a){this.ellipse(t,n,r,r,0,i,o,a)},e.prototype.ellipse=function(t,n,r,i,o,a,s,l){var u=s-a,c=!l,f=Math.abs(u),d=_f(f-th)||(c?u>=th:-u>=th),h=u>0?u%th:u%th+th,p=!1;d?p=!0:_f(f)?p=!1:p=h>=pee==!!c;var v=t+r*t8(a),g=n+i*e8(a);this._start&&this._add("M",v,g);var m=Math.round(o*dNe);if(d){var y=1/this._p,R=(c?1:-1)*(th-y);this._add("A",r,i,m,1,+c,t+r*t8(a+R),n+i*e8(a+R)),y>.01&&this._add("A",r,i,m,0,+c,v,g)}else{var A=t+r*t8(s),x=n+i*e8(s);this._add("A",r,i,m,+p,+c,A,x)}},e.prototype.rect=function(t,n,r,i){this._add("M",t,n),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,i,o,a,s,l,u){for(var c=[],f=this._p,d=1;d"}function bNe(e){return""}function QP(e,t){t=t||{};var n=t.newline?` `:"";function r(i){var o=i.children,a=i.tag,s=i.attrs,l=i.text;return RNe(a,s)+(a!=="style"?q5e(l):l||"")+(o?""+n+Ot(o,function(u){return r(u)}).join(n)+n:"")+bNe(a)}return r(e)}function xNe(e,t,n){n=n||{};var r=n.newline?` -`:"",i=" {"+r,o=r+"}",a=Ot(Un(e),function(l){return l+i+Ot(Un(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+o}).join(r),s=Ot(Un(t),function(l){return"@keyframes "+l+i+Ot(Un(t[l]),function(u){return u+i+Ot(Un(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+o}).join(r)+o}).join(r);return!a&&!s?"":[""].join(r)}function P_(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ZU(e,t,n,r){return Ai("svg","root",{width:e,height:t,xmlns:gee,"xmlns:xlink":mee,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var SNe=0;function Aee(){return SNe++}var QU={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},lh="transform-origin";function wNe(e,t,n){var r=vt({},e.shape);vt(r,t),e.buildPath(n,r);var i=new vee;return i.reset(e$(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function MNe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[lh]=n+"px "+r+"px")}var LNe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ree(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function TNe(e,t,n){var r=e.shape.paths,i={},o,a;if(ke(r,function(l){var u=P_(n.zrId);u.animation=!0,e4(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Un(c),h=d.length;if(h){a=d[h-1];var p=c[a];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(a)>=0&&(o=y)}}}),!!o){t.d=!1;var s=Ree(i,n);return o.replace(a,s)}}function HU(e){return Kt(e)?QU[e]?"cubic-bezier("+QU[e]+")":$k(e)?e:"":""}function e4(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof Y$){var s=TNe(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0}).length){var de=Ree(M,n);return de+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+Aee();n.cssNodes["."+m]={animation:a.join(",")},t.class=m}}function _Ne(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};KU(r,t,n)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=W6(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),KU(r,t,n)}}function KU(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+Aee(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=e),t.class=t.class?t.class+" "+o:o}var L2=Math.round;function bee(e){return e&&Kt(e.src)}function xee(e){return e&&Rn(e.toDataURL)}function HP(e,t,n,r){mNe(function(i,o){var a=i==="fill"||i==="stroke";a&&qJ(o)?wee(t,e,i,r):a&&jk(o)?Mee(n,e,i,r):a&&o==="none"?e[i]="transparent":e[i]=o},t,n,!1),FNe(n,e,r)}function KP(e,t){var n=o8e(t);n&&(n.each(function(r,i){r!=null&&(e[(YU+i).toLowerCase()]=r+"")}),t.isSilent()&&(e[YU+"silent"]="true"))}function GU(e){return _f(e[0]-1)&&_f(e[1])&&_f(e[2])&&_f(e[3]-1)}function ONe(e){return _f(e[4])&&_f(e[5])}function GP(e,t,n){if(t&&!(ONe(t)&&GU(t))){var r=1e4;e.transform=GU(t)?"translate("+L2(t[4]*r)/r+" "+L2(t[5]*r)/r+")":_Le(t)}}function zU(e,t,n){for(var r=e.points,i=[],o=0;o"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";yu(d,g),yu(h,g)}else if(d==null||h==null){var m=function(w,P){if(w){var k=w.elm,N=d||P.width,C=h||P.height;w.tag==="pattern"&&(u?(C=1,N/=o.width):c&&(N=1,C/=o.height)),w.attrs.width=N,w.attrs.height=C,k&&(k.setAttribute("width",N),k.setAttribute("height",C))}},y=iP(p,null,e,function(w){l||m(S,w),m(f,w)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=Ai("image","img",{href:p,width:d,height:h}),a.width=d,a.height=h}else i.svgElement&&(f=Dn(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(f){var R,A;l?R=A=1:u?(A=1,R=a.width/o.width):c?(R=1,A=a.height/o.height):a.patternUnits="userSpaceOnUse",R!=null&&!isNaN(R)&&(a.width=R),A!=null&&!isNaN(A)&&(a.height=A);var x=t$(i);x&&(a.patternTransform=x);var S=Ai("pattern","",a,[f]),M=QP(S),L=r.patternCache,T=L[M];T||(T=r.zrId+"-p"+r.patternIdx++,L[M]=T,a.id=T,S=r.defs[T]=Ai("pattern",T,a,[f])),t[n]=L3(T)}}function ENe(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[e.id]=o,i[o]=Ai("clipPath",o,a,[See(e,n)])}t["clip-path"]=L3(o)}function jU(e){return document.createTextNode(e)}function ph(e,t,n){e.insertBefore(t,n)}function qU(e,t){e.removeChild(t)}function eB(e,t){e.appendChild(t)}function Lee(e){return e.parentNode}function Tee(e){return e.nextSibling}function n8(e,t){e.textContent=t}var tB=58,XNe=120,WNe=Ai("","");function C_(e){return e===void 0}function Ql(e){return e!==void 0}function VNe(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;o!==void 0&&(r[o]=i)}return r}function Wg(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function T2(e){var t,n=e.children,r=e.tag;if(Ql(r)){var i=e.elm=yee(r);if(zP(WNe,e),Ft(n))for(t=0;to?(p=n[l+1]==null?null:n[l+1].elm,_ee(e,p,n,i,l)):mS(e,t,r,o))}function Mp(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(zP(e,t),C_(t.text)?Ql(r)&&Ql(i)?r!==i&&DNe(n,r,i):Ql(i)?(Ql(e.text)&&n8(n,""),_ee(n,null,i,0,i.length-1)):Ql(r)?mS(n,r,0,r.length-1):Ql(e.text)&&n8(n,""):e.text!==t.text&&(Ql(r)&&mS(n,r,0,r.length-1),n8(n,t.text)))}function UNe(e,t){if(Wg(e,t))Mp(e,t);else{var n=e.elm,r=Lee(n);T2(t),r!==null&&(ph(r,t.elm,Tee(n)),mS(r,[e],0,0))}return t}var BNe=0,YNe=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=nB(),this.configLayer=nB(),this.storage=n,this._opts=r=vt({},r),this.root=t,this._id="zr"+BNe++,this._oldVNode=ZU(r.width,r.height),t&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=yee("svg");zP(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",UNe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return $U(t,P_(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=P_(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis;var a=[],s=this._bgVNode=ZNe(r,i,this._backgroundColor,o);s&&a.push(s);var l=t.compress?null:this._mainVNode=Ai("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var u=Ot(Un(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(Ai("defs","defs",{},u)),t.animation){var c=xNe(o.cssNodes,o.cssAnims,{newline:!0});if(c){var f=Ai("style","stl",{},[],c);a.push(f)}}return ZU(r,i,a,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},QP(this.renderToVNode({animation:ln(t.cssAnimation,!0),emphasis:ln(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ln(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var i=t.length,o=[],a=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)a--,s=o[a-1];for(var m=v+1;m{let a=[];if(t.themeColors.length>=10)a=t.themeColors;else if(t.themeColors.length===1)a=ot(t.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=t.themeColors.length,l=ot(t.themeColors[s-1]).analogous(11-s).map(u=>u.toRgbString());a=[...t.themeColors.slice(0,s-1),...l]}return a}),o=()=>{var s,l;const a=y5e({type:t.type,data:t.data,themeColors:i.value,textColor:t.textColor,lineSmooth:((s=t.options)==null?void 0:s.lineSmooth)||!1,stack:((l=t.options)==null?void 0:l.stack)||!1});a&&n.setOption(a,!0)};return Wt(()=>{n=Vke(r.value,null,{renderer:"svg"}),o();const a=()=>n.resize();new ResizeObserver(a).observe(r.value)}),Lt(()=>t.type,o),Lt(()=>t.data,o),Lt(()=>t.themeColors,o),Lt(()=>t.textColor,o),(a,s)=>(U(),ee("div",{class:"chart",ref_key:"chartRef",ref:r},null,512))}}),Oee=Be(HNe,[["__scopeId","data-v-1e5b5ad9"]]),KNe=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))},r=()=>{Gi.emit(Ti.OPEN_CHART_DATA_EDITOR)};return(i,o)=>{const a=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-chart",{lock:i.elementInfo.lock}]),style:we({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${i.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",style:we({backgroundColor:i.elementInfo.fill}),onMousedown:o[0]||(o[0]=s=>n(s)),onTouchstart:o[1]||(o[1]=s=>n(s)),onDblclick:o[2]||(o[2]=s=>r())},[O(A3,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),O(Oee,{width:i.elementInfo.width,height:i.elementInfo.height,type:i.elementInfo.chartType,data:i.elementInfo.data,themeColors:i.elementInfo.themeColors,textColor:i.elementInfo.textColor,options:i.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],36)),[[a,i.contextmenus]])],4)],6)}}}),kee=Be(KNe,[["__scopeId","data-v-3b1105a2"]]),Pee=e=>{if(!e)return{};const{bold:t,em:n,underline:r,strikethrough:i,color:o,backcolor:a,fontsize:s,fontname:l,align:u}=e;let c=`${r?"underline":""} ${i?"line-through":""}`;return c===" "&&(c="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:c,color:o||"#000",backgroundColor:a||"",fontSize:s||"14px",fontFamily:l||"",textAlign:u||"left"}},Cee=e=>e.replace(/\n/g,"
    ").replace(/ /g," "),Iee=e=>({hideCells:Se(()=>{const n=[];for(let r=0;r1||a.rowspan>1)for(let s=r;s{const t=he(["",""]);return Lt(()=>e.value,()=>{e.value&&(t.value=JH(e.value.color))},{immediate:!0}),{subThemeColor:t}},GNe=["innerHTML"],zNe=Ee({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,r=t,i=he(),o=he(""),a=he(!1);Lt(()=>n.value,()=>{a.value||(o.value=n.value,i.value&&(i.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!i.value)return;const c=i.value.innerHTML;r("updateValue",c)},l=()=>{a.value=!0,i.value&&(i.value.onpaste=c=>{if(c.preventDefault(),!c.clipboardData)return;const f=c.clipboardData.items[0];f&&f.kind==="string"&&f.type==="text/plain"&&f.getAsString(d=>{if(typeof ek(d)=="object")return;const p=KH(d);if(p){r("insertExcelData",p),i.value&&(i.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)})})},u=()=>{a.value=!1,i.value&&(i.value.onpaste=null)};return s0(()=>{i.value&&(i.value.onpaste=null)}),(c,f)=>(U(),ee("div",{class:"custom-textarea",ref_key:"textareaRef",ref:i,contenteditable:!0,onFocus:f[0]||(f[0]=d=>l()),onBlur:f[1]||(f[1]=d=>u()),onInput:f[2]||(f[2]=d=>s()),innerHTML:o.value},null,40,GNe))}}),JNe=Be(zNe,[["__scopeId","data-v-cfadb975"]]),$Ne={key:0,class:"handler"},jNe=["onMousedown"],qNe=["width"],e7e=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],t7e=["innerHTML"],n7e=Ee({__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:i}=Ve(pt()),o=he(!1),a=he([]),s=he([]),l=Se({get(){return n.data},set(ue){r("change",ue)}}),u=Se(()=>n.theme),{subThemeColor:c}=Nee(u),f=he([]),d=Se(()=>f.value.reduce((ue,fe)=>ue+fe));Lt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(ue=>ue*n.width)},{immediate:!0});const h=()=>{a.value=[],s.value=[]};Lt(()=>n.editable,()=>{n.editable||h()});const p=Se(()=>{const ue=[];for(let fe=1;feq+E);ue.push(se)}return ue}),v=Se(()=>n.data),{hideCells:g}=Iee(v),m=Se(()=>{if(!a.value.length)return[];const[ue,fe]=a.value;if(!s.value.length)return[`${ue}_${fe}`];const[se,q]=s.value;if(ue===se&&fe===q)return[`${ue}_${fe}`];const E=[],te=Math.min(ue,se),le=Math.min(fe,q),ne=Math.max(ue,se),re=Math.max(fe,q);for(let ae=0;ae=te&&ae<=ne&&ce>=le&&ce<=re&&E.push(`${ae}_${ce}`)}return E});Lt(m,(ue,fe)=>{Zn.isEqual(ue,fe)||r("changeSelectedCells",m.value)});const y=Se(()=>m.value.length>1?null:m.value[0]),R=()=>o.value=!1,A=(ue,fe,se)=>{ue.button===0&&(s.value=[],o.value=!0,a.value=[fe,se])},x=(ue,fe)=>{o.value&&(s.value=[ue,fe])};Wt(()=>{document.addEventListener("mouseup",R)}),En(()=>{document.removeEventListener("mouseup",R)});const S=(ue,fe)=>g.value.includes(`${ue}_${fe}`),M=ue=>{const fe=l.value.length-1;a.value=[0,ue],s.value=[fe,ue]},L=ue=>{const fe=l.value[ue].length-1;a.value=[ue,0],s.value=[ue,fe]},T=()=>{const ue=l.value.length-1,fe=l.value[ue].length-1;a.value=[0,0],s.value=[ue,fe]},w=ue=>{const fe=JSON.parse(JSON.stringify(l.value)),se=l.value[ue],q=[];for(let E=0;E=0;te--)if(!S(te,E)){fe[te][E].rowspan=fe[te][E].rowspan-1;break}fe.splice(ue,1),l.value=fe},P=ue=>{const fe=JSON.parse(JSON.stringify(l.value)),se=[];for(let q=0;q=0;E--)if(!S(q,E)){fe[q][E].colspan=fe[q][E].colspan-1;break}l.value=fe.map(q=>(q.splice(ue,1),q)),f.value.splice(ue,1),r("changeColWidths",f.value)},k=ue=>{const fe=JSON.parse(JSON.stringify(l.value)),se=[];for(let q=0;q{l.value=l.value.map(fe=>{const se={colspan:1,rowspan:1,text:"",id:Qt(10)};return fe.splice(ue,0,se),fe}),f.value.splice(ue,0,100),r("changeColWidths",f.value)},C=(ue,fe)=>{let se=JSON.parse(JSON.stringify(l.value));const q={colspan:1,rowspan:1,text:""};if(ue){const E=[];for(let te=0;te{const te=[];for(let le=0;le{const[ue,fe]=a.value,[se,q]=s.value,E=Math.min(ue,se),te=Math.min(fe,q),le=Math.max(ue,se),ne=Math.max(fe,q),re=JSON.parse(JSON.stringify(l.value));re[E][te].rowspan=le-E+1,re[E][te].colspan=ne-te+1,l.value=re,h()},F=(ue,fe)=>{const se=JSON.parse(JSON.stringify(l.value));se[ue][fe].rowspan=1,se[ue][fe].colspan=1,l.value=se,h()},W=(ue,fe)=>{h();let se=!0;const q=f.value[fe],E=ue.pageX,te=50;document.onmousemove=le=>{if(!se)return;const ne=(le.pageX-E)/i.value,re=q+ne{se=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},B=()=>{const ue=JSON.parse(JSON.stringify(l.value));for(let fe=0;fe{hr(()=>{const ue=document.querySelector(".cell-text.active");ue&&ue.focus()})},j=()=>{const ue=(E,te)=>l.value[E]?l.value[E][te]?S(E,te)?ue(E,te+1):[E,te]:ue(E+1,0):null;s.value=[];const fe=a.value[0],se=a.value[1]+1,q=ue(fe,se);q?a.value=q:(k(fe+1),a.value=[fe+1,0]),K()},D=ue=>{const fe=+m.value[0].split("_")[0],se=+m.value[0].split("_")[1],q=l.value.length,E=l.value[0].length,te=le=>{if(le[0]<0||le[1]<0||le[0]>q-1||le[1]>E-1)return[0,0];const ne=`${le[0]}_${le[1]}`;return g.value.includes(ne)?ue==="UP"?te([le[0],le[1]-1]):ue==="DOWN"?te([le[0],le[1]-1]):ue==="LEFT"?te([le[0]-1,le[1]]):ue==="RIGHT"?te([le[0]-1,le[1]]):[0,0]:le};if(ue==="UP"){const le=fe-1;if(le<0)return;s.value=[],a.value=te([le,se])}else if(ue==="DOWN"){const le=fe+1;if(le>q-1)return;s.value=[],a.value=te([le,se])}else if(ue==="LEFT"){const le=se-1;if(le<0)return;s.value=[],a.value=te([fe,le])}else if(ue==="RIGHT"){const le=se+1;if(le>E-1)return;s.value=[],a.value=te([fe,le])}K()},Y=ue=>{var se;const fe=window.getSelection();if(fe&&fe.rangeCount>0){const q=fe.getRangeAt(0),E=q.cloneRange();E.selectNodeContents(ue),E.setEnd(q.startContainer,q.startOffset);const te=E.toString().length;E.setEnd(q.endContainer,q.endOffset);const le=E.toString().length,ne=((se=ue.textContent)==null?void 0:se.length)||0;return{start:te,end:le,len:ne}}return null},Z=ue=>{if(!n.editable||!m.value.length)return;const fe=ue.key.toUpperCase();if(m.value.length<2){if(fe===yt.TAB)ue.preventDefault(),j();else if(ue.ctrlKey&&fe===yt.UP){ue.preventDefault();const se=+m.value[0].split("_")[0];k(se)}else if(ue.ctrlKey&&fe===yt.DOWN){ue.preventDefault();const se=+m.value[0].split("_")[0];k(se+1)}else if(ue.ctrlKey&&fe===yt.LEFT){ue.preventDefault();const se=+m.value[0].split("_")[1];N(se)}else if(ue.ctrlKey&&fe===yt.RIGHT){ue.preventDefault();const se=+m.value[0].split("_")[1];N(se+1)}else if(fe===yt.UP){const se=Y(ue.target);se&&se.start===se.end&&se.start===0&&D("UP")}else if(fe===yt.DOWN){const se=Y(ue.target);se&&se.start===se.end&&se.start===se.len&&D("DOWN")}else if(fe===yt.LEFT){const se=Y(ue.target);se&&se.start===se.end&&se.start===0&&D("LEFT")}else if(fe===yt.RIGHT){const se=Y(ue.target);se&&se.start===se.end&&se.start===se.len&&D("RIGHT")}}else fe===yt.DELETE&&B()};Wt(()=>{document.addEventListener("keydown",Z)}),En(()=>{document.removeEventListener("keydown",Z)});const H=Zn.debounce(function(ue,fe,se){l.value[fe][se].text=ue,r("change",l.value)},300,{trailing:!0}),$=(ue,fe,se)=>{const q=ue.length,E=ue[0].length;let te=0,le=0;fe+q>l.value.length&&(te=fe+q-l.value.length),se+E>l.value[0].length&&(le=se+E-l.value[0].length),(te||le)&&C(te,le),hr(()=>{for(let ne=0;ne{const ue=[];for(let fe=0;fe{const ue=G(),fe=ue.length>1,se=ue[0].length>1;return{canDeleteRow:fe,canDeleteCol:se}},J=(ue,fe)=>{const se=m.value.length>1,q=l.value[ue][fe],E=se,te=!se&&(q.rowspan>1||q.colspan>1);return{canMerge:E,canSplit:te}},Ae=ue=>{const fe=ue.dataset.cellIndex,se=+fe.split("_")[0],q=+fe.split("_")[1];m.value.includes(`${se}_${q}`)||(a.value=[se,q],s.value=[]);const{canMerge:E,canSplit:te}=J(se,q),{canDeleteRow:le,canDeleteCol:ne}=de();return[{text:"插入列",children:[{text:"到左侧",handler:()=>N(q)},{text:"到右侧",handler:()=>N(q+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>k(se)},{text:"到下方",handler:()=>k(se+1)}]},{text:"删除列",disable:!ne,handler:()=>P(q)},{text:"删除行",disable:!le,handler:()=>w(se)},{divider:!0},{text:"合并单元格",disable:!E,handler:I},{text:"取消合并单元格",disable:!te,handler:()=>F(se,q)},{divider:!0},{text:"选中当前列",handler:()=>M(q)},{text:"选中当前行",handler:()=>L(se)},{text:"选中全部单元格",handler:T}]};return(ue,fe)=>{var q,E,te,le,ne;const se=_n("contextmenu");return U(),ee("div",{class:"editable-table",style:we({width:d.value+"px"})},[ue.editable?(U(),ee("div",$Ne,[(U(!0),ee(Ne,null,Je(p.value,(re,ae)=>(U(),ee("div",{class:"drag-line",key:ae,style:we({left:re+"px"}),onMousedown:ve=>W(ve,ae)},null,44,jNe))),128))])):Ye("",!0),V("table",{class:Ge({theme:u.value,"row-header":(q=u.value)==null?void 0:q.rowHeader,"row-footer":(E=u.value)==null?void 0:E.rowFooter,"col-header":(te=u.value)==null?void 0:te.colHeader,"col-footer":(le=u.value)==null?void 0:le.colFooter}),style:we(`--themeColor: ${(ne=u.value)==null?void 0:ne.color}; --subThemeColor1: ${z(c)[0]}; --subThemeColor2: ${z(c)[1]}`)},[V("colgroup",null,[(U(!0),ee(Ne,null,Je(f.value,(re,ae)=>(U(),ee("col",{span:"1",key:ae,width:re},null,8,qNe))),128))]),V("tbody",null,[(U(!0),ee(Ne,null,Je(l.value,(re,ae)=>(U(),ee("tr",{key:ae,style:we({height:ue.cellMinHeight+"px"})},[(U(!0),ee(Ne,null,Je(re,(ve,ce)=>ze((U(),ee("td",{class:Ge(["cell",{selected:m.value.includes(`${ae}_${ce}`)&&m.value.length>1,active:y.value===`${ae}_${ce}`}]),style:we({borderStyle:ue.outline.style,borderColor:ue.outline.color,borderWidth:ue.outline.width+"px",...z(Pee)(ve.style)}),key:ve.id,rowspan:ve.rowspan,colspan:ve.colspan,"data-cell-index":`${ae}_${ce}`,onMousedown:ge=>A(ge,ae,ce),onMouseenter:ge=>x(ae,ce)},[y.value===`${ae}_${ce}`?(U(),Te(JNe,{key:0,class:Ge(["cell-text",{active:y.value===`${ae}_${ce}`}]),style:we({minHeight:ue.cellMinHeight-4+"px"}),value:ve.text,onUpdateValue:ge=>z(H)(ge,ae,ce),onInsertExcelData:ge=>$(ge,ae,ce)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(U(),ee("div",{key:1,class:"cell-text",style:we({minHeight:ue.cellMinHeight-4+"px"}),innerHTML:z(Cee)(ve.text)},null,12,t7e))],46,e7e)),[[hc,!z(g).includes(`${ae}_${ce}`)],[se,ge=>Ae(ge)]])),128))],4))),128))])],6)],4)}}}),r7e=Be(n7e,[["__scopeId","data-v-938823e2"]]),i7e={class:"element-content"},o7e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{canvasScale:i,handleElementId:o,isScaling:a}=Ve(n),s=he(),{addHistorySnapshot:l}=on(),u=y=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo))},c=he(!1);Lt(o,()=>{o.value!==t.elementInfo.id&&(c.value=!1)}),Lt(c,()=>{n.setDisableHotkeysState(c.value)});const f=()=>{t.elementInfo.lock||(c.value=!0)},d=he(-1);Lt(a,()=>{o.value===t.elementInfo.id&&(a.value&&(c.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 A=R.height;t.elementInfo.height!==A&&(a.value?d.value=A:r.updateElement({id:t.elementInfo.id,props:{height:A}}))},p=new ResizeObserver(h);Wt(()=>{s.value&&p.observe(s.value)}),En(()=>{s.value&&p.unobserve(s.value)});const v=y=>{r.updateElement({id:t.elementInfo.id,props:{data:y}}),l()},g=y=>{const R=y.reduce((x,S)=>x+S),A=y.map(x=>x/R);r.updateElement({id:t.elementInfo.id,props:{width:R,colWidths:A}}),l()},m=y=>{hr(()=>n.setSelectedTableCells(y))};return(y,R)=>{const A=_n("contextmenu");return U(),ee("div",{class:Ge(["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)`})},[ze((U(),ee("div",i7e,[O(r7e,{onMousedown:R[0]||(R[0]=Nt(()=>{},["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:c.value,onChange:R[1]||(R[1]=x=>v(x)),onChangeColWidths:R[2]||(R[2]=x=>g(x)),onChangeSelectedCells:R[3]||(R[3]=x=>m(x))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!c.value||y.elementInfo.lock?(U(),ee("div",{key:0,class:Ge(["table-mask",{lock:y.elementInfo.lock}]),onDblclick:R[4]||(R[4]=x=>f()),onMousedown:R[5]||(R[5]=x=>u(x)),onTouchstart:R[6]||(R[6]=x=>u(x))},[z(o)===y.elementInfo.id?(U(),ee("div",{key:0,class:"mask-tip",style:we({transform:`scale(${1/z(i)})`})},"双击编辑",4)):Ye("",!0)],34)):Ye("",!0)])),[[A,y.contextmenus]])],4)],6)}}}),Fee=Be(o7e,[["__scopeId","data-v-7795910a"]]),a7e=["width","height","stroke","stroke-width"],s7e=["transform"],l7e=["d"],u7e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))},r=()=>{Gi.emit(Ti.OPEN_LATEX_EDITOR)};return(i,o)=>{const a=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-latex",{lock:i.elementInfo.lock}]),style:we({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${i.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",onMousedown:o[0]||(o[0]=s=>n(s)),onTouchstart:o[1]||(o[1]=s=>n(s)),onDblclick:o[2]||(o[2]=s=>r())},[(U(),ee("svg",{overflow:"visible",width:i.elementInfo.width,height:i.elementInfo.height,stroke:i.elementInfo.color,"stroke-width":i.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${i.elementInfo.width/i.elementInfo.viewBox[0]}, ${i.elementInfo.height/i.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:i.elementInfo.path},null,8,l7e)],8,s7e)],8,a7e))],32)),[[a,i.contextmenus]])],4)],6)}}}),Eee=Be(u7e,[["__scopeId","data-v-b73586f6"]]),c7e=(e,t)=>{Wt(()=>{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 i=new r;i.loadSource(e),i.attachMedia(t.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const i=r.createPlayer({type:"flv",url:e});i.attachMediaElement(t.value),i.load()}}})},JP=e=>($t("data-v-597c0901"),e=e(),jt(),e),f7e={key:0,class:"load-error"},d7e=["src","autoplay","poster"],h7e={class:"bezel"},p7e=JP(()=>V("div",{class:"controller-mask"},null,-1)),v7e={class:"controller"},g7e={class:"icons icons-left"},m7e={class:"icon-content"},y7e={class:"volume"},A7e={class:"icon-content"},R7e=JP(()=>V("span",{class:"thumb"},null,-1)),b7e=[R7e],x7e={class:"time"},S7e={class:"ptime"},w7e={class:"dtime"},M7e={class:"icons icons-right"},L7e={class:"speed"},T7e={class:"icon speed-icon"},_7e=["onClick"],O7e={class:"icon-content"},k7e={class:"bar"},P7e=JP(()=>V("span",{class:"thumb"},null,-1)),C7e=[P7e],I7e=Ee({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,n=(E=0)=>{if(E===0||isNaN(E))return"00:00";const te=ae=>ae<10?"0"+ae:""+ae,le=Math.floor(E/3600),ne=Math.floor((E-le*3600)/60),re=Math.floor(E-le*3600-ne*60);return(le>0?[le,ne,re]:[ne,re]).map(te).join(":")},r=E=>E.getBoundingClientRect().left,i=he(),o=he(),a=he(),s=he(.5),l=he(!0),u=he(0),c=he(0),f=he(0),d=he(!1),h=he(!1),p=he(1),v=he(!1),g=he("00:00"),m=he("0"),y=Se(()=>n(u.value)),R=Se(()=>n(c.value)),A=Se(()=>u.value/c.value*100+"%"),x=Se(()=>f.value/c.value*100+"%"),S=Se(()=>s.value*100+"%"),M=he(!1),L=[{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}],T=E=>{i.value&&(E=Math.max(E,0),E=Math.min(E,c.value),i.value.currentTime=E,u.value=E)},w=()=>{i.value&&(l.value=!1,i.value.play(),h.value=!0)},P=()=>{i.value&&(l.value=!0,i.value.pause(),h.value=!0)},k=()=>{l.value?w():P()},N=E=>{i.value&&(E=Math.max(E,0),E=Math.min(E,1),i.value.volume=E,s.value=E,i.value.muted&&E!==0&&(i.value.muted=!1))},C=E=>{i.value&&(i.value.playbackRate=E),p.value=E},I=()=>{var E;c.value=((E=i.value)==null?void 0:E.duration)||0},F=()=>{var E;u.value=((E=i.value)==null?void 0:E.currentTime)||0},W=()=>{d.value?(T(0),w()):P()},B=()=>{var E;f.value=(E=i.value)!=null&&E.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},K=he(!1),j=()=>K.value=!0,D=E=>{if(!i.value||!o.value)return;let le=(("clientX"in E?E.clientX:E.changedTouches[0].clientX)-r(o.value))/o.value.clientWidth;le=Math.max(le,0),le=Math.min(le,1);const ne=le*c.value;i.value.currentTime=ne,u.value=ne},Y=E=>{if(!i.value||!o.value)return;let le=(("clientX"in E?E.clientX:E.changedTouches[0].clientX)-r(o.value))/o.value.clientWidth;le=Math.max(le,0),le=Math.min(le,1);const ne=le*c.value;i.value.currentTime=ne,u.value=ne,document.removeEventListener("mousemove",D),document.removeEventListener("touchmove",D),document.removeEventListener("mouseup",Y),document.removeEventListener("touchend",Y)},Z=()=>{document.addEventListener("mousemove",D),document.addEventListener("touchmove",D),document.addEventListener("mouseup",Y),document.addEventListener("touchend",Y)},H=E=>{if(!a.value)return;const le=(("clientX"in E?E.clientX:E.changedTouches[0].clientX)-r(a.value))/45;N(le)},$=()=>{document.removeEventListener("mousemove",H),document.removeEventListener("touchmove",H),document.removeEventListener("mouseup",$),document.removeEventListener("touchend",$)},G=()=>{document.addEventListener("mousemove",H),document.addEventListener("touchmove",H),document.addEventListener("mouseup",$),document.addEventListener("touchend",$)},de=E=>{if(!a.value)return;const te=(E.clientX-r(a.value))/45;N(te)},J=E=>{if(c.value&&o.value){const te=o.value.getBoundingClientRect().left,le=E.clientX-te;if(le<0||le>o.value.offsetWidth)return;const ne=c.value*(le/o.value.offsetWidth);m.value=`${le-(ne>=3600?25:20)}px`,g.value=n(ne),v.value=!0}},Ae=()=>{i.value&&(i.value.muted?(i.value.muted=!1,N(.5)):(i.value.muted=!0,N(0)))},ue=()=>{d.value=!d.value},fe=he(-1),se=he(!1),q=()=>{se.value=!1,clearTimeout(fe.value),fe.value=setTimeout(()=>{var E;(E=i.value)!=null&&E.played.length&&(se.value=!0)},3e3)};return c7e(t.src,i),(E,te)=>{const le=xe("IconPause"),ne=xe("IconPlayOne"),re=xe("IconVolumeMute"),ae=xe("IconVolumeNotice"),ve=xe("IconVolumeSmall");return U(),ee("div",{class:Ge(["video-player",{"hide-controller":se.value}]),style:we({width:E.width*E.scale+"px",height:E.height*E.scale+"px",transform:`scale(${1/E.scale})`}),onMousemove:te[22]||(te[22]=ce=>q()),onClick:te[23]||(te[23]=ce=>q())},[V("div",{class:"video-wrap",onClick:te[8]||(te[8]=ce=>k())},[K.value?(U(),ee("div",f7e,"视频加载失败")):Ye("",!0),V("video",{class:"video",ref_key:"videoRef",ref:i,src:E.src,autoplay:E.autoplay,poster:E.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:te[0]||(te[0]=ce=>I()),onTimeupdate:te[1]||(te[1]=ce=>F()),onEnded:te[2]||(te[2]=ce=>W()),onProgress:te[3]||(te[3]=ce=>B()),onPlay:te[4]||(te[4]=ce=>{q(),l.value=!1}),onPause:te[5]||(te[5]=ce=>q()),onError:te[6]||(te[6]=ce=>j())},null,40,d7e),V("div",h7e,[V("span",{class:Ge(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:te[7]||(te[7]=ce=>h.value=!1)},[l.value?(U(),Te(le,{key:0})):(U(),Te(ne,{key:1}))],34)])]),p7e,V("div",v7e,[V("div",g7e,[V("div",{class:"icon play-icon",onClick:te[9]||(te[9]=ce=>k())},[V("span",m7e,[l.value?(U(),Te(ne,{key:0})):(U(),Te(le,{key:1}))])]),V("div",y7e,[V("div",{class:"icon volume-icon",onClick:te[10]||(te[10]=ce=>Ae())},[V("span",A7e,[s.value===0?(U(),Te(re,{key:0})):s.value===1?(U(),Te(ae,{key:1})):(U(),Te(ve,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:te[11]||(te[11]=ce=>G()),onTouchstart:te[12]||(te[12]=ce=>G()),onClick:te[13]||(te[13]=ce=>de(ce))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:a},[V("div",{class:"volume-bar-inner",style:we({width:S.value})},b7e,4)],512)],32)]),V("span",x7e,[V("span",S7e,dt(y.value),1),De(" / "),V("span",w7e,dt(R.value),1)])]),V("div",M7e,[V("div",L7e,[V("div",T7e,[V("span",{class:"icon-content",onClick:te[14]||(te[14]=ce=>M.value=!M.value)},dt(p.value===1?"倍速":p.value+"x"),1),M.value?(U(),ee("div",{key:0,class:"speed-menu",onMouseleave:te[15]||(te[15]=ce=>M.value=!1)},[(U(),ee(Ne,null,Je(L,ce=>V("div",{class:Ge(["speed-menu-item",{active:ce.value===p.value}]),key:ce.label,onClick:ge=>C(ce.value)},dt(ce.label),11,_7e)),64))],32)):Ye("",!0)])]),V("div",{class:"loop",onClick:te[16]||(te[16]=ce=>ue())},[V("div",{class:Ge(["icon loop-icon",{active:d.value}])},[V("span",O7e,"循环"+dt(d.value?"开":"关"),1)],2)])]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:te[17]||(te[17]=ce=>Z()),onTouchstart:te[18]||(te[18]=ce=>Z()),onMousemove:te[19]||(te[19]=ce=>J(ce)),onMouseenter:te[20]||(te[20]=ce=>v.value=!0),onMouseleave:te[21]||(te[21]=ce=>v.value=!1)},[V("div",{class:Ge(["bar-time",{hidden:!v.value}]),style:we({left:m.value})},dt(g.value),7),V("div",k7e,[V("div",{class:"loaded",style:we({width:x.value})},null,4),V("div",{class:"played",style:we({width:A.value})},C7e,4)])],544)])],38)}}}),Xee=Be(I7e,[["__scopeId","data-v-597c0901"]]),N7e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=(i,o=!0)=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo,o))};return(i,o)=>{const a=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-video",{lock:i.elementInfo.lock}]),style:we({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${i.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",onMousedown:o[2]||(o[2]=s=>r(s,!1)),onTouchstart:o[3]||(o[3]=s=>r(s,!1))},[O(Xee,{width:i.elementInfo.width,height:i.elementInfo.height,src:i.elementInfo.src,poster:i.elementInfo.poster,scale:z(n)},null,8,["width","height","src","poster","scale"]),(U(),ee(Ne,null,Je(["t","b","l","r"],s=>V("div",{class:Ge(["handler-border",s]),key:s,onMousedown:o[0]||(o[0]=l=>r(l)),onTouchstart:o[1]||(o[1]=l=>r(l))},null,34)),64))],32)),[[a,i.contextmenus]])],4)],6)}}}),Wee=Be(N7e,[["__scopeId","data-v-c50d3bc7"]]),Vee=e=>($t("data-v-32038f5c"),e=e(),jt(),e),F7e=["src","autoplay"],E7e={class:"controller"},X7e={class:"icons"},W7e={class:"icon-content"},V7e={class:"volume"},D7e={class:"icon-content"},U7e=Vee(()=>V("span",{class:"thumb"},null,-1)),B7e=[U7e],Y7e={class:"time"},Z7e={class:"ptime"},Q7e={class:"dtime"},H7e={class:"bar"},K7e=Vee(()=>V("span",{class:"thumb"},null,-1)),G7e=[K7e],z7e=Ee({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const n=e,r=($=0)=>{if($===0||isNaN($))return"00:00";const G=ue=>ue<10?"0"+ue:""+ue,de=Math.floor($/3600),J=Math.floor(($-de*3600)/60),Ae=Math.floor($-de*3600-J*60);return(de>0?[de,J,Ae]:[J,Ae]).map(G).join(":")},i=$=>$.getBoundingClientRect().left,o=he(),a=he(),s=he(),l=he(.5),u=he(!0),c=he(0),f=he(0),d=he(0),h=he(!1),p=he("00:00"),v=he("0"),g=Se(()=>r(c.value)),m=Se(()=>r(f.value)),y=Se(()=>c.value/f.value*100+"%"),R=Se(()=>d.value/f.value*100+"%"),A=Se(()=>l.value*100+"%"),x=$=>{o.value&&($=Math.max($,0),$=Math.min($,f.value),o.value.currentTime=$,c.value=$)},S=()=>{o.value&&(u.value=!1,o.value.play())},M=()=>{o.value&&(u.value=!0,o.value.pause())},L=()=>{u.value?S():M()},T=$=>{o.value&&($=Math.max($,0),$=Math.min($,1),o.value.volume=$,l.value=$,o.value.muted&&$!==0&&(o.value.muted=!1))},w=()=>{var $;f.value=(($=o.value)==null?void 0:$.duration)||0},P=()=>{var $;c.value=(($=o.value)==null?void 0:$.currentTime)||0},k=()=>{u.value=!1},N=()=>{n.loop?(x(0),S()):M()},C=()=>{var $;d.value=($=o.value)!=null&&$.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},I=()=>un.error("视频加载失败"),F=$=>{if(!o.value||!a.value)return;let de=(("clientX"in $?$.clientX:$.changedTouches[0].clientX)-i(a.value))/a.value.clientWidth;de=Math.max(de,0),de=Math.min(de,1);const J=de*f.value;o.value.currentTime=J,c.value=J},W=$=>{if(!o.value||!a.value)return;let de=(("clientX"in $?$.clientX:$.changedTouches[0].clientX)-i(a.value))/a.value.clientWidth;de=Math.max(de,0),de=Math.min(de,1);const J=de*f.value;o.value.currentTime=J,c.value=J,document.removeEventListener("mousemove",F),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",W),document.removeEventListener("touchend",W)},B=()=>{document.addEventListener("mousemove",F),document.addEventListener("touchmove",F),document.addEventListener("mouseup",W),document.addEventListener("touchend",W)},K=$=>{if(!s.value)return;const de=(("clientX"in $?$.clientX:$.changedTouches[0].clientX)-i(s.value))/45;T(de)},j=()=>{document.removeEventListener("mousemove",K),document.removeEventListener("touchmove",K),document.removeEventListener("mouseup",j),document.removeEventListener("touchend",j)},D=()=>{document.addEventListener("mousemove",K),document.addEventListener("touchmove",K),document.addEventListener("mouseup",j),document.addEventListener("touchend",j)},Y=$=>{if(!s.value)return;const G=($.clientX-i(s.value))/45;T(G)},Z=$=>{if(f.value&&a.value){const G=a.value.getBoundingClientRect().left,de=$.clientX-G;if(de<0||de>a.value.offsetWidth)return;const J=f.value*(de/a.value.offsetWidth);v.value=`${de-(J>=3600?25:20)}px`,p.value=r(J),h.value=!0}},H=()=>{o.value&&(o.value.muted?(o.value.muted=!1,T(.5)):(o.value.muted=!0,T(0)))};return t({toggle:L}),($,G)=>{const de=xe("IconPlayOne"),J=xe("IconPause"),Ae=xe("IconVolumeMute"),ue=xe("IconVolumeNotice"),fe=xe("IconVolumeSmall");return U(),ee("div",{class:"audio-player",style:we({transform:`scale(${1/$.scale})`})},[V("audio",{class:"audio",ref_key:"audioRef",ref:o,src:$.src,autoplay:$.autoplay,onDurationchange:G[0]||(G[0]=se=>w()),onTimeupdate:G[1]||(G[1]=se=>P()),onPlay:G[2]||(G[2]=se=>k()),onEnded:G[3]||(G[3]=se=>N()),onProgress:G[4]||(G[4]=se=>C()),onError:G[5]||(G[5]=se=>I())},null,40,F7e),V("div",E7e,[V("div",X7e,[V("div",{class:"icon play-icon",onClick:G[6]||(G[6]=se=>L())},[V("span",W7e,[u.value?(U(),Te(de,{key:0})):(U(),Te(J,{key:1}))])]),V("div",V7e,[V("div",{class:"icon volume-icon",onClick:G[7]||(G[7]=se=>H())},[V("span",D7e,[l.value===0?(U(),Te(Ae,{key:0})):l.value===1?(U(),Te(ue,{key:1})):(U(),Te(fe,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:G[8]||(G[8]=se=>D()),onTouchstart:G[9]||(G[9]=se=>D()),onClick:G[10]||(G[10]=se=>Y(se))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[V("div",{class:"volume-bar-inner",style:we({width:A.value})},B7e,4)],512)],32)])]),V("span",Y7e,[V("span",Z7e,dt(g.value),1),De(" / "),V("span",Q7e,dt(m.value),1)]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:G[11]||(G[11]=se=>B()),onTouchstart:G[12]||(G[12]=se=>B()),onMousemove:G[13]||(G[13]=se=>Z(se)),onMouseenter:G[14]||(G[14]=se=>h.value=!0),onMouseleave:G[15]||(G[15]=se=>h.value=!1)},[V("div",{class:Ge(["bar-time",{hidden:!h.value}]),style:we({left:v.value})},dt(p.value),7),V("div",H7e,[V("div",{class:"loaded",style:we({width:R.value})},null,4),V("div",{class:"played",style:we({width:y.value})},G7e,4)])],544)])],4)}}}),Dee=Be(z7e,[["__scopeId","data-v-32038f5c"]]),J7e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:r}=Ve(pt()),{viewportRatio:i,viewportSize:o}=Ve(at()),a=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),s=Se(()=>{const u=o.value,c=o.value*i.value,f=280/n.value,d=50/n.value,h=t.elementInfo.width,p=t.elementInfo.height,v=t.elementInfo.left,g=t.elementInfo.top;let m=0,y=p;return v+f>=u&&(m=h-f),g+p+d>=c&&(y=-d),{left:m+"px",top:y+"px"}}),l=u=>{t.elementInfo.lock||(u.stopPropagation(),t.selectElement(u,t.elementInfo))};return(u,c)=>{const f=xe("IconVolumeNotice"),d=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-audio",{lock:u.elementInfo.lock}]),style:we({top:u.elementInfo.top+"px",left:u.elementInfo.left+"px",width:u.elementInfo.width+"px",height:u.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${u.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",onMousedown:c[1]||(c[1]=h=>l(h)),onTouchstart:c[2]||(c[2]=h=>l(h))},[O(f,{class:"audio-icon",style:we({fontSize:a.value,color:u.elementInfo.color})},null,8,["style"]),z(r)===u.elementInfo.id?(U(),Te(Dee,{key:0,class:"audio-player",style:we({...s.value}),src:u.elementInfo.src,loop:u.elementInfo.loop,scale:z(n),onMousedown:c[0]||(c[0]=Nt(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Ye("",!0)],32)),[[d,u.contextmenus]])],4)],6)}}}),Uee=Be(J7e,[["__scopeId","data-v-07f623ea"]]),$7e=["id"],j7e=Ee({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=Se(()=>({[Et.IMAGE]:kz,[Et.TEXT]:wJ,[Et.SHAPE]:_J,[Et.LINE]:OJ,[Et.CHART]:kee,[Et.TABLE]:Fee,[Et.LATEX]:Eee,[Et.VIDEO]:Wee,[Et.AUDIO]:Uee})[t.elementInfo.type]||null),{orderElement:r}=z2(),{alignElementToCanvas:i}=m3(),{combineElements:o,uncombineElements:a}=ik(),{deleteElement:s}=G2(),{lockElement:l,unlockElement:u}=jH(),{copyElement:c,pasteElement:f,cutElement:d}=ok(),{selectAllElements:h}=i3(),p=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>u(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:c},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>i(gn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>i(gn.CENTER)},{text:"水平居中",handler:()=>i(gn.HORIZONTAL)},{text:"左对齐",handler:()=>i(gn.LEFT)},{text:"右对齐",handler:()=>i(gn.RIGHT)}]},{text:"垂直居中",handler:()=>i(gn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>i(gn.CENTER)},{text:"垂直居中",handler:()=>i(gn.VERTICAL)},{text:"顶部对齐",handler:()=>i(gn.TOP)},{text:"底部对齐",handler:()=>i(gn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,Wr.TOP),children:[{text:"置于顶层",handler:()=>r(t.elementInfo,Wr.TOP)},{text:"上移一层",handler:()=>r(t.elementInfo,Wr.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,Wr.BOTTOM),children:[{text:"置于底层",handler:()=>r(t.elementInfo,Wr.BOTTOM)},{text:"下移一层",handler:()=>r(t.elementInfo,Wr.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:o,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:l},{text:"删除",subText:"Delete",handler:s}];return(v,g)=>(U(),ee("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${v.elementInfo.id}`,style:we({zIndex:v.elementIndex})},[(U(),Te(xu(n.value),{elementInfo:v.elementInfo,selectElement:v.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,$7e))}}),q7e=Ee({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(U(),ee("div",{class:Ge(`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))}}),e9e=Be(q7e,[["__scopeId","data-v-053bfa3e"]]),t9e={class:"grid-lines"},n9e=["d","stroke"],r9e=Ee({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=Ve(pt()),{currentSlide:r,viewportRatio:i,viewportSize:o}=Ve(at()),a=Se(()=>{var u;return(u=r.value)==null?void 0:u.background}),s=Se(()=>{var f;const u=((f=a.value)==null?void 0:f.color)||"#fff",c=["#000","#fff"];return ot.mostReadable(u,c,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),l=Se(()=>{const u=o.value,c=o.value*i.value;let f="";for(let d=0;d<=Math.floor(c/n.value);d++)f+=`M0 ${d*n.value} L${u} ${d*n.value} `;for(let d=0;d<=Math.floor(u/n.value);d++)f+=`M${d*n.value} 0 L${d*n.value} ${c} `;return f});return(u,c)=>(U(),ee("svg",t9e,[V("path",{style:we({transform:`scale(${z(t)})`}),d:l.value,fill:"none",stroke:s.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,n9e)]))}}),i9e=Be(r9e,[["__scopeId","data-v-93264269"]]),t4=e=>({backgroundStyle:Se(()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:i,gradient:o}=e.value;if(n==="solid")return{backgroundColor:r};if(n==="image"&&i){const{src:a,size:s}=i;return a?s==="repeat"?{backgroundImage:`url(${a}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${a}`,backgroundRepeat:"no-repeat",backgroundSize:s||"cover"}:{backgroundColor:"#fff"}}else if(n==="gradient"&&o){const{type:a,colors:s,rotate:l}=o,u=s.map(c=>`${c.color} ${c.pos}%`);return a==="radial"?{backgroundImage:`radial-gradient(${u.join(",")}`}:{backgroundImage:`linear-gradient(${l}deg, ${u.join(",")}`}}return{backgroundColor:"#fff"}})}),o9e=Ee({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=Ve(pt()),{currentSlide:n}=Ve(at()),r=Se(()=>{var o;return(o=n.value)==null?void 0:o.background}),{backgroundStyle:i}=t4(r);return(o,a)=>(U(),ee("div",{class:"viewport-background",style:we(z(i))},[z(t)?(U(),Te(i9e,{key:0})):Ye("",!0)],4))}}),a9e=Be(o9e,[["__scopeId","data-v-203ea8ff"]]),s9e=Ee({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=Se(()=>t.axis.x*t.canvasScale+"px"),r=Se(()=>t.axis.y*t.canvasScale+"px"),i=Se(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(o,a)=>(U(),ee("div",{class:"alignment-line",style:we({left:n.value,top:r.value})},[V("div",{class:Ge(["line",o.type]),style:we(i.value)},null,6)],4))}}),Bee=Be(s9e,[["__scopeId","data-v-7cd3d25d"]]),l9e={class:"ruler"},u9e={key:0},c9e={key:0},f9e=Ee({__name:"Ruler",props:{viewportStyles:{},elementList:{}},setup(e){const t=e,{canvasScale:n,activeElementIdList:r}=Ve(pt()),{viewportRatio:i,viewportSize:o}=Ve(at()),a=he(null);Bv(()=>{const l=t.elementList.filter(u=>r.value.includes(u.id));if(!l.length)return a.value=null;a.value=nc(l)});const s=Se(()=>t.viewportStyles.width*n.value/(o.value/100));return(l,u)=>(U(),ee("div",l9e,[V("div",{class:"h",style:we({width:l.viewportStyles.width*z(n)+"px",left:l.viewportStyles.left+"px"})},[(U(),ee(Ne,null,Je(20,c=>V("div",{class:Ge(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`h-marker-100-${c}`,style:we({width:s.value+"px"})},[c*100<=z(o)?(U(),ee("span",u9e,dt(c*100),1)):Ye("",!0)],6)),64)),a.value?(U(),ee("div",{key:0,class:"range",style:we({left:a.value.minX*z(n)+"px",width:(a.value.maxX-a.value.minX)*z(n)+"px"})},null,4)):Ye("",!0)],4),V("div",{class:"v",style:we({height:l.viewportStyles.height*z(n)+"px",top:l.viewportStyles.top+"px"})},[(U(),ee(Ne,null,Je(20,c=>V("div",{class:Ge(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`v-marker-100-${c}`,style:we({height:s.value+"px"})},[c*100<=z(o)*z(i)?(U(),ee("span",c9e,dt(c*100),1)):Ye("",!0)],6)),64)),a.value?(U(),ee("div",{key:0,class:"range",style:we({top:a.value.minY*z(n)+"px",height:(a.value.maxY-a.value.minY)*z(n)+"px"})},null,4)):Ye("",!0)],4)]))}}),d9e=Be(f9e,[["__scopeId","data-v-c6df5cc2"]]),h9e=["width","height"],p9e=["d"],v9e=Ee({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,r=pt(),{creatingElement:i}=Ve(r),{ctrlOrShiftKeyActive:o}=Ve(Fs()),a=he(),s=he(),l=he(),u=he({x:0,y:0});Wt(()=>{if(!l.value)return;const{x:h,y:p}=l.value.getBoundingClientRect();u.value={x:h,y:p}});const c=h=>{let p=!0;const v=h.pageX,g=h.pageY;a.value=[v,g],document.onmousemove=m=>{if(!i.value||!p)return;let y=m.pageX,R=m.pageY;if(o.value){const A=y-v,x=R-g,S=Math.abs(A),M=Math.abs(x);if(i.value.type==="shape"){const L=x>0&&A<0||x<0&&A>0;S>M?R=L?g-A:g+A:y=L?v-x:v+x}else i.value.type==="line"&&(S>M?R=g:y=v)}s.value=[y,R]},document.onmouseup=m=>{var x,S;if(document.onmousemove=null,document.onmouseup=null,m.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const y=m.pageX,R=m.pageY,A=30;if(((x=i.value)==null?void 0:x.type)==="line"&&(Math.abs(y-v)>=A||Math.abs(R-g)>=A))n("created",{start:a.value,end:s.value});else if(((S=i.value)==null?void 0:S.type)!=="line"&&Math.abs(y-v)>=A&&Math.abs(R-g)>=A)n("created",{start:a.value,end:s.value});else{const L=Math.min(y,v),T=Math.min(R,g),w=Math.max(y,v),P=Math.max(R,g),k=w-L>=A?w-L:200,N=P-T>=A?P-T:200;n("created",{start:[L,T],end:[L+k,T+N]})}}},f=Se(()=>{if(!a.value||!s.value||!i.value||i.value.type!=="line")return null;const[h,p]=a.value,[v,g]=s.value,m=Math.min(h,v),y=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=y-m>=24?y-m:24,S=A-R>=24?A-R:24,M=h===m?0:y-m,L=p===R?0:A-R,T=v===m?0:y-m,w=g===R?0:A-R,P=`M${M}, ${L} L${T}, ${w}`;return{svgWidth:x,svgHeight:S,startX:M,startY:L,endX:T,endY:w,path:P}}),d=Se(()=>{if(!a.value||!s.value)return{};const[h,p]=a.value,[v,g]=s.value,m=Math.min(h,v),y=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=y-m,S=A-R;return{left:m-u.value.x+"px",top:R-u.value.y+"px",width:x+"px",height:S+"px"}});return(h,p)=>{var v,g;return U(),ee("div",{class:"element-create-selection",ref_key:"selectionRef",ref:l,onMousedown:p[0]||(p[0]=Nt(m=>c(m),["stop"])),onContextmenu:p[1]||(p[1]=Nt(()=>{},["stop","prevent"]))},[a.value&&s.value?(U(),ee("div",{key:0,class:Ge(["selection",(v=z(i))==null?void 0:v.type]),style:we(d.value)},[((g=z(i))==null?void 0:g.type)==="line"&&f.value?(U(),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,p9e)],8,h9e)):Ye("",!0)],6)):Ye("",!0)],544)}}}),g9e=Be(v9e,[["__scopeId","data-v-7b17a883"]]),m9e={overflow:"visible"},y9e=["d","fill"],A9e=Ee({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,r=pt(),{ctrlOrShiftKeyActive:i}=Ve(Fs()),{theme:o}=Ve(at()),a=he(),s=he(!1),l=he({x:0,y:0});Wt(()=>{if(!a.value)return;const{x:A,y:x}=a.value.getBoundingClientRect();l.value={x:A,y:x}});const u=he(null),c=he([]),f=he(!1),d=(A,x=!1)=>{let S=A.pageX-l.value.x,M=A.pageY-l.value.y;if(x)return{pageX:S,pageY:M};if(i.value&&c.value.length){const[L,T]=c.value[c.value.length-1];Math.abs(L-S)-Math.abs(T-M)>0?M=T:S=L}return{pageX:S,pageY:M}},h=A=>{if(s.value){const{pageX:M,pageY:L}=d(A,!0);c.value.push([M,L]),u.value=null;return}const{pageX:x,pageY:S}=d(A);if(u.value=[x,S],c.value.length>=2){const[M,L]=c.value[0];Math.abs(M-x)<5&&Math.abs(L-S)<5?f.value=!0:f.value=!1}else f.value=!1},p=Se(()=>{let A="";for(let x=0;x{const x=c.value.map(F=>F[0]),S=c.value.map(F=>F[1]),M=Math.min(...x),L=Math.min(...S),T=Math.max(...x),w=Math.max(...S),P=c.value.map(F=>[F[0]-M,F[1]-L]);let k="";for(let F=0;F{const{pageX:x,pageY:S}=d(A);s.value=!0,f.value?n("created",v()):c.value.push([x,S]),document.onmouseup=()=>{s.value=!1}},m=()=>{r.setCreatingCustomShapeState(!1)},y=()=>{n("created",{...v(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:o.value.themeColors[0],style:"solid"}}),m()},R=A=>{const x=A.key.toUpperCase();x===yt.ESC&&m(),x===yt.ENTER&&y()};return Wt(()=>{un.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",R)}),En(()=>{document.removeEventListener("keydown",R),un.closeAll()}),(A,x)=>(U(),ee("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:x[0]||(x[0]=Nt(S=>g(S),["stop"])),onMousemove:x[1]||(x[1]=S=>h(S)),onContextmenu:x[2]||(x[2]=Nt(S=>m(),["stop","prevent"]))},[(U(),ee("svg",m9e,[V("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,y9e)]))],544))}}),R9e=Be(A9e,[["__scopeId","data-v-08eeb427"]]),y0=(e,t)=>{const n=Se(()=>[{direction:Rt.LEFT_TOP,style:{}},{direction:Rt.TOP,style:{left:e.value/2+"px"}},{direction:Rt.RIGHT_TOP,style:{left:e.value+"px"}},{direction:Rt.LEFT,style:{top:t.value/2+"px"}},{direction:Rt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:Rt.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:Rt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:Rt.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),r=Se(()=>[{direction:Rt.LEFT,style:{top:t.value/2+"px"}},{direction:Rt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),i=Se(()=>[{direction:Rt.TOP,style:{left:e.value/2+"px"}},{direction:Rt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),o=Se(()=>[{type:yg.T,style:{width:e.value+"px"}},{type:yg.B,style:{top:t.value+"px",width:e.value+"px"}},{type:yg.L,style:{height:t.value+"px"}},{type:yg.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:i,borderLines:o}},b9e=Ee({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=Se(()=>{const r="rotate-",i=t.rotate;return i>-22.5&&i<=22.5?r+0:i>22.5&&i<=67.5?r+45:i>67.5&&i<=112.5?r+90:i>112.5&&i<=157.5?r+135:i>157.5||i<=-157.5?r+0:i>-157.5&&i<=-112.5?r+45:i>-112.5&&i<=-67.5?r+90:i>-67.5&&i<=-22.5?r+135:r+0});return(r,i)=>(U(),ee("div",{class:Ge(["resize-handler",n.value,r.type])},null,2))}}),yd=Be(b9e,[["__scopeId","data-v-bb3f9e62"]]),x9e=Ee({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(U(),ee("div",{class:Ge(["border-line",t.type,{wide:t.isWide}])},null,2))}}),A0=Be(x9e,[["__scopeId","data-v-7114fb45"]]),S9e=Ee({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:r}=Ve(pt()),i=Se(()=>t.elementList.filter(d=>n.value.includes(d.id))),o=he({minX:0,maxX:0,minY:0,maxY:0}),a=Se(()=>(o.value.maxX-o.value.minX)*r.value),s=Se(()=>(o.value.maxY-o.value.minY)*r.value),{resizeHandlers:l,borderLines:u}=y0(a,s);Bv(()=>{const{minX:d,maxX:h,minY:p,maxY:v}=nc(i.value);o.value={minX:d,maxX:h,minY:p,maxY:v}});const f=Se(()=>i.value.some(d=>!((d.type==="image"||d.type==="shape")&&!d.rotate)));return(d,h)=>(U(),ee("div",{class:"multi-select-operate",style:we({left:o.value.minX*z(r)+"px",top:o.value.minY*z(r)+"px"})},[(U(!0),ee(Ne,null,Je(z(u),p=>(U(),Te(A0,{key:p.type,type:p.type,style:we(p.style)},null,8,["type","style"]))),128)),f.value?Ye("",!0):(U(!0),ee(Ne,{key:0},Je(z(l),p=>(U(),Te(yd,{key:p.direction,type:p.direction,style:we(p.style),onMousedown:Nt(v=>d.scaleMultiElement(v,o.value,p.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),w9e=Be(S9e,[["__scopeId","data-v-135c8cb7"]]),M9e={},L9e={class:"rotate-handler"};function T9e(e,t){return U(),ee("div",L9e)}const l1=Be(M9e,[["render",T9e],["__scopeId","data-v-9f21fc0f"]]),_9e={inheritAttrs:!1},O9e=Ee({..._9e,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:r}=Ve(pt()),i=Se(()=>r.value===t.elementInfo.id),o=Se(()=>t.elementInfo.width*n.value),a=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:l}=y0(o,a);return(u,c)=>(U(),ee("div",{class:Ge(["image-element-operate",{cliping:i.value}])},[(U(!0),ee(Ne,null,Je(z(l),f=>(U(),Te(A0,{class:"operate-border-line",key:f.type,type:f.type,style:we(f.style)},null,8,["type","style"]))),128)),u.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(z(s),f=>(U(),Te(yd,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:u.elementInfo.rotate,style:we(f.style),onMousedown:Nt(d=>u.scaleElement(d,u.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),O(l1,{class:"operate-rotate-handler",style:we({left:o.value/2+"px"}),onMousedown:c[0]||(c[0]=Nt(f=>u.rotateElement(f,u.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)],2))}}),k9e=Be(O9e,[["__scopeId","data-v-2a1bef4e"]]),P9e={class:"text-element-operate"},C9e={inheritAttrs:!1},I9e=Ee({...C9e,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:o,verticalTextElementResizeHandlers:a,borderLines:s}=y0(r,i),l=Se(()=>t.elementInfo.vertical?a.value:o.value);return(u,c)=>(U(),ee("div",P9e,[(U(!0),ee(Ne,null,Je(z(s),f=>(U(),Te(A0,{class:"operate-border-line",key:f.type,type:f.type,style:we(f.style)},null,8,["type","style"]))),128)),u.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(l.value,f=>(U(),Te(yd,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:u.elementInfo.rotate,style:we(f.style),onMousedown:Nt(d=>u.scaleElement(d,u.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),O(l1,{class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:c[0]||(c[0]=Nt(f=>u.rotateElement(f,u.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)]))}}),N9e={class:"shape-element-operate"},F9e=["onMousedown"],E9e={inheritAttrs:!1},X9e=Ee({...E9e,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:o,borderLines:a}=y0(r,i),s=Se(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoints===void 0)return[];const l=f0[t.elementInfo.pathFormula];return t.elementInfo.keypoints.map((u,c)=>{const f=l.getBaseSize[c],d=l.relative[c],h=f(t.elementInfo.width,t.elementInfo.height)*u;let p={};return d==="left"?p={left:h*n.value+"px"}:d==="right"?p={left:(t.elementInfo.width-h)*n.value+"px"}:d==="center"?p={left:(t.elementInfo.width-h)/2*n.value+"px"}:d==="top"?p={top:h*n.value+"px"}:d==="bottom"?p={top:(t.elementInfo.height-h)*n.value+"px"}:d==="left_bottom"?p={left:h*n.value+"px",top:t.elementInfo.height*n.value+"px"}:d==="right_bottom"?p={left:(t.elementInfo.width-h)*n.value+"px",top:t.elementInfo.height*n.value+"px"}:d==="top_right"?p={left:t.elementInfo.width*n.value+"px",top:h*n.value+"px"}:d==="bottom_right"&&(p={left:t.elementInfo.width*n.value+"px",top:(t.elementInfo.height-h)*n.value+"px"}),{keypoint:u,styles:p}})});return(l,u)=>(U(),ee("div",N9e,[(U(!0),ee(Ne,null,Je(z(a),c=>(U(),Te(A0,{class:"operate-border-line",key:c.type,type:c.type,style:we(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(z(o),c=>(U(),Te(yd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:we(c.style),onMousedown:Nt(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),O(l1,{class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Nt(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"]),(U(!0),ee(Ne,null,Je(s.value,(c,f)=>(U(),ee("div",{class:"operate-keypoint-handler",key:f,style:we(c.styles),onMousedown:Nt(d=>l.moveShapeKeypoint(d,l.elementInfo,f),["stop"])},null,44,F9e))),128))],64)):Ye("",!0)]))}}),W9e=Be(X9e,[["__scopeId","data-v-11747e5a"]]),V9e={class:"line-element-operate"},D9e=["width","height","stroke"],U9e={key:0},B9e=["x1","y1","x2","y2"],Y9e=["x1","y1","x2","y2"],Z9e=["x1","y1","x2","y2"],Q9e=["x1","y1","x2","y2"],H9e={inheritAttrs:!1},K9e=Ee({...H9e,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),i=Se(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),o=Se(()=>{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||t.elementInfo.broken2){const s=t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2;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,l]=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:l[0]*n.value+"px",top:l[1]*n.value+"px"}})}return a});return(a,s)=>(U(),ee("div",V9e,[a.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(o.value,l=>(U(),Te(yd,{class:"operate-resize-handler",key:l.handler,style:we(l.style),onMousedown:Nt(u=>a.dragLineElement(u,a.elementInfo,l.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(U(),ee("svg",{width:r.value||1,height:i.value||1,stroke:a.elementInfo.color,overflow:"visible",style:we({transform:`scale(${z(n)})`})},[a.elementInfo.curve?(U(),ee("g",U9e,[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,B9e),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,Y9e)])):Ye("",!0),a.elementInfo.cubic?(U(!0),ee(Ne,{key:1},Je(a.elementInfo.cubic,(l,u)=>(U(),ee("g",{key:u},[u===0?(U(),ee("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:l[0],y2:l[1]},null,8,Z9e)):Ye("",!0),u===1?(U(),ee("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:l[0],y2:l[1]},null,8,Q9e)):Ye("",!0)]))),128)):Ye("",!0)],12,D9e))],64)):Ye("",!0)]))}}),G9e=Be(K9e,[["__scopeId","data-v-9dea4d6a"]]),z9e={class:"table-element-operate"},J9e={inheritAttrs:!1},$9e=Ee({...J9e,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.outline.width||1),i=Se(()=>(t.elementInfo.width+r.value)*n.value),o=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=y0(i,o);return(l,u)=>(U(),ee("div",z9e,[(U(!0),ee(Ne,null,Je(z(s),c=>(U(),Te(A0,{class:"operate-border-line",key:c.type,type:c.type,style:we(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(z(a),c=>(U(),Te(yd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:we(c.style),onMousedown:Nt(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),O(l1,{class:"operate-rotate-handler",style:we({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=Nt(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)]))}}),j9e={class:"common-element-operate"},q9e={inheritAttrs:!1},XR=Ee({...q9e,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:o,borderLines:a}=y0(r,i),s=Se(()=>["chart","video","audio"].includes(t.elementInfo.type));return(l,u)=>(U(),ee("div",j9e,[(U(!0),ee(Ne,null,Je(z(a),c=>(U(),Te(A0,{class:"operate-border-line",key:c.type,type:c.type,style:we(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(z(o),c=>(U(),Te(yd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:we(c.style),onMousedown:Nt(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?Ye("",!0):(U(),Te(l1,{key:0,class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Nt(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"]))],64)):Ye("",!0)]))}}),Yee=()=>{const e=at(),{addHistorySnapshot:t}=on();return{setLink:(i,o)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(o.type==="web"&&!a.test(o.target))return un.error("不是正确的网页链接地址"),!1;if(o.type==="slide"&&!o.target)return un.error("请先选择链接目标"),!1;const s={link:o};return e.updateElement({id:i.id,props:s}),t(),!0},removeLink:i=>{e.removeElementProps({id:i.id,propName:"link"}),t()}}},eFe=Ee({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:-1}},setup(e){return(t,n)=>(U(),ee("div",{class:Ge(["divider",t.type]),style:we({margin:t.type==="horizontal"?`${t.margin>=0?t.margin:24}px 0`:`0 ${t.margin>=0?t.margin:8}px`})},null,6))}}),Ut=Be(eFe,[["__scopeId","data-v-80adabfa"]]),tFe=["href"],nFe={class:"btns"},rFe=Ee({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{canvasScale:i}=Ve(n),{slides:o}=Ve(r),{removeLink:a}=Yee(),s=Se(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),l=u=>{const c=o.value.findIndex(f=>f.id===u);c!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(c))};return(u,c)=>(U(),ee("div",{class:"link-handler",style:we({top:s.value*z(i)+10+"px"})},[u.link.type==="web"?(U(),ee("a",{key:0,class:"link",href:u.link.target,target:"_blank"},dt(u.link.target),9,tFe)):(U(),ee("a",{key:1,class:"link",onClick:c[0]||(c[0]=f=>l(u.link.target))},"幻灯片页面 "+dt(u.link.target),1)),V("div",nFe,[V("div",{class:"btn",onClick:c[1]||(c[1]=f=>u.openLinkDialog())},"更换"),O(Ut,{type:"vertical"}),V("div",{class:"btn",onClick:c[2]||(c[2]=f=>z(a)(u.elementInfo))},"移除")])],4))}}),iFe=Be(rFe,[["__scopeId","data-v-821fa8e0"]]),oFe={key:1,class:"animation-index"},aFe=Ee({__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}=Ve(pt()),{formatedAnimations:i}=Ve(at()),o=Se(()=>({[Et.IMAGE]:k9e,[Et.TEXT]:I9e,[Et.SHAPE]:W9e,[Et.LINE]:G9e,[Et.TABLE]:$9e,[Et.CHART]:XR,[Et.LATEX]:XR,[Et.VIDEO]:XR,[Et.AUDIO]:XR})[t.elementInfo.type]||null),a=Se(()=>{const u=[];for(let c=0;cd.elId).includes(t.elementInfo.id)&&u.push(c);return u}),s=Se(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),l=Se(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(u,c)=>(U(),ee("div",{class:Ge(["operate",{"multi-select":u.isMultiSelect&&!u.isActive}]),style:we({top:u.elementInfo.top*z(n)+"px",left:u.elementInfo.left*z(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${u.elementInfo.width*z(n)/2}px ${l.value*z(n)/2}px`})},[u.isSelected?(U(),Te(xu(o.value),{key:0,elementInfo:u.elementInfo,handlerVisible:!u.elementInfo.lock&&(u.isActiveGroupElement||!u.isMultiSelect),rotateElement:u.rotateElement,scaleElement:u.scaleElement,dragLineElement:u.dragLineElement,moveShapeKeypoint:u.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Ye("",!0),z(r)==="elAnimation"&&a.value.length?(U(),ee("div",oFe,[(U(!0),ee(Ne,null,Je(a.value,f=>(U(),ee("div",{class:"index-item",key:f},dt(f+1),1))),128))])):Ye("",!0),u.isActive&&u.elementInfo.link?(U(),Te(iFe,{key:2,elementInfo:u.elementInfo,link:u.elementInfo.link,openLinkDialog:u.openLinkDialog,onMousedown:c[0]||(c[0]=Nt(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Ye("",!0)],6))}}),sFe=Be(aFe,[["__scopeId","data-v-7c6be7e7"]]),lFe=["src"],uFe=Ee({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=vd(n),i=Se(()=>t.elementInfo.flipH),o=Se(()=>t.elementInfo.flipV),{flipStyle:a}=y3(i,o),s=Se(()=>t.elementInfo),{clipShape:l,imgPosition:u}=Pk(s),c=Se(()=>t.elementInfo.filters),{filter:f}=Tz(c);return(d,h)=>(U(),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:z(r)?`drop-shadow(${z(r)})`:"",transform:z(a)})},[O(_z,{elementInfo:d.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:we({clipPath:z(l).style})},[V("img",{src:d.elementInfo.src,draggable:!1,style:we({top:z(u).top,left:z(u).left,width:z(u).width,height:z(u).height,filter:z(f)}),alt:""},null,12,lFe),d.elementInfo.colorMask?(U(),ee("div",{key:0,class:"color-mask",style:we({backgroundColor:d.elementInfo.colorMask})},null,4)):Ye("",!0)],4)],4)],4)],4))}}),Zee=Be(uFe,[["__scopeId","data-v-67c9bdc0"]]),cFe=["innerHTML"],fFe=Ee({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=vd(n);return(i,o)=>(U(),ee("div",{class:"base-element-text",style:we({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${i.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({width:i.elementInfo.vertical?"auto":i.elementInfo.width+"px",height:i.elementInfo.vertical?i.elementInfo.height+"px":"auto",backgroundColor:i.elementInfo.fill,opacity:i.elementInfo.opacity,textShadow:z(r),lineHeight:i.elementInfo.lineHeight,letterSpacing:(i.elementInfo.wordSpace||0)+"px",color:i.elementInfo.defaultColor,fontFamily:i.elementInfo.defaultFontName,writingMode:i.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[O(A3,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),V("div",{class:Ge(["text ProseMirror-static",{thumbnail:i.target==="thumbnail"}]),style:we({"--paragraphSpace":`${i.elementInfo.paragraphSpace===void 0?5:i.elementInfo.paragraphSpace}px`}),innerHTML:i.elementInfo.content},null,14,cFe)],4)],4)],4))}}),Qee=Be(fFe,[["__scopeId","data-v-a3ec163d"]]),dFe=["width","height"],hFe=["transform"],pFe=["d","fill","stroke","stroke-width","stroke-dasharray"],vFe=["innerHTML"],gFe=Ee({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo),{fill:r}=MJ(n,"base"),i=Se(()=>t.elementInfo.outline),{outlineWidth:o,outlineColor:a,strokeDashArray:s}=t1(i),l=Se(()=>t.elementInfo.shadow),{shadowStyle:u}=vd(l),c=Se(()=>t.elementInfo.flipH),f=Se(()=>t.elementInfo.flipV),{flipStyle:d}=y3(c,f),h=Se(()=>{const p={content:"",defaultFontName:"",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:p});return(p,v)=>(U(),ee("div",{class:"base-element-shape",style:we({top:p.elementInfo.top+"px",left:p.elementInfo.left+"px",width:p.elementInfo.width+"px",height:p.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:we({transform:`rotate(${p.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:we({opacity:p.elementInfo.opacity,filter:z(u)?`drop-shadow(${z(u)})`:"",transform:z(d),color:h.value.defaultColor,fontFamily:h.value.defaultFontName})},[(U(),ee("svg",{overflow:"visible",width:p.elementInfo.width,height:p.elementInfo.height},[V("defs",null,[p.elementInfo.pattern?(U(),Te(TJ,{key:0,id:`base-pattern-${p.elementInfo.id}`,src:p.elementInfo.pattern},null,8,["id","src"])):p.elementInfo.gradient?(U(),Te(LJ,{key:1,id:`base-gradient-${p.elementInfo.id}`,type:p.elementInfo.gradient.type,colors:p.elementInfo.gradient.colors,rotate:p.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])):Ye("",!0)]),V("g",{transform:`scale(${p.elementInfo.width/p.elementInfo.viewBox[0]}, ${p.elementInfo.height/p.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:p.elementInfo.path,fill:z(r),stroke:z(a),"stroke-width":z(o),"stroke-dasharray":z(s)},null,8,pFe)],8,hFe)],8,dFe)),V("div",{class:Ge(["shape-text",h.value.align])},[V("div",{class:"ProseMirror-static",innerHTML:h.value.content},null,8,vFe)],2)],4)],4)],4))}}),Hee=Be(gFe,[["__scopeId","data-v-778fd44b"]]),mFe=["width","height"],yFe=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],AFe=Ee({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=vd(n),i=Se(()=>{const l=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return l<24?24:l}),o=Se(()=>{const l=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return l<24?24:l}),a=Se(()=>{const l=t.elementInfo.width;return t.elementInfo.style==="dashed"?l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`:t.elementInfo.style==="dotted"?l<=8?`${l*1.8} ${l*1.6}`:`${l*1.5} ${l*1.2}`:"0 0"}),s=Se(()=>tk(t.elementInfo));return(l,u)=>(U(),ee("div",{class:"base-element-line",style:we({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[V("div",{class:"element-content",style:we({filter:z(r)?`drop-shadow(${z(r)})`:""})},[(U(),ee("svg",{overflow:"visible",width:i.value,height:o.value},[V("defs",null,[l.elementInfo.points[0]?(U(),Te(jf,{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"])):Ye("",!0),l.elementInfo.points[1]?(U(),Te(jf,{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"])):Ye("",!0)]),V("path",{d:s.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":a.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,yFe)],8,mFe))],4)],4))}}),Kee=Be(AFe,[["__scopeId","data-v-833e88cd"]]),RFe=Ee({__name:"BaseChartElement",props:{elementInfo:{},target:{}},setup(e){return(t,n)=>(U(),ee("div",{class:Ge(["base-element-chart",{"is-thumbnail":t.target==="thumbnail"}]),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({backgroundColor:t.elementInfo.fill})},[O(A3,{width:t.elementInfo.width,height:t.elementInfo.height,outline:t.elementInfo.outline},null,8,["width","height","outline"]),O(Oee,{width:t.elementInfo.width,height:t.elementInfo.height,type:t.elementInfo.chartType,data:t.elementInfo.data,themeColors:t.elementInfo.themeColors,textColor:t.elementInfo.textColor,options:t.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],4)],4)],6))}}),Gee=Be(RFe,[["__scopeId","data-v-5a1fd6e3"]]),bFe=["width"],xFe=["rowspan","colspan"],SFe=["innerHTML"],wFe=Ee({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,n=he([]),r=Se(()=>n.value.reduce((l,u)=>l+u));Lt([()=>t.colWidths,()=>t.width],()=>{n.value=t.colWidths.map(l=>l*t.width)},{immediate:!0});const i=Se(()=>t.data),{hideCells:o}=Iee(i),a=Se(()=>t.theme),{subThemeColor:s}=Nee(a);return(l,u)=>{var c,f,d,h,p;return U(),ee("div",{class:"static-table",style:we({width:r.value+"px"})},[V("table",{class:Ge({theme:a.value,"row-header":(c=a.value)==null?void 0:c.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: ${z(s)[0]}; --subThemeColor2: ${z(s)[1]}`)},[V("colgroup",null,[(U(!0),ee(Ne,null,Je(n.value,(v,g)=>(U(),ee("col",{span:"1",key:g,width:v},null,8,bFe))),128))]),V("tbody",null,[(U(!0),ee(Ne,null,Je(l.data,(v,g)=>(U(),ee("tr",{key:g,style:we({height:l.cellMinHeight+"px"})},[(U(!0),ee(Ne,null,Je(v,(m,y)=>ze((U(),ee("td",{class:"cell",style:we({borderStyle:l.outline.style,borderColor:l.outline.color,borderWidth:l.outline.width+"px",...z(Pee)(m.style)}),key:m.id,rowspan:m.rowspan,colspan:m.colspan},[V("div",{class:"cell-text",style:we({minHeight:l.cellMinHeight-4+"px"}),innerHTML:z(Cee)(m.text)},null,12,SFe)],12,xFe)),[[hc,!z(o).includes(`${g}_${y}`)]])),128))],4))),128))])],6)],4)}}}),MFe=Be(wFe,[["__scopeId","data-v-6d887dcd"]]),LFe={class:"element-content"},TFe=Ee({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(t,n)=>(U(),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",LFe,[O(MFe,{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))}}),zee=Be(TFe,[["__scopeId","data-v-77cfa6e4"]]),_Fe={class:"element-content"},OFe=["width","height","stroke","stroke-width"],kFe=["transform"],PFe=["d"],CFe=Ee({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(t,n)=>(U(),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",_Fe,[(U(),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,PFe)],8,kFe)],8,OFe))])],4)],4))}}),Jee=Be(CFe,[["__scopeId","data-v-93374af9"]]),IFe=Ee({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(t,n)=>{const r=xe("IconPlayOne");return U(),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})`:""})},[O(r,{class:"icon"})],4)],4)],4)}}}),NFe=Be(IFe,[["__scopeId","data-v-2fb0e771"]]),FFe={class:"element-content"},EFe=Ee({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px");return(r,i)=>{const o=xe("IconVolumeNotice");return U(),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",FFe,[O(o,{class:"audio-icon",style:we({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),XFe=Be(EFe,[["__scopeId","data-v-b33e6120"]]),WFe=Ee({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,n=Se(()=>({[Et.IMAGE]:Zee,[Et.TEXT]:Qee,[Et.SHAPE]:Hee,[Et.LINE]:Kee,[Et.CHART]:Gee,[Et.TABLE]:zee,[Et.LATEX]:Jee,[Et.VIDEO]:NFe,[Et.AUDIO]:XFe})[t.elementInfo.type]||null);return(r,i)=>(U(),ee("div",{class:Ge(["base-element",`base-element-${r.elementInfo.id}`]),style:we({zIndex:r.elementIndex})},[(U(),Te(xu(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),VFe={key:1,class:"placeholder"},DFe=Ee({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:n,viewportSize:r}=Ve(at()),i=Se(()=>t.slide.background),{backgroundStyle:o}=t4(i),a=Se(()=>t.size/r.value);return l0(oy,a),(s,l)=>(U(),ee("div",{class:"thumbnail-slide",style:we({width:s.size+"px",height:s.size*z(n)+"px"})},[s.visible?(U(),ee("div",{key:0,class:"elements",style:we({width:z(r)+"px",height:z(r)*z(n)+"px",transform:`scale(${a.value})`})},[V("div",{class:"background",style:we(z(o))},null,4),(U(!0),ee(Ne,null,Je(s.slide.elements,(u,c)=>(U(),Te(WFe,{key:u.id,elementInfo:u,elementIndex:c+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(U(),ee("div",VFe,"加载中 ..."))],4))}}),Cs=Be(DFe,[["__scopeId","data-v-c8cdb1af"]]),UFe=["onClick"],BFe=Ee({__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,i)=>(U(),ee("div",{class:Ge(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:we(r.tabsStyle||{})},[(U(!0),ee(Ne,null,Je(r.tabs,o=>(U(),ee("div",{class:Ge(["tab",{active:o.key===r.value}]),key:o.key,style:we({...r.tabStyle||{},"--color":o.color}),onClick:a=>n("update:value",o.key)},dt(o.label),15,UFe))),128))],6))}}),gl=Be(BFe,[["__scopeId","data-v-c7f9dce0"]]),YFe=Ee({__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,i=()=>{n.disabled||r("click")};return(o,a)=>(U(),ee("button",{class:Ge(["button",{disabled:o.disabled,checked:!o.disabled&&o.checked,default:!o.disabled&&o.type==="default",primary:!o.disabled&&o.type==="primary",checkbox:!o.disabled&&o.type==="checkbox",radio:!o.disabled&&o.type==="radio",small:o.size==="small",first:o.first,last:o.last}]),onClick:a[0]||(a[0]=s=>i())},[ar(o.$slots,"default",{},void 0,!0)],2))}}),qe=Be(YFe,[["__scopeId","data-v-3a484f58"]]),ZFe={key:0,class:"select-wrap"},QFe={class:"selector"},HFe={class:"icon"},KFe=["onClick"],GFe={class:"selector"},zFe={class:"icon"},JFe=Ee({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1},search:{type:Boolean,default:!1},searchLabel:{default:"搜索"}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,i=he(!1),o=he(),a=he(),s=he(0),l=he(""),u=Se(()=>{var p;return((p=n.options.find(v=>v.value===n.value))==null?void 0:p.label)||n.value}),c=Se(()=>{if(!n.search||!l.value.trim())return n.options;const p=n.options.filter(v=>v.label.toLowerCase().indexOf(l.value.toLowerCase())!==-1);return p.length?p:n.options});Lt(i,()=>{i.value?hr(()=>{a.value&&a.value.focus()}):l.value=""}),s0(()=>{l.value=""});const f=()=>{o.value&&(s.value=o.value.clientWidth)},d=new ResizeObserver(f);Wt(()=>{o.value&&d.observe(o.value)}),En(()=>{o.value&&d.unobserve(o.value)});const h=p=>{p.disabled||(r("update:value",p.value),i.value=!1)};return(p,v)=>{const g=xe("IconDown");return p.disabled?(U(),ee("div",ZFe,[V("div",{class:"select disabled",ref_key:"selectRef",ref:o},[V("div",QFe,dt(p.value),1),V("div",HFe,[ar(p.$slots,"icon",{},()=>[O(g,{size:14})],!0)])],512)])):(U(),Te(It,{key:1,class:"select-wrap",trigger:"click",value:i.value,"onUpdate:value":v[1]||(v[1]=m=>i.value=m),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:ie(()=>[p.search?(U(),ee(Ne,{key:0},[O(pu,{ref_key:"searchInputRef",ref:a,simple:"",placeholder:p.searchLabel,value:l.value,"onUpdate:value":v[0]||(v[0]=m=>l.value=m),style:we({width:s.value+2+"px"})},null,8,["placeholder","value","style"]),O(Ut,{margin:0})],64)):Ye("",!0),V("div",{class:"options",style:we({width:s.value+2+"px"})},[(U(!0),ee(Ne,null,Je(c.value,m=>(U(),ee("div",{class:Ge(["option",{disabled:m.disabled,selected:m.value===p.value}]),key:m.value,onClick:y=>h(m)},dt(m.label),11,KFe))),128))],4)]),default:ie(()=>[V("div",{class:"select",ref_key:"selectRef",ref:o},[V("div",GFe,dt(u.value),1),V("div",zFe,[ar(p.$slots,"icon",{},()=>[O(g,{size:14})],!0)])],512)]),_:3},8,["value"]))}}}),Vr=Be(JFe,[["__scopeId","data-v-eb1f268a"]]),$Fe=e=>($t("data-v-853e5bc2"),e=e(),jt(),e),jFe={class:"link-dialog"},qFe={key:2,class:"preview"},eEe=$Fe(()=>V("div",null,"预览:",-1)),tEe={class:"btns"},nEe=Ee({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var p;const n=t,{handleElement:r}=Ve(pt()),{slides:i,currentSlide:o}=Ve(at()),a=he("web"),s=he(""),l=he(""),u=Se(()=>i.value.map((v,g)=>({label:`幻灯片 ${g+1}`,value:v.id,disabled:o.value.id===v.id})));l.value=((p=i.value.find(v=>v.id!==o.value.id))==null?void 0:p.id)||"";const c=Se(()=>l.value&&i.value.find(v=>v.id===l.value)||null),f=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:d}=Yee();Wt(()=>{var v;(v=r.value)!=null&&v.link&&(r.value.link.type==="web"?s.value=r.value.link.target:r.value.link.type==="slide"&&(l.value=r.value.link.target),a.value=r.value.link.type)});const h=()=>{const v={type:a.value,target:a.value==="web"?s.value:l.value};r.value&&(d(r.value,v)?n("close"):s.value="")};return(v,g)=>(U(),ee("div",jFe,[O(gl,{tabs:f,value:a.value,"onUpdate:value":g[0]||(g[0]=m=>a.value=m),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(U(),Te(pu,{key:0,class:"input",value:s.value,"onUpdate:value":g[1]||(g[1]=m=>s.value=m),placeholder:"请输入网页链接地址"},null,8,["value"])):Ye("",!0),a.value==="slide"?(U(),Te(Vr,{key:1,class:"input",value:l.value,"onUpdate:value":g[2]||(g[2]=m=>l.value=m),options:u.value},null,8,["value","options"])):Ye("",!0),a.value==="slide"&&c.value?(U(),ee("div",qFe,[eEe,O(Cs,{class:"thumbnail",slide:c.value,size:500},null,8,["slide"])])):Ye("",!0),V("div",tEe,[O(qe,{onClick:g[3]||(g[3]=m=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[De("取消")]),_:1}),O(qe,{type:"primary",onClick:g[4]||(g[4]=m=>h())},{default:ie(()=>[De("确认")]),_:1})])]))}}),rEe=Be(nEe,[["__scopeId","data-v-853e5bc2"]]),iEe=Ee({__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}=Ax,r=e,i=he(),o=t,a=he(!1),s=Se(()=>({width:r.width+"px",...r.contentStyle||{}}));Lt(()=>r.visible,()=>{r.visible&&hr(()=>i.value.focus())});const l=()=>{o("update:visible",!1),o("closed")},u=()=>{r.visible&&r.closeOnEsc&&l()},c=()=>{r.closeOnClickMask&&l()};return(f,d)=>(U(),Te(xO,{to:"body"},[O(Kh,{name:"modal-fade"},{default:ie(()=>[ze(V("div",{class:"modal",ref_key:"modalRef",ref:i,tabindex:"-1",onKeyup:d[4]||(d[4]=pl(h=>u(),["esc"]))},[V("div",{class:"mask",onClick:d[0]||(d[0]=h=>c())}),O(Kh,{name:"modal-zoom",onAfterLeave:d[2]||(d[2]=h=>a.value=!1),onBeforeEnter:d[3]||(d[3]=h=>a.value=!0)},{default:ie(()=>[ze(V("div",{class:"modal-content",style:we(s.value)},[f.closeButton?(U(),ee("span",{key:0,class:"close-btn",onClick:d[1]||(d[1]=h=>l())},[O(z(n))])):Ye("",!0),a.value?ar(f.$slots,"default",{key:1},void 0,!0):Ye("",!0)],4),[[hc,f.visible]])]),_:3})],544),[[hc,f.visible]])]),_:3})]))}}),mc=Be(iEe,[["__scopeId","data-v-4d27bcca"]]),oEe={class:"operates"},aEe={key:2,class:"drag-mask"},sEe=Ee({__name:"index",setup(e){const t=pt(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:i,hiddenElementIdList:o,editorAreaFocus:a,gridLineSize:s,showRuler:l,creatingElement:u,creatingCustomShape:c,canvasScale:f,textFormatPainter:d}=Ve(t),{currentSlide:h}=Ve(at()),{ctrlKeyState:p,spaceKeyState:v}=Ve(Fs()),g=he(),m=he([]),y=he(!1),R=()=>y.value=!0;Lt(i,()=>{t.setActiveGroupElementId("")});const A=he([]);Bv(()=>{A.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const S=he(),{dragViewport:M,viewportStyles:L}=n3e(S);i3e(S);const{mouseSelection:T,mouseSelectionVisible:w,mouseSelectionQuadrant:P,updateMouseSelection:k}=r3e(A,g),{dragElement:N}=Mz(A,m,f),{dragLineElement:C}=s3e(A),{selectElement:I}=a3e(A,N),{scaleElement:F,scaleMultiElement:W}=wz(A,m,f),{rotateElement:B}=xz(A,g,f),{moveShapeKeypoint:K}=l3e(A,f),{selectAllElements:j}=i3(),{deleteAllElements:D}=G2(),{pasteElement:Y}=ok(),{enterScreeningFromStart:Z}=dd(),{updateSlideIndex:H}=bc(),{createTextElement:$,createShapeElement:G}=d0();Wt(()=>{n.value.length&&hr(()=>t.setActiveElementIdList([]))});const de=ae=>{n.value.length&&t.setActiveElementIdList([]),v.value?M(ae):k(ae),a.value||t.setEditorareaFocus(!0),d.value&&t.setTextFormatPainter(null),t3e()},J=ae=>{if(n.value.length||u.value||c.value||!g.value)return;const ve=g.value.getBoundingClientRect(),ce=(ae.pageX-ve.x)/f.value,ge=(ae.pageY-ve.y)/f.value;$({left:ce,top:ge,width:200/f.value,height:0})};En(()=>{d.value&&t.setTextFormatPainter(null)});const Ae=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:ue}=sk(),fe=Zn.throttle(ue,100,{leading:!0,trailing:!1}),se=Zn.throttle(H,300,{leading:!0,trailing:!1}),q=ae=>{ae.preventDefault(),p.value?ae.deltaY>0?fe("-"):ae.deltaY<0&&fe("+"):ae.deltaY>0?se(yt.DOWN):ae.deltaY<0&&se(yt.UP)},E=()=>{t.setRulerState(!l.value)},{insertElementFromCreateSelection:te,formatCreateSelection:le}=u3e(g),ne=ae=>{const{start:ve,end:ce,path:ge,viewBox:Re}=ae,We=le({start:ve,end:ce});if(We){const Fe={};ae.fill&&(Fe.fill=ae.fill),ae.outline&&(Fe.outline=ae.outline),G(We,{path:ge,viewBox:Re},Fe)}t.setCreatingCustomShapeState(!1)},re=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Y},{text:"全选",subText:"Ctrl + A",handler:j},{text:"标尺",subText:l.value?"√":"",handler:E},{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:Z}];return l0(oy,f),(ae,ve)=>{const ce=_n("contextmenu"),ge=_n("click-outside");return ze((U(),ee("div",{class:"canvas",ref_key:"canvasRef",ref:S,onWheel:ve[4]||(ve[4]=Re=>q(Re)),onMousedown:ve[5]||(ve[5]=Re=>de(Re)),onDblclick:ve[6]||(ve[6]=Re=>J(Re))},[z(u)?(U(),Te(g9e,{key:0,onCreated:ve[0]||(ve[0]=Re=>z(te)(Re))})):Ye("",!0),z(c)?(U(),Te(R9e,{key:1,onCreated:ve[1]||(ve[1]=Re=>ne(Re))})):Ye("",!0),V("div",{class:"viewport-wrapper",style:we({width:z(L).width*z(f)+"px",height:z(L).height*z(f)+"px",left:z(L).left+"px",top:z(L).top+"px"})},[V("div",oEe,[(U(!0),ee(Ne,null,Je(m.value,(Re,We)=>(U(),Te(Bee,{key:We,type:Re.type,axis:Re.axis,length:Re.length,canvasScale:z(f)},null,8,["type","axis","length","canvasScale"]))),128)),z(n).length>1?(U(),Te(w9e,{key:0,elementList:A.value,scaleMultiElement:z(W)},null,8,["elementList","scaleMultiElement"])):Ye("",!0),(U(!0),ee(Ne,null,Je(A.value,Re=>ze((U(),Te(sFe,{key:Re.id,elementInfo:Re,isSelected:z(n).includes(Re.id),isActive:z(i)===Re.id,isActiveGroupElement:z(r)===Re.id,isMultiSelect:z(n).length>1,rotateElement:z(B),scaleElement:z(F),openLinkDialog:R,dragLineElement:z(C),moveShapeKeypoint:z(K)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[hc,!z(o).includes(Re.id)]])),128)),O(a9e)]),V("div",{class:"viewport",ref_key:"viewportRef",ref:g,style:we({transform:`scale(${z(f)})`})},[z(w)?(U(),Te(e9e,{key:0,top:z(T).top,left:z(T).left,width:z(T).width,height:z(T).height,quadrant:z(P)},null,8,["top","left","width","height","quadrant"])):Ye("",!0),(U(!0),ee(Ne,null,Je(A.value,(Re,We)=>ze((U(),Te(j7e,{key:Re.id,elementInfo:Re,elementIndex:We+1,isMultiSelect:z(n).length>1,selectElement:z(I),openLinkDialog:R},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[hc,!z(o).includes(Re.id)]])),128))],4)],4),z(v)?(U(),ee("div",aEe)):Ye("",!0),z(l)?(U(),Te(d9e,{key:3,viewportStyles:z(L),elementList:A.value},null,8,["viewportStyles","elementList"])):Ye("",!0),O(mc,{visible:y.value,"onUpdate:visible":ve[3]||(ve[3]=Re=>y.value=Re),width:540},{default:ie(()=>[O(rEe,{onClose:ve[2]||(ve[2]=Re=>y.value=!1)})]),_:1},8,["visible"])],32)),[[ce,re],[ge,Ae]])}}}),lEe=Be(sEe,[["__scopeId","data-v-904dbab0"]]),uEe={class:"shape-item-thumbnail"},cEe={class:"shape-content"},fEe={overflow:"visible",width:"18",height:"18"},dEe=["transform"],hEe=["fill","stroke","d"],pEe=Ee({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(U(),ee("div",uEe,[V("div",cEe,[(U(),ee("svg",fEe,[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:Ge(["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,hEe)],8,dEe)]))])]))}}),$ee=Be(pEe,[["__scopeId","data-v-2896ae03"]]),vEe={class:"shape-pool"},gEe={class:"category-name"},mEe={class:"shape-list"},yEe=Ee({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,r=i=>{n("select",i)};return(i,o)=>(U(),ee("div",vEe,[(U(!0),ee(Ne,null,Je(z(nk),a=>(U(),ee("div",{class:"category",key:a.type},[V("div",gEe,dt(a.type),1),V("div",mEe,[(U(!0),ee(Ne,null,Je(a.children,(s,l)=>(U(),Te($ee,{class:"shape-item",key:l,shape:s,onClick:u=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),AEe=Be(yEe,[["__scopeId","data-v-d92f642a"]]),REe=[{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 L 10 0 L 10 20 L 20 20",style:"solid",points:["","arrow"],isBroken2:!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}]}],bEe={class:"line-pool"},xEe={class:"category-name"},SEe={class:"line-list"},wEe=["onClick"],MEe={overflow:"visible",width:"20",height:"20"},LEe=["d","stroke-dasharray","marker-start","marker-end"],TEe=Ee({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,r=i=>{n("select",i)};return(i,o)=>(U(),ee("div",bEe,[(U(!0),ee(Ne,null,Je(z(REe),(a,s)=>(U(),ee("div",{class:"category",key:a.type},[V("div",xEe,dt(a.type),1),V("div",SEe,[(U(!0),ee(Ne,null,Je(a.children,(l,u)=>(U(),ee("div",{class:"line-item",key:u},[V("div",{class:"line-content",onClick:c=>r(l)},[(U(),ee("svg",MEe,[V("defs",null,[l.points[0]?(U(),Te(jf,{key:0,class:"line-marker",id:`preset-line-${s}-${u}`,position:"start",type:l.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Ye("",!0),l.points[1]?(U(),Te(jf,{key:1,class:"line-marker",id:`preset-line-${s}-${u}`,position:"end",type:l.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Ye("",!0)]),V("path",{class:"line-path",d:l.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":l.style==="solid"?"0, 0":"4, 1","marker-start":l.points[0]?`url(#${`preset-line-${s}-${u}`}-${l.points[0]}-start)`:"","marker-end":l.points[1]?`url(#${`preset-line-${s}-${u}`}-${l.points[1]}-end)`:""},null,8,LEe)]))],8,wEe)]))),128))])]))),128))]))}}),_Ee=Be(TEe,[["__scopeId","data-v-fd42a3c4"]]),OEe={class:"chart-pool"},kEe=["onClick"],PEe={class:"name"},CEe=Ee({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,r=["bar","column","line","area","scatter","pie","ring","radar"],i=o=>{n("select",o)};return(o,a)=>{const s=xe("IconChartLine"),l=xe("IconChartHistogram"),u=xe("IconChartPie"),c=xe("IconChartHistogramOne"),f=xe("IconChartLineArea"),d=xe("IconChartRing"),h=xe("IconChartScatter"),p=xe("IconRadarChart");return U(),ee("ul",OEe,[(U(),ee(Ne,null,Je(r,(v,g)=>V("li",{class:"chart-item",key:g},[V("div",{class:"chart-content",onClick:m=>i(v)},[v==="line"?(U(),Te(s,{key:0,size:"24"})):v==="bar"?(U(),Te(l,{key:1,size:"24"})):v==="pie"?(U(),Te(u,{key:2,size:"24"})):v==="column"?(U(),Te(c,{key:3,size:"24"})):v==="area"?(U(),Te(f,{key:4,size:"24"})):v==="ring"?(U(),Te(d,{key:5,size:"24"})):v==="scatter"?(U(),Te(h,{key:6,size:"24"})):v==="radar"?(U(),Te(p,{key:7,size:"23"})):Ye("",!0),V("div",PEe,dt(z(OT)[v]),1)],8,kEe)])),64))])}}}),IEe=Be(CEe,[["__scopeId","data-v-55770a5d"]]),jee=e=>($t("data-v-ba8ef208"),e=e(),jt(),e),NEe={class:"prefix"},FEe={class:"input-wrap"},EEe=["disabled","placeholder"],XEe={class:"handlers"},WEe=jee(()=>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)),VEe=[WEe],DEe=jee(()=>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)),UEe=[DEe],BEe={class:"suffix"},YEe=Ee({__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,i=he(0),o=he(!1);Lt(()=>n.value,()=>{n.value!==i.value&&(i.value=n.value)},{immediate:!0}),Lt(i,()=>{const c=+i.value;if(!isNaN(c)){{if(c>n.max)return;if(c{let c=+i.value;isNaN(c)?c=n.min:c>n.max?c=n.max:c{a(),r("enter",c)},l=c=>{a(),o.value=!1,r("blur",c)},u=c=>{o.value=!0,r("focus",c)};return(c,f)=>(U(),ee("div",{class:Ge(["number-input",{disabled:c.disabled,focused:o.value}])},[V("span",NEe,[ar(c.$slots,"prefix",{},void 0,!0)]),V("div",FEe,[ze(V("input",{type:"text",disabled:c.disabled,"onUpdate:modelValue":f[0]||(f[0]=d=>i.value=d),placeholder:c.placeholder,onInput:f[1]||(f[1]=d=>r("input",d)),onFocus:f[2]||(f[2]=d=>u(d)),onBlur:f[3]||(f[3]=d=>l(d)),onChange:f[4]||(f[4]=d=>r("change",d)),onKeydown:f[5]||(f[5]=pl(d=>s(d),["enter"]))},null,40,EEe),[[Zm,i.value]]),V("div",XEe,[V("span",{class:"handler",onClick:f[6]||(f[6]=d=>i.value+=c.step)},VEe),V("span",{class:"handler",onClick:f[7]||(f[7]=d=>i.value-=c.step)},UEe)])]),V("span",BEe,[ar(c.$slots,"suffix",{},void 0,!0)])],2))}}),ta=Be(YEe,[["__scopeId","data-v-ba8ef208"]]),qee=e=>($t("data-v-dcc16f05"),e=e(),jt(),e),ZEe={class:"table-generator"},QEe={class:"title"},HEe={class:"lef"},KEe=["onMouseenter"],GEe={key:1,class:"custom"},zEe={class:"row"},JEe=qee(()=>V("div",{class:"label",style:{width:"25%"}},"行数:",-1)),$Ee={class:"row"},jEe=qee(()=>V("div",{class:"label",style:{width:"25%"}},"列数:",-1)),qEe={class:"btns"},eXe=Ee({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,r=he([]),i=he(3),o=he(3),a=he(!1),s=()=>{if(!r.value.length)return;const[c,f]=r.value;n("insert",{row:c,col:f})},l=()=>{if(i.value<1||i.value>20||o.value<1||o.value>20)return un.warning("行数/列数必须在0~20之间!");n("insert",{row:i.value,col:o.value}),a.value=!1},u=()=>{n("close"),a.value=!1};return(c,f)=>(U(),ee("div",ZEe,[V("div",QEe,[V("div",HEe,"表格 "+dt(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)},dt(a.value?"返回":"自定义"),1)]),a.value?(U(),ee("div",GEe,[V("div",zEe,[JEe,O(ta,{min:1,max:20,value:i.value,"onUpdate:value":f[3]||(f[3]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",$Ee,[jEe,O(ta,{min:1,max:20,value:o.value,"onUpdate:value":f[4]||(f[4]=d=>o.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",qEe,[O(qe,{class:"btn",onClick:f[5]||(f[5]=d=>u())},{default:ie(()=>[De("取消")]),_:1}),O(qe,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>l())},{default:ie(()=>[De("确认")]),_:1})])])):(U(),ee("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[V("tbody",null,[(U(),ee(Ne,null,Je(10,d=>V("tr",{key:d},[(U(),ee(Ne,null,Je(10,h=>V("td",{onMouseenter:p=>r.value=[d,h],key:h},[V("div",{class:Ge(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,KEe)),64))])),64))])],32))]))}}),tXe=Be(eXe,[["__scopeId","data-v-dcc16f05"]]),nXe={class:"media-input"},rXe={class:"btns"},iXe={class:"btns"},oXe=Ee({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const n=t,r=he("video"),i=he("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),o=he("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!i.value)return un.error("请先输入正确的视频地址");n("insertVideo",i.value)},l=()=>{if(!o.value)return un.error("请先输入正确的音频地址");n("insertAudio",o.value)};return(u,c)=>(U(),ee("div",nXe,[O(gl,{tabs:a,value:r.value,"onUpdate:value":c[0]||(c[0]=f=>r.value=f),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(U(),ee(Ne,{key:0},[O(pu,{value:i.value,"onUpdate:value":c[1]||(c[1]=f=>i.value=f),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),V("div",rXe,[O(qe,{onClick:c[2]||(c[2]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[De("取消")]),_:1}),O(qe,{type:"primary",onClick:c[3]||(c[3]=f=>s())},{default:ie(()=>[De("确认")]),_:1})])],64)):Ye("",!0),r.value==="audio"?(U(),ee(Ne,{key:1},[O(pu,{value:o.value,"onUpdate:value":c[4]||(c[4]=f=>o.value=f),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),V("div",iXe,[O(qe,{onClick:c[5]||(c[5]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[De("取消")]),_:1}),O(qe,{type:"primary",onClick:c[6]||(c[6]=f=>l())},{default:ie(()=>[De("确认")]),_:1})])],64)):Ye("",!0)]))}}),aXe=Be(oXe,[["__scopeId","data-v-999b18ca"]]);var WR=82;function Ep(e){return I_[e]==null&&sXe(e),I_[e]}function sXe(e){var t=lXe[e];if(t!=null){for(var n=t.substring(3,5),r=1*n.charCodeAt(0)-WR,i=1*n.charCodeAt(1)-WR,o=t.substring(5),a=[[]],s=1/0,l=-1/0,u=1/0,c=-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 Pa={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function uXe(e){e=e.replace(/\n/g," ");let t=0,n=[],r="";for(;t0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;c=e[f].bbox.y,e[u].text=="'"?e[u].bbox.y=c:(To(e[u],Pa.SUB_SUP_SCALE,null,0,0),Tn[e[f].text]&&Tn[e[f].text].flags.big?e[u].bbox.y=c-e[u].bbox.h:e[f].text=="\\int"?e[u].bbox.y=c:e[u].bbox.y=c-e[u].bbox.h/2)}else if(e[u].text=="_"){let c=1,f=u;for(;f>0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;c=e[f].bbox.y+e[f].bbox.h,To(e[u],Pa.SUB_SUP_SCALE,null,0,0),Tn[e[f].text]&&Tn[e[f].text].flags.big?e[u].bbox.y=c:e[f].text=="\\int"?e[u].bbox.y=c-e[u].bbox.h:e[u].bbox.y=c-e[u].bbox.h/2}function n(u,c,f,d,h){let p=u,v=h,g=1/0,m=-1/0;for(;d>0?p=0;){if(e[p].text==c)v++;else if(e[p].text==f){if(v--,v==0)break}else e[p].text=="^"||e[p].text=="_"||e[p].bbox&&(g=Math.min(g,e[p].bbox.y),m=Math.max(m,e[p].bbox.y+e[p].bbox.h));p+=d}return[g,m]}for(let u=0;uu.text=="&"||u.text=="\\\\"))return;let r=[],i=[],o=[];for(let u=0;u0&&(e.chld[y].text=="^"||e.chld[y].text=="_"||e.chld[y].text=="'");)y--;let R=Tn[e.chld[y].text]&&Tn[e.chld[y].text].flags.big;if(g.text=="'"){let A=y+1,x=0;for(;A1;dXe(e.chld,f);let p=tte(e.chld);e.text=="\\text"&&(p.x-=1,p.w+=2);for(let v=0;vr.bbox.w)c=c/Math.max(a.w,1)*r.bbox.w,c+=r.bbox.x;else{c=c/16*i;let d=(r.bbox.w-a.w/16*i)/2;c+=r.bbox.x+d}if(Tn[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*i,o){let d=(a.ymax+a.ymin)/2;f-=d/16*i}f+=r.bbox.y+r.bbox.h/2}l.push([c,f])}t.push(l)}}else if(Tn[r.text]&&Tn[r.text].flags.txt||r.type=="char"){let a=r.bbox.x,s=!!(Tn[r.text]&&Tn[r.text].flags.txt);for(let l=Number(s);l16?h*=16/u.w:h+=(16-u.w)/2/16),h+=a,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}t.push(f)}r.mode=="tt"?a+=i:a+=u.w/16*i}}}return t}function El(e){return Math.round(e*100)/100}var $P=class{constructor(e){this._latex=e,this._tokens=uXe(e),this._tree=N_(this._tokens),ete(this._tree.chld),Wl(this._tree),hXe(this._tree),this._polylines=pXe(this._tree)}resolveScale(e){var t,n,r,i;if(e==null)return[16,16,16,16];let o=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let u=0;for(let f=0;f"].join(r)}function P_(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ZU(e,t,n,r){return Ai("svg","root",{width:e,height:t,xmlns:gee,"xmlns:xlink":mee,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var SNe=0;function Aee(){return SNe++}var QU={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},lh="transform-origin";function wNe(e,t,n){var r=vt({},e.shape);vt(r,t),e.buildPath(n,r);var i=new vee;return i.reset(e$(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function MNe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[lh]=n+"px "+r+"px")}var LNe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ree(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function TNe(e,t,n){var r=e.shape.paths,i={},o,a;if(ke(r,function(l){var u=P_(n.zrId);u.animation=!0,e4(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Un(c),h=d.length;if(h){a=d[h-1];var p=c[a];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(a)>=0&&(o=y)}}}),!!o){t.d=!1;var s=Ree(i,n);return o.replace(a,s)}}function HU(e){return Kt(e)?QU[e]?"cubic-bezier("+QU[e]+")":$k(e)?e:"":""}function e4(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof Y$){var s=TNe(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0}).length){var de=Ree(M,n);return de+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+Aee();n.cssNodes["."+m]={animation:a.join(",")},t.class=m}}function _Ne(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};KU(r,t,n)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=W6(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),KU(r,t,n)}}function KU(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+Aee(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=e),t.class=t.class?t.class+" "+o:o}var L2=Math.round;function bee(e){return e&&Kt(e.src)}function xee(e){return e&&Rn(e.toDataURL)}function HP(e,t,n,r){mNe(function(i,o){var a=i==="fill"||i==="stroke";a&&qJ(o)?wee(t,e,i,r):a&&jk(o)?Mee(n,e,i,r):a&&o==="none"?e[i]="transparent":e[i]=o},t,n,!1),FNe(n,e,r)}function KP(e,t){var n=o8e(t);n&&(n.each(function(r,i){r!=null&&(e[(YU+i).toLowerCase()]=r+"")}),t.isSilent()&&(e[YU+"silent"]="true"))}function GU(e){return _f(e[0]-1)&&_f(e[1])&&_f(e[2])&&_f(e[3]-1)}function ONe(e){return _f(e[4])&&_f(e[5])}function GP(e,t,n){if(t&&!(ONe(t)&&GU(t))){var r=1e4;e.transform=GU(t)?"translate("+L2(t[4]*r)/r+" "+L2(t[5]*r)/r+")":_Le(t)}}function zU(e,t,n){for(var r=e.points,i=[],o=0;o"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";yu(d,g),yu(h,g)}else if(d==null||h==null){var m=function(w,P){if(w){var k=w.elm,N=d||P.width,C=h||P.height;w.tag==="pattern"&&(u?(C=1,N/=o.width):c&&(N=1,C/=o.height)),w.attrs.width=N,w.attrs.height=C,k&&(k.setAttribute("width",N),k.setAttribute("height",C))}},y=iP(p,null,e,function(w){l||m(S,w),m(f,w)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=Ai("image","img",{href:p,width:d,height:h}),a.width=d,a.height=h}else i.svgElement&&(f=Dn(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(f){var R,A;l?R=A=1:u?(A=1,R=a.width/o.width):c?(R=1,A=a.height/o.height):a.patternUnits="userSpaceOnUse",R!=null&&!isNaN(R)&&(a.width=R),A!=null&&!isNaN(A)&&(a.height=A);var x=t$(i);x&&(a.patternTransform=x);var S=Ai("pattern","",a,[f]),M=QP(S),L=r.patternCache,T=L[M];T||(T=r.zrId+"-p"+r.patternIdx++,L[M]=T,a.id=T,S=r.defs[T]=Ai("pattern",T,a,[f])),t[n]=L3(T)}}function ENe(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[e.id]=o,i[o]=Ai("clipPath",o,a,[See(e,n)])}t["clip-path"]=L3(o)}function jU(e){return document.createTextNode(e)}function ph(e,t,n){e.insertBefore(t,n)}function qU(e,t){e.removeChild(t)}function eB(e,t){e.appendChild(t)}function Lee(e){return e.parentNode}function Tee(e){return e.nextSibling}function n8(e,t){e.textContent=t}var tB=58,XNe=120,WNe=Ai("","");function C_(e){return e===void 0}function Ql(e){return e!==void 0}function VNe(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;o!==void 0&&(r[o]=i)}return r}function Wg(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function T2(e){var t,n=e.children,r=e.tag;if(Ql(r)){var i=e.elm=yee(r);if(zP(WNe,e),Ft(n))for(t=0;to?(p=n[l+1]==null?null:n[l+1].elm,_ee(e,p,n,i,l)):mS(e,t,r,o))}function Mp(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(zP(e,t),C_(t.text)?Ql(r)&&Ql(i)?r!==i&&DNe(n,r,i):Ql(i)?(Ql(e.text)&&n8(n,""),_ee(n,null,i,0,i.length-1)):Ql(r)?mS(n,r,0,r.length-1):Ql(e.text)&&n8(n,""):e.text!==t.text&&(Ql(r)&&mS(n,r,0,r.length-1),n8(n,t.text)))}function UNe(e,t){if(Wg(e,t))Mp(e,t);else{var n=e.elm,r=Lee(n);T2(t),r!==null&&(ph(r,t.elm,Tee(n)),mS(r,[e],0,0))}return t}var BNe=0,YNe=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=nB(),this.configLayer=nB(),this.storage=n,this._opts=r=vt({},r),this.root=t,this._id="zr"+BNe++,this._oldVNode=ZU(r.width,r.height),t&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=yee("svg");zP(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",UNe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return $U(t,P_(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=P_(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis;var a=[],s=this._bgVNode=ZNe(r,i,this._backgroundColor,o);s&&a.push(s);var l=t.compress?null:this._mainVNode=Ai("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var u=Ot(Un(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(Ai("defs","defs",{},u)),t.animation){var c=xNe(o.cssNodes,o.cssAnims,{newline:!0});if(c){var f=Ai("style","stl",{},[],c);a.push(f)}}return ZU(r,i,a,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},QP(this.renderToVNode({animation:ln(t.cssAnimation,!0),emphasis:ln(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ln(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var i=t.length,o=[],a=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)a--,s=o[a-1];for(var m=v+1;m{let a=[];if(t.themeColors.length>=10)a=t.themeColors;else if(t.themeColors.length===1)a=ot(t.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=t.themeColors.length,l=ot(t.themeColors[s-1]).analogous(11-s).map(u=>u.toRgbString());a=[...t.themeColors.slice(0,s-1),...l]}return a}),o=()=>{var s,l;const a=y5e({type:t.type,data:t.data,themeColors:i.value,textColor:t.textColor,lineSmooth:((s=t.options)==null?void 0:s.lineSmooth)||!1,stack:((l=t.options)==null?void 0:l.stack)||!1});a&&n.setOption(a,!0)};return Wt(()=>{n=Vke(r.value,null,{renderer:"svg"}),o();const a=()=>n.resize();new ResizeObserver(a).observe(r.value)}),Lt(()=>t.type,o),Lt(()=>t.data,o),Lt(()=>t.themeColors,o),Lt(()=>t.textColor,o),(a,s)=>(U(),ee("div",{class:"chart",ref_key:"chartRef",ref:r},null,512))}}),Oee=Be(HNe,[["__scopeId","data-v-1e5b5ad9"]]),KNe=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))},r=()=>{Gi.emit(Ti.OPEN_CHART_DATA_EDITOR)};return(i,o)=>{const a=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-chart",{lock:i.elementInfo.lock}]),style:Me({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Me({transform:`rotate(${i.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",style:Me({backgroundColor:i.elementInfo.fill}),onMousedown:o[0]||(o[0]=s=>n(s)),onTouchstart:o[1]||(o[1]=s=>n(s)),onDblclick:o[2]||(o[2]=s=>r())},[O(A3,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),O(Oee,{width:i.elementInfo.width,height:i.elementInfo.height,type:i.elementInfo.chartType,data:i.elementInfo.data,themeColors:i.elementInfo.themeColors,textColor:i.elementInfo.textColor,options:i.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],36)),[[a,i.contextmenus]])],4)],6)}}}),kee=Be(KNe,[["__scopeId","data-v-3b1105a2"]]),Pee=e=>{if(!e)return{};const{bold:t,em:n,underline:r,strikethrough:i,color:o,backcolor:a,fontsize:s,fontname:l,align:u}=e;let c=`${r?"underline":""} ${i?"line-through":""}`;return c===" "&&(c="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:c,color:o||"#000",backgroundColor:a||"",fontSize:s||"14px",fontFamily:l||"",textAlign:u||"left"}},Cee=e=>e.replace(/\n/g,"
    ").replace(/ /g," "),Iee=e=>({hideCells:Se(()=>{const n=[];for(let r=0;r1||a.rowspan>1)for(let s=r;s{const t=he(["",""]);return Lt(()=>e.value,()=>{e.value&&(t.value=JH(e.value.color))},{immediate:!0}),{subThemeColor:t}},GNe=["innerHTML"],zNe=Ee({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,r=t,i=he(),o=he(""),a=he(!1);Lt(()=>n.value,()=>{a.value||(o.value=n.value,i.value&&(i.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!i.value)return;const c=i.value.innerHTML;r("updateValue",c)},l=()=>{a.value=!0,i.value&&(i.value.onpaste=c=>{if(c.preventDefault(),!c.clipboardData)return;const f=c.clipboardData.items[0];f&&f.kind==="string"&&f.type==="text/plain"&&f.getAsString(d=>{if(typeof ek(d)=="object")return;const p=KH(d);if(p){r("insertExcelData",p),i.value&&(i.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)})})},u=()=>{a.value=!1,i.value&&(i.value.onpaste=null)};return s0(()=>{i.value&&(i.value.onpaste=null)}),(c,f)=>(U(),ee("div",{class:"custom-textarea",ref_key:"textareaRef",ref:i,contenteditable:!0,onFocus:f[0]||(f[0]=d=>l()),onBlur:f[1]||(f[1]=d=>u()),onInput:f[2]||(f[2]=d=>s()),innerHTML:o.value},null,40,GNe))}}),JNe=Be(zNe,[["__scopeId","data-v-cfadb975"]]),$Ne={key:0,class:"handler"},jNe=["onMousedown"],qNe=["width"],e7e=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],t7e=["innerHTML"],n7e=Ee({__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:i}=Ve(pt()),o=he(!1),a=he([]),s=he([]),l=Se({get(){return n.data},set(ue){r("change",ue)}}),u=Se(()=>n.theme),{subThemeColor:c}=Nee(u),f=he([]),d=Se(()=>f.value.reduce((ue,fe)=>ue+fe));Lt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(ue=>ue*n.width)},{immediate:!0});const h=()=>{a.value=[],s.value=[]};Lt(()=>n.editable,()=>{n.editable||h()});const p=Se(()=>{const ue=[];for(let fe=1;feq+E);ue.push(se)}return ue}),v=Se(()=>n.data),{hideCells:g}=Iee(v),m=Se(()=>{if(!a.value.length)return[];const[ue,fe]=a.value;if(!s.value.length)return[`${ue}_${fe}`];const[se,q]=s.value;if(ue===se&&fe===q)return[`${ue}_${fe}`];const E=[],te=Math.min(ue,se),le=Math.min(fe,q),ne=Math.max(ue,se),re=Math.max(fe,q);for(let ae=0;ae=te&&ae<=ne&&ce>=le&&ce<=re&&E.push(`${ae}_${ce}`)}return E});Lt(m,(ue,fe)=>{Zn.isEqual(ue,fe)||r("changeSelectedCells",m.value)});const y=Se(()=>m.value.length>1?null:m.value[0]),R=()=>o.value=!1,A=(ue,fe,se)=>{ue.button===0&&(s.value=[],o.value=!0,a.value=[fe,se])},x=(ue,fe)=>{o.value&&(s.value=[ue,fe])};Wt(()=>{document.addEventListener("mouseup",R)}),En(()=>{document.removeEventListener("mouseup",R)});const S=(ue,fe)=>g.value.includes(`${ue}_${fe}`),M=ue=>{const fe=l.value.length-1;a.value=[0,ue],s.value=[fe,ue]},L=ue=>{const fe=l.value[ue].length-1;a.value=[ue,0],s.value=[ue,fe]},T=()=>{const ue=l.value.length-1,fe=l.value[ue].length-1;a.value=[0,0],s.value=[ue,fe]},w=ue=>{const fe=JSON.parse(JSON.stringify(l.value)),se=l.value[ue],q=[];for(let E=0;E=0;te--)if(!S(te,E)){fe[te][E].rowspan=fe[te][E].rowspan-1;break}fe.splice(ue,1),l.value=fe},P=ue=>{const fe=JSON.parse(JSON.stringify(l.value)),se=[];for(let q=0;q=0;E--)if(!S(q,E)){fe[q][E].colspan=fe[q][E].colspan-1;break}l.value=fe.map(q=>(q.splice(ue,1),q)),f.value.splice(ue,1),r("changeColWidths",f.value)},k=ue=>{const fe=JSON.parse(JSON.stringify(l.value)),se=[];for(let q=0;q{l.value=l.value.map(fe=>{const se={colspan:1,rowspan:1,text:"",id:Qt(10)};return fe.splice(ue,0,se),fe}),f.value.splice(ue,0,100),r("changeColWidths",f.value)},C=(ue,fe)=>{let se=JSON.parse(JSON.stringify(l.value));const q={colspan:1,rowspan:1,text:""};if(ue){const E=[];for(let te=0;te{const te=[];for(let le=0;le{const[ue,fe]=a.value,[se,q]=s.value,E=Math.min(ue,se),te=Math.min(fe,q),le=Math.max(ue,se),ne=Math.max(fe,q),re=JSON.parse(JSON.stringify(l.value));re[E][te].rowspan=le-E+1,re[E][te].colspan=ne-te+1,l.value=re,h()},F=(ue,fe)=>{const se=JSON.parse(JSON.stringify(l.value));se[ue][fe].rowspan=1,se[ue][fe].colspan=1,l.value=se,h()},W=(ue,fe)=>{h();let se=!0;const q=f.value[fe],E=ue.pageX,te=50;document.onmousemove=le=>{if(!se)return;const ne=(le.pageX-E)/i.value,re=q+ne{se=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},B=()=>{const ue=JSON.parse(JSON.stringify(l.value));for(let fe=0;fe{hr(()=>{const ue=document.querySelector(".cell-text.active");ue&&ue.focus()})},j=()=>{const ue=(E,te)=>l.value[E]?l.value[E][te]?S(E,te)?ue(E,te+1):[E,te]:ue(E+1,0):null;s.value=[];const fe=a.value[0],se=a.value[1]+1,q=ue(fe,se);q?a.value=q:(k(fe+1),a.value=[fe+1,0]),K()},D=ue=>{const fe=+m.value[0].split("_")[0],se=+m.value[0].split("_")[1],q=l.value.length,E=l.value[0].length,te=le=>{if(le[0]<0||le[1]<0||le[0]>q-1||le[1]>E-1)return[0,0];const ne=`${le[0]}_${le[1]}`;return g.value.includes(ne)?ue==="UP"?te([le[0],le[1]-1]):ue==="DOWN"?te([le[0],le[1]-1]):ue==="LEFT"?te([le[0]-1,le[1]]):ue==="RIGHT"?te([le[0]-1,le[1]]):[0,0]:le};if(ue==="UP"){const le=fe-1;if(le<0)return;s.value=[],a.value=te([le,se])}else if(ue==="DOWN"){const le=fe+1;if(le>q-1)return;s.value=[],a.value=te([le,se])}else if(ue==="LEFT"){const le=se-1;if(le<0)return;s.value=[],a.value=te([fe,le])}else if(ue==="RIGHT"){const le=se+1;if(le>E-1)return;s.value=[],a.value=te([fe,le])}K()},Y=ue=>{var se;const fe=window.getSelection();if(fe&&fe.rangeCount>0){const q=fe.getRangeAt(0),E=q.cloneRange();E.selectNodeContents(ue),E.setEnd(q.startContainer,q.startOffset);const te=E.toString().length;E.setEnd(q.endContainer,q.endOffset);const le=E.toString().length,ne=((se=ue.textContent)==null?void 0:se.length)||0;return{start:te,end:le,len:ne}}return null},Z=ue=>{if(!n.editable||!m.value.length)return;const fe=ue.key.toUpperCase();if(m.value.length<2){if(fe===yt.TAB)ue.preventDefault(),j();else if(ue.ctrlKey&&fe===yt.UP){ue.preventDefault();const se=+m.value[0].split("_")[0];k(se)}else if(ue.ctrlKey&&fe===yt.DOWN){ue.preventDefault();const se=+m.value[0].split("_")[0];k(se+1)}else if(ue.ctrlKey&&fe===yt.LEFT){ue.preventDefault();const se=+m.value[0].split("_")[1];N(se)}else if(ue.ctrlKey&&fe===yt.RIGHT){ue.preventDefault();const se=+m.value[0].split("_")[1];N(se+1)}else if(fe===yt.UP){const se=Y(ue.target);se&&se.start===se.end&&se.start===0&&D("UP")}else if(fe===yt.DOWN){const se=Y(ue.target);se&&se.start===se.end&&se.start===se.len&&D("DOWN")}else if(fe===yt.LEFT){const se=Y(ue.target);se&&se.start===se.end&&se.start===0&&D("LEFT")}else if(fe===yt.RIGHT){const se=Y(ue.target);se&&se.start===se.end&&se.start===se.len&&D("RIGHT")}}else fe===yt.DELETE&&B()};Wt(()=>{document.addEventListener("keydown",Z)}),En(()=>{document.removeEventListener("keydown",Z)});const H=Zn.debounce(function(ue,fe,se){l.value[fe][se].text=ue,r("change",l.value)},300,{trailing:!0}),$=(ue,fe,se)=>{const q=ue.length,E=ue[0].length;let te=0,le=0;fe+q>l.value.length&&(te=fe+q-l.value.length),se+E>l.value[0].length&&(le=se+E-l.value[0].length),(te||le)&&C(te,le),hr(()=>{for(let ne=0;ne{const ue=[];for(let fe=0;fe{const ue=G(),fe=ue.length>1,se=ue[0].length>1;return{canDeleteRow:fe,canDeleteCol:se}},J=(ue,fe)=>{const se=m.value.length>1,q=l.value[ue][fe],E=se,te=!se&&(q.rowspan>1||q.colspan>1);return{canMerge:E,canSplit:te}},Ae=ue=>{const fe=ue.dataset.cellIndex,se=+fe.split("_")[0],q=+fe.split("_")[1];m.value.includes(`${se}_${q}`)||(a.value=[se,q],s.value=[]);const{canMerge:E,canSplit:te}=J(se,q),{canDeleteRow:le,canDeleteCol:ne}=de();return[{text:"插入列",children:[{text:"到左侧",handler:()=>N(q)},{text:"到右侧",handler:()=>N(q+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>k(se)},{text:"到下方",handler:()=>k(se+1)}]},{text:"删除列",disable:!ne,handler:()=>P(q)},{text:"删除行",disable:!le,handler:()=>w(se)},{divider:!0},{text:"合并单元格",disable:!E,handler:I},{text:"取消合并单元格",disable:!te,handler:()=>F(se,q)},{divider:!0},{text:"选中当前列",handler:()=>M(q)},{text:"选中当前行",handler:()=>L(se)},{text:"选中全部单元格",handler:T}]};return(ue,fe)=>{var q,E,te,le,ne;const se=_n("contextmenu");return U(),ee("div",{class:"editable-table",style:Me({width:d.value+"px"})},[ue.editable?(U(),ee("div",$Ne,[(U(!0),ee(Ne,null,Je(p.value,(re,ae)=>(U(),ee("div",{class:"drag-line",key:ae,style:Me({left:re+"px"}),onMousedown:ve=>W(ve,ae)},null,44,jNe))),128))])):Ye("",!0),V("table",{class:Ge({theme:u.value,"row-header":(q=u.value)==null?void 0:q.rowHeader,"row-footer":(E=u.value)==null?void 0:E.rowFooter,"col-header":(te=u.value)==null?void 0:te.colHeader,"col-footer":(le=u.value)==null?void 0:le.colFooter}),style:Me(`--themeColor: ${(ne=u.value)==null?void 0:ne.color}; --subThemeColor1: ${z(c)[0]}; --subThemeColor2: ${z(c)[1]}`)},[V("colgroup",null,[(U(!0),ee(Ne,null,Je(f.value,(re,ae)=>(U(),ee("col",{span:"1",key:ae,width:re},null,8,qNe))),128))]),V("tbody",null,[(U(!0),ee(Ne,null,Je(l.value,(re,ae)=>(U(),ee("tr",{key:ae,style:Me({height:ue.cellMinHeight+"px"})},[(U(!0),ee(Ne,null,Je(re,(ve,ce)=>ze((U(),ee("td",{class:Ge(["cell",{selected:m.value.includes(`${ae}_${ce}`)&&m.value.length>1,active:y.value===`${ae}_${ce}`}]),style:Me({borderStyle:ue.outline.style,borderColor:ue.outline.color,borderWidth:ue.outline.width+"px",...z(Pee)(ve.style)}),key:ve.id,rowspan:ve.rowspan,colspan:ve.colspan,"data-cell-index":`${ae}_${ce}`,onMousedown:ge=>A(ge,ae,ce),onMouseenter:ge=>x(ae,ce)},[y.value===`${ae}_${ce}`?(U(),Te(JNe,{key:0,class:Ge(["cell-text",{active:y.value===`${ae}_${ce}`}]),style:Me({minHeight:ue.cellMinHeight-4+"px"}),value:ve.text,onUpdateValue:ge=>z(H)(ge,ae,ce),onInsertExcelData:ge=>$(ge,ae,ce)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(U(),ee("div",{key:1,class:"cell-text",style:Me({minHeight:ue.cellMinHeight-4+"px"}),innerHTML:z(Cee)(ve.text)},null,12,t7e))],46,e7e)),[[hc,!z(g).includes(`${ae}_${ce}`)],[se,ge=>Ae(ge)]])),128))],4))),128))])],6)],4)}}}),r7e=Be(n7e,[["__scopeId","data-v-938823e2"]]),i7e={class:"element-content"},o7e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{canvasScale:i,handleElementId:o,isScaling:a}=Ve(n),s=he(),{addHistorySnapshot:l}=on(),u=y=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo))},c=he(!1);Lt(o,()=>{o.value!==t.elementInfo.id&&(c.value=!1)}),Lt(c,()=>{n.setDisableHotkeysState(c.value)});const f=()=>{t.elementInfo.lock||(c.value=!0)},d=he(-1);Lt(a,()=>{o.value===t.elementInfo.id&&(a.value&&(c.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 A=R.height;t.elementInfo.height!==A&&(a.value?d.value=A:r.updateElement({id:t.elementInfo.id,props:{height:A}}))},p=new ResizeObserver(h);Wt(()=>{s.value&&p.observe(s.value)}),En(()=>{s.value&&p.unobserve(s.value)});const v=y=>{r.updateElement({id:t.elementInfo.id,props:{data:y}}),l()},g=y=>{const R=y.reduce((x,S)=>x+S),A=y.map(x=>x/R);r.updateElement({id:t.elementInfo.id,props:{width:R,colWidths:A}}),l()},m=y=>{hr(()=>n.setSelectedTableCells(y))};return(y,R)=>{const A=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-table",{lock:y.elementInfo.lock}]),ref_key:"elementRef",ref:s,style:Me({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Me({transform:`rotate(${y.elementInfo.rotate}deg)`})},[ze((U(),ee("div",i7e,[O(r7e,{onMousedown:R[0]||(R[0]=Nt(()=>{},["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:c.value,onChange:R[1]||(R[1]=x=>v(x)),onChangeColWidths:R[2]||(R[2]=x=>g(x)),onChangeSelectedCells:R[3]||(R[3]=x=>m(x))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!c.value||y.elementInfo.lock?(U(),ee("div",{key:0,class:Ge(["table-mask",{lock:y.elementInfo.lock}]),onDblclick:R[4]||(R[4]=x=>f()),onMousedown:R[5]||(R[5]=x=>u(x)),onTouchstart:R[6]||(R[6]=x=>u(x))},[z(o)===y.elementInfo.id?(U(),ee("div",{key:0,class:"mask-tip",style:Me({transform:`scale(${1/z(i)})`})},"双击编辑",4)):Ye("",!0)],34)):Ye("",!0)])),[[A,y.contextmenus]])],4)],6)}}}),Fee=Be(o7e,[["__scopeId","data-v-7795910a"]]),a7e=["width","height","stroke","stroke-width"],s7e=["transform"],l7e=["d"],u7e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))},r=()=>{Gi.emit(Ti.OPEN_LATEX_EDITOR)};return(i,o)=>{const a=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-latex",{lock:i.elementInfo.lock}]),style:Me({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Me({transform:`rotate(${i.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",onMousedown:o[0]||(o[0]=s=>n(s)),onTouchstart:o[1]||(o[1]=s=>n(s)),onDblclick:o[2]||(o[2]=s=>r())},[(U(),ee("svg",{overflow:"visible",width:i.elementInfo.width,height:i.elementInfo.height,stroke:i.elementInfo.color,"stroke-width":i.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${i.elementInfo.width/i.elementInfo.viewBox[0]}, ${i.elementInfo.height/i.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:i.elementInfo.path},null,8,l7e)],8,s7e)],8,a7e))],32)),[[a,i.contextmenus]])],4)],6)}}}),Eee=Be(u7e,[["__scopeId","data-v-b73586f6"]]),c7e=(e,t)=>{Wt(()=>{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 i=new r;i.loadSource(e),i.attachMedia(t.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const i=r.createPlayer({type:"flv",url:e});i.attachMediaElement(t.value),i.load()}}})},JP=e=>($t("data-v-597c0901"),e=e(),jt(),e),f7e={key:0,class:"load-error"},d7e=["src","autoplay","poster"],h7e={class:"bezel"},p7e=JP(()=>V("div",{class:"controller-mask"},null,-1)),v7e={class:"controller"},g7e={class:"icons icons-left"},m7e={class:"icon-content"},y7e={class:"volume"},A7e={class:"icon-content"},R7e=JP(()=>V("span",{class:"thumb"},null,-1)),b7e=[R7e],x7e={class:"time"},S7e={class:"ptime"},w7e={class:"dtime"},M7e={class:"icons icons-right"},L7e={class:"speed"},T7e={class:"icon speed-icon"},_7e=["onClick"],O7e={class:"icon-content"},k7e={class:"bar"},P7e=JP(()=>V("span",{class:"thumb"},null,-1)),C7e=[P7e],I7e=Ee({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,n=(E=0)=>{if(E===0||isNaN(E))return"00:00";const te=ae=>ae<10?"0"+ae:""+ae,le=Math.floor(E/3600),ne=Math.floor((E-le*3600)/60),re=Math.floor(E-le*3600-ne*60);return(le>0?[le,ne,re]:[ne,re]).map(te).join(":")},r=E=>E.getBoundingClientRect().left,i=he(),o=he(),a=he(),s=he(.5),l=he(!0),u=he(0),c=he(0),f=he(0),d=he(!1),h=he(!1),p=he(1),v=he(!1),g=he("00:00"),m=he("0"),y=Se(()=>n(u.value)),R=Se(()=>n(c.value)),A=Se(()=>u.value/c.value*100+"%"),x=Se(()=>f.value/c.value*100+"%"),S=Se(()=>s.value*100+"%"),M=he(!1),L=[{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}],T=E=>{i.value&&(E=Math.max(E,0),E=Math.min(E,c.value),i.value.currentTime=E,u.value=E)},w=()=>{i.value&&(l.value=!1,i.value.play(),h.value=!0)},P=()=>{i.value&&(l.value=!0,i.value.pause(),h.value=!0)},k=()=>{l.value?w():P()},N=E=>{i.value&&(E=Math.max(E,0),E=Math.min(E,1),i.value.volume=E,s.value=E,i.value.muted&&E!==0&&(i.value.muted=!1))},C=E=>{i.value&&(i.value.playbackRate=E),p.value=E},I=()=>{var E;c.value=((E=i.value)==null?void 0:E.duration)||0},F=()=>{var E;u.value=((E=i.value)==null?void 0:E.currentTime)||0},W=()=>{d.value?(T(0),w()):P()},B=()=>{var E;f.value=(E=i.value)!=null&&E.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},K=he(!1),j=()=>K.value=!0,D=E=>{if(!i.value||!o.value)return;let le=(("clientX"in E?E.clientX:E.changedTouches[0].clientX)-r(o.value))/o.value.clientWidth;le=Math.max(le,0),le=Math.min(le,1);const ne=le*c.value;i.value.currentTime=ne,u.value=ne},Y=E=>{if(!i.value||!o.value)return;let le=(("clientX"in E?E.clientX:E.changedTouches[0].clientX)-r(o.value))/o.value.clientWidth;le=Math.max(le,0),le=Math.min(le,1);const ne=le*c.value;i.value.currentTime=ne,u.value=ne,document.removeEventListener("mousemove",D),document.removeEventListener("touchmove",D),document.removeEventListener("mouseup",Y),document.removeEventListener("touchend",Y)},Z=()=>{document.addEventListener("mousemove",D),document.addEventListener("touchmove",D),document.addEventListener("mouseup",Y),document.addEventListener("touchend",Y)},H=E=>{if(!a.value)return;const le=(("clientX"in E?E.clientX:E.changedTouches[0].clientX)-r(a.value))/45;N(le)},$=()=>{document.removeEventListener("mousemove",H),document.removeEventListener("touchmove",H),document.removeEventListener("mouseup",$),document.removeEventListener("touchend",$)},G=()=>{document.addEventListener("mousemove",H),document.addEventListener("touchmove",H),document.addEventListener("mouseup",$),document.addEventListener("touchend",$)},de=E=>{if(!a.value)return;const te=(E.clientX-r(a.value))/45;N(te)},J=E=>{if(c.value&&o.value){const te=o.value.getBoundingClientRect().left,le=E.clientX-te;if(le<0||le>o.value.offsetWidth)return;const ne=c.value*(le/o.value.offsetWidth);m.value=`${le-(ne>=3600?25:20)}px`,g.value=n(ne),v.value=!0}},Ae=()=>{i.value&&(i.value.muted?(i.value.muted=!1,N(.5)):(i.value.muted=!0,N(0)))},ue=()=>{d.value=!d.value},fe=he(-1),se=he(!1),q=()=>{se.value=!1,clearTimeout(fe.value),fe.value=setTimeout(()=>{var E;(E=i.value)!=null&&E.played.length&&(se.value=!0)},3e3)};return c7e(t.src,i),(E,te)=>{const le=xe("IconPause"),ne=xe("IconPlayOne"),re=xe("IconVolumeMute"),ae=xe("IconVolumeNotice"),ve=xe("IconVolumeSmall");return U(),ee("div",{class:Ge(["video-player",{"hide-controller":se.value}]),style:Me({width:E.width*E.scale+"px",height:E.height*E.scale+"px",transform:`scale(${1/E.scale})`}),onMousemove:te[22]||(te[22]=ce=>q()),onClick:te[23]||(te[23]=ce=>q())},[V("div",{class:"video-wrap",onClick:te[8]||(te[8]=ce=>k())},[K.value?(U(),ee("div",f7e,"视频加载失败")):Ye("",!0),V("video",{class:"video",ref_key:"videoRef",ref:i,src:E.src,autoplay:E.autoplay,poster:E.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:te[0]||(te[0]=ce=>I()),onTimeupdate:te[1]||(te[1]=ce=>F()),onEnded:te[2]||(te[2]=ce=>W()),onProgress:te[3]||(te[3]=ce=>B()),onPlay:te[4]||(te[4]=ce=>{q(),l.value=!1}),onPause:te[5]||(te[5]=ce=>q()),onError:te[6]||(te[6]=ce=>j())},null,40,d7e),V("div",h7e,[V("span",{class:Ge(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:te[7]||(te[7]=ce=>h.value=!1)},[l.value?(U(),Te(le,{key:0})):(U(),Te(ne,{key:1}))],34)])]),p7e,V("div",v7e,[V("div",g7e,[V("div",{class:"icon play-icon",onClick:te[9]||(te[9]=ce=>k())},[V("span",m7e,[l.value?(U(),Te(ne,{key:0})):(U(),Te(le,{key:1}))])]),V("div",y7e,[V("div",{class:"icon volume-icon",onClick:te[10]||(te[10]=ce=>Ae())},[V("span",A7e,[s.value===0?(U(),Te(re,{key:0})):s.value===1?(U(),Te(ae,{key:1})):(U(),Te(ve,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:te[11]||(te[11]=ce=>G()),onTouchstart:te[12]||(te[12]=ce=>G()),onClick:te[13]||(te[13]=ce=>de(ce))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:a},[V("div",{class:"volume-bar-inner",style:Me({width:S.value})},b7e,4)],512)],32)]),V("span",x7e,[V("span",S7e,dt(y.value),1),De(" / "),V("span",w7e,dt(R.value),1)])]),V("div",M7e,[V("div",L7e,[V("div",T7e,[V("span",{class:"icon-content",onClick:te[14]||(te[14]=ce=>M.value=!M.value)},dt(p.value===1?"倍速":p.value+"x"),1),M.value?(U(),ee("div",{key:0,class:"speed-menu",onMouseleave:te[15]||(te[15]=ce=>M.value=!1)},[(U(),ee(Ne,null,Je(L,ce=>V("div",{class:Ge(["speed-menu-item",{active:ce.value===p.value}]),key:ce.label,onClick:ge=>C(ce.value)},dt(ce.label),11,_7e)),64))],32)):Ye("",!0)])]),V("div",{class:"loop",onClick:te[16]||(te[16]=ce=>ue())},[V("div",{class:Ge(["icon loop-icon",{active:d.value}])},[V("span",O7e,"循环"+dt(d.value?"开":"关"),1)],2)])]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:te[17]||(te[17]=ce=>Z()),onTouchstart:te[18]||(te[18]=ce=>Z()),onMousemove:te[19]||(te[19]=ce=>J(ce)),onMouseenter:te[20]||(te[20]=ce=>v.value=!0),onMouseleave:te[21]||(te[21]=ce=>v.value=!1)},[V("div",{class:Ge(["bar-time",{hidden:!v.value}]),style:Me({left:m.value})},dt(g.value),7),V("div",k7e,[V("div",{class:"loaded",style:Me({width:x.value})},null,4),V("div",{class:"played",style:Me({width:A.value})},C7e,4)])],544)])],38)}}}),Xee=Be(I7e,[["__scopeId","data-v-597c0901"]]),N7e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=(i,o=!0)=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo,o))};return(i,o)=>{const a=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-video",{lock:i.elementInfo.lock}]),style:Me({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Me({transform:`rotate(${i.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",onMousedown:o[2]||(o[2]=s=>r(s,!1)),onTouchstart:o[3]||(o[3]=s=>r(s,!1))},[O(Xee,{width:i.elementInfo.width,height:i.elementInfo.height,src:i.elementInfo.src,poster:i.elementInfo.poster,scale:z(n)},null,8,["width","height","src","poster","scale"]),(U(),ee(Ne,null,Je(["t","b","l","r"],s=>V("div",{class:Ge(["handler-border",s]),key:s,onMousedown:o[0]||(o[0]=l=>r(l)),onTouchstart:o[1]||(o[1]=l=>r(l))},null,34)),64))],32)),[[a,i.contextmenus]])],4)],6)}}}),Wee=Be(N7e,[["__scopeId","data-v-c50d3bc7"]]),Vee=e=>($t("data-v-32038f5c"),e=e(),jt(),e),F7e=["src","autoplay"],E7e={class:"controller"},X7e={class:"icons"},W7e={class:"icon-content"},V7e={class:"volume"},D7e={class:"icon-content"},U7e=Vee(()=>V("span",{class:"thumb"},null,-1)),B7e=[U7e],Y7e={class:"time"},Z7e={class:"ptime"},Q7e={class:"dtime"},H7e={class:"bar"},K7e=Vee(()=>V("span",{class:"thumb"},null,-1)),G7e=[K7e],z7e=Ee({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const n=e,r=($=0)=>{if($===0||isNaN($))return"00:00";const G=ue=>ue<10?"0"+ue:""+ue,de=Math.floor($/3600),J=Math.floor(($-de*3600)/60),Ae=Math.floor($-de*3600-J*60);return(de>0?[de,J,Ae]:[J,Ae]).map(G).join(":")},i=$=>$.getBoundingClientRect().left,o=he(),a=he(),s=he(),l=he(.5),u=he(!0),c=he(0),f=he(0),d=he(0),h=he(!1),p=he("00:00"),v=he("0"),g=Se(()=>r(c.value)),m=Se(()=>r(f.value)),y=Se(()=>c.value/f.value*100+"%"),R=Se(()=>d.value/f.value*100+"%"),A=Se(()=>l.value*100+"%"),x=$=>{o.value&&($=Math.max($,0),$=Math.min($,f.value),o.value.currentTime=$,c.value=$)},S=()=>{o.value&&(u.value=!1,o.value.play())},M=()=>{o.value&&(u.value=!0,o.value.pause())},L=()=>{u.value?S():M()},T=$=>{o.value&&($=Math.max($,0),$=Math.min($,1),o.value.volume=$,l.value=$,o.value.muted&&$!==0&&(o.value.muted=!1))},w=()=>{var $;f.value=(($=o.value)==null?void 0:$.duration)||0},P=()=>{var $;c.value=(($=o.value)==null?void 0:$.currentTime)||0},k=()=>{u.value=!1},N=()=>{n.loop?(x(0),S()):M()},C=()=>{var $;d.value=($=o.value)!=null&&$.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},I=()=>un.error("视频加载失败"),F=$=>{if(!o.value||!a.value)return;let de=(("clientX"in $?$.clientX:$.changedTouches[0].clientX)-i(a.value))/a.value.clientWidth;de=Math.max(de,0),de=Math.min(de,1);const J=de*f.value;o.value.currentTime=J,c.value=J},W=$=>{if(!o.value||!a.value)return;let de=(("clientX"in $?$.clientX:$.changedTouches[0].clientX)-i(a.value))/a.value.clientWidth;de=Math.max(de,0),de=Math.min(de,1);const J=de*f.value;o.value.currentTime=J,c.value=J,document.removeEventListener("mousemove",F),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",W),document.removeEventListener("touchend",W)},B=()=>{document.addEventListener("mousemove",F),document.addEventListener("touchmove",F),document.addEventListener("mouseup",W),document.addEventListener("touchend",W)},K=$=>{if(!s.value)return;const de=(("clientX"in $?$.clientX:$.changedTouches[0].clientX)-i(s.value))/45;T(de)},j=()=>{document.removeEventListener("mousemove",K),document.removeEventListener("touchmove",K),document.removeEventListener("mouseup",j),document.removeEventListener("touchend",j)},D=()=>{document.addEventListener("mousemove",K),document.addEventListener("touchmove",K),document.addEventListener("mouseup",j),document.addEventListener("touchend",j)},Y=$=>{if(!s.value)return;const G=($.clientX-i(s.value))/45;T(G)},Z=$=>{if(f.value&&a.value){const G=a.value.getBoundingClientRect().left,de=$.clientX-G;if(de<0||de>a.value.offsetWidth)return;const J=f.value*(de/a.value.offsetWidth);v.value=`${de-(J>=3600?25:20)}px`,p.value=r(J),h.value=!0}},H=()=>{o.value&&(o.value.muted?(o.value.muted=!1,T(.5)):(o.value.muted=!0,T(0)))};return t({toggle:L}),($,G)=>{const de=xe("IconPlayOne"),J=xe("IconPause"),Ae=xe("IconVolumeMute"),ue=xe("IconVolumeNotice"),fe=xe("IconVolumeSmall");return U(),ee("div",{class:"audio-player",style:Me({transform:`scale(${1/$.scale})`})},[V("audio",{class:"audio",ref_key:"audioRef",ref:o,src:$.src,autoplay:$.autoplay,onDurationchange:G[0]||(G[0]=se=>w()),onTimeupdate:G[1]||(G[1]=se=>P()),onPlay:G[2]||(G[2]=se=>k()),onEnded:G[3]||(G[3]=se=>N()),onProgress:G[4]||(G[4]=se=>C()),onError:G[5]||(G[5]=se=>I())},null,40,F7e),V("div",E7e,[V("div",X7e,[V("div",{class:"icon play-icon",onClick:G[6]||(G[6]=se=>L())},[V("span",W7e,[u.value?(U(),Te(de,{key:0})):(U(),Te(J,{key:1}))])]),V("div",V7e,[V("div",{class:"icon volume-icon",onClick:G[7]||(G[7]=se=>H())},[V("span",D7e,[l.value===0?(U(),Te(Ae,{key:0})):l.value===1?(U(),Te(ue,{key:1})):(U(),Te(fe,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:G[8]||(G[8]=se=>D()),onTouchstart:G[9]||(G[9]=se=>D()),onClick:G[10]||(G[10]=se=>Y(se))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[V("div",{class:"volume-bar-inner",style:Me({width:A.value})},B7e,4)],512)],32)])]),V("span",Y7e,[V("span",Z7e,dt(g.value),1),De(" / "),V("span",Q7e,dt(m.value),1)]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:G[11]||(G[11]=se=>B()),onTouchstart:G[12]||(G[12]=se=>B()),onMousemove:G[13]||(G[13]=se=>Z(se)),onMouseenter:G[14]||(G[14]=se=>h.value=!0),onMouseleave:G[15]||(G[15]=se=>h.value=!1)},[V("div",{class:Ge(["bar-time",{hidden:!h.value}]),style:Me({left:v.value})},dt(p.value),7),V("div",H7e,[V("div",{class:"loaded",style:Me({width:R.value})},null,4),V("div",{class:"played",style:Me({width:y.value})},G7e,4)])],544)])],4)}}}),Dee=Be(z7e,[["__scopeId","data-v-32038f5c"]]),J7e=Ee({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:r}=Ve(pt()),{viewportRatio:i,viewportSize:o}=Ve(at()),a=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),s=Se(()=>{const u=o.value,c=o.value*i.value,f=280/n.value,d=50/n.value,h=t.elementInfo.width,p=t.elementInfo.height,v=t.elementInfo.left,g=t.elementInfo.top;let m=0,y=p;return v+f>=u&&(m=h-f),g+p+d>=c&&(y=-d),{left:m+"px",top:y+"px"}}),l=u=>{t.elementInfo.lock||(u.stopPropagation(),t.selectElement(u,t.elementInfo))};return(u,c)=>{const f=xe("IconVolumeNotice"),d=_n("contextmenu");return U(),ee("div",{class:Ge(["editable-element-audio",{lock:u.elementInfo.lock}]),style:Me({top:u.elementInfo.top+"px",left:u.elementInfo.left+"px",width:u.elementInfo.width+"px",height:u.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Me({transform:`rotate(${u.elementInfo.rotate}deg)`})},[ze((U(),ee("div",{class:"element-content",onMousedown:c[1]||(c[1]=h=>l(h)),onTouchstart:c[2]||(c[2]=h=>l(h))},[O(f,{class:"audio-icon",style:Me({fontSize:a.value,color:u.elementInfo.color})},null,8,["style"]),z(r)===u.elementInfo.id?(U(),Te(Dee,{key:0,class:"audio-player",style:Me({...s.value}),src:u.elementInfo.src,loop:u.elementInfo.loop,scale:z(n),onMousedown:c[0]||(c[0]=Nt(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Ye("",!0)],32)),[[d,u.contextmenus]])],4)],6)}}}),Uee=Be(J7e,[["__scopeId","data-v-07f623ea"]]),$7e=["id"],j7e=Ee({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=Se(()=>({[Et.IMAGE]:kz,[Et.TEXT]:wJ,[Et.SHAPE]:_J,[Et.LINE]:OJ,[Et.CHART]:kee,[Et.TABLE]:Fee,[Et.LATEX]:Eee,[Et.VIDEO]:Wee,[Et.AUDIO]:Uee})[t.elementInfo.type]||null),{orderElement:r}=z2(),{alignElementToCanvas:i}=m3(),{combineElements:o,uncombineElements:a}=ik(),{deleteElement:s}=G2(),{lockElement:l,unlockElement:u}=jH(),{copyElement:c,pasteElement:f,cutElement:d}=ok(),{selectAllElements:h}=i3(),p=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>u(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:c},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>i(gn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>i(gn.CENTER)},{text:"水平居中",handler:()=>i(gn.HORIZONTAL)},{text:"左对齐",handler:()=>i(gn.LEFT)},{text:"右对齐",handler:()=>i(gn.RIGHT)}]},{text:"垂直居中",handler:()=>i(gn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>i(gn.CENTER)},{text:"垂直居中",handler:()=>i(gn.VERTICAL)},{text:"顶部对齐",handler:()=>i(gn.TOP)},{text:"底部对齐",handler:()=>i(gn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,Wr.TOP),children:[{text:"置于顶层",handler:()=>r(t.elementInfo,Wr.TOP)},{text:"上移一层",handler:()=>r(t.elementInfo,Wr.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,Wr.BOTTOM),children:[{text:"置于底层",handler:()=>r(t.elementInfo,Wr.BOTTOM)},{text:"下移一层",handler:()=>r(t.elementInfo,Wr.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:o,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:l},{text:"删除",subText:"Delete",handler:s}];return(v,g)=>(U(),ee("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${v.elementInfo.id}`,style:Me({zIndex:v.elementIndex})},[(U(),Te(xu(n.value),{elementInfo:v.elementInfo,selectElement:v.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,$7e))}}),q7e=Ee({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(U(),ee("div",{class:Ge(`mouse-selection quadrant-${t.quadrant}`),style:Me({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),e9e=Be(q7e,[["__scopeId","data-v-053bfa3e"]]),t9e={class:"grid-lines"},n9e=["d","stroke"],r9e=Ee({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=Ve(pt()),{currentSlide:r,viewportRatio:i,viewportSize:o}=Ve(at()),a=Se(()=>{var u;return(u=r.value)==null?void 0:u.background}),s=Se(()=>{var f;const u=((f=a.value)==null?void 0:f.color)||"#fff",c=["#000","#fff"];return ot.mostReadable(u,c,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),l=Se(()=>{const u=o.value,c=o.value*i.value;let f="";for(let d=0;d<=Math.floor(c/n.value);d++)f+=`M0 ${d*n.value} L${u} ${d*n.value} `;for(let d=0;d<=Math.floor(u/n.value);d++)f+=`M${d*n.value} 0 L${d*n.value} ${c} `;return f});return(u,c)=>(U(),ee("svg",t9e,[V("path",{style:Me({transform:`scale(${z(t)})`}),d:l.value,fill:"none",stroke:s.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,n9e)]))}}),i9e=Be(r9e,[["__scopeId","data-v-93264269"]]),t4=e=>({backgroundStyle:Se(()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:i,gradient:o}=e.value;if(n==="solid")return{backgroundColor:r};if(n==="image"&&i){const{src:a,size:s}=i;return a?s==="repeat"?{backgroundImage:`url(${a}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${a}`,backgroundRepeat:"no-repeat",backgroundSize:s||"cover"}:{backgroundColor:"#fff"}}else if(n==="gradient"&&o){const{type:a,colors:s,rotate:l}=o,u=s.map(c=>`${c.color} ${c.pos}%`);return a==="radial"?{backgroundImage:`radial-gradient(${u.join(",")}`}:{backgroundImage:`linear-gradient(${l}deg, ${u.join(",")}`}}return{backgroundColor:"#fff"}})}),o9e=Ee({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=Ve(pt()),{currentSlide:n}=Ve(at()),r=Se(()=>{var o;return(o=n.value)==null?void 0:o.background}),{backgroundStyle:i}=t4(r);return(o,a)=>(U(),ee("div",{class:"viewport-background",style:Me(z(i))},[z(t)?(U(),Te(i9e,{key:0})):Ye("",!0)],4))}}),a9e=Be(o9e,[["__scopeId","data-v-203ea8ff"]]),s9e=Ee({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=Se(()=>t.axis.x*t.canvasScale+"px"),r=Se(()=>t.axis.y*t.canvasScale+"px"),i=Se(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(o,a)=>(U(),ee("div",{class:"alignment-line",style:Me({left:n.value,top:r.value})},[V("div",{class:Ge(["line",o.type]),style:Me(i.value)},null,6)],4))}}),Bee=Be(s9e,[["__scopeId","data-v-7cd3d25d"]]),l9e={class:"ruler"},u9e={key:0},c9e={key:0},f9e=Ee({__name:"Ruler",props:{viewportStyles:{},elementList:{}},setup(e){const t=e,{canvasScale:n,activeElementIdList:r}=Ve(pt()),{viewportRatio:i,viewportSize:o}=Ve(at()),a=he(null);Bv(()=>{const l=t.elementList.filter(u=>r.value.includes(u.id));if(!l.length)return a.value=null;a.value=nc(l)});const s=Se(()=>t.viewportStyles.width*n.value/(o.value/100));return(l,u)=>(U(),ee("div",l9e,[V("div",{class:"h",style:Me({width:l.viewportStyles.width*z(n)+"px",left:l.viewportStyles.left+"px"})},[(U(),ee(Ne,null,Je(20,c=>V("div",{class:Ge(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`h-marker-100-${c}`,style:Me({width:s.value+"px"})},[c*100<=z(o)?(U(),ee("span",u9e,dt(c*100),1)):Ye("",!0)],6)),64)),a.value?(U(),ee("div",{key:0,class:"range",style:Me({left:a.value.minX*z(n)+"px",width:(a.value.maxX-a.value.minX)*z(n)+"px"})},null,4)):Ye("",!0)],4),V("div",{class:"v",style:Me({height:l.viewportStyles.height*z(n)+"px",top:l.viewportStyles.top+"px"})},[(U(),ee(Ne,null,Je(20,c=>V("div",{class:Ge(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`v-marker-100-${c}`,style:Me({height:s.value+"px"})},[c*100<=z(o)*z(i)?(U(),ee("span",c9e,dt(c*100),1)):Ye("",!0)],6)),64)),a.value?(U(),ee("div",{key:0,class:"range",style:Me({top:a.value.minY*z(n)+"px",height:(a.value.maxY-a.value.minY)*z(n)+"px"})},null,4)):Ye("",!0)],4)]))}}),d9e=Be(f9e,[["__scopeId","data-v-c6df5cc2"]]),h9e=["width","height"],p9e=["d"],v9e=Ee({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,r=pt(),{creatingElement:i}=Ve(r),{ctrlOrShiftKeyActive:o}=Ve(Fs()),a=he(),s=he(),l=he(),u=he({x:0,y:0});Wt(()=>{if(!l.value)return;const{x:h,y:p}=l.value.getBoundingClientRect();u.value={x:h,y:p}});const c=h=>{let p=!0;const v=h.pageX,g=h.pageY;a.value=[v,g],document.onmousemove=m=>{if(!i.value||!p)return;let y=m.pageX,R=m.pageY;if(o.value){const A=y-v,x=R-g,S=Math.abs(A),M=Math.abs(x);if(i.value.type==="shape"){const L=x>0&&A<0||x<0&&A>0;S>M?R=L?g-A:g+A:y=L?v-x:v+x}else i.value.type==="line"&&(S>M?R=g:y=v)}s.value=[y,R]},document.onmouseup=m=>{var x,S;if(document.onmousemove=null,document.onmouseup=null,m.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const y=m.pageX,R=m.pageY,A=30;if(((x=i.value)==null?void 0:x.type)==="line"&&(Math.abs(y-v)>=A||Math.abs(R-g)>=A))n("created",{start:a.value,end:s.value});else if(((S=i.value)==null?void 0:S.type)!=="line"&&Math.abs(y-v)>=A&&Math.abs(R-g)>=A)n("created",{start:a.value,end:s.value});else{const L=Math.min(y,v),T=Math.min(R,g),w=Math.max(y,v),P=Math.max(R,g),k=w-L>=A?w-L:200,N=P-T>=A?P-T:200;n("created",{start:[L,T],end:[L+k,T+N]})}}},f=Se(()=>{if(!a.value||!s.value||!i.value||i.value.type!=="line")return null;const[h,p]=a.value,[v,g]=s.value,m=Math.min(h,v),y=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=y-m>=24?y-m:24,S=A-R>=24?A-R:24,M=h===m?0:y-m,L=p===R?0:A-R,T=v===m?0:y-m,w=g===R?0:A-R,P=`M${M}, ${L} L${T}, ${w}`;return{svgWidth:x,svgHeight:S,startX:M,startY:L,endX:T,endY:w,path:P}}),d=Se(()=>{if(!a.value||!s.value)return{};const[h,p]=a.value,[v,g]=s.value,m=Math.min(h,v),y=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=y-m,S=A-R;return{left:m-u.value.x+"px",top:R-u.value.y+"px",width:x+"px",height:S+"px"}});return(h,p)=>{var v,g;return U(),ee("div",{class:"element-create-selection",ref_key:"selectionRef",ref:l,onMousedown:p[0]||(p[0]=Nt(m=>c(m),["stop"])),onContextmenu:p[1]||(p[1]=Nt(()=>{},["stop","prevent"]))},[a.value&&s.value?(U(),ee("div",{key:0,class:Ge(["selection",(v=z(i))==null?void 0:v.type]),style:Me(d.value)},[((g=z(i))==null?void 0:g.type)==="line"&&f.value?(U(),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,p9e)],8,h9e)):Ye("",!0)],6)):Ye("",!0)],544)}}}),g9e=Be(v9e,[["__scopeId","data-v-7b17a883"]]),m9e={overflow:"visible"},y9e=["d","fill"],A9e=Ee({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,r=pt(),{ctrlOrShiftKeyActive:i}=Ve(Fs()),{theme:o}=Ve(at()),a=he(),s=he(!1),l=he({x:0,y:0});Wt(()=>{if(!a.value)return;const{x:A,y:x}=a.value.getBoundingClientRect();l.value={x:A,y:x}});const u=he(null),c=he([]),f=he(!1),d=(A,x=!1)=>{let S=A.pageX-l.value.x,M=A.pageY-l.value.y;if(x)return{pageX:S,pageY:M};if(i.value&&c.value.length){const[L,T]=c.value[c.value.length-1];Math.abs(L-S)-Math.abs(T-M)>0?M=T:S=L}return{pageX:S,pageY:M}},h=A=>{if(s.value){const{pageX:M,pageY:L}=d(A,!0);c.value.push([M,L]),u.value=null;return}const{pageX:x,pageY:S}=d(A);if(u.value=[x,S],c.value.length>=2){const[M,L]=c.value[0];Math.abs(M-x)<5&&Math.abs(L-S)<5?f.value=!0:f.value=!1}else f.value=!1},p=Se(()=>{let A="";for(let x=0;x{const x=c.value.map(F=>F[0]),S=c.value.map(F=>F[1]),M=Math.min(...x),L=Math.min(...S),T=Math.max(...x),w=Math.max(...S),P=c.value.map(F=>[F[0]-M,F[1]-L]);let k="";for(let F=0;F{const{pageX:x,pageY:S}=d(A);s.value=!0,f.value?n("created",v()):c.value.push([x,S]),document.onmouseup=()=>{s.value=!1}},m=()=>{r.setCreatingCustomShapeState(!1)},y=()=>{n("created",{...v(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:o.value.themeColors[0],style:"solid"}}),m()},R=A=>{const x=A.key.toUpperCase();x===yt.ESC&&m(),x===yt.ENTER&&y()};return Wt(()=>{un.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",R)}),En(()=>{document.removeEventListener("keydown",R),un.closeAll()}),(A,x)=>(U(),ee("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:x[0]||(x[0]=Nt(S=>g(S),["stop"])),onMousemove:x[1]||(x[1]=S=>h(S)),onContextmenu:x[2]||(x[2]=Nt(S=>m(),["stop","prevent"]))},[(U(),ee("svg",m9e,[V("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,y9e)]))],544))}}),R9e=Be(A9e,[["__scopeId","data-v-08eeb427"]]),y0=(e,t)=>{const n=Se(()=>[{direction:Rt.LEFT_TOP,style:{}},{direction:Rt.TOP,style:{left:e.value/2+"px"}},{direction:Rt.RIGHT_TOP,style:{left:e.value+"px"}},{direction:Rt.LEFT,style:{top:t.value/2+"px"}},{direction:Rt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:Rt.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:Rt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:Rt.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),r=Se(()=>[{direction:Rt.LEFT,style:{top:t.value/2+"px"}},{direction:Rt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),i=Se(()=>[{direction:Rt.TOP,style:{left:e.value/2+"px"}},{direction:Rt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),o=Se(()=>[{type:yg.T,style:{width:e.value+"px"}},{type:yg.B,style:{top:t.value+"px",width:e.value+"px"}},{type:yg.L,style:{height:t.value+"px"}},{type:yg.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:i,borderLines:o}},b9e=Ee({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=Se(()=>{const r="rotate-",i=t.rotate;return i>-22.5&&i<=22.5?r+0:i>22.5&&i<=67.5?r+45:i>67.5&&i<=112.5?r+90:i>112.5&&i<=157.5?r+135:i>157.5||i<=-157.5?r+0:i>-157.5&&i<=-112.5?r+45:i>-112.5&&i<=-67.5?r+90:i>-67.5&&i<=-22.5?r+135:r+0});return(r,i)=>(U(),ee("div",{class:Ge(["resize-handler",n.value,r.type])},null,2))}}),yd=Be(b9e,[["__scopeId","data-v-bb3f9e62"]]),x9e=Ee({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(U(),ee("div",{class:Ge(["border-line",t.type,{wide:t.isWide}])},null,2))}}),A0=Be(x9e,[["__scopeId","data-v-7114fb45"]]),S9e=Ee({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:r}=Ve(pt()),i=Se(()=>t.elementList.filter(d=>n.value.includes(d.id))),o=he({minX:0,maxX:0,minY:0,maxY:0}),a=Se(()=>(o.value.maxX-o.value.minX)*r.value),s=Se(()=>(o.value.maxY-o.value.minY)*r.value),{resizeHandlers:l,borderLines:u}=y0(a,s);Bv(()=>{const{minX:d,maxX:h,minY:p,maxY:v}=nc(i.value);o.value={minX:d,maxX:h,minY:p,maxY:v}});const f=Se(()=>i.value.some(d=>!((d.type==="image"||d.type==="shape")&&!d.rotate)));return(d,h)=>(U(),ee("div",{class:"multi-select-operate",style:Me({left:o.value.minX*z(r)+"px",top:o.value.minY*z(r)+"px"})},[(U(!0),ee(Ne,null,Je(z(u),p=>(U(),Te(A0,{key:p.type,type:p.type,style:Me(p.style)},null,8,["type","style"]))),128)),f.value?Ye("",!0):(U(!0),ee(Ne,{key:0},Je(z(l),p=>(U(),Te(yd,{key:p.direction,type:p.direction,style:Me(p.style),onMousedown:Nt(v=>d.scaleMultiElement(v,o.value,p.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),w9e=Be(S9e,[["__scopeId","data-v-135c8cb7"]]),M9e={},L9e={class:"rotate-handler"};function T9e(e,t){return U(),ee("div",L9e)}const l1=Be(M9e,[["render",T9e],["__scopeId","data-v-9f21fc0f"]]),_9e={inheritAttrs:!1},O9e=Ee({..._9e,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:r}=Ve(pt()),i=Se(()=>r.value===t.elementInfo.id),o=Se(()=>t.elementInfo.width*n.value),a=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:l}=y0(o,a);return(u,c)=>(U(),ee("div",{class:Ge(["image-element-operate",{cliping:i.value}])},[(U(!0),ee(Ne,null,Je(z(l),f=>(U(),Te(A0,{class:"operate-border-line",key:f.type,type:f.type,style:Me(f.style)},null,8,["type","style"]))),128)),u.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(z(s),f=>(U(),Te(yd,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:u.elementInfo.rotate,style:Me(f.style),onMousedown:Nt(d=>u.scaleElement(d,u.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),O(l1,{class:"operate-rotate-handler",style:Me({left:o.value/2+"px"}),onMousedown:c[0]||(c[0]=Nt(f=>u.rotateElement(f,u.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)],2))}}),k9e=Be(O9e,[["__scopeId","data-v-2a1bef4e"]]),P9e={class:"text-element-operate"},C9e={inheritAttrs:!1},I9e=Ee({...C9e,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:o,verticalTextElementResizeHandlers:a,borderLines:s}=y0(r,i),l=Se(()=>t.elementInfo.vertical?a.value:o.value);return(u,c)=>(U(),ee("div",P9e,[(U(!0),ee(Ne,null,Je(z(s),f=>(U(),Te(A0,{class:"operate-border-line",key:f.type,type:f.type,style:Me(f.style)},null,8,["type","style"]))),128)),u.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(l.value,f=>(U(),Te(yd,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:u.elementInfo.rotate,style:Me(f.style),onMousedown:Nt(d=>u.scaleElement(d,u.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),O(l1,{class:"operate-rotate-handler",style:Me({left:r.value/2+"px"}),onMousedown:c[0]||(c[0]=Nt(f=>u.rotateElement(f,u.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)]))}}),N9e={class:"shape-element-operate"},F9e=["onMousedown"],E9e={inheritAttrs:!1},X9e=Ee({...E9e,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:o,borderLines:a}=y0(r,i),s=Se(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoints===void 0)return[];const l=f0[t.elementInfo.pathFormula];return t.elementInfo.keypoints.map((u,c)=>{const f=l.getBaseSize[c],d=l.relative[c],h=f(t.elementInfo.width,t.elementInfo.height)*u;let p={};return d==="left"?p={left:h*n.value+"px"}:d==="right"?p={left:(t.elementInfo.width-h)*n.value+"px"}:d==="center"?p={left:(t.elementInfo.width-h)/2*n.value+"px"}:d==="top"?p={top:h*n.value+"px"}:d==="bottom"?p={top:(t.elementInfo.height-h)*n.value+"px"}:d==="left_bottom"?p={left:h*n.value+"px",top:t.elementInfo.height*n.value+"px"}:d==="right_bottom"?p={left:(t.elementInfo.width-h)*n.value+"px",top:t.elementInfo.height*n.value+"px"}:d==="top_right"?p={left:t.elementInfo.width*n.value+"px",top:h*n.value+"px"}:d==="bottom_right"&&(p={left:t.elementInfo.width*n.value+"px",top:(t.elementInfo.height-h)*n.value+"px"}),{keypoint:u,styles:p}})});return(l,u)=>(U(),ee("div",N9e,[(U(!0),ee(Ne,null,Je(z(a),c=>(U(),Te(A0,{class:"operate-border-line",key:c.type,type:c.type,style:Me(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(z(o),c=>(U(),Te(yd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:Me(c.style),onMousedown:Nt(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),O(l1,{class:"operate-rotate-handler",style:Me({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Nt(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"]),(U(!0),ee(Ne,null,Je(s.value,(c,f)=>(U(),ee("div",{class:"operate-keypoint-handler",key:f,style:Me(c.styles),onMousedown:Nt(d=>l.moveShapeKeypoint(d,l.elementInfo,f),["stop"])},null,44,F9e))),128))],64)):Ye("",!0)]))}}),W9e=Be(X9e,[["__scopeId","data-v-11747e5a"]]),V9e={class:"line-element-operate"},D9e=["width","height","stroke"],U9e={key:0},B9e=["x1","y1","x2","y2"],Y9e=["x1","y1","x2","y2"],Z9e=["x1","y1","x2","y2"],Q9e=["x1","y1","x2","y2"],H9e={inheritAttrs:!1},K9e=Ee({...H9e,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),i=Se(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),o=Se(()=>{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||t.elementInfo.broken2){const s=t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2;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,l]=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:l[0]*n.value+"px",top:l[1]*n.value+"px"}})}return a});return(a,s)=>(U(),ee("div",V9e,[a.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(o.value,l=>(U(),Te(yd,{class:"operate-resize-handler",key:l.handler,style:Me(l.style),onMousedown:Nt(u=>a.dragLineElement(u,a.elementInfo,l.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(U(),ee("svg",{width:r.value||1,height:i.value||1,stroke:a.elementInfo.color,overflow:"visible",style:Me({transform:`scale(${z(n)})`})},[a.elementInfo.curve?(U(),ee("g",U9e,[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,B9e),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,Y9e)])):Ye("",!0),a.elementInfo.cubic?(U(!0),ee(Ne,{key:1},Je(a.elementInfo.cubic,(l,u)=>(U(),ee("g",{key:u},[u===0?(U(),ee("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:l[0],y2:l[1]},null,8,Z9e)):Ye("",!0),u===1?(U(),ee("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:l[0],y2:l[1]},null,8,Q9e)):Ye("",!0)]))),128)):Ye("",!0)],12,D9e))],64)):Ye("",!0)]))}}),G9e=Be(K9e,[["__scopeId","data-v-9dea4d6a"]]),z9e={class:"table-element-operate"},J9e={inheritAttrs:!1},$9e=Ee({...J9e,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.outline.width||1),i=Se(()=>(t.elementInfo.width+r.value)*n.value),o=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=y0(i,o);return(l,u)=>(U(),ee("div",z9e,[(U(!0),ee(Ne,null,Je(z(s),c=>(U(),Te(A0,{class:"operate-border-line",key:c.type,type:c.type,style:Me(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(z(a),c=>(U(),Te(yd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:Me(c.style),onMousedown:Nt(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),O(l1,{class:"operate-rotate-handler",style:Me({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=Nt(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)]))}}),j9e={class:"common-element-operate"},q9e={inheritAttrs:!1},XR=Ee({...q9e,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:o,borderLines:a}=y0(r,i),s=Se(()=>["chart","video","audio"].includes(t.elementInfo.type));return(l,u)=>(U(),ee("div",j9e,[(U(!0),ee(Ne,null,Je(z(a),c=>(U(),Te(A0,{class:"operate-border-line",key:c.type,type:c.type,style:Me(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(U(),ee(Ne,{key:0},[(U(!0),ee(Ne,null,Je(z(o),c=>(U(),Te(yd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:Me(c.style),onMousedown:Nt(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?Ye("",!0):(U(),Te(l1,{key:0,class:"operate-rotate-handler",style:Me({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Nt(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"]))],64)):Ye("",!0)]))}}),Yee=()=>{const e=at(),{addHistorySnapshot:t}=on();return{setLink:(i,o)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(o.type==="web"&&!a.test(o.target))return un.error("不是正确的网页链接地址"),!1;if(o.type==="slide"&&!o.target)return un.error("请先选择链接目标"),!1;const s={link:o};return e.updateElement({id:i.id,props:s}),t(),!0},removeLink:i=>{e.removeElementProps({id:i.id,propName:"link"}),t()}}},eFe=Ee({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:-1}},setup(e){return(t,n)=>(U(),ee("div",{class:Ge(["divider",t.type]),style:Me({margin:t.type==="horizontal"?`${t.margin>=0?t.margin:24}px 0`:`0 ${t.margin>=0?t.margin:8}px`})},null,6))}}),Ut=Be(eFe,[["__scopeId","data-v-80adabfa"]]),tFe=["href"],nFe={class:"btns"},rFe=Ee({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=pt(),r=at(),{canvasScale:i}=Ve(n),{slides:o}=Ve(r),{removeLink:a}=Yee(),s=Se(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),l=u=>{const c=o.value.findIndex(f=>f.id===u);c!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(c))};return(u,c)=>(U(),ee("div",{class:"link-handler",style:Me({top:s.value*z(i)+10+"px"})},[u.link.type==="web"?(U(),ee("a",{key:0,class:"link",href:u.link.target,target:"_blank"},dt(u.link.target),9,tFe)):(U(),ee("a",{key:1,class:"link",onClick:c[0]||(c[0]=f=>l(u.link.target))},"幻灯片页面 "+dt(u.link.target),1)),V("div",nFe,[V("div",{class:"btn",onClick:c[1]||(c[1]=f=>u.openLinkDialog())},"更换"),O(Ut,{type:"vertical"}),V("div",{class:"btn",onClick:c[2]||(c[2]=f=>z(a)(u.elementInfo))},"移除")])],4))}}),iFe=Be(rFe,[["__scopeId","data-v-821fa8e0"]]),oFe={key:1,class:"animation-index"},aFe=Ee({__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}=Ve(pt()),{formatedAnimations:i}=Ve(at()),o=Se(()=>({[Et.IMAGE]:k9e,[Et.TEXT]:I9e,[Et.SHAPE]:W9e,[Et.LINE]:G9e,[Et.TABLE]:$9e,[Et.CHART]:XR,[Et.LATEX]:XR,[Et.VIDEO]:XR,[Et.AUDIO]:XR})[t.elementInfo.type]||null),a=Se(()=>{const u=[];for(let c=0;cd.elId).includes(t.elementInfo.id)&&u.push(c);return u}),s=Se(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),l=Se(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(u,c)=>(U(),ee("div",{class:Ge(["operate",{"multi-select":u.isMultiSelect&&!u.isActive}]),style:Me({top:u.elementInfo.top*z(n)+"px",left:u.elementInfo.left*z(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${u.elementInfo.width*z(n)/2}px ${l.value*z(n)/2}px`})},[u.isSelected?(U(),Te(xu(o.value),{key:0,elementInfo:u.elementInfo,handlerVisible:!u.elementInfo.lock&&(u.isActiveGroupElement||!u.isMultiSelect),rotateElement:u.rotateElement,scaleElement:u.scaleElement,dragLineElement:u.dragLineElement,moveShapeKeypoint:u.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Ye("",!0),z(r)==="elAnimation"&&a.value.length?(U(),ee("div",oFe,[(U(!0),ee(Ne,null,Je(a.value,f=>(U(),ee("div",{class:"index-item",key:f},dt(f+1),1))),128))])):Ye("",!0),u.isActive&&u.elementInfo.link?(U(),Te(iFe,{key:2,elementInfo:u.elementInfo,link:u.elementInfo.link,openLinkDialog:u.openLinkDialog,onMousedown:c[0]||(c[0]=Nt(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Ye("",!0)],6))}}),sFe=Be(aFe,[["__scopeId","data-v-7c6be7e7"]]),lFe=["src"],uFe=Ee({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=vd(n),i=Se(()=>t.elementInfo.flipH),o=Se(()=>t.elementInfo.flipV),{flipStyle:a}=y3(i,o),s=Se(()=>t.elementInfo),{clipShape:l,imgPosition:u}=Pk(s),c=Se(()=>t.elementInfo.filters),{filter:f}=Tz(c);return(d,h)=>(U(),ee("div",{class:"base-element-image",style:Me({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:Me({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Me({filter:z(r)?`drop-shadow(${z(r)})`:"",transform:z(a)})},[O(_z,{elementInfo:d.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Me({clipPath:z(l).style})},[V("img",{src:d.elementInfo.src,draggable:!1,style:Me({top:z(u).top,left:z(u).left,width:z(u).width,height:z(u).height,filter:z(f)}),alt:""},null,12,lFe),d.elementInfo.colorMask?(U(),ee("div",{key:0,class:"color-mask",style:Me({backgroundColor:d.elementInfo.colorMask})},null,4)):Ye("",!0)],4)],4)],4)],4))}}),Zee=Be(uFe,[["__scopeId","data-v-67c9bdc0"]]),cFe=["innerHTML"],fFe=Ee({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=vd(n);return(i,o)=>(U(),ee("div",{class:"base-element-text",style:Me({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Me({transform:`rotate(${i.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Me({width:i.elementInfo.vertical?"auto":i.elementInfo.width+"px",height:i.elementInfo.vertical?i.elementInfo.height+"px":"auto",backgroundColor:i.elementInfo.fill,opacity:i.elementInfo.opacity,textShadow:z(r),lineHeight:i.elementInfo.lineHeight,letterSpacing:(i.elementInfo.wordSpace||0)+"px",color:i.elementInfo.defaultColor,fontFamily:i.elementInfo.defaultFontName,writingMode:i.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[O(A3,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),V("div",{class:Ge(["text ProseMirror-static",{thumbnail:i.target==="thumbnail"}]),style:Me({"--paragraphSpace":`${i.elementInfo.paragraphSpace===void 0?5:i.elementInfo.paragraphSpace}px`}),innerHTML:i.elementInfo.content},null,14,cFe)],4)],4)],4))}}),Qee=Be(fFe,[["__scopeId","data-v-a3ec163d"]]),dFe=["width","height"],hFe=["transform"],pFe=["d","fill","stroke","stroke-width","stroke-dasharray"],vFe=["innerHTML"],gFe=Ee({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo),{fill:r}=MJ(n,"base"),i=Se(()=>t.elementInfo.outline),{outlineWidth:o,outlineColor:a,strokeDashArray:s}=t1(i),l=Se(()=>t.elementInfo.shadow),{shadowStyle:u}=vd(l),c=Se(()=>t.elementInfo.flipH),f=Se(()=>t.elementInfo.flipV),{flipStyle:d}=y3(c,f),h=Se(()=>{const p={content:"",defaultFontName:"",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:p});return(p,v)=>(U(),ee("div",{class:"base-element-shape",style:Me({top:p.elementInfo.top+"px",left:p.elementInfo.left+"px",width:p.elementInfo.width+"px",height:p.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Me({transform:`rotate(${p.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Me({opacity:p.elementInfo.opacity,filter:z(u)?`drop-shadow(${z(u)})`:"",transform:z(d),color:h.value.defaultColor,fontFamily:h.value.defaultFontName})},[(U(),ee("svg",{overflow:"visible",width:p.elementInfo.width,height:p.elementInfo.height},[V("defs",null,[p.elementInfo.pattern?(U(),Te(TJ,{key:0,id:`base-pattern-${p.elementInfo.id}`,src:p.elementInfo.pattern},null,8,["id","src"])):p.elementInfo.gradient?(U(),Te(LJ,{key:1,id:`base-gradient-${p.elementInfo.id}`,type:p.elementInfo.gradient.type,colors:p.elementInfo.gradient.colors,rotate:p.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])):Ye("",!0)]),V("g",{transform:`scale(${p.elementInfo.width/p.elementInfo.viewBox[0]}, ${p.elementInfo.height/p.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:p.elementInfo.path,fill:z(r),stroke:z(a),"stroke-width":z(o),"stroke-dasharray":z(s)},null,8,pFe)],8,hFe)],8,dFe)),V("div",{class:Ge(["shape-text",h.value.align])},[V("div",{class:"ProseMirror-static",innerHTML:h.value.content},null,8,vFe)],2)],4)],4)],4))}}),Hee=Be(gFe,[["__scopeId","data-v-778fd44b"]]),mFe=["width","height"],yFe=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],AFe=Ee({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=vd(n),i=Se(()=>{const l=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return l<24?24:l}),o=Se(()=>{const l=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return l<24?24:l}),a=Se(()=>{const l=t.elementInfo.width;return t.elementInfo.style==="dashed"?l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`:t.elementInfo.style==="dotted"?l<=8?`${l*1.8} ${l*1.6}`:`${l*1.5} ${l*1.2}`:"0 0"}),s=Se(()=>tk(t.elementInfo));return(l,u)=>(U(),ee("div",{class:"base-element-line",style:Me({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Me({filter:z(r)?`drop-shadow(${z(r)})`:""})},[(U(),ee("svg",{overflow:"visible",width:i.value,height:o.value},[V("defs",null,[l.elementInfo.points[0]?(U(),Te(jf,{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"])):Ye("",!0),l.elementInfo.points[1]?(U(),Te(jf,{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"])):Ye("",!0)]),V("path",{d:s.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":a.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,yFe)],8,mFe))],4)],4))}}),Kee=Be(AFe,[["__scopeId","data-v-833e88cd"]]),RFe=Ee({__name:"BaseChartElement",props:{elementInfo:{},target:{}},setup(e){return(t,n)=>(U(),ee("div",{class:Ge(["base-element-chart",{"is-thumbnail":t.target==="thumbnail"}]),style:Me({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:Me({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Me({backgroundColor:t.elementInfo.fill})},[O(A3,{width:t.elementInfo.width,height:t.elementInfo.height,outline:t.elementInfo.outline},null,8,["width","height","outline"]),O(Oee,{width:t.elementInfo.width,height:t.elementInfo.height,type:t.elementInfo.chartType,data:t.elementInfo.data,themeColors:t.elementInfo.themeColors,textColor:t.elementInfo.textColor,options:t.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],4)],4)],6))}}),Gee=Be(RFe,[["__scopeId","data-v-5a1fd6e3"]]),bFe=["width"],xFe=["rowspan","colspan"],SFe=["innerHTML"],wFe=Ee({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,n=he([]),r=Se(()=>n.value.reduce((l,u)=>l+u));Lt([()=>t.colWidths,()=>t.width],()=>{n.value=t.colWidths.map(l=>l*t.width)},{immediate:!0});const i=Se(()=>t.data),{hideCells:o}=Iee(i),a=Se(()=>t.theme),{subThemeColor:s}=Nee(a);return(l,u)=>{var c,f,d,h,p;return U(),ee("div",{class:"static-table",style:Me({width:r.value+"px"})},[V("table",{class:Ge({theme:a.value,"row-header":(c=a.value)==null?void 0:c.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:Me(`--themeColor: ${(p=a.value)==null?void 0:p.color}; --subThemeColor1: ${z(s)[0]}; --subThemeColor2: ${z(s)[1]}`)},[V("colgroup",null,[(U(!0),ee(Ne,null,Je(n.value,(v,g)=>(U(),ee("col",{span:"1",key:g,width:v},null,8,bFe))),128))]),V("tbody",null,[(U(!0),ee(Ne,null,Je(l.data,(v,g)=>(U(),ee("tr",{key:g,style:Me({height:l.cellMinHeight+"px"})},[(U(!0),ee(Ne,null,Je(v,(m,y)=>ze((U(),ee("td",{class:"cell",style:Me({borderStyle:l.outline.style,borderColor:l.outline.color,borderWidth:l.outline.width+"px",...z(Pee)(m.style)}),key:m.id,rowspan:m.rowspan,colspan:m.colspan},[V("div",{class:"cell-text",style:Me({minHeight:l.cellMinHeight-4+"px"}),innerHTML:z(Cee)(m.text)},null,12,SFe)],12,xFe)),[[hc,!z(o).includes(`${g}_${y}`)]])),128))],4))),128))])],6)],4)}}}),MFe=Be(wFe,[["__scopeId","data-v-6d887dcd"]]),LFe={class:"element-content"},TFe=Ee({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(t,n)=>(U(),ee("div",{class:"base-element-table",style:Me({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Me({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",LFe,[O(MFe,{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))}}),zee=Be(TFe,[["__scopeId","data-v-77cfa6e4"]]),_Fe={class:"element-content"},OFe=["width","height","stroke","stroke-width"],kFe=["transform"],PFe=["d"],CFe=Ee({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(t,n)=>(U(),ee("div",{class:"base-element-latex",style:Me({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:Me({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",_Fe,[(U(),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,PFe)],8,kFe)],8,OFe))])],4)],4))}}),Jee=Be(CFe,[["__scopeId","data-v-93374af9"]]),IFe=Ee({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(t,n)=>{const r=xe("IconPlayOne");return U(),ee("div",{class:"base-element-video",style:Me({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:Me({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Me({backgroundImage:t.elementInfo.poster?`url(${t.elementInfo.poster})`:""})},[O(r,{class:"icon"})],4)],4)],4)}}}),NFe=Be(IFe,[["__scopeId","data-v-2fb0e771"]]),FFe={class:"element-content"},EFe=Ee({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px");return(r,i)=>{const o=xe("IconVolumeNotice");return U(),ee("div",{class:"base-element-audio",style:Me({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:Me({transform:`rotate(${r.elementInfo.rotate}deg)`})},[V("div",FFe,[O(o,{class:"audio-icon",style:Me({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),XFe=Be(EFe,[["__scopeId","data-v-b33e6120"]]),WFe=Ee({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,n=Se(()=>({[Et.IMAGE]:Zee,[Et.TEXT]:Qee,[Et.SHAPE]:Hee,[Et.LINE]:Kee,[Et.CHART]:Gee,[Et.TABLE]:zee,[Et.LATEX]:Jee,[Et.VIDEO]:NFe,[Et.AUDIO]:XFe})[t.elementInfo.type]||null);return(r,i)=>(U(),ee("div",{class:Ge(["base-element",`base-element-${r.elementInfo.id}`]),style:Me({zIndex:r.elementIndex})},[(U(),Te(xu(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),VFe={key:1,class:"placeholder"},DFe=Ee({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:n,viewportSize:r}=Ve(at()),i=Se(()=>t.slide.background),{backgroundStyle:o}=t4(i),a=Se(()=>t.size/r.value);return l0(oy,a),(s,l)=>(U(),ee("div",{class:"thumbnail-slide",style:Me({width:s.size+"px",height:s.size*z(n)+"px"})},[s.visible?(U(),ee("div",{key:0,class:"elements",style:Me({width:z(r)+"px",height:z(r)*z(n)+"px",transform:`scale(${a.value})`})},[V("div",{class:"background",style:Me(z(o))},null,4),(U(!0),ee(Ne,null,Je(s.slide.elements,(u,c)=>(U(),Te(WFe,{key:u.id,elementInfo:u,elementIndex:c+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(U(),ee("div",VFe,"加载中 ..."))],4))}}),Cs=Be(DFe,[["__scopeId","data-v-c8cdb1af"]]),UFe=["onClick"],BFe=Ee({__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,i)=>(U(),ee("div",{class:Ge(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:Me(r.tabsStyle||{})},[(U(!0),ee(Ne,null,Je(r.tabs,o=>(U(),ee("div",{class:Ge(["tab",{active:o.key===r.value}]),key:o.key,style:Me({...r.tabStyle||{},"--color":o.color}),onClick:a=>n("update:value",o.key)},dt(o.label),15,UFe))),128))],6))}}),gl=Be(BFe,[["__scopeId","data-v-c7f9dce0"]]),YFe=Ee({__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,i=()=>{n.disabled||r("click")};return(o,a)=>(U(),ee("button",{class:Ge(["button",{disabled:o.disabled,checked:!o.disabled&&o.checked,default:!o.disabled&&o.type==="default",primary:!o.disabled&&o.type==="primary",checkbox:!o.disabled&&o.type==="checkbox",radio:!o.disabled&&o.type==="radio",small:o.size==="small",first:o.first,last:o.last}]),onClick:a[0]||(a[0]=s=>i())},[ar(o.$slots,"default",{},void 0,!0)],2))}}),qe=Be(YFe,[["__scopeId","data-v-3a484f58"]]),ZFe={key:0,class:"select-wrap"},QFe={class:"selector"},HFe={class:"icon"},KFe=["onClick"],GFe={class:"selector"},zFe={class:"icon"},JFe=Ee({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1},search:{type:Boolean,default:!1},searchLabel:{default:"搜索"}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,i=he(!1),o=he(),a=he(),s=he(0),l=he(""),u=Se(()=>{var p;return((p=n.options.find(v=>v.value===n.value))==null?void 0:p.label)||n.value}),c=Se(()=>{if(!n.search||!l.value.trim())return n.options;const p=n.options.filter(v=>v.label.toLowerCase().indexOf(l.value.toLowerCase())!==-1);return p.length?p:n.options});Lt(i,()=>{i.value?hr(()=>{a.value&&a.value.focus()}):l.value=""}),s0(()=>{l.value=""});const f=()=>{o.value&&(s.value=o.value.clientWidth)},d=new ResizeObserver(f);Wt(()=>{o.value&&d.observe(o.value)}),En(()=>{o.value&&d.unobserve(o.value)});const h=p=>{p.disabled||(r("update:value",p.value),i.value=!1)};return(p,v)=>{const g=xe("IconDown");return p.disabled?(U(),ee("div",ZFe,[V("div",{class:"select disabled",ref_key:"selectRef",ref:o},[V("div",QFe,dt(p.value),1),V("div",HFe,[ar(p.$slots,"icon",{},()=>[O(g,{size:14})],!0)])],512)])):(U(),Te(It,{key:1,class:"select-wrap",trigger:"click",value:i.value,"onUpdate:value":v[1]||(v[1]=m=>i.value=m),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:ie(()=>[p.search?(U(),ee(Ne,{key:0},[O(pu,{ref_key:"searchInputRef",ref:a,simple:"",placeholder:p.searchLabel,value:l.value,"onUpdate:value":v[0]||(v[0]=m=>l.value=m),style:Me({width:s.value+2+"px"})},null,8,["placeholder","value","style"]),O(Ut,{margin:0})],64)):Ye("",!0),V("div",{class:"options",style:Me({width:s.value+2+"px"})},[(U(!0),ee(Ne,null,Je(c.value,m=>(U(),ee("div",{class:Ge(["option",{disabled:m.disabled,selected:m.value===p.value}]),key:m.value,onClick:y=>h(m)},dt(m.label),11,KFe))),128))],4)]),default:ie(()=>[V("div",{class:"select",ref_key:"selectRef",ref:o},[V("div",GFe,dt(u.value),1),V("div",zFe,[ar(p.$slots,"icon",{},()=>[O(g,{size:14})],!0)])],512)]),_:3},8,["value"]))}}}),Vr=Be(JFe,[["__scopeId","data-v-eb1f268a"]]),$Fe=e=>($t("data-v-853e5bc2"),e=e(),jt(),e),jFe={class:"link-dialog"},qFe={key:2,class:"preview"},eEe=$Fe(()=>V("div",null,"预览:",-1)),tEe={class:"btns"},nEe=Ee({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var p;const n=t,{handleElement:r}=Ve(pt()),{slides:i,currentSlide:o}=Ve(at()),a=he("web"),s=he(""),l=he(""),u=Se(()=>i.value.map((v,g)=>({label:`幻灯片 ${g+1}`,value:v.id,disabled:o.value.id===v.id})));l.value=((p=i.value.find(v=>v.id!==o.value.id))==null?void 0:p.id)||"";const c=Se(()=>l.value&&i.value.find(v=>v.id===l.value)||null),f=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:d}=Yee();Wt(()=>{var v;(v=r.value)!=null&&v.link&&(r.value.link.type==="web"?s.value=r.value.link.target:r.value.link.type==="slide"&&(l.value=r.value.link.target),a.value=r.value.link.type)});const h=()=>{const v={type:a.value,target:a.value==="web"?s.value:l.value};r.value&&(d(r.value,v)?n("close"):s.value="")};return(v,g)=>(U(),ee("div",jFe,[O(gl,{tabs:f,value:a.value,"onUpdate:value":g[0]||(g[0]=m=>a.value=m),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(U(),Te(pu,{key:0,class:"input",value:s.value,"onUpdate:value":g[1]||(g[1]=m=>s.value=m),placeholder:"请输入网页链接地址"},null,8,["value"])):Ye("",!0),a.value==="slide"?(U(),Te(Vr,{key:1,class:"input",value:l.value,"onUpdate:value":g[2]||(g[2]=m=>l.value=m),options:u.value},null,8,["value","options"])):Ye("",!0),a.value==="slide"&&c.value?(U(),ee("div",qFe,[eEe,O(Cs,{class:"thumbnail",slide:c.value,size:500},null,8,["slide"])])):Ye("",!0),V("div",tEe,[O(qe,{onClick:g[3]||(g[3]=m=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[De("取消")]),_:1}),O(qe,{type:"primary",onClick:g[4]||(g[4]=m=>h())},{default:ie(()=>[De("确认")]),_:1})])]))}}),rEe=Be(nEe,[["__scopeId","data-v-853e5bc2"]]),iEe=Ee({__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}=Ax,r=e,i=he(),o=t,a=he(!1),s=Se(()=>({width:r.width+"px",...r.contentStyle||{}}));Lt(()=>r.visible,()=>{r.visible&&hr(()=>i.value.focus())});const l=()=>{o("update:visible",!1),o("closed")},u=()=>{r.visible&&r.closeOnEsc&&l()},c=()=>{r.closeOnClickMask&&l()};return(f,d)=>(U(),Te(xO,{to:"body"},[O(Kh,{name:"modal-fade"},{default:ie(()=>[ze(V("div",{class:"modal",ref_key:"modalRef",ref:i,tabindex:"-1",onKeyup:d[4]||(d[4]=pl(h=>u(),["esc"]))},[V("div",{class:"mask",onClick:d[0]||(d[0]=h=>c())}),O(Kh,{name:"modal-zoom",onAfterLeave:d[2]||(d[2]=h=>a.value=!1),onBeforeEnter:d[3]||(d[3]=h=>a.value=!0)},{default:ie(()=>[ze(V("div",{class:"modal-content",style:Me(s.value)},[f.closeButton?(U(),ee("span",{key:0,class:"close-btn",onClick:d[1]||(d[1]=h=>l())},[O(z(n))])):Ye("",!0),a.value?ar(f.$slots,"default",{key:1},void 0,!0):Ye("",!0)],4),[[hc,f.visible]])]),_:3})],544),[[hc,f.visible]])]),_:3})]))}}),mc=Be(iEe,[["__scopeId","data-v-4d27bcca"]]),oEe={class:"operates"},aEe={key:2,class:"drag-mask"},sEe=Ee({__name:"index",setup(e){const t=pt(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:i,hiddenElementIdList:o,editorAreaFocus:a,gridLineSize:s,showRuler:l,creatingElement:u,creatingCustomShape:c,canvasScale:f,textFormatPainter:d}=Ve(t),{currentSlide:h}=Ve(at()),{ctrlKeyState:p,spaceKeyState:v}=Ve(Fs()),g=he(),m=he([]),y=he(!1),R=()=>y.value=!0;Lt(i,()=>{t.setActiveGroupElementId("")});const A=he([]);Bv(()=>{A.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const S=he(),{dragViewport:M,viewportStyles:L}=n3e(S);i3e(S);const{mouseSelection:T,mouseSelectionVisible:w,mouseSelectionQuadrant:P,updateMouseSelection:k}=r3e(A,g),{dragElement:N}=Mz(A,m,f),{dragLineElement:C}=s3e(A),{selectElement:I}=a3e(A,N),{scaleElement:F,scaleMultiElement:W}=wz(A,m,f),{rotateElement:B}=xz(A,g,f),{moveShapeKeypoint:K}=l3e(A,f),{selectAllElements:j}=i3(),{deleteAllElements:D}=G2(),{pasteElement:Y}=ok(),{enterScreeningFromStart:Z}=dd(),{updateSlideIndex:H}=bc(),{createTextElement:$,createShapeElement:G}=d0();Wt(()=>{n.value.length&&hr(()=>t.setActiveElementIdList([]))});const de=ae=>{n.value.length&&t.setActiveElementIdList([]),v.value?M(ae):k(ae),a.value||t.setEditorareaFocus(!0),d.value&&t.setTextFormatPainter(null),t3e()},J=ae=>{if(n.value.length||u.value||c.value||!g.value)return;const ve=g.value.getBoundingClientRect(),ce=(ae.pageX-ve.x)/f.value,ge=(ae.pageY-ve.y)/f.value;$({left:ce,top:ge,width:200/f.value,height:0})};En(()=>{d.value&&t.setTextFormatPainter(null)});const Ae=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:ue}=sk(),fe=Zn.throttle(ue,100,{leading:!0,trailing:!1}),se=Zn.throttle(H,300,{leading:!0,trailing:!1}),q=ae=>{ae.preventDefault(),p.value?ae.deltaY>0?fe("-"):ae.deltaY<0&&fe("+"):ae.deltaY>0?se(yt.DOWN):ae.deltaY<0&&se(yt.UP)},E=()=>{t.setRulerState(!l.value)},{insertElementFromCreateSelection:te,formatCreateSelection:le}=u3e(g),ne=ae=>{const{start:ve,end:ce,path:ge,viewBox:Re}=ae,We=le({start:ve,end:ce});if(We){const Fe={};ae.fill&&(Fe.fill=ae.fill),ae.outline&&(Fe.outline=ae.outline),G(We,{path:ge,viewBox:Re},Fe)}t.setCreatingCustomShapeState(!1)},re=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Y},{text:"全选",subText:"Ctrl + A",handler:j},{text:"标尺",subText:l.value?"√":"",handler:E},{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:Z}];return l0(oy,f),(ae,ve)=>{const ce=_n("contextmenu"),ge=_n("click-outside");return ze((U(),ee("div",{class:"canvas",ref_key:"canvasRef",ref:S,onWheel:ve[4]||(ve[4]=Re=>q(Re)),onMousedown:ve[5]||(ve[5]=Re=>de(Re)),onDblclick:ve[6]||(ve[6]=Re=>J(Re))},[z(u)?(U(),Te(g9e,{key:0,onCreated:ve[0]||(ve[0]=Re=>z(te)(Re))})):Ye("",!0),z(c)?(U(),Te(R9e,{key:1,onCreated:ve[1]||(ve[1]=Re=>ne(Re))})):Ye("",!0),V("div",{class:"viewport-wrapper",style:Me({width:z(L).width*z(f)+"px",height:z(L).height*z(f)+"px",left:z(L).left+"px",top:z(L).top+"px"})},[V("div",oEe,[(U(!0),ee(Ne,null,Je(m.value,(Re,We)=>(U(),Te(Bee,{key:We,type:Re.type,axis:Re.axis,length:Re.length,canvasScale:z(f)},null,8,["type","axis","length","canvasScale"]))),128)),z(n).length>1?(U(),Te(w9e,{key:0,elementList:A.value,scaleMultiElement:z(W)},null,8,["elementList","scaleMultiElement"])):Ye("",!0),(U(!0),ee(Ne,null,Je(A.value,Re=>ze((U(),Te(sFe,{key:Re.id,elementInfo:Re,isSelected:z(n).includes(Re.id),isActive:z(i)===Re.id,isActiveGroupElement:z(r)===Re.id,isMultiSelect:z(n).length>1,rotateElement:z(B),scaleElement:z(F),openLinkDialog:R,dragLineElement:z(C),moveShapeKeypoint:z(K)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[hc,!z(o).includes(Re.id)]])),128)),O(a9e)]),V("div",{class:"viewport",ref_key:"viewportRef",ref:g,style:Me({transform:`scale(${z(f)})`})},[z(w)?(U(),Te(e9e,{key:0,top:z(T).top,left:z(T).left,width:z(T).width,height:z(T).height,quadrant:z(P)},null,8,["top","left","width","height","quadrant"])):Ye("",!0),(U(!0),ee(Ne,null,Je(A.value,(Re,We)=>ze((U(),Te(j7e,{key:Re.id,elementInfo:Re,elementIndex:We+1,isMultiSelect:z(n).length>1,selectElement:z(I),openLinkDialog:R},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[hc,!z(o).includes(Re.id)]])),128))],4)],4),z(v)?(U(),ee("div",aEe)):Ye("",!0),z(l)?(U(),Te(d9e,{key:3,viewportStyles:z(L),elementList:A.value},null,8,["viewportStyles","elementList"])):Ye("",!0),O(mc,{visible:y.value,"onUpdate:visible":ve[3]||(ve[3]=Re=>y.value=Re),width:540},{default:ie(()=>[O(rEe,{onClose:ve[2]||(ve[2]=Re=>y.value=!1)})]),_:1},8,["visible"])],32)),[[ce,re],[ge,Ae]])}}}),lEe=Be(sEe,[["__scopeId","data-v-904dbab0"]]),uEe={class:"shape-item-thumbnail"},cEe={class:"shape-content"},fEe={overflow:"visible",width:"18",height:"18"},dEe=["transform"],hEe=["fill","stroke","d"],pEe=Ee({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(U(),ee("div",uEe,[V("div",cEe,[(U(),ee("svg",fEe,[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:Ge(["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,hEe)],8,dEe)]))])]))}}),$ee=Be(pEe,[["__scopeId","data-v-2896ae03"]]),vEe={class:"shape-pool"},gEe={class:"category-name"},mEe={class:"shape-list"},yEe=Ee({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,r=i=>{n("select",i)};return(i,o)=>(U(),ee("div",vEe,[(U(!0),ee(Ne,null,Je(z(nk),a=>(U(),ee("div",{class:"category",key:a.type},[V("div",gEe,dt(a.type),1),V("div",mEe,[(U(!0),ee(Ne,null,Je(a.children,(s,l)=>(U(),Te($ee,{class:"shape-item",key:l,shape:s,onClick:u=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),AEe=Be(yEe,[["__scopeId","data-v-d92f642a"]]),REe=[{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 L 10 0 L 10 20 L 20 20",style:"solid",points:["","arrow"],isBroken2:!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}]}],bEe={class:"line-pool"},xEe={class:"category-name"},SEe={class:"line-list"},wEe=["onClick"],MEe={overflow:"visible",width:"20",height:"20"},LEe=["d","stroke-dasharray","marker-start","marker-end"],TEe=Ee({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,r=i=>{n("select",i)};return(i,o)=>(U(),ee("div",bEe,[(U(!0),ee(Ne,null,Je(z(REe),(a,s)=>(U(),ee("div",{class:"category",key:a.type},[V("div",xEe,dt(a.type),1),V("div",SEe,[(U(!0),ee(Ne,null,Je(a.children,(l,u)=>(U(),ee("div",{class:"line-item",key:u},[V("div",{class:"line-content",onClick:c=>r(l)},[(U(),ee("svg",MEe,[V("defs",null,[l.points[0]?(U(),Te(jf,{key:0,class:"line-marker",id:`preset-line-${s}-${u}`,position:"start",type:l.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Ye("",!0),l.points[1]?(U(),Te(jf,{key:1,class:"line-marker",id:`preset-line-${s}-${u}`,position:"end",type:l.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Ye("",!0)]),V("path",{class:"line-path",d:l.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":l.style==="solid"?"0, 0":"4, 1","marker-start":l.points[0]?`url(#${`preset-line-${s}-${u}`}-${l.points[0]}-start)`:"","marker-end":l.points[1]?`url(#${`preset-line-${s}-${u}`}-${l.points[1]}-end)`:""},null,8,LEe)]))],8,wEe)]))),128))])]))),128))]))}}),_Ee=Be(TEe,[["__scopeId","data-v-fd42a3c4"]]),OEe={class:"chart-pool"},kEe=["onClick"],PEe={class:"name"},CEe=Ee({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,r=["bar","column","line","area","scatter","pie","ring","radar"],i=o=>{n("select",o)};return(o,a)=>{const s=xe("IconChartLine"),l=xe("IconChartHistogram"),u=xe("IconChartPie"),c=xe("IconChartHistogramOne"),f=xe("IconChartLineArea"),d=xe("IconChartRing"),h=xe("IconChartScatter"),p=xe("IconRadarChart");return U(),ee("ul",OEe,[(U(),ee(Ne,null,Je(r,(v,g)=>V("li",{class:"chart-item",key:g},[V("div",{class:"chart-content",onClick:m=>i(v)},[v==="line"?(U(),Te(s,{key:0,size:"24"})):v==="bar"?(U(),Te(l,{key:1,size:"24"})):v==="pie"?(U(),Te(u,{key:2,size:"24"})):v==="column"?(U(),Te(c,{key:3,size:"24"})):v==="area"?(U(),Te(f,{key:4,size:"24"})):v==="ring"?(U(),Te(d,{key:5,size:"24"})):v==="scatter"?(U(),Te(h,{key:6,size:"24"})):v==="radar"?(U(),Te(p,{key:7,size:"23"})):Ye("",!0),V("div",PEe,dt(z(OT)[v]),1)],8,kEe)])),64))])}}}),IEe=Be(CEe,[["__scopeId","data-v-55770a5d"]]),jee=e=>($t("data-v-ba8ef208"),e=e(),jt(),e),NEe={class:"prefix"},FEe={class:"input-wrap"},EEe=["disabled","placeholder"],XEe={class:"handlers"},WEe=jee(()=>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)),VEe=[WEe],DEe=jee(()=>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)),UEe=[DEe],BEe={class:"suffix"},YEe=Ee({__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,i=he(0),o=he(!1);Lt(()=>n.value,()=>{n.value!==i.value&&(i.value=n.value)},{immediate:!0}),Lt(i,()=>{const c=+i.value;if(!isNaN(c)){{if(c>n.max)return;if(c{let c=+i.value;isNaN(c)?c=n.min:c>n.max?c=n.max:c{a(),r("enter",c)},l=c=>{a(),o.value=!1,r("blur",c)},u=c=>{o.value=!0,r("focus",c)};return(c,f)=>(U(),ee("div",{class:Ge(["number-input",{disabled:c.disabled,focused:o.value}])},[V("span",NEe,[ar(c.$slots,"prefix",{},void 0,!0)]),V("div",FEe,[ze(V("input",{type:"text",disabled:c.disabled,"onUpdate:modelValue":f[0]||(f[0]=d=>i.value=d),placeholder:c.placeholder,onInput:f[1]||(f[1]=d=>r("input",d)),onFocus:f[2]||(f[2]=d=>u(d)),onBlur:f[3]||(f[3]=d=>l(d)),onChange:f[4]||(f[4]=d=>r("change",d)),onKeydown:f[5]||(f[5]=pl(d=>s(d),["enter"]))},null,40,EEe),[[Zm,i.value]]),V("div",XEe,[V("span",{class:"handler",onClick:f[6]||(f[6]=d=>i.value+=c.step)},VEe),V("span",{class:"handler",onClick:f[7]||(f[7]=d=>i.value-=c.step)},UEe)])]),V("span",BEe,[ar(c.$slots,"suffix",{},void 0,!0)])],2))}}),ta=Be(YEe,[["__scopeId","data-v-ba8ef208"]]),qee=e=>($t("data-v-dcc16f05"),e=e(),jt(),e),ZEe={class:"table-generator"},QEe={class:"title"},HEe={class:"lef"},KEe=["onMouseenter"],GEe={key:1,class:"custom"},zEe={class:"row"},JEe=qee(()=>V("div",{class:"label",style:{width:"25%"}},"行数:",-1)),$Ee={class:"row"},jEe=qee(()=>V("div",{class:"label",style:{width:"25%"}},"列数:",-1)),qEe={class:"btns"},eXe=Ee({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,r=he([]),i=he(3),o=he(3),a=he(!1),s=()=>{if(!r.value.length)return;const[c,f]=r.value;n("insert",{row:c,col:f})},l=()=>{if(i.value<1||i.value>20||o.value<1||o.value>20)return un.warning("行数/列数必须在0~20之间!");n("insert",{row:i.value,col:o.value}),a.value=!1},u=()=>{n("close"),a.value=!1};return(c,f)=>(U(),ee("div",ZEe,[V("div",QEe,[V("div",HEe,"表格 "+dt(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)},dt(a.value?"返回":"自定义"),1)]),a.value?(U(),ee("div",GEe,[V("div",zEe,[JEe,O(ta,{min:1,max:20,value:i.value,"onUpdate:value":f[3]||(f[3]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",$Ee,[jEe,O(ta,{min:1,max:20,value:o.value,"onUpdate:value":f[4]||(f[4]=d=>o.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",qEe,[O(qe,{class:"btn",onClick:f[5]||(f[5]=d=>u())},{default:ie(()=>[De("取消")]),_:1}),O(qe,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>l())},{default:ie(()=>[De("确认")]),_:1})])])):(U(),ee("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[V("tbody",null,[(U(),ee(Ne,null,Je(10,d=>V("tr",{key:d},[(U(),ee(Ne,null,Je(10,h=>V("td",{onMouseenter:p=>r.value=[d,h],key:h},[V("div",{class:Ge(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,KEe)),64))])),64))])],32))]))}}),tXe=Be(eXe,[["__scopeId","data-v-dcc16f05"]]),nXe={class:"media-input"},rXe={class:"btns"},iXe={class:"btns"},oXe=Ee({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const n=t,r=he("video"),i=he("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),o=he("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!i.value)return un.error("请先输入正确的视频地址");n("insertVideo",i.value)},l=()=>{if(!o.value)return un.error("请先输入正确的音频地址");n("insertAudio",o.value)};return(u,c)=>(U(),ee("div",nXe,[O(gl,{tabs:a,value:r.value,"onUpdate:value":c[0]||(c[0]=f=>r.value=f),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(U(),ee(Ne,{key:0},[O(pu,{value:i.value,"onUpdate:value":c[1]||(c[1]=f=>i.value=f),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),V("div",rXe,[O(qe,{onClick:c[2]||(c[2]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[De("取消")]),_:1}),O(qe,{type:"primary",onClick:c[3]||(c[3]=f=>s())},{default:ie(()=>[De("确认")]),_:1})])],64)):Ye("",!0),r.value==="audio"?(U(),ee(Ne,{key:1},[O(pu,{value:o.value,"onUpdate:value":c[4]||(c[4]=f=>o.value=f),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),V("div",iXe,[O(qe,{onClick:c[5]||(c[5]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[De("取消")]),_:1}),O(qe,{type:"primary",onClick:c[6]||(c[6]=f=>l())},{default:ie(()=>[De("确认")]),_:1})])],64)):Ye("",!0)]))}}),aXe=Be(oXe,[["__scopeId","data-v-999b18ca"]]);var WR=82;function Ep(e){return I_[e]==null&&sXe(e),I_[e]}function sXe(e){var t=lXe[e];if(t!=null){for(var n=t.substring(3,5),r=1*n.charCodeAt(0)-WR,i=1*n.charCodeAt(1)-WR,o=t.substring(5),a=[[]],s=1/0,l=-1/0,u=1/0,c=-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 Pa={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function uXe(e){e=e.replace(/\n/g," ");let t=0,n=[],r="";for(;t0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;c=e[f].bbox.y,e[u].text=="'"?e[u].bbox.y=c:(To(e[u],Pa.SUB_SUP_SCALE,null,0,0),Tn[e[f].text]&&Tn[e[f].text].flags.big?e[u].bbox.y=c-e[u].bbox.h:e[f].text=="\\int"?e[u].bbox.y=c:e[u].bbox.y=c-e[u].bbox.h/2)}else if(e[u].text=="_"){let c=1,f=u;for(;f>0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;c=e[f].bbox.y+e[f].bbox.h,To(e[u],Pa.SUB_SUP_SCALE,null,0,0),Tn[e[f].text]&&Tn[e[f].text].flags.big?e[u].bbox.y=c:e[f].text=="\\int"?e[u].bbox.y=c-e[u].bbox.h:e[u].bbox.y=c-e[u].bbox.h/2}function n(u,c,f,d,h){let p=u,v=h,g=1/0,m=-1/0;for(;d>0?p=0;){if(e[p].text==c)v++;else if(e[p].text==f){if(v--,v==0)break}else e[p].text=="^"||e[p].text=="_"||e[p].bbox&&(g=Math.min(g,e[p].bbox.y),m=Math.max(m,e[p].bbox.y+e[p].bbox.h));p+=d}return[g,m]}for(let u=0;uu.text=="&"||u.text=="\\\\"))return;let r=[],i=[],o=[];for(let u=0;u0&&(e.chld[y].text=="^"||e.chld[y].text=="_"||e.chld[y].text=="'");)y--;let R=Tn[e.chld[y].text]&&Tn[e.chld[y].text].flags.big;if(g.text=="'"){let A=y+1,x=0;for(;A1;dXe(e.chld,f);let p=tte(e.chld);e.text=="\\text"&&(p.x-=1,p.w+=2);for(let v=0;vr.bbox.w)c=c/Math.max(a.w,1)*r.bbox.w,c+=r.bbox.x;else{c=c/16*i;let d=(r.bbox.w-a.w/16*i)/2;c+=r.bbox.x+d}if(Tn[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*i,o){let d=(a.ymax+a.ymin)/2;f-=d/16*i}f+=r.bbox.y+r.bbox.h/2}l.push([c,f])}t.push(l)}}else if(Tn[r.text]&&Tn[r.text].flags.txt||r.type=="char"){let a=r.bbox.x,s=!!(Tn[r.text]&&Tn[r.text].flags.txt);for(let l=Number(s);l16?h*=16/u.w:h+=(16-u.w)/2/16),h+=a,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}t.push(f)}r.mode=="tt"?a+=i:a+=u.w/16*i}}}return t}function El(e){return Math.round(e*100)/100}var $P=class{constructor(e){this._latex=e,this._tokens=uXe(e),this._tree=N_(this._tokens),ete(this._tree.chld),Wl(this._tree),hXe(this._tree),this._polylines=pXe(this._tree)}resolveScale(e){var t,n,r,i;if(e==null)return[16,16,16,16];let o=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let u=0;for(let f=0;f>startxref %%EOF -`,l+u}boxes(e){e||(e={});let[t,n,r,i]=this.resolveScale(e),o=[];for(let a=0;a"},{latex:"="},{latex:"\\neq\\ne"},{latex:"\\leqq"},{latex:"\\geqq"},{latex:"\\leq"},{latex:"\\geq"},{latex:"\\propto"},{latex:"\\sim"},{latex:"\\equiv"},{latex:"\\dagger"},{latex:"\\ddagger"},{latex:"\\ell"},{latex:"\\#"},{latex:"\\$"},{latex:"\\&"},{latex:"\\%"},{latex:"\\langle\\rangle"},{latex:"()"},{latex:"[]"},{latex:"\\{\\}"},{latex:"||"},{latex:"\\|"},{latex:"\\exists"},{latex:"\\in"},{latex:"\\subset"},{latex:"\\supset"},{latex:"\\cup"},{latex:"\\cap"},{latex:"\\infty"},{latex:"\\partial"},{latex:"\\nabla"},{latex:"\\aleph"},{latex:"\\wp"},{latex:"\\therefore"},{latex:"\\mid"},{latex:"\\sum"},{latex:"\\prod"},{latex:"\\bigoplus"},{latex:"\\bigodot"},{latex:"\\int"},{latex:"\\oint"},{latex:"\\oplus"},{latex:"\\odot"},{latex:"\\perp"},{latex:"\\angle"},{latex:"\\triangle"},{latex:"\\Box"},{latex:"\\rightarrow"},{latex:"\\to"},{latex:"\\leftarrow"},{latex:"\\gets"},{latex:"\\circ"},{latex:"\\bigcirc"},{latex:"\\bullet"},{latex:"\\star"},{latex:"\\diamond"},{latex:"\\ast"},{latex:","},{latex:"."},{latex:";"},{latex:"!"}]},{type:"group",label:"组合",children:[{latex:"\\frac{a}{b}"},{latex:"\\frac{dx}{dx}"},{latex:"\\frac{\\partial a}{\\partial b}"},{latex:"\\sqrt{x}"},{latex:"\\sqrt[n]{x}"},{latex:"x^{n}"},{latex:"x_{n}"},{latex:"x_a^b"},{latex:"\\int_{a}^{b}"},{latex:"\\oint_a^b"},{latex:"\\lim_{a \\rightarrow b}"},{latex:"\\prod_a^b"},{latex:"\\sum_a^b"},{latex:"\\left(\\begin{array}a \\\\ b\\end{array}\\right)"},{latex:"\\begin{bmatrix}a & b \\\\ c & d \\end{bmatrix}"},{latex:"\\begin{cases}a & x = 0 \\\\ b & x > 0\\end{cases}"},{latex:"\\hat{a}"},{latex:"\\breve{a}"},{latex:"\\acute{a}"},{latex:"\\grave{a}"},{latex:"\\tilde{a}"},{latex:"\\bar{a}"},{latex:"\\vec{a}"},{latex:"\\underline{a}"},{latex:"\\overline{a}"},{latex:"\\widehat{ab}"},{latex:"\\overleftarrow{ab}"},{latex:"\\overrightarrow{ab}"}]},{type:"verbatim",label:"函数",children:[{latex:"\\log"},{latex:"\\ln"},{latex:"\\exp"},{latex:"\\mod"},{latex:"\\lim"},{latex:"\\sin"},{latex:"\\cos"},{latex:"\\tan"},{latex:"\\csc"},{latex:"\\sec"},{latex:"\\cot"},{latex:"\\sinh"},{latex:"\\cosh"},{latex:"\\tanh"},{latex:"\\csch"},{latex:"\\sech"},{latex:"\\coth"},{latex:"\\arcsin"},{latex:"\\arccos"},{latex:"\\arctan"},{latex:"\\arccsc"},{latex:"\\arcsec"},{latex:"\\arccot"}]},{type:"greek",label:"希腊字母",children:[{latex:"\\alpha"},{latex:"\\beta"},{latex:"\\gamma"},{latex:"\\delta"},{latex:"\\varepsilon"},{latex:"\\zeta"},{latex:"\\eta"},{latex:"\\vartheta"},{latex:"\\iota"},{latex:"\\kappa"},{latex:"\\lambda"},{latex:"\\mu"},{latex:"\\nu"},{latex:"\\xi"},{latex:"\\omicron"},{latex:"\\pi"},{latex:"\\rho"},{latex:"\\sigma"},{latex:"\\tau"},{latex:"\\upsilon"},{latex:"\\varphi"},{latex:"\\chi"},{latex:"\\psi"},{latex:"\\omega"},{latex:"\\epsilon"},{latex:"\\theta"},{latex:"\\phi"},{latex:"\\varsigma"},{latex:"\\Alpha"},{latex:"\\Beta"},{latex:"\\Gamma"},{latex:"\\Delta"},{latex:"\\Epsilon"},{latex:"\\Zeta"},{latex:"\\Eta"},{latex:"\\Theta"},{latex:"\\Iota"},{latex:"\\Kappa"},{latex:"\\Lambda"},{latex:"\\Mu"},{latex:"\\Nu"},{latex:"\\Xi"},{latex:"\\Omicron"},{latex:"\\Pi"},{latex:"\\Rho"},{latex:"\\Sigma"},{latex:"\\Tau"},{latex:"\\Upsilon"},{latex:"\\Phi"},{latex:"\\Chi"},{latex:"\\Psi"},{latex:"\\Omega"}]}],gXe=["width","height"],mXe=["transform"],yXe=["d"],AXe=Ee({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(e){const t=e,n=he({x:0,y:0,w:0,h:0}),r=he("");Lt(()=>t.latex,()=>{const o=new $P(t.latex);r.value=o.pathd({}),n.value=o.box({})},{immediate:!0});const i=Se(()=>{const o=n.value.w+32,a=n.value.h+32;return o>t.width||a>t.height?o/a>t.width/t.height?t.width/o:t.height/a:1});return(o,a)=>(U(),ee("svg",{class:"formula-content",overflow:"visible",width:n.value.w+32,height:n.value.h+32,stroke:"#000","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${i.value}, ${i.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[V("path",{d:r.value},null,8,yXe)],8,mXe)],8,gXe))}}),rB=Be(AXe,[["__scopeId","data-v-fa1b116d"]]),RXe=["innerHTML"],bXe=Ee({__name:"SymbolContent",props:{latex:{}},setup(e){const t=e,n=Se(()=>new $P(t.latex).svg({SCALE_X:10,SCALE_Y:10}));return(r,i)=>(U(),ee("div",{class:"symbol-content",innerHTML:n.value},null,8,RXe))}}),xXe=["disabled","value","rows","placeholder"],SXe=Ee({__name:"TextArea",props:{value:{},rows:{default:4},padding:{},disabled:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value","focus","blur","enter"],setup(e,{expose:t,emit:n}){const r=n,i=s=>{r("update:value",s.target.value)},o=he();return t({focus:()=>{o.value&&o.value.focus()}}),(s,l)=>(U(),ee("textarea",{class:Ge(["textarea",{disabled:s.disabled,resizable:s.resizable}]),ref_key:"textareaRef",ref:o,disabled:s.disabled,value:s.value,rows:s.rows,placeholder:s.placeholder,style:we({padding:s.padding?`${s.padding}px`:"10px"}),onInput:l[0]||(l[0]=u=>i(u)),onFocus:l[1]||(l[1]=u=>r("focus",u)),onBlur:l[2]||(l[2]=u=>r("blur",u)),onKeydown:l[3]||(l[3]=pl(u=>r("enter",u),["enter"]))},null,46,xXe))}}),F_=Be(SXe,[["__scopeId","data-v-96f315e1"]]),wXe={class:"latex-editor"},MXe={class:"container"},LXe={class:"left"},TXe={class:"input-area"},_Xe={class:"preview"},OXe={key:0,class:"placeholder"},kXe={key:1,class:"preview-content"},PXe={class:"right"},CXe={class:"content"},IXe={key:0,class:"symbol"},NXe={class:"symbol-pool"},FXe=["onClick"],EXe={key:1,class:"formula"},XXe={class:"formula-title"},WXe=["onClick"],VXe={class:"footer"},DXe=Ee({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(e,{emit:t}){const n=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],r=e,i=t,o=vXe,a=r8.map(p=>({label:p.label,key:p.type})),s=he(""),l=he("symbol"),u=he(),c=he(r8[0].type),f=Se(()=>{const p=r8.find(v=>v.type===c.value);return(p==null?void 0:p.children)||[]});Wt(()=>{r.value&&(s.value=r.value)});const d=()=>{if(!s.value)return un.error("公式不能为空");const p=new $P(s.value),v=p.pathd({}),g=p.box({});i("update",{latex:s.value,path:v,w:g.w+32,h:g.h+32})},h=p=>{u.value&&(u.value.focus(),document.execCommand("insertText",!1,p))};return(p,v)=>(U(),ee("div",wXe,[V("div",MXe,[V("div",LXe,[V("div",TXe,[O(F_,{value:s.value,"onUpdate:value":v[0]||(v[0]=g=>s.value=g),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:u},null,8,["value"])]),V("div",_Xe,[s.value?(U(),ee("div",kXe,[O(rB,{width:518,height:138,latex:s.value},null,8,["latex"])])):(U(),ee("div",OXe,"公式预览"))])]),V("div",PXe,[O(gl,{tabs:n,value:l.value,"onUpdate:value":v[1]||(v[1]=g=>l.value=g),card:""},null,8,["value"]),V("div",CXe,[l.value==="symbol"?(U(),ee("div",IXe,[O(gl,{tabs:z(a),value:c.value,"onUpdate:value":v[2]||(v[2]=g=>c.value=g),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),V("div",NXe,[(U(!0),ee(Ne,null,Je(f.value,g=>(U(),ee("div",{class:"symbol-item",key:g.latex,onClick:m=>h(g.latex)},[O(bXe,{latex:g.latex},null,8,["latex"])],8,FXe))),128))])])):(U(),ee("div",EXe,[(U(!0),ee(Ne,null,Je(z(o),g=>(U(),ee("div",{class:"formula-item",key:g.label},[V("div",XXe,dt(g.label),1),V("div",{class:"formula-item-content",onClick:m=>s.value=g.latex},[O(rB,{width:236,height:60,latex:g.latex},null,8,["latex"])],8,WXe)]))),128))]))])])]),V("div",VXe,[O(qe,{class:"btn",onClick:v[3]||(v[3]=g=>i("close"))},{default:ie(()=>[De("取消")]),_:1}),O(qe,{class:"btn",type:"primary",onClick:v[4]||(v[4]=g=>d())},{default:ie(()=>[De("确定")]),_:1})])]))}}),nte=Be(DXe,[["__scopeId","data-v-fc449335"]]),UXe={class:"canvas-tool"},BXe={class:"left-handler"},YXe={class:"more"},ZXe={class:"add-element-handler"},QXe={class:"handler-item group-btn"},HXe={class:"handler-item group-btn",offset:10},KXe={class:"right-handler"},GXe={class:"text"},zXe=Ee({__name:"index",setup(e){const t=pt(),{creatingElement:n,creatingCustomShape:r,showSelectPanel:i,showSearchPanel:o,showNotesPanel:a}=Ve(t),{canUndo:s,canRedo:l}=Ve(zS()),{redo:u,undo:c}=on(),{scaleCanvas:f,setCanvasScalePercentage:d,resetCanvas:h,canvasScalePercentage:p}=sk(),v=[200,150,125,100,75,50],g=he(!1),m=$=>{d($),g.value=!1},{createImageElement:y,createChartElement:R,createTableElement:A,createLatexElement:x,createVideoElement:S,createAudioElement:M}=d0(),L=$=>{const G=$[0];G&&Rc(G).then(de=>y(de))},T=he(!1),w=he(!1),P=he(!1),k=he(!1),N=he(!1),C=he(!1),I=he(!1),F=he(!1),W=he(!1),B=($=!1)=>{t.setCreatingElement({type:"text",vertical:$})},K=$=>{t.setCreatingElement({type:"shape",data:$}),T.value=!1},j=()=>{t.setCreatingCustomShapeState(!0),T.value=!1},D=$=>{t.setCreatingElement({type:"line",data:$}),w.value=!1},Y=()=>{t.setSelectPanelState(!i.value)},Z=()=>{t.setSearchPanelState(!o.value)},H=()=>{t.setNotesPanelState(!a.value)};return($,G)=>{var _e;const de=xe("IconBack"),J=xe("IconNext"),Ae=xe("IconMore"),ue=xe("IconComment"),fe=xe("IconMoveOne"),se=xe("IconSearch"),q=xe("IconFontSize"),E=xe("IconTextRotationNone"),te=xe("IconTextRotationDown"),le=xe("IconDown"),ne=xe("IconGraphicDesign"),re=xe("IconPicture"),ae=xe("IconConnection"),ve=xe("IconChartProportion"),ce=xe("IconInsertTable"),ge=xe("IconFormula"),Re=xe("IconVideoTwo"),We=xe("IconMinus"),Fe=xe("IconPlus"),Ke=xe("IconFullScreen"),Ue=_n("tooltip");return U(),ee("div",UXe,[V("div",BXe,[ze(O(de,{class:Ge(["handler-item",{disable:!z(s)}]),onClick:G[0]||(G[0]=ye=>z(c)())},null,8,["class"]),[[Ue,"撤销(Ctrl + Z)"]]),ze(O(J,{class:Ge(["handler-item",{disable:!z(l)}]),onClick:G[1]||(G[1]=ye=>z(u)())},null,8,["class"]),[[Ue,"重做(Ctrl + Y)"]]),V("div",YXe,[O(Ut,{type:"vertical",style:{height:"20px"}}),O(It,{class:"more-icon",trigger:"click",value:W.value,"onUpdate:value":G[5]||(G[5]=ye=>W.value=ye),offset:10},{content:ie(()=>[O(Qr,{center:"",onClick:G[2]||(G[2]=ye=>{H(),W.value=!1})},{default:ie(()=>[De("批注面板")]),_:1}),O(Qr,{center:"",onClick:G[3]||(G[3]=ye=>{Y(),W.value=!1})},{default:ie(()=>[De("选择窗格")]),_:1}),O(Qr,{center:"",onClick:G[4]||(G[4]=ye=>{Z(),W.value=!1})},{default:ie(()=>[De("查找替换")]),_:1})]),default:ie(()=>[O(Ae,{class:"handler-item"})]),_:1},8,["value"]),ze(O(ue,{class:Ge(["handler-item",{active:z(a)}]),onClick:G[6]||(G[6]=ye=>H())},null,8,["class"]),[[Ue,"批注面板"]]),ze(O(fe,{class:Ge(["handler-item",{active:z(i)}]),onClick:G[7]||(G[7]=ye=>Y())},null,8,["class"]),[[Ue,"选择窗格"]]),ze(O(se,{class:Ge(["handler-item",{active:z(o)}]),onClick:G[8]||(G[8]=ye=>Z())},null,8,["class"]),[[Ue,"查找/替换(Ctrl + F)"]])])]),V("div",ZXe,[ze((U(),ee("div",QXe,[O(q,{class:Ge(["icon",{active:((_e=z(n))==null?void 0:_e.type)==="text"}]),onClick:G[9]||(G[9]=ye=>B())},null,8,["class"]),O(It,{trigger:"click",value:I.value,"onUpdate:value":G[12]||(G[12]=ye=>I.value=ye),style:{height:"100%"},offset:10},{content:ie(()=>[O(Qr,{center:"",onClick:G[10]||(G[10]=()=>{B(),I.value=!1})},{default:ie(()=>[O(E),De(" 横向文本框")]),_:1}),O(Qr,{center:"",onClick:G[11]||(G[11]=()=>{B(!0),I.value=!1})},{default:ie(()=>[O(te),De(" 竖向文本框")]),_:1})]),default:ie(()=>[O(le,{class:"arrow"})]),_:1},8,["value"])])),[[Ue,"插入文字"]]),ze((U(),ee("div",HXe,[O(It,{trigger:"click",style:{height:"100%"},value:T.value,"onUpdate:value":G[14]||(G[14]=ye=>T.value=ye),offset:10},{content:ie(()=>[O(AEe,{onSelect:G[13]||(G[13]=ye=>K(ye))})]),default:ie(()=>{var ye;return[O(ne,{class:Ge(["icon",{active:z(r)||((ye=z(n))==null?void 0:ye.type)==="shape"}])},null,8,["class"])]}),_:1},8,["value"]),O(It,{trigger:"click",value:F.value,"onUpdate:value":G[16]||(G[16]=ye=>F.value=ye),style:{height:"100%"},offset:10},{content:ie(()=>[O(Qr,{center:"",onClick:G[15]||(G[15]=()=>{j(),F.value=!1})},{default:ie(()=>[De("自由绘制")]),_:1})]),default:ie(()=>[O(le,{class:"arrow"})]),_:1},8,["value"])])),[[Ue,"插入形状"]]),O(Jf,{onChange:G[17]||(G[17]=ye=>L(ye))},{default:ie(()=>[ze(O(re,{class:"handler-item"},null,512),[[Ue,"插入图片"]])]),_:1}),O(It,{trigger:"click",value:w.value,"onUpdate:value":G[19]||(G[19]=ye=>w.value=ye),offset:10},{content:ie(()=>[O(_Ee,{onSelect:G[18]||(G[18]=ye=>D(ye))})]),default:ie(()=>{var ye;return[ze(O(ae,{class:Ge(["handler-item",{active:((ye=z(n))==null?void 0:ye.type)==="line"}])},null,8,["class"]),[[Ue,"插入线条"]])]}),_:1},8,["value"]),O(It,{trigger:"click",value:P.value,"onUpdate:value":G[21]||(G[21]=ye=>P.value=ye),offset:10},{content:ie(()=>[O(IEe,{onSelect:G[20]||(G[20]=ye=>{z(R)(ye),P.value=!1})})]),default:ie(()=>[ze(O(ve,{class:"handler-item"},null,512),[[Ue,"插入图表"]])]),_:1},8,["value"]),O(It,{trigger:"click",value:k.value,"onUpdate:value":G[24]||(G[24]=ye=>k.value=ye),offset:10},{content:ie(()=>[O(tXe,{onClose:G[22]||(G[22]=ye=>k.value=!1),onInsert:G[23]||(G[23]=({row:ye,col:Le})=>{z(A)(ye,Le),k.value=!1})})]),default:ie(()=>[ze(O(ce,{class:"handler-item"},null,512),[[Ue,"插入表格"]])]),_:1},8,["value"]),ze(O(ge,{class:"handler-item",onClick:G[25]||(G[25]=ye=>C.value=!0)},null,512),[[Ue,"插入公式"]]),O(It,{trigger:"click",value:N.value,"onUpdate:value":G[29]||(G[29]=ye=>N.value=ye),offset:10},{content:ie(()=>[O(aXe,{onClose:G[26]||(G[26]=ye=>N.value=!1),onInsertVideo:G[27]||(G[27]=ye=>{z(S)(ye),N.value=!1}),onInsertAudio:G[28]||(G[28]=ye=>{z(M)(ye),N.value=!1})})]),default:ie(()=>[ze(O(Re,{class:"handler-item"},null,512),[[Ue,"插入音视频"]])]),_:1},8,["value"])]),V("div",KXe,[ze(O(We,{class:"handler-item viewport-size",onClick:G[30]||(G[30]=ye=>z(f)("-"))},null,512),[[Ue,"画布缩小(Ctrl + -)"]]),O(It,{trigger:"click",value:g.value,"onUpdate:value":G[32]||(G[32]=ye=>g.value=ye)},{content:ie(()=>[(U(),ee(Ne,null,Je(v,ye=>O(Qr,{center:"",key:ye,onClick:Le=>m(ye)},{default:ie(()=>[De(dt(ye)+"%",1)]),_:2},1032,["onClick"])),64)),O(Qr,{center:"",onClick:G[31]||(G[31]=ye=>{z(h)(),g.value=!1})},{default:ie(()=>[De("适应屏幕")]),_:1})]),default:ie(()=>[V("span",GXe,dt(z(p)),1)]),_:1},8,["value"]),ze(O(Fe,{class:"handler-item viewport-size",onClick:G[33]||(G[33]=ye=>z(f)("+"))},null,512),[[Ue,"画布放大(Ctrl + =)"]]),ze(O(Ke,{class:"handler-item viewport-size-adaptation",onClick:G[34]||(G[34]=ye=>z(h)())},null,512),[[Ue,"适应屏幕(Ctrl + 0)"]])]),O(mc,{visible:C.value,"onUpdate:visible":G[37]||(G[37]=ye=>C.value=ye),width:880},{default:ie(()=>[O(nte,{onClose:G[35]||(G[35]=ye=>C.value=!1),onUpdate:G[36]||(G[36]=ye=>{z(x)(ye),C.value=!1})})]),_:1},8,["visible"])])}}}),JXe=Be(zXe,[["__scopeId","data-v-4a6550c3"]]),$Xe=()=>{const e=at(),{slides:t}=Ve(e),{addHistorySnapshot:n}=on(),{deleteSlide:r}=bc();return{createSection:()=>{e.updateSlide({sectionTag:{id:Qt(6)}}),n()},removeSection:u=>{if(!u)return;const c=t.value.find(f=>{var d;return((d=f.sectionTag)==null?void 0:d.id)===u});e.removeSlideProps({id:c.id,propName:"sectionTag"}),n()},removeAllSection:()=>{const u=t.value.map(c=>(c.sectionTag&&delete c.sectionTag,c));e.setSlides(u),n()},removeSectionSlides:u=>{let c=0;u&&(c=t.value.findIndex(d=>{var h;return((h=d.sectionTag)==null?void 0:h.id)===u}));const f=[];for(let d=c;d{if(c){if(u==="default")e.updateSlide({sectionTag:{id:Qt(6),title:c}},t.value[0].id);else{const f=t.value.find(d=>{var h;return((h=d.sectionTag)==null?void 0:h.id)===u});if(!f)return;e.updateSlide({sectionTag:{...f.sectionTag,title:c}},f.id)}n()}}}},u1=()=>{const{slides:e}=Ve(at()),t=he(null),n=he(50),r=()=>{e.value.length>n.value?t.value=setTimeout(()=>{n.value=n.value+20,r()},600):n.value=9999};return Wt(r),En(()=>{t.value&&clearTimeout(t.value)}),{slidesLoadLimit:n}},jXe={class:"templates"},qXe={class:"catalogs"},eWe=["onClick"],tWe={class:"content"},nWe={class:"types"},rWe=["onClick"],iWe={key:0,class:"slide-item"},oWe={class:"btns"},aWe=Ee({__name:"Templates",emits:["select"],setup(e,{emit:t}){const n=t,r=at(),{templates:i}=Ve(r),o=he([]),a=he(),s=he([{label:"全部",value:"all"},{label:"封面",value:"cover"},{label:"目录",value:"contents"},{label:"过渡",value:"transition"},{label:"内容",value:"content"},{label:"结束",value:"end"}]),l=he("all"),u=he(""),c=d=>{n("select",d)},f=d=>{u.value=d,tv.getFileData(u.value).then(h=>{o.value=h.slides,a.value&&a.value.scrollTo(0,0)})};return Wt(()=>{f(i.value[0].id)}),(d,h)=>(U(),ee("div",jXe,[V("div",qXe,[(U(!0),ee(Ne,null,Je(z(i),p=>(U(),ee("div",{class:Ge(["catalog",{active:u.value===p.id}]),key:p.id,onClick:v=>f(p.id)},dt(p.name),11,eWe))),128))]),V("div",tWe,[V("div",nWe,[(U(!0),ee(Ne,null,Je(s.value,p=>(U(),ee("div",{class:Ge(["type",{active:l.value===p.value}]),key:p.value,onClick:v=>l.value=p.value},dt(p.label),11,rWe))),128))]),V("div",{class:"list",ref_key:"listRef",ref:a},[(U(!0),ee(Ne,null,Je(o.value,p=>(U(),ee(Ne,{key:p.id},[p.type===l.value||l.value==="all"?(U(),ee("div",iWe,[O(Cs,{class:"thumbnail",slide:p,size:180},null,8,["slide"]),V("div",oWe,[O(qe,{class:"btn",type:"primary",size:"small",onClick:v=>c(p)},{default:ie(()=>[De("插入模板")]),_:2},1032,["onClick"])])])):Ye("",!0)],64))),128))],512)])]))}}),sWe=Be(aWe,[["__scopeId","data-v-4495cdf6"]]);var rte={exports:{}};const lWe=NO(Bde);/**! +`,l+u}boxes(e){e||(e={});let[t,n,r,i]=this.resolveScale(e),o=[];for(let a=0;a"},{latex:"="},{latex:"\\neq\\ne"},{latex:"\\leqq"},{latex:"\\geqq"},{latex:"\\leq"},{latex:"\\geq"},{latex:"\\propto"},{latex:"\\sim"},{latex:"\\equiv"},{latex:"\\dagger"},{latex:"\\ddagger"},{latex:"\\ell"},{latex:"\\#"},{latex:"\\$"},{latex:"\\&"},{latex:"\\%"},{latex:"\\langle\\rangle"},{latex:"()"},{latex:"[]"},{latex:"\\{\\}"},{latex:"||"},{latex:"\\|"},{latex:"\\exists"},{latex:"\\in"},{latex:"\\subset"},{latex:"\\supset"},{latex:"\\cup"},{latex:"\\cap"},{latex:"\\infty"},{latex:"\\partial"},{latex:"\\nabla"},{latex:"\\aleph"},{latex:"\\wp"},{latex:"\\therefore"},{latex:"\\mid"},{latex:"\\sum"},{latex:"\\prod"},{latex:"\\bigoplus"},{latex:"\\bigodot"},{latex:"\\int"},{latex:"\\oint"},{latex:"\\oplus"},{latex:"\\odot"},{latex:"\\perp"},{latex:"\\angle"},{latex:"\\triangle"},{latex:"\\Box"},{latex:"\\rightarrow"},{latex:"\\to"},{latex:"\\leftarrow"},{latex:"\\gets"},{latex:"\\circ"},{latex:"\\bigcirc"},{latex:"\\bullet"},{latex:"\\star"},{latex:"\\diamond"},{latex:"\\ast"},{latex:","},{latex:"."},{latex:";"},{latex:"!"}]},{type:"group",label:"组合",children:[{latex:"\\frac{a}{b}"},{latex:"\\frac{dx}{dx}"},{latex:"\\frac{\\partial a}{\\partial b}"},{latex:"\\sqrt{x}"},{latex:"\\sqrt[n]{x}"},{latex:"x^{n}"},{latex:"x_{n}"},{latex:"x_a^b"},{latex:"\\int_{a}^{b}"},{latex:"\\oint_a^b"},{latex:"\\lim_{a \\rightarrow b}"},{latex:"\\prod_a^b"},{latex:"\\sum_a^b"},{latex:"\\left(\\begin{array}a \\\\ b\\end{array}\\right)"},{latex:"\\begin{bmatrix}a & b \\\\ c & d \\end{bmatrix}"},{latex:"\\begin{cases}a & x = 0 \\\\ b & x > 0\\end{cases}"},{latex:"\\hat{a}"},{latex:"\\breve{a}"},{latex:"\\acute{a}"},{latex:"\\grave{a}"},{latex:"\\tilde{a}"},{latex:"\\bar{a}"},{latex:"\\vec{a}"},{latex:"\\underline{a}"},{latex:"\\overline{a}"},{latex:"\\widehat{ab}"},{latex:"\\overleftarrow{ab}"},{latex:"\\overrightarrow{ab}"}]},{type:"verbatim",label:"函数",children:[{latex:"\\log"},{latex:"\\ln"},{latex:"\\exp"},{latex:"\\mod"},{latex:"\\lim"},{latex:"\\sin"},{latex:"\\cos"},{latex:"\\tan"},{latex:"\\csc"},{latex:"\\sec"},{latex:"\\cot"},{latex:"\\sinh"},{latex:"\\cosh"},{latex:"\\tanh"},{latex:"\\csch"},{latex:"\\sech"},{latex:"\\coth"},{latex:"\\arcsin"},{latex:"\\arccos"},{latex:"\\arctan"},{latex:"\\arccsc"},{latex:"\\arcsec"},{latex:"\\arccot"}]},{type:"greek",label:"希腊字母",children:[{latex:"\\alpha"},{latex:"\\beta"},{latex:"\\gamma"},{latex:"\\delta"},{latex:"\\varepsilon"},{latex:"\\zeta"},{latex:"\\eta"},{latex:"\\vartheta"},{latex:"\\iota"},{latex:"\\kappa"},{latex:"\\lambda"},{latex:"\\mu"},{latex:"\\nu"},{latex:"\\xi"},{latex:"\\omicron"},{latex:"\\pi"},{latex:"\\rho"},{latex:"\\sigma"},{latex:"\\tau"},{latex:"\\upsilon"},{latex:"\\varphi"},{latex:"\\chi"},{latex:"\\psi"},{latex:"\\omega"},{latex:"\\epsilon"},{latex:"\\theta"},{latex:"\\phi"},{latex:"\\varsigma"},{latex:"\\Alpha"},{latex:"\\Beta"},{latex:"\\Gamma"},{latex:"\\Delta"},{latex:"\\Epsilon"},{latex:"\\Zeta"},{latex:"\\Eta"},{latex:"\\Theta"},{latex:"\\Iota"},{latex:"\\Kappa"},{latex:"\\Lambda"},{latex:"\\Mu"},{latex:"\\Nu"},{latex:"\\Xi"},{latex:"\\Omicron"},{latex:"\\Pi"},{latex:"\\Rho"},{latex:"\\Sigma"},{latex:"\\Tau"},{latex:"\\Upsilon"},{latex:"\\Phi"},{latex:"\\Chi"},{latex:"\\Psi"},{latex:"\\Omega"}]}],gXe=["width","height"],mXe=["transform"],yXe=["d"],AXe=Ee({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(e){const t=e,n=he({x:0,y:0,w:0,h:0}),r=he("");Lt(()=>t.latex,()=>{const o=new $P(t.latex);r.value=o.pathd({}),n.value=o.box({})},{immediate:!0});const i=Se(()=>{const o=n.value.w+32,a=n.value.h+32;return o>t.width||a>t.height?o/a>t.width/t.height?t.width/o:t.height/a:1});return(o,a)=>(U(),ee("svg",{class:"formula-content",overflow:"visible",width:n.value.w+32,height:n.value.h+32,stroke:"#000","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${i.value}, ${i.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[V("path",{d:r.value},null,8,yXe)],8,mXe)],8,gXe))}}),rB=Be(AXe,[["__scopeId","data-v-fa1b116d"]]),RXe=["innerHTML"],bXe=Ee({__name:"SymbolContent",props:{latex:{}},setup(e){const t=e,n=Se(()=>new $P(t.latex).svg({SCALE_X:10,SCALE_Y:10}));return(r,i)=>(U(),ee("div",{class:"symbol-content",innerHTML:n.value},null,8,RXe))}}),xXe=["disabled","value","rows","placeholder"],SXe=Ee({__name:"TextArea",props:{value:{},rows:{default:4},padding:{},disabled:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value","focus","blur","enter"],setup(e,{expose:t,emit:n}){const r=n,i=s=>{r("update:value",s.target.value)},o=he();return t({focus:()=>{o.value&&o.value.focus()}}),(s,l)=>(U(),ee("textarea",{class:Ge(["textarea",{disabled:s.disabled,resizable:s.resizable}]),ref_key:"textareaRef",ref:o,disabled:s.disabled,value:s.value,rows:s.rows,placeholder:s.placeholder,style:Me({padding:s.padding?`${s.padding}px`:"10px"}),onInput:l[0]||(l[0]=u=>i(u)),onFocus:l[1]||(l[1]=u=>r("focus",u)),onBlur:l[2]||(l[2]=u=>r("blur",u)),onKeydown:l[3]||(l[3]=pl(u=>r("enter",u),["enter"]))},null,46,xXe))}}),F_=Be(SXe,[["__scopeId","data-v-96f315e1"]]),wXe={class:"latex-editor"},MXe={class:"container"},LXe={class:"left"},TXe={class:"input-area"},_Xe={class:"preview"},OXe={key:0,class:"placeholder"},kXe={key:1,class:"preview-content"},PXe={class:"right"},CXe={class:"content"},IXe={key:0,class:"symbol"},NXe={class:"symbol-pool"},FXe=["onClick"],EXe={key:1,class:"formula"},XXe={class:"formula-title"},WXe=["onClick"],VXe={class:"footer"},DXe=Ee({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(e,{emit:t}){const n=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],r=e,i=t,o=vXe,a=r8.map(p=>({label:p.label,key:p.type})),s=he(""),l=he("symbol"),u=he(),c=he(r8[0].type),f=Se(()=>{const p=r8.find(v=>v.type===c.value);return(p==null?void 0:p.children)||[]});Wt(()=>{r.value&&(s.value=r.value)});const d=()=>{if(!s.value)return un.error("公式不能为空");const p=new $P(s.value),v=p.pathd({}),g=p.box({});i("update",{latex:s.value,path:v,w:g.w+32,h:g.h+32})},h=p=>{u.value&&(u.value.focus(),document.execCommand("insertText",!1,p))};return(p,v)=>(U(),ee("div",wXe,[V("div",MXe,[V("div",LXe,[V("div",TXe,[O(F_,{value:s.value,"onUpdate:value":v[0]||(v[0]=g=>s.value=g),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:u},null,8,["value"])]),V("div",_Xe,[s.value?(U(),ee("div",kXe,[O(rB,{width:518,height:138,latex:s.value},null,8,["latex"])])):(U(),ee("div",OXe,"公式预览"))])]),V("div",PXe,[O(gl,{tabs:n,value:l.value,"onUpdate:value":v[1]||(v[1]=g=>l.value=g),card:""},null,8,["value"]),V("div",CXe,[l.value==="symbol"?(U(),ee("div",IXe,[O(gl,{tabs:z(a),value:c.value,"onUpdate:value":v[2]||(v[2]=g=>c.value=g),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),V("div",NXe,[(U(!0),ee(Ne,null,Je(f.value,g=>(U(),ee("div",{class:"symbol-item",key:g.latex,onClick:m=>h(g.latex)},[O(bXe,{latex:g.latex},null,8,["latex"])],8,FXe))),128))])])):(U(),ee("div",EXe,[(U(!0),ee(Ne,null,Je(z(o),g=>(U(),ee("div",{class:"formula-item",key:g.label},[V("div",XXe,dt(g.label),1),V("div",{class:"formula-item-content",onClick:m=>s.value=g.latex},[O(rB,{width:236,height:60,latex:g.latex},null,8,["latex"])],8,WXe)]))),128))]))])])]),V("div",VXe,[O(qe,{class:"btn",onClick:v[3]||(v[3]=g=>i("close"))},{default:ie(()=>[De("取消")]),_:1}),O(qe,{class:"btn",type:"primary",onClick:v[4]||(v[4]=g=>d())},{default:ie(()=>[De("确定")]),_:1})])]))}}),nte=Be(DXe,[["__scopeId","data-v-fc449335"]]),UXe={class:"canvas-tool"},BXe={class:"left-handler"},YXe={class:"more"},ZXe={class:"add-element-handler"},QXe={class:"handler-item group-btn"},HXe={class:"handler-item group-btn",offset:10},KXe={class:"right-handler"},GXe={class:"text"},zXe=Ee({__name:"index",setup(e){const t=pt(),{creatingElement:n,creatingCustomShape:r,showSelectPanel:i,showSearchPanel:o,showNotesPanel:a}=Ve(t),{canUndo:s,canRedo:l}=Ve(zS()),{redo:u,undo:c}=on(),{scaleCanvas:f,setCanvasScalePercentage:d,resetCanvas:h,canvasScalePercentage:p}=sk(),v=[200,150,125,100,75,50],g=he(!1),m=$=>{d($),g.value=!1},{createImageElement:y,createChartElement:R,createTableElement:A,createLatexElement:x,createVideoElement:S,createAudioElement:M}=d0(),L=$=>{const G=$[0];G&&Rc(G).then(de=>y(de))},T=he(!1),w=he(!1),P=he(!1),k=he(!1),N=he(!1),C=he(!1),I=he(!1),F=he(!1),W=he(!1),B=($=!1)=>{t.setCreatingElement({type:"text",vertical:$})},K=$=>{t.setCreatingElement({type:"shape",data:$}),T.value=!1},j=()=>{t.setCreatingCustomShapeState(!0),T.value=!1},D=$=>{t.setCreatingElement({type:"line",data:$}),w.value=!1},Y=()=>{t.setSelectPanelState(!i.value)},Z=()=>{t.setSearchPanelState(!o.value)},H=()=>{t.setNotesPanelState(!a.value)};return($,G)=>{var _e;const de=xe("IconBack"),J=xe("IconNext"),Ae=xe("IconMore"),ue=xe("IconComment"),fe=xe("IconMoveOne"),se=xe("IconSearch"),q=xe("IconFontSize"),E=xe("IconTextRotationNone"),te=xe("IconTextRotationDown"),le=xe("IconDown"),ne=xe("IconGraphicDesign"),re=xe("IconPicture"),ae=xe("IconConnection"),ve=xe("IconChartProportion"),ce=xe("IconInsertTable"),ge=xe("IconFormula"),Re=xe("IconVideoTwo"),We=xe("IconMinus"),Fe=xe("IconPlus"),Ke=xe("IconFullScreen"),Ue=_n("tooltip");return U(),ee("div",UXe,[V("div",BXe,[ze(O(de,{class:Ge(["handler-item",{disable:!z(s)}]),onClick:G[0]||(G[0]=ye=>z(c)())},null,8,["class"]),[[Ue,"撤销(Ctrl + Z)"]]),ze(O(J,{class:Ge(["handler-item",{disable:!z(l)}]),onClick:G[1]||(G[1]=ye=>z(u)())},null,8,["class"]),[[Ue,"重做(Ctrl + Y)"]]),V("div",YXe,[O(Ut,{type:"vertical",style:{height:"20px"}}),O(It,{class:"more-icon",trigger:"click",value:W.value,"onUpdate:value":G[5]||(G[5]=ye=>W.value=ye),offset:10},{content:ie(()=>[O(Qr,{center:"",onClick:G[2]||(G[2]=ye=>{H(),W.value=!1})},{default:ie(()=>[De("批注面板")]),_:1}),O(Qr,{center:"",onClick:G[3]||(G[3]=ye=>{Y(),W.value=!1})},{default:ie(()=>[De("选择窗格")]),_:1}),O(Qr,{center:"",onClick:G[4]||(G[4]=ye=>{Z(),W.value=!1})},{default:ie(()=>[De("查找替换")]),_:1})]),default:ie(()=>[O(Ae,{class:"handler-item"})]),_:1},8,["value"]),ze(O(ue,{class:Ge(["handler-item",{active:z(a)}]),onClick:G[6]||(G[6]=ye=>H())},null,8,["class"]),[[Ue,"批注面板"]]),ze(O(fe,{class:Ge(["handler-item",{active:z(i)}]),onClick:G[7]||(G[7]=ye=>Y())},null,8,["class"]),[[Ue,"选择窗格"]]),ze(O(se,{class:Ge(["handler-item",{active:z(o)}]),onClick:G[8]||(G[8]=ye=>Z())},null,8,["class"]),[[Ue,"查找/替换(Ctrl + F)"]])])]),V("div",ZXe,[ze((U(),ee("div",QXe,[O(q,{class:Ge(["icon",{active:((_e=z(n))==null?void 0:_e.type)==="text"}]),onClick:G[9]||(G[9]=ye=>B())},null,8,["class"]),O(It,{trigger:"click",value:I.value,"onUpdate:value":G[12]||(G[12]=ye=>I.value=ye),style:{height:"100%"},offset:10},{content:ie(()=>[O(Qr,{center:"",onClick:G[10]||(G[10]=()=>{B(),I.value=!1})},{default:ie(()=>[O(E),De(" 横向文本框")]),_:1}),O(Qr,{center:"",onClick:G[11]||(G[11]=()=>{B(!0),I.value=!1})},{default:ie(()=>[O(te),De(" 竖向文本框")]),_:1})]),default:ie(()=>[O(le,{class:"arrow"})]),_:1},8,["value"])])),[[Ue,"插入文字"]]),ze((U(),ee("div",HXe,[O(It,{trigger:"click",style:{height:"100%"},value:T.value,"onUpdate:value":G[14]||(G[14]=ye=>T.value=ye),offset:10},{content:ie(()=>[O(AEe,{onSelect:G[13]||(G[13]=ye=>K(ye))})]),default:ie(()=>{var ye;return[O(ne,{class:Ge(["icon",{active:z(r)||((ye=z(n))==null?void 0:ye.type)==="shape"}])},null,8,["class"])]}),_:1},8,["value"]),O(It,{trigger:"click",value:F.value,"onUpdate:value":G[16]||(G[16]=ye=>F.value=ye),style:{height:"100%"},offset:10},{content:ie(()=>[O(Qr,{center:"",onClick:G[15]||(G[15]=()=>{j(),F.value=!1})},{default:ie(()=>[De("自由绘制")]),_:1})]),default:ie(()=>[O(le,{class:"arrow"})]),_:1},8,["value"])])),[[Ue,"插入形状"]]),O(Jf,{onChange:G[17]||(G[17]=ye=>L(ye))},{default:ie(()=>[ze(O(re,{class:"handler-item"},null,512),[[Ue,"插入图片"]])]),_:1}),O(It,{trigger:"click",value:w.value,"onUpdate:value":G[19]||(G[19]=ye=>w.value=ye),offset:10},{content:ie(()=>[O(_Ee,{onSelect:G[18]||(G[18]=ye=>D(ye))})]),default:ie(()=>{var ye;return[ze(O(ae,{class:Ge(["handler-item",{active:((ye=z(n))==null?void 0:ye.type)==="line"}])},null,8,["class"]),[[Ue,"插入线条"]])]}),_:1},8,["value"]),O(It,{trigger:"click",value:P.value,"onUpdate:value":G[21]||(G[21]=ye=>P.value=ye),offset:10},{content:ie(()=>[O(IEe,{onSelect:G[20]||(G[20]=ye=>{z(R)(ye),P.value=!1})})]),default:ie(()=>[ze(O(ve,{class:"handler-item"},null,512),[[Ue,"插入图表"]])]),_:1},8,["value"]),O(It,{trigger:"click",value:k.value,"onUpdate:value":G[24]||(G[24]=ye=>k.value=ye),offset:10},{content:ie(()=>[O(tXe,{onClose:G[22]||(G[22]=ye=>k.value=!1),onInsert:G[23]||(G[23]=({row:ye,col:Le})=>{z(A)(ye,Le),k.value=!1})})]),default:ie(()=>[ze(O(ce,{class:"handler-item"},null,512),[[Ue,"插入表格"]])]),_:1},8,["value"]),ze(O(ge,{class:"handler-item",onClick:G[25]||(G[25]=ye=>C.value=!0)},null,512),[[Ue,"插入公式"]]),O(It,{trigger:"click",value:N.value,"onUpdate:value":G[29]||(G[29]=ye=>N.value=ye),offset:10},{content:ie(()=>[O(aXe,{onClose:G[26]||(G[26]=ye=>N.value=!1),onInsertVideo:G[27]||(G[27]=ye=>{z(S)(ye),N.value=!1}),onInsertAudio:G[28]||(G[28]=ye=>{z(M)(ye),N.value=!1})})]),default:ie(()=>[ze(O(Re,{class:"handler-item"},null,512),[[Ue,"插入音视频"]])]),_:1},8,["value"])]),V("div",KXe,[ze(O(We,{class:"handler-item viewport-size",onClick:G[30]||(G[30]=ye=>z(f)("-"))},null,512),[[Ue,"画布缩小(Ctrl + -)"]]),O(It,{trigger:"click",value:g.value,"onUpdate:value":G[32]||(G[32]=ye=>g.value=ye)},{content:ie(()=>[(U(),ee(Ne,null,Je(v,ye=>O(Qr,{center:"",key:ye,onClick:Le=>m(ye)},{default:ie(()=>[De(dt(ye)+"%",1)]),_:2},1032,["onClick"])),64)),O(Qr,{center:"",onClick:G[31]||(G[31]=ye=>{z(h)(),g.value=!1})},{default:ie(()=>[De("适应屏幕")]),_:1})]),default:ie(()=>[V("span",GXe,dt(z(p)),1)]),_:1},8,["value"]),ze(O(Fe,{class:"handler-item viewport-size",onClick:G[33]||(G[33]=ye=>z(f)("+"))},null,512),[[Ue,"画布放大(Ctrl + =)"]]),ze(O(Ke,{class:"handler-item viewport-size-adaptation",onClick:G[34]||(G[34]=ye=>z(h)())},null,512),[[Ue,"适应屏幕(Ctrl + 0)"]])]),O(mc,{visible:C.value,"onUpdate:visible":G[37]||(G[37]=ye=>C.value=ye),width:880},{default:ie(()=>[O(nte,{onClose:G[35]||(G[35]=ye=>C.value=!1),onUpdate:G[36]||(G[36]=ye=>{z(x)(ye),C.value=!1})})]),_:1},8,["visible"])])}}}),JXe=Be(zXe,[["__scopeId","data-v-4a6550c3"]]),$Xe=()=>{const e=at(),{slides:t}=Ve(e),{addHistorySnapshot:n}=on(),{deleteSlide:r}=bc();return{createSection:()=>{e.updateSlide({sectionTag:{id:Qt(6)}}),n()},removeSection:u=>{if(!u)return;const c=t.value.find(f=>{var d;return((d=f.sectionTag)==null?void 0:d.id)===u});e.removeSlideProps({id:c.id,propName:"sectionTag"}),n()},removeAllSection:()=>{const u=t.value.map(c=>(c.sectionTag&&delete c.sectionTag,c));e.setSlides(u),n()},removeSectionSlides:u=>{let c=0;u&&(c=t.value.findIndex(d=>{var h;return((h=d.sectionTag)==null?void 0:h.id)===u}));const f=[];for(let d=c;d{if(c){if(u==="default")e.updateSlide({sectionTag:{id:Qt(6),title:c}},t.value[0].id);else{const f=t.value.find(d=>{var h;return((h=d.sectionTag)==null?void 0:h.id)===u});if(!f)return;e.updateSlide({sectionTag:{...f.sectionTag,title:c}},f.id)}n()}}}},u1=()=>{const{slides:e}=Ve(at()),t=he(null),n=he(50),r=()=>{e.value.length>n.value?t.value=setTimeout(()=>{n.value=n.value+20,r()},600):n.value=9999};return Wt(r),En(()=>{t.value&&clearTimeout(t.value)}),{slidesLoadLimit:n}},jXe={class:"templates"},qXe={class:"catalogs"},eWe=["onClick"],tWe={class:"content"},nWe={class:"types"},rWe=["onClick"],iWe={key:0,class:"slide-item"},oWe={class:"btns"},aWe=Ee({__name:"Templates",emits:["select"],setup(e,{emit:t}){const n=t,r=at(),{templates:i}=Ve(r),o=he([]),a=he(),s=he([{label:"全部",value:"all"},{label:"封面",value:"cover"},{label:"目录",value:"contents"},{label:"过渡",value:"transition"},{label:"内容",value:"content"},{label:"结束",value:"end"}]),l=he("all"),u=he(""),c=d=>{n("select",d)},f=d=>{u.value=d,tv.getFileData(u.value).then(h=>{o.value=h.slides,a.value&&a.value.scrollTo(0,0)})};return Wt(()=>{f(i.value[0].id)}),(d,h)=>(U(),ee("div",jXe,[V("div",qXe,[(U(!0),ee(Ne,null,Je(z(i),p=>(U(),ee("div",{class:Ge(["catalog",{active:u.value===p.id}]),key:p.id,onClick:v=>f(p.id)},dt(p.name),11,eWe))),128))]),V("div",tWe,[V("div",nWe,[(U(!0),ee(Ne,null,Je(s.value,p=>(U(),ee("div",{class:Ge(["type",{active:l.value===p.value}]),key:p.value,onClick:v=>l.value=p.value},dt(p.label),11,rWe))),128))]),V("div",{class:"list",ref_key:"listRef",ref:a},[(U(!0),ee(Ne,null,Je(o.value,p=>(U(),ee(Ne,{key:p.id},[p.type===l.value||l.value==="all"?(U(),ee("div",iWe,[O(Cs,{class:"thumbnail",slide:p,size:180},null,8,["slide"]),V("div",oWe,[O(qe,{class:"btn",type:"primary",size:"small",onClick:v=>c(p)},{default:ie(()=>[De("插入模板")]),_:2},1032,["onClick"])])])):Ye("",!0)],64))),128))],512)])]))}}),sWe=Be(aWe,[["__scopeId","data-v-4495cdf6"]]);var rte={exports:{}};const lWe=NO(Bde);/**! * Sortable 1.14.0 * @author RubaXa * @author owenm @@ -211,8 +211,8 @@ trailer In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var mWe="1.14.0";function fc(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Lc=fc(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),gy=fc(/Edge/i),oB=fc(/firefox/i),Cm=fc(/safari/i)&&!fc(/chrome/i)&&!fc(/android/i),ite=fc(/iP(ad|od|hone)/i),yWe=fc(/chrome/i)&&fc(/android/i),ote={capture:!1,passive:!1};function Pn(e,t,n){e.addEventListener(t,n,!Lc&&ote)}function wn(e,t,n){e.removeEventListener(t,n,!Lc&&ote)}function yS(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function AWe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ol(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&yS(e,t):yS(e,t))||r&&e===n)return e;if(e===n)break}while(e=AWe(e))}return null}var aB=/\s+/g;function Er(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(aB," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(aB," ")}}function Pt(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function Bh(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Pt(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function ate(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o,!a)return r;if(r===fu())break;r=Cf(r,!1)}return!1}function Xv(e,t,n,r){for(var i=0,o=0,a=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=fWe(r,LWe);my.pluginEvent.bind(Gt)(t,n,Au({dragEl:mt,parentEl:Br,ghostEl:vn,rootEl:_r,nextEl:uh,lastDownEl:Eb,cloneEl:Zr,cloneHidden:xf,dragStarted:Dg,putSortable:Vi,activeSortable:Gt.active,originalEvent:i,oldIndex:Xp,oldDraggableIndex:Nm,newIndex:Ta,newDraggableIndex:mf,hideGhostForTarget:dte,unhideGhostForTarget:hte,cloneNowHidden:function(){xf=!0},cloneNowShown:function(){xf=!1},dispatchSortableEvent:function(s){Lo({sortable:n,name:s,originalEvent:i})}},o))};function Lo(e){Vg(Au({putSortable:Vi,cloneEl:Zr,targetEl:mt,rootEl:_r,oldIndex:Xp,oldDraggableIndex:Nm,newIndex:Ta,newDraggableIndex:mf},e))}var mt,Br,vn,_r,uh,Eb,Zr,xf,Xp,Ta,Nm,mf,VR,Vi,Lp=!1,AS=!1,RS=[],nh,Hs,s8,l8,cB,fB,Dg,ap,Fm,Em=!1,DR=!1,Xb,no,u8=[],X_=!1,bS=[],n4=typeof document<"u",UR=ite,dB=gy||Lc?"cssFloat":"float",TWe=n4&&!yWe&&!ite&&"draggable"in document.createElement("div"),ute=function(){if(n4){if(Lc)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),cte=function(t,n){var r=Pt(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Xv(t,0,n),a=Xv(t,1,n),s=o&&Pt(o),l=a&&Pt(a),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Pr(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Pr(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return o&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&r[dB]==="none"||a&&r[dB]==="none"&&u+c>i)?"vertical":"horizontal"},_We=function(t,n,r){var i=r?t.left:t.top,o=r?t.right:t.bottom,a=r?t.width:t.height,s=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===s||o===l||i+a/2===s+u/2},OWe=function(t,n){var r;return RS.some(function(i){var o=i[fo].options.emptyInsertThreshold;if(!(!o||jP(i))){var a=Pr(i),s=t>=a.left-o&&t<=a.right+o,l=n>=a.top-o&&n<=a.bottom+o;if(s&&l)return r=i}}),r},fte=function(t){function n(o,a){return function(s,l,u,c){var f=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(o==null&&(a||f))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return n(o(s,l,u,c),a)(s,l,u,c);var d=(a?s:l).options.group.name;return o===!0||typeof o=="string"&&o===d||o.join&&o.indexOf(d)>-1}}var r={},i=t.group;(!i||Fb(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},dte=function(){!ute&&vn&&Pt(vn,"display","none")},hte=function(){!ute&&vn&&Pt(vn,"display","")};n4&&document.addEventListener("click",function(e){if(AS)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),AS=!1,!1},!0);var rh=function(t){if(mt){t=t.touches?t.touches[0]:t;var n=OWe(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[fo]._onDragOver(r)}}},kWe=function(t){mt&&mt.parentNode[fo]._isOutsideThisEl(t.target)};function Gt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Is({},t),e[fo]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return cte(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,s){a.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Gt.supportPointer!==!1&&"PointerEvent"in window&&!Cm,emptyInsertThreshold:5};my.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);fte(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:TWe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Pn(e,"pointerdown",this._onTapStart):(Pn(e,"mousedown",this._onTapStart),Pn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Pn(e,"dragover",this),Pn(e,"dragenter",this)),RS.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Is(this,SWe())}Gt.prototype={constructor:Gt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(ap=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,mt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(WWe(r),!mt&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Cm&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=ol(l,i.draggable,r,!1),!(l&&l.animated)&&Eb!==l)){if(Xp=Gr(l),Nm=Gr(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){Lo({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),Qo("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=ol(u,f.trim(),r,!1),f)return Lo({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:r,toEl:r}),Qo("filter",n,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}i.handle&&!ol(u,i.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,r){var i=this,o=i.el,a=i.options,s=o.ownerDocument,l;if(r&&!mt&&r.parentNode===o){var u=Pr(r);if(_r=o,mt=r,Br=mt.parentNode,uh=mt.nextSibling,Eb=r,VR=a.group,Gt.dragged=mt,nh={target:mt,clientX:(n||t).clientX,clientY:(n||t).clientY},cB=nh.clientX-u.left,fB=nh.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,mt.style["will-change"]="all",l=function(){if(Qo("delayEnded",i,{evt:t}),Gt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!oB&&i.nativeDraggable&&(mt.draggable=!0),i._triggerDragStart(t,n),Lo({sortable:i,name:"choose",originalEvent:t}),Er(mt,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){ate(mt,c.trim(),c8)}),Pn(s,"dragover",rh),Pn(s,"mousemove",rh),Pn(s,"touchmove",rh),Pn(s,"mouseup",i._onDrop),Pn(s,"touchend",i._onDrop),Pn(s,"touchcancel",i._onDrop),oB&&this.nativeDraggable&&(this.options.touchStartThreshold=4,mt.draggable=!0),Qo("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(gy||Lc))){if(Gt.eventCanceled){this._onDrop();return}Pn(s,"mouseup",i._disableDelayedDrag),Pn(s,"touchend",i._disableDelayedDrag),Pn(s,"touchcancel",i._disableDelayedDrag),Pn(s,"mousemove",i._delayedDragTouchMoveHandler),Pn(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&Pn(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){mt&&c8(mt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;wn(t,"mouseup",this._disableDelayedDrag),wn(t,"touchend",this._disableDelayedDrag),wn(t,"touchcancel",this._disableDelayedDrag),wn(t,"mousemove",this._delayedDragTouchMoveHandler),wn(t,"touchmove",this._delayedDragTouchMoveHandler),wn(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Pn(document,"pointermove",this._onTouchMove):n?Pn(document,"touchmove",this._onTouchMove):Pn(document,"mousemove",this._onTouchMove):(Pn(mt,"dragend",this),Pn(_r,"dragstart",this._onDragStart));try{document.selection?Wb(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Lp=!1,_r&&mt){Qo("dragStarted",this,{evt:n}),this.nativeDraggable&&Pn(document,"dragover",kWe);var r=this.options;!t&&Er(mt,r.dragClass,!1),Er(mt,r.ghostClass,!0),Gt.active=this,t&&this._appendGhost(),Lo({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Hs){this._lastX=Hs.clientX,this._lastY=Hs.clientY,dte();for(var t=document.elementFromPoint(Hs.clientX,Hs.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Hs.clientX,Hs.clientY),t!==n);)n=t;if(mt.parentNode[fo]._isOutsideThisEl(t),n)do{if(n[fo]){var r=void 0;if(r=n[fo]._onDragOver({clientX:Hs.clientX,clientY:Hs.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);hte()}},_onTouchMove:function(t){if(nh){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=vn&&Bh(vn,!0),s=vn&&a&&a.a,l=vn&&a&&a.d,u=UR&&no&&lB(no),c=(o.clientX-nh.clientX+i.x)/(s||1)+(u?u[0]-u8[0]:0)/(s||1),f=(o.clientY-nh.clientY+i.y)/(l||1)+(u?u[1]-u8[1]:0)/(l||1);if(!Gt.active&&!Lp){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0&&(Lo({rootEl:Br,name:"add",toEl:Br,fromEl:_r,originalEvent:t}),Lo({sortable:this,name:"remove",toEl:Br,originalEvent:t}),Lo({rootEl:Br,name:"sort",toEl:Br,fromEl:_r,originalEvent:t}),Lo({sortable:this,name:"sort",toEl:Br,originalEvent:t})),Vi&&Vi.save()):Ta!==Xp&&Ta>=0&&(Lo({sortable:this,name:"update",toEl:Br,originalEvent:t}),Lo({sortable:this,name:"sort",toEl:Br,originalEvent:t})),Gt.active&&((Ta==null||Ta===-1)&&(Ta=Xp,mf=Nm),Lo({sortable:this,name:"end",toEl:Br,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Qo("nulling",this),_r=mt=Br=vn=uh=Zr=Eb=xf=nh=Hs=Dg=Ta=mf=Xp=Nm=ap=Fm=Vi=VR=Gt.dragged=Gt.ghost=Gt.clone=Gt.active=null,bS.forEach(function(t){t.checked=!0}),bS.length=s8=l8=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":mt&&(this._onDragOver(t),PWe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,o=r.length,a=this.options;ir.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function FWe(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a){if(s&&Xbc+u*o/2:lf-Xb)return-Fm}else if(l>c+u*(1-i)/2&&lf-u*o/2)?l>c+u/2?1:-1:0}function EWe(e){return Gr(mt)1&&(fn.forEach(function(s){o.addAnimationState({target:s,rect:Ho?Pr(s):a}),o8(s),s.fromRect=a,r.removeAnimationState(s)}),Ho=!1,YWe(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,o=n.insertion,a=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(o){if(i&&a._hideClone(),ig=!1,u.animation&&fn.length>1&&(Ho||!i&&!a.options.sort&&!l)){var c=Pr(vr,!1,!0,!0);fn.forEach(function(d){d!==vr&&(uB(d,c),s.appendChild(d))}),Ho=!0}if(!i)if(Ho||ZR(),fn.length>1){var f=YR;a._showClone(r),a.options.animation&&!YR&&f&&La.forEach(function(d){a.addAnimationState({target:d,rect:og}),d.fromRect=og,d.thisAnimationDuration=null})}else a._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,o=n.activeSortable;if(fn.forEach(function(s){s.thisAnimationDuration=null}),o.options.animation&&!i&&o.multiDrag.isMultiDrag){og=Is({},r);var a=Bh(vr,!0);og.top-=a.f,og.left-=a.e}},dragOverAnimationComplete:function(){Ho&&(Ho=!1,ZR())},drop:function(n){var r=n.originalEvent,i=n.rootEl,o=n.parentEl,a=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var f=this.options,d=o.children;if(!sp)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Er(vr,f.selectedClass,!~fn.indexOf(vr)),~fn.indexOf(vr))fn.splice(fn.indexOf(vr),1),rg=null,Vg({sortable:a,rootEl:i,name:"deselect",targetEl:vr,originalEvt:r});else{if(fn.push(vr),Vg({sortable:a,rootEl:i,name:"select",targetEl:vr,originalEvt:r}),r.shiftKey&&rg&&a.el.contains(rg)){var h=Gr(rg),p=Gr(vr);if(~h&&~p&&h!==p){var v,g;for(p>h?(g=h,v=p):(g=p,v=h+1);g1){var m=Pr(vr),y=Gr(vr,":not(."+this.options.selectedClass+")");if(!ig&&f.animation&&(vr.thisAnimationDuration=null),c.captureAnimationState(),!ig&&(f.animation&&(vr.fromRect=m,fn.forEach(function(A){if(A.thisAnimationDuration=null,A!==vr){var x=Ho?Pr(A):m;A.fromRect=x,c.addAnimationState({target:A,rect:x})}})),ZR(),fn.forEach(function(A){d[y]?o.insertBefore(A,d[y]):o.appendChild(A),y++}),l===Gr(vr))){var R=!1;fn.forEach(function(A){if(A.sortableIndex!==Gr(A)){R=!0;return}}),R&&s("update")}fn.forEach(function(A){o8(A)}),c.animateAll()}Ks=c}(i===o||u&&u.lastPutMode!=="clone")&&La.forEach(function(A){A.parentNode&&A.parentNode.removeChild(A)})}},nullingGlobal:function(){this.isMultiDrag=sp=!1,La.length=0},destroyGlobal:function(){this._deselectMultiDrag(),wn(document,"pointerup",this._deselectMultiDrag),wn(document,"mouseup",this._deselectMultiDrag),wn(document,"touchend",this._deselectMultiDrag),wn(document,"keydown",this._checkKeyDown),wn(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof sp<"u"&&sp)&&Ks===this.sortable&&!(n&&ol(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;fn.length;){var r=fn[0];Er(r,this.options.selectedClass,!1),fn.shift(),Vg({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Is(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[fo];!r||!r.options.multiDrag||~fn.indexOf(n)||(Ks&&Ks!==r&&(Ks.multiDrag._deselectMultiDrag(),Ks=r),Er(n,r.options.selectedClass,!0),fn.push(n))},deselect:function(n){var r=n.parentNode[fo],i=fn.indexOf(n);!r||!r.options.multiDrag||!~i||(Er(n,r.options.selectedClass,!1),fn.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return fn.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var a;Ho&&o!==vr?a=-1:Ho?a=Gr(o,":not(."+n.options.selectedClass+")"):a=Gr(o),i.push({multiDragElement:o,index:a})}),{items:dWe(fn),clones:[].concat(La),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function YWe(e,t){fn.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function pB(e,t){La.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function ZR(){fn.forEach(function(e){e!==vr&&e.parentNode&&e.parentNode.removeChild(e)})}Gt.mount(new VWe);Gt.mount(tC,eC);const ZWe=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:BWe,Sortable:Gt,Swap:DWe,default:Gt},Symbol.toStringTag,{value:"Module"})),QWe=NO(ZWe);(function(e,t){(function(r,i){e.exports=i(lWe,QWe)})(typeof self<"u"?self:Xt,function(n,r){return function(i){var o={};function a(s){if(o[s])return o[s].exports;var l=o[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=i,a.c=o,a.d=function(s,l,u){a.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,l){if(l&1&&(s=a(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var c in s)a.d(u,c,(function(f){return s[f]}).bind(null,c));return u},a.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s="fb15")}({"00ee":function(i,o,a){var s=a("b622"),l=s("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,o,a){var s=a("1c0b");i.exports=function(l,u,c){if(s(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,d){return l.call(u,f,d)};case 3:return function(f,d,h){return l.call(u,f,d,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,o,a){var s=a("fc6a"),l=a("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(d){try{return l(d)}catch{return c.slice()}};i.exports.f=function(h){return c&&u.call(h)=="[object Window]"?f(h):l(s(h))}},"06cf":function(i,o,a){var s=a("83ab"),l=a("d1e7"),u=a("5c6c"),c=a("fc6a"),f=a("c04e"),d=a("5135"),h=a("0cfb"),p=Object.getOwnPropertyDescriptor;o.f=s?p:function(g,m){if(g=c(g),m=f(m,!0),h)try{return p(g,m)}catch{}if(d(g,m))return u(!l.f.call(g,m),g[m])}},"0cfb":function(i,o,a){var s=a("83ab"),l=a("d039"),u=a("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,o,a){var s=a("23e7"),l=a("d58f").left,u=a("a640"),c=a("ae40"),f=u("reduce"),d=c("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!d},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,o,a){var s=a("c6b6"),l=a("9263");i.exports=function(u,c){var f=u.exec;if(typeof f=="function"){var d=f.call(u,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(i,o,a){var s=a("da84"),l=a("fdbc"),u=a("17c2"),c=a("9112");for(var f in l){var d=s[f],h=d&&d.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(i,o,a){var s=a("b727").forEach,l=a("a640"),u=a("ae40"),c=l("forEach"),f=u("forEach");i.exports=!c||!f?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,o,a){var s=a("d066");i.exports=s("document","documentElement")},"1c0b":function(i,o){i.exports=function(a){if(typeof a!="function")throw TypeError(String(a)+" is not a function");return a}},"1c7e":function(i,o,a){var s=a("b622"),l=s("iterator"),u=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){u=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}i.exports=function(d,h){if(!h&&!u)return!1;var p=!1;try{var v={};v[l]=function(){return{next:function(){return{done:p=!0}}}},d(v)}catch{}return p}},"1d80":function(i,o){i.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},"1dde":function(i,o,a){var s=a("d039"),l=a("b622"),u=a("2d00"),c=l("species");i.exports=function(f){return u>=51||!s(function(){var d=[],h=d.constructor={};return h[c]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(i,o,a){var s=a("a691"),l=Math.max,u=Math.min;i.exports=function(c,f){var d=s(c);return d<0?l(d+f,0):u(d,f)}},"23e7":function(i,o,a){var s=a("da84"),l=a("06cf").f,u=a("9112"),c=a("6eeb"),f=a("ce4e"),d=a("e893"),h=a("94ca");i.exports=function(p,v){var g=p.target,m=p.global,y=p.stat,R,A,x,S,M,L;if(m?A=s:y?A=s[g]||f(g,{}):A=(s[g]||{}).prototype,A)for(x in v){if(M=v[x],p.noTargetGet?(L=l(A,x),S=L&&L.value):S=A[x],R=h(m?x:g+(y?".":"#")+x,p.forced),!R&&S!==void 0){if(typeof M==typeof S)continue;d(M,S)}(p.sham||S&&S.sham)&&u(M,"sham",!0),c(A,x,M,p)}}},"241c":function(i,o,a){var s=a("ca84"),l=a("7839"),u=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},"25f0":function(i,o,a){var s=a("6eeb"),l=a("825a"),u=a("d039"),c=a("ad6d"),f="toString",d=RegExp.prototype,h=d[f],p=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),v=h.name!=f;(p||v)&&s(RegExp.prototype,f,function(){var m=l(this),y=String(m.source),R=m.flags,A=String(R===void 0&&m instanceof RegExp&&!("flags"in d)?c.call(m):R);return"/"+y+"/"+A},{unsafe:!0})},"2ca0":function(i,o,a){var s=a("23e7"),l=a("06cf").f,u=a("50c4"),c=a("5a34"),f=a("1d80"),d=a("ab13"),h=a("c430"),p="".startsWith,v=Math.min,g=d("startsWith"),m=!h&&!g&&!!function(){var y=l(String.prototype,"startsWith");return y&&!y.writable}();s({target:"String",proto:!0,forced:!m&&!g},{startsWith:function(R){var A=String(f(this));c(R);var x=u(v(arguments.length>1?arguments[1]:void 0,A.length)),S=String(R);return p?p.call(A,S,x):A.slice(x,x+S.length)===S}})},"2d00":function(i,o,a){var s=a("da84"),l=a("342f"),u=s.process,c=u&&u.versions,f=c&&c.v8,d,h;f?(d=f.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),i.exports=h&&+h},"342f":function(i,o,a){var s=a("d066");i.exports=s("navigator","userAgent")||""},"35a1":function(i,o,a){var s=a("f5df"),l=a("3f8c"),u=a("b622"),c=u("iterator");i.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||l[s(f)]}},"37e8":function(i,o,a){var s=a("83ab"),l=a("9bf2"),u=a("825a"),c=a("df75");i.exports=s?Object.defineProperties:function(d,h){u(d);for(var p=c(h),v=p.length,g=0,m;v>g;)l.f(d,m=p[g++],h[m]);return d}},"3bbe":function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,o,a){var s=a("6547").charAt,l=a("69f3"),u=a("7dd0"),c="String Iterator",f=l.set,d=l.getterFor(c);u(String,"String",function(h){f(this,{type:c,string:String(h),index:0})},function(){var p=d(this),v=p.string,g=p.index,m;return g>=v.length?{value:void 0,done:!0}:(m=s(v,g),p.index+=m.length,{value:m,done:!1})})},"3f8c":function(i,o){i.exports={}},4160:function(i,o,a){var s=a("23e7"),l=a("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,o,a){var s=a("da84");i.exports=s},"44ad":function(i,o,a){var s=a("d039"),l=a("c6b6"),u="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(i,o,a){var s=a("b622"),l=a("7c73"),u=a("9bf2"),c=s("unscopables"),f=Array.prototype;f[c]==null&&u.f(f,c,{configurable:!0,value:l(null)}),i.exports=function(d){f[c][d]=!0}},"44e7":function(i,o,a){var s=a("861d"),l=a("c6b6"),u=a("b622"),c=u("match");i.exports=function(f){var d;return s(f)&&((d=f[c])!==void 0?!!d:l(f)=="RegExp")}},4930:function(i,o,a){var s=a("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(i,o,a){var s=a("fc6a"),l=a("50c4"),u=a("23cb"),c=function(f){return function(d,h,p){var v=s(d),g=l(v.length),m=u(p,g),y;if(f&&h!=h){for(;g>m;)if(y=v[m++],y!=y)return!0}else for(;g>m;m++)if((f||m in v)&&v[m]===h)return f||m||0;return!f&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(i,o,a){var s=a("23e7"),l=a("b727").filter,u=a("1dde"),c=a("ae40"),f=u("filter"),d=c("filter");s({target:"Array",proto:!0,forced:!f||!d},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,o,a){var s=a("0366"),l=a("7b0b"),u=a("9bdd"),c=a("e95a"),f=a("50c4"),d=a("8418"),h=a("35a1");i.exports=function(v){var g=l(v),m=typeof this=="function"?this:Array,y=arguments.length,R=y>1?arguments[1]:void 0,A=R!==void 0,x=h(g),S=0,M,L,T,w,P,k;if(A&&(R=s(R,y>2?arguments[2]:void 0,2)),x!=null&&!(m==Array&&c(x)))for(w=x.call(g),P=w.next,L=new m;!(T=P.call(w)).done;S++)k=A?u(w,R,[T.value,S],!0):T.value,d(L,S,k);else for(M=f(g.length),L=new m(M);M>S;S++)k=A?R(g[S],S):g[S],d(L,S,k);return L.length=S,L}},"4fad":function(i,o,a){var s=a("23e7"),l=a("6f53").entries;s({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(i,o,a){var s=a("a691"),l=Math.min;i.exports=function(u){return u>0?l(s(u),9007199254740991):0}},5135:function(i,o){var a={}.hasOwnProperty;i.exports=function(s,l){return a.call(s,l)}},5319:function(i,o,a){var s=a("d784"),l=a("825a"),u=a("7b0b"),c=a("50c4"),f=a("a691"),d=a("1d80"),h=a("8aa5"),p=a("14c3"),v=Math.max,g=Math.min,m=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,R=/\$([$&'`]|\d\d?)/g,A=function(x){return x===void 0?x:String(x)};s("replace",2,function(x,S,M,L){var T=L.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,w=L.REPLACE_KEEPS_$0,P=T?"$":"$0";return[function(C,I){var F=d(this),W=C==null?void 0:C[x];return W!==void 0?W.call(C,F,I):S.call(String(F),C,I)},function(N,C){if(!T&&w||typeof C=="string"&&C.indexOf(P)===-1){var I=M(S,N,this,C);if(I.done)return I.value}var F=l(N),W=String(this),B=typeof C=="function";B||(C=String(C));var K=F.global;if(K){var j=F.unicode;F.lastIndex=0}for(var D=[];;){var Y=p(F,W);if(Y===null||(D.push(Y),!K))break;var Z=String(Y[0]);Z===""&&(F.lastIndex=h(W,c(F.lastIndex),j))}for(var H="",$=0,G=0;G=$&&(H+=W.slice($,J)+q,$=J+de.length)}return H+W.slice($)}];function k(N,C,I,F,W,B){var K=I+N.length,j=F.length,D=R;return W!==void 0&&(W=u(W),D=y),S.call(B,D,function(Y,Z){var H;switch(Z.charAt(0)){case"$":return"$";case"&":return N;case"`":return C.slice(0,I);case"'":return C.slice(K);case"<":H=W[Z.slice(1,-1)];break;default:var $=+Z;if($===0)return Y;if($>j){var G=m($/10);return G===0?Y:G<=j?F[G-1]===void 0?Z.charAt(1):F[G-1]+Z.charAt(1):Y}H=F[$-1]}return H===void 0?"":H})}})},5692:function(i,o,a){var s=a("c430"),l=a("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,o,a){var s=a("d066"),l=a("241c"),u=a("7418"),c=a("825a");i.exports=s("Reflect","ownKeys")||function(d){var h=l.f(c(d)),p=u.f;return p?h.concat(p(d)):h}},"5a34":function(i,o,a){var s=a("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,o){i.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}},"5db7":function(i,o,a){var s=a("23e7"),l=a("a2bf"),u=a("7b0b"),c=a("50c4"),f=a("1c0b"),d=a("65f0");s({target:"Array",proto:!0},{flatMap:function(p){var v=u(this),g=c(v.length),m;return f(p),m=d(v,0),m.length=l(m,v,v,g,0,1,p,arguments.length>1?arguments[1]:void 0),m}})},6547:function(i,o,a){var s=a("a691"),l=a("1d80"),u=function(c){return function(f,d){var h=String(l(f)),p=s(d),v=h.length,g,m;return p<0||p>=v?c?"":void 0:(g=h.charCodeAt(p),g<55296||g>56319||p+1===v||(m=h.charCodeAt(p+1))<56320||m>57343?c?h.charAt(p):g:c?h.slice(p,p+2):(g-55296<<10)+(m-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,o,a){var s=a("861d"),l=a("e8b5"),u=a("b622"),c=u("species");i.exports=function(f,d){var h;return l(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(i,o,a){var s=a("7f9a"),l=a("da84"),u=a("861d"),c=a("9112"),f=a("5135"),d=a("f772"),h=a("d012"),p=l.WeakMap,v,g,m,y=function(T){return m(T)?g(T):v(T,{})},R=function(T){return function(w){var P;if(!u(w)||(P=g(w)).type!==T)throw TypeError("Incompatible receiver, "+T+" required");return P}};if(s){var A=new p,x=A.get,S=A.has,M=A.set;v=function(T,w){return M.call(A,T,w),w},g=function(T){return x.call(A,T)||{}},m=function(T){return S.call(A,T)}}else{var L=d("state");h[L]=!0,v=function(T,w){return c(T,L,w),w},g=function(T){return f(T,L)?T[L]:{}},m=function(T){return f(T,L)}}i.exports={set:v,get:g,has:m,enforce:y,getterFor:R}},"6eeb":function(i,o,a){var s=a("da84"),l=a("9112"),u=a("5135"),c=a("ce4e"),f=a("8925"),d=a("69f3"),h=d.get,p=d.enforce,v=String(String).split("String");(i.exports=function(g,m,y,R){var A=R?!!R.unsafe:!1,x=R?!!R.enumerable:!1,S=R?!!R.noTargetGet:!1;if(typeof y=="function"&&(typeof m=="string"&&!u(y,"name")&&l(y,"name",m),p(y).source=v.join(typeof m=="string"?m:"")),g===s){x?g[m]=y:c(m,y);return}else A?!S&&g[m]&&(x=!0):delete g[m];x?g[m]=y:l(g,m,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},"6f53":function(i,o,a){var s=a("83ab"),l=a("df75"),u=a("fc6a"),c=a("d1e7").f,f=function(d){return function(h){for(var p=u(h),v=l(p),g=v.length,m=0,y=[],R;g>m;)R=v[m++],(!s||c.call(p,R))&&y.push(d?[R,p[R]]:p[R]);return y}};i.exports={entries:f(!0),values:f(!1)}},"73d9":function(i,o,a){var s=a("44d2");s("flatMap")},7418:function(i,o){o.f=Object.getOwnPropertySymbols},"746f":function(i,o,a){var s=a("428f"),l=a("5135"),u=a("e538"),c=a("9bf2").f;i.exports=function(f){var d=s.Symbol||(s.Symbol={});l(d,f)||c(d,f,{value:u.f(f)})}},7839:function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,o,a){var s=a("1d80");i.exports=function(l){return Object(s(l))}},"7c73":function(i,o,a){var s=a("825a"),l=a("37e8"),u=a("7839"),c=a("d012"),f=a("1be4"),d=a("cc12"),h=a("f772"),p=">",v="<",g="prototype",m="script",y=h("IE_PROTO"),R=function(){},A=function(T){return v+m+p+T+v+"/"+m+p},x=function(T){T.write(A("")),T.close();var w=T.parentWindow.Object;return T=null,w},S=function(){var T=d("iframe"),w="java"+m+":",P;return T.style.display="none",f.appendChild(T),T.src=String(w),P=T.contentWindow.document,P.open(),P.write(A("document.F=Object")),P.close(),P.F},M,L=function(){try{M=document.domain&&new ActiveXObject("htmlfile")}catch{}L=M?x(M):S();for(var T=u.length;T--;)delete L[g][u[T]];return L()};c[y]=!0,i.exports=Object.create||function(w,P){var k;return w!==null?(R[g]=s(w),k=new R,R[g]=null,k[y]=w):k=L(),P===void 0?k:l(k,P)}},"7dd0":function(i,o,a){var s=a("23e7"),l=a("9ed3"),u=a("e163"),c=a("d2bb"),f=a("d44e"),d=a("9112"),h=a("6eeb"),p=a("b622"),v=a("c430"),g=a("3f8c"),m=a("ae93"),y=m.IteratorPrototype,R=m.BUGGY_SAFARI_ITERATORS,A=p("iterator"),x="keys",S="values",M="entries",L=function(){return this};i.exports=function(T,w,P,k,N,C,I){l(P,w,k);var F=function(G){if(G===N&&D)return D;if(!R&&G in K)return K[G];switch(G){case x:return function(){return new P(this,G)};case S:return function(){return new P(this,G)};case M:return function(){return new P(this,G)}}return function(){return new P(this)}},W=w+" Iterator",B=!1,K=T.prototype,j=K[A]||K["@@iterator"]||N&&K[N],D=!R&&j||F(N),Y=w=="Array"&&K.entries||j,Z,H,$;if(Y&&(Z=u(Y.call(new T)),y!==Object.prototype&&Z.next&&(!v&&u(Z)!==y&&(c?c(Z,y):typeof Z[A]!="function"&&d(Z,A,L)),f(Z,W,!0,!0),v&&(g[W]=L))),N==S&&j&&j.name!==S&&(B=!0,D=function(){return j.call(this)}),(!v||I)&&K[A]!==D&&d(K,A,D),g[w]=D,N)if(H={values:F(S),keys:C?D:F(x),entries:F(M)},I)for($ in H)(R||B||!($ in K))&&h(K,$,H[$]);else s({target:w,proto:!0,forced:R||B},H);return H}},"7f9a":function(i,o,a){var s=a("da84"),l=a("8925"),u=s.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,o,a){var s=a("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,o,a){var s=a("c04e"),l=a("9bf2"),u=a("5c6c");i.exports=function(c,f,d){var h=s(f);h in c?l.f(c,h,u(0,d)):c[h]=d}},"861d":function(i,o){i.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},8875:function(i,o,a){var s,l,u;(function(c,f){l=[],s=f,u=typeof s=="function"?s.apply(o,l):s,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(M){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=d.exec(M.stack)||h.exec(M.stack),v=p&&p[1]||!1,g=p&&p[2]||!1,m=document.location.href.replace(document.location.hash,""),y,R,A,x=document.getElementsByTagName("script");v===m&&(y=document.documentElement.outerHTML,R=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]* +