diff --git a/assets/index-v-YNOcP2.js b/assets/index-BUx2VTqn.js similarity index 97% rename from assets/index-v-YNOcP2.js rename to assets/index-BUx2VTqn.js index 7cdea0fc..2cfeaafb 100644 --- a/assets/index-v-YNOcP2.js +++ b/assets/index-BUx2VTqn.js @@ -1,4 +1,4 @@ -var xZ=Object.defineProperty;var bZ=(e,t,n)=>t in e?xZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var VA=(e,t,n)=>(bZ(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Rg(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Yn={},rd=[],Fo=()=>{},SZ=()=>!1,hp=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Tx=e=>e.startsWith("onUpdate:"),ar=Object.assign,kx=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},MZ=Object.prototype.hasOwnProperty,On=(e,t)=>MZ.call(e,t),wt=Array.isArray,od=e=>Xd(e)==="[object Map]",Qu=e=>Xd(e)==="[object Set]",vS=e=>Xd(e)==="[object Date]",wZ=e=>Xd(e)==="[object RegExp]",Kt=e=>typeof e=="function",sr=e=>typeof e=="string",dc=e=>typeof e=="symbol",Bn=e=>e!==null&&typeof e=="object",Nx=e=>(Bn(e)||Kt(e))&&Kt(e.then)&&Kt(e.catch),mk=Object.prototype.toString,Xd=e=>mk.call(e),LZ=e=>Xd(e).slice(8,-1),vk=e=>Xd(e)==="[object Object]",Px=e=>sr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,oh=Rg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yg=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},OZ=/-(\w)/g,_o=yg(e=>e.replace(OZ,(t,n)=>n?n.toUpperCase():"")),TZ=/\B([A-Z])/g,Hi=yg(e=>e.replace(TZ,"-$1").toLowerCase()),pp=yg(e=>e.charAt(0).toUpperCase()+e.slice(1)),ih=yg(e=>e?`on${pp(e)}`:""),Ca=(e,t)=>!Object.is(e,t),id=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},hv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},pv=e=>{const t=sr(e)?Number(e):NaN;return isNaN(t)?e:t};let gS;const gk=()=>gS||(gS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),kZ="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",NZ=Rg(kZ);function Le(e){if(wt(e)){const t={};for(let n=0;n{if(n){const r=n.split(CZ);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function $e(e){let t="";if(sr(e))t=e;else if(wt(e))for(let n=0;nhc(n,t))}const gt=e=>sr(e)?e:e==null?"":wt(e)||Bn(e)&&(e.toString===mk||!Kt(e.toString))?JSON.stringify(e,Rk,2):String(e),Rk=(e,t)=>t&&t.__v_isRef?Rk(e,t.value):od(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[UA(r,i)+" =>"]=o,n),{})}:Qu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>UA(n))}:dc(t)?UA(t):Bn(t)&&!wt(t)&&!vk(t)?String(t):t,UA=(e,t="")=>{var n;return dc(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let yi;class Cx{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=yi,!t&&yi&&(this.index=(yi.scopes||(yi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=yi;try{return yi=this,t()}finally{yi=n}}}on(){yi=this}off(){yi=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=2))break;Bu(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ic,n=uu;try{return ic=!0,uu=this,this._runnings++,AS(this),this.fn()}finally{RS(this),this._runnings--,uu=n,ic=t}}stop(){var t;this.active&&(AS(this),RS(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function VZ(e){return e.value}function AS(e){e._trackId++,e._depsLength=0}function RS(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()});t&&(ar(n,t),t.scope&&yk(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function YZ(e){e.effect.stop()}let ic=!0,R4=0;const Sk=[];function Zu(){Sk.push(ic),ic=!1}function Bu(){const e=Sk.pop();ic=e===void 0?!0:e}function _x(){R4++}function Ex(){for(R4--;!R4&&y4.length;)y4.shift()()}function Mk(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&bk(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const y4=[];function wk(e,t,n){_x();for(const r of e.keys())if(!(!r.allowRecurse&&r._runnings)&&r._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},mv=new WeakMap,fu=Symbol(""),x4=Symbol("");function oi(e,t,n){if(ic&&uu){let r=mv.get(e);r||mv.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Lk(()=>r.delete(n))),Mk(uu,o)}}function el(e,t,n,r,o,i){const a=mv.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&wt(e)){const c=Number(r);a.forEach((l,u)=>{(u==="length"||!dc(u)&&u>=c)&&s.push(l)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":wt(e)?Px(n)&&s.push(a.get("length")):(s.push(a.get(fu)),od(e)&&s.push(a.get(x4)));break;case"delete":wt(e)||(s.push(a.get(fu)),od(e)&&s.push(a.get(x4)));break;case"set":od(e)&&s.push(a.get(fu));break}_x();for(const c of s)c&&wk(c,3);Ex()}function QZ(e,t){var n;return(n=mv.get(e))==null?void 0:n.get(t)}const ZZ=Rg("__proto__,__v_isRef,__isVue"),Ok=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dc)),yS=BZ();function BZ(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=mn(this);for(let i=0,a=this.length;i{e[t]=function(...n){Zu(),_x();const r=mn(this)[t].apply(this,n);return Ex(),Bu(),r}}),e}function DZ(e){const t=mn(this);return oi(t,"has",e),t.hasOwnProperty(e)}class Tk{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?Fk:Ik:i?Ck:Pk).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=wt(t);if(!o){if(a&&On(yS,n))return Reflect.get(yS,n,r);if(n==="hasOwnProperty")return DZ}const s=Reflect.get(t,n,r);return(dc(n)?Ok.has(n):ZZ(n))||(o||oi(t,"get",n),i)?s:lr(s)?a&&Px(n)?s:s.value:Bn(s)?o?Wx(s):mp(s):s}}class kk extends Tk{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._shallow){const c=wu(i);if(!nu(r)&&!wu(r)&&(i=mn(i),r=mn(r)),!wt(t)&&lr(i)&&!lr(r))return c?!1:(i.value=r,!0)}const a=wt(t)&&Px(n)?Number(n)e,bg=e=>Reflect.getPrototypeOf(e);function Q1(e,t,n=!1,r=!1){e=e.__v_raw;const o=mn(e),i=mn(t);n||(Ca(t,i)&&oi(o,"get",t),oi(o,"get",i));const{has:a}=bg(o),s=r?Xx:n?Ux:Xh;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function Z1(e,t=!1){const n=this.__v_raw,r=mn(n),o=mn(e);return t||(Ca(e,o)&&oi(r,"has",e),oi(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function B1(e,t=!1){return e=e.__v_raw,!t&&oi(mn(e),"iterate",fu),Reflect.get(e,"size",e)}function xS(e){e=mn(e);const t=mn(this);return bg(t).has.call(t,e)||(t.add(e),el(t,"add",e,e)),this}function bS(e,t){t=mn(t);const n=mn(this),{has:r,get:o}=bg(n);let i=r.call(n,e);i||(e=mn(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ca(t,a)&&el(n,"set",e,t):el(n,"add",e,t),this}function SS(e){const t=mn(this),{has:n,get:r}=bg(t);let o=n.call(t,e);o||(e=mn(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&el(t,"delete",e,void 0),i}function MS(){const e=mn(this),t=e.size!==0,n=e.clear();return t&&el(e,"clear",void 0,void 0),n}function D1(e,t){return function(r,o){const i=this,a=i.__v_raw,s=mn(a),c=t?Xx:e?Ux:Xh;return!e&&oi(s,"iterate",fu),a.forEach((l,u)=>r.call(o,c(l),c(u),i))}}function K1(e,t,n){return function(...r){const o=this.__v_raw,i=mn(o),a=od(i),s=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,l=o[e](...r),u=n?Xx:t?Ux:Xh;return!t&&oi(i,"iterate",c?x4:fu),{next(){const{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:s?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function bl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function JZ(){const e={get(i){return Q1(this,i)},get size(){return B1(this)},has:Z1,add:xS,set:bS,delete:SS,clear:MS,forEach:D1(!1,!1)},t={get(i){return Q1(this,i,!1,!0)},get size(){return B1(this)},has:Z1,add:xS,set:bS,delete:SS,clear:MS,forEach:D1(!1,!0)},n={get(i){return Q1(this,i,!0)},get size(){return B1(this,!0)},has(i){return Z1.call(this,i,!0)},add:bl("add"),set:bl("set"),delete:bl("delete"),clear:bl("clear"),forEach:D1(!0,!1)},r={get(i){return Q1(this,i,!0,!0)},get size(){return B1(this,!0)},has(i){return Z1.call(this,i,!0)},add:bl("add"),set:bl("set"),delete:bl("delete"),clear:bl("clear"),forEach:D1(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=K1(i,!1,!1),n[i]=K1(i,!0,!1),t[i]=K1(i,!1,!0),r[i]=K1(i,!0,!0)}),[e,n,t,r]}const[$Z,jZ,qZ,eB]=JZ();function Sg(e,t){const n=t?e?eB:qZ:e?jZ:$Z;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(On(n,o)&&o in r?n:r,o,i)}const tB={get:Sg(!1,!1)},nB={get:Sg(!1,!0)},rB={get:Sg(!0,!1)},oB={get:Sg(!0,!0)},Pk=new WeakMap,Ck=new WeakMap,Ik=new WeakMap,Fk=new WeakMap;function iB(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aB(e){return e.__v_skip||!Object.isExtensible(e)?0:iB(LZ(e))}function mp(e){return wu(e)?e:Mg(e,!1,KZ,tB,Pk)}function _k(e){return Mg(e,!1,GZ,nB,Ck)}function Wx(e){return Mg(e,!0,HZ,rB,Ik)}function sB(e){return Mg(e,!0,zZ,oB,Fk)}function Mg(e,t,n,r,o){if(!Bn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=aB(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return o.set(e,s),s}function ls(e){return wu(e)?ls(e.__v_raw):!!(e&&e.__v_isReactive)}function wu(e){return!!(e&&e.__v_isReadonly)}function nu(e){return!!(e&&e.__v_isShallow)}function Vx(e){return ls(e)||wu(e)}function mn(e){const t=e&&e.__v_raw;return t?mn(t):e}function vp(e){return dv(e,"__v_skip",!0),e}const Xh=e=>Bn(e)?mp(e):e,Ux=e=>Bn(e)?Wx(e):e;class Ek{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ad(()=>t(this._value),()=>Wh(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=mn(this);return Yx(t),(!t._cacheable||t.effect.dirty)&&Ca(t._value,t._value=t.effect.run())&&Wh(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function lB(e,t,n=!1){let r,o;const i=Kt(e);return i?(r=e,o=Fo):(r=e.get,o=e.set),new Ek(r,o,i||!o,n)}function Yx(e){ic&&uu&&(e=mn(e),Mk(uu,e.dep||(e.dep=Lk(()=>e.dep=void 0,e instanceof Ek?e:void 0))))}function Wh(e,t=3,n){e=mn(e);const r=e.dep;r&&wk(r,t)}function lr(e){return!!(e&&e.__v_isRef===!0)}function pe(e){return Xk(e,!1)}function cB(e){return Xk(e,!0)}function Xk(e,t){return lr(e)?e:new uB(e,t)}class uB{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:mn(t),this._value=n?t:Xh(t)}get value(){return Yx(this),this._value}set value(t){const n=this.__v_isShallow||nu(t)||wu(t);t=n?t:mn(t),Ca(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Xh(t),Wh(this,3))}}function fB(e){Wh(e,3)}function H(e){return lr(e)?e.value:e}function dB(e){return Kt(e)?e():H(e)}const hB={get:(e,t,n)=>H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return lr(o)&&!lr(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Qx(e){return ls(e)?e:new Proxy(e,hB)}class pB{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Yx(this),()=>Wh(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Wk(e){return new pB(e)}function Vk(e){const t=wt(e)?new Array(e.length):{};for(const n in e)t[n]=Uk(e,n);return t}class mB{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QZ(mn(this._object),this._key)}}class vB{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Wd(e,t,n){return lr(e)?e:Kt(e)?new vB(e):Bn(e)&&arguments.length>1?Uk(e,t,n):pe(e)}function Uk(e,t,n){const r=e[t];return lr(r)?r:new mB(e,t,n)}const gB={GET:"get",HAS:"has",ITERATE:"iterate"},AB={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function RB(e,t){}const yB={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"},xB={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. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function tl(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Du(i,t,n)}return o}function Ni(e,t,n,r){if(Kt(e)){const i=tl(e,t,n,r);return i&&Nx(i)&&i.catch(a=>{Du(a,t,n)}),i}const o=[];for(let i=0;i>>1,o=fo[r],i=Uh(o);ies&&fo.splice(t,1)}function vv(e){wt(e)?ad.push(...e):(!Qs||!Qs.includes(e,e.allowRecurse?jc+1:jc))&&ad.push(e),Qk()}function wS(e,t,n=Vh?es+1:0){for(;nUh(n)-Uh(r)),jc=0;jce.id==null?1/0:e.id,wB=(e,t)=>{const n=Uh(e)-Uh(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Zk(e){b4=!1,Vh=!0,fo.sort(wB);try{for(es=0;essr(h)?h.trim():h)),f&&(o=n.map(hv))}let s,c=r[s=ih(t)]||r[s=ih(_o(t))];!c&&i&&(c=r[s=ih(Hi(t))]),c&&Ni(c,e,6,o);const l=r[s+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ni(l,e,6,o)}}function Bk(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!Kt(e)){const c=l=>{const u=Bk(l,t,!0);u&&(s=!0,ar(a,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!s?(Bn(e)&&r.set(e,null),null):(wt(i)?i.forEach(c=>a[c]=null):ar(a,i),Bn(e)&&r.set(e,a),a)}function Lg(e,t){return!e||!hp(t)?!1:(t=t.slice(2).replace(/Once$/,""),On(e,t[0].toLowerCase()+t.slice(1))||On(e,Hi(t))||On(e,t))}let Qr=null,Og=null;function Yh(e){const t=Qr;return Qr=e,Og=e&&e.type.__scopeId||null,t}function on(e){Og=e}function an(){Og=null}const OB=e=>re;function re(e,t=Qr,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&k4(-1);const i=Yh(t);let a;try{a=e(...o)}finally{Yh(i),r._d&&k4(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Im(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:m}=e;let A,x;const R=Yh(e);try{if(n.shapeFlag&4){const g=o||r,S=g;A=Si(u.call(S,g,f,i,h,d,p)),x=c}else{const g=t;A=Si(g.length>1?g(i,{attrs:c,slots:s,emit:l}):g(i,null)),x=t.props?c:kB(c)}}catch(g){lh.length=0,Du(g,e,1),A=w(vo)}let y=A;if(x&&m!==!1){const g=Object.keys(x),{shapeFlag:S}=y;g.length&&S&7&&(a&&g.some(Tx)&&(x=NB(x,a)),y=ps(y,x))}return n.dirs&&(y=ps(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),A=y,Yh(R),A}function TB(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||hp(n))&&((t||(t={}))[n]=e[n]);return t},NB=(e,t)=>{const n={};for(const r in e)(!Tx(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function PB(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?LS(r,a,l):!!a;if(c&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let TS=0;const IB={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,s,c,l){e==null?_B(t,n,r,o,i,a,s,c,l):EB(e,t,n,r,o,a,s,c,l)},hydrate:XB,create:Hx,normalize:WB},FB=IB;function Qh(e,t){const n=e.props&&e.props[t];Kt(n)&&n()}function _B(e,t,n,r,o,i,a,s,c){const{p:l,o:{createElement:u}}=c,f=u("div"),d=e.suspense=Hx(e,o,r,t,f,n,i,a,s,c);l(null,d.pendingBranch=e.ssContent,f,null,r,d,i,a),d.deps>0?(Qh(e,"onPending"),Qh(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,a),sd(d,e.ssFallback)):d.resolve(!1,!0)}function EB(e,t,n,r,o,i,a,s,{p:c,um:l,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:A,isHydrating:x}=f;if(m)f.pendingBranch=d,La(d,m)?(c(m,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():A&&(x||(c(p,h,n,r,o,null,i,a,s),sd(f,h)))):(f.pendingId=TS++,x?(f.isHydrating=!1,f.activeBranch=m):l(m,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),A?(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():(c(p,h,n,r,o,null,i,a,s),sd(f,h))):p&&La(d,p)?(c(p,d,n,r,o,f,i,a,s),f.resolve(!0)):(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0&&f.resolve()));else if(p&&La(d,p))c(p,d,n,r,o,f,i,a,s),sd(f,d);else if(Qh(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=TS++,c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0)f.resolve();else{const{timeout:R,pendingId:y}=f;R>0?setTimeout(()=>{f.pendingId===y&&f.fallback(h)},R):R===0&&f.fallback(h)}}function Hx(e,t,n,r,o,i,a,s,c,l,u=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:m,remove:A}}=l;let x;const R=VB(e);R&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const y=e.props?pv(e.props.timeout):void 0,g={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,L=!1){const{vnode:T,activeBranch:M,pendingBranch:O,pendingId:k,effects:F,parentComponent:N,container:E}=g;let P=!1;if(g.isHydrating)g.isHydrating=!1;else if(!S){P=M&&O.transition&&O.transition.mode==="out-in",P&&(M.transition.afterLeave=()=>{k===g.pendingId&&(d(O,E,p(M),0),vv(F))});let{anchor:W}=g;M&&(W=p(M),h(M,N,g,!0)),P||d(O,E,W,0)}sd(g,O),g.pendingBranch=null,g.isInFallback=!1;let _=g.parent,I=!1;for(;_;){if(_.pendingBranch){_.effects.push(...F),I=!0;break}_=_.parent}!I&&!P&&vv(F),g.effects=[],R&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!L&&t.resolve()),Qh(T,"onResolve")},fallback(S){if(!g.pendingBranch)return;const{vnode:L,activeBranch:T,parentComponent:M,container:O,namespace:k}=g;Qh(L,"onFallback");const F=p(T),N=()=>{g.isInFallback&&(f(null,S,O,F,M,null,k,s,c),sd(g,S))},E=S.transition&&S.transition.mode==="out-in";E&&(T.transition.afterLeave=N),g.isInFallback=!0,h(T,M,null,!0),E||N()},move(S,L,T){g.activeBranch&&d(g.activeBranch,S,L,T),g.container=S},next(){return g.activeBranch&&p(g.activeBranch)},registerDep(S,L){const T=!!g.pendingBranch;T&&g.deps++;const M=S.vnode.el;S.asyncDep.catch(O=>{Du(O,S,0)}).then(O=>{if(S.isUnmounted||g.isUnmounted||g.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:k}=S;P4(S,O,!1),M&&(k.el=M);const F=!M&&S.subTree.el;L(S,k,m(M||S.subTree.el),M?null:p(S.subTree),g,a,c),F&&A(F),Bx(S,k.el),T&&--g.deps===0&&g.resolve()})},unmount(S,L){g.isUnmounted=!0,g.activeBranch&&h(g.activeBranch,n,S,L),g.pendingBranch&&h(g.pendingBranch,n,S,L)}};return g}function XB(e,t,n,r,o,i,a,s,c){const l=t.suspense=Hx(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,i,a);return l.deps===0&&l.resolve(!1,!0),u}function WB(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=kS(r?n.default:n),e.ssFallback=r?kS(n.fallback):w(vo)}function kS(e){let t;if(Kt(e)){const n=Tu&&e._c;n&&(e._d=!1,Y()),e=e(),n&&(e._d=!0,t=$o,w7())}return wt(e)&&(e=TB(e)),e=Si(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Hk(e,t){t&&t.pendingBranch?wt(e)?t.effects.push(...e):t.effects.push(e):vv(e)}function sd(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Bx(r,o))}function VB(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const Gk=Symbol.for("v-scx"),zk=()=>jo(Gk);function Tg(e,t){return gp(e,null,t)}function Jk(e,t){return gp(e,null,{flush:"post"})}function $k(e,t){return gp(e,null,{flush:"sync"})}const H1={};function Tt(e,t,n){return gp(e,t,n)}function gp(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:a,onTrigger:s}=Yn){var c;if(t&&i){const S=t;t=(...L)=>{S(...L),g()}}const l=Fx()===((c=Pr)==null?void 0:c.scope)?Pr:null;let u,f=!1,d=!1;if(lr(e)?(u=()=>e.value,f=nu(e)):ls(e)?(u=nu(e)||r===!1?()=>zs(e,1):()=>zs(e),f=!0):wt(e)?(d=!0,f=e.some(S=>ls(S)||nu(S)),u=()=>e.map(S=>{if(lr(S))return S.value;if(ls(S))return zs(S,nu(S)||r===!1?1:void 0);if(Kt(S))return tl(S,l,2)})):Kt(e)?t?u=()=>tl(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return h&&h(),Ni(e,l,3,[p])}:u=Fo,t&&r){const S=u;u=()=>zs(S())}let h,p=S=>{h=y.onStop=()=>{tl(S,l,4),h=y.onStop=void 0}},m;if(Rp)if(p=Fo,t?n&&Ni(t,l,3,[u(),d?[]:void 0,p]):u(),o==="sync"){const S=zk();m=S.__watcherHandles||(S.__watcherHandles=[])}else return Fo;let A=d?new Array(e.length).fill(H1):H1;const x=()=>{if(!(!y.active||!y.dirty))if(t){const S=y.run();(r||f||(d?S.some((L,T)=>Ca(L,A[T])):Ca(S,A)))&&(h&&h(),Ni(t,l,3,[S,A===H1?void 0:d&&A[0]===H1?[]:A,p]),A=S)}else y.run()};x.allowRecurse=!!t;let R;o==="sync"?R=x:o==="post"?R=()=>jr(x,l&&l.suspense):(x.pre=!0,l&&(x.id=l.uid),R=()=>wg(x));const y=new Ad(u,Fo,R),g=()=>{y.stop(),l&&l.scope&&kx(l.scope.effects,y)};return t?n?x():A=y.run():o==="post"?jr(y.run.bind(y),l&&l.suspense):y.run(),m&&m.push(g),g}function UB(e,t,n){const r=this.proxy,o=sr(e)?e.includes(".")?jk(r,e):()=>r[e]:e.bind(r,r);let i;Kt(t)?i=t:(i=t.handler,n=t);const a=Pr;mc(this);const s=gp(o,i.bind(r),n);return a?mc(a):ac(),s}function jk(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),lr(e))zs(e.value,t,n,r);else if(wt(e))for(let o=0;o{zs(o,t,n,r)});else if(vk(e))for(const o in e)zs(e[o],t,n,r);return e}function De(e,t){const n=Qr;if(n===null)return e;const r=Ig(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),Vd(()=>{e.isUnmounting=!0}),e}const Qi=[Function,Array],zx={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qi,onEnter:Qi,onAfterEnter:Qi,onEnterCancelled:Qi,onBeforeLeave:Qi,onLeave:Qi,onAfterLeave:Qi,onLeaveCancelled:Qi,onBeforeAppear:Qi,onAppear:Qi,onAfterAppear:Qi,onAppearCancelled:Qi},YB={name:"BaseTransition",props:zx,setup(e,{slots:t}){const n=cl(),r=Gx();let o;return()=>{const i=t.default&&kg(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const m of i)if(m.type!==vo){a=m;break}}const s=mn(e),{mode:c}=s;if(r.isLeaving)return YA(a);const l=NS(a);if(!l)return YA(a);const u=Rd(l,s,r,n);Lu(l,u);const f=n.subTree,d=f&&NS(f);let h=!1;const{getTransitionKey:p}=l.type;if(p){const m=p();o===void 0?o=m:m!==o&&(o=m,h=!0)}if(d&&d.type!==vo&&(!La(l,d)||h)){const m=Rd(d,s,r,n);if(Lu(d,m),c==="out-in")return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},YA(a);c==="in-out"&&l.type!==vo&&(m.delayLeave=(A,x,R)=>{const y=e7(r,d);y[String(d.key)]=d,A[Vl]=()=>{x(),A[Vl]=void 0,delete u.delayedLeave},u.delayedLeave=R})}return a}}},qk=YB;function e7(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 Rd(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:m,onAppear:A,onAfterAppear:x,onAppearCancelled:R}=t,y=String(e.key),g=e7(n,e),S=(M,O)=>{M&&Ni(M,r,9,O)},L=(M,O)=>{const k=O[1];S(M,O),wt(M)?M.every(F=>F.length<=1)&&k():M.length<=1&&k()},T={mode:i,persisted:a,beforeEnter(M){let O=s;if(!n.isMounted)if(o)O=m||s;else return;M[Vl]&&M[Vl](!0);const k=g[y];k&&La(e,k)&&k.el[Vl]&&k.el[Vl](),S(O,[M])},enter(M){let O=c,k=l,F=u;if(!n.isMounted)if(o)O=A||c,k=x||l,F=R||u;else return;let N=!1;const E=M[G1]=P=>{N||(N=!0,P?S(F,[M]):S(k,[M]),T.delayedLeave&&T.delayedLeave(),M[G1]=void 0)};O?L(O,[M,E]):E()},leave(M,O){const k=String(e.key);if(M[G1]&&M[G1](!0),n.isUnmounting)return O();S(f,[M]);let F=!1;const N=M[Vl]=E=>{F||(F=!0,O(),E?S(p,[M]):S(h,[M]),M[Vl]=void 0,g[k]===e&&delete g[k])};g[k]=e,d?L(d,[M,N]):N()},clone(M){return Rd(M,t,n,r)}};return T}function YA(e){if(Ap(e))return e=ps(e),e.children=null,e}function NS(e){return Ap(e)?e.children?e.children[0]:void 0:e}function Lu(e,t){e.shapeFlag&6&&e.component?Lu(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 kg(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function QB(e){Kt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:a=!0,onError:s}=e;let c=null,l,u=0;const f=()=>(u++,c=null,d()),d=()=>{let h;return c||(h=c=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((m,A)=>{s(p,()=>m(f()),()=>A(p),u+1)});throw p}).then(p=>h!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return Fe({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const h=Pr;if(l)return()=>QA(l,h);const p=R=>{c=null,Du(R,h,13,!r)};if(a&&h.suspense||Rp)return d().then(R=>()=>QA(R,h)).catch(R=>(p(R),()=>r?w(r,{error:R}):null));const m=pe(!1),A=pe(),x=pe(!!o);return o&&setTimeout(()=>{x.value=!1},o),i!=null&&setTimeout(()=>{if(!m.value&&!A.value){const R=new Error(`Async component timed out after ${i}ms.`);p(R),A.value=R}},i),d().then(()=>{m.value=!0,h.parent&&Ap(h.parent.vnode)&&(h.parent.effect.dirty=!0,wg(h.parent.update))}).catch(R=>{p(R),A.value=R}),()=>{if(m.value&&l)return QA(l,h);if(A.value&&r)return w(r,{error:A.value});if(n&&!x.value)return w(n)}}})}function QA(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,a=w(e,r,o);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const Ap=e=>e.type.__isKeepAlive,ZB={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=cl(),r=n.ctx;if(!r.renderer)return()=>{const R=t.default&&t.default();return R&&R.length===1?R[0]:R};const o=new Map,i=new Set;let a=null;const s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(R,y,g,S,L)=>{const T=R.component;l(R,y,g,0,s),c(T.vnode,R,y,g,T,s,S,R.slotScopeIds,L),jr(()=>{T.isDeactivated=!1,T.a&&id(T.a);const M=R.props&&R.props.onVnodeMounted;M&&Ho(M,T.parent,R)},s)},r.deactivate=R=>{const y=R.component;l(R,d,null,1,s),jr(()=>{y.da&&id(y.da);const g=R.props&&R.props.onVnodeUnmounted;g&&Ho(g,y.parent,R),y.isDeactivated=!0},s)};function h(R){ZA(R),u(R,n,s,!0)}function p(R){o.forEach((y,g)=>{const S=I4(y.type);S&&(!R||!R(S))&&m(g)})}function m(R){const y=o.get(R);!a||!La(y,a)?h(y):a&&ZA(a),o.delete(R),i.delete(R)}Tt(()=>[e.include,e.exclude],([R,y])=>{R&&p(g=>k0(R,g)),y&&p(g=>!k0(y,g))},{flush:"post",deep:!0});let A=null;const x=()=>{A!=null&&o.set(A,BA(n.subTree))};return Gt(x),Pg(x),Vd(()=>{o.forEach(R=>{const{subTree:y,suspense:g}=n,S=BA(y);if(R.type===S.type&&R.key===S.key){ZA(S);const L=S.component.da;L&&jr(L,g);return}h(R)})}),()=>{if(A=null,!t.default)return null;const R=t.default(),y=R[0];if(R.length>1)return a=null,R;if(!pc(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return a=null,y;let g=BA(y);const S=g.type,L=I4(du(g)?g.type.__asyncResolved||{}:S),{include:T,exclude:M,max:O}=e;if(T&&(!L||!k0(T,L))||M&&L&&k0(M,L))return a=g,y;const k=g.key==null?S:g.key,F=o.get(k);return g.el&&(g=ps(g),y.shapeFlag&128&&(y.ssContent=g)),A=k,F?(g.el=F.el,g.component=F.component,g.transition&&Lu(g,g.transition),g.shapeFlag|=512,i.delete(k),i.add(k)):(i.add(k),O&&i.size>parseInt(O,10)&&m(i.values().next().value)),g.shapeFlag|=256,a=g,Kk(y.type)?y:g}}},BB=ZB;function k0(e,t){return wt(e)?e.some(n=>k0(n,t)):sr(e)?e.split(",").includes(t):wZ(e)?e.test(t):!1}function t7(e,t){r7(e,"a",t)}function n7(e,t){r7(e,"da",t)}function r7(e,t,n=Pr){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ng(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ap(o.parent.vnode)&&DB(r,t,n,o),o=o.parent}}function DB(e,t,n,r){const o=Ng(t,e,r,!0);Tn(()=>{kx(r[t],o)},n)}function ZA(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function BA(e){return e.shapeFlag&128?e.ssContent:e}function Ng(e,t,n=Pr,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Zu(),mc(n);const s=Ni(t,n,e,a);return ac(),Bu(),s});return r?o.unshift(i):o.push(i),i}}const ll=e=>(t,n=Pr)=>(!Rp||e==="sp")&&Ng(e,(...r)=>t(...r),n),Jx=ll("bm"),Gt=ll("m"),o7=ll("bu"),Pg=ll("u"),Vd=ll("bum"),Tn=ll("um"),i7=ll("sp"),a7=ll("rtg"),s7=ll("rtc");function l7(e,t=Pr){Ng("ec",e,t)}function it(e,t,n,r){let o;const i=n&&n[r];if(wt(e)||sr(e)){o=new Array(e.length);for(let a=0,s=e.length;at(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);o=new Array(a.length);for(let s=0,c=a.length;s{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function cr(e,t,n={},r,o){if(Qr.isCE||Qr.parent&&du(Qr.parent)&&Qr.parent.isCE)return t!=="default"&&(n.name=t),w("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Y();const a=i&&c7(i(n)),s=we(Ve,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function c7(e){return e.some(t=>pc(t)?!(t.type===vo||t.type===Ve&&!c7(t.children)):!0)?e:null}function HB(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ih(r)]=e[r];return n}const S4=e=>e?P7(e)?Ig(e)||e.proxy:S4(e.parent):null,ah=ar(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=>S4(e.parent),$root:e=>S4(e.root),$emit:e=>e.emit,$options:e=>$x(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,wg(e.update)}),$nextTick:e=>e.n||(e.n=Vr.bind(e.proxy)),$watch:e=>UB.bind(e)}),DA=(e,t)=>e!==Yn&&!e.__isScriptSetup&&On(e,t),M4={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:c}=e;let l;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(DA(r,t))return a[t]=1,r[t];if(o!==Yn&&On(o,t))return a[t]=2,o[t];if((l=e.propsOptions[0])&&On(l,t))return a[t]=3,i[t];if(n!==Yn&&On(n,t))return a[t]=4,n[t];w4&&(a[t]=0)}}const u=ah[t];let f,d;if(u)return t==="$attrs"&&oi(e,"get",t),u(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Yn&&On(n,t))return a[t]=4,n[t];if(d=c.config.globalProperties,On(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return DA(o,t)?(o[t]=n,!0):r!==Yn&&On(r,t)?(r[t]=n,!0):On(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==Yn&&On(e,a)||DA(t,a)||(s=i[0])&&On(s,a)||On(r,a)||On(ah,a)||On(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:On(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},GB=ar({},M4,{get(e,t){if(t!==Symbol.unscopables)return M4.get(e,t,e)},has(e,t){return t[0]!=="_"&&!NZ(t)}});function zB(){return null}function JB(){return null}function $B(e){}function jB(e){}function qB(){return null}function eD(){}function tD(e,t){return null}function nD(){return u7().slots}function rD(){return u7().attrs}function oD(e,t,n=Yn){const r=cl(),o=_o(t),i=Wk((s,c)=>{let l;return $k(()=>{const u=e[t];Ca(l,u)&&(l=u,c())}),{get(){return s(),n.get?n.get(l):l},set(u){const f=r.vnode.props;!(f&&(t in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${o}`in f))&&Ca(u,l)&&(l=u,c()),r.emit(`update:${t}`,n.set?n.set(u):u)}}}),a=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let s=0;return{next(){return s<2?{value:s++?e[a]||{}:i,done:!1}:{done:!0}}}},i}function u7(){const e=cl();return e.setupContext||(e.setupContext=F7(e))}function Zh(e){return wt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function iD(e,t){const n=Zh(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?wt(o)||Kt(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(o=n[r]={default:t[r]}),o&&t[`__skip_${r}`]&&(o.skipFactory=!0)}return n}function aD(e,t){return!e||!t?e||t:wt(e)&&wt(t)?e.concat(t):ar({},Zh(e),Zh(t))}function sD(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function lD(e){const t=cl();let n=e();return ac(),Nx(n)&&(n=n.catch(r=>{throw mc(t),r})),[n,()=>mc(t)]}let w4=!0;function cD(e){const t=$x(e),n=e.proxy,r=e.ctx;w4=!1,t.beforeCreate&&PS(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:c,inject:l,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:m,deactivated:A,beforeDestroy:x,beforeUnmount:R,destroyed:y,unmounted:g,render:S,renderTracked:L,renderTriggered:T,errorCaptured:M,serverPrefetch:O,expose:k,inheritAttrs:F,components:N,directives:E,filters:P}=t;if(l&&uD(l,r,null),a)for(const W in a){const D=a[W];Kt(D)&&(r[W]=D.bind(n))}if(o){const W=o.call(n,n);Bn(W)&&(e.data=mp(W))}if(w4=!0,i)for(const W in i){const D=i[W],z=Kt(D)?D.bind(n,n):Kt(D.get)?D.get.bind(n,n):Fo,ae=!Kt(D)&&Kt(D.set)?D.set.bind(n):Fo,U=Me({get:z,set:ae});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>U.value,set:Z=>U.value=Z})}if(s)for(const W in s)f7(s[W],r,n,W);if(c){const W=Kt(c)?c.call(n):c;Reflect.ownKeys(W).forEach(D=>{Ku(D,W[D])})}u&&PS(u,e,"c");function I(W,D){wt(D)?D.forEach(z=>W(z.bind(n))):D&&W(D.bind(n))}if(I(Jx,f),I(Gt,d),I(o7,h),I(Pg,p),I(t7,m),I(n7,A),I(l7,M),I(s7,L),I(a7,T),I(Vd,R),I(Tn,g),I(i7,O),wt(k))if(k.length){const W=e.exposed||(e.exposed={});k.forEach(D=>{Object.defineProperty(W,D,{get:()=>n[D],set:z=>n[D]=z})})}else e.exposed||(e.exposed={});S&&e.render===Fo&&(e.render=S),F!=null&&(e.inheritAttrs=F),N&&(e.components=N),E&&(e.directives=E)}function uD(e,t,n=Fo){wt(e)&&(e=L4(e));for(const r in e){const o=e[r];let i;Bn(o)?"default"in o?i=jo(o.from||r,o.default,!0):i=jo(o.from||r):i=jo(o),lr(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function PS(e,t,n){Ni(wt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function f7(e,t,n,r){const o=r.includes(".")?jk(n,r):()=>n[r];if(sr(e)){const i=t[e];Kt(i)&&Tt(o,i)}else if(Kt(e))Tt(o,e.bind(n));else if(Bn(e))if(wt(e))e.forEach(i=>f7(i,t,n,r));else{const i=Kt(e.handler)?e.handler.bind(n):t[e.handler];Kt(i)&&Tt(o,i,e)}}function $x(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let c;return s?c=s:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(l=>Av(c,l,a,!0)),Av(c,t,a)),Bn(t)&&i.set(t,c),c}function Av(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Av(e,i,n,!0),o&&o.forEach(a=>Av(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=fD[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const fD={data:CS,props:IS,emits:IS,methods:N0,computed:N0,beforeCreate:Mo,created:Mo,beforeMount:Mo,mounted:Mo,beforeUpdate:Mo,updated:Mo,beforeDestroy:Mo,beforeUnmount:Mo,destroyed:Mo,unmounted:Mo,activated:Mo,deactivated:Mo,errorCaptured:Mo,serverPrefetch:Mo,components:N0,directives:N0,watch:hD,provide:CS,inject:dD};function CS(e,t){return t?e?function(){return ar(Kt(e)?e.call(this,this):e,Kt(t)?t.call(this,this):t)}:t:e}function dD(e,t){return N0(L4(e),L4(t))}function L4(e){if(wt(e)){const t={};for(let n=0;n1)return n&&Kt(t)?t.call(r&&r.proxy):t}}function h7(){return!!(Pr||Qr||Bh)}function vD(e,t,n,r=!1){const o={},i={};dv(i,Cg,1),e.propsDefaults=Object.create(null),p7(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:_k(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function gD(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=mn(o),[c]=e.propsOptions;let l=!1;if((r||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[d,h]=m7(f,t,!0);ar(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return Bn(e)&&r.set(e,rd),rd;if(wt(i))for(let u=0;u-1,h[1]=m<0||p-1||On(h,"default"))&&s.push(f)}}}const l=[a,s];return Bn(e)&&r.set(e,l),l}function FS(e){return e[0]!=="$"}function _S(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ES(e,t){return _S(e)===_S(t)}function XS(e,t){return wt(t)?t.findIndex(n=>ES(n,e)):Kt(t)&&ES(t,e)?0:-1}const v7=e=>e[0]==="_"||e==="$stable",jx=e=>wt(e)?e.map(Si):[Si(e)],AD=(e,t,n)=>{if(t._n)return t;const r=re((...o)=>jx(t(...o)),n);return r._c=!1,r},g7=(e,t,n)=>{const r=e._ctx;for(const o in e){if(v7(o))continue;const i=e[o];if(Kt(i))t[o]=AD(o,i,r);else if(i!=null){const a=jx(i);t[o]=()=>a}}},A7=(e,t)=>{const n=jx(t);e.slots.default=()=>n},RD=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=mn(t),dv(t,"_",n)):g7(t,e.slots={})}else e.slots={},t&&A7(e,t);dv(e.slots,Cg,1)},yD=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Yn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(ar(o,t),!n&&s===1&&delete o._):(i=!t.$stable,g7(t,o)),a=t}else t&&(A7(e,t),a={default:1});if(i)for(const s in o)!v7(s)&&a[s]==null&&delete o[s]};function Rv(e,t,n,r,o=!1){if(wt(e)){e.forEach((d,h)=>Rv(d,t&&(wt(t)?t[h]:t),n,r,o));return}if(du(r)&&!o)return;const i=r.shapeFlag&4?Ig(r.component)||r.component.proxy:r.el,a=o?null:i,{i:s,r:c}=e,l=t&&t.r,u=s.refs===Yn?s.refs={}:s.refs,f=s.setupState;if(l!=null&&l!==c&&(sr(l)?(u[l]=null,On(f,l)&&(f[l]=null)):lr(l)&&(l.value=null)),Kt(c))tl(c,s,12,[a,u]);else{const d=sr(c),h=lr(c);if(d||h){const p=()=>{if(e.f){const m=d?On(f,c)?f[c]:u[c]:c.value;o?wt(m)&&kx(m,i):wt(m)?m.includes(i)||m.push(i):d?(u[c]=[i],On(f,c)&&(f[c]=u[c])):(c.value=[i],e.k&&(u[e.k]=c.value))}else d?(u[c]=a,On(f,c)&&(f[c]=a)):h&&(c.value=a,e.k&&(u[e.k]=a))};a?(p.id=-1,jr(p,n)):p()}}}let Sl=!1;const xD=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",bD=e=>e.namespaceURI.includes("MathML"),z1=e=>{if(xD(e))return"svg";if(bD(e))return"mathml"},J1=e=>e.nodeType===8;function SD(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:a,remove:s,insert:c,createComment:l}}=e,u=(y,g)=>{if(!g.hasChildNodes()){n(null,y,g),gv(),g._vnode=y;return}Sl=!1,f(g.firstChild,y,null,null,null),gv(),g._vnode=y,Sl&&console.error("Hydration completed but contains mismatches.")},f=(y,g,S,L,T,M=!1)=>{const O=J1(y)&&y.data==="[",k=()=>m(y,g,S,L,T,O),{type:F,ref:N,shapeFlag:E,patchFlag:P}=g;let _=y.nodeType;g.el=y,P===-2&&(M=!1,g.dynamicChildren=null);let I=null;switch(F){case Ou:_!==3?g.children===""?(c(g.el=o(""),a(y),y),I=y):I=k():(y.data!==g.children&&(Sl=!0,y.data=g.children),I=i(y));break;case vo:R(y)?(I=i(y),x(g.el=y.content.firstChild,y,S)):_!==8||O?I=k():I=i(y);break;case hu:if(O&&(y=i(y),_=y.nodeType),_===1||_===3){I=y;const W=!g.children.length;for(let D=0;D{M=M||!!g.dynamicChildren;const{type:O,props:k,patchFlag:F,shapeFlag:N,dirs:E,transition:P}=g,_=O==="input"||O==="option";if(_||F!==-1){E&&Ja(g,null,S,"created");let I=!1;if(R(y)){I=b7(L,P)&&S&&S.vnode.props&&S.vnode.props.appear;const D=y.content.firstChild;I&&P.beforeEnter(D),x(D,y,S),g.el=y=D}if(N&16&&!(k&&(k.innerHTML||k.textContent))){let D=h(y.firstChild,g,y,S,L,T,M);for(;D;){Sl=!0;const z=D;D=D.nextSibling,s(z)}}else N&8&&y.textContent!==g.children&&(Sl=!0,y.textContent=g.children);if(k)if(_||!M||F&48)for(const D in k)(_&&(D.endsWith("value")||D==="indeterminate")||hp(D)&&!oh(D)||D[0]===".")&&r(y,D,null,k[D],void 0,void 0,S);else k.onClick&&r(y,"onClick",null,k.onClick,void 0,void 0,S);let W;(W=k&&k.onVnodeBeforeMount)&&Ho(W,S,g),E&&Ja(g,null,S,"beforeMount"),((W=k&&k.onVnodeMounted)||E||I)&&Hk(()=>{W&&Ho(W,S,g),I&&P.enter(y),E&&Ja(g,null,S,"mounted")},L)}return y.nextSibling},h=(y,g,S,L,T,M,O)=>{O=O||!!g.dynamicChildren;const k=g.children,F=k.length;for(let N=0;N{const{slotScopeIds:O}=g;O&&(T=T?T.concat(O):O);const k=a(y),F=h(i(y),g,k,S,L,T,M);return F&&J1(F)&&F.data==="]"?i(g.anchor=F):(Sl=!0,c(g.anchor=l("]"),k,F),F)},m=(y,g,S,L,T,M)=>{if(Sl=!0,g.el=null,M){const F=A(y);for(;;){const N=i(y);if(N&&N!==F)s(N);else break}}const O=i(y),k=a(y);return s(y),n(null,g,k,O,S,L,z1(k),T),O},A=(y,g="[",S="]")=>{let L=0;for(;y;)if(y=i(y),y&&J1(y)&&(y.data===g&&L++,y.data===S)){if(L===0)return i(y);L--}return y},x=(y,g,S)=>{const L=g.parentNode;L&&L.replaceChild(y,g);let T=S;for(;T;)T.vnode.el===g&&(T.vnode.el=T.subTree.el=y),T=T.parent},R=y=>y.nodeType===1&&y.tagName.toLowerCase()==="template";return[u,f]}const jr=Hk;function R7(e){return x7(e)}function y7(e){return x7(e,SD)}function x7(e,t){const n=gk();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:c,setText:l,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=Fo,insertStaticContent:p}=e,m=(J,ue,X,te=null,le=null,$=null,j=void 0,se=null,ge=!!ue.dynamicChildren)=>{if(J===ue)return;J&&!La(J,ue)&&(te=q(J),Z(J,le,$,!0),J=null),ue.patchFlag===-2&&(ge=!1,ue.dynamicChildren=null);const{type:ce,ref:Ae,shapeFlag:ye}=ue;switch(ce){case Ou:A(J,ue,X,te);break;case vo:x(J,ue,X,te);break;case hu:J==null&&R(ue,X,te,j);break;case Ve:N(J,ue,X,te,le,$,j,se,ge);break;default:ye&1?S(J,ue,X,te,le,$,j,se,ge):ye&6?E(J,ue,X,te,le,$,j,se,ge):(ye&64||ye&128)&&ce.process(J,ue,X,te,le,$,j,se,ge,he)}Ae!=null&&le&&Rv(Ae,J&&J.ref,$,ue||J,!ue)},A=(J,ue,X,te)=>{if(J==null)r(ue.el=s(ue.children),X,te);else{const le=ue.el=J.el;ue.children!==J.children&&l(le,ue.children)}},x=(J,ue,X,te)=>{J==null?r(ue.el=c(ue.children||""),X,te):ue.el=J.el},R=(J,ue,X,te)=>{[J.el,J.anchor]=p(J.children,ue,X,te,J.el,J.anchor)},y=({el:J,anchor:ue},X,te)=>{let le;for(;J&&J!==ue;)le=d(J),r(J,X,te),J=le;r(ue,X,te)},g=({el:J,anchor:ue})=>{let X;for(;J&&J!==ue;)X=d(J),o(J),J=X;o(ue)},S=(J,ue,X,te,le,$,j,se,ge)=>{ue.type==="svg"?j="svg":ue.type==="math"&&(j="mathml"),J==null?L(ue,X,te,le,$,j,se,ge):O(J,ue,le,$,j,se,ge)},L=(J,ue,X,te,le,$,j,se)=>{let ge,ce;const{props:Ae,shapeFlag:ye,transition:Ee,dirs:Se}=J;if(ge=J.el=a(J.type,$,Ae&&Ae.is,Ae),ye&8?u(ge,J.children):ye&16&&M(J.children,ge,null,te,le,KA(J,$),j,se),Se&&Ja(J,null,te,"created"),T(ge,J,J.scopeId,j,te),Ae){for(const qe in Ae)qe!=="value"&&!oh(qe)&&i(ge,qe,null,Ae[qe],$,J.children,te,le,ie);"value"in Ae&&i(ge,"value",null,Ae.value,$),(ce=Ae.onVnodeBeforeMount)&&Ho(ce,te,J)}Se&&Ja(J,null,te,"beforeMount");const be=b7(le,Ee);be&&Ee.beforeEnter(ge),r(ge,ue,X),((ce=Ae&&Ae.onVnodeMounted)||be||Se)&&jr(()=>{ce&&Ho(ce,te,J),be&&Ee.enter(ge),Se&&Ja(J,null,te,"mounted")},le)},T=(J,ue,X,te,le)=>{if(X&&h(J,X),te)for(let $=0;${for(let ce=ge;ce{const se=ue.el=J.el;let{patchFlag:ge,dynamicChildren:ce,dirs:Ae}=ue;ge|=J.patchFlag&16;const ye=J.props||Yn,Ee=ue.props||Yn;let Se;if(X&&Uc(X,!1),(Se=Ee.onVnodeBeforeUpdate)&&Ho(Se,X,ue,J),Ae&&Ja(ue,J,X,"beforeUpdate"),X&&Uc(X,!0),ce?k(J.dynamicChildren,ce,se,X,te,KA(ue,le),$):j||D(J,ue,se,null,X,te,KA(ue,le),$,!1),ge>0){if(ge&16)F(se,ue,ye,Ee,X,te,le);else if(ge&2&&ye.class!==Ee.class&&i(se,"class",null,Ee.class,le),ge&4&&i(se,"style",ye.style,Ee.style,le),ge&8){const be=ue.dynamicProps;for(let qe=0;qe{Se&&Ho(Se,X,ue,J),Ae&&Ja(ue,J,X,"updated")},te)},k=(J,ue,X,te,le,$,j)=>{for(let se=0;se{if(X!==te){if(X!==Yn)for(const se in X)!oh(se)&&!(se in te)&&i(J,se,X[se],null,j,ue.children,le,$,ie);for(const se in te){if(oh(se))continue;const ge=te[se],ce=X[se];ge!==ce&&se!=="value"&&i(J,se,ce,ge,j,ue.children,le,$,ie)}"value"in te&&i(J,"value",X.value,te.value,j)}},N=(J,ue,X,te,le,$,j,se,ge)=>{const ce=ue.el=J?J.el:s(""),Ae=ue.anchor=J?J.anchor:s("");let{patchFlag:ye,dynamicChildren:Ee,slotScopeIds:Se}=ue;Se&&(se=se?se.concat(Se):Se),J==null?(r(ce,X,te),r(Ae,X,te),M(ue.children,X,Ae,le,$,j,se,ge)):ye>0&&ye&64&&Ee&&J.dynamicChildren?(k(J.dynamicChildren,Ee,X,le,$,j,se),(ue.key!=null||le&&ue===le.subTree)&&qx(J,ue,!0)):D(J,ue,X,Ae,le,$,j,se,ge)},E=(J,ue,X,te,le,$,j,se,ge)=>{ue.slotScopeIds=se,J==null?ue.shapeFlag&512?le.ctx.activate(ue,X,te,j,ge):P(ue,X,te,le,$,j,ge):_(J,ue,ge)},P=(J,ue,X,te,le,$,j)=>{const se=J.component=N7(J,te,le);if(Ap(J)&&(se.ctx.renderer=he),C7(se),se.asyncDep){if(le&&le.registerDep(se,I),!J.el){const ge=se.subTree=w(vo);x(null,ge,ue,X)}}else I(se,J,ue,X,le,$,j)},_=(J,ue,X)=>{const te=ue.component=J.component;if(PB(J,ue,X))if(te.asyncDep&&!te.asyncResolved){W(te,ue,X);return}else te.next=ue,MB(te.update),te.effect.dirty=!0,te.update();else ue.el=J.el,te.vnode=ue},I=(J,ue,X,te,le,$,j)=>{const se=()=>{if(J.isMounted){let{next:Ae,bu:ye,u:Ee,parent:Se,vnode:be}=J;{const _e=S7(J);if(_e){Ae&&(Ae.el=be.el,W(J,Ae,j)),_e.asyncDep.then(()=>{J.isUnmounted||se()});return}}let qe=Ae,Ce;Uc(J,!1),Ae?(Ae.el=be.el,W(J,Ae,j)):Ae=be,ye&&id(ye),(Ce=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&Ho(Ce,Se,Ae,be),Uc(J,!0);const Te=Im(J),Ne=J.subTree;J.subTree=Te,m(Ne,Te,f(Ne.el),q(Ne),J,le,$),Ae.el=Te.el,qe===null&&Bx(J,Te.el),Ee&&jr(Ee,le),(Ce=Ae.props&&Ae.props.onVnodeUpdated)&&jr(()=>Ho(Ce,Se,Ae,be),le)}else{let Ae;const{el:ye,props:Ee}=ue,{bm:Se,m:be,parent:qe}=J,Ce=du(ue);if(Uc(J,!1),Se&&id(Se),!Ce&&(Ae=Ee&&Ee.onVnodeBeforeMount)&&Ho(Ae,qe,ue),Uc(J,!0),ye&&ve){const Te=()=>{J.subTree=Im(J),ve(ye,J.subTree,J,le,null)};Ce?ue.type.__asyncLoader().then(()=>!J.isUnmounted&&Te()):Te()}else{const Te=J.subTree=Im(J);m(null,Te,X,te,J,le,$),ue.el=Te.el}if(be&&jr(be,le),!Ce&&(Ae=Ee&&Ee.onVnodeMounted)){const Te=ue;jr(()=>Ho(Ae,qe,Te),le)}(ue.shapeFlag&256||qe&&du(qe.vnode)&&qe.vnode.shapeFlag&256)&&J.a&&jr(J.a,le),J.isMounted=!0,ue=X=te=null}},ge=J.effect=new Ad(se,Fo,()=>wg(ce),J.scope),ce=J.update=()=>{ge.dirty&&ge.run()};ce.id=J.uid,Uc(J,!0),ce()},W=(J,ue,X)=>{ue.component=J;const te=J.vnode.props;J.vnode=ue,J.next=null,gD(J,ue.props,te,X),yD(J,ue.children,X),Zu(),wS(J),Bu()},D=(J,ue,X,te,le,$,j,se,ge=!1)=>{const ce=J&&J.children,Ae=J?J.shapeFlag:0,ye=ue.children,{patchFlag:Ee,shapeFlag:Se}=ue;if(Ee>0){if(Ee&128){ae(ce,ye,X,te,le,$,j,se,ge);return}else if(Ee&256){z(ce,ye,X,te,le,$,j,se,ge);return}}Se&8?(Ae&16&&ie(ce,le,$),ye!==ce&&u(X,ye)):Ae&16?Se&16?ae(ce,ye,X,te,le,$,j,se,ge):ie(ce,le,$,!0):(Ae&8&&u(X,""),Se&16&&M(ye,X,te,le,$,j,se,ge))},z=(J,ue,X,te,le,$,j,se,ge)=>{J=J||rd,ue=ue||rd;const ce=J.length,Ae=ue.length,ye=Math.min(ce,Ae);let Ee;for(Ee=0;EeAe?ie(J,le,$,!0,!1,ye):M(ue,X,te,le,$,j,se,ge,ye)},ae=(J,ue,X,te,le,$,j,se,ge)=>{let ce=0;const Ae=ue.length;let ye=J.length-1,Ee=Ae-1;for(;ce<=ye&&ce<=Ee;){const Se=J[ce],be=ue[ce]=ge?Ul(ue[ce]):Si(ue[ce]);if(La(Se,be))m(Se,be,X,null,le,$,j,se,ge);else break;ce++}for(;ce<=ye&&ce<=Ee;){const Se=J[ye],be=ue[Ee]=ge?Ul(ue[Ee]):Si(ue[Ee]);if(La(Se,be))m(Se,be,X,null,le,$,j,se,ge);else break;ye--,Ee--}if(ce>ye){if(ce<=Ee){const Se=Ee+1,be=SeEe)for(;ce<=ye;)Z(J[ce],le,$,!0),ce++;else{const Se=ce,be=ce,qe=new Map;for(ce=be;ce<=Ee;ce++){const Ze=ue[ce]=ge?Ul(ue[ce]):Si(ue[ce]);Ze.key!=null&&qe.set(Ze.key,ce)}let Ce,Te=0;const Ne=Ee-be+1;let _e=!1,Ke=0;const tt=new Array(Ne);for(ce=0;ce=Ne){Z(Ze,le,$,!0);continue}let nt;if(Ze.key!=null)nt=qe.get(Ze.key);else for(Ce=be;Ce<=Ee;Ce++)if(tt[Ce-be]===0&&La(Ze,ue[Ce])){nt=Ce;break}nt===void 0?Z(Ze,le,$,!0):(tt[nt-be]=ce+1,nt>=Ke?Ke=nt:_e=!0,m(Ze,ue[nt],X,null,le,$,j,se,ge),Te++)}const ke=_e?MD(tt):rd;for(Ce=ke.length-1,ce=Ne-1;ce>=0;ce--){const Ze=be+ce,nt=ue[Ze],xt=Ze+1{const{el:$,type:j,transition:se,children:ge,shapeFlag:ce}=J;if(ce&6){U(J.component.subTree,ue,X,te);return}if(ce&128){J.suspense.move(ue,X,te);return}if(ce&64){j.move(J,ue,X,he);return}if(j===Ve){r($,ue,X);for(let ye=0;yese.enter($),le);else{const{leave:ye,delayLeave:Ee,afterLeave:Se}=se,be=()=>r($,ue,X),qe=()=>{ye($,()=>{be(),Se&&Se()})};Ee?Ee($,be,qe):qe()}else r($,ue,X)},Z=(J,ue,X,te=!1,le=!1)=>{const{type:$,props:j,ref:se,children:ge,dynamicChildren:ce,shapeFlag:Ae,patchFlag:ye,dirs:Ee}=J;if(se!=null&&Rv(se,null,X,J,!0),Ae&256){ue.ctx.deactivate(J);return}const Se=Ae&1&&Ee,be=!du(J);let qe;if(be&&(qe=j&&j.onVnodeBeforeUnmount)&&Ho(qe,ue,J),Ae&6)Q(J.component,X,te);else{if(Ae&128){J.suspense.unmount(X,te);return}Se&&Ja(J,null,ue,"beforeUnmount"),Ae&64?J.type.remove(J,ue,X,le,he,te):ce&&($!==Ve||ye>0&&ye&64)?ie(ce,ue,X,!1,!0):($===Ve&&ye&384||!le&&Ae&16)&&ie(ge,ue,X),te&&B(J)}(be&&(qe=j&&j.onVnodeUnmounted)||Se)&&jr(()=>{qe&&Ho(qe,ue,J),Se&&Ja(J,null,ue,"unmounted")},X)},B=J=>{const{type:ue,el:X,anchor:te,transition:le}=J;if(ue===Ve){G(X,te);return}if(ue===hu){g(J);return}const $=()=>{o(X),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(J.shapeFlag&1&&le&&!le.persisted){const{leave:j,delayLeave:se}=le,ge=()=>j(X,$);se?se(J.el,$,ge):ge()}else $()},G=(J,ue)=>{let X;for(;J!==ue;)X=d(J),o(J),J=X;o(ue)},Q=(J,ue,X)=>{const{bum:te,scope:le,update:$,subTree:j,um:se}=J;te&&id(te),le.stop(),$&&($.active=!1,Z(j,J,ue,X)),se&&jr(se,ue),jr(()=>{J.isUnmounted=!0},ue),ue&&ue.pendingBranch&&!ue.isUnmounted&&J.asyncDep&&!J.asyncResolved&&J.suspenseId===ue.pendingId&&(ue.deps--,ue.deps===0&&ue.resolve())},ie=(J,ue,X,te=!1,le=!1,$=0)=>{for(let j=$;jJ.shapeFlag&6?q(J.component.subTree):J.shapeFlag&128?J.suspense.next():d(J.anchor||J.el),oe=(J,ue,X)=>{J==null?ue._vnode&&Z(ue._vnode,null,null,!0):m(ue._vnode||null,J,ue,null,null,null,X),wS(),gv(),ue._vnode=J},he={p:m,um:Z,m:U,r:B,mt:P,mc:M,pc:D,pbc:k,n:q,o:e};let me,ve;return t&&([me,ve]=t(he)),{render:oe,hydrate:me,createApp:mD(oe,me)}}function KA({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 Uc({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function b7(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function qx(e,t,n=!1){const r=e.children,o=t.children;if(wt(r)&&wt(o))for(let i=0;i>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function S7(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:S7(t)}const wD=e=>e.__isTeleport,sh=e=>e&&(e.disabled||e.disabled===""),WS=e=>typeof SVGElement<"u"&&e instanceof SVGElement,VS=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,T4=(e,t)=>{const n=e&&e.to;return sr(n)?t?t(n):null:n},LD={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,c,l){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:m,createComment:A}}=l,x=sh(t.props);let{shapeFlag:R,children:y,dynamicChildren:g}=t;if(e==null){const S=t.el=m(""),L=t.anchor=m("");h(S,n,r),h(L,n,r);const T=t.target=T4(t.props,p),M=t.targetAnchor=m("");T&&(h(M,T),a==="svg"||WS(T)?a="svg":(a==="mathml"||VS(T))&&(a="mathml"));const O=(k,F)=>{R&16&&u(y,k,F,o,i,a,s,c)};x?O(n,L):T&&O(T,M)}else{t.el=e.el;const S=t.anchor=e.anchor,L=t.target=e.target,T=t.targetAnchor=e.targetAnchor,M=sh(e.props),O=M?n:L,k=M?S:T;if(a==="svg"||WS(L)?a="svg":(a==="mathml"||VS(L))&&(a="mathml"),g?(d(e.dynamicChildren,g,O,o,i,a,s),qx(e,t,!0)):c||f(e,t,O,k,o,i,a,s,!1),x)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$1(t,n,S,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=T4(t.props,p);F&&$1(t,F,null,l,0)}else M&&$1(t,L,T,l,1)}M7(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:c,anchor:l,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),a&&i(l),s&16){const h=a||!sh(d);for(let p=0;p0?$o||rd:null,w7(),Tu>0&&$o&&$o.push(e),e}function ee(e,t,n,r,o,i){return L7(V(e,t,n,r,o,i,!0))}function we(e,t,n,r,o){return L7(w(e,t,n,r,o,!0))}function pc(e){return e?e.__v_isVNode===!0:!1}function La(e,t){return e.type===t.type&&e.key===t.key}function TD(e){}const Cg="__vInternal",O7=({key:e})=>e??null,Fm=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?sr(e)||lr(e)||Kt(e)?{i:Qr,r:e,k:t,f:!!n}:e:null);function V(e,t=null,n=null,r=0,o=null,i=e===Ve?0:1,a=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&O7(t),ref:t&&Fm(t),scopeId:Og,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Qr};return s?(tb(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=sr(n)?8:16),Tu>0&&!a&&$o&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&$o.push(c),c}const w=kD;function kD(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Dk)&&(e=vo),pc(e)){const s=ps(e,t,!0);return n&&tb(s,n),Tu>0&&!i&&$o&&(s.shapeFlag&6?$o[$o.indexOf(e)]=s:$o.push(s)),s.patchFlag|=-2,s}if(XD(e)&&(e=e.__vccOpts),t){t=T7(t);let{class:s,style:c}=t;s&&!sr(s)&&(t.class=$e(s)),Bn(c)&&(Vx(c)&&!wt(c)&&(c=ar({},c)),t.style=Le(c))}const a=sr(e)?1:Kk(e)?128:wD(e)?64:Bn(e)?4:Kt(e)?2:0;return V(e,t,n,r,o,a,i,!0)}function T7(e){return e?Vx(e)||Cg in e?ar({},e):e:null}function ps(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,s=t?k7(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&O7(s),ref:t&&t.ref?n&&o?wt(o)?o.concat(Fm(t)):[o,Fm(t)]:Fm(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ps(e.ssContent),ssFallback:e.ssFallback&&ps(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function We(e=" ",t=0){return w(Ou,null,e,t)}function ND(e,t){const n=w(hu,null,e);return n.staticCount=t,n}function Be(e="",t=!1){return t?(Y(),we(vo,null,e)):w(vo,null,e)}function Si(e){return e==null||typeof e=="boolean"?w(vo):wt(e)?w(Ve,null,e.slice()):typeof e=="object"?Ul(e):w(Ou,null,String(e))}function Ul(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ps(e)}function tb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(wt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),tb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Cg in t)?t._ctx=Qr:o===3&&Qr&&(Qr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Kt(t)?(t={default:t,_ctx:Qr},n=32):(t=String(t),r&64?(n=16,t=[We(t)]):n=8);e.children=t,e.shapeFlag|=n}function k7(...e){const t={};for(let n=0;nPr||Qr;let nb,N4;{const e=gk(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};nb=t("__VUE_INSTANCE_SETTERS__",n=>Pr=n),N4=t("__VUE_SSR_SETTERS__",n=>Rp=n)}const mc=e=>{nb(e),e.scope.on()},ac=()=>{Pr&&Pr.scope.off(),nb(null)};function P7(e){return e.vnode.shapeFlag&4}let Rp=!1;function C7(e,t=!1){t&&N4(t);const{props:n,children:r}=e.vnode,o=P7(e);vD(e,n,o,t),RD(e,r);const i=o?ID(e,t):void 0;return t&&N4(!1),i}function ID(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=vp(new Proxy(e.ctx,M4));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?F7(e):null;mc(e),Zu();const i=tl(r,e,0,[e.props,o]);if(Bu(),ac(),Nx(i)){if(i.then(ac,ac),t)return i.then(a=>{P4(e,a,t)}).catch(a=>{Du(a,e,0)});e.asyncDep=i}else P4(e,i,t)}else I7(e,t)}function P4(e,t,n){Kt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Bn(t)&&(e.setupState=Qx(t)),I7(e,n)}let yv,C4;function FD(e){yv=e,C4=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,GB))}}const _D=()=>!yv;function I7(e,t,n){const r=e.type;if(!e.render){if(!t&&yv&&!r.render){const o=r.template||$x(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:c}=r,l=ar(ar({isCustomElement:i,delimiters:s},a),c);r.render=yv(o,l)}}e.render=r.render||Fo,C4&&C4(e)}{mc(e),Zu();try{cD(e)}finally{Bu(),ac()}}}function ED(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return oi(e,"get","$attrs"),t[n]}}))}function F7(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ED(e)},slots:e.slots,emit:e.emit,expose:t}}function Ig(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qx(vp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ah)return ah[n](e)},has(t,n){return n in t||n in ah}}))}function I4(e,t=!0){return Kt(e)?e.displayName||e.name:e.name||t&&e.__name}function XD(e){return Kt(e)&&"__vccOpts"in e}const Me=(e,t)=>lB(e,t,Rp);function _7(e,t,n){const r=arguments.length;return r===2?Bn(t)&&!wt(t)?pc(t)?w(e,null,[t]):w(e,t):w(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pc(n)&&(n=[n]),w(e,t,n))}function WD(){}function VD(e,t,n,r){const o=n[r];if(o&&E7(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function E7(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&$o&&$o.push(e),!0}const X7="3.4.3",UD=Fo,YD=xB,QD=void 0,ZD=Fo,BD={createComponentInstance:N7,setupComponent:C7,renderComponentRoot:Im,setCurrentRenderingInstance:Yh,isVNode:pc,normalizeVNode:Si},DD=BD,KD=null,HD=null,GD=null,zD="http://www.w3.org/2000/svg",JD="http://www.w3.org/1998/Math/MathML",Yl=typeof document<"u"?document:null,US=Yl&&Yl.createElement("template"),$D={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Yl.createElementNS(zD,e):t==="mathml"?Yl.createElementNS(JD,e):Yl.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Yl.createTextNode(e),createComment:e=>Yl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{US.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const s=US.content;if(r==="svg"||r==="mathml"){const c=s.firstChild;for(;c.firstChild;)s.appendChild(c.firstChild);s.removeChild(c)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ml="transition",d0="animation",yd=Symbol("_vtc"),ku=(e,{slots:t})=>_7(qk,V7(e),t);ku.displayName="Transition";const W7={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jD=ku.props=ar({},zx,W7),Yc=(e,t=[])=>{wt(e)?e.forEach(n=>n(...t)):e&&e(...t)},YS=e=>e?wt(e)?e.some(t=>t.length>1):e.length>1:!1;function V7(e){const t={};for(const N in e)N in W7||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=a,appearToClass:u=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=qD(o),m=p&&p[0],A=p&&p[1],{onBeforeEnter:x,onEnter:R,onEnterCancelled:y,onLeave:g,onLeaveCancelled:S,onBeforeAppear:L=x,onAppear:T=R,onAppearCancelled:M=y}=t,O=(N,E,P)=>{Nl(N,E?u:s),Nl(N,E?l:a),P&&P()},k=(N,E)=>{N._isLeaving=!1,Nl(N,f),Nl(N,h),Nl(N,d),E&&E()},F=N=>(E,P)=>{const _=N?T:R,I=()=>O(E,N,P);Yc(_,[E,I]),QS(()=>{Nl(E,N?c:i),Us(E,N?u:s),YS(_)||ZS(E,r,m,I)})};return ar(t,{onBeforeEnter(N){Yc(x,[N]),Us(N,i),Us(N,a)},onBeforeAppear(N){Yc(L,[N]),Us(N,c),Us(N,l)},onEnter:F(!1),onAppear:F(!0),onLeave(N,E){N._isLeaving=!0;const P=()=>k(N,E);Us(N,f),Y7(),Us(N,d),QS(()=>{N._isLeaving&&(Nl(N,f),Us(N,h),YS(g)||ZS(N,r,A,P))}),Yc(g,[N,P])},onEnterCancelled(N){O(N,!1),Yc(y,[N])},onAppearCancelled(N){O(N,!0),Yc(M,[N])},onLeaveCancelled(N){k(N),Yc(S,[N])}})}function qD(e){if(e==null)return null;if(Bn(e))return[HA(e.enter),HA(e.leave)];{const t=HA(e);return[t,t]}}function HA(e){return pv(e)}function Us(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[yd]||(e[yd]=new Set)).add(t)}function Nl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[yd];n&&(n.delete(t),n.size||(e[yd]=void 0))}function QS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let eK=0;function ZS(e,t,n,r){const o=e._endId=++eK,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:c}=U7(e,t);if(!a)return r();const l=a+"end";let u=0;const f=()=>{e.removeEventListener(l,d),i()},d=h=>{h.target===e&&++u>=c&&f()};setTimeout(()=>{u(n[p]||"").split(", "),o=r(`${Ml}Delay`),i=r(`${Ml}Duration`),a=BS(o,i),s=r(`${d0}Delay`),c=r(`${d0}Duration`),l=BS(s,c);let u=null,f=0,d=0;t===Ml?a>0&&(u=Ml,f=a,d=i.length):t===d0?l>0&&(u=d0,f=l,d=c.length):(f=Math.max(a,l),u=f>0?a>l?Ml:d0:null,d=u?u===Ml?i.length:c.length:0);const h=u===Ml&&/\b(transform|all)(,|$)/.test(r(`${Ml}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function BS(e,t){for(;e.lengthDS(n)+DS(e[r])))}function DS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Y7(){return document.body.offsetHeight}function tK(e,t,n){const r=e[yd];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const rb=Symbol("_vod"),il={beforeMount(e,{value:t},{transition:n}){e[rb]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):h0(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),h0(e,!0),r.enter(e)):r.leave(e,()=>{h0(e,!1)}):h0(e,t))},beforeUnmount(e,{value:t}){h0(e,t)}};function h0(e,t){e.style.display=t?e[rb]:"none"}function nK(){il.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Q7=Symbol("");function rK(e){const t=cl();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>_4(i,o))},r=()=>{const o=e(t.proxy);F4(t.subTree,o),n(o)};Jk(r),Gt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Tn(()=>o.disconnect())})}function F4(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{F4(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)_4(e.el,t);else if(e.type===Ve)e.children.forEach(n=>F4(n,t));else if(e.type===hu){let{el:n,anchor:r}=e;for(;n&&(_4(n,t),n!==r);)n=n.nextSibling}}function _4(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[Q7]=r}}function oK(e,t,n){const r=e.style,o=sr(n);if(n&&!o){if(t&&!sr(t))for(const i in t)n[i]==null&&E4(r,i,"");for(const i in n)E4(r,i,n[i])}else{const i=r.display;if(o){if(t!==n){const a=r[Q7];a&&(n+=";"+a),r.cssText=n}}else t&&e.removeAttribute("style");rb in e&&(r.display=i)}}const KS=/\s*!important$/;function E4(e,t,n){if(wt(n))n.forEach(r=>E4(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=iK(e,t);KS.test(n)?e.setProperty(Hi(r),n.replace(KS,""),"important"):e[r]=n}}const HS=["Webkit","Moz","ms"],GA={};function iK(e,t){const n=GA[t];if(n)return n;let r=_o(t);if(r!=="filter"&&r in e)return GA[t]=r;r=pp(r);for(let o=0;ozA||(fK.then(()=>zA=0),zA=Date.now());function hK(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ni(pK(r,n.value),t,5,[r])};return n.value=e,n.attached=dK(),n}function pK(e,t){if(wt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const $S=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mK=(e,t,n,r,o,i,a,s,c)=>{const l=o==="svg";t==="class"?tK(e,r,l):t==="style"?oK(e,n,r):hp(t)?Tx(t)||cK(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vK(e,t,r,l))?sK(e,t,r,i,a,s,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),aK(e,t,r,l))};function vK(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&$S(t)&&Kt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return $S(t)&&sr(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Z7(e,t){const n=Fe(e);class r extends Fg{constructor(i){super(n,i,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const gK=e=>Z7(e,eN),AK=typeof HTMLElement<"u"?HTMLElement:class{};class Fg extends AK{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Vr(()=>{this._connected||(bd(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const o of r)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:i,styles:a}=r;let s;if(i&&!wt(i))for(const c in i){const l=i[c];(l===Number||l&&l.type===Number)&&(c in this._props&&(this._props[c]=pv(this._props[c])),(s||(s=Object.create(null)))[_o(c)]=!0)}this._numberProps=s,o&&this._resolveProps(r),this._applyStyles(a),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=wt(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(_o))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=_o(t);this._numberProps&&this._numberProps[r]&&(n=pv(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Hi(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Hi(t),n+""):n||this.removeAttribute(Hi(t))))}_update(){bd(this._createVNode(),this.shadowRoot)}_createVNode(){const t=w(this._def,ar({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,a)=>{this.dispatchEvent(new CustomEvent(i,{detail:a}))};n.emit=(i,...a)=>{r(i,a),Hi(i)!==i&&r(Hi(i),a)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof Fg){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function RK(e="$style"){{const t=cl();if(!t)return Yn;const n=t.type.__cssModules;if(!n)return Yn;const r=n[e];return r||Yn}}const B7=new WeakMap,D7=new WeakMap,xv=Symbol("_moveCb"),jS=Symbol("_enterCb"),K7={name:"TransitionGroup",props:ar({},jD,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=cl(),r=Gx();let o,i;return Pg(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!wK(o[0].el,n.vnode.el,a))return;o.forEach(bK),o.forEach(SK);const s=o.filter(MK);Y7(),s.forEach(c=>{const l=c.el,u=l.style;Us(l,a),u.transform=u.webkitTransform=u.transitionDuration="";const f=l[xv]=d=>{d&&d.target!==l||(!d||/transform$/.test(d.propertyName))&&(l.removeEventListener("transitionend",f),l[xv]=null,Nl(l,a))};l.addEventListener("transitionend",f)})}),()=>{const a=mn(e),s=V7(a);let c=a.tag||Ve;o=i,i=t.default?kg(t.default()):[];for(let l=0;ldelete e.mode;K7.props;const xK=K7;function bK(e){const t=e.el;t[xv]&&t[xv](),t[jS]&&t[jS]()}function SK(e){D7.set(e,e.el.getBoundingClientRect())}function MK(e){const t=B7.get(e),n=D7.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function wK(e,t,n){const r=e.cloneNode(),o=e[yd];o&&o.forEach(s=>{s.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=U7(r);return i.removeChild(r),a}const vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return wt(t)?n=>id(t,n):t};function LK(e){e.target.composing=!0}function qS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ji=Symbol("_assign"),Dh={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ji]=vc(o);const i=r||o.props&&o.props.type==="number";Ks(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=hv(s)),e[Ji](s)}),n&&Ks(e,"change",()=>{e.value=e.value.trim()}),t||(Ks(e,"compositionstart",LK),Ks(e,"compositionend",qS),Ks(e,"change",qS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e[Ji]=vc(i),e.composing)return;const a=o||e.type==="number"?hv(e.value):e.value,s=t??"";a!==s&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===s)||(e.value=s))}},ob={deep:!0,created(e,t,n){e[Ji]=vc(n),Ks(e,"change",()=>{const r=e._modelValue,o=xd(e),i=e.checked,a=e[Ji];if(wt(r)){const s=xg(r,o),c=s!==-1;if(i&&!c)a(r.concat(o));else if(!i&&c){const l=[...r];l.splice(s,1),a(l)}}else if(Qu(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(G7(e,i))})},mounted:eM,beforeUpdate(e,t,n){e[Ji]=vc(n),eM(e,t,n)}};function eM(e,{value:t,oldValue:n},r){e._modelValue=t,wt(t)?e.checked=xg(t,r.props.value)>-1:Qu(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=hc(t,G7(e,!0)))}const ib={created(e,{value:t},n){e.checked=hc(t,n.props.value),e[Ji]=vc(n),Ks(e,"change",()=>{e[Ji](xd(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ji]=vc(r),t!==n&&(e.checked=hc(t,r.props.value))}},H7={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Qu(t);Ks(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?hv(xd(a)):xd(a));e[Ji](e.multiple?o?new Set(i):i:i[0])}),e[Ji]=vc(r)},mounted(e,{value:t}){tM(e,t)},beforeUpdate(e,t,n){e[Ji]=vc(n)},updated(e,{value:t}){tM(e,t)}};function tM(e,t){const n=e.multiple;if(!(n&&!wt(t)&&!Qu(t))){for(let r=0,o=e.options.length;r-1:i.selected=t.has(a);else if(hc(xd(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function xd(e){return"_value"in e?e._value:e.value}function G7(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const z7={created(e,t,n){j1(e,t,n,null,"created")},mounted(e,t,n){j1(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){j1(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){j1(e,t,n,r,"updated")}};function J7(e,t){switch(e){case"SELECT":return H7;case"TEXTAREA":return Dh;default:switch(t){case"checkbox":return ob;case"radio":return ib;default:return Dh}}}function j1(e,t,n,r,o){const a=J7(e.tagName,n.props&&n.props.type)[o];a&&a(e,t,n,r)}function OK(){Dh.getSSRProps=({value:e})=>({value:e}),ib.getSSRProps=({value:e},t)=>{if(t.props&&hc(t.props.value,e))return{checked:!0}},ob.getSSRProps=({value:e},t)=>{if(wt(e)){if(t.props&&xg(e,t.props.value)>-1)return{checked:!0}}else if(Qu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},z7.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=J7(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const TK=["ctrl","shift","alt","meta"],kK={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>TK.some(n=>e[`${n}Key`]&&!t.includes(n))},Wt=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=Hi(o.key);if(t.some(a=>a===i||NK[a]===i))return e(o)})},$7=ar({patchProp:mK},$D);let ch,nM=!1;function j7(){return ch||(ch=R7($7))}function q7(){return ch=nM?ch:y7($7),nM=!0,ch}const bd=(...e)=>{j7().render(...e)},eN=(...e)=>{q7().hydrate(...e)},tN=(...e)=>{const t=j7().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=rN(r);if(!o)return;const i=t._component;!Kt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,nN(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},PK=(...e)=>{const t=q7().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=rN(r);if(o)return n(o,!0,nN(o))},t};function nN(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rN(e){return sr(e)?document.querySelector(e):e}let rM=!1;const CK=()=>{rM||(rM=!0,OK(),nK())},IK=()=>{},FK=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:qk,BaseTransitionPropsValidators:zx,Comment:vo,DeprecationTypes:GD,EffectScope:Cx,ErrorCodes:yB,ErrorTypeStrings:YD,Fragment:Ve,KeepAlive:BB,ReactiveEffect:Ad,Static:hu,Suspense:FB,Teleport:eb,Text:Ou,TrackOpTypes:gB,Transition:ku,TransitionGroup:xK,TriggerOpTypes:AB,VueElement:Fg,assertNumber:RB,callWithAsyncErrorHandling:Ni,callWithErrorHandling:tl,camelize:_o,capitalize:pp,cloneVNode:ps,compatUtils:HD,compile:IK,computed:Me,createApp:tN,createBlock:we,createCommentVNode:Be,createElementBlock:ee,createElementVNode:V,createHydrationRenderer:y7,createPropsRestProxy:sD,createRenderer:R7,createSSRApp:PK,createSlots:KB,createStaticVNode:ND,createTextVNode:We,createVNode:w,customRef:Wk,defineAsyncComponent:QB,defineComponent:Fe,defineCustomElement:Z7,defineEmits:JB,defineExpose:$B,defineModel:eD,defineOptions:jB,defineProps:zB,defineSSRCustomElement:gK,defineSlots:qB,devtools:QD,effect:UZ,effectScope:Ix,getCurrentInstance:cl,getCurrentScope:Fx,getTransitionRawChildren:kg,guardReactiveProps:T7,h:_7,handleError:Du,hasInjectionContext:h7,hydrate:eN,initCustomFormatter:WD,initDirectivesForSSR:CK,inject:jo,isMemoSame:E7,isProxy:Vx,isReactive:ls,isReadonly:wu,isRef:lr,isRuntimeOnly:_D,isShallow:nu,isVNode:pc,markRaw:vp,mergeDefaults:iD,mergeModels:aD,mergeProps:k7,nextTick:Vr,normalizeClass:$e,normalizeProps:_Z,normalizeStyle:Le,onActivated:t7,onBeforeMount:Jx,onBeforeUnmount:Vd,onBeforeUpdate:o7,onDeactivated:n7,onErrorCaptured:l7,onMounted:Gt,onRenderTracked:s7,onRenderTriggered:a7,onScopeDispose:xk,onServerPrefetch:i7,onUnmounted:Tn,onUpdated:Pg,openBlock:Y,popScopeId:an,provide:Ku,proxyRefs:Qx,pushScopeId:on,queuePostFlushCb:vv,reactive:mp,readonly:Wx,ref:pe,registerRuntimeCompiler:FD,render:bd,renderList:it,renderSlot:cr,resolveComponent:xe,resolveDirective:Mn,resolveDynamicComponent:xs,resolveFilter:KD,resolveTransitionHooks:Rd,setBlockTracking:k4,setDevtoolsHook:ZD,setTransitionHooks:Lu,shallowReactive:_k,shallowReadonly:sB,shallowRef:cB,ssrContextKey:Gk,ssrUtils:DD,stop:YZ,toDisplayString:gt,toHandlerKey:ih,toHandlers:HB,toRaw:mn,toRef:Wd,toRefs:Vk,toValue:dB,transformVNodeArgs:TD,triggerRef:fB,unref:H,useAttrs:rD,useCssModule:RK,useCssVars:rK,useModel:oD,useSSRContext:zk,useSlots:nD,useTransitionState:Gx,vModelCheckbox:ob,vModelDynamic:z7,vModelRadio:ib,vModelSelect:H7,vModelText:Dh,vShow:il,version:X7,warn:UD,watch:Tt,watchEffect:Tg,watchPostEffect:Jk,watchSyncEffect:$k,withAsyncContext:lD,withCtx:re,withDefaults:tD,withDirectives:De,withKeys:gc,withMemo:VD,withModifiers:Wt,withScopeId:OB},Symbol.toStringTag,{value:"Module"}));var _K=!1;/*! +var xZ=Object.defineProperty;var bZ=(e,t,n)=>t in e?xZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var VA=(e,t,n)=>(bZ(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Rg(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Yn={},rd=[],Fo=()=>{},SZ=()=>!1,hp=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Tx=e=>e.startsWith("onUpdate:"),ar=Object.assign,kx=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},MZ=Object.prototype.hasOwnProperty,Tn=(e,t)=>MZ.call(e,t),wt=Array.isArray,od=e=>Xd(e)==="[object Map]",Qu=e=>Xd(e)==="[object Set]",vS=e=>Xd(e)==="[object Date]",wZ=e=>Xd(e)==="[object RegExp]",Kt=e=>typeof e=="function",sr=e=>typeof e=="string",dc=e=>typeof e=="symbol",Bn=e=>e!==null&&typeof e=="object",Nx=e=>(Bn(e)||Kt(e))&&Kt(e.then)&&Kt(e.catch),mk=Object.prototype.toString,Xd=e=>mk.call(e),LZ=e=>Xd(e).slice(8,-1),vk=e=>Xd(e)==="[object Object]",Px=e=>sr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,oh=Rg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yg=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},OZ=/-(\w)/g,_o=yg(e=>e.replace(OZ,(t,n)=>n?n.toUpperCase():"")),TZ=/\B([A-Z])/g,Hi=yg(e=>e.replace(TZ,"-$1").toLowerCase()),pp=yg(e=>e.charAt(0).toUpperCase()+e.slice(1)),ih=yg(e=>e?`on${pp(e)}`:""),Ca=(e,t)=>!Object.is(e,t),id=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},hv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},pv=e=>{const t=sr(e)?Number(e):NaN;return isNaN(t)?e:t};let gS;const gk=()=>gS||(gS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),kZ="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",NZ=Rg(kZ);function Le(e){if(wt(e)){const t={};for(let n=0;n{if(n){const r=n.split(CZ);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function $e(e){let t="";if(sr(e))t=e;else if(wt(e))for(let n=0;nhc(n,t))}const gt=e=>sr(e)?e:e==null?"":wt(e)||Bn(e)&&(e.toString===mk||!Kt(e.toString))?JSON.stringify(e,Rk,2):String(e),Rk=(e,t)=>t&&t.__v_isRef?Rk(e,t.value):od(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[UA(r,i)+" =>"]=o,n),{})}:Qu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>UA(n))}:dc(t)?UA(t):Bn(t)&&!wt(t)&&!vk(t)?String(t):t,UA=(e,t="")=>{var n;return dc(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let yi;class Cx{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=yi,!t&&yi&&(this.index=(yi.scopes||(yi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=yi;try{return yi=this,t()}finally{yi=n}}}on(){yi=this}off(){yi=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=2))break;Bu(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ic,n=uu;try{return ic=!0,uu=this,this._runnings++,AS(this),this.fn()}finally{RS(this),this._runnings--,uu=n,ic=t}}stop(){var t;this.active&&(AS(this),RS(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function VZ(e){return e.value}function AS(e){e._trackId++,e._depsLength=0}function RS(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()});t&&(ar(n,t),t.scope&&yk(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function YZ(e){e.effect.stop()}let ic=!0,R4=0;const Sk=[];function Zu(){Sk.push(ic),ic=!1}function Bu(){const e=Sk.pop();ic=e===void 0?!0:e}function _x(){R4++}function Ex(){for(R4--;!R4&&y4.length;)y4.shift()()}function Mk(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&bk(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const y4=[];function wk(e,t,n){_x();for(const r of e.keys())if(!(!r.allowRecurse&&r._runnings)&&r._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},mv=new WeakMap,fu=Symbol(""),x4=Symbol("");function oi(e,t,n){if(ic&&uu){let r=mv.get(e);r||mv.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Lk(()=>r.delete(n))),Mk(uu,o)}}function el(e,t,n,r,o,i){const a=mv.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&wt(e)){const c=Number(r);a.forEach((l,u)=>{(u==="length"||!dc(u)&&u>=c)&&s.push(l)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":wt(e)?Px(n)&&s.push(a.get("length")):(s.push(a.get(fu)),od(e)&&s.push(a.get(x4)));break;case"delete":wt(e)||(s.push(a.get(fu)),od(e)&&s.push(a.get(x4)));break;case"set":od(e)&&s.push(a.get(fu));break}_x();for(const c of s)c&&wk(c,3);Ex()}function QZ(e,t){var n;return(n=mv.get(e))==null?void 0:n.get(t)}const ZZ=Rg("__proto__,__v_isRef,__isVue"),Ok=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dc)),yS=BZ();function BZ(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=mn(this);for(let i=0,a=this.length;i{e[t]=function(...n){Zu(),_x();const r=mn(this)[t].apply(this,n);return Ex(),Bu(),r}}),e}function DZ(e){const t=mn(this);return oi(t,"has",e),t.hasOwnProperty(e)}class Tk{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?Fk:Ik:i?Ck:Pk).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=wt(t);if(!o){if(a&&Tn(yS,n))return Reflect.get(yS,n,r);if(n==="hasOwnProperty")return DZ}const s=Reflect.get(t,n,r);return(dc(n)?Ok.has(n):ZZ(n))||(o||oi(t,"get",n),i)?s:lr(s)?a&&Px(n)?s:s.value:Bn(s)?o?Wx(s):mp(s):s}}class kk extends Tk{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._shallow){const c=wu(i);if(!nu(r)&&!wu(r)&&(i=mn(i),r=mn(r)),!wt(t)&&lr(i)&&!lr(r))return c?!1:(i.value=r,!0)}const a=wt(t)&&Px(n)?Number(n)e,bg=e=>Reflect.getPrototypeOf(e);function Q1(e,t,n=!1,r=!1){e=e.__v_raw;const o=mn(e),i=mn(t);n||(Ca(t,i)&&oi(o,"get",t),oi(o,"get",i));const{has:a}=bg(o),s=r?Xx:n?Ux:Xh;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function Z1(e,t=!1){const n=this.__v_raw,r=mn(n),o=mn(e);return t||(Ca(e,o)&&oi(r,"has",e),oi(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function B1(e,t=!1){return e=e.__v_raw,!t&&oi(mn(e),"iterate",fu),Reflect.get(e,"size",e)}function xS(e){e=mn(e);const t=mn(this);return bg(t).has.call(t,e)||(t.add(e),el(t,"add",e,e)),this}function bS(e,t){t=mn(t);const n=mn(this),{has:r,get:o}=bg(n);let i=r.call(n,e);i||(e=mn(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ca(t,a)&&el(n,"set",e,t):el(n,"add",e,t),this}function SS(e){const t=mn(this),{has:n,get:r}=bg(t);let o=n.call(t,e);o||(e=mn(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&el(t,"delete",e,void 0),i}function MS(){const e=mn(this),t=e.size!==0,n=e.clear();return t&&el(e,"clear",void 0,void 0),n}function D1(e,t){return function(r,o){const i=this,a=i.__v_raw,s=mn(a),c=t?Xx:e?Ux:Xh;return!e&&oi(s,"iterate",fu),a.forEach((l,u)=>r.call(o,c(l),c(u),i))}}function K1(e,t,n){return function(...r){const o=this.__v_raw,i=mn(o),a=od(i),s=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,l=o[e](...r),u=n?Xx:t?Ux:Xh;return!t&&oi(i,"iterate",c?x4:fu),{next(){const{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:s?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function bl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function JZ(){const e={get(i){return Q1(this,i)},get size(){return B1(this)},has:Z1,add:xS,set:bS,delete:SS,clear:MS,forEach:D1(!1,!1)},t={get(i){return Q1(this,i,!1,!0)},get size(){return B1(this)},has:Z1,add:xS,set:bS,delete:SS,clear:MS,forEach:D1(!1,!0)},n={get(i){return Q1(this,i,!0)},get size(){return B1(this,!0)},has(i){return Z1.call(this,i,!0)},add:bl("add"),set:bl("set"),delete:bl("delete"),clear:bl("clear"),forEach:D1(!0,!1)},r={get(i){return Q1(this,i,!0,!0)},get size(){return B1(this,!0)},has(i){return Z1.call(this,i,!0)},add:bl("add"),set:bl("set"),delete:bl("delete"),clear:bl("clear"),forEach:D1(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=K1(i,!1,!1),n[i]=K1(i,!0,!1),t[i]=K1(i,!1,!0),r[i]=K1(i,!0,!0)}),[e,n,t,r]}const[$Z,jZ,qZ,eB]=JZ();function Sg(e,t){const n=t?e?eB:qZ:e?jZ:$Z;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Tn(n,o)&&o in r?n:r,o,i)}const tB={get:Sg(!1,!1)},nB={get:Sg(!1,!0)},rB={get:Sg(!0,!1)},oB={get:Sg(!0,!0)},Pk=new WeakMap,Ck=new WeakMap,Ik=new WeakMap,Fk=new WeakMap;function iB(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aB(e){return e.__v_skip||!Object.isExtensible(e)?0:iB(LZ(e))}function mp(e){return wu(e)?e:Mg(e,!1,KZ,tB,Pk)}function _k(e){return Mg(e,!1,GZ,nB,Ck)}function Wx(e){return Mg(e,!0,HZ,rB,Ik)}function sB(e){return Mg(e,!0,zZ,oB,Fk)}function Mg(e,t,n,r,o){if(!Bn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=aB(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return o.set(e,s),s}function ls(e){return wu(e)?ls(e.__v_raw):!!(e&&e.__v_isReactive)}function wu(e){return!!(e&&e.__v_isReadonly)}function nu(e){return!!(e&&e.__v_isShallow)}function Vx(e){return ls(e)||wu(e)}function mn(e){const t=e&&e.__v_raw;return t?mn(t):e}function vp(e){return dv(e,"__v_skip",!0),e}const Xh=e=>Bn(e)?mp(e):e,Ux=e=>Bn(e)?Wx(e):e;class Ek{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ad(()=>t(this._value),()=>Wh(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=mn(this);return Yx(t),(!t._cacheable||t.effect.dirty)&&Ca(t._value,t._value=t.effect.run())&&Wh(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function lB(e,t,n=!1){let r,o;const i=Kt(e);return i?(r=e,o=Fo):(r=e.get,o=e.set),new Ek(r,o,i||!o,n)}function Yx(e){ic&&uu&&(e=mn(e),Mk(uu,e.dep||(e.dep=Lk(()=>e.dep=void 0,e instanceof Ek?e:void 0))))}function Wh(e,t=3,n){e=mn(e);const r=e.dep;r&&wk(r,t)}function lr(e){return!!(e&&e.__v_isRef===!0)}function pe(e){return Xk(e,!1)}function cB(e){return Xk(e,!0)}function Xk(e,t){return lr(e)?e:new uB(e,t)}class uB{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:mn(t),this._value=n?t:Xh(t)}get value(){return Yx(this),this._value}set value(t){const n=this.__v_isShallow||nu(t)||wu(t);t=n?t:mn(t),Ca(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Xh(t),Wh(this,3))}}function fB(e){Wh(e,3)}function H(e){return lr(e)?e.value:e}function dB(e){return Kt(e)?e():H(e)}const hB={get:(e,t,n)=>H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return lr(o)&&!lr(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Qx(e){return ls(e)?e:new Proxy(e,hB)}class pB{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Yx(this),()=>Wh(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Wk(e){return new pB(e)}function Vk(e){const t=wt(e)?new Array(e.length):{};for(const n in e)t[n]=Uk(e,n);return t}class mB{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QZ(mn(this._object),this._key)}}class vB{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Wd(e,t,n){return lr(e)?e:Kt(e)?new vB(e):Bn(e)&&arguments.length>1?Uk(e,t,n):pe(e)}function Uk(e,t,n){const r=e[t];return lr(r)?r:new mB(e,t,n)}const gB={GET:"get",HAS:"has",ITERATE:"iterate"},AB={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function RB(e,t){}const yB={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"},xB={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. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function tl(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Du(i,t,n)}return o}function Ni(e,t,n,r){if(Kt(e)){const i=tl(e,t,n,r);return i&&Nx(i)&&i.catch(a=>{Du(a,t,n)}),i}const o=[];for(let i=0;i>>1,o=fo[r],i=Uh(o);ies&&fo.splice(t,1)}function vv(e){wt(e)?ad.push(...e):(!Qs||!Qs.includes(e,e.allowRecurse?jc+1:jc))&&ad.push(e),Qk()}function wS(e,t,n=Vh?es+1:0){for(;nUh(n)-Uh(r)),jc=0;jce.id==null?1/0:e.id,wB=(e,t)=>{const n=Uh(e)-Uh(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Zk(e){b4=!1,Vh=!0,fo.sort(wB);try{for(es=0;essr(h)?h.trim():h)),f&&(o=n.map(hv))}let s,c=r[s=ih(t)]||r[s=ih(_o(t))];!c&&i&&(c=r[s=ih(Hi(t))]),c&&Ni(c,e,6,o);const l=r[s+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ni(l,e,6,o)}}function Bk(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!Kt(e)){const c=l=>{const u=Bk(l,t,!0);u&&(s=!0,ar(a,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!s?(Bn(e)&&r.set(e,null),null):(wt(i)?i.forEach(c=>a[c]=null):ar(a,i),Bn(e)&&r.set(e,a),a)}function Lg(e,t){return!e||!hp(t)?!1:(t=t.slice(2).replace(/Once$/,""),Tn(e,t[0].toLowerCase()+t.slice(1))||Tn(e,Hi(t))||Tn(e,t))}let Qr=null,Og=null;function Yh(e){const t=Qr;return Qr=e,Og=e&&e.type.__scopeId||null,t}function on(e){Og=e}function an(){Og=null}const OB=e=>re;function re(e,t=Qr,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&k4(-1);const i=Yh(t);let a;try{a=e(...o)}finally{Yh(i),r._d&&k4(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Im(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:m}=e;let A,x;const R=Yh(e);try{if(n.shapeFlag&4){const g=o||r,S=g;A=Si(u.call(S,g,f,i,h,d,p)),x=c}else{const g=t;A=Si(g.length>1?g(i,{attrs:c,slots:s,emit:l}):g(i,null)),x=t.props?c:kB(c)}}catch(g){lh.length=0,Du(g,e,1),A=w(vo)}let y=A;if(x&&m!==!1){const g=Object.keys(x),{shapeFlag:S}=y;g.length&&S&7&&(a&&g.some(Tx)&&(x=NB(x,a)),y=ps(y,x))}return n.dirs&&(y=ps(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),A=y,Yh(R),A}function TB(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||hp(n))&&((t||(t={}))[n]=e[n]);return t},NB=(e,t)=>{const n={};for(const r in e)(!Tx(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function PB(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?LS(r,a,l):!!a;if(c&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let TS=0;const IB={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,s,c,l){e==null?_B(t,n,r,o,i,a,s,c,l):EB(e,t,n,r,o,a,s,c,l)},hydrate:XB,create:Hx,normalize:WB},FB=IB;function Qh(e,t){const n=e.props&&e.props[t];Kt(n)&&n()}function _B(e,t,n,r,o,i,a,s,c){const{p:l,o:{createElement:u}}=c,f=u("div"),d=e.suspense=Hx(e,o,r,t,f,n,i,a,s,c);l(null,d.pendingBranch=e.ssContent,f,null,r,d,i,a),d.deps>0?(Qh(e,"onPending"),Qh(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,a),sd(d,e.ssFallback)):d.resolve(!1,!0)}function EB(e,t,n,r,o,i,a,s,{p:c,um:l,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:A,isHydrating:x}=f;if(m)f.pendingBranch=d,La(d,m)?(c(m,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():A&&(x||(c(p,h,n,r,o,null,i,a,s),sd(f,h)))):(f.pendingId=TS++,x?(f.isHydrating=!1,f.activeBranch=m):l(m,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),A?(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():(c(p,h,n,r,o,null,i,a,s),sd(f,h))):p&&La(d,p)?(c(p,d,n,r,o,f,i,a,s),f.resolve(!0)):(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0&&f.resolve()));else if(p&&La(d,p))c(p,d,n,r,o,f,i,a,s),sd(f,d);else if(Qh(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=TS++,c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0)f.resolve();else{const{timeout:R,pendingId:y}=f;R>0?setTimeout(()=>{f.pendingId===y&&f.fallback(h)},R):R===0&&f.fallback(h)}}function Hx(e,t,n,r,o,i,a,s,c,l,u=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:m,remove:A}}=l;let x;const R=VB(e);R&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const y=e.props?pv(e.props.timeout):void 0,g={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,L=!1){const{vnode:T,activeBranch:M,pendingBranch:O,pendingId:k,effects:F,parentComponent:N,container:E}=g;let P=!1;if(g.isHydrating)g.isHydrating=!1;else if(!S){P=M&&O.transition&&O.transition.mode==="out-in",P&&(M.transition.afterLeave=()=>{k===g.pendingId&&(d(O,E,p(M),0),vv(F))});let{anchor:W}=g;M&&(W=p(M),h(M,N,g,!0)),P||d(O,E,W,0)}sd(g,O),g.pendingBranch=null,g.isInFallback=!1;let _=g.parent,I=!1;for(;_;){if(_.pendingBranch){_.effects.push(...F),I=!0;break}_=_.parent}!I&&!P&&vv(F),g.effects=[],R&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!L&&t.resolve()),Qh(T,"onResolve")},fallback(S){if(!g.pendingBranch)return;const{vnode:L,activeBranch:T,parentComponent:M,container:O,namespace:k}=g;Qh(L,"onFallback");const F=p(T),N=()=>{g.isInFallback&&(f(null,S,O,F,M,null,k,s,c),sd(g,S))},E=S.transition&&S.transition.mode==="out-in";E&&(T.transition.afterLeave=N),g.isInFallback=!0,h(T,M,null,!0),E||N()},move(S,L,T){g.activeBranch&&d(g.activeBranch,S,L,T),g.container=S},next(){return g.activeBranch&&p(g.activeBranch)},registerDep(S,L){const T=!!g.pendingBranch;T&&g.deps++;const M=S.vnode.el;S.asyncDep.catch(O=>{Du(O,S,0)}).then(O=>{if(S.isUnmounted||g.isUnmounted||g.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:k}=S;P4(S,O,!1),M&&(k.el=M);const F=!M&&S.subTree.el;L(S,k,m(M||S.subTree.el),M?null:p(S.subTree),g,a,c),F&&A(F),Bx(S,k.el),T&&--g.deps===0&&g.resolve()})},unmount(S,L){g.isUnmounted=!0,g.activeBranch&&h(g.activeBranch,n,S,L),g.pendingBranch&&h(g.pendingBranch,n,S,L)}};return g}function XB(e,t,n,r,o,i,a,s,c){const l=t.suspense=Hx(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,i,a);return l.deps===0&&l.resolve(!1,!0),u}function WB(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=kS(r?n.default:n),e.ssFallback=r?kS(n.fallback):w(vo)}function kS(e){let t;if(Kt(e)){const n=Tu&&e._c;n&&(e._d=!1,Y()),e=e(),n&&(e._d=!0,t=$o,w7())}return wt(e)&&(e=TB(e)),e=Si(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Hk(e,t){t&&t.pendingBranch?wt(e)?t.effects.push(...e):t.effects.push(e):vv(e)}function sd(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Bx(r,o))}function VB(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const Gk=Symbol.for("v-scx"),zk=()=>jo(Gk);function Tg(e,t){return gp(e,null,t)}function Jk(e,t){return gp(e,null,{flush:"post"})}function $k(e,t){return gp(e,null,{flush:"sync"})}const H1={};function Tt(e,t,n){return gp(e,t,n)}function gp(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:a,onTrigger:s}=Yn){var c;if(t&&i){const S=t;t=(...L)=>{S(...L),g()}}const l=Fx()===((c=Pr)==null?void 0:c.scope)?Pr:null;let u,f=!1,d=!1;if(lr(e)?(u=()=>e.value,f=nu(e)):ls(e)?(u=nu(e)||r===!1?()=>zs(e,1):()=>zs(e),f=!0):wt(e)?(d=!0,f=e.some(S=>ls(S)||nu(S)),u=()=>e.map(S=>{if(lr(S))return S.value;if(ls(S))return zs(S,nu(S)||r===!1?1:void 0);if(Kt(S))return tl(S,l,2)})):Kt(e)?t?u=()=>tl(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return h&&h(),Ni(e,l,3,[p])}:u=Fo,t&&r){const S=u;u=()=>zs(S())}let h,p=S=>{h=y.onStop=()=>{tl(S,l,4),h=y.onStop=void 0}},m;if(Rp)if(p=Fo,t?n&&Ni(t,l,3,[u(),d?[]:void 0,p]):u(),o==="sync"){const S=zk();m=S.__watcherHandles||(S.__watcherHandles=[])}else return Fo;let A=d?new Array(e.length).fill(H1):H1;const x=()=>{if(!(!y.active||!y.dirty))if(t){const S=y.run();(r||f||(d?S.some((L,T)=>Ca(L,A[T])):Ca(S,A)))&&(h&&h(),Ni(t,l,3,[S,A===H1?void 0:d&&A[0]===H1?[]:A,p]),A=S)}else y.run()};x.allowRecurse=!!t;let R;o==="sync"?R=x:o==="post"?R=()=>jr(x,l&&l.suspense):(x.pre=!0,l&&(x.id=l.uid),R=()=>wg(x));const y=new Ad(u,Fo,R),g=()=>{y.stop(),l&&l.scope&&kx(l.scope.effects,y)};return t?n?x():A=y.run():o==="post"?jr(y.run.bind(y),l&&l.suspense):y.run(),m&&m.push(g),g}function UB(e,t,n){const r=this.proxy,o=sr(e)?e.includes(".")?jk(r,e):()=>r[e]:e.bind(r,r);let i;Kt(t)?i=t:(i=t.handler,n=t);const a=Pr;mc(this);const s=gp(o,i.bind(r),n);return a?mc(a):ac(),s}function jk(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),lr(e))zs(e.value,t,n,r);else if(wt(e))for(let o=0;o{zs(o,t,n,r)});else if(vk(e))for(const o in e)zs(e[o],t,n,r);return e}function De(e,t){const n=Qr;if(n===null)return e;const r=Ig(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),Vd(()=>{e.isUnmounting=!0}),e}const Qi=[Function,Array],zx={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qi,onEnter:Qi,onAfterEnter:Qi,onEnterCancelled:Qi,onBeforeLeave:Qi,onLeave:Qi,onAfterLeave:Qi,onLeaveCancelled:Qi,onBeforeAppear:Qi,onAppear:Qi,onAfterAppear:Qi,onAppearCancelled:Qi},YB={name:"BaseTransition",props:zx,setup(e,{slots:t}){const n=cl(),r=Gx();let o;return()=>{const i=t.default&&kg(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const m of i)if(m.type!==vo){a=m;break}}const s=mn(e),{mode:c}=s;if(r.isLeaving)return YA(a);const l=NS(a);if(!l)return YA(a);const u=Rd(l,s,r,n);Lu(l,u);const f=n.subTree,d=f&&NS(f);let h=!1;const{getTransitionKey:p}=l.type;if(p){const m=p();o===void 0?o=m:m!==o&&(o=m,h=!0)}if(d&&d.type!==vo&&(!La(l,d)||h)){const m=Rd(d,s,r,n);if(Lu(d,m),c==="out-in")return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},YA(a);c==="in-out"&&l.type!==vo&&(m.delayLeave=(A,x,R)=>{const y=e7(r,d);y[String(d.key)]=d,A[Vl]=()=>{x(),A[Vl]=void 0,delete u.delayedLeave},u.delayedLeave=R})}return a}}},qk=YB;function e7(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 Rd(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:m,onAppear:A,onAfterAppear:x,onAppearCancelled:R}=t,y=String(e.key),g=e7(n,e),S=(M,O)=>{M&&Ni(M,r,9,O)},L=(M,O)=>{const k=O[1];S(M,O),wt(M)?M.every(F=>F.length<=1)&&k():M.length<=1&&k()},T={mode:i,persisted:a,beforeEnter(M){let O=s;if(!n.isMounted)if(o)O=m||s;else return;M[Vl]&&M[Vl](!0);const k=g[y];k&&La(e,k)&&k.el[Vl]&&k.el[Vl](),S(O,[M])},enter(M){let O=c,k=l,F=u;if(!n.isMounted)if(o)O=A||c,k=x||l,F=R||u;else return;let N=!1;const E=M[G1]=P=>{N||(N=!0,P?S(F,[M]):S(k,[M]),T.delayedLeave&&T.delayedLeave(),M[G1]=void 0)};O?L(O,[M,E]):E()},leave(M,O){const k=String(e.key);if(M[G1]&&M[G1](!0),n.isUnmounting)return O();S(f,[M]);let F=!1;const N=M[Vl]=E=>{F||(F=!0,O(),E?S(p,[M]):S(h,[M]),M[Vl]=void 0,g[k]===e&&delete g[k])};g[k]=e,d?L(d,[M,N]):N()},clone(M){return Rd(M,t,n,r)}};return T}function YA(e){if(Ap(e))return e=ps(e),e.children=null,e}function NS(e){return Ap(e)?e.children?e.children[0]:void 0:e}function Lu(e,t){e.shapeFlag&6&&e.component?Lu(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 kg(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function QB(e){Kt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:a=!0,onError:s}=e;let c=null,l,u=0;const f=()=>(u++,c=null,d()),d=()=>{let h;return c||(h=c=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((m,A)=>{s(p,()=>m(f()),()=>A(p),u+1)});throw p}).then(p=>h!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return Fe({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const h=Pr;if(l)return()=>QA(l,h);const p=R=>{c=null,Du(R,h,13,!r)};if(a&&h.suspense||Rp)return d().then(R=>()=>QA(R,h)).catch(R=>(p(R),()=>r?w(r,{error:R}):null));const m=pe(!1),A=pe(),x=pe(!!o);return o&&setTimeout(()=>{x.value=!1},o),i!=null&&setTimeout(()=>{if(!m.value&&!A.value){const R=new Error(`Async component timed out after ${i}ms.`);p(R),A.value=R}},i),d().then(()=>{m.value=!0,h.parent&&Ap(h.parent.vnode)&&(h.parent.effect.dirty=!0,wg(h.parent.update))}).catch(R=>{p(R),A.value=R}),()=>{if(m.value&&l)return QA(l,h);if(A.value&&r)return w(r,{error:A.value});if(n&&!x.value)return w(n)}}})}function QA(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,a=w(e,r,o);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const Ap=e=>e.type.__isKeepAlive,ZB={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=cl(),r=n.ctx;if(!r.renderer)return()=>{const R=t.default&&t.default();return R&&R.length===1?R[0]:R};const o=new Map,i=new Set;let a=null;const s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(R,y,g,S,L)=>{const T=R.component;l(R,y,g,0,s),c(T.vnode,R,y,g,T,s,S,R.slotScopeIds,L),jr(()=>{T.isDeactivated=!1,T.a&&id(T.a);const M=R.props&&R.props.onVnodeMounted;M&&Ho(M,T.parent,R)},s)},r.deactivate=R=>{const y=R.component;l(R,d,null,1,s),jr(()=>{y.da&&id(y.da);const g=R.props&&R.props.onVnodeUnmounted;g&&Ho(g,y.parent,R),y.isDeactivated=!0},s)};function h(R){ZA(R),u(R,n,s,!0)}function p(R){o.forEach((y,g)=>{const S=I4(y.type);S&&(!R||!R(S))&&m(g)})}function m(R){const y=o.get(R);!a||!La(y,a)?h(y):a&&ZA(a),o.delete(R),i.delete(R)}Tt(()=>[e.include,e.exclude],([R,y])=>{R&&p(g=>k0(R,g)),y&&p(g=>!k0(y,g))},{flush:"post",deep:!0});let A=null;const x=()=>{A!=null&&o.set(A,BA(n.subTree))};return Gt(x),Pg(x),Vd(()=>{o.forEach(R=>{const{subTree:y,suspense:g}=n,S=BA(y);if(R.type===S.type&&R.key===S.key){ZA(S);const L=S.component.da;L&&jr(L,g);return}h(R)})}),()=>{if(A=null,!t.default)return null;const R=t.default(),y=R[0];if(R.length>1)return a=null,R;if(!pc(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return a=null,y;let g=BA(y);const S=g.type,L=I4(du(g)?g.type.__asyncResolved||{}:S),{include:T,exclude:M,max:O}=e;if(T&&(!L||!k0(T,L))||M&&L&&k0(M,L))return a=g,y;const k=g.key==null?S:g.key,F=o.get(k);return g.el&&(g=ps(g),y.shapeFlag&128&&(y.ssContent=g)),A=k,F?(g.el=F.el,g.component=F.component,g.transition&&Lu(g,g.transition),g.shapeFlag|=512,i.delete(k),i.add(k)):(i.add(k),O&&i.size>parseInt(O,10)&&m(i.values().next().value)),g.shapeFlag|=256,a=g,Kk(y.type)?y:g}}},BB=ZB;function k0(e,t){return wt(e)?e.some(n=>k0(n,t)):sr(e)?e.split(",").includes(t):wZ(e)?e.test(t):!1}function t7(e,t){r7(e,"a",t)}function n7(e,t){r7(e,"da",t)}function r7(e,t,n=Pr){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ng(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ap(o.parent.vnode)&&DB(r,t,n,o),o=o.parent}}function DB(e,t,n,r){const o=Ng(t,e,r,!0);On(()=>{kx(r[t],o)},n)}function ZA(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function BA(e){return e.shapeFlag&128?e.ssContent:e}function Ng(e,t,n=Pr,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Zu(),mc(n);const s=Ni(t,n,e,a);return ac(),Bu(),s});return r?o.unshift(i):o.push(i),i}}const ll=e=>(t,n=Pr)=>(!Rp||e==="sp")&&Ng(e,(...r)=>t(...r),n),Jx=ll("bm"),Gt=ll("m"),o7=ll("bu"),Pg=ll("u"),Vd=ll("bum"),On=ll("um"),i7=ll("sp"),a7=ll("rtg"),s7=ll("rtc");function l7(e,t=Pr){Ng("ec",e,t)}function it(e,t,n,r){let o;const i=n&&n[r];if(wt(e)||sr(e)){o=new Array(e.length);for(let a=0,s=e.length;at(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);o=new Array(a.length);for(let s=0,c=a.length;s{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function cr(e,t,n={},r,o){if(Qr.isCE||Qr.parent&&du(Qr.parent)&&Qr.parent.isCE)return t!=="default"&&(n.name=t),w("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Y();const a=i&&c7(i(n)),s=we(Ve,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function c7(e){return e.some(t=>pc(t)?!(t.type===vo||t.type===Ve&&!c7(t.children)):!0)?e:null}function HB(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ih(r)]=e[r];return n}const S4=e=>e?P7(e)?Ig(e)||e.proxy:S4(e.parent):null,ah=ar(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=>S4(e.parent),$root:e=>S4(e.root),$emit:e=>e.emit,$options:e=>$x(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,wg(e.update)}),$nextTick:e=>e.n||(e.n=Vr.bind(e.proxy)),$watch:e=>UB.bind(e)}),DA=(e,t)=>e!==Yn&&!e.__isScriptSetup&&Tn(e,t),M4={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:c}=e;let l;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(DA(r,t))return a[t]=1,r[t];if(o!==Yn&&Tn(o,t))return a[t]=2,o[t];if((l=e.propsOptions[0])&&Tn(l,t))return a[t]=3,i[t];if(n!==Yn&&Tn(n,t))return a[t]=4,n[t];w4&&(a[t]=0)}}const u=ah[t];let f,d;if(u)return t==="$attrs"&&oi(e,"get",t),u(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Yn&&Tn(n,t))return a[t]=4,n[t];if(d=c.config.globalProperties,Tn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return DA(o,t)?(o[t]=n,!0):r!==Yn&&Tn(r,t)?(r[t]=n,!0):Tn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==Yn&&Tn(e,a)||DA(t,a)||(s=i[0])&&Tn(s,a)||Tn(r,a)||Tn(ah,a)||Tn(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Tn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},GB=ar({},M4,{get(e,t){if(t!==Symbol.unscopables)return M4.get(e,t,e)},has(e,t){return t[0]!=="_"&&!NZ(t)}});function zB(){return null}function JB(){return null}function $B(e){}function jB(e){}function qB(){return null}function eD(){}function tD(e,t){return null}function nD(){return u7().slots}function rD(){return u7().attrs}function oD(e,t,n=Yn){const r=cl(),o=_o(t),i=Wk((s,c)=>{let l;return $k(()=>{const u=e[t];Ca(l,u)&&(l=u,c())}),{get(){return s(),n.get?n.get(l):l},set(u){const f=r.vnode.props;!(f&&(t in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${o}`in f))&&Ca(u,l)&&(l=u,c()),r.emit(`update:${t}`,n.set?n.set(u):u)}}}),a=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let s=0;return{next(){return s<2?{value:s++?e[a]||{}:i,done:!1}:{done:!0}}}},i}function u7(){const e=cl();return e.setupContext||(e.setupContext=F7(e))}function Zh(e){return wt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function iD(e,t){const n=Zh(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?wt(o)||Kt(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(o=n[r]={default:t[r]}),o&&t[`__skip_${r}`]&&(o.skipFactory=!0)}return n}function aD(e,t){return!e||!t?e||t:wt(e)&&wt(t)?e.concat(t):ar({},Zh(e),Zh(t))}function sD(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function lD(e){const t=cl();let n=e();return ac(),Nx(n)&&(n=n.catch(r=>{throw mc(t),r})),[n,()=>mc(t)]}let w4=!0;function cD(e){const t=$x(e),n=e.proxy,r=e.ctx;w4=!1,t.beforeCreate&&PS(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:c,inject:l,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:m,deactivated:A,beforeDestroy:x,beforeUnmount:R,destroyed:y,unmounted:g,render:S,renderTracked:L,renderTriggered:T,errorCaptured:M,serverPrefetch:O,expose:k,inheritAttrs:F,components:N,directives:E,filters:P}=t;if(l&&uD(l,r,null),a)for(const W in a){const D=a[W];Kt(D)&&(r[W]=D.bind(n))}if(o){const W=o.call(n,n);Bn(W)&&(e.data=mp(W))}if(w4=!0,i)for(const W in i){const D=i[W],z=Kt(D)?D.bind(n,n):Kt(D.get)?D.get.bind(n,n):Fo,ae=!Kt(D)&&Kt(D.set)?D.set.bind(n):Fo,U=Me({get:z,set:ae});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>U.value,set:Z=>U.value=Z})}if(s)for(const W in s)f7(s[W],r,n,W);if(c){const W=Kt(c)?c.call(n):c;Reflect.ownKeys(W).forEach(D=>{Ku(D,W[D])})}u&&PS(u,e,"c");function I(W,D){wt(D)?D.forEach(z=>W(z.bind(n))):D&&W(D.bind(n))}if(I(Jx,f),I(Gt,d),I(o7,h),I(Pg,p),I(t7,m),I(n7,A),I(l7,M),I(s7,L),I(a7,T),I(Vd,R),I(On,g),I(i7,O),wt(k))if(k.length){const W=e.exposed||(e.exposed={});k.forEach(D=>{Object.defineProperty(W,D,{get:()=>n[D],set:z=>n[D]=z})})}else e.exposed||(e.exposed={});S&&e.render===Fo&&(e.render=S),F!=null&&(e.inheritAttrs=F),N&&(e.components=N),E&&(e.directives=E)}function uD(e,t,n=Fo){wt(e)&&(e=L4(e));for(const r in e){const o=e[r];let i;Bn(o)?"default"in o?i=jo(o.from||r,o.default,!0):i=jo(o.from||r):i=jo(o),lr(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function PS(e,t,n){Ni(wt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function f7(e,t,n,r){const o=r.includes(".")?jk(n,r):()=>n[r];if(sr(e)){const i=t[e];Kt(i)&&Tt(o,i)}else if(Kt(e))Tt(o,e.bind(n));else if(Bn(e))if(wt(e))e.forEach(i=>f7(i,t,n,r));else{const i=Kt(e.handler)?e.handler.bind(n):t[e.handler];Kt(i)&&Tt(o,i,e)}}function $x(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let c;return s?c=s:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(l=>Av(c,l,a,!0)),Av(c,t,a)),Bn(t)&&i.set(t,c),c}function Av(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Av(e,i,n,!0),o&&o.forEach(a=>Av(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=fD[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const fD={data:CS,props:IS,emits:IS,methods:N0,computed:N0,beforeCreate:Mo,created:Mo,beforeMount:Mo,mounted:Mo,beforeUpdate:Mo,updated:Mo,beforeDestroy:Mo,beforeUnmount:Mo,destroyed:Mo,unmounted:Mo,activated:Mo,deactivated:Mo,errorCaptured:Mo,serverPrefetch:Mo,components:N0,directives:N0,watch:hD,provide:CS,inject:dD};function CS(e,t){return t?e?function(){return ar(Kt(e)?e.call(this,this):e,Kt(t)?t.call(this,this):t)}:t:e}function dD(e,t){return N0(L4(e),L4(t))}function L4(e){if(wt(e)){const t={};for(let n=0;n1)return n&&Kt(t)?t.call(r&&r.proxy):t}}function h7(){return!!(Pr||Qr||Bh)}function vD(e,t,n,r=!1){const o={},i={};dv(i,Cg,1),e.propsDefaults=Object.create(null),p7(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:_k(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function gD(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=mn(o),[c]=e.propsOptions;let l=!1;if((r||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[d,h]=m7(f,t,!0);ar(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return Bn(e)&&r.set(e,rd),rd;if(wt(i))for(let u=0;u-1,h[1]=m<0||p-1||Tn(h,"default"))&&s.push(f)}}}const l=[a,s];return Bn(e)&&r.set(e,l),l}function FS(e){return e[0]!=="$"}function _S(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ES(e,t){return _S(e)===_S(t)}function XS(e,t){return wt(t)?t.findIndex(n=>ES(n,e)):Kt(t)&&ES(t,e)?0:-1}const v7=e=>e[0]==="_"||e==="$stable",jx=e=>wt(e)?e.map(Si):[Si(e)],AD=(e,t,n)=>{if(t._n)return t;const r=re((...o)=>jx(t(...o)),n);return r._c=!1,r},g7=(e,t,n)=>{const r=e._ctx;for(const o in e){if(v7(o))continue;const i=e[o];if(Kt(i))t[o]=AD(o,i,r);else if(i!=null){const a=jx(i);t[o]=()=>a}}},A7=(e,t)=>{const n=jx(t);e.slots.default=()=>n},RD=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=mn(t),dv(t,"_",n)):g7(t,e.slots={})}else e.slots={},t&&A7(e,t);dv(e.slots,Cg,1)},yD=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Yn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(ar(o,t),!n&&s===1&&delete o._):(i=!t.$stable,g7(t,o)),a=t}else t&&(A7(e,t),a={default:1});if(i)for(const s in o)!v7(s)&&a[s]==null&&delete o[s]};function Rv(e,t,n,r,o=!1){if(wt(e)){e.forEach((d,h)=>Rv(d,t&&(wt(t)?t[h]:t),n,r,o));return}if(du(r)&&!o)return;const i=r.shapeFlag&4?Ig(r.component)||r.component.proxy:r.el,a=o?null:i,{i:s,r:c}=e,l=t&&t.r,u=s.refs===Yn?s.refs={}:s.refs,f=s.setupState;if(l!=null&&l!==c&&(sr(l)?(u[l]=null,Tn(f,l)&&(f[l]=null)):lr(l)&&(l.value=null)),Kt(c))tl(c,s,12,[a,u]);else{const d=sr(c),h=lr(c);if(d||h){const p=()=>{if(e.f){const m=d?Tn(f,c)?f[c]:u[c]:c.value;o?wt(m)&&kx(m,i):wt(m)?m.includes(i)||m.push(i):d?(u[c]=[i],Tn(f,c)&&(f[c]=u[c])):(c.value=[i],e.k&&(u[e.k]=c.value))}else d?(u[c]=a,Tn(f,c)&&(f[c]=a)):h&&(c.value=a,e.k&&(u[e.k]=a))};a?(p.id=-1,jr(p,n)):p()}}}let Sl=!1;const xD=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",bD=e=>e.namespaceURI.includes("MathML"),z1=e=>{if(xD(e))return"svg";if(bD(e))return"mathml"},J1=e=>e.nodeType===8;function SD(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:a,remove:s,insert:c,createComment:l}}=e,u=(y,g)=>{if(!g.hasChildNodes()){n(null,y,g),gv(),g._vnode=y;return}Sl=!1,f(g.firstChild,y,null,null,null),gv(),g._vnode=y,Sl&&console.error("Hydration completed but contains mismatches.")},f=(y,g,S,L,T,M=!1)=>{const O=J1(y)&&y.data==="[",k=()=>m(y,g,S,L,T,O),{type:F,ref:N,shapeFlag:E,patchFlag:P}=g;let _=y.nodeType;g.el=y,P===-2&&(M=!1,g.dynamicChildren=null);let I=null;switch(F){case Ou:_!==3?g.children===""?(c(g.el=o(""),a(y),y),I=y):I=k():(y.data!==g.children&&(Sl=!0,y.data=g.children),I=i(y));break;case vo:R(y)?(I=i(y),x(g.el=y.content.firstChild,y,S)):_!==8||O?I=k():I=i(y);break;case hu:if(O&&(y=i(y),_=y.nodeType),_===1||_===3){I=y;const W=!g.children.length;for(let D=0;D{M=M||!!g.dynamicChildren;const{type:O,props:k,patchFlag:F,shapeFlag:N,dirs:E,transition:P}=g,_=O==="input"||O==="option";if(_||F!==-1){E&&Ja(g,null,S,"created");let I=!1;if(R(y)){I=b7(L,P)&&S&&S.vnode.props&&S.vnode.props.appear;const D=y.content.firstChild;I&&P.beforeEnter(D),x(D,y,S),g.el=y=D}if(N&16&&!(k&&(k.innerHTML||k.textContent))){let D=h(y.firstChild,g,y,S,L,T,M);for(;D;){Sl=!0;const z=D;D=D.nextSibling,s(z)}}else N&8&&y.textContent!==g.children&&(Sl=!0,y.textContent=g.children);if(k)if(_||!M||F&48)for(const D in k)(_&&(D.endsWith("value")||D==="indeterminate")||hp(D)&&!oh(D)||D[0]===".")&&r(y,D,null,k[D],void 0,void 0,S);else k.onClick&&r(y,"onClick",null,k.onClick,void 0,void 0,S);let W;(W=k&&k.onVnodeBeforeMount)&&Ho(W,S,g),E&&Ja(g,null,S,"beforeMount"),((W=k&&k.onVnodeMounted)||E||I)&&Hk(()=>{W&&Ho(W,S,g),I&&P.enter(y),E&&Ja(g,null,S,"mounted")},L)}return y.nextSibling},h=(y,g,S,L,T,M,O)=>{O=O||!!g.dynamicChildren;const k=g.children,F=k.length;for(let N=0;N{const{slotScopeIds:O}=g;O&&(T=T?T.concat(O):O);const k=a(y),F=h(i(y),g,k,S,L,T,M);return F&&J1(F)&&F.data==="]"?i(g.anchor=F):(Sl=!0,c(g.anchor=l("]"),k,F),F)},m=(y,g,S,L,T,M)=>{if(Sl=!0,g.el=null,M){const F=A(y);for(;;){const N=i(y);if(N&&N!==F)s(N);else break}}const O=i(y),k=a(y);return s(y),n(null,g,k,O,S,L,z1(k),T),O},A=(y,g="[",S="]")=>{let L=0;for(;y;)if(y=i(y),y&&J1(y)&&(y.data===g&&L++,y.data===S)){if(L===0)return i(y);L--}return y},x=(y,g,S)=>{const L=g.parentNode;L&&L.replaceChild(y,g);let T=S;for(;T;)T.vnode.el===g&&(T.vnode.el=T.subTree.el=y),T=T.parent},R=y=>y.nodeType===1&&y.tagName.toLowerCase()==="template";return[u,f]}const jr=Hk;function R7(e){return x7(e)}function y7(e){return x7(e,SD)}function x7(e,t){const n=gk();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:c,setText:l,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=Fo,insertStaticContent:p}=e,m=(J,ue,X,te=null,le=null,$=null,j=void 0,se=null,ge=!!ue.dynamicChildren)=>{if(J===ue)return;J&&!La(J,ue)&&(te=q(J),Z(J,le,$,!0),J=null),ue.patchFlag===-2&&(ge=!1,ue.dynamicChildren=null);const{type:ce,ref:Ae,shapeFlag:ye}=ue;switch(ce){case Ou:A(J,ue,X,te);break;case vo:x(J,ue,X,te);break;case hu:J==null&&R(ue,X,te,j);break;case Ve:N(J,ue,X,te,le,$,j,se,ge);break;default:ye&1?S(J,ue,X,te,le,$,j,se,ge):ye&6?E(J,ue,X,te,le,$,j,se,ge):(ye&64||ye&128)&&ce.process(J,ue,X,te,le,$,j,se,ge,he)}Ae!=null&&le&&Rv(Ae,J&&J.ref,$,ue||J,!ue)},A=(J,ue,X,te)=>{if(J==null)r(ue.el=s(ue.children),X,te);else{const le=ue.el=J.el;ue.children!==J.children&&l(le,ue.children)}},x=(J,ue,X,te)=>{J==null?r(ue.el=c(ue.children||""),X,te):ue.el=J.el},R=(J,ue,X,te)=>{[J.el,J.anchor]=p(J.children,ue,X,te,J.el,J.anchor)},y=({el:J,anchor:ue},X,te)=>{let le;for(;J&&J!==ue;)le=d(J),r(J,X,te),J=le;r(ue,X,te)},g=({el:J,anchor:ue})=>{let X;for(;J&&J!==ue;)X=d(J),o(J),J=X;o(ue)},S=(J,ue,X,te,le,$,j,se,ge)=>{ue.type==="svg"?j="svg":ue.type==="math"&&(j="mathml"),J==null?L(ue,X,te,le,$,j,se,ge):O(J,ue,le,$,j,se,ge)},L=(J,ue,X,te,le,$,j,se)=>{let ge,ce;const{props:Ae,shapeFlag:ye,transition:Ee,dirs:Se}=J;if(ge=J.el=a(J.type,$,Ae&&Ae.is,Ae),ye&8?u(ge,J.children):ye&16&&M(J.children,ge,null,te,le,KA(J,$),j,se),Se&&Ja(J,null,te,"created"),T(ge,J,J.scopeId,j,te),Ae){for(const qe in Ae)qe!=="value"&&!oh(qe)&&i(ge,qe,null,Ae[qe],$,J.children,te,le,ie);"value"in Ae&&i(ge,"value",null,Ae.value,$),(ce=Ae.onVnodeBeforeMount)&&Ho(ce,te,J)}Se&&Ja(J,null,te,"beforeMount");const be=b7(le,Ee);be&&Ee.beforeEnter(ge),r(ge,ue,X),((ce=Ae&&Ae.onVnodeMounted)||be||Se)&&jr(()=>{ce&&Ho(ce,te,J),be&&Ee.enter(ge),Se&&Ja(J,null,te,"mounted")},le)},T=(J,ue,X,te,le)=>{if(X&&h(J,X),te)for(let $=0;${for(let ce=ge;ce{const se=ue.el=J.el;let{patchFlag:ge,dynamicChildren:ce,dirs:Ae}=ue;ge|=J.patchFlag&16;const ye=J.props||Yn,Ee=ue.props||Yn;let Se;if(X&&Uc(X,!1),(Se=Ee.onVnodeBeforeUpdate)&&Ho(Se,X,ue,J),Ae&&Ja(ue,J,X,"beforeUpdate"),X&&Uc(X,!0),ce?k(J.dynamicChildren,ce,se,X,te,KA(ue,le),$):j||D(J,ue,se,null,X,te,KA(ue,le),$,!1),ge>0){if(ge&16)F(se,ue,ye,Ee,X,te,le);else if(ge&2&&ye.class!==Ee.class&&i(se,"class",null,Ee.class,le),ge&4&&i(se,"style",ye.style,Ee.style,le),ge&8){const be=ue.dynamicProps;for(let qe=0;qe{Se&&Ho(Se,X,ue,J),Ae&&Ja(ue,J,X,"updated")},te)},k=(J,ue,X,te,le,$,j)=>{for(let se=0;se{if(X!==te){if(X!==Yn)for(const se in X)!oh(se)&&!(se in te)&&i(J,se,X[se],null,j,ue.children,le,$,ie);for(const se in te){if(oh(se))continue;const ge=te[se],ce=X[se];ge!==ce&&se!=="value"&&i(J,se,ce,ge,j,ue.children,le,$,ie)}"value"in te&&i(J,"value",X.value,te.value,j)}},N=(J,ue,X,te,le,$,j,se,ge)=>{const ce=ue.el=J?J.el:s(""),Ae=ue.anchor=J?J.anchor:s("");let{patchFlag:ye,dynamicChildren:Ee,slotScopeIds:Se}=ue;Se&&(se=se?se.concat(Se):Se),J==null?(r(ce,X,te),r(Ae,X,te),M(ue.children,X,Ae,le,$,j,se,ge)):ye>0&&ye&64&&Ee&&J.dynamicChildren?(k(J.dynamicChildren,Ee,X,le,$,j,se),(ue.key!=null||le&&ue===le.subTree)&&qx(J,ue,!0)):D(J,ue,X,Ae,le,$,j,se,ge)},E=(J,ue,X,te,le,$,j,se,ge)=>{ue.slotScopeIds=se,J==null?ue.shapeFlag&512?le.ctx.activate(ue,X,te,j,ge):P(ue,X,te,le,$,j,ge):_(J,ue,ge)},P=(J,ue,X,te,le,$,j)=>{const se=J.component=N7(J,te,le);if(Ap(J)&&(se.ctx.renderer=he),C7(se),se.asyncDep){if(le&&le.registerDep(se,I),!J.el){const ge=se.subTree=w(vo);x(null,ge,ue,X)}}else I(se,J,ue,X,le,$,j)},_=(J,ue,X)=>{const te=ue.component=J.component;if(PB(J,ue,X))if(te.asyncDep&&!te.asyncResolved){W(te,ue,X);return}else te.next=ue,MB(te.update),te.effect.dirty=!0,te.update();else ue.el=J.el,te.vnode=ue},I=(J,ue,X,te,le,$,j)=>{const se=()=>{if(J.isMounted){let{next:Ae,bu:ye,u:Ee,parent:Se,vnode:be}=J;{const _e=S7(J);if(_e){Ae&&(Ae.el=be.el,W(J,Ae,j)),_e.asyncDep.then(()=>{J.isUnmounted||se()});return}}let qe=Ae,Ce;Uc(J,!1),Ae?(Ae.el=be.el,W(J,Ae,j)):Ae=be,ye&&id(ye),(Ce=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&Ho(Ce,Se,Ae,be),Uc(J,!0);const Te=Im(J),Ne=J.subTree;J.subTree=Te,m(Ne,Te,f(Ne.el),q(Ne),J,le,$),Ae.el=Te.el,qe===null&&Bx(J,Te.el),Ee&&jr(Ee,le),(Ce=Ae.props&&Ae.props.onVnodeUpdated)&&jr(()=>Ho(Ce,Se,Ae,be),le)}else{let Ae;const{el:ye,props:Ee}=ue,{bm:Se,m:be,parent:qe}=J,Ce=du(ue);if(Uc(J,!1),Se&&id(Se),!Ce&&(Ae=Ee&&Ee.onVnodeBeforeMount)&&Ho(Ae,qe,ue),Uc(J,!0),ye&&ve){const Te=()=>{J.subTree=Im(J),ve(ye,J.subTree,J,le,null)};Ce?ue.type.__asyncLoader().then(()=>!J.isUnmounted&&Te()):Te()}else{const Te=J.subTree=Im(J);m(null,Te,X,te,J,le,$),ue.el=Te.el}if(be&&jr(be,le),!Ce&&(Ae=Ee&&Ee.onVnodeMounted)){const Te=ue;jr(()=>Ho(Ae,qe,Te),le)}(ue.shapeFlag&256||qe&&du(qe.vnode)&&qe.vnode.shapeFlag&256)&&J.a&&jr(J.a,le),J.isMounted=!0,ue=X=te=null}},ge=J.effect=new Ad(se,Fo,()=>wg(ce),J.scope),ce=J.update=()=>{ge.dirty&&ge.run()};ce.id=J.uid,Uc(J,!0),ce()},W=(J,ue,X)=>{ue.component=J;const te=J.vnode.props;J.vnode=ue,J.next=null,gD(J,ue.props,te,X),yD(J,ue.children,X),Zu(),wS(J),Bu()},D=(J,ue,X,te,le,$,j,se,ge=!1)=>{const ce=J&&J.children,Ae=J?J.shapeFlag:0,ye=ue.children,{patchFlag:Ee,shapeFlag:Se}=ue;if(Ee>0){if(Ee&128){ae(ce,ye,X,te,le,$,j,se,ge);return}else if(Ee&256){z(ce,ye,X,te,le,$,j,se,ge);return}}Se&8?(Ae&16&&ie(ce,le,$),ye!==ce&&u(X,ye)):Ae&16?Se&16?ae(ce,ye,X,te,le,$,j,se,ge):ie(ce,le,$,!0):(Ae&8&&u(X,""),Se&16&&M(ye,X,te,le,$,j,se,ge))},z=(J,ue,X,te,le,$,j,se,ge)=>{J=J||rd,ue=ue||rd;const ce=J.length,Ae=ue.length,ye=Math.min(ce,Ae);let Ee;for(Ee=0;EeAe?ie(J,le,$,!0,!1,ye):M(ue,X,te,le,$,j,se,ge,ye)},ae=(J,ue,X,te,le,$,j,se,ge)=>{let ce=0;const Ae=ue.length;let ye=J.length-1,Ee=Ae-1;for(;ce<=ye&&ce<=Ee;){const Se=J[ce],be=ue[ce]=ge?Ul(ue[ce]):Si(ue[ce]);if(La(Se,be))m(Se,be,X,null,le,$,j,se,ge);else break;ce++}for(;ce<=ye&&ce<=Ee;){const Se=J[ye],be=ue[Ee]=ge?Ul(ue[Ee]):Si(ue[Ee]);if(La(Se,be))m(Se,be,X,null,le,$,j,se,ge);else break;ye--,Ee--}if(ce>ye){if(ce<=Ee){const Se=Ee+1,be=SeEe)for(;ce<=ye;)Z(J[ce],le,$,!0),ce++;else{const Se=ce,be=ce,qe=new Map;for(ce=be;ce<=Ee;ce++){const Ze=ue[ce]=ge?Ul(ue[ce]):Si(ue[ce]);Ze.key!=null&&qe.set(Ze.key,ce)}let Ce,Te=0;const Ne=Ee-be+1;let _e=!1,Ke=0;const tt=new Array(Ne);for(ce=0;ce=Ne){Z(Ze,le,$,!0);continue}let nt;if(Ze.key!=null)nt=qe.get(Ze.key);else for(Ce=be;Ce<=Ee;Ce++)if(tt[Ce-be]===0&&La(Ze,ue[Ce])){nt=Ce;break}nt===void 0?Z(Ze,le,$,!0):(tt[nt-be]=ce+1,nt>=Ke?Ke=nt:_e=!0,m(Ze,ue[nt],X,null,le,$,j,se,ge),Te++)}const ke=_e?MD(tt):rd;for(Ce=ke.length-1,ce=Ne-1;ce>=0;ce--){const Ze=be+ce,nt=ue[Ze],xt=Ze+1{const{el:$,type:j,transition:se,children:ge,shapeFlag:ce}=J;if(ce&6){U(J.component.subTree,ue,X,te);return}if(ce&128){J.suspense.move(ue,X,te);return}if(ce&64){j.move(J,ue,X,he);return}if(j===Ve){r($,ue,X);for(let ye=0;yese.enter($),le);else{const{leave:ye,delayLeave:Ee,afterLeave:Se}=se,be=()=>r($,ue,X),qe=()=>{ye($,()=>{be(),Se&&Se()})};Ee?Ee($,be,qe):qe()}else r($,ue,X)},Z=(J,ue,X,te=!1,le=!1)=>{const{type:$,props:j,ref:se,children:ge,dynamicChildren:ce,shapeFlag:Ae,patchFlag:ye,dirs:Ee}=J;if(se!=null&&Rv(se,null,X,J,!0),Ae&256){ue.ctx.deactivate(J);return}const Se=Ae&1&&Ee,be=!du(J);let qe;if(be&&(qe=j&&j.onVnodeBeforeUnmount)&&Ho(qe,ue,J),Ae&6)Q(J.component,X,te);else{if(Ae&128){J.suspense.unmount(X,te);return}Se&&Ja(J,null,ue,"beforeUnmount"),Ae&64?J.type.remove(J,ue,X,le,he,te):ce&&($!==Ve||ye>0&&ye&64)?ie(ce,ue,X,!1,!0):($===Ve&&ye&384||!le&&Ae&16)&&ie(ge,ue,X),te&&B(J)}(be&&(qe=j&&j.onVnodeUnmounted)||Se)&&jr(()=>{qe&&Ho(qe,ue,J),Se&&Ja(J,null,ue,"unmounted")},X)},B=J=>{const{type:ue,el:X,anchor:te,transition:le}=J;if(ue===Ve){G(X,te);return}if(ue===hu){g(J);return}const $=()=>{o(X),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(J.shapeFlag&1&&le&&!le.persisted){const{leave:j,delayLeave:se}=le,ge=()=>j(X,$);se?se(J.el,$,ge):ge()}else $()},G=(J,ue)=>{let X;for(;J!==ue;)X=d(J),o(J),J=X;o(ue)},Q=(J,ue,X)=>{const{bum:te,scope:le,update:$,subTree:j,um:se}=J;te&&id(te),le.stop(),$&&($.active=!1,Z(j,J,ue,X)),se&&jr(se,ue),jr(()=>{J.isUnmounted=!0},ue),ue&&ue.pendingBranch&&!ue.isUnmounted&&J.asyncDep&&!J.asyncResolved&&J.suspenseId===ue.pendingId&&(ue.deps--,ue.deps===0&&ue.resolve())},ie=(J,ue,X,te=!1,le=!1,$=0)=>{for(let j=$;jJ.shapeFlag&6?q(J.component.subTree):J.shapeFlag&128?J.suspense.next():d(J.anchor||J.el),oe=(J,ue,X)=>{J==null?ue._vnode&&Z(ue._vnode,null,null,!0):m(ue._vnode||null,J,ue,null,null,null,X),wS(),gv(),ue._vnode=J},he={p:m,um:Z,m:U,r:B,mt:P,mc:M,pc:D,pbc:k,n:q,o:e};let me,ve;return t&&([me,ve]=t(he)),{render:oe,hydrate:me,createApp:mD(oe,me)}}function KA({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 Uc({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function b7(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function qx(e,t,n=!1){const r=e.children,o=t.children;if(wt(r)&&wt(o))for(let i=0;i>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function S7(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:S7(t)}const wD=e=>e.__isTeleport,sh=e=>e&&(e.disabled||e.disabled===""),WS=e=>typeof SVGElement<"u"&&e instanceof SVGElement,VS=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,T4=(e,t)=>{const n=e&&e.to;return sr(n)?t?t(n):null:n},LD={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,c,l){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:m,createComment:A}}=l,x=sh(t.props);let{shapeFlag:R,children:y,dynamicChildren:g}=t;if(e==null){const S=t.el=m(""),L=t.anchor=m("");h(S,n,r),h(L,n,r);const T=t.target=T4(t.props,p),M=t.targetAnchor=m("");T&&(h(M,T),a==="svg"||WS(T)?a="svg":(a==="mathml"||VS(T))&&(a="mathml"));const O=(k,F)=>{R&16&&u(y,k,F,o,i,a,s,c)};x?O(n,L):T&&O(T,M)}else{t.el=e.el;const S=t.anchor=e.anchor,L=t.target=e.target,T=t.targetAnchor=e.targetAnchor,M=sh(e.props),O=M?n:L,k=M?S:T;if(a==="svg"||WS(L)?a="svg":(a==="mathml"||VS(L))&&(a="mathml"),g?(d(e.dynamicChildren,g,O,o,i,a,s),qx(e,t,!0)):c||f(e,t,O,k,o,i,a,s,!1),x)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$1(t,n,S,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=T4(t.props,p);F&&$1(t,F,null,l,0)}else M&&$1(t,L,T,l,1)}M7(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:c,anchor:l,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),a&&i(l),s&16){const h=a||!sh(d);for(let p=0;p0?$o||rd:null,w7(),Tu>0&&$o&&$o.push(e),e}function ee(e,t,n,r,o,i){return L7(V(e,t,n,r,o,i,!0))}function we(e,t,n,r,o){return L7(w(e,t,n,r,o,!0))}function pc(e){return e?e.__v_isVNode===!0:!1}function La(e,t){return e.type===t.type&&e.key===t.key}function TD(e){}const Cg="__vInternal",O7=({key:e})=>e??null,Fm=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?sr(e)||lr(e)||Kt(e)?{i:Qr,r:e,k:t,f:!!n}:e:null);function V(e,t=null,n=null,r=0,o=null,i=e===Ve?0:1,a=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&O7(t),ref:t&&Fm(t),scopeId:Og,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Qr};return s?(tb(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=sr(n)?8:16),Tu>0&&!a&&$o&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&$o.push(c),c}const w=kD;function kD(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Dk)&&(e=vo),pc(e)){const s=ps(e,t,!0);return n&&tb(s,n),Tu>0&&!i&&$o&&(s.shapeFlag&6?$o[$o.indexOf(e)]=s:$o.push(s)),s.patchFlag|=-2,s}if(XD(e)&&(e=e.__vccOpts),t){t=T7(t);let{class:s,style:c}=t;s&&!sr(s)&&(t.class=$e(s)),Bn(c)&&(Vx(c)&&!wt(c)&&(c=ar({},c)),t.style=Le(c))}const a=sr(e)?1:Kk(e)?128:wD(e)?64:Bn(e)?4:Kt(e)?2:0;return V(e,t,n,r,o,a,i,!0)}function T7(e){return e?Vx(e)||Cg in e?ar({},e):e:null}function ps(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,s=t?k7(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&O7(s),ref:t&&t.ref?n&&o?wt(o)?o.concat(Fm(t)):[o,Fm(t)]:Fm(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ps(e.ssContent),ssFallback:e.ssFallback&&ps(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function We(e=" ",t=0){return w(Ou,null,e,t)}function ND(e,t){const n=w(hu,null,e);return n.staticCount=t,n}function Be(e="",t=!1){return t?(Y(),we(vo,null,e)):w(vo,null,e)}function Si(e){return e==null||typeof e=="boolean"?w(vo):wt(e)?w(Ve,null,e.slice()):typeof e=="object"?Ul(e):w(Ou,null,String(e))}function Ul(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ps(e)}function tb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(wt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),tb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Cg in t)?t._ctx=Qr:o===3&&Qr&&(Qr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Kt(t)?(t={default:t,_ctx:Qr},n=32):(t=String(t),r&64?(n=16,t=[We(t)]):n=8);e.children=t,e.shapeFlag|=n}function k7(...e){const t={};for(let n=0;nPr||Qr;let nb,N4;{const e=gk(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};nb=t("__VUE_INSTANCE_SETTERS__",n=>Pr=n),N4=t("__VUE_SSR_SETTERS__",n=>Rp=n)}const mc=e=>{nb(e),e.scope.on()},ac=()=>{Pr&&Pr.scope.off(),nb(null)};function P7(e){return e.vnode.shapeFlag&4}let Rp=!1;function C7(e,t=!1){t&&N4(t);const{props:n,children:r}=e.vnode,o=P7(e);vD(e,n,o,t),RD(e,r);const i=o?ID(e,t):void 0;return t&&N4(!1),i}function ID(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=vp(new Proxy(e.ctx,M4));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?F7(e):null;mc(e),Zu();const i=tl(r,e,0,[e.props,o]);if(Bu(),ac(),Nx(i)){if(i.then(ac,ac),t)return i.then(a=>{P4(e,a,t)}).catch(a=>{Du(a,e,0)});e.asyncDep=i}else P4(e,i,t)}else I7(e,t)}function P4(e,t,n){Kt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Bn(t)&&(e.setupState=Qx(t)),I7(e,n)}let yv,C4;function FD(e){yv=e,C4=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,GB))}}const _D=()=>!yv;function I7(e,t,n){const r=e.type;if(!e.render){if(!t&&yv&&!r.render){const o=r.template||$x(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:c}=r,l=ar(ar({isCustomElement:i,delimiters:s},a),c);r.render=yv(o,l)}}e.render=r.render||Fo,C4&&C4(e)}{mc(e),Zu();try{cD(e)}finally{Bu(),ac()}}}function ED(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return oi(e,"get","$attrs"),t[n]}}))}function F7(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ED(e)},slots:e.slots,emit:e.emit,expose:t}}function Ig(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qx(vp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ah)return ah[n](e)},has(t,n){return n in t||n in ah}}))}function I4(e,t=!0){return Kt(e)?e.displayName||e.name:e.name||t&&e.__name}function XD(e){return Kt(e)&&"__vccOpts"in e}const Me=(e,t)=>lB(e,t,Rp);function _7(e,t,n){const r=arguments.length;return r===2?Bn(t)&&!wt(t)?pc(t)?w(e,null,[t]):w(e,t):w(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pc(n)&&(n=[n]),w(e,t,n))}function WD(){}function VD(e,t,n,r){const o=n[r];if(o&&E7(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function E7(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&$o&&$o.push(e),!0}const X7="3.4.3",UD=Fo,YD=xB,QD=void 0,ZD=Fo,BD={createComponentInstance:N7,setupComponent:C7,renderComponentRoot:Im,setCurrentRenderingInstance:Yh,isVNode:pc,normalizeVNode:Si},DD=BD,KD=null,HD=null,GD=null,zD="http://www.w3.org/2000/svg",JD="http://www.w3.org/1998/Math/MathML",Yl=typeof document<"u"?document:null,US=Yl&&Yl.createElement("template"),$D={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Yl.createElementNS(zD,e):t==="mathml"?Yl.createElementNS(JD,e):Yl.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Yl.createTextNode(e),createComment:e=>Yl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{US.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const s=US.content;if(r==="svg"||r==="mathml"){const c=s.firstChild;for(;c.firstChild;)s.appendChild(c.firstChild);s.removeChild(c)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ml="transition",d0="animation",yd=Symbol("_vtc"),ku=(e,{slots:t})=>_7(qk,V7(e),t);ku.displayName="Transition";const W7={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jD=ku.props=ar({},zx,W7),Yc=(e,t=[])=>{wt(e)?e.forEach(n=>n(...t)):e&&e(...t)},YS=e=>e?wt(e)?e.some(t=>t.length>1):e.length>1:!1;function V7(e){const t={};for(const N in e)N in W7||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=a,appearToClass:u=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=qD(o),m=p&&p[0],A=p&&p[1],{onBeforeEnter:x,onEnter:R,onEnterCancelled:y,onLeave:g,onLeaveCancelled:S,onBeforeAppear:L=x,onAppear:T=R,onAppearCancelled:M=y}=t,O=(N,E,P)=>{Nl(N,E?u:s),Nl(N,E?l:a),P&&P()},k=(N,E)=>{N._isLeaving=!1,Nl(N,f),Nl(N,h),Nl(N,d),E&&E()},F=N=>(E,P)=>{const _=N?T:R,I=()=>O(E,N,P);Yc(_,[E,I]),QS(()=>{Nl(E,N?c:i),Us(E,N?u:s),YS(_)||ZS(E,r,m,I)})};return ar(t,{onBeforeEnter(N){Yc(x,[N]),Us(N,i),Us(N,a)},onBeforeAppear(N){Yc(L,[N]),Us(N,c),Us(N,l)},onEnter:F(!1),onAppear:F(!0),onLeave(N,E){N._isLeaving=!0;const P=()=>k(N,E);Us(N,f),Y7(),Us(N,d),QS(()=>{N._isLeaving&&(Nl(N,f),Us(N,h),YS(g)||ZS(N,r,A,P))}),Yc(g,[N,P])},onEnterCancelled(N){O(N,!1),Yc(y,[N])},onAppearCancelled(N){O(N,!0),Yc(M,[N])},onLeaveCancelled(N){k(N),Yc(S,[N])}})}function qD(e){if(e==null)return null;if(Bn(e))return[HA(e.enter),HA(e.leave)];{const t=HA(e);return[t,t]}}function HA(e){return pv(e)}function Us(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[yd]||(e[yd]=new Set)).add(t)}function Nl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[yd];n&&(n.delete(t),n.size||(e[yd]=void 0))}function QS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let eK=0;function ZS(e,t,n,r){const o=e._endId=++eK,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:c}=U7(e,t);if(!a)return r();const l=a+"end";let u=0;const f=()=>{e.removeEventListener(l,d),i()},d=h=>{h.target===e&&++u>=c&&f()};setTimeout(()=>{u(n[p]||"").split(", "),o=r(`${Ml}Delay`),i=r(`${Ml}Duration`),a=BS(o,i),s=r(`${d0}Delay`),c=r(`${d0}Duration`),l=BS(s,c);let u=null,f=0,d=0;t===Ml?a>0&&(u=Ml,f=a,d=i.length):t===d0?l>0&&(u=d0,f=l,d=c.length):(f=Math.max(a,l),u=f>0?a>l?Ml:d0:null,d=u?u===Ml?i.length:c.length:0);const h=u===Ml&&/\b(transform|all)(,|$)/.test(r(`${Ml}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function BS(e,t){for(;e.lengthDS(n)+DS(e[r])))}function DS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Y7(){return document.body.offsetHeight}function tK(e,t,n){const r=e[yd];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const rb=Symbol("_vod"),il={beforeMount(e,{value:t},{transition:n}){e[rb]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):h0(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),h0(e,!0),r.enter(e)):r.leave(e,()=>{h0(e,!1)}):h0(e,t))},beforeUnmount(e,{value:t}){h0(e,t)}};function h0(e,t){e.style.display=t?e[rb]:"none"}function nK(){il.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Q7=Symbol("");function rK(e){const t=cl();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>_4(i,o))},r=()=>{const o=e(t.proxy);F4(t.subTree,o),n(o)};Jk(r),Gt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),On(()=>o.disconnect())})}function F4(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{F4(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)_4(e.el,t);else if(e.type===Ve)e.children.forEach(n=>F4(n,t));else if(e.type===hu){let{el:n,anchor:r}=e;for(;n&&(_4(n,t),n!==r);)n=n.nextSibling}}function _4(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[Q7]=r}}function oK(e,t,n){const r=e.style,o=sr(n);if(n&&!o){if(t&&!sr(t))for(const i in t)n[i]==null&&E4(r,i,"");for(const i in n)E4(r,i,n[i])}else{const i=r.display;if(o){if(t!==n){const a=r[Q7];a&&(n+=";"+a),r.cssText=n}}else t&&e.removeAttribute("style");rb in e&&(r.display=i)}}const KS=/\s*!important$/;function E4(e,t,n){if(wt(n))n.forEach(r=>E4(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=iK(e,t);KS.test(n)?e.setProperty(Hi(r),n.replace(KS,""),"important"):e[r]=n}}const HS=["Webkit","Moz","ms"],GA={};function iK(e,t){const n=GA[t];if(n)return n;let r=_o(t);if(r!=="filter"&&r in e)return GA[t]=r;r=pp(r);for(let o=0;ozA||(fK.then(()=>zA=0),zA=Date.now());function hK(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ni(pK(r,n.value),t,5,[r])};return n.value=e,n.attached=dK(),n}function pK(e,t){if(wt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const $S=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mK=(e,t,n,r,o,i,a,s,c)=>{const l=o==="svg";t==="class"?tK(e,r,l):t==="style"?oK(e,n,r):hp(t)?Tx(t)||cK(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vK(e,t,r,l))?sK(e,t,r,i,a,s,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),aK(e,t,r,l))};function vK(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&$S(t)&&Kt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return $S(t)&&sr(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Z7(e,t){const n=Fe(e);class r extends Fg{constructor(i){super(n,i,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const gK=e=>Z7(e,eN),AK=typeof HTMLElement<"u"?HTMLElement:class{};class Fg extends AK{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Vr(()=>{this._connected||(bd(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const o of r)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:i,styles:a}=r;let s;if(i&&!wt(i))for(const c in i){const l=i[c];(l===Number||l&&l.type===Number)&&(c in this._props&&(this._props[c]=pv(this._props[c])),(s||(s=Object.create(null)))[_o(c)]=!0)}this._numberProps=s,o&&this._resolveProps(r),this._applyStyles(a),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=wt(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(_o))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=_o(t);this._numberProps&&this._numberProps[r]&&(n=pv(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Hi(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Hi(t),n+""):n||this.removeAttribute(Hi(t))))}_update(){bd(this._createVNode(),this.shadowRoot)}_createVNode(){const t=w(this._def,ar({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,a)=>{this.dispatchEvent(new CustomEvent(i,{detail:a}))};n.emit=(i,...a)=>{r(i,a),Hi(i)!==i&&r(Hi(i),a)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof Fg){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function RK(e="$style"){{const t=cl();if(!t)return Yn;const n=t.type.__cssModules;if(!n)return Yn;const r=n[e];return r||Yn}}const B7=new WeakMap,D7=new WeakMap,xv=Symbol("_moveCb"),jS=Symbol("_enterCb"),K7={name:"TransitionGroup",props:ar({},jD,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=cl(),r=Gx();let o,i;return Pg(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!wK(o[0].el,n.vnode.el,a))return;o.forEach(bK),o.forEach(SK);const s=o.filter(MK);Y7(),s.forEach(c=>{const l=c.el,u=l.style;Us(l,a),u.transform=u.webkitTransform=u.transitionDuration="";const f=l[xv]=d=>{d&&d.target!==l||(!d||/transform$/.test(d.propertyName))&&(l.removeEventListener("transitionend",f),l[xv]=null,Nl(l,a))};l.addEventListener("transitionend",f)})}),()=>{const a=mn(e),s=V7(a);let c=a.tag||Ve;o=i,i=t.default?kg(t.default()):[];for(let l=0;ldelete e.mode;K7.props;const xK=K7;function bK(e){const t=e.el;t[xv]&&t[xv](),t[jS]&&t[jS]()}function SK(e){D7.set(e,e.el.getBoundingClientRect())}function MK(e){const t=B7.get(e),n=D7.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function wK(e,t,n){const r=e.cloneNode(),o=e[yd];o&&o.forEach(s=>{s.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=U7(r);return i.removeChild(r),a}const vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return wt(t)?n=>id(t,n):t};function LK(e){e.target.composing=!0}function qS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ji=Symbol("_assign"),Dh={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ji]=vc(o);const i=r||o.props&&o.props.type==="number";Ks(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=hv(s)),e[Ji](s)}),n&&Ks(e,"change",()=>{e.value=e.value.trim()}),t||(Ks(e,"compositionstart",LK),Ks(e,"compositionend",qS),Ks(e,"change",qS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e[Ji]=vc(i),e.composing)return;const a=o||e.type==="number"?hv(e.value):e.value,s=t??"";a!==s&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===s)||(e.value=s))}},ob={deep:!0,created(e,t,n){e[Ji]=vc(n),Ks(e,"change",()=>{const r=e._modelValue,o=xd(e),i=e.checked,a=e[Ji];if(wt(r)){const s=xg(r,o),c=s!==-1;if(i&&!c)a(r.concat(o));else if(!i&&c){const l=[...r];l.splice(s,1),a(l)}}else if(Qu(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(G7(e,i))})},mounted:eM,beforeUpdate(e,t,n){e[Ji]=vc(n),eM(e,t,n)}};function eM(e,{value:t,oldValue:n},r){e._modelValue=t,wt(t)?e.checked=xg(t,r.props.value)>-1:Qu(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=hc(t,G7(e,!0)))}const ib={created(e,{value:t},n){e.checked=hc(t,n.props.value),e[Ji]=vc(n),Ks(e,"change",()=>{e[Ji](xd(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ji]=vc(r),t!==n&&(e.checked=hc(t,r.props.value))}},H7={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Qu(t);Ks(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?hv(xd(a)):xd(a));e[Ji](e.multiple?o?new Set(i):i:i[0])}),e[Ji]=vc(r)},mounted(e,{value:t}){tM(e,t)},beforeUpdate(e,t,n){e[Ji]=vc(n)},updated(e,{value:t}){tM(e,t)}};function tM(e,t){const n=e.multiple;if(!(n&&!wt(t)&&!Qu(t))){for(let r=0,o=e.options.length;r-1:i.selected=t.has(a);else if(hc(xd(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function xd(e){return"_value"in e?e._value:e.value}function G7(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const z7={created(e,t,n){j1(e,t,n,null,"created")},mounted(e,t,n){j1(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){j1(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){j1(e,t,n,r,"updated")}};function J7(e,t){switch(e){case"SELECT":return H7;case"TEXTAREA":return Dh;default:switch(t){case"checkbox":return ob;case"radio":return ib;default:return Dh}}}function j1(e,t,n,r,o){const a=J7(e.tagName,n.props&&n.props.type)[o];a&&a(e,t,n,r)}function OK(){Dh.getSSRProps=({value:e})=>({value:e}),ib.getSSRProps=({value:e},t)=>{if(t.props&&hc(t.props.value,e))return{checked:!0}},ob.getSSRProps=({value:e},t)=>{if(wt(e)){if(t.props&&xg(e,t.props.value)>-1)return{checked:!0}}else if(Qu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},z7.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=J7(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const TK=["ctrl","shift","alt","meta"],kK={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>TK.some(n=>e[`${n}Key`]&&!t.includes(n))},Wt=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=Hi(o.key);if(t.some(a=>a===i||NK[a]===i))return e(o)})},$7=ar({patchProp:mK},$D);let ch,nM=!1;function j7(){return ch||(ch=R7($7))}function q7(){return ch=nM?ch:y7($7),nM=!0,ch}const bd=(...e)=>{j7().render(...e)},eN=(...e)=>{q7().hydrate(...e)},tN=(...e)=>{const t=j7().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=rN(r);if(!o)return;const i=t._component;!Kt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,nN(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},PK=(...e)=>{const t=q7().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=rN(r);if(o)return n(o,!0,nN(o))},t};function nN(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rN(e){return sr(e)?document.querySelector(e):e}let rM=!1;const CK=()=>{rM||(rM=!0,OK(),nK())},IK=()=>{},FK=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:qk,BaseTransitionPropsValidators:zx,Comment:vo,DeprecationTypes:GD,EffectScope:Cx,ErrorCodes:yB,ErrorTypeStrings:YD,Fragment:Ve,KeepAlive:BB,ReactiveEffect:Ad,Static:hu,Suspense:FB,Teleport:eb,Text:Ou,TrackOpTypes:gB,Transition:ku,TransitionGroup:xK,TriggerOpTypes:AB,VueElement:Fg,assertNumber:RB,callWithAsyncErrorHandling:Ni,callWithErrorHandling:tl,camelize:_o,capitalize:pp,cloneVNode:ps,compatUtils:HD,compile:IK,computed:Me,createApp:tN,createBlock:we,createCommentVNode:Be,createElementBlock:ee,createElementVNode:V,createHydrationRenderer:y7,createPropsRestProxy:sD,createRenderer:R7,createSSRApp:PK,createSlots:KB,createStaticVNode:ND,createTextVNode:We,createVNode:w,customRef:Wk,defineAsyncComponent:QB,defineComponent:Fe,defineCustomElement:Z7,defineEmits:JB,defineExpose:$B,defineModel:eD,defineOptions:jB,defineProps:zB,defineSSRCustomElement:gK,defineSlots:qB,devtools:QD,effect:UZ,effectScope:Ix,getCurrentInstance:cl,getCurrentScope:Fx,getTransitionRawChildren:kg,guardReactiveProps:T7,h:_7,handleError:Du,hasInjectionContext:h7,hydrate:eN,initCustomFormatter:WD,initDirectivesForSSR:CK,inject:jo,isMemoSame:E7,isProxy:Vx,isReactive:ls,isReadonly:wu,isRef:lr,isRuntimeOnly:_D,isShallow:nu,isVNode:pc,markRaw:vp,mergeDefaults:iD,mergeModels:aD,mergeProps:k7,nextTick:Vr,normalizeClass:$e,normalizeProps:_Z,normalizeStyle:Le,onActivated:t7,onBeforeMount:Jx,onBeforeUnmount:Vd,onBeforeUpdate:o7,onDeactivated:n7,onErrorCaptured:l7,onMounted:Gt,onRenderTracked:s7,onRenderTriggered:a7,onScopeDispose:xk,onServerPrefetch:i7,onUnmounted:On,onUpdated:Pg,openBlock:Y,popScopeId:an,provide:Ku,proxyRefs:Qx,pushScopeId:on,queuePostFlushCb:vv,reactive:mp,readonly:Wx,ref:pe,registerRuntimeCompiler:FD,render:bd,renderList:it,renderSlot:cr,resolveComponent:xe,resolveDirective:Mn,resolveDynamicComponent:xs,resolveFilter:KD,resolveTransitionHooks:Rd,setBlockTracking:k4,setDevtoolsHook:ZD,setTransitionHooks:Lu,shallowReactive:_k,shallowReadonly:sB,shallowRef:cB,ssrContextKey:Gk,ssrUtils:DD,stop:YZ,toDisplayString:gt,toHandlerKey:ih,toHandlers:HB,toRaw:mn,toRef:Wd,toRefs:Vk,toValue:dB,transformVNodeArgs:TD,triggerRef:fB,unref:H,useAttrs:rD,useCssModule:RK,useCssVars:rK,useModel:oD,useSSRContext:zk,useSlots:nD,useTransitionState:Gx,vModelCheckbox:ob,vModelDynamic:z7,vModelRadio:ib,vModelSelect:H7,vModelText:Dh,vShow:il,version:X7,warn:UD,watch:Tt,watchEffect:Tg,watchPostEffect:Jk,watchSyncEffect:$k,withAsyncContext:lD,withCtx:re,withDefaults:tD,withDirectives:De,withKeys:gc,withMemo:VD,withModifiers:Wt,withScopeId:OB},Symbol.toStringTag,{value:"Module"}));var _K=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT @@ -71,7 +71,7 @@ From previous: `);return this._state!==null&&(this._stack=t),t}finally{J4=!1}}}, background-color: rgba(255, 255, 255, 0); transition: all 1s ease-in-out; align-items: center; - `,document.body.appendChild(Ua));const r=w(cq,n,null),o=document.createElement("div");r.appContext=e.ctx||Sn._context||null,r.props.onClose=e.onClose,r.props.onDestroy=()=>{Ua&&Ua.childNodes.length<=1&&(Ua.remove(),Ua=null),bd(null,o)},bd(r,o),Ua.appendChild(o.firstElementChild);const i={id:t,close:()=>{var a,s;return(s=(a=r==null?void 0:r.component)==null?void 0:a.exposed)==null?void 0:s.close()}};return h3.push(i),i};Sn.success=(e,t)=>Sn({...t,type:"success",message:e});Sn.info=(e,t)=>Sn({...t,type:"info",message:e});Sn.warning=(e,t)=>Sn({...t,type:"warning",message:e});Sn.error=(e,t)=>Sn({...t,type:"error",message:e});Sn.closeAll=function(){for(let e=h3.length-1;e>=0;e--)h3[e].close()};const kb=e=>{const n=e.replace(/[\n\r]+/g,"
").split("
");let r="";for(const o of n)o&&(r+=`
${o}
`);return r},dq=e=>new Promise(t=>{const n=document.createElement("img");n.src=e,n.style.opacity="0",document.body.appendChild(n),n.onload=()=>{const r=n.clientWidth,o=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),t({width:r,height:o})},n.onerror=()=>{n.onload=null,n.onerror=null}}),zu=e=>new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{t(n.result)}),n.readAsDataURL(e)}),Ht=1e3;var cn=(e=>(e.ROUND_RECT="roundRect",e.ROUND_RECT_DIAGONAL="roundRectDiagonal",e.ROUND_RECT_SINGLE="roundRectSingle",e.ROUND_RECT_SAMESIDE="roundRectSameSide",e.CUT_RECT_DIAGONAL="cutRectDiagonal",e.CUT_RECT_SINGLE="cutRectSingle",e.CUT_RECT_SAMESIDE="cutRectSameSide",e.CUT_ROUND_RECT="cutRoundRect",e.MESSAGE="message",e.ROUND_MESSAGE="roundMessage",e.L="L",e.RING_RECT="ringRect",e.PLUS="plus",e.TRIANGLE="triangle",e.PARALLELOGRAM_LEFT="parallelogramLeft",e.PARALLELOGRAM_RIGHT="parallelogramRight",e.TRAPEZOID="trapezoid",e.BULLET="bullet",e.INDICATOR="indicator",e))(cn||{}),Nt=(e=>(e.TEXT="text",e.IMAGE="image",e.SHAPE="shape",e.LINE="line",e.CHART="chart",e.TABLE="table",e.LATEX="latex",e.VIDEO="video",e.AUDIO="audio",e))(Nt||{});const Ju={[cn.ROUND_RECT]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${r} 0 L ${e-r} 0 Q ${e} 0 ${e} ${r} L ${e} ${t-r} Q ${e} ${t} ${e-r} ${t} L ${r} ${t} Q 0 ${t} 0 ${t-r} L 0 ${r} Q 0 0 ${r} 0 Z`}},[cn.CUT_RECT_DIAGONAL]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${t-r} L 0 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} L ${r} ${t} Z`}},[cn.CUT_RECT_SINGLE]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${t} L 0 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} Z`}},[cn.CUT_RECT_SAMESIDE]:{editable:!0,defaultValue:.2,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${r} L ${r} 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} L 0 ${t} Z`}},[cn.ROUND_RECT_DIAGONAL]:{editable:!0,defaultValue:.125,range:[0,1],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${r} 0 L ${e} 0 L ${e} ${t-r} Q ${e} ${t} ${e-r} ${t} L 0 ${t} L 0 ${r} Q 0 0 ${r} 0 Z`}},[cn.ROUND_RECT_SINGLE]:{editable:!0,defaultValue:.125,range:[0,1],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 0 L ${e-r} 0 Q ${e} 0 ${e} ${r} L ${e} ${t} L 0 ${t} L 0 0 Z`}},[cn.ROUND_RECT_SAMESIDE]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${r} Q 0 0 ${r} 0 L ${e-r} 0 Q ${e} 0 ${e} ${r} L ${e} ${t} L 0 ${t} Z`}},[cn.CUT_ROUND_RECT]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${r} 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} L 0 ${t} L 0 ${r} Q 0 0 ${r} 0 Z`}},[cn.MESSAGE]:{formula:(e,t)=>{const n=e*.2,r=t*.2;return`M 0 0 L ${e} 0 L ${e} ${t-r} L ${e/2} ${t-r} L ${e/2-n} ${t} L ${e/2-n} ${t-r} L 0 ${t-r} Z`}},[cn.ROUND_MESSAGE]:{formula:(e,t)=>{const n=Math.min(e,t)*.125,r=e*.2,o=t*.2;return`M 0 ${n} Q 0 0 ${n} 0 L ${e-n} 0 Q ${e} 0 ${e} ${n} L ${e} ${t-n-o} Q ${e} ${t-o} ${e-n} ${t-o} L ${e/2} ${t-o} L ${e/2-r} ${t} L ${e/2-r} ${t-o} L ${n} ${t-o} Q 0 ${t-o} 0 ${t-n-o} L 0 ${n} Z`}},[cn.L]:{editable:!0,defaultValue:.25,range:[.1,.9],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 0 L 0 ${t} L ${e} ${t} L ${e} ${t-r} L ${r} ${t-r} L ${r} 0 Z`}},[cn.RING_RECT]:{editable:!0,defaultValue:.25,range:[.1,.45],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 0 ${e} 0 ${e} ${t} L 0 ${t} L 0 0 Z M ${r} ${r} L ${r} ${t-r} L ${e-r} ${t-r} L ${e-r} ${r} Z`}},[cn.PLUS]:{editable:!0,defaultValue:.25,range:[.1,.9],relative:"center",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${e/2-r/2} 0 L ${e/2-r/2} ${t/2-r/2} L 0 ${t/2-r/2} L 0 ${t/2+r/2} L ${e/2-r/2} ${t/2+r/2} L ${e/2-r/2} ${t} L ${e/2+r/2} ${t} L ${e/2+r/2} ${t/2+r/2} L ${e} ${t/2+r/2} L ${e} ${t/2-r/2} L ${e/2+r/2} ${t/2-r/2} L ${e/2+r/2} 0 Z`}},[cn.TRIANGLE]:{editable:!0,defaultValue:.5,range:[0,1],relative:"left",getBaseSize:e=>e,formula:(e,t,n)=>`M ${e*n} 0 L 0 ${t} L ${e} ${t} Z`},[cn.PARALLELOGRAM_LEFT]:{editable:!0,defaultValue:.25,range:[0,.9],relative:"left",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M ${r} 0 L ${e} 0 L ${e-r} ${t} L 0 ${t} Z`}},[cn.PARALLELOGRAM_RIGHT]:{editable:!0,defaultValue:.25,range:[0,.9],relative:"right",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M 0 0 L ${e-r} 0 L ${e} ${t} L ${r} ${t} Z`}},[cn.TRAPEZOID]:{editable:!0,defaultValue:.25,range:[0,.5],relative:"left",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M ${r} 0 L ${e-r} 0 L ${e} ${t} L 0 ${t} Z`}},[cn.BULLET]:{editable:!0,defaultValue:.2,range:[0,1],relative:"top",getBaseSize:(e,t)=>t,formula:(e,t,n)=>{const r=t*n;return`M ${e/2} 0 L 0 ${r} L 0 ${t} L ${e} ${t} L ${e} ${r} Z`}},[cn.INDICATOR]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M ${e} ${t/2} L ${e-r} 0 L 0 0 L ${r} ${t/2} L 0 ${t} L ${e-r} ${t} Z`}}},Nb=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",pptxShapeType:"rect"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z",pathFormula:cn.ROUND_RECT,pptxShapeType:"roundRect"},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z",pathFormula:cn.CUT_RECT_SINGLE,pptxShapeType:"snip1Rect"},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:cn.CUT_RECT_SAMESIDE,pptxShapeType:"snip2SameRect"},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z",pathFormula:cn.CUT_RECT_DIAGONAL,pptxShapeType:"snip2DiagRect"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:cn.CUT_ROUND_RECT,pptxShapeType:"snipRoundRect"},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:cn.ROUND_RECT_SINGLE,pptxShapeType:"round1Rect"},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:cn.ROUND_RECT_SAMESIDE,pptxShapeType:"round2SameRect"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 200 150 Q 200 200 150 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:cn.ROUND_RECT_DIAGONAL,pptxShapeType:"round2DiagRect"},{viewBox:[200,200],path:"M 0 80 L 60 0 L 100 40 L 180 20 L 200 120 L 160 200 L 0 200 L 60 140 Z",title:"任意多边形"}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",pptxShapeType:"ellipse"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:cn.TRIANGLE,pptxShapeType:"triangle"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 70 20 L 0 160 Q 0 200 40 200 L 160 200 Q 200 200 200 160 L 130 20 Q 100 -20 70 20 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:cn.PARALLELOGRAM_LEFT,pptxShapeType:"parallelogram"},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:cn.PARALLELOGRAM_RIGHT},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:cn.TRAPEZOID,pptxShapeType:"trapezoid"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z",pptxShapeType:"diamond"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:cn.BULLET},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:cn.INDICATOR},{viewBox:[200,200],path:"M 0 0 C 80 20 120 20 200 0 C 180 80 180 120 200 200 C 80 180 120 180 0 200 C 20 120 20 80 0 0 Z"},{viewBox:[200,200],path:"M 10 10 C 60 0 140 0 190 10 C 200 60 200 140 190 190 C 140 200 60 200 10 190 C 0 140 0 60 10 10 Z"},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z",pptxShapeType:"pie"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z",pptxShapeType:"chord"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z",pptxShapeType:"teardrop"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z",pptxShapeType:"pentagon"},{viewBox:[200,200],path:"M 40 0 L 160 0 L 200 100 L 160 200 L 40 200 L 0 100 Z",pptxShapeType:"hexagon"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z",pptxShapeType:"octagon"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:cn.L},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:cn.RING_RECT},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pathFormula:cn.PLUS},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:cn.MESSAGE},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:cn.ROUND_MESSAGE},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 120 80 L 200 100 L 120 120 L 100 200 L 80 120 L 0 100 L 80 80 L 100 0 Z",pptxShapeType:"star4"},{viewBox:[1024,1024],path:"M1018.67652554 400.05983681l-382.95318779-5.89158658L512 34.78141155 388.27666225 394.16825023l-382.95318779 5.89158658L311.68602415 629.83174977l-117.83174978 365.27842665 312.25413766-223.88032637 312.25413904 223.88032637-117.83175116-365.27842665 318.14572563-229.77191296z",pptxShapeType:"star5",special:!0},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 140 60 L 200 60 L 160 100 L 200 140 L 140 140 L 100 200 L 60 140 L 0 140 L 40 100 L 0 60 L 60 60 L 100 0 Z",pptxShapeType:"star6"},{viewBox:[200,200],path:"M 100 0 L 80 40 L 20 20 L 40 80 L 0 100 L 40 120 L 20 180 L 80 160 L 100 200 L 120 160 L 180 180 L 160 120 L 200 100 L 160 80 L 180 20 L 120 40 L 100 0 Z"},{viewBox:[200,200],path:"M 200 0 C 80 40 80 160 200 200 C -60 200 -60 0 200 0 Z"}]},{type:"箭头",children:[{viewBox:[200,200],path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z",pptxShapeType:"upArrow"},{viewBox:[200,200],path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z",pptxShapeType:"downArrow"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z",pptxShapeType:"leftArrow"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"rightArrow"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z",pptxShapeType:"upDownArrow"},{viewBox:[200,200],path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z",pptxShapeType:"leftRightArrow"},{viewBox:[200,200],path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"notchedRightArrow"},{viewBox:[200,200],path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:[200,200],path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z",pptxShapeType:"chevron"},{viewBox:[200,200],path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:[200,200],path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z",pptxShapeType:"homePlate"},{viewBox:[200,200],path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:[1024,1024],path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:[1024,1024],path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:[1024,1024],path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:[1024,1024],path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:[1024,1024],path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:[1024,1024],path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:[1024,1024],path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:[1024,1024],path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:[1024,1024],path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:[1024,1024],path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:[1024,1024],path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:[1024,1024],path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:[1024,1024],path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:[1024,1024],path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:[1024,1024],path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:[1024,1024],path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:[1024,1024],path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:[1024,1024],path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0},{viewBox:[1024,1024],path:"M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z",special:!0},{viewBox:[1024,1024],path:"M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z",special:!0},{viewBox:[1024,1024],path:"M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m220.16 343.26755556l-239.616 332.23111111c-14.44977778 20.13866667-44.37333333 20.13866667-58.82311111 0L291.84 481.16622222c-4.32355555-6.03022222 0-14.44977778 7.39555555-14.44977777h53.36177778c11.60533333 0 22.64177778 5.57511111 29.46844445 15.13244444l81.00977777 112.41244444 178.85866667-248.03555555c6.82666667-9.44355555 17.74933333-15.13244445 29.46844445-15.13244445H724.76444445c7.39555555 0 11.71911111 8.41955555 7.39555555 14.44977778z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h418.70222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m188.18844445 703.37422223l-75.09333334-0.34133333L512 570.48177778l-112.98133333 134.71288889-75.20711112 0.34133333c-5.00622222 0-9.10222222-3.98222222-9.10222222-9.10222222 0-2.16177778 0.79644445-4.20977778 2.16177778-5.91644445l148.02488889-176.35555555L316.87111111 337.92c-1.36533333-1.70666667-2.16177778-3.75466667-2.16177778-5.91644445 0-5.00622222 4.096-9.10222222 9.10222222-9.10222222l75.20711112 0.34133334L512 458.06933333l112.98133333-134.71288888 75.09333334-0.34133334c5.00622222 0 9.10222222 3.98222222 9.10222222 9.10222222 0 2.16177778-0.79644445 4.20977778-2.16177778 5.91644445L559.21777778 514.27555555l147.91111111 176.35555556c1.36533333 1.70666667 2.16177778 3.75466667 2.16177778 5.91644444 0 5.00622222-4.096 9.10222222-9.10222222 9.10222223z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H548.40888889v172.94222222c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222h-54.61333334c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V548.40888889H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h172.94222222V302.64888889c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h54.61333334c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v172.94222222h172.94222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m163.95377778 517.57511112L427.46311111 700.64355555c-1.59288889 1.13777778-3.41333333 1.70666667-5.34755556 1.70666667-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V331.88977778c0-1.93422222 0.56888889-3.75466667 1.70666667-5.34755556 2.95822222-4.096 8.64711111-5.00622222 12.74311111-2.048L675.95377778 505.17333333c0.79644445 0.56888889 1.47911111 1.25155555 2.048 2.048 2.95822222 3.98222222 2.048 9.67111111-2.048 12.62933334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m200.81777778 666.39644445l-32.54044445 44.37333333c-2.95822222 4.096-8.64711111 4.89244445-12.74311111 1.93422222L479.34577778 577.76355555c-2.38933333-1.70666667-3.75466667-4.43733333-3.75466667-7.39555555V257.13777778c0-5.00622222 4.096-9.10222222 9.10222222-9.10222223h54.72711112c5.00622222 0 9.10222222 4.096 9.10222222 9.10222223v281.6l162.24711111 117.30488889c4.096 2.84444445 5.00622222 8.53333333 2.048 12.62933333z",special:!0},{viewBox:[1024,1024],path:"M981.10577778 314.48177778c-25.6-61.09866667-62.464-115.93955555-109.34044445-163.04355556-46.87644445-46.99022222-101.60355555-83.968-162.70222222-109.568C646.59911111 15.58755555 580.38044445 2.27555555 512 2.27555555h-2.27555555c-68.83555555 0.34133333-135.39555555 13.99466667-198.08711112 40.84622223-60.52977778 25.94133333-114.80177778 62.80533333-161.22311111 109.79555555-46.42133333 46.99022222-82.83022222 101.60355555-108.08888889 162.47466667C16.27022222 378.42488889 3.072 445.44 3.41333333 514.38933333c0.34133333 78.96177778 19.22844445 157.35466667 54.49955556 227.44177778v172.94222222c0 28.89955555 23.43822222 52.33777778 52.224 52.33777778h172.71466666c69.97333333 35.38488889 148.13866667 54.272 226.98666667 54.61333334h2.38933333c68.03911111 0 133.91644445-13.19822222 196.03911112-39.02577778 60.75733333-25.37244445 115.37066667-61.78133333 162.13333333-108.31644445 46.87644445-46.53511111 83.74044445-100.92088889 109.568-161.56444444 26.73777778-62.80533333 40.39111111-129.59288889 40.73244445-198.54222223 0.22755555-69.29066667-13.19822222-136.53333333-39.59466667-199.79377777zM284.89955555 566.61333333c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955556 54.61333333-24.34844445 54.61333333-54.49955556 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955556-54.61333333s24.46222222-54.61333333 54.49955556-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM745.4750693 325.8561164l-267.95558363 371.52436096c-16.15876501 22.52048353-49.62140436 22.52048353-65.78016939 0L253.07805667 477.51948567c-4.83490607-6.74342161 0-16.15876501 8.27023406-16.15876499h59.67291961c12.97790576 0 25.31963967 6.23448413 32.95370188 16.92217123l90.59087157 125.70755774 200.01242995-277.37092701c7.63406221-10.56045272 19.84856175-16.92217125 32.95370189-16.92217124H737.20483524c8.27023407 0 13.10514012 9.41534338 8.27023406 16.158765z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h468.2224823c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM720.79160148 697.63494611c5.59831228 6.61618726 0.8906406 16.6677025-7.76129658 16.66770249h-74.94104404c-5.98001539 0-11.70556205-2.67192177-15.64982754-7.25235911L512 575.36271635l-110.43943332 131.68757314c-3.81703111 4.58043732-9.54257777 7.25235911-15.64982754 7.25235911H310.9696951c-8.65193717 0-13.35960887-10.05151525-7.76129658-16.66770249L458.81603326 512 303.20839852 326.36505389c-5.59831228-6.61618726-0.8906406-16.6677025 7.76129658-16.66770249h74.94104404c5.98001539 0 11.70556205 2.67192177 15.64982754 7.25235911L512 448.63728365l110.43943332-131.68757314c3.81703111-4.58043732 9.54257777-7.25235911 15.64982754-7.25235911H713.0303049c8.65193717 0 13.35960887 10.05151525 7.76129658 16.66770249L565.18396674 512l155.60763474 185.63494611z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM677.02297814 523.19662459L423.31764398 722.70011704c-9.41534338 7.37959347-23.28388974 0.76340622-23.28388975-11.19662459V312.62374191c0-11.9600308 13.86854636-18.70345241 23.28388975-11.19662457l253.70533416 199.37625807c7.25235911 5.72554666 7.25235911 16.6677025 0 22.39324918z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H552.71499847v193.39624268c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962h-61.0724977c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962V552.71499847H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h193.39624268V277.88875885c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h61.0724977c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v193.39624268h193.39624268c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M902.67315697 135.41705551L528.62204754 7.94466448C524.10877635 6.40354749 518.05438818 5.63298899 512 5.63298899s-12.10877635 0.7705585-16.62204754 2.31167549L121.32684303 135.41705551c-9.13662215 3.08223399-16.62204754 13.64989334-16.62204753 23.33691443v531.02488283c0 9.68702108 6.27454775 22.45627614 13.87005291 28.51066431L498.0198673 1013.9638196c3.85279247 2.9721542 8.8063828 4.51327118 13.87005291 4.51327118s10.12734022-1.54111698 13.87005291-4.51327118l379.4450189-295.67430252c7.59550517-5.94430839 13.87005291-18.71356345 13.87005291-28.51066431V158.75396994c0.22015956-9.68702108-7.26526581-20.14460066-16.40188796-23.33691443zM712.89560763 323.43332829L478.86598471 645.63685899c-7.04510625 9.68702108-21.57563786 9.68702108-28.6207441 0l-139.14084824-191.5388259c-4.18303182-5.8342286 0-13.9801327 7.15518603-13.9801327h60.76404132c5.61406904 0 11.0079785 2.75199463 14.31037204 7.26526582l71.22162091 97.97100864 166.11039557-228.74579323c3.30239355-4.51327118 8.58622323-7.26526581 14.31037204-7.26526581H705.7404216c7.15518602 0.11007979 11.33821785 8.25598388 7.15518603 14.09021248z",special:!0},{viewBox:[1024,1024],path:"M959.86498307 186.28001231H797.00498922v-101.78749614c0-44.91373267-36.51626425-81.42999692-81.42999691-81.42999693H308.42500769c-44.91373267 0-81.42999692 36.51626425-81.42999691 81.42999693v101.78749614H64.13501693c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499847v40.71499845c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874962h76.8495596l31.42688945 665.43575611c2.03574992 43.38692024 37.91584233 77.61296581 81.30276254 77.6129658h577.64404066c43.5141546 0 79.26701262-34.09881122 81.30276254-77.6129658l31.42688945-665.43575611H990.40123192c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874962v-40.71499845c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499847z m-254.46874039 0H318.60375732v-91.60874653h386.79248536v91.60874653z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 248.62485371H654.50249462V104.85001539c0-22.52048353-18.19451494-40.71499847-40.71499847-40.71499846H94.67126578v-50.89374808c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-71.25124732c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v997.5174623c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h71.25124732c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961V674.85999383h315.54123807v143.77483833c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h529.29497999c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V289.33985217c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846z",special:!0},{viewBox:[1024,1024],path:"M804.63905145 265.16532183V94.67126578h109.42155836c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961H109.93939019c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h109.42155836v170.49405605c0 103.6960117 53.94737296 194.92305513 135.3773699 246.83467817-81.42999692 51.91162303-135.37736988 143.13866646-135.3773699 246.83467817v170.49405605h-109.42155836c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h804.12121962c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-109.42155836V758.83467817c0-103.6960117-53.94737296-194.92305513-135.3773699-246.83467817 81.42999692-51.91162303 135.37736988-143.13866646 135.3773699-246.83467817z",special:!0},{viewBox:[1024,1024],path:"M1020.928 448.44373333l-35.36213334-373.4528c-1.79200001-19.3536-17.2032-34.64533332-36.55679999-36.55679999L575.55626667 3.072h-0.47786666c-3.82293334 0-6.8096 1.19466667-9.07946669 3.46453333L6.53653333 565.99893332c-4.65919999 4.65919999-4.65919999 12.1856 0 16.84480001l434.61973334 434.61973334c2.26986667 2.26986667 5.25653333 3.46453333 8.48213333 3.46453333s6.21226667-1.19466667 8.48213333-3.46453333l559.46239999-559.46239999c2.38933332-2.5088 3.584-5.97333334 3.34506668-9.55733335zM735.40266668 362.66666667c-42.17173333 0-76.45866667-34.28693333-76.45866667-76.45866667s34.28693333-76.45866667 76.45866667-76.45866667 76.45866667 34.28693333 76.45866665 76.45866667-34.28693333 76.45866667-76.45866665 76.45866667z",special:!0}]},{type:"线性",children:[{viewBox:[1024,1024],path:"M1009.55537674 75.96950982l-61.38012212-61.38012214c-4.48769762-4.48769762-11.870684-4.48769762-16.3583816 0L14.44462326 931.67210859c-4.48769762 4.48769762-4.48769762 11.870684 0 16.35838159l61.38012212 61.38012214c4.48769762 4.48769762 11.870684 4.48769762 16.3583816 0L1009.41061232 92.18312698c4.63246205-4.34293316 4.63246205-11.72591956 0.14476442-16.21361716zM210.88996692 419.35075905c114.94296453 0 208.46079213-93.51782759 208.46079213-208.46079213s-93.51782759-208.46079213-208.46079213-208.4607921-208.46079213 93.51782759-208.4607921 208.4607921 93.51782759 208.46079213 208.4607921 208.46079213z m0-312.69118816c57.47148228 0 104.23039605 46.75891379 104.23039607 104.23039603s-46.75891379 104.23039605-104.23039607 104.23039607-104.23039605-46.75891379-104.23039603-104.23039607 46.75891379-104.23039605 104.23039603-104.23039603zM813.11003308 604.64924095c-114.94296453 0-208.46079213 93.51782759-208.46079213 208.46079213s93.51782759 208.46079213 208.46079213 208.4607921 208.46079213-93.51782759 208.4607921-208.4607921-93.51782759-208.46079213-208.4607921-208.46079213z m0 312.69118816c-57.47148228 0-104.23039605-46.75891379-104.23039607-104.23039603s46.75891379-104.23039605 104.23039607-104.23039607 104.23039605 46.75891379 104.23039603 104.23039607-46.75891379 104.23039605-104.23039603 104.23039603z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1004.96017383 478.58365209L483.27851088 25.80594621c-4.00443838-3.45210207-9.11354943-5.3852792-14.49882864-5.38527921h-122.20441284c-10.21822208 0-14.91308089 12.70373557-7.18037228 19.33177152l483.57045622 419.77561022H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672657v82.85044938c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672657h807.92996557L339.25681303 984.24756148c-7.7327086 6.76612003-3.0378498 19.33177153 7.18037229 19.33177152h126.34693531c2.62359757 0 5.24719513-0.96658859 7.18037228-2.76168164L1004.96017383 545.41634791c20.2983601-17.67476253 20.2983601-49.1579333 0-66.83269582z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1011.38217956 558.9924242L545.80649025 22.43713295c-17.81503843-20.62055629-49.79794206-20.62055629-67.75325638 0L12.61782044 558.9924242c-6.31241519 7.29434645-1.12220714 18.51641789 8.41655359 18.51641789h113.62347344c6.45269109 0 12.62483038-2.80551785 16.97338308-7.71517411L458.69516062 215.87758959V1005.77114384c0 6.1721393 5.04993216 11.22207145 11.22207144 11.22207145h84.16553588c6.1721393 0 11.22207145-5.04993216 11.22207144-11.22207145V215.87758959l307.06393007 353.91607839c4.20827679 4.90965626 10.38041608 7.71517413 16.97338308 7.71517411h113.62347344c9.53876074 0 14.72896878-11.22207145 8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1009.1026963 459.52804874H201.17273073l483.57045624-419.77561022c7.7327086-6.76612003 3.0378498-19.33177153-7.18037229-19.33177152h-122.20441283c-5.3852792 0-10.49439025 1.93317715-14.49882866 5.38527921L19.03982617 478.58365209c-20.2983601 17.67476253-20.2983601 49.1579333 0 66.69461175L543.89742302 1000.81765136c2.07126124 1.79509307 4.55677472 2.76168163 7.18037228 2.76168164h126.3469353c10.21822208 0 14.91308089-12.70373557 7.18037228-19.33177152L201.17273073 564.47195126H1009.1026963c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672657v-82.85044938c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672657z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1002.96562597 446.49115791h-113.62347344c-6.45269109 0-12.62483038 2.80551785-16.97338308 7.71517411L565.30483938 808.12241041V18.22885616c0-6.1721393-5.04993216-11.22207145-11.22207144-11.22207145h-84.16553588c-6.1721393 0-11.22207145 5.04993216-11.22207144 11.22207145v789.89355425L151.63123055 454.20633202c-4.20827679-4.90965626-10.38041608-7.71517413-16.97338308-7.71517411h-113.62347344c-9.53876074 0-14.72896878 11.36234735-8.41655359 18.51641789L478.19350975 1001.56286705c17.81503843 20.62055629 49.79794206 20.62055629 67.75325638 0L1011.38217956 465.0075758c6.31241519-7.29434645 1.12220714-18.51641789-8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M975.82443246 622.46726585H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672658v82.85044937c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672659h835.6848661L651.32683905 980.10503902c-5.66144737 7.18037229-0.55233633 17.9509307 8.69929718 17.9509307h100.11095967c6.76612003 0 13.11798782-3.0378498 17.39859437-8.42312903l233.08593092-295.63802022c22.78387358-28.99765728 2.20934532-71.52755463-34.79718873-71.52755462zM1009.1026963 296.58883161H173.4178302l199.25533075-252.69387063c5.66144737-7.18037229 0.55233633-17.9509307-8.69929718-17.9509307h-100.11095967c-6.76612003 0-13.11798782 3.0378498-17.39859437 8.42312903L13.37837881 330.00517953c-22.78387358 28.99765728-2.20934532 71.52755463 34.65910466 71.52755462h961.06521283c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672658v-82.85044937c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672659z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1010.75873115 64.13501693H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874964h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874964v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961zM1010.75873115 858.07748691H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874964v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874964zM1010.75873115 461.10625194H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874959v81.42999694c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874959h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874959v-81.42999694c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874959z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z",special:!0,outlined:!0}]}],hq={bar:"bar",horizontalBar:"bar",line:"line",area:"line",scatter:"line",pie:"pie",ring:"pie"},zt=()=>{const e=Bg(),t=_n.debounce(function(){e.addSnapshot()},300,{trailing:!0}),n=_n.throttle(function(){e.reDo()},100,{leading:!0,trailing:!1}),r=_n.throttle(function(){e.unDo()},100,{leading:!0,trailing:!1});return{addHistorySnapshot:t,redo:n,undo:r}},$u=()=>{const e=ft(),t=ct(),{creatingElement:n}=Xe(e),{theme:r,viewportRatio:o}=Xe(t),{addHistorySnapshot:i}=zt(),a=(A,x)=>{t.addElement(A),e.setActiveElementIdList([A.id]),n.value&&e.setCreatingElement(null),setTimeout(()=>{e.setEditorareaFocus(!0)},0),x&&x(),i()};return{createImageElement:A=>{dq(A).then(({width:x,height:R})=>{const y=R/x;yHt?(x=Ht,R=x*y):R>Ht*o.value&&(R=Ht*o.value,x=R/y),a({type:"image",id:pn(10),src:A,width:x,height:R,left:(Ht-x)/2,top:(Ht*o.value-R)/2,fixedRatio:!0,rotate:0})})},createChartElement:A=>{const x={type:"chart",id:pn(10),chartType:hq[A],left:300,top:81.25,width:400,height:400,rotate:0,themeColor:[r.value.themeColor],gridColor:r.value.fontColor,data:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1"],series:[[12,19,5,2,18]]}},R={...A==="bar"?{horizontalBars:!1,stackBars:!1}:{},...A==="horizontalBar"?{horizontalBars:!0,stackBars:!1}:{},...A==="line"?{showLine:!0,lineSmooth:!0,showArea:!1}:{},...A==="area"?{showLine:!0,lineSmooth:!0,showArea:!0}:{},...A==="scatter"?{showLine:!1,lineSmooth:!0,showArea:!1}:{},...A==="pie"?{donut:!1}:{},...A==="ring"?{donut:!0}:{}};a({...x,options:R})},createTableElement:(A,x)=>{const R={fontname:r.value.fontName,color:r.value.fontColor},y=[];for(let O=0;O{const{left:R,top:y,width:g,height:S}=A,L=(x==null?void 0:x.content)||"",T=(x==null?void 0:x.vertical)||!1,M=pn(10);a({type:"text",id:M,left:R,top:y,width:g,height:S,content:L,rotate:0,defaultFontName:r.value.fontName,defaultColor:r.value.fontColor,vertical:T},()=>{setTimeout(()=>{const O=document.querySelector(`#editable-element-${M} .ProseMirror`);O&&O.focus()},0)})},createShapeElement:(A,x,R={})=>{const{left:y,top:g,width:S,height:L}=A,T={type:"shape",id:pn(10),left:y,top:g,width:S,height:L,viewBox:x.viewBox,path:x.path,fill:r.value.themeColor,fixedRatio:!1,rotate:0,...R};if(x.special&&(T.special=!0),x.pathFormula){T.pathFormula=x.pathFormula,T.viewBox=[S,L];const M=Ju[x.pathFormula];"editable"in M?(T.path=M.formula(S,L,M.defaultValue),T.keypoint=M.defaultValue):T.path=M.formula(S,L)}a(T)},createLineElement:(A,x)=>{const{left:R,top:y,start:g,end:S}=A,L={type:"line",id:pn(10),left:R,top:y,start:g,end:S,points:x.points,color:r.value.themeColor,style:x.style,width:2};x.isBroken&&(L.broken=[(g[0]+S[0])/2,(g[1]+S[1])/2]),x.isCurve&&(L.curve=[(g[0]+S[0])/2,(g[1]+S[1])/2]),x.isCubic&&(L.cubic=[[(g[0]+S[0])/2,(g[1]+S[1])/2],[(g[0]+S[0])/2,(g[1]+S[1])/2]]),a(L)},createLatexElement:A=>{a({type:"latex",id:pn(10),width:A.w,height:A.h,rotate:0,left:(Ht-A.w)/2,top:(Ht*o.value-A.h)/2,path:A.path,latex:A.latex,color:r.value.fontColor,strokeWidth:2,viewBox:[A.w,A.h],fixedRatio:!0})},createVideoElement:A=>{a({type:"video",id:pn(10),width:500,height:300,rotate:0,left:(Ht-500)/2,top:(Ht*o.value-300)/2,src:A,autoplay:!1})},createAudioElement:A=>{a({type:"audio",id:pn(10),width:50,height:50,rotate:0,left:(Ht-50)/2,top:(Ht*o.value-50)/2,loop:!1,autoplay:!1,fixedRatio:!0,color:r.value.themeColor,src:A})}}},Kg=()=>{const e=ft(),t=ct(),{currentSlide:n,slides:r}=Xe(t),{addHistorySnapshot:o}=zt(),i=c=>{const{groupIdMap:l,elIdMap:u}=d3(c),f=c[0];let d=0,h;do h=n.value.elements.find(p=>{if(p.type!==f.type)return!1;const{minX:m,maxX:A,minY:x,maxY:R}=Ma(p),{minX:y,maxX:g,minY:S,maxY:L}=Ma({...f,left:f.left+d,top:f.top+d});return m===y&&A===g&&x===S&&R===L}),h&&(d+=10);while(h);for(const p of c)p.id=u[p.id],p.left=p.left+d,p.top=p.top+d,p.groupId&&(p.groupId=l[p.groupId]);t.addElement(c),e.setActiveElementIdList(Object.values(u)),o()},a=c=>{const l=XJ(c),u=c.map(f=>{const{groupIdMap:d,elIdMap:h}=d3(f.elements);for(const p of f.elements)p.id=h[p.id],p.groupId&&(p.groupId=d[p.groupId]),p.link&&p.link.type==="slide"&&(l[p.link.target]?p.link.target=l[p.link.target]:delete p.link);if(f.animations)for(const p of f.animations)p.id=pn(10),p.elId=h[p.elId];return{...f,id:l[f.id]}});t.addSlide(u),o()},s=Me(()=>!(r.value.length>1||r.value[0].elements.length>0));return{addElementsFromData:i,addSlidesFromData:a,isEmptySlide:s}},Pb=()=>{const{createTextElement:e}=$u(),{addElementsFromData:t,addSlidesFromData:n}=Kg(),r=i=>{e({left:0,top:0,width:600,height:50},{content:i})};return{pasteTextClipboardData:(i,a)=>{const s=(a==null?void 0:a.onlySlide)||!1,c=(a==null?void 0:a.onlyElements)||!1,l=Ob(i);if(typeof l=="object"){const{type:u,data:f}=l;u==="elements"&&!s?t(f):u==="slides"&&!c&&n(f)}else if(!c&&!s){const u=kb(l);r(u)}}}},Dd=()=>{const e=ft(),t=ct(),{selectedSlidesIndex:n,activeElementIdList:r}=Xe(e),{currentSlide:o,slides:i,theme:a,slideIndex:s}=Xe(t),c=Me(()=>[...n.value,s.value]),l=Me(()=>i.value.filter((O,k)=>c.value.includes(k))),u=Me(()=>l.value.map(O=>O.id)),{pasteTextClipboardData:f}=Pb(),{addSlidesFromData:d}=Kg(),{addHistorySnapshot:h}=zt(),p=()=>{const O={id:pn(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};t.updateSlideIndex(0),e.setActiveElementIdList([]),t.setSlides([O])},m=O=>{O===yt.UP&&s.value>0?(r.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(s.value-1)):O===yt.DOWN&&s.value{const O=Lb(JSON.stringify({type:"slides",data:l.value}));KP(O).then(()=>{e.setThumbnailsFocus(!0)})},x=()=>{HP().then(O=>{f(O,{onlySlide:!0})}).catch(O=>Sn.warning(O))},R=()=>{const O={id:pn(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};e.setActiveElementIdList([]),t.addSlide(O),h()},y=O=>{const{groupIdMap:k,elIdMap:F}=d3(O.elements);for(const E of O.elements)E.id=F[E.id],E.groupId&&(E.groupId=k[E.groupId]);const N={...O,id:pn(10)};e.setActiveElementIdList([]),t.addSlide(N),h()},g=()=>{const O=JSON.parse(JSON.stringify(o.value));d([O])},S=(O=u.value)=>{i.value.length===O.length?p():t.deleteSlide(O),e.updateSelectedSlidesIndex([]),h()};return{resetSlides:p,updateSlideIndex:m,copySlide:A,pasteSlide:x,createSlide:R,createSlideByTemplate:y,copyAndPasteSlide:g,deleteSlide:S,cutSlide:()=>{const O=[...u.value];A(),S(O)},selectAllSlide:()=>{const O=Array.from(Array(i.value.length),(k,F)=>F);e.setActiveElementIdList([]),e.updateSelectedSlidesIndex(O)},sortSlides:(O,k)=>{if(k===O)return;const F=JSON.parse(JSON.stringify(i.value)),N=F[k];F.splice(k,1),F.splice(O,0,N),t.setSlides(F),t.updateSlideIndex(O)}}},JP=()=>{const e=ft(),t=ct(),{activeElementIdList:n}=Xe(e),{currentSlide:r}=Xe(t),{addHistorySnapshot:o}=zt();return{lockElement:()=>{const s=JSON.parse(JSON.stringify(r.value.elements));for(const c of s)n.value.includes(c.id)&&(c.lock=!0);t.updateSlide({elements:s}),e.setActiveElementIdList([]),o()},unlockElement:s=>{const c=JSON.parse(JSON.stringify(r.value.elements));if(s.groupId){const l=[];for(const u of c)u.groupId===s.groupId&&(u.lock=!1,l.push(u.id));t.updateSlide({elements:c}),e.setActiveElementIdList(l)}else{for(const l of c)if(l.id===s.id){l.lock=!1;break}t.updateSlide({elements:c}),e.setActiveElementIdList([s.id])}o()}}},kp=()=>{const e=ft(),t=ct(),{activeElementIdList:n,activeGroupElementId:r}=Xe(e),{currentSlide:o}=Xe(t),{addHistorySnapshot:i}=zt();return{deleteElement:()=>{if(!n.value.length)return;let c=[];r.value?c=o.value.elements.filter(l=>l.id!==r.value):c=o.value.elements.filter(l=>!n.value.includes(l.id)),e.setActiveElementIdList([]),t.updateSlide({elements:c}),i()},deleteAllElements:()=>{o.value.elements.length&&(e.setActiveElementIdList([]),t.updateSlide({elements:[]}),i())}}},Cb=()=>{const e=ft(),t=ct(),{activeElementIdList:n,activeElementList:r,handleElementId:o}=Xe(e),{currentSlide:i}=Xe(t),{addHistorySnapshot:a}=zt();return{canCombine:Me(()=>{if(r.value.length<2)return!1;const u=r.value[0].groupId;return u?!r.value.every(d=>(d.groupId&&d.groupId)===u):!0}),combineElements:()=>{if(!r.value.length)return;let u=JSON.parse(JSON.stringify(i.value.elements));const f=pn(10),d=[];for(const A of u)n.value.includes(A.id)&&(A.groupId=f,d.push(A));const h=u.findIndex(A=>A.id===d[d.length-1].id),p=d.map(A=>A.id);u=u.filter(A=>!p.includes(A.id));const m=h-d.length+1;u.splice(m,0,...d),t.updateSlide({elements:u}),a()},uncombineElements:()=>{if(!r.value.length||!r.value.some(h=>h.groupId))return;const f=JSON.parse(JSON.stringify(i.value.elements));for(const h of f)n.value.includes(h.id)&&h.groupId&&delete h.groupId;t.updateSlide({elements:f});const d=o.value?[o.value]:[];e.setActiveElementIdList(d),a()}}},Ib=()=>{const e=ft(),{activeElementIdList:t,activeElementList:n}=Xe(e),{pasteTextClipboardData:r}=Pb(),{deleteElement:o}=kp(),i=()=>{if(!t.value.length)return;const l=Lb(JSON.stringify({type:"elements",data:n.value}));KP(l).then(()=>{e.setEditorareaFocus(!0)})},a=()=>{i(),o()},s=()=>{HP().then(l=>{r(l)}).catch(l=>Sn.warning(l))};return{copyElement:i,cutElement:a,pasteElement:s,quickCopyElement:()=>{i(),s()}}},Hg=()=>{const e=ft(),{currentSlide:t}=Xe(ct()),{hiddenElementIdList:n,handleElementId:r}=Xe(e);return{selectAllElements:()=>{const s=t.value.elements.filter(c=>!c.lock&&!n.value.includes(c.id)).map(c=>c.id);e.setActiveElementIdList(s)},selectElement:a=>{r.value===a||n.value.includes(a)||t.value.elements.filter(c=>c.lock).some(c=>c.id===a)||e.setActiveElementIdList([a])}}},pq=()=>{const e=ct(),{activeElementIdList:t,activeGroupElementId:n}=Xe(ft()),{currentSlide:r}=Xe(e),{addHistorySnapshot:o}=zt();return{moveElement:(a,s=1)=>{let c=[];const l=u=>{let{left:f,top:d}=u;switch(a){case yt.LEFT:f=f-s;break;case yt.RIGHT:f=f+s;break;case yt.UP:d=d-s;break;case yt.DOWN:d=d+s;break}return{...u,left:f,top:d}};n.value?c=r.value.elements.map(u=>n.value===u.id?l(u):u):c=r.value.elements.map(u=>t.value.includes(u.id)?l(u):u),e.updateSlide({elements:c}),o()}}},Np=()=>{const e=ct(),{currentSlide:t}=Xe(e),{addHistorySnapshot:n}=zt(),r=(l,u)=>({minLevel:l.findIndex(f=>f.id===u[0].id),maxLevel:l.findIndex(f=>f.id===u[u.length-1].id)}),o=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(x=>x.groupId===u.groupId),{minLevel:h,maxLevel:p}=r(l,d);if(p===l.length-1)return;const m=f[p+1],A=f.splice(h,d.length);if(m.groupId){const x=f.filter(R=>R.groupId===m.groupId);f.splice(h+x.length,0,...A)}else f.splice(h+1,0,...A)}else{const d=l.findIndex(m=>m.id===u.id);if(d===l.length-1)return;const h=f[d+1],p=f.splice(d,1)[0];if(h.groupId){const m=f.filter(A=>A.groupId===h.groupId);f.splice(d+m.length,0,p)}else f.splice(d+1,0,p)}return f},i=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(A=>A.groupId===u.groupId),{minLevel:h}=r(l,d);if(h===0)return;const p=f[h-1],m=f.splice(h,d.length);if(p.groupId){const A=f.filter(x=>x.groupId===p.groupId);f.splice(h-A.length,0,...m)}else f.splice(h-1,0,...m)}else{const d=l.findIndex(m=>m.id===u.id);if(d===0)return;const h=f[d-1],p=f.splice(d,1)[0];if(h.groupId){const m=f.filter(A=>A.groupId===h.groupId);f.splice(d-m.length,0,p)}else f.splice(d-1,0,p)}return f},a=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(A=>A.groupId===u.groupId),{minLevel:h,maxLevel:p}=r(l,d);if(p===l.length-1)return null;const m=f.splice(h,d.length);f.push(...m)}else{const d=l.findIndex(h=>h.id===u.id);if(d===l.length-1)return null;f.splice(d,1),f.push(u)}return f},s=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(m=>m.groupId===u.groupId),{minLevel:h}=r(l,d);if(h===0)return;const p=f.splice(h,d.length);f.unshift(...p)}else{const d=l.findIndex(h=>h.id===u.id);if(d===0)return;f.splice(d,1),f.unshift(u)}return f};return{orderElement:(l,u)=>{let f;u===pr.UP?f=o(t.value.elements,l):u===pr.DOWN?f=i(t.value.elements,l):u===pr.TOP?f=a(t.value.elements,l):u===pr.BOTTOM&&(f=s(t.value.elements,l)),f&&(e.updateSlide({elements:f}),n())}}},Fb=()=>{const e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()},$P=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},p3=()=>!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement),Mc=()=>{const e=VP(),t=ct(),n=()=>{Fb(),e.setScreening(!0)};return{enterScreening:n,enterScreeningFromStart:()=>{t.updateSlideIndex(0),n()},exitScreening:()=>{e.setScreening(!1),p3()&&$P()}}},_b=()=>{const e=ft(),{canvasPercentage:t,canvasScale:n,canvasDragged:r}=Xe(e);return{canvasScalePercentage:Me(()=>Math.round(n.value*100)+"%"),setCanvasScalePercentage:c=>{const l=Math.round(c/n.value*t.value)/100;e.setCanvasPercentage(l)},scaleCanvas:c=>{let l=t.value;const u=5,f=200,d=30;c==="+"&&l<=f&&(l+=u),c==="-"&&l>=d&&(l-=u),e.setCanvasPercentage(l)},resetCanvas:()=>{e.setCanvasPercentage(90),r&&e.setCanvasDragged(!1)}}},mq=()=>{const e=ft(),t=Ss(),{activeElementIdList:n,disableHotkeys:r,handleElement:o,handleElementId:i,editorAreaFocus:a,thumbnailsFocus:s,showSearchPanel:c}=Xe(e),{currentSlide:l}=Xe(ct()),{ctrlKeyState:u,shiftKeyState:f,spaceKeyState:d}=Xe(t),{updateSlideIndex:h,copySlide:p,createSlide:m,deleteSlide:A,cutSlide:x,copyAndPasteSlide:R,selectAllSlide:y}=Dd(),{combineElements:g,uncombineElements:S}=Cb(),{deleteElement:L}=kp(),{lockElement:T}=JP(),{copyElement:M,cutElement:O,quickCopyElement:k}=Ib(),{selectAllElements:F}=Hg(),{moveElement:N}=pq(),{orderElement:E}=Np(),{redo:P,undo:_}=zt(),{enterScreening:I,enterScreeningFromStart:W}=Mc(),{scaleCanvas:D,resetCanvas:z}=_b(),ae=()=>{n.value.length?M():s.value&&p()},U=()=>{n.value.length?O():s.value&&x()},Z=()=>{n.value.length?k():s.value&&R()},B=()=>{a.value&&F(),s.value&&y()},G=()=>{a.value&&T()},Q=()=>{a.value&&g()},ie=()=>{a.value&&S()},q=()=>{n.value.length?L():s.value&&A()},oe=te=>{n.value.length?N(te):(te===yt.UP||te===yt.DOWN)&&h(te)},he=te=>{te===yt.PAGEUP?h(yt.UP):te===yt.PAGEDOWN&&h(yt.DOWN)},me=te=>{o.value&&E(o.value,te)},ve=()=>{s.value&&m()},J=()=>{if(!l.value.elements.length)return;if(!i.value){const j=l.value.elements[0];e.setActiveElementIdList([j.id]);return}const te=l.value.elements.findIndex(j=>j.id===i.value),le=te>=l.value.elements.length-1?0:te+1,$=l.value.elements[le].id;e.setActiveElementIdList([$])},ue=te=>{const{ctrlKey:le,shiftKey:$,altKey:j,metaKey:se}=te,ge=le||se,ce=te.key.toUpperCase();if(ge&&!u.value&&t.setCtrlKeyState(!0),$&&!f.value&&t.setShiftKeyState(!0),!r.value&&ce===yt.SPACE&&t.setSpaceKeyState(!0),ge&&ce===yt.P){te.preventDefault(),e.setDialogForExport("pdf");return}if($&&ce===yt.F5){te.preventDefault(),I(),t.setShiftKeyState(!1);return}if(ce===yt.F5){te.preventDefault(),W();return}if(le&&ce===yt.F){te.preventDefault(),e.setSearchPanelState(!c.value);return}if(!(!a.value&&!s.value)){if(ge&&ce===yt.C){if(r.value)return;te.preventDefault(),ae()}if(ge&&ce===yt.X){if(r.value)return;te.preventDefault(),U()}if(ge&&ce===yt.D){if(r.value)return;te.preventDefault(),Z()}if(ge&&ce===yt.Z){if(r.value)return;te.preventDefault(),_()}if(ge&&ce===yt.Y){if(r.value)return;te.preventDefault(),P()}if(ge&&ce===yt.A){if(r.value)return;te.preventDefault(),B()}if(ge&&ce===yt.L){if(r.value)return;te.preventDefault(),G()}if(!$&&ge&&ce===yt.G){if(r.value)return;te.preventDefault(),Q()}if($&&ge&&ce===yt.G){if(r.value)return;te.preventDefault(),ie()}if(j&&ce===yt.F){if(r.value)return;te.preventDefault(),me(pr.TOP)}if(j&&ce===yt.B){if(r.value)return;te.preventDefault(),me(pr.BOTTOM)}if(ce===yt.DELETE||ce===yt.BACKSPACE){if(r.value)return;te.preventDefault(),q()}if(ce===yt.UP){if(r.value)return;te.preventDefault(),oe(yt.UP)}if(ce===yt.DOWN){if(r.value)return;te.preventDefault(),oe(yt.DOWN)}if(ce===yt.LEFT){if(r.value)return;te.preventDefault(),oe(yt.LEFT)}if(ce===yt.RIGHT){if(r.value)return;te.preventDefault(),oe(yt.RIGHT)}if(ce===yt.PAGEUP){if(r.value)return;te.preventDefault(),he(yt.PAGEUP)}if(ce===yt.PAGEDOWN){if(r.value)return;te.preventDefault(),he(yt.PAGEDOWN)}if(ce===yt.ENTER){if(r.value)return;te.preventDefault(),ve()}if(ce===yt.MINUS){if(r.value)return;te.preventDefault(),D("-")}if(ce===yt.EQUAL){if(r.value)return;te.preventDefault(),D("+")}if(ce===yt.DIGIT_0){if(r.value)return;te.preventDefault(),z()}if(ce===yt.TAB){if(r.value)return;te.preventDefault(),J()}}},X=()=>{u.value&&t.setCtrlKeyState(!1),f.value&&t.setShiftKeyState(!1),d.value&&t.setSpaceKeyState(!1)};Gt(()=>{document.addEventListener("keydown",ue),document.addEventListener("keyup",X),window.addEventListener("blur",X)}),Tn(()=>{document.removeEventListener("keydown",ue),document.removeEventListener("keyup",X),window.removeEventListener("blur",X)})},vq=()=>{const{editorAreaFocus:e,thumbnailsFocus:t,disableHotkeys:n}=Xe(ft()),{pasteTextClipboardData:r}=Pb(),{createImageElement:o}=$u(),i=s=>{zu(s).then(c=>o(c))},a=s=>{if(!e.value&&!t.value||n.value||!s.clipboardData)return;const c=s.clipboardData.items,l=c[0];if(l){for(const u of c)if(u.kind==="file"&&u.type.indexOf("image")!==-1){const f=u.getAsFile();f&&i(f);return}l.kind==="string"&&l.type==="text/plain"&&l.getAsString(u=>r(u))}};Gt(()=>{document.addEventListener("paste",a)}),Tn(()=>{document.removeEventListener("paste",a)})};function jP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yw(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,o)}function ii(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){yw(i,r,o,a,s,"next",c)}function s(c){yw(i,r,o,a,s,"throw",c)}a(void 0)})}}var Ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gg(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var qP={exports:{}},xw={exports:{}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(xw),function(e){var t=xw.exports.default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(_,I,W){_[I]=W.value},s=typeof Symbol=="function"?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(_,I,W){return Object.defineProperty(_,I,{value:W,enumerable:!0,configurable:!0,writable:!0}),_[I]}try{f({},"")}catch{f=function(I,W,D){return I[W]=D}}function d(_,I,W,D){var z=I&&I.prototype instanceof m?I:m,ae=Object.create(z.prototype),U=new N(D||[]);return a(ae,"_invoke",{value:M(_,W,U)}),ae}function h(_,I,W){try{return{type:"normal",arg:_.call(I,W)}}catch(D){return{type:"throw",arg:D}}}r.wrap=d;var p={};function m(){}function A(){}function x(){}var R={};f(R,c,function(){return this});var y=Object.getPrototypeOf,g=y&&y(y(E([])));g&&g!==o&&i.call(g,c)&&(R=g);var S=x.prototype=m.prototype=Object.create(R);function L(_){["next","throw","return"].forEach(function(I){f(_,I,function(W){return this._invoke(I,W)})})}function T(_,I){function W(z,ae,U,Z){var B=h(_[z],_,ae);if(B.type!=="throw"){var G=B.arg,Q=G.value;return Q&&t(Q)=="object"&&i.call(Q,"__await")?I.resolve(Q.__await).then(function(ie){W("next",ie,U,Z)},function(ie){W("throw",ie,U,Z)}):I.resolve(Q).then(function(ie){G.value=ie,U(G)},function(ie){return W("throw",ie,U,Z)})}Z(B.arg)}var D;a(this,"_invoke",{value:function(z,ae){function U(){return new I(function(Z,B){W(z,ae,Z,B)})}return D=D?D.then(U,U):U()}})}function M(_,I,W){var D="suspendedStart";return function(z,ae){if(D==="executing")throw new Error("Generator is already running");if(D==="completed"){if(z==="throw")throw ae;return P()}for(W.method=z,W.arg=ae;;){var U=W.delegate;if(U){var Z=O(U,W);if(Z){if(Z===p)continue;return Z}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(D==="suspendedStart")throw D="completed",W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);D="executing";var B=h(_,I,W);if(B.type==="normal"){if(D=W.done?"completed":"suspendedYield",B.arg===p)continue;return{value:B.arg,done:W.done}}B.type==="throw"&&(D="completed",W.method="throw",W.arg=B.arg)}}}function O(_,I){var W=_.iterator[I.method];if(W===void 0){if(I.delegate=null,I.method==="throw"){if(_.iterator.return&&(I.method="return",I.arg=void 0,O(_,I),I.method==="throw"))return p;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var D=h(W,_.iterator,I.arg);if(D.type==="throw")return I.method="throw",I.arg=D.arg,I.delegate=null,p;var z=D.arg;return z?z.done?(I[_.resultName]=z.value,I.next=_.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,p):z:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,p)}function k(_){var I={tryLoc:_[0]};1 in _&&(I.catchLoc=_[1]),2 in _&&(I.finallyLoc=_[2],I.afterLoc=_[3]),this.tryEntries.push(I)}function F(_){var I=_.completion||{};I.type="normal",delete I.arg,_.completion=I}function N(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(k,this),this.reset(!0)}function E(_){if(_){var I=_[c];if(I)return I.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var W=-1,D=function z(){for(;++W<_.length;)if(i.call(_,W))return z.value=_[W],z.done=!1,z;return z.value=void 0,z.done=!0,z};return D.next=D}}return{next:P}}function P(){return{value:void 0,done:!0}}return A.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:A,configurable:!0}),A.displayName=f(x,u,"GeneratorFunction"),r.isGeneratorFunction=function(_){var I=typeof _=="function"&&_.constructor;return!!I&&(I===A||(I.displayName||I.name)==="GeneratorFunction")},r.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,x):(_.__proto__=x,f(_,u,"GeneratorFunction")),_.prototype=Object.create(S),_},r.awrap=function(_){return{__await:_}},L(T.prototype),f(T.prototype,l,function(){return this}),r.AsyncIterator=T,r.async=function(_,I,W,D,z){z===void 0&&(z=Promise);var ae=new T(d(_,I,W,D),z);return r.isGeneratorFunction(I)?ae:ae.next().then(function(U){return U.done?U.value:ae.next()})},L(S),f(S,u,"Generator"),f(S,c,function(){return this}),f(S,"toString",function(){return"[object Generator]"}),r.keys=function(_){var I=Object(_),W=[];for(var D in I)W.push(D);return W.reverse(),function z(){for(;W.length;){var ae=W.pop();if(ae in I)return z.value=ae,z.done=!1,z}return z.done=!0,z}},r.values=E,N.prototype={constructor:N,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!_)for(var I in this)I.charAt(0)==="t"&&i.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var I=this;function W(B,G){return ae.type="throw",ae.arg=_,I.next=B,G&&(I.method="next",I.arg=void 0),!!G}for(var D=this.tryEntries.length-1;D>=0;--D){var z=this.tryEntries[D],ae=z.completion;if(z.tryLoc==="root")return W("end");if(z.tryLoc<=this.prev){var U=i.call(z,"catchLoc"),Z=i.call(z,"finallyLoc");if(U&&Z){if(this.prev=0;--W){var D=this.tryEntries[W];if(D.tryLoc<=this.prev&&i.call(D,"finallyLoc")&&this.prev=0;--I){var W=this.tryEntries[I];if(W.finallyLoc===_)return this.complete(W.completion,W.afterLoc),F(W),p}},catch:function(_){for(var I=this.tryEntries.length-1;I>=0;--I){var W=this.tryEntries[I];if(W.tryLoc===_){var D=W.completion;if(D.type==="throw"){var z=D.arg;F(W)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(_,I,W){return this.delegate={iterator:E(_),resultName:I,nextLoc:W},this.method==="next"&&(this.arg=void 0),p}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(qP);var Zm=qP.exports(),Wn=Zm;try{regeneratorRuntime=Zm}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Zm:Function("r","regeneratorRuntime = r")(Zm)}var Kd={},bw={},Od=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},ts=[],Bi=[],gq=typeof Uint8Array<"u"?Uint8Array:Array,Eb=!1;function e9(){Eb=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+ts[o>>12&63]+ts[o>>6&63]+ts[63&o]);return i.join("")}function Sw(e){var t;Eb||e9();for(var n=e.length,r=n%3,o="",i=[],a=16383,s=0,c=n-r;sc?c:s+a));return r===1?(t=e[n-1],o+=ts[t>>2],o+=ts[t<<4&63],o+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],o+=ts[t>>10],o+=ts[t>>4&63],o+=ts[t<<2&63],o+="="),i.push(o),i.join("")}function sm(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<>1,u=-7,f=n?o-1:0,d=n?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)}function t9(e,t,n,r,o,i){var a,s,c,l=8*i-o-1,u=(1<>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}var Rq={}.toString,n9=Array.isArray||function(e){return Rq.call(e)=="[object Array]"};Ge.TYPED_ARRAY_SUPPORT=Od.TYPED_ARRAY_SUPPORT===void 0||Od.TYPED_ARRAY_SUPPORT;var yq=Qv();function Qv(){return Ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function $s(e,t){if(Qv()=Qv())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Qv().toString(16)+" bytes");return 0|e}function ns(e){return!(e==null||!e._isBuffer)}function i9(e,t){if(ns(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Zv(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return c9(e).length;default:if(r)return Zv(e).length;t=(""+t).toLowerCase(),r=!0}}function xq(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Nq(this,t,n);case"utf8":case"utf-8":return s9(this,t,n);case"ascii":return Tq(this,t,n);case"latin1":case"binary":return kq(this,t,n);case"base64":return Oq(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pq(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Zc(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Mw(e,t,n,r,o){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof t=="string"&&(t=Ge.from(t,r)),ns(t))return t.length===0?-1:ww(e,t,n,r,o);if(typeof t=="number")return t&=255,Ge.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):ww(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function ww(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(h,p){return a===1?h[p]:h.readUInt16BE(p*a)}if(o){var u=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,c=a%256,l.push(c),l.push(s);return l}(t,e.length-n),e,n,r)}function Oq(e,t,n){return t===0&&n===e.length?Sw(e):Sw(e.slice(t,n))}function s9(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(u=l);break;case 2:(192&(i=e[o+1]))==128&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(d){var h=d.length;if(h<=4096)return String.fromCharCode.apply(String,d);for(var p="",m=0;m0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ge.prototype.compare=function(e,t,n,r,o){if(!ns(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),o===void 0&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),u=0;uo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return bq(this,e,t,n);case"utf8":case"utf-8":return Sq(this,e,t,n);case"ascii":return a9(this,e,t,n);case"latin1":case"binary":return Mq(this,e,t,n);case"base64":return wq(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lq(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Ge.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Tq(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Zo(e,t,n,r,o,i){if(!ns(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function lm(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function cm(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function l9(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Lw(e,t,n,r,o){return o||l9(e,0,n,4),t9(e,t,n,r,23,4),n+4}function Ow(e,t,n,r,o){return o||l9(e,0,n,8),t9(e,t,n,r,52,8),n+8}Ge.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},Ge.prototype.readUInt8=function(e,t){return t||Yr(e,1,this.length),this[e]},Ge.prototype.readUInt16LE=function(e,t){return t||Yr(e,2,this.length),this[e]|this[e+1]<<8},Ge.prototype.readUInt16BE=function(e,t){return t||Yr(e,2,this.length),this[e]<<8|this[e+1]},Ge.prototype.readUInt32LE=function(e,t){return t||Yr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ge.prototype.readUInt32BE=function(e,t){return t||Yr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ge.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Yr(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},Ge.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Yr(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Ge.prototype.readInt8=function(e,t){return t||Yr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ge.prototype.readInt16LE=function(e,t){t||Yr(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ge.prototype.readInt16BE=function(e,t){t||Yr(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ge.prototype.readInt32LE=function(e,t){return t||Yr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ge.prototype.readInt32BE=function(e,t){return t||Yr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ge.prototype.readFloatLE=function(e,t){return t||Yr(e,4,this.length),sm(this,e,!0,23,4)},Ge.prototype.readFloatBE=function(e,t){return t||Yr(e,4,this.length),sm(this,e,!1,23,4)},Ge.prototype.readDoubleLE=function(e,t){return t||Yr(e,8,this.length),sm(this,e,!0,52,8)},Ge.prototype.readDoubleBE=function(e,t){return t||Yr(e,8,this.length),sm(this,e,!1,52,8)},Ge.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Zo(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Ge.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,1,255,0),Ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ge.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,65535,0),Ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lm(this,e,t,!0),t+2},Ge.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,65535,0),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lm(this,e,t,!1),t+2},Ge.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,4294967295,0),Ge.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):cm(this,e,t,!0),t+4},Ge.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,4294967295,0),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cm(this,e,t,!1),t+4},Ge.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Zo(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},Ge.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Zo(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Ge.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,1,127,-128),Ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ge.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,32767,-32768),Ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lm(this,e,t,!0),t+2},Ge.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,32767,-32768),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lm(this,e,t,!1),t+2},Ge.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,2147483647,-2147483648),Ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):cm(this,e,t,!0),t+4},Ge.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cm(this,e,t,!1),t+4},Ge.prototype.writeFloatLE=function(e,t,n){return Lw(this,e,t,!0,n)},Ge.prototype.writeFloatBE=function(e,t,n){return Lw(this,e,t,!1,n)},Ge.prototype.writeDoubleLE=function(e,t,n){return Ow(this,e,t,!0,n)},Ge.prototype.writeDoubleBE=function(e,t,n){return Ow(this,e,t,!1,n)},Ge.prototype.copy=function(e,t,n,r){if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Ge.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function c9(e){return function(t){var n,r,o,i,a,s;Eb||e9();var c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[c-2]==="="?2:t[c-1]==="="?1:0,s=new gq(3*c/4-a),o=a>0?c-4:c;var l=0;for(n=0,r=0;n>16&255,s[l++]=i>>8&255,s[l++]=255&i;return a===2?(i=Bi[t.charCodeAt(n)]<<2|Bi[t.charCodeAt(n+1)]>>4,s[l++]=255&i):a===1&&(i=Bi[t.charCodeAt(n)]<<10|Bi[t.charCodeAt(n+1)]<<4|Bi[t.charCodeAt(n+2)]>>2,s[l++]=i>>8&255,s[l++]=255&i),s}(function(t){if((t=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(t).replace(Cq,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function zg(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Pp(e){return e!=null&&(!!e._isBuffer||Tw(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Tw(t.slice(0,0))}(e))}function Tw(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var Fq=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:yq,Buffer:Ge,SlowBuffer:function(e){return+e!=e&&(e=0),Ge.alloc(+e)},isBuffer:Pp}),Tr={};function u9(){throw new Error("setTimeout has not been defined")}function f9(){throw new Error("clearTimeout has not been defined")}var Il=u9,Fl=f9;function d9(e){if(Il===setTimeout)return setTimeout(e,0);if((Il===u9||!Il)&&setTimeout)return Il=setTimeout,setTimeout(e,0);try{return Il(e,0)}catch{try{return Il.call(null,e,0)}catch{return Il.call(this,e,0)}}}typeof Od.setTimeout=="function"&&(Il=setTimeout),typeof Od.clearTimeout=="function"&&(Fl=clearTimeout);var ru,js=[],hd=!1,Bm=-1;function _q(){hd&&ru&&(hd=!1,ru.length?js=ru.concat(js):Bm=-1,js.length&&h9())}function h9(){if(!hd){var e=d9(_q);hd=!0;for(var t=js.length;t;){for(ru=js,js=[];++Bm1)for(var n=1;n0&&a.length>o){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,typeof console.warn=="function"?console.warn(s):console.log(s)}}else a=i[t]=n,++e._eventsCount;return e}function Nw(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function Pw(e){var t=this._events;if(t){var n=t[e];if(typeof n=="function")return 1;if(n)return n.length}return 0}function Cp(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}_l.prototype=Object.create(null),gn.EventEmitter=gn,gn.usingDomains=!1,gn.prototype.domain=void 0,gn.prototype._events=void 0,gn.prototype._maxListeners=void 0,gn.defaultMaxListeners=10,gn.init=function(){this.domain=null,gn.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new _l,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},gn.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},gn.prototype.getMaxListeners=function(){return m9(this)},gn.prototype.emit=function(e){var t,n,r,o,i,a,s,c=e==="error";if(a=this._events)c=c&&a.error==null;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u=typeof n=="function";switch(r=arguments.length){case 1:Dq(n,u,this);break;case 2:Kq(n,u,this,arguments[1]);break;case 3:Hq(n,u,this,arguments[1],arguments[2]);break;case 4:Gq(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount==0)return this._events=new _l,this;delete r[e]}else(function(s,c){for(var l=c,u=l+1,f=s.length;u0?Reflect.ownKeys(this._events):[]};var Jq=Object.freeze({__proto__:null,default:gn,EventEmitter:gn}),sc=typeof Object.create=="function"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},$q=/%[sdj%]/g;function Jg(e){if(!ep(e)){for(var t=[],n=0;n=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}default:return s}}),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),jg(t)?n.showHidden=t:t&&Qb(n,t),ss(n.showHidden)&&(n.showHidden=!1),ss(n.depth)&&(n.depth=2),ss(n.colors)&&(n.colors=!1),ss(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=jq),Bv(n,e,n.depth)}function jq(e,t){var n=fs.styles[t];return n?"\x1B["+fs.colors[n][0]+"m"+e+"\x1B["+fs.colors[n][1]+"m":e}function qq(e,t){return e}function Bv(e,t,n){if(e.customInspect&&t&&Ah(t.inspect)&&t.inspect!==fs&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return ep(r)||(r=Bv(e,r,n)),r}var o=function(d,h){if(ss(h))return d.stylize("undefined","undefined");if(ep(h)){var p="'"+JSON.stringify(h).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(p,"string")}if(Ub(h))return d.stylize(""+h,"number");if(jg(h))return d.stylize(""+h,"boolean");if(Ip(h))return d.stylize("null","null")}(e,t);if(o)return o;var i=Object.keys(t),a=function(d){var h={};return d.forEach(function(p,m){h[p]=!0}),h}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),gh(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return JR(t);if(i.length===0){if(Ah(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(vh(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Dv(t))return e.stylize(Date.prototype.toString.call(t),"date");if(gh(t))return JR(t)}var c,l="",u=!1,f=["{","}"];return Vb(t)&&(u=!0,f=["[","]"]),Ah(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),vh(t)&&(l=" "+RegExp.prototype.toString.call(t)),Dv(t)&&(l=" "+Date.prototype.toUTCString.call(t)),gh(t)&&(l=" "+JR(t)),i.length!==0||u&&t.length!=0?n<0?vh(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=u?function(d,h,p,m,A){for(var x=[],R=0,y=h.length;R{Ua&&Ua.childNodes.length<=1&&(Ua.remove(),Ua=null),bd(null,o)},bd(r,o),Ua.appendChild(o.firstElementChild);const i={id:t,close:()=>{var a,s;return(s=(a=r==null?void 0:r.component)==null?void 0:a.exposed)==null?void 0:s.close()}};return h3.push(i),i};Sn.success=(e,t)=>Sn({...t,type:"success",message:e});Sn.info=(e,t)=>Sn({...t,type:"info",message:e});Sn.warning=(e,t)=>Sn({...t,type:"warning",message:e});Sn.error=(e,t)=>Sn({...t,type:"error",message:e});Sn.closeAll=function(){for(let e=h3.length-1;e>=0;e--)h3[e].close()};const kb=e=>{const n=e.replace(/[\n\r]+/g,"
").split("
");let r="";for(const o of n)o&&(r+=`
${o}
`);return r},dq=e=>new Promise(t=>{const n=document.createElement("img");n.src=e,n.style.opacity="0",document.body.appendChild(n),n.onload=()=>{const r=n.clientWidth,o=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),t({width:r,height:o})},n.onerror=()=>{n.onload=null,n.onerror=null}}),zu=e=>new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{t(n.result)}),n.readAsDataURL(e)}),Ht=1e3;var cn=(e=>(e.ROUND_RECT="roundRect",e.ROUND_RECT_DIAGONAL="roundRectDiagonal",e.ROUND_RECT_SINGLE="roundRectSingle",e.ROUND_RECT_SAMESIDE="roundRectSameSide",e.CUT_RECT_DIAGONAL="cutRectDiagonal",e.CUT_RECT_SINGLE="cutRectSingle",e.CUT_RECT_SAMESIDE="cutRectSameSide",e.CUT_ROUND_RECT="cutRoundRect",e.MESSAGE="message",e.ROUND_MESSAGE="roundMessage",e.L="L",e.RING_RECT="ringRect",e.PLUS="plus",e.TRIANGLE="triangle",e.PARALLELOGRAM_LEFT="parallelogramLeft",e.PARALLELOGRAM_RIGHT="parallelogramRight",e.TRAPEZOID="trapezoid",e.BULLET="bullet",e.INDICATOR="indicator",e))(cn||{}),Nt=(e=>(e.TEXT="text",e.IMAGE="image",e.SHAPE="shape",e.LINE="line",e.CHART="chart",e.TABLE="table",e.LATEX="latex",e.VIDEO="video",e.AUDIO="audio",e))(Nt||{});const Ju={[cn.ROUND_RECT]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${r} 0 L ${e-r} 0 Q ${e} 0 ${e} ${r} L ${e} ${t-r} Q ${e} ${t} ${e-r} ${t} L ${r} ${t} Q 0 ${t} 0 ${t-r} L 0 ${r} Q 0 0 ${r} 0 Z`}},[cn.CUT_RECT_DIAGONAL]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${t-r} L 0 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} L ${r} ${t} Z`}},[cn.CUT_RECT_SINGLE]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${t} L 0 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} Z`}},[cn.CUT_RECT_SAMESIDE]:{editable:!0,defaultValue:.2,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${r} L ${r} 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} L 0 ${t} Z`}},[cn.ROUND_RECT_DIAGONAL]:{editable:!0,defaultValue:.125,range:[0,1],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${r} 0 L ${e} 0 L ${e} ${t-r} Q ${e} ${t} ${e-r} ${t} L 0 ${t} L 0 ${r} Q 0 0 ${r} 0 Z`}},[cn.ROUND_RECT_SINGLE]:{editable:!0,defaultValue:.125,range:[0,1],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 0 L ${e-r} 0 Q ${e} 0 ${e} ${r} L ${e} ${t} L 0 ${t} L 0 0 Z`}},[cn.ROUND_RECT_SAMESIDE]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${r} Q 0 0 ${r} 0 L ${e-r} 0 Q ${e} 0 ${e} ${r} L ${e} ${t} L 0 ${t} Z`}},[cn.CUT_ROUND_RECT]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${r} 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} L 0 ${t} L 0 ${r} Q 0 0 ${r} 0 Z`}},[cn.MESSAGE]:{formula:(e,t)=>{const n=e*.2,r=t*.2;return`M 0 0 L ${e} 0 L ${e} ${t-r} L ${e/2} ${t-r} L ${e/2-n} ${t} L ${e/2-n} ${t-r} L 0 ${t-r} Z`}},[cn.ROUND_MESSAGE]:{formula:(e,t)=>{const n=Math.min(e,t)*.125,r=e*.2,o=t*.2;return`M 0 ${n} Q 0 0 ${n} 0 L ${e-n} 0 Q ${e} 0 ${e} ${n} L ${e} ${t-n-o} Q ${e} ${t-o} ${e-n} ${t-o} L ${e/2} ${t-o} L ${e/2-r} ${t} L ${e/2-r} ${t-o} L ${n} ${t-o} Q 0 ${t-o} 0 ${t-n-o} L 0 ${n} Z`}},[cn.L]:{editable:!0,defaultValue:.25,range:[.1,.9],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 0 L 0 ${t} L ${e} ${t} L ${e} ${t-r} L ${r} ${t-r} L ${r} 0 Z`}},[cn.RING_RECT]:{editable:!0,defaultValue:.25,range:[.1,.45],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 0 ${e} 0 ${e} ${t} L 0 ${t} L 0 0 Z M ${r} ${r} L ${r} ${t-r} L ${e-r} ${t-r} L ${e-r} ${r} Z`}},[cn.PLUS]:{editable:!0,defaultValue:.25,range:[.1,.9],relative:"center",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${e/2-r/2} 0 L ${e/2-r/2} ${t/2-r/2} L 0 ${t/2-r/2} L 0 ${t/2+r/2} L ${e/2-r/2} ${t/2+r/2} L ${e/2-r/2} ${t} L ${e/2+r/2} ${t} L ${e/2+r/2} ${t/2+r/2} L ${e} ${t/2+r/2} L ${e} ${t/2-r/2} L ${e/2+r/2} ${t/2-r/2} L ${e/2+r/2} 0 Z`}},[cn.TRIANGLE]:{editable:!0,defaultValue:.5,range:[0,1],relative:"left",getBaseSize:e=>e,formula:(e,t,n)=>`M ${e*n} 0 L 0 ${t} L ${e} ${t} Z`},[cn.PARALLELOGRAM_LEFT]:{editable:!0,defaultValue:.25,range:[0,.9],relative:"left",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M ${r} 0 L ${e} 0 L ${e-r} ${t} L 0 ${t} Z`}},[cn.PARALLELOGRAM_RIGHT]:{editable:!0,defaultValue:.25,range:[0,.9],relative:"right",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M 0 0 L ${e-r} 0 L ${e} ${t} L ${r} ${t} Z`}},[cn.TRAPEZOID]:{editable:!0,defaultValue:.25,range:[0,.5],relative:"left",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M ${r} 0 L ${e-r} 0 L ${e} ${t} L 0 ${t} Z`}},[cn.BULLET]:{editable:!0,defaultValue:.2,range:[0,1],relative:"top",getBaseSize:(e,t)=>t,formula:(e,t,n)=>{const r=t*n;return`M ${e/2} 0 L 0 ${r} L 0 ${t} L ${e} ${t} L ${e} ${r} Z`}},[cn.INDICATOR]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M ${e} ${t/2} L ${e-r} 0 L 0 0 L ${r} ${t/2} L 0 ${t} L ${e-r} ${t} Z`}}},Nb=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",pptxShapeType:"rect"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z",pathFormula:cn.ROUND_RECT,pptxShapeType:"roundRect"},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z",pathFormula:cn.CUT_RECT_SINGLE,pptxShapeType:"snip1Rect"},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:cn.CUT_RECT_SAMESIDE,pptxShapeType:"snip2SameRect"},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z",pathFormula:cn.CUT_RECT_DIAGONAL,pptxShapeType:"snip2DiagRect"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:cn.CUT_ROUND_RECT,pptxShapeType:"snipRoundRect"},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:cn.ROUND_RECT_SINGLE,pptxShapeType:"round1Rect"},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:cn.ROUND_RECT_SAMESIDE,pptxShapeType:"round2SameRect"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 200 150 Q 200 200 150 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:cn.ROUND_RECT_DIAGONAL,pptxShapeType:"round2DiagRect"},{viewBox:[200,200],path:"M 0 80 L 60 0 L 100 40 L 180 20 L 200 120 L 160 200 L 0 200 L 60 140 Z",title:"任意多边形"}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",pptxShapeType:"ellipse"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:cn.TRIANGLE,pptxShapeType:"triangle"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 70 20 L 0 160 Q 0 200 40 200 L 160 200 Q 200 200 200 160 L 130 20 Q 100 -20 70 20 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:cn.PARALLELOGRAM_LEFT,pptxShapeType:"parallelogram"},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:cn.PARALLELOGRAM_RIGHT},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:cn.TRAPEZOID,pptxShapeType:"trapezoid"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z",pptxShapeType:"diamond"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:cn.BULLET},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:cn.INDICATOR},{viewBox:[200,200],path:"M 0 0 C 80 20 120 20 200 0 C 180 80 180 120 200 200 C 80 180 120 180 0 200 C 20 120 20 80 0 0 Z"},{viewBox:[200,200],path:"M 10 10 C 60 0 140 0 190 10 C 200 60 200 140 190 190 C 140 200 60 200 10 190 C 0 140 0 60 10 10 Z"},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z",pptxShapeType:"pie"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z",pptxShapeType:"chord"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z",pptxShapeType:"teardrop"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z",pptxShapeType:"pentagon"},{viewBox:[200,200],path:"M 40 0 L 160 0 L 200 100 L 160 200 L 40 200 L 0 100 Z",pptxShapeType:"hexagon"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z",pptxShapeType:"octagon"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:cn.L},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:cn.RING_RECT},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pathFormula:cn.PLUS},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:cn.MESSAGE},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:cn.ROUND_MESSAGE},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 120 80 L 200 100 L 120 120 L 100 200 L 80 120 L 0 100 L 80 80 L 100 0 Z",pptxShapeType:"star4"},{viewBox:[1024,1024],path:"M1018.67652554 400.05983681l-382.95318779-5.89158658L512 34.78141155 388.27666225 394.16825023l-382.95318779 5.89158658L311.68602415 629.83174977l-117.83174978 365.27842665 312.25413766-223.88032637 312.25413904 223.88032637-117.83175116-365.27842665 318.14572563-229.77191296z",pptxShapeType:"star5",special:!0},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 140 60 L 200 60 L 160 100 L 200 140 L 140 140 L 100 200 L 60 140 L 0 140 L 40 100 L 0 60 L 60 60 L 100 0 Z",pptxShapeType:"star6"},{viewBox:[200,200],path:"M 100 0 L 80 40 L 20 20 L 40 80 L 0 100 L 40 120 L 20 180 L 80 160 L 100 200 L 120 160 L 180 180 L 160 120 L 200 100 L 160 80 L 180 20 L 120 40 L 100 0 Z"},{viewBox:[200,200],path:"M 200 0 C 80 40 80 160 200 200 C -60 200 -60 0 200 0 Z"}]},{type:"箭头",children:[{viewBox:[200,200],path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z",pptxShapeType:"upArrow"},{viewBox:[200,200],path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z",pptxShapeType:"downArrow"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z",pptxShapeType:"leftArrow"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"rightArrow"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z",pptxShapeType:"upDownArrow"},{viewBox:[200,200],path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z",pptxShapeType:"leftRightArrow"},{viewBox:[200,200],path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"notchedRightArrow"},{viewBox:[200,200],path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:[200,200],path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z",pptxShapeType:"chevron"},{viewBox:[200,200],path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:[200,200],path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z",pptxShapeType:"homePlate"},{viewBox:[200,200],path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:[1024,1024],path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:[1024,1024],path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:[1024,1024],path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:[1024,1024],path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:[1024,1024],path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:[1024,1024],path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:[1024,1024],path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:[1024,1024],path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:[1024,1024],path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:[1024,1024],path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:[1024,1024],path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:[1024,1024],path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:[1024,1024],path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:[1024,1024],path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:[1024,1024],path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:[1024,1024],path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:[1024,1024],path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:[1024,1024],path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0},{viewBox:[1024,1024],path:"M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z",special:!0},{viewBox:[1024,1024],path:"M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z",special:!0},{viewBox:[1024,1024],path:"M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m220.16 343.26755556l-239.616 332.23111111c-14.44977778 20.13866667-44.37333333 20.13866667-58.82311111 0L291.84 481.16622222c-4.32355555-6.03022222 0-14.44977778 7.39555555-14.44977777h53.36177778c11.60533333 0 22.64177778 5.57511111 29.46844445 15.13244444l81.00977777 112.41244444 178.85866667-248.03555555c6.82666667-9.44355555 17.74933333-15.13244445 29.46844445-15.13244445H724.76444445c7.39555555 0 11.71911111 8.41955555 7.39555555 14.44977778z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h418.70222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m188.18844445 703.37422223l-75.09333334-0.34133333L512 570.48177778l-112.98133333 134.71288889-75.20711112 0.34133333c-5.00622222 0-9.10222222-3.98222222-9.10222222-9.10222222 0-2.16177778 0.79644445-4.20977778 2.16177778-5.91644445l148.02488889-176.35555555L316.87111111 337.92c-1.36533333-1.70666667-2.16177778-3.75466667-2.16177778-5.91644445 0-5.00622222 4.096-9.10222222 9.10222222-9.10222222l75.20711112 0.34133334L512 458.06933333l112.98133333-134.71288888 75.09333334-0.34133334c5.00622222 0 9.10222222 3.98222222 9.10222222 9.10222222 0 2.16177778-0.79644445 4.20977778-2.16177778 5.91644445L559.21777778 514.27555555l147.91111111 176.35555556c1.36533333 1.70666667 2.16177778 3.75466667 2.16177778 5.91644444 0 5.00622222-4.096 9.10222222-9.10222222 9.10222223z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H548.40888889v172.94222222c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222h-54.61333334c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V548.40888889H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h172.94222222V302.64888889c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h54.61333334c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v172.94222222h172.94222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m163.95377778 517.57511112L427.46311111 700.64355555c-1.59288889 1.13777778-3.41333333 1.70666667-5.34755556 1.70666667-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V331.88977778c0-1.93422222 0.56888889-3.75466667 1.70666667-5.34755556 2.95822222-4.096 8.64711111-5.00622222 12.74311111-2.048L675.95377778 505.17333333c0.79644445 0.56888889 1.47911111 1.25155555 2.048 2.048 2.95822222 3.98222222 2.048 9.67111111-2.048 12.62933334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m200.81777778 666.39644445l-32.54044445 44.37333333c-2.95822222 4.096-8.64711111 4.89244445-12.74311111 1.93422222L479.34577778 577.76355555c-2.38933333-1.70666667-3.75466667-4.43733333-3.75466667-7.39555555V257.13777778c0-5.00622222 4.096-9.10222222 9.10222222-9.10222223h54.72711112c5.00622222 0 9.10222222 4.096 9.10222222 9.10222223v281.6l162.24711111 117.30488889c4.096 2.84444445 5.00622222 8.53333333 2.048 12.62933333z",special:!0},{viewBox:[1024,1024],path:"M981.10577778 314.48177778c-25.6-61.09866667-62.464-115.93955555-109.34044445-163.04355556-46.87644445-46.99022222-101.60355555-83.968-162.70222222-109.568C646.59911111 15.58755555 580.38044445 2.27555555 512 2.27555555h-2.27555555c-68.83555555 0.34133333-135.39555555 13.99466667-198.08711112 40.84622223-60.52977778 25.94133333-114.80177778 62.80533333-161.22311111 109.79555555-46.42133333 46.99022222-82.83022222 101.60355555-108.08888889 162.47466667C16.27022222 378.42488889 3.072 445.44 3.41333333 514.38933333c0.34133333 78.96177778 19.22844445 157.35466667 54.49955556 227.44177778v172.94222222c0 28.89955555 23.43822222 52.33777778 52.224 52.33777778h172.71466666c69.97333333 35.38488889 148.13866667 54.272 226.98666667 54.61333334h2.38933333c68.03911111 0 133.91644445-13.19822222 196.03911112-39.02577778 60.75733333-25.37244445 115.37066667-61.78133333 162.13333333-108.31644445 46.87644445-46.53511111 83.74044445-100.92088889 109.568-161.56444444 26.73777778-62.80533333 40.39111111-129.59288889 40.73244445-198.54222223 0.22755555-69.29066667-13.19822222-136.53333333-39.59466667-199.79377777zM284.89955555 566.61333333c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955556 54.61333333-24.34844445 54.61333333-54.49955556 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955556-54.61333333s24.46222222-54.61333333 54.49955556-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM745.4750693 325.8561164l-267.95558363 371.52436096c-16.15876501 22.52048353-49.62140436 22.52048353-65.78016939 0L253.07805667 477.51948567c-4.83490607-6.74342161 0-16.15876501 8.27023406-16.15876499h59.67291961c12.97790576 0 25.31963967 6.23448413 32.95370188 16.92217123l90.59087157 125.70755774 200.01242995-277.37092701c7.63406221-10.56045272 19.84856175-16.92217125 32.95370189-16.92217124H737.20483524c8.27023407 0 13.10514012 9.41534338 8.27023406 16.158765z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h468.2224823c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM720.79160148 697.63494611c5.59831228 6.61618726 0.8906406 16.6677025-7.76129658 16.66770249h-74.94104404c-5.98001539 0-11.70556205-2.67192177-15.64982754-7.25235911L512 575.36271635l-110.43943332 131.68757314c-3.81703111 4.58043732-9.54257777 7.25235911-15.64982754 7.25235911H310.9696951c-8.65193717 0-13.35960887-10.05151525-7.76129658-16.66770249L458.81603326 512 303.20839852 326.36505389c-5.59831228-6.61618726-0.8906406-16.6677025 7.76129658-16.66770249h74.94104404c5.98001539 0 11.70556205 2.67192177 15.64982754 7.25235911L512 448.63728365l110.43943332-131.68757314c3.81703111-4.58043732 9.54257777-7.25235911 15.64982754-7.25235911H713.0303049c8.65193717 0 13.35960887 10.05151525 7.76129658 16.66770249L565.18396674 512l155.60763474 185.63494611z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM677.02297814 523.19662459L423.31764398 722.70011704c-9.41534338 7.37959347-23.28388974 0.76340622-23.28388975-11.19662459V312.62374191c0-11.9600308 13.86854636-18.70345241 23.28388975-11.19662457l253.70533416 199.37625807c7.25235911 5.72554666 7.25235911 16.6677025 0 22.39324918z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H552.71499847v193.39624268c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962h-61.0724977c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962V552.71499847H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h193.39624268V277.88875885c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h61.0724977c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v193.39624268h193.39624268c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M902.67315697 135.41705551L528.62204754 7.94466448C524.10877635 6.40354749 518.05438818 5.63298899 512 5.63298899s-12.10877635 0.7705585-16.62204754 2.31167549L121.32684303 135.41705551c-9.13662215 3.08223399-16.62204754 13.64989334-16.62204753 23.33691443v531.02488283c0 9.68702108 6.27454775 22.45627614 13.87005291 28.51066431L498.0198673 1013.9638196c3.85279247 2.9721542 8.8063828 4.51327118 13.87005291 4.51327118s10.12734022-1.54111698 13.87005291-4.51327118l379.4450189-295.67430252c7.59550517-5.94430839 13.87005291-18.71356345 13.87005291-28.51066431V158.75396994c0.22015956-9.68702108-7.26526581-20.14460066-16.40188796-23.33691443zM712.89560763 323.43332829L478.86598471 645.63685899c-7.04510625 9.68702108-21.57563786 9.68702108-28.6207441 0l-139.14084824-191.5388259c-4.18303182-5.8342286 0-13.9801327 7.15518603-13.9801327h60.76404132c5.61406904 0 11.0079785 2.75199463 14.31037204 7.26526582l71.22162091 97.97100864 166.11039557-228.74579323c3.30239355-4.51327118 8.58622323-7.26526581 14.31037204-7.26526581H705.7404216c7.15518602 0.11007979 11.33821785 8.25598388 7.15518603 14.09021248z",special:!0},{viewBox:[1024,1024],path:"M959.86498307 186.28001231H797.00498922v-101.78749614c0-44.91373267-36.51626425-81.42999692-81.42999691-81.42999693H308.42500769c-44.91373267 0-81.42999692 36.51626425-81.42999691 81.42999693v101.78749614H64.13501693c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499847v40.71499845c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874962h76.8495596l31.42688945 665.43575611c2.03574992 43.38692024 37.91584233 77.61296581 81.30276254 77.6129658h577.64404066c43.5141546 0 79.26701262-34.09881122 81.30276254-77.6129658l31.42688945-665.43575611H990.40123192c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874962v-40.71499845c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499847z m-254.46874039 0H318.60375732v-91.60874653h386.79248536v91.60874653z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 248.62485371H654.50249462V104.85001539c0-22.52048353-18.19451494-40.71499847-40.71499847-40.71499846H94.67126578v-50.89374808c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-71.25124732c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v997.5174623c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h71.25124732c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961V674.85999383h315.54123807v143.77483833c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h529.29497999c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V289.33985217c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846z",special:!0},{viewBox:[1024,1024],path:"M804.63905145 265.16532183V94.67126578h109.42155836c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961H109.93939019c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h109.42155836v170.49405605c0 103.6960117 53.94737296 194.92305513 135.3773699 246.83467817-81.42999692 51.91162303-135.37736988 143.13866646-135.3773699 246.83467817v170.49405605h-109.42155836c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h804.12121962c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-109.42155836V758.83467817c0-103.6960117-53.94737296-194.92305513-135.3773699-246.83467817 81.42999692-51.91162303 135.37736988-143.13866646 135.3773699-246.83467817z",special:!0},{viewBox:[1024,1024],path:"M1020.928 448.44373333l-35.36213334-373.4528c-1.79200001-19.3536-17.2032-34.64533332-36.55679999-36.55679999L575.55626667 3.072h-0.47786666c-3.82293334 0-6.8096 1.19466667-9.07946669 3.46453333L6.53653333 565.99893332c-4.65919999 4.65919999-4.65919999 12.1856 0 16.84480001l434.61973334 434.61973334c2.26986667 2.26986667 5.25653333 3.46453333 8.48213333 3.46453333s6.21226667-1.19466667 8.48213333-3.46453333l559.46239999-559.46239999c2.38933332-2.5088 3.584-5.97333334 3.34506668-9.55733335zM735.40266668 362.66666667c-42.17173333 0-76.45866667-34.28693333-76.45866667-76.45866667s34.28693333-76.45866667 76.45866667-76.45866667 76.45866667 34.28693333 76.45866665 76.45866667-34.28693333 76.45866667-76.45866665 76.45866667z",special:!0}]},{type:"线性",children:[{viewBox:[1024,1024],path:"M1009.55537674 75.96950982l-61.38012212-61.38012214c-4.48769762-4.48769762-11.870684-4.48769762-16.3583816 0L14.44462326 931.67210859c-4.48769762 4.48769762-4.48769762 11.870684 0 16.35838159l61.38012212 61.38012214c4.48769762 4.48769762 11.870684 4.48769762 16.3583816 0L1009.41061232 92.18312698c4.63246205-4.34293316 4.63246205-11.72591956 0.14476442-16.21361716zM210.88996692 419.35075905c114.94296453 0 208.46079213-93.51782759 208.46079213-208.46079213s-93.51782759-208.46079213-208.46079213-208.4607921-208.46079213 93.51782759-208.4607921 208.4607921 93.51782759 208.46079213 208.4607921 208.46079213z m0-312.69118816c57.47148228 0 104.23039605 46.75891379 104.23039607 104.23039603s-46.75891379 104.23039605-104.23039607 104.23039607-104.23039605-46.75891379-104.23039603-104.23039607 46.75891379-104.23039605 104.23039603-104.23039603zM813.11003308 604.64924095c-114.94296453 0-208.46079213 93.51782759-208.46079213 208.46079213s93.51782759 208.46079213 208.46079213 208.4607921 208.46079213-93.51782759 208.4607921-208.4607921-93.51782759-208.46079213-208.4607921-208.46079213z m0 312.69118816c-57.47148228 0-104.23039605-46.75891379-104.23039607-104.23039603s46.75891379-104.23039605 104.23039607-104.23039607 104.23039605 46.75891379 104.23039603 104.23039607-46.75891379 104.23039605-104.23039603 104.23039603z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1004.96017383 478.58365209L483.27851088 25.80594621c-4.00443838-3.45210207-9.11354943-5.3852792-14.49882864-5.38527921h-122.20441284c-10.21822208 0-14.91308089 12.70373557-7.18037228 19.33177152l483.57045622 419.77561022H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672657v82.85044938c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672657h807.92996557L339.25681303 984.24756148c-7.7327086 6.76612003-3.0378498 19.33177153 7.18037229 19.33177152h126.34693531c2.62359757 0 5.24719513-0.96658859 7.18037228-2.76168164L1004.96017383 545.41634791c20.2983601-17.67476253 20.2983601-49.1579333 0-66.83269582z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1011.38217956 558.9924242L545.80649025 22.43713295c-17.81503843-20.62055629-49.79794206-20.62055629-67.75325638 0L12.61782044 558.9924242c-6.31241519 7.29434645-1.12220714 18.51641789 8.41655359 18.51641789h113.62347344c6.45269109 0 12.62483038-2.80551785 16.97338308-7.71517411L458.69516062 215.87758959V1005.77114384c0 6.1721393 5.04993216 11.22207145 11.22207144 11.22207145h84.16553588c6.1721393 0 11.22207145-5.04993216 11.22207144-11.22207145V215.87758959l307.06393007 353.91607839c4.20827679 4.90965626 10.38041608 7.71517413 16.97338308 7.71517411h113.62347344c9.53876074 0 14.72896878-11.22207145 8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1009.1026963 459.52804874H201.17273073l483.57045624-419.77561022c7.7327086-6.76612003 3.0378498-19.33177153-7.18037229-19.33177152h-122.20441283c-5.3852792 0-10.49439025 1.93317715-14.49882866 5.38527921L19.03982617 478.58365209c-20.2983601 17.67476253-20.2983601 49.1579333 0 66.69461175L543.89742302 1000.81765136c2.07126124 1.79509307 4.55677472 2.76168163 7.18037228 2.76168164h126.3469353c10.21822208 0 14.91308089-12.70373557 7.18037228-19.33177152L201.17273073 564.47195126H1009.1026963c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672657v-82.85044938c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672657z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1002.96562597 446.49115791h-113.62347344c-6.45269109 0-12.62483038 2.80551785-16.97338308 7.71517411L565.30483938 808.12241041V18.22885616c0-6.1721393-5.04993216-11.22207145-11.22207144-11.22207145h-84.16553588c-6.1721393 0-11.22207145 5.04993216-11.22207144 11.22207145v789.89355425L151.63123055 454.20633202c-4.20827679-4.90965626-10.38041608-7.71517413-16.97338308-7.71517411h-113.62347344c-9.53876074 0-14.72896878 11.36234735-8.41655359 18.51641789L478.19350975 1001.56286705c17.81503843 20.62055629 49.79794206 20.62055629 67.75325638 0L1011.38217956 465.0075758c6.31241519-7.29434645 1.12220714-18.51641789-8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M975.82443246 622.46726585H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672658v82.85044937c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672659h835.6848661L651.32683905 980.10503902c-5.66144737 7.18037229-0.55233633 17.9509307 8.69929718 17.9509307h100.11095967c6.76612003 0 13.11798782-3.0378498 17.39859437-8.42312903l233.08593092-295.63802022c22.78387358-28.99765728 2.20934532-71.52755463-34.79718873-71.52755462zM1009.1026963 296.58883161H173.4178302l199.25533075-252.69387063c5.66144737-7.18037229 0.55233633-17.9509307-8.69929718-17.9509307h-100.11095967c-6.76612003 0-13.11798782 3.0378498-17.39859437 8.42312903L13.37837881 330.00517953c-22.78387358 28.99765728-2.20934532 71.52755463 34.65910466 71.52755462h961.06521283c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672658v-82.85044937c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672659z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1010.75873115 64.13501693H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874964h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874964v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961zM1010.75873115 858.07748691H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874964v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874964zM1010.75873115 461.10625194H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874959v81.42999694c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874959h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874959v-81.42999694c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874959z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z",special:!0,outlined:!0}]}],hq={bar:"bar",horizontalBar:"bar",line:"line",area:"line",scatter:"line",pie:"pie",ring:"pie"},zt=()=>{const e=Bg(),t=_n.debounce(function(){e.addSnapshot()},300,{trailing:!0}),n=_n.throttle(function(){e.reDo()},100,{leading:!0,trailing:!1}),r=_n.throttle(function(){e.unDo()},100,{leading:!0,trailing:!1});return{addHistorySnapshot:t,redo:n,undo:r}},$u=()=>{const e=ft(),t=ct(),{creatingElement:n}=Xe(e),{theme:r,viewportRatio:o}=Xe(t),{addHistorySnapshot:i}=zt(),a=(A,x)=>{t.addElement(A),e.setActiveElementIdList([A.id]),n.value&&e.setCreatingElement(null),setTimeout(()=>{e.setEditorareaFocus(!0)},0),x&&x(),i()};return{createImageElement:A=>{dq(A).then(({width:x,height:R})=>{const y=R/x;yHt?(x=Ht,R=x*y):R>Ht*o.value&&(R=Ht*o.value,x=R/y),a({type:"image",id:pn(10),src:A,width:x,height:R,left:(Ht-x)/2,top:(Ht*o.value-R)/2,fixedRatio:!0,rotate:0})})},createChartElement:A=>{const x={type:"chart",id:pn(10),chartType:hq[A],left:300,top:81.25,width:400,height:400,rotate:0,themeColor:[r.value.themeColor],gridColor:r.value.fontColor,data:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1"],series:[[12,19,5,2,18]]}},R={...A==="bar"?{horizontalBars:!1,stackBars:!1}:{},...A==="horizontalBar"?{horizontalBars:!0,stackBars:!1}:{},...A==="line"?{showLine:!0,lineSmooth:!0,showArea:!1}:{},...A==="area"?{showLine:!0,lineSmooth:!0,showArea:!0}:{},...A==="scatter"?{showLine:!1,lineSmooth:!0,showArea:!1}:{},...A==="pie"?{donut:!1}:{},...A==="ring"?{donut:!0}:{}};a({...x,options:R})},createTableElement:(A,x)=>{const R={fontname:r.value.fontName,color:r.value.fontColor},y=[];for(let O=0;O{const{left:R,top:y,width:g,height:S}=A,L=(x==null?void 0:x.content)||"",T=(x==null?void 0:x.vertical)||!1,M=pn(10);a({type:"text",id:M,left:R,top:y,width:g,height:S,content:L,rotate:0,defaultFontName:r.value.fontName,defaultColor:r.value.fontColor,vertical:T},()=>{setTimeout(()=>{const O=document.querySelector(`#editable-element-${M} .ProseMirror`);O&&O.focus()},0)})},createShapeElement:(A,x,R={})=>{const{left:y,top:g,width:S,height:L}=A,T={type:"shape",id:pn(10),left:y,top:g,width:S,height:L,viewBox:x.viewBox,path:x.path,fill:r.value.themeColor,fixedRatio:!1,rotate:0,...R};if(x.special&&(T.special=!0),x.pathFormula){T.pathFormula=x.pathFormula,T.viewBox=[S,L];const M=Ju[x.pathFormula];"editable"in M?(T.path=M.formula(S,L,M.defaultValue),T.keypoint=M.defaultValue):T.path=M.formula(S,L)}a(T)},createLineElement:(A,x)=>{const{left:R,top:y,start:g,end:S}=A,L={type:"line",id:pn(10),left:R,top:y,start:g,end:S,points:x.points,color:r.value.themeColor,style:x.style,width:2};x.isBroken&&(L.broken=[(g[0]+S[0])/2,(g[1]+S[1])/2]),x.isCurve&&(L.curve=[(g[0]+S[0])/2,(g[1]+S[1])/2]),x.isCubic&&(L.cubic=[[(g[0]+S[0])/2,(g[1]+S[1])/2],[(g[0]+S[0])/2,(g[1]+S[1])/2]]),a(L)},createLatexElement:A=>{a({type:"latex",id:pn(10),width:A.w,height:A.h,rotate:0,left:(Ht-A.w)/2,top:(Ht*o.value-A.h)/2,path:A.path,latex:A.latex,color:r.value.fontColor,strokeWidth:2,viewBox:[A.w,A.h],fixedRatio:!0})},createVideoElement:A=>{a({type:"video",id:pn(10),width:500,height:300,rotate:0,left:(Ht-500)/2,top:(Ht*o.value-300)/2,src:A,autoplay:!1})},createAudioElement:A=>{a({type:"audio",id:pn(10),width:50,height:50,rotate:0,left:(Ht-50)/2,top:(Ht*o.value-50)/2,loop:!1,autoplay:!1,fixedRatio:!0,color:r.value.themeColor,src:A})}}},Kg=()=>{const e=ft(),t=ct(),{currentSlide:n,slides:r}=Xe(t),{addHistorySnapshot:o}=zt(),i=c=>{const{groupIdMap:l,elIdMap:u}=d3(c),f=c[0];let d=0,h;do h=n.value.elements.find(p=>{if(p.type!==f.type)return!1;const{minX:m,maxX:A,minY:x,maxY:R}=Ma(p),{minX:y,maxX:g,minY:S,maxY:L}=Ma({...f,left:f.left+d,top:f.top+d});return m===y&&A===g&&x===S&&R===L}),h&&(d+=10);while(h);for(const p of c)p.id=u[p.id],p.left=p.left+d,p.top=p.top+d,p.groupId&&(p.groupId=l[p.groupId]);t.addElement(c),e.setActiveElementIdList(Object.values(u)),o()},a=c=>{const l=XJ(c),u=c.map(f=>{const{groupIdMap:d,elIdMap:h}=d3(f.elements);for(const p of f.elements)p.id=h[p.id],p.groupId&&(p.groupId=d[p.groupId]),p.link&&p.link.type==="slide"&&(l[p.link.target]?p.link.target=l[p.link.target]:delete p.link);if(f.animations)for(const p of f.animations)p.id=pn(10),p.elId=h[p.elId];return{...f,id:l[f.id]}});t.addSlide(u),o()},s=Me(()=>!(r.value.length>1||r.value[0].elements.length>0));return{addElementsFromData:i,addSlidesFromData:a,isEmptySlide:s}},Pb=()=>{const{createTextElement:e}=$u(),{addElementsFromData:t,addSlidesFromData:n}=Kg(),r=i=>{e({left:0,top:0,width:600,height:50},{content:i})};return{pasteTextClipboardData:(i,a)=>{const s=(a==null?void 0:a.onlySlide)||!1,c=(a==null?void 0:a.onlyElements)||!1,l=Ob(i);if(typeof l=="object"){const{type:u,data:f}=l;u==="elements"&&!s?t(f):u==="slides"&&!c&&n(f)}else if(!c&&!s){const u=kb(l);r(u)}}}},Dd=()=>{const e=ft(),t=ct(),{selectedSlidesIndex:n,activeElementIdList:r}=Xe(e),{currentSlide:o,slides:i,theme:a,slideIndex:s}=Xe(t),c=Me(()=>[...n.value,s.value]),l=Me(()=>i.value.filter((O,k)=>c.value.includes(k))),u=Me(()=>l.value.map(O=>O.id)),{pasteTextClipboardData:f}=Pb(),{addSlidesFromData:d}=Kg(),{addHistorySnapshot:h}=zt(),p=()=>{const O={id:pn(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};t.updateSlideIndex(0),e.setActiveElementIdList([]),t.setSlides([O])},m=O=>{O===yt.UP&&s.value>0?(r.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(s.value-1)):O===yt.DOWN&&s.value{const O=Lb(JSON.stringify({type:"slides",data:l.value}));KP(O).then(()=>{e.setThumbnailsFocus(!0)})},x=()=>{HP().then(O=>{f(O,{onlySlide:!0})}).catch(O=>Sn.warning(O))},R=()=>{const O={id:pn(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};e.setActiveElementIdList([]),t.addSlide(O),h()},y=O=>{const{groupIdMap:k,elIdMap:F}=d3(O.elements);for(const E of O.elements)E.id=F[E.id],E.groupId&&(E.groupId=k[E.groupId]);const N={...O,id:pn(10)};e.setActiveElementIdList([]),t.addSlide(N),h()},g=()=>{const O=JSON.parse(JSON.stringify(o.value));d([O])},S=(O=u.value)=>{i.value.length===O.length?p():t.deleteSlide(O),e.updateSelectedSlidesIndex([]),h()};return{resetSlides:p,updateSlideIndex:m,copySlide:A,pasteSlide:x,createSlide:R,createSlideByTemplate:y,copyAndPasteSlide:g,deleteSlide:S,cutSlide:()=>{const O=[...u.value];A(),S(O)},selectAllSlide:()=>{const O=Array.from(Array(i.value.length),(k,F)=>F);e.setActiveElementIdList([]),e.updateSelectedSlidesIndex(O)},sortSlides:(O,k)=>{if(k===O)return;const F=JSON.parse(JSON.stringify(i.value)),N=F[k];F.splice(k,1),F.splice(O,0,N),t.setSlides(F),t.updateSlideIndex(O)}}},JP=()=>{const e=ft(),t=ct(),{activeElementIdList:n}=Xe(e),{currentSlide:r}=Xe(t),{addHistorySnapshot:o}=zt();return{lockElement:()=>{const s=JSON.parse(JSON.stringify(r.value.elements));for(const c of s)n.value.includes(c.id)&&(c.lock=!0);t.updateSlide({elements:s}),e.setActiveElementIdList([]),o()},unlockElement:s=>{const c=JSON.parse(JSON.stringify(r.value.elements));if(s.groupId){const l=[];for(const u of c)u.groupId===s.groupId&&(u.lock=!1,l.push(u.id));t.updateSlide({elements:c}),e.setActiveElementIdList(l)}else{for(const l of c)if(l.id===s.id){l.lock=!1;break}t.updateSlide({elements:c}),e.setActiveElementIdList([s.id])}o()}}},kp=()=>{const e=ft(),t=ct(),{activeElementIdList:n,activeGroupElementId:r}=Xe(e),{currentSlide:o}=Xe(t),{addHistorySnapshot:i}=zt();return{deleteElement:()=>{if(!n.value.length)return;let c=[];r.value?c=o.value.elements.filter(l=>l.id!==r.value):c=o.value.elements.filter(l=>!n.value.includes(l.id)),e.setActiveElementIdList([]),t.updateSlide({elements:c}),i()},deleteAllElements:()=>{o.value.elements.length&&(e.setActiveElementIdList([]),t.updateSlide({elements:[]}),i())}}},Cb=()=>{const e=ft(),t=ct(),{activeElementIdList:n,activeElementList:r,handleElementId:o}=Xe(e),{currentSlide:i}=Xe(t),{addHistorySnapshot:a}=zt();return{canCombine:Me(()=>{if(r.value.length<2)return!1;const u=r.value[0].groupId;return u?!r.value.every(d=>(d.groupId&&d.groupId)===u):!0}),combineElements:()=>{if(!r.value.length)return;let u=JSON.parse(JSON.stringify(i.value.elements));const f=pn(10),d=[];for(const A of u)n.value.includes(A.id)&&(A.groupId=f,d.push(A));const h=u.findIndex(A=>A.id===d[d.length-1].id),p=d.map(A=>A.id);u=u.filter(A=>!p.includes(A.id));const m=h-d.length+1;u.splice(m,0,...d),t.updateSlide({elements:u}),a()},uncombineElements:()=>{if(!r.value.length||!r.value.some(h=>h.groupId))return;const f=JSON.parse(JSON.stringify(i.value.elements));for(const h of f)n.value.includes(h.id)&&h.groupId&&delete h.groupId;t.updateSlide({elements:f});const d=o.value?[o.value]:[];e.setActiveElementIdList(d),a()}}},Ib=()=>{const e=ft(),{activeElementIdList:t,activeElementList:n}=Xe(e),{pasteTextClipboardData:r}=Pb(),{deleteElement:o}=kp(),i=()=>{if(!t.value.length)return;const l=Lb(JSON.stringify({type:"elements",data:n.value}));KP(l).then(()=>{e.setEditorareaFocus(!0)})},a=()=>{i(),o()},s=()=>{HP().then(l=>{r(l)}).catch(l=>Sn.warning(l))};return{copyElement:i,cutElement:a,pasteElement:s,quickCopyElement:()=>{i(),s()}}},Hg=()=>{const e=ft(),{currentSlide:t}=Xe(ct()),{hiddenElementIdList:n,handleElementId:r}=Xe(e);return{selectAllElements:()=>{const s=t.value.elements.filter(c=>!c.lock&&!n.value.includes(c.id)).map(c=>c.id);e.setActiveElementIdList(s)},selectElement:a=>{r.value===a||n.value.includes(a)||t.value.elements.filter(c=>c.lock).some(c=>c.id===a)||e.setActiveElementIdList([a])}}},pq=()=>{const e=ct(),{activeElementIdList:t,activeGroupElementId:n}=Xe(ft()),{currentSlide:r}=Xe(e),{addHistorySnapshot:o}=zt();return{moveElement:(a,s=1)=>{let c=[];const l=u=>{let{left:f,top:d}=u;switch(a){case yt.LEFT:f=f-s;break;case yt.RIGHT:f=f+s;break;case yt.UP:d=d-s;break;case yt.DOWN:d=d+s;break}return{...u,left:f,top:d}};n.value?c=r.value.elements.map(u=>n.value===u.id?l(u):u):c=r.value.elements.map(u=>t.value.includes(u.id)?l(u):u),e.updateSlide({elements:c}),o()}}},Np=()=>{const e=ct(),{currentSlide:t}=Xe(e),{addHistorySnapshot:n}=zt(),r=(l,u)=>({minLevel:l.findIndex(f=>f.id===u[0].id),maxLevel:l.findIndex(f=>f.id===u[u.length-1].id)}),o=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(x=>x.groupId===u.groupId),{minLevel:h,maxLevel:p}=r(l,d);if(p===l.length-1)return;const m=f[p+1],A=f.splice(h,d.length);if(m.groupId){const x=f.filter(R=>R.groupId===m.groupId);f.splice(h+x.length,0,...A)}else f.splice(h+1,0,...A)}else{const d=l.findIndex(m=>m.id===u.id);if(d===l.length-1)return;const h=f[d+1],p=f.splice(d,1)[0];if(h.groupId){const m=f.filter(A=>A.groupId===h.groupId);f.splice(d+m.length,0,p)}else f.splice(d+1,0,p)}return f},i=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(A=>A.groupId===u.groupId),{minLevel:h}=r(l,d);if(h===0)return;const p=f[h-1],m=f.splice(h,d.length);if(p.groupId){const A=f.filter(x=>x.groupId===p.groupId);f.splice(h-A.length,0,...m)}else f.splice(h-1,0,...m)}else{const d=l.findIndex(m=>m.id===u.id);if(d===0)return;const h=f[d-1],p=f.splice(d,1)[0];if(h.groupId){const m=f.filter(A=>A.groupId===h.groupId);f.splice(d-m.length,0,p)}else f.splice(d-1,0,p)}return f},a=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(A=>A.groupId===u.groupId),{minLevel:h,maxLevel:p}=r(l,d);if(p===l.length-1)return null;const m=f.splice(h,d.length);f.push(...m)}else{const d=l.findIndex(h=>h.id===u.id);if(d===l.length-1)return null;f.splice(d,1),f.push(u)}return f},s=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(m=>m.groupId===u.groupId),{minLevel:h}=r(l,d);if(h===0)return;const p=f.splice(h,d.length);f.unshift(...p)}else{const d=l.findIndex(h=>h.id===u.id);if(d===0)return;f.splice(d,1),f.unshift(u)}return f};return{orderElement:(l,u)=>{let f;u===pr.UP?f=o(t.value.elements,l):u===pr.DOWN?f=i(t.value.elements,l):u===pr.TOP?f=a(t.value.elements,l):u===pr.BOTTOM&&(f=s(t.value.elements,l)),f&&(e.updateSlide({elements:f}),n())}}},Fb=()=>{const e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()},$P=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},p3=()=>!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement),Mc=()=>{const e=VP(),t=ct(),n=()=>{Fb(),e.setScreening(!0)};return{enterScreening:n,enterScreeningFromStart:()=>{t.updateSlideIndex(0),n()},exitScreening:()=>{e.setScreening(!1),p3()&&$P()}}},_b=()=>{const e=ft(),{canvasPercentage:t,canvasScale:n,canvasDragged:r}=Xe(e);return{canvasScalePercentage:Me(()=>Math.round(n.value*100)+"%"),setCanvasScalePercentage:c=>{const l=Math.round(c/n.value*t.value)/100;e.setCanvasPercentage(l)},scaleCanvas:c=>{let l=t.value;const u=5,f=200,d=30;c==="+"&&l<=f&&(l+=u),c==="-"&&l>=d&&(l-=u),e.setCanvasPercentage(l)},resetCanvas:()=>{e.setCanvasPercentage(90),r&&e.setCanvasDragged(!1)}}},mq=()=>{const e=ft(),t=Ss(),{activeElementIdList:n,disableHotkeys:r,handleElement:o,handleElementId:i,editorAreaFocus:a,thumbnailsFocus:s,showSearchPanel:c}=Xe(e),{currentSlide:l}=Xe(ct()),{ctrlKeyState:u,shiftKeyState:f,spaceKeyState:d}=Xe(t),{updateSlideIndex:h,copySlide:p,createSlide:m,deleteSlide:A,cutSlide:x,copyAndPasteSlide:R,selectAllSlide:y}=Dd(),{combineElements:g,uncombineElements:S}=Cb(),{deleteElement:L}=kp(),{lockElement:T}=JP(),{copyElement:M,cutElement:O,quickCopyElement:k}=Ib(),{selectAllElements:F}=Hg(),{moveElement:N}=pq(),{orderElement:E}=Np(),{redo:P,undo:_}=zt(),{enterScreening:I,enterScreeningFromStart:W}=Mc(),{scaleCanvas:D,resetCanvas:z}=_b(),ae=()=>{n.value.length?M():s.value&&p()},U=()=>{n.value.length?O():s.value&&x()},Z=()=>{n.value.length?k():s.value&&R()},B=()=>{a.value&&F(),s.value&&y()},G=()=>{a.value&&T()},Q=()=>{a.value&&g()},ie=()=>{a.value&&S()},q=()=>{n.value.length?L():s.value&&A()},oe=te=>{n.value.length?N(te):(te===yt.UP||te===yt.DOWN)&&h(te)},he=te=>{te===yt.PAGEUP?h(yt.UP):te===yt.PAGEDOWN&&h(yt.DOWN)},me=te=>{o.value&&E(o.value,te)},ve=()=>{s.value&&m()},J=()=>{if(!l.value.elements.length)return;if(!i.value){const j=l.value.elements[0];e.setActiveElementIdList([j.id]);return}const te=l.value.elements.findIndex(j=>j.id===i.value),le=te>=l.value.elements.length-1?0:te+1,$=l.value.elements[le].id;e.setActiveElementIdList([$])},ue=te=>{const{ctrlKey:le,shiftKey:$,altKey:j,metaKey:se}=te,ge=le||se,ce=te.key.toUpperCase();if(ge&&!u.value&&t.setCtrlKeyState(!0),$&&!f.value&&t.setShiftKeyState(!0),!r.value&&ce===yt.SPACE&&t.setSpaceKeyState(!0),ge&&ce===yt.P){te.preventDefault(),e.setDialogForExport("pdf");return}if($&&ce===yt.F5){te.preventDefault(),I(),t.setShiftKeyState(!1);return}if(ce===yt.F5){te.preventDefault(),W();return}if(le&&ce===yt.F){te.preventDefault(),e.setSearchPanelState(!c.value);return}if(!(!a.value&&!s.value)){if(ge&&ce===yt.C){if(r.value)return;te.preventDefault(),ae()}if(ge&&ce===yt.X){if(r.value)return;te.preventDefault(),U()}if(ge&&ce===yt.D){if(r.value)return;te.preventDefault(),Z()}if(ge&&ce===yt.Z){if(r.value)return;te.preventDefault(),_()}if(ge&&ce===yt.Y){if(r.value)return;te.preventDefault(),P()}if(ge&&ce===yt.A){if(r.value)return;te.preventDefault(),B()}if(ge&&ce===yt.L){if(r.value)return;te.preventDefault(),G()}if(!$&&ge&&ce===yt.G){if(r.value)return;te.preventDefault(),Q()}if($&&ge&&ce===yt.G){if(r.value)return;te.preventDefault(),ie()}if(j&&ce===yt.F){if(r.value)return;te.preventDefault(),me(pr.TOP)}if(j&&ce===yt.B){if(r.value)return;te.preventDefault(),me(pr.BOTTOM)}if(ce===yt.DELETE||ce===yt.BACKSPACE){if(r.value)return;te.preventDefault(),q()}if(ce===yt.UP){if(r.value)return;te.preventDefault(),oe(yt.UP)}if(ce===yt.DOWN){if(r.value)return;te.preventDefault(),oe(yt.DOWN)}if(ce===yt.LEFT){if(r.value)return;te.preventDefault(),oe(yt.LEFT)}if(ce===yt.RIGHT){if(r.value)return;te.preventDefault(),oe(yt.RIGHT)}if(ce===yt.PAGEUP){if(r.value)return;te.preventDefault(),he(yt.PAGEUP)}if(ce===yt.PAGEDOWN){if(r.value)return;te.preventDefault(),he(yt.PAGEDOWN)}if(ce===yt.ENTER){if(r.value)return;te.preventDefault(),ve()}if(ce===yt.MINUS){if(r.value)return;te.preventDefault(),D("-")}if(ce===yt.EQUAL){if(r.value)return;te.preventDefault(),D("+")}if(ce===yt.DIGIT_0){if(r.value)return;te.preventDefault(),z()}if(ce===yt.TAB){if(r.value)return;te.preventDefault(),J()}}},X=()=>{u.value&&t.setCtrlKeyState(!1),f.value&&t.setShiftKeyState(!1),d.value&&t.setSpaceKeyState(!1)};Gt(()=>{document.addEventListener("keydown",ue),document.addEventListener("keyup",X),window.addEventListener("blur",X)}),On(()=>{document.removeEventListener("keydown",ue),document.removeEventListener("keyup",X),window.removeEventListener("blur",X)})},vq=()=>{const{editorAreaFocus:e,thumbnailsFocus:t,disableHotkeys:n}=Xe(ft()),{pasteTextClipboardData:r}=Pb(),{createImageElement:o}=$u(),i=s=>{zu(s).then(c=>o(c))},a=s=>{if(!e.value&&!t.value||n.value||!s.clipboardData)return;const c=s.clipboardData.items,l=c[0];if(l){for(const u of c)if(u.kind==="file"&&u.type.indexOf("image")!==-1){const f=u.getAsFile();f&&i(f);return}l.kind==="string"&&l.type==="text/plain"&&l.getAsString(u=>r(u))}};Gt(()=>{document.addEventListener("paste",a)}),On(()=>{document.removeEventListener("paste",a)})};function jP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yw(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,o)}function ii(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){yw(i,r,o,a,s,"next",c)}function s(c){yw(i,r,o,a,s,"throw",c)}a(void 0)})}}var Ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gg(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var qP={exports:{}},xw={exports:{}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(xw),function(e){var t=xw.exports.default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(_,I,W){_[I]=W.value},s=typeof Symbol=="function"?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(_,I,W){return Object.defineProperty(_,I,{value:W,enumerable:!0,configurable:!0,writable:!0}),_[I]}try{f({},"")}catch{f=function(I,W,D){return I[W]=D}}function d(_,I,W,D){var z=I&&I.prototype instanceof m?I:m,ae=Object.create(z.prototype),U=new N(D||[]);return a(ae,"_invoke",{value:M(_,W,U)}),ae}function h(_,I,W){try{return{type:"normal",arg:_.call(I,W)}}catch(D){return{type:"throw",arg:D}}}r.wrap=d;var p={};function m(){}function A(){}function x(){}var R={};f(R,c,function(){return this});var y=Object.getPrototypeOf,g=y&&y(y(E([])));g&&g!==o&&i.call(g,c)&&(R=g);var S=x.prototype=m.prototype=Object.create(R);function L(_){["next","throw","return"].forEach(function(I){f(_,I,function(W){return this._invoke(I,W)})})}function T(_,I){function W(z,ae,U,Z){var B=h(_[z],_,ae);if(B.type!=="throw"){var G=B.arg,Q=G.value;return Q&&t(Q)=="object"&&i.call(Q,"__await")?I.resolve(Q.__await).then(function(ie){W("next",ie,U,Z)},function(ie){W("throw",ie,U,Z)}):I.resolve(Q).then(function(ie){G.value=ie,U(G)},function(ie){return W("throw",ie,U,Z)})}Z(B.arg)}var D;a(this,"_invoke",{value:function(z,ae){function U(){return new I(function(Z,B){W(z,ae,Z,B)})}return D=D?D.then(U,U):U()}})}function M(_,I,W){var D="suspendedStart";return function(z,ae){if(D==="executing")throw new Error("Generator is already running");if(D==="completed"){if(z==="throw")throw ae;return P()}for(W.method=z,W.arg=ae;;){var U=W.delegate;if(U){var Z=O(U,W);if(Z){if(Z===p)continue;return Z}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(D==="suspendedStart")throw D="completed",W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);D="executing";var B=h(_,I,W);if(B.type==="normal"){if(D=W.done?"completed":"suspendedYield",B.arg===p)continue;return{value:B.arg,done:W.done}}B.type==="throw"&&(D="completed",W.method="throw",W.arg=B.arg)}}}function O(_,I){var W=_.iterator[I.method];if(W===void 0){if(I.delegate=null,I.method==="throw"){if(_.iterator.return&&(I.method="return",I.arg=void 0,O(_,I),I.method==="throw"))return p;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var D=h(W,_.iterator,I.arg);if(D.type==="throw")return I.method="throw",I.arg=D.arg,I.delegate=null,p;var z=D.arg;return z?z.done?(I[_.resultName]=z.value,I.next=_.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,p):z:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,p)}function k(_){var I={tryLoc:_[0]};1 in _&&(I.catchLoc=_[1]),2 in _&&(I.finallyLoc=_[2],I.afterLoc=_[3]),this.tryEntries.push(I)}function F(_){var I=_.completion||{};I.type="normal",delete I.arg,_.completion=I}function N(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(k,this),this.reset(!0)}function E(_){if(_){var I=_[c];if(I)return I.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var W=-1,D=function z(){for(;++W<_.length;)if(i.call(_,W))return z.value=_[W],z.done=!1,z;return z.value=void 0,z.done=!0,z};return D.next=D}}return{next:P}}function P(){return{value:void 0,done:!0}}return A.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:A,configurable:!0}),A.displayName=f(x,u,"GeneratorFunction"),r.isGeneratorFunction=function(_){var I=typeof _=="function"&&_.constructor;return!!I&&(I===A||(I.displayName||I.name)==="GeneratorFunction")},r.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,x):(_.__proto__=x,f(_,u,"GeneratorFunction")),_.prototype=Object.create(S),_},r.awrap=function(_){return{__await:_}},L(T.prototype),f(T.prototype,l,function(){return this}),r.AsyncIterator=T,r.async=function(_,I,W,D,z){z===void 0&&(z=Promise);var ae=new T(d(_,I,W,D),z);return r.isGeneratorFunction(I)?ae:ae.next().then(function(U){return U.done?U.value:ae.next()})},L(S),f(S,u,"Generator"),f(S,c,function(){return this}),f(S,"toString",function(){return"[object Generator]"}),r.keys=function(_){var I=Object(_),W=[];for(var D in I)W.push(D);return W.reverse(),function z(){for(;W.length;){var ae=W.pop();if(ae in I)return z.value=ae,z.done=!1,z}return z.done=!0,z}},r.values=E,N.prototype={constructor:N,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!_)for(var I in this)I.charAt(0)==="t"&&i.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var I=this;function W(B,G){return ae.type="throw",ae.arg=_,I.next=B,G&&(I.method="next",I.arg=void 0),!!G}for(var D=this.tryEntries.length-1;D>=0;--D){var z=this.tryEntries[D],ae=z.completion;if(z.tryLoc==="root")return W("end");if(z.tryLoc<=this.prev){var U=i.call(z,"catchLoc"),Z=i.call(z,"finallyLoc");if(U&&Z){if(this.prev=0;--W){var D=this.tryEntries[W];if(D.tryLoc<=this.prev&&i.call(D,"finallyLoc")&&this.prev=0;--I){var W=this.tryEntries[I];if(W.finallyLoc===_)return this.complete(W.completion,W.afterLoc),F(W),p}},catch:function(_){for(var I=this.tryEntries.length-1;I>=0;--I){var W=this.tryEntries[I];if(W.tryLoc===_){var D=W.completion;if(D.type==="throw"){var z=D.arg;F(W)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(_,I,W){return this.delegate={iterator:E(_),resultName:I,nextLoc:W},this.method==="next"&&(this.arg=void 0),p}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(qP);var Zm=qP.exports(),Wn=Zm;try{regeneratorRuntime=Zm}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Zm:Function("r","regeneratorRuntime = r")(Zm)}var Kd={},bw={},Od=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},ts=[],Bi=[],gq=typeof Uint8Array<"u"?Uint8Array:Array,Eb=!1;function e9(){Eb=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+ts[o>>12&63]+ts[o>>6&63]+ts[63&o]);return i.join("")}function Sw(e){var t;Eb||e9();for(var n=e.length,r=n%3,o="",i=[],a=16383,s=0,c=n-r;sc?c:s+a));return r===1?(t=e[n-1],o+=ts[t>>2],o+=ts[t<<4&63],o+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],o+=ts[t>>10],o+=ts[t>>4&63],o+=ts[t<<2&63],o+="="),i.push(o),i.join("")}function sm(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<>1,u=-7,f=n?o-1:0,d=n?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)}function t9(e,t,n,r,o,i){var a,s,c,l=8*i-o-1,u=(1<>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}var Rq={}.toString,n9=Array.isArray||function(e){return Rq.call(e)=="[object Array]"};Ge.TYPED_ARRAY_SUPPORT=Od.TYPED_ARRAY_SUPPORT===void 0||Od.TYPED_ARRAY_SUPPORT;var yq=Qv();function Qv(){return Ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function $s(e,t){if(Qv()=Qv())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Qv().toString(16)+" bytes");return 0|e}function ns(e){return!(e==null||!e._isBuffer)}function i9(e,t){if(ns(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Zv(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return c9(e).length;default:if(r)return Zv(e).length;t=(""+t).toLowerCase(),r=!0}}function xq(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Nq(this,t,n);case"utf8":case"utf-8":return s9(this,t,n);case"ascii":return Tq(this,t,n);case"latin1":case"binary":return kq(this,t,n);case"base64":return Oq(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pq(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Zc(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Mw(e,t,n,r,o){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof t=="string"&&(t=Ge.from(t,r)),ns(t))return t.length===0?-1:ww(e,t,n,r,o);if(typeof t=="number")return t&=255,Ge.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):ww(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function ww(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(h,p){return a===1?h[p]:h.readUInt16BE(p*a)}if(o){var u=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,c=a%256,l.push(c),l.push(s);return l}(t,e.length-n),e,n,r)}function Oq(e,t,n){return t===0&&n===e.length?Sw(e):Sw(e.slice(t,n))}function s9(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(u=l);break;case 2:(192&(i=e[o+1]))==128&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(d){var h=d.length;if(h<=4096)return String.fromCharCode.apply(String,d);for(var p="",m=0;m0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ge.prototype.compare=function(e,t,n,r,o){if(!ns(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),o===void 0&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),u=0;uo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return bq(this,e,t,n);case"utf8":case"utf-8":return Sq(this,e,t,n);case"ascii":return a9(this,e,t,n);case"latin1":case"binary":return Mq(this,e,t,n);case"base64":return wq(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lq(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Ge.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Tq(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Zo(e,t,n,r,o,i){if(!ns(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function lm(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function cm(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function l9(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Lw(e,t,n,r,o){return o||l9(e,0,n,4),t9(e,t,n,r,23,4),n+4}function Ow(e,t,n,r,o){return o||l9(e,0,n,8),t9(e,t,n,r,52,8),n+8}Ge.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},Ge.prototype.readUInt8=function(e,t){return t||Yr(e,1,this.length),this[e]},Ge.prototype.readUInt16LE=function(e,t){return t||Yr(e,2,this.length),this[e]|this[e+1]<<8},Ge.prototype.readUInt16BE=function(e,t){return t||Yr(e,2,this.length),this[e]<<8|this[e+1]},Ge.prototype.readUInt32LE=function(e,t){return t||Yr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ge.prototype.readUInt32BE=function(e,t){return t||Yr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ge.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Yr(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},Ge.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Yr(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Ge.prototype.readInt8=function(e,t){return t||Yr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ge.prototype.readInt16LE=function(e,t){t||Yr(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ge.prototype.readInt16BE=function(e,t){t||Yr(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ge.prototype.readInt32LE=function(e,t){return t||Yr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ge.prototype.readInt32BE=function(e,t){return t||Yr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ge.prototype.readFloatLE=function(e,t){return t||Yr(e,4,this.length),sm(this,e,!0,23,4)},Ge.prototype.readFloatBE=function(e,t){return t||Yr(e,4,this.length),sm(this,e,!1,23,4)},Ge.prototype.readDoubleLE=function(e,t){return t||Yr(e,8,this.length),sm(this,e,!0,52,8)},Ge.prototype.readDoubleBE=function(e,t){return t||Yr(e,8,this.length),sm(this,e,!1,52,8)},Ge.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Zo(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Ge.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,1,255,0),Ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ge.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,65535,0),Ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lm(this,e,t,!0),t+2},Ge.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,65535,0),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lm(this,e,t,!1),t+2},Ge.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,4294967295,0),Ge.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):cm(this,e,t,!0),t+4},Ge.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,4294967295,0),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cm(this,e,t,!1),t+4},Ge.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Zo(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},Ge.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Zo(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Ge.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,1,127,-128),Ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ge.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,32767,-32768),Ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lm(this,e,t,!0),t+2},Ge.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,32767,-32768),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lm(this,e,t,!1),t+2},Ge.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,2147483647,-2147483648),Ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):cm(this,e,t,!0),t+4},Ge.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cm(this,e,t,!1),t+4},Ge.prototype.writeFloatLE=function(e,t,n){return Lw(this,e,t,!0,n)},Ge.prototype.writeFloatBE=function(e,t,n){return Lw(this,e,t,!1,n)},Ge.prototype.writeDoubleLE=function(e,t,n){return Ow(this,e,t,!0,n)},Ge.prototype.writeDoubleBE=function(e,t,n){return Ow(this,e,t,!1,n)},Ge.prototype.copy=function(e,t,n,r){if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Ge.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function c9(e){return function(t){var n,r,o,i,a,s;Eb||e9();var c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[c-2]==="="?2:t[c-1]==="="?1:0,s=new gq(3*c/4-a),o=a>0?c-4:c;var l=0;for(n=0,r=0;n>16&255,s[l++]=i>>8&255,s[l++]=255&i;return a===2?(i=Bi[t.charCodeAt(n)]<<2|Bi[t.charCodeAt(n+1)]>>4,s[l++]=255&i):a===1&&(i=Bi[t.charCodeAt(n)]<<10|Bi[t.charCodeAt(n+1)]<<4|Bi[t.charCodeAt(n+2)]>>2,s[l++]=i>>8&255,s[l++]=255&i),s}(function(t){if((t=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(t).replace(Cq,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function zg(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Pp(e){return e!=null&&(!!e._isBuffer||Tw(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Tw(t.slice(0,0))}(e))}function Tw(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var Fq=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:yq,Buffer:Ge,SlowBuffer:function(e){return+e!=e&&(e=0),Ge.alloc(+e)},isBuffer:Pp}),Tr={};function u9(){throw new Error("setTimeout has not been defined")}function f9(){throw new Error("clearTimeout has not been defined")}var Il=u9,Fl=f9;function d9(e){if(Il===setTimeout)return setTimeout(e,0);if((Il===u9||!Il)&&setTimeout)return Il=setTimeout,setTimeout(e,0);try{return Il(e,0)}catch{try{return Il.call(null,e,0)}catch{return Il.call(this,e,0)}}}typeof Od.setTimeout=="function"&&(Il=setTimeout),typeof Od.clearTimeout=="function"&&(Fl=clearTimeout);var ru,js=[],hd=!1,Bm=-1;function _q(){hd&&ru&&(hd=!1,ru.length?js=ru.concat(js):Bm=-1,js.length&&h9())}function h9(){if(!hd){var e=d9(_q);hd=!0;for(var t=js.length;t;){for(ru=js,js=[];++Bm1)for(var n=1;n0&&a.length>o){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,typeof console.warn=="function"?console.warn(s):console.log(s)}}else a=i[t]=n,++e._eventsCount;return e}function Nw(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function Pw(e){var t=this._events;if(t){var n=t[e];if(typeof n=="function")return 1;if(n)return n.length}return 0}function Cp(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}_l.prototype=Object.create(null),gn.EventEmitter=gn,gn.usingDomains=!1,gn.prototype.domain=void 0,gn.prototype._events=void 0,gn.prototype._maxListeners=void 0,gn.defaultMaxListeners=10,gn.init=function(){this.domain=null,gn.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new _l,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},gn.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},gn.prototype.getMaxListeners=function(){return m9(this)},gn.prototype.emit=function(e){var t,n,r,o,i,a,s,c=e==="error";if(a=this._events)c=c&&a.error==null;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u=typeof n=="function";switch(r=arguments.length){case 1:Dq(n,u,this);break;case 2:Kq(n,u,this,arguments[1]);break;case 3:Hq(n,u,this,arguments[1],arguments[2]);break;case 4:Gq(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount==0)return this._events=new _l,this;delete r[e]}else(function(s,c){for(var l=c,u=l+1,f=s.length;u0?Reflect.ownKeys(this._events):[]};var Jq=Object.freeze({__proto__:null,default:gn,EventEmitter:gn}),sc=typeof Object.create=="function"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},$q=/%[sdj%]/g;function Jg(e){if(!ep(e)){for(var t=[],n=0;n=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}default:return s}}),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),jg(t)?n.showHidden=t:t&&Qb(n,t),ss(n.showHidden)&&(n.showHidden=!1),ss(n.depth)&&(n.depth=2),ss(n.colors)&&(n.colors=!1),ss(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=jq),Bv(n,e,n.depth)}function jq(e,t){var n=fs.styles[t];return n?"\x1B["+fs.colors[n][0]+"m"+e+"\x1B["+fs.colors[n][1]+"m":e}function qq(e,t){return e}function Bv(e,t,n){if(e.customInspect&&t&&Ah(t.inspect)&&t.inspect!==fs&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return ep(r)||(r=Bv(e,r,n)),r}var o=function(d,h){if(ss(h))return d.stylize("undefined","undefined");if(ep(h)){var p="'"+JSON.stringify(h).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(p,"string")}if(Ub(h))return d.stylize(""+h,"number");if(jg(h))return d.stylize(""+h,"boolean");if(Ip(h))return d.stylize("null","null")}(e,t);if(o)return o;var i=Object.keys(t),a=function(d){var h={};return d.forEach(function(p,m){h[p]=!0}),h}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),gh(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return JR(t);if(i.length===0){if(Ah(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(vh(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Dv(t))return e.stylize(Date.prototype.toString.call(t),"date");if(gh(t))return JR(t)}var c,l="",u=!1,f=["{","}"];return Vb(t)&&(u=!0,f=["[","]"]),Ah(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),vh(t)&&(l=" "+RegExp.prototype.toString.call(t)),Dv(t)&&(l=" "+Date.prototype.toUTCString.call(t)),gh(t)&&(l=" "+JR(t)),i.length!==0||u&&t.length!=0?n<0?vh(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=u?function(d,h,p,m,A){for(var x=[],R=0,y=h.length;R60?p[0]+(h===""?"":h+` `)+" "+d.join(`, `)+" "+p[1]:p[0]+h+" "+d.join(", ")+" "+p[1]}(c,l,f)):f[0]+l+f[1]}function JR(e){return"["+Error.prototype.toString.call(e)+"]"}function $R(e,t,n,r,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),x9(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=Ip(n)?Bv(e,c.value,null):Bv(e,c.value,n-1)).indexOf(` @@ -90,11 +90,11 @@ Char: `+e[n])}return n+1&&(n+=1),T}if(e.charCodeAt(n+1)===l){if(e.charCodeAt(n+2 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function tO(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:rO({order:oO++},t),value:e[0]}:e[0];var r,o=Nte(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(k3(i)!=="object")return;if(i.tagName!=="?xml"){n[i.tagName]||(n[i.tagName]=[]);var a=PC(i.children||[],i.attributes);n[i.tagName].push(a),Object.keys(i.attributes).length&&(a.attrs=rO({order:oO++},i.attributes))}}}catch(c){o.e(c)}finally{o.f()}for(var s in n)n[s].length===1&&(n[s]=n[s][0]);return n}function Lo(e,t){return CC.apply(this,arguments)}function CC(){return(CC=ii(Wn.mark(function e(t,n){var r;return Wn.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,t.file(n).async("string");case 3:return r=o.sent,o.abrupt("return",PC(kte(r)));case 7:return o.prev=7,o.t0=o.catch(0),o.abrupt("return",null);case 10:case"end":return o.stop()}},e,null,[[0,7]])}))).apply(this,arguments)}function $v(e){return $v=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},$v(e)}var Pte=/^\s+/,Cte=/\s+$/;function dt(e,t){if(t=t||{},(e=e||"")instanceof dt)return e;if(!(this instanceof dt))return new dt(e,t);var n=function(r){var o={r:0,g:0,b:0},i=1,a=null,s=null,c=null,l=!1,u=!1;typeof r=="string"&&(r=function(p){p=p.replace(Pte,"").replace(Cte,"").toLowerCase();var m,A=!1;if(N3[p])p=N3[p],A=!0;else if(p=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(m=Aa.rgb.exec(p))?{r:m[1],g:m[2],b:m[3]}:(m=Aa.rgba.exec(p))?{r:m[1],g:m[2],b:m[3],a:m[4]}:(m=Aa.hsl.exec(p))?{h:m[1],s:m[2],l:m[3]}:(m=Aa.hsla.exec(p))?{h:m[1],s:m[2],l:m[3],a:m[4]}:(m=Aa.hsv.exec(p))?{h:m[1],s:m[2],v:m[3]}:(m=Aa.hsva.exec(p))?{h:m[1],s:m[2],v:m[3],a:m[4]}:(m=Aa.hex8.exec(p))?{r:mi(m[1]),g:mi(m[2]),b:mi(m[3]),a:uO(m[4]),format:A?"name":"hex8"}:(m=Aa.hex6.exec(p))?{r:mi(m[1]),g:mi(m[2]),b:mi(m[3]),format:A?"name":"hex"}:(m=Aa.hex4.exec(p))?{r:mi(m[1]+""+m[1]),g:mi(m[2]+""+m[2]),b:mi(m[3]+""+m[3]),a:uO(m[4]+""+m[4]),format:A?"name":"hex8"}:(m=Aa.hex3.exec(p))?{r:mi(m[1]+""+m[1]),g:mi(m[2]+""+m[2]),b:mi(m[3]+""+m[3]),format:A?"name":"hex"}:!1}(r)),$v(r)=="object"&&(Xs(r.r)&&Xs(r.g)&&Xs(r.b)?(f=r.r,d=r.g,h=r.b,o={r:255*rr(f,255),g:255*rr(d,255),b:255*rr(h,255)},l=!0,u=String(r.r).substr(-1)==="%"?"prgb":"rgb"):Xs(r.h)&&Xs(r.s)&&Xs(r.v)?(a=H0(r.s),s=H0(r.v),o=function(p,m,A){p=6*rr(p,360),m=rr(m,100),A=rr(A,100);var x=Math.floor(p),R=p-x,y=A*(1-m),g=A*(1-R*m),S=A*(1-(1-R)*m),L=x%6;return{r:255*[A,g,y,y,S,A][L],g:255*[S,A,A,g,y,y][L],b:255*[y,y,S,A,A,g][L]}}(r.h,a,s),l=!0,u="hsv"):Xs(r.h)&&Xs(r.s)&&Xs(r.l)&&(a=H0(r.s),c=H0(r.l),o=function(p,m,A){var x,R,y;function g(T,M,O){return O<0&&(O+=1),O>1&&(O-=1),O<1/6?T+6*(M-T)*O:O<.5?M:O<2/3?T+(M-T)*(2/3-O)*6:T}if(p=rr(p,360),m=rr(m,100),A=rr(A,100),m===0)x=R=y=A;else{var S=A<.5?A*(1+m):A+m-A*m,L=2*A-S;x=g(L,S,p+1/3),R=g(L,S,p),y=g(L,S,p-1/3)}return{r:255*x,g:255*R,b:255*y}}(r.h,a,c),l=!0,u="hsl"),r.hasOwnProperty("a")&&(i=r.a));var f,d,h;return i=IC(i),{ok:l,format:r.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}(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 iO(e,t,n){e=rr(e,255),t=rr(t,255),n=rr(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var c=i-a;switch(o=s>.5?c/(2-i-a):c/(i+a),i){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(dt(r));return i}function Zte(e,t){t=t||6;for(var n=dt(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(dt({h:r,s:o,v:i})),i=(i+s)%1;return a}dt.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=IC(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=aO(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=aO(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=iO(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=iO(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 sO(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(t,n,r,o,i){var a=[ka(Math.round(t).toString(16)),ka(Math.round(n).toString(16)),ka(Math.round(r).toString(16)),ka(FC(o))];return i&&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*rr(this._r,255))+"%",g:Math.round(100*rr(this._g,255))+"%",b:Math.round(100*rr(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*rr(this._r,255))+"%, "+Math.round(100*rr(this._g,255))+"%, "+Math.round(100*rr(this._b,255))+"%)":"rgba("+Math.round(100*rr(this._r,255))+"%, "+Math.round(100*rr(this._g,255))+"%, "+Math.round(100*rr(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(Bte[sO(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+lO(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=dt(e);n="#"+lO(o._r,o._g,o._b,o._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 dt(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(Ete,arguments)},brighten:function(){return this._applyModification(Xte,arguments)},darken:function(){return this._applyModification(Wte,arguments)},desaturate:function(){return this._applyModification(Ite,arguments)},saturate:function(){return this._applyModification(Fte,arguments)},greyscale:function(){return this._applyModification(_te,arguments)},spin:function(){return this._applyModification(Vte,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Qte,arguments)},complement:function(){return this._applyCombination(Ute,arguments)},monochromatic:function(){return this._applyCombination(Zte,arguments)},splitcomplement:function(){return this._applyCombination(Yte,arguments)},triad:function(){return this._applyCombination(cO,[3])},tetrad:function(){return this._applyCombination(cO,[4])}},dt.fromRatio=function(e,t){if($v(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=r==="a"?e[r]:H0(e[r]));e=n}return dt(e,t)},dt.equals=function(e,t){return!(!e||!t)&&dt(e).toRgbString()==dt(t).toRgbString()},dt.random=function(){return dt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},dt.mix=function(e,t,n){n=n===0?0:n||50;var r=dt(e).toRgb(),o=dt(t).toRgb(),i=n/100;return dt({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},dt.readability=function(e,t){var n=dt(e),r=dt(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},dt.isReadable=function(e,t,n){var r,o,i=dt.readability(e,t);switch(o=!1,(r=function(a){var s,c;return s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase(),c=(a.size||"small").toLowerCase(),s!=="AA"&&s!=="AAA"&&(s="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:s,size:c}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},dt.mostReadable=function(e,t,n){var r,o,i,a,s=null,c=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;lc&&(c=r,s=dt(t[l]));return dt.isReadable(e,s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,dt.mostReadable(e,["#fff","#000"],n))};var N3=dt.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"},Bte=dt.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(N3);function IC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function rr(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 r2(e){return Math.min(1,Math.max(0,e))}function mi(e){return parseInt(e,16)}function ka(e){return e.length==1?"0"+e:""+e}function H0(e){return e<=1&&(e=100*e+"%"),e}function FC(e){return Math.round(255*parseFloat(e)).toString(16)}function uO(e){return mi(e)/255}var Ol,vm,gm,Aa=(vm="[\\s|\\(]+("+(Ol="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Ol+")[,|\\s]+("+Ol+")\\s*\\)?",gm="[\\s|\\(]+("+Ol+")[,|\\s]+("+Ol+")[,|\\s]+("+Ol+")[,|\\s]+("+Ol+")\\s*\\)?",{CSS_UNIT:new RegExp(Ol),rgb:new RegExp("rgb"+vm),rgba:new RegExp("rgba"+gm),hsl:new RegExp("hsl"+vm),hsla:new RegExp("hsla"+gm),hsv:new RegExp("hsv"+vm),hsva:new RegExp("hsva"+gm),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 Xs(e){return!!Aa.CSS_UNIT.exec(e)}function Dte(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(c,l){if(c){if(typeof c=="string")return fO(c,l);var u=Object.prototype.toString.call(c).slice(8,-1);if(u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set")return Array.from(c);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return fO(c,l)}}(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function fO(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 i===1?s+=n[(252&(t=r[a]))>>2]+n[(3&t)<<4]+"==":i===2&&(s+=n[(64512&(t=r[a]<<8|r[a+1]))>>10]+n[(1008&t)>>4]+n[(15&t)<<2]+"="),s}function ky(e){return e.substr(2+(~-e.lastIndexOf(".")>>>0))}function Mf(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 P3(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 Kte(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 wf(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function G0(e,t){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 n=Ye(t.themeContent,["a:theme","a:themeElements","a:clrScheme",e]),r=Ye(n,["a:srgbClr","attrs","val"]);return!r&&n&&(r=Ye(n,["a:sysClr","attrs","lastClr"])),r}function Ny(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 Py(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 Hte(e,t,n){return C3.apply(this,arguments)}function C3(){return C3=ii(Wn.mark(function e(t,n,r){var o,i,a,s,c,l;return Wn.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(i=n["a:blip"].attrs["r:embed"],t==="slideBg"||t==="slide"?a=Ye(r,["slideResObj",i,"target"]):t==="slideLayoutBg"?a=Ye(r,["layoutResObj",i,"target"]):t==="slideMasterBg"?a=Ye(r,["masterResObj",i,"target"]):t==="themeBg"&&(a=Ye(r,["themeResObj",i,"target"])),a){u.next=4;break}return u.abrupt("return",a);case 4:if(o=Ye(r,["loaded-images",a])){u.next=15;break}if(a=EC(a),(s=a.split(".").pop())!=="xml"){u.next=10;break}return u.abrupt("return",void 0);case 10:return u.next=12,r.zip.file(a).async("arraybuffer");case 12:c=u.sent,l=P3(s),o="data:".concat(l,";base64,").concat(_C(c));case 15:return u.abrupt("return",o);case 16:case"end":return u.stop()}},e)})),C3.apply(this,arguments)}function Cy(e,t,n){return XC.apply(this,arguments)}function XC(){return(XC=ii(Wn.mark(function e(t,n,r){var o,i,a,s;return Wn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Hte(n,t["a:blipFill"],r);case 2:return o=c.sent,i=t["a:blipFill"]["a:blip"],a=Ye(i,["a:alphaModFix","attrs"]),s=1,a&&a.amt&&a.amt!==""&&(s=parseInt(a.amt)/1e5),c.abrupt("return",{picBase64:o,opacity:s});case 8:case"end":return c.stop()}},e)}))).apply(this,arguments)}function Iy(e,t,n,r){if(e){for(var o=e["a:gradFill"],i=o["a:gsLst"]["a:gs"],a=[],s=0;s=360&&(E-=360),F?dt({h:E,s:N.s,l:N.l,a:N.a}).toHex8():dt({h:E,s:N.s,l:N.l,a:N.a}).toHex()}(i,y,A));var g=parseInt(Ye(o,["a:lumMod","attrs","val"]))/1e5;isNaN(g)||(i=function(O,k,F){var N=dt(O).toHsl(),E=N.l*k;return E>=1&&(E=1),F?dt({h:N.h,s:N.s,l:E,a:N.a}).toHex8():dt({h:N.h,s:N.s,l:E,a:N.a}).toHex()}(i,g,A));var S=parseInt(Ye(o,["a:lumOff","attrs","val"]))/1e5;isNaN(S)||(i=function(O,k,F){var N=dt(O).toHsl(),E=k+N.l;return E>=1?F?dt({h:N.h,s:N.s,l:1,a:N.a}).toHex8():dt({h:N.h,s:N.s,l:1,a:N.a}).toHex():F?dt({h:N.h,s:N.s,l:E,a:N.a}).toHex8():dt({h:N.h,s:N.s,l:E,a:N.a}).toHex()}(i,S,A));var L=parseInt(Ye(o,["a:satMod","attrs","val"]))/1e5;isNaN(L)||(i=function(O,k,F){var N=dt(O).toHsl(),E=N.s*k;return E>=1&&(E=1),F?dt({h:N.h,s:E,l:N.l,a:N.a}).toHex8():dt({h:N.h,s:E,l:N.l,a:N.a}).toHex()}(i,L,A));var T=parseInt(Ye(o,["a:shade","attrs","val"]))/1e5;isNaN(T)||(i=function(O,k,F){var N=dt(O).toHsl();k>=1&&(k=1);var E=Math.min(N.l*k,1);return F?dt({h:N.h,s:N.s,l:E,a:N.a}).toHex8():dt({h:N.h,s:N.s,l:E,a:N.a}).toHex()}(i,T,A));var M=parseInt(Ye(o,["a:tint","attrs","val"]))/1e5;return isNaN(M)||(i=function(O,k,F){var N=dt(O).toHsl();k>=1&&(k=1);var E=N.l*k+(1-k);return F?dt({h:N.h,s:N.s,l:E,a:N.a}).toHex8():dt({h:N.h,s:N.s,l:E,a:N.a}).toHex()}(i,M,A)),i}function So(e){var t=[];if(!e)return t;if(e["c:xVal"]){var n=[];Mf(e["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r){return n.push(parseFloat(r["c:v"])),""}),t.push(n),n=[],Mf(e["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r){return n.push(parseFloat(r["c:v"])),""}),t.push(n)}else Mf(e,function(r,o){var i=[],a=Ye(r,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||o,s={};return Ye(r,["c:cat","c:strRef","c:strCache","c:pt"])?Mf(r["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],function(c){return s[c.attrs.idx]=c["c:v"],""}):Ye(r,["c:cat","c:numRef","c:numCache","c:pt"])&&Mf(r["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],function(c){return s[c.attrs.idx]=c["c:v"],""}),Ye(r,["c:val","c:numRef","c:numCache","c:pt"])&&Mf(r["c:val"]["c:numRef"]["c:numCache"]["c:pt"],function(c){return i.push({x:c.attrs.idx,y:parseFloat(c["c:v"])}),""}),t.push({key:a,values:i,xlabels:s}),""});return t}function zte(e){var t=null;for(var n in e)switch(n){case"c:lineChart":t={type:"lineChart",data:So(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"]),marker:!!e[n]["c:marker"]};break;case"c:line3DChart":t={type:"line3DChart",data:So(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"])};break;case"c:barChart":t={type:"barChart",data:So(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"]),barDir:Ye(e[n],["c:barDir","attrs","val"])};break;case"c:bar3DChart":t={type:"bar3DChart",data:So(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"]),barDir:Ye(e[n],["c:barDir","attrs","val"])};break;case"c:pieChart":t={type:"pieChart",data:So(e[n]["c:ser"])};break;case"c:pie3DChart":t={type:"pie3DChart",data:So(e[n]["c:ser"])};break;case"c:doughnutChart":t={type:"doughnutChart",data:So(e[n]["c:ser"]),holeSize:Ye(e[n],["c:holeSize","attrs","val"])};break;case"c:areaChart":t={type:"areaChart",data:So(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"])};break;case"c:area3DChart":t={type:"area3DChart",data:So(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"])};break;case"c:scatterChart":t={type:"scatterChart",data:So(e[n]["c:ser"]),style:Ye(e[n],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":t={type:"bubbleChart",data:So(e[n]["c:ser"])};break;case"c:radarChart":t={type:"radarChart",data:So(e[n]["c:ser"]),style:Ye(e[n],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":t={type:"surfaceChart",data:So(e[n]["c:ser"])};break;case"c:surface3DChart":t={type:"surface3DChart",data:So(e[n]["c:ser"])};break;case"c:stockChart":t={type:"stockChart",data:So(e[n]["c:ser"])}}return t}function Jte(e,t,n,r){var o=Ye(e,["a:pPr","attrs","algn"]);if(o||(o=Ye(t,["a:pPr","attrs","algn"])),!o)if(n==="title"||n==="ctrTitle"||n==="subTitle"){var i=1,a=Ye(t,["a:pPr","attrs","lvl"]);a&&(i=parseInt(a)+1);var s="a:lvl"+i+"pPr";(o=Ye(r,["slideLayoutTables","typeTable",n,"p:txBody","a:lstStyle",s,"attrs","algn"]))||(o=Ye(r,["slideMasterTables","typeTable",n,"p:txBody","a:lstStyle",s,"attrs","algn"])),o||(o=Ye(r,["slideMasterTextStyles","p:titleStyle",s,"attrs","algn"])),o||n!=="subTitle"||(o=Ye(r,["slideMasterTextStyles","p:bodyStyle",s,"attrs","algn"]))}else o=Ye(r,n==="body"?["slideMasterTextStyles","p:bodyStyle","a:lvl1pPr","attrs","algn"]:["slideMasterTables","typeTable",n,"p:txBody","a:lstStyle","a:lvl1pPr","attrs","algn"]);var c="left";if(o)switch(o){case"l":c="left";break;case"r":c="right";break;case"ctr":c="center";break;case"just":case"dist":c="justify";break;default:c="inherit"}return c}function Xp(e,t,n,r){var o;return e?o=e["a:off"].attrs:t?o=t["a:off"].attrs:n&&(o=n["a:off"].attrs),o?{top:parseFloat((parseInt(o.y)*r).toFixed(2)),left:parseFloat((parseInt(o.x)*r).toFixed(2))}:{top:0,left:0}}function Wp(e,t,n,r){var o;return e?o=e["a:ext"].attrs:t?o=t["a:ext"].attrs:n&&(o=n["a:ext"].attrs),o?{width:parseFloat((parseInt(o.cx)*r).toFixed(2)),height:parseFloat((parseInt(o.cy)*r).toFixed(2))}:{width:0,height:0}}function VC(e,t){var n=t.options.slideFactor,r=Ru(e,0,0,t),o=e.attrs,i=o.dir?parseInt(o.dir)/6e4:0,a=parseInt(o.dist)*n,s=o.blurRad?parseFloat((parseInt(o.blurRad)*n).toFixed(2)):"",c=a*Math.sin(i*Math.PI/180),l=a*Math.cos(i*Math.PI/180);return{h:parseFloat(l.toFixed(2)),v:parseFloat(c.toFixed(2)),blur:s,color:"#"+r}}function dO(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(c,l){if(c){if(typeof c=="string")return hO(c,l);var u=Object.prototype.toString.call(c).slice(8,-1);if(u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set")return Array.from(c);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return hO(c,l)}}(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function hO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&h.shift(),(f=f.concat(h)).sort(function(R,y){return!R.attrs||!y.attrs||R.attrs.order-y.attrs.order})));var p=Jte(u,t,r,o),m=$te(u);if(m?(c?c&&c!==m&&(a+=""),a+="<".concat(m,">"),c=m):(a+="<".concat(m,">"),c=m),a+='
  • ')):(c&&(a+=""),c=""),a+='

    ')),f){var A,x=dO(f);try{for(x.s();!(A=x.n()).done;)a+=pO(A.value,n,r,o)}catch(R){x.e(R)}finally{x.f()}}else a+=pO(u,n,r,o);a+=m?"

  • ":"

    "}}catch(R){l.e(R)}finally{l.f()}return a}function $te(e){var t=e["a:pPr"];return t?t["a:buChar"]?"ul":t["a:buAutoNum"]?"ol":"":""}function pO(e,t,n,r){var o=r.slideMasterTextStyles,i=e["a:t"];typeof i!="string"&&(i=Ye(e,["a:fld","a:t"])),typeof i!="string"&&(i=" ");var a="",s=function(y){var g=Ye(y,["a:rPr","a:solidFill","a:srgbClr","attrs","val"]);return g?"#".concat(g):""}(e),c=function(y,g,S,L,T){var M,O;if(y["a:rPr"]&&(M=parseInt(y["a:rPr"].attrs.sz)/100),isNaN(M)||!M){var k=Ye(g,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);M=parseInt(k)/100}return!isNaN(M)&&M||(S==="title"||S==="subTitle"||S==="ctrTitle"?O=Ye(L,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):S==="body"?O=Ye(L,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):S==="dt"||S==="sldNum"?O="1200":S||(O=Ye(L,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),O&&(M=parseInt(O)/100)),Ye(y,["a:rPr","attrs","baseline"])&&!isNaN(M)&&(M-=10),M=isNaN(M)||!M?18:M,parseFloat((M*T).toFixed(2))+(T===1?"pt":"px")}(e,t,n,o,r.options.fontsizeFactor),l=function(y,g,S){var L=Ye(y,["a:rPr","a:latin","attrs","typeface"]);if(!L){var T=Ye(S.themeContent,["a:theme","a:themeElements","a:fontScheme"]);L=Ye(T,g==="title"||g==="subTitle"||g==="ctrTitle"?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return L||""}(e,n,r),u=function(y){return Ye(y,["a:rPr","attrs","b"])==="1"?"bold":""}(e),f=function(y){return Ye(y,["a:rPr","attrs","i"])==="1"?"italic":""}(e),d=function(y){return Ye(y,["a:rPr","attrs","u"])==="sng"?"underline":""}(e),h=function(y){return Ye(y,["a:rPr","attrs","strike"])==="sngStrike"?"line-through":""}(e),p=function(y,g){var S=Ye(y,["a:rPr","attrs","spc"]);return S?parseInt(S)/100*g+"px":""}(e,r.options.fontsizeFactor),m=function(y,g){var S=Ye(y,["a:rPr","a:effectLst","a:outerShdw"]);if(S){var L=VC(S,g);if(L){var T=L.h,M=L.v,O=L.blur,k=L.color;if(!isNaN(M)&&!isNaN(T))return T+"px "+M+"px "+(O?O+"px":"")+" "+k}}return""}(e,r),A=function(y){var g=Ye(y,["a:rPr","attrs","baseline"]);return g?parseInt(g)>0?"super":"sub":""}(e);s&&(a+="color: ".concat(s,";")),c&&(a+="font-size: ".concat(c,";")),l&&(a+="font-family: ".concat(l,";")),u&&(a+="font-weight: ".concat(u,";")),f&&(a+="font-style: ".concat(f,";")),d&&(a+="text-decoration: ".concat(d,";")),h&&(a+="text-decoration-line: ".concat(h,";")),p&&(a+="letter-spacing: ".concat(p,";")),A&&(a+="vertical-align: ".concat(A,"; font-size: smaller;")),m&&(a+="text-shadow: ".concat(m,";"));var x=Ye(e,["a:rPr","a:hlinkClick","attrs","r:id"]);if(x){var R=r.slideResObj[x].target;return'').concat(i.replace(/\t/g,"    ").replace(/\s/g," "),"")}return'').concat(i.replace(/\t/g,"    ").replace(/\s/g," "),"")}function jte(e,t,n,r,o,i,a){var s,c=o;if(i>=o)for(;c<=i;){var l=c*(Math.PI/180),u=e+Math.cos(l)*n,f=t+Math.sin(l)*r;c===o&&(s=" M"+u+" "+f),s+=" L"+u+" "+f,c++}else for(;c>i;){var d=c*(Math.PI/180),h=e+Math.cos(d)*n,p=t+Math.sin(d)*r;c===o&&(s=" M "+h+" "+p),s+=" L "+h+" "+p,c--}return s+=a?" z":""}function mO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tc(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&m[1]!==void 0?m[1]:{},n=tc(tc({},{slideFactor:96/914400,fontsizeFactor:100/75}),n),r=[],A.next=6,Tte.loadAsync(t);case 6:return o=A.sent,A.next=9,ene(o);case 9:return i=A.sent,A.next=12,tne(o,n);case 12:return a=A.sent,s=a.width,c=a.height,l=a.defaultTextStyle,A.next=18,nne(o);case 18:u=A.sent,f=Po(i.slides),A.prev=20,f.s();case 22:if((d=f.n()).done){A.next=30;break}return h=d.value,A.next=26,rne(o,h,u,l,n);case 26:p=A.sent,r.push(p);case 28:A.next=22;break;case 30:A.next=35;break;case 32:A.prev=32,A.t0=A.catch(20),f.e(A.t0);case 35:return A.prev=35,f.f(),A.finish(35);case 38:return A.abrupt("return",{slides:r,size:{width:s,height:c}});case 39:case"end":return A.stop()}},e,null,[[20,32,35,38]])})),I3.apply(this,arguments)}function ene(e){return UC.apply(this,arguments)}function UC(){return(UC=ii(Wn.mark(function e(t){var n,r,o,i,a,s,c,l;return Wn.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Lo(t,"[Content_Types].xml");case 2:n=u.sent,r=n.Types.Override,o=[],i=[],a=Po(r),u.prev=7,a.s();case 9:if((s=a.n()).done){u.next=20;break}c=s.value,u.t0=c.attrs.ContentType,u.next=u.t0==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"?14:u.t0==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"?16:18;break;case 14:return o.push(c.attrs.PartName.substr(1)),u.abrupt("break",18);case 16:return i.push(c.attrs.PartName.substr(1)),u.abrupt("break",18);case 18:u.next=9;break;case 20:u.next=25;break;case 22:u.prev=22,u.t1=u.catch(7),a.e(u.t1);case 25:return u.prev=25,a.f(),u.finish(25);case 28:return l=function(f,d){return+/(\d+)\.xml/.exec(f)[1]-+/(\d+)\.xml/.exec(d)[1]},o=o.sort(l),i=i.sort(l),u.abrupt("return",{slides:o,slideLayouts:i});case 32:case"end":return u.stop()}},e,null,[[7,22,25,28]])}))).apply(this,arguments)}function tne(e,t){return YC.apply(this,arguments)}function YC(){return(YC=ii(Wn.mark(function e(t,n){var r,o,i;return Wn.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Lo(t,"ppt/presentation.xml");case 2:return r=a.sent,o=r["p:presentation"]["p:sldSz"].attrs,i=r["p:presentation"]["p:defaultTextStyle"],a.abrupt("return",{width:parseInt(o.cx)*n.slideFactor,height:parseInt(o.cy)*n.slideFactor,defaultTextStyle:i});case 6:case"end":return a.stop()}},e)}))).apply(this,arguments)}function nne(e){return QC.apply(this,arguments)}function QC(){return(QC=ii(Wn.mark(function e(t){var n,r,o,i,a,s;return Wn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Lo(t,"ppt/_rels/presentation.xml.rels");case 2:if(n=c.sent,(r=n.Relationships.Relationship).constructor!==Array){c.next=25;break}i=Po(r),c.prev=6,i.s();case 8:if((a=i.n()).done){c.next=15;break}if((s=a.value).attrs.Type!=="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"){c.next=13;break}return o=s.attrs.Target,c.abrupt("break",15);case 13:c.next=8;break;case 15:c.next=20;break;case 17:c.prev=17,c.t0=c.catch(6),i.e(c.t0);case 20:return c.prev=20,i.f(),c.finish(20);case 23:c.next=26;break;case 25:r.attrs.Type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"&&(o=r.attrs.Target);case 26:if(o){c.next=28;break}throw Error("Can't open theme file.");case 28:return c.next=30,Lo(t,"ppt/"+o);case 30:return c.abrupt("return",c.sent);case 31:case"end":return c.stop()}},e,null,[[6,17,20,23]])}))).apply(this,arguments)}function rne(e,t,n,r,o){return F3.apply(this,arguments)}function F3(){return F3=ii(Wn.mark(function e(t,n,r,o,i){var a,s,c,l,u,f,d,h,p,m,A,x,R,y,g,S,L,T,M,O,k,F,N,E,P,_,I,W,D,z,ae,U,Z,B,G,Q,ie,q,oe,he,me,ve,J,ue,X,te,le,$,j,se,ge,ce,Ae,ye,Ee,Se;return Wn.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return a=n.replace("slides/slide","slides/_rels/slide")+".rels",be.next=3,Lo(t,a);case 3:if(s=be.sent,c=s.Relationships.Relationship,l="",u="",f={},c.constructor!==Array){be.next=35;break}d=Po(c),be.prev=10,d.s();case 12:if((h=d.n()).done){be.next=25;break}p=h.value,be.t0=p.attrs.Type,be.next=be.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"?17:be.t0==="http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"?19:(be.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"||be.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"||be.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"||be.t0,22);break;case 17:return l=p.attrs.Target.replace("../","ppt/"),be.abrupt("break",23);case 19:return u=p.attrs.Target.replace("../","ppt/"),f[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")},be.abrupt("break",23);case 22:f[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")};case 23:be.next=12;break;case 25:be.next=30;break;case 27:be.prev=27,be.t1=be.catch(10),d.e(be.t1);case 30:return be.prev=30,d.f(),be.finish(30);case 33:be.next=36;break;case 35:l=c.attrs.Target.replace("../","ppt/");case 36:return be.next=38,Lo(t,l);case 38:return m=be.sent,be.next=41,gO(m);case 41:return A=be.sent,x=l.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",be.next=45,Lo(t,x);case 45:if(R=be.sent,c=R.Relationships.Relationship,y="",g={},c.constructor!==Array){be.next=73;break}S=Po(c),be.prev=51,S.s();case 53:if((L=S.n()).done){be.next=63;break}T=L.value,be.t2=T.attrs.Type,be.next=be.t2==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"?58:60;break;case 58:return y=T.attrs.Target.replace("../","ppt/"),be.abrupt("break",61);case 60:g[T.attrs.Id]={type:T.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:T.attrs.Target.replace("../","ppt/")};case 61:be.next=53;break;case 63:be.next=68;break;case 65:be.prev=65,be.t3=be.catch(51),S.e(be.t3);case 68:return be.prev=68,S.f(),be.finish(68);case 71:be.next=74;break;case 73:y=c.attrs.Target.replace("../","ppt/");case 74:return be.next=76,Lo(t,y);case 76:return M=be.sent,O=Ye(M,["p:sldMaster","p:txStyles"]),k=gO(M),F=y.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",be.next=82,Lo(t,F);case 82:if(N=be.sent,c=N.Relationships.Relationship,E="",P={},c.constructor!==Array){be.next=109;break}_=Po(c),be.prev=88,_.s();case 90:if((I=_.n()).done){be.next=99;break}W=I.value,be.t4=W.attrs.Type,be.next=be.t4==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"?95:96;break;case 95:return be.abrupt("break",97);case 96:P[W.attrs.Id]={type:W.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:W.attrs.Target.replace("../","ppt/")};case 97:be.next=90;break;case 99:be.next=104;break;case 101:be.prev=101,be.t5=be.catch(88),_.e(be.t5);case 104:return be.prev=104,_.f(),be.finish(104);case 107:be.next=110;break;case 109:E=c.attrs.Target.replace("../","ppt/");case 110:if(D={},!E){be.next=118;break}return z=E.split("/").pop(),ae=E.replace(z,"_rels/"+z)+".rels",be.next=116,Lo(t,ae);case 116:if((U=be.sent)&&(c=U.Relationships.Relationship))if(c.constructor===Array){Z=Po(c);try{for(Z.s();!(B=Z.n()).done;)G=B.value,D[G.attrs.Id]={type:G.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:G.attrs.Target.replace("../","ppt/")}}catch(qe){Z.e(qe)}finally{Z.f()}}else D[c.attrs.Id]={type:c.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:c.attrs.Target.replace("../","ppt/")};case 118:if(Q={},ie={},!u){be.next=131;break}return q=u.split("/").pop(),oe=u.replace(q,"_rels/"+q)+".rels",be.next=125,Lo(t,u);case 125:return(ie=be.sent)&&ie&&ie&&(he=(he=JSON.stringify(ie)).replace(/dsp:/g,"p:"),ie=JSON.parse(he)),be.next=129,Lo(t,oe);case 129:if(me=be.sent)if((c=me.Relationships.Relationship).constructor===Array){ve=Po(c);try{for(ve.s();!(J=ve.n()).done;)ue=J.value,Q[ue.attrs.Id]={type:ue.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:ue.attrs.Target.replace("../","ppt/")}}catch(qe){ve.e(qe)}finally{ve.f()}}else Q[c.attrs.Id]={type:c.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:c.attrs.Target.replace("../","ppt/")};case 131:return be.next=133,Lo(t,"ppt/tableStyles.xml");case 133:return X=be.sent,be.next=136,Lo(t,n);case 136:return te=be.sent,le=te["p:sld"]["p:cSld"]["p:spTree"],$={zip:t,slideLayoutContent:m,slideLayoutTables:A,slideMasterContent:M,slideMasterTables:k,slideContent:te,tableStyles:X,slideResObj:f,slideMasterTextStyles:O,layoutResObj:g,masterResObj:P,themeContent:r,themeResObj:D,digramFileContent:ie,diagramResObj:Q,defaultTextStyle:o,options:i},be.next=141,Gte($);case 141:j=be.sent,se=[],be.t6=Wn.keys(le);case 144:if((be.t7=be.t6()).done){be.next=174;break}if(ge=be.t7.value,le[ge].constructor!==Array){be.next=168;break}ce=Po(le[ge]),be.prev=148,ce.s();case 150:if((Ae=ce.n()).done){be.next=158;break}return ye=Ae.value,be.next=154,qv(ge,ye,$,"slide");case 154:(Ee=be.sent)&&se.push(Ee);case 156:be.next=150;break;case 158:be.next=163;break;case 160:be.prev=160,be.t8=be.catch(148),ce.e(be.t8);case 163:return be.prev=163,ce.f(),be.finish(163);case 166:be.next=172;break;case 168:return be.next=170,qv(ge,le[ge],$,"slide");case 170:(Se=be.sent)&&se.push(Se);case 172:be.next=144;break;case 174:return be.abrupt("return",{fill:j,elements:se});case 175:case"end":return be.stop()}},e,null,[[10,27,30,33],[51,65,68,71],[88,101,104,107],[148,160,163,166]])})),F3.apply(this,arguments)}function gO(e){var t=e[Object.keys(e)[0]]["p:cSld"]["p:spTree"],n={},r={},o={};for(var i in t)if(i!=="p:nvGrpSpPr"&&i!=="p:grpSpPr"){var a=t[i];if(a.constructor===Array){var s,c=Po(a);try{for(c.s();!(s=c.n()).done;){var l=s.value,u=l["p:nvSpPr"],f=Ye(u,["p:cNvPr","attrs","id"]),d=Ye(u,["p:nvPr","p:ph","attrs","idx"]),h=Ye(u,["p:nvPr","p:ph","attrs","type"]);f&&(n[f]=l),d&&(r[d]=l),h&&(o[h]=l)}}catch(R){c.e(R)}finally{c.f()}}else{var p=a["p:nvSpPr"],m=Ye(p,["p:cNvPr","attrs","id"]),A=Ye(p,["p:nvPr","p:ph","attrs","idx"]),x=Ye(p,["p:nvPr","p:ph","attrs","type"]);m&&(n[m]=a),A&&(r[A]=a),x&&(o[x]=a)}}return{idTable:n,idxTable:r,typeTable:o}}function qv(e,t,n,r){return ZC.apply(this,arguments)}function ZC(){return(ZC=ii(Wn.mark(function e(t,n,r,o){var i;return Wn.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:a.t0=t,a.next=a.t0==="p:sp"?3:a.t0==="p:cxnSp"?5:a.t0==="p:pic"?7:a.t0==="p:graphicFrame"?9:a.t0==="p:grpSp"?13:a.t0==="mc:AlternateContent"?17:21;break;case 3:return i=BC(n,r,o),a.abrupt("break",21);case 5:return i=one(n,r),a.abrupt("break",21);case 7:return i=ine(n,r,o),a.abrupt("break",21);case 9:return a.next=11,ane(n,r,o);case 11:case 15:case 19:return i=a.sent,a.abrupt("break",21);case 13:return a.next=15,_3(n,r,o);case 17:return a.next=19,_3(Ye(n,["mc:Fallback"]),r,o);case 21:return a.abrupt("return",i);case 22:case"end":return a.stop()}},e)}))).apply(this,arguments)}function _3(e,t,n){return E3.apply(this,arguments)}function E3(){return E3=ii(Wn.mark(function e(t,n,r){var o,i,a,s,c,l,u,f,d,h,p,m,A,x,R,y,g,S;return Wn.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(o=Ye(t,["p:grpSpPr","a:xfrm"])){L.next=3;break}return L.abrupt("return",null);case 3:i=parseInt(o["a:off"].attrs.x)*n.options.slideFactor,a=parseInt(o["a:off"].attrs.y)*n.options.slideFactor,s=parseInt(o["a:chOff"].attrs.x)*n.options.slideFactor,c=parseInt(o["a:chOff"].attrs.y)*n.options.slideFactor,l=parseInt(o["a:ext"].attrs.cx)*n.options.slideFactor,u=parseInt(o["a:ext"].attrs.cy)*n.options.slideFactor,f=parseInt(o["a:chExt"].attrs.cx)*n.options.slideFactor,d=parseInt(o["a:chExt"].attrs.cy)*n.options.slideFactor,h=l/f,p=u/d,m=[],L.t0=Wn.keys(t);case 15:if((L.t1=L.t0()).done){L.next=45;break}if(A=L.t1.value,t[A].constructor!==Array){L.next=39;break}x=Po(t[A]),L.prev=19,x.s();case 21:if((R=x.n()).done){L.next=29;break}return y=R.value,L.next=25,qv(A,y,n,r);case 25:(g=L.sent)&&m.push(g);case 27:L.next=21;break;case 29:L.next=34;break;case 31:L.prev=31,L.t2=L.catch(19),x.e(L.t2);case 34:return L.prev=34,x.f(),L.finish(34);case 37:L.next=43;break;case 39:return L.next=41,qv(A,t[A],n,r);case 41:(S=L.sent)&&m.push(S);case 43:L.next=15;break;case 45:return L.abrupt("return",{type:"group",top:parseFloat(a.toFixed(2)),left:parseFloat(i.toFixed(2)),width:parseFloat(l.toFixed(2)),height:parseFloat(u.toFixed(2)),elements:m.map(function(T){return tc(tc({},T),{},{left:parseFloat(((T.left-s)*h).toFixed(2)),top:parseFloat(((T.top-c)*p).toFixed(2)),width:parseFloat((T.width*h).toFixed(2)),height:parseFloat((T.height*p).toFixed(2))})})});case 46:case"end":return L.stop()}},e,null,[[19,31,34,37]])})),E3.apply(this,arguments)}function BC(e,t,n){var r,o,i=Ye(e,["p:nvSpPr","p:cNvPr","attrs","name"]),a=Ye(e,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),s=Ye(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]);return s?(r=t.slideLayoutTables.typeTable[s],o=t.slideMasterTables.typeTable[s]):a&&(r=t.slideLayoutTables.idxTable[a],o=t.slideMasterTables.idxTable[a]),s||Ye(e,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"&&(s="text"),s||(s=Ye(r,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=Ye(o,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=n==="diagramBg"?"diagram":"obj"),DC(e,r,o,i,s,t)}function one(e,t){return DC(e,void 0,void 0,e["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]===void 0?void 0:e["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,t)}function DC(e,t,n,r,o,i){var a,s=["p:spPr","a:xfrm"],c=Ye(e,s),l=Ye(t,s),u=Ye(n,s),f=Ye(e,["p:spPr","a:prstGeom","attrs","prst"]),d=Ye(e,["p:spPr","a:custGeom"]),h=Xp(c,l,u,i.options.slideFactor),p=h.top,m=h.left,A=Wp(c,l,u,i.options.slideFactor),x=A.width,R=A.height,y=Ye(c,["attrs","flipV"])==="1",g=Ye(c,["attrs","flipH"])==="1",S=jv(Ye(c,["attrs","rot"])),L=Ye(e,["p:txXfrm"]);if(L){var T=Ye(L,["attrs","rot"]);T&&(a=jv(T)+90)}else a=S;var M="";e["p:txBody"]&&(M=z0(e["p:txBody"],e,t,o,i));var O,k=function(Z,B,G){var Q=Z["p:spPr"]["a:ln"],ie=parseInt(Ye(Q,["attrs","w"]))/12700;isNaN(ie)&&(ie=Q||B==="text"?0:1);var q=Ye(Q,["a:solidFill","a:srgbClr","attrs","val"]);if(!q){var oe=Ye(Q,["a:solidFill","a:schemeClr"]);q=G0("a:"+Ye(oe,["attrs","val"]),G)}if(!q){var he=Ye(Z,["p:style","a:lnRef","a:schemeClr"]);if(q=G0("a:"+Ye(he,["attrs","val"]),G)){var me=Ye(he,["a:shade","attrs","val"]);if(me){me=parseInt(me)/1e5;var ve=dt("#"+q).toHsl();q=dt({h:ve.h,s:ve.s,l:ve.l*me,a:ve.a}).toHex()}}}q=q?"#".concat(q):"#000";var J="solid",ue="0";switch(Ye(Q,["a:prstDash","attrs","val"])){case"solid":J="solid",ue="0";break;case"dash":J="dashed",ue="5";break;case"dashDot":J="dashed",ue="5, 5, 1, 5";break;case"dot":J="dotted",ue="1, 5";break;case"lgDash":J="dashed",ue="10, 5";break;case"lgDashDotDot":J="dotted",ue="10, 5, 1, 5, 1, 5";break;case"sysDash":J="dashed",ue="5, 2";break;case"sysDashDot":J="dotted",ue="5, 2, 1, 5";break;case"sysDashDotDot":J="dotted",ue="5, 2, 1, 5, 1, 5";break;case"sysDot":J="dotted",ue="2, 5"}return{borderColor:q,borderWidth:ie,borderType:J,strokeDasharray:ue}}(e,o,i),F=k.borderColor,N=k.borderWidth,E=k.borderType,P=k.strokeDasharray,_=function(Z,B,G){if(Ye(Z,["p:spPr","a:noFill"]))return B?"none":"";var Q;if(Q||(Q=Ye(Z,["p:spPr","a:solidFill","a:srgbClr","attrs","val"])),Q||(Q=G0("a:"+Ye(Z,["p:spPr","a:solidFill","a:schemeClr","attrs","val"]),G)),Q||(Q=G0("a:"+Ye(Z,["p:style","a:fillRef","a:schemeClr","attrs","val"]),G)),Q){Q="#".concat(Q);var ie=parseInt(Ye(Z,["p:spPr","a:solidFill","a:schemeClr","a:lumMod","attrs","val"]))/1e5,q=parseInt(Ye(Z,["p:spPr","a:solidFill","a:schemeClr","a:lumOff","attrs","val"]))/1e5;isNaN(ie)&&(ie=1),isNaN(q)&&(q=0);var oe=dt(Q).toHsl(),he=oe.l*ie+q;return dt({h:oe.h,s:oe.s,l:he,a:oe.a}).toHexString()}return B?"none":Q}(e,void 0,i)||"",I=Ye(e,["p:spPr","a:effectLst","a:outerShdw"]);I&&(O=VC(I,i));var W=function(Z,B,G){var Q=Ye(Z,["p:txBody","a:bodyPr","attrs","anchor"]);return Q||(Q=Ye(B,["p:txBody","a:bodyPr","attrs","anchor"]))||(Q=Ye(G,["p:txBody","a:bodyPr","attrs","anchor"]))||(Q="t"),Q==="ctr"?"mid":Q==="b"?"down":"up"}(e,t,n),D=Ye(e,["p:txBody","a:bodyPr","attrs","vert"])==="eaVert",z={left:m,top:p,width:x,height:R,borderColor:F,borderWidth:N,borderType:E,borderStrokeDasharray:P,fillColor:_,content:M,isFlipV:y,isFlipH:g,rotate:S,vAlign:W,name:r};if(O&&(z.shadow=O),d&&o!=="diagram"){var ae=Ye(c,["a:ext","attrs"]),U=function(Z,B,G){var Q=Ye(Z,["a:pathLst"]),ie=Ye(Q,["a:path"]);Array.isArray(ie)&&(ie=ie.pop());var q=parseInt(ie.attrs.w),oe=parseInt(ie.attrs.h),he=q===0?0:1/q*B,me=oe===0?0:1/oe*G,ve="",J=Ye(ie,["a:moveTo"]),ue=ie["a:lnTo"],X=ie["a:cubicBezTo"],te=ie["a:arcTo"],le=Ye(ie,["a:close"]);Array.isArray(J)||(J=[J]);var $=[];if(J.length>0){if(Object.keys(J).forEach(function(Ke){var tt=J[Ke]["a:pt"];tt&&Object.keys(tt).forEach(function(ke){var Ze=tt[ke],nt=Ze.x,xt=Ze.y,ut=Ze.order;$.push({type:"movto",x:nt,y:xt,order:ut})})}),ue&&Object.keys(ue).forEach(function(Ke){var tt=ue[Ke]["a:pt"];tt&&Object.keys(tt).forEach(function(ke){var Ze=tt[ke],nt=Ze.x,xt=Ze.y,ut=Ze.order;$.push({type:"lnto",x:nt,y:xt,order:ut})})}),X){var j=[];Array.isArray(X)||(X=[X]),Object.keys(X).forEach(function(Ke){j.push(X[Ke]["a:pt"])}),j.forEach(function(Ke){var tt=[];Ke.forEach(function(Ze){var nt={x:Ze.attrs.x,y:Ze.attrs.y};tt.push(nt)});var ke=Ke[0].attrs.order;$.push({type:"cubicBezTo",cubBzPt:tt,order:ke})})}if(te){var se=te.attrs,ge=se.order,ce=se.hR,Ae=se.wR,ye=se.stAng,Ee=se.swAng,Se=0,be=0,qe=Ye(te,["a:pt","attrs"]);qe&&(Se=qe.x,be=qe.y),$.push({type:"arcTo",hR:ce,wR:Ae,stAng:ye,swAng:Ee,shftX:Se,shftY:be,order:ge})}le&&(Array.isArray(le)||(le=[le]),Object.keys(le).forEach(function(){$.push({type:"close",order:1/0})})),$.sort(function(Ke,tt){return Ke.order-tt.order});for(var Ce=0;Ce<$.length;){if($[Ce].type==="movto")ve+=" M"+parseInt($[Ce].x)*he+","+parseInt($[Ce].y)*me;else if($[Ce].type==="lnto")ve+=" L"+parseInt($[Ce].x)*he+","+parseInt($[Ce].y)*me;else if($[Ce].type==="cubicBezTo")ve+=" C"+parseInt($[Ce].cubBzPt[0].x)*he+","+parseInt($[Ce].cubBzPt[0].y)*me+" "+parseInt($[Ce].cubBzPt[1].x)*he+","+parseInt($[Ce].cubBzPt[1].y)*me+" "+parseInt($[Ce].cubBzPt[2].x)*he+","+parseInt($[Ce].cubBzPt[2].y)*me;else if($[Ce].type==="arcTo"){var Te=parseInt($[Ce].hR)*he,Ne=parseInt($[Ce].wR)*me,_e=parseInt($[Ce].stAng)/6e4;ve+=jte(Ne,Te,Ne,Te,_e,_e+parseInt($[Ce].swAng)/6e4,!1)}else $[Ce].type==="close"&&(ve+="z");Ce++}}return ve}(d,parseInt(ae.cx)*i.options.slideFactor,parseInt(ae.cy)*i.options.slideFactor);return tc(tc({},z),{},{type:"shape",shapType:"custom",path:U})}return tc(tc({},z),{},f&&o!=="text"?{type:"shape",shapType:f}:{type:"text",isVertical:D,rotate:a})}function ine(e,t,n){return X3.apply(this,arguments)}function X3(){return X3=ii(Wn.mark(function e(t,n,r){var o,i,a,s,c,l,u,f,d,h,p,m,A,x,R,y,g,S,L,T,M,O,k,F,N,E,P,_,I,W,D,z,ae;return Wn.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return o=r==="slideMasterBg"?n.masterResObj:r==="slideLayoutBg"?n.layoutResObj:n.slideResObj,i=t["p:blipFill"]["a:blip"].attrs["r:embed"],a=o[i].target,s=ky(a).toLowerCase(),c=n.zip,U.next=7,c.file(a).async("arraybuffer");case 7:if(l=U.sent,u=t["p:spPr"]["a:xfrm"],f=P3(s),d=Xp(u,void 0,void 0,n.options.slideFactor),h=d.top,p=d.left,m=Wp(u,void 0,void 0,n.options.slideFactor),A=m.width,x=m.height,R="data:".concat(f,";base64,").concat(_C(l)),y=Ye(u,["attrs","flipV"])==="1",g=Ye(u,["attrs","flipH"])==="1",S=0,(L=Ye(t,["p:spPr","a:xfrm","attrs","rot"]))&&(S=jv(L)),T=Ye(t,["p:nvPicPr","p:nvPr","a:videoFile"]),P=!1,!T){U.next=35;break}if(M=T.attrs["r:link"],!Kte(O=o[M].target)){U.next=28;break}O=EC(O),P=!0,U.next=35;break;case 28:if((k=ky(O).toLowerCase())!=="mp4"&&k!=="webm"&&k!=="ogg"){U.next=35;break}return U.next=32,c.file(O).async("arraybuffer");case 32:N=U.sent,F=P3(k),E=URL.createObjectURL(new Blob([N],{type:F}));case 35:if(!(_=Ye(t,["p:nvPicPr","p:nvPr","a:audioFile"]))){U.next=45;break}if(I=_.attrs["r:link"],W=o[I].target,(D=ky(W).toLowerCase())!=="mp3"&&D!=="wav"&&D!=="ogg"){U.next=45;break}return U.next=43,c.file(W).async("arraybuffer");case 43:z=U.sent,ae=URL.createObjectURL(new Blob([z]));case 45:if(!T||P){U.next=47;break}return U.abrupt("return",{type:"video",top:h,left:p,width:A,height:x,rotate:S,blob:E});case 47:if(!T||!P){U.next=49;break}return U.abrupt("return",{type:"video",top:h,left:p,width:A,height:x,rotate:S,src:O});case 49:if(!_){U.next=51;break}return U.abrupt("return",{type:"audio",top:h,left:p,width:A,height:x,rotate:S,blob:ae});case 51:return U.abrupt("return",{type:"image",top:h,left:p,width:A,height:x,rotate:S,src:R,isFlipV:y,isFlipH:g});case 52:case"end":return U.stop()}},e)})),X3.apply(this,arguments)}function ane(e,t,n){return W3.apply(this,arguments)}function W3(){return W3=ii(Wn.mark(function e(t,n,r){var o,i,a;return Wn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:o=Ye(t,["a:graphic","a:graphicData","attrs","uri"]),s.t0=o,s.next=s.t0==="http://schemas.openxmlformats.org/drawingml/2006/table"?4:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/chart"?6:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/diagram"?10:s.t0==="http://schemas.openxmlformats.org/presentationml/2006/ole"?12:15;break;case 4:return i=sne(t,n),s.abrupt("break",15);case 6:return s.next=8,lne(t,n);case 8:return i=s.sent,s.abrupt("break",15);case 10:return i=cne(t,n),s.abrupt("break",15);case 12:return(a=Ye(t,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))?_3(a,n,r):a=Ye(t,["a:graphic","a:graphicData","p:oleObj"]),s.abrupt("break",15);case 15:return s.abrupt("return",i);case 16:case"end":return s.stop()}},e)})),W3.apply(this,arguments)}function sne(e,t){var n,r=Ye(e,["a:graphic","a:graphicData","a:tbl"]),o=Ye(e,["p:xfrm"]),i=Xp(o,void 0,void 0,t.options.slideFactor),a=i.top,s=i.left,c=Wp(o,void 0,void 0,t.options.slideFactor),l=c.width,u=c.height,f=Ye(e,["a:graphic","a:graphicData","a:tbl","a:tblPr"])["a:tableStyleId"];if(f){var d=t.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(d)if(d.constructor===Array)for(var h=0;h{const e=ct(),{theme:t}=Xe(ct()),{addSlidesFromData:n,isEmptySlide:r}=Kg(),o=pe(!1),i=(c,l=!1)=>{const u=c[0],f=new FileReader;f.addEventListener("load",()=>{try{const d=JSON.parse(DP(f.result));l||r.value?e.setSlides(d):n(d)}catch{Sn.error("无法正确读取 / 解析该文件")}}),f.readAsText(u)},a=c=>{let l=[0,0],u=[0,0];return!c.isFlipV&&!c.isFlipH?(l=[0,0],u=[c.width,c.height]):c.isFlipV&&c.isFlipH?(l=[c.width,c.height],u=[0,0]):c.isFlipV&&!c.isFlipH?(l=[0,c.height],u=[c.width,0]):(l=[c.width,0],u=[0,c.height]),{type:"line",id:pn(10),width:c.borderWidth||1,left:c.left,top:c.top,start:l,end:u,style:c.borderType==="solid"?"solid":"dashed",color:c.borderColor,points:["",c.shapType==="straightConnector1"?"arrow":""]}};return{importSpecificFile:i,importPPTXFile:c=>{const l=c[0];if(!l)return;o.value=!0;const u=[];for(const d of Nb)u.push(...d.children);const f=new FileReader;f.onload=async d=>{const h=await qte(d.target.result,{slideFactor:8202099737532808e-20,fontsizeFactor:1.0204081632653061}),p=h.size.width,m=Ht/p,A=[];for(const x of h.slides){const{type:R,value:y}=x.fill;let g;R==="image"?g={type:"image",image:y.picBase64,imageSize:"cover"}:R==="gradient"?g={type:"gradient",gradientType:"linear",gradientColor:[y.colors[0].color,y.colors[y.colors.length-1].color],gradientRotate:y.rot}:g={type:"solid",color:y};const S={id:pn(10),elements:[],background:g},L=T=>{for(const M of T){const O=M.width||1,k=M.height||1,F=M.left,N=M.top;if(M.width=M.width*m,M.height=M.height*m,M.left=M.left*m,M.top=M.top*m,M.type==="text"){const E={type:"text",id:pn(10),width:M.width,height:M.height,left:M.left,top:M.top,rotate:M.rotate,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,content:M.content,lineHeight:1,outline:{color:M.borderColor,width:M.borderWidth,style:M.borderType==="solid"?"solid":"dashed"},fill:M.fillColor,vertical:M.isVertical};M.shadow&&(E.shadow=M.shadow),S.elements.push(E)}else if(M.type==="image")S.elements.push({type:"image",id:pn(10),src:M.src,width:M.width,height:M.height,left:M.left,top:M.top,fixedRatio:!0,rotate:M.rotate,flipH:M.isFlipH,flipV:M.isFlipV});else if(M.type==="audio")S.elements.push({type:"audio",id:pn(10),src:M.blob,width:M.width,height:M.height,left:M.left,top:M.top,rotate:0,fixedRatio:!1,color:t.value.themeColor,loop:!1,autoplay:!1});else if(M.type==="video")S.elements.push({type:"video",id:pn(10),src:M.blob||M.src,width:M.width,height:M.height,left:M.left,top:M.top,rotate:0,autoplay:!1});else if(M.type==="shape")if(M.shapType==="line"||/Connector/.test(M.shapType)){const E=a(M);S.elements.push(E)}else{const E=u.find(I=>I.pptxShapeType===M.shapType),P={mid:"middle",down:"bottom",up:"top"},_={type:"shape",id:pn(10),width:M.width,height:M.height,left:M.left,top:M.top,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:M.fillColor||"none",fixedRatio:!1,rotate:M.rotate,outline:{color:M.borderColor,width:M.borderWidth,style:M.borderType==="solid"?"solid":"dashed"},text:{content:M.content,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,align:P[M.vAlign]||"middle"},flipH:M.isFlipH,flipV:M.isFlipV};if(M.shadow&&(_.shadow=M.shadow),E&&(_.path=E.path,_.viewBox=E.viewBox,E.pathFormula)){_.pathFormula=E.pathFormula,_.viewBox=[M.width,M.height];const I=Ju[E.pathFormula];"editable"in I?(_.path=I.formula(M.width,M.height,I.defaultValue),_.keypoint=I.defaultValue):_.path=I.formula(M.width,M.height)}M.shapType==="custom"&&(_.special=!0,_.path=M.path,_.viewBox=[O,k]),S.elements.push(_)}else if(M.type==="table"){const E=M.data.length,P=M.data[0].length,_={fontname:t.value.fontName,color:t.value.fontColor},I=[];for(let D=0;Dz+""),P=["系列1"],_=[D[1]]}else{const D=M.data;E=Object.values(D[0].xlabels),P=D.map(z=>z.key),_=D.map(z=>z.values.map(ae=>ae.y))}const I={};let W="bar";switch(M.chartType){case"barChart":case"bar3DChart":W="bar",M.barDir==="bar"&&(I.horizontalBars=!0),(M.grouping==="stacked"||M.grouping==="percentStacked")&&(I.stackBars=!0);break;case"lineChart":case"line3DChart":case"areaChart":case"area3DChart":case"scatterChart":case"bubbleChart":W="line",(M.chartType==="areaChart"||M.chartType==="area3DChart")&&(I.showArea=!0),(M.chartType==="scatterChart"||M.chartType==="bubbleChart")&&(I.showLine=!1);break;case"pieChart":case"pie3DChart":case"doughnutChart":W="pie",M.chartType==="doughnutChart"&&(I.donut=!0);break}S.elements.push({type:"chart",id:pn(10),chartType:W,width:M.width,height:M.height,left:M.left,top:M.top,rotate:0,themeColor:[t.value.themeColor],gridColor:t.value.fontColor,data:{labels:E,legends:P,series:_},options:I})}else if(M.type==="group"||M.type==="diagram"){const E=M.elements.map(P=>({...P,left:P.left+F,top:P.top+N}));L(E)}}};L(x.elements),A.push(S)}r.value?e.setSlides(A):n(A),o.value=!1},f.readAsArrayBuffer(l)},exporting:o}},fne={class:"hotkey-doc"},dne={class:"title"},hne={class:"label"},pne={class:"value"},mne=Fe({__name:"HotkeyDoc",setup(e){return(t,n)=>(Y(),ee("div",fne,[(Y(!0),ee(Ve,null,it(H(iJ),r=>(Y(),ee(Ve,{key:r.type},[V("div",dne,gt(r.type),1),(Y(!0),ee(Ve,null,it(r.children,o=>(Y(),ee("div",{class:"hotkey-item",key:o.label},[V("div",hne,gt(o.label),1),V("div",pne,gt(o.value),1)]))),128))],64))),128))]))}}),vne=Ue(mne,[["__scopeId","data-v-0762be00"]]),gne=["accept"],Ane=Fe({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,r=pe(),o=()=>{r.value&&(r.value.value="",r.value.click())},i=a=>{const s=a.target.files;s&&n("change",s)};return(a,s)=>(Y(),ee("div",{class:"file-input",onClick:s[1]||(s[1]=c=>o())},[cr(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]=c=>i(c))},null,40,gne)]))}}),Eu=Ue(Ane,[["__scopeId","data-v-1bd53d05"]]),Rne=e=>(on("data-v-9856918a"),e=e(),an(),e),yne={key:0,class:"fullscreen-spin"},xne={class:"spin"},bne=Rne(()=>V("div",{class:"spinner"},null,-1)),Sne={class:"text"},Mne=Fe({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},tip:{default:""}},setup(e){return(t,n)=>t.loading?(Y(),ee("div",yne,[V("div",xne,[bne,V("div",Sne,gt(t.tip),1)])])):Be("",!0)}}),zb=Ue(Mne,[["__scopeId","data-v-9856918a"]]),wne={class:"header"},Lne=Fe({__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,o=pe(!1),i=Me(()=>({width:n.width+"px",...n.contentStyle||{}}));return(a,s)=>{const c=xe("IconClose");return Y(),we(eb,{to:"body"},[w(ku,{name:`drawer-slide-${a.placement}`,onAfterLeave:s[1]||(s[1]=l=>o.value=!1),onBeforeEnter:s[2]||(s[2]=l=>o.value=!0)},{default:re(()=>[De(V("div",{class:$e(["drawer",a.placement]),style:Le({width:n.width+"px"})},[V("div",wne,[cr(a.$slots,"title",{},void 0,!0),V("span",{class:"close-btn",onClick:s[0]||(s[0]=l=>r("update:visible",!1))},[w(c)])]),o.value?(Y(),ee("div",{key:0,class:"content",style:Le(i.value)},[cr(a.$slots,"default",{},void 0,!0)],4)):Be("",!0)],6),[[il,a.visible]])]),_:3},8,["name"])])}}}),One=Ue(Lne,[["__scopeId","data-v-46f39759"]]),Tne={class:"prefix"},kne=["disabled","value","placeholder"],Nne={class:"suffix"},Pne=Fe({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{expose:t,emit:n}){const r=n,o=pe(!1),i=u=>{r("update:value",u.target.value)},a=u=>{o.value=!1,r("blur",u)},s=u=>{o.value=!0,r("focus",u)},c=pe();return t({focus:()=>{c.value&&c.value.focus()}}),(u,f)=>(Y(),ee("div",{class:$e(["input",{disabled:u.disabled,focused:o.value}])},[V("span",Tne,[cr(u.$slots,"prefix",{},void 0,!0)]),V("input",{type:"text",ref_key:"inputRef",ref:c,disabled:u.disabled,value:u.value,placeholder:u.placeholder,onInput:f[0]||(f[0]=d=>i(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]=gc(d=>r("enter",d),["enter"]))},null,40,kne),V("span",Nne,[cr(u.$slots,"suffix",{},void 0,!0)])],2))}}),Xu=Ue(Pne,[["__scopeId","data-v-08dd2583"]]);var ei="top",ta="bottom",na="right",ti="left",Jb="auto",Vp=[ei,ta,na,ti],kd="start",rp="end",Cne="clippingParents",KC="viewport",g0="popper",Ine="reference",AO=Vp.reduce(function(e,t){return e.concat([t+"-"+kd,t+"-"+rp])},[]),HC=[].concat(Vp,[Jb]).reduce(function(e,t){return e.concat([t,t+"-"+kd,t+"-"+rp])},[]),Fne="beforeRead",_ne="read",Ene="afterRead",Xne="beforeMain",Wne="main",Vne="afterMain",Une="beforeWrite",Yne="write",Qne="afterWrite",Zne=[Fne,_ne,Ene,Xne,Wne,Vne,Une,Yne,Qne];function ms(e){return e?(e.nodeName||"").toLowerCase():null}function Ci(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wu(e){var t=Ci(e).Element;return e instanceof t||e instanceof Element}function $i(e){var t=Ci(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $b(e){if(typeof ShadowRoot>"u")return!1;var t=Ci(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Bne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!$i(i)||!ms(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Dne(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 o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,l){return c[l]="",c},{});!$i(o)||!ms(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const GC={name:"applyStyles",enabled:!0,phase:"write",fn:Bne,effect:Dne,requires:["computeStyles"]};function ds(e){return e.split("-")[0]}var yu=Math.max,eg=Math.min,Nd=Math.round;function U3(){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 zC(){return!/^((?!chrome|android).)*safari/i.test(U3())}function Pd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&$i(e)&&(o=e.offsetWidth>0&&Nd(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Nd(r.height)/e.offsetHeight||1);var a=Wu(e)?Ci(e):window,s=a.visualViewport,c=!zC()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/o,u=(r.top+(c&&s?s.offsetTop:0))/i,f=r.width/o,d=r.height/i;return{width:f,height:d,top:u,right:l+f,bottom:u+d,left:l,x:l,y:u}}function jb(e){var t=Pd(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 JC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$b(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sl(e){return Ci(e).getComputedStyle(e)}function Kne(e){return["table","td","th"].indexOf(ms(e))>=0}function wc(e){return((Wu(e)?e.ownerDocument:e.document)||window.document).documentElement}function o2(e){return ms(e)==="html"?e:e.assignedSlot||e.parentNode||($b(e)?e.host:null)||wc(e)}function RO(e){return!$i(e)||sl(e).position==="fixed"?null:e.offsetParent}function Hne(e){var t=/firefox/i.test(U3()),n=/Trident/i.test(U3());if(n&&$i(e)){var r=sl(e);if(r.position==="fixed")return null}var o=o2(e);for($b(o)&&(o=o.host);$i(o)&&["html","body"].indexOf(ms(o))<0;){var i=sl(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Up(e){for(var t=Ci(e),n=RO(e);n&&Kne(n)&&sl(n).position==="static";)n=RO(n);return n&&(ms(n)==="html"||ms(n)==="body"&&sl(n).position==="static")?t:n||Hne(e)||t}function qb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mh(e,t,n){return yu(e,eg(t,n))}function Gne(e,t,n){var r=Mh(e,t,n);return r>n?n:r}function $C(){return{top:0,right:0,bottom:0,left:0}}function jC(e){return Object.assign({},$C(),e)}function qC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var zne=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jC(typeof t!="number"?t:qC(t,Vp))};function Jne(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ds(n.placement),c=qb(s),l=[ti,na].indexOf(s)>=0,u=l?"height":"width";if(!(!i||!a)){var f=zne(o.padding,n),d=jb(i),h=c==="y"?ei:ti,p=c==="y"?ta:na,m=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],A=a[c]-n.rects.reference[c],x=Up(i),R=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,y=m/2-A/2,g=f[h],S=R-d[u]-f[p],L=R/2-d[u]/2+y,T=Mh(g,L,S),M=c;n.modifiersData[r]=(t={},t[M]=T,t.centerOffset=T-L,t)}}function $ne(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||JC(t.elements.popper,o)&&(t.elements.arrow=o))}const jne={name:"arrow",enabled:!0,phase:"main",fn:Jne,effect:$ne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cd(e){return e.split("-")[1]}var qne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ere(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Nd(n*o)/o||0,y:Nd(r*o)/o||0}}function yO(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,p=a.y,m=p===void 0?0:p,A=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=A.x,m=A.y;var x=a.hasOwnProperty("x"),R=a.hasOwnProperty("y"),y=ti,g=ei,S=window;if(l){var L=Up(n),T="clientHeight",M="clientWidth";if(L===Ci(n)&&(L=wc(n),sl(L).position!=="static"&&s==="absolute"&&(T="scrollHeight",M="scrollWidth")),L=L,o===ei||(o===ti||o===na)&&i===rp){g=ta;var O=f&&L===S&&S.visualViewport?S.visualViewport.height:L[T];m-=O-r.height,m*=c?1:-1}if(o===ti||(o===ei||o===ta)&&i===rp){y=na;var k=f&&L===S&&S.visualViewport?S.visualViewport.width:L[M];h-=k-r.width,h*=c?1:-1}}var F=Object.assign({position:s},l&&qne),N=u===!0?ere({x:h,y:m},Ci(n)):{x:h,y:m};if(h=N.x,m=N.y,c){var E;return Object.assign({},F,(E={},E[g]=R?"0":"",E[y]=x?"0":"",E.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",E))}return Object.assign({},F,(t={},t[g]=R?m+"px":"",t[y]=x?h+"px":"",t.transform="",t))}function tre(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:ds(t.placement),variation:Cd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yO(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yO(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tre,data:{}};var Am={passive:!0};function rre(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,c=Ci(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(u){u.addEventListener("scroll",n.update,Am)}),s&&c.addEventListener("resize",n.update,Am),function(){i&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Am)}),s&&c.removeEventListener("resize",n.update,Am)}}const ore={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rre,data:{}};var ire={left:"right",right:"left",bottom:"top",top:"bottom"};function qm(e){return e.replace(/left|right|bottom|top/g,function(t){return ire[t]})}var are={start:"end",end:"start"};function xO(e){return e.replace(/start|end/g,function(t){return are[t]})}function e5(e){var t=Ci(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function t5(e){return Pd(wc(e)).left+e5(e).scrollLeft}function sre(e,t){var n=Ci(e),r=wc(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=zC();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+t5(e),y:c}}function lre(e){var t,n=wc(e),r=e5(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=yu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=yu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+t5(e),c=-r.scrollTop;return sl(o||n).direction==="rtl"&&(s+=yu(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function n5(e){var t=sl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eI(e){return["html","body","#document"].indexOf(ms(e))>=0?e.ownerDocument.body:$i(e)&&n5(e)?e:eI(o2(e))}function wh(e,t){var n;t===void 0&&(t=[]);var r=eI(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ci(r),a=o?[i].concat(i.visualViewport||[],n5(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(wh(o2(a)))}function Y3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cre(e,t){var n=Pd(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 bO(e,t,n){return t===KC?Y3(sre(e,n)):Wu(t)?cre(t,n):Y3(lre(wc(e)))}function ure(e){var t=wh(o2(e)),n=["absolute","fixed"].indexOf(sl(e).position)>=0,r=n&&$i(e)?Up(e):e;return Wu(r)?t.filter(function(o){return Wu(o)&&JC(o,r)&&ms(o)!=="body"}):[]}function fre(e,t,n,r){var o=t==="clippingParents"?ure(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(c,l){var u=bO(e,l,r);return c.top=yu(u.top,c.top),c.right=eg(u.right,c.right),c.bottom=eg(u.bottom,c.bottom),c.left=yu(u.left,c.left),c},bO(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 tI(e){var t=e.reference,n=e.element,r=e.placement,o=r?ds(r):null,i=r?Cd(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(o){case ei:c={x:a,y:t.y-n.height};break;case ta:c={x:a,y:t.y+t.height};break;case na:c={x:t.x+t.width,y:s};break;case ti:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?qb(o):null;if(l!=null){var u=l==="y"?"height":"width";switch(i){case kd:c[l]=c[l]-(t[u]/2-n[u]/2);break;case rp:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function op(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?Cne:s,l=n.rootBoundary,u=l===void 0?KC:l,f=n.elementContext,d=f===void 0?g0:f,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,A=m===void 0?0:m,x=jC(typeof A!="number"?A:qC(A,Vp)),R=d===g0?Ine:g0,y=e.rects.popper,g=e.elements[p?R:d],S=fre(Wu(g)?g:g.contextElement||wc(e.elements.popper),c,u,a),L=Pd(e.elements.reference),T=tI({reference:L,element:y,strategy:"absolute",placement:o}),M=Y3(Object.assign({},y,T)),O=d===g0?M:L,k={top:S.top-O.top+x.top,bottom:O.bottom-S.bottom+x.bottom,left:S.left-O.left+x.left,right:O.right-S.right+x.right},F=e.modifiersData.offset;if(d===g0&&F){var N=F[o];Object.keys(k).forEach(function(E){var P=[na,ta].indexOf(E)>=0?1:-1,_=[ei,ta].indexOf(E)>=0?"y":"x";k[E]+=N[_]*P})}return k}function dre(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?HC:c,u=Cd(r),f=u?s?AO:AO.filter(function(p){return Cd(p)===u}):Vp,d=f.filter(function(p){return l.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,m){return p[m]=op(e,{placement:m,boundary:o,rootBoundary:i,padding:a})[ds(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function hre(e){if(ds(e)===Jb)return[];var t=qm(e);return[xO(e),t,xO(t)]}function pre(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,A=t.options.placement,x=ds(A),R=x===A,y=c||(R||!p?[qm(A)]:hre(A)),g=[A].concat(y).reduce(function(G,Q){return G.concat(ds(Q)===Jb?dre(t,{placement:Q,boundary:u,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}):Q)},[]),S=t.rects.reference,L=t.rects.popper,T=new Map,M=!0,O=g[0],k=0;k=0,_=P?"width":"height",I=op(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),W=P?E?na:ti:E?ta:ei;S[_]>L[_]&&(W=qm(W));var D=qm(W),z=[];if(i&&z.push(I[N]<=0),s&&z.push(I[W]<=0,I[D]<=0),z.every(function(G){return G})){O=F,M=!1;break}T.set(F,z)}if(M)for(var ae=p?3:1,U=function(Q){var ie=g.find(function(q){var oe=T.get(q);if(oe)return oe.slice(0,Q).every(function(he){return he})});if(ie)return O=ie,"break"},Z=ae;Z>0;Z--){var B=U(Z);if(B==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const mre={name:"flip",enabled:!0,phase:"main",fn:pre,requiresIfExists:["offset"],data:{_skip:!1}};function SO(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 MO(e){return[ei,na,ta,ti].some(function(t){return e[t]>=0})}function vre(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=op(t,{elementContext:"reference"}),s=op(t,{altBoundary:!0}),c=SO(a,r),l=SO(s,o,i),u=MO(c),f=MO(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const gre={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vre};function Are(e,t,n){var r=ds(e),o=[ti,ei].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ti,na].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Rre(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=HC.reduce(function(u,f){return u[f]=Are(f,t.rects,i),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const yre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rre};function xre(e){var t=e.state,n=e.name;t.modifiersData[n]=tI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bre={name:"popperOffsets",enabled:!0,phase:"read",fn:xre,data:{}};function Sre(e){return e==="x"?"y":"x"}function Mre(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,m=p===void 0?0:p,A=op(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),x=ds(t.placement),R=Cd(t.placement),y=!R,g=qb(x),S=Sre(g),L=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,k=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(L){if(i){var E,P=g==="y"?ei:ti,_=g==="y"?ta:na,I=g==="y"?"height":"width",W=L[g],D=W+A[P],z=W-A[_],ae=h?-M[I]/2:0,U=R===kd?T[I]:M[I],Z=R===kd?-M[I]:-T[I],B=t.elements.arrow,G=h&&B?jb(B):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$C(),ie=Q[P],q=Q[_],oe=Mh(0,T[I],G[I]),he=y?T[I]/2-ae-oe-ie-k.mainAxis:U-oe-ie-k.mainAxis,me=y?-T[I]/2+ae+oe+q+k.mainAxis:Z+oe+q+k.mainAxis,ve=t.elements.arrow&&Up(t.elements.arrow),J=ve?g==="y"?ve.clientTop||0:ve.clientLeft||0:0,ue=(E=F==null?void 0:F[g])!=null?E:0,X=W+he-ue-J,te=W+me-ue,le=Mh(h?eg(D,X):D,W,h?yu(z,te):z);L[g]=le,N[g]=le-W}if(s){var $,j=g==="x"?ei:ti,se=g==="x"?ta:na,ge=L[S],ce=S==="y"?"height":"width",Ae=ge+A[j],ye=ge-A[se],Ee=[ei,ti].indexOf(x)!==-1,Se=($=F==null?void 0:F[S])!=null?$:0,be=Ee?Ae:ge-T[ce]-M[ce]-Se+k.altAxis,qe=Ee?ge+T[ce]+M[ce]-Se-k.altAxis:ye,Ce=h&&Ee?Gne(be,ge,qe):Mh(h?be:Ae,ge,h?qe:ye);L[S]=Ce,N[S]=Ce-ge}t.modifiersData[r]=N}}const wre={name:"preventOverflow",enabled:!0,phase:"main",fn:Mre,requiresIfExists:["offset"]};function Lre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ore(e){return e===Ci(e)||!$i(e)?e5(e):Lre(e)}function Tre(e){var t=e.getBoundingClientRect(),n=Nd(t.width)/e.offsetWidth||1,r=Nd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kre(e,t,n){n===void 0&&(n=!1);var r=$i(t),o=$i(t)&&Tre(t),i=wc(t),a=Pd(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ms(t)!=="body"||n5(i))&&(s=Ore(t)),$i(t)?(c=Pd(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=t5(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Nre(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Pre(e){var t=Nre(e);return Zne.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Cre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ire(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var wO={placement:"bottom",modifiers:[],strategy:"absolute"};function LO(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function aI(e,t){return typeof e=="function"?e.apply(void 0,t):e}function OO(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Vre(e){return e.split(/\s+/).filter(Boolean)}function Zf(e){return[].concat(e)}function TO(e,t){e.indexOf(t)===-1&&e.push(t)}function Ure(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Yre(e){return e.split("-")[0]}function tg(e){return[].slice.call(e)}function kO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Lh(){return document.createElement("div")}function i2(e){return["Element","Fragment"].some(function(t){return r5(e,t)})}function Qre(e){return r5(e,"NodeList")}function Zre(e){return r5(e,"MouseEvent")}function Bre(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Dre(e){return i2(e)?[e]:Qre(e)?tg(e):Array.isArray(e)?e:tg(document.querySelectorAll(e))}function _y(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function NO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Kre(e){var t,n=Zf(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Hre(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,a=o.popperState,s=o.props,c=s.interactiveBorder,l=Yre(a.placement),u=a.modifiersData.offset;if(!u)return!0;var f=l==="bottom"?u.top.y:0,d=l==="top"?u.bottom.y:0,h=l==="right"?u.left.x:0,p=l==="left"?u.right.x:0,m=i.top-r+f>c,A=r-i.bottom-d>c,x=i.left-n+h>c,R=n-i.right-p>c;return m||A||x||R})}function Ey(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function PO(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 ja={isTouch:!1},CO=0;function Gre(){ja.isTouch||(ja.isTouch=!0,window.performance&&document.addEventListener("mousemove",sI))}function sI(){var e=performance.now();e-CO<20&&(ja.isTouch=!1,document.removeEventListener("mousemove",sI)),CO=e}function zre(){var e=document.activeElement;if(Bre(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Jre(){document.addEventListener("touchstart",Gre,Jc),window.addEventListener("blur",zre)}var $re=typeof window<"u"&&typeof document<"u",jre=$re?!!window.msCrypto:!1,qre={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},eoe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Na=Object.assign({appendTo:iI,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},qre,eoe),toe=Object.keys(Na),noe=function(t){var n=Object.keys(t);n.forEach(function(r){Na[r]=t[r]})};function lI(e){var t=e.plugins||[],n=t.reduce(function(r,o){var i=o.name,a=o.defaultValue;if(i){var s;r[i]=e[i]!==void 0?e[i]:(s=Na[i])!=null?s:a}return r},{});return Object.assign({},e,n)}function roe(e,t){var n=t?Object.keys(lI(Object.assign({},Na,{plugins:t}))):toe,r=n.reduce(function(o,i){var a=(e.getAttribute("data-tippy-"+i)||"").trim();if(!a)return o;if(i==="content")o[i]=a;else try{o[i]=JSON.parse(a)}catch{o[i]=a}return o},{});return r}function IO(e,t){var n=Object.assign({},t,{content:aI(t.content,[e])},t.ignoreAttributes?{}:roe(e,t.plugins));return n.aria=Object.assign({},Na.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 ooe=function(){return"innerHTML"};function Q3(e,t){e[ooe()]=t}function FO(e){var t=Lh();return e===!0?t.className=rI:(t.className=oI,i2(e)?t.appendChild(e):Q3(t,e)),t}function _O(e,t){i2(t.content)?(Q3(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Q3(e,t.content):e.textContent=t.content)}function Z3(e){var t=e.firstElementChild,n=tg(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(nI)}),arrow:n.find(function(r){return r.classList.contains(rI)||r.classList.contains(oI)}),backdrop:n.find(function(r){return r.classList.contains(Wre)})}}function cI(e){var t=Lh(),n=Lh();n.className=Xre,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Lh();r.className=nI,r.setAttribute("data-state","hidden"),_O(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,a){var s=Z3(t),c=s.box,l=s.content,u=s.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),typeof a.animation=="string"?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(i.content!==a.content||i.allowHTML!==a.allowHTML)&&_O(l,e.props),a.arrow?u?i.arrow!==a.arrow&&(c.removeChild(u),c.appendChild(FO(a.arrow))):c.appendChild(FO(a.arrow)):u&&c.removeChild(u)}return{popper:t,onUpdate:o}}cI.$$tippy=!0;var ioe=1,Rm=[],Xy=[];function aoe(e,t){var n=IO(e,Object.assign({},Na,lI(kO(t)))),r,o,i,a=!1,s=!1,c=!1,l=!1,u,f,d,h=[],p=OO(X,n.interactiveDebounce),m,A=ioe++,x=null,R=Ure(n.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},g={id:A,reference:e,popper:Lh(),popperInstance:x,props:n,state:y,plugins:R,clearDelayTimeouts:be,setProps:qe,setContent:Ce,show:Te,hide:Ne,hideWithInteractivity:_e,enable:Ee,disable:Se,unmount:Ke,destroy:tt};if(!n.render)return g;var S=n.render(g),L=S.popper,T=S.onUpdate;L.setAttribute("data-tippy-root",""),L.id="tippy-"+g.id,g.popper=L,e._tippy=g,L._tippy=g;var M=R.map(function(ke){return ke.fn(g)}),O=e.hasAttribute("aria-expanded");return ve(),ae(),W(),D("onCreate",[g]),n.showOnCreate&&Ae(),L.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),L.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",p)}),g;function k(){var ke=g.props.touch;return Array.isArray(ke)?ke:[ke,0]}function F(){return k()[0]==="hold"}function N(){var ke;return!!((ke=g.props.render)!=null&&ke.$$tippy)}function E(){return m||e}function P(){var ke=E().parentNode;return ke?Kre(ke):document}function _(){return Z3(L)}function I(ke){return g.state.isMounted&&!g.state.isVisible||ja.isTouch||u&&u.type==="focus"?0:Fy(g.props.delay,ke?0:1,Na.delay)}function W(ke){ke===void 0&&(ke=!1),L.style.pointerEvents=g.props.interactive&&!ke?"":"none",L.style.zIndex=""+g.props.zIndex}function D(ke,Ze,nt){if(nt===void 0&&(nt=!0),M.forEach(function(ut){ut[ke]&&ut[ke].apply(ut,Ze)}),nt){var xt;(xt=g.props)[ke].apply(xt,Ze)}}function z(){var ke=g.props.aria;if(ke.content){var Ze="aria-"+ke.content,nt=L.id,xt=Zf(g.props.triggerTarget||e);xt.forEach(function(ut){var ht=ut.getAttribute(Ze);if(g.state.isVisible)ut.setAttribute(Ze,ht?ht+" "+nt:nt);else{var At=ht&&ht.replace(nt,"").trim();At?ut.setAttribute(Ze,At):ut.removeAttribute(Ze)}})}}function ae(){if(!(O||!g.props.aria.expanded)){var ke=Zf(g.props.triggerTarget||e);ke.forEach(function(Ze){g.props.interactive?Ze.setAttribute("aria-expanded",g.state.isVisible&&Ze===E()?"true":"false"):Ze.removeAttribute("aria-expanded")})}}function U(){P().removeEventListener("mousemove",p),Rm=Rm.filter(function(ke){return ke!==p})}function Z(ke){if(!(ja.isTouch&&(c||ke.type==="mousedown"))){var Ze=ke.composedPath&&ke.composedPath()[0]||ke.target;if(!(g.props.interactive&&PO(L,Ze))){if(Zf(g.props.triggerTarget||e).some(function(nt){return PO(nt,Ze)})){if(ja.isTouch||g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[g,ke]);g.props.hideOnClick===!0&&(g.clearDelayTimeouts(),g.hide(),s=!0,setTimeout(function(){s=!1}),g.state.isMounted||ie())}}}function B(){c=!0}function G(){c=!1}function Q(){var ke=P();ke.addEventListener("mousedown",Z,!0),ke.addEventListener("touchend",Z,Jc),ke.addEventListener("touchstart",G,Jc),ke.addEventListener("touchmove",B,Jc)}function ie(){var ke=P();ke.removeEventListener("mousedown",Z,!0),ke.removeEventListener("touchend",Z,Jc),ke.removeEventListener("touchstart",G,Jc),ke.removeEventListener("touchmove",B,Jc)}function q(ke,Ze){he(ke,function(){!g.state.isVisible&&L.parentNode&&L.parentNode.contains(L)&&Ze()})}function oe(ke,Ze){he(ke,Ze)}function he(ke,Ze){var nt=_().box;function xt(ut){ut.target===nt&&(Ey(nt,"remove",xt),Ze())}if(ke===0)return Ze();Ey(nt,"remove",f),Ey(nt,"add",xt),f=xt}function me(ke,Ze,nt){nt===void 0&&(nt=!1);var xt=Zf(g.props.triggerTarget||e);xt.forEach(function(ut){ut.addEventListener(ke,Ze,nt),h.push({node:ut,eventType:ke,handler:Ze,options:nt})})}function ve(){F()&&(me("touchstart",ue,{passive:!0}),me("touchend",te,{passive:!0})),Vre(g.props.trigger).forEach(function(ke){if(ke!=="manual")switch(me(ke,ue),ke){case"mouseenter":me("mouseleave",te);break;case"focus":me(jre?"focusout":"blur",le);break;case"focusin":me("focusout",le);break}})}function J(){h.forEach(function(ke){var Ze=ke.node,nt=ke.eventType,xt=ke.handler,ut=ke.options;Ze.removeEventListener(nt,xt,ut)}),h=[]}function ue(ke){var Ze,nt=!1;if(!(!g.state.isEnabled||$(ke)||s)){var xt=((Ze=u)==null?void 0:Ze.type)==="focus";u=ke,m=ke.currentTarget,ae(),!g.state.isVisible&&Zre(ke)&&Rm.forEach(function(ut){return ut(ke)}),ke.type==="click"&&(g.props.trigger.indexOf("mouseenter")<0||a)&&g.props.hideOnClick!==!1&&g.state.isVisible?nt=!0:Ae(ke),ke.type==="click"&&(a=!nt),nt&&!xt&&ye(ke)}}function X(ke){var Ze=ke.target,nt=E().contains(Ze)||L.contains(Ze);if(!(ke.type==="mousemove"&&nt)){var xt=ce().concat(L).map(function(ut){var ht,At=ut._tippy,Ft=(ht=At.popperInstance)==null?void 0:ht.state;return Ft?{popperRect:ut.getBoundingClientRect(),popperState:Ft,props:n}:null}).filter(Boolean);Hre(xt,ke)&&(U(),ye(ke))}}function te(ke){var Ze=$(ke)||g.props.trigger.indexOf("click")>=0&&a;if(!Ze){if(g.props.interactive){g.hideWithInteractivity(ke);return}ye(ke)}}function le(ke){g.props.trigger.indexOf("focusin")<0&&ke.target!==E()||g.props.interactive&&ke.relatedTarget&&L.contains(ke.relatedTarget)||ye(ke)}function $(ke){return ja.isTouch?F()!==ke.type.indexOf("touch")>=0:!1}function j(){se();var ke=g.props,Ze=ke.popperOptions,nt=ke.placement,xt=ke.offset,ut=ke.getReferenceClientRect,ht=ke.moveTransition,At=N()?Z3(L).arrow:null,Ft=ut?{getBoundingClientRect:ut,contextElement:ut.contextElement||E()}:e,Qt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ea){var io=Ea.state;if(N()){var of=_(),Nc=of.box;["placement","reference-hidden","escaped"].forEach(function(Ms){Ms==="placement"?Nc.setAttribute("data-placement",io.placement):io.attributes.popper["data-popper-"+Ms]?Nc.setAttribute("data-"+Ms,""):Nc.removeAttribute("data-"+Ms)}),io.attributes.popper={}}}},Pn=[{name:"offset",options:{offset:xt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ht}},Qt];N()&&At&&Pn.push({name:"arrow",options:{element:At,padding:3}}),Pn.push.apply(Pn,(Ze==null?void 0:Ze.modifiers)||[]),g.popperInstance=Ere(Ft,L,Object.assign({},Ze,{placement:nt,onFirstUpdate:d,modifiers:Pn}))}function se(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function ge(){var ke=g.props.appendTo,Ze,nt=E();g.props.interactive&&ke===iI||ke==="parent"?Ze=nt.parentNode:Ze=aI(ke,[nt]),Ze.contains(L)||Ze.appendChild(L),g.state.isMounted=!0,j()}function ce(){return tg(L.querySelectorAll("[data-tippy-root]"))}function Ae(ke){g.clearDelayTimeouts(),ke&&D("onTrigger",[g,ke]),Q();var Ze=I(!0),nt=k(),xt=nt[0],ut=nt[1];ja.isTouch&&xt==="hold"&&ut&&(Ze=ut),Ze?r=setTimeout(function(){g.show()},Ze):g.show()}function ye(ke){if(g.clearDelayTimeouts(),D("onUntrigger",[g,ke]),!g.state.isVisible){ie();return}if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ke.type)>=0&&a)){var Ze=I(!1);Ze?o=setTimeout(function(){g.state.isVisible&&g.hide()},Ze):i=requestAnimationFrame(function(){g.hide()})}}function Ee(){g.state.isEnabled=!0}function Se(){g.hide(),g.state.isEnabled=!1}function be(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function qe(ke){if(!g.state.isDestroyed){D("onBeforeUpdate",[g,ke]),J();var Ze=g.props,nt=IO(e,Object.assign({},Ze,kO(ke),{ignoreAttributes:!0}));g.props=nt,ve(),Ze.interactiveDebounce!==nt.interactiveDebounce&&(U(),p=OO(X,nt.interactiveDebounce)),Ze.triggerTarget&&!nt.triggerTarget?Zf(Ze.triggerTarget).forEach(function(xt){xt.removeAttribute("aria-expanded")}):nt.triggerTarget&&e.removeAttribute("aria-expanded"),ae(),W(),T&&T(Ze,nt),g.popperInstance&&(j(),ce().forEach(function(xt){requestAnimationFrame(xt._tippy.popperInstance.forceUpdate)})),D("onAfterUpdate",[g,ke])}}function Ce(ke){g.setProps({content:ke})}function Te(){var ke=g.state.isVisible,Ze=g.state.isDestroyed,nt=!g.state.isEnabled,xt=ja.isTouch&&!g.props.touch,ut=Fy(g.props.duration,0,Na.duration);if(!(ke||Ze||nt||xt)&&!E().hasAttribute("disabled")&&(D("onShow",[g],!1),g.props.onShow(g)!==!1)){if(g.state.isVisible=!0,N()&&(L.style.visibility="visible"),W(),Q(),g.state.isMounted||(L.style.transition="none"),N()){var ht=_(),At=ht.box,Ft=ht.content;_y([At,Ft],0)}d=function(){var Pn;if(!(!g.state.isVisible||l)){if(l=!0,L.offsetHeight,L.style.transition=g.props.moveTransition,N()&&g.props.animation){var aa=_(),Ea=aa.box,io=aa.content;_y([Ea,io],ut),NO([Ea,io],"visible")}z(),ae(),TO(Xy,g),(Pn=g.popperInstance)==null||Pn.forceUpdate(),D("onMount",[g]),g.props.animation&&N()&&oe(ut,function(){g.state.isShown=!0,D("onShown",[g])})}},ge()}}function Ne(){var ke=!g.state.isVisible,Ze=g.state.isDestroyed,nt=!g.state.isEnabled,xt=Fy(g.props.duration,1,Na.duration);if(!(ke||Ze||nt)&&(D("onHide",[g],!1),g.props.onHide(g)!==!1)){if(g.state.isVisible=!1,g.state.isShown=!1,l=!1,a=!1,N()&&(L.style.visibility="hidden"),U(),ie(),W(!0),N()){var ut=_(),ht=ut.box,At=ut.content;g.props.animation&&(_y([ht,At],xt),NO([ht,At],"hidden"))}z(),ae(),g.props.animation?N()&&q(xt,g.unmount):g.unmount()}}function _e(ke){P().addEventListener("mousemove",p),TO(Rm,p),p(ke)}function Ke(){g.state.isVisible&&g.hide(),g.state.isMounted&&(se(),ce().forEach(function(ke){ke._tippy.unmount()}),L.parentNode&&L.parentNode.removeChild(L),Xy=Xy.filter(function(ke){return ke!==g}),g.state.isMounted=!1,D("onHidden",[g]))}function tt(){g.state.isDestroyed||(g.clearDelayTimeouts(),g.unmount(),J(),delete e._tippy,g.state.isDestroyed=!0,D("onDestroy",[g]))}}function ef(e,t){t===void 0&&(t={});var n=Na.plugins.concat(t.plugins||[]);Jre();var r=Object.assign({},t,{plugins:n}),o=Dre(e),i=o.reduce(function(a,s){var c=s&&aoe(s,r);return c&&a.push(c),a},[]);return i2(e)?i[0]:i}ef.defaultProps=Na;ef.setDefaultProps=noe;ef.currentInput=ja;Object.assign({},GC,{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)}});ef.setDefaultProps({render:cI});const soe=Fe({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=pe(),i=pe(),a=pe(),s=pe(!1),c=Me(()=>n.contentStyle||{});return Tt(()=>n.value,()=>{o.value&&(n.value?o.value.show():o.value.hide())}),Gt(()=>{o.value=ef(i.value,{content:a.value,allowHTML:!0,trigger:n.trigger,placement:n.placement,interactive:!0,appendTo:n.appendTo||document.body,maxWidth:"none",offset:[0,8],duration:200,animation:"scale",theme:"popover",onShow(){s.value=!0},onShown(){n.value||r("update:value",!0)},onHidden(){n.value&&r("update:value",!1),s.value=!1}})}),(l,u)=>(Y(),ee("div",{class:$e(["popover",{center:l.center}]),ref_key:"triggerRef",ref:i},[V("div",{class:"popover-content",style:Le(c.value),ref_key:"contentRef",ref:a},[s.value?cr(l.$slots,"content",{key:0},void 0,!0):Be("",!0)],4),cr(l.$slots,"default",{},void 0,!0)],2))}}),kt=Ue(soe,[["__scopeId","data-v-f1b06373"]]),loe=Fe({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,o)=>(Y(),ee("div",{class:$e(["popover-menu-item",{center:r.center}]),onClick:o[0]||(o[0]=i=>n("click"))},[cr(r.$slots,"default",{},void 0,!0)],2))}}),Oo=Ue(loe,[["__scopeId","data-v-1f176c16"]]),coe={class:"editor-header"},uoe={class:"left"},foe={class:"menu-item"},doe={class:"title"},hoe=["title"],poe={class:"right"},moe={class:"group-menu-item"},voe={class:"arrow-btn"},goe={class:"github-link",href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},Aoe={class:"menu-item"},Roe=Fe({__name:"index",setup(e){const t=ft(),n=ct(),{title:r}=Xe(n),{enterScreening:o,enterScreeningFromStart:i}=Mc(),{importSpecificFile:a,importPPTXFile:s,exporting:c}=une(),{resetSlides:l}=Dd(),u=pe(!1),f=pe(!1),d=pe(!1),h=pe(),p=pe(""),m=()=>{p.value=r.value,d.value=!0,Vr(()=>{var y;return(y=h.value)==null?void 0:y.focus()})},A=()=>{n.setTitle(p.value),d.value=!1},x=y=>{window.open(y),u.value=!1},R=y=>{t.setDialogForExport(y),u.value=!1};return(y,g)=>{const S=xe("IconHamburgerButton"),L=xe("IconPpt"),T=xe("IconDown"),M=xe("IconDownload"),O=xe("IconGithub"),k=Mn("tooltip");return Y(),ee("div",coe,[V("div",uoe,[w(kt,{trigger:"click",placement:"bottom-start",value:u.value,"onUpdate:value":g[7]||(g[7]=F=>u.value=F)},{content:re(()=>[w(Eu,{accept:".pptist",onChange:g[0]||(g[0]=F=>{H(a)(F),u.value=!1})},{default:re(()=>[w(Oo,null,{default:re(()=>[We("导入 pptist 文件")]),_:1})]),_:1}),w(Eu,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:g[1]||(g[1]=F=>{H(s)(F),u.value=!1})},{default:re(()=>[w(Oo,null,{default:re(()=>[We("导入 pptx 文件(测试版)")]),_:1})]),_:1}),w(Oo,{onClick:g[2]||(g[2]=F=>R("pptx"))},{default:re(()=>[We("导出文件")]),_:1}),w(Oo,{onClick:g[3]||(g[3]=F=>{H(l)(),u.value=!1})},{default:re(()=>[We("重置幻灯片")]),_:1}),w(Oo,{onClick:g[4]||(g[4]=F=>x("https://github.com/pipipi-pikachu/PPTist/issues"))},{default:re(()=>[We("意见反馈")]),_:1}),w(Oo,{onClick:g[5]||(g[5]=F=>x("https://github.com/pipipi-pikachu/PPTist/blob/master/doc/Q&A.md"))},{default:re(()=>[We("常见问题")]),_:1}),w(Oo,{onClick:g[6]||(g[6]=F=>{u.value=!1,f.value=!0})},{default:re(()=>[We("快捷键")]),_:1})]),default:re(()=>[V("div",foe,[w(S,{class:"icon"})])]),_:1},8,["value"]),V("div",doe,[d.value?(Y(),we(Xu,{key:0,class:"title-input",ref_key:"titleInputRef",ref:h,value:p.value,"onUpdate:value":g[8]||(g[8]=F=>p.value=F),onBlur:g[9]||(g[9]=F=>A())},null,8,["value"])):(Y(),ee("div",{key:1,class:"title-text",onClick:g[10]||(g[10]=F=>m()),title:H(r)},gt(H(r)),9,hoe))])]),V("div",poe,[V("div",moe,[De((Y(),ee("div",{class:"menu-item",onClick:g[11]||(g[11]=F=>H(o)())},[w(L,{class:"icon"})])),[[k,"幻灯片放映"]]),w(kt,{trigger:"click",center:""},{content:re(()=>[w(Oo,{onClick:g[12]||(g[12]=F=>H(i)())},{default:re(()=>[We("从头开始")]),_:1}),w(Oo,{onClick:g[13]||(g[13]=F=>H(o)())},{default:re(()=>[We("从当前页开始")]),_:1})]),default:re(()=>[V("div",voe,[w(T,{class:"arrow"})])]),_:1})]),De((Y(),ee("div",{class:"menu-item",onClick:g[14]||(g[14]=F=>R("pptx"))},[w(M,{class:"icon"})])),[[k,"导出"]]),De((Y(),ee("a",goe,[V("div",Aoe,[w(O,{class:"icon"})])])),[[k,"Copyright © 2020-PRESENT pipipi-pikachu"]])]),w(One,{width:320,visible:f.value,"onUpdate:visible":g[15]||(g[15]=F=>f.value=F),placement:"right"},{default:re(()=>[w(vne)]),_:1},8,["visible"]),w(zb,{loading:H(c),tip:"正在导入..."},null,8,["loading"])])}}}),yoe=Ue(Roe,[["__scopeId","data-v-89efe6b2"]]),tf=Symbol(),o5=Symbol(),uI=Symbol(),xoe=()=>{const e=window.getSelection();e&&e.removeAllRanges()},boe=e=>{const t=pe(0),n=pe(0),r=ft(),{canvasPercentage:o,canvasDragged:i}=Xe(r),{viewportRatio:a}=Xe(ct()),s=()=>{if(!e.value)return;const d=e.value.clientWidth,h=e.value.clientHeight;if(h/d>a.value){const p=d*(o.value/100);r.setCanvasScale(p/Ht),t.value=(d-p)/2,n.value=(h-p*a.value)/2}else{const p=h*(o.value/100);r.setCanvasScale(p/(Ht*a.value)),t.value=(d-p/a.value)/2,n.value=(h-p)/2}};Tt(o,(d,h)=>{if(!e.value)return;const p=e.value.clientWidth,m=e.value.clientHeight,A=p*(d/100),x=p*(h/100),R=m*(d/100),y=m*(h/100);m/p>a.value?r.setCanvasScale(A/Ht):r.setCanvasScale(R/(Ht*a.value)),t.value=t.value-(A-x)/2,n.value=n.value-(R-y)/2}),Tt(a,s),Tt(i,()=>{i.value||s()});const l=Me(()=>({width:Ht,height:Ht*a.value,left:t.value,top:n.value})),u=new ResizeObserver(s);return Gt(()=>{e.value&&u.observe(e.value)}),Tn(()=>{e.value&&u.unobserve(e.value)}),{viewportStyles:l,dragViewport:d=>{let h=!0;const p=d.pageX,m=d.pageY,A=t.value,x=n.value;document.onmousemove=R=>{if(!h)return;const y=R.pageX,g=R.pageY;t.value=A+(y-p),n.value=x+(g-m)},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null,r.setCanvasDragged(!0)}}}},Soe=(e,t)=>{const n=ft(),{canvasScale:r,hiddenElementIdList:o}=Xe(n),i=pe(!1),a=pe(1),s=pe({top:0,left:0,width:0,height:0});return{mouseSelection:s,mouseSelectionVisible:i,mouseSelectionQuadrant:a,updateMouseSelection:l=>{if(!t.value)return;let u=!0;const f=t.value.getBoundingClientRect(),d=5,h=l.pageX,p=l.pageY,m=(h-f.x)/r.value,A=(p-f.y)/r.value;s.value={top:A,left:m,width:0,height:0},i.value=!1,a.value=4,document.onmousemove=x=>{if(!u)return;const R=x.pageX,y=x.pageY,g=(R-h)/r.value,S=(y-p)/r.value,L=Math.abs(g),T=Math.abs(S);if(L0&&S>0?M=4:g<0&&S<0?M=2:g>0&&S<0?M=1:g<0&&S>0&&(M=3),s.value={...s.value,width:L,height:T},i.value=!0,a.value=M},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,u=!1;let x=[];for(let y=0;yS&&kL&&NS-T&&kL-M&&NS&&kL-M&&NS-T&&kL&&N{if(y.groupId){const g=x.map(L=>L.id);return e.value.filter(L=>L.groupId===y.groupId).every(L=>g.includes(L.id))}return!0});const R=x.map(y=>y.id);n.setActiveElementIdList(R),i.value=!1}}}},Moe=e=>{const{disableHotkeys:t}=Xe(ft()),{createImageElement:n,createTextElement:r}=$u(),o=i=>{if(!i.dataTransfer||i.dataTransfer.items.length===0)return;const a=i.dataTransfer.items[0];if(a.kind==="file"&&a.type.indexOf("image")!==-1){const s=a.getAsFile();s&&zu(s).then(c=>n(c))}else a.kind==="string"&&a.type==="text/plain"&&a.getAsString(s=>{if(t.value)return;const c=kb(s);r({left:0,top:0,width:600,height:50},{content:c})})};Gt(()=>{e.value&&e.value.addEventListener("drop",o),document.ondragleave=i=>i.preventDefault(),document.ondrop=i=>i.preventDefault(),document.ondragenter=i=>i.preventDefault(),document.ondragover=i=>i.preventDefault()}),Tn(()=>{e.value&&e.value.removeEventListener("drop",o),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},woe=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},fI=(e,t,n)=>{const r=ct(),{addHistorySnapshot:o}=zt();return{rotateElement:(a,s)=>{const c=!(a instanceof MouseEvent);if(c&&(!a.changedTouches||!a.changedTouches[0]))return;let l=!0,u=0;const f=s.rotate||0,d=s.left,h=s.top,p=s.width,m=s.height,A=d+p/2,x=h+m/2;if(!t.value)return;const R=t.value.getBoundingClientRect(),y=S=>{if(!l)return;const L=S instanceof MouseEvent?S.pageX:S.changedTouches[0].pageX,T=S instanceof MouseEvent?S.pageY:S.changedTouches[0].pageY,M=(L-R.left)/n.value,O=(T-R.top)/n.value,k=M-A,F=x-O;u=woe(k,F);const N=5;Math.abs(u)<=N?u=0:u>0&&Math.abs(u-45)<=N?u-=u-45:u<0&&Math.abs(u+45)<=N?u-=u+45:u>0&&Math.abs(u-90)<=N?u-=u-90:u<0&&Math.abs(u+90)<=N?u-=u+90:u>0&&Math.abs(u-135)<=N?u-=u-135:u<0&&Math.abs(u+135)<=N?u-=u+135:u>0&&Math.abs(u-180)<=N?u-=u-180:u<0&&Math.abs(u+180)<=N&&(u-=u+180),e.value=e.value.map(E=>s.id===E.id?{...E,rotate:u}:E)},g=()=>{l=!1,document.onmousemove=null,document.onmouseup=null,f!==u&&(r.updateSlide({elements:e.value}),o())};c?(document.ontouchmove=y,document.ontouchend=g):(document.onmousemove=y,document.onmouseup=g)}}},J0={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},dI={text:20,image:20,shape:20,chart:200,table:20,video:250,audio:20,latex:20},EO=(e,t)=>{const{left:n,top:r,width:o,height:i}=e,a=Math.sqrt(Math.pow(o,2)+Math.pow(i,2))/2,s=Math.atan(i/o)*180/Math.PI,c=(180-t-s)*Math.PI/180,l=(s-t)*Math.PI/180,u=(90-t)*Math.PI/180,f=t*Math.PI/180,d=o/2,h=i/2,p=n+d,m=r+h,A={left:p+a*Math.cos(c),top:m-a*Math.sin(c)},x={left:p+h*Math.cos(u),top:m-h*Math.sin(u)},R={left:p+a*Math.cos(l),top:m-a*Math.sin(l)},y={left:p+d*Math.cos(f),top:m+d*Math.sin(f)},g={left:p-a*Math.cos(c),top:m+a*Math.sin(c)},S={left:p-h*Math.sin(f),top:m+h*Math.cos(f)},L={left:p-a*Math.cos(l),top:m+a*Math.sin(l)},T={left:p-d*Math.cos(f),top:m-d*Math.sin(f)};return{leftTopPoint:A,topPoint:x,rightTopPoint:R,rightPoint:y,rightBottomPoint:g,bottomPoint:S,leftBottomPoint:L,leftPoint:T}},XO=(e,t)=>({[mt.RIGHT_BOTTOM]:t.leftTopPoint,[mt.LEFT_BOTTOM]:t.rightTopPoint,[mt.LEFT_TOP]:t.rightBottomPoint,[mt.RIGHT_TOP]:t.leftBottomPoint,[mt.TOP]:t.bottomPoint,[mt.BOTTOM]:t.topPoint,[mt.LEFT]:t.rightPoint,[mt.RIGHT]:t.leftPoint})[e],hI=(e,t,n)=>{const r=ft(),o=ct(),{activeElementIdList:i,activeGroupElementId:a}=Xe(r),{viewportRatio:s}=Xe(o),{ctrlOrShiftKeyActive:c}=Xe(Ss()),{addHistorySnapshot:l}=zt();return{scaleElement:(d,h,p)=>{const m=!(d instanceof MouseEvent);if(m&&(!d.changedTouches||!d.changedTouches[0]))return;let A=!0;r.setScalingState(!0);const x=h.left,R=h.top,y=h.width,g=h.height,S=h.type==="table"?h.cellMinHeight:0,L="rotate"in h&&h.rotate?h.rotate:0,T=Math.PI*L/180,M=c.value||"fixedRatio"in h&&h.fixedRatio,O=y/g,k=m?d.changedTouches[0].pageX:d.pageX,F=m?d.changedTouches[0].pageY:d.pageY,N=dI[h.type]||20,E=Z=>Z{const Q=[];let ie=!1,q=!1;const oe={offsetX:0,offsetY:0};if(B||B===0)for(let he=0;he{if(!A)return;const B=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,G=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY,Q=B-k,ie=G-F;let q=y,oe=g,he=x,me=R;if(L){const ve=(Math.cos(T)*Q+Math.sin(T)*ie)/n.value;let J=(Math.cos(T)*ie-Math.sin(T)*Q)/n.value;M&&((p===mt.RIGHT_BOTTOM||p===mt.LEFT_TOP)&&(J=ve/O),(p===mt.LEFT_BOTTOM||p===mt.RIGHT_TOP)&&(J=-ve/O)),p===mt.RIGHT_BOTTOM?(q=E(y+ve),oe=E(g+J)):p===mt.LEFT_BOTTOM?(q=E(y-ve),oe=E(g+J),he=x-(q-y)):p===mt.LEFT_TOP?(q=E(y-ve),oe=E(g-J),he=x-(q-y),me=R-(oe-g)):p===mt.RIGHT_TOP?(q=E(y+ve),oe=E(g-J),me=R-(oe-g)):p===mt.TOP?(oe=E(g-J),me=R-(oe-g)):p===mt.BOTTOM?oe=E(g+J):p===mt.LEFT?(q=E(y-ve),he=x-(q-y)):p===mt.RIGHT&&(q=E(y+ve));const ue=EO({width:q,height:oe,left:he,top:me},L),X=XO(p,ue),te=X.left,le=X.top,$=te-_,j=le-I;he=he-$,me=me-j}else{let ve=Q/n.value,J=ie/n.value;if(M&&((p===mt.RIGHT_BOTTOM||p===mt.LEFT_TOP)&&(J=ve/O),(p===mt.LEFT_BOTTOM||p===mt.RIGHT_TOP)&&(J=-ve/O)),p===mt.RIGHT_BOTTOM){const{offsetX:ue,offsetY:X}=z(x+y+ve,R+g+J);ve=ve-ue,J=J-X,M&&(X?ve=J*O:J=ve/O),q=E(y+ve),oe=E(g+J)}else if(p===mt.LEFT_BOTTOM){const{offsetX:ue,offsetY:X}=z(x+ve,R+g+J);ve=ve-ue,J=J-X,M&&(X?ve=-J*O:J=-ve/O),q=E(y-ve),oe=E(g+J),he=x-(q-y)}else if(p===mt.LEFT_TOP){const{offsetX:ue,offsetY:X}=z(x+ve,R+J);ve=ve-ue,J=J-X,M&&(X?ve=J*O:J=ve/O),q=E(y-ve),oe=E(g-J),he=x-(q-y),me=R-(oe-g)}else if(p===mt.RIGHT_TOP){const{offsetX:ue,offsetY:X}=z(x+y+ve,R+J);ve=ve-ue,J=J-X,M&&(X?ve=-J*O:J=-ve/O),q=E(y+ve),oe=E(g-J),me=R-(oe-g)}else if(p===mt.LEFT){const{offsetX:ue}=z(x+ve,null);ve=ve-ue,q=E(y-ve),he=x-(q-y)}else if(p===mt.RIGHT){const{offsetX:ue}=z(x+y+ve,null);ve=ve-ue,q=E(y+ve)}else if(p===mt.TOP){const{offsetY:ue}=z(null,R+J);J=J-ue,oe=E(g-J),me=R-(oe-g)}else if(p===mt.BOTTOM){const{offsetY:ue}=z(null,R+g+J);J=J-ue,oe=E(g+J)}}e.value=e.value.map(ve=>{if(h.id!==ve.id)return ve;if(ve.type==="shape"&&"pathFormula"in ve&&ve.pathFormula){const J=Ju[ve.pathFormula];let ue="";return"editable"in J?ue=J.formula(q,oe,ve.keypoint):ue=J.formula(q,oe),{...ve,left:he,top:me,width:q,height:oe,viewBox:[q,oe],path:ue}}if(ve.type==="table"){let J=S+(oe-g)/ve.data.length;return J=J<36?36:J,J===S?{...ve,left:he,width:q}:{...ve,left:he,top:me,width:q,height:oe,cellMinHeight:J<36?36:J}}return{...ve,left:he,top:me,width:q,height:oe}})},U=Z=>{A=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const B=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,G=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;k===B&&F===G||(o.updateSlide({elements:e.value}),r.setScalingState(!1),l())};m?(document.ontouchmove=ae,document.ontouchend=U):(document.onmousemove=ae,document.onmouseup=U)},scaleMultiElement:(d,h,p)=>{let m=!0;const{minX:A,maxX:x,minY:R,maxY:y}=h,g=x-A,S=y-R,L=g/S,T=d.pageX,M=d.pageY,O=JSON.parse(JSON.stringify(e.value));document.onmousemove=k=>{if(!m)return;const F=k.pageX,N=k.pageY,E=(F-T)/n.value;let P=(N-M)/n.value;c.value&&((p===mt.RIGHT_BOTTOM||p===mt.LEFT_TOP)&&(P=E/L),(p===mt.LEFT_BOTTOM||p===mt.RIGHT_TOP)&&(P=-E/L));let _=A,I=x,W=R,D=y;p===mt.RIGHT_BOTTOM?(I=x+E,D=y+P):p===mt.LEFT_BOTTOM?(_=A+E,D=y+P):p===mt.LEFT_TOP?(_=A+E,W=R+P):p===mt.RIGHT_TOP?(I=x+E,W=R+P):p===mt.TOP?W=R+P:p===mt.BOTTOM?D=y+P:p===mt.LEFT?_=A+E:p===mt.RIGHT&&(I=x+E);const z=I-_,ae=D-W;let U=z/g,Z=ae/S;U<=0&&(U=0),Z<=0&&(Z=0),e.value=e.value.map(B=>{if((B.type==="image"||B.type==="shape")&&i.value.includes(B.id)){const G=O.find(Q=>Q.id===B.id);return{...B,width:G.width*U,height:G.height*Z,left:_+(G.left-A)*U,top:W+(G.top-R)*Z}}return B})},document.onmouseup=k=>{m=!1,document.onmousemove=null,document.onmouseup=null,!(T===k.pageX&&M===k.pageY)&&(o.updateSlide({elements:e.value}),l())}}}},Loe=(e,t)=>{const n=ft(),{activeElementIdList:r,activeGroupElementId:o,handleElementId:i,editorAreaFocus:a}=Xe(n),{ctrlOrShiftKeyActive:s}=Xe(Ss());return{selectElement:(l,u,f=!0)=>{if(a.value||n.setEditorareaFocus(!0),r.value.includes(u.id)){if(s.value){let d=[];if(u.groupId){const h=[];e.value.forEach(p=>{p.groupId===u.groupId&&h.push(p.id)}),d=r.value.filter(p=>!h.includes(p))}else d=r.value.filter(h=>h!==u.id);d.length>0&&n.setActiveElementIdList(d)}else if(i.value!==u.id)n.setHandleElementId(u.id);else if(o.value!==u.id){const d=l instanceof MouseEvent?l.pageX:l.changedTouches[0].pageX,h=l instanceof MouseEvent?l.pageY:l.changedTouches[0].pageY;l.target.onmouseup=p=>{const m=p.pageX,A=p.pageY;d===m&&h===A&&(n.setActiveGroupElementId(u.id),p.target.onmouseup=null)}}}else{let d=[];if(s.value?d=[...r.value,u.id]:d=[u.id],u.groupId){const h=[];e.value.forEach(p=>{p.groupId===u.groupId&&h.push(p.id)}),d=[...d,...h]}n.setActiveElementIdList(_n.uniq(d)),n.setHandleElementId(u.id)}f&&t(l,u)}}},pI=(e,t,n)=>{const r=ct(),{activeElementIdList:o,activeGroupElementId:i}=Xe(ft()),{shiftKeyState:a}=Xe(Ss()),{viewportRatio:s}=Xe(r),{addHistorySnapshot:c}=zt();return{dragElement:(u,f)=>{const d=!(u instanceof MouseEvent);if(d&&(!u.changedTouches||!u.changedTouches[0])||!o.value.includes(f.id))return;let h=!0;const p=Ht,m=Ht*s.value,A=5,R=JSON.parse(JSON.stringify(e.value)).filter(Z=>o.value.includes(Z.id)),y=f.left,g=f.top,S=f.width,L="height"in f&&f.height?f.height:0,T="rotate"in f&&f.rotate?f.rotate:0,M=d?u.changedTouches[0].pageX:u.pageX,O=d?u.changedTouches[0].pageY:u.pageY;let k=null;const F=f.id===i.value;let N=[],E=[];for(const Z of e.value){if(Z.type==="line"||F&&Z.id===f.id||!F&&o.value.includes(Z.id))continue;let B,G,Q,ie;if("rotate"in Z&&Z.rotate){const{xRange:$,yRange:j}=dd({left:Z.left,top:Z.top,width:Z.width,height:Z.height,rotate:Z.rotate});B=$[0],G=j[0],Q=$[1]-$[0],ie=j[1]-j[0]}else B=Z.left,G=Z.top,Q=Z.width,ie=Z.height;const q=B+Q,oe=G+ie,he=G+ie/2,me=B+Q/2,ve={value:G,range:[B,q]},J={value:oe,range:[B,q]},ue={value:he,range:[B,q]},X={value:B,range:[G,oe]},te={value:q,range:[G,oe]},le={value:me,range:[G,oe]};N.push(ve,J,ue),E.push(X,te,le)}const P={value:0,range:[0,p]},_={value:m,range:[0,p]},I={value:m/2,range:[0,p]},W={value:0,range:[0,m]},D={value:p,range:[0,m]},z={value:p/2,range:[0,m]};N.push(P,_,I),E.push(W,D,z),N=Uv(N),E=Uv(E);const ae=Z=>{const B=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,G=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;if(k!==!1&&(k=Math.abs(M-B)Math.abs(ie)&&(ie=0),Math.abs(Q)j.id===f.id?{...j,left:q,top:oe}:j);else{const j=e.value.find(se=>se.id===f.id);if(!j)return;e.value=e.value.map(se=>o.value.includes(se.id)?se.id===f.id?{...se,left:q,top:oe}:{...se,left:se.left+(q-j.left),top:se.top+(oe-j.top)}:se)}},U=Z=>{h=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const B=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,G=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;M===B&&O===G||(r.updateSlide({elements:e.value}),c())};d?(document.ontouchmove=ae,document.ontouchend=U):(document.onmousemove=ae,document.onmouseup=U)}}},Ooe=e=>{const t=ct(),{canvasScale:n}=Xe(ft()),{ctrlOrShiftKeyActive:r}=Xe(Ss()),{addHistorySnapshot:o}=zt();return{dragLineElement:(a,s,c)=>{let l=!0;const u=8,f=a.pageX,d=a.pageY,h=[];for(let p=0;p{if(!l)return;const m=p.pageX,A=p.pageY,x=(m-f)/n.value,R=(A-d)/n.value;let y=s.left+s.start[0],g=s.top+s.start[1],S=s.left+s.end[0],L=s.top+s.end[1];const T=s.broken||s.curve||[0,0];let M=s.left+T[0],O=s.top+T[1];const[k,F]=s.cubic||[[0,0],[0,0]];let N=s.left+k[0],E=s.top+k[1],P=s.left+F[0],_=s.top+F[1];if(c===Go.START){y=y+x,g=g+R,Math.abs(y-S)S&&(ae[0]=D-I,U[0]=0),g>L&&(ae[1]=z-W,U[1]=0),e.value=e.value.map(Z=>{if(Z.id===s.id){const B={...Z,left:I,top:W,start:ae,end:U};return c===Go.START||c===Go.END?r.value?(s.broken&&(B.broken=[M-I,O-W]),s.curve&&(B.curve=[M-I,O-W]),s.cubic&&(B.cubic=[[N-I,E-W],[P-I,_-W]])):(s.broken&&(B.broken=[(ae[0]+U[0])/2,(ae[1]+U[1])/2]),s.curve&&(B.curve=[(ae[0]+U[0])/2,(ae[1]+U[1])/2]),s.cubic&&(B.cubic=[[(ae[0]+U[0])/2,(ae[1]+U[1])/2],[(ae[0]+U[0])/2,(ae[1]+U[1])/2]])):c===Go.C?(s.broken&&(B.broken=[M-I,O-W]),s.curve&&(B.curve=[M-I,O-W])):s.cubic&&(B.cubic=[[N-I,E-W],[P-I,_-W]]),B}return Z})},document.onmouseup=p=>{l=!1,document.onmousemove=null,document.onmouseup=null;const m=p.pageX,A=p.pageY;f===m&&d===A||(t.updateSlide({elements:e.value}),o())}}}},Toe=(e,t)=>{const n=ct(),{addHistorySnapshot:r}=zt();return{moveShapeKeypoint:(i,a)=>{const s=!(i instanceof MouseEvent);if(s&&(!i.changedTouches||!i.changedTouches[0]))return;let c=!0;const l=s?i.changedTouches[0].pageX:i.pageX,u=s?i.changedTouches[0].pageY:i.pageY,f=Ju[a.pathFormula];let d=null;if("editable"in f){const m=f.getBaseSize(a.width,a.height),A=m*a.keypoint,[x,R]=f.range,y=f.relative;d={baseSize:m,originPos:A,min:x,max:R,relative:y}}const h=m=>{if(!c)return;const A=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,x=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY,R=(A-l)/t.value,y=(x-u)/t.value;e.value=e.value.map(g=>{if(g.id===a.id&&d){const{baseSize:S,originPos:L,min:T,max:M,relative:O}=d,k=g;let F=0;return O==="left"&&(F=(L+R)/S),O==="right"&&(F=(L-R)/S),O==="center"&&(F=(L-R*2)/S),O==="top"&&(F=(L+y)/S),O==="bottom"&&(F=(L-y)/S),FM&&(F=M),{...g,keypoint:F,path:f.formula(k.width,k.height,F)}}return g})},p=m=>{c=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const A=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,x=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY;l===A&&u===x||(n.updateSlide({elements:e.value}),r())};s?(document.ontouchmove=h,document.ontouchend=p):(document.onmousemove=h,document.onmouseup=p)}}},koe=e=>{const t=ft(),{canvasScale:n,creatingElement:r}=Xe(t),o=u=>{const{start:f,end:d}=u;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,m]=f,[A,x]=d,R=Math.min(p,A),y=Math.max(p,A),g=Math.min(m,x),S=Math.max(m,x),L=(R-h.x)/n.value,T=(g-h.y)/n.value,M=(y-R)/n.value,O=(S-g)/n.value;return{left:L,top:T,width:M,height:O}},i=u=>{const{start:f,end:d}=u;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,m]=f,[A,x]=d,R=Math.min(p,A),y=Math.max(p,A),g=Math.min(m,x),S=Math.max(m,x),L=(R-h.x)/n.value,T=(g-h.y)/n.value,M=(y-R)/n.value,O=(S-g)/n.value;return{left:L,top:T,start:[p===R?0:M,m===g?0:O],end:[A===R?0:M,x===g?0:O]}},{createTextElement:a,createShapeElement:s,createLineElement:c}=$u();return{formatCreateSelection:o,insertElementFromCreateSelection:u=>{if(!r.value)return;const f=r.value.type;if(f==="text"){const d=o(u);d&&a(d,{vertical:r.value.vertical})}else if(f==="shape"){const d=o(u);d&&s(d,r.value.data)}else if(f==="line"){const d=i(u);d&&c(d,r.value.data)}t.setCreatingElement(null)}}},a2=()=>{const e=ct(),{activeElementIdList:t,activeElementList:n}=Xe(ft()),{currentSlide:r,viewportRatio:o}=Xe(e),{addHistorySnapshot:i}=zt();return{alignElementToCanvas:s=>{const c=Ht,l=Ht*o.value,{minX:u,maxX:f,minY:d,maxY:h}=ec(n.value),p=JSON.parse(JSON.stringify(r.value.elements));for(const m of p)if(t.value.includes(m.id)){if(s===nn.CENTER){const A=d+(h-d)/2-l/2,x=u+(f-u)/2-c/2;m.top=m.top-A,m.left=m.left-x}if(s===nn.TOP){const A=d-0;m.top=m.top-A}else if(s===nn.VERTICAL){const A=d+(h-d)/2-l/2;m.top=m.top-A}else if(s===nn.BOTTOM){const A=h-l;m.top=m.top-A}else if(s===nn.LEFT){const A=u-0;m.left=m.left-A}else if(s===nn.HORIZONTAL){const A=u+(f-u)/2-c/2;m.left=m.left-A}else if(s===nn.RIGHT){const A=f-c;m.left=m.left-A}}e.updateSlide({elements:p}),i()}}},Lc=e=>({shadowStyle:Me(()=>{if(e.value){const{h:n,v:r,blur:o,color:i}=e.value;return`${n}px ${r}px ${o}px ${i}`}return""})}),s2=(e,t)=>({flipStyle:Me(()=>{let r="";return e.value&&t.value?r="rotateX(180deg) rotateY(180deg)":t.value?r="rotateX(180deg)":e.value&&(r="rotateY(180deg)"),r})});var mI=(e=>(e.RECT="rect",e.ELLIPSE="ellipse",e.POLYGON="polygon",e))(mI||{});const B3={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 0 0 0 round 10px 10px 10px 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`}},i5=e=>{const t=Me(()=>{if(!e.value)return B3.rect;const r=e.value.shape||mI.RECT;return B3[r]}),n=Me(()=>{if(!e.value)return{top:"0",left:"0",width:"100%",height:"100%"};const[r,o]=e.value.range,i=(o[0]-r[0])/100,a=(o[1]-r[1])/100,s=r[0]/i,c=r[1]/a;return{left:-s+"%",top:-c+"%",width:100/i+"%",height:100/a+"%"}});return{clipShape:t,imgPosition:n}},vI=e=>({filter:Me(()=>{if(!e.value)return"";let n="";const r=Object.keys(e.value);for(const o of r)n+=`${o}(${e.value[o]}) `;return n})}),Gd=e=>{const t=Me(()=>{var i;return((i=e.value)==null?void 0:i.width)??0}),n=Me(()=>{var i;return((i=e.value)==null?void 0:i.style)||"solid"}),r=Me(()=>{var i;return((i=e.value)==null?void 0:i.color)||"#d14424"}),o=Me(()=>{if(n.value!=="dashed")return"0 0";const i=t.value;return i<=6?`${i*4.5} ${i*2}`:`${i*4} ${i*1.5}`});return{outlineWidth:t,outlineStyle:n,outlineColor:r,strokeDashArray:o}},Noe=["width","height"],Poe=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],Coe=Fe({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=Gd(Wd(t,"outline"));return(i,a)=>i.outline?(Y(),ee("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:i.width,height:i.height},[V("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:i.radius,ry:i.radius,width:i.width,height:i.height,stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,Poe)],8,Noe)):Be("",!0)}}),Ioe=Ue(Coe,[["__scopeId","data-v-09a0319c"]]),Foe=["width","height"],_oe=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],Eoe=Fe({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=Gd(Wd(t,"outline"));return(i,a)=>i.outline?(Y(),ee("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:i.width,height:i.height},[V("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:i.width/2,cy:i.height/2,rx:i.width/2,ry:i.height/2,stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,_oe)],8,Foe)):Be("",!0)}}),Xoe=Ue(Eoe,[["__scopeId","data-v-19e68d74"]]),Woe=["width","height"],Voe=["d","stroke","stroke-width","stroke-dasharray"],Uoe=Fe({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=Gd(Wd(t,"outline"));return(i,a)=>i.outline?(Y(),ee("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:i.width,height:i.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:i.createPath(i.width,i.height),stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,Voe)],8,Woe)):Be("",!0)}}),Yoe=Ue(Uoe,[["__scopeId","data-v-a036b0a3"]]),Qoe={class:"image-outline"},gI=Fe({__name:"index",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.clip),{clipShape:r}=i5(n);return(o,i)=>(Y(),ee("div",Qoe,[H(r).type==="rect"?(Y(),we(Ioe,{key:0,width:o.elementInfo.width,height:o.elementInfo.height,radius:H(r).radius,outline:o.elementInfo.outline},null,8,["width","height","radius","outline"])):H(r).type==="ellipse"?(Y(),we(Xoe,{key:1,width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"])):H(r).type==="polygon"?(Y(),we(Yoe,{key:2,width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline,createPath:H(r).createPath},null,8,["width","height","outline","createPath"])):Be("",!0)]))}}),AI=e=>(on("data-v-31b3b0f9"),e=e(),an(),e),Zoe=["src"],Boe=["src"],Doe=["onMousedown"],Koe=AI(()=>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)),Hoe=[Koe],Goe=["onMousedown"],zoe=AI(()=>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)),Joe=[zoe],$oe=Fe({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:o}=Xe(ft()),{ctrlOrShiftKeyActive:i}=Xe(Ss()),a=pe({top:"0",left:"0"}),s=pe(!1),c=pe(null),l=()=>{const[M,O]=n.clipData?n.clipData.range:[[0,0],[100,100]],k=(O[0]-M[0])/100,F=(O[1]-M[1])/100,N=M[0]/k,E=M[1]/F;return{widthScale:k,heightScale:F,left:N,top:E}},u=Me(()=>{const{widthScale:M,heightScale:O,left:k,top:F}=l();return{left:-k,top:-F,width:100/M,height:100/O}}),f=Me(()=>({top:u.value.top+"%",left:u.value.left+"%",width:u.value.width+"%",height:u.value.height+"%"})),d=pe({top:0,left:0,width:0,height:0}),h=Me(()=>{const{top:M,left:O,width:k,height:F}=d.value;return{top:M+"%",left:O+"%",width:k+"%",height:F+"%"}}),p=Me(()=>{const M=u.value.width,O=u.value.height,{top:k,left:F,width:N,height:E}=d.value;return{left:-F*(100/N)+"%",top:-k*(100/E)+"%",width:M/N*100+"%",height:O/E*100+"%"}}),m=()=>{const{left:M,top:O}=l();d.value={left:M,top:O,width:100,height:100},a.value={top:-O+"%",left:-M+"%"}},A=()=>{if(s.value)return;if(!c.value){r("clip",null);return}const{left:M,top:O}=l(),k={left:(d.value.left-M)/100*n.width,top:(d.value.top-O)/100*n.height,width:(d.value.width-100)/100*n.width,height:(d.value.height-100)/100*n.height},F={range:c.value,position:k};r("clip",F)},x=M=>{M.key.toUpperCase()===yt.ENTER&&A()};Gt(()=>{m(),document.addEventListener("keydown",x)}),Tn(()=>{document.removeEventListener("keydown",x)});const R=()=>{const M={left:parseInt(p.value.left),top:parseInt(p.value.top),width:parseInt(p.value.width),height:parseInt(p.value.height)},O=100/M.width,k=100/M.height,F=[-M.left*O,-M.top*k],N=[O*100+F[0],k*100+F[1]];c.value=[F,N]},y=M=>{s.value=!0;let O=!0;const k=M.pageX,F=M.pageY,N=u.value,E={...d.value};document.onmousemove=P=>{if(!O)return;const _=P.pageX,I=P.pageY,W=(_-k)/o.value,D=(I-F)/o.value,z=Math.sqrt(W*W+D*D),U=Math.atan2(D,W)-n.rotate/180*Math.PI,Z=z*Math.cos(U)/n.width*100,B=z*Math.sin(U)/n.height*100;let G=E.left+Z,Q=E.top+B;G<0?G=0:G+E.width>N.width&&(G=N.width-E.width),Q<0?Q=0:Q+E.height>N.height&&(Q=N.height-E.height),d.value={...d.value,left:G,top:Q}},document.onmouseup=()=>{O=!1,document.onmousemove=null,document.onmouseup=null,R(),setTimeout(()=>{s.value=!1},0)}},g=(M,O)=>{s.value=!0;let k=!0;const F=50/n.width*100,N=50/n.height*100,E=M.pageX,P=M.pageY,_=u.value,I={...d.value},W=d.value.width/d.value.height;document.onmousemove=D=>{if(!k)return;const z=D.pageX,ae=D.pageY,U=(z-E)/o.value,Z=(ae-P)/o.value,B=Math.sqrt(U*U+Z*Z),Q=Math.atan2(Z,U)-n.rotate/180*Math.PI;let ie=B*Math.cos(Q)/n.width*100,q=B*Math.sin(Q)/n.height*100;i.value&&((O===mt.RIGHT_BOTTOM||O===mt.LEFT_TOP)&&(q=ie/W),(O===mt.LEFT_BOTTOM||O===mt.RIGHT_TOP)&&(q=-ie/W));let oe,he,me,ve;O===mt.LEFT_TOP?(I.left+ie<0&&(ie=-I.left),I.top+q<0&&(q=-I.top),I.width-ie_.width&&(ie=_.width-(I.left+I.width)),I.top+q<0&&(q=-I.top),I.width+ie_.height&&(q=_.height-(I.top+I.height)),I.width-ie_.width&&(ie=_.width-(I.left+I.width)),I.top+I.height+q>_.height&&(q=_.height-(I.top+I.height)),I.width+ie_.height&&(q=_.height-(I.top+I.height)),I.height+q_.width&&(ie=_.width-(I.left+I.width)),I.width+ie{k=!1,document.onmousemove=null,document.onmouseup=null,R(),setTimeout(()=>s.value=!1,0)}},S=Me(()=>{const M="rotate-",O=n.rotate;return O>-22.5&&O<=22.5?M+0:O>22.5&&O<=67.5?M+45:O>67.5&&O<=112.5?M+90:O>112.5&&O<=157.5?M+135:O>157.5||O<=-157.5?M+0:O>-157.5&&O<=-112.5?M+45:O>-112.5&&O<=-67.5?M+90:O>-67.5&&O<=-22.5?M+135:M+0}),L=[mt.LEFT_TOP,mt.RIGHT_TOP,mt.LEFT_BOTTOM,mt.RIGHT_BOTTOM],T=[mt.TOP,mt.BOTTOM,mt.LEFT,mt.RIGHT];return(M,O)=>{const k=Mn("click-outside");return De((Y(),ee("div",{class:"image-clip-handler",style:Le(a.value)},[V("img",{class:"bottom-img",src:M.src,draggable:!1,alt:"",style:Le(f.value)},null,12,Zoe),V("div",{class:"top-image-content",style:Le({...h.value,clipPath:M.clipPath})},[V("img",{class:"top-img",src:M.src,draggable:!1,alt:"",style:Le(p.value)},null,12,Boe)],4),V("div",{class:"operate",style:Le(h.value),onMousedown:O[0]||(O[0]=Wt(F=>y(F),["stop"]))},[(Y(),ee(Ve,null,it(L,F=>V("div",{class:$e(["clip-point",F,S.value]),key:F,onMousedown:Wt(N=>g(N,F),["stop"])},Hoe,42,Doe)),64)),(Y(),ee(Ve,null,it(T,F=>V("div",{class:$e(["clip-point",F,S.value]),key:F,onMousedown:Wt(N=>g(N,F),["stop"])},Joe,42,Goe)),64))],36)],4)),[[k,A]])}}}),joe=Ue($oe,[["__scopeId","data-v-31b3b0f9"]]),qoe=["src"],eie=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{clipingImageElementId:o}=Xe(n),i=Me(()=>o.value===t.elementInfo.id),{addHistorySnapshot:a}=zt(),s=Me(()=>t.elementInfo.shadow),{shadowStyle:c}=Lc(s),l=Me(()=>t.elementInfo.flipH),u=Me(()=>t.elementInfo.flipV),{flipStyle:f}=s2(l,u),d=Me(()=>t.elementInfo.clip),{clipShape:h,imgPosition:p}=i5(d),m=Me(()=>t.elementInfo.filters),{filter:A}=vI(m),x=y=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo))},R=y=>{if(n.setClipingImageElementId(""),!y)return;const{range:g,position:S}=y,L=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},T=t.elementInfo.left+S.left,M=t.elementInfo.top+S.top,O=t.elementInfo.width+S.width,k=t.elementInfo.height+S.height;let F=0,N=0;if(t.elementInfo.rotate){const P=T+O/2-(t.elementInfo.left+t.elementInfo.width/2),_=-(M+k/2-(t.elementInfo.top+t.elementInfo.height/2)),I=-t.elementInfo.rotate*Math.PI/180,W=P*Math.cos(I)-_*Math.sin(I),D=P*Math.sin(I)+_*Math.cos(I);F=W-P,N=-(D-_)}const E={clip:{...L,range:g},left:T+F,top:M+N,width:O,height:k};r.updateElement({id:t.elementInfo.id,props:E}),a()};return(y,g)=>{const S=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-image",{lock:y.elementInfo.lock}]),style:Le({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:Le({transform:`rotate(${y.elementInfo.rotate}deg)`})},[i.value?(Y(),we(joe,{key:0,src:y.elementInfo.src,clipData:y.elementInfo.clip,width:y.elementInfo.width,height:y.elementInfo.height,top:y.elementInfo.top,left:y.elementInfo.left,rotate:y.elementInfo.rotate,clipPath:H(h).style,onClip:g[0]||(g[0]=L=>R(L))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):De((Y(),ee("div",{key:1,class:"element-content",style:Le({filter:H(c)?`drop-shadow(${H(c)})`:"",transform:H(f)}),onMousedown:g[2]||(g[2]=L=>x(L)),onTouchstart:g[3]||(g[3]=L=>x(L))},[w(gI,{elementInfo:y.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Le({clipPath:H(h).style})},[V("img",{src:y.elementInfo.src,draggable:!1,style:Le({top:H(p).top,left:H(p).left,width:H(p).width,height:H(p).height,filter:H(A)}),onDragstart:g[1]||(g[1]=Wt(()=>{},["prevent"])),alt:""},null,44,qoe),y.elementInfo.colorMask?(Y(),ee("div",{key:0,class:"color-mask",style:Le({backgroundColor:y.elementInfo.colorMask})},null,4)):Be("",!0)],4)],36)),[[S,y.contextmenus]])],4)],6)}}}),RI=Ue(eie,[["__scopeId","data-v-d615c21a"]]),tie=["width","height"],nie=["d","stroke","stroke-width","stroke-dasharray"],rie=Fe({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=Gd(Wd(t,"outline"));return(i,a)=>i.outline?(Y(),ee("svg",{key:0,class:"element-outline",overflow:"visible",width:i.width,height:i.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${i.width},0 L${i.width},${i.height} L0,${i.height} Z`,stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,nie)],8,tie)):Be("",!0)}}),l2=Ue(rie,[["__scopeId","data-v-e2ef58f5"]]),Co=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},ip=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let WO=null;const Zs=function(e,t,n){let r=WO||(WO=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Vu=function(e,t,n,r){return n&&(VO(e,t,n,r,-1)||VO(e,t,n,r,1))},oie=/^(img|br|input|textarea|hr)$/i;function VO(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:is(e))){let i=e.parentNode;if(!i||i.nodeType!=1||a5(e)||oie.test(e.nodeName)||e.contentEditable=="false")return!1;t=Co(e)+(o<0?0:1),e=i}else if(e.nodeType==1){if(e=e.childNodes[t+(o<0?-1:0)],e.contentEditable=="false")return!1;t=o<0?is(e):0}else return!1}}function is(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function iie(e,t,n){for(let r=t==0,o=t==is(e);r||o;){if(e==n)return!0;let i=Co(e);if(e=e.parentNode,!e)return!1;r=r&&i==0,o=o&&i==is(e)}}function a5(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const c2=function(e){return e.focusNode&&Vu(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function tu(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function aie(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function sie(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const vs=typeof navigator<"u"?navigator:null,UO=typeof document<"u"?document:null,Oc=vs&&vs.userAgent||"",D3=/Edge\/(\d+)/.exec(Oc),yI=/MSIE \d/.exec(Oc),K3=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Oc),ni=!!(yI||K3||D3),lc=yI?document.documentMode:K3?+K3[1]:D3?+D3[1]:0,Ia=!ni&&/gecko\/(\d+)/i.test(Oc);Ia&&+(/Firefox\/(\d+)/.exec(Oc)||[0,0])[1];const H3=!ni&&/Chrome\/(\d+)/.exec(Oc),po=!!H3,lie=H3?+H3[1]:0,Eo=!ni&&!!vs&&/Apple Computer/.test(vs.vendor),Id=Eo&&(/Mobile\/\w+/.test(Oc)||!!vs&&vs.maxTouchPoints>2),Ki=Id||(vs?/Mac/.test(vs.platform):!1),cie=vs?/Win/.test(vs.platform):!1,wa=/Android \d/.test(Oc),Yp=!!UO&&"webkitFontSmoothing"in UO.documentElement.style,uie=Yp?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function fie(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Ws(e,t){return typeof e=="number"?e:e[t]}function die(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 YO(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let a=n||e.dom;a;a=ip(a)){if(a.nodeType!=1)continue;let s=a,c=s==i.body,l=c?fie(i):die(s),u=0,f=0;if(t.topl.bottom-Ws(r,"bottom")&&(f=t.bottom-t.top>l.bottom-l.top?t.top+Ws(o,"top")-l.top:t.bottom-l.bottom+Ws(o,"bottom")),t.leftl.right-Ws(r,"right")&&(u=t.right-l.right+Ws(o,"right")),u||f)if(c)i.defaultView.scrollBy(u,f);else{let d=s.scrollLeft,h=s.scrollTop;f&&(s.scrollTop+=f),u&&(s.scrollLeft+=u);let p=s.scrollLeft-d,m=s.scrollTop-h;t={left:t.left-p,top:t.top-m,right:t.right-p,bottom:t.bottom-m}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function hie(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,o;for(let i=(t.left+t.right)/2,a=n+1;a=n-20){r=s,o=c.top;break}}return{refDOM:r,refTop:o,stack:xI(e.dom)}}function xI(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=ip(r));return t}function pie({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;bI(n,r==0?0:r-t)}function bI(e,t){for(let n=0;n=s){a=Math.max(p.bottom,a),s=Math.min(p.top,s);let m=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={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)&&(i=f+1)}}return!n&&c&&(n=c,o=l,r=0),n&&n.nodeType==3?vie(n,o):!n||r&&n.nodeType==1?{node:e,offset:i}:SI(n,o)}function vie(e,t){let n=e.nodeValue.length,r=document.createRange();for(let o=0;o=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}function s5(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function gie(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,o,i)}function Rie(e,t,n,r){let o=-1;for(let i=t,a=!1;i!=e.dom;){let s=e.docView.nearestDesc(i,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent&&!a||!s.contentDOM)){let c=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&!a&&(a=!0,c.left>r.left||c.top>r.top?o=s.posBefore:(c.right-1?o:e.docView.posFromDOM(t,n,-1)}function MI(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&o++}let l;Yp&&o&&r.nodeType==1&&(l=r.childNodes[o-1]).nodeType==1&&l.contentEditable=="false"&&l.getBoundingClientRect().top>=t.top&&o--,r==e.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(s=Rie(e,r,o,t))}s==null&&(s=Aie(e,a,t));let c=e.docView.nearestDesc(a,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function QO(e){return e.top=0&&o==r.nodeValue.length?(c--,u=1):n<0?c--:l++,A0(Wl(Zs(r,c,l),u),u<0)}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==is(r))){let c=r.childNodes[o-1];if(c.nodeType==1)return Wy(c.getBoundingClientRect(),!1)}if(i==null&&o=0)}if(i==null&&o&&(n<0||o==is(r))){let c=r.childNodes[o-1],l=c.nodeType==3?Zs(c,is(c)-(a?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(l)return A0(Wl(l,1),!1)}if(i==null&&o=0)}function A0(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 Wy(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 LI(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}function bie(e,t,n){let r=t.selection,o=n=="up"?r.$from:r.$to;return LI(e,t,()=>{let{node:i}=e.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(i,!0);if(!s)break;if(s.node.isBlock){i=s.contentDOM||s.dom;break}i=s.dom.parentNode}let a=wI(e,o.pos,1);for(let s=i.firstChild;s;s=s.nextSibling){let c;if(s.nodeType==1)c=s.getClientRects();else if(s.nodeType==3)c=Zs(s,0,s.nodeValue.length).getClientRects();else continue;for(let l=0;lu.top+1&&(n=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}const Sie=/[\u0590-\u08ac]/;function Mie(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=e.domSelection();return!Sie.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?i:a:LI(e,t,()=>{let{focusNode:c,focusOffset:l,anchorNode:u,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:m}=e.domSelectionRange(),A=p&&!h.contains(p.nodeType==1?p:p.parentNode)||c==p&&l==m;try{s.collapse(u,f),c&&(c!=u||l!=f)&&s.extend&&s.extend(c,l)}catch{}return d!=null&&(s.caretBidiLevel=d),A})}let ZO=null,BO=null,DO=!1;function wie(e,t,n){return ZO==t&&BO==n?DO:(ZO=t,BO=n,DO=n=="up"||n=="down"?bie(e,t,n):Mie(e,t,n))}const ji=0,KO=1,au=2,gs=3;class Qp{constructor(t,n,r,o){this.parent=t,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=ji,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;nCo(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=t;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==t.childNodes.length)for(let i=t;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,o=t;o;o=o.parentNode){let i=this.getDesc(o),a;if(i&&(!n||i.node))if(r&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return i}}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 o=t;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||a instanceof TI){o=t-i;break}i=s}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof OI&&i.side>=0;r--);if(n<=0){let i,a=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,a=!1);return i&&n&&a&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?Co(i.dom)+1:0}}else{let i,a=!0;for(;i=r=u&&n<=l-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(t,n,u);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)){o=Co(d.dom)+1;break}t-=d.size}o==-1&&(o=0)}if(o>-1&&(l>n||s==this.children.length-1)){n=l;for(let u=s+1;uh&&ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&m[1]!==void 0?m[1]:{},n=tc(tc({},{slideFactor:96/914400,fontsizeFactor:100/75}),n),r=[],A.next=6,Tte.loadAsync(t);case 6:return o=A.sent,A.next=9,ene(o);case 9:return i=A.sent,A.next=12,tne(o,n);case 12:return a=A.sent,s=a.width,c=a.height,l=a.defaultTextStyle,A.next=18,nne(o);case 18:u=A.sent,f=Po(i.slides),A.prev=20,f.s();case 22:if((d=f.n()).done){A.next=30;break}return h=d.value,A.next=26,rne(o,h,u,l,n);case 26:p=A.sent,r.push(p);case 28:A.next=22;break;case 30:A.next=35;break;case 32:A.prev=32,A.t0=A.catch(20),f.e(A.t0);case 35:return A.prev=35,f.f(),A.finish(35);case 38:return A.abrupt("return",{slides:r,size:{width:s,height:c}});case 39:case"end":return A.stop()}},e,null,[[20,32,35,38]])})),I3.apply(this,arguments)}function ene(e){return UC.apply(this,arguments)}function UC(){return(UC=ii(Wn.mark(function e(t){var n,r,o,i,a,s,c,l;return Wn.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Lo(t,"[Content_Types].xml");case 2:n=u.sent,r=n.Types.Override,o=[],i=[],a=Po(r),u.prev=7,a.s();case 9:if((s=a.n()).done){u.next=20;break}c=s.value,u.t0=c.attrs.ContentType,u.next=u.t0==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"?14:u.t0==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"?16:18;break;case 14:return o.push(c.attrs.PartName.substr(1)),u.abrupt("break",18);case 16:return i.push(c.attrs.PartName.substr(1)),u.abrupt("break",18);case 18:u.next=9;break;case 20:u.next=25;break;case 22:u.prev=22,u.t1=u.catch(7),a.e(u.t1);case 25:return u.prev=25,a.f(),u.finish(25);case 28:return l=function(f,d){return+/(\d+)\.xml/.exec(f)[1]-+/(\d+)\.xml/.exec(d)[1]},o=o.sort(l),i=i.sort(l),u.abrupt("return",{slides:o,slideLayouts:i});case 32:case"end":return u.stop()}},e,null,[[7,22,25,28]])}))).apply(this,arguments)}function tne(e,t){return YC.apply(this,arguments)}function YC(){return(YC=ii(Wn.mark(function e(t,n){var r,o,i;return Wn.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Lo(t,"ppt/presentation.xml");case 2:return r=a.sent,o=r["p:presentation"]["p:sldSz"].attrs,i=r["p:presentation"]["p:defaultTextStyle"],a.abrupt("return",{width:parseInt(o.cx)*n.slideFactor,height:parseInt(o.cy)*n.slideFactor,defaultTextStyle:i});case 6:case"end":return a.stop()}},e)}))).apply(this,arguments)}function nne(e){return QC.apply(this,arguments)}function QC(){return(QC=ii(Wn.mark(function e(t){var n,r,o,i,a,s;return Wn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Lo(t,"ppt/_rels/presentation.xml.rels");case 2:if(n=c.sent,(r=n.Relationships.Relationship).constructor!==Array){c.next=25;break}i=Po(r),c.prev=6,i.s();case 8:if((a=i.n()).done){c.next=15;break}if((s=a.value).attrs.Type!=="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"){c.next=13;break}return o=s.attrs.Target,c.abrupt("break",15);case 13:c.next=8;break;case 15:c.next=20;break;case 17:c.prev=17,c.t0=c.catch(6),i.e(c.t0);case 20:return c.prev=20,i.f(),c.finish(20);case 23:c.next=26;break;case 25:r.attrs.Type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"&&(o=r.attrs.Target);case 26:if(o){c.next=28;break}throw Error("Can't open theme file.");case 28:return c.next=30,Lo(t,"ppt/"+o);case 30:return c.abrupt("return",c.sent);case 31:case"end":return c.stop()}},e,null,[[6,17,20,23]])}))).apply(this,arguments)}function rne(e,t,n,r,o){return F3.apply(this,arguments)}function F3(){return F3=ii(Wn.mark(function e(t,n,r,o,i){var a,s,c,l,u,f,d,h,p,m,A,x,R,y,g,S,L,T,M,O,k,F,N,E,P,_,I,W,D,z,ae,U,Z,B,G,Q,ie,q,oe,he,me,ve,J,ue,X,te,le,$,j,se,ge,ce,Ae,ye,Ee,Se;return Wn.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return a=n.replace("slides/slide","slides/_rels/slide")+".rels",be.next=3,Lo(t,a);case 3:if(s=be.sent,c=s.Relationships.Relationship,l="",u="",f={},c.constructor!==Array){be.next=35;break}d=Po(c),be.prev=10,d.s();case 12:if((h=d.n()).done){be.next=25;break}p=h.value,be.t0=p.attrs.Type,be.next=be.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"?17:be.t0==="http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"?19:(be.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"||be.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"||be.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"||be.t0,22);break;case 17:return l=p.attrs.Target.replace("../","ppt/"),be.abrupt("break",23);case 19:return u=p.attrs.Target.replace("../","ppt/"),f[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")},be.abrupt("break",23);case 22:f[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")};case 23:be.next=12;break;case 25:be.next=30;break;case 27:be.prev=27,be.t1=be.catch(10),d.e(be.t1);case 30:return be.prev=30,d.f(),be.finish(30);case 33:be.next=36;break;case 35:l=c.attrs.Target.replace("../","ppt/");case 36:return be.next=38,Lo(t,l);case 38:return m=be.sent,be.next=41,gO(m);case 41:return A=be.sent,x=l.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",be.next=45,Lo(t,x);case 45:if(R=be.sent,c=R.Relationships.Relationship,y="",g={},c.constructor!==Array){be.next=73;break}S=Po(c),be.prev=51,S.s();case 53:if((L=S.n()).done){be.next=63;break}T=L.value,be.t2=T.attrs.Type,be.next=be.t2==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"?58:60;break;case 58:return y=T.attrs.Target.replace("../","ppt/"),be.abrupt("break",61);case 60:g[T.attrs.Id]={type:T.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:T.attrs.Target.replace("../","ppt/")};case 61:be.next=53;break;case 63:be.next=68;break;case 65:be.prev=65,be.t3=be.catch(51),S.e(be.t3);case 68:return be.prev=68,S.f(),be.finish(68);case 71:be.next=74;break;case 73:y=c.attrs.Target.replace("../","ppt/");case 74:return be.next=76,Lo(t,y);case 76:return M=be.sent,O=Ye(M,["p:sldMaster","p:txStyles"]),k=gO(M),F=y.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",be.next=82,Lo(t,F);case 82:if(N=be.sent,c=N.Relationships.Relationship,E="",P={},c.constructor!==Array){be.next=109;break}_=Po(c),be.prev=88,_.s();case 90:if((I=_.n()).done){be.next=99;break}W=I.value,be.t4=W.attrs.Type,be.next=be.t4==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"?95:96;break;case 95:return be.abrupt("break",97);case 96:P[W.attrs.Id]={type:W.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:W.attrs.Target.replace("../","ppt/")};case 97:be.next=90;break;case 99:be.next=104;break;case 101:be.prev=101,be.t5=be.catch(88),_.e(be.t5);case 104:return be.prev=104,_.f(),be.finish(104);case 107:be.next=110;break;case 109:E=c.attrs.Target.replace("../","ppt/");case 110:if(D={},!E){be.next=118;break}return z=E.split("/").pop(),ae=E.replace(z,"_rels/"+z)+".rels",be.next=116,Lo(t,ae);case 116:if((U=be.sent)&&(c=U.Relationships.Relationship))if(c.constructor===Array){Z=Po(c);try{for(Z.s();!(B=Z.n()).done;)G=B.value,D[G.attrs.Id]={type:G.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:G.attrs.Target.replace("../","ppt/")}}catch(qe){Z.e(qe)}finally{Z.f()}}else D[c.attrs.Id]={type:c.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:c.attrs.Target.replace("../","ppt/")};case 118:if(Q={},ie={},!u){be.next=131;break}return q=u.split("/").pop(),oe=u.replace(q,"_rels/"+q)+".rels",be.next=125,Lo(t,u);case 125:return(ie=be.sent)&&ie&&ie&&(he=(he=JSON.stringify(ie)).replace(/dsp:/g,"p:"),ie=JSON.parse(he)),be.next=129,Lo(t,oe);case 129:if(me=be.sent)if((c=me.Relationships.Relationship).constructor===Array){ve=Po(c);try{for(ve.s();!(J=ve.n()).done;)ue=J.value,Q[ue.attrs.Id]={type:ue.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:ue.attrs.Target.replace("../","ppt/")}}catch(qe){ve.e(qe)}finally{ve.f()}}else Q[c.attrs.Id]={type:c.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:c.attrs.Target.replace("../","ppt/")};case 131:return be.next=133,Lo(t,"ppt/tableStyles.xml");case 133:return X=be.sent,be.next=136,Lo(t,n);case 136:return te=be.sent,le=te["p:sld"]["p:cSld"]["p:spTree"],$={zip:t,slideLayoutContent:m,slideLayoutTables:A,slideMasterContent:M,slideMasterTables:k,slideContent:te,tableStyles:X,slideResObj:f,slideMasterTextStyles:O,layoutResObj:g,masterResObj:P,themeContent:r,themeResObj:D,digramFileContent:ie,diagramResObj:Q,defaultTextStyle:o,options:i},be.next=141,Gte($);case 141:j=be.sent,se=[],be.t6=Wn.keys(le);case 144:if((be.t7=be.t6()).done){be.next=174;break}if(ge=be.t7.value,le[ge].constructor!==Array){be.next=168;break}ce=Po(le[ge]),be.prev=148,ce.s();case 150:if((Ae=ce.n()).done){be.next=158;break}return ye=Ae.value,be.next=154,qv(ge,ye,$,"slide");case 154:(Ee=be.sent)&&se.push(Ee);case 156:be.next=150;break;case 158:be.next=163;break;case 160:be.prev=160,be.t8=be.catch(148),ce.e(be.t8);case 163:return be.prev=163,ce.f(),be.finish(163);case 166:be.next=172;break;case 168:return be.next=170,qv(ge,le[ge],$,"slide");case 170:(Se=be.sent)&&se.push(Se);case 172:be.next=144;break;case 174:return be.abrupt("return",{fill:j,elements:se});case 175:case"end":return be.stop()}},e,null,[[10,27,30,33],[51,65,68,71],[88,101,104,107],[148,160,163,166]])})),F3.apply(this,arguments)}function gO(e){var t=e[Object.keys(e)[0]]["p:cSld"]["p:spTree"],n={},r={},o={};for(var i in t)if(i!=="p:nvGrpSpPr"&&i!=="p:grpSpPr"){var a=t[i];if(a.constructor===Array){var s,c=Po(a);try{for(c.s();!(s=c.n()).done;){var l=s.value,u=l["p:nvSpPr"],f=Ye(u,["p:cNvPr","attrs","id"]),d=Ye(u,["p:nvPr","p:ph","attrs","idx"]),h=Ye(u,["p:nvPr","p:ph","attrs","type"]);f&&(n[f]=l),d&&(r[d]=l),h&&(o[h]=l)}}catch(R){c.e(R)}finally{c.f()}}else{var p=a["p:nvSpPr"],m=Ye(p,["p:cNvPr","attrs","id"]),A=Ye(p,["p:nvPr","p:ph","attrs","idx"]),x=Ye(p,["p:nvPr","p:ph","attrs","type"]);m&&(n[m]=a),A&&(r[A]=a),x&&(o[x]=a)}}return{idTable:n,idxTable:r,typeTable:o}}function qv(e,t,n,r){return ZC.apply(this,arguments)}function ZC(){return(ZC=ii(Wn.mark(function e(t,n,r,o){var i;return Wn.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:a.t0=t,a.next=a.t0==="p:sp"?3:a.t0==="p:cxnSp"?5:a.t0==="p:pic"?7:a.t0==="p:graphicFrame"?9:a.t0==="p:grpSp"?13:a.t0==="mc:AlternateContent"?17:21;break;case 3:return i=BC(n,r,o),a.abrupt("break",21);case 5:return i=one(n,r),a.abrupt("break",21);case 7:return i=ine(n,r,o),a.abrupt("break",21);case 9:return a.next=11,ane(n,r,o);case 11:case 15:case 19:return i=a.sent,a.abrupt("break",21);case 13:return a.next=15,_3(n,r,o);case 17:return a.next=19,_3(Ye(n,["mc:Fallback"]),r,o);case 21:return a.abrupt("return",i);case 22:case"end":return a.stop()}},e)}))).apply(this,arguments)}function _3(e,t,n){return E3.apply(this,arguments)}function E3(){return E3=ii(Wn.mark(function e(t,n,r){var o,i,a,s,c,l,u,f,d,h,p,m,A,x,R,y,g,S;return Wn.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(o=Ye(t,["p:grpSpPr","a:xfrm"])){L.next=3;break}return L.abrupt("return",null);case 3:i=parseInt(o["a:off"].attrs.x)*n.options.slideFactor,a=parseInt(o["a:off"].attrs.y)*n.options.slideFactor,s=parseInt(o["a:chOff"].attrs.x)*n.options.slideFactor,c=parseInt(o["a:chOff"].attrs.y)*n.options.slideFactor,l=parseInt(o["a:ext"].attrs.cx)*n.options.slideFactor,u=parseInt(o["a:ext"].attrs.cy)*n.options.slideFactor,f=parseInt(o["a:chExt"].attrs.cx)*n.options.slideFactor,d=parseInt(o["a:chExt"].attrs.cy)*n.options.slideFactor,h=l/f,p=u/d,m=[],L.t0=Wn.keys(t);case 15:if((L.t1=L.t0()).done){L.next=45;break}if(A=L.t1.value,t[A].constructor!==Array){L.next=39;break}x=Po(t[A]),L.prev=19,x.s();case 21:if((R=x.n()).done){L.next=29;break}return y=R.value,L.next=25,qv(A,y,n,r);case 25:(g=L.sent)&&m.push(g);case 27:L.next=21;break;case 29:L.next=34;break;case 31:L.prev=31,L.t2=L.catch(19),x.e(L.t2);case 34:return L.prev=34,x.f(),L.finish(34);case 37:L.next=43;break;case 39:return L.next=41,qv(A,t[A],n,r);case 41:(S=L.sent)&&m.push(S);case 43:L.next=15;break;case 45:return L.abrupt("return",{type:"group",top:parseFloat(a.toFixed(2)),left:parseFloat(i.toFixed(2)),width:parseFloat(l.toFixed(2)),height:parseFloat(u.toFixed(2)),elements:m.map(function(T){return tc(tc({},T),{},{left:parseFloat(((T.left-s)*h).toFixed(2)),top:parseFloat(((T.top-c)*p).toFixed(2)),width:parseFloat((T.width*h).toFixed(2)),height:parseFloat((T.height*p).toFixed(2))})})});case 46:case"end":return L.stop()}},e,null,[[19,31,34,37]])})),E3.apply(this,arguments)}function BC(e,t,n){var r,o,i=Ye(e,["p:nvSpPr","p:cNvPr","attrs","name"]),a=Ye(e,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),s=Ye(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]);return s?(r=t.slideLayoutTables.typeTable[s],o=t.slideMasterTables.typeTable[s]):a&&(r=t.slideLayoutTables.idxTable[a],o=t.slideMasterTables.idxTable[a]),s||Ye(e,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"&&(s="text"),s||(s=Ye(r,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=Ye(o,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=n==="diagramBg"?"diagram":"obj"),DC(e,r,o,i,s,t)}function one(e,t){return DC(e,void 0,void 0,e["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]===void 0?void 0:e["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,t)}function DC(e,t,n,r,o,i){var a,s=["p:spPr","a:xfrm"],c=Ye(e,s),l=Ye(t,s),u=Ye(n,s),f=Ye(e,["p:spPr","a:prstGeom","attrs","prst"]),d=Ye(e,["p:spPr","a:custGeom"]),h=Xp(c,l,u,i.options.slideFactor),p=h.top,m=h.left,A=Wp(c,l,u,i.options.slideFactor),x=A.width,R=A.height,y=Ye(c,["attrs","flipV"])==="1",g=Ye(c,["attrs","flipH"])==="1",S=jv(Ye(c,["attrs","rot"])),L=Ye(e,["p:txXfrm"]);if(L){var T=Ye(L,["attrs","rot"]);T&&(a=jv(T)+90)}else a=S;var M="";e["p:txBody"]&&(M=z0(e["p:txBody"],e,t,o,i));var O,k=function(Z,B,G){var Q=Z["p:spPr"]["a:ln"],ie=parseInt(Ye(Q,["attrs","w"]))/12700;isNaN(ie)&&(ie=Q||B==="text"?0:1);var q=Ye(Q,["a:solidFill","a:srgbClr","attrs","val"]);if(!q){var oe=Ye(Q,["a:solidFill","a:schemeClr"]);q=G0("a:"+Ye(oe,["attrs","val"]),G)}if(!q){var he=Ye(Z,["p:style","a:lnRef","a:schemeClr"]);if(q=G0("a:"+Ye(he,["attrs","val"]),G)){var me=Ye(he,["a:shade","attrs","val"]);if(me){me=parseInt(me)/1e5;var ve=dt("#"+q).toHsl();q=dt({h:ve.h,s:ve.s,l:ve.l*me,a:ve.a}).toHex()}}}q=q?"#".concat(q):"#000";var J="solid",ue="0";switch(Ye(Q,["a:prstDash","attrs","val"])){case"solid":J="solid",ue="0";break;case"dash":J="dashed",ue="5";break;case"dashDot":J="dashed",ue="5, 5, 1, 5";break;case"dot":J="dotted",ue="1, 5";break;case"lgDash":J="dashed",ue="10, 5";break;case"lgDashDotDot":J="dotted",ue="10, 5, 1, 5, 1, 5";break;case"sysDash":J="dashed",ue="5, 2";break;case"sysDashDot":J="dotted",ue="5, 2, 1, 5";break;case"sysDashDotDot":J="dotted",ue="5, 2, 1, 5, 1, 5";break;case"sysDot":J="dotted",ue="2, 5"}return{borderColor:q,borderWidth:ie,borderType:J,strokeDasharray:ue}}(e,o,i),F=k.borderColor,N=k.borderWidth,E=k.borderType,P=k.strokeDasharray,_=function(Z,B,G){if(Ye(Z,["p:spPr","a:noFill"]))return B?"none":"";var Q;if(Q||(Q=Ye(Z,["p:spPr","a:solidFill","a:srgbClr","attrs","val"])),Q||(Q=G0("a:"+Ye(Z,["p:spPr","a:solidFill","a:schemeClr","attrs","val"]),G)),Q||(Q=G0("a:"+Ye(Z,["p:style","a:fillRef","a:schemeClr","attrs","val"]),G)),Q){Q="#".concat(Q);var ie=parseInt(Ye(Z,["p:spPr","a:solidFill","a:schemeClr","a:lumMod","attrs","val"]))/1e5,q=parseInt(Ye(Z,["p:spPr","a:solidFill","a:schemeClr","a:lumOff","attrs","val"]))/1e5;isNaN(ie)&&(ie=1),isNaN(q)&&(q=0);var oe=dt(Q).toHsl(),he=oe.l*ie+q;return dt({h:oe.h,s:oe.s,l:he,a:oe.a}).toHexString()}return B?"none":Q}(e,void 0,i)||"",I=Ye(e,["p:spPr","a:effectLst","a:outerShdw"]);I&&(O=VC(I,i));var W=function(Z,B,G){var Q=Ye(Z,["p:txBody","a:bodyPr","attrs","anchor"]);return Q||(Q=Ye(B,["p:txBody","a:bodyPr","attrs","anchor"]))||(Q=Ye(G,["p:txBody","a:bodyPr","attrs","anchor"]))||(Q="t"),Q==="ctr"?"mid":Q==="b"?"down":"up"}(e,t,n),D=Ye(e,["p:txBody","a:bodyPr","attrs","vert"])==="eaVert",z={left:m,top:p,width:x,height:R,borderColor:F,borderWidth:N,borderType:E,borderStrokeDasharray:P,fillColor:_,content:M,isFlipV:y,isFlipH:g,rotate:S,vAlign:W,name:r};if(O&&(z.shadow=O),d&&o!=="diagram"){var ae=Ye(c,["a:ext","attrs"]),U=function(Z,B,G){var Q=Ye(Z,["a:pathLst"]),ie=Ye(Q,["a:path"]);Array.isArray(ie)&&(ie=ie.pop());var q=parseInt(ie.attrs.w),oe=parseInt(ie.attrs.h),he=q===0?0:1/q*B,me=oe===0?0:1/oe*G,ve="",J=Ye(ie,["a:moveTo"]),ue=ie["a:lnTo"],X=ie["a:cubicBezTo"],te=ie["a:arcTo"],le=Ye(ie,["a:close"]);Array.isArray(J)||(J=[J]);var $=[];if(J.length>0){if(Object.keys(J).forEach(function(Ke){var tt=J[Ke]["a:pt"];tt&&Object.keys(tt).forEach(function(ke){var Ze=tt[ke],nt=Ze.x,xt=Ze.y,ut=Ze.order;$.push({type:"movto",x:nt,y:xt,order:ut})})}),ue&&Object.keys(ue).forEach(function(Ke){var tt=ue[Ke]["a:pt"];tt&&Object.keys(tt).forEach(function(ke){var Ze=tt[ke],nt=Ze.x,xt=Ze.y,ut=Ze.order;$.push({type:"lnto",x:nt,y:xt,order:ut})})}),X){var j=[];Array.isArray(X)||(X=[X]),Object.keys(X).forEach(function(Ke){j.push(X[Ke]["a:pt"])}),j.forEach(function(Ke){var tt=[];Ke.forEach(function(Ze){var nt={x:Ze.attrs.x,y:Ze.attrs.y};tt.push(nt)});var ke=Ke[0].attrs.order;$.push({type:"cubicBezTo",cubBzPt:tt,order:ke})})}if(te){var se=te.attrs,ge=se.order,ce=se.hR,Ae=se.wR,ye=se.stAng,Ee=se.swAng,Se=0,be=0,qe=Ye(te,["a:pt","attrs"]);qe&&(Se=qe.x,be=qe.y),$.push({type:"arcTo",hR:ce,wR:Ae,stAng:ye,swAng:Ee,shftX:Se,shftY:be,order:ge})}le&&(Array.isArray(le)||(le=[le]),Object.keys(le).forEach(function(){$.push({type:"close",order:1/0})})),$.sort(function(Ke,tt){return Ke.order-tt.order});for(var Ce=0;Ce<$.length;){if($[Ce].type==="movto")ve+=" M"+parseInt($[Ce].x)*he+","+parseInt($[Ce].y)*me;else if($[Ce].type==="lnto")ve+=" L"+parseInt($[Ce].x)*he+","+parseInt($[Ce].y)*me;else if($[Ce].type==="cubicBezTo")ve+=" C"+parseInt($[Ce].cubBzPt[0].x)*he+","+parseInt($[Ce].cubBzPt[0].y)*me+" "+parseInt($[Ce].cubBzPt[1].x)*he+","+parseInt($[Ce].cubBzPt[1].y)*me+" "+parseInt($[Ce].cubBzPt[2].x)*he+","+parseInt($[Ce].cubBzPt[2].y)*me;else if($[Ce].type==="arcTo"){var Te=parseInt($[Ce].hR)*he,Ne=parseInt($[Ce].wR)*me,_e=parseInt($[Ce].stAng)/6e4;ve+=jte(Ne,Te,Ne,Te,_e,_e+parseInt($[Ce].swAng)/6e4,!1)}else $[Ce].type==="close"&&(ve+="z");Ce++}}return ve}(d,parseInt(ae.cx)*i.options.slideFactor,parseInt(ae.cy)*i.options.slideFactor);return tc(tc({},z),{},{type:"shape",shapType:"custom",path:U})}return tc(tc({},z),{},f&&o!=="text"?{type:"shape",shapType:f}:{type:"text",isVertical:D,rotate:a})}function ine(e,t,n){return X3.apply(this,arguments)}function X3(){return X3=ii(Wn.mark(function e(t,n,r){var o,i,a,s,c,l,u,f,d,h,p,m,A,x,R,y,g,S,L,T,M,O,k,F,N,E,P,_,I,W,D,z,ae;return Wn.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return o=r==="slideMasterBg"?n.masterResObj:r==="slideLayoutBg"?n.layoutResObj:n.slideResObj,i=t["p:blipFill"]["a:blip"].attrs["r:embed"],a=o[i].target,s=ky(a).toLowerCase(),c=n.zip,U.next=7,c.file(a).async("arraybuffer");case 7:if(l=U.sent,u=t["p:spPr"]["a:xfrm"],f=P3(s),d=Xp(u,void 0,void 0,n.options.slideFactor),h=d.top,p=d.left,m=Wp(u,void 0,void 0,n.options.slideFactor),A=m.width,x=m.height,R="data:".concat(f,";base64,").concat(_C(l)),y=Ye(u,["attrs","flipV"])==="1",g=Ye(u,["attrs","flipH"])==="1",S=0,(L=Ye(t,["p:spPr","a:xfrm","attrs","rot"]))&&(S=jv(L)),T=Ye(t,["p:nvPicPr","p:nvPr","a:videoFile"]),P=!1,!T){U.next=35;break}if(M=T.attrs["r:link"],!Kte(O=o[M].target)){U.next=28;break}O=EC(O),P=!0,U.next=35;break;case 28:if((k=ky(O).toLowerCase())!=="mp4"&&k!=="webm"&&k!=="ogg"){U.next=35;break}return U.next=32,c.file(O).async("arraybuffer");case 32:N=U.sent,F=P3(k),E=URL.createObjectURL(new Blob([N],{type:F}));case 35:if(!(_=Ye(t,["p:nvPicPr","p:nvPr","a:audioFile"]))){U.next=45;break}if(I=_.attrs["r:link"],W=o[I].target,(D=ky(W).toLowerCase())!=="mp3"&&D!=="wav"&&D!=="ogg"){U.next=45;break}return U.next=43,c.file(W).async("arraybuffer");case 43:z=U.sent,ae=URL.createObjectURL(new Blob([z]));case 45:if(!T||P){U.next=47;break}return U.abrupt("return",{type:"video",top:h,left:p,width:A,height:x,rotate:S,blob:E});case 47:if(!T||!P){U.next=49;break}return U.abrupt("return",{type:"video",top:h,left:p,width:A,height:x,rotate:S,src:O});case 49:if(!_){U.next=51;break}return U.abrupt("return",{type:"audio",top:h,left:p,width:A,height:x,rotate:S,blob:ae});case 51:return U.abrupt("return",{type:"image",top:h,left:p,width:A,height:x,rotate:S,src:R,isFlipV:y,isFlipH:g});case 52:case"end":return U.stop()}},e)})),X3.apply(this,arguments)}function ane(e,t,n){return W3.apply(this,arguments)}function W3(){return W3=ii(Wn.mark(function e(t,n,r){var o,i,a;return Wn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:o=Ye(t,["a:graphic","a:graphicData","attrs","uri"]),s.t0=o,s.next=s.t0==="http://schemas.openxmlformats.org/drawingml/2006/table"?4:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/chart"?6:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/diagram"?10:s.t0==="http://schemas.openxmlformats.org/presentationml/2006/ole"?12:15;break;case 4:return i=sne(t,n),s.abrupt("break",15);case 6:return s.next=8,lne(t,n);case 8:return i=s.sent,s.abrupt("break",15);case 10:return i=cne(t,n),s.abrupt("break",15);case 12:return(a=Ye(t,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))?_3(a,n,r):a=Ye(t,["a:graphic","a:graphicData","p:oleObj"]),s.abrupt("break",15);case 15:return s.abrupt("return",i);case 16:case"end":return s.stop()}},e)})),W3.apply(this,arguments)}function sne(e,t){var n,r=Ye(e,["a:graphic","a:graphicData","a:tbl"]),o=Ye(e,["p:xfrm"]),i=Xp(o,void 0,void 0,t.options.slideFactor),a=i.top,s=i.left,c=Wp(o,void 0,void 0,t.options.slideFactor),l=c.width,u=c.height,f=Ye(e,["a:graphic","a:graphicData","a:tbl","a:tblPr"])["a:tableStyleId"];if(f){var d=t.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(d)if(d.constructor===Array)for(var h=0;h{const e=ct(),{theme:t}=Xe(ct()),{addSlidesFromData:n,isEmptySlide:r}=Kg(),o=pe(!1),i=(c,l=!1)=>{const u=c[0],f=new FileReader;f.addEventListener("load",()=>{try{const d=JSON.parse(DP(f.result));l||r.value?e.setSlides(d):n(d)}catch{Sn.error("无法正确读取 / 解析该文件")}}),f.readAsText(u)},a=c=>{let l=[0,0],u=[0,0];return!c.isFlipV&&!c.isFlipH?(l=[0,0],u=[c.width,c.height]):c.isFlipV&&c.isFlipH?(l=[c.width,c.height],u=[0,0]):c.isFlipV&&!c.isFlipH?(l=[0,c.height],u=[c.width,0]):(l=[c.width,0],u=[0,c.height]),{type:"line",id:pn(10),width:c.borderWidth||1,left:c.left,top:c.top,start:l,end:u,style:c.borderType==="solid"?"solid":"dashed",color:c.borderColor,points:["",c.shapType==="straightConnector1"?"arrow":""]}};return{importSpecificFile:i,importPPTXFile:c=>{const l=c[0];if(!l)return;o.value=!0;const u=[];for(const d of Nb)u.push(...d.children);const f=new FileReader;f.onload=async d=>{const h=await qte(d.target.result,{slideFactor:8202099737532808e-20,fontsizeFactor:1.0204081632653061}),p=h.size.width,m=Ht/p,A=[];for(const x of h.slides){const{type:R,value:y}=x.fill;let g;R==="image"?g={type:"image",image:y.picBase64,imageSize:"cover"}:R==="gradient"?g={type:"gradient",gradientType:"linear",gradientColor:[y.colors[0].color,y.colors[y.colors.length-1].color],gradientRotate:y.rot}:g={type:"solid",color:y};const S={id:pn(10),elements:[],background:g},L=T=>{for(const M of T){const O=M.width||1,k=M.height||1,F=M.left,N=M.top;if(M.width=M.width*m,M.height=M.height*m,M.left=M.left*m,M.top=M.top*m,M.type==="text"){const E={type:"text",id:pn(10),width:M.width,height:M.height,left:M.left,top:M.top,rotate:M.rotate,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,content:M.content,lineHeight:1,outline:{color:M.borderColor,width:M.borderWidth,style:M.borderType==="solid"?"solid":"dashed"},fill:M.fillColor,vertical:M.isVertical};M.shadow&&(E.shadow=M.shadow),S.elements.push(E)}else if(M.type==="image")S.elements.push({type:"image",id:pn(10),src:M.src,width:M.width,height:M.height,left:M.left,top:M.top,fixedRatio:!0,rotate:M.rotate,flipH:M.isFlipH,flipV:M.isFlipV});else if(M.type==="audio")S.elements.push({type:"audio",id:pn(10),src:M.blob,width:M.width,height:M.height,left:M.left,top:M.top,rotate:0,fixedRatio:!1,color:t.value.themeColor,loop:!1,autoplay:!1});else if(M.type==="video")S.elements.push({type:"video",id:pn(10),src:M.blob||M.src,width:M.width,height:M.height,left:M.left,top:M.top,rotate:0,autoplay:!1});else if(M.type==="shape")if(M.shapType==="line"||/Connector/.test(M.shapType)){const E=a(M);S.elements.push(E)}else{const E=u.find(I=>I.pptxShapeType===M.shapType),P={mid:"middle",down:"bottom",up:"top"},_={type:"shape",id:pn(10),width:M.width,height:M.height,left:M.left,top:M.top,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:M.fillColor||"none",fixedRatio:!1,rotate:M.rotate,outline:{color:M.borderColor,width:M.borderWidth,style:M.borderType==="solid"?"solid":"dashed"},text:{content:M.content,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,align:P[M.vAlign]||"middle"},flipH:M.isFlipH,flipV:M.isFlipV};if(M.shadow&&(_.shadow=M.shadow),E&&(_.path=E.path,_.viewBox=E.viewBox,E.pathFormula)){_.pathFormula=E.pathFormula,_.viewBox=[M.width,M.height];const I=Ju[E.pathFormula];"editable"in I?(_.path=I.formula(M.width,M.height,I.defaultValue),_.keypoint=I.defaultValue):_.path=I.formula(M.width,M.height)}M.shapType==="custom"&&(_.special=!0,_.path=M.path,_.viewBox=[O,k]),S.elements.push(_)}else if(M.type==="table"){const E=M.data.length,P=M.data[0].length,_={fontname:t.value.fontName,color:t.value.fontColor},I=[];for(let D=0;Dz+""),P=["系列1"],_=[D[1]]}else{const D=M.data;E=Object.values(D[0].xlabels),P=D.map(z=>z.key),_=D.map(z=>z.values.map(ae=>ae.y))}const I={};let W="bar";switch(M.chartType){case"barChart":case"bar3DChart":W="bar",M.barDir==="bar"&&(I.horizontalBars=!0),(M.grouping==="stacked"||M.grouping==="percentStacked")&&(I.stackBars=!0);break;case"lineChart":case"line3DChart":case"areaChart":case"area3DChart":case"scatterChart":case"bubbleChart":W="line",(M.chartType==="areaChart"||M.chartType==="area3DChart")&&(I.showArea=!0),(M.chartType==="scatterChart"||M.chartType==="bubbleChart")&&(I.showLine=!1);break;case"pieChart":case"pie3DChart":case"doughnutChart":W="pie",M.chartType==="doughnutChart"&&(I.donut=!0);break}S.elements.push({type:"chart",id:pn(10),chartType:W,width:M.width,height:M.height,left:M.left,top:M.top,rotate:0,themeColor:[t.value.themeColor],gridColor:t.value.fontColor,data:{labels:E,legends:P,series:_},options:I})}else if(M.type==="group"||M.type==="diagram"){const E=M.elements.map(P=>({...P,left:P.left+F,top:P.top+N}));L(E)}}};L(x.elements),A.push(S)}r.value?e.setSlides(A):n(A),o.value=!1},f.readAsArrayBuffer(l)},exporting:o}},fne={class:"hotkey-doc"},dne={class:"title"},hne={class:"label"},pne={class:"value"},mne=Fe({__name:"HotkeyDoc",setup(e){return(t,n)=>(Y(),ee("div",fne,[(Y(!0),ee(Ve,null,it(H(iJ),r=>(Y(),ee(Ve,{key:r.type},[V("div",dne,gt(r.type),1),(Y(!0),ee(Ve,null,it(r.children,o=>(Y(),ee("div",{class:"hotkey-item",key:o.label},[V("div",hne,gt(o.label),1),V("div",pne,gt(o.value),1)]))),128))],64))),128))]))}}),vne=Ue(mne,[["__scopeId","data-v-0762be00"]]),gne=["accept"],Ane=Fe({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,r=pe(),o=()=>{r.value&&(r.value.value="",r.value.click())},i=a=>{const s=a.target.files;s&&n("change",s)};return(a,s)=>(Y(),ee("div",{class:"file-input",onClick:s[1]||(s[1]=c=>o())},[cr(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]=c=>i(c))},null,40,gne)]))}}),Eu=Ue(Ane,[["__scopeId","data-v-1bd53d05"]]),Rne=e=>(on("data-v-9856918a"),e=e(),an(),e),yne={key:0,class:"fullscreen-spin"},xne={class:"spin"},bne=Rne(()=>V("div",{class:"spinner"},null,-1)),Sne={class:"text"},Mne=Fe({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},tip:{default:""}},setup(e){return(t,n)=>t.loading?(Y(),ee("div",yne,[V("div",xne,[bne,V("div",Sne,gt(t.tip),1)])])):Be("",!0)}}),zb=Ue(Mne,[["__scopeId","data-v-9856918a"]]),wne={class:"header"},Lne=Fe({__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,o=pe(!1),i=Me(()=>({width:n.width+"px",...n.contentStyle||{}}));return(a,s)=>{const c=xe("IconClose");return Y(),we(eb,{to:"body"},[w(ku,{name:`drawer-slide-${a.placement}`,onAfterLeave:s[1]||(s[1]=l=>o.value=!1),onBeforeEnter:s[2]||(s[2]=l=>o.value=!0)},{default:re(()=>[De(V("div",{class:$e(["drawer",a.placement]),style:Le({width:n.width+"px"})},[V("div",wne,[cr(a.$slots,"title",{},void 0,!0),V("span",{class:"close-btn",onClick:s[0]||(s[0]=l=>r("update:visible",!1))},[w(c)])]),o.value?(Y(),ee("div",{key:0,class:"content",style:Le(i.value)},[cr(a.$slots,"default",{},void 0,!0)],4)):Be("",!0)],6),[[il,a.visible]])]),_:3},8,["name"])])}}}),One=Ue(Lne,[["__scopeId","data-v-46f39759"]]),Tne={class:"prefix"},kne=["disabled","value","placeholder"],Nne={class:"suffix"},Pne=Fe({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{expose:t,emit:n}){const r=n,o=pe(!1),i=u=>{r("update:value",u.target.value)},a=u=>{o.value=!1,r("blur",u)},s=u=>{o.value=!0,r("focus",u)},c=pe();return t({focus:()=>{c.value&&c.value.focus()}}),(u,f)=>(Y(),ee("div",{class:$e(["input",{disabled:u.disabled,focused:o.value}])},[V("span",Tne,[cr(u.$slots,"prefix",{},void 0,!0)]),V("input",{type:"text",ref_key:"inputRef",ref:c,disabled:u.disabled,value:u.value,placeholder:u.placeholder,onInput:f[0]||(f[0]=d=>i(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]=gc(d=>r("enter",d),["enter"]))},null,40,kne),V("span",Nne,[cr(u.$slots,"suffix",{},void 0,!0)])],2))}}),Xu=Ue(Pne,[["__scopeId","data-v-08dd2583"]]);var ei="top",ta="bottom",na="right",ti="left",Jb="auto",Vp=[ei,ta,na,ti],kd="start",rp="end",Cne="clippingParents",KC="viewport",g0="popper",Ine="reference",AO=Vp.reduce(function(e,t){return e.concat([t+"-"+kd,t+"-"+rp])},[]),HC=[].concat(Vp,[Jb]).reduce(function(e,t){return e.concat([t,t+"-"+kd,t+"-"+rp])},[]),Fne="beforeRead",_ne="read",Ene="afterRead",Xne="beforeMain",Wne="main",Vne="afterMain",Une="beforeWrite",Yne="write",Qne="afterWrite",Zne=[Fne,_ne,Ene,Xne,Wne,Vne,Une,Yne,Qne];function ms(e){return e?(e.nodeName||"").toLowerCase():null}function Ci(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wu(e){var t=Ci(e).Element;return e instanceof t||e instanceof Element}function $i(e){var t=Ci(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $b(e){if(typeof ShadowRoot>"u")return!1;var t=Ci(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Bne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!$i(i)||!ms(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Dne(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 o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,l){return c[l]="",c},{});!$i(o)||!ms(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const GC={name:"applyStyles",enabled:!0,phase:"write",fn:Bne,effect:Dne,requires:["computeStyles"]};function ds(e){return e.split("-")[0]}var yu=Math.max,eg=Math.min,Nd=Math.round;function U3(){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 zC(){return!/^((?!chrome|android).)*safari/i.test(U3())}function Pd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&$i(e)&&(o=e.offsetWidth>0&&Nd(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Nd(r.height)/e.offsetHeight||1);var a=Wu(e)?Ci(e):window,s=a.visualViewport,c=!zC()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/o,u=(r.top+(c&&s?s.offsetTop:0))/i,f=r.width/o,d=r.height/i;return{width:f,height:d,top:u,right:l+f,bottom:u+d,left:l,x:l,y:u}}function jb(e){var t=Pd(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 JC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$b(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sl(e){return Ci(e).getComputedStyle(e)}function Kne(e){return["table","td","th"].indexOf(ms(e))>=0}function wc(e){return((Wu(e)?e.ownerDocument:e.document)||window.document).documentElement}function o2(e){return ms(e)==="html"?e:e.assignedSlot||e.parentNode||($b(e)?e.host:null)||wc(e)}function RO(e){return!$i(e)||sl(e).position==="fixed"?null:e.offsetParent}function Hne(e){var t=/firefox/i.test(U3()),n=/Trident/i.test(U3());if(n&&$i(e)){var r=sl(e);if(r.position==="fixed")return null}var o=o2(e);for($b(o)&&(o=o.host);$i(o)&&["html","body"].indexOf(ms(o))<0;){var i=sl(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Up(e){for(var t=Ci(e),n=RO(e);n&&Kne(n)&&sl(n).position==="static";)n=RO(n);return n&&(ms(n)==="html"||ms(n)==="body"&&sl(n).position==="static")?t:n||Hne(e)||t}function qb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mh(e,t,n){return yu(e,eg(t,n))}function Gne(e,t,n){var r=Mh(e,t,n);return r>n?n:r}function $C(){return{top:0,right:0,bottom:0,left:0}}function jC(e){return Object.assign({},$C(),e)}function qC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var zne=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jC(typeof t!="number"?t:qC(t,Vp))};function Jne(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ds(n.placement),c=qb(s),l=[ti,na].indexOf(s)>=0,u=l?"height":"width";if(!(!i||!a)){var f=zne(o.padding,n),d=jb(i),h=c==="y"?ei:ti,p=c==="y"?ta:na,m=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],A=a[c]-n.rects.reference[c],x=Up(i),R=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,y=m/2-A/2,g=f[h],S=R-d[u]-f[p],L=R/2-d[u]/2+y,T=Mh(g,L,S),M=c;n.modifiersData[r]=(t={},t[M]=T,t.centerOffset=T-L,t)}}function $ne(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||JC(t.elements.popper,o)&&(t.elements.arrow=o))}const jne={name:"arrow",enabled:!0,phase:"main",fn:Jne,effect:$ne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cd(e){return e.split("-")[1]}var qne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ere(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Nd(n*o)/o||0,y:Nd(r*o)/o||0}}function yO(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,p=a.y,m=p===void 0?0:p,A=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=A.x,m=A.y;var x=a.hasOwnProperty("x"),R=a.hasOwnProperty("y"),y=ti,g=ei,S=window;if(l){var L=Up(n),T="clientHeight",M="clientWidth";if(L===Ci(n)&&(L=wc(n),sl(L).position!=="static"&&s==="absolute"&&(T="scrollHeight",M="scrollWidth")),L=L,o===ei||(o===ti||o===na)&&i===rp){g=ta;var O=f&&L===S&&S.visualViewport?S.visualViewport.height:L[T];m-=O-r.height,m*=c?1:-1}if(o===ti||(o===ei||o===ta)&&i===rp){y=na;var k=f&&L===S&&S.visualViewport?S.visualViewport.width:L[M];h-=k-r.width,h*=c?1:-1}}var F=Object.assign({position:s},l&&qne),N=u===!0?ere({x:h,y:m},Ci(n)):{x:h,y:m};if(h=N.x,m=N.y,c){var E;return Object.assign({},F,(E={},E[g]=R?"0":"",E[y]=x?"0":"",E.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",E))}return Object.assign({},F,(t={},t[g]=R?m+"px":"",t[y]=x?h+"px":"",t.transform="",t))}function tre(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:ds(t.placement),variation:Cd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yO(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yO(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tre,data:{}};var Am={passive:!0};function rre(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,c=Ci(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(u){u.addEventListener("scroll",n.update,Am)}),s&&c.addEventListener("resize",n.update,Am),function(){i&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Am)}),s&&c.removeEventListener("resize",n.update,Am)}}const ore={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rre,data:{}};var ire={left:"right",right:"left",bottom:"top",top:"bottom"};function qm(e){return e.replace(/left|right|bottom|top/g,function(t){return ire[t]})}var are={start:"end",end:"start"};function xO(e){return e.replace(/start|end/g,function(t){return are[t]})}function e5(e){var t=Ci(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function t5(e){return Pd(wc(e)).left+e5(e).scrollLeft}function sre(e,t){var n=Ci(e),r=wc(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=zC();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+t5(e),y:c}}function lre(e){var t,n=wc(e),r=e5(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=yu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=yu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+t5(e),c=-r.scrollTop;return sl(o||n).direction==="rtl"&&(s+=yu(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function n5(e){var t=sl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eI(e){return["html","body","#document"].indexOf(ms(e))>=0?e.ownerDocument.body:$i(e)&&n5(e)?e:eI(o2(e))}function wh(e,t){var n;t===void 0&&(t=[]);var r=eI(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ci(r),a=o?[i].concat(i.visualViewport||[],n5(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(wh(o2(a)))}function Y3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cre(e,t){var n=Pd(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 bO(e,t,n){return t===KC?Y3(sre(e,n)):Wu(t)?cre(t,n):Y3(lre(wc(e)))}function ure(e){var t=wh(o2(e)),n=["absolute","fixed"].indexOf(sl(e).position)>=0,r=n&&$i(e)?Up(e):e;return Wu(r)?t.filter(function(o){return Wu(o)&&JC(o,r)&&ms(o)!=="body"}):[]}function fre(e,t,n,r){var o=t==="clippingParents"?ure(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(c,l){var u=bO(e,l,r);return c.top=yu(u.top,c.top),c.right=eg(u.right,c.right),c.bottom=eg(u.bottom,c.bottom),c.left=yu(u.left,c.left),c},bO(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 tI(e){var t=e.reference,n=e.element,r=e.placement,o=r?ds(r):null,i=r?Cd(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(o){case ei:c={x:a,y:t.y-n.height};break;case ta:c={x:a,y:t.y+t.height};break;case na:c={x:t.x+t.width,y:s};break;case ti:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?qb(o):null;if(l!=null){var u=l==="y"?"height":"width";switch(i){case kd:c[l]=c[l]-(t[u]/2-n[u]/2);break;case rp:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function op(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?Cne:s,l=n.rootBoundary,u=l===void 0?KC:l,f=n.elementContext,d=f===void 0?g0:f,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,A=m===void 0?0:m,x=jC(typeof A!="number"?A:qC(A,Vp)),R=d===g0?Ine:g0,y=e.rects.popper,g=e.elements[p?R:d],S=fre(Wu(g)?g:g.contextElement||wc(e.elements.popper),c,u,a),L=Pd(e.elements.reference),T=tI({reference:L,element:y,strategy:"absolute",placement:o}),M=Y3(Object.assign({},y,T)),O=d===g0?M:L,k={top:S.top-O.top+x.top,bottom:O.bottom-S.bottom+x.bottom,left:S.left-O.left+x.left,right:O.right-S.right+x.right},F=e.modifiersData.offset;if(d===g0&&F){var N=F[o];Object.keys(k).forEach(function(E){var P=[na,ta].indexOf(E)>=0?1:-1,_=[ei,ta].indexOf(E)>=0?"y":"x";k[E]+=N[_]*P})}return k}function dre(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?HC:c,u=Cd(r),f=u?s?AO:AO.filter(function(p){return Cd(p)===u}):Vp,d=f.filter(function(p){return l.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,m){return p[m]=op(e,{placement:m,boundary:o,rootBoundary:i,padding:a})[ds(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function hre(e){if(ds(e)===Jb)return[];var t=qm(e);return[xO(e),t,xO(t)]}function pre(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,A=t.options.placement,x=ds(A),R=x===A,y=c||(R||!p?[qm(A)]:hre(A)),g=[A].concat(y).reduce(function(G,Q){return G.concat(ds(Q)===Jb?dre(t,{placement:Q,boundary:u,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}):Q)},[]),S=t.rects.reference,L=t.rects.popper,T=new Map,M=!0,O=g[0],k=0;k=0,_=P?"width":"height",I=op(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),W=P?E?na:ti:E?ta:ei;S[_]>L[_]&&(W=qm(W));var D=qm(W),z=[];if(i&&z.push(I[N]<=0),s&&z.push(I[W]<=0,I[D]<=0),z.every(function(G){return G})){O=F,M=!1;break}T.set(F,z)}if(M)for(var ae=p?3:1,U=function(Q){var ie=g.find(function(q){var oe=T.get(q);if(oe)return oe.slice(0,Q).every(function(he){return he})});if(ie)return O=ie,"break"},Z=ae;Z>0;Z--){var B=U(Z);if(B==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const mre={name:"flip",enabled:!0,phase:"main",fn:pre,requiresIfExists:["offset"],data:{_skip:!1}};function SO(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 MO(e){return[ei,na,ta,ti].some(function(t){return e[t]>=0})}function vre(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=op(t,{elementContext:"reference"}),s=op(t,{altBoundary:!0}),c=SO(a,r),l=SO(s,o,i),u=MO(c),f=MO(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const gre={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vre};function Are(e,t,n){var r=ds(e),o=[ti,ei].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ti,na].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Rre(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=HC.reduce(function(u,f){return u[f]=Are(f,t.rects,i),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const yre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rre};function xre(e){var t=e.state,n=e.name;t.modifiersData[n]=tI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bre={name:"popperOffsets",enabled:!0,phase:"read",fn:xre,data:{}};function Sre(e){return e==="x"?"y":"x"}function Mre(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,m=p===void 0?0:p,A=op(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),x=ds(t.placement),R=Cd(t.placement),y=!R,g=qb(x),S=Sre(g),L=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,k=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(L){if(i){var E,P=g==="y"?ei:ti,_=g==="y"?ta:na,I=g==="y"?"height":"width",W=L[g],D=W+A[P],z=W-A[_],ae=h?-M[I]/2:0,U=R===kd?T[I]:M[I],Z=R===kd?-M[I]:-T[I],B=t.elements.arrow,G=h&&B?jb(B):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$C(),ie=Q[P],q=Q[_],oe=Mh(0,T[I],G[I]),he=y?T[I]/2-ae-oe-ie-k.mainAxis:U-oe-ie-k.mainAxis,me=y?-T[I]/2+ae+oe+q+k.mainAxis:Z+oe+q+k.mainAxis,ve=t.elements.arrow&&Up(t.elements.arrow),J=ve?g==="y"?ve.clientTop||0:ve.clientLeft||0:0,ue=(E=F==null?void 0:F[g])!=null?E:0,X=W+he-ue-J,te=W+me-ue,le=Mh(h?eg(D,X):D,W,h?yu(z,te):z);L[g]=le,N[g]=le-W}if(s){var $,j=g==="x"?ei:ti,se=g==="x"?ta:na,ge=L[S],ce=S==="y"?"height":"width",Ae=ge+A[j],ye=ge-A[se],Ee=[ei,ti].indexOf(x)!==-1,Se=($=F==null?void 0:F[S])!=null?$:0,be=Ee?Ae:ge-T[ce]-M[ce]-Se+k.altAxis,qe=Ee?ge+T[ce]+M[ce]-Se-k.altAxis:ye,Ce=h&&Ee?Gne(be,ge,qe):Mh(h?be:Ae,ge,h?qe:ye);L[S]=Ce,N[S]=Ce-ge}t.modifiersData[r]=N}}const wre={name:"preventOverflow",enabled:!0,phase:"main",fn:Mre,requiresIfExists:["offset"]};function Lre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ore(e){return e===Ci(e)||!$i(e)?e5(e):Lre(e)}function Tre(e){var t=e.getBoundingClientRect(),n=Nd(t.width)/e.offsetWidth||1,r=Nd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kre(e,t,n){n===void 0&&(n=!1);var r=$i(t),o=$i(t)&&Tre(t),i=wc(t),a=Pd(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ms(t)!=="body"||n5(i))&&(s=Ore(t)),$i(t)?(c=Pd(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=t5(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Nre(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Pre(e){var t=Nre(e);return Zne.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Cre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ire(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var wO={placement:"bottom",modifiers:[],strategy:"absolute"};function LO(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function aI(e,t){return typeof e=="function"?e.apply(void 0,t):e}function OO(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Vre(e){return e.split(/\s+/).filter(Boolean)}function Zf(e){return[].concat(e)}function TO(e,t){e.indexOf(t)===-1&&e.push(t)}function Ure(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Yre(e){return e.split("-")[0]}function tg(e){return[].slice.call(e)}function kO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Lh(){return document.createElement("div")}function i2(e){return["Element","Fragment"].some(function(t){return r5(e,t)})}function Qre(e){return r5(e,"NodeList")}function Zre(e){return r5(e,"MouseEvent")}function Bre(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Dre(e){return i2(e)?[e]:Qre(e)?tg(e):Array.isArray(e)?e:tg(document.querySelectorAll(e))}function _y(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function NO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Kre(e){var t,n=Zf(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Hre(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,a=o.popperState,s=o.props,c=s.interactiveBorder,l=Yre(a.placement),u=a.modifiersData.offset;if(!u)return!0;var f=l==="bottom"?u.top.y:0,d=l==="top"?u.bottom.y:0,h=l==="right"?u.left.x:0,p=l==="left"?u.right.x:0,m=i.top-r+f>c,A=r-i.bottom-d>c,x=i.left-n+h>c,R=n-i.right-p>c;return m||A||x||R})}function Ey(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function PO(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 ja={isTouch:!1},CO=0;function Gre(){ja.isTouch||(ja.isTouch=!0,window.performance&&document.addEventListener("mousemove",sI))}function sI(){var e=performance.now();e-CO<20&&(ja.isTouch=!1,document.removeEventListener("mousemove",sI)),CO=e}function zre(){var e=document.activeElement;if(Bre(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Jre(){document.addEventListener("touchstart",Gre,Jc),window.addEventListener("blur",zre)}var $re=typeof window<"u"&&typeof document<"u",jre=$re?!!window.msCrypto:!1,qre={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},eoe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Na=Object.assign({appendTo:iI,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},qre,eoe),toe=Object.keys(Na),noe=function(t){var n=Object.keys(t);n.forEach(function(r){Na[r]=t[r]})};function lI(e){var t=e.plugins||[],n=t.reduce(function(r,o){var i=o.name,a=o.defaultValue;if(i){var s;r[i]=e[i]!==void 0?e[i]:(s=Na[i])!=null?s:a}return r},{});return Object.assign({},e,n)}function roe(e,t){var n=t?Object.keys(lI(Object.assign({},Na,{plugins:t}))):toe,r=n.reduce(function(o,i){var a=(e.getAttribute("data-tippy-"+i)||"").trim();if(!a)return o;if(i==="content")o[i]=a;else try{o[i]=JSON.parse(a)}catch{o[i]=a}return o},{});return r}function IO(e,t){var n=Object.assign({},t,{content:aI(t.content,[e])},t.ignoreAttributes?{}:roe(e,t.plugins));return n.aria=Object.assign({},Na.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 ooe=function(){return"innerHTML"};function Q3(e,t){e[ooe()]=t}function FO(e){var t=Lh();return e===!0?t.className=rI:(t.className=oI,i2(e)?t.appendChild(e):Q3(t,e)),t}function _O(e,t){i2(t.content)?(Q3(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Q3(e,t.content):e.textContent=t.content)}function Z3(e){var t=e.firstElementChild,n=tg(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(nI)}),arrow:n.find(function(r){return r.classList.contains(rI)||r.classList.contains(oI)}),backdrop:n.find(function(r){return r.classList.contains(Wre)})}}function cI(e){var t=Lh(),n=Lh();n.className=Xre,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Lh();r.className=nI,r.setAttribute("data-state","hidden"),_O(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,a){var s=Z3(t),c=s.box,l=s.content,u=s.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),typeof a.animation=="string"?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(i.content!==a.content||i.allowHTML!==a.allowHTML)&&_O(l,e.props),a.arrow?u?i.arrow!==a.arrow&&(c.removeChild(u),c.appendChild(FO(a.arrow))):c.appendChild(FO(a.arrow)):u&&c.removeChild(u)}return{popper:t,onUpdate:o}}cI.$$tippy=!0;var ioe=1,Rm=[],Xy=[];function aoe(e,t){var n=IO(e,Object.assign({},Na,lI(kO(t)))),r,o,i,a=!1,s=!1,c=!1,l=!1,u,f,d,h=[],p=OO(X,n.interactiveDebounce),m,A=ioe++,x=null,R=Ure(n.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},g={id:A,reference:e,popper:Lh(),popperInstance:x,props:n,state:y,plugins:R,clearDelayTimeouts:be,setProps:qe,setContent:Ce,show:Te,hide:Ne,hideWithInteractivity:_e,enable:Ee,disable:Se,unmount:Ke,destroy:tt};if(!n.render)return g;var S=n.render(g),L=S.popper,T=S.onUpdate;L.setAttribute("data-tippy-root",""),L.id="tippy-"+g.id,g.popper=L,e._tippy=g,L._tippy=g;var M=R.map(function(ke){return ke.fn(g)}),O=e.hasAttribute("aria-expanded");return ve(),ae(),W(),D("onCreate",[g]),n.showOnCreate&&Ae(),L.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),L.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",p)}),g;function k(){var ke=g.props.touch;return Array.isArray(ke)?ke:[ke,0]}function F(){return k()[0]==="hold"}function N(){var ke;return!!((ke=g.props.render)!=null&&ke.$$tippy)}function E(){return m||e}function P(){var ke=E().parentNode;return ke?Kre(ke):document}function _(){return Z3(L)}function I(ke){return g.state.isMounted&&!g.state.isVisible||ja.isTouch||u&&u.type==="focus"?0:Fy(g.props.delay,ke?0:1,Na.delay)}function W(ke){ke===void 0&&(ke=!1),L.style.pointerEvents=g.props.interactive&&!ke?"":"none",L.style.zIndex=""+g.props.zIndex}function D(ke,Ze,nt){if(nt===void 0&&(nt=!0),M.forEach(function(ut){ut[ke]&&ut[ke].apply(ut,Ze)}),nt){var xt;(xt=g.props)[ke].apply(xt,Ze)}}function z(){var ke=g.props.aria;if(ke.content){var Ze="aria-"+ke.content,nt=L.id,xt=Zf(g.props.triggerTarget||e);xt.forEach(function(ut){var ht=ut.getAttribute(Ze);if(g.state.isVisible)ut.setAttribute(Ze,ht?ht+" "+nt:nt);else{var At=ht&&ht.replace(nt,"").trim();At?ut.setAttribute(Ze,At):ut.removeAttribute(Ze)}})}}function ae(){if(!(O||!g.props.aria.expanded)){var ke=Zf(g.props.triggerTarget||e);ke.forEach(function(Ze){g.props.interactive?Ze.setAttribute("aria-expanded",g.state.isVisible&&Ze===E()?"true":"false"):Ze.removeAttribute("aria-expanded")})}}function U(){P().removeEventListener("mousemove",p),Rm=Rm.filter(function(ke){return ke!==p})}function Z(ke){if(!(ja.isTouch&&(c||ke.type==="mousedown"))){var Ze=ke.composedPath&&ke.composedPath()[0]||ke.target;if(!(g.props.interactive&&PO(L,Ze))){if(Zf(g.props.triggerTarget||e).some(function(nt){return PO(nt,Ze)})){if(ja.isTouch||g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[g,ke]);g.props.hideOnClick===!0&&(g.clearDelayTimeouts(),g.hide(),s=!0,setTimeout(function(){s=!1}),g.state.isMounted||ie())}}}function B(){c=!0}function G(){c=!1}function Q(){var ke=P();ke.addEventListener("mousedown",Z,!0),ke.addEventListener("touchend",Z,Jc),ke.addEventListener("touchstart",G,Jc),ke.addEventListener("touchmove",B,Jc)}function ie(){var ke=P();ke.removeEventListener("mousedown",Z,!0),ke.removeEventListener("touchend",Z,Jc),ke.removeEventListener("touchstart",G,Jc),ke.removeEventListener("touchmove",B,Jc)}function q(ke,Ze){he(ke,function(){!g.state.isVisible&&L.parentNode&&L.parentNode.contains(L)&&Ze()})}function oe(ke,Ze){he(ke,Ze)}function he(ke,Ze){var nt=_().box;function xt(ut){ut.target===nt&&(Ey(nt,"remove",xt),Ze())}if(ke===0)return Ze();Ey(nt,"remove",f),Ey(nt,"add",xt),f=xt}function me(ke,Ze,nt){nt===void 0&&(nt=!1);var xt=Zf(g.props.triggerTarget||e);xt.forEach(function(ut){ut.addEventListener(ke,Ze,nt),h.push({node:ut,eventType:ke,handler:Ze,options:nt})})}function ve(){F()&&(me("touchstart",ue,{passive:!0}),me("touchend",te,{passive:!0})),Vre(g.props.trigger).forEach(function(ke){if(ke!=="manual")switch(me(ke,ue),ke){case"mouseenter":me("mouseleave",te);break;case"focus":me(jre?"focusout":"blur",le);break;case"focusin":me("focusout",le);break}})}function J(){h.forEach(function(ke){var Ze=ke.node,nt=ke.eventType,xt=ke.handler,ut=ke.options;Ze.removeEventListener(nt,xt,ut)}),h=[]}function ue(ke){var Ze,nt=!1;if(!(!g.state.isEnabled||$(ke)||s)){var xt=((Ze=u)==null?void 0:Ze.type)==="focus";u=ke,m=ke.currentTarget,ae(),!g.state.isVisible&&Zre(ke)&&Rm.forEach(function(ut){return ut(ke)}),ke.type==="click"&&(g.props.trigger.indexOf("mouseenter")<0||a)&&g.props.hideOnClick!==!1&&g.state.isVisible?nt=!0:Ae(ke),ke.type==="click"&&(a=!nt),nt&&!xt&&ye(ke)}}function X(ke){var Ze=ke.target,nt=E().contains(Ze)||L.contains(Ze);if(!(ke.type==="mousemove"&&nt)){var xt=ce().concat(L).map(function(ut){var ht,At=ut._tippy,Ft=(ht=At.popperInstance)==null?void 0:ht.state;return Ft?{popperRect:ut.getBoundingClientRect(),popperState:Ft,props:n}:null}).filter(Boolean);Hre(xt,ke)&&(U(),ye(ke))}}function te(ke){var Ze=$(ke)||g.props.trigger.indexOf("click")>=0&&a;if(!Ze){if(g.props.interactive){g.hideWithInteractivity(ke);return}ye(ke)}}function le(ke){g.props.trigger.indexOf("focusin")<0&&ke.target!==E()||g.props.interactive&&ke.relatedTarget&&L.contains(ke.relatedTarget)||ye(ke)}function $(ke){return ja.isTouch?F()!==ke.type.indexOf("touch")>=0:!1}function j(){se();var ke=g.props,Ze=ke.popperOptions,nt=ke.placement,xt=ke.offset,ut=ke.getReferenceClientRect,ht=ke.moveTransition,At=N()?Z3(L).arrow:null,Ft=ut?{getBoundingClientRect:ut,contextElement:ut.contextElement||E()}:e,Qt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ea){var io=Ea.state;if(N()){var of=_(),Nc=of.box;["placement","reference-hidden","escaped"].forEach(function(Ms){Ms==="placement"?Nc.setAttribute("data-placement",io.placement):io.attributes.popper["data-popper-"+Ms]?Nc.setAttribute("data-"+Ms,""):Nc.removeAttribute("data-"+Ms)}),io.attributes.popper={}}}},Pn=[{name:"offset",options:{offset:xt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ht}},Qt];N()&&At&&Pn.push({name:"arrow",options:{element:At,padding:3}}),Pn.push.apply(Pn,(Ze==null?void 0:Ze.modifiers)||[]),g.popperInstance=Ere(Ft,L,Object.assign({},Ze,{placement:nt,onFirstUpdate:d,modifiers:Pn}))}function se(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function ge(){var ke=g.props.appendTo,Ze,nt=E();g.props.interactive&&ke===iI||ke==="parent"?Ze=nt.parentNode:Ze=aI(ke,[nt]),Ze.contains(L)||Ze.appendChild(L),g.state.isMounted=!0,j()}function ce(){return tg(L.querySelectorAll("[data-tippy-root]"))}function Ae(ke){g.clearDelayTimeouts(),ke&&D("onTrigger",[g,ke]),Q();var Ze=I(!0),nt=k(),xt=nt[0],ut=nt[1];ja.isTouch&&xt==="hold"&&ut&&(Ze=ut),Ze?r=setTimeout(function(){g.show()},Ze):g.show()}function ye(ke){if(g.clearDelayTimeouts(),D("onUntrigger",[g,ke]),!g.state.isVisible){ie();return}if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ke.type)>=0&&a)){var Ze=I(!1);Ze?o=setTimeout(function(){g.state.isVisible&&g.hide()},Ze):i=requestAnimationFrame(function(){g.hide()})}}function Ee(){g.state.isEnabled=!0}function Se(){g.hide(),g.state.isEnabled=!1}function be(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function qe(ke){if(!g.state.isDestroyed){D("onBeforeUpdate",[g,ke]),J();var Ze=g.props,nt=IO(e,Object.assign({},Ze,kO(ke),{ignoreAttributes:!0}));g.props=nt,ve(),Ze.interactiveDebounce!==nt.interactiveDebounce&&(U(),p=OO(X,nt.interactiveDebounce)),Ze.triggerTarget&&!nt.triggerTarget?Zf(Ze.triggerTarget).forEach(function(xt){xt.removeAttribute("aria-expanded")}):nt.triggerTarget&&e.removeAttribute("aria-expanded"),ae(),W(),T&&T(Ze,nt),g.popperInstance&&(j(),ce().forEach(function(xt){requestAnimationFrame(xt._tippy.popperInstance.forceUpdate)})),D("onAfterUpdate",[g,ke])}}function Ce(ke){g.setProps({content:ke})}function Te(){var ke=g.state.isVisible,Ze=g.state.isDestroyed,nt=!g.state.isEnabled,xt=ja.isTouch&&!g.props.touch,ut=Fy(g.props.duration,0,Na.duration);if(!(ke||Ze||nt||xt)&&!E().hasAttribute("disabled")&&(D("onShow",[g],!1),g.props.onShow(g)!==!1)){if(g.state.isVisible=!0,N()&&(L.style.visibility="visible"),W(),Q(),g.state.isMounted||(L.style.transition="none"),N()){var ht=_(),At=ht.box,Ft=ht.content;_y([At,Ft],0)}d=function(){var Pn;if(!(!g.state.isVisible||l)){if(l=!0,L.offsetHeight,L.style.transition=g.props.moveTransition,N()&&g.props.animation){var aa=_(),Ea=aa.box,io=aa.content;_y([Ea,io],ut),NO([Ea,io],"visible")}z(),ae(),TO(Xy,g),(Pn=g.popperInstance)==null||Pn.forceUpdate(),D("onMount",[g]),g.props.animation&&N()&&oe(ut,function(){g.state.isShown=!0,D("onShown",[g])})}},ge()}}function Ne(){var ke=!g.state.isVisible,Ze=g.state.isDestroyed,nt=!g.state.isEnabled,xt=Fy(g.props.duration,1,Na.duration);if(!(ke||Ze||nt)&&(D("onHide",[g],!1),g.props.onHide(g)!==!1)){if(g.state.isVisible=!1,g.state.isShown=!1,l=!1,a=!1,N()&&(L.style.visibility="hidden"),U(),ie(),W(!0),N()){var ut=_(),ht=ut.box,At=ut.content;g.props.animation&&(_y([ht,At],xt),NO([ht,At],"hidden"))}z(),ae(),g.props.animation?N()&&q(xt,g.unmount):g.unmount()}}function _e(ke){P().addEventListener("mousemove",p),TO(Rm,p),p(ke)}function Ke(){g.state.isVisible&&g.hide(),g.state.isMounted&&(se(),ce().forEach(function(ke){ke._tippy.unmount()}),L.parentNode&&L.parentNode.removeChild(L),Xy=Xy.filter(function(ke){return ke!==g}),g.state.isMounted=!1,D("onHidden",[g]))}function tt(){g.state.isDestroyed||(g.clearDelayTimeouts(),g.unmount(),J(),delete e._tippy,g.state.isDestroyed=!0,D("onDestroy",[g]))}}function ef(e,t){t===void 0&&(t={});var n=Na.plugins.concat(t.plugins||[]);Jre();var r=Object.assign({},t,{plugins:n}),o=Dre(e),i=o.reduce(function(a,s){var c=s&&aoe(s,r);return c&&a.push(c),a},[]);return i2(e)?i[0]:i}ef.defaultProps=Na;ef.setDefaultProps=noe;ef.currentInput=ja;Object.assign({},GC,{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)}});ef.setDefaultProps({render:cI});const soe=Fe({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=pe(),i=pe(),a=pe(),s=pe(!1),c=Me(()=>n.contentStyle||{});return Tt(()=>n.value,()=>{o.value&&(n.value?o.value.show():o.value.hide())}),On(()=>{o.value&&o.value.destroy()}),Gt(()=>{o.value=ef(i.value,{content:a.value,allowHTML:!0,trigger:n.trigger,placement:n.placement,interactive:!0,appendTo:n.appendTo||document.body,maxWidth:"none",offset:[0,8],duration:200,animation:"scale",theme:"popover",onShow(){s.value=!0},onShown(){n.value||r("update:value",!0)},onHidden(){n.value&&r("update:value",!1),s.value=!1}})}),(l,u)=>(Y(),ee("div",{class:$e(["popover",{center:l.center}]),ref_key:"triggerRef",ref:i},[V("div",{class:"popover-content",style:Le(c.value),ref_key:"contentRef",ref:a},[s.value?cr(l.$slots,"content",{key:0},void 0,!0):Be("",!0)],4),cr(l.$slots,"default",{},void 0,!0)],2))}}),kt=Ue(soe,[["__scopeId","data-v-7277ff01"]]),loe=Fe({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,o)=>(Y(),ee("div",{class:$e(["popover-menu-item",{center:r.center}]),onClick:o[0]||(o[0]=i=>n("click"))},[cr(r.$slots,"default",{},void 0,!0)],2))}}),Oo=Ue(loe,[["__scopeId","data-v-1f176c16"]]),coe={class:"editor-header"},uoe={class:"left"},foe={class:"menu-item"},doe={class:"title"},hoe=["title"],poe={class:"right"},moe={class:"group-menu-item"},voe={class:"arrow-btn"},goe={class:"github-link",href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},Aoe={class:"menu-item"},Roe=Fe({__name:"index",setup(e){const t=ft(),n=ct(),{title:r}=Xe(n),{enterScreening:o,enterScreeningFromStart:i}=Mc(),{importSpecificFile:a,importPPTXFile:s,exporting:c}=une(),{resetSlides:l}=Dd(),u=pe(!1),f=pe(!1),d=pe(!1),h=pe(),p=pe(""),m=()=>{p.value=r.value,d.value=!0,Vr(()=>{var y;return(y=h.value)==null?void 0:y.focus()})},A=()=>{n.setTitle(p.value),d.value=!1},x=y=>{window.open(y),u.value=!1},R=y=>{t.setDialogForExport(y),u.value=!1};return(y,g)=>{const S=xe("IconHamburgerButton"),L=xe("IconPpt"),T=xe("IconDown"),M=xe("IconDownload"),O=xe("IconGithub"),k=Mn("tooltip");return Y(),ee("div",coe,[V("div",uoe,[w(kt,{trigger:"click",placement:"bottom-start",value:u.value,"onUpdate:value":g[7]||(g[7]=F=>u.value=F)},{content:re(()=>[w(Eu,{accept:".pptist",onChange:g[0]||(g[0]=F=>{H(a)(F),u.value=!1})},{default:re(()=>[w(Oo,null,{default:re(()=>[We("导入 pptist 文件")]),_:1})]),_:1}),w(Eu,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:g[1]||(g[1]=F=>{H(s)(F),u.value=!1})},{default:re(()=>[w(Oo,null,{default:re(()=>[We("导入 pptx 文件(测试版)")]),_:1})]),_:1}),w(Oo,{onClick:g[2]||(g[2]=F=>R("pptx"))},{default:re(()=>[We("导出文件")]),_:1}),w(Oo,{onClick:g[3]||(g[3]=F=>{H(l)(),u.value=!1})},{default:re(()=>[We("重置幻灯片")]),_:1}),w(Oo,{onClick:g[4]||(g[4]=F=>x("https://github.com/pipipi-pikachu/PPTist/issues"))},{default:re(()=>[We("意见反馈")]),_:1}),w(Oo,{onClick:g[5]||(g[5]=F=>x("https://github.com/pipipi-pikachu/PPTist/blob/master/doc/Q&A.md"))},{default:re(()=>[We("常见问题")]),_:1}),w(Oo,{onClick:g[6]||(g[6]=F=>{u.value=!1,f.value=!0})},{default:re(()=>[We("快捷键")]),_:1})]),default:re(()=>[V("div",foe,[w(S,{class:"icon"})])]),_:1},8,["value"]),V("div",doe,[d.value?(Y(),we(Xu,{key:0,class:"title-input",ref_key:"titleInputRef",ref:h,value:p.value,"onUpdate:value":g[8]||(g[8]=F=>p.value=F),onBlur:g[9]||(g[9]=F=>A())},null,8,["value"])):(Y(),ee("div",{key:1,class:"title-text",onClick:g[10]||(g[10]=F=>m()),title:H(r)},gt(H(r)),9,hoe))])]),V("div",poe,[V("div",moe,[De((Y(),ee("div",{class:"menu-item",onClick:g[11]||(g[11]=F=>H(o)())},[w(L,{class:"icon"})])),[[k,"幻灯片放映"]]),w(kt,{trigger:"click",center:""},{content:re(()=>[w(Oo,{onClick:g[12]||(g[12]=F=>H(i)())},{default:re(()=>[We("从头开始")]),_:1}),w(Oo,{onClick:g[13]||(g[13]=F=>H(o)())},{default:re(()=>[We("从当前页开始")]),_:1})]),default:re(()=>[V("div",voe,[w(T,{class:"arrow"})])]),_:1})]),De((Y(),ee("div",{class:"menu-item",onClick:g[14]||(g[14]=F=>R("pptx"))},[w(M,{class:"icon"})])),[[k,"导出"]]),De((Y(),ee("a",goe,[V("div",Aoe,[w(O,{class:"icon"})])])),[[k,"Copyright © 2020-PRESENT pipipi-pikachu"]])]),w(One,{width:320,visible:f.value,"onUpdate:visible":g[15]||(g[15]=F=>f.value=F),placement:"right"},{default:re(()=>[w(vne)]),_:1},8,["visible"]),w(zb,{loading:H(c),tip:"正在导入..."},null,8,["loading"])])}}}),yoe=Ue(Roe,[["__scopeId","data-v-89efe6b2"]]),tf=Symbol(),o5=Symbol(),uI=Symbol(),xoe=()=>{const e=window.getSelection();e&&e.removeAllRanges()},boe=e=>{const t=pe(0),n=pe(0),r=ft(),{canvasPercentage:o,canvasDragged:i}=Xe(r),{viewportRatio:a}=Xe(ct()),s=()=>{if(!e.value)return;const d=e.value.clientWidth,h=e.value.clientHeight;if(h/d>a.value){const p=d*(o.value/100);r.setCanvasScale(p/Ht),t.value=(d-p)/2,n.value=(h-p*a.value)/2}else{const p=h*(o.value/100);r.setCanvasScale(p/(Ht*a.value)),t.value=(d-p/a.value)/2,n.value=(h-p)/2}};Tt(o,(d,h)=>{if(!e.value)return;const p=e.value.clientWidth,m=e.value.clientHeight,A=p*(d/100),x=p*(h/100),R=m*(d/100),y=m*(h/100);m/p>a.value?r.setCanvasScale(A/Ht):r.setCanvasScale(R/(Ht*a.value)),t.value=t.value-(A-x)/2,n.value=n.value-(R-y)/2}),Tt(a,s),Tt(i,()=>{i.value||s()});const l=Me(()=>({width:Ht,height:Ht*a.value,left:t.value,top:n.value})),u=new ResizeObserver(s);return Gt(()=>{e.value&&u.observe(e.value)}),On(()=>{e.value&&u.unobserve(e.value)}),{viewportStyles:l,dragViewport:d=>{let h=!0;const p=d.pageX,m=d.pageY,A=t.value,x=n.value;document.onmousemove=R=>{if(!h)return;const y=R.pageX,g=R.pageY;t.value=A+(y-p),n.value=x+(g-m)},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null,r.setCanvasDragged(!0)}}}},Soe=(e,t)=>{const n=ft(),{canvasScale:r,hiddenElementIdList:o}=Xe(n),i=pe(!1),a=pe(1),s=pe({top:0,left:0,width:0,height:0});return{mouseSelection:s,mouseSelectionVisible:i,mouseSelectionQuadrant:a,updateMouseSelection:l=>{if(!t.value)return;let u=!0;const f=t.value.getBoundingClientRect(),d=5,h=l.pageX,p=l.pageY,m=(h-f.x)/r.value,A=(p-f.y)/r.value;s.value={top:A,left:m,width:0,height:0},i.value=!1,a.value=4,document.onmousemove=x=>{if(!u)return;const R=x.pageX,y=x.pageY,g=(R-h)/r.value,S=(y-p)/r.value,L=Math.abs(g),T=Math.abs(S);if(L0&&S>0?M=4:g<0&&S<0?M=2:g>0&&S<0?M=1:g<0&&S>0&&(M=3),s.value={...s.value,width:L,height:T},i.value=!0,a.value=M},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,u=!1;let x=[];for(let y=0;yS&&kL&&NS-T&&kL-M&&NS&&kL-M&&NS-T&&kL&&N{if(y.groupId){const g=x.map(L=>L.id);return e.value.filter(L=>L.groupId===y.groupId).every(L=>g.includes(L.id))}return!0});const R=x.map(y=>y.id);n.setActiveElementIdList(R),i.value=!1}}}},Moe=e=>{const{disableHotkeys:t}=Xe(ft()),{createImageElement:n,createTextElement:r}=$u(),o=i=>{if(!i.dataTransfer||i.dataTransfer.items.length===0)return;const a=i.dataTransfer.items[0];if(a.kind==="file"&&a.type.indexOf("image")!==-1){const s=a.getAsFile();s&&zu(s).then(c=>n(c))}else a.kind==="string"&&a.type==="text/plain"&&a.getAsString(s=>{if(t.value)return;const c=kb(s);r({left:0,top:0,width:600,height:50},{content:c})})};Gt(()=>{e.value&&e.value.addEventListener("drop",o),document.ondragleave=i=>i.preventDefault(),document.ondrop=i=>i.preventDefault(),document.ondragenter=i=>i.preventDefault(),document.ondragover=i=>i.preventDefault()}),On(()=>{e.value&&e.value.removeEventListener("drop",o),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},woe=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},fI=(e,t,n)=>{const r=ct(),{addHistorySnapshot:o}=zt();return{rotateElement:(a,s)=>{const c=!(a instanceof MouseEvent);if(c&&(!a.changedTouches||!a.changedTouches[0]))return;let l=!0,u=0;const f=s.rotate||0,d=s.left,h=s.top,p=s.width,m=s.height,A=d+p/2,x=h+m/2;if(!t.value)return;const R=t.value.getBoundingClientRect(),y=S=>{if(!l)return;const L=S instanceof MouseEvent?S.pageX:S.changedTouches[0].pageX,T=S instanceof MouseEvent?S.pageY:S.changedTouches[0].pageY,M=(L-R.left)/n.value,O=(T-R.top)/n.value,k=M-A,F=x-O;u=woe(k,F);const N=5;Math.abs(u)<=N?u=0:u>0&&Math.abs(u-45)<=N?u-=u-45:u<0&&Math.abs(u+45)<=N?u-=u+45:u>0&&Math.abs(u-90)<=N?u-=u-90:u<0&&Math.abs(u+90)<=N?u-=u+90:u>0&&Math.abs(u-135)<=N?u-=u-135:u<0&&Math.abs(u+135)<=N?u-=u+135:u>0&&Math.abs(u-180)<=N?u-=u-180:u<0&&Math.abs(u+180)<=N&&(u-=u+180),e.value=e.value.map(E=>s.id===E.id?{...E,rotate:u}:E)},g=()=>{l=!1,document.onmousemove=null,document.onmouseup=null,f!==u&&(r.updateSlide({elements:e.value}),o())};c?(document.ontouchmove=y,document.ontouchend=g):(document.onmousemove=y,document.onmouseup=g)}}},J0={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},dI={text:20,image:20,shape:20,chart:200,table:20,video:250,audio:20,latex:20},EO=(e,t)=>{const{left:n,top:r,width:o,height:i}=e,a=Math.sqrt(Math.pow(o,2)+Math.pow(i,2))/2,s=Math.atan(i/o)*180/Math.PI,c=(180-t-s)*Math.PI/180,l=(s-t)*Math.PI/180,u=(90-t)*Math.PI/180,f=t*Math.PI/180,d=o/2,h=i/2,p=n+d,m=r+h,A={left:p+a*Math.cos(c),top:m-a*Math.sin(c)},x={left:p+h*Math.cos(u),top:m-h*Math.sin(u)},R={left:p+a*Math.cos(l),top:m-a*Math.sin(l)},y={left:p+d*Math.cos(f),top:m+d*Math.sin(f)},g={left:p-a*Math.cos(c),top:m+a*Math.sin(c)},S={left:p-h*Math.sin(f),top:m+h*Math.cos(f)},L={left:p-a*Math.cos(l),top:m+a*Math.sin(l)},T={left:p-d*Math.cos(f),top:m-d*Math.sin(f)};return{leftTopPoint:A,topPoint:x,rightTopPoint:R,rightPoint:y,rightBottomPoint:g,bottomPoint:S,leftBottomPoint:L,leftPoint:T}},XO=(e,t)=>({[mt.RIGHT_BOTTOM]:t.leftTopPoint,[mt.LEFT_BOTTOM]:t.rightTopPoint,[mt.LEFT_TOP]:t.rightBottomPoint,[mt.RIGHT_TOP]:t.leftBottomPoint,[mt.TOP]:t.bottomPoint,[mt.BOTTOM]:t.topPoint,[mt.LEFT]:t.rightPoint,[mt.RIGHT]:t.leftPoint})[e],hI=(e,t,n)=>{const r=ft(),o=ct(),{activeElementIdList:i,activeGroupElementId:a}=Xe(r),{viewportRatio:s}=Xe(o),{ctrlOrShiftKeyActive:c}=Xe(Ss()),{addHistorySnapshot:l}=zt();return{scaleElement:(d,h,p)=>{const m=!(d instanceof MouseEvent);if(m&&(!d.changedTouches||!d.changedTouches[0]))return;let A=!0;r.setScalingState(!0);const x=h.left,R=h.top,y=h.width,g=h.height,S=h.type==="table"?h.cellMinHeight:0,L="rotate"in h&&h.rotate?h.rotate:0,T=Math.PI*L/180,M=c.value||"fixedRatio"in h&&h.fixedRatio,O=y/g,k=m?d.changedTouches[0].pageX:d.pageX,F=m?d.changedTouches[0].pageY:d.pageY,N=dI[h.type]||20,E=Z=>Z{const Q=[];let ie=!1,q=!1;const oe={offsetX:0,offsetY:0};if(B||B===0)for(let he=0;he{if(!A)return;const B=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,G=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY,Q=B-k,ie=G-F;let q=y,oe=g,he=x,me=R;if(L){const ve=(Math.cos(T)*Q+Math.sin(T)*ie)/n.value;let J=(Math.cos(T)*ie-Math.sin(T)*Q)/n.value;M&&((p===mt.RIGHT_BOTTOM||p===mt.LEFT_TOP)&&(J=ve/O),(p===mt.LEFT_BOTTOM||p===mt.RIGHT_TOP)&&(J=-ve/O)),p===mt.RIGHT_BOTTOM?(q=E(y+ve),oe=E(g+J)):p===mt.LEFT_BOTTOM?(q=E(y-ve),oe=E(g+J),he=x-(q-y)):p===mt.LEFT_TOP?(q=E(y-ve),oe=E(g-J),he=x-(q-y),me=R-(oe-g)):p===mt.RIGHT_TOP?(q=E(y+ve),oe=E(g-J),me=R-(oe-g)):p===mt.TOP?(oe=E(g-J),me=R-(oe-g)):p===mt.BOTTOM?oe=E(g+J):p===mt.LEFT?(q=E(y-ve),he=x-(q-y)):p===mt.RIGHT&&(q=E(y+ve));const ue=EO({width:q,height:oe,left:he,top:me},L),X=XO(p,ue),te=X.left,le=X.top,$=te-_,j=le-I;he=he-$,me=me-j}else{let ve=Q/n.value,J=ie/n.value;if(M&&((p===mt.RIGHT_BOTTOM||p===mt.LEFT_TOP)&&(J=ve/O),(p===mt.LEFT_BOTTOM||p===mt.RIGHT_TOP)&&(J=-ve/O)),p===mt.RIGHT_BOTTOM){const{offsetX:ue,offsetY:X}=z(x+y+ve,R+g+J);ve=ve-ue,J=J-X,M&&(X?ve=J*O:J=ve/O),q=E(y+ve),oe=E(g+J)}else if(p===mt.LEFT_BOTTOM){const{offsetX:ue,offsetY:X}=z(x+ve,R+g+J);ve=ve-ue,J=J-X,M&&(X?ve=-J*O:J=-ve/O),q=E(y-ve),oe=E(g+J),he=x-(q-y)}else if(p===mt.LEFT_TOP){const{offsetX:ue,offsetY:X}=z(x+ve,R+J);ve=ve-ue,J=J-X,M&&(X?ve=J*O:J=ve/O),q=E(y-ve),oe=E(g-J),he=x-(q-y),me=R-(oe-g)}else if(p===mt.RIGHT_TOP){const{offsetX:ue,offsetY:X}=z(x+y+ve,R+J);ve=ve-ue,J=J-X,M&&(X?ve=-J*O:J=-ve/O),q=E(y+ve),oe=E(g-J),me=R-(oe-g)}else if(p===mt.LEFT){const{offsetX:ue}=z(x+ve,null);ve=ve-ue,q=E(y-ve),he=x-(q-y)}else if(p===mt.RIGHT){const{offsetX:ue}=z(x+y+ve,null);ve=ve-ue,q=E(y+ve)}else if(p===mt.TOP){const{offsetY:ue}=z(null,R+J);J=J-ue,oe=E(g-J),me=R-(oe-g)}else if(p===mt.BOTTOM){const{offsetY:ue}=z(null,R+g+J);J=J-ue,oe=E(g+J)}}e.value=e.value.map(ve=>{if(h.id!==ve.id)return ve;if(ve.type==="shape"&&"pathFormula"in ve&&ve.pathFormula){const J=Ju[ve.pathFormula];let ue="";return"editable"in J?ue=J.formula(q,oe,ve.keypoint):ue=J.formula(q,oe),{...ve,left:he,top:me,width:q,height:oe,viewBox:[q,oe],path:ue}}if(ve.type==="table"){let J=S+(oe-g)/ve.data.length;return J=J<36?36:J,J===S?{...ve,left:he,width:q}:{...ve,left:he,top:me,width:q,height:oe,cellMinHeight:J<36?36:J}}return{...ve,left:he,top:me,width:q,height:oe}})},U=Z=>{A=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const B=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,G=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;k===B&&F===G||(o.updateSlide({elements:e.value}),r.setScalingState(!1),l())};m?(document.ontouchmove=ae,document.ontouchend=U):(document.onmousemove=ae,document.onmouseup=U)},scaleMultiElement:(d,h,p)=>{let m=!0;const{minX:A,maxX:x,minY:R,maxY:y}=h,g=x-A,S=y-R,L=g/S,T=d.pageX,M=d.pageY,O=JSON.parse(JSON.stringify(e.value));document.onmousemove=k=>{if(!m)return;const F=k.pageX,N=k.pageY,E=(F-T)/n.value;let P=(N-M)/n.value;c.value&&((p===mt.RIGHT_BOTTOM||p===mt.LEFT_TOP)&&(P=E/L),(p===mt.LEFT_BOTTOM||p===mt.RIGHT_TOP)&&(P=-E/L));let _=A,I=x,W=R,D=y;p===mt.RIGHT_BOTTOM?(I=x+E,D=y+P):p===mt.LEFT_BOTTOM?(_=A+E,D=y+P):p===mt.LEFT_TOP?(_=A+E,W=R+P):p===mt.RIGHT_TOP?(I=x+E,W=R+P):p===mt.TOP?W=R+P:p===mt.BOTTOM?D=y+P:p===mt.LEFT?_=A+E:p===mt.RIGHT&&(I=x+E);const z=I-_,ae=D-W;let U=z/g,Z=ae/S;U<=0&&(U=0),Z<=0&&(Z=0),e.value=e.value.map(B=>{if((B.type==="image"||B.type==="shape")&&i.value.includes(B.id)){const G=O.find(Q=>Q.id===B.id);return{...B,width:G.width*U,height:G.height*Z,left:_+(G.left-A)*U,top:W+(G.top-R)*Z}}return B})},document.onmouseup=k=>{m=!1,document.onmousemove=null,document.onmouseup=null,!(T===k.pageX&&M===k.pageY)&&(o.updateSlide({elements:e.value}),l())}}}},Loe=(e,t)=>{const n=ft(),{activeElementIdList:r,activeGroupElementId:o,handleElementId:i,editorAreaFocus:a}=Xe(n),{ctrlOrShiftKeyActive:s}=Xe(Ss());return{selectElement:(l,u,f=!0)=>{if(a.value||n.setEditorareaFocus(!0),r.value.includes(u.id)){if(s.value){let d=[];if(u.groupId){const h=[];e.value.forEach(p=>{p.groupId===u.groupId&&h.push(p.id)}),d=r.value.filter(p=>!h.includes(p))}else d=r.value.filter(h=>h!==u.id);d.length>0&&n.setActiveElementIdList(d)}else if(i.value!==u.id)n.setHandleElementId(u.id);else if(o.value!==u.id){const d=l instanceof MouseEvent?l.pageX:l.changedTouches[0].pageX,h=l instanceof MouseEvent?l.pageY:l.changedTouches[0].pageY;l.target.onmouseup=p=>{const m=p.pageX,A=p.pageY;d===m&&h===A&&(n.setActiveGroupElementId(u.id),p.target.onmouseup=null)}}}else{let d=[];if(s.value?d=[...r.value,u.id]:d=[u.id],u.groupId){const h=[];e.value.forEach(p=>{p.groupId===u.groupId&&h.push(p.id)}),d=[...d,...h]}n.setActiveElementIdList(_n.uniq(d)),n.setHandleElementId(u.id)}f&&t(l,u)}}},pI=(e,t,n)=>{const r=ct(),{activeElementIdList:o,activeGroupElementId:i}=Xe(ft()),{shiftKeyState:a}=Xe(Ss()),{viewportRatio:s}=Xe(r),{addHistorySnapshot:c}=zt();return{dragElement:(u,f)=>{const d=!(u instanceof MouseEvent);if(d&&(!u.changedTouches||!u.changedTouches[0])||!o.value.includes(f.id))return;let h=!0;const p=Ht,m=Ht*s.value,A=5,R=JSON.parse(JSON.stringify(e.value)).filter(Z=>o.value.includes(Z.id)),y=f.left,g=f.top,S=f.width,L="height"in f&&f.height?f.height:0,T="rotate"in f&&f.rotate?f.rotate:0,M=d?u.changedTouches[0].pageX:u.pageX,O=d?u.changedTouches[0].pageY:u.pageY;let k=null;const F=f.id===i.value;let N=[],E=[];for(const Z of e.value){if(Z.type==="line"||F&&Z.id===f.id||!F&&o.value.includes(Z.id))continue;let B,G,Q,ie;if("rotate"in Z&&Z.rotate){const{xRange:$,yRange:j}=dd({left:Z.left,top:Z.top,width:Z.width,height:Z.height,rotate:Z.rotate});B=$[0],G=j[0],Q=$[1]-$[0],ie=j[1]-j[0]}else B=Z.left,G=Z.top,Q=Z.width,ie=Z.height;const q=B+Q,oe=G+ie,he=G+ie/2,me=B+Q/2,ve={value:G,range:[B,q]},J={value:oe,range:[B,q]},ue={value:he,range:[B,q]},X={value:B,range:[G,oe]},te={value:q,range:[G,oe]},le={value:me,range:[G,oe]};N.push(ve,J,ue),E.push(X,te,le)}const P={value:0,range:[0,p]},_={value:m,range:[0,p]},I={value:m/2,range:[0,p]},W={value:0,range:[0,m]},D={value:p,range:[0,m]},z={value:p/2,range:[0,m]};N.push(P,_,I),E.push(W,D,z),N=Uv(N),E=Uv(E);const ae=Z=>{const B=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,G=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;if(k!==!1&&(k=Math.abs(M-B)Math.abs(ie)&&(ie=0),Math.abs(Q)j.id===f.id?{...j,left:q,top:oe}:j);else{const j=e.value.find(se=>se.id===f.id);if(!j)return;e.value=e.value.map(se=>o.value.includes(se.id)?se.id===f.id?{...se,left:q,top:oe}:{...se,left:se.left+(q-j.left),top:se.top+(oe-j.top)}:se)}},U=Z=>{h=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const B=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,G=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;M===B&&O===G||(r.updateSlide({elements:e.value}),c())};d?(document.ontouchmove=ae,document.ontouchend=U):(document.onmousemove=ae,document.onmouseup=U)}}},Ooe=e=>{const t=ct(),{canvasScale:n}=Xe(ft()),{ctrlOrShiftKeyActive:r}=Xe(Ss()),{addHistorySnapshot:o}=zt();return{dragLineElement:(a,s,c)=>{let l=!0;const u=8,f=a.pageX,d=a.pageY,h=[];for(let p=0;p{if(!l)return;const m=p.pageX,A=p.pageY,x=(m-f)/n.value,R=(A-d)/n.value;let y=s.left+s.start[0],g=s.top+s.start[1],S=s.left+s.end[0],L=s.top+s.end[1];const T=s.broken||s.curve||[0,0];let M=s.left+T[0],O=s.top+T[1];const[k,F]=s.cubic||[[0,0],[0,0]];let N=s.left+k[0],E=s.top+k[1],P=s.left+F[0],_=s.top+F[1];if(c===Go.START){y=y+x,g=g+R,Math.abs(y-S)S&&(ae[0]=D-I,U[0]=0),g>L&&(ae[1]=z-W,U[1]=0),e.value=e.value.map(Z=>{if(Z.id===s.id){const B={...Z,left:I,top:W,start:ae,end:U};return c===Go.START||c===Go.END?r.value?(s.broken&&(B.broken=[M-I,O-W]),s.curve&&(B.curve=[M-I,O-W]),s.cubic&&(B.cubic=[[N-I,E-W],[P-I,_-W]])):(s.broken&&(B.broken=[(ae[0]+U[0])/2,(ae[1]+U[1])/2]),s.curve&&(B.curve=[(ae[0]+U[0])/2,(ae[1]+U[1])/2]),s.cubic&&(B.cubic=[[(ae[0]+U[0])/2,(ae[1]+U[1])/2],[(ae[0]+U[0])/2,(ae[1]+U[1])/2]])):c===Go.C?(s.broken&&(B.broken=[M-I,O-W]),s.curve&&(B.curve=[M-I,O-W])):s.cubic&&(B.cubic=[[N-I,E-W],[P-I,_-W]]),B}return Z})},document.onmouseup=p=>{l=!1,document.onmousemove=null,document.onmouseup=null;const m=p.pageX,A=p.pageY;f===m&&d===A||(t.updateSlide({elements:e.value}),o())}}}},Toe=(e,t)=>{const n=ct(),{addHistorySnapshot:r}=zt();return{moveShapeKeypoint:(i,a)=>{const s=!(i instanceof MouseEvent);if(s&&(!i.changedTouches||!i.changedTouches[0]))return;let c=!0;const l=s?i.changedTouches[0].pageX:i.pageX,u=s?i.changedTouches[0].pageY:i.pageY,f=Ju[a.pathFormula];let d=null;if("editable"in f){const m=f.getBaseSize(a.width,a.height),A=m*a.keypoint,[x,R]=f.range,y=f.relative;d={baseSize:m,originPos:A,min:x,max:R,relative:y}}const h=m=>{if(!c)return;const A=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,x=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY,R=(A-l)/t.value,y=(x-u)/t.value;e.value=e.value.map(g=>{if(g.id===a.id&&d){const{baseSize:S,originPos:L,min:T,max:M,relative:O}=d,k=g;let F=0;return O==="left"&&(F=(L+R)/S),O==="right"&&(F=(L-R)/S),O==="center"&&(F=(L-R*2)/S),O==="top"&&(F=(L+y)/S),O==="bottom"&&(F=(L-y)/S),FM&&(F=M),{...g,keypoint:F,path:f.formula(k.width,k.height,F)}}return g})},p=m=>{c=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const A=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,x=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY;l===A&&u===x||(n.updateSlide({elements:e.value}),r())};s?(document.ontouchmove=h,document.ontouchend=p):(document.onmousemove=h,document.onmouseup=p)}}},koe=e=>{const t=ft(),{canvasScale:n,creatingElement:r}=Xe(t),o=u=>{const{start:f,end:d}=u;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,m]=f,[A,x]=d,R=Math.min(p,A),y=Math.max(p,A),g=Math.min(m,x),S=Math.max(m,x),L=(R-h.x)/n.value,T=(g-h.y)/n.value,M=(y-R)/n.value,O=(S-g)/n.value;return{left:L,top:T,width:M,height:O}},i=u=>{const{start:f,end:d}=u;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,m]=f,[A,x]=d,R=Math.min(p,A),y=Math.max(p,A),g=Math.min(m,x),S=Math.max(m,x),L=(R-h.x)/n.value,T=(g-h.y)/n.value,M=(y-R)/n.value,O=(S-g)/n.value;return{left:L,top:T,start:[p===R?0:M,m===g?0:O],end:[A===R?0:M,x===g?0:O]}},{createTextElement:a,createShapeElement:s,createLineElement:c}=$u();return{formatCreateSelection:o,insertElementFromCreateSelection:u=>{if(!r.value)return;const f=r.value.type;if(f==="text"){const d=o(u);d&&a(d,{vertical:r.value.vertical})}else if(f==="shape"){const d=o(u);d&&s(d,r.value.data)}else if(f==="line"){const d=i(u);d&&c(d,r.value.data)}t.setCreatingElement(null)}}},a2=()=>{const e=ct(),{activeElementIdList:t,activeElementList:n}=Xe(ft()),{currentSlide:r,viewportRatio:o}=Xe(e),{addHistorySnapshot:i}=zt();return{alignElementToCanvas:s=>{const c=Ht,l=Ht*o.value,{minX:u,maxX:f,minY:d,maxY:h}=ec(n.value),p=JSON.parse(JSON.stringify(r.value.elements));for(const m of p)if(t.value.includes(m.id)){if(s===nn.CENTER){const A=d+(h-d)/2-l/2,x=u+(f-u)/2-c/2;m.top=m.top-A,m.left=m.left-x}if(s===nn.TOP){const A=d-0;m.top=m.top-A}else if(s===nn.VERTICAL){const A=d+(h-d)/2-l/2;m.top=m.top-A}else if(s===nn.BOTTOM){const A=h-l;m.top=m.top-A}else if(s===nn.LEFT){const A=u-0;m.left=m.left-A}else if(s===nn.HORIZONTAL){const A=u+(f-u)/2-c/2;m.left=m.left-A}else if(s===nn.RIGHT){const A=f-c;m.left=m.left-A}}e.updateSlide({elements:p}),i()}}},Lc=e=>({shadowStyle:Me(()=>{if(e.value){const{h:n,v:r,blur:o,color:i}=e.value;return`${n}px ${r}px ${o}px ${i}`}return""})}),s2=(e,t)=>({flipStyle:Me(()=>{let r="";return e.value&&t.value?r="rotateX(180deg) rotateY(180deg)":t.value?r="rotateX(180deg)":e.value&&(r="rotateY(180deg)"),r})});var mI=(e=>(e.RECT="rect",e.ELLIPSE="ellipse",e.POLYGON="polygon",e))(mI||{});const B3={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 0 0 0 round 10px 10px 10px 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`}},i5=e=>{const t=Me(()=>{if(!e.value)return B3.rect;const r=e.value.shape||mI.RECT;return B3[r]}),n=Me(()=>{if(!e.value)return{top:"0",left:"0",width:"100%",height:"100%"};const[r,o]=e.value.range,i=(o[0]-r[0])/100,a=(o[1]-r[1])/100,s=r[0]/i,c=r[1]/a;return{left:-s+"%",top:-c+"%",width:100/i+"%",height:100/a+"%"}});return{clipShape:t,imgPosition:n}},vI=e=>({filter:Me(()=>{if(!e.value)return"";let n="";const r=Object.keys(e.value);for(const o of r)n+=`${o}(${e.value[o]}) `;return n})}),Gd=e=>{const t=Me(()=>{var i;return((i=e.value)==null?void 0:i.width)??0}),n=Me(()=>{var i;return((i=e.value)==null?void 0:i.style)||"solid"}),r=Me(()=>{var i;return((i=e.value)==null?void 0:i.color)||"#d14424"}),o=Me(()=>{if(n.value!=="dashed")return"0 0";const i=t.value;return i<=6?`${i*4.5} ${i*2}`:`${i*4} ${i*1.5}`});return{outlineWidth:t,outlineStyle:n,outlineColor:r,strokeDashArray:o}},Noe=["width","height"],Poe=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],Coe=Fe({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=Gd(Wd(t,"outline"));return(i,a)=>i.outline?(Y(),ee("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:i.width,height:i.height},[V("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:i.radius,ry:i.radius,width:i.width,height:i.height,stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,Poe)],8,Noe)):Be("",!0)}}),Ioe=Ue(Coe,[["__scopeId","data-v-09a0319c"]]),Foe=["width","height"],_oe=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],Eoe=Fe({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=Gd(Wd(t,"outline"));return(i,a)=>i.outline?(Y(),ee("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:i.width,height:i.height},[V("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:i.width/2,cy:i.height/2,rx:i.width/2,ry:i.height/2,stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,_oe)],8,Foe)):Be("",!0)}}),Xoe=Ue(Eoe,[["__scopeId","data-v-19e68d74"]]),Woe=["width","height"],Voe=["d","stroke","stroke-width","stroke-dasharray"],Uoe=Fe({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=Gd(Wd(t,"outline"));return(i,a)=>i.outline?(Y(),ee("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:i.width,height:i.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:i.createPath(i.width,i.height),stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,Voe)],8,Woe)):Be("",!0)}}),Yoe=Ue(Uoe,[["__scopeId","data-v-a036b0a3"]]),Qoe={class:"image-outline"},gI=Fe({__name:"index",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.clip),{clipShape:r}=i5(n);return(o,i)=>(Y(),ee("div",Qoe,[H(r).type==="rect"?(Y(),we(Ioe,{key:0,width:o.elementInfo.width,height:o.elementInfo.height,radius:H(r).radius,outline:o.elementInfo.outline},null,8,["width","height","radius","outline"])):H(r).type==="ellipse"?(Y(),we(Xoe,{key:1,width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"])):H(r).type==="polygon"?(Y(),we(Yoe,{key:2,width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline,createPath:H(r).createPath},null,8,["width","height","outline","createPath"])):Be("",!0)]))}}),AI=e=>(on("data-v-31b3b0f9"),e=e(),an(),e),Zoe=["src"],Boe=["src"],Doe=["onMousedown"],Koe=AI(()=>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)),Hoe=[Koe],Goe=["onMousedown"],zoe=AI(()=>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)),Joe=[zoe],$oe=Fe({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:o}=Xe(ft()),{ctrlOrShiftKeyActive:i}=Xe(Ss()),a=pe({top:"0",left:"0"}),s=pe(!1),c=pe(null),l=()=>{const[M,O]=n.clipData?n.clipData.range:[[0,0],[100,100]],k=(O[0]-M[0])/100,F=(O[1]-M[1])/100,N=M[0]/k,E=M[1]/F;return{widthScale:k,heightScale:F,left:N,top:E}},u=Me(()=>{const{widthScale:M,heightScale:O,left:k,top:F}=l();return{left:-k,top:-F,width:100/M,height:100/O}}),f=Me(()=>({top:u.value.top+"%",left:u.value.left+"%",width:u.value.width+"%",height:u.value.height+"%"})),d=pe({top:0,left:0,width:0,height:0}),h=Me(()=>{const{top:M,left:O,width:k,height:F}=d.value;return{top:M+"%",left:O+"%",width:k+"%",height:F+"%"}}),p=Me(()=>{const M=u.value.width,O=u.value.height,{top:k,left:F,width:N,height:E}=d.value;return{left:-F*(100/N)+"%",top:-k*(100/E)+"%",width:M/N*100+"%",height:O/E*100+"%"}}),m=()=>{const{left:M,top:O}=l();d.value={left:M,top:O,width:100,height:100},a.value={top:-O+"%",left:-M+"%"}},A=()=>{if(s.value)return;if(!c.value){r("clip",null);return}const{left:M,top:O}=l(),k={left:(d.value.left-M)/100*n.width,top:(d.value.top-O)/100*n.height,width:(d.value.width-100)/100*n.width,height:(d.value.height-100)/100*n.height},F={range:c.value,position:k};r("clip",F)},x=M=>{M.key.toUpperCase()===yt.ENTER&&A()};Gt(()=>{m(),document.addEventListener("keydown",x)}),On(()=>{document.removeEventListener("keydown",x)});const R=()=>{const M={left:parseInt(p.value.left),top:parseInt(p.value.top),width:parseInt(p.value.width),height:parseInt(p.value.height)},O=100/M.width,k=100/M.height,F=[-M.left*O,-M.top*k],N=[O*100+F[0],k*100+F[1]];c.value=[F,N]},y=M=>{s.value=!0;let O=!0;const k=M.pageX,F=M.pageY,N=u.value,E={...d.value};document.onmousemove=P=>{if(!O)return;const _=P.pageX,I=P.pageY,W=(_-k)/o.value,D=(I-F)/o.value,z=Math.sqrt(W*W+D*D),U=Math.atan2(D,W)-n.rotate/180*Math.PI,Z=z*Math.cos(U)/n.width*100,B=z*Math.sin(U)/n.height*100;let G=E.left+Z,Q=E.top+B;G<0?G=0:G+E.width>N.width&&(G=N.width-E.width),Q<0?Q=0:Q+E.height>N.height&&(Q=N.height-E.height),d.value={...d.value,left:G,top:Q}},document.onmouseup=()=>{O=!1,document.onmousemove=null,document.onmouseup=null,R(),setTimeout(()=>{s.value=!1},0)}},g=(M,O)=>{s.value=!0;let k=!0;const F=50/n.width*100,N=50/n.height*100,E=M.pageX,P=M.pageY,_=u.value,I={...d.value},W=d.value.width/d.value.height;document.onmousemove=D=>{if(!k)return;const z=D.pageX,ae=D.pageY,U=(z-E)/o.value,Z=(ae-P)/o.value,B=Math.sqrt(U*U+Z*Z),Q=Math.atan2(Z,U)-n.rotate/180*Math.PI;let ie=B*Math.cos(Q)/n.width*100,q=B*Math.sin(Q)/n.height*100;i.value&&((O===mt.RIGHT_BOTTOM||O===mt.LEFT_TOP)&&(q=ie/W),(O===mt.LEFT_BOTTOM||O===mt.RIGHT_TOP)&&(q=-ie/W));let oe,he,me,ve;O===mt.LEFT_TOP?(I.left+ie<0&&(ie=-I.left),I.top+q<0&&(q=-I.top),I.width-ie_.width&&(ie=_.width-(I.left+I.width)),I.top+q<0&&(q=-I.top),I.width+ie_.height&&(q=_.height-(I.top+I.height)),I.width-ie_.width&&(ie=_.width-(I.left+I.width)),I.top+I.height+q>_.height&&(q=_.height-(I.top+I.height)),I.width+ie_.height&&(q=_.height-(I.top+I.height)),I.height+q_.width&&(ie=_.width-(I.left+I.width)),I.width+ie{k=!1,document.onmousemove=null,document.onmouseup=null,R(),setTimeout(()=>s.value=!1,0)}},S=Me(()=>{const M="rotate-",O=n.rotate;return O>-22.5&&O<=22.5?M+0:O>22.5&&O<=67.5?M+45:O>67.5&&O<=112.5?M+90:O>112.5&&O<=157.5?M+135:O>157.5||O<=-157.5?M+0:O>-157.5&&O<=-112.5?M+45:O>-112.5&&O<=-67.5?M+90:O>-67.5&&O<=-22.5?M+135:M+0}),L=[mt.LEFT_TOP,mt.RIGHT_TOP,mt.LEFT_BOTTOM,mt.RIGHT_BOTTOM],T=[mt.TOP,mt.BOTTOM,mt.LEFT,mt.RIGHT];return(M,O)=>{const k=Mn("click-outside");return De((Y(),ee("div",{class:"image-clip-handler",style:Le(a.value)},[V("img",{class:"bottom-img",src:M.src,draggable:!1,alt:"",style:Le(f.value)},null,12,Zoe),V("div",{class:"top-image-content",style:Le({...h.value,clipPath:M.clipPath})},[V("img",{class:"top-img",src:M.src,draggable:!1,alt:"",style:Le(p.value)},null,12,Boe)],4),V("div",{class:"operate",style:Le(h.value),onMousedown:O[0]||(O[0]=Wt(F=>y(F),["stop"]))},[(Y(),ee(Ve,null,it(L,F=>V("div",{class:$e(["clip-point",F,S.value]),key:F,onMousedown:Wt(N=>g(N,F),["stop"])},Hoe,42,Doe)),64)),(Y(),ee(Ve,null,it(T,F=>V("div",{class:$e(["clip-point",F,S.value]),key:F,onMousedown:Wt(N=>g(N,F),["stop"])},Joe,42,Goe)),64))],36)],4)),[[k,A]])}}}),joe=Ue($oe,[["__scopeId","data-v-31b3b0f9"]]),qoe=["src"],eie=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{clipingImageElementId:o}=Xe(n),i=Me(()=>o.value===t.elementInfo.id),{addHistorySnapshot:a}=zt(),s=Me(()=>t.elementInfo.shadow),{shadowStyle:c}=Lc(s),l=Me(()=>t.elementInfo.flipH),u=Me(()=>t.elementInfo.flipV),{flipStyle:f}=s2(l,u),d=Me(()=>t.elementInfo.clip),{clipShape:h,imgPosition:p}=i5(d),m=Me(()=>t.elementInfo.filters),{filter:A}=vI(m),x=y=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo))},R=y=>{if(n.setClipingImageElementId(""),!y)return;const{range:g,position:S}=y,L=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},T=t.elementInfo.left+S.left,M=t.elementInfo.top+S.top,O=t.elementInfo.width+S.width,k=t.elementInfo.height+S.height;let F=0,N=0;if(t.elementInfo.rotate){const P=T+O/2-(t.elementInfo.left+t.elementInfo.width/2),_=-(M+k/2-(t.elementInfo.top+t.elementInfo.height/2)),I=-t.elementInfo.rotate*Math.PI/180,W=P*Math.cos(I)-_*Math.sin(I),D=P*Math.sin(I)+_*Math.cos(I);F=W-P,N=-(D-_)}const E={clip:{...L,range:g},left:T+F,top:M+N,width:O,height:k};r.updateElement({id:t.elementInfo.id,props:E}),a()};return(y,g)=>{const S=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-image",{lock:y.elementInfo.lock}]),style:Le({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:Le({transform:`rotate(${y.elementInfo.rotate}deg)`})},[i.value?(Y(),we(joe,{key:0,src:y.elementInfo.src,clipData:y.elementInfo.clip,width:y.elementInfo.width,height:y.elementInfo.height,top:y.elementInfo.top,left:y.elementInfo.left,rotate:y.elementInfo.rotate,clipPath:H(h).style,onClip:g[0]||(g[0]=L=>R(L))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):De((Y(),ee("div",{key:1,class:"element-content",style:Le({filter:H(c)?`drop-shadow(${H(c)})`:"",transform:H(f)}),onMousedown:g[2]||(g[2]=L=>x(L)),onTouchstart:g[3]||(g[3]=L=>x(L))},[w(gI,{elementInfo:y.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Le({clipPath:H(h).style})},[V("img",{src:y.elementInfo.src,draggable:!1,style:Le({top:H(p).top,left:H(p).left,width:H(p).width,height:H(p).height,filter:H(A)}),onDragstart:g[1]||(g[1]=Wt(()=>{},["prevent"])),alt:""},null,44,qoe),y.elementInfo.colorMask?(Y(),ee("div",{key:0,class:"color-mask",style:Le({backgroundColor:y.elementInfo.colorMask})},null,4)):Be("",!0)],4)],36)),[[S,y.contextmenus]])],4)],6)}}}),RI=Ue(eie,[["__scopeId","data-v-d615c21a"]]),tie=["width","height"],nie=["d","stroke","stroke-width","stroke-dasharray"],rie=Fe({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=Gd(Wd(t,"outline"));return(i,a)=>i.outline?(Y(),ee("svg",{key:0,class:"element-outline",overflow:"visible",width:i.width,height:i.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${i.width},0 L${i.width},${i.height} L0,${i.height} Z`,stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,nie)],8,tie)):Be("",!0)}}),l2=Ue(rie,[["__scopeId","data-v-e2ef58f5"]]),Co=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},ip=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let WO=null;const Zs=function(e,t,n){let r=WO||(WO=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Vu=function(e,t,n,r){return n&&(VO(e,t,n,r,-1)||VO(e,t,n,r,1))},oie=/^(img|br|input|textarea|hr)$/i;function VO(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:is(e))){let i=e.parentNode;if(!i||i.nodeType!=1||a5(e)||oie.test(e.nodeName)||e.contentEditable=="false")return!1;t=Co(e)+(o<0?0:1),e=i}else if(e.nodeType==1){if(e=e.childNodes[t+(o<0?-1:0)],e.contentEditable=="false")return!1;t=o<0?is(e):0}else return!1}}function is(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function iie(e,t,n){for(let r=t==0,o=t==is(e);r||o;){if(e==n)return!0;let i=Co(e);if(e=e.parentNode,!e)return!1;r=r&&i==0,o=o&&i==is(e)}}function a5(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const c2=function(e){return e.focusNode&&Vu(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function tu(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function aie(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function sie(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const vs=typeof navigator<"u"?navigator:null,UO=typeof document<"u"?document:null,Oc=vs&&vs.userAgent||"",D3=/Edge\/(\d+)/.exec(Oc),yI=/MSIE \d/.exec(Oc),K3=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Oc),ni=!!(yI||K3||D3),lc=yI?document.documentMode:K3?+K3[1]:D3?+D3[1]:0,Ia=!ni&&/gecko\/(\d+)/i.test(Oc);Ia&&+(/Firefox\/(\d+)/.exec(Oc)||[0,0])[1];const H3=!ni&&/Chrome\/(\d+)/.exec(Oc),po=!!H3,lie=H3?+H3[1]:0,Eo=!ni&&!!vs&&/Apple Computer/.test(vs.vendor),Id=Eo&&(/Mobile\/\w+/.test(Oc)||!!vs&&vs.maxTouchPoints>2),Ki=Id||(vs?/Mac/.test(vs.platform):!1),cie=vs?/Win/.test(vs.platform):!1,wa=/Android \d/.test(Oc),Yp=!!UO&&"webkitFontSmoothing"in UO.documentElement.style,uie=Yp?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function fie(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Ws(e,t){return typeof e=="number"?e:e[t]}function die(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 YO(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let a=n||e.dom;a;a=ip(a)){if(a.nodeType!=1)continue;let s=a,c=s==i.body,l=c?fie(i):die(s),u=0,f=0;if(t.topl.bottom-Ws(r,"bottom")&&(f=t.bottom-t.top>l.bottom-l.top?t.top+Ws(o,"top")-l.top:t.bottom-l.bottom+Ws(o,"bottom")),t.leftl.right-Ws(r,"right")&&(u=t.right-l.right+Ws(o,"right")),u||f)if(c)i.defaultView.scrollBy(u,f);else{let d=s.scrollLeft,h=s.scrollTop;f&&(s.scrollTop+=f),u&&(s.scrollLeft+=u);let p=s.scrollLeft-d,m=s.scrollTop-h;t={left:t.left-p,top:t.top-m,right:t.right-p,bottom:t.bottom-m}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function hie(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,o;for(let i=(t.left+t.right)/2,a=n+1;a=n-20){r=s,o=c.top;break}}return{refDOM:r,refTop:o,stack:xI(e.dom)}}function xI(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=ip(r));return t}function pie({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;bI(n,r==0?0:r-t)}function bI(e,t){for(let n=0;n=s){a=Math.max(p.bottom,a),s=Math.min(p.top,s);let m=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={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)&&(i=f+1)}}return!n&&c&&(n=c,o=l,r=0),n&&n.nodeType==3?vie(n,o):!n||r&&n.nodeType==1?{node:e,offset:i}:SI(n,o)}function vie(e,t){let n=e.nodeValue.length,r=document.createRange();for(let o=0;o=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}function s5(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function gie(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,o,i)}function Rie(e,t,n,r){let o=-1;for(let i=t,a=!1;i!=e.dom;){let s=e.docView.nearestDesc(i,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent&&!a||!s.contentDOM)){let c=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&!a&&(a=!0,c.left>r.left||c.top>r.top?o=s.posBefore:(c.right-1?o:e.docView.posFromDOM(t,n,-1)}function MI(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&o++}let l;Yp&&o&&r.nodeType==1&&(l=r.childNodes[o-1]).nodeType==1&&l.contentEditable=="false"&&l.getBoundingClientRect().top>=t.top&&o--,r==e.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(s=Rie(e,r,o,t))}s==null&&(s=Aie(e,a,t));let c=e.docView.nearestDesc(a,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function QO(e){return e.top=0&&o==r.nodeValue.length?(c--,u=1):n<0?c--:l++,A0(Wl(Zs(r,c,l),u),u<0)}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==is(r))){let c=r.childNodes[o-1];if(c.nodeType==1)return Wy(c.getBoundingClientRect(),!1)}if(i==null&&o=0)}if(i==null&&o&&(n<0||o==is(r))){let c=r.childNodes[o-1],l=c.nodeType==3?Zs(c,is(c)-(a?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(l)return A0(Wl(l,1),!1)}if(i==null&&o=0)}function A0(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 Wy(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 LI(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}function bie(e,t,n){let r=t.selection,o=n=="up"?r.$from:r.$to;return LI(e,t,()=>{let{node:i}=e.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(i,!0);if(!s)break;if(s.node.isBlock){i=s.contentDOM||s.dom;break}i=s.dom.parentNode}let a=wI(e,o.pos,1);for(let s=i.firstChild;s;s=s.nextSibling){let c;if(s.nodeType==1)c=s.getClientRects();else if(s.nodeType==3)c=Zs(s,0,s.nodeValue.length).getClientRects();else continue;for(let l=0;lu.top+1&&(n=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}const Sie=/[\u0590-\u08ac]/;function Mie(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=e.domSelection();return!Sie.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?i:a:LI(e,t,()=>{let{focusNode:c,focusOffset:l,anchorNode:u,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:m}=e.domSelectionRange(),A=p&&!h.contains(p.nodeType==1?p:p.parentNode)||c==p&&l==m;try{s.collapse(u,f),c&&(c!=u||l!=f)&&s.extend&&s.extend(c,l)}catch{}return d!=null&&(s.caretBidiLevel=d),A})}let ZO=null,BO=null,DO=!1;function wie(e,t,n){return ZO==t&&BO==n?DO:(ZO=t,BO=n,DO=n=="up"||n=="down"?bie(e,t,n):Mie(e,t,n))}const ji=0,KO=1,au=2,gs=3;class Qp{constructor(t,n,r,o){this.parent=t,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=ji,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;nCo(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=t;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==t.childNodes.length)for(let i=t;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,o=t;o;o=o.parentNode){let i=this.getDesc(o),a;if(i&&(!n||i.node))if(r&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return i}}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 o=t;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||a instanceof TI){o=t-i;break}i=s}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof OI&&i.side>=0;r--);if(n<=0){let i,a=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,a=!1);return i&&n&&a&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?Co(i.dom)+1:0}}else{let i,a=!0;for(;i=r=u&&n<=l-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(t,n,u);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)){o=Co(d.dom)+1;break}t-=d.size}o==-1&&(o=0)}if(o>-1&&(l>n||s==this.children.length-1)){n=l;for(let u=s+1;uh&&an){let h=s;s=c,c=h}let d=document.createRange();d.setEnd(c.node,c.offset),d.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(d)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,o=0;o=r:tr){let s=r+i.border,c=a-i.border;if(t>=s&&n<=c){this.dirty=t==r||n==a?au:KO,t==s&&n==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=gs:i.markDirty(t-s,n-s);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?au:gs}r=a}this.dirty=au}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?au:KO;n.dirty{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,i=this}matchesWidget(t){return this.dirty==ji&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Lie extends Qp{constructor(t,n,r,o){super(t,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Uu extends Qp{constructor(t,n,r,o){super(t,[],r,o),this.mark=n}static create(t,n,r,o){let i=o.nodeViews[n.type.name],a=i&&i(n,o,r);return(!a||!a.dom)&&(a=Js.renderSpec(document,n.type.spec.toDOM(n,r))),new Uu(t,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&gs||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=gs&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=ji){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(i=J3(i,0,t,r));for(let s=0;s{if(!c)return a;if(c.parent)return c.parent.posBeforeChild(c)},r,o),u=l&&l.dom,f=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=Js.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let d=u;return u=PI(u,r,n),l?c=new Oie(t,n,r,o,u,f||null,d,l,i,a+1):n.isText?new u2(t,n,r,o,u,d,i):new cc(t,n,r,o,u,f||null,d,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>lt.empty)}return t}matchesNode(t,n,r){return this.dirty==ji&&t.eq(this.node)&&z3(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,o=n,i=t.composing?this.localCompositionInfo(t,n):null,a=i&&i.pos>-1?i:null,s=i&&i.pos<0,c=new kie(this,a&&a.node,t);Cie(this.node,this.innerDeco,(l,u,f)=>{l.spec.marks?c.syncToMarks(l.spec.marks,r,t):l.type.side>=0&&!f&&c.syncToMarks(u==this.node.childCount?Fn.none:this.node.child(u).marks,r,t),c.placeWidget(l,t,o)},(l,u,f,d)=>{c.syncToMarks(l.marks,r,t);let h;c.findNodeMatch(l,u,f,d)||s&&t.state.selection.from>o&&t.state.selection.to-1&&c.updateNodeAt(l,u,f,h,t)||c.updateNextNode(l,u,f,t,d,o)||c.addNode(l,u,f,t,o),o+=l.nodeSize}),c.syncToMarks([],r,t),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==au)&&(a&&this.protectLocalComposition(t,a),kI(this.contentDOM,this.children,t),Id&&Iie(this.dom))}localCompositionInfo(t,n){let{from:r,to:o}=t.state.selection;if(!(t.state.selection instanceof Xn)||rn+this.node.content.size)return null;let i=t.domSelectionRange(),a=Fie(i.focusNode,i.focusOffset);if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let s=a.nodeValue,c=_ie(this.node.content,s,r-n,o-n);return c<0?null:{node:a,pos:c,text:s}}else return{node:a,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new Lie(this,i,n,o);t.input.compositionNodes.push(a),this.children=J3(this.children,r,r+o.length,t,a)}update(t,n,r,o){return this.dirty==gs||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,o),!0)}updateInner(t,n,r,o){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=ji}updateOuterDeco(t){if(z3(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=NI(this.dom,this.nodeDOM,G3(this.outerDeco,this.node,n),G3(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function HO(e,t,n,r,o){PI(r,t,e);let i=new cc(void 0,e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class u2 extends cc{constructor(t,n,r,o,i,a,s){super(t,n,r,o,i,null,a,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,o){return this.dirty==gs||this.dirty!=ji&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=ji||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=t,this.dirty=ji,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let o=this.node.cut(t,n),i=document.createTextNode(o.text);return new u2(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=gs)}get domAtom(){return!1}}class TI extends Qp{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==ji&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Oie extends cc{constructor(t,n,r,o,i,a,s,c,l,u){super(t,n,r,o,i,a,s,l,u),this.spec=c}update(t,n,r,o){if(this.dirty==gs)return!1;if(this.spec.update){let i=this.spec.update(t,n,r);return i&&this.updateInner(t,n,r,o),i}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,o){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function kI(e,t,n){let r=e.firstChild,o=!1;for(let i=0;i>1,a=Math.min(i,t.length);for(;o-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let c=Uu.create(this.top,t[i],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(t,n,r,o){let i=-1,a;if(o>=this.preMatch.index&&(a=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,r))i=this.top.children.indexOf(a,this.index);else for(let s=this.index,c=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let l=n.children[r-1];if(l instanceof Uu)n=l,r=l.children.length;else{s=l,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=s.node;if(c){if(c!=e.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}function Pie(e,t){return e.type.side-t.type.side}function Cie(e,t,n,r){let o=t.locals(e),i=0;if(o.length==0){for(let l=0;li;)s.push(o[a++]);let p=i+d.nodeSize;if(d.isText){let A=p;a!A.inline):s.slice();r(d,m,t.forChild(i,d),h),i=p}}function Iie(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 Fie(e,t){for(;;){if(e.nodeType==3)return e;if(e.nodeType==1&&t>0){if(e.childNodes.length>t&&e.childNodes[t].nodeType==3)return e.childNodes[t];e=e.childNodes[t-1],t=is(e)}else if(e.nodeType==1&&t=n){if(i>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let l=s=0&&l+t.length+s>=n)return s+l;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function J3(e,t,n,r,o){let i=[];for(let a=0,s=0;a=n||u<=t?i.push(c):(ln&&i.push(c.slice(n-l,c.size,r)))}return i}function l5(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),i=o&&o.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),c,l;if(c2(n)){for(c=s;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&Yt.isSelectable(u)&&o.parent&&!(u.isInline&&iie(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;l=new Yt(a==f?s:r.resolve(f))}}else{let u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;c=r.resolve(u)}if(!l){let u=t=="pointer"||e.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=o)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!CI(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Xie(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,Co(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&ni&&lc<=11&&(r.disabled=!0,r.disabled=!1)}function II(e,t){if(t instanceof Yt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(jO(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else jO(e)}function jO(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function c5(e,t,n,r){return e.someProp("createSelectionBetween",o=>o(e,t,n))||Xn.between(t,n,r)}function qO(e){return e.editable&&!e.hasFocus()?!1:FI(e)}function FI(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 Wie(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Vu(t.node,t.offset,n.anchorNode,n.anchorOffset)}function $3(e,t){let{$anchor:n,$head:r}=e.selection,o=t>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&bn.findFrom(i,t)}function Bl(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function eT(e,t,n){let r=e.state.selection;if(r instanceof Xn)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(o.pos+i.nodeSize*(t<0?-1:1));return Bl(e,new Xn(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let o=$3(e.state,t);return o&&o instanceof Yt?Bl(e,o):!1}else if(!(Ki&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter,a;if(!i||i.isText)return!1;let s=t<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(a=e.docView.descAt(s))&&!a.contentDOM?Yt.isSelectable(i)?Bl(e,new Yt(t<0?e.state.doc.resolve(o.pos-i.nodeSize):o)):Yp?Bl(e,new Xn(e.state.doc.resolve(t<0?s:s+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Yt&&r.node.isInline)return Bl(e,new Xn(t>0?r.$to:r.$from));{let o=$3(e.state,t);return o?Bl(e,o):!1}}}function ng(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Th(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Of(e,t){return t<0?Vie(e):Uie(e)}function Vie(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=!1;for(Ia&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Th(s,-1))o=n,i=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(_I(n))break;{let s=n.previousSibling;for(;s&&Th(s,-1);)o=n.parentNode,i=Co(s),s=s.previousSibling;if(s)n=s,r=ng(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?j3(e,n,r):o&&j3(e,o,i)}function Uie(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o=ng(n),i,a;for(;;)if(r{e.state==o&&nl(e)},50)}function tT(e,t){let n=e.state.doc.resolve(t);if(!(po||cie)&&n.parent.inlineContent){let o=e.coordsAtPos(t);if(t>n.start()){let i=e.coordsAtPos(t-1),a=(i.top+i.bottom)/2;if(a>o.top&&a1)return i.lefto.top&&a1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function nT(e,t,n){let r=e.state.selection;if(r instanceof Xn&&!r.empty||n.indexOf("s")>-1||Ki&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=$3(e.state,t);if(a&&a instanceof Yt)return Bl(e,a)}if(!o.parent.inlineContent){let a=t<0?o:i,s=r instanceof qo?bn.near(a,t):bn.findFrom(a,t);return s?Bl(e,s):!1}return!1}function rT(e,t){if(!(e.state.selection instanceof Xn))return!0;let{$head:n,$anchor:r,empty:o}=e.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let a=e.state.tr;return t<0?a.delete(n.pos-i.nodeSize,n.pos):a.delete(n.pos,n.pos+i.nodeSize),e.dispatch(a),!0}return!1}function oT(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Zie(e){if(!Eo||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;oT(e,r,"true"),setTimeout(()=>oT(e,r,"false"),20)}return!1}function Bie(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function Die(e,t){let n=t.keyCode,r=Bie(t);if(n==8||Ki&&n==72&&r=="c")return rT(e,-1)||Of(e,-1);if(n==46&&!t.shiftKey||Ki&&n==68&&r=="c")return rT(e,1)||Of(e,1);if(n==13||n==27)return!0;if(n==37||Ki&&n==66&&r=="c"){let o=n==37?tT(e,e.state.selection.from)=="ltr"?-1:1:-1;return eT(e,o,r)||Of(e,o)}else if(n==39||Ki&&n==70&&r=="c"){let o=n==39?tT(e,e.state.selection.from)=="ltr"?1:-1:1;return eT(e,o,r)||Of(e,o)}else{if(n==38||Ki&&n==80&&r=="c")return nT(e,-1,r)||Of(e,-1);if(n==40||Ki&&n==78&&r=="c")return Zie(e)||nT(e,1,r)||Of(e,1);if(r==(Ki?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function EI(e,t){e.someProp("transformCopied",h=>{t=h(t,e)});let n=[],{content:r,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let a=e.someProp("clipboardSerializer")||Js.fromSchema(e.state.schema),s=QI(),c=s.createElement("div");c.appendChild(a.serializeFragment(r,{document:s}));let l=c.firstChild,u,f=0;for(;l&&l.nodeType==1&&(u=YI[l.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let p=s.createElement(u[h]);for(;c.firstChild;)p.appendChild(c.firstChild);c.appendChild(p),f++}l=c.firstChild}l&&l.nodeType==1&&l.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let d=e.someProp("clipboardTextSerializer",h=>h(t,e))||t.content.textBetween(0,t.content.size,` `);return{dom:c,text:d}}function XI(e,t,n,r,o){let i=o.parent.type.spec.code,a,s;if(!n&&!t)return null;let c=t&&(r||i||!n);if(c){if(e.someProp("transformPastedText",d=>{t=d(t,i||r,e)}),i)return t?new Rt(lt.from(e.state.schema.text(t.replace(/\r\n?/g,` -`))),0,0):Rt.empty;let f=e.someProp("clipboardTextParser",d=>d(t,o,r,e));if(f)s=f;else{let d=o.marks(),{schema:h}=e.state,p=Js.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let A=a.appendChild(document.createElement("p"));m&&A.appendChild(p.serializeNode(h.text(m,d)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=Gie(n),Yp&&zie(a);let l=a&&a.querySelector("[data-pm-slice]"),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let d=a.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;a=d}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||Sd.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(c||u),context:o,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!Kie.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)s=Jie(iT(s,+u[1],+u[2]),u[4]);else if(s=Rt.maxOpen(Hie(s.content,o),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f{s=f(s,e)}),s}const Kie=/^(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 Hie(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let o=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(s=>{if(!a)return;let c=o.findWrapping(s.type),l;if(!c)return a=null;if(l=a.length&&i.length&&VI(c,i,s,a[a.length-1],0))a[a.length-1]=l;else{a.length&&(a[a.length-1]=UI(a[a.length-1],i.length));let u=WI(s,c);a.push(u),o=o.matchType(u.type),i=c}}),a)return lt.from(a)}return e}function WI(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,lt.from(e));return e}function VI(e,t,n,r,o){if(o1&&(i=0),o=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(lt.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function iT(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=QI().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),o;if((o=r&&YI[r[1].toLowerCase()])&&(e=o.map(i=>"<"+i+">").join("")+e+o.map(i=>"").reverse().join("")),n.innerHTML=e,o)for(let i=0;i=0;s-=2){let c=n.nodes[r[s]];if(!c||c.hasRequiredAttrs())break;o=lt.from(c.create(r[s+1],o)),i++,a++}return new Rt(o,i,a)}const Xo={},Wo={},$ie={touchstart:!0,touchmove:!0};class jie{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function qie(e){for(let t in Xo){let n=Xo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{tae(e,r)&&!u5(e,r)&&(e.editable||!(r.type in Wo))&&n(e,r)},$ie[t]?{passive:!0}:void 0)}Eo&&e.dom.addEventListener("input",()=>null),ex(e)}function nc(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function eae(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function ex(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>u5(e,r))})}function u5(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function tae(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 nae(e,t){!u5(e,t)&&Xo[t.type]&&(e.editable||!(t.type in Wo))&&Xo[t.type](e,t)}Wo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!BI(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(wa&&po&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Id&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",o=>o(e,tu(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||Die(e,n)?n.preventDefault():nc(e,"key")};Wo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Wo.keypress=(e,t)=>{let n=t;if(BI(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ki&&n.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Xn)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",i=>i(e,r.$from.pos,r.$to.pos,o))&&e.dispatch(e.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function f2(e){return{left:e.clientX,top:e.clientY}}function rae(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function f5(e,t,n,r,o){if(r==-1)return!1;let i=e.state.doc.resolve(r);for(let a=i.depth+1;a>0;a--)if(e.someProp(t,s=>a>i.depth?s(e,n,i.nodeAfter,i.before(a),o,!0):s(e,n,i.node(a),i.before(a),o,!1)))return!0;return!1}function vd(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);n=="pointer"&&r.setMeta("pointer",!0),e.dispatch(r)}function oae(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Yt.isSelectable(r)?(vd(e,new Yt(n),"pointer"),!0):!1}function iae(e,t){if(t==-1)return!1;let n=e.state.selection,r,o;n instanceof Yt&&(r=n.node);let i=e.state.doc.resolve(t);for(let a=i.depth+1;a>0;a--){let s=a>i.depth?i.nodeAfter:i.node(a);if(Yt.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(a);break}}return o!=null?(vd(e,Yt.create(e.state.doc,o),"pointer"),!0):!1}function aae(e,t,n,r,o){return f5(e,"handleClickOn",t,n,r)||e.someProp("handleClick",i=>i(e,t,r))||(o?iae(e,n):oae(e,n))}function sae(e,t,n,r){return f5(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",o=>o(e,t,r))}function lae(e,t,n,r){return f5(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",o=>o(e,t,r))||cae(e,n,r)}function cae(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(vd(e,Xn.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(t);for(let i=o.depth+1;i>0;i--){let a=i>o.depth?o.nodeAfter:o.node(i),s=o.before(i);if(a.inlineContent)vd(e,Xn.create(r,s+1,s+1+a.content.size),"pointer");else if(Yt.isSelectable(a))vd(e,Yt.create(r,s),"pointer");else continue;return!0}}function d5(e){return rg(e)}const ZI=Ki?"metaKey":"ctrlKey";Xo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=d5(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&rae(n,e.input.lastClick)&&!n[ZI]&&(e.input.lastClick.type=="singleClick"?i="doubleClick":e.input.lastClick.type=="doubleClick"&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let a=e.posAtCoords(f2(n));a&&(i=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new uae(e,a,n,!!r)):(i=="doubleClick"?sae:lae)(e,a.pos,a.inside,n)?n.preventDefault():nc(e,"pointer"))};class uae{constructor(t,n,r,o){this.view=t,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[ZI],this.allowDefault=r.shiftKey;let i,a;if(n.inside>-1)i=t.state.doc.nodeAt(n.inside),a=n.inside;else{let u=t.state.doc.resolve(n.pos);i=u.parent,a=u.depth?u.before():0}const s=o?null:r.target,c=s?t.docView.nearestDesc(s,!0):null;this.target=c?c.dom:null;let{selection:l}=t.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||l instanceof Yt&&l.from<=a&&l.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ia&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),nc(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>nl(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(f2(t))),this.updateAllowDefault(t),this.allowDefault||!n?nc(this.view,"pointer"):aae(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Eo&&this.mightDrag&&!this.mightDrag.node.isAtom||po&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(vd(this.view,bn.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):nc(this.view,"pointer")}move(t){this.updateAllowDefault(t),nc(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Xo.touchstart=e=>{e.input.lastTouch=Date.now(),d5(e),nc(e,"pointer")};Xo.touchmove=e=>{e.input.lastTouch=Date.now(),nc(e,"pointer")};Xo.contextmenu=e=>d5(e);function BI(e,t){return e.composing?!0:Eo&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const fae=wa?5e3:-1;Wo.compositionstart=Wo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),rg(e,!0),e.markCursor=null;else if(rg(e),Ia&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let a=i<0?o.lastChild:o.childNodes[i-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else o=a,i=-1}}e.input.composing=!0}DI(e,fae)};Wo.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,DI(e,20))};function DI(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>rg(e),t))}function KI(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=dae());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function dae(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function rg(e,t=!1){if(!(wa&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),KI(e),t||e.docView&&e.docView.dirty){let n=l5(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function hae(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const ap=ni&&lc<15||Id&&uie<604;Xo.copy=Wo.cut=(e,t)=>{let n=t,r=e.state.selection,o=n.type=="cut";if(r.empty)return;let i=ap?null:n.clipboardData,a=r.content(),{dom:s,text:c}=EI(e,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",c)):hae(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function pae(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function mae(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?sp(e,r.value,null,o,t):sp(e,r.textContent,r.innerHTML,o,t)},50)}function sp(e,t,n,r,o){let i=XI(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",c=>c(e,o,i||Rt.empty)))return!0;if(!i)return!1;let a=pae(i),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function HI(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Wo.paste=(e,t)=>{let n=t;if(e.composing&&!wa)return;let r=ap?null:n.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&sp(e,HI(r),r.getData("text/html"),o,n)?n.preventDefault():mae(e,n)};class GI{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const zI=Ki?"altKey":"ctrlKey";Xo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=e.state.selection,i=o.empty?null:e.posAtCoords(f2(n)),a;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Yt?o.to-1:o.to))){if(r&&r.mightDrag)a=Yt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=e.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=e.docView&&(a=Yt.create(e.state.doc,u.posBefore))}}let s=(a||e.state.selection).content(),{dom:c,text:l}=EI(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(ap?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",ap||n.dataTransfer.setData("text/plain",l),e.dragging=new GI(s,!n[zI],a)};Xo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Wo.dragover=Wo.dragenter=(e,t)=>t.preventDefault();Wo.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(f2(n));if(!o)return;let i=e.state.doc.resolve(o.pos),a=r&&r.slice;a?e.someProp("transformPasted",p=>{a=p(a,e)}):a=XI(e,HI(n.dataTransfer),ap?null:n.dataTransfer.getData("text/html"),!1,i);let s=!!(r&&!n[zI]);if(e.someProp("handleDrop",p=>p(e,n,a||Rt.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let c=a?CN(e.state.doc,i.pos,a):i.pos;c==null&&(c=i.pos);let l=e.state.tr;if(s){let{node:p}=r;p?p.replace(l):l.deleteSelection()}let u=l.mapping.map(c),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=l.doc;if(f?l.replaceRangeWith(u,u,a.content.firstChild):l.replaceRange(u,u,a),l.doc.eq(d))return;let h=l.doc.resolve(u);if(f&&Yt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))l.setSelection(new Yt(h));else{let p=l.mapping.map(c);l.mapping.maps[l.mapping.maps.length-1].forEach((m,A,x,R)=>p=R),l.setSelection(c5(e,h,l.doc.resolve(p)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))};Xo.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&nl(e)},20))};Xo.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Xo.beforeinput=(e,t)=>{if(po&&wa&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,tu(8,"Backspace")))))return;let{$cursor:o}=e.state.selection;o&&o.pos>0&&e.dispatch(e.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let e in Wo)Xo[e]=Wo[e];function lp(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 og{constructor(t,n){this.toDOM=t,this.spec=n||xu,this.side=this.spec.side||0}map(t,n,r,o){let{pos:i,deleted:a}=t.mapResult(n.from+o,this.side<0?-1:1);return a?null:new ki(i-r,i-r,this)}valid(){return!0}eq(t){return this==t||t instanceof og&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&lp(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class uc{constructor(t,n){this.attrs=t,this.spec=n||xu}map(t,n,r,o){let i=t.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=a?null:new ki(i,a,this)}valid(t,n){return n.from=t&&(!i||i(s.spec))&&r.push(s.copy(s.from+o,s.to+o))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,o+s,i)}}map(t,n,r){return this==co||t.maps.length==0?this:this.mapInner(t,n,0,0,r||xu)}mapInner(t,n,r,o,i){let a;for(let s=0;s{let l=c+r,u;if(u=$I(n,s,l)){for(o||(o=this.children.slice());is&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let i=t+1,a=i+n.content.size;for(let s=0;si&&c.type instanceof uc){let l=Math.max(i,c.from)-i,u=Math.min(a,c.to)-i;lo.map(t,n,xu));return Jl.from(r)}forChild(t,n){if(n.isLeaf)return Nr.empty;let r=[];for(let o=0;on instanceof Nr)?t:t.reduce((n,r)=>n.concat(r instanceof Nr?r:r.members),[]))}}}function vae(e,t,n,r,o,i,a){let s=e.slice();for(let l=0,u=i;l{let A=m-p-(h-d);for(let x=0;xR+u-f)continue;let y=s[x]+u-f;h>=y?s[x+1]=d<=y?-2:-1:d>=u&&A&&(s[x]+=A,s[x+1]+=A)}f+=A}),u=n.maps[l].map(u,-1)}let c=!1;for(let l=0;l=r.content.size){c=!0;continue}let d=n.map(e[l+1]+i,-1),h=d-o,{index:p,offset:m}=r.content.findIndex(f),A=r.maybeChild(p);if(A&&m==f&&m+A.nodeSize==h){let x=s[l+2].mapInner(n,A,u+1,e[l]+i+1,a);x!=co?(s[l]=f,s[l+1]=h,s[l+2]=x):(s[l+1]=-2,c=!0)}else c=!0}if(c){let l=gae(s,e,t,n,o,i,a),u=ig(l,r,0,a);t=u.local;for(let f=0;fn&&a.to{let l=$I(e,s,c+n);if(l){i=!0;let u=ig(l,s,n+c+1,r);u!=co&&o.push(c,c+s.nodeSize,u)}});let a=JI(i?jI(e):e,-n).sort(bu);for(let s=0;s0;)t++;e.splice(t,0,n)}function Uy(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=co&&t.push(r)}),e.cursorWrapper&&t.push(Nr.create(e.state.doc,[e.cursorWrapper.deco])),Jl.from(t)}const Aae={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Rae=ni&&lc<=11;class yae{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 xae{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new yae,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),Rae&&(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,Aae)),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(qO(this.view)){if(this.suppressingSelectionUpdates)return nl(this.view);if(ni&&lc<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Vu(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let i=t.focusNode;i;i=ip(i))n.add(i);for(let i=t.anchorNode;i;i=ip(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&qO(t)&&!this.ignoreSelectionChange(r),i=-1,a=-1,s=!1,c=[];if(t.editable)for(let u=0;u1){let u=c.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],d=u[1];f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}}let l=null;i<0&&o&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||o)&&(i>-1&&(t.docView.markDirty(i,a),bae(t)),this.handleDOMChange(i,a,s,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||nl(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;uo;A--){let x=r.childNodes[A-1],R=x.pmViewDesc;if(x.nodeName=="BR"&&!R){i=A;break}if(!R||R.size)break}let f=e.state.doc,d=e.someProp("domParser")||Sd.fromSchema(e.state.schema),h=f.resolve(a),p=null,m=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:l,ruleFromNode:wae,context:h});if(l&&l[0].pos!=null){let A=l[0].pos,x=l[1]&&l[1].pos;x==null&&(x=A),p={anchor:A+a,head:x+a}}return{doc:m,sel:p,from:a,to:s}}function wae(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Eo&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Eo&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Lae=/^(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 Oae(e,t,n,r,o){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let O=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,k=l5(e,O);if(k&&!e.state.selection.eq(k)){if(po&&wa&&e.input.lastKeyCode===13&&Date.now()-100N(e,tu(13,"Enter"))))return;let F=e.state.tr.setSelection(k);O=="pointer"?F.setMeta("pointer",!0):O=="key"&&F.scrollIntoView(),i&&F.setMeta("composition",i),e.dispatch(F)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=Mae(e,t,n),u=e.state.doc,f=u.slice(l.from,l.to),d,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||wa)&&o.some(O=>O.nodeType==1&&!Lae.test(O.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",O=>O(e,tu(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&c instanceof Xn&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))p={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let O=uT(e,e.state.doc,l.sel);if(O&&!O.eq(e.state.selection)){let k=e.state.tr.setSelection(O);i&&k.setMeta("composition",i),e.dispatch(k)}}return}if(po&&e.cursorWrapper&&l.sel&&l.sel.anchor==e.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let O=p.endB-p.start;l.sel={anchor:l.sel.anchor+O,head:l.sel.anchor+O}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=l.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),ni&&lc<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=l.doc.resolveNoCache(p.start-l.from),A=l.doc.resolveNoCache(p.endB-l.from),x=u.resolve(p.start),R=m.sameParent(A)&&m.parent.inlineContent&&x.end()>=p.endA,y;if((Id&&e.input.lastIOSEnter>Date.now()-225&&(!R||o.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!R&&m.posO(e,tu(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&kae(u,p.start,p.endA,m,A)&&e.someProp("handleKeyDown",O=>O(e,tu(8,"Backspace")))){wa&&po&&e.domObserver.suppressSelectionUpdates();return}po&&wa&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),wa&&!R&&m.start()!=A.start()&&A.parentOffset==0&&m.depth==A.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,A=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{e.someProp("handleKeyDown",function(O){return O(e,tu(13,"Enter"))})},20));let g=p.start,S=p.endA,L,T,M;if(R){if(m.pos==A.pos)ni&&lc<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>nl(e),20)),L=e.state.tr.delete(g,S),T=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(M=Tae(m.parent.content.cut(m.parentOffset,A.parentOffset),x.parent.content.cut(x.parentOffset,p.endA-x.start()))))L=e.state.tr,M.type=="add"?L.addMark(g,S,M.mark):L.removeMark(g,S,M.mark);else if(m.parent.child(m.index()).isText&&m.index()==A.index()-(A.textOffset?0:1)){let O=m.parent.textBetween(m.parentOffset,A.parentOffset);if(e.someProp("handleTextInput",k=>k(e,g,S,O)))return;L=e.state.tr.insertText(O,g,S)}}if(L||(L=e.state.tr.replace(g,S,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let O=uT(e,L.doc,l.sel);O&&!(po&&wa&&e.composing&&O.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:c5(e,t.resolve(n.anchor),t.resolve(n.head))}function Tae(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,o=n,i=r,a,s,c;for(let u=0;uu.mark(s.addToSet(u.marks));else if(o.length==0&&i.length==1)s=i[0],a="remove",c=u=>u.mark(s.removeFromSet(u.marks));else return null;let l=[];for(let u=0;un||Yy(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let i=e.node(r).maybeChild(e.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function Nae(e,t,n,r,o){let i=e.findDiffStart(t,n);if(i==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(o=="end"){let c=Math.max(0,i-Math.min(a,s));r-=a+c-i}if(a=a?i-r:0;i-=c,i&&i=s?i-r:0;i-=c,i&&i=56320&&t<=57343&&n>=55296&&n<=56319}class Pae{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 jie,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(vT),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=pT(this),hT(this),this.nodeViews=mT(this),this.docView=HO(this.state.doc,dT(this),Uy(this),this.dom,this),this.domObserver=new xae(this,(r,o,i,a)=>Oae(this,r,o,i,a)),this.domObserver.start(),qie(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ex(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(vT),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let o=this.state,i=!1,a=!1;t.storedMarks&&this.composing&&(KI(this),a=!0),this.state=t;let s=o.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=mT(this);Iae(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&ex(this),this.editable=pT(this),hT(this);let c=Uy(this),l=dT(this),u=o.plugins!=t.plugins&&!o.doc.eq(t.doc)?"reset":t.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(t.doc,l,c);(f||!t.selection.eq(o.selection))&&(a=!0);let d=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&hie(this);if(a){this.domObserver.stop();let h=f&&(ni||po)&&!this.composing&&!o.selection.empty&&!t.selection.empty&&Cae(o.selection,t.selection);if(f){let p=po?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(t.doc,l,c,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=HO(t.doc,l,c,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Wie(this))?nl(this,h):(II(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&pie(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Yt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&YO(this,n.getBoundingClientRect(),t)}else YO(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new GI(t.slice,t.move,o<0?void 0:Yt.create(this.state.doc,o))}someProp(t,n){let r=this._props&&this._props[t],o;if(r!=null&&(o=n?n(r):r))return o;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return yie(this,t)}coordsAtPos(t,n=1){return wI(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let o=this.docView.posFromDOM(t,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,n){return wie(this,n||this.state,t)}pasteHTML(t,n){return sp(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return sp(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(eae(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Uy(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(t){return nae(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return Eo&&this.root.nodeType===11&&aie(this.dom.ownerDocument)==this.dom?Sae(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function dT(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[ki.node(0,e.state.doc.content.size,t)]}function hT(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:ki.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function pT(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Cae(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 mT(e){let t=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(t,o)||(t[o]=r[o])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Iae(e,t){let n=0,r=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let o in t)r++;return n!=r}function vT(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Rc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ag={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Fae=typeof navigator<"u"&&/Mac/.test(navigator.platform),_ae=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var to=0;to<10;to++)Rc[48+to]=Rc[96+to]=String(to);for(var to=1;to<=24;to++)Rc[to+111]="F"+to;for(var to=65;to<=90;to++)Rc[to]=String.fromCharCode(to+32),ag[to]=String.fromCharCode(to);for(var Qy in Rc)ag.hasOwnProperty(Qy)||(ag[Qy]=Rc[Qy]);function Eae(e){var t=Fae&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||_ae&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?ag:Rc)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Xae=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Wae(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,o,i,a;for(let s=0;s127)&&(i=Rc[r.keyCode])&&i!=o){let s=t[Zy(i,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var sg=200,Br=function(){};Br.prototype.append=function(t){return t.length?(t=Br.from(t),!this.length&&t||t.length=n?Br.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Br.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Br.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)};Br.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,a){return o.push(t(i,a))},n,r),o};Br.from=function(t){return t instanceof Br?t:t&&t.length?new eF(t):Br.empty};var eF=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new t(this.values.slice(o,i))},t.prototype.getInner=function(o){return this.values[o]},t.prototype.forEachInner=function(o,i,a,s){for(var c=i;c=a;c--)if(o(this.values[c],s+c)===!1)return!1},t.prototype.leafAppend=function(o){if(this.length+o.length<=sg)return new t(this.values.concat(o.flatten()))},t.prototype.leafPrepend=function(o){if(this.length+o.length<=sg)return new t(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Br);Br.empty=new eF([]);var Uae=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(o-s,0),Math.min(this.length,i)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,o,i,a){var s=this.left.length;if(o>s&&this.right.forEachInvertedInner(r,o-s,Math.max(i,s)-s,a+s)===!1||i=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},t.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new t(this.left,o)},t.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new t(o,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Br);const Yae=500;class Oa{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let a=t.tr,s,c,l=[],u=[];return this.items.forEach((f,d)=>{if(!f.step){o||(o=this.remapping(r,d+1),i=o.maps.length),i--,u.push(f);return}if(o){u.push(new Ha(f.map));let h=f.step.map(o.slice(i)),p;h&&a.maybeStep(h).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],l.push(new Ha(p,void 0,void 0,l.length+u.length))),i--,p&&o.appendMap(p,i)}else a.maybeStep(f.step);if(f.selection)return s=o?f.selection.map(o.slice(i)):f.selection,c=new Oa(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:a,selection:s}}addTransform(t,n,r,o){let i=[],a=this.eventCount,s=this.items,c=!o&&s.length?s.get(s.length-1):null;for(let u=0;uZae&&(s=Qae(s,l),a-=l),new Oa(s.append(i),a)}remapping(t,n){let r=new ld;return this.items.forEach((o,i)=>{let a=o.mirrorOffset!=null&&i-o.mirrorOffset>=t?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new Oa(this.items.append(t.map(n=>new Ha(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},o);let c=n;this.items.forEach(d=>{let h=i.getMirror(--c);if(h==null)return;a=Math.min(a,h);let p=i.maps[h];if(d.step){let m=t.steps[h].invert(t.docs[h]),A=d.selection&&d.selection.map(i.slice(c+1,h));A&&s++,r.push(new Ha(p,m,A))}else r.push(new Ha(p))},o);let l=[];for(let d=n;dYae&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,o=[],i=0;return this.items.forEach((a,s)=>{if(s>=t)o.push(a),a.selection&&i++;else if(a.step){let c=a.step.map(n.slice(r)),l=c&&c.getMap();if(r--,l&&n.appendMap(l,r),c){let u=a.selection&&a.selection.map(n.slice(r));u&&i++;let f=new Ha(l.invert(),c,u),d,h=o.length-1;(d=o.length&&o[h].merge(f))?o[h]=d:o.push(f)}}else a.map&&r--},this.items.length,0),new Oa(Br.from(o.reverse()),i)}}Oa.empty=new Oa(Br.empty,0);function Qae(e,t){let n;return e.forEach((r,o)=>{if(r.selection&&t--==0)return n=o,!1}),e.slice(n)}class Ha{constructor(t,n,r,o){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Ha(n.getMap().invert(),n,this.selection)}}}class Dl{constructor(t,n,r,o,i){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const Zae=20;function Bae(e,t,n,r){let o=n.getMeta(fc),i;if(o)return o.historyState;n.getMeta(Kae)&&(e=new Dl(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(fc))return a.getMeta(fc).redo?new Dl(e.done.addTransform(n,void 0,r,ev(t)),e.undone,AT(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Dl(e.done,e.undone.addTransform(n,void 0,r,ev(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),c=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!Dae(n,e.prevRanges)),l=a?By(e.prevRanges,n.mapping):AT(n.mapping.maps[n.steps.length-1]);return new Dl(e.done.addTransform(n,c?t.selection.getBookmark():void 0,r,ev(t)),Oa.empty,l,n.time,s??e.prevComposition)}else return(i=n.getMeta("rebased"))?new Dl(e.done.rebased(n,i),e.undone.rebased(n,i),By(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Dl(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),By(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Dae(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,o)=>{for(let i=0;i=t[i]&&(n=!0)}),n}function AT(e){let t=[];return e.forEach((n,r,o,i)=>t.push(o,i)),t}function By(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=fc.getState(e);return!n||n.done.eventCount==0?!1:(t&&tF(n,e,t,!1),!0)},rF=(e,t)=>{let n=fc.getState(e);return!n||n.undone.eventCount==0?!1:(t&&tF(n,e,t,!0),!0)};function Gae(e={}){return new Yd({view(t){return new zae(t,e)}})}class zae{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=a=>{this[o](a)};return t.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,c=t.nodeAfter;if(s||c){let l=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(l){let u=l.getBoundingClientRect(),f=s?u.bottom:u.top;s&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,a;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,a=-pageYOffset;else{let s=o.getBoundingClientRect();i=s.left-o.scrollLeft,a=s.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,t):o;if(n&&!i){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=CN(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}class Rr extends bn{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Rr.valid(r)?new Rr(r):bn.near(r)}content(){return Rt.empty}eq(t){return t instanceof Rr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Rr(t.resolve(n.pos))}getBookmark(){return new m5(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!Jae(t)||!$ae(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(t.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Rr.valid(t))return t;let o=t.pos,i=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){i=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;o+=n;let c=t.doc.resolve(o);if(Rr.valid(c))return c}for(;;){let a=n>0?i.firstChild:i.lastChild;if(!a){if(i.isAtom&&!i.isText&&!Yt.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=a,o+=n;let s=t.doc.resolve(o);if(Rr.valid(s))return s}return null}}}Rr.prototype.visible=!1;Rr.findFrom=Rr.findGapCursorFrom;bn.jsonID("gapcursor",Rr);class m5{constructor(t){this.pos=t}map(t){return new m5(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Rr.valid(n)?new Rr(n):bn.near(n)}}function Jae(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function $ae(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function jae(){return new Yd({props:{decorations:nse,createSelectionBetween(e,t,n){return t.pos==n.pos&&Rr.valid(n)?new Rr(n):null},handleClick:ese,handleKeyDown:qae,handleDOMEvents:{beforeinput:tse}}})}const qae=qI({ArrowLeft:ym("horiz",-1),ArrowRight:ym("horiz",1),ArrowUp:ym("vert",-1),ArrowDown:ym("vert",1)});function ym(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,o,i){let a=r.selection,s=t>0?a.$to:a.$from,c=a.empty;if(a instanceof Xn){if(!i.endOfTextblock(n)||s.depth==0)return!1;c=!1,s=r.doc.resolve(t>0?s.after():s.before())}let l=Rr.findGapCursorFrom(s,t,c);return l?(o&&o(r.tr.setSelection(new Rr(l))),!0):!1}}function ese(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Rr.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Yt.isSelectable(e.state.doc.nodeAt(o.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Rr(r))),!0)}function tse(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Rr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=lt.empty;for(let a=r.length-1;a>=0;a--)o=lt.from(r[a].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new Rt(o,0,0));return i.setSelection(Xn.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function nse(e){if(!(e.selection instanceof Rr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Nr.create(e.doc,[ki.widget(e.selection.head,t,{key:"gapcursor"})])}const rse=["li",0],ose={parseDOM:[{tag:"li"}],toDOM(){return rse},defining:!0};function ise(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=!1,c=a;if(!a)return!1;if(a.depth>=2&&o.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(o.index(a.depth-1)==0)return!1;let u=n.doc.resolve(a.start-2);c=new wv(u,u,a.depth),a.endIndex=0;u--)i=lt.from(n[u].type.create(n[u].attrs,i));e.step(new ro(t.start-(r?2:0),t.end,t.start,t.end,new Rt(i,0,0),n.length,!0));let a=0;for(let u=0;u=o.depth-3;x--)f=lt.from(o.node(x).copy(f));let h=o.indexAfter(-1){if(A>-1)return!1;x.isTextblock&&x.content.size==0&&(A=R+1)}),A>-1&&m.setSelection(bn.near(m.doc.resolve(A))),r(m.scrollIntoView())}return!0}let c=i.pos==o.end()?s.contentMatchAt(0).defaultType:null,l=n.tr.delete(o.pos,i.pos),u=c?[t?{type:e,attrs:t}:null,{type:c}]:void 0;return cd(l.doc,o.pos,2,u)?(r&&r(l.split(o.pos,2,u).scrollIntoView()),!0):!1}}function oF(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,a=>a.childCount>0&&a.firstChild.type==e);return i?n?r.node(i.depth-1).type==e?lse(t,n,e,i):cse(t,n,i):!0:!1}}function lse(e,t,n,r){let o=e.tr,i=r.end,a=r.$to.end(r.depth);im;p--)h-=o.child(p).nodeSize,r.delete(h-1,h+1);let i=r.doc.resolve(n.start),a=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==o.childCount,l=i.node(-1),u=i.index(-1);if(!l.canReplace(u+(s?0:1),u+1,a.content.append(c?lt.empty:lt.from(o))))return!1;let f=i.pos,d=f+a.nodeSize;return r.step(new ro(f-(s?1:0),d+(c?1:0),f+1,d-1,new Rt((s?lt.empty:lt.from(o.copy(lt.empty))).append(c?lt.empty:lt.from(o.copy(lt.empty))),s?0:1,c?0:1),s?0:1)),t(r.scrollIntoView()),!0}function yT(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,l=>l.childCount>0&&l.firstChild.type==e);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let s=i.parent,c=s.child(a-1);if(c.type!=e)return!1;if(n){let l=c.lastChild&&c.lastChild.type==s.type,u=lt.from(l?e.create():null),f=new Rt(lt.from(e.create(null,lt.from(s.type.create(null,u)))),l?3:1,0),d=i.start,h=i.end;n(t.tr.step(new ro(d-(l?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class fl{constructor(t,n,r={}){this.match=t,this.match=t,this.handler=typeof n=="string"?use(n):n,this.undoable=r.undoable!==!1}}function use(e){return function(t,n,r,o){let i=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);i+=n[0].slice(a+n[1].length),r+=a;let s=r-o;s>0&&(i=n[0].slice(a-s,a)+i,r=o)}return t.tr.insertText(i,r,o)}}const fse=500;function dse({rules:e}){let t=new Yd({state:{init(){return null},apply(n,r){let o=n.getMeta(this);return o||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,o,i){return xT(n,r,o,i,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&xT(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function xT(e,t,n,r,o,i){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t);if(s.parent.type.spec.code)return!1;let c=s.parent.textBetween(Math.max(0,s.parentOffset-fse),s.parentOffset,null,"")+r;for(let l=0;l{let n=e.plugins;for(let r=0;r=0;c--)a.step(s.steps[c].invert(s.docs[c]));if(i.text){let c=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,e.schema.text(i.text,c))}else a.delete(i.from,i.to);t(a)}return!0}}return!1},pse=new fl(/--$/,"—"),mse=new fl(/\.\.\.$/,"…"),vse=new fl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),gse=new fl(/"$/,"”"),Ase=new fl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),Rse=new fl(/'$/,"’"),yse=[vse,gse,Ase,Rse];function v5(e,t,n=null,r){return new fl(e,(o,i,a,s)=>{let c=n instanceof Function?n(i):n,l=o.tr.delete(a,s),u=l.doc.resolve(a),f=u.blockRange(),d=f&&sb(f,t,c);if(!d)return null;l.wrap(f,d);let h=l.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Ud(l.doc,a-1)&&(!r||r(i,h))&&l.join(a-1),l})}const xse=e=>{const t={},n=(r,o)=>t[r]=o;return n("Alt-ArrowUp",BH),n("Alt-ArrowDown",DH),n("Mod-z",nF),n("Mod-y",rF),n("Backspace",hse),n("Escape",JH),n("Mod-b",kr(e.marks.strong)),n("Mod-i",kr(e.marks.em)),n("Mod-u",kr(e.marks.underline)),n("Mod-d",kr(e.marks.strikethrough)),n("Mod-e",kr(e.marks.code)),n("Mod-;",kr(e.marks.superscript)),n("Mod-'",kr(e.marks.subscript)),n("Enter",Wg(sse(e.nodes.list_item),ZN,BN,DN,zH)),n("Mod-[",oF(e.nodes.list_item)),n("Mod-]",yT(e.nodes.list_item)),n("Tab",yT(e.nodes.list_item)),t},bse=e=>v5(/^\s*>\s$/,e),Sse=e=>v5(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),Mse=e=>v5(/^\s*([-+*])\s$/,e),wse=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new fl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(`${n[2]} `,r,o),s=i.marks.code.create();return a.addMark(r,r+n[2].length,s)})},Lse=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new fl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(n[0],r,o),s=i.marks.link.create({href:n[0],title:n[0]});return a.addMark(r,r+n[0].length,s)})},Ose=e=>{const t=[...yse,mse,pse];return t.push(bse(e.nodes.blockquote)),t.push(Sse(e.nodes.ordered_list)),t.push(Mse(e.nodes.bullet_list)),t.push(wse()),t.push(Lse()),dse({rules:t})},Tse=e=>e.type.name==="paragraph"&&e.nodeSize===2,kse=e=>new Yd({props:{decorations(t){const{$from:n}=t.selection;if(Tse(n.parent)){const r=ki.node(n.before(),n.after(),{"data-placeholder":e});return Nr.create(t.doc,[r])}}}}),Nse=(e,t)=>{const n=t==null?void 0:t.placeholder,r=[Ose(e),gT(xse(e)),gT(rG),Gae(),jae(),Hae()];return n&&r.push(kse(n)),r},Pse=["p",0],Cse=["blockquote",0],Ise=["hr"],Fse=["pre",["code",0]],_se=["br"],iF={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return Pse}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return Cse}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return Ise}},heading:{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return Fse}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){let{src:t,alt:n,title:r}=e.attrs;return["img",{src:t,alt:n,title:r}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return _se}}},Ese=["em",0],Xse=["strong",0],Wse=["code",0],aF={link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){let{href:t,title:n}=e.attrs;return["a",{href:t,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return Ese}},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 Xse}},code:{parseDOM:[{tag:"code"}],toDOM(){return Wse}}};new bN({nodes:iF,marks:aF});const Vse={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>{const n={order:+((e.hasAttribute("start")?e.getAttribute("start"):1)||1)},{listStyleType:r,fontSize:o,color:i}=e.style;return r&&(n.listStyleType=r),o&&(n.fontsize=o),i&&(n.color=i),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:r,color:o}=e.attrs;let i="";n&&(i+=`list-style-type: ${n};`),r&&(i+=`font-size: ${r};`),o&&(i+=`color: ${o};`);const a={style:i};return t!==1&&(a.start=t),["ol",a,0]}},Use={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:r,color:o}=e.style;return n&&(t.listStyleType=n),r&&(t.fontsize=r),o&&(t.color=o),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:r}=e.attrs;let o="";return t&&(o+=`list-style-type: ${t};`),n&&(o+=`font-size: ${n};`),r&&(o+=`color: ${r};`),["ul",{style:o},0]}},Yse={...ose,content:"paragraph block*",group:"block"},Qse={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:e=>{const{textAlign:t,textIndent:n}=e.style;let r=e.getAttribute("align")||t||"";r=/(left|right|center|justify)/.test(r)?r:"";let o=0;n&&(/em/.test(n)?o=parseInt(n):/px/.test(n)&&(o=Math.floor(parseInt(n)/20),o||(o=1)));const i=+(e.getAttribute("data-indent")||0);return{align:r,indent:i,textIndent:o}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:r}=e.attrs;let o="";t&&t!=="left"&&(o+=`text-align: ${t};`),r&&(o+=`text-indent: ${r*20}px;`);const i={style:o};return n&&(i["data-indent"]=n),["p",i,0]}},{doc:Zse,blockquote:Bse,text:Dse}=iF,Kse={doc:Zse,paragraph:Qse,blockquote:Bse,text:Dse,ordered_list:Vse,bullet_list:Use,list_item:Yse},Hse={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},Gse={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},zse={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:e=>e==="line-through"&&null},{style:"text-decoration-line",getAttrs:e=>e==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},Jse={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]},$se={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]}},jse={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]}},qse={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]}},ele={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]}},tle={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]},nle={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:rle,strong:ole,code:ile}=aF,ale={em:rle,strong:ole,fontsize:qse,fontname:ele,code:ile,forecolor:$se,backcolor:jse,subscript:Hse,superscript:Gse,strikethrough:zse,underline:Jse,link:tle,mark:nle},sle=Kse,lle=ale,sF=new bN({nodes:sle,marks:lle}),g5=e=>{const t=`
    ${e}
    `,r=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return Sd.fromSchema(sF).parse(r)},lF=(e,t,n,r)=>new Pae(e,{state:Kf.create({doc:g5(t),plugins:Nse(sF,r)}),...n});function cle(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}var Wr=(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))(Wr||{});const Zr=cle(),ule=(e,t,n)=>{const{selection:r,doc:o}=e;if(!r||!o)return e;const{from:i,to:a}=r,{nodes:s}=t,c=s.blockquote,l=s.list_item,u=s.paragraph,f=[];n=n||"";const d=new Set([c,l,u]);return o.nodesBetween(i,a,(h,p)=>{const m=h.type;return(h.attrs.align||"")!==n&&d.has(m)&&f.push({node:h,pos:p,nodeType:m}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:m,nodeType:A}=h;let{attrs:x}=p;n?x={...x,align:n}:x={...x,align:null},e=e.setNodeMarkup(m,A,x,p.marks)}),e},fle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=ule(n.tr.setSelection(o),r,t);e.dispatch(i)};function dle(e,t,n,r){if(!e.doc)return e;const o=e.doc.nodeAt(t);if(!o)return e;const i=0,a=8;let s=(o.attrs[r]||0)+n;if(sa&&(s=a),s===o.attrs[r])return e;const c={...o.attrs,[r]:s};return e.setNodeMarkup(t,o.type,c,o.marks)}const cF=(e,t,n,r)=>{const{selection:o,doc:i}=e;if(!o||!i||!(o instanceof Xn||o instanceof qo))return e;const{from:a,to:s}=o;return i.nodesBetween(a,s,(c,l)=>{const u=c.type;return u.name==="paragraph"||u.name==="blockquote"?(e=dle(e,l,n,r),!1):!kv(c,t)}),e},hle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=cF(n.tr.setSelection(o),r,t,"indent");return i.docChanged?(e.dispatch(i),!0):!1},ple=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=cF(n.tr.setSelection(o),r,t,"textIndent");return i.docChanged?(e.dispatch(i),!0):!1},lg=(e,t,n,r={})=>(o,i)=>{const{schema:a,selection:s}=o,{$from:c,$to:l}=s,u=c.blockRange(l);if(!u)return!1;const f=$N(h=>kv(h,a))(s);if(u.depth>=1&&f&&u.depth-f.depth<=1){if(f.node.type===e&&!n)return oF(t)(o,i);if(kv(f.node,a)&&e.validContent(f.node.content)){const{tr:h}=o,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,e,p),i&&i(h),!1}}const d={...r};return n&&(d.listStyleType=n),ise(e,d)(o,i)},R0=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=n.tr.setSelection(o),{doc:a}=i;if(!a)return i;const{from:s,to:c}=o;a.nodesBetween(s,c,(l,u)=>{if(kv(l,r)&&s-3<=u&&c+3>=u+l.nodeSize){const f=Array.isArray(t)?t:[t];for(const d of f)i.setNodeAttribute(u,d.key,d.value)}return!1}),e.dispatch(i)},mle=Fe({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=ft(),{handleElementId:a,textFormatPainter:s,richTextAttrs:c}=Xe(i),l=pe();let u;const f=_n.debounce(function(){o("update",u.dom.innerHTML)},300,{trailing:!0}),d=()=>{i.setDisableHotkeysState(!0),o("focus")},h=()=>{i.setDisableHotkeysState(!1),o("blur")},p=_n.debounce(function(){const S=Q4(u,{color:r.defaultColor,fontname:r.defaultFontName});i.setRichtextAttrs(S)},30,{trailing:!0}),m=()=>{f(),p()},A=Me(()=>r.value);Tt(A,()=>{if(!u||u.hasFocus())return;const{doc:S,tr:L}=u.state;u.dispatch(L.replaceRangeWith(0,S.content.size,g5(A.value)))}),Tt(()=>r.editable,()=>{u.setProps({editable:()=>r.editable})}),t({focus:()=>u.focus()});const R=({target:S,action:L})=>{if(!S&&a.value!==r.elementId||S&&S!==r.elementId)return;const T="command"in L?[L]:L;for(const M of T)if(M.command==="fontname"&&M.value){const O=u.state.schema.marks.fontname.create({fontname:M.value});Er(u),Ka(u,O)}else if(M.command==="fontsize"&&M.value){const O=u.state.schema.marks.fontsize.create({fontsize:M.value});Er(u),Ka(u,O),R0(u,{key:"fontsize",value:M.value})}else if(M.command==="fontsize-add"){const O=M.value?+M.value:2;Er(u);const k=bM(u)+O+"px",F=u.state.schema.marks.fontsize.create({fontsize:k});Ka(u,F),R0(u,{key:"fontsize",value:k})}else if(M.command==="fontsize-reduce"){const O=M.value?+M.value:2;Er(u);let k=bM(u)-O;k<12&&(k=12);const F=u.state.schema.marks.fontsize.create({fontsize:k+"px"});Ka(u,F),R0(u,{key:"fontsize",value:k+"px"})}else if(M.command==="color"&&M.value){const O=u.state.schema.marks.forecolor.create({color:M.value});Er(u),Ka(u,O),R0(u,{key:"color",value:M.value})}else if(M.command==="backcolor"&&M.value){const O=u.state.schema.marks.backcolor.create({backcolor:M.value});Er(u),Ka(u,O)}else if(M.command==="bold")Er(u),kr(u.state.schema.marks.strong)(u.state,u.dispatch);else if(M.command==="em")Er(u),kr(u.state.schema.marks.em)(u.state,u.dispatch);else if(M.command==="underline")Er(u),kr(u.state.schema.marks.underline)(u.state,u.dispatch);else if(M.command==="strikethrough")Er(u),kr(u.state.schema.marks.strikethrough)(u.state,u.dispatch);else if(M.command==="subscript")kr(u.state.schema.marks.subscript)(u.state,u.dispatch);else if(M.command==="superscript")kr(u.state.schema.marks.superscript)(u.state,u.dispatch);else if(M.command==="blockquote")Em("blockquote",u.state)?KH(u.state,u.dispatch):eG(u.state.schema.nodes.blockquote)(u.state,u.dispatch);else if(M.command==="code")kr(u.state.schema.marks.code)(u.state,u.dispatch);else if(M.command==="align"&&M.value)fle(u,M.value);else if(M.command==="indent"&&M.value)hle(u,+M.value);else if(M.command==="textIndent"&&M.value)ple(u,+M.value);else if(M.command==="bulletList"){const O=M.value||"",{bullet_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};lg(k,F,O,N)(u.state,u.dispatch)}else if(M.command==="orderedList"){const O=M.value||"",{ordered_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};lg(k,F,O,N)(u.state,u.dispatch)}else if(M.command==="clear"){Er(u);const{$from:O,$to:k}=u.state.selection;u.dispatch(u.state.tr.removeMark(O.pos,k.pos)),R0(u,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(M.command==="link"){const O=u.state.schema.marks.link,{from:k,to:F}=u.state.selection,N=oG(u.state.doc,k,F,O);if(N)if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Ka(u,E,{from:N.from.pos,to:N.to.pos+1})}else u.dispatch(u.state.tr.removeMark(N.from.pos,N.to.pos+1,O));else if(lG(u.state,O))if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Ka(u,E)}else kr(O)(u.state,u.dispatch);else M.value&&(Er(u),kr(O,{href:M.value,title:M.value})(u.state,u.dispatch))}else M.command==="insert"&&M.value&&u.dispatch(u.state.tr.insertText(M.value));u.focus(),f(),p()},y=()=>{if(!s.value)return;const{keep:S,...L}=s.value,T=[{command:"clear"}];for(const M of Object.keys(L)){const O=M,k=s.value[M];k===!0?T.push({command:O}):k&&T.push({command:O,value:k})}R({action:T}),S||i.setTextFormatPainter(null)};Gt(()=>{u=lF(l.value,A.value,{handleDOMEvents:{focus:d,blur:h,keydown:m,click:p,mouseup:y},editable:()=>r.editable}),r.autoFocus&&u.focus()}),Tn(()=>{u&&u.destroy()});const g=()=>{a.value===r.elementId&&p()};return Zr.on(Wr.RICH_TEXT_COMMAND,R),Zr.on(Wr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g),Tn(()=>{Zr.off(Wr.RICH_TEXT_COMMAND,R),Zr.off(Wr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g)}),(S,L)=>(Y(),ee("div",{class:$e(["prosemirror-editor",{"format-painter":H(s)}]),ref_key:"editorViewRef",ref:l,onMousedown:L[0]||(L[0]=T=>o("mousedown",T))},null,34))}}),uF=Ue(mle,[["__scopeId","data-v-23fdc807"]]),fF=e=>(on("data-v-88c920e1"),e=e(),an(),e),vle=fF(()=>V("div",{class:"drag-handler top"},null,-1)),gle=fF(()=>V("div",{class:"drag-handler bottom"},null,-1)),Ale=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{handleElementId:o,isScaling:i}=Xe(n),{addHistorySnapshot:a}=zt(),s=pe(),c=Me(()=>t.elementInfo.shadow),{shadowStyle:l}=Lc(c),u=(R,y=!0)=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo,y))},f=pe(-1),d=pe(-1);Tt(i,()=>{o.value===t.elementInfo.id&&(i.value||(!t.elementInfo.vertical&&f.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:f.value}}),f.value=-1),t.elementInfo.vertical&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{width:d.value}}),d.value=-1)))});const h=R=>{const y=R[0].contentRect;if(!s.value)return;const g=y.height+20,S=y.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==g&&(i.value?f.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}})),t.elementInfo.vertical&&t.elementInfo.width!==S&&(i.value?d.value=S:r.updateElement({id:t.elementInfo.id,props:{width:S}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),Tn(()=>{s.value&&p.unobserve(s.value)});const m=R=>{r.updateElement({id:t.elementInfo.id,props:{content:R}}),a()},A=_n.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(t.elementInfo.id)},300,{trailing:!0}),x=Me(()=>o.value===t.elementInfo.id);return Tt(x,()=>{x.value||A()}),(R,y)=>{const g=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-text",{lock:R.elementInfo.lock}]),style:Le({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:Le({transform:`rotate(${R.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",ref_key:"elementRef",ref:s,style:Le({width:R.elementInfo.vertical?"auto":R.elementInfo.width+"px",height:R.elementInfo.vertical?R.elementInfo.height+"px":"auto",backgroundColor:R.elementInfo.fill,opacity:R.elementInfo.opacity,textShadow:H(l),lineHeight:R.elementInfo.lineHeight,letterSpacing:(R.elementInfo.wordSpace||0)+"px",color:R.elementInfo.defaultColor,fontFamily:R.elementInfo.defaultFontName,writingMode:R.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:y[2]||(y[2]=S=>u(S)),onTouchstart:y[3]||(y[3]=S=>u(S))},[w(l2,{width:R.elementInfo.width,height:R.elementInfo.height,outline:R.elementInfo.outline},null,8,["width","height","outline"]),w(uF,{class:"text",elementId:R.elementInfo.id,defaultColor:R.elementInfo.defaultColor,defaultFontName:R.elementInfo.defaultFontName,editable:!R.elementInfo.lock,value:R.elementInfo.content,style:Le({"--paragraphSpace":`${R.elementInfo.paragraphSpace===void 0?5:R.elementInfo.paragraphSpace}px`}),onUpdate:y[0]||(y[0]=S=>m(S)),onMousedown:y[1]||(y[1]=S=>u(S,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),vle,gle],36)),[[g,R.contextmenus]])],4)],6)}}}),dF=Ue(Ale,[["__scopeId","data-v-88c920e1"]]),Rle=["id","gradientTransform"],yle=["stop-color"],xle=["stop-color"],ble=["id"],Sle=["stop-color"],Mle=["stop-color"],hF=Fe({__name:"GradientDefs",props:{id:{},type:{},color1:{},color2:{},rotate:{default:0}},setup(e){return(t,n)=>t.type==="linear"?(Y(),ee("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[V("stop",{offset:"0%","stop-color":t.color1},null,8,yle),V("stop",{offset:"100%","stop-color":t.color2},null,8,xle)],8,Rle)):(Y(),ee("radialGradient",{key:1,id:t.id},[V("stop",{offset:"0%","stop-color":t.color1},null,8,Sle),V("stop",{offset:"100%","stop-color":t.color2},null,8,Mle)],8,ble))}}),wle=["width","height"],Lle={key:0},Ole=["transform"],Tle=["d","fill","stroke","stroke-width","stroke-dasharray"],kle=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{handleElementId:o,shapeFormatPainter:i}=Xe(n),{addHistorySnapshot:a}=zt(),s=(M,O=!0)=>{t.elementInfo.lock||(M.stopPropagation(),t.selectElement(M,t.elementInfo,O))},c=()=>{if(!i.value)return;const{keep:M,...O}=i.value;r.updateElement({id:t.elementInfo.id,props:O}),a(),M||n.setShapeFormatPainter(null)},l=Me(()=>t.elementInfo.outline),{outlineWidth:u,outlineColor:f,strokeDashArray:d}=Gd(l),h=Me(()=>t.elementInfo.shadow),{shadowStyle:p}=Lc(h),m=Me(()=>t.elementInfo.flipH),A=Me(()=>t.elementInfo.flipV),{flipStyle:x}=s2(m,A),R=pe(!1);Tt(o,()=>{o.value!==t.elementInfo.id&&R.value&&(R.value=!1)});const y=Me(()=>{const M={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:M}),g=M=>{const O={...y.value,content:M};r.updateElement({id:t.elementInfo.id,props:{text:O}}),a()},S=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},L=pe(),T=()=>{R.value=!0,Vr(()=>L.value&&L.value.focus())};return(M,O)=>{const k=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-shape",{lock:M.elementInfo.lock,"format-painter":H(i)}]),style:Le({top:M.elementInfo.top+"px",left:M.elementInfo.left+"px",width:M.elementInfo.width+"px",height:M.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${M.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",style:Le({opacity:M.elementInfo.opacity,filter:H(p)?`drop-shadow(${H(p)})`:"",transform:H(x),color:y.value.defaultColor,fontFamily:y.value.defaultFontName}),onMousedown:O[3]||(O[3]=F=>s(F)),onMouseup:O[4]||(O[4]=F=>c()),onTouchstart:O[5]||(O[5]=F=>s(F)),onDblclick:O[6]||(O[6]=F=>T())},[(Y(),ee("svg",{overflow:"visible",width:M.elementInfo.width,height:M.elementInfo.height},[M.elementInfo.gradient?(Y(),ee("defs",Lle,[w(hF,{id:`editabel-gradient-${M.elementInfo.id}`,type:M.elementInfo.gradient.type,color1:M.elementInfo.gradient.color[0],color2:M.elementInfo.gradient.color[1],rotate:M.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Be("",!0),V("g",{transform:`scale(${M.elementInfo.width/M.elementInfo.viewBox[0]}, ${M.elementInfo.height/M.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:M.elementInfo.path,fill:M.elementInfo.gradient?`url(#editabel-gradient-${M.elementInfo.id})`:M.elementInfo.fill,stroke:H(f),"stroke-width":H(u),"stroke-dasharray":H(d)},null,8,Tle)],8,Ole)],8,wle)),V("div",{class:$e(["shape-text",[y.value.align,{editable:R.value||y.value.content}]])},[R.value||y.value.content?(Y(),we(uF,{key:0,ref_key:"prosemirrorEditorRef",ref:L,elementId:M.elementInfo.id,defaultColor:y.value.defaultColor,defaultFontName:y.value.defaultFontName,editable:!M.elementInfo.lock,value:y.value.content,onUpdate:O[0]||(O[0]=F=>g(F)),onBlur:O[1]||(O[1]=F=>S()),onMousedown:O[2]||(O[2]=F=>s(F,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Be("",!0)],2)],36)),[[k,M.contextmenus]])],4)],6)}}}),pF=Ue(kle,[["__scopeId","data-v-63255815"]]),Nle=["id","markerWidth","markerHeight","refX","refY"],Ple=["d","fill","transform"],Fd=Fe({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(e){const t=e,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},r={"arrow-start":180,"arrow-end":0},o=Me(()=>n[t.type]),i=Me(()=>r[`${t.type}-${t.position}`]||0),a=Me(()=>t.baseSize<2?2:t.baseSize);return(s,c)=>(Y(),ee("marker",{id:`${s.id}-${s.type}-${s.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:a.value*3,markerHeight:a.value*3,refX:a.value*1.5,refY:a.value*1.5},[V("path",{d:o.value,fill:s.color,transform:`scale(${a.value*.3}, ${a.value*.3}) rotate(${i.value}, 5, 5)`},null,8,Ple)],8,Nle))}}),Cle=["width","height"],Ile=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Fle=["d"],_le=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=l=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo))},r=Me(()=>t.elementInfo.shadow),{shadowStyle:o}=Lc(r),i=Me(()=>{const l=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return l<24?24:l}),a=Me(()=>{const l=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return l<24?24:l}),s=Me(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const l=t.elementInfo.width;return l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`}),c=Me(()=>Tb(t.elementInfo));return(l,u)=>{const f=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-shape",{lock:l.elementInfo.lock}]),style:Le({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Le({filter:H(o)?`drop-shadow(${H(o)})`:""}),onMousedown:u[0]||(u[0]=d=>n(d)),onTouchstart:u[1]||(u[1]=d=>n(d))},[(Y(),ee("svg",{overflow:"visible",width:i.value,height:a.value},[V("defs",null,[l.elementInfo.points[0]?(Y(),we(Fd,{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"])):Be("",!0),l.elementInfo.points[1]?(Y(),we(Fd,{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"])):Be("",!0)]),V("path",{class:"line-point",d:c.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":s.value,fill:"none","marker-start":l.elementInfo.points[0]?`url(#${l.elementInfo.id}-${l.elementInfo.points[0]}-start)`:"","marker-end":l.elementInfo.points[1]?`url(#${l.elementInfo.id}-${l.elementInfo.points[1]}-end)`:""},null,8,Ile),De(V("path",{class:"line-path",d:c.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,Fle),[[f,l.contextmenus]])],8,Cle))],36)],6)}}}),mF=Ue(_le,[["__scopeId","data-v-7ecafe01"]]),$0={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},Ele=8,bT={"&":"&","<":"<",">":">",'"':""","'":"'"};function ST(e,t){return typeof e=="number"?e+t:e}function cg(e){if(typeof e=="string"){const t=/^(\d+)\s*(.*)$/g.exec(e);return{value:t?+t[1]:0,unit:(t==null?void 0:t[2])||void 0}}return{value:Number(e)}}function A5(e){return String.fromCharCode(97+e%26)}const Ky=2221e-19;function Xle(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)}function y0(e,t,n){return t/n.range*e}function Wle(e,t){const n=Math.pow(10,t||Ele);return Math.round(e*n)/n}function Vle(e){if(e===1)return e;function t(a,s){return a%s===0?s:t(s,a%s)}function n(a){return a*a+1}let r=2,o=2,i;if(e%2===0)return 2;do r=n(r)%e,o=n(n(o))%e,i=t(Math.abs(r-o),e);while(i===1);return i}function Hy(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function Ule(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const o={high:t.high,low:t.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};o.valueRange=o.high-o.low,o.oom=Xle(o.valueRange),o.step=Math.pow(10,o.oom),o.min=Math.floor(o.low/o.step)*o.step,o.max=Math.ceil(o.high/o.step)*o.step,o.range=o.max-o.min,o.numberOfSteps=Math.round(o.range/o.step);const a=y0(e,o.step,o)=n)o.step=1;else if(r&&s=n)o.step=s;else{let d=0;for(;;){if(a&&y0(e,o.step,o)<=n)o.step*=2;else if(!a&&y0(e,o.step/2,o)>=n){if(o.step/=2,r&&o.step%1!==0){o.step*=2;break}}else break;if(d++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}o.step=Math.max(o.step,Ky);function c(d,h){return d===(d+=h)&&(d*=1+(h>0?Ky:-Ky)),d}let l=o.min,u=o.max;for(;l+o.step<=o.low;)l=c(l,o.step);for(;u-o.step>=o.high;)u=c(u,-o.step);o.min=l,o.max=u,o.range=o.max-o.min;const f=[];for(let d=o.min;d<=o.max;d=c(d,o.step)){const h=Wle(d);h!==f[f.length-1]&&f.push(h)}return o.values=f,o}function Yu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re;function tx(e,t){return Array.from({length:e},t?(n,r)=>t(r):()=>{})}const Yle=(e,t)=>e+(t||0),Qle=(e,t)=>tx(Math.max(...e.map(n=>n.length)),n=>t(...e.map(r=>r[n])));function $n(e,t){return e!==null&&typeof e=="object"&&Reflect.has(e,t)}function kh(e){return e!==null&&isFinite(e)}function vF(e){return!e&&e!==0}function gd(e){return kh(e)?Number(e):void 0}function Zle(e){return Array.isArray(e)?e.every(Array.isArray):!1}function gF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=0;e[n?"reduceRight":"reduce"]((o,i,a)=>t(i,r++,a),void 0)}function AF(e,t){const n=Array.isArray(e)?e[t]:$n(e,"data")?e.data[t]:null;return $n(n,"meta")?n.meta:void 0}function RF(e){return e==null||typeof e=="number"&&isNaN(e)}function Ble(e){return Array.isArray(e)&&e.every(t=>Array.isArray(t)||$n(t,"data"))}function Dle(e){return typeof e=="object"&&e!==null&&(Reflect.has(e,"x")||Reflect.has(e,"y"))}function R5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";return Dle(e)&&$n(e,t)?gd(e[t]):gd(e)}function nx(e,t,n){t={...t,...n?n==="x"?t.axisX:t.axisY:{}};const r={high:t.high===void 0?-Number.MAX_VALUE:+t.high,low:t.low===void 0?Number.MAX_VALUE:+t.low},o=t.high===void 0,i=t.low===void 0;function a(s){if(!RF(s))if(Array.isArray(s))for(let c=0;cr.high&&(r.high=c),i&&c0||(r.high=1),r.low=0)),r}function y5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o;const i={labels:(e.labels||[]).slice(),series:Gle(e.series,n,r)},a=i.labels.length;return Zle(i.series)?(o=Math.max(a,...i.series.map(s=>s.length)),i.series.forEach(s=>{s.push(...tx(Math.max(0,o-s.length)))})):o=i.series.length,i.labels.push(...tx(Math.max(0,o-a),()=>"")),t&&Kle(i),i}function Kle(e){var t;(t=e.labels)===null||t===void 0||t.reverse(),e.series.reverse();for(const n of e.series)$n(n,"data")?n.data.reverse():Array.isArray(n)&&n.reverse()}function Hle(e,t){let n,r;if(typeof e!="object"){const o=gd(e);t==="x"?n=o:r=o}else $n(e,"x")&&(n=gd(e.x)),$n(e,"y")&&(r=gd(e.y));if(!(n===void 0&&r===void 0))return{x:n,y:r}}function MT(e,t){if(!RF(e))return t?Hle(e,t):gd(e)}function rx(e,t){return Array.isArray(e)?e.map(n=>$n(n,"value")?MT(n.value,t):MT(n,t)):rx(e.data,t)}function Gle(e,t,n){if(Ble(e))return e.map(o=>rx(o,t));const r=rx(e,t);return n?r.map(o=>[o]):r}function zle(e,t,n){const r={increasingX:!1,fillHoles:!1,...n},o=[];let i=!0;for(let a=0;a=2&&e[a]<=e[a-2]&&(i=!0),i&&(o.push({pathCoordinates:[],valueData:[]}),i=!1),o[o.length-1].pathCoordinates.push(e[a],e[a+1]),o[o.length-1].valueData.push(t[a/2]));return o}function up(e){let t="";return e==null?e:(typeof e=="number"?t=""+e:typeof e=="object"?t=JSON.stringify({data:e}):t=String(e),Object.keys(bT).reduce((n,r)=>n.replaceAll(r,bT[r]),t))}class Jle{call(t,n){return this.svgElements.forEach(r=>Reflect.apply(r[t],r,n)),this}attr(){for(var t=arguments.length,n=new Array(t),r=0;r3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;const{easing:i,...a}=n,s={};let c,l;i&&(c=Array.isArray(i)?i:yF[i]),a.begin=ST(a.begin,"ms"),a.dur=ST(a.dur,"ms"),c&&(a.calcMode="spline",a.keySplines=c.join(" "),a.keyTimes="0;1"),r&&(a.fill="freeze",s[t]=a.from,e.attr(s),l=cg(a.begin||0).value,a.begin="indefinite");const u=e.elem("animate",{attributeName:t,...a});r&&setTimeout(()=>{try{u._node.beginElement()}catch{s[t]=a.to,e.attr(s),u.remove()}},l);const f=u.getNode();o&&f.addEventListener("beginEvent",()=>o.emit("animationBegin",{element:e,animate:f,params:n})),f.addEventListener("endEvent",()=>{o&&o.emit("animationEnd",{element:e,animate:f,params:n}),r&&(s[t]=a.to,e.attr(s),u.remove())})}class rc{attr(t,n){return typeof t=="string"?n?this._node.getAttributeNS(n,t):this._node.getAttribute(t):(Object.keys(t).forEach(r=>{if(t[r]!==void 0)if(r.indexOf(":")!==-1){const o=r.split(":");this._node.setAttributeNS($0[o[0]],r,String(t[r]))}else this._node.setAttribute(r,String(t[r]))}),this)}elem(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return new rc(t,n,r,this,o)}parent(){return this._node.parentNode instanceof SVGElement?new rc(this._node.parentNode):null}root(){let t=this._node;for(;t.nodeName!=="svg"&&t.parentElement;)t=t.parentElement;return new rc(t)}querySelector(t){const n=this._node.querySelector(t);return n?new rc(n):null}querySelectorAll(t){const n=this._node.querySelectorAll(t);return new Jle(n)}getNode(){return this._node}foreignObject(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;if(typeof t=="string"){const s=document.createElement("div");s.innerHTML=t,i=s.firstChild}else i=t;i instanceof Element&&i.setAttribute("xmlns",$0.xmlns);const a=this.elem("foreignObject",n,r,o);return a._node.appendChild(i),a}text(t){return this._node.appendChild(document.createTextNode(t)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var t;return(t=this._node.parentNode)===null||t===void 0||t.removeChild(this._node),this.parent()}replace(t){var n;return(n=this._node.parentNode)===null||n===void 0||n.replaceChild(t._node,this._node),t}append(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this}classes(){const t=this._node.getAttribute("class");return t?t.trim().split(/\s+/):[]}addClass(t){return this._node.setAttribute("class",this.classes().concat(t.trim().split(/\s+/)).filter(function(n,r,o){return o.indexOf(n)===r}).join(" ")),this}removeClass(t){const n=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter(r=>n.indexOf(r)===-1).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2?arguments[2]:void 0;return Object.keys(t).forEach(o=>{const i=t[o];Array.isArray(i)?i.forEach(a=>wT(this,o,a,!1,r)):wT(this,o,i,n,r)}),this}constructor(t,n,r,o,i=!1){t instanceof Element?this._node=t:(this._node=document.createElementNS($0.svg,t),t==="svg"&&this.attr({"xmlns:ct":$0.ct})),n&&this.attr(n),r&&this.addClass(r),o&&(i&&o._node.firstChild?o._node.insertBefore(this._node,o._node.firstChild):o._node.appendChild(this._node))}}rc.Easing=yF;function x5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"100%",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"100%",r=arguments.length>3?arguments[3]:void 0;Array.from(e.querySelectorAll("svg")).filter(i=>i.getAttributeNS($0.xmlns,"ct")).forEach(i=>e.removeChild(i));const o=new rc("svg").attr({width:t,height:n}).attr({style:"width: ".concat(t,"; height: ").concat(n,";")});return r&&o.addClass(r),e.appendChild(o.getNode()),o}function $le(e){return typeof e=="number"?{top:e,right:e,bottom:e,left:e}:e===void 0?{top:0,right:0,bottom:0,left:0}:{top:typeof e.top=="number"?e.top:0,right:typeof e.right=="number"?e.right:0,bottom:typeof e.bottom=="number"?e.bottom:0,left:typeof e.left=="number"?e.left:0}}function b5(e,t){var n,r,o,i;const a=!!(t.axisX||t.axisY),s=((n=t.axisY)===null||n===void 0?void 0:n.offset)||0,c=((r=t.axisX)===null||r===void 0?void 0:r.offset)||0,l=(o=t.axisY)===null||o===void 0?void 0:o.position,u=(i=t.axisX)===null||i===void 0?void 0:i.position;let f=e.width()||cg(t.width).value||0,d=e.height()||cg(t.height).value||0;const h=$le(t.chartPadding);f=Math.max(f,s+h.left+h.right),d=Math.max(d,c+h.top+h.bottom);const p={x1:0,x2:0,y1:0,y2:0,padding:h,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return a?(u==="start"?(p.y2=h.top+c,p.y1=Math.max(d-h.bottom,p.y2+1)):(p.y2=h.top,p.y1=Math.max(d-h.bottom-c,p.y2+1)),l==="start"?(p.x1=h.left+s,p.x2=Math.max(f-h.right,p.x1+1)):(p.x1=h.left,p.x2=Math.max(f-h.right-s,p.x1+1))):(p.x1=h.left,p.x2=Math.max(f-h.right,p.x1+1),p.y2=h.top,p.y1=Math.max(d-h.bottom,p.y2+1)),p}function jle(e,t,n,r,o,i,a,s){const c={["".concat(n.units.pos,"1")]:e,["".concat(n.units.pos,"2")]:e,["".concat(n.counterUnits.pos,"1")]:r,["".concat(n.counterUnits.pos,"2")]:r+o},l=i.elem("line",c,a.join(" "));s.emit("draw",{type:"grid",axis:n,index:t,group:i,element:l,...c})}function xF(e,t,n,r){const o=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);r.emit("draw",{type:"gridBackground",group:e,element:o})}function qle(e,t,n,r,o,i,a,s,c,l){const u={[o.units.pos]:e+a[o.units.pos],[o.counterUnits.pos]:a[o.counterUnits.pos],[o.units.len]:t,[o.counterUnits.len]:Math.max(0,i-10)},f=Math.round(u[o.units.len]),d=Math.round(u[o.counterUnits.len]),h=document.createElement("span");h.className=c.join(" "),h.style[o.units.len]=f+"px",h.style[o.counterUnits.len]=d+"px",h.textContent=String(r);const p=s.foreignObject(h,{style:"overflow: visible;",...u});l.emit("draw",{type:"label",axis:o,index:n,group:s,element:p,text:r,...u})}function LT(e,t,n){let r;const o=[];function i(s){const c=r;r=Yu({},e),t&&t.forEach(l=>{window.matchMedia(l[0]).matches&&(r=Yu(r,l[1]))}),n&&s&&n.emit("optionsChanged",{previousOptions:c,currentOptions:r})}function a(){o.forEach(s=>s.removeEventListener("change",i))}if(window.matchMedia)t&&t.forEach(s=>{const c=window.matchMedia(s[0]);c.addEventListener("change",i),o.push(c)});else throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return i(),{removeMediaQueryListeners:a,getCurrentOptions(){return r}}}const ox={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},ece={accuracy:3};function xm(e,t,n,r,o,i){const a={command:o?e.toLowerCase():e.toUpperCase(),...t,...i?{data:i}:{}};n.splice(r,0,a)}function Gy(e,t){e.forEach((n,r)=>{ox[n.command.toLowerCase()].forEach((o,i)=>{t(n,o,r,i,e)})})}class qs{static join(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;const o=new qs(n,r);for(let i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return xm("M",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}line(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return xm("L",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}curve(t,n,r,o,i,a){let s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,c=arguments.length>7?arguments[7]:void 0;return xm("C",{x1:+t,y1:+n,x2:+r,y2:+o,x:+i,y:+a},this.pathElements,this.pos++,s,c),this}arc(t,n,r,o,i,a,s){let c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l=arguments.length>8?arguments[8]:void 0;return xm("A",{rx:t,ry:n,xAr:r,lAf:o,sf:i,x:a,y:s},this.pathElements,this.pos++,c,l),this}parse(t){const n=t.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((o,i)=>(i.match(/[A-Za-z]/)&&o.push([]),o[o.length-1].push(i),o),[]);n[n.length-1][0].toUpperCase()==="Z"&&n.pop();const r=n.map(o=>{const i=o.shift(),a=ox[i.toLowerCase()];return{command:i,...a.reduce((s,c,l)=>(s[c]=+o[l],s),{})}});return this.pathElements.splice(this.pos,0,...r),this.pos+=r.length,this}stringify(){const t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((n,r)=>{const o=ox[r.command.toLowerCase()].map(i=>{const a=r[i];return this.options.accuracy?Math.round(a*t)/t:a});return n+r.command+o.join(",")},"")+(this.close?"Z":"")}scale(t,n){return Gy(this.pathElements,(r,o)=>{r[o]*=o[0]==="x"?t:n}),this}translate(t,n){return Gy(this.pathElements,(r,o)=>{r[o]+=o[0]==="x"?t:n}),this}transform(t){return Gy(this.pathElements,(n,r,o,i,a)=>{const s=t(n,r,o,i,a);(s||s===0)&&(n[r]=s)}),this}clone(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const n=new qs(t||this.close);return n.pos=this.pos,n.pathElements=this.pathElements.slice().map(r=>({...r})),n.options={...this.options},n}splitByCommand(t){const n=[new qs];return this.pathElements.forEach(r=>{r.command===t.toUpperCase()&&n[n.length-1].pathElements.length!==0&&n.push(new qs),n[n.length-1].pathElements.push(r)}),n}constructor(t=!1,n){this.close=t,this.pathElements=[],this.pos=0,this.options={...ece,...n}}}function ix(e){const t={fillHoles:!1,...e};return function(r,o){const i=new qs;let a=!0;for(let s=0;s1)return qs.join(i.map(a=>n(a.pathCoordinates,a.valueData)));{if(r=i[0].pathCoordinates,o=i[0].valueData,r.length<=4)return ix()(r,o);const a=[],s=[],c=r.length/2,l=[],u=[],f=[],d=[];for(let p=0;p0!=u[p]>0?l[p]=0:(l[p]=3*(d[p-1]+d[p])/((2*d[p]+d[p-1])/u[p-1]+(d[p]+2*d[p-1])/u[p]),isFinite(l[p])||(l[p]=0));const h=new qs().move(a[0],s[0],!1,o[0]);for(let p=0;pi(n)),r.forEach(i=>i(t,n))}constructor(){this.listeners=new Map,this.allListeners=new Set}}const zy=new WeakMap;class S5{update(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),n&&(this.options=Yu({},r?this.options:this.defaultOptions,n),!this.initializeTimeoutId)){var o;(o=this.optionsProvider)===null||o===void 0||o.removeMediaQueryListeners(),this.optionsProvider=LT(this.options,this.responsiveOptions,this.eventEmitter)}return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){if(this.initializeTimeoutId)window.clearTimeout(this.initializeTimeoutId);else{var t;window.removeEventListener("resize",this.resizeListener),(t=this.optionsProvider)===null||t===void 0||t.removeMediaQueryListeners()}return zy.delete(this.container),this}on(t,n){return this.eventEmitter.on(t,n),this}off(t,n){return this.eventEmitter.off(t,n),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=LT(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",()=>this.update()),this.options.plugins&&this.options.plugins.forEach(t=>{Array.isArray(t)?t[0](this,t[1]):t(this)}),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(t,n,r,o,i){this.data=n,this.defaultOptions=r,this.options=o,this.responsiveOptions=i,this.eventEmitter=new nce,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout(()=>this.initialize(),0);const a=typeof t=="string"?document.querySelector(t):t;if(!a)throw new Error("Target element is not found");this.container=a;const s=zy.get(a);s&&s.detach(),zy.set(a,this)}}const ko={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};class bF{createGridAndLabels(t,n,r,o){const i=this.units.pos==="x"?r.axisX:r.axisY,a=this.ticks.map((c,l)=>this.projectValue(c,l)),s=this.ticks.map(i.labelInterpolationFnc);a.forEach((c,l)=>{const u=s[l],f={x:0,y:0};let d;a[l+1]?d=a[l+1]-c:d=Math.max(this.axisLength-c,this.axisLength/this.ticks.length),!(u!==""&&vF(u))&&(this.units.pos==="x"?(c=this.chartRect.x1+c,f.x=r.axisX.labelOffset.x,r.axisX.position==="start"?f.y=this.chartRect.padding.top+r.axisX.labelOffset.y+5:f.y=this.chartRect.y1+r.axisX.labelOffset.y+5):(c=this.chartRect.y1-c,f.y=r.axisY.labelOffset.y-d,r.axisY.position==="start"?f.x=this.chartRect.padding.left+r.axisY.labelOffset.x:f.x=this.chartRect.x2+r.axisY.labelOffset.x+10),i.showGrid&&jle(c,l,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[r.classNames.grid,r.classNames[this.units.dir]],o),i.showLabel&&qle(c,d,l,u,this,i.offset,f,n,[r.classNames.label,r.classNames[this.units.dir],i.position==="start"?r.classNames[i.position]:r.classNames.end],o))})}constructor(t,n,r){this.units=t,this.chartRect=n,this.ticks=r,this.counterUnits=t===ko.x?ko.y:ko.x,this.axisLength=n[this.units.rectEnd]-n[this.units.rectStart],this.gridOffset=n[this.units.rectOffset]}}class ax extends bF{projectValue(t){const n=Number(R5(t,this.units.pos));return this.axisLength*(n-this.bounds.min)/this.bounds.range}constructor(t,n,r,o){const i=o.highLow||nx(n,o,t.pos),a=Ule(r[t.rectEnd]-r[t.rectStart],i,o.scaleMinSpace||20,o.onlyInteger),s={min:a.min,max:a.max};super(t,r,a.values),this.bounds=a,this.range=s}}class tv extends bF{projectValue(t,n){return this.stepLength*n}constructor(t,n,r,o){const i=o.ticks||[];super(t,r,i);const a=Math.max(1,i.length-(o.stretch?1:0));this.stepLength=this.axisLength/a,this.stretch=!!o.stretch}}function x0(e,t,n){var r;if($n(e,"name")&&e.name&&(!((r=t.series)===null||r===void 0)&&r[e.name])){const i=(t==null?void 0:t.series[e.name])[n];return i===void 0?t[n]:i}else return t[n]}const OT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:cp,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:cp,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class rce extends S5{createChart(t){const{data:n}=this,r=y5(n,t.reverseData,!0),o=x5(this.container,t.width,t.height,t.classNames.chart);this.svg=o;const i=o.elem("g").addClass(t.classNames.gridGroup),a=o.elem("g"),s=o.elem("g").addClass(t.classNames.labelGroup),c=b5(o,t);let l,u;t.axisX.type===void 0?l=new tv(ko.x,r.series,c,{...t.axisX,ticks:r.labels,stretch:t.fullWidth}):l=new t.axisX.type(ko.x,r.series,c,t.axisX),t.axisY.type===void 0?u=new ax(ko.y,r.series,c,{...t.axisY,high:kh(t.high)?t.high:t.axisY.high,low:kh(t.low)?t.low:t.axisY.low}):u=new t.axisY.type(ko.y,r.series,c,t.axisY),l.createGridAndLabels(i,s,t,this.eventEmitter),u.createGridAndLabels(i,s,t,this.eventEmitter),t.showGridBackground&&xF(i,c,t.classNames.gridBackground,this.eventEmitter),gF(n.series,(f,d)=>{const h=a.elem("g"),p=$n(f,"name")&&f.name,m=$n(f,"className")&&f.className,A=$n(f,"meta")?f.meta:void 0;p&&h.attr({"ct:series-name":p}),A&&h.attr({"ct:meta":up(A)}),h.addClass([t.classNames.series,m||"".concat(t.classNames.series,"-").concat(A5(d))].join(" "));const x=[],R=[];r.series[d].forEach((L,T)=>{const M={x:c.x1+l.projectValue(L,T,r.series[d]),y:c.y1-u.projectValue(L,T,r.series[d])};x.push(M.x,M.y),R.push({value:L,valueIndex:T,meta:AF(f,T)})});const y={lineSmooth:x0(f,t,"lineSmooth"),showPoint:x0(f,t,"showPoint"),showLine:x0(f,t,"showLine"),showArea:x0(f,t,"showArea"),areaBase:x0(f,t,"areaBase")};let g;typeof y.lineSmooth=="function"?g=y.lineSmooth:g=y.lineSmooth?tce():ix();const S=g(x,R);if(y.showPoint&&S.pathElements.forEach(L=>{const{data:T}=L,M=h.elem("line",{x1:L.x,y1:L.y,x2:L.x+.01,y2:L.y},t.classNames.point);if(T){let O,k;$n(T.value,"x")&&(O=T.value.x),$n(T.value,"y")&&(k=T.value.y),M.attr({"ct:value":[O,k].filter(kh).join(","),"ct:meta":up(T.meta)})}this.eventEmitter.emit("draw",{type:"point",value:T==null?void 0:T.value,index:(T==null?void 0:T.valueIndex)||0,meta:T==null?void 0:T.meta,series:f,seriesIndex:d,axisX:l,axisY:u,group:h,element:M,x:L.x,y:L.y,chartRect:c})}),y.showLine){const L=h.elem("path",{d:S.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.series[d],path:S.clone(),chartRect:c,index:d,series:f,seriesIndex:d,meta:A,axisX:l,axisY:u,group:h,element:L})}if(y.showArea&&u.range){const L=Math.max(Math.min(y.areaBase,u.range.max),u.range.min),T=c.y1-u.projectValue(L);S.splitByCommand("M").filter(M=>M.pathElements.length>1).map(M=>{const O=M.pathElements[0],k=M.pathElements[M.pathElements.length-1];return M.clone(!0).position(0).remove(1).move(O.x,T).line(O.x,O.y).position(M.pathElements.length+1).line(k.x,T)}).forEach(M=>{const O=h.elem("path",{d:M.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.series[d],path:M.clone(),series:f,seriesIndex:d,axisX:l,axisY:u,chartRect:c,index:d,group:h,element:O,meta:A})})}},t.reverseData),this.eventEmitter.emit("created",{chartRect:c,axisX:l,axisY:u,svg:o,options:t})}constructor(t,n,r,o){super(t,n,OT,Yu({},OT,r),o),this.data=n}}function oce(e){return Qle(e,function(){for(var t=arguments.length,n=new Array(t),r=0;r({x:o.x+($n(i,"x")?i.x:0),y:o.y+($n(i,"y")?i.y:0)}),{x:0,y:0})})}const TT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:cp,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:cp,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class ice extends S5{createChart(t){const{data:n}=this,r=y5(n,t.reverseData,t.horizontalBars?"x":"y",!0),o=x5(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:"")),i=t.stackBars&&t.stackMode!==!0&&r.series.length?nx([oce(r.series)],t,t.horizontalBars?"x":"y"):nx(r.series,t,t.horizontalBars?"x":"y");this.svg=o;const a=o.elem("g").addClass(t.classNames.gridGroup),s=o.elem("g"),c=o.elem("g").addClass(t.classNames.labelGroup);typeof t.high=="number"&&(i.high=t.high),typeof t.low=="number"&&(i.low=t.low);const l=b5(o,t);let u;const f=t.distributeSeries&&t.stackBars?r.labels.slice(0,1):r.labels;let d,h,p;t.horizontalBars?(t.axisX.type===void 0?u=h=new ax(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}):u=h=new t.axisX.type(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}),t.axisY.type===void 0?d=p=new tv(ko.y,r.series,l,{ticks:f}):d=p=new t.axisY.type(ko.y,r.series,l,t.axisY)):(t.axisX.type===void 0?d=h=new tv(ko.x,r.series,l,{ticks:f}):d=h=new t.axisX.type(ko.x,r.series,l,t.axisX),t.axisY.type===void 0?u=p=new ax(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}):u=p=new t.axisY.type(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}));const m=t.horizontalBars?l.x1+u.projectValue(0):l.y1-u.projectValue(0),A=t.stackMode==="accumulate",x=t.stackMode==="accumulate-relative",R=[],y=[];let g=R;d.createGridAndLabels(a,c,t,this.eventEmitter),u.createGridAndLabels(a,c,t,this.eventEmitter),t.showGridBackground&&xF(a,l,t.classNames.gridBackground,this.eventEmitter),gF(n.series,(S,L)=>{const T=L-(n.series.length-1)/2;let M;t.distributeSeries&&!t.stackBars?M=d.axisLength/r.series.length/2:t.distributeSeries&&t.stackBars?M=d.axisLength/2:M=d.axisLength/r.series[L].length/2;const O=s.elem("g"),k=$n(S,"name")&&S.name,F=$n(S,"className")&&S.className,N=$n(S,"meta")?S.meta:void 0;k&&O.attr({"ct:series-name":k}),N&&O.attr({"ct:meta":up(N)}),O.addClass([t.classNames.series,F||"".concat(t.classNames.series,"-").concat(A5(L))].join(" ")),r.series[L].forEach((E,P)=>{const _=$n(E,"x")&&E.x,I=$n(E,"y")&&E.y;let W;t.distributeSeries&&!t.stackBars?W=L:t.distributeSeries&&t.stackBars?W=0:W=P;let D;t.horizontalBars?D={x:l.x1+u.projectValue(_||0,P,r.series[L]),y:l.y1-d.projectValue(I||0,W,r.series[L])}:D={x:l.x1+d.projectValue(_||0,W,r.series[L]),y:l.y1-u.projectValue(I||0,P,r.series[L])},d instanceof tv&&(d.stretch||(D[d.units.pos]+=M*(t.horizontalBars?-1:1)),D[d.units.pos]+=t.stackBars||t.distributeSeries?0:T*t.seriesBarDistance*(t.horizontalBars?-1:1)),x&&(g=I>=0||_>=0?R:y);const z=g[P]||m;if(g[P]=z-(m-D[d.counterUnits.pos]),E===void 0)return;const ae={["".concat(d.units.pos,"1")]:D[d.units.pos],["".concat(d.units.pos,"2")]:D[d.units.pos]};t.stackBars&&(A||x||!t.stackMode)?(ae["".concat(d.counterUnits.pos,"1")]=z,ae["".concat(d.counterUnits.pos,"2")]=g[P]):(ae["".concat(d.counterUnits.pos,"1")]=m,ae["".concat(d.counterUnits.pos,"2")]=D[d.counterUnits.pos]),ae.x1=Math.min(Math.max(ae.x1,l.x1),l.x2),ae.x2=Math.min(Math.max(ae.x2,l.x1),l.x2),ae.y1=Math.min(Math.max(ae.y1,l.y2),l.y1),ae.y2=Math.min(Math.max(ae.y2,l.y2),l.y1);const U=AF(S,P),Z=O.elem("line",ae,t.classNames.bar).attr({"ct:value":[_,I].filter(kh).join(","),"ct:meta":up(U)});this.eventEmitter.emit("draw",{type:"bar",value:E,index:P,meta:U,series:S,seriesIndex:L,axisX:h,axisY:p,chartRect:l,group:O,element:Z,...ae})})},t.reverseData),this.eventEmitter.emit("created",{chartRect:l,axisX:h,axisY:p,svg:o,options:t})}constructor(t,n,r,o){super(t,n,TT,Yu({},TT,r),o),this.data=n}}const kT={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:cp,labelDirection:"neutral",ignoreEmptyValues:!1};function ace(e,t,n){const r=t.x>e.x;return r&&n==="explode"||!r&&n==="implode"?"start":r&&n==="implode"||!r&&n==="explode"?"end":"middle"}class sce extends S5{createChart(t){const{data:n}=this,r=y5(n),o=[];let i,a,s=t.startAngle;const c=x5(this.container,t.width,t.height,t.donut?t.classNames.chartDonut:t.classNames.chartPie);this.svg=c;const l=b5(c,t);let u=Math.min(l.width()/2,l.height()/2);const f=t.total||r.series.reduce(Yle,0),d=cg(t.donutWidth);d.unit==="%"&&(d.value*=u/100),u-=t.donut?d.value/2:0,t.labelPosition==="outside"||t.donut?a=u:t.labelPosition==="center"?a=0:a=u/2,t.labelOffset&&(a+=t.labelOffset);const h={x:l.x1+l.width()/2,y:l.y2+l.height()/2},p=n.series.filter(m=>$n(m,"value")?m.value!==0:m!==0).length===1;n.series.forEach((m,A)=>o[A]=c.elem("g")),t.showLabel&&(i=c.elem("g")),n.series.forEach((m,A)=>{var x,R;if(r.series[A]===0&&t.ignoreEmptyValues)return;const y=$n(m,"name")&&m.name,g=$n(m,"className")&&m.className,S=$n(m,"meta")?m.meta:void 0;y&&o[A].attr({"ct:series-name":y}),o[A].addClass([(x=t.classNames)===null||x===void 0?void 0:x.series,g||"".concat((R=t.classNames)===null||R===void 0?void 0:R.series,"-").concat(A5(A))].join(" "));let L=f>0?s+r.series[A]/f*360:0;const T=Math.max(0,s-(A===0||p?0:.2));L-T>=359.99&&(L=T+359.99);const M=Hy(h.x,h.y,u,T),O=Hy(h.x,h.y,u,L),k=new qs(!t.donut).move(O.x,O.y).arc(u,u,0,+(L-s>180),0,M.x,M.y);t.donut||k.line(h.x,h.y);const F=o[A].elem("path",{d:k.stringify()},t.donut?t.classNames.sliceDonut:t.classNames.slicePie);if(F.attr({"ct:value":r.series[A],"ct:meta":up(S)}),t.donut&&F.attr({style:"stroke-width: "+d.value+"px"}),this.eventEmitter.emit("draw",{type:"slice",value:r.series[A],totalDataSum:f,index:A,meta:S,series:m,group:o[A],element:F,path:k.clone(),center:h,radius:u,startAngle:s,endAngle:L,chartRect:l}),t.showLabel){let N;n.series.length===1?N={x:h.x,y:h.y}:N=Hy(h.x,h.y,a,s+(L-s)/2);let E;r.labels&&!vF(r.labels[A])?E=r.labels[A]:E=r.series[A];const P=t.labelInterpolationFnc(E,A);if(P||P===0){const _=i.elem("text",{dx:N.x,dy:N.y,"text-anchor":ace(h,N,t.labelDirection)},t.classNames.label).text(String(P));this.eventEmitter.emit("draw",{type:"label",index:A,group:i,element:_,text:""+P,chartRect:l,series:m,meta:S,...N})}}s=L}),this.eventEmitter.emit("created",{chartRect:l,svg:c,options:t})}constructor(t,n,r,o){super(t,n,kT,Yu({},kT,r),o),this.data=n}}const lce=Fe({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColor:{},legends:{},options:{},gridColor:{},legend:{}},setup(e){const t=e,n=pe(),r=jo(tf)||pe(1);let o;const i=Me(()=>t.legend?t.height-20:t.height),a=()=>({...t.data,series:t.data.series[0]}),s=()=>({...t.options||{},width:t.width*r.value,height:i.value*r.value}),c=()=>{if(!n.value)return;const h=s();t.type==="bar"&&(o=new ice(n.value,t.data,h)),t.type==="line"&&(o=new rce(n.value,t.data,h)),t.type==="pie"&&(o=new sce(n.value,a(),h))};Tt([()=>t.width,()=>t.height,()=>t.data,()=>t.options,r],()=>{if(!o){c();return}const h=s(),p=t.type==="pie"?a():t.data;o.update(p,h)}),Gt(c);const u=Me(()=>{let h=[];if(t.themeColor.length>=10)h=t.themeColor;else if(t.themeColor.length===1)h=ot(t.themeColor[0]).analogous(10).map(p=>p.toRgbString());else{const p=t.themeColor.length,m=ot(t.themeColor[p-1]).analogous(11-p).map(A=>A.toRgbString());h=[...t.themeColor.slice(0,p-1),...m]}return h}),f=()=>{if(n.value)for(let h=0;h<10;h++)n.value.style.setProperty(`--theme-color-${h+1}`,u.value[h])};Tt(u,f),Gt(f);const d=()=>{n.value&&t.gridColor&&n.value.style.setProperty("--grid-color",t.gridColor)};return Tt(()=>t.gridColor,d),Gt(d),(h,p)=>(Y(),ee("div",{class:"chart",style:Le({flexDirection:h.legend==="top"?"column-reverse":"column"})},[V("div",{class:"chart-content",ref_key:"chartRef",ref:n,style:Le({width:h.width+"px",height:i.value+"px",transform:`scale(${1/H(r)})`})},null,4),h.legend?(Y(),ee("div",{key:0,class:"legends",style:Le({transform:`scale(${1/H(r)})`})},[(Y(!0),ee(Ve,null,it(h.legends,(m,A)=>(Y(),ee("div",{class:"legend",key:A,style:Le({color:h.gridColor})},[V("div",{class:"block",style:Le({backgroundColor:u.value[A]})},null,4),We(" "+gt(m),1)],4))),128))],4)):Be("",!0)],4))}}),SF=Ue(lce,[["__scopeId","data-v-786c4a79"]]),cce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{Zr.emit(Wr.OPEN_CHART_DATA_EDITOR)};return(o,i)=>{const a=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-chart",{lock:o.elementInfo.lock}]),style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",style:Le({backgroundColor:o.elementInfo.fill}),onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[w(l2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),w(SF,{width:o.elementInfo.width,height:o.elementInfo.height,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||""},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend"])],36)),[[a,o.contextmenus]])],4)],6)}}}),MF=Ue(cce,[["__scopeId","data-v-e98d2ede"]]),wF=e=>{if(!e)return{};const{bold:t,em:n,underline:r,strikethrough:o,color:i,backcolor:a,fontsize:s,fontname:c,align:l}=e;let u=`${r?"underline":""} ${o?"line-through":""}`;return u===" "&&(u="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:u,color:i||"#000",backgroundColor:a||"",fontSize:s||"14px",fontFamily:c||"微软雅黑",textAlign:l||"left"}},LF=e=>e.replace(/\n/g,"
    ").replace(/ /g," "),OF=e=>({hideCells:Me(()=>{const n=[];for(let r=0;r1||a.rowspan>1)for(let s=r;s{const t=pe(["",""]);return Tt(()=>e.value,()=>{e.value&&(t.value=zP(e.value.color))},{immediate:!0}),{subThemeColor:t}},uce=["innerHTML"],fce=Fe({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,r=t,o=pe(),i=pe(""),a=pe(!1);Tt(()=>n.value,()=>{a.value||(i.value=n.value,o.value&&(o.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!o.value)return;const u=o.value.innerHTML;r("updateValue",u)},c=()=>{a.value=!0,o.value&&(o.value.onpaste=u=>{if(u.preventDefault(),!u.clipboardData)return;const f=u.clipboardData.items[0];f&&f.kind==="string"&&f.type==="text/plain"&&f.getAsString(d=>{if(typeof Ob(d)=="object")return;const p=GP(d);if(p){r("insertExcelData",p),o.value&&(o.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)})})},l=()=>{a.value=!1,o.value&&(o.value.onpaste=null)};return Vd(()=>{o.value&&(o.value.onpaste=null)}),(u,f)=>(Y(),ee("div",{class:"custom-textarea",ref_key:"textareaRef",ref:o,contenteditable:!0,onFocus:f[0]||(f[0]=d=>c()),onBlur:f[1]||(f[1]=d=>l()),onInput:f[2]||(f[2]=d=>s()),innerHTML:i.value},null,40,uce))}}),dce=Ue(fce,[["__scopeId","data-v-cfadb975"]]),hce={key:0,class:"handler"},pce=["onMousedown"],mce=["width"],vce=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],gce=["innerHTML"],Ace=Fe({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:o}=Xe(ft()),i=pe(!1),a=pe([]),s=pe([]),c=Me({get(){return n.data},set(q){r("change",q)}}),l=Me(()=>n.theme),{subThemeColor:u}=TF(l),f=pe([]),d=Me(()=>f.value.reduce((q,oe)=>q+oe));Tt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(q=>q*n.width)},{immediate:!0});const h=()=>{a.value=[],s.value=[]};Tt(()=>n.editable,()=>{n.editable||h()});const p=Me(()=>{const q=[];for(let oe=1;oeme+ve);q.push(he)}return q}),m=Me(()=>n.data),{hideCells:A}=OF(m),x=Me(()=>{if(!a.value.length)return[];const[q,oe]=a.value;if(!s.value.length)return[`${q}_${oe}`];const[he,me]=s.value;if(q===he&&oe===me)return[`${q}_${oe}`];const ve=[],J=Math.min(q,he),ue=Math.min(oe,me),X=Math.max(q,he),te=Math.max(oe,me);for(let le=0;le=J&&le<=X&&j>=ue&&j<=te&&ve.push(`${le}_${j}`)}return ve});Tt(x,(q,oe)=>{_n.isEqual(q,oe)||r("changeSelectedCells",x.value)});const R=Me(()=>x.value.length>1?null:x.value[0]),y=()=>i.value=!1,g=(q,oe,he)=>{q.button===0&&(s.value=[],i.value=!0,a.value=[oe,he])},S=(q,oe)=>{i.value&&(s.value=[q,oe])};Gt(()=>{document.addEventListener("mouseup",y)}),Tn(()=>{document.removeEventListener("mouseup",y)});const L=(q,oe)=>A.value.includes(`${q}_${oe}`),T=q=>{const oe=c.value.length-1;a.value=[0,q],s.value=[oe,q]},M=q=>{const oe=c.value[q].length-1;a.value=[q,0],s.value=[q,oe]},O=()=>{const q=c.value.length-1,oe=c.value[q].length-1;a.value=[0,0],s.value=[q,oe]},k=q=>{const oe=JSON.parse(JSON.stringify(c.value)),he=c.value[q],me=[];for(let ve=0;ve=0;J--)if(!L(J,ve)){oe[J][ve].rowspan=oe[J][ve].rowspan-1;break}oe.splice(q,1),c.value=oe},F=q=>{const oe=JSON.parse(JSON.stringify(c.value)),he=[];for(let me=0;me=0;ve--)if(!L(me,ve)){oe[me][ve].colspan=oe[me][ve].colspan-1;break}c.value=oe.map(me=>(me.splice(q,1),me)),f.value.splice(q,1),r("changeColWidths",f.value)},N=q=>{const oe=JSON.parse(JSON.stringify(c.value)),he=[];for(let me=0;me{c.value=c.value.map(oe=>{const he={colspan:1,rowspan:1,text:"",id:pn(10)};return oe.splice(q,0,he),oe}),f.value.splice(q,0,100),r("changeColWidths",f.value)},P=(q,oe)=>{let he=JSON.parse(JSON.stringify(c.value));const me={colspan:1,rowspan:1,text:""};if(q){const ve=[];for(let J=0;J{const J=[];for(let ue=0;ue{const[q,oe]=a.value,[he,me]=s.value,ve=Math.min(q,he),J=Math.min(oe,me),ue=Math.max(q,he),X=Math.max(oe,me),te=JSON.parse(JSON.stringify(c.value));te[ve][J].rowspan=ue-ve+1,te[ve][J].colspan=X-J+1,c.value=te,h()},I=(q,oe)=>{const he=JSON.parse(JSON.stringify(c.value));he[q][oe].rowspan=1,he[q][oe].colspan=1,c.value=he,h()},W=(q,oe)=>{h();let he=!0;const me=f.value[oe],ve=q.pageX,J=50;document.onmousemove=ue=>{if(!he)return;const X=(ue.pageX-ve)/o.value,te=me+X{he=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},D=()=>{const q=JSON.parse(JSON.stringify(c.value));for(let oe=0;oe{const q=(ve,J)=>c.value[ve]?c.value[ve][J]?L(ve,J)?q(ve,J+1):[ve,J]:q(ve+1,0):null;s.value=[];const oe=a.value[0],he=a.value[1]+1,me=q(oe,he);me?a.value=me:(N(oe+1),a.value=[oe+1,0]),Vr(()=>{const ve=document.querySelector(".cell-text.active");ve&&ve.focus()})},ae=q=>{if(!n.editable||!x.value.length)return;const oe=q.key.toUpperCase();if(x.value.length<2){if(oe===yt.TAB&&(q.preventDefault(),z()),q.ctrlKey&&oe===yt.UP){q.preventDefault();const he=+x.value[0].split("_")[0];N(he)}if(q.ctrlKey&&oe===yt.DOWN){q.preventDefault();const he=+x.value[0].split("_")[0];N(he+1)}if(q.ctrlKey&&oe===yt.LEFT){q.preventDefault();const he=+x.value[0].split("_")[1];E(he)}if(q.ctrlKey&&oe===yt.RIGHT){q.preventDefault();const he=+x.value[0].split("_")[1];E(he+1)}}else oe===yt.DELETE&&D()};Gt(()=>{document.addEventListener("keydown",ae)}),Tn(()=>{document.removeEventListener("keydown",ae)});const U=_n.debounce(function(q,oe,he){c.value[oe][he].text=q,r("change",c.value)},300,{trailing:!0}),Z=(q,oe,he)=>{const me=q.length,ve=q[0].length;let J=0,ue=0;oe+me>c.value.length&&(J=oe+me-c.value.length),he+ve>c.value[0].length&&(ue=he+ve-c.value[0].length),(J||ue)&&P(J,ue),Vr(()=>{for(let X=0;X{const q=[];for(let oe=0;oe{const q=B(),oe=q.length>1,he=q[0].length>1;return{canDeleteRow:oe,canDeleteCol:he}},Q=(q,oe)=>{const he=x.value.length>1,me=c.value[q][oe],ve=he,J=!he&&(me.rowspan>1||me.colspan>1);return{canMerge:ve,canSplit:J}},ie=q=>{const oe=q.dataset.cellIndex,he=+oe.split("_")[0],me=+oe.split("_")[1];x.value.includes(`${he}_${me}`)||(a.value=[he,me],s.value=[]);const{canMerge:ve,canSplit:J}=Q(he,me),{canDeleteRow:ue,canDeleteCol:X}=G();return[{text:"插入列",children:[{text:"到左侧",handler:()=>E(me)},{text:"到右侧",handler:()=>E(me+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>N(he)},{text:"到下方",handler:()=>N(he+1)}]},{text:"删除列",disable:!X,handler:()=>F(me)},{text:"删除行",disable:!ue,handler:()=>k(he)},{divider:!0},{text:"合并单元格",disable:!ve,handler:_},{text:"取消合并单元格",disable:!J,handler:()=>I(he,me)},{divider:!0},{text:"选中当前列",handler:()=>T(me)},{text:"选中当前行",handler:()=>M(he)},{text:"选中全部单元格",handler:O}]};return(q,oe)=>{var me,ve,J,ue,X;const he=Mn("contextmenu");return Y(),ee("div",{class:"editable-table",style:Le({width:d.value+"px"})},[q.editable?(Y(),ee("div",hce,[(Y(!0),ee(Ve,null,it(p.value,(te,le)=>(Y(),ee("div",{class:"drag-line",key:le,style:Le({left:te+"px"}),onMousedown:$=>W($,le)},null,44,pce))),128))])):Be("",!0),V("table",{class:$e({theme:l.value,"row-header":(me=l.value)==null?void 0:me.rowHeader,"row-footer":(ve=l.value)==null?void 0:ve.rowFooter,"col-header":(J=l.value)==null?void 0:J.colHeader,"col-footer":(ue=l.value)==null?void 0:ue.colFooter}),style:Le(`--themeColor: ${(X=l.value)==null?void 0:X.color}; --subThemeColor1: ${H(u)[0]}; --subThemeColor2: ${H(u)[1]}`)},[V("colgroup",null,[(Y(!0),ee(Ve,null,it(f.value,(te,le)=>(Y(),ee("col",{span:"1",key:le,width:te},null,8,mce))),128))]),V("tbody",null,[(Y(!0),ee(Ve,null,it(c.value,(te,le)=>(Y(),ee("tr",{key:le,style:Le({height:q.cellMinHeight+"px"})},[(Y(!0),ee(Ve,null,it(te,($,j)=>De((Y(),ee("td",{class:$e(["cell",{selected:x.value.includes(`${le}_${j}`)&&x.value.length>1,active:R.value===`${le}_${j}`}]),style:Le({borderStyle:q.outline.style,borderColor:q.outline.color,borderWidth:q.outline.width+"px",...H(wF)($.style)}),key:$.id,rowspan:$.rowspan,colspan:$.colspan,"data-cell-index":`${le}_${j}`,onMousedown:se=>g(se,le,j),onMouseenter:se=>S(le,j)},[R.value===`${le}_${j}`?(Y(),we(dce,{key:0,class:$e(["cell-text",{active:R.value===`${le}_${j}`}]),style:Le({minHeight:q.cellMinHeight-4+"px"}),value:$.text,onUpdateValue:se=>H(U)(se,le,j),onInsertExcelData:se=>Z(se,le,j)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(Y(),ee("div",{key:1,class:"cell-text",style:Le({minHeight:q.cellMinHeight-4+"px"}),innerHTML:H(LF)($.text)},null,12,gce))],46,vce)),[[il,!H(A).includes(`${le}_${j}`)],[he,se=>ie(se)]])),128))],4))),128))])],6)],4)}}}),Rce=Ue(Ace,[["__scopeId","data-v-d040a5e0"]]),yce={class:"element-content"},xce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{canvasScale:o,handleElementId:i,isScaling:a}=Xe(n),s=pe(),{addHistorySnapshot:c}=zt(),l=R=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo))},u=pe(!1);Tt(i,()=>{i.value!==t.elementInfo.id&&(u.value=!1)}),Tt(u,()=>{n.setDisableHotkeysState(u.value)});const f=()=>{t.elementInfo.lock||(u.value=!0)},d=pe(-1);Tt(a,()=>{i.value===t.elementInfo.id&&(a.value&&(u.value=!1),!a.value&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1))});const h=R=>{const y=R[0].contentRect;if(!s.value)return;const g=y.height;t.elementInfo.height!==g&&(a.value?d.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),Tn(()=>{s.value&&p.unobserve(s.value)});const m=R=>{r.updateElement({id:t.elementInfo.id,props:{data:R}}),c()},A=R=>{const y=R.reduce((S,L)=>S+L),g=R.map(S=>S/y);r.updateElement({id:t.elementInfo.id,props:{width:y,colWidths:g}}),c()},x=R=>{Vr(()=>n.setSelectedTableCells(R))};return(R,y)=>{const g=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-table",{lock:R.elementInfo.lock}]),ref_key:"elementRef",ref:s,style:Le({top:R.elementInfo.top+"px",left:R.elementInfo.left+"px",width:R.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${R.elementInfo.rotate}deg)`})},[De((Y(),ee("div",yce,[w(Rce,{onMousedown:y[0]||(y[0]=Wt(()=>{},["stop"])),data:R.elementInfo.data,width:R.elementInfo.width,cellMinHeight:R.elementInfo.cellMinHeight,colWidths:R.elementInfo.colWidths,outline:R.elementInfo.outline,theme:R.elementInfo.theme,editable:u.value,onChange:y[1]||(y[1]=S=>m(S)),onChangeColWidths:y[2]||(y[2]=S=>A(S)),onChangeSelectedCells:y[3]||(y[3]=S=>x(S))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!u.value||R.elementInfo.lock?(Y(),ee("div",{key:0,class:$e(["table-mask",{lock:R.elementInfo.lock}]),onDblclick:y[4]||(y[4]=S=>f()),onMousedown:y[5]||(y[5]=S=>l(S)),onTouchstart:y[6]||(y[6]=S=>l(S))},[H(i)===R.elementInfo.id?(Y(),ee("div",{key:0,class:"mask-tip",style:Le({transform:`scale(${1/H(o)})`})},"双击编辑",4)):Be("",!0)],34)):Be("",!0)])),[[g,R.contextmenus]])],4)],6)}}}),kF=Ue(xce,[["__scopeId","data-v-7795910a"]]),bce=["width","height","stroke","stroke-width"],Sce=["transform"],Mce=["d"],wce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{Zr.emit(Wr.OPEN_LATEX_EDITOR)};return(o,i)=>{const a=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-latex",{lock:o.elementInfo.lock}]),style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[(Y(),ee("svg",{overflow:"visible",width:o.elementInfo.width,height:o.elementInfo.height,stroke:o.elementInfo.color,"stroke-width":o.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${o.elementInfo.width/o.elementInfo.viewBox[0]}, ${o.elementInfo.height/o.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:o.elementInfo.path},null,8,Mce)],8,Sce)],8,bce))],32)),[[a,o.contextmenus]])],4)],6)}}}),NF=Ue(wce,[["__scopeId","data-v-b73586f6"]]),Lce=(e,t)=>{Gt(()=>{if(!t.value)return;let n="normal";if(/m3u8(#|\?|$)/i.exec(e)?n="hls":/.flv(#|\?|$)/i.exec(e)&&(n="flv"),t.value&&n==="hls"&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),n==="hls"){const r=window.Hls;if(r&&r.isSupported()){const o=new r;o.loadSource(e),o.attachMedia(t.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const o=r.createPlayer({type:"flv",url:e});o.attachMediaElement(t.value),o.load()}}})},M5=e=>(on("data-v-597c0901"),e=e(),an(),e),Oce={key:0,class:"load-error"},Tce=["src","autoplay","poster"],kce={class:"bezel"},Nce=M5(()=>V("div",{class:"controller-mask"},null,-1)),Pce={class:"controller"},Cce={class:"icons icons-left"},Ice={class:"icon-content"},Fce={class:"volume"},_ce={class:"icon-content"},Ece=M5(()=>V("span",{class:"thumb"},null,-1)),Xce=[Ece],Wce={class:"time"},Vce={class:"ptime"},Uce={class:"dtime"},Yce={class:"icons icons-right"},Qce={class:"speed"},Zce={class:"icon speed-icon"},Bce=["onClick"],Dce={class:"icon-content"},Kce={class:"bar"},Hce=M5(()=>V("span",{class:"thumb"},null,-1)),Gce=[Hce],zce=Fe({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,n=(X=0)=>{if(X===0||isNaN(X))return"00:00";const te=se=>se<10?"0"+se:""+se,le=Math.floor(X/3600),$=Math.floor((X-le*3600)/60),j=Math.floor(X-le*3600-$*60);return(le>0?[le,$,j]:[$,j]).map(te).join(":")},r=X=>X.getBoundingClientRect().left,o=pe(),i=pe(),a=pe(),s=pe(.5),c=pe(!0),l=pe(0),u=pe(0),f=pe(0),d=pe(!1),h=pe(!1),p=pe(1),m=pe(!1),A=pe("00:00"),x=pe("0"),R=Me(()=>n(l.value)),y=Me(()=>n(u.value)),g=Me(()=>l.value/u.value*100+"%"),S=Me(()=>f.value/u.value*100+"%"),L=Me(()=>s.value*100+"%"),T=pe(!1),M=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],O=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,u.value),o.value.currentTime=X,l.value=X)},k=()=>{o.value&&(c.value=!1,o.value.play(),h.value=!0)},F=()=>{o.value&&(c.value=!0,o.value.pause(),h.value=!0)},N=()=>{c.value?k():F()},E=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,1),o.value.volume=X,s.value=X,o.value.muted&&X!==0&&(o.value.muted=!1))},P=X=>{o.value&&(o.value.playbackRate=X),p.value=X},_=()=>{var X;u.value=((X=o.value)==null?void 0:X.duration)||0},I=()=>{var X;l.value=((X=o.value)==null?void 0:X.currentTime)||0},W=()=>{d.value?(O(0),k()):F()},D=()=>{var X;f.value=(X=o.value)!=null&&X.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},z=pe(!1),ae=()=>z.value=!0,U=X=>{if(!o.value||!i.value)return;let le=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;le=Math.max(le,0),le=Math.min(le,1);const $=le*u.value;o.value.currentTime=$,l.value=$},Z=X=>{if(!o.value||!i.value)return;let le=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;le=Math.max(le,0),le=Math.min(le,1);const $=le*u.value;o.value.currentTime=$,l.value=$,document.removeEventListener("mousemove",U),document.removeEventListener("touchmove",U),document.removeEventListener("mouseup",Z),document.removeEventListener("touchend",Z)},B=()=>{document.addEventListener("mousemove",U),document.addEventListener("touchmove",U),document.addEventListener("mouseup",Z),document.addEventListener("touchend",Z)},G=X=>{if(!a.value)return;const le=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(a.value))/45;E(le)},Q=()=>{document.removeEventListener("mousemove",G),document.removeEventListener("touchmove",G),document.removeEventListener("mouseup",Q),document.removeEventListener("touchend",Q)},ie=()=>{document.addEventListener("mousemove",G),document.addEventListener("touchmove",G),document.addEventListener("mouseup",Q),document.addEventListener("touchend",Q)},q=X=>{if(!a.value)return;const te=(X.clientX-r(a.value))/45;E(te)},oe=X=>{if(u.value&&i.value){const te=i.value.getBoundingClientRect().left,le=X.clientX-te;if(le<0||le>i.value.offsetWidth)return;const $=u.value*(le/i.value.offsetWidth);x.value=`${le-($>=3600?25:20)}px`,A.value=n($),m.value=!0}},he=()=>{o.value&&(o.value.muted?(o.value.muted=!1,E(.5)):(o.value.muted=!0,E(0)))},me=()=>{d.value=!d.value},ve=pe(-1),J=pe(!1),ue=()=>{J.value=!1,clearTimeout(ve.value),ve.value=setTimeout(()=>{var X;(X=o.value)!=null&&X.played.length&&(J.value=!0)},3e3)};return Lce(t.src,o),(X,te)=>{const le=xe("IconPause"),$=xe("IconPlayOne"),j=xe("IconVolumeMute"),se=xe("IconVolumeNotice"),ge=xe("IconVolumeSmall");return Y(),ee("div",{class:$e(["video-player",{"hide-controller":J.value}]),style:Le({width:X.width*X.scale+"px",height:X.height*X.scale+"px",transform:`scale(${1/X.scale})`}),onMousemove:te[22]||(te[22]=ce=>ue()),onClick:te[23]||(te[23]=ce=>ue())},[V("div",{class:"video-wrap",onClick:te[8]||(te[8]=ce=>N())},[z.value?(Y(),ee("div",Oce,"视频加载失败")):Be("",!0),V("video",{class:"video",ref_key:"videoRef",ref:o,src:X.src,autoplay:X.autoplay,poster:X.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:te[0]||(te[0]=ce=>_()),onTimeupdate:te[1]||(te[1]=ce=>I()),onEnded:te[2]||(te[2]=ce=>W()),onProgress:te[3]||(te[3]=ce=>D()),onPlay:te[4]||(te[4]=ce=>{ue(),c.value=!1}),onPause:te[5]||(te[5]=ce=>ue()),onError:te[6]||(te[6]=ce=>ae())},null,40,Tce),V("div",kce,[V("span",{class:$e(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:te[7]||(te[7]=ce=>h.value=!1)},[c.value?(Y(),we(le,{key:0})):(Y(),we($,{key:1}))],34)])]),Nce,V("div",Pce,[V("div",Cce,[V("div",{class:"icon play-icon",onClick:te[9]||(te[9]=ce=>N())},[V("span",Ice,[c.value?(Y(),we($,{key:0})):(Y(),we(le,{key:1}))])]),V("div",Fce,[V("div",{class:"icon volume-icon",onClick:te[10]||(te[10]=ce=>he())},[V("span",_ce,[s.value===0?(Y(),we(j,{key:0})):s.value===1?(Y(),we(se,{key:1})):(Y(),we(ge,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:te[11]||(te[11]=ce=>ie()),onTouchstart:te[12]||(te[12]=ce=>ie()),onClick:te[13]||(te[13]=ce=>q(ce))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:a},[V("div",{class:"volume-bar-inner",style:Le({width:L.value})},Xce,4)],512)],32)]),V("span",Wce,[V("span",Vce,gt(R.value),1),We(" / "),V("span",Uce,gt(y.value),1)])]),V("div",Yce,[V("div",Qce,[V("div",Zce,[V("span",{class:"icon-content",onClick:te[14]||(te[14]=ce=>T.value=!T.value)},gt(p.value===1?"倍速":p.value+"x"),1),T.value?(Y(),ee("div",{key:0,class:"speed-menu",onMouseleave:te[15]||(te[15]=ce=>T.value=!1)},[(Y(),ee(Ve,null,it(M,ce=>V("div",{class:$e(["speed-menu-item",{active:ce.value===p.value}]),key:ce.label,onClick:Ae=>P(ce.value)},gt(ce.label),11,Bce)),64))],32)):Be("",!0)])]),V("div",{class:"loop",onClick:te[16]||(te[16]=ce=>me())},[V("div",{class:$e(["icon loop-icon",{active:d.value}])},[V("span",Dce,"循环"+gt(d.value?"开":"关"),1)],2)])]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:i,onMousedown:te[17]||(te[17]=ce=>B()),onTouchstart:te[18]||(te[18]=ce=>B()),onMousemove:te[19]||(te[19]=ce=>oe(ce)),onMouseenter:te[20]||(te[20]=ce=>m.value=!0),onMouseleave:te[21]||(te[21]=ce=>m.value=!1)},[V("div",{class:$e(["bar-time",{hidden:!m.value}]),style:Le({left:x.value})},gt(A.value),7),V("div",Kce,[V("div",{class:"loaded",style:Le({width:S.value})},null,4),V("div",{class:"played",style:Le({width:g.value})},Gce,4)])],544)])],38)}}}),PF=Ue(zce,[["__scopeId","data-v-597c0901"]]),Jce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=(o,i=!0)=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo,i))};return(o,i)=>{const a=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-video",{lock:o.elementInfo.lock}]),style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",onMousedown:i[2]||(i[2]=s=>r(s,!1)),onTouchstart:i[3]||(i[3]=s=>r(s,!1))},[w(PF,{width:o.elementInfo.width,height:o.elementInfo.height,src:o.elementInfo.src,poster:o.elementInfo.poster,scale:H(n)},null,8,["width","height","src","poster","scale"]),(Y(),ee(Ve,null,it(["t","b","l","r"],s=>V("div",{class:$e(["handler-border",s]),key:s,onMousedown:i[0]||(i[0]=c=>r(c)),onTouchstart:i[1]||(i[1]=c=>r(c))},null,34)),64))],32)),[[a,o.contextmenus]])],4)],6)}}}),CF=Ue(Jce,[["__scopeId","data-v-c50d3bc7"]]),IF=e=>(on("data-v-32038f5c"),e=e(),an(),e),$ce=["src","autoplay"],jce={class:"controller"},qce={class:"icons"},eue={class:"icon-content"},tue={class:"volume"},nue={class:"icon-content"},rue=IF(()=>V("span",{class:"thumb"},null,-1)),oue=[rue],iue={class:"time"},aue={class:"ptime"},sue={class:"dtime"},lue={class:"bar"},cue=IF(()=>V("span",{class:"thumb"},null,-1)),uue=[cue],fue=Fe({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const n=e,r=(Q=0)=>{if(Q===0||isNaN(Q))return"00:00";const ie=me=>me<10?"0"+me:""+me,q=Math.floor(Q/3600),oe=Math.floor((Q-q*3600)/60),he=Math.floor(Q-q*3600-oe*60);return(q>0?[q,oe,he]:[oe,he]).map(ie).join(":")},o=Q=>Q.getBoundingClientRect().left,i=pe(),a=pe(),s=pe(),c=pe(.5),l=pe(!0),u=pe(0),f=pe(0),d=pe(0),h=pe(!1),p=pe("00:00"),m=pe("0"),A=Me(()=>r(u.value)),x=Me(()=>r(f.value)),R=Me(()=>u.value/f.value*100+"%"),y=Me(()=>d.value/f.value*100+"%"),g=Me(()=>c.value*100+"%"),S=Q=>{i.value&&(Q=Math.max(Q,0),Q=Math.min(Q,f.value),i.value.currentTime=Q,u.value=Q)},L=()=>{i.value&&(l.value=!1,i.value.play())},T=()=>{i.value&&(l.value=!0,i.value.pause())},M=()=>{l.value?L():T()},O=Q=>{i.value&&(Q=Math.max(Q,0),Q=Math.min(Q,1),i.value.volume=Q,c.value=Q,i.value.muted&&Q!==0&&(i.value.muted=!1))},k=()=>{var Q;f.value=((Q=i.value)==null?void 0:Q.duration)||0},F=()=>{var Q;u.value=((Q=i.value)==null?void 0:Q.currentTime)||0},N=()=>{l.value=!1},E=()=>{n.loop?(S(0),L()):T()},P=()=>{var Q;d.value=(Q=i.value)!=null&&Q.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},_=()=>Sn.error("视频加载失败"),I=Q=>{if(!i.value||!a.value)return;let q=(("clientX"in Q?Q.clientX:Q.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;q=Math.max(q,0),q=Math.min(q,1);const oe=q*f.value;i.value.currentTime=oe,u.value=oe},W=Q=>{if(!i.value||!a.value)return;let q=(("clientX"in Q?Q.clientX:Q.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;q=Math.max(q,0),q=Math.min(q,1);const oe=q*f.value;i.value.currentTime=oe,u.value=oe,document.removeEventListener("mousemove",I),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",W),document.removeEventListener("touchend",W)},D=()=>{document.addEventListener("mousemove",I),document.addEventListener("touchmove",I),document.addEventListener("mouseup",W),document.addEventListener("touchend",W)},z=Q=>{if(!s.value)return;const q=(("clientX"in Q?Q.clientX:Q.changedTouches[0].clientX)-o(s.value))/45;O(q)},ae=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("touchmove",z),document.removeEventListener("mouseup",ae),document.removeEventListener("touchend",ae)},U=()=>{document.addEventListener("mousemove",z),document.addEventListener("touchmove",z),document.addEventListener("mouseup",ae),document.addEventListener("touchend",ae)},Z=Q=>{if(!s.value)return;const ie=(Q.clientX-o(s.value))/45;O(ie)},B=Q=>{if(f.value&&a.value){const ie=a.value.getBoundingClientRect().left,q=Q.clientX-ie;if(q<0||q>a.value.offsetWidth)return;const oe=f.value*(q/a.value.offsetWidth);m.value=`${q-(oe>=3600?25:20)}px`,p.value=r(oe),h.value=!0}},G=()=>{i.value&&(i.value.muted?(i.value.muted=!1,O(.5)):(i.value.muted=!0,O(0)))};return t({toggle:M}),(Q,ie)=>{const q=xe("IconPlayOne"),oe=xe("IconPause"),he=xe("IconVolumeMute"),me=xe("IconVolumeNotice"),ve=xe("IconVolumeSmall");return Y(),ee("div",{class:"audio-player",style:Le({transform:`scale(${1/Q.scale})`})},[V("audio",{class:"audio",ref_key:"audioRef",ref:i,src:Q.src,autoplay:Q.autoplay,onDurationchange:ie[0]||(ie[0]=J=>k()),onTimeupdate:ie[1]||(ie[1]=J=>F()),onPlay:ie[2]||(ie[2]=J=>N()),onEnded:ie[3]||(ie[3]=J=>E()),onProgress:ie[4]||(ie[4]=J=>P()),onError:ie[5]||(ie[5]=J=>_())},null,40,$ce),V("div",jce,[V("div",qce,[V("div",{class:"icon play-icon",onClick:ie[6]||(ie[6]=J=>M())},[V("span",eue,[l.value?(Y(),we(q,{key:0})):(Y(),we(oe,{key:1}))])]),V("div",tue,[V("div",{class:"icon volume-icon",onClick:ie[7]||(ie[7]=J=>G())},[V("span",nue,[c.value===0?(Y(),we(he,{key:0})):c.value===1?(Y(),we(me,{key:1})):(Y(),we(ve,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:ie[8]||(ie[8]=J=>U()),onTouchstart:ie[9]||(ie[9]=J=>U()),onClick:ie[10]||(ie[10]=J=>Z(J))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[V("div",{class:"volume-bar-inner",style:Le({width:g.value})},oue,4)],512)],32)])]),V("span",iue,[V("span",aue,gt(A.value),1),We(" / "),V("span",sue,gt(x.value),1)]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:ie[11]||(ie[11]=J=>D()),onTouchstart:ie[12]||(ie[12]=J=>D()),onMousemove:ie[13]||(ie[13]=J=>B(J)),onMouseenter:ie[14]||(ie[14]=J=>h.value=!0),onMouseleave:ie[15]||(ie[15]=J=>h.value=!1)},[V("div",{class:$e(["bar-time",{hidden:!h.value}]),style:Le({left:m.value})},gt(p.value),7),V("div",lue,[V("div",{class:"loaded",style:Le({width:y.value})},null,4),V("div",{class:"played",style:Le({width:R.value})},uue,4)])],544)])],4)}}}),FF=Ue(fue,[["__scopeId","data-v-32038f5c"]]),due=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:r}=Xe(ft()),{viewportRatio:o}=Xe(ct()),i=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),a=Me(()=>{const c=Ht,l=Ht*o.value,u=280/n.value,f=50/n.value,d=t.elementInfo.width,h=t.elementInfo.height,p=t.elementInfo.left,m=t.elementInfo.top;let A=0,x=h;return p+u>=c&&(A=d-u),m+h+f>=l&&(x=-f),{left:A+"px",top:x+"px"}}),s=c=>{t.elementInfo.lock||(c.stopPropagation(),t.selectElement(c,t.elementInfo))};return(c,l)=>{const u=xe("IconVolumeNotice"),f=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-audio",{lock:c.elementInfo.lock}]),style:Le({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px",width:c.elementInfo.width+"px",height:c.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${c.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",onMousedown:l[1]||(l[1]=d=>s(d)),onTouchstart:l[2]||(l[2]=d=>s(d))},[w(u,{class:"audio-icon",style:Le({fontSize:i.value,color:c.elementInfo.color})},null,8,["style"]),H(r)===c.elementInfo.id?(Y(),we(FF,{key:0,class:"audio-player",style:Le({...a.value}),src:c.elementInfo.src,loop:c.elementInfo.loop,scale:H(n),onMousedown:l[0]||(l[0]=Wt(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Be("",!0)],32)),[[f,c.contextmenus]])],4)],6)}}}),_F=Ue(due,[["__scopeId","data-v-5d8373ba"]]),hue=["id"],pue=Fe({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=Me(()=>({[Nt.IMAGE]:RI,[Nt.TEXT]:dF,[Nt.SHAPE]:pF,[Nt.LINE]:mF,[Nt.CHART]:MF,[Nt.TABLE]:kF,[Nt.LATEX]:NF,[Nt.VIDEO]:CF,[Nt.AUDIO]:_F})[t.elementInfo.type]||null),{orderElement:r}=Np(),{alignElementToCanvas:o}=a2(),{combineElements:i,uncombineElements:a}=Cb(),{deleteElement:s}=kp(),{lockElement:c,unlockElement:l}=JP(),{copyElement:u,pasteElement:f,cutElement:d}=Ib(),{selectAllElements:h}=Hg(),p=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>l(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:u},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>o(nn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"水平居中",handler:()=>o(nn.HORIZONTAL)},{text:"左对齐",handler:()=>o(nn.LEFT)},{text:"右对齐",handler:()=>o(nn.RIGHT)}]},{text:"垂直居中",handler:()=>o(nn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"垂直居中",handler:()=>o(nn.VERTICAL)},{text:"顶部对齐",handler:()=>o(nn.TOP)},{text:"底部对齐",handler:()=>o(nn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,pr.TOP),children:[{text:"置于顶层",handler:()=>r(t.elementInfo,pr.TOP)},{text:"上移一层",handler:()=>r(t.elementInfo,pr.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,pr.BOTTOM),children:[{text:"置于底层",handler:()=>r(t.elementInfo,pr.BOTTOM)},{text:"下移一层",handler:()=>r(t.elementInfo,pr.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:i,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:c},{text:"删除",subText:"Delete",handler:s}];return(m,A)=>(Y(),ee("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${m.elementInfo.id}`,style:Le({zIndex:m.elementIndex})},[(Y(),we(xs(n.value),{elementInfo:m.elementInfo,selectElement:m.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,hue))}}),mue=Fe({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:$e(`mouse-selection quadrant-${t.quadrant}`),style:Le({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),vue=Ue(mue,[["__scopeId","data-v-053bfa3e"]]),gue={class:"grid-lines"},Aue=["d","stroke"],Rue=Fe({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=Xe(ft()),{currentSlide:r,viewportRatio:o}=Xe(ct()),i=Me(()=>{var c;return(c=r.value)==null?void 0:c.background}),a=Me(()=>{var u;const c=((u=i.value)==null?void 0:u.color)||"#fff",l=["#000","#fff"];return ot.mostReadable(c,l,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),s=Me(()=>{const c=Ht,l=Ht*o.value;let u="";for(let f=0;f<=Math.floor(l/n.value);f++)u+=`M0 ${f*n.value} L${c} ${f*n.value} `;for(let f=0;f<=Math.floor(c/n.value);f++)u+=`M${f*n.value} 0 L${f*n.value} ${l} `;return u});return(c,l)=>(Y(),ee("svg",gue,[V("path",{style:Le({transform:`scale(${H(t)})`}),d:s.value,fill:"none",stroke:a.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,Aue)]))}}),yue=Ue(Rue,[["__scopeId","data-v-d6e1ea18"]]),d2=e=>({backgroundStyle:Me(()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:o,imageSize:i,gradientColor:a,gradientRotate:s,gradientType:c}=e.value;if(n==="solid")return{backgroundColor:r};if(n==="image")return o?i==="repeat"?{backgroundImage:`url(${o}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${o}`,backgroundRepeat:"no-repeat",backgroundSize:i||"cover"}:{backgroundColor:"#fff"};if(n==="gradient"){const l=s||0,u=a?a[0]:"#fff",f=a?a[1]:"#fff";return c==="radial"?{backgroundImage:`radial-gradient(${u}, ${f}`}:{backgroundImage:`linear-gradient(${l}deg, ${u}, ${f}`}}return{backgroundColor:"#fff"}})}),xue=Fe({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=Xe(ft()),{currentSlide:n}=Xe(ct()),r=Me(()=>{var i;return(i=n.value)==null?void 0:i.background}),{backgroundStyle:o}=d2(r);return(i,a)=>(Y(),ee("div",{class:"viewport-background",style:Le(H(o))},[H(t)?(Y(),we(yue,{key:0})):Be("",!0)],4))}}),bue=Ue(xue,[["__scopeId","data-v-203ea8ff"]]),Sue=Fe({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=Me(()=>t.axis.x*t.canvasScale+"px"),r=Me(()=>t.axis.y*t.canvasScale+"px"),o=Me(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(i,a)=>(Y(),ee("div",{class:"alignment-line",style:Le({left:n.value,top:r.value})},[V("div",{class:$e(["line",i.type]),style:Le(o.value)},null,6)],4))}}),EF=Ue(Sue,[["__scopeId","data-v-7cd3d25d"]]),Mue={class:"ruler"},wue=Fe({__name:"Ruler",props:{viewportStyles:{}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.viewportStyles.width*n.value/10);return(o,i)=>(Y(),ee("div",Mue,[V("div",{class:"h",style:Le({width:o.viewportStyles.width*H(n)+"px",left:o.viewportStyles.left+"px"})},[(Y(),ee(Ve,null,it(20,a=>V("div",{class:$e(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:`marker-100-${a}`},[V("span",null,gt(a),1)],2)),64))],4),V("div",{class:"v",style:Le({height:o.viewportStyles.height*H(n)+"px",top:o.viewportStyles.top+"px"})},[(Y(),ee(Ve,null,it(20,a=>V("div",{class:$e(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:a,style:Le({height:r.value+"px"})},[V("span",null,gt(a),1)],6)),64))],4)]))}}),Lue=Ue(wue,[["__scopeId","data-v-b01be305"]]),Oue=["width","height"],Tue=["d"],kue=Fe({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,r=ft(),{creatingElement:o}=Xe(r),{ctrlOrShiftKeyActive:i}=Xe(Ss()),a=pe(),s=pe(),c=pe(),l=pe({x:0,y:0});Gt(()=>{if(!c.value)return;const{x:h,y:p}=c.value.getBoundingClientRect();l.value={x:h,y:p}});const u=h=>{let p=!0;const m=h.pageX,A=h.pageY;a.value=[m,A],document.onmousemove=x=>{if(!o.value||!p)return;let R=x.pageX,y=x.pageY;if(i.value){const g=R-m,S=y-A,L=Math.abs(g),T=Math.abs(S);if(o.value.type==="shape"){const M=S>0&&g<0||S<0&&g>0;L>T?y=M?A-g:A+g:R=M?m-S:m+S}else o.value.type==="line"&&(L>T?y=A:R=m)}s.value=[R,y]},document.onmouseup=x=>{var S,L;if(document.onmousemove=null,document.onmouseup=null,x.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const R=x.pageX,y=x.pageY,g=30;if(((S=o.value)==null?void 0:S.type)==="line"&&(Math.abs(R-m)>=g||Math.abs(y-A)>=g))n("created",{start:a.value,end:s.value});else if(((L=o.value)==null?void 0:L.type)!=="line"&&Math.abs(R-m)>=g&&Math.abs(y-A)>=g)n("created",{start:a.value,end:s.value});else{const M=Math.min(R,m),O=Math.min(y,A),k=Math.max(R,m),F=Math.max(y,A),N=k-M>=g?k-M:200,E=F-O>=g?F-O:200;n("created",{start:[M,O],end:[M+N,O+E]})}}},f=Me(()=>{if(!a.value||!s.value||!o.value||o.value.type!=="line")return null;const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),R=Math.max(h,m),y=Math.min(p,A),g=Math.max(p,A),S=R-x>=24?R-x:24,L=g-y>=24?g-y:24,T=h===x?0:R-x,M=p===y?0:g-y,O=m===x?0:R-x,k=A===y?0:g-y,F=`M${T}, ${M} L${O}, ${k}`;return{svgWidth:S,svgHeight:L,startX:T,startY:M,endX:O,endY:k,path:F}}),d=Me(()=>{if(!a.value||!s.value)return{};const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),R=Math.max(h,m),y=Math.min(p,A),g=Math.max(p,A),S=R-x,L=g-y;return{left:x-l.value.x+"px",top:y-l.value.y+"px",width:S+"px",height:L+"px"}});return(h,p)=>{var m,A;return Y(),ee("div",{class:"element-create-selection",ref_key:"selectionRef",ref:c,onMousedown:p[0]||(p[0]=Wt(x=>u(x),["stop"])),onContextmenu:p[1]||(p[1]=Wt(()=>{},["stop","prevent"]))},[a.value&&s.value?(Y(),ee("div",{key:0,class:$e(["selection",(m=H(o))==null?void 0:m.type]),style:Le(d.value)},[((A=H(o))==null?void 0:A.type)==="line"&&f.value?(Y(),ee("svg",{key:0,overflow:"visible",width:f.value.svgWidth,height:f.value.svgHeight},[V("path",{d:f.value.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,Tue)],8,Oue)):Be("",!0)],6)):Be("",!0)],544)}}}),Nue=Ue(kue,[["__scopeId","data-v-7b17a883"]]),Pue={overflow:"visible"},Cue=["d","fill"],Iue=Fe({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,r=ft(),{ctrlOrShiftKeyActive:o}=Xe(Ss()),{theme:i}=Xe(ct()),a=pe(),s=pe(!1),c=pe({x:0,y:0});Gt(()=>{if(!a.value)return;const{x:g,y:S}=a.value.getBoundingClientRect();c.value={x:g,y:S}});const l=pe(null),u=pe([]),f=pe(!1),d=(g,S=!1)=>{let L=g.pageX-c.value.x,T=g.pageY-c.value.y;if(S)return{pageX:L,pageY:T};if(o.value&&u.value.length){const[M,O]=u.value[u.value.length-1];Math.abs(M-L)-Math.abs(O-T)>0?T=O:L=M}return{pageX:L,pageY:T}},h=g=>{if(s.value){const{pageX:T,pageY:M}=d(g,!0);u.value.push([T,M]),l.value=null;return}const{pageX:S,pageY:L}=d(g);if(l.value=[S,L],u.value.length>=2){const[T,M]=u.value[0];Math.abs(T-S)<5&&Math.abs(M-L)<5?f.value=!0:f.value=!1}else f.value=!1},p=Me(()=>{let g="";for(let S=0;S{const S=u.value.map(I=>I[0]),L=u.value.map(I=>I[1]),T=Math.min(...S),M=Math.min(...L),O=Math.max(...S),k=Math.max(...L),F=u.value.map(I=>[I[0]-T,I[1]-M]);let N="";for(let I=0;I{const{pageX:S,pageY:L}=d(g);s.value=!0,f.value?n("created",m()):u.value.push([S,L]),document.onmouseup=()=>{s.value=!1}},x=()=>{r.setCreatingCustomShapeState(!1)},R=()=>{n("created",{...m(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:i.value.themeColor,style:"solid"}}),x()},y=g=>{const S=g.key.toUpperCase();S===yt.ESC&&x(),S===yt.ENTER&&R()};return Gt(()=>{Sn.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",y)}),Tn(()=>{document.removeEventListener("keydown",y),Sn.closeAll()}),(g,S)=>(Y(),ee("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:S[0]||(S[0]=Wt(L=>A(L),["stop"])),onMousemove:S[1]||(S[1]=L=>h(L)),onContextmenu:S[2]||(S[2]=Wt(L=>x(),["stop","prevent"]))},[(Y(),ee("svg",Pue,[V("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,Cue)]))],544))}}),Fue=Ue(Iue,[["__scopeId","data-v-8ea8c340"]]),nf=(e,t)=>{const n=Me(()=>[{direction:mt.LEFT_TOP,style:{}},{direction:mt.TOP,style:{left:e.value/2+"px"}},{direction:mt.RIGHT_TOP,style:{left:e.value+"px"}},{direction:mt.LEFT,style:{top:t.value/2+"px"}},{direction:mt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:mt.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:mt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:mt.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),r=Me(()=>[{direction:mt.LEFT,style:{top:t.value/2+"px"}},{direction:mt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),o=Me(()=>[{direction:mt.TOP,style:{left:e.value/2+"px"}},{direction:mt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),i=Me(()=>[{type:W0.T,style:{width:e.value+"px"}},{type:W0.B,style:{top:t.value+"px",width:e.value+"px"}},{type:W0.L,style:{height:t.value+"px"}},{type:W0.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:o,borderLines:i}},_ue=Fe({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=Me(()=>{const r="rotate-",o=t.rotate;return o>-22.5&&o<=22.5?r+0:o>22.5&&o<=67.5?r+45:o>67.5&&o<=112.5?r+90:o>112.5&&o<=157.5?r+135:o>157.5||o<=-157.5?r+0:o>-157.5&&o<=-112.5?r+45:o>-112.5&&o<=-67.5?r+90:o>-67.5&&o<=-22.5?r+135:r+0});return(r,o)=>(Y(),ee("div",{class:$e(["resize-handler",n.value,r.type])},null,2))}}),Tc=Ue(_ue,[["__scopeId","data-v-bb3f9e62"]]),Eue=Fe({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(Y(),ee("div",{class:$e(["border-line",t.type,{wide:t.isWide}])},null,2))}}),rf=Ue(Eue,[["__scopeId","data-v-7114fb45"]]),Xue=Fe({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:r}=Xe(ft()),o=Me(()=>t.elementList.filter(d=>n.value.includes(d.id))),i=pe({minX:0,maxX:0,minY:0,maxY:0}),a=Me(()=>(i.value.maxX-i.value.minX)*r.value),s=Me(()=>(i.value.maxY-i.value.minY)*r.value),{resizeHandlers:c,borderLines:l}=nf(a,s);Tg(()=>{const{minX:d,maxX:h,minY:p,maxY:m}=ec(o.value);i.value={minX:d,maxX:h,minY:p,maxY:m}});const f=Me(()=>o.value.some(d=>!((d.type==="image"||d.type==="shape")&&!d.rotate)));return(d,h)=>(Y(),ee("div",{class:"multi-select-operate",style:Le({left:i.value.minX*H(r)+"px",top:i.value.minY*H(r)+"px"})},[(Y(!0),ee(Ve,null,it(H(l),p=>(Y(),we(rf,{key:p.type,type:p.type,style:Le(p.style)},null,8,["type","style"]))),128)),f.value?Be("",!0):(Y(!0),ee(Ve,{key:0},it(H(c),p=>(Y(),we(Tc,{key:p.direction,type:p.direction,style:Le(p.style),onMousedown:Wt(m=>d.scaleMultiElement(m,i.value,p.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),Wue=Ue(Xue,[["__scopeId","data-v-135c8cb7"]]),Vue={},Uue={class:"rotate-handler"};function Yue(e,t){return Y(),ee("div",Uue)}const zd=Ue(Vue,[["render",Yue],["__scopeId","data-v-9f21fc0f"]]),Que={inheritAttrs:!1},Zue=Fe({...Que,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:r}=Xe(ft()),o=Me(()=>r.value===t.elementInfo.id),i=Me(()=>t.elementInfo.width*n.value),a=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:c}=nf(i,a);return(l,u)=>(Y(),ee("div",{class:$e(["image-element-operate",{cliping:o.value}])},[(Y(!0),ee(Ve,null,it(H(c),f=>(Y(),we(rf,{class:"operate-border-line",key:f.type,type:f.type,style:Le(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(s),f=>(Y(),we(Tc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:Le(f.style),onMousedown:Wt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w(zd,{class:"operate-rotate-handler",style:Le({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=Wt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Be("",!0)],2))}}),Bue=Ue(Zue,[["__scopeId","data-v-2a1bef4e"]]),Due={class:"text-element-operate"},Kue={inheritAttrs:!1},Hue=Fe({...Kue,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:i,verticalTextElementResizeHandlers:a,borderLines:s}=nf(r,o),c=Me(()=>t.elementInfo.vertical?a.value:i.value);return(l,u)=>(Y(),ee("div",Due,[(Y(!0),ee(Ve,null,it(H(s),f=>(Y(),we(rf,{class:"operate-border-line",key:f.type,type:f.type,style:Le(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(c.value,f=>(Y(),we(Tc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:Le(f.style),onMousedown:Wt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w(zd,{class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Wt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Be("",!0)]))}}),Gue={class:"shape-element-operate"},zue={inheritAttrs:!1},Jue=Fe({...zue,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=nf(r,o),s=Me(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoint===void 0)return{};const c=Ju[t.elementInfo.pathFormula];if("editable"in c){const l=c.getBaseSize(t.elementInfo.width,t.elementInfo.height)*t.elementInfo.keypoint;if(c.relative==="left")return{left:l*n.value+"px"};if(c.relative==="right")return{left:(t.elementInfo.width-l)*n.value+"px"};if(c.relative==="center")return{left:(t.elementInfo.width-l)/2*n.value+"px"};if(c.relative==="top")return{top:l*n.value+"px"};if(c.relative==="bottom")return{top:(t.elementInfo.height-l)*n.value+"px"}}return{}});return(c,l)=>(Y(),ee("div",Gue,[(Y(!0),ee(Ve,null,it(H(a),u=>(Y(),we(rf,{class:"operate-border-line",key:u.type,type:u.type,style:Le(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(i),u=>(Y(),we(Tc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:Le(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w(zd,{class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]),c.elementInfo.keypoint!==void 0?(Y(),ee("div",{key:0,class:"operate-keypoint-handler",style:Le(s.value),onMousedown:l[1]||(l[1]=Wt(u=>c.moveShapeKeypoint(u,c.elementInfo),["stop"]))},null,36)):Be("",!0)],64)):Be("",!0)]))}}),$ue=Ue(Jue,[["__scopeId","data-v-e65e73bd"]]),jue={class:"line-element-operate"},que=["width","height","stroke"],efe={key:0},tfe=["x1","y1","x2","y2"],nfe=["x1","y1","x2","y2"],rfe=["x1","y1","x2","y2"],ofe=["x1","y1","x2","y2"],ife={inheritAttrs:!1},afe=Fe({...ife,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),o=Me(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),i=Me(()=>{const a=[{handler:Go.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:Go.END,style:{left:t.elementInfo.end[0]*n.value+"px",top:t.elementInfo.end[1]*n.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken){const s=t.elementInfo.curve||t.elementInfo.broken;a.push({handler:Go.C,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[s,c]=t.elementInfo.cubic;a.push({handler:Go.C1,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}}),a.push({handler:Go.C2,style:{left:c[0]*n.value+"px",top:c[1]*n.value+"px"}})}return a});return(a,s)=>(Y(),ee("div",jue,[a.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(i.value,c=>(Y(),we(Tc,{class:"operate-resize-handler",key:c.handler,style:Le(c.style),onMousedown:Wt(l=>a.dragLineElement(l,a.elementInfo,c.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(Y(),ee("svg",{width:r.value||1,height:o.value||1,stroke:a.elementInfo.color,overflow:"visible",style:Le({transform:`scale(${H(n)})`})},[a.elementInfo.curve?(Y(),ee("g",efe,[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,tfe),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,nfe)])):Be("",!0),a.elementInfo.cubic?(Y(!0),ee(Ve,{key:1},it(a.elementInfo.cubic,(c,l)=>(Y(),ee("g",{key:l},[l===0?(Y(),ee("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:c[0],y2:c[1]},null,8,rfe)):Be("",!0),l===1?(Y(),ee("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:c[0],y2:c[1]},null,8,ofe)):Be("",!0)]))),128)):Be("",!0)],12,que))],64)):Be("",!0)]))}}),sfe=Ue(afe,[["__scopeId","data-v-32a06240"]]),lfe={class:"table-element-operate"},cfe={inheritAttrs:!1},ufe=Fe({...cfe,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.elementInfo.outline.width||1),o=Me(()=>(t.elementInfo.width+r.value)*n.value),i=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=nf(o,i);return(c,l)=>(Y(),ee("div",lfe,[(Y(!0),ee(Ve,null,it(H(s),u=>(Y(),we(rf,{class:"operate-border-line",key:u.type,type:u.type,style:Le(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(a),u=>(Y(),we(Tc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:Le(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w(zd,{class:"operate-rotate-handler",style:Le({left:o.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"])],64)):Be("",!0)]))}}),ffe={class:"common-element-operate"},dfe={inheritAttrs:!1},bm=Fe({...dfe,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=nf(r,o),s=Me(()=>["chart","video","audio"].includes(t.elementInfo.type));return(c,l)=>(Y(),ee("div",ffe,[(Y(!0),ee(Ve,null,it(H(a),u=>(Y(),we(rf,{class:"operate-border-line",key:u.type,type:u.type,style:Le(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(i),u=>(Y(),we(Tc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:Le(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?Be("",!0):(Y(),we(zd,{key:0,class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]))],64)):Be("",!0)]))}}),XF=()=>{const e=ct(),{addHistorySnapshot:t}=zt();return{setLink:(o,i)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(i.type==="web"&&!a.test(i.target))return Sn.error("不是正确的网页链接地址"),!1;if(i.type==="slide"&&!i.target)return Sn.error("请先选择链接目标"),!1;const s={link:i};return e.updateElement({id:o.id,props:s}),t(),!0},removeLink:o=>{e.removeElementProps({id:o.id,propName:"link"}),t()}}},hfe=Fe({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:0}},setup(e){return(t,n)=>(Y(),ee("div",{class:$e(["divider",t.type]),style:Le({margin:t.type==="horizontal"?`${t.margin||24}px 0`:`0 ${t.margin||8}px`})},null,6))}}),Ut=Ue(hfe,[["__scopeId","data-v-c7c64e0b"]]),pfe=["href"],mfe={class:"btns"},vfe=Fe({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{canvasScale:o}=Xe(n),{slides:i}=Xe(r),{removeLink:a}=XF(),s=Me(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),c=l=>{const u=i.value.findIndex(f=>f.id===l);u!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(u))};return(l,u)=>(Y(),ee("div",{class:"link-handler",style:Le({top:s.value*H(o)+10+"px"})},[l.link.type==="web"?(Y(),ee("a",{key:0,class:"link",href:l.link.target,target:"_blank"},gt(l.link.target),9,pfe)):(Y(),ee("a",{key:1,class:"link",onClick:u[0]||(u[0]=f=>c(l.link.target))},"幻灯片页面 "+gt(l.link.target),1)),V("div",mfe,[V("div",{class:"btn",onClick:u[1]||(u[1]=f=>l.openLinkDialog())},"更换"),w(Ut,{type:"vertical"}),V("div",{class:"btn",onClick:u[2]||(u[2]=f=>H(a)(l.elementInfo))},"移除")])],4))}}),gfe=Ue(vfe,[["__scopeId","data-v-f8f46f78"]]),Afe={key:1,class:"animation-index"},Rfe=Fe({__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}=Xe(ft()),{formatedAnimations:o}=Xe(ct()),i=Me(()=>({[Nt.IMAGE]:Bue,[Nt.TEXT]:Hue,[Nt.SHAPE]:$ue,[Nt.LINE]:sfe,[Nt.TABLE]:ufe,[Nt.CHART]:bm,[Nt.LATEX]:bm,[Nt.VIDEO]:bm,[Nt.AUDIO]:bm})[t.elementInfo.type]||null),a=Me(()=>{const l=[];for(let u=0;ud.elId).includes(t.elementInfo.id)&&l.push(u);return l}),s=Me(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),c=Me(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(l,u)=>(Y(),ee("div",{class:$e(["operate",{"multi-select":l.isMultiSelect&&!l.isActive}]),style:Le({top:l.elementInfo.top*H(n)+"px",left:l.elementInfo.left*H(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${l.elementInfo.width*H(n)/2}px ${c.value*H(n)/2}px`})},[l.isSelected?(Y(),we(xs(i.value),{key:0,elementInfo:l.elementInfo,handlerVisible:!l.elementInfo.lock&&(l.isActiveGroupElement||!l.isMultiSelect),rotateElement:l.rotateElement,scaleElement:l.scaleElement,dragLineElement:l.dragLineElement,moveShapeKeypoint:l.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Be("",!0),H(r)==="elAnimation"&&a.value.length?(Y(),ee("div",Afe,[(Y(!0),ee(Ve,null,it(a.value,f=>(Y(),ee("div",{class:"index-item",key:f},gt(f+1),1))),128))])):Be("",!0),l.isActive&&l.elementInfo.link?(Y(),we(gfe,{key:2,elementInfo:l.elementInfo,link:l.elementInfo.link,openLinkDialog:l.openLinkDialog,onMousedown:u[0]||(u[0]=Wt(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Be("",!0)],6))}}),yfe=Ue(Rfe,[["__scopeId","data-v-b96daa51"]]),xfe=["src"],bfe=Fe({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=Lc(n),o=Me(()=>t.elementInfo.flipH),i=Me(()=>t.elementInfo.flipV),{flipStyle:a}=s2(o,i),s=Me(()=>t.elementInfo.clip),{clipShape:c,imgPosition:l}=i5(s),u=Me(()=>t.elementInfo.filters),{filter:f}=vI(u);return(d,h)=>(Y(),ee("div",{class:"base-element-image",style:Le({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:Le({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({filter:H(r)?`drop-shadow(${H(r)})`:"",transform:H(a)})},[w(gI,{elementInfo:d.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Le({clipPath:H(c).style})},[V("img",{src:d.elementInfo.src,draggable:!1,style:Le({top:H(l).top,left:H(l).left,width:H(l).width,height:H(l).height,filter:H(f)}),alt:""},null,12,xfe),d.elementInfo.colorMask?(Y(),ee("div",{key:0,class:"color-mask",style:Le({backgroundColor:d.elementInfo.colorMask})},null,4)):Be("",!0)],4)],4)],4)],4))}}),WF=Ue(bfe,[["__scopeId","data-v-71d24108"]]),Sfe=["innerHTML"],Mfe=Fe({__name:"BaseTextElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=Lc(n);return(o,i)=>(Y(),ee("div",{class:"base-element-text",style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({width:o.elementInfo.vertical?"auto":o.elementInfo.width+"px",height:o.elementInfo.vertical?o.elementInfo.height+"px":"auto",backgroundColor:o.elementInfo.fill,opacity:o.elementInfo.opacity,textShadow:H(r),lineHeight:o.elementInfo.lineHeight,letterSpacing:(o.elementInfo.wordSpace||0)+"px",color:o.elementInfo.defaultColor,fontFamily:o.elementInfo.defaultFontName,writingMode:o.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[w(l2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),V("div",{class:"text ProseMirror-static",style:Le({"--paragraphSpace":`${o.elementInfo.paragraphSpace===void 0?5:o.elementInfo.paragraphSpace}px`}),innerHTML:o.elementInfo.content},null,12,Sfe)],4)],4)],4))}}),VF=Ue(Mfe,[["__scopeId","data-v-e8894a41"]]),wfe=["width","height"],Lfe={key:0},Ofe=["transform"],Tfe=["d","fill","stroke","stroke-width","stroke-dasharray"],kfe=["innerHTML"],Nfe=Fe({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.outline),{outlineWidth:r,outlineColor:o,strokeDashArray:i}=Gd(n),a=Me(()=>t.elementInfo.shadow),{shadowStyle:s}=Lc(a),c=Me(()=>t.elementInfo.flipH),l=Me(()=>t.elementInfo.flipV),{flipStyle:u}=s2(c,l),f=Me(()=>{const d={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:d});return(d,h)=>(Y(),ee("div",{class:"base-element-shape",style:Le({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:Le({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({opacity:d.elementInfo.opacity,filter:H(s)?`drop-shadow(${H(s)})`:"",transform:H(u),color:f.value.defaultColor,fontFamily:f.value.defaultFontName})},[(Y(),ee("svg",{overflow:"visible",width:d.elementInfo.width,height:d.elementInfo.height},[d.elementInfo.gradient?(Y(),ee("defs",Lfe,[w(hF,{id:`base-gradient-${d.elementInfo.id}`,type:d.elementInfo.gradient.type,color1:d.elementInfo.gradient.color[0],color2:d.elementInfo.gradient.color[1],rotate:d.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Be("",!0),V("g",{transform:`scale(${d.elementInfo.width/d.elementInfo.viewBox[0]}, ${d.elementInfo.height/d.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:d.elementInfo.path,fill:d.elementInfo.gradient?`url(#base-gradient-${d.elementInfo.id})`:d.elementInfo.fill,stroke:H(o),"stroke-width":H(r),"stroke-dasharray":H(i)},null,8,Tfe)],8,Ofe)],8,wfe)),V("div",{class:$e(["shape-text",f.value.align])},[V("div",{class:"ProseMirror-static",innerHTML:f.value.content},null,8,kfe)],2)],4)],4)],4))}}),UF=Ue(Nfe,[["__scopeId","data-v-2d39d3d1"]]),Pfe=["width","height"],Cfe=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Ife=Fe({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=Lc(n),o=Me(()=>{const c=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return c<24?24:c}),i=Me(()=>{const c=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return c<24?24:c}),a=Me(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const c=t.elementInfo.width;return c<=8?`${c*5} ${c*2.5}`:`${c*5} ${c*1.5}`}),s=Me(()=>Tb(t.elementInfo));return(c,l)=>(Y(),ee("div",{class:"base-element-line",style:Le({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Le({filter:H(r)?`drop-shadow(${H(r)})`:""})},[(Y(),ee("svg",{overflow:"visible",width:o.value,height:i.value},[V("defs",null,[c.elementInfo.points[0]?(Y(),we(Fd,{key:0,id:c.elementInfo.id,position:"start",type:c.elementInfo.points[0],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Be("",!0),c.elementInfo.points[1]?(Y(),we(Fd,{key:1,id:c.elementInfo.id,position:"end",type:c.elementInfo.points[1],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Be("",!0)]),V("path",{d:s.value,stroke:c.elementInfo.color,"stroke-width":c.elementInfo.width,"stroke-dasharray":a.value,fill:"none","marker-start":c.elementInfo.points[0]?`url(#${c.elementInfo.id}-${c.elementInfo.points[0]}-start)`:"","marker-end":c.elementInfo.points[1]?`url(#${c.elementInfo.id}-${c.elementInfo.points[1]}-end)`:""},null,8,Cfe)],8,Pfe))],4)],4))}}),YF=Ue(Ife,[["__scopeId","data-v-e7dc2b42"]]),Ffe=Fe({__name:"BaseChartElement",props:{elementInfo:{}},setup(e){const t=jo(tf)||pe(1),n=Me(()=>t.value<1),r=Me(()=>n.value?1/t.value:1);return(o,i)=>(Y(),ee("div",{class:"base-element-chart",style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({backgroundColor:o.elementInfo.fill})},[w(l2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),w(SF,{width:o.elementInfo.width*r.value,height:o.elementInfo.height*r.value,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||"",style:Le({zoom:1/r.value})},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend","style"])],4)],4)],4))}}),QF=Ue(Ffe,[["__scopeId","data-v-37ca5799"]]),_fe=["width"],Efe=["rowspan","colspan"],Xfe=["innerHTML"],Wfe=Fe({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,n=pe([]),r=Me(()=>n.value.reduce((c,l)=>c+l));Tt([()=>t.colWidths,()=>t.width],()=>{n.value=t.colWidths.map(c=>c*t.width)},{immediate:!0});const o=Me(()=>t.data),{hideCells:i}=OF(o),a=Me(()=>t.theme),{subThemeColor:s}=TF(a);return(c,l)=>{var u,f,d,h,p;return Y(),ee("div",{class:"static-table",style:Le({width:r.value+"px"})},[V("table",{class:$e({theme:a.value,"row-header":(u=a.value)==null?void 0:u.rowHeader,"row-footer":(f=a.value)==null?void 0:f.rowFooter,"col-header":(d=a.value)==null?void 0:d.colHeader,"col-footer":(h=a.value)==null?void 0:h.colFooter}),style:Le(`--themeColor: ${(p=a.value)==null?void 0:p.color}; --subThemeColor1: ${H(s)[0]}; --subThemeColor2: ${H(s)[1]}`)},[V("colgroup",null,[(Y(!0),ee(Ve,null,it(n.value,(m,A)=>(Y(),ee("col",{span:"1",key:A,width:m},null,8,_fe))),128))]),V("tbody",null,[(Y(!0),ee(Ve,null,it(c.data,(m,A)=>(Y(),ee("tr",{key:A,style:Le({height:c.cellMinHeight+"px"})},[(Y(!0),ee(Ve,null,it(m,(x,R)=>De((Y(),ee("td",{class:"cell",style:Le({borderStyle:c.outline.style,borderColor:c.outline.color,borderWidth:c.outline.width+"px",...H(wF)(x.style)}),key:x.id,rowspan:x.rowspan,colspan:x.colspan},[V("div",{class:"cell-text",style:Le({minHeight:c.cellMinHeight-4+"px"}),innerHTML:H(LF)(x.text)},null,12,Xfe)],12,Efe)),[[il,!H(i).includes(`${A}_${R}`)]])),128))],4))),128))])],6)],4)}}}),Vfe=Ue(Wfe,[["__scopeId","data-v-6d887dcd"]]),Ufe={class:"element-content"},Yfe=Fe({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:"base-element-table",style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",Ufe,[w(Vfe,{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))}}),ZF=Ue(Yfe,[["__scopeId","data-v-77cfa6e4"]]),Qfe={class:"element-content"},Zfe=["width","height","stroke","stroke-width"],Bfe=["transform"],Dfe=["d"],Kfe=Fe({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:"base-element-latex",style:Le({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:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",Qfe,[(Y(),ee("svg",{overflow:"visible",width:t.elementInfo.width,height:t.elementInfo.height,stroke:t.elementInfo.color,"stroke-width":t.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${t.elementInfo.width/t.elementInfo.viewBox[0]}, ${t.elementInfo.height/t.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:t.elementInfo.path},null,8,Dfe)],8,Bfe)],8,Zfe))])],4)],4))}}),BF=Ue(Kfe,[["__scopeId","data-v-93374af9"]]),Hfe=Fe({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(t,n)=>{const r=xe("IconPlayOne");return Y(),ee("div",{class:"base-element-video",style:Le({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:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({backgroundImage:t.elementInfo.poster?`url(${t.elementInfo.poster})`:""})},[w(r,{class:"icon"})],4)],4)],4)}}}),Gfe=Ue(Hfe,[["__scopeId","data-v-2fb0e771"]]),zfe={class:"element-content"},Jfe=Fe({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px");return(r,o)=>{const i=xe("IconVolumeNotice");return Y(),ee("div",{class:"base-element-audio",style:Le({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:Le({transform:`rotate(${r.elementInfo.rotate}deg)`})},[V("div",zfe,[w(i,{class:"audio-icon",style:Le({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),$fe=Ue(Jfe,[["__scopeId","data-v-b33e6120"]]),jfe=Fe({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,n=Me(()=>({[Nt.IMAGE]:WF,[Nt.TEXT]:VF,[Nt.SHAPE]:UF,[Nt.LINE]:YF,[Nt.CHART]:QF,[Nt.TABLE]:ZF,[Nt.LATEX]:BF,[Nt.VIDEO]:Gfe,[Nt.AUDIO]:$fe})[t.elementInfo.type]||null);return(r,o)=>(Y(),ee("div",{class:$e(["base-element",`base-element-${r.elementInfo.id}`]),style:Le({zIndex:r.elementIndex})},[(Y(),we(xs(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),qfe={key:1,class:"placeholder"},ede=Fe({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:n}=Xe(ct()),r=Me(()=>t.slide.background),{backgroundStyle:o}=d2(r),i=Me(()=>t.size/Ht);return Ku(tf,i),(a,s)=>(Y(),ee("div",{class:"thumbnail-slide",style:Le({width:a.size+"px",height:a.size*H(n)+"px"})},[a.visible?(Y(),ee("div",{key:0,class:"elements",style:Le({width:H(Ht)+"px",height:H(Ht)*H(n)+"px",transform:`scale(${i.value})`})},[V("div",{class:"background",style:Le(H(o))},null,4),(Y(!0),ee(Ve,null,it(a.slide.elements,(c,l)=>(Y(),we(jfe,{key:c.id,elementInfo:c,elementIndex:l+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(Y(),ee("div",qfe,"加载中 ..."))],4))}}),Fa=Ue(ede,[["__scopeId","data-v-cbd76d0a"]]),tde=["onClick"],nde=Fe({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=t;return(r,o)=>(Y(),ee("div",{class:$e(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:Le(r.tabsStyle||{})},[(Y(!0),ee(Ve,null,it(r.tabs,i=>(Y(),ee("div",{class:$e(["tab",{active:i.key===r.value}]),key:i.key,style:Le({...r.tabStyle||{},"--color":i.color}),onClick:a=>n("update:value",i.key)},gt(i.label),15,tde))),128))],6))}}),As=Ue(nde,[["__scopeId","data-v-c7f9dce0"]]),rde=Fe({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=()=>{n.disabled||r("click")};return(i,a)=>(Y(),ee("button",{class:$e(["button",{disabled:i.disabled,checked:!i.disabled&&i.checked,default:!i.disabled&&i.type==="default",primary:!i.disabled&&i.type==="primary",checkbox:!i.disabled&&i.type==="checkbox",radio:!i.disabled&&i.type==="radio",small:i.size==="small",first:i.first,last:i.last}]),onClick:a[0]||(a[0]=s=>o())},[cr(i.$slots,"default",{},void 0,!0)],2))}}),et=Ue(rde,[["__scopeId","data-v-3e3d85be"]]),ode={key:0,class:"select-wrap"},ide={class:"selector"},ade={class:"icon"},sde=["onClick"],lde={class:"selector"},cde={class:"icon"},ude=Fe({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=Me(()=>{var f;return((f=n.options.find(d=>d.value===n.value))==null?void 0:f.label)||n.value}),o=t,i=pe(!1),a=pe(),s=pe(0),c=()=>{a.value&&(s.value=a.value.clientWidth)},l=new ResizeObserver(c);Gt(()=>{a.value&&l.observe(a.value)}),Tn(()=>{a.value&&l.unobserve(a.value)});const u=f=>{f.disabled||(o("update:value",f.value),i.value=!1)};return(f,d)=>{const h=xe("IconDown");return f.disabled?(Y(),ee("div",ode,[V("div",{class:"select disabled",ref_key:"selectRef",ref:a},[V("div",ide,gt(f.value),1),V("div",ade,[cr(f.$slots,"icon",{},()=>[w(h,{size:14})],!0)])],512)])):(Y(),we(kt,{key:1,class:"select-wrap",trigger:"click",value:i.value,"onUpdate:value":d[0]||(d[0]=p=>i.value=p),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:re(()=>[V("div",{class:"options",style:Le({width:s.value+2+"px"})},[(Y(!0),ee(Ve,null,it(f.options,p=>(Y(),ee("div",{class:$e(["option",{disabled:p.disabled,selected:p.value===f.value}]),key:p.value,onClick:m=>u(p)},gt(p.label),11,sde))),128))],4)]),default:re(()=>[V("div",{class:"select",ref_key:"selectRef",ref:a},[V("div",lde,gt(r.value),1),V("div",cde,[cr(f.$slots,"icon",{},()=>[w(h,{size:14})],!0)])],512)]),_:3},8,["value","contentStyle"]))}}}),Zn=Ue(ude,[["__scopeId","data-v-618af0ca"]]),fde=e=>(on("data-v-de4d9db3"),e=e(),an(),e),dde={class:"link-dialog"},hde={key:2,class:"preview"},pde=fde(()=>V("div",null,"预览:",-1)),mde={class:"btns"},vde=Fe({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var p;const n=t,{handleElement:r}=Xe(ft()),{slides:o,currentSlide:i}=Xe(ct()),a=pe("web"),s=pe(""),c=pe(""),l=Me(()=>o.value.map((m,A)=>({label:`幻灯片 ${A+1}`,value:m.id,disabled:i.value.id===m.id})));c.value=((p=o.value.find(m=>m.id!==i.value.id))==null?void 0:p.id)||"";const u=Me(()=>c.value&&o.value.find(m=>m.id===c.value)||null),f=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:d}=XF();Gt(()=>{var m;(m=r.value)!=null&&m.link&&(r.value.link.type==="web"?s.value=r.value.link.target:r.value.link.type==="slide"&&(c.value=r.value.link.target),a.value=r.value.link.type)});const h=()=>{const m={type:a.value,target:a.value==="web"?s.value:c.value};r.value&&(d(r.value,m)?n("close"):s.value="")};return(m,A)=>(Y(),ee("div",dde,[w(As,{tabs:f,value:a.value,"onUpdate:value":A[0]||(A[0]=x=>a.value=x),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(Y(),we(Xu,{key:0,class:"input",value:s.value,"onUpdate:value":A[1]||(A[1]=x=>s.value=x),placeholder:"请输入网页链接地址"},null,8,["value"])):Be("",!0),a.value==="slide"?(Y(),we(Zn,{key:1,class:"input",value:c.value,"onUpdate:value":A[2]||(A[2]=x=>c.value=x),options:l.value},null,8,["value","options"])):Be("",!0),a.value==="slide"&&u.value?(Y(),ee("div",hde,[pde,w(Fa,{class:"thumbnail",slide:u.value,size:500},null,8,["slide"])])):Be("",!0),V("div",mde,[w(et,{onClick:A[3]||(A[3]=x=>n("close")),style:{"margin-right":"10px"}},{default:re(()=>[We("取消")]),_:1}),w(et,{type:"primary",onClick:A[4]||(A[4]=x=>h())},{default:re(()=>[We("确认")]),_:1})])]))}}),gde=Ue(vde,[["__scopeId","data-v-de4d9db3"]]),Ade=Fe({__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}=Yv,r=e,o=pe(),i=t,a=pe(!1),s=Me(()=>({width:r.width+"px",...r.contentStyle||{}}));Tt(()=>r.visible,()=>{r.visible&&Vr(()=>o.value.focus())});const c=()=>{i("update:visible",!1),i("closed")},l=()=>{r.visible&&r.closeOnEsc&&c()},u=()=>{r.closeOnClickMask&&c()};return(f,d)=>(Y(),we(eb,{to:"body"},[w(ku,{name:"modal-fade"},{default:re(()=>[De(V("div",{class:"modal",ref_key:"modalRef",ref:o,tabindex:"-1",onKeyup:d[4]||(d[4]=gc(h=>l(),["esc"]))},[V("div",{class:"mask",onClick:d[0]||(d[0]=h=>u())}),w(ku,{name:"modal-zoom",onAfterLeave:d[2]||(d[2]=h=>a.value=!1),onBeforeEnter:d[3]||(d[3]=h=>a.value=!0)},{default:re(()=>[De(V("div",{class:"modal-content",style:Le(s.value)},[f.closeButton?(Y(),ee("span",{key:0,class:"close-btn",onClick:d[1]||(d[1]=h=>c())},[w(H(n))])):Be("",!0),a.value?cr(f.$slots,"default",{key:1},void 0,!0):Be("",!0)],4),[[il,f.visible]])]),_:3})],544),[[il,f.visible]])]),_:3})]))}}),Zp=Ue(Ade,[["__scopeId","data-v-4d27bcca"]]),Rde={class:"operates"},yde={key:2,class:"drag-mask"},xde=Fe({__name:"index",setup(e){const t=ft(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:o,hiddenElementIdList:i,editorAreaFocus:a,gridLineSize:s,showRuler:c,creatingElement:l,creatingCustomShape:u,canvasScale:f,textFormatPainter:d}=Xe(t),{currentSlide:h}=Xe(ct()),{ctrlKeyState:p,spaceKeyState:m}=Xe(Ss()),A=pe(),x=pe([]),R=pe(!1),y=()=>R.value=!0;Tt(o,()=>{t.setActiveGroupElementId("")});const g=pe([]);Tg(()=>{g.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const L=pe(),{dragViewport:T,viewportStyles:M}=boe(L);Moe(L);const{mouseSelection:O,mouseSelectionVisible:k,mouseSelectionQuadrant:F,updateMouseSelection:N}=Soe(g,A),{dragElement:E}=pI(g,x,f),{dragLineElement:P}=Ooe(g),{selectElement:_}=Loe(g,E),{scaleElement:I,scaleMultiElement:W}=hI(g,x,f),{rotateElement:D}=fI(g,A,f),{moveShapeKeypoint:z}=Toe(g,f),{selectAllElements:ae}=Hg(),{deleteAllElements:U}=kp(),{pasteElement:Z}=Ib(),{enterScreeningFromStart:B}=Mc(),{updateSlideIndex:G}=Dd(),{createTextElement:Q,createShapeElement:ie}=$u();Gt(()=>{n.value.length&&Vr(()=>t.setActiveElementIdList([]))});const q=se=>{n.value.length&&t.setActiveElementIdList([]),m.value?T(se):N(se),a.value||t.setEditorareaFocus(!0),d.value&&t.setTextFormatPainter(null),xoe()},oe=se=>{if(n.value.length||l.value||u.value||!A.value)return;const ge=A.value.getBoundingClientRect(),ce=(se.pageX-ge.x)/f.value,Ae=(se.pageY-ge.y)/f.value;Q({left:ce,top:Ae,width:200/f.value,height:0})};Tn(()=>{d.value&&t.setTextFormatPainter(null)});const he=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:me}=_b(),ve=_n.throttle(me,100,{leading:!0,trailing:!1}),J=_n.throttle(G,300,{leading:!0,trailing:!1}),ue=se=>{se.preventDefault(),p.value?se.deltaY>0?ve("-"):se.deltaY<0&&ve("+"):se.deltaY>0?J(yt.DOWN):se.deltaY<0&&J(yt.UP)},X=()=>{t.setRulerState(!c.value)},{insertElementFromCreateSelection:te,formatCreateSelection:le}=koe(A),$=se=>{const{start:ge,end:ce,path:Ae,viewBox:ye}=se,Ee=le({start:ge,end:ce});if(Ee){const Se={};se.fill&&(Se.fill=se.fill),se.outline&&(Se.outline=se.outline),ie(Ee,{path:Ae,viewBox:ye},Se)}t.setCreatingCustomShapeState(!1)},j=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Z},{text:"全选",subText:"Ctrl + A",handler:ae},{text:"标尺",subText:c.value?"√":"",handler:X},{text:"网格线",handler:()=>t.setGridLineSize(s.value?0:50),children:[{text:"无",subText:s.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:s.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:s.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:s.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:U},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:B}];return Ku(tf,f),(se,ge)=>{const ce=Mn("contextmenu"),Ae=Mn("click-outside");return De((Y(),ee("div",{class:"canvas",ref_key:"canvasRef",ref:L,onWheel:ge[4]||(ge[4]=ye=>ue(ye)),onMousedown:ge[5]||(ge[5]=ye=>q(ye)),onDblclick:ge[6]||(ge[6]=ye=>oe(ye))},[H(l)?(Y(),we(Nue,{key:0,onCreated:ge[0]||(ge[0]=ye=>H(te)(ye))})):Be("",!0),H(u)?(Y(),we(Fue,{key:1,onCreated:ge[1]||(ge[1]=ye=>$(ye))})):Be("",!0),V("div",{class:"viewport-wrapper",style:Le({width:H(M).width*H(f)+"px",height:H(M).height*H(f)+"px",left:H(M).left+"px",top:H(M).top+"px"})},[V("div",Rde,[(Y(!0),ee(Ve,null,it(x.value,(ye,Ee)=>(Y(),we(EF,{key:Ee,type:ye.type,axis:ye.axis,length:ye.length,canvasScale:H(f)},null,8,["type","axis","length","canvasScale"]))),128)),H(n).length>1?(Y(),we(Wue,{key:0,elementList:g.value,scaleMultiElement:H(W)},null,8,["elementList","scaleMultiElement"])):Be("",!0),(Y(!0),ee(Ve,null,it(g.value,ye=>De((Y(),we(yfe,{key:ye.id,elementInfo:ye,isSelected:H(n).includes(ye.id),isActive:H(o)===ye.id,isActiveGroupElement:H(r)===ye.id,isMultiSelect:H(n).length>1,rotateElement:H(D),scaleElement:H(I),openLinkDialog:y,dragLineElement:H(P),moveShapeKeypoint:H(z)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[il,!H(i).includes(ye.id)]])),128)),w(bue)]),V("div",{class:"viewport",ref_key:"viewportRef",ref:A,style:Le({transform:`scale(${H(f)})`})},[H(k)?(Y(),we(vue,{key:0,top:H(O).top,left:H(O).left,width:H(O).width,height:H(O).height,quadrant:H(F)},null,8,["top","left","width","height","quadrant"])):Be("",!0),(Y(!0),ee(Ve,null,it(g.value,(ye,Ee)=>De((Y(),we(pue,{key:ye.id,elementInfo:ye,elementIndex:Ee+1,isMultiSelect:H(n).length>1,selectElement:H(_),openLinkDialog:y},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[il,!H(i).includes(ye.id)]])),128))],4)],4),H(m)?(Y(),ee("div",yde)):Be("",!0),H(c)?(Y(),we(Lue,{key:3,viewportStyles:H(M)},null,8,["viewportStyles"])):Be("",!0),w(Zp,{visible:R.value,"onUpdate:visible":ge[3]||(ge[3]=ye=>R.value=ye),width:540},{default:re(()=>[w(gde,{onClose:ge[2]||(ge[2]=ye=>R.value=!1)})]),_:1},8,["visible"])],32)),[[ce,j],[Ae,he]])}}}),bde=Ue(xde,[["__scopeId","data-v-47bbcf7b"]]),Sde={class:"shape-item-thumbnail"},Mde={class:"shape-content"},wde={overflow:"visible",width:"18",height:"18"},Lde=["transform"],Ode=["fill","stroke","d"],Tde=Fe({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(Y(),ee("div",Sde,[V("div",Mde,[(Y(),ee("svg",wde,[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:$e(["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,Ode)],8,Lde)]))])]))}}),DF=Ue(Tde,[["__scopeId","data-v-2896ae03"]]),kde={class:"shape-pool"},Nde={class:"category-name"},Pde={class:"shape-list"},Cde=Fe({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Y(),ee("div",kde,[(Y(!0),ee(Ve,null,it(H(Nb),a=>(Y(),ee("div",{class:"category",key:a.type},[V("div",Nde,gt(a.type),1),V("div",Pde,[(Y(!0),ee(Ve,null,it(a.children,(s,c)=>(Y(),we(DF,{class:"shape-item",key:c,shape:s,onClick:l=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),Ide=Ue(Cde,[["__scopeId","data-v-553b0d02"]]),Fde=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],_de={class:"line-pool"},Ede={class:"category-name"},Xde={class:"line-list"},Wde=["onClick"],Vde={overflow:"visible",width:"20",height:"20"},Ude=["d","stroke-dasharray","marker-start","marker-end"],Yde=Fe({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Y(),ee("div",_de,[(Y(!0),ee(Ve,null,it(H(Fde),(a,s)=>(Y(),ee("div",{class:"category",key:a.type},[V("div",Ede,gt(a.type),1),V("div",Xde,[(Y(!0),ee(Ve,null,it(a.children,(c,l)=>(Y(),ee("div",{class:"line-item",key:l},[V("div",{class:"line-content",onClick:u=>r(c)},[(Y(),ee("svg",Vde,[V("defs",null,[c.points[0]?(Y(),we(Fd,{key:0,class:"line-marker",id:`preset-line-${s}-${l}`,position:"start",type:c.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Be("",!0),c.points[1]?(Y(),we(Fd,{key:1,class:"line-marker",id:`preset-line-${s}-${l}`,position:"end",type:c.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Be("",!0)]),V("path",{class:"line-path",d:c.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":c.style==="solid"?"0, 0":"4, 1","marker-start":c.points[0]?`url(#${`preset-line-${s}-${l}`}-${c.points[0]}-start)`:"","marker-end":c.points[1]?`url(#${`preset-line-${s}-${l}`}-${c.points[1]}-end)`:""},null,8,Ude)]))],8,Wde)]))),128))])]))),128))]))}}),Qde=Ue(Yde,[["__scopeId","data-v-b07efd40"]]),Zde={class:"chart-pool"},Bde=["onClick"],Dde=Fe({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,r=["bar","horizontalBar","line","area","scatter","pie","ring"],o=i=>{n("select",i)};return(i,a)=>{const s=xe("IconChartLine"),c=xe("IconChartHistogram"),l=xe("IconChartPie"),u=xe("IconChartHistogramOne"),f=xe("IconChartLineArea"),d=xe("IconChartRing"),h=xe("IconChartScatter");return Y(),ee("ul",Zde,[(Y(),ee(Ve,null,it(r,(p,m)=>V("li",{class:"chart-item",key:m},[V("div",{class:"chart-content",onClick:A=>o(p)},[p==="line"?(Y(),we(s,{key:0,size:"24"})):p==="bar"?(Y(),we(c,{key:1,size:"24"})):p==="pie"?(Y(),we(l,{key:2,size:"24"})):p==="horizontalBar"?(Y(),we(u,{key:3,size:"24"})):p==="area"?(Y(),we(f,{key:4,size:"24"})):p==="ring"?(Y(),we(d,{key:5,size:"24"})):p==="scatter"?(Y(),we(h,{key:6,size:"24"})):Be("",!0)],8,Bde)])),64))])}}}),Kde=Ue(Dde,[["__scopeId","data-v-a4bc3ce2"]]),KF=e=>(on("data-v-246b23f6"),e=e(),an(),e),Hde={class:"prefix"},Gde={class:"input-wrap"},zde=["disabled","placeholder"],Jde={class:"handlers"},$de=KF(()=>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)),jde=[$de],qde=KF(()=>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)),e0e=[qde],t0e={class:"suffix"},n0e=Fe({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{emit:t}){const n=e,r=t,o=pe(0),i=pe(!1);Tt(()=>n.value,()=>{n.value!==o.value&&(o.value=n.value)},{immediate:!0}),Tt(o,()=>{const u=+o.value;if(!isNaN(u)){{if(u>n.max)return;if(u{let u=+o.value;isNaN(u)?u=n.min:u>n.max?u=n.max:u{a(),r("enter",u)},c=u=>{a(),i.value=!1,r("blur",u)},l=u=>{i.value=!0,r("focus",u)};return(u,f)=>(Y(),ee("div",{class:$e(["number-input",{disabled:u.disabled,focused:i.value}])},[V("span",Hde,[cr(u.$slots,"prefix",{},void 0,!0)]),V("div",Gde,[De(V("input",{type:"text",disabled:u.disabled,"onUpdate:modelValue":f[0]||(f[0]=d=>o.value=d),placeholder:u.placeholder,onInput:f[1]||(f[1]=d=>r("input",d)),onFocus:f[2]||(f[2]=d=>l(d)),onBlur:f[3]||(f[3]=d=>c(d)),onChange:f[4]||(f[4]=d=>r("change",d)),onKeydown:f[5]||(f[5]=gc(d=>s(d),["enter"]))},null,40,zde),[[Dh,o.value]]),V("div",Jde,[V("span",{class:"handler",onClick:f[6]||(f[6]=d=>o.value+=u.step)},jde),V("span",{class:"handler",onClick:f[7]||(f[7]=d=>o.value-=u.step)},e0e)])]),V("span",t0e,[cr(u.$slots,"suffix",{},void 0,!0)])],2))}}),Li=Ue(n0e,[["__scopeId","data-v-246b23f6"]]),HF=e=>(on("data-v-81680e19"),e=e(),an(),e),r0e={class:"table-generator"},o0e={class:"title"},i0e={class:"lef"},a0e=["onMouseenter"],s0e={key:1,class:"custom"},l0e={class:"row"},c0e=HF(()=>V("div",{class:"label",style:{width:"25%"}},"行数:",-1)),u0e={class:"row"},f0e=HF(()=>V("div",{class:"label",style:{width:"25%"}},"列数:",-1)),d0e={class:"btns"},h0e=Fe({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,r=pe([]),o=pe(3),i=pe(3),a=pe(!1),s=()=>{if(!r.value.length)return;const[u,f]=r.value;n("insert",{row:u,col:f})},c=()=>{if(o.value<1||o.value>20||i.value<1||i.value>20)return Sn.warning("行数/列数必须在0~20之间!");n("insert",{row:o.value,col:i.value}),a.value=!1},l=()=>{n("close"),a.value=!1};return(u,f)=>(Y(),ee("div",r0e,[V("div",o0e,[V("div",i0e,"表格 "+gt(r.value.length?`${r.value[0]} x ${r.value[1]}`:""),1),V("div",{class:"right",onClick:f[0]||(f[0]=d=>a.value=!a.value)},gt(a.value?"返回":"自定义"),1)]),a.value?(Y(),ee("div",s0e,[V("div",l0e,[c0e,w(Li,{min:1,max:20,value:o.value,"onUpdate:value":f[3]||(f[3]=d=>o.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",u0e,[f0e,w(Li,{min:1,max:20,value:i.value,"onUpdate:value":f[4]||(f[4]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",d0e,[w(et,{class:"btn",onClick:f[5]||(f[5]=d=>l())},{default:re(()=>[We("取消")]),_:1}),w(et,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>c())},{default:re(()=>[We("确认")]),_:1})])])):(Y(),ee("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[V("tbody",null,[(Y(),ee(Ve,null,it(10,d=>V("tr",{key:d},[(Y(),ee(Ve,null,it(10,h=>V("td",{onMouseenter:p=>r.value=[d,h],key:h},[V("div",{class:$e(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,a0e)),64))])),64))])],32))]))}}),p0e=Ue(h0e,[["__scopeId","data-v-81680e19"]]),m0e={class:"media-input"},v0e={class:"btns"},g0e={class:"btns"},A0e=Fe({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const n=t,r=pe("video"),o=pe("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),i=pe("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!o.value)return Sn.error("请先输入正确的视频地址");n("insertVideo",o.value)},c=()=>{if(!i.value)return Sn.error("请先输入正确的音频地址");n("insertAudio",i.value)};return(l,u)=>(Y(),ee("div",m0e,[w(As,{tabs:a,value:r.value,"onUpdate:value":u[0]||(u[0]=f=>r.value=f),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(Y(),ee(Ve,{key:0},[w(Xu,{value:o.value,"onUpdate:value":u[1]||(u[1]=f=>o.value=f),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),V("div",v0e,[w(et,{onClick:u[2]||(u[2]=f=>n("close")),style:{"margin-right":"10px"}},{default:re(()=>[We("取消")]),_:1}),w(et,{type:"primary",onClick:u[3]||(u[3]=f=>s())},{default:re(()=>[We("确认")]),_:1})])],64)):Be("",!0),r.value==="audio"?(Y(),ee(Ve,{key:1},[w(Xu,{value:i.value,"onUpdate:value":u[4]||(u[4]=f=>i.value=f),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),V("div",g0e,[w(et,{onClick:u[5]||(u[5]=f=>n("close")),style:{"margin-right":"10px"}},{default:re(()=>[We("取消")]),_:1}),w(et,{type:"primary",onClick:u[6]||(u[6]=f=>c())},{default:re(()=>[We("确认")]),_:1})])],64)):Be("",!0)]))}}),R0e=Ue(A0e,[["__scopeId","data-v-999b18ca"]]);var Sm=82;function $f(e){return sx[e]==null&&y0e(e),sx[e]}function y0e(e){var t=x0e[e];if(t!=null){for(var n=t.substring(3,5),r=1*n.charCodeAt(0)-Sm,o=1*n.charCodeAt(1)-Sm,i=t.substring(5),a=[[]],s=1/0,c=-1/0,l=1/0,u=-1/0,f=0;ff>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q":2242,"~":2246,"@":2273,"\\":804}[e]}var xi={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function b0e(e){e=e.replace(/\n/g," ");let t=0,n=[],r="";for(;t0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y,e[l].text=="'"?e[l].bbox.y=u:(To(e[l],xi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u-e[l].bbox.h:e[f].text=="\\int"?e[l].bbox.y=u:e[l].bbox.y=u-e[l].bbox.h/2)}else if(e[l].text=="_"){let u=1,f=l;for(;f>0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y+e[f].bbox.h,To(e[l],xi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u:e[f].text=="\\int"?e[l].bbox.y=u-e[l].bbox.h:e[l].bbox.y=u-e[l].bbox.h/2}function n(l,u,f,d,h){let p=l,m=h,A=1/0,x=-1/0;for(;d>0?p=0;){if(e[p].text==u)m++;else if(e[p].text==f){if(m--,m==0)break}else e[p].text=="^"||e[p].text=="_"||e[p].bbox&&(A=Math.min(A,e[p].bbox.y),x=Math.max(x,e[p].bbox.y+e[p].bbox.h));p+=d}return[A,x]}for(let l=0;ll.text=="&"||l.text=="\\\\"))return;let r=[],o=[],i=[];for(let l=0;l0&&(e.chld[R].text=="^"||e.chld[R].text=="_"||e.chld[R].text=="'");)R--;let y=hn[e.chld[R].text]&&hn[e.chld[R].text].flags.big;if(A.text=="'"){let g=R+1,S=0;for(;g1;w0e(e.chld,f);let p=zF(e.chld);e.text=="\\text"&&(p.x-=1,p.w+=2);for(let m=0;mr.bbox.w)u=u/Math.max(a.w,1)*r.bbox.w,u+=r.bbox.x;else{u=u/16*o;let d=(r.bbox.w-a.w/16*o)/2;u+=r.bbox.x+d}if(hn[r.text].flags.yfl)f=(f-a.ymin)/Math.max(a.ymax-a.ymin,1)*r.bbox.h,f+=r.bbox.y;else{if(f=f/16*o,i){let d=(a.ymax+a.ymin)/2;f-=d/16*o}f+=r.bbox.y+r.bbox.h/2}c.push([u,f])}t.push(c)}}else if(hn[r.text]&&hn[r.text].flags.txt||r.type=="char"){let a=r.bbox.x,s=!!(hn[r.text]&&hn[r.text].flags.txt);for(let c=Number(s);c16?h*=16/l.w:h+=(16-l.w)/2/16),h+=a,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}t.push(f)}r.mode=="tt"?a+=o:a+=l.w/16*o}}}return t}function Za(e){return Math.round(e*100)/100}var w5=class{constructor(e){this._latex=e,this._tokens=b0e(e),this._tree=lx(this._tokens),GF(this._tree.chld),Da(this._tree),L0e(this._tree),this._polylines=O0e(this._tree)}resolveScale(e){var t,n,r,o;if(e==null)return[16,16,16,16];let i=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let l=0;for(let f=0;fd(t,o,r,e));if(f)s=f;else{let d=o.marks(),{schema:h}=e.state,p=Js.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let A=a.appendChild(document.createElement("p"));m&&A.appendChild(p.serializeNode(h.text(m,d)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=Gie(n),Yp&&zie(a);let l=a&&a.querySelector("[data-pm-slice]"),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let d=a.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;a=d}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||Sd.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(c||u),context:o,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!Kie.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)s=Jie(iT(s,+u[1],+u[2]),u[4]);else if(s=Rt.maxOpen(Hie(s.content,o),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f{s=f(s,e)}),s}const Kie=/^(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 Hie(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let o=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(s=>{if(!a)return;let c=o.findWrapping(s.type),l;if(!c)return a=null;if(l=a.length&&i.length&&VI(c,i,s,a[a.length-1],0))a[a.length-1]=l;else{a.length&&(a[a.length-1]=UI(a[a.length-1],i.length));let u=WI(s,c);a.push(u),o=o.matchType(u.type),i=c}}),a)return lt.from(a)}return e}function WI(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,lt.from(e));return e}function VI(e,t,n,r,o){if(o1&&(i=0),o=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(lt.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function iT(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=QI().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),o;if((o=r&&YI[r[1].toLowerCase()])&&(e=o.map(i=>"<"+i+">").join("")+e+o.map(i=>"").reverse().join("")),n.innerHTML=e,o)for(let i=0;i=0;s-=2){let c=n.nodes[r[s]];if(!c||c.hasRequiredAttrs())break;o=lt.from(c.create(r[s+1],o)),i++,a++}return new Rt(o,i,a)}const Xo={},Wo={},$ie={touchstart:!0,touchmove:!0};class jie{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function qie(e){for(let t in Xo){let n=Xo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{tae(e,r)&&!u5(e,r)&&(e.editable||!(r.type in Wo))&&n(e,r)},$ie[t]?{passive:!0}:void 0)}Eo&&e.dom.addEventListener("input",()=>null),ex(e)}function nc(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function eae(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function ex(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>u5(e,r))})}function u5(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function tae(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 nae(e,t){!u5(e,t)&&Xo[t.type]&&(e.editable||!(t.type in Wo))&&Xo[t.type](e,t)}Wo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!BI(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(wa&&po&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Id&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",o=>o(e,tu(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||Die(e,n)?n.preventDefault():nc(e,"key")};Wo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Wo.keypress=(e,t)=>{let n=t;if(BI(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ki&&n.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Xn)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",i=>i(e,r.$from.pos,r.$to.pos,o))&&e.dispatch(e.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function f2(e){return{left:e.clientX,top:e.clientY}}function rae(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function f5(e,t,n,r,o){if(r==-1)return!1;let i=e.state.doc.resolve(r);for(let a=i.depth+1;a>0;a--)if(e.someProp(t,s=>a>i.depth?s(e,n,i.nodeAfter,i.before(a),o,!0):s(e,n,i.node(a),i.before(a),o,!1)))return!0;return!1}function vd(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);n=="pointer"&&r.setMeta("pointer",!0),e.dispatch(r)}function oae(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Yt.isSelectable(r)?(vd(e,new Yt(n),"pointer"),!0):!1}function iae(e,t){if(t==-1)return!1;let n=e.state.selection,r,o;n instanceof Yt&&(r=n.node);let i=e.state.doc.resolve(t);for(let a=i.depth+1;a>0;a--){let s=a>i.depth?i.nodeAfter:i.node(a);if(Yt.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(a);break}}return o!=null?(vd(e,Yt.create(e.state.doc,o),"pointer"),!0):!1}function aae(e,t,n,r,o){return f5(e,"handleClickOn",t,n,r)||e.someProp("handleClick",i=>i(e,t,r))||(o?iae(e,n):oae(e,n))}function sae(e,t,n,r){return f5(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",o=>o(e,t,r))}function lae(e,t,n,r){return f5(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",o=>o(e,t,r))||cae(e,n,r)}function cae(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(vd(e,Xn.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(t);for(let i=o.depth+1;i>0;i--){let a=i>o.depth?o.nodeAfter:o.node(i),s=o.before(i);if(a.inlineContent)vd(e,Xn.create(r,s+1,s+1+a.content.size),"pointer");else if(Yt.isSelectable(a))vd(e,Yt.create(r,s),"pointer");else continue;return!0}}function d5(e){return rg(e)}const ZI=Ki?"metaKey":"ctrlKey";Xo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=d5(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&rae(n,e.input.lastClick)&&!n[ZI]&&(e.input.lastClick.type=="singleClick"?i="doubleClick":e.input.lastClick.type=="doubleClick"&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let a=e.posAtCoords(f2(n));a&&(i=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new uae(e,a,n,!!r)):(i=="doubleClick"?sae:lae)(e,a.pos,a.inside,n)?n.preventDefault():nc(e,"pointer"))};class uae{constructor(t,n,r,o){this.view=t,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[ZI],this.allowDefault=r.shiftKey;let i,a;if(n.inside>-1)i=t.state.doc.nodeAt(n.inside),a=n.inside;else{let u=t.state.doc.resolve(n.pos);i=u.parent,a=u.depth?u.before():0}const s=o?null:r.target,c=s?t.docView.nearestDesc(s,!0):null;this.target=c?c.dom:null;let{selection:l}=t.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||l instanceof Yt&&l.from<=a&&l.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ia&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),nc(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>nl(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(f2(t))),this.updateAllowDefault(t),this.allowDefault||!n?nc(this.view,"pointer"):aae(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Eo&&this.mightDrag&&!this.mightDrag.node.isAtom||po&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(vd(this.view,bn.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):nc(this.view,"pointer")}move(t){this.updateAllowDefault(t),nc(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Xo.touchstart=e=>{e.input.lastTouch=Date.now(),d5(e),nc(e,"pointer")};Xo.touchmove=e=>{e.input.lastTouch=Date.now(),nc(e,"pointer")};Xo.contextmenu=e=>d5(e);function BI(e,t){return e.composing?!0:Eo&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const fae=wa?5e3:-1;Wo.compositionstart=Wo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),rg(e,!0),e.markCursor=null;else if(rg(e),Ia&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let a=i<0?o.lastChild:o.childNodes[i-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else o=a,i=-1}}e.input.composing=!0}DI(e,fae)};Wo.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,DI(e,20))};function DI(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>rg(e),t))}function KI(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=dae());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function dae(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function rg(e,t=!1){if(!(wa&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),KI(e),t||e.docView&&e.docView.dirty){let n=l5(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function hae(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const ap=ni&&lc<15||Id&&uie<604;Xo.copy=Wo.cut=(e,t)=>{let n=t,r=e.state.selection,o=n.type=="cut";if(r.empty)return;let i=ap?null:n.clipboardData,a=r.content(),{dom:s,text:c}=EI(e,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",c)):hae(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function pae(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function mae(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?sp(e,r.value,null,o,t):sp(e,r.textContent,r.innerHTML,o,t)},50)}function sp(e,t,n,r,o){let i=XI(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",c=>c(e,o,i||Rt.empty)))return!0;if(!i)return!1;let a=pae(i),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function HI(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Wo.paste=(e,t)=>{let n=t;if(e.composing&&!wa)return;let r=ap?null:n.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&sp(e,HI(r),r.getData("text/html"),o,n)?n.preventDefault():mae(e,n)};class GI{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const zI=Ki?"altKey":"ctrlKey";Xo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=e.state.selection,i=o.empty?null:e.posAtCoords(f2(n)),a;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Yt?o.to-1:o.to))){if(r&&r.mightDrag)a=Yt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=e.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=e.docView&&(a=Yt.create(e.state.doc,u.posBefore))}}let s=(a||e.state.selection).content(),{dom:c,text:l}=EI(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(ap?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",ap||n.dataTransfer.setData("text/plain",l),e.dragging=new GI(s,!n[zI],a)};Xo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Wo.dragover=Wo.dragenter=(e,t)=>t.preventDefault();Wo.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(f2(n));if(!o)return;let i=e.state.doc.resolve(o.pos),a=r&&r.slice;a?e.someProp("transformPasted",p=>{a=p(a,e)}):a=XI(e,HI(n.dataTransfer),ap?null:n.dataTransfer.getData("text/html"),!1,i);let s=!!(r&&!n[zI]);if(e.someProp("handleDrop",p=>p(e,n,a||Rt.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let c=a?CN(e.state.doc,i.pos,a):i.pos;c==null&&(c=i.pos);let l=e.state.tr;if(s){let{node:p}=r;p?p.replace(l):l.deleteSelection()}let u=l.mapping.map(c),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=l.doc;if(f?l.replaceRangeWith(u,u,a.content.firstChild):l.replaceRange(u,u,a),l.doc.eq(d))return;let h=l.doc.resolve(u);if(f&&Yt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))l.setSelection(new Yt(h));else{let p=l.mapping.map(c);l.mapping.maps[l.mapping.maps.length-1].forEach((m,A,x,R)=>p=R),l.setSelection(c5(e,h,l.doc.resolve(p)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))};Xo.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&nl(e)},20))};Xo.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Xo.beforeinput=(e,t)=>{if(po&&wa&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,tu(8,"Backspace")))))return;let{$cursor:o}=e.state.selection;o&&o.pos>0&&e.dispatch(e.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let e in Wo)Xo[e]=Wo[e];function lp(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 og{constructor(t,n){this.toDOM=t,this.spec=n||xu,this.side=this.spec.side||0}map(t,n,r,o){let{pos:i,deleted:a}=t.mapResult(n.from+o,this.side<0?-1:1);return a?null:new ki(i-r,i-r,this)}valid(){return!0}eq(t){return this==t||t instanceof og&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&lp(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class uc{constructor(t,n){this.attrs=t,this.spec=n||xu}map(t,n,r,o){let i=t.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=a?null:new ki(i,a,this)}valid(t,n){return n.from=t&&(!i||i(s.spec))&&r.push(s.copy(s.from+o,s.to+o))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,o+s,i)}}map(t,n,r){return this==co||t.maps.length==0?this:this.mapInner(t,n,0,0,r||xu)}mapInner(t,n,r,o,i){let a;for(let s=0;s{let l=c+r,u;if(u=$I(n,s,l)){for(o||(o=this.children.slice());is&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let i=t+1,a=i+n.content.size;for(let s=0;si&&c.type instanceof uc){let l=Math.max(i,c.from)-i,u=Math.min(a,c.to)-i;lo.map(t,n,xu));return Jl.from(r)}forChild(t,n){if(n.isLeaf)return Nr.empty;let r=[];for(let o=0;on instanceof Nr)?t:t.reduce((n,r)=>n.concat(r instanceof Nr?r:r.members),[]))}}}function vae(e,t,n,r,o,i,a){let s=e.slice();for(let l=0,u=i;l{let A=m-p-(h-d);for(let x=0;xR+u-f)continue;let y=s[x]+u-f;h>=y?s[x+1]=d<=y?-2:-1:d>=u&&A&&(s[x]+=A,s[x+1]+=A)}f+=A}),u=n.maps[l].map(u,-1)}let c=!1;for(let l=0;l=r.content.size){c=!0;continue}let d=n.map(e[l+1]+i,-1),h=d-o,{index:p,offset:m}=r.content.findIndex(f),A=r.maybeChild(p);if(A&&m==f&&m+A.nodeSize==h){let x=s[l+2].mapInner(n,A,u+1,e[l]+i+1,a);x!=co?(s[l]=f,s[l+1]=h,s[l+2]=x):(s[l+1]=-2,c=!0)}else c=!0}if(c){let l=gae(s,e,t,n,o,i,a),u=ig(l,r,0,a);t=u.local;for(let f=0;fn&&a.to{let l=$I(e,s,c+n);if(l){i=!0;let u=ig(l,s,n+c+1,r);u!=co&&o.push(c,c+s.nodeSize,u)}});let a=JI(i?jI(e):e,-n).sort(bu);for(let s=0;s0;)t++;e.splice(t,0,n)}function Uy(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=co&&t.push(r)}),e.cursorWrapper&&t.push(Nr.create(e.state.doc,[e.cursorWrapper.deco])),Jl.from(t)}const Aae={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Rae=ni&&lc<=11;class yae{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 xae{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new yae,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),Rae&&(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,Aae)),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(qO(this.view)){if(this.suppressingSelectionUpdates)return nl(this.view);if(ni&&lc<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Vu(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let i=t.focusNode;i;i=ip(i))n.add(i);for(let i=t.anchorNode;i;i=ip(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&qO(t)&&!this.ignoreSelectionChange(r),i=-1,a=-1,s=!1,c=[];if(t.editable)for(let u=0;u1){let u=c.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],d=u[1];f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}}let l=null;i<0&&o&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||o)&&(i>-1&&(t.docView.markDirty(i,a),bae(t)),this.handleDOMChange(i,a,s,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||nl(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;uo;A--){let x=r.childNodes[A-1],R=x.pmViewDesc;if(x.nodeName=="BR"&&!R){i=A;break}if(!R||R.size)break}let f=e.state.doc,d=e.someProp("domParser")||Sd.fromSchema(e.state.schema),h=f.resolve(a),p=null,m=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:l,ruleFromNode:wae,context:h});if(l&&l[0].pos!=null){let A=l[0].pos,x=l[1]&&l[1].pos;x==null&&(x=A),p={anchor:A+a,head:x+a}}return{doc:m,sel:p,from:a,to:s}}function wae(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Eo&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Eo&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Lae=/^(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 Oae(e,t,n,r,o){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let O=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,k=l5(e,O);if(k&&!e.state.selection.eq(k)){if(po&&wa&&e.input.lastKeyCode===13&&Date.now()-100N(e,tu(13,"Enter"))))return;let F=e.state.tr.setSelection(k);O=="pointer"?F.setMeta("pointer",!0):O=="key"&&F.scrollIntoView(),i&&F.setMeta("composition",i),e.dispatch(F)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=Mae(e,t,n),u=e.state.doc,f=u.slice(l.from,l.to),d,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||wa)&&o.some(O=>O.nodeType==1&&!Lae.test(O.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",O=>O(e,tu(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&c instanceof Xn&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))p={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let O=uT(e,e.state.doc,l.sel);if(O&&!O.eq(e.state.selection)){let k=e.state.tr.setSelection(O);i&&k.setMeta("composition",i),e.dispatch(k)}}return}if(po&&e.cursorWrapper&&l.sel&&l.sel.anchor==e.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let O=p.endB-p.start;l.sel={anchor:l.sel.anchor+O,head:l.sel.anchor+O}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=l.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),ni&&lc<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=l.doc.resolveNoCache(p.start-l.from),A=l.doc.resolveNoCache(p.endB-l.from),x=u.resolve(p.start),R=m.sameParent(A)&&m.parent.inlineContent&&x.end()>=p.endA,y;if((Id&&e.input.lastIOSEnter>Date.now()-225&&(!R||o.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!R&&m.posO(e,tu(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&kae(u,p.start,p.endA,m,A)&&e.someProp("handleKeyDown",O=>O(e,tu(8,"Backspace")))){wa&&po&&e.domObserver.suppressSelectionUpdates();return}po&&wa&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),wa&&!R&&m.start()!=A.start()&&A.parentOffset==0&&m.depth==A.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,A=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{e.someProp("handleKeyDown",function(O){return O(e,tu(13,"Enter"))})},20));let g=p.start,S=p.endA,L,T,M;if(R){if(m.pos==A.pos)ni&&lc<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>nl(e),20)),L=e.state.tr.delete(g,S),T=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(M=Tae(m.parent.content.cut(m.parentOffset,A.parentOffset),x.parent.content.cut(x.parentOffset,p.endA-x.start()))))L=e.state.tr,M.type=="add"?L.addMark(g,S,M.mark):L.removeMark(g,S,M.mark);else if(m.parent.child(m.index()).isText&&m.index()==A.index()-(A.textOffset?0:1)){let O=m.parent.textBetween(m.parentOffset,A.parentOffset);if(e.someProp("handleTextInput",k=>k(e,g,S,O)))return;L=e.state.tr.insertText(O,g,S)}}if(L||(L=e.state.tr.replace(g,S,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let O=uT(e,L.doc,l.sel);O&&!(po&&wa&&e.composing&&O.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:c5(e,t.resolve(n.anchor),t.resolve(n.head))}function Tae(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,o=n,i=r,a,s,c;for(let u=0;uu.mark(s.addToSet(u.marks));else if(o.length==0&&i.length==1)s=i[0],a="remove",c=u=>u.mark(s.removeFromSet(u.marks));else return null;let l=[];for(let u=0;un||Yy(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let i=e.node(r).maybeChild(e.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function Nae(e,t,n,r,o){let i=e.findDiffStart(t,n);if(i==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(o=="end"){let c=Math.max(0,i-Math.min(a,s));r-=a+c-i}if(a=a?i-r:0;i-=c,i&&i=s?i-r:0;i-=c,i&&i=56320&&t<=57343&&n>=55296&&n<=56319}class Pae{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 jie,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(vT),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=pT(this),hT(this),this.nodeViews=mT(this),this.docView=HO(this.state.doc,dT(this),Uy(this),this.dom,this),this.domObserver=new xae(this,(r,o,i,a)=>Oae(this,r,o,i,a)),this.domObserver.start(),qie(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ex(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(vT),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let o=this.state,i=!1,a=!1;t.storedMarks&&this.composing&&(KI(this),a=!0),this.state=t;let s=o.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=mT(this);Iae(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&ex(this),this.editable=pT(this),hT(this);let c=Uy(this),l=dT(this),u=o.plugins!=t.plugins&&!o.doc.eq(t.doc)?"reset":t.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(t.doc,l,c);(f||!t.selection.eq(o.selection))&&(a=!0);let d=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&hie(this);if(a){this.domObserver.stop();let h=f&&(ni||po)&&!this.composing&&!o.selection.empty&&!t.selection.empty&&Cae(o.selection,t.selection);if(f){let p=po?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(t.doc,l,c,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=HO(t.doc,l,c,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Wie(this))?nl(this,h):(II(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&pie(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Yt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&YO(this,n.getBoundingClientRect(),t)}else YO(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new GI(t.slice,t.move,o<0?void 0:Yt.create(this.state.doc,o))}someProp(t,n){let r=this._props&&this._props[t],o;if(r!=null&&(o=n?n(r):r))return o;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return yie(this,t)}coordsAtPos(t,n=1){return wI(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let o=this.docView.posFromDOM(t,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,n){return wie(this,n||this.state,t)}pasteHTML(t,n){return sp(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return sp(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(eae(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Uy(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(t){return nae(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return Eo&&this.root.nodeType===11&&aie(this.dom.ownerDocument)==this.dom?Sae(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function dT(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[ki.node(0,e.state.doc.content.size,t)]}function hT(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:ki.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function pT(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Cae(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 mT(e){let t=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(t,o)||(t[o]=r[o])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Iae(e,t){let n=0,r=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let o in t)r++;return n!=r}function vT(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Rc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ag={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Fae=typeof navigator<"u"&&/Mac/.test(navigator.platform),_ae=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var to=0;to<10;to++)Rc[48+to]=Rc[96+to]=String(to);for(var to=1;to<=24;to++)Rc[to+111]="F"+to;for(var to=65;to<=90;to++)Rc[to]=String.fromCharCode(to+32),ag[to]=String.fromCharCode(to);for(var Qy in Rc)ag.hasOwnProperty(Qy)||(ag[Qy]=Rc[Qy]);function Eae(e){var t=Fae&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||_ae&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?ag:Rc)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Xae=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Wae(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,o,i,a;for(let s=0;s127)&&(i=Rc[r.keyCode])&&i!=o){let s=t[Zy(i,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var sg=200,Br=function(){};Br.prototype.append=function(t){return t.length?(t=Br.from(t),!this.length&&t||t.length=n?Br.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Br.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Br.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)};Br.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,a){return o.push(t(i,a))},n,r),o};Br.from=function(t){return t instanceof Br?t:t&&t.length?new eF(t):Br.empty};var eF=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new t(this.values.slice(o,i))},t.prototype.getInner=function(o){return this.values[o]},t.prototype.forEachInner=function(o,i,a,s){for(var c=i;c=a;c--)if(o(this.values[c],s+c)===!1)return!1},t.prototype.leafAppend=function(o){if(this.length+o.length<=sg)return new t(this.values.concat(o.flatten()))},t.prototype.leafPrepend=function(o){if(this.length+o.length<=sg)return new t(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Br);Br.empty=new eF([]);var Uae=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(o-s,0),Math.min(this.length,i)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,o,i,a){var s=this.left.length;if(o>s&&this.right.forEachInvertedInner(r,o-s,Math.max(i,s)-s,a+s)===!1||i=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},t.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new t(this.left,o)},t.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new t(o,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Br);const Yae=500;class Oa{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let a=t.tr,s,c,l=[],u=[];return this.items.forEach((f,d)=>{if(!f.step){o||(o=this.remapping(r,d+1),i=o.maps.length),i--,u.push(f);return}if(o){u.push(new Ha(f.map));let h=f.step.map(o.slice(i)),p;h&&a.maybeStep(h).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],l.push(new Ha(p,void 0,void 0,l.length+u.length))),i--,p&&o.appendMap(p,i)}else a.maybeStep(f.step);if(f.selection)return s=o?f.selection.map(o.slice(i)):f.selection,c=new Oa(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:a,selection:s}}addTransform(t,n,r,o){let i=[],a=this.eventCount,s=this.items,c=!o&&s.length?s.get(s.length-1):null;for(let u=0;uZae&&(s=Qae(s,l),a-=l),new Oa(s.append(i),a)}remapping(t,n){let r=new ld;return this.items.forEach((o,i)=>{let a=o.mirrorOffset!=null&&i-o.mirrorOffset>=t?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new Oa(this.items.append(t.map(n=>new Ha(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},o);let c=n;this.items.forEach(d=>{let h=i.getMirror(--c);if(h==null)return;a=Math.min(a,h);let p=i.maps[h];if(d.step){let m=t.steps[h].invert(t.docs[h]),A=d.selection&&d.selection.map(i.slice(c+1,h));A&&s++,r.push(new Ha(p,m,A))}else r.push(new Ha(p))},o);let l=[];for(let d=n;dYae&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,o=[],i=0;return this.items.forEach((a,s)=>{if(s>=t)o.push(a),a.selection&&i++;else if(a.step){let c=a.step.map(n.slice(r)),l=c&&c.getMap();if(r--,l&&n.appendMap(l,r),c){let u=a.selection&&a.selection.map(n.slice(r));u&&i++;let f=new Ha(l.invert(),c,u),d,h=o.length-1;(d=o.length&&o[h].merge(f))?o[h]=d:o.push(f)}}else a.map&&r--},this.items.length,0),new Oa(Br.from(o.reverse()),i)}}Oa.empty=new Oa(Br.empty,0);function Qae(e,t){let n;return e.forEach((r,o)=>{if(r.selection&&t--==0)return n=o,!1}),e.slice(n)}class Ha{constructor(t,n,r,o){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Ha(n.getMap().invert(),n,this.selection)}}}class Dl{constructor(t,n,r,o,i){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const Zae=20;function Bae(e,t,n,r){let o=n.getMeta(fc),i;if(o)return o.historyState;n.getMeta(Kae)&&(e=new Dl(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(fc))return a.getMeta(fc).redo?new Dl(e.done.addTransform(n,void 0,r,ev(t)),e.undone,AT(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Dl(e.done,e.undone.addTransform(n,void 0,r,ev(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),c=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!Dae(n,e.prevRanges)),l=a?By(e.prevRanges,n.mapping):AT(n.mapping.maps[n.steps.length-1]);return new Dl(e.done.addTransform(n,c?t.selection.getBookmark():void 0,r,ev(t)),Oa.empty,l,n.time,s??e.prevComposition)}else return(i=n.getMeta("rebased"))?new Dl(e.done.rebased(n,i),e.undone.rebased(n,i),By(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Dl(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),By(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Dae(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,o)=>{for(let i=0;i=t[i]&&(n=!0)}),n}function AT(e){let t=[];return e.forEach((n,r,o,i)=>t.push(o,i)),t}function By(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=fc.getState(e);return!n||n.done.eventCount==0?!1:(t&&tF(n,e,t,!1),!0)},rF=(e,t)=>{let n=fc.getState(e);return!n||n.undone.eventCount==0?!1:(t&&tF(n,e,t,!0),!0)};function Gae(e={}){return new Yd({view(t){return new zae(t,e)}})}class zae{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=a=>{this[o](a)};return t.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,c=t.nodeAfter;if(s||c){let l=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(l){let u=l.getBoundingClientRect(),f=s?u.bottom:u.top;s&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,a;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,a=-pageYOffset;else{let s=o.getBoundingClientRect();i=s.left-o.scrollLeft,a=s.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,t):o;if(n&&!i){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=CN(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}class Rr extends bn{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Rr.valid(r)?new Rr(r):bn.near(r)}content(){return Rt.empty}eq(t){return t instanceof Rr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Rr(t.resolve(n.pos))}getBookmark(){return new m5(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!Jae(t)||!$ae(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(t.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Rr.valid(t))return t;let o=t.pos,i=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){i=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;o+=n;let c=t.doc.resolve(o);if(Rr.valid(c))return c}for(;;){let a=n>0?i.firstChild:i.lastChild;if(!a){if(i.isAtom&&!i.isText&&!Yt.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=a,o+=n;let s=t.doc.resolve(o);if(Rr.valid(s))return s}return null}}}Rr.prototype.visible=!1;Rr.findFrom=Rr.findGapCursorFrom;bn.jsonID("gapcursor",Rr);class m5{constructor(t){this.pos=t}map(t){return new m5(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Rr.valid(n)?new Rr(n):bn.near(n)}}function Jae(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function $ae(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function jae(){return new Yd({props:{decorations:nse,createSelectionBetween(e,t,n){return t.pos==n.pos&&Rr.valid(n)?new Rr(n):null},handleClick:ese,handleKeyDown:qae,handleDOMEvents:{beforeinput:tse}}})}const qae=qI({ArrowLeft:ym("horiz",-1),ArrowRight:ym("horiz",1),ArrowUp:ym("vert",-1),ArrowDown:ym("vert",1)});function ym(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,o,i){let a=r.selection,s=t>0?a.$to:a.$from,c=a.empty;if(a instanceof Xn){if(!i.endOfTextblock(n)||s.depth==0)return!1;c=!1,s=r.doc.resolve(t>0?s.after():s.before())}let l=Rr.findGapCursorFrom(s,t,c);return l?(o&&o(r.tr.setSelection(new Rr(l))),!0):!1}}function ese(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Rr.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Yt.isSelectable(e.state.doc.nodeAt(o.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Rr(r))),!0)}function tse(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Rr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=lt.empty;for(let a=r.length-1;a>=0;a--)o=lt.from(r[a].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new Rt(o,0,0));return i.setSelection(Xn.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function nse(e){if(!(e.selection instanceof Rr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Nr.create(e.doc,[ki.widget(e.selection.head,t,{key:"gapcursor"})])}const rse=["li",0],ose={parseDOM:[{tag:"li"}],toDOM(){return rse},defining:!0};function ise(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=!1,c=a;if(!a)return!1;if(a.depth>=2&&o.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(o.index(a.depth-1)==0)return!1;let u=n.doc.resolve(a.start-2);c=new wv(u,u,a.depth),a.endIndex=0;u--)i=lt.from(n[u].type.create(n[u].attrs,i));e.step(new ro(t.start-(r?2:0),t.end,t.start,t.end,new Rt(i,0,0),n.length,!0));let a=0;for(let u=0;u=o.depth-3;x--)f=lt.from(o.node(x).copy(f));let h=o.indexAfter(-1){if(A>-1)return!1;x.isTextblock&&x.content.size==0&&(A=R+1)}),A>-1&&m.setSelection(bn.near(m.doc.resolve(A))),r(m.scrollIntoView())}return!0}let c=i.pos==o.end()?s.contentMatchAt(0).defaultType:null,l=n.tr.delete(o.pos,i.pos),u=c?[t?{type:e,attrs:t}:null,{type:c}]:void 0;return cd(l.doc,o.pos,2,u)?(r&&r(l.split(o.pos,2,u).scrollIntoView()),!0):!1}}function oF(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,a=>a.childCount>0&&a.firstChild.type==e);return i?n?r.node(i.depth-1).type==e?lse(t,n,e,i):cse(t,n,i):!0:!1}}function lse(e,t,n,r){let o=e.tr,i=r.end,a=r.$to.end(r.depth);im;p--)h-=o.child(p).nodeSize,r.delete(h-1,h+1);let i=r.doc.resolve(n.start),a=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==o.childCount,l=i.node(-1),u=i.index(-1);if(!l.canReplace(u+(s?0:1),u+1,a.content.append(c?lt.empty:lt.from(o))))return!1;let f=i.pos,d=f+a.nodeSize;return r.step(new ro(f-(s?1:0),d+(c?1:0),f+1,d-1,new Rt((s?lt.empty:lt.from(o.copy(lt.empty))).append(c?lt.empty:lt.from(o.copy(lt.empty))),s?0:1,c?0:1),s?0:1)),t(r.scrollIntoView()),!0}function yT(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,l=>l.childCount>0&&l.firstChild.type==e);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let s=i.parent,c=s.child(a-1);if(c.type!=e)return!1;if(n){let l=c.lastChild&&c.lastChild.type==s.type,u=lt.from(l?e.create():null),f=new Rt(lt.from(e.create(null,lt.from(s.type.create(null,u)))),l?3:1,0),d=i.start,h=i.end;n(t.tr.step(new ro(d-(l?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class fl{constructor(t,n,r={}){this.match=t,this.match=t,this.handler=typeof n=="string"?use(n):n,this.undoable=r.undoable!==!1}}function use(e){return function(t,n,r,o){let i=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);i+=n[0].slice(a+n[1].length),r+=a;let s=r-o;s>0&&(i=n[0].slice(a-s,a)+i,r=o)}return t.tr.insertText(i,r,o)}}const fse=500;function dse({rules:e}){let t=new Yd({state:{init(){return null},apply(n,r){let o=n.getMeta(this);return o||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,o,i){return xT(n,r,o,i,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&xT(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function xT(e,t,n,r,o,i){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t);if(s.parent.type.spec.code)return!1;let c=s.parent.textBetween(Math.max(0,s.parentOffset-fse),s.parentOffset,null,"")+r;for(let l=0;l{let n=e.plugins;for(let r=0;r=0;c--)a.step(s.steps[c].invert(s.docs[c]));if(i.text){let c=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,e.schema.text(i.text,c))}else a.delete(i.from,i.to);t(a)}return!0}}return!1},pse=new fl(/--$/,"—"),mse=new fl(/\.\.\.$/,"…"),vse=new fl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),gse=new fl(/"$/,"”"),Ase=new fl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),Rse=new fl(/'$/,"’"),yse=[vse,gse,Ase,Rse];function v5(e,t,n=null,r){return new fl(e,(o,i,a,s)=>{let c=n instanceof Function?n(i):n,l=o.tr.delete(a,s),u=l.doc.resolve(a),f=u.blockRange(),d=f&&sb(f,t,c);if(!d)return null;l.wrap(f,d);let h=l.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Ud(l.doc,a-1)&&(!r||r(i,h))&&l.join(a-1),l})}const xse=e=>{const t={},n=(r,o)=>t[r]=o;return n("Alt-ArrowUp",BH),n("Alt-ArrowDown",DH),n("Mod-z",nF),n("Mod-y",rF),n("Backspace",hse),n("Escape",JH),n("Mod-b",kr(e.marks.strong)),n("Mod-i",kr(e.marks.em)),n("Mod-u",kr(e.marks.underline)),n("Mod-d",kr(e.marks.strikethrough)),n("Mod-e",kr(e.marks.code)),n("Mod-;",kr(e.marks.superscript)),n("Mod-'",kr(e.marks.subscript)),n("Enter",Wg(sse(e.nodes.list_item),ZN,BN,DN,zH)),n("Mod-[",oF(e.nodes.list_item)),n("Mod-]",yT(e.nodes.list_item)),n("Tab",yT(e.nodes.list_item)),t},bse=e=>v5(/^\s*>\s$/,e),Sse=e=>v5(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),Mse=e=>v5(/^\s*([-+*])\s$/,e),wse=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new fl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(`${n[2]} `,r,o),s=i.marks.code.create();return a.addMark(r,r+n[2].length,s)})},Lse=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new fl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(n[0],r,o),s=i.marks.link.create({href:n[0],title:n[0]});return a.addMark(r,r+n[0].length,s)})},Ose=e=>{const t=[...yse,mse,pse];return t.push(bse(e.nodes.blockquote)),t.push(Sse(e.nodes.ordered_list)),t.push(Mse(e.nodes.bullet_list)),t.push(wse()),t.push(Lse()),dse({rules:t})},Tse=e=>e.type.name==="paragraph"&&e.nodeSize===2,kse=e=>new Yd({props:{decorations(t){const{$from:n}=t.selection;if(Tse(n.parent)){const r=ki.node(n.before(),n.after(),{"data-placeholder":e});return Nr.create(t.doc,[r])}}}}),Nse=(e,t)=>{const n=t==null?void 0:t.placeholder,r=[Ose(e),gT(xse(e)),gT(rG),Gae(),jae(),Hae()];return n&&r.push(kse(n)),r},Pse=["p",0],Cse=["blockquote",0],Ise=["hr"],Fse=["pre",["code",0]],_se=["br"],iF={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return Pse}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return Cse}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return Ise}},heading:{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return Fse}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){let{src:t,alt:n,title:r}=e.attrs;return["img",{src:t,alt:n,title:r}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return _se}}},Ese=["em",0],Xse=["strong",0],Wse=["code",0],aF={link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){let{href:t,title:n}=e.attrs;return["a",{href:t,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return Ese}},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 Xse}},code:{parseDOM:[{tag:"code"}],toDOM(){return Wse}}};new bN({nodes:iF,marks:aF});const Vse={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>{const n={order:+((e.hasAttribute("start")?e.getAttribute("start"):1)||1)},{listStyleType:r,fontSize:o,color:i}=e.style;return r&&(n.listStyleType=r),o&&(n.fontsize=o),i&&(n.color=i),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:r,color:o}=e.attrs;let i="";n&&(i+=`list-style-type: ${n};`),r&&(i+=`font-size: ${r};`),o&&(i+=`color: ${o};`);const a={style:i};return t!==1&&(a.start=t),["ol",a,0]}},Use={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:r,color:o}=e.style;return n&&(t.listStyleType=n),r&&(t.fontsize=r),o&&(t.color=o),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:r}=e.attrs;let o="";return t&&(o+=`list-style-type: ${t};`),n&&(o+=`font-size: ${n};`),r&&(o+=`color: ${r};`),["ul",{style:o},0]}},Yse={...ose,content:"paragraph block*",group:"block"},Qse={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:e=>{const{textAlign:t,textIndent:n}=e.style;let r=e.getAttribute("align")||t||"";r=/(left|right|center|justify)/.test(r)?r:"";let o=0;n&&(/em/.test(n)?o=parseInt(n):/px/.test(n)&&(o=Math.floor(parseInt(n)/20),o||(o=1)));const i=+(e.getAttribute("data-indent")||0);return{align:r,indent:i,textIndent:o}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:r}=e.attrs;let o="";t&&t!=="left"&&(o+=`text-align: ${t};`),r&&(o+=`text-indent: ${r*20}px;`);const i={style:o};return n&&(i["data-indent"]=n),["p",i,0]}},{doc:Zse,blockquote:Bse,text:Dse}=iF,Kse={doc:Zse,paragraph:Qse,blockquote:Bse,text:Dse,ordered_list:Vse,bullet_list:Use,list_item:Yse},Hse={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},Gse={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},zse={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:e=>e==="line-through"&&null},{style:"text-decoration-line",getAttrs:e=>e==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},Jse={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]},$se={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]}},jse={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]}},qse={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]}},ele={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]}},tle={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]},nle={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:rle,strong:ole,code:ile}=aF,ale={em:rle,strong:ole,fontsize:qse,fontname:ele,code:ile,forecolor:$se,backcolor:jse,subscript:Hse,superscript:Gse,strikethrough:zse,underline:Jse,link:tle,mark:nle},sle=Kse,lle=ale,sF=new bN({nodes:sle,marks:lle}),g5=e=>{const t=`
    ${e}
    `,r=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return Sd.fromSchema(sF).parse(r)},lF=(e,t,n,r)=>new Pae(e,{state:Kf.create({doc:g5(t),plugins:Nse(sF,r)}),...n});function cle(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}var Wr=(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))(Wr||{});const Zr=cle(),ule=(e,t,n)=>{const{selection:r,doc:o}=e;if(!r||!o)return e;const{from:i,to:a}=r,{nodes:s}=t,c=s.blockquote,l=s.list_item,u=s.paragraph,f=[];n=n||"";const d=new Set([c,l,u]);return o.nodesBetween(i,a,(h,p)=>{const m=h.type;return(h.attrs.align||"")!==n&&d.has(m)&&f.push({node:h,pos:p,nodeType:m}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:m,nodeType:A}=h;let{attrs:x}=p;n?x={...x,align:n}:x={...x,align:null},e=e.setNodeMarkup(m,A,x,p.marks)}),e},fle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=ule(n.tr.setSelection(o),r,t);e.dispatch(i)};function dle(e,t,n,r){if(!e.doc)return e;const o=e.doc.nodeAt(t);if(!o)return e;const i=0,a=8;let s=(o.attrs[r]||0)+n;if(sa&&(s=a),s===o.attrs[r])return e;const c={...o.attrs,[r]:s};return e.setNodeMarkup(t,o.type,c,o.marks)}const cF=(e,t,n,r)=>{const{selection:o,doc:i}=e;if(!o||!i||!(o instanceof Xn||o instanceof qo))return e;const{from:a,to:s}=o;return i.nodesBetween(a,s,(c,l)=>{const u=c.type;return u.name==="paragraph"||u.name==="blockquote"?(e=dle(e,l,n,r),!1):!kv(c,t)}),e},hle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=cF(n.tr.setSelection(o),r,t,"indent");return i.docChanged?(e.dispatch(i),!0):!1},ple=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=cF(n.tr.setSelection(o),r,t,"textIndent");return i.docChanged?(e.dispatch(i),!0):!1},lg=(e,t,n,r={})=>(o,i)=>{const{schema:a,selection:s}=o,{$from:c,$to:l}=s,u=c.blockRange(l);if(!u)return!1;const f=$N(h=>kv(h,a))(s);if(u.depth>=1&&f&&u.depth-f.depth<=1){if(f.node.type===e&&!n)return oF(t)(o,i);if(kv(f.node,a)&&e.validContent(f.node.content)){const{tr:h}=o,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,e,p),i&&i(h),!1}}const d={...r};return n&&(d.listStyleType=n),ise(e,d)(o,i)},R0=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=n.tr.setSelection(o),{doc:a}=i;if(!a)return i;const{from:s,to:c}=o;a.nodesBetween(s,c,(l,u)=>{if(kv(l,r)&&s-3<=u&&c+3>=u+l.nodeSize){const f=Array.isArray(t)?t:[t];for(const d of f)i.setNodeAttribute(u,d.key,d.value)}return!1}),e.dispatch(i)},mle=Fe({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=ft(),{handleElementId:a,textFormatPainter:s,richTextAttrs:c}=Xe(i),l=pe();let u;const f=_n.debounce(function(){o("update",u.dom.innerHTML)},300,{trailing:!0}),d=()=>{i.setDisableHotkeysState(!0),o("focus")},h=()=>{i.setDisableHotkeysState(!1),o("blur")},p=_n.debounce(function(){const S=Q4(u,{color:r.defaultColor,fontname:r.defaultFontName});i.setRichtextAttrs(S)},30,{trailing:!0}),m=()=>{f(),p()},A=Me(()=>r.value);Tt(A,()=>{if(!u||u.hasFocus())return;const{doc:S,tr:L}=u.state;u.dispatch(L.replaceRangeWith(0,S.content.size,g5(A.value)))}),Tt(()=>r.editable,()=>{u.setProps({editable:()=>r.editable})}),t({focus:()=>u.focus()});const R=({target:S,action:L})=>{if(!S&&a.value!==r.elementId||S&&S!==r.elementId)return;const T="command"in L?[L]:L;for(const M of T)if(M.command==="fontname"&&M.value){const O=u.state.schema.marks.fontname.create({fontname:M.value});Er(u),Ka(u,O)}else if(M.command==="fontsize"&&M.value){const O=u.state.schema.marks.fontsize.create({fontsize:M.value});Er(u),Ka(u,O),R0(u,{key:"fontsize",value:M.value})}else if(M.command==="fontsize-add"){const O=M.value?+M.value:2;Er(u);const k=bM(u)+O+"px",F=u.state.schema.marks.fontsize.create({fontsize:k});Ka(u,F),R0(u,{key:"fontsize",value:k})}else if(M.command==="fontsize-reduce"){const O=M.value?+M.value:2;Er(u);let k=bM(u)-O;k<12&&(k=12);const F=u.state.schema.marks.fontsize.create({fontsize:k+"px"});Ka(u,F),R0(u,{key:"fontsize",value:k+"px"})}else if(M.command==="color"&&M.value){const O=u.state.schema.marks.forecolor.create({color:M.value});Er(u),Ka(u,O),R0(u,{key:"color",value:M.value})}else if(M.command==="backcolor"&&M.value){const O=u.state.schema.marks.backcolor.create({backcolor:M.value});Er(u),Ka(u,O)}else if(M.command==="bold")Er(u),kr(u.state.schema.marks.strong)(u.state,u.dispatch);else if(M.command==="em")Er(u),kr(u.state.schema.marks.em)(u.state,u.dispatch);else if(M.command==="underline")Er(u),kr(u.state.schema.marks.underline)(u.state,u.dispatch);else if(M.command==="strikethrough")Er(u),kr(u.state.schema.marks.strikethrough)(u.state,u.dispatch);else if(M.command==="subscript")kr(u.state.schema.marks.subscript)(u.state,u.dispatch);else if(M.command==="superscript")kr(u.state.schema.marks.superscript)(u.state,u.dispatch);else if(M.command==="blockquote")Em("blockquote",u.state)?KH(u.state,u.dispatch):eG(u.state.schema.nodes.blockquote)(u.state,u.dispatch);else if(M.command==="code")kr(u.state.schema.marks.code)(u.state,u.dispatch);else if(M.command==="align"&&M.value)fle(u,M.value);else if(M.command==="indent"&&M.value)hle(u,+M.value);else if(M.command==="textIndent"&&M.value)ple(u,+M.value);else if(M.command==="bulletList"){const O=M.value||"",{bullet_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};lg(k,F,O,N)(u.state,u.dispatch)}else if(M.command==="orderedList"){const O=M.value||"",{ordered_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};lg(k,F,O,N)(u.state,u.dispatch)}else if(M.command==="clear"){Er(u);const{$from:O,$to:k}=u.state.selection;u.dispatch(u.state.tr.removeMark(O.pos,k.pos)),R0(u,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(M.command==="link"){const O=u.state.schema.marks.link,{from:k,to:F}=u.state.selection,N=oG(u.state.doc,k,F,O);if(N)if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Ka(u,E,{from:N.from.pos,to:N.to.pos+1})}else u.dispatch(u.state.tr.removeMark(N.from.pos,N.to.pos+1,O));else if(lG(u.state,O))if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Ka(u,E)}else kr(O)(u.state,u.dispatch);else M.value&&(Er(u),kr(O,{href:M.value,title:M.value})(u.state,u.dispatch))}else M.command==="insert"&&M.value&&u.dispatch(u.state.tr.insertText(M.value));u.focus(),f(),p()},y=()=>{if(!s.value)return;const{keep:S,...L}=s.value,T=[{command:"clear"}];for(const M of Object.keys(L)){const O=M,k=s.value[M];k===!0?T.push({command:O}):k&&T.push({command:O,value:k})}R({action:T}),S||i.setTextFormatPainter(null)};Gt(()=>{u=lF(l.value,A.value,{handleDOMEvents:{focus:d,blur:h,keydown:m,click:p,mouseup:y},editable:()=>r.editable}),r.autoFocus&&u.focus()}),On(()=>{u&&u.destroy()});const g=()=>{a.value===r.elementId&&p()};return Zr.on(Wr.RICH_TEXT_COMMAND,R),Zr.on(Wr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g),On(()=>{Zr.off(Wr.RICH_TEXT_COMMAND,R),Zr.off(Wr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g)}),(S,L)=>(Y(),ee("div",{class:$e(["prosemirror-editor",{"format-painter":H(s)}]),ref_key:"editorViewRef",ref:l,onMousedown:L[0]||(L[0]=T=>o("mousedown",T))},null,34))}}),uF=Ue(mle,[["__scopeId","data-v-23fdc807"]]),fF=e=>(on("data-v-88c920e1"),e=e(),an(),e),vle=fF(()=>V("div",{class:"drag-handler top"},null,-1)),gle=fF(()=>V("div",{class:"drag-handler bottom"},null,-1)),Ale=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{handleElementId:o,isScaling:i}=Xe(n),{addHistorySnapshot:a}=zt(),s=pe(),c=Me(()=>t.elementInfo.shadow),{shadowStyle:l}=Lc(c),u=(R,y=!0)=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo,y))},f=pe(-1),d=pe(-1);Tt(i,()=>{o.value===t.elementInfo.id&&(i.value||(!t.elementInfo.vertical&&f.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:f.value}}),f.value=-1),t.elementInfo.vertical&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{width:d.value}}),d.value=-1)))});const h=R=>{const y=R[0].contentRect;if(!s.value)return;const g=y.height+20,S=y.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==g&&(i.value?f.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}})),t.elementInfo.vertical&&t.elementInfo.width!==S&&(i.value?d.value=S:r.updateElement({id:t.elementInfo.id,props:{width:S}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),On(()=>{s.value&&p.unobserve(s.value)});const m=R=>{r.updateElement({id:t.elementInfo.id,props:{content:R}}),a()},A=_n.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(t.elementInfo.id)},300,{trailing:!0}),x=Me(()=>o.value===t.elementInfo.id);return Tt(x,()=>{x.value||A()}),(R,y)=>{const g=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-text",{lock:R.elementInfo.lock}]),style:Le({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:Le({transform:`rotate(${R.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",ref_key:"elementRef",ref:s,style:Le({width:R.elementInfo.vertical?"auto":R.elementInfo.width+"px",height:R.elementInfo.vertical?R.elementInfo.height+"px":"auto",backgroundColor:R.elementInfo.fill,opacity:R.elementInfo.opacity,textShadow:H(l),lineHeight:R.elementInfo.lineHeight,letterSpacing:(R.elementInfo.wordSpace||0)+"px",color:R.elementInfo.defaultColor,fontFamily:R.elementInfo.defaultFontName,writingMode:R.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:y[2]||(y[2]=S=>u(S)),onTouchstart:y[3]||(y[3]=S=>u(S))},[w(l2,{width:R.elementInfo.width,height:R.elementInfo.height,outline:R.elementInfo.outline},null,8,["width","height","outline"]),w(uF,{class:"text",elementId:R.elementInfo.id,defaultColor:R.elementInfo.defaultColor,defaultFontName:R.elementInfo.defaultFontName,editable:!R.elementInfo.lock,value:R.elementInfo.content,style:Le({"--paragraphSpace":`${R.elementInfo.paragraphSpace===void 0?5:R.elementInfo.paragraphSpace}px`}),onUpdate:y[0]||(y[0]=S=>m(S)),onMousedown:y[1]||(y[1]=S=>u(S,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),vle,gle],36)),[[g,R.contextmenus]])],4)],6)}}}),dF=Ue(Ale,[["__scopeId","data-v-88c920e1"]]),Rle=["id","gradientTransform"],yle=["stop-color"],xle=["stop-color"],ble=["id"],Sle=["stop-color"],Mle=["stop-color"],hF=Fe({__name:"GradientDefs",props:{id:{},type:{},color1:{},color2:{},rotate:{default:0}},setup(e){return(t,n)=>t.type==="linear"?(Y(),ee("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[V("stop",{offset:"0%","stop-color":t.color1},null,8,yle),V("stop",{offset:"100%","stop-color":t.color2},null,8,xle)],8,Rle)):(Y(),ee("radialGradient",{key:1,id:t.id},[V("stop",{offset:"0%","stop-color":t.color1},null,8,Sle),V("stop",{offset:"100%","stop-color":t.color2},null,8,Mle)],8,ble))}}),wle=["width","height"],Lle={key:0},Ole=["transform"],Tle=["d","fill","stroke","stroke-width","stroke-dasharray"],kle=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{handleElementId:o,shapeFormatPainter:i}=Xe(n),{addHistorySnapshot:a}=zt(),s=(M,O=!0)=>{t.elementInfo.lock||(M.stopPropagation(),t.selectElement(M,t.elementInfo,O))},c=()=>{if(!i.value)return;const{keep:M,...O}=i.value;r.updateElement({id:t.elementInfo.id,props:O}),a(),M||n.setShapeFormatPainter(null)},l=Me(()=>t.elementInfo.outline),{outlineWidth:u,outlineColor:f,strokeDashArray:d}=Gd(l),h=Me(()=>t.elementInfo.shadow),{shadowStyle:p}=Lc(h),m=Me(()=>t.elementInfo.flipH),A=Me(()=>t.elementInfo.flipV),{flipStyle:x}=s2(m,A),R=pe(!1);Tt(o,()=>{o.value!==t.elementInfo.id&&R.value&&(R.value=!1)});const y=Me(()=>{const M={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:M}),g=M=>{const O={...y.value,content:M};r.updateElement({id:t.elementInfo.id,props:{text:O}}),a()},S=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},L=pe(),T=()=>{R.value=!0,Vr(()=>L.value&&L.value.focus())};return(M,O)=>{const k=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-shape",{lock:M.elementInfo.lock,"format-painter":H(i)}]),style:Le({top:M.elementInfo.top+"px",left:M.elementInfo.left+"px",width:M.elementInfo.width+"px",height:M.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${M.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",style:Le({opacity:M.elementInfo.opacity,filter:H(p)?`drop-shadow(${H(p)})`:"",transform:H(x),color:y.value.defaultColor,fontFamily:y.value.defaultFontName}),onMousedown:O[3]||(O[3]=F=>s(F)),onMouseup:O[4]||(O[4]=F=>c()),onTouchstart:O[5]||(O[5]=F=>s(F)),onDblclick:O[6]||(O[6]=F=>T())},[(Y(),ee("svg",{overflow:"visible",width:M.elementInfo.width,height:M.elementInfo.height},[M.elementInfo.gradient?(Y(),ee("defs",Lle,[w(hF,{id:`editabel-gradient-${M.elementInfo.id}`,type:M.elementInfo.gradient.type,color1:M.elementInfo.gradient.color[0],color2:M.elementInfo.gradient.color[1],rotate:M.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Be("",!0),V("g",{transform:`scale(${M.elementInfo.width/M.elementInfo.viewBox[0]}, ${M.elementInfo.height/M.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:M.elementInfo.path,fill:M.elementInfo.gradient?`url(#editabel-gradient-${M.elementInfo.id})`:M.elementInfo.fill,stroke:H(f),"stroke-width":H(u),"stroke-dasharray":H(d)},null,8,Tle)],8,Ole)],8,wle)),V("div",{class:$e(["shape-text",[y.value.align,{editable:R.value||y.value.content}]])},[R.value||y.value.content?(Y(),we(uF,{key:0,ref_key:"prosemirrorEditorRef",ref:L,elementId:M.elementInfo.id,defaultColor:y.value.defaultColor,defaultFontName:y.value.defaultFontName,editable:!M.elementInfo.lock,value:y.value.content,onUpdate:O[0]||(O[0]=F=>g(F)),onBlur:O[1]||(O[1]=F=>S()),onMousedown:O[2]||(O[2]=F=>s(F,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Be("",!0)],2)],36)),[[k,M.contextmenus]])],4)],6)}}}),pF=Ue(kle,[["__scopeId","data-v-63255815"]]),Nle=["id","markerWidth","markerHeight","refX","refY"],Ple=["d","fill","transform"],Fd=Fe({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(e){const t=e,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},r={"arrow-start":180,"arrow-end":0},o=Me(()=>n[t.type]),i=Me(()=>r[`${t.type}-${t.position}`]||0),a=Me(()=>t.baseSize<2?2:t.baseSize);return(s,c)=>(Y(),ee("marker",{id:`${s.id}-${s.type}-${s.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:a.value*3,markerHeight:a.value*3,refX:a.value*1.5,refY:a.value*1.5},[V("path",{d:o.value,fill:s.color,transform:`scale(${a.value*.3}, ${a.value*.3}) rotate(${i.value}, 5, 5)`},null,8,Ple)],8,Nle))}}),Cle=["width","height"],Ile=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Fle=["d"],_le=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=l=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo))},r=Me(()=>t.elementInfo.shadow),{shadowStyle:o}=Lc(r),i=Me(()=>{const l=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return l<24?24:l}),a=Me(()=>{const l=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return l<24?24:l}),s=Me(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const l=t.elementInfo.width;return l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`}),c=Me(()=>Tb(t.elementInfo));return(l,u)=>{const f=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-shape",{lock:l.elementInfo.lock}]),style:Le({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Le({filter:H(o)?`drop-shadow(${H(o)})`:""}),onMousedown:u[0]||(u[0]=d=>n(d)),onTouchstart:u[1]||(u[1]=d=>n(d))},[(Y(),ee("svg",{overflow:"visible",width:i.value,height:a.value},[V("defs",null,[l.elementInfo.points[0]?(Y(),we(Fd,{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"])):Be("",!0),l.elementInfo.points[1]?(Y(),we(Fd,{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"])):Be("",!0)]),V("path",{class:"line-point",d:c.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":s.value,fill:"none","marker-start":l.elementInfo.points[0]?`url(#${l.elementInfo.id}-${l.elementInfo.points[0]}-start)`:"","marker-end":l.elementInfo.points[1]?`url(#${l.elementInfo.id}-${l.elementInfo.points[1]}-end)`:""},null,8,Ile),De(V("path",{class:"line-path",d:c.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,Fle),[[f,l.contextmenus]])],8,Cle))],36)],6)}}}),mF=Ue(_le,[["__scopeId","data-v-7ecafe01"]]),$0={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},Ele=8,bT={"&":"&","<":"<",">":">",'"':""","'":"'"};function ST(e,t){return typeof e=="number"?e+t:e}function cg(e){if(typeof e=="string"){const t=/^(\d+)\s*(.*)$/g.exec(e);return{value:t?+t[1]:0,unit:(t==null?void 0:t[2])||void 0}}return{value:Number(e)}}function A5(e){return String.fromCharCode(97+e%26)}const Ky=2221e-19;function Xle(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)}function y0(e,t,n){return t/n.range*e}function Wle(e,t){const n=Math.pow(10,t||Ele);return Math.round(e*n)/n}function Vle(e){if(e===1)return e;function t(a,s){return a%s===0?s:t(s,a%s)}function n(a){return a*a+1}let r=2,o=2,i;if(e%2===0)return 2;do r=n(r)%e,o=n(n(o))%e,i=t(Math.abs(r-o),e);while(i===1);return i}function Hy(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function Ule(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const o={high:t.high,low:t.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};o.valueRange=o.high-o.low,o.oom=Xle(o.valueRange),o.step=Math.pow(10,o.oom),o.min=Math.floor(o.low/o.step)*o.step,o.max=Math.ceil(o.high/o.step)*o.step,o.range=o.max-o.min,o.numberOfSteps=Math.round(o.range/o.step);const a=y0(e,o.step,o)=n)o.step=1;else if(r&&s=n)o.step=s;else{let d=0;for(;;){if(a&&y0(e,o.step,o)<=n)o.step*=2;else if(!a&&y0(e,o.step/2,o)>=n){if(o.step/=2,r&&o.step%1!==0){o.step*=2;break}}else break;if(d++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}o.step=Math.max(o.step,Ky);function c(d,h){return d===(d+=h)&&(d*=1+(h>0?Ky:-Ky)),d}let l=o.min,u=o.max;for(;l+o.step<=o.low;)l=c(l,o.step);for(;u-o.step>=o.high;)u=c(u,-o.step);o.min=l,o.max=u,o.range=o.max-o.min;const f=[];for(let d=o.min;d<=o.max;d=c(d,o.step)){const h=Wle(d);h!==f[f.length-1]&&f.push(h)}return o.values=f,o}function Yu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re;function tx(e,t){return Array.from({length:e},t?(n,r)=>t(r):()=>{})}const Yle=(e,t)=>e+(t||0),Qle=(e,t)=>tx(Math.max(...e.map(n=>n.length)),n=>t(...e.map(r=>r[n])));function $n(e,t){return e!==null&&typeof e=="object"&&Reflect.has(e,t)}function kh(e){return e!==null&&isFinite(e)}function vF(e){return!e&&e!==0}function gd(e){return kh(e)?Number(e):void 0}function Zle(e){return Array.isArray(e)?e.every(Array.isArray):!1}function gF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=0;e[n?"reduceRight":"reduce"]((o,i,a)=>t(i,r++,a),void 0)}function AF(e,t){const n=Array.isArray(e)?e[t]:$n(e,"data")?e.data[t]:null;return $n(n,"meta")?n.meta:void 0}function RF(e){return e==null||typeof e=="number"&&isNaN(e)}function Ble(e){return Array.isArray(e)&&e.every(t=>Array.isArray(t)||$n(t,"data"))}function Dle(e){return typeof e=="object"&&e!==null&&(Reflect.has(e,"x")||Reflect.has(e,"y"))}function R5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";return Dle(e)&&$n(e,t)?gd(e[t]):gd(e)}function nx(e,t,n){t={...t,...n?n==="x"?t.axisX:t.axisY:{}};const r={high:t.high===void 0?-Number.MAX_VALUE:+t.high,low:t.low===void 0?Number.MAX_VALUE:+t.low},o=t.high===void 0,i=t.low===void 0;function a(s){if(!RF(s))if(Array.isArray(s))for(let c=0;cr.high&&(r.high=c),i&&c0||(r.high=1),r.low=0)),r}function y5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o;const i={labels:(e.labels||[]).slice(),series:Gle(e.series,n,r)},a=i.labels.length;return Zle(i.series)?(o=Math.max(a,...i.series.map(s=>s.length)),i.series.forEach(s=>{s.push(...tx(Math.max(0,o-s.length)))})):o=i.series.length,i.labels.push(...tx(Math.max(0,o-a),()=>"")),t&&Kle(i),i}function Kle(e){var t;(t=e.labels)===null||t===void 0||t.reverse(),e.series.reverse();for(const n of e.series)$n(n,"data")?n.data.reverse():Array.isArray(n)&&n.reverse()}function Hle(e,t){let n,r;if(typeof e!="object"){const o=gd(e);t==="x"?n=o:r=o}else $n(e,"x")&&(n=gd(e.x)),$n(e,"y")&&(r=gd(e.y));if(!(n===void 0&&r===void 0))return{x:n,y:r}}function MT(e,t){if(!RF(e))return t?Hle(e,t):gd(e)}function rx(e,t){return Array.isArray(e)?e.map(n=>$n(n,"value")?MT(n.value,t):MT(n,t)):rx(e.data,t)}function Gle(e,t,n){if(Ble(e))return e.map(o=>rx(o,t));const r=rx(e,t);return n?r.map(o=>[o]):r}function zle(e,t,n){const r={increasingX:!1,fillHoles:!1,...n},o=[];let i=!0;for(let a=0;a=2&&e[a]<=e[a-2]&&(i=!0),i&&(o.push({pathCoordinates:[],valueData:[]}),i=!1),o[o.length-1].pathCoordinates.push(e[a],e[a+1]),o[o.length-1].valueData.push(t[a/2]));return o}function up(e){let t="";return e==null?e:(typeof e=="number"?t=""+e:typeof e=="object"?t=JSON.stringify({data:e}):t=String(e),Object.keys(bT).reduce((n,r)=>n.replaceAll(r,bT[r]),t))}class Jle{call(t,n){return this.svgElements.forEach(r=>Reflect.apply(r[t],r,n)),this}attr(){for(var t=arguments.length,n=new Array(t),r=0;r3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;const{easing:i,...a}=n,s={};let c,l;i&&(c=Array.isArray(i)?i:yF[i]),a.begin=ST(a.begin,"ms"),a.dur=ST(a.dur,"ms"),c&&(a.calcMode="spline",a.keySplines=c.join(" "),a.keyTimes="0;1"),r&&(a.fill="freeze",s[t]=a.from,e.attr(s),l=cg(a.begin||0).value,a.begin="indefinite");const u=e.elem("animate",{attributeName:t,...a});r&&setTimeout(()=>{try{u._node.beginElement()}catch{s[t]=a.to,e.attr(s),u.remove()}},l);const f=u.getNode();o&&f.addEventListener("beginEvent",()=>o.emit("animationBegin",{element:e,animate:f,params:n})),f.addEventListener("endEvent",()=>{o&&o.emit("animationEnd",{element:e,animate:f,params:n}),r&&(s[t]=a.to,e.attr(s),u.remove())})}class rc{attr(t,n){return typeof t=="string"?n?this._node.getAttributeNS(n,t):this._node.getAttribute(t):(Object.keys(t).forEach(r=>{if(t[r]!==void 0)if(r.indexOf(":")!==-1){const o=r.split(":");this._node.setAttributeNS($0[o[0]],r,String(t[r]))}else this._node.setAttribute(r,String(t[r]))}),this)}elem(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return new rc(t,n,r,this,o)}parent(){return this._node.parentNode instanceof SVGElement?new rc(this._node.parentNode):null}root(){let t=this._node;for(;t.nodeName!=="svg"&&t.parentElement;)t=t.parentElement;return new rc(t)}querySelector(t){const n=this._node.querySelector(t);return n?new rc(n):null}querySelectorAll(t){const n=this._node.querySelectorAll(t);return new Jle(n)}getNode(){return this._node}foreignObject(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;if(typeof t=="string"){const s=document.createElement("div");s.innerHTML=t,i=s.firstChild}else i=t;i instanceof Element&&i.setAttribute("xmlns",$0.xmlns);const a=this.elem("foreignObject",n,r,o);return a._node.appendChild(i),a}text(t){return this._node.appendChild(document.createTextNode(t)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var t;return(t=this._node.parentNode)===null||t===void 0||t.removeChild(this._node),this.parent()}replace(t){var n;return(n=this._node.parentNode)===null||n===void 0||n.replaceChild(t._node,this._node),t}append(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this}classes(){const t=this._node.getAttribute("class");return t?t.trim().split(/\s+/):[]}addClass(t){return this._node.setAttribute("class",this.classes().concat(t.trim().split(/\s+/)).filter(function(n,r,o){return o.indexOf(n)===r}).join(" ")),this}removeClass(t){const n=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter(r=>n.indexOf(r)===-1).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2?arguments[2]:void 0;return Object.keys(t).forEach(o=>{const i=t[o];Array.isArray(i)?i.forEach(a=>wT(this,o,a,!1,r)):wT(this,o,i,n,r)}),this}constructor(t,n,r,o,i=!1){t instanceof Element?this._node=t:(this._node=document.createElementNS($0.svg,t),t==="svg"&&this.attr({"xmlns:ct":$0.ct})),n&&this.attr(n),r&&this.addClass(r),o&&(i&&o._node.firstChild?o._node.insertBefore(this._node,o._node.firstChild):o._node.appendChild(this._node))}}rc.Easing=yF;function x5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"100%",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"100%",r=arguments.length>3?arguments[3]:void 0;Array.from(e.querySelectorAll("svg")).filter(i=>i.getAttributeNS($0.xmlns,"ct")).forEach(i=>e.removeChild(i));const o=new rc("svg").attr({width:t,height:n}).attr({style:"width: ".concat(t,"; height: ").concat(n,";")});return r&&o.addClass(r),e.appendChild(o.getNode()),o}function $le(e){return typeof e=="number"?{top:e,right:e,bottom:e,left:e}:e===void 0?{top:0,right:0,bottom:0,left:0}:{top:typeof e.top=="number"?e.top:0,right:typeof e.right=="number"?e.right:0,bottom:typeof e.bottom=="number"?e.bottom:0,left:typeof e.left=="number"?e.left:0}}function b5(e,t){var n,r,o,i;const a=!!(t.axisX||t.axisY),s=((n=t.axisY)===null||n===void 0?void 0:n.offset)||0,c=((r=t.axisX)===null||r===void 0?void 0:r.offset)||0,l=(o=t.axisY)===null||o===void 0?void 0:o.position,u=(i=t.axisX)===null||i===void 0?void 0:i.position;let f=e.width()||cg(t.width).value||0,d=e.height()||cg(t.height).value||0;const h=$le(t.chartPadding);f=Math.max(f,s+h.left+h.right),d=Math.max(d,c+h.top+h.bottom);const p={x1:0,x2:0,y1:0,y2:0,padding:h,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return a?(u==="start"?(p.y2=h.top+c,p.y1=Math.max(d-h.bottom,p.y2+1)):(p.y2=h.top,p.y1=Math.max(d-h.bottom-c,p.y2+1)),l==="start"?(p.x1=h.left+s,p.x2=Math.max(f-h.right,p.x1+1)):(p.x1=h.left,p.x2=Math.max(f-h.right-s,p.x1+1))):(p.x1=h.left,p.x2=Math.max(f-h.right,p.x1+1),p.y2=h.top,p.y1=Math.max(d-h.bottom,p.y2+1)),p}function jle(e,t,n,r,o,i,a,s){const c={["".concat(n.units.pos,"1")]:e,["".concat(n.units.pos,"2")]:e,["".concat(n.counterUnits.pos,"1")]:r,["".concat(n.counterUnits.pos,"2")]:r+o},l=i.elem("line",c,a.join(" "));s.emit("draw",{type:"grid",axis:n,index:t,group:i,element:l,...c})}function xF(e,t,n,r){const o=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);r.emit("draw",{type:"gridBackground",group:e,element:o})}function qle(e,t,n,r,o,i,a,s,c,l){const u={[o.units.pos]:e+a[o.units.pos],[o.counterUnits.pos]:a[o.counterUnits.pos],[o.units.len]:t,[o.counterUnits.len]:Math.max(0,i-10)},f=Math.round(u[o.units.len]),d=Math.round(u[o.counterUnits.len]),h=document.createElement("span");h.className=c.join(" "),h.style[o.units.len]=f+"px",h.style[o.counterUnits.len]=d+"px",h.textContent=String(r);const p=s.foreignObject(h,{style:"overflow: visible;",...u});l.emit("draw",{type:"label",axis:o,index:n,group:s,element:p,text:r,...u})}function LT(e,t,n){let r;const o=[];function i(s){const c=r;r=Yu({},e),t&&t.forEach(l=>{window.matchMedia(l[0]).matches&&(r=Yu(r,l[1]))}),n&&s&&n.emit("optionsChanged",{previousOptions:c,currentOptions:r})}function a(){o.forEach(s=>s.removeEventListener("change",i))}if(window.matchMedia)t&&t.forEach(s=>{const c=window.matchMedia(s[0]);c.addEventListener("change",i),o.push(c)});else throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return i(),{removeMediaQueryListeners:a,getCurrentOptions(){return r}}}const ox={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},ece={accuracy:3};function xm(e,t,n,r,o,i){const a={command:o?e.toLowerCase():e.toUpperCase(),...t,...i?{data:i}:{}};n.splice(r,0,a)}function Gy(e,t){e.forEach((n,r)=>{ox[n.command.toLowerCase()].forEach((o,i)=>{t(n,o,r,i,e)})})}class qs{static join(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;const o=new qs(n,r);for(let i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return xm("M",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}line(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return xm("L",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}curve(t,n,r,o,i,a){let s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,c=arguments.length>7?arguments[7]:void 0;return xm("C",{x1:+t,y1:+n,x2:+r,y2:+o,x:+i,y:+a},this.pathElements,this.pos++,s,c),this}arc(t,n,r,o,i,a,s){let c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l=arguments.length>8?arguments[8]:void 0;return xm("A",{rx:t,ry:n,xAr:r,lAf:o,sf:i,x:a,y:s},this.pathElements,this.pos++,c,l),this}parse(t){const n=t.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((o,i)=>(i.match(/[A-Za-z]/)&&o.push([]),o[o.length-1].push(i),o),[]);n[n.length-1][0].toUpperCase()==="Z"&&n.pop();const r=n.map(o=>{const i=o.shift(),a=ox[i.toLowerCase()];return{command:i,...a.reduce((s,c,l)=>(s[c]=+o[l],s),{})}});return this.pathElements.splice(this.pos,0,...r),this.pos+=r.length,this}stringify(){const t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((n,r)=>{const o=ox[r.command.toLowerCase()].map(i=>{const a=r[i];return this.options.accuracy?Math.round(a*t)/t:a});return n+r.command+o.join(",")},"")+(this.close?"Z":"")}scale(t,n){return Gy(this.pathElements,(r,o)=>{r[o]*=o[0]==="x"?t:n}),this}translate(t,n){return Gy(this.pathElements,(r,o)=>{r[o]+=o[0]==="x"?t:n}),this}transform(t){return Gy(this.pathElements,(n,r,o,i,a)=>{const s=t(n,r,o,i,a);(s||s===0)&&(n[r]=s)}),this}clone(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const n=new qs(t||this.close);return n.pos=this.pos,n.pathElements=this.pathElements.slice().map(r=>({...r})),n.options={...this.options},n}splitByCommand(t){const n=[new qs];return this.pathElements.forEach(r=>{r.command===t.toUpperCase()&&n[n.length-1].pathElements.length!==0&&n.push(new qs),n[n.length-1].pathElements.push(r)}),n}constructor(t=!1,n){this.close=t,this.pathElements=[],this.pos=0,this.options={...ece,...n}}}function ix(e){const t={fillHoles:!1,...e};return function(r,o){const i=new qs;let a=!0;for(let s=0;s1)return qs.join(i.map(a=>n(a.pathCoordinates,a.valueData)));{if(r=i[0].pathCoordinates,o=i[0].valueData,r.length<=4)return ix()(r,o);const a=[],s=[],c=r.length/2,l=[],u=[],f=[],d=[];for(let p=0;p0!=u[p]>0?l[p]=0:(l[p]=3*(d[p-1]+d[p])/((2*d[p]+d[p-1])/u[p-1]+(d[p]+2*d[p-1])/u[p]),isFinite(l[p])||(l[p]=0));const h=new qs().move(a[0],s[0],!1,o[0]);for(let p=0;pi(n)),r.forEach(i=>i(t,n))}constructor(){this.listeners=new Map,this.allListeners=new Set}}const zy=new WeakMap;class S5{update(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),n&&(this.options=Yu({},r?this.options:this.defaultOptions,n),!this.initializeTimeoutId)){var o;(o=this.optionsProvider)===null||o===void 0||o.removeMediaQueryListeners(),this.optionsProvider=LT(this.options,this.responsiveOptions,this.eventEmitter)}return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){if(this.initializeTimeoutId)window.clearTimeout(this.initializeTimeoutId);else{var t;window.removeEventListener("resize",this.resizeListener),(t=this.optionsProvider)===null||t===void 0||t.removeMediaQueryListeners()}return zy.delete(this.container),this}on(t,n){return this.eventEmitter.on(t,n),this}off(t,n){return this.eventEmitter.off(t,n),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=LT(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",()=>this.update()),this.options.plugins&&this.options.plugins.forEach(t=>{Array.isArray(t)?t[0](this,t[1]):t(this)}),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(t,n,r,o,i){this.data=n,this.defaultOptions=r,this.options=o,this.responsiveOptions=i,this.eventEmitter=new nce,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout(()=>this.initialize(),0);const a=typeof t=="string"?document.querySelector(t):t;if(!a)throw new Error("Target element is not found");this.container=a;const s=zy.get(a);s&&s.detach(),zy.set(a,this)}}const ko={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};class bF{createGridAndLabels(t,n,r,o){const i=this.units.pos==="x"?r.axisX:r.axisY,a=this.ticks.map((c,l)=>this.projectValue(c,l)),s=this.ticks.map(i.labelInterpolationFnc);a.forEach((c,l)=>{const u=s[l],f={x:0,y:0};let d;a[l+1]?d=a[l+1]-c:d=Math.max(this.axisLength-c,this.axisLength/this.ticks.length),!(u!==""&&vF(u))&&(this.units.pos==="x"?(c=this.chartRect.x1+c,f.x=r.axisX.labelOffset.x,r.axisX.position==="start"?f.y=this.chartRect.padding.top+r.axisX.labelOffset.y+5:f.y=this.chartRect.y1+r.axisX.labelOffset.y+5):(c=this.chartRect.y1-c,f.y=r.axisY.labelOffset.y-d,r.axisY.position==="start"?f.x=this.chartRect.padding.left+r.axisY.labelOffset.x:f.x=this.chartRect.x2+r.axisY.labelOffset.x+10),i.showGrid&&jle(c,l,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[r.classNames.grid,r.classNames[this.units.dir]],o),i.showLabel&&qle(c,d,l,u,this,i.offset,f,n,[r.classNames.label,r.classNames[this.units.dir],i.position==="start"?r.classNames[i.position]:r.classNames.end],o))})}constructor(t,n,r){this.units=t,this.chartRect=n,this.ticks=r,this.counterUnits=t===ko.x?ko.y:ko.x,this.axisLength=n[this.units.rectEnd]-n[this.units.rectStart],this.gridOffset=n[this.units.rectOffset]}}class ax extends bF{projectValue(t){const n=Number(R5(t,this.units.pos));return this.axisLength*(n-this.bounds.min)/this.bounds.range}constructor(t,n,r,o){const i=o.highLow||nx(n,o,t.pos),a=Ule(r[t.rectEnd]-r[t.rectStart],i,o.scaleMinSpace||20,o.onlyInteger),s={min:a.min,max:a.max};super(t,r,a.values),this.bounds=a,this.range=s}}class tv extends bF{projectValue(t,n){return this.stepLength*n}constructor(t,n,r,o){const i=o.ticks||[];super(t,r,i);const a=Math.max(1,i.length-(o.stretch?1:0));this.stepLength=this.axisLength/a,this.stretch=!!o.stretch}}function x0(e,t,n){var r;if($n(e,"name")&&e.name&&(!((r=t.series)===null||r===void 0)&&r[e.name])){const i=(t==null?void 0:t.series[e.name])[n];return i===void 0?t[n]:i}else return t[n]}const OT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:cp,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:cp,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class rce extends S5{createChart(t){const{data:n}=this,r=y5(n,t.reverseData,!0),o=x5(this.container,t.width,t.height,t.classNames.chart);this.svg=o;const i=o.elem("g").addClass(t.classNames.gridGroup),a=o.elem("g"),s=o.elem("g").addClass(t.classNames.labelGroup),c=b5(o,t);let l,u;t.axisX.type===void 0?l=new tv(ko.x,r.series,c,{...t.axisX,ticks:r.labels,stretch:t.fullWidth}):l=new t.axisX.type(ko.x,r.series,c,t.axisX),t.axisY.type===void 0?u=new ax(ko.y,r.series,c,{...t.axisY,high:kh(t.high)?t.high:t.axisY.high,low:kh(t.low)?t.low:t.axisY.low}):u=new t.axisY.type(ko.y,r.series,c,t.axisY),l.createGridAndLabels(i,s,t,this.eventEmitter),u.createGridAndLabels(i,s,t,this.eventEmitter),t.showGridBackground&&xF(i,c,t.classNames.gridBackground,this.eventEmitter),gF(n.series,(f,d)=>{const h=a.elem("g"),p=$n(f,"name")&&f.name,m=$n(f,"className")&&f.className,A=$n(f,"meta")?f.meta:void 0;p&&h.attr({"ct:series-name":p}),A&&h.attr({"ct:meta":up(A)}),h.addClass([t.classNames.series,m||"".concat(t.classNames.series,"-").concat(A5(d))].join(" "));const x=[],R=[];r.series[d].forEach((L,T)=>{const M={x:c.x1+l.projectValue(L,T,r.series[d]),y:c.y1-u.projectValue(L,T,r.series[d])};x.push(M.x,M.y),R.push({value:L,valueIndex:T,meta:AF(f,T)})});const y={lineSmooth:x0(f,t,"lineSmooth"),showPoint:x0(f,t,"showPoint"),showLine:x0(f,t,"showLine"),showArea:x0(f,t,"showArea"),areaBase:x0(f,t,"areaBase")};let g;typeof y.lineSmooth=="function"?g=y.lineSmooth:g=y.lineSmooth?tce():ix();const S=g(x,R);if(y.showPoint&&S.pathElements.forEach(L=>{const{data:T}=L,M=h.elem("line",{x1:L.x,y1:L.y,x2:L.x+.01,y2:L.y},t.classNames.point);if(T){let O,k;$n(T.value,"x")&&(O=T.value.x),$n(T.value,"y")&&(k=T.value.y),M.attr({"ct:value":[O,k].filter(kh).join(","),"ct:meta":up(T.meta)})}this.eventEmitter.emit("draw",{type:"point",value:T==null?void 0:T.value,index:(T==null?void 0:T.valueIndex)||0,meta:T==null?void 0:T.meta,series:f,seriesIndex:d,axisX:l,axisY:u,group:h,element:M,x:L.x,y:L.y,chartRect:c})}),y.showLine){const L=h.elem("path",{d:S.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.series[d],path:S.clone(),chartRect:c,index:d,series:f,seriesIndex:d,meta:A,axisX:l,axisY:u,group:h,element:L})}if(y.showArea&&u.range){const L=Math.max(Math.min(y.areaBase,u.range.max),u.range.min),T=c.y1-u.projectValue(L);S.splitByCommand("M").filter(M=>M.pathElements.length>1).map(M=>{const O=M.pathElements[0],k=M.pathElements[M.pathElements.length-1];return M.clone(!0).position(0).remove(1).move(O.x,T).line(O.x,O.y).position(M.pathElements.length+1).line(k.x,T)}).forEach(M=>{const O=h.elem("path",{d:M.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.series[d],path:M.clone(),series:f,seriesIndex:d,axisX:l,axisY:u,chartRect:c,index:d,group:h,element:O,meta:A})})}},t.reverseData),this.eventEmitter.emit("created",{chartRect:c,axisX:l,axisY:u,svg:o,options:t})}constructor(t,n,r,o){super(t,n,OT,Yu({},OT,r),o),this.data=n}}function oce(e){return Qle(e,function(){for(var t=arguments.length,n=new Array(t),r=0;r({x:o.x+($n(i,"x")?i.x:0),y:o.y+($n(i,"y")?i.y:0)}),{x:0,y:0})})}const TT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:cp,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:cp,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class ice extends S5{createChart(t){const{data:n}=this,r=y5(n,t.reverseData,t.horizontalBars?"x":"y",!0),o=x5(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:"")),i=t.stackBars&&t.stackMode!==!0&&r.series.length?nx([oce(r.series)],t,t.horizontalBars?"x":"y"):nx(r.series,t,t.horizontalBars?"x":"y");this.svg=o;const a=o.elem("g").addClass(t.classNames.gridGroup),s=o.elem("g"),c=o.elem("g").addClass(t.classNames.labelGroup);typeof t.high=="number"&&(i.high=t.high),typeof t.low=="number"&&(i.low=t.low);const l=b5(o,t);let u;const f=t.distributeSeries&&t.stackBars?r.labels.slice(0,1):r.labels;let d,h,p;t.horizontalBars?(t.axisX.type===void 0?u=h=new ax(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}):u=h=new t.axisX.type(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}),t.axisY.type===void 0?d=p=new tv(ko.y,r.series,l,{ticks:f}):d=p=new t.axisY.type(ko.y,r.series,l,t.axisY)):(t.axisX.type===void 0?d=h=new tv(ko.x,r.series,l,{ticks:f}):d=h=new t.axisX.type(ko.x,r.series,l,t.axisX),t.axisY.type===void 0?u=p=new ax(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}):u=p=new t.axisY.type(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}));const m=t.horizontalBars?l.x1+u.projectValue(0):l.y1-u.projectValue(0),A=t.stackMode==="accumulate",x=t.stackMode==="accumulate-relative",R=[],y=[];let g=R;d.createGridAndLabels(a,c,t,this.eventEmitter),u.createGridAndLabels(a,c,t,this.eventEmitter),t.showGridBackground&&xF(a,l,t.classNames.gridBackground,this.eventEmitter),gF(n.series,(S,L)=>{const T=L-(n.series.length-1)/2;let M;t.distributeSeries&&!t.stackBars?M=d.axisLength/r.series.length/2:t.distributeSeries&&t.stackBars?M=d.axisLength/2:M=d.axisLength/r.series[L].length/2;const O=s.elem("g"),k=$n(S,"name")&&S.name,F=$n(S,"className")&&S.className,N=$n(S,"meta")?S.meta:void 0;k&&O.attr({"ct:series-name":k}),N&&O.attr({"ct:meta":up(N)}),O.addClass([t.classNames.series,F||"".concat(t.classNames.series,"-").concat(A5(L))].join(" ")),r.series[L].forEach((E,P)=>{const _=$n(E,"x")&&E.x,I=$n(E,"y")&&E.y;let W;t.distributeSeries&&!t.stackBars?W=L:t.distributeSeries&&t.stackBars?W=0:W=P;let D;t.horizontalBars?D={x:l.x1+u.projectValue(_||0,P,r.series[L]),y:l.y1-d.projectValue(I||0,W,r.series[L])}:D={x:l.x1+d.projectValue(_||0,W,r.series[L]),y:l.y1-u.projectValue(I||0,P,r.series[L])},d instanceof tv&&(d.stretch||(D[d.units.pos]+=M*(t.horizontalBars?-1:1)),D[d.units.pos]+=t.stackBars||t.distributeSeries?0:T*t.seriesBarDistance*(t.horizontalBars?-1:1)),x&&(g=I>=0||_>=0?R:y);const z=g[P]||m;if(g[P]=z-(m-D[d.counterUnits.pos]),E===void 0)return;const ae={["".concat(d.units.pos,"1")]:D[d.units.pos],["".concat(d.units.pos,"2")]:D[d.units.pos]};t.stackBars&&(A||x||!t.stackMode)?(ae["".concat(d.counterUnits.pos,"1")]=z,ae["".concat(d.counterUnits.pos,"2")]=g[P]):(ae["".concat(d.counterUnits.pos,"1")]=m,ae["".concat(d.counterUnits.pos,"2")]=D[d.counterUnits.pos]),ae.x1=Math.min(Math.max(ae.x1,l.x1),l.x2),ae.x2=Math.min(Math.max(ae.x2,l.x1),l.x2),ae.y1=Math.min(Math.max(ae.y1,l.y2),l.y1),ae.y2=Math.min(Math.max(ae.y2,l.y2),l.y1);const U=AF(S,P),Z=O.elem("line",ae,t.classNames.bar).attr({"ct:value":[_,I].filter(kh).join(","),"ct:meta":up(U)});this.eventEmitter.emit("draw",{type:"bar",value:E,index:P,meta:U,series:S,seriesIndex:L,axisX:h,axisY:p,chartRect:l,group:O,element:Z,...ae})})},t.reverseData),this.eventEmitter.emit("created",{chartRect:l,axisX:h,axisY:p,svg:o,options:t})}constructor(t,n,r,o){super(t,n,TT,Yu({},TT,r),o),this.data=n}}const kT={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:cp,labelDirection:"neutral",ignoreEmptyValues:!1};function ace(e,t,n){const r=t.x>e.x;return r&&n==="explode"||!r&&n==="implode"?"start":r&&n==="implode"||!r&&n==="explode"?"end":"middle"}class sce extends S5{createChart(t){const{data:n}=this,r=y5(n),o=[];let i,a,s=t.startAngle;const c=x5(this.container,t.width,t.height,t.donut?t.classNames.chartDonut:t.classNames.chartPie);this.svg=c;const l=b5(c,t);let u=Math.min(l.width()/2,l.height()/2);const f=t.total||r.series.reduce(Yle,0),d=cg(t.donutWidth);d.unit==="%"&&(d.value*=u/100),u-=t.donut?d.value/2:0,t.labelPosition==="outside"||t.donut?a=u:t.labelPosition==="center"?a=0:a=u/2,t.labelOffset&&(a+=t.labelOffset);const h={x:l.x1+l.width()/2,y:l.y2+l.height()/2},p=n.series.filter(m=>$n(m,"value")?m.value!==0:m!==0).length===1;n.series.forEach((m,A)=>o[A]=c.elem("g")),t.showLabel&&(i=c.elem("g")),n.series.forEach((m,A)=>{var x,R;if(r.series[A]===0&&t.ignoreEmptyValues)return;const y=$n(m,"name")&&m.name,g=$n(m,"className")&&m.className,S=$n(m,"meta")?m.meta:void 0;y&&o[A].attr({"ct:series-name":y}),o[A].addClass([(x=t.classNames)===null||x===void 0?void 0:x.series,g||"".concat((R=t.classNames)===null||R===void 0?void 0:R.series,"-").concat(A5(A))].join(" "));let L=f>0?s+r.series[A]/f*360:0;const T=Math.max(0,s-(A===0||p?0:.2));L-T>=359.99&&(L=T+359.99);const M=Hy(h.x,h.y,u,T),O=Hy(h.x,h.y,u,L),k=new qs(!t.donut).move(O.x,O.y).arc(u,u,0,+(L-s>180),0,M.x,M.y);t.donut||k.line(h.x,h.y);const F=o[A].elem("path",{d:k.stringify()},t.donut?t.classNames.sliceDonut:t.classNames.slicePie);if(F.attr({"ct:value":r.series[A],"ct:meta":up(S)}),t.donut&&F.attr({style:"stroke-width: "+d.value+"px"}),this.eventEmitter.emit("draw",{type:"slice",value:r.series[A],totalDataSum:f,index:A,meta:S,series:m,group:o[A],element:F,path:k.clone(),center:h,radius:u,startAngle:s,endAngle:L,chartRect:l}),t.showLabel){let N;n.series.length===1?N={x:h.x,y:h.y}:N=Hy(h.x,h.y,a,s+(L-s)/2);let E;r.labels&&!vF(r.labels[A])?E=r.labels[A]:E=r.series[A];const P=t.labelInterpolationFnc(E,A);if(P||P===0){const _=i.elem("text",{dx:N.x,dy:N.y,"text-anchor":ace(h,N,t.labelDirection)},t.classNames.label).text(String(P));this.eventEmitter.emit("draw",{type:"label",index:A,group:i,element:_,text:""+P,chartRect:l,series:m,meta:S,...N})}}s=L}),this.eventEmitter.emit("created",{chartRect:l,svg:c,options:t})}constructor(t,n,r,o){super(t,n,kT,Yu({},kT,r),o),this.data=n}}const lce=Fe({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColor:{},legends:{},options:{},gridColor:{},legend:{}},setup(e){const t=e,n=pe(),r=jo(tf)||pe(1);let o;const i=Me(()=>t.legend?t.height-20:t.height),a=()=>({...t.data,series:t.data.series[0]}),s=()=>({...t.options||{},width:t.width*r.value,height:i.value*r.value}),c=()=>{if(!n.value)return;const h=s();t.type==="bar"&&(o=new ice(n.value,t.data,h)),t.type==="line"&&(o=new rce(n.value,t.data,h)),t.type==="pie"&&(o=new sce(n.value,a(),h))};Tt([()=>t.width,()=>t.height,()=>t.data,()=>t.options,r],()=>{if(!o){c();return}const h=s(),p=t.type==="pie"?a():t.data;o.update(p,h)}),Gt(c);const u=Me(()=>{let h=[];if(t.themeColor.length>=10)h=t.themeColor;else if(t.themeColor.length===1)h=ot(t.themeColor[0]).analogous(10).map(p=>p.toRgbString());else{const p=t.themeColor.length,m=ot(t.themeColor[p-1]).analogous(11-p).map(A=>A.toRgbString());h=[...t.themeColor.slice(0,p-1),...m]}return h}),f=()=>{if(n.value)for(let h=0;h<10;h++)n.value.style.setProperty(`--theme-color-${h+1}`,u.value[h])};Tt(u,f),Gt(f);const d=()=>{n.value&&t.gridColor&&n.value.style.setProperty("--grid-color",t.gridColor)};return Tt(()=>t.gridColor,d),Gt(d),(h,p)=>(Y(),ee("div",{class:"chart",style:Le({flexDirection:h.legend==="top"?"column-reverse":"column"})},[V("div",{class:"chart-content",ref_key:"chartRef",ref:n,style:Le({width:h.width+"px",height:i.value+"px",transform:`scale(${1/H(r)})`})},null,4),h.legend?(Y(),ee("div",{key:0,class:"legends",style:Le({transform:`scale(${1/H(r)})`})},[(Y(!0),ee(Ve,null,it(h.legends,(m,A)=>(Y(),ee("div",{class:"legend",key:A,style:Le({color:h.gridColor})},[V("div",{class:"block",style:Le({backgroundColor:u.value[A]})},null,4),We(" "+gt(m),1)],4))),128))],4)):Be("",!0)],4))}}),SF=Ue(lce,[["__scopeId","data-v-786c4a79"]]),cce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{Zr.emit(Wr.OPEN_CHART_DATA_EDITOR)};return(o,i)=>{const a=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-chart",{lock:o.elementInfo.lock}]),style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",style:Le({backgroundColor:o.elementInfo.fill}),onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[w(l2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),w(SF,{width:o.elementInfo.width,height:o.elementInfo.height,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||""},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend"])],36)),[[a,o.contextmenus]])],4)],6)}}}),MF=Ue(cce,[["__scopeId","data-v-e98d2ede"]]),wF=e=>{if(!e)return{};const{bold:t,em:n,underline:r,strikethrough:o,color:i,backcolor:a,fontsize:s,fontname:c,align:l}=e;let u=`${r?"underline":""} ${o?"line-through":""}`;return u===" "&&(u="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:u,color:i||"#000",backgroundColor:a||"",fontSize:s||"14px",fontFamily:c||"微软雅黑",textAlign:l||"left"}},LF=e=>e.replace(/\n/g,"
    ").replace(/ /g," "),OF=e=>({hideCells:Me(()=>{const n=[];for(let r=0;r1||a.rowspan>1)for(let s=r;s{const t=pe(["",""]);return Tt(()=>e.value,()=>{e.value&&(t.value=zP(e.value.color))},{immediate:!0}),{subThemeColor:t}},uce=["innerHTML"],fce=Fe({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,r=t,o=pe(),i=pe(""),a=pe(!1);Tt(()=>n.value,()=>{a.value||(i.value=n.value,o.value&&(o.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!o.value)return;const u=o.value.innerHTML;r("updateValue",u)},c=()=>{a.value=!0,o.value&&(o.value.onpaste=u=>{if(u.preventDefault(),!u.clipboardData)return;const f=u.clipboardData.items[0];f&&f.kind==="string"&&f.type==="text/plain"&&f.getAsString(d=>{if(typeof Ob(d)=="object")return;const p=GP(d);if(p){r("insertExcelData",p),o.value&&(o.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)})})},l=()=>{a.value=!1,o.value&&(o.value.onpaste=null)};return Vd(()=>{o.value&&(o.value.onpaste=null)}),(u,f)=>(Y(),ee("div",{class:"custom-textarea",ref_key:"textareaRef",ref:o,contenteditable:!0,onFocus:f[0]||(f[0]=d=>c()),onBlur:f[1]||(f[1]=d=>l()),onInput:f[2]||(f[2]=d=>s()),innerHTML:i.value},null,40,uce))}}),dce=Ue(fce,[["__scopeId","data-v-cfadb975"]]),hce={key:0,class:"handler"},pce=["onMousedown"],mce=["width"],vce=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],gce=["innerHTML"],Ace=Fe({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:o}=Xe(ft()),i=pe(!1),a=pe([]),s=pe([]),c=Me({get(){return n.data},set(q){r("change",q)}}),l=Me(()=>n.theme),{subThemeColor:u}=TF(l),f=pe([]),d=Me(()=>f.value.reduce((q,oe)=>q+oe));Tt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(q=>q*n.width)},{immediate:!0});const h=()=>{a.value=[],s.value=[]};Tt(()=>n.editable,()=>{n.editable||h()});const p=Me(()=>{const q=[];for(let oe=1;oeme+ve);q.push(he)}return q}),m=Me(()=>n.data),{hideCells:A}=OF(m),x=Me(()=>{if(!a.value.length)return[];const[q,oe]=a.value;if(!s.value.length)return[`${q}_${oe}`];const[he,me]=s.value;if(q===he&&oe===me)return[`${q}_${oe}`];const ve=[],J=Math.min(q,he),ue=Math.min(oe,me),X=Math.max(q,he),te=Math.max(oe,me);for(let le=0;le=J&&le<=X&&j>=ue&&j<=te&&ve.push(`${le}_${j}`)}return ve});Tt(x,(q,oe)=>{_n.isEqual(q,oe)||r("changeSelectedCells",x.value)});const R=Me(()=>x.value.length>1?null:x.value[0]),y=()=>i.value=!1,g=(q,oe,he)=>{q.button===0&&(s.value=[],i.value=!0,a.value=[oe,he])},S=(q,oe)=>{i.value&&(s.value=[q,oe])};Gt(()=>{document.addEventListener("mouseup",y)}),On(()=>{document.removeEventListener("mouseup",y)});const L=(q,oe)=>A.value.includes(`${q}_${oe}`),T=q=>{const oe=c.value.length-1;a.value=[0,q],s.value=[oe,q]},M=q=>{const oe=c.value[q].length-1;a.value=[q,0],s.value=[q,oe]},O=()=>{const q=c.value.length-1,oe=c.value[q].length-1;a.value=[0,0],s.value=[q,oe]},k=q=>{const oe=JSON.parse(JSON.stringify(c.value)),he=c.value[q],me=[];for(let ve=0;ve=0;J--)if(!L(J,ve)){oe[J][ve].rowspan=oe[J][ve].rowspan-1;break}oe.splice(q,1),c.value=oe},F=q=>{const oe=JSON.parse(JSON.stringify(c.value)),he=[];for(let me=0;me=0;ve--)if(!L(me,ve)){oe[me][ve].colspan=oe[me][ve].colspan-1;break}c.value=oe.map(me=>(me.splice(q,1),me)),f.value.splice(q,1),r("changeColWidths",f.value)},N=q=>{const oe=JSON.parse(JSON.stringify(c.value)),he=[];for(let me=0;me{c.value=c.value.map(oe=>{const he={colspan:1,rowspan:1,text:"",id:pn(10)};return oe.splice(q,0,he),oe}),f.value.splice(q,0,100),r("changeColWidths",f.value)},P=(q,oe)=>{let he=JSON.parse(JSON.stringify(c.value));const me={colspan:1,rowspan:1,text:""};if(q){const ve=[];for(let J=0;J{const J=[];for(let ue=0;ue{const[q,oe]=a.value,[he,me]=s.value,ve=Math.min(q,he),J=Math.min(oe,me),ue=Math.max(q,he),X=Math.max(oe,me),te=JSON.parse(JSON.stringify(c.value));te[ve][J].rowspan=ue-ve+1,te[ve][J].colspan=X-J+1,c.value=te,h()},I=(q,oe)=>{const he=JSON.parse(JSON.stringify(c.value));he[q][oe].rowspan=1,he[q][oe].colspan=1,c.value=he,h()},W=(q,oe)=>{h();let he=!0;const me=f.value[oe],ve=q.pageX,J=50;document.onmousemove=ue=>{if(!he)return;const X=(ue.pageX-ve)/o.value,te=me+X{he=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},D=()=>{const q=JSON.parse(JSON.stringify(c.value));for(let oe=0;oe{const q=(ve,J)=>c.value[ve]?c.value[ve][J]?L(ve,J)?q(ve,J+1):[ve,J]:q(ve+1,0):null;s.value=[];const oe=a.value[0],he=a.value[1]+1,me=q(oe,he);me?a.value=me:(N(oe+1),a.value=[oe+1,0]),Vr(()=>{const ve=document.querySelector(".cell-text.active");ve&&ve.focus()})},ae=q=>{if(!n.editable||!x.value.length)return;const oe=q.key.toUpperCase();if(x.value.length<2){if(oe===yt.TAB&&(q.preventDefault(),z()),q.ctrlKey&&oe===yt.UP){q.preventDefault();const he=+x.value[0].split("_")[0];N(he)}if(q.ctrlKey&&oe===yt.DOWN){q.preventDefault();const he=+x.value[0].split("_")[0];N(he+1)}if(q.ctrlKey&&oe===yt.LEFT){q.preventDefault();const he=+x.value[0].split("_")[1];E(he)}if(q.ctrlKey&&oe===yt.RIGHT){q.preventDefault();const he=+x.value[0].split("_")[1];E(he+1)}}else oe===yt.DELETE&&D()};Gt(()=>{document.addEventListener("keydown",ae)}),On(()=>{document.removeEventListener("keydown",ae)});const U=_n.debounce(function(q,oe,he){c.value[oe][he].text=q,r("change",c.value)},300,{trailing:!0}),Z=(q,oe,he)=>{const me=q.length,ve=q[0].length;let J=0,ue=0;oe+me>c.value.length&&(J=oe+me-c.value.length),he+ve>c.value[0].length&&(ue=he+ve-c.value[0].length),(J||ue)&&P(J,ue),Vr(()=>{for(let X=0;X{const q=[];for(let oe=0;oe{const q=B(),oe=q.length>1,he=q[0].length>1;return{canDeleteRow:oe,canDeleteCol:he}},Q=(q,oe)=>{const he=x.value.length>1,me=c.value[q][oe],ve=he,J=!he&&(me.rowspan>1||me.colspan>1);return{canMerge:ve,canSplit:J}},ie=q=>{const oe=q.dataset.cellIndex,he=+oe.split("_")[0],me=+oe.split("_")[1];x.value.includes(`${he}_${me}`)||(a.value=[he,me],s.value=[]);const{canMerge:ve,canSplit:J}=Q(he,me),{canDeleteRow:ue,canDeleteCol:X}=G();return[{text:"插入列",children:[{text:"到左侧",handler:()=>E(me)},{text:"到右侧",handler:()=>E(me+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>N(he)},{text:"到下方",handler:()=>N(he+1)}]},{text:"删除列",disable:!X,handler:()=>F(me)},{text:"删除行",disable:!ue,handler:()=>k(he)},{divider:!0},{text:"合并单元格",disable:!ve,handler:_},{text:"取消合并单元格",disable:!J,handler:()=>I(he,me)},{divider:!0},{text:"选中当前列",handler:()=>T(me)},{text:"选中当前行",handler:()=>M(he)},{text:"选中全部单元格",handler:O}]};return(q,oe)=>{var me,ve,J,ue,X;const he=Mn("contextmenu");return Y(),ee("div",{class:"editable-table",style:Le({width:d.value+"px"})},[q.editable?(Y(),ee("div",hce,[(Y(!0),ee(Ve,null,it(p.value,(te,le)=>(Y(),ee("div",{class:"drag-line",key:le,style:Le({left:te+"px"}),onMousedown:$=>W($,le)},null,44,pce))),128))])):Be("",!0),V("table",{class:$e({theme:l.value,"row-header":(me=l.value)==null?void 0:me.rowHeader,"row-footer":(ve=l.value)==null?void 0:ve.rowFooter,"col-header":(J=l.value)==null?void 0:J.colHeader,"col-footer":(ue=l.value)==null?void 0:ue.colFooter}),style:Le(`--themeColor: ${(X=l.value)==null?void 0:X.color}; --subThemeColor1: ${H(u)[0]}; --subThemeColor2: ${H(u)[1]}`)},[V("colgroup",null,[(Y(!0),ee(Ve,null,it(f.value,(te,le)=>(Y(),ee("col",{span:"1",key:le,width:te},null,8,mce))),128))]),V("tbody",null,[(Y(!0),ee(Ve,null,it(c.value,(te,le)=>(Y(),ee("tr",{key:le,style:Le({height:q.cellMinHeight+"px"})},[(Y(!0),ee(Ve,null,it(te,($,j)=>De((Y(),ee("td",{class:$e(["cell",{selected:x.value.includes(`${le}_${j}`)&&x.value.length>1,active:R.value===`${le}_${j}`}]),style:Le({borderStyle:q.outline.style,borderColor:q.outline.color,borderWidth:q.outline.width+"px",...H(wF)($.style)}),key:$.id,rowspan:$.rowspan,colspan:$.colspan,"data-cell-index":`${le}_${j}`,onMousedown:se=>g(se,le,j),onMouseenter:se=>S(le,j)},[R.value===`${le}_${j}`?(Y(),we(dce,{key:0,class:$e(["cell-text",{active:R.value===`${le}_${j}`}]),style:Le({minHeight:q.cellMinHeight-4+"px"}),value:$.text,onUpdateValue:se=>H(U)(se,le,j),onInsertExcelData:se=>Z(se,le,j)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(Y(),ee("div",{key:1,class:"cell-text",style:Le({minHeight:q.cellMinHeight-4+"px"}),innerHTML:H(LF)($.text)},null,12,gce))],46,vce)),[[il,!H(A).includes(`${le}_${j}`)],[he,se=>ie(se)]])),128))],4))),128))])],6)],4)}}}),Rce=Ue(Ace,[["__scopeId","data-v-d040a5e0"]]),yce={class:"element-content"},xce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{canvasScale:o,handleElementId:i,isScaling:a}=Xe(n),s=pe(),{addHistorySnapshot:c}=zt(),l=R=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo))},u=pe(!1);Tt(i,()=>{i.value!==t.elementInfo.id&&(u.value=!1)}),Tt(u,()=>{n.setDisableHotkeysState(u.value)});const f=()=>{t.elementInfo.lock||(u.value=!0)},d=pe(-1);Tt(a,()=>{i.value===t.elementInfo.id&&(a.value&&(u.value=!1),!a.value&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1))});const h=R=>{const y=R[0].contentRect;if(!s.value)return;const g=y.height;t.elementInfo.height!==g&&(a.value?d.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),On(()=>{s.value&&p.unobserve(s.value)});const m=R=>{r.updateElement({id:t.elementInfo.id,props:{data:R}}),c()},A=R=>{const y=R.reduce((S,L)=>S+L),g=R.map(S=>S/y);r.updateElement({id:t.elementInfo.id,props:{width:y,colWidths:g}}),c()},x=R=>{Vr(()=>n.setSelectedTableCells(R))};return(R,y)=>{const g=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-table",{lock:R.elementInfo.lock}]),ref_key:"elementRef",ref:s,style:Le({top:R.elementInfo.top+"px",left:R.elementInfo.left+"px",width:R.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${R.elementInfo.rotate}deg)`})},[De((Y(),ee("div",yce,[w(Rce,{onMousedown:y[0]||(y[0]=Wt(()=>{},["stop"])),data:R.elementInfo.data,width:R.elementInfo.width,cellMinHeight:R.elementInfo.cellMinHeight,colWidths:R.elementInfo.colWidths,outline:R.elementInfo.outline,theme:R.elementInfo.theme,editable:u.value,onChange:y[1]||(y[1]=S=>m(S)),onChangeColWidths:y[2]||(y[2]=S=>A(S)),onChangeSelectedCells:y[3]||(y[3]=S=>x(S))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!u.value||R.elementInfo.lock?(Y(),ee("div",{key:0,class:$e(["table-mask",{lock:R.elementInfo.lock}]),onDblclick:y[4]||(y[4]=S=>f()),onMousedown:y[5]||(y[5]=S=>l(S)),onTouchstart:y[6]||(y[6]=S=>l(S))},[H(i)===R.elementInfo.id?(Y(),ee("div",{key:0,class:"mask-tip",style:Le({transform:`scale(${1/H(o)})`})},"双击编辑",4)):Be("",!0)],34)):Be("",!0)])),[[g,R.contextmenus]])],4)],6)}}}),kF=Ue(xce,[["__scopeId","data-v-7795910a"]]),bce=["width","height","stroke","stroke-width"],Sce=["transform"],Mce=["d"],wce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{Zr.emit(Wr.OPEN_LATEX_EDITOR)};return(o,i)=>{const a=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-latex",{lock:o.elementInfo.lock}]),style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[(Y(),ee("svg",{overflow:"visible",width:o.elementInfo.width,height:o.elementInfo.height,stroke:o.elementInfo.color,"stroke-width":o.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${o.elementInfo.width/o.elementInfo.viewBox[0]}, ${o.elementInfo.height/o.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:o.elementInfo.path},null,8,Mce)],8,Sce)],8,bce))],32)),[[a,o.contextmenus]])],4)],6)}}}),NF=Ue(wce,[["__scopeId","data-v-b73586f6"]]),Lce=(e,t)=>{Gt(()=>{if(!t.value)return;let n="normal";if(/m3u8(#|\?|$)/i.exec(e)?n="hls":/.flv(#|\?|$)/i.exec(e)&&(n="flv"),t.value&&n==="hls"&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),n==="hls"){const r=window.Hls;if(r&&r.isSupported()){const o=new r;o.loadSource(e),o.attachMedia(t.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const o=r.createPlayer({type:"flv",url:e});o.attachMediaElement(t.value),o.load()}}})},M5=e=>(on("data-v-597c0901"),e=e(),an(),e),Oce={key:0,class:"load-error"},Tce=["src","autoplay","poster"],kce={class:"bezel"},Nce=M5(()=>V("div",{class:"controller-mask"},null,-1)),Pce={class:"controller"},Cce={class:"icons icons-left"},Ice={class:"icon-content"},Fce={class:"volume"},_ce={class:"icon-content"},Ece=M5(()=>V("span",{class:"thumb"},null,-1)),Xce=[Ece],Wce={class:"time"},Vce={class:"ptime"},Uce={class:"dtime"},Yce={class:"icons icons-right"},Qce={class:"speed"},Zce={class:"icon speed-icon"},Bce=["onClick"],Dce={class:"icon-content"},Kce={class:"bar"},Hce=M5(()=>V("span",{class:"thumb"},null,-1)),Gce=[Hce],zce=Fe({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,n=(X=0)=>{if(X===0||isNaN(X))return"00:00";const te=se=>se<10?"0"+se:""+se,le=Math.floor(X/3600),$=Math.floor((X-le*3600)/60),j=Math.floor(X-le*3600-$*60);return(le>0?[le,$,j]:[$,j]).map(te).join(":")},r=X=>X.getBoundingClientRect().left,o=pe(),i=pe(),a=pe(),s=pe(.5),c=pe(!0),l=pe(0),u=pe(0),f=pe(0),d=pe(!1),h=pe(!1),p=pe(1),m=pe(!1),A=pe("00:00"),x=pe("0"),R=Me(()=>n(l.value)),y=Me(()=>n(u.value)),g=Me(()=>l.value/u.value*100+"%"),S=Me(()=>f.value/u.value*100+"%"),L=Me(()=>s.value*100+"%"),T=pe(!1),M=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],O=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,u.value),o.value.currentTime=X,l.value=X)},k=()=>{o.value&&(c.value=!1,o.value.play(),h.value=!0)},F=()=>{o.value&&(c.value=!0,o.value.pause(),h.value=!0)},N=()=>{c.value?k():F()},E=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,1),o.value.volume=X,s.value=X,o.value.muted&&X!==0&&(o.value.muted=!1))},P=X=>{o.value&&(o.value.playbackRate=X),p.value=X},_=()=>{var X;u.value=((X=o.value)==null?void 0:X.duration)||0},I=()=>{var X;l.value=((X=o.value)==null?void 0:X.currentTime)||0},W=()=>{d.value?(O(0),k()):F()},D=()=>{var X;f.value=(X=o.value)!=null&&X.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},z=pe(!1),ae=()=>z.value=!0,U=X=>{if(!o.value||!i.value)return;let le=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;le=Math.max(le,0),le=Math.min(le,1);const $=le*u.value;o.value.currentTime=$,l.value=$},Z=X=>{if(!o.value||!i.value)return;let le=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;le=Math.max(le,0),le=Math.min(le,1);const $=le*u.value;o.value.currentTime=$,l.value=$,document.removeEventListener("mousemove",U),document.removeEventListener("touchmove",U),document.removeEventListener("mouseup",Z),document.removeEventListener("touchend",Z)},B=()=>{document.addEventListener("mousemove",U),document.addEventListener("touchmove",U),document.addEventListener("mouseup",Z),document.addEventListener("touchend",Z)},G=X=>{if(!a.value)return;const le=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(a.value))/45;E(le)},Q=()=>{document.removeEventListener("mousemove",G),document.removeEventListener("touchmove",G),document.removeEventListener("mouseup",Q),document.removeEventListener("touchend",Q)},ie=()=>{document.addEventListener("mousemove",G),document.addEventListener("touchmove",G),document.addEventListener("mouseup",Q),document.addEventListener("touchend",Q)},q=X=>{if(!a.value)return;const te=(X.clientX-r(a.value))/45;E(te)},oe=X=>{if(u.value&&i.value){const te=i.value.getBoundingClientRect().left,le=X.clientX-te;if(le<0||le>i.value.offsetWidth)return;const $=u.value*(le/i.value.offsetWidth);x.value=`${le-($>=3600?25:20)}px`,A.value=n($),m.value=!0}},he=()=>{o.value&&(o.value.muted?(o.value.muted=!1,E(.5)):(o.value.muted=!0,E(0)))},me=()=>{d.value=!d.value},ve=pe(-1),J=pe(!1),ue=()=>{J.value=!1,clearTimeout(ve.value),ve.value=setTimeout(()=>{var X;(X=o.value)!=null&&X.played.length&&(J.value=!0)},3e3)};return Lce(t.src,o),(X,te)=>{const le=xe("IconPause"),$=xe("IconPlayOne"),j=xe("IconVolumeMute"),se=xe("IconVolumeNotice"),ge=xe("IconVolumeSmall");return Y(),ee("div",{class:$e(["video-player",{"hide-controller":J.value}]),style:Le({width:X.width*X.scale+"px",height:X.height*X.scale+"px",transform:`scale(${1/X.scale})`}),onMousemove:te[22]||(te[22]=ce=>ue()),onClick:te[23]||(te[23]=ce=>ue())},[V("div",{class:"video-wrap",onClick:te[8]||(te[8]=ce=>N())},[z.value?(Y(),ee("div",Oce,"视频加载失败")):Be("",!0),V("video",{class:"video",ref_key:"videoRef",ref:o,src:X.src,autoplay:X.autoplay,poster:X.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:te[0]||(te[0]=ce=>_()),onTimeupdate:te[1]||(te[1]=ce=>I()),onEnded:te[2]||(te[2]=ce=>W()),onProgress:te[3]||(te[3]=ce=>D()),onPlay:te[4]||(te[4]=ce=>{ue(),c.value=!1}),onPause:te[5]||(te[5]=ce=>ue()),onError:te[6]||(te[6]=ce=>ae())},null,40,Tce),V("div",kce,[V("span",{class:$e(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:te[7]||(te[7]=ce=>h.value=!1)},[c.value?(Y(),we(le,{key:0})):(Y(),we($,{key:1}))],34)])]),Nce,V("div",Pce,[V("div",Cce,[V("div",{class:"icon play-icon",onClick:te[9]||(te[9]=ce=>N())},[V("span",Ice,[c.value?(Y(),we($,{key:0})):(Y(),we(le,{key:1}))])]),V("div",Fce,[V("div",{class:"icon volume-icon",onClick:te[10]||(te[10]=ce=>he())},[V("span",_ce,[s.value===0?(Y(),we(j,{key:0})):s.value===1?(Y(),we(se,{key:1})):(Y(),we(ge,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:te[11]||(te[11]=ce=>ie()),onTouchstart:te[12]||(te[12]=ce=>ie()),onClick:te[13]||(te[13]=ce=>q(ce))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:a},[V("div",{class:"volume-bar-inner",style:Le({width:L.value})},Xce,4)],512)],32)]),V("span",Wce,[V("span",Vce,gt(R.value),1),We(" / "),V("span",Uce,gt(y.value),1)])]),V("div",Yce,[V("div",Qce,[V("div",Zce,[V("span",{class:"icon-content",onClick:te[14]||(te[14]=ce=>T.value=!T.value)},gt(p.value===1?"倍速":p.value+"x"),1),T.value?(Y(),ee("div",{key:0,class:"speed-menu",onMouseleave:te[15]||(te[15]=ce=>T.value=!1)},[(Y(),ee(Ve,null,it(M,ce=>V("div",{class:$e(["speed-menu-item",{active:ce.value===p.value}]),key:ce.label,onClick:Ae=>P(ce.value)},gt(ce.label),11,Bce)),64))],32)):Be("",!0)])]),V("div",{class:"loop",onClick:te[16]||(te[16]=ce=>me())},[V("div",{class:$e(["icon loop-icon",{active:d.value}])},[V("span",Dce,"循环"+gt(d.value?"开":"关"),1)],2)])]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:i,onMousedown:te[17]||(te[17]=ce=>B()),onTouchstart:te[18]||(te[18]=ce=>B()),onMousemove:te[19]||(te[19]=ce=>oe(ce)),onMouseenter:te[20]||(te[20]=ce=>m.value=!0),onMouseleave:te[21]||(te[21]=ce=>m.value=!1)},[V("div",{class:$e(["bar-time",{hidden:!m.value}]),style:Le({left:x.value})},gt(A.value),7),V("div",Kce,[V("div",{class:"loaded",style:Le({width:S.value})},null,4),V("div",{class:"played",style:Le({width:g.value})},Gce,4)])],544)])],38)}}}),PF=Ue(zce,[["__scopeId","data-v-597c0901"]]),Jce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=(o,i=!0)=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo,i))};return(o,i)=>{const a=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-video",{lock:o.elementInfo.lock}]),style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",onMousedown:i[2]||(i[2]=s=>r(s,!1)),onTouchstart:i[3]||(i[3]=s=>r(s,!1))},[w(PF,{width:o.elementInfo.width,height:o.elementInfo.height,src:o.elementInfo.src,poster:o.elementInfo.poster,scale:H(n)},null,8,["width","height","src","poster","scale"]),(Y(),ee(Ve,null,it(["t","b","l","r"],s=>V("div",{class:$e(["handler-border",s]),key:s,onMousedown:i[0]||(i[0]=c=>r(c)),onTouchstart:i[1]||(i[1]=c=>r(c))},null,34)),64))],32)),[[a,o.contextmenus]])],4)],6)}}}),CF=Ue(Jce,[["__scopeId","data-v-c50d3bc7"]]),IF=e=>(on("data-v-32038f5c"),e=e(),an(),e),$ce=["src","autoplay"],jce={class:"controller"},qce={class:"icons"},eue={class:"icon-content"},tue={class:"volume"},nue={class:"icon-content"},rue=IF(()=>V("span",{class:"thumb"},null,-1)),oue=[rue],iue={class:"time"},aue={class:"ptime"},sue={class:"dtime"},lue={class:"bar"},cue=IF(()=>V("span",{class:"thumb"},null,-1)),uue=[cue],fue=Fe({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const n=e,r=(Q=0)=>{if(Q===0||isNaN(Q))return"00:00";const ie=me=>me<10?"0"+me:""+me,q=Math.floor(Q/3600),oe=Math.floor((Q-q*3600)/60),he=Math.floor(Q-q*3600-oe*60);return(q>0?[q,oe,he]:[oe,he]).map(ie).join(":")},o=Q=>Q.getBoundingClientRect().left,i=pe(),a=pe(),s=pe(),c=pe(.5),l=pe(!0),u=pe(0),f=pe(0),d=pe(0),h=pe(!1),p=pe("00:00"),m=pe("0"),A=Me(()=>r(u.value)),x=Me(()=>r(f.value)),R=Me(()=>u.value/f.value*100+"%"),y=Me(()=>d.value/f.value*100+"%"),g=Me(()=>c.value*100+"%"),S=Q=>{i.value&&(Q=Math.max(Q,0),Q=Math.min(Q,f.value),i.value.currentTime=Q,u.value=Q)},L=()=>{i.value&&(l.value=!1,i.value.play())},T=()=>{i.value&&(l.value=!0,i.value.pause())},M=()=>{l.value?L():T()},O=Q=>{i.value&&(Q=Math.max(Q,0),Q=Math.min(Q,1),i.value.volume=Q,c.value=Q,i.value.muted&&Q!==0&&(i.value.muted=!1))},k=()=>{var Q;f.value=((Q=i.value)==null?void 0:Q.duration)||0},F=()=>{var Q;u.value=((Q=i.value)==null?void 0:Q.currentTime)||0},N=()=>{l.value=!1},E=()=>{n.loop?(S(0),L()):T()},P=()=>{var Q;d.value=(Q=i.value)!=null&&Q.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},_=()=>Sn.error("视频加载失败"),I=Q=>{if(!i.value||!a.value)return;let q=(("clientX"in Q?Q.clientX:Q.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;q=Math.max(q,0),q=Math.min(q,1);const oe=q*f.value;i.value.currentTime=oe,u.value=oe},W=Q=>{if(!i.value||!a.value)return;let q=(("clientX"in Q?Q.clientX:Q.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;q=Math.max(q,0),q=Math.min(q,1);const oe=q*f.value;i.value.currentTime=oe,u.value=oe,document.removeEventListener("mousemove",I),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",W),document.removeEventListener("touchend",W)},D=()=>{document.addEventListener("mousemove",I),document.addEventListener("touchmove",I),document.addEventListener("mouseup",W),document.addEventListener("touchend",W)},z=Q=>{if(!s.value)return;const q=(("clientX"in Q?Q.clientX:Q.changedTouches[0].clientX)-o(s.value))/45;O(q)},ae=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("touchmove",z),document.removeEventListener("mouseup",ae),document.removeEventListener("touchend",ae)},U=()=>{document.addEventListener("mousemove",z),document.addEventListener("touchmove",z),document.addEventListener("mouseup",ae),document.addEventListener("touchend",ae)},Z=Q=>{if(!s.value)return;const ie=(Q.clientX-o(s.value))/45;O(ie)},B=Q=>{if(f.value&&a.value){const ie=a.value.getBoundingClientRect().left,q=Q.clientX-ie;if(q<0||q>a.value.offsetWidth)return;const oe=f.value*(q/a.value.offsetWidth);m.value=`${q-(oe>=3600?25:20)}px`,p.value=r(oe),h.value=!0}},G=()=>{i.value&&(i.value.muted?(i.value.muted=!1,O(.5)):(i.value.muted=!0,O(0)))};return t({toggle:M}),(Q,ie)=>{const q=xe("IconPlayOne"),oe=xe("IconPause"),he=xe("IconVolumeMute"),me=xe("IconVolumeNotice"),ve=xe("IconVolumeSmall");return Y(),ee("div",{class:"audio-player",style:Le({transform:`scale(${1/Q.scale})`})},[V("audio",{class:"audio",ref_key:"audioRef",ref:i,src:Q.src,autoplay:Q.autoplay,onDurationchange:ie[0]||(ie[0]=J=>k()),onTimeupdate:ie[1]||(ie[1]=J=>F()),onPlay:ie[2]||(ie[2]=J=>N()),onEnded:ie[3]||(ie[3]=J=>E()),onProgress:ie[4]||(ie[4]=J=>P()),onError:ie[5]||(ie[5]=J=>_())},null,40,$ce),V("div",jce,[V("div",qce,[V("div",{class:"icon play-icon",onClick:ie[6]||(ie[6]=J=>M())},[V("span",eue,[l.value?(Y(),we(q,{key:0})):(Y(),we(oe,{key:1}))])]),V("div",tue,[V("div",{class:"icon volume-icon",onClick:ie[7]||(ie[7]=J=>G())},[V("span",nue,[c.value===0?(Y(),we(he,{key:0})):c.value===1?(Y(),we(me,{key:1})):(Y(),we(ve,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:ie[8]||(ie[8]=J=>U()),onTouchstart:ie[9]||(ie[9]=J=>U()),onClick:ie[10]||(ie[10]=J=>Z(J))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[V("div",{class:"volume-bar-inner",style:Le({width:g.value})},oue,4)],512)],32)])]),V("span",iue,[V("span",aue,gt(A.value),1),We(" / "),V("span",sue,gt(x.value),1)]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:ie[11]||(ie[11]=J=>D()),onTouchstart:ie[12]||(ie[12]=J=>D()),onMousemove:ie[13]||(ie[13]=J=>B(J)),onMouseenter:ie[14]||(ie[14]=J=>h.value=!0),onMouseleave:ie[15]||(ie[15]=J=>h.value=!1)},[V("div",{class:$e(["bar-time",{hidden:!h.value}]),style:Le({left:m.value})},gt(p.value),7),V("div",lue,[V("div",{class:"loaded",style:Le({width:y.value})},null,4),V("div",{class:"played",style:Le({width:R.value})},uue,4)])],544)])],4)}}}),FF=Ue(fue,[["__scopeId","data-v-32038f5c"]]),due=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:r}=Xe(ft()),{viewportRatio:o}=Xe(ct()),i=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),a=Me(()=>{const c=Ht,l=Ht*o.value,u=280/n.value,f=50/n.value,d=t.elementInfo.width,h=t.elementInfo.height,p=t.elementInfo.left,m=t.elementInfo.top;let A=0,x=h;return p+u>=c&&(A=d-u),m+h+f>=l&&(x=-f),{left:A+"px",top:x+"px"}}),s=c=>{t.elementInfo.lock||(c.stopPropagation(),t.selectElement(c,t.elementInfo))};return(c,l)=>{const u=xe("IconVolumeNotice"),f=Mn("contextmenu");return Y(),ee("div",{class:$e(["editable-element-audio",{lock:c.elementInfo.lock}]),style:Le({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px",width:c.elementInfo.width+"px",height:c.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${c.elementInfo.rotate}deg)`})},[De((Y(),ee("div",{class:"element-content",onMousedown:l[1]||(l[1]=d=>s(d)),onTouchstart:l[2]||(l[2]=d=>s(d))},[w(u,{class:"audio-icon",style:Le({fontSize:i.value,color:c.elementInfo.color})},null,8,["style"]),H(r)===c.elementInfo.id?(Y(),we(FF,{key:0,class:"audio-player",style:Le({...a.value}),src:c.elementInfo.src,loop:c.elementInfo.loop,scale:H(n),onMousedown:l[0]||(l[0]=Wt(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Be("",!0)],32)),[[f,c.contextmenus]])],4)],6)}}}),_F=Ue(due,[["__scopeId","data-v-5d8373ba"]]),hue=["id"],pue=Fe({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=Me(()=>({[Nt.IMAGE]:RI,[Nt.TEXT]:dF,[Nt.SHAPE]:pF,[Nt.LINE]:mF,[Nt.CHART]:MF,[Nt.TABLE]:kF,[Nt.LATEX]:NF,[Nt.VIDEO]:CF,[Nt.AUDIO]:_F})[t.elementInfo.type]||null),{orderElement:r}=Np(),{alignElementToCanvas:o}=a2(),{combineElements:i,uncombineElements:a}=Cb(),{deleteElement:s}=kp(),{lockElement:c,unlockElement:l}=JP(),{copyElement:u,pasteElement:f,cutElement:d}=Ib(),{selectAllElements:h}=Hg(),p=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>l(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:u},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>o(nn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"水平居中",handler:()=>o(nn.HORIZONTAL)},{text:"左对齐",handler:()=>o(nn.LEFT)},{text:"右对齐",handler:()=>o(nn.RIGHT)}]},{text:"垂直居中",handler:()=>o(nn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"垂直居中",handler:()=>o(nn.VERTICAL)},{text:"顶部对齐",handler:()=>o(nn.TOP)},{text:"底部对齐",handler:()=>o(nn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,pr.TOP),children:[{text:"置于顶层",handler:()=>r(t.elementInfo,pr.TOP)},{text:"上移一层",handler:()=>r(t.elementInfo,pr.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,pr.BOTTOM),children:[{text:"置于底层",handler:()=>r(t.elementInfo,pr.BOTTOM)},{text:"下移一层",handler:()=>r(t.elementInfo,pr.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:i,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:c},{text:"删除",subText:"Delete",handler:s}];return(m,A)=>(Y(),ee("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${m.elementInfo.id}`,style:Le({zIndex:m.elementIndex})},[(Y(),we(xs(n.value),{elementInfo:m.elementInfo,selectElement:m.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,hue))}}),mue=Fe({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:$e(`mouse-selection quadrant-${t.quadrant}`),style:Le({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),vue=Ue(mue,[["__scopeId","data-v-053bfa3e"]]),gue={class:"grid-lines"},Aue=["d","stroke"],Rue=Fe({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=Xe(ft()),{currentSlide:r,viewportRatio:o}=Xe(ct()),i=Me(()=>{var c;return(c=r.value)==null?void 0:c.background}),a=Me(()=>{var u;const c=((u=i.value)==null?void 0:u.color)||"#fff",l=["#000","#fff"];return ot.mostReadable(c,l,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),s=Me(()=>{const c=Ht,l=Ht*o.value;let u="";for(let f=0;f<=Math.floor(l/n.value);f++)u+=`M0 ${f*n.value} L${c} ${f*n.value} `;for(let f=0;f<=Math.floor(c/n.value);f++)u+=`M${f*n.value} 0 L${f*n.value} ${l} `;return u});return(c,l)=>(Y(),ee("svg",gue,[V("path",{style:Le({transform:`scale(${H(t)})`}),d:s.value,fill:"none",stroke:a.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,Aue)]))}}),yue=Ue(Rue,[["__scopeId","data-v-d6e1ea18"]]),d2=e=>({backgroundStyle:Me(()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:o,imageSize:i,gradientColor:a,gradientRotate:s,gradientType:c}=e.value;if(n==="solid")return{backgroundColor:r};if(n==="image")return o?i==="repeat"?{backgroundImage:`url(${o}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${o}`,backgroundRepeat:"no-repeat",backgroundSize:i||"cover"}:{backgroundColor:"#fff"};if(n==="gradient"){const l=s||0,u=a?a[0]:"#fff",f=a?a[1]:"#fff";return c==="radial"?{backgroundImage:`radial-gradient(${u}, ${f}`}:{backgroundImage:`linear-gradient(${l}deg, ${u}, ${f}`}}return{backgroundColor:"#fff"}})}),xue=Fe({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=Xe(ft()),{currentSlide:n}=Xe(ct()),r=Me(()=>{var i;return(i=n.value)==null?void 0:i.background}),{backgroundStyle:o}=d2(r);return(i,a)=>(Y(),ee("div",{class:"viewport-background",style:Le(H(o))},[H(t)?(Y(),we(yue,{key:0})):Be("",!0)],4))}}),bue=Ue(xue,[["__scopeId","data-v-203ea8ff"]]),Sue=Fe({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=Me(()=>t.axis.x*t.canvasScale+"px"),r=Me(()=>t.axis.y*t.canvasScale+"px"),o=Me(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(i,a)=>(Y(),ee("div",{class:"alignment-line",style:Le({left:n.value,top:r.value})},[V("div",{class:$e(["line",i.type]),style:Le(o.value)},null,6)],4))}}),EF=Ue(Sue,[["__scopeId","data-v-7cd3d25d"]]),Mue={class:"ruler"},wue=Fe({__name:"Ruler",props:{viewportStyles:{}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.viewportStyles.width*n.value/10);return(o,i)=>(Y(),ee("div",Mue,[V("div",{class:"h",style:Le({width:o.viewportStyles.width*H(n)+"px",left:o.viewportStyles.left+"px"})},[(Y(),ee(Ve,null,it(20,a=>V("div",{class:$e(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:`marker-100-${a}`},[V("span",null,gt(a),1)],2)),64))],4),V("div",{class:"v",style:Le({height:o.viewportStyles.height*H(n)+"px",top:o.viewportStyles.top+"px"})},[(Y(),ee(Ve,null,it(20,a=>V("div",{class:$e(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:a,style:Le({height:r.value+"px"})},[V("span",null,gt(a),1)],6)),64))],4)]))}}),Lue=Ue(wue,[["__scopeId","data-v-b01be305"]]),Oue=["width","height"],Tue=["d"],kue=Fe({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,r=ft(),{creatingElement:o}=Xe(r),{ctrlOrShiftKeyActive:i}=Xe(Ss()),a=pe(),s=pe(),c=pe(),l=pe({x:0,y:0});Gt(()=>{if(!c.value)return;const{x:h,y:p}=c.value.getBoundingClientRect();l.value={x:h,y:p}});const u=h=>{let p=!0;const m=h.pageX,A=h.pageY;a.value=[m,A],document.onmousemove=x=>{if(!o.value||!p)return;let R=x.pageX,y=x.pageY;if(i.value){const g=R-m,S=y-A,L=Math.abs(g),T=Math.abs(S);if(o.value.type==="shape"){const M=S>0&&g<0||S<0&&g>0;L>T?y=M?A-g:A+g:R=M?m-S:m+S}else o.value.type==="line"&&(L>T?y=A:R=m)}s.value=[R,y]},document.onmouseup=x=>{var S,L;if(document.onmousemove=null,document.onmouseup=null,x.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const R=x.pageX,y=x.pageY,g=30;if(((S=o.value)==null?void 0:S.type)==="line"&&(Math.abs(R-m)>=g||Math.abs(y-A)>=g))n("created",{start:a.value,end:s.value});else if(((L=o.value)==null?void 0:L.type)!=="line"&&Math.abs(R-m)>=g&&Math.abs(y-A)>=g)n("created",{start:a.value,end:s.value});else{const M=Math.min(R,m),O=Math.min(y,A),k=Math.max(R,m),F=Math.max(y,A),N=k-M>=g?k-M:200,E=F-O>=g?F-O:200;n("created",{start:[M,O],end:[M+N,O+E]})}}},f=Me(()=>{if(!a.value||!s.value||!o.value||o.value.type!=="line")return null;const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),R=Math.max(h,m),y=Math.min(p,A),g=Math.max(p,A),S=R-x>=24?R-x:24,L=g-y>=24?g-y:24,T=h===x?0:R-x,M=p===y?0:g-y,O=m===x?0:R-x,k=A===y?0:g-y,F=`M${T}, ${M} L${O}, ${k}`;return{svgWidth:S,svgHeight:L,startX:T,startY:M,endX:O,endY:k,path:F}}),d=Me(()=>{if(!a.value||!s.value)return{};const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),R=Math.max(h,m),y=Math.min(p,A),g=Math.max(p,A),S=R-x,L=g-y;return{left:x-l.value.x+"px",top:y-l.value.y+"px",width:S+"px",height:L+"px"}});return(h,p)=>{var m,A;return Y(),ee("div",{class:"element-create-selection",ref_key:"selectionRef",ref:c,onMousedown:p[0]||(p[0]=Wt(x=>u(x),["stop"])),onContextmenu:p[1]||(p[1]=Wt(()=>{},["stop","prevent"]))},[a.value&&s.value?(Y(),ee("div",{key:0,class:$e(["selection",(m=H(o))==null?void 0:m.type]),style:Le(d.value)},[((A=H(o))==null?void 0:A.type)==="line"&&f.value?(Y(),ee("svg",{key:0,overflow:"visible",width:f.value.svgWidth,height:f.value.svgHeight},[V("path",{d:f.value.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,Tue)],8,Oue)):Be("",!0)],6)):Be("",!0)],544)}}}),Nue=Ue(kue,[["__scopeId","data-v-7b17a883"]]),Pue={overflow:"visible"},Cue=["d","fill"],Iue=Fe({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,r=ft(),{ctrlOrShiftKeyActive:o}=Xe(Ss()),{theme:i}=Xe(ct()),a=pe(),s=pe(!1),c=pe({x:0,y:0});Gt(()=>{if(!a.value)return;const{x:g,y:S}=a.value.getBoundingClientRect();c.value={x:g,y:S}});const l=pe(null),u=pe([]),f=pe(!1),d=(g,S=!1)=>{let L=g.pageX-c.value.x,T=g.pageY-c.value.y;if(S)return{pageX:L,pageY:T};if(o.value&&u.value.length){const[M,O]=u.value[u.value.length-1];Math.abs(M-L)-Math.abs(O-T)>0?T=O:L=M}return{pageX:L,pageY:T}},h=g=>{if(s.value){const{pageX:T,pageY:M}=d(g,!0);u.value.push([T,M]),l.value=null;return}const{pageX:S,pageY:L}=d(g);if(l.value=[S,L],u.value.length>=2){const[T,M]=u.value[0];Math.abs(T-S)<5&&Math.abs(M-L)<5?f.value=!0:f.value=!1}else f.value=!1},p=Me(()=>{let g="";for(let S=0;S{const S=u.value.map(I=>I[0]),L=u.value.map(I=>I[1]),T=Math.min(...S),M=Math.min(...L),O=Math.max(...S),k=Math.max(...L),F=u.value.map(I=>[I[0]-T,I[1]-M]);let N="";for(let I=0;I{const{pageX:S,pageY:L}=d(g);s.value=!0,f.value?n("created",m()):u.value.push([S,L]),document.onmouseup=()=>{s.value=!1}},x=()=>{r.setCreatingCustomShapeState(!1)},R=()=>{n("created",{...m(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:i.value.themeColor,style:"solid"}}),x()},y=g=>{const S=g.key.toUpperCase();S===yt.ESC&&x(),S===yt.ENTER&&R()};return Gt(()=>{Sn.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",y)}),On(()=>{document.removeEventListener("keydown",y),Sn.closeAll()}),(g,S)=>(Y(),ee("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:S[0]||(S[0]=Wt(L=>A(L),["stop"])),onMousemove:S[1]||(S[1]=L=>h(L)),onContextmenu:S[2]||(S[2]=Wt(L=>x(),["stop","prevent"]))},[(Y(),ee("svg",Pue,[V("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,Cue)]))],544))}}),Fue=Ue(Iue,[["__scopeId","data-v-8ea8c340"]]),nf=(e,t)=>{const n=Me(()=>[{direction:mt.LEFT_TOP,style:{}},{direction:mt.TOP,style:{left:e.value/2+"px"}},{direction:mt.RIGHT_TOP,style:{left:e.value+"px"}},{direction:mt.LEFT,style:{top:t.value/2+"px"}},{direction:mt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:mt.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:mt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:mt.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),r=Me(()=>[{direction:mt.LEFT,style:{top:t.value/2+"px"}},{direction:mt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),o=Me(()=>[{direction:mt.TOP,style:{left:e.value/2+"px"}},{direction:mt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),i=Me(()=>[{type:W0.T,style:{width:e.value+"px"}},{type:W0.B,style:{top:t.value+"px",width:e.value+"px"}},{type:W0.L,style:{height:t.value+"px"}},{type:W0.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:o,borderLines:i}},_ue=Fe({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=Me(()=>{const r="rotate-",o=t.rotate;return o>-22.5&&o<=22.5?r+0:o>22.5&&o<=67.5?r+45:o>67.5&&o<=112.5?r+90:o>112.5&&o<=157.5?r+135:o>157.5||o<=-157.5?r+0:o>-157.5&&o<=-112.5?r+45:o>-112.5&&o<=-67.5?r+90:o>-67.5&&o<=-22.5?r+135:r+0});return(r,o)=>(Y(),ee("div",{class:$e(["resize-handler",n.value,r.type])},null,2))}}),Tc=Ue(_ue,[["__scopeId","data-v-bb3f9e62"]]),Eue=Fe({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(Y(),ee("div",{class:$e(["border-line",t.type,{wide:t.isWide}])},null,2))}}),rf=Ue(Eue,[["__scopeId","data-v-7114fb45"]]),Xue=Fe({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:r}=Xe(ft()),o=Me(()=>t.elementList.filter(d=>n.value.includes(d.id))),i=pe({minX:0,maxX:0,minY:0,maxY:0}),a=Me(()=>(i.value.maxX-i.value.minX)*r.value),s=Me(()=>(i.value.maxY-i.value.minY)*r.value),{resizeHandlers:c,borderLines:l}=nf(a,s);Tg(()=>{const{minX:d,maxX:h,minY:p,maxY:m}=ec(o.value);i.value={minX:d,maxX:h,minY:p,maxY:m}});const f=Me(()=>o.value.some(d=>!((d.type==="image"||d.type==="shape")&&!d.rotate)));return(d,h)=>(Y(),ee("div",{class:"multi-select-operate",style:Le({left:i.value.minX*H(r)+"px",top:i.value.minY*H(r)+"px"})},[(Y(!0),ee(Ve,null,it(H(l),p=>(Y(),we(rf,{key:p.type,type:p.type,style:Le(p.style)},null,8,["type","style"]))),128)),f.value?Be("",!0):(Y(!0),ee(Ve,{key:0},it(H(c),p=>(Y(),we(Tc,{key:p.direction,type:p.direction,style:Le(p.style),onMousedown:Wt(m=>d.scaleMultiElement(m,i.value,p.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),Wue=Ue(Xue,[["__scopeId","data-v-135c8cb7"]]),Vue={},Uue={class:"rotate-handler"};function Yue(e,t){return Y(),ee("div",Uue)}const zd=Ue(Vue,[["render",Yue],["__scopeId","data-v-9f21fc0f"]]),Que={inheritAttrs:!1},Zue=Fe({...Que,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:r}=Xe(ft()),o=Me(()=>r.value===t.elementInfo.id),i=Me(()=>t.elementInfo.width*n.value),a=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:c}=nf(i,a);return(l,u)=>(Y(),ee("div",{class:$e(["image-element-operate",{cliping:o.value}])},[(Y(!0),ee(Ve,null,it(H(c),f=>(Y(),we(rf,{class:"operate-border-line",key:f.type,type:f.type,style:Le(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(s),f=>(Y(),we(Tc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:Le(f.style),onMousedown:Wt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w(zd,{class:"operate-rotate-handler",style:Le({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=Wt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Be("",!0)],2))}}),Bue=Ue(Zue,[["__scopeId","data-v-2a1bef4e"]]),Due={class:"text-element-operate"},Kue={inheritAttrs:!1},Hue=Fe({...Kue,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:i,verticalTextElementResizeHandlers:a,borderLines:s}=nf(r,o),c=Me(()=>t.elementInfo.vertical?a.value:i.value);return(l,u)=>(Y(),ee("div",Due,[(Y(!0),ee(Ve,null,it(H(s),f=>(Y(),we(rf,{class:"operate-border-line",key:f.type,type:f.type,style:Le(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(c.value,f=>(Y(),we(Tc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:Le(f.style),onMousedown:Wt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w(zd,{class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Wt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Be("",!0)]))}}),Gue={class:"shape-element-operate"},zue={inheritAttrs:!1},Jue=Fe({...zue,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=nf(r,o),s=Me(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoint===void 0)return{};const c=Ju[t.elementInfo.pathFormula];if("editable"in c){const l=c.getBaseSize(t.elementInfo.width,t.elementInfo.height)*t.elementInfo.keypoint;if(c.relative==="left")return{left:l*n.value+"px"};if(c.relative==="right")return{left:(t.elementInfo.width-l)*n.value+"px"};if(c.relative==="center")return{left:(t.elementInfo.width-l)/2*n.value+"px"};if(c.relative==="top")return{top:l*n.value+"px"};if(c.relative==="bottom")return{top:(t.elementInfo.height-l)*n.value+"px"}}return{}});return(c,l)=>(Y(),ee("div",Gue,[(Y(!0),ee(Ve,null,it(H(a),u=>(Y(),we(rf,{class:"operate-border-line",key:u.type,type:u.type,style:Le(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(i),u=>(Y(),we(Tc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:Le(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w(zd,{class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]),c.elementInfo.keypoint!==void 0?(Y(),ee("div",{key:0,class:"operate-keypoint-handler",style:Le(s.value),onMousedown:l[1]||(l[1]=Wt(u=>c.moveShapeKeypoint(u,c.elementInfo),["stop"]))},null,36)):Be("",!0)],64)):Be("",!0)]))}}),$ue=Ue(Jue,[["__scopeId","data-v-e65e73bd"]]),jue={class:"line-element-operate"},que=["width","height","stroke"],efe={key:0},tfe=["x1","y1","x2","y2"],nfe=["x1","y1","x2","y2"],rfe=["x1","y1","x2","y2"],ofe=["x1","y1","x2","y2"],ife={inheritAttrs:!1},afe=Fe({...ife,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),o=Me(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),i=Me(()=>{const a=[{handler:Go.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:Go.END,style:{left:t.elementInfo.end[0]*n.value+"px",top:t.elementInfo.end[1]*n.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken){const s=t.elementInfo.curve||t.elementInfo.broken;a.push({handler:Go.C,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[s,c]=t.elementInfo.cubic;a.push({handler:Go.C1,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}}),a.push({handler:Go.C2,style:{left:c[0]*n.value+"px",top:c[1]*n.value+"px"}})}return a});return(a,s)=>(Y(),ee("div",jue,[a.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(i.value,c=>(Y(),we(Tc,{class:"operate-resize-handler",key:c.handler,style:Le(c.style),onMousedown:Wt(l=>a.dragLineElement(l,a.elementInfo,c.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(Y(),ee("svg",{width:r.value||1,height:o.value||1,stroke:a.elementInfo.color,overflow:"visible",style:Le({transform:`scale(${H(n)})`})},[a.elementInfo.curve?(Y(),ee("g",efe,[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,tfe),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,nfe)])):Be("",!0),a.elementInfo.cubic?(Y(!0),ee(Ve,{key:1},it(a.elementInfo.cubic,(c,l)=>(Y(),ee("g",{key:l},[l===0?(Y(),ee("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:c[0],y2:c[1]},null,8,rfe)):Be("",!0),l===1?(Y(),ee("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:c[0],y2:c[1]},null,8,ofe)):Be("",!0)]))),128)):Be("",!0)],12,que))],64)):Be("",!0)]))}}),sfe=Ue(afe,[["__scopeId","data-v-32a06240"]]),lfe={class:"table-element-operate"},cfe={inheritAttrs:!1},ufe=Fe({...cfe,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.elementInfo.outline.width||1),o=Me(()=>(t.elementInfo.width+r.value)*n.value),i=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=nf(o,i);return(c,l)=>(Y(),ee("div",lfe,[(Y(!0),ee(Ve,null,it(H(s),u=>(Y(),we(rf,{class:"operate-border-line",key:u.type,type:u.type,style:Le(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(a),u=>(Y(),we(Tc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:Le(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w(zd,{class:"operate-rotate-handler",style:Le({left:o.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"])],64)):Be("",!0)]))}}),ffe={class:"common-element-operate"},dfe={inheritAttrs:!1},bm=Fe({...dfe,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(ft()),r=Me(()=>t.elementInfo.width*n.value),o=Me(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=nf(r,o),s=Me(()=>["chart","video","audio"].includes(t.elementInfo.type));return(c,l)=>(Y(),ee("div",ffe,[(Y(!0),ee(Ve,null,it(H(a),u=>(Y(),we(rf,{class:"operate-border-line",key:u.type,type:u.type,style:Le(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(i),u=>(Y(),we(Tc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:Le(u.style),onMousedown:Wt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?Be("",!0):(Y(),we(zd,{key:0,class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Wt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]))],64)):Be("",!0)]))}}),XF=()=>{const e=ct(),{addHistorySnapshot:t}=zt();return{setLink:(o,i)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(i.type==="web"&&!a.test(i.target))return Sn.error("不是正确的网页链接地址"),!1;if(i.type==="slide"&&!i.target)return Sn.error("请先选择链接目标"),!1;const s={link:i};return e.updateElement({id:o.id,props:s}),t(),!0},removeLink:o=>{e.removeElementProps({id:o.id,propName:"link"}),t()}}},hfe=Fe({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:0}},setup(e){return(t,n)=>(Y(),ee("div",{class:$e(["divider",t.type]),style:Le({margin:t.type==="horizontal"?`${t.margin||24}px 0`:`0 ${t.margin||8}px`})},null,6))}}),Ut=Ue(hfe,[["__scopeId","data-v-c7c64e0b"]]),pfe=["href"],mfe={class:"btns"},vfe=Fe({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=ft(),r=ct(),{canvasScale:o}=Xe(n),{slides:i}=Xe(r),{removeLink:a}=XF(),s=Me(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),c=l=>{const u=i.value.findIndex(f=>f.id===l);u!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(u))};return(l,u)=>(Y(),ee("div",{class:"link-handler",style:Le({top:s.value*H(o)+10+"px"})},[l.link.type==="web"?(Y(),ee("a",{key:0,class:"link",href:l.link.target,target:"_blank"},gt(l.link.target),9,pfe)):(Y(),ee("a",{key:1,class:"link",onClick:u[0]||(u[0]=f=>c(l.link.target))},"幻灯片页面 "+gt(l.link.target),1)),V("div",mfe,[V("div",{class:"btn",onClick:u[1]||(u[1]=f=>l.openLinkDialog())},"更换"),w(Ut,{type:"vertical"}),V("div",{class:"btn",onClick:u[2]||(u[2]=f=>H(a)(l.elementInfo))},"移除")])],4))}}),gfe=Ue(vfe,[["__scopeId","data-v-f8f46f78"]]),Afe={key:1,class:"animation-index"},Rfe=Fe({__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}=Xe(ft()),{formatedAnimations:o}=Xe(ct()),i=Me(()=>({[Nt.IMAGE]:Bue,[Nt.TEXT]:Hue,[Nt.SHAPE]:$ue,[Nt.LINE]:sfe,[Nt.TABLE]:ufe,[Nt.CHART]:bm,[Nt.LATEX]:bm,[Nt.VIDEO]:bm,[Nt.AUDIO]:bm})[t.elementInfo.type]||null),a=Me(()=>{const l=[];for(let u=0;ud.elId).includes(t.elementInfo.id)&&l.push(u);return l}),s=Me(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),c=Me(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(l,u)=>(Y(),ee("div",{class:$e(["operate",{"multi-select":l.isMultiSelect&&!l.isActive}]),style:Le({top:l.elementInfo.top*H(n)+"px",left:l.elementInfo.left*H(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${l.elementInfo.width*H(n)/2}px ${c.value*H(n)/2}px`})},[l.isSelected?(Y(),we(xs(i.value),{key:0,elementInfo:l.elementInfo,handlerVisible:!l.elementInfo.lock&&(l.isActiveGroupElement||!l.isMultiSelect),rotateElement:l.rotateElement,scaleElement:l.scaleElement,dragLineElement:l.dragLineElement,moveShapeKeypoint:l.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Be("",!0),H(r)==="elAnimation"&&a.value.length?(Y(),ee("div",Afe,[(Y(!0),ee(Ve,null,it(a.value,f=>(Y(),ee("div",{class:"index-item",key:f},gt(f+1),1))),128))])):Be("",!0),l.isActive&&l.elementInfo.link?(Y(),we(gfe,{key:2,elementInfo:l.elementInfo,link:l.elementInfo.link,openLinkDialog:l.openLinkDialog,onMousedown:u[0]||(u[0]=Wt(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Be("",!0)],6))}}),yfe=Ue(Rfe,[["__scopeId","data-v-b96daa51"]]),xfe=["src"],bfe=Fe({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=Lc(n),o=Me(()=>t.elementInfo.flipH),i=Me(()=>t.elementInfo.flipV),{flipStyle:a}=s2(o,i),s=Me(()=>t.elementInfo.clip),{clipShape:c,imgPosition:l}=i5(s),u=Me(()=>t.elementInfo.filters),{filter:f}=vI(u);return(d,h)=>(Y(),ee("div",{class:"base-element-image",style:Le({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:Le({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({filter:H(r)?`drop-shadow(${H(r)})`:"",transform:H(a)})},[w(gI,{elementInfo:d.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Le({clipPath:H(c).style})},[V("img",{src:d.elementInfo.src,draggable:!1,style:Le({top:H(l).top,left:H(l).left,width:H(l).width,height:H(l).height,filter:H(f)}),alt:""},null,12,xfe),d.elementInfo.colorMask?(Y(),ee("div",{key:0,class:"color-mask",style:Le({backgroundColor:d.elementInfo.colorMask})},null,4)):Be("",!0)],4)],4)],4)],4))}}),WF=Ue(bfe,[["__scopeId","data-v-71d24108"]]),Sfe=["innerHTML"],Mfe=Fe({__name:"BaseTextElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=Lc(n);return(o,i)=>(Y(),ee("div",{class:"base-element-text",style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({width:o.elementInfo.vertical?"auto":o.elementInfo.width+"px",height:o.elementInfo.vertical?o.elementInfo.height+"px":"auto",backgroundColor:o.elementInfo.fill,opacity:o.elementInfo.opacity,textShadow:H(r),lineHeight:o.elementInfo.lineHeight,letterSpacing:(o.elementInfo.wordSpace||0)+"px",color:o.elementInfo.defaultColor,fontFamily:o.elementInfo.defaultFontName,writingMode:o.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[w(l2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),V("div",{class:"text ProseMirror-static",style:Le({"--paragraphSpace":`${o.elementInfo.paragraphSpace===void 0?5:o.elementInfo.paragraphSpace}px`}),innerHTML:o.elementInfo.content},null,12,Sfe)],4)],4)],4))}}),VF=Ue(Mfe,[["__scopeId","data-v-e8894a41"]]),wfe=["width","height"],Lfe={key:0},Ofe=["transform"],Tfe=["d","fill","stroke","stroke-width","stroke-dasharray"],kfe=["innerHTML"],Nfe=Fe({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.outline),{outlineWidth:r,outlineColor:o,strokeDashArray:i}=Gd(n),a=Me(()=>t.elementInfo.shadow),{shadowStyle:s}=Lc(a),c=Me(()=>t.elementInfo.flipH),l=Me(()=>t.elementInfo.flipV),{flipStyle:u}=s2(c,l),f=Me(()=>{const d={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:d});return(d,h)=>(Y(),ee("div",{class:"base-element-shape",style:Le({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:Le({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({opacity:d.elementInfo.opacity,filter:H(s)?`drop-shadow(${H(s)})`:"",transform:H(u),color:f.value.defaultColor,fontFamily:f.value.defaultFontName})},[(Y(),ee("svg",{overflow:"visible",width:d.elementInfo.width,height:d.elementInfo.height},[d.elementInfo.gradient?(Y(),ee("defs",Lfe,[w(hF,{id:`base-gradient-${d.elementInfo.id}`,type:d.elementInfo.gradient.type,color1:d.elementInfo.gradient.color[0],color2:d.elementInfo.gradient.color[1],rotate:d.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Be("",!0),V("g",{transform:`scale(${d.elementInfo.width/d.elementInfo.viewBox[0]}, ${d.elementInfo.height/d.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:d.elementInfo.path,fill:d.elementInfo.gradient?`url(#base-gradient-${d.elementInfo.id})`:d.elementInfo.fill,stroke:H(o),"stroke-width":H(r),"stroke-dasharray":H(i)},null,8,Tfe)],8,Ofe)],8,wfe)),V("div",{class:$e(["shape-text",f.value.align])},[V("div",{class:"ProseMirror-static",innerHTML:f.value.content},null,8,kfe)],2)],4)],4)],4))}}),UF=Ue(Nfe,[["__scopeId","data-v-2d39d3d1"]]),Pfe=["width","height"],Cfe=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Ife=Fe({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>t.elementInfo.shadow),{shadowStyle:r}=Lc(n),o=Me(()=>{const c=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return c<24?24:c}),i=Me(()=>{const c=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return c<24?24:c}),a=Me(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const c=t.elementInfo.width;return c<=8?`${c*5} ${c*2.5}`:`${c*5} ${c*1.5}`}),s=Me(()=>Tb(t.elementInfo));return(c,l)=>(Y(),ee("div",{class:"base-element-line",style:Le({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Le({filter:H(r)?`drop-shadow(${H(r)})`:""})},[(Y(),ee("svg",{overflow:"visible",width:o.value,height:i.value},[V("defs",null,[c.elementInfo.points[0]?(Y(),we(Fd,{key:0,id:c.elementInfo.id,position:"start",type:c.elementInfo.points[0],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Be("",!0),c.elementInfo.points[1]?(Y(),we(Fd,{key:1,id:c.elementInfo.id,position:"end",type:c.elementInfo.points[1],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Be("",!0)]),V("path",{d:s.value,stroke:c.elementInfo.color,"stroke-width":c.elementInfo.width,"stroke-dasharray":a.value,fill:"none","marker-start":c.elementInfo.points[0]?`url(#${c.elementInfo.id}-${c.elementInfo.points[0]}-start)`:"","marker-end":c.elementInfo.points[1]?`url(#${c.elementInfo.id}-${c.elementInfo.points[1]}-end)`:""},null,8,Cfe)],8,Pfe))],4)],4))}}),YF=Ue(Ife,[["__scopeId","data-v-e7dc2b42"]]),Ffe=Fe({__name:"BaseChartElement",props:{elementInfo:{}},setup(e){const t=jo(tf)||pe(1),n=Me(()=>t.value<1),r=Me(()=>n.value?1/t.value:1);return(o,i)=>(Y(),ee("div",{class:"base-element-chart",style:Le({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${o.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({backgroundColor:o.elementInfo.fill})},[w(l2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),w(SF,{width:o.elementInfo.width*r.value,height:o.elementInfo.height*r.value,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||"",style:Le({zoom:1/r.value})},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend","style"])],4)],4)],4))}}),QF=Ue(Ffe,[["__scopeId","data-v-37ca5799"]]),_fe=["width"],Efe=["rowspan","colspan"],Xfe=["innerHTML"],Wfe=Fe({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,n=pe([]),r=Me(()=>n.value.reduce((c,l)=>c+l));Tt([()=>t.colWidths,()=>t.width],()=>{n.value=t.colWidths.map(c=>c*t.width)},{immediate:!0});const o=Me(()=>t.data),{hideCells:i}=OF(o),a=Me(()=>t.theme),{subThemeColor:s}=TF(a);return(c,l)=>{var u,f,d,h,p;return Y(),ee("div",{class:"static-table",style:Le({width:r.value+"px"})},[V("table",{class:$e({theme:a.value,"row-header":(u=a.value)==null?void 0:u.rowHeader,"row-footer":(f=a.value)==null?void 0:f.rowFooter,"col-header":(d=a.value)==null?void 0:d.colHeader,"col-footer":(h=a.value)==null?void 0:h.colFooter}),style:Le(`--themeColor: ${(p=a.value)==null?void 0:p.color}; --subThemeColor1: ${H(s)[0]}; --subThemeColor2: ${H(s)[1]}`)},[V("colgroup",null,[(Y(!0),ee(Ve,null,it(n.value,(m,A)=>(Y(),ee("col",{span:"1",key:A,width:m},null,8,_fe))),128))]),V("tbody",null,[(Y(!0),ee(Ve,null,it(c.data,(m,A)=>(Y(),ee("tr",{key:A,style:Le({height:c.cellMinHeight+"px"})},[(Y(!0),ee(Ve,null,it(m,(x,R)=>De((Y(),ee("td",{class:"cell",style:Le({borderStyle:c.outline.style,borderColor:c.outline.color,borderWidth:c.outline.width+"px",...H(wF)(x.style)}),key:x.id,rowspan:x.rowspan,colspan:x.colspan},[V("div",{class:"cell-text",style:Le({minHeight:c.cellMinHeight-4+"px"}),innerHTML:H(LF)(x.text)},null,12,Xfe)],12,Efe)),[[il,!H(i).includes(`${A}_${R}`)]])),128))],4))),128))])],6)],4)}}}),Vfe=Ue(Wfe,[["__scopeId","data-v-6d887dcd"]]),Ufe={class:"element-content"},Yfe=Fe({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:"base-element-table",style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",Ufe,[w(Vfe,{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))}}),ZF=Ue(Yfe,[["__scopeId","data-v-77cfa6e4"]]),Qfe={class:"element-content"},Zfe=["width","height","stroke","stroke-width"],Bfe=["transform"],Dfe=["d"],Kfe=Fe({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Y(),ee("div",{class:"base-element-latex",style:Le({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:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",Qfe,[(Y(),ee("svg",{overflow:"visible",width:t.elementInfo.width,height:t.elementInfo.height,stroke:t.elementInfo.color,"stroke-width":t.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${t.elementInfo.width/t.elementInfo.viewBox[0]}, ${t.elementInfo.height/t.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:t.elementInfo.path},null,8,Dfe)],8,Bfe)],8,Zfe))])],4)],4))}}),BF=Ue(Kfe,[["__scopeId","data-v-93374af9"]]),Hfe=Fe({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(t,n)=>{const r=xe("IconPlayOne");return Y(),ee("div",{class:"base-element-video",style:Le({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:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({backgroundImage:t.elementInfo.poster?`url(${t.elementInfo.poster})`:""})},[w(r,{class:"icon"})],4)],4)],4)}}}),Gfe=Ue(Hfe,[["__scopeId","data-v-2fb0e771"]]),zfe={class:"element-content"},Jfe=Fe({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,n=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px");return(r,o)=>{const i=xe("IconVolumeNotice");return Y(),ee("div",{class:"base-element-audio",style:Le({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:Le({transform:`rotate(${r.elementInfo.rotate}deg)`})},[V("div",zfe,[w(i,{class:"audio-icon",style:Le({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),$fe=Ue(Jfe,[["__scopeId","data-v-b33e6120"]]),jfe=Fe({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,n=Me(()=>({[Nt.IMAGE]:WF,[Nt.TEXT]:VF,[Nt.SHAPE]:UF,[Nt.LINE]:YF,[Nt.CHART]:QF,[Nt.TABLE]:ZF,[Nt.LATEX]:BF,[Nt.VIDEO]:Gfe,[Nt.AUDIO]:$fe})[t.elementInfo.type]||null);return(r,o)=>(Y(),ee("div",{class:$e(["base-element",`base-element-${r.elementInfo.id}`]),style:Le({zIndex:r.elementIndex})},[(Y(),we(xs(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),qfe={key:1,class:"placeholder"},ede=Fe({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:n}=Xe(ct()),r=Me(()=>t.slide.background),{backgroundStyle:o}=d2(r),i=Me(()=>t.size/Ht);return Ku(tf,i),(a,s)=>(Y(),ee("div",{class:"thumbnail-slide",style:Le({width:a.size+"px",height:a.size*H(n)+"px"})},[a.visible?(Y(),ee("div",{key:0,class:"elements",style:Le({width:H(Ht)+"px",height:H(Ht)*H(n)+"px",transform:`scale(${i.value})`})},[V("div",{class:"background",style:Le(H(o))},null,4),(Y(!0),ee(Ve,null,it(a.slide.elements,(c,l)=>(Y(),we(jfe,{key:c.id,elementInfo:c,elementIndex:l+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(Y(),ee("div",qfe,"加载中 ..."))],4))}}),Fa=Ue(ede,[["__scopeId","data-v-cbd76d0a"]]),tde=["onClick"],nde=Fe({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=t;return(r,o)=>(Y(),ee("div",{class:$e(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:Le(r.tabsStyle||{})},[(Y(!0),ee(Ve,null,it(r.tabs,i=>(Y(),ee("div",{class:$e(["tab",{active:i.key===r.value}]),key:i.key,style:Le({...r.tabStyle||{},"--color":i.color}),onClick:a=>n("update:value",i.key)},gt(i.label),15,tde))),128))],6))}}),As=Ue(nde,[["__scopeId","data-v-c7f9dce0"]]),rde=Fe({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=()=>{n.disabled||r("click")};return(i,a)=>(Y(),ee("button",{class:$e(["button",{disabled:i.disabled,checked:!i.disabled&&i.checked,default:!i.disabled&&i.type==="default",primary:!i.disabled&&i.type==="primary",checkbox:!i.disabled&&i.type==="checkbox",radio:!i.disabled&&i.type==="radio",small:i.size==="small",first:i.first,last:i.last}]),onClick:a[0]||(a[0]=s=>o())},[cr(i.$slots,"default",{},void 0,!0)],2))}}),et=Ue(rde,[["__scopeId","data-v-3e3d85be"]]),ode={key:0,class:"select-wrap"},ide={class:"selector"},ade={class:"icon"},sde=["onClick"],lde={class:"selector"},cde={class:"icon"},ude=Fe({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=Me(()=>{var f;return((f=n.options.find(d=>d.value===n.value))==null?void 0:f.label)||n.value}),o=t,i=pe(!1),a=pe(),s=pe(0),c=()=>{a.value&&(s.value=a.value.clientWidth)},l=new ResizeObserver(c);Gt(()=>{a.value&&l.observe(a.value)}),On(()=>{a.value&&l.unobserve(a.value)});const u=f=>{f.disabled||(o("update:value",f.value),i.value=!1)};return(f,d)=>{const h=xe("IconDown");return f.disabled?(Y(),ee("div",ode,[V("div",{class:"select disabled",ref_key:"selectRef",ref:a},[V("div",ide,gt(f.value),1),V("div",ade,[cr(f.$slots,"icon",{},()=>[w(h,{size:14})],!0)])],512)])):(Y(),we(kt,{key:1,class:"select-wrap",trigger:"click",value:i.value,"onUpdate:value":d[0]||(d[0]=p=>i.value=p),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:re(()=>[V("div",{class:"options",style:Le({width:s.value+2+"px"})},[(Y(!0),ee(Ve,null,it(f.options,p=>(Y(),ee("div",{class:$e(["option",{disabled:p.disabled,selected:p.value===f.value}]),key:p.value,onClick:m=>u(p)},gt(p.label),11,sde))),128))],4)]),default:re(()=>[V("div",{class:"select",ref_key:"selectRef",ref:a},[V("div",lde,gt(r.value),1),V("div",cde,[cr(f.$slots,"icon",{},()=>[w(h,{size:14})],!0)])],512)]),_:3},8,["value","contentStyle"]))}}}),Zn=Ue(ude,[["__scopeId","data-v-618af0ca"]]),fde=e=>(on("data-v-de4d9db3"),e=e(),an(),e),dde={class:"link-dialog"},hde={key:2,class:"preview"},pde=fde(()=>V("div",null,"预览:",-1)),mde={class:"btns"},vde=Fe({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var p;const n=t,{handleElement:r}=Xe(ft()),{slides:o,currentSlide:i}=Xe(ct()),a=pe("web"),s=pe(""),c=pe(""),l=Me(()=>o.value.map((m,A)=>({label:`幻灯片 ${A+1}`,value:m.id,disabled:i.value.id===m.id})));c.value=((p=o.value.find(m=>m.id!==i.value.id))==null?void 0:p.id)||"";const u=Me(()=>c.value&&o.value.find(m=>m.id===c.value)||null),f=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:d}=XF();Gt(()=>{var m;(m=r.value)!=null&&m.link&&(r.value.link.type==="web"?s.value=r.value.link.target:r.value.link.type==="slide"&&(c.value=r.value.link.target),a.value=r.value.link.type)});const h=()=>{const m={type:a.value,target:a.value==="web"?s.value:c.value};r.value&&(d(r.value,m)?n("close"):s.value="")};return(m,A)=>(Y(),ee("div",dde,[w(As,{tabs:f,value:a.value,"onUpdate:value":A[0]||(A[0]=x=>a.value=x),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(Y(),we(Xu,{key:0,class:"input",value:s.value,"onUpdate:value":A[1]||(A[1]=x=>s.value=x),placeholder:"请输入网页链接地址"},null,8,["value"])):Be("",!0),a.value==="slide"?(Y(),we(Zn,{key:1,class:"input",value:c.value,"onUpdate:value":A[2]||(A[2]=x=>c.value=x),options:l.value},null,8,["value","options"])):Be("",!0),a.value==="slide"&&u.value?(Y(),ee("div",hde,[pde,w(Fa,{class:"thumbnail",slide:u.value,size:500},null,8,["slide"])])):Be("",!0),V("div",mde,[w(et,{onClick:A[3]||(A[3]=x=>n("close")),style:{"margin-right":"10px"}},{default:re(()=>[We("取消")]),_:1}),w(et,{type:"primary",onClick:A[4]||(A[4]=x=>h())},{default:re(()=>[We("确认")]),_:1})])]))}}),gde=Ue(vde,[["__scopeId","data-v-de4d9db3"]]),Ade=Fe({__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}=Yv,r=e,o=pe(),i=t,a=pe(!1),s=Me(()=>({width:r.width+"px",...r.contentStyle||{}}));Tt(()=>r.visible,()=>{r.visible&&Vr(()=>o.value.focus())});const c=()=>{i("update:visible",!1),i("closed")},l=()=>{r.visible&&r.closeOnEsc&&c()},u=()=>{r.closeOnClickMask&&c()};return(f,d)=>(Y(),we(eb,{to:"body"},[w(ku,{name:"modal-fade"},{default:re(()=>[De(V("div",{class:"modal",ref_key:"modalRef",ref:o,tabindex:"-1",onKeyup:d[4]||(d[4]=gc(h=>l(),["esc"]))},[V("div",{class:"mask",onClick:d[0]||(d[0]=h=>u())}),w(ku,{name:"modal-zoom",onAfterLeave:d[2]||(d[2]=h=>a.value=!1),onBeforeEnter:d[3]||(d[3]=h=>a.value=!0)},{default:re(()=>[De(V("div",{class:"modal-content",style:Le(s.value)},[f.closeButton?(Y(),ee("span",{key:0,class:"close-btn",onClick:d[1]||(d[1]=h=>c())},[w(H(n))])):Be("",!0),a.value?cr(f.$slots,"default",{key:1},void 0,!0):Be("",!0)],4),[[il,f.visible]])]),_:3})],544),[[il,f.visible]])]),_:3})]))}}),Zp=Ue(Ade,[["__scopeId","data-v-4d27bcca"]]),Rde={class:"operates"},yde={key:2,class:"drag-mask"},xde=Fe({__name:"index",setup(e){const t=ft(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:o,hiddenElementIdList:i,editorAreaFocus:a,gridLineSize:s,showRuler:c,creatingElement:l,creatingCustomShape:u,canvasScale:f,textFormatPainter:d}=Xe(t),{currentSlide:h}=Xe(ct()),{ctrlKeyState:p,spaceKeyState:m}=Xe(Ss()),A=pe(),x=pe([]),R=pe(!1),y=()=>R.value=!0;Tt(o,()=>{t.setActiveGroupElementId("")});const g=pe([]);Tg(()=>{g.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const L=pe(),{dragViewport:T,viewportStyles:M}=boe(L);Moe(L);const{mouseSelection:O,mouseSelectionVisible:k,mouseSelectionQuadrant:F,updateMouseSelection:N}=Soe(g,A),{dragElement:E}=pI(g,x,f),{dragLineElement:P}=Ooe(g),{selectElement:_}=Loe(g,E),{scaleElement:I,scaleMultiElement:W}=hI(g,x,f),{rotateElement:D}=fI(g,A,f),{moveShapeKeypoint:z}=Toe(g,f),{selectAllElements:ae}=Hg(),{deleteAllElements:U}=kp(),{pasteElement:Z}=Ib(),{enterScreeningFromStart:B}=Mc(),{updateSlideIndex:G}=Dd(),{createTextElement:Q,createShapeElement:ie}=$u();Gt(()=>{n.value.length&&Vr(()=>t.setActiveElementIdList([]))});const q=se=>{n.value.length&&t.setActiveElementIdList([]),m.value?T(se):N(se),a.value||t.setEditorareaFocus(!0),d.value&&t.setTextFormatPainter(null),xoe()},oe=se=>{if(n.value.length||l.value||u.value||!A.value)return;const ge=A.value.getBoundingClientRect(),ce=(se.pageX-ge.x)/f.value,Ae=(se.pageY-ge.y)/f.value;Q({left:ce,top:Ae,width:200/f.value,height:0})};On(()=>{d.value&&t.setTextFormatPainter(null)});const he=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:me}=_b(),ve=_n.throttle(me,100,{leading:!0,trailing:!1}),J=_n.throttle(G,300,{leading:!0,trailing:!1}),ue=se=>{se.preventDefault(),p.value?se.deltaY>0?ve("-"):se.deltaY<0&&ve("+"):se.deltaY>0?J(yt.DOWN):se.deltaY<0&&J(yt.UP)},X=()=>{t.setRulerState(!c.value)},{insertElementFromCreateSelection:te,formatCreateSelection:le}=koe(A),$=se=>{const{start:ge,end:ce,path:Ae,viewBox:ye}=se,Ee=le({start:ge,end:ce});if(Ee){const Se={};se.fill&&(Se.fill=se.fill),se.outline&&(Se.outline=se.outline),ie(Ee,{path:Ae,viewBox:ye},Se)}t.setCreatingCustomShapeState(!1)},j=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Z},{text:"全选",subText:"Ctrl + A",handler:ae},{text:"标尺",subText:c.value?"√":"",handler:X},{text:"网格线",handler:()=>t.setGridLineSize(s.value?0:50),children:[{text:"无",subText:s.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:s.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:s.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:s.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:U},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:B}];return Ku(tf,f),(se,ge)=>{const ce=Mn("contextmenu"),Ae=Mn("click-outside");return De((Y(),ee("div",{class:"canvas",ref_key:"canvasRef",ref:L,onWheel:ge[4]||(ge[4]=ye=>ue(ye)),onMousedown:ge[5]||(ge[5]=ye=>q(ye)),onDblclick:ge[6]||(ge[6]=ye=>oe(ye))},[H(l)?(Y(),we(Nue,{key:0,onCreated:ge[0]||(ge[0]=ye=>H(te)(ye))})):Be("",!0),H(u)?(Y(),we(Fue,{key:1,onCreated:ge[1]||(ge[1]=ye=>$(ye))})):Be("",!0),V("div",{class:"viewport-wrapper",style:Le({width:H(M).width*H(f)+"px",height:H(M).height*H(f)+"px",left:H(M).left+"px",top:H(M).top+"px"})},[V("div",Rde,[(Y(!0),ee(Ve,null,it(x.value,(ye,Ee)=>(Y(),we(EF,{key:Ee,type:ye.type,axis:ye.axis,length:ye.length,canvasScale:H(f)},null,8,["type","axis","length","canvasScale"]))),128)),H(n).length>1?(Y(),we(Wue,{key:0,elementList:g.value,scaleMultiElement:H(W)},null,8,["elementList","scaleMultiElement"])):Be("",!0),(Y(!0),ee(Ve,null,it(g.value,ye=>De((Y(),we(yfe,{key:ye.id,elementInfo:ye,isSelected:H(n).includes(ye.id),isActive:H(o)===ye.id,isActiveGroupElement:H(r)===ye.id,isMultiSelect:H(n).length>1,rotateElement:H(D),scaleElement:H(I),openLinkDialog:y,dragLineElement:H(P),moveShapeKeypoint:H(z)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[il,!H(i).includes(ye.id)]])),128)),w(bue)]),V("div",{class:"viewport",ref_key:"viewportRef",ref:A,style:Le({transform:`scale(${H(f)})`})},[H(k)?(Y(),we(vue,{key:0,top:H(O).top,left:H(O).left,width:H(O).width,height:H(O).height,quadrant:H(F)},null,8,["top","left","width","height","quadrant"])):Be("",!0),(Y(!0),ee(Ve,null,it(g.value,(ye,Ee)=>De((Y(),we(pue,{key:ye.id,elementInfo:ye,elementIndex:Ee+1,isMultiSelect:H(n).length>1,selectElement:H(_),openLinkDialog:y},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[il,!H(i).includes(ye.id)]])),128))],4)],4),H(m)?(Y(),ee("div",yde)):Be("",!0),H(c)?(Y(),we(Lue,{key:3,viewportStyles:H(M)},null,8,["viewportStyles"])):Be("",!0),w(Zp,{visible:R.value,"onUpdate:visible":ge[3]||(ge[3]=ye=>R.value=ye),width:540},{default:re(()=>[w(gde,{onClose:ge[2]||(ge[2]=ye=>R.value=!1)})]),_:1},8,["visible"])],32)),[[ce,j],[Ae,he]])}}}),bde=Ue(xde,[["__scopeId","data-v-47bbcf7b"]]),Sde={class:"shape-item-thumbnail"},Mde={class:"shape-content"},wde={overflow:"visible",width:"18",height:"18"},Lde=["transform"],Ode=["fill","stroke","d"],Tde=Fe({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(Y(),ee("div",Sde,[V("div",Mde,[(Y(),ee("svg",wde,[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:$e(["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,Ode)],8,Lde)]))])]))}}),DF=Ue(Tde,[["__scopeId","data-v-2896ae03"]]),kde={class:"shape-pool"},Nde={class:"category-name"},Pde={class:"shape-list"},Cde=Fe({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Y(),ee("div",kde,[(Y(!0),ee(Ve,null,it(H(Nb),a=>(Y(),ee("div",{class:"category",key:a.type},[V("div",Nde,gt(a.type),1),V("div",Pde,[(Y(!0),ee(Ve,null,it(a.children,(s,c)=>(Y(),we(DF,{class:"shape-item",key:c,shape:s,onClick:l=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),Ide=Ue(Cde,[["__scopeId","data-v-553b0d02"]]),Fde=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],_de={class:"line-pool"},Ede={class:"category-name"},Xde={class:"line-list"},Wde=["onClick"],Vde={overflow:"visible",width:"20",height:"20"},Ude=["d","stroke-dasharray","marker-start","marker-end"],Yde=Fe({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Y(),ee("div",_de,[(Y(!0),ee(Ve,null,it(H(Fde),(a,s)=>(Y(),ee("div",{class:"category",key:a.type},[V("div",Ede,gt(a.type),1),V("div",Xde,[(Y(!0),ee(Ve,null,it(a.children,(c,l)=>(Y(),ee("div",{class:"line-item",key:l},[V("div",{class:"line-content",onClick:u=>r(c)},[(Y(),ee("svg",Vde,[V("defs",null,[c.points[0]?(Y(),we(Fd,{key:0,class:"line-marker",id:`preset-line-${s}-${l}`,position:"start",type:c.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Be("",!0),c.points[1]?(Y(),we(Fd,{key:1,class:"line-marker",id:`preset-line-${s}-${l}`,position:"end",type:c.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Be("",!0)]),V("path",{class:"line-path",d:c.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":c.style==="solid"?"0, 0":"4, 1","marker-start":c.points[0]?`url(#${`preset-line-${s}-${l}`}-${c.points[0]}-start)`:"","marker-end":c.points[1]?`url(#${`preset-line-${s}-${l}`}-${c.points[1]}-end)`:""},null,8,Ude)]))],8,Wde)]))),128))])]))),128))]))}}),Qde=Ue(Yde,[["__scopeId","data-v-b07efd40"]]),Zde={class:"chart-pool"},Bde=["onClick"],Dde=Fe({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,r=["bar","horizontalBar","line","area","scatter","pie","ring"],o=i=>{n("select",i)};return(i,a)=>{const s=xe("IconChartLine"),c=xe("IconChartHistogram"),l=xe("IconChartPie"),u=xe("IconChartHistogramOne"),f=xe("IconChartLineArea"),d=xe("IconChartRing"),h=xe("IconChartScatter");return Y(),ee("ul",Zde,[(Y(),ee(Ve,null,it(r,(p,m)=>V("li",{class:"chart-item",key:m},[V("div",{class:"chart-content",onClick:A=>o(p)},[p==="line"?(Y(),we(s,{key:0,size:"24"})):p==="bar"?(Y(),we(c,{key:1,size:"24"})):p==="pie"?(Y(),we(l,{key:2,size:"24"})):p==="horizontalBar"?(Y(),we(u,{key:3,size:"24"})):p==="area"?(Y(),we(f,{key:4,size:"24"})):p==="ring"?(Y(),we(d,{key:5,size:"24"})):p==="scatter"?(Y(),we(h,{key:6,size:"24"})):Be("",!0)],8,Bde)])),64))])}}}),Kde=Ue(Dde,[["__scopeId","data-v-a4bc3ce2"]]),KF=e=>(on("data-v-246b23f6"),e=e(),an(),e),Hde={class:"prefix"},Gde={class:"input-wrap"},zde=["disabled","placeholder"],Jde={class:"handlers"},$de=KF(()=>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)),jde=[$de],qde=KF(()=>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)),e0e=[qde],t0e={class:"suffix"},n0e=Fe({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{emit:t}){const n=e,r=t,o=pe(0),i=pe(!1);Tt(()=>n.value,()=>{n.value!==o.value&&(o.value=n.value)},{immediate:!0}),Tt(o,()=>{const u=+o.value;if(!isNaN(u)){{if(u>n.max)return;if(u{let u=+o.value;isNaN(u)?u=n.min:u>n.max?u=n.max:u{a(),r("enter",u)},c=u=>{a(),i.value=!1,r("blur",u)},l=u=>{i.value=!0,r("focus",u)};return(u,f)=>(Y(),ee("div",{class:$e(["number-input",{disabled:u.disabled,focused:i.value}])},[V("span",Hde,[cr(u.$slots,"prefix",{},void 0,!0)]),V("div",Gde,[De(V("input",{type:"text",disabled:u.disabled,"onUpdate:modelValue":f[0]||(f[0]=d=>o.value=d),placeholder:u.placeholder,onInput:f[1]||(f[1]=d=>r("input",d)),onFocus:f[2]||(f[2]=d=>l(d)),onBlur:f[3]||(f[3]=d=>c(d)),onChange:f[4]||(f[4]=d=>r("change",d)),onKeydown:f[5]||(f[5]=gc(d=>s(d),["enter"]))},null,40,zde),[[Dh,o.value]]),V("div",Jde,[V("span",{class:"handler",onClick:f[6]||(f[6]=d=>o.value+=u.step)},jde),V("span",{class:"handler",onClick:f[7]||(f[7]=d=>o.value-=u.step)},e0e)])]),V("span",t0e,[cr(u.$slots,"suffix",{},void 0,!0)])],2))}}),Li=Ue(n0e,[["__scopeId","data-v-246b23f6"]]),HF=e=>(on("data-v-81680e19"),e=e(),an(),e),r0e={class:"table-generator"},o0e={class:"title"},i0e={class:"lef"},a0e=["onMouseenter"],s0e={key:1,class:"custom"},l0e={class:"row"},c0e=HF(()=>V("div",{class:"label",style:{width:"25%"}},"行数:",-1)),u0e={class:"row"},f0e=HF(()=>V("div",{class:"label",style:{width:"25%"}},"列数:",-1)),d0e={class:"btns"},h0e=Fe({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,r=pe([]),o=pe(3),i=pe(3),a=pe(!1),s=()=>{if(!r.value.length)return;const[u,f]=r.value;n("insert",{row:u,col:f})},c=()=>{if(o.value<1||o.value>20||i.value<1||i.value>20)return Sn.warning("行数/列数必须在0~20之间!");n("insert",{row:o.value,col:i.value}),a.value=!1},l=()=>{n("close"),a.value=!1};return(u,f)=>(Y(),ee("div",r0e,[V("div",o0e,[V("div",i0e,"表格 "+gt(r.value.length?`${r.value[0]} x ${r.value[1]}`:""),1),V("div",{class:"right",onClick:f[0]||(f[0]=d=>a.value=!a.value)},gt(a.value?"返回":"自定义"),1)]),a.value?(Y(),ee("div",s0e,[V("div",l0e,[c0e,w(Li,{min:1,max:20,value:o.value,"onUpdate:value":f[3]||(f[3]=d=>o.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",u0e,[f0e,w(Li,{min:1,max:20,value:i.value,"onUpdate:value":f[4]||(f[4]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",d0e,[w(et,{class:"btn",onClick:f[5]||(f[5]=d=>l())},{default:re(()=>[We("取消")]),_:1}),w(et,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>c())},{default:re(()=>[We("确认")]),_:1})])])):(Y(),ee("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[V("tbody",null,[(Y(),ee(Ve,null,it(10,d=>V("tr",{key:d},[(Y(),ee(Ve,null,it(10,h=>V("td",{onMouseenter:p=>r.value=[d,h],key:h},[V("div",{class:$e(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,a0e)),64))])),64))])],32))]))}}),p0e=Ue(h0e,[["__scopeId","data-v-81680e19"]]),m0e={class:"media-input"},v0e={class:"btns"},g0e={class:"btns"},A0e=Fe({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const n=t,r=pe("video"),o=pe("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),i=pe("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!o.value)return Sn.error("请先输入正确的视频地址");n("insertVideo",o.value)},c=()=>{if(!i.value)return Sn.error("请先输入正确的音频地址");n("insertAudio",i.value)};return(l,u)=>(Y(),ee("div",m0e,[w(As,{tabs:a,value:r.value,"onUpdate:value":u[0]||(u[0]=f=>r.value=f),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(Y(),ee(Ve,{key:0},[w(Xu,{value:o.value,"onUpdate:value":u[1]||(u[1]=f=>o.value=f),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),V("div",v0e,[w(et,{onClick:u[2]||(u[2]=f=>n("close")),style:{"margin-right":"10px"}},{default:re(()=>[We("取消")]),_:1}),w(et,{type:"primary",onClick:u[3]||(u[3]=f=>s())},{default:re(()=>[We("确认")]),_:1})])],64)):Be("",!0),r.value==="audio"?(Y(),ee(Ve,{key:1},[w(Xu,{value:i.value,"onUpdate:value":u[4]||(u[4]=f=>i.value=f),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),V("div",g0e,[w(et,{onClick:u[5]||(u[5]=f=>n("close")),style:{"margin-right":"10px"}},{default:re(()=>[We("取消")]),_:1}),w(et,{type:"primary",onClick:u[6]||(u[6]=f=>c())},{default:re(()=>[We("确认")]),_:1})])],64)):Be("",!0)]))}}),R0e=Ue(A0e,[["__scopeId","data-v-999b18ca"]]);var Sm=82;function $f(e){return sx[e]==null&&y0e(e),sx[e]}function y0e(e){var t=x0e[e];if(t!=null){for(var n=t.substring(3,5),r=1*n.charCodeAt(0)-Sm,o=1*n.charCodeAt(1)-Sm,i=t.substring(5),a=[[]],s=1/0,c=-1/0,l=1/0,u=-1/0,f=0;ff>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q":2242,"~":2246,"@":2273,"\\":804}[e]}var xi={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function b0e(e){e=e.replace(/\n/g," ");let t=0,n=[],r="";for(;t0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y,e[l].text=="'"?e[l].bbox.y=u:(To(e[l],xi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u-e[l].bbox.h:e[f].text=="\\int"?e[l].bbox.y=u:e[l].bbox.y=u-e[l].bbox.h/2)}else if(e[l].text=="_"){let u=1,f=l;for(;f>0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y+e[f].bbox.h,To(e[l],xi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u:e[f].text=="\\int"?e[l].bbox.y=u-e[l].bbox.h:e[l].bbox.y=u-e[l].bbox.h/2}function n(l,u,f,d,h){let p=l,m=h,A=1/0,x=-1/0;for(;d>0?p=0;){if(e[p].text==u)m++;else if(e[p].text==f){if(m--,m==0)break}else e[p].text=="^"||e[p].text=="_"||e[p].bbox&&(A=Math.min(A,e[p].bbox.y),x=Math.max(x,e[p].bbox.y+e[p].bbox.h));p+=d}return[A,x]}for(let l=0;ll.text=="&"||l.text=="\\\\"))return;let r=[],o=[],i=[];for(let l=0;l0&&(e.chld[R].text=="^"||e.chld[R].text=="_"||e.chld[R].text=="'");)R--;let y=hn[e.chld[R].text]&&hn[e.chld[R].text].flags.big;if(A.text=="'"){let g=R+1,S=0;for(;g1;w0e(e.chld,f);let p=zF(e.chld);e.text=="\\text"&&(p.x-=1,p.w+=2);for(let m=0;mr.bbox.w)u=u/Math.max(a.w,1)*r.bbox.w,u+=r.bbox.x;else{u=u/16*o;let d=(r.bbox.w-a.w/16*o)/2;u+=r.bbox.x+d}if(hn[r.text].flags.yfl)f=(f-a.ymin)/Math.max(a.ymax-a.ymin,1)*r.bbox.h,f+=r.bbox.y;else{if(f=f/16*o,i){let d=(a.ymax+a.ymin)/2;f-=d/16*o}f+=r.bbox.y+r.bbox.h/2}c.push([u,f])}t.push(c)}}else if(hn[r.text]&&hn[r.text].flags.txt||r.type=="char"){let a=r.bbox.x,s=!!(hn[r.text]&&hn[r.text].flags.txt);for(let c=Number(s);c16?h*=16/l.w:h+=(16-l.w)/2/16),h+=a,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}t.push(f)}r.mode=="tt"?a+=o:a+=l.w/16*o}}}return t}function Za(e){return Math.round(e*100)/100}var w5=class{constructor(e){this._latex=e,this._tokens=b0e(e),this._tree=lx(this._tokens),GF(this._tree.chld),Da(this._tree),L0e(this._tree),this._polylines=O0e(this._tree)}resolveScale(e){var t,n,r,o;if(e==null)return[16,16,16,16];let i=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let l=0;for(let f=0;f>startxref %%EOF -`,c+l}boxes(e){e||(e={});let[t,n,r,o]=this.resolveScale(e),i=[];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"}]}],k0e=["width","height"],N0e=["transform"],P0e=["d"],C0e=Fe({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(e){const t=e,n=pe({x:0,y:0,w:0,h:0}),r=pe("");Tt(()=>t.latex,()=>{const i=new w5(t.latex);r.value=i.pathd({}),n.value=i.box({})},{immediate:!0});const o=Me(()=>{const i=n.value.w+32,a=n.value.h+32;return i>t.width||a>t.height?i/a>t.width/t.height?t.width/i:t.height/a:1});return(i,a)=>(Y(),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(${o.value}, ${o.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[V("path",{d:r.value},null,8,P0e)],8,N0e)],8,k0e))}}),NT=Ue(C0e,[["__scopeId","data-v-fa1b116d"]]),I0e=["innerHTML"],F0e=Fe({__name:"SymbolContent",props:{latex:{}},setup(e){const t=e,n=Me(()=>new w5(t.latex).svg({SCALE_X:10,SCALE_Y:10}));return(r,o)=>(Y(),ee("div",{class:"symbol-content",innerHTML:n.value},null,8,I0e))}}),_0e=["disabled","value","rows","placeholder"],E0e=Fe({__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"],setup(e,{expose:t,emit:n}){const r=n,o=s=>{r("update:value",s.target.value)},i=pe();return t({focus:()=>{i.value&&i.value.focus()}}),(s,c)=>(Y(),ee("textarea",{class:$e(["textarea",{disabled:s.disabled,resizable:s.resizable}]),ref_key:"textareaRef",ref:i,disabled:s.disabled,value:s.value,rows:s.rows,placeholder:s.placeholder,style:Le({padding:s.padding?`${s.padding}px`:"10px"}),onInput:c[0]||(c[0]=l=>o(l)),onFocus:c[1]||(c[1]=l=>r("focus",l)),onBlur:c[2]||(c[2]=l=>r("blur",l))},null,46,_0e))}}),cx=Ue(E0e,[["__scopeId","data-v-2b83189c"]]),X0e={class:"latex-editor"},W0e={class:"container"},V0e={class:"left"},U0e={class:"input-area"},Y0e={class:"preview"},Q0e={key:0,class:"placeholder"},Z0e={key:1,class:"preview-content"},B0e={class:"right"},D0e={class:"content"},K0e={key:0,class:"symbol"},H0e={class:"symbol-pool"},G0e=["onClick"],z0e={key:1,class:"formula"},J0e={class:"formula-title"},$0e=["onClick"],j0e={class:"footer"},q0e=Fe({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(e,{emit:t}){const n=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],r=e,o=t,i=T0e,a=Jy.map(p=>({label:p.label,key:p.type})),s=pe(""),c=pe("symbol"),l=pe(),u=pe(Jy[0].type),f=Me(()=>{const p=Jy.find(m=>m.type===u.value);return(p==null?void 0:p.children)||[]});Gt(()=>{r.value&&(s.value=r.value)});const d=()=>{if(!s.value)return Sn.error("公式不能为空");const p=new w5(s.value),m=p.pathd({}),A=p.box({});o("update",{latex:s.value,path:m,w:A.w+32,h:A.h+32})},h=p=>{l.value&&(l.value.focus(),document.execCommand("insertText",!1,p))};return(p,m)=>(Y(),ee("div",X0e,[V("div",W0e,[V("div",V0e,[V("div",U0e,[w(cx,{value:s.value,"onUpdate:value":m[0]||(m[0]=A=>s.value=A),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:l},null,8,["value"])]),V("div",Y0e,[s.value?(Y(),ee("div",Z0e,[w(NT,{width:518,height:138,latex:s.value},null,8,["latex"])])):(Y(),ee("div",Q0e,"公式预览"))])]),V("div",B0e,[w(As,{tabs:n,value:c.value,"onUpdate:value":m[1]||(m[1]=A=>c.value=A),card:""},null,8,["value"]),V("div",D0e,[c.value==="symbol"?(Y(),ee("div",K0e,[w(As,{tabs:H(a),value:u.value,"onUpdate:value":m[2]||(m[2]=A=>u.value=A),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),V("div",H0e,[(Y(!0),ee(Ve,null,it(f.value,A=>(Y(),ee("div",{class:"symbol-item",key:A.latex,onClick:x=>h(A.latex)},[w(F0e,{latex:A.latex},null,8,["latex"])],8,G0e))),128))])])):(Y(),ee("div",z0e,[(Y(!0),ee(Ve,null,it(H(i),A=>(Y(),ee("div",{class:"formula-item",key:A.label},[V("div",J0e,gt(A.label),1),V("div",{class:"formula-item-content",onClick:x=>s.value=A.latex},[w(NT,{width:236,height:60,latex:A.latex},null,8,["latex"])],8,$0e)]))),128))]))])])]),V("div",j0e,[w(et,{class:"btn",onClick:m[3]||(m[3]=A=>o("close"))},{default:re(()=>[We("取消")]),_:1}),w(et,{class:"btn",type:"primary",onClick:m[4]||(m[4]=A=>d())},{default:re(()=>[We("确定")]),_:1})])]))}}),JF=Ue(q0e,[["__scopeId","data-v-44075c46"]]),ehe={class:"canvas-tool"},the={class:"left-handler"},nhe={class:"more"},rhe={class:"add-element-handler"},ohe={class:"handler-item group-btn"},ihe={class:"right-handler"},ahe={class:"text"},she=Fe({__name:"index",setup(e){const t=ft(),{creatingElement:n,creatingCustomShape:r,showSelectPanel:o,showSearchPanel:i,showNotesPanel:a}=Xe(t),{canUndo:s,canRedo:c}=Xe(Bg()),{redo:l,undo:u}=zt(),{scaleCanvas:f,setCanvasScalePercentage:d,resetCanvas:h,canvasScalePercentage:p}=_b(),m=[200,150,125,100,75,50],A=pe(!1),x=Z=>{d(Z),A.value=!1},{createImageElement:R,createChartElement:y,createTableElement:g,createLatexElement:S,createVideoElement:L,createAudioElement:T}=$u(),M=Z=>{const B=Z[0];B&&zu(B).then(G=>R(G))},O=pe(!1),k=pe(!1),F=pe(!1),N=pe(!1),E=pe(!1),P=pe(!1),_=pe(!1),I=(Z=!1)=>{t.setCreatingElement({type:"text",vertical:Z})},W=Z=>{Z.title==="任意多边形"?t.setCreatingCustomShapeState(!0):t.setCreatingElement({type:"shape",data:Z}),O.value=!1},D=Z=>{t.setCreatingElement({type:"line",data:Z}),k.value=!1},z=()=>{t.setSelectPanelState(!o.value)},ae=()=>{t.setSearchPanelState(!i.value)},U=()=>{t.setNotesPanelState(!a.value)};return(Z,B)=>{var Ee;const G=xe("IconBack"),Q=xe("IconNext"),ie=xe("IconComment"),q=xe("IconMoveOne"),oe=xe("IconSearch"),he=xe("IconFontSize"),me=xe("IconTextRotationNone"),ve=xe("IconTextRotationDown"),J=xe("IconDown"),ue=xe("IconPicture"),X=xe("IconGraphicDesign"),te=xe("IconConnection"),le=xe("IconChartProportion"),$=xe("IconInsertTable"),j=xe("IconFormula"),se=xe("IconVideoTwo"),ge=xe("IconMinus"),ce=xe("IconPlus"),Ae=xe("IconFullScreen"),ye=Mn("tooltip");return Y(),ee("div",ehe,[V("div",the,[De(w(G,{class:$e(["handler-item",{disable:!H(s)}]),onClick:B[0]||(B[0]=Se=>H(u)())},null,8,["class"]),[[ye,"撤销"]]),De(w(Q,{class:$e(["handler-item",{disable:!H(c)}]),onClick:B[1]||(B[1]=Se=>H(l)())},null,8,["class"]),[[ye,"重做"]]),V("div",nhe,[w(Ut,{type:"vertical",style:{height:"20px"}}),De(w(ie,{class:$e(["handler-item",{active:H(a)}]),onClick:B[2]||(B[2]=Se=>U())},null,8,["class"]),[[ye,"批注"]]),De(w(q,{class:$e(["handler-item",{active:H(o)}]),onClick:B[3]||(B[3]=Se=>z())},null,8,["class"]),[[ye,"选择窗格"]]),De(w(oe,{class:$e(["handler-item",{active:H(i)}]),onClick:B[4]||(B[4]=Se=>ae())},null,8,["class"]),[[ye,"查找/替换"]])])]),V("div",rhe,[De((Y(),ee("div",ohe,[w(he,{class:$e(["icon",{active:((Ee=H(n))==null?void 0:Ee.type)==="text"}]),onClick:B[5]||(B[5]=Se=>I())},null,8,["class"]),w(kt,{trigger:"click",value:_.value,"onUpdate:value":B[8]||(B[8]=Se=>_.value=Se),style:{height:"100%"}},{content:re(()=>[w(Oo,{center:"",onClick:B[6]||(B[6]=()=>{I(),_.value=!1})},{default:re(()=>[w(me),We(" 横向文本框")]),_:1}),w(Oo,{center:"",onClick:B[7]||(B[7]=()=>{I(!0),_.value=!1})},{default:re(()=>[w(ve),We(" 竖向文本框")]),_:1})]),default:re(()=>[w(J,{class:"arrow"})]),_:1},8,["value"])])),[[ye,"插入文字"]]),w(Eu,{onChange:B[9]||(B[9]=Se=>M(Se))},{default:re(()=>[De(w(ue,{class:"handler-item"},null,512),[[ye,"插入图片"]])]),_:1}),w(kt,{trigger:"click",value:O.value,"onUpdate:value":B[11]||(B[11]=Se=>O.value=Se)},{content:re(()=>[w(Ide,{onSelect:B[10]||(B[10]=Se=>W(Se))})]),default:re(()=>{var Se;return[De(w(X,{class:$e(["handler-item",{active:H(r)||((Se=H(n))==null?void 0:Se.type)==="shape"}])},null,8,["class"]),[[ye,"插入形状"]])]}),_:1},8,["value"]),w(kt,{trigger:"click",value:k.value,"onUpdate:value":B[13]||(B[13]=Se=>k.value=Se)},{content:re(()=>[w(Qde,{onSelect:B[12]||(B[12]=Se=>D(Se))})]),default:re(()=>{var Se;return[De(w(te,{class:$e(["handler-item",{active:((Se=H(n))==null?void 0:Se.type)==="line"}])},null,8,["class"]),[[ye,"插入线条"]])]}),_:1},8,["value"]),w(kt,{trigger:"click",value:F.value,"onUpdate:value":B[15]||(B[15]=Se=>F.value=Se)},{content:re(()=>[w(Kde,{onSelect:B[14]||(B[14]=Se=>{H(y)(Se),F.value=!1})})]),default:re(()=>[De(w(le,{class:"handler-item"},null,512),[[ye,"插入图表"]])]),_:1},8,["value"]),w(kt,{trigger:"click",value:N.value,"onUpdate:value":B[18]||(B[18]=Se=>N.value=Se)},{content:re(()=>[w(p0e,{onClose:B[16]||(B[16]=Se=>N.value=!1),onInsert:B[17]||(B[17]=({row:Se,col:be})=>{H(g)(Se,be),N.value=!1})})]),default:re(()=>[De(w($,{class:"handler-item"},null,512),[[ye,"插入表格"]])]),_:1},8,["value"]),De(w(j,{class:"handler-item",onClick:B[19]||(B[19]=Se=>P.value=!0)},null,512),[[ye,"插入公式"]]),w(kt,{trigger:"click",value:E.value,"onUpdate:value":B[23]||(B[23]=Se=>E.value=Se)},{content:re(()=>[w(R0e,{onClose:B[20]||(B[20]=Se=>E.value=!1),onInsertVideo:B[21]||(B[21]=Se=>{H(L)(Se),E.value=!1}),onInsertAudio:B[22]||(B[22]=Se=>{H(T)(Se),E.value=!1})})]),default:re(()=>[De(w(se,{class:"handler-item"},null,512),[[ye,"插入音视频"]])]),_:1},8,["value"])]),V("div",ihe,[w(ge,{class:"handler-item viewport-size",onClick:B[24]||(B[24]=Se=>H(f)("-"))}),w(kt,{trigger:"click",value:A.value,"onUpdate:value":B[26]||(B[26]=Se=>A.value=Se)},{content:re(()=>[(Y(),ee(Ve,null,it(m,Se=>w(Oo,{center:"",key:Se,onClick:be=>x(Se)},{default:re(()=>[We(gt(Se)+"%",1)]),_:2},1032,["onClick"])),64)),w(Oo,{center:"",onClick:B[25]||(B[25]=Se=>H(h)())},{default:re(()=>[We("适应屏幕")]),_:1})]),default:re(()=>[V("span",ahe,gt(H(p)),1)]),_:1},8,["value"]),w(ce,{class:"handler-item viewport-size",onClick:B[27]||(B[27]=Se=>H(f)("+"))}),De(w(Ae,{class:"handler-item viewport-size-adaptation",onClick:B[28]||(B[28]=Se=>H(h)())},null,512),[[ye,"适应屏幕"]])]),w(Zp,{visible:P.value,"onUpdate:visible":B[31]||(B[31]=Se=>P.value=Se),width:880},{default:re(()=>[w(JF,{onClose:B[29]||(B[29]=Se=>P.value=!1),onUpdate:B[30]||(B[30]=Se=>{H(S)(Se),P.value=!1})})]),_:1},8,["visible"])])}}}),lhe=Ue(she,[["__scopeId","data-v-f177f23a"]]),Bp=()=>{const{slides:e}=Xe(ct()),t=pe(null),n=pe(50),r=()=>{e.value.length>n.value?t.value=setTimeout(()=>{n.value=n.value+20,r()},600):n.value=9999};return Gt(r),Tn(()=>{t.value&&clearTimeout(t.value)}),{slidesLoadLimit:n}},che={class:"layout-pool"},uhe=["onClick"],fhe=Fe({__name:"LayoutPool",emits:["select"],setup(e,{emit:t}){const n=t,{layouts:r}=Xe(ct()),o=i=>{n("select",i)};return(i,a)=>(Y(),ee("div",che,[(Y(!0),ee(Ve,null,it(H(r),s=>(Y(),ee("div",{class:"layout-item",key:s.id,onClick:c=>o(s)},[w(Fa,{class:"thumbnail",slide:s,size:180},null,8,["slide"])],8,uhe))),128))]))}}),dhe=Ue(fhe,[["__scopeId","data-v-0166cc70"]]);var $F={exports:{}};const hhe=fb(FK);/**! +`,c+l}boxes(e){e||(e={});let[t,n,r,o]=this.resolveScale(e),i=[];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"}]}],k0e=["width","height"],N0e=["transform"],P0e=["d"],C0e=Fe({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(e){const t=e,n=pe({x:0,y:0,w:0,h:0}),r=pe("");Tt(()=>t.latex,()=>{const i=new w5(t.latex);r.value=i.pathd({}),n.value=i.box({})},{immediate:!0});const o=Me(()=>{const i=n.value.w+32,a=n.value.h+32;return i>t.width||a>t.height?i/a>t.width/t.height?t.width/i:t.height/a:1});return(i,a)=>(Y(),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(${o.value}, ${o.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[V("path",{d:r.value},null,8,P0e)],8,N0e)],8,k0e))}}),NT=Ue(C0e,[["__scopeId","data-v-fa1b116d"]]),I0e=["innerHTML"],F0e=Fe({__name:"SymbolContent",props:{latex:{}},setup(e){const t=e,n=Me(()=>new w5(t.latex).svg({SCALE_X:10,SCALE_Y:10}));return(r,o)=>(Y(),ee("div",{class:"symbol-content",innerHTML:n.value},null,8,I0e))}}),_0e=["disabled","value","rows","placeholder"],E0e=Fe({__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"],setup(e,{expose:t,emit:n}){const r=n,o=s=>{r("update:value",s.target.value)},i=pe();return t({focus:()=>{i.value&&i.value.focus()}}),(s,c)=>(Y(),ee("textarea",{class:$e(["textarea",{disabled:s.disabled,resizable:s.resizable}]),ref_key:"textareaRef",ref:i,disabled:s.disabled,value:s.value,rows:s.rows,placeholder:s.placeholder,style:Le({padding:s.padding?`${s.padding}px`:"10px"}),onInput:c[0]||(c[0]=l=>o(l)),onFocus:c[1]||(c[1]=l=>r("focus",l)),onBlur:c[2]||(c[2]=l=>r("blur",l))},null,46,_0e))}}),cx=Ue(E0e,[["__scopeId","data-v-2b83189c"]]),X0e={class:"latex-editor"},W0e={class:"container"},V0e={class:"left"},U0e={class:"input-area"},Y0e={class:"preview"},Q0e={key:0,class:"placeholder"},Z0e={key:1,class:"preview-content"},B0e={class:"right"},D0e={class:"content"},K0e={key:0,class:"symbol"},H0e={class:"symbol-pool"},G0e=["onClick"],z0e={key:1,class:"formula"},J0e={class:"formula-title"},$0e=["onClick"],j0e={class:"footer"},q0e=Fe({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(e,{emit:t}){const n=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],r=e,o=t,i=T0e,a=Jy.map(p=>({label:p.label,key:p.type})),s=pe(""),c=pe("symbol"),l=pe(),u=pe(Jy[0].type),f=Me(()=>{const p=Jy.find(m=>m.type===u.value);return(p==null?void 0:p.children)||[]});Gt(()=>{r.value&&(s.value=r.value)});const d=()=>{if(!s.value)return Sn.error("公式不能为空");const p=new w5(s.value),m=p.pathd({}),A=p.box({});o("update",{latex:s.value,path:m,w:A.w+32,h:A.h+32})},h=p=>{l.value&&(l.value.focus(),document.execCommand("insertText",!1,p))};return(p,m)=>(Y(),ee("div",X0e,[V("div",W0e,[V("div",V0e,[V("div",U0e,[w(cx,{value:s.value,"onUpdate:value":m[0]||(m[0]=A=>s.value=A),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:l},null,8,["value"])]),V("div",Y0e,[s.value?(Y(),ee("div",Z0e,[w(NT,{width:518,height:138,latex:s.value},null,8,["latex"])])):(Y(),ee("div",Q0e,"公式预览"))])]),V("div",B0e,[w(As,{tabs:n,value:c.value,"onUpdate:value":m[1]||(m[1]=A=>c.value=A),card:""},null,8,["value"]),V("div",D0e,[c.value==="symbol"?(Y(),ee("div",K0e,[w(As,{tabs:H(a),value:u.value,"onUpdate:value":m[2]||(m[2]=A=>u.value=A),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),V("div",H0e,[(Y(!0),ee(Ve,null,it(f.value,A=>(Y(),ee("div",{class:"symbol-item",key:A.latex,onClick:x=>h(A.latex)},[w(F0e,{latex:A.latex},null,8,["latex"])],8,G0e))),128))])])):(Y(),ee("div",z0e,[(Y(!0),ee(Ve,null,it(H(i),A=>(Y(),ee("div",{class:"formula-item",key:A.label},[V("div",J0e,gt(A.label),1),V("div",{class:"formula-item-content",onClick:x=>s.value=A.latex},[w(NT,{width:236,height:60,latex:A.latex},null,8,["latex"])],8,$0e)]))),128))]))])])]),V("div",j0e,[w(et,{class:"btn",onClick:m[3]||(m[3]=A=>o("close"))},{default:re(()=>[We("取消")]),_:1}),w(et,{class:"btn",type:"primary",onClick:m[4]||(m[4]=A=>d())},{default:re(()=>[We("确定")]),_:1})])]))}}),JF=Ue(q0e,[["__scopeId","data-v-44075c46"]]),ehe={class:"canvas-tool"},the={class:"left-handler"},nhe={class:"more"},rhe={class:"add-element-handler"},ohe={class:"handler-item group-btn"},ihe={class:"right-handler"},ahe={class:"text"},she=Fe({__name:"index",setup(e){const t=ft(),{creatingElement:n,creatingCustomShape:r,showSelectPanel:o,showSearchPanel:i,showNotesPanel:a}=Xe(t),{canUndo:s,canRedo:c}=Xe(Bg()),{redo:l,undo:u}=zt(),{scaleCanvas:f,setCanvasScalePercentage:d,resetCanvas:h,canvasScalePercentage:p}=_b(),m=[200,150,125,100,75,50],A=pe(!1),x=Z=>{d(Z),A.value=!1},{createImageElement:R,createChartElement:y,createTableElement:g,createLatexElement:S,createVideoElement:L,createAudioElement:T}=$u(),M=Z=>{const B=Z[0];B&&zu(B).then(G=>R(G))},O=pe(!1),k=pe(!1),F=pe(!1),N=pe(!1),E=pe(!1),P=pe(!1),_=pe(!1),I=(Z=!1)=>{t.setCreatingElement({type:"text",vertical:Z})},W=Z=>{Z.title==="任意多边形"?t.setCreatingCustomShapeState(!0):t.setCreatingElement({type:"shape",data:Z}),O.value=!1},D=Z=>{t.setCreatingElement({type:"line",data:Z}),k.value=!1},z=()=>{t.setSelectPanelState(!o.value)},ae=()=>{t.setSearchPanelState(!i.value)},U=()=>{t.setNotesPanelState(!a.value)};return(Z,B)=>{var Ee;const G=xe("IconBack"),Q=xe("IconNext"),ie=xe("IconComment"),q=xe("IconMoveOne"),oe=xe("IconSearch"),he=xe("IconFontSize"),me=xe("IconTextRotationNone"),ve=xe("IconTextRotationDown"),J=xe("IconDown"),ue=xe("IconPicture"),X=xe("IconGraphicDesign"),te=xe("IconConnection"),le=xe("IconChartProportion"),$=xe("IconInsertTable"),j=xe("IconFormula"),se=xe("IconVideoTwo"),ge=xe("IconMinus"),ce=xe("IconPlus"),Ae=xe("IconFullScreen"),ye=Mn("tooltip");return Y(),ee("div",ehe,[V("div",the,[De(w(G,{class:$e(["handler-item",{disable:!H(s)}]),onClick:B[0]||(B[0]=Se=>H(u)())},null,8,["class"]),[[ye,"撤销"]]),De(w(Q,{class:$e(["handler-item",{disable:!H(c)}]),onClick:B[1]||(B[1]=Se=>H(l)())},null,8,["class"]),[[ye,"重做"]]),V("div",nhe,[w(Ut,{type:"vertical",style:{height:"20px"}}),De(w(ie,{class:$e(["handler-item",{active:H(a)}]),onClick:B[2]||(B[2]=Se=>U())},null,8,["class"]),[[ye,"批注"]]),De(w(q,{class:$e(["handler-item",{active:H(o)}]),onClick:B[3]||(B[3]=Se=>z())},null,8,["class"]),[[ye,"选择窗格"]]),De(w(oe,{class:$e(["handler-item",{active:H(i)}]),onClick:B[4]||(B[4]=Se=>ae())},null,8,["class"]),[[ye,"查找/替换"]])])]),V("div",rhe,[De((Y(),ee("div",ohe,[w(he,{class:$e(["icon",{active:((Ee=H(n))==null?void 0:Ee.type)==="text"}]),onClick:B[5]||(B[5]=Se=>I())},null,8,["class"]),w(kt,{trigger:"click",value:_.value,"onUpdate:value":B[8]||(B[8]=Se=>_.value=Se),style:{height:"100%"}},{content:re(()=>[w(Oo,{center:"",onClick:B[6]||(B[6]=()=>{I(),_.value=!1})},{default:re(()=>[w(me),We(" 横向文本框")]),_:1}),w(Oo,{center:"",onClick:B[7]||(B[7]=()=>{I(!0),_.value=!1})},{default:re(()=>[w(ve),We(" 竖向文本框")]),_:1})]),default:re(()=>[w(J,{class:"arrow"})]),_:1},8,["value"])])),[[ye,"插入文字"]]),w(Eu,{onChange:B[9]||(B[9]=Se=>M(Se))},{default:re(()=>[De(w(ue,{class:"handler-item"},null,512),[[ye,"插入图片"]])]),_:1}),w(kt,{trigger:"click",value:O.value,"onUpdate:value":B[11]||(B[11]=Se=>O.value=Se)},{content:re(()=>[w(Ide,{onSelect:B[10]||(B[10]=Se=>W(Se))})]),default:re(()=>{var Se;return[De(w(X,{class:$e(["handler-item",{active:H(r)||((Se=H(n))==null?void 0:Se.type)==="shape"}])},null,8,["class"]),[[ye,"插入形状"]])]}),_:1},8,["value"]),w(kt,{trigger:"click",value:k.value,"onUpdate:value":B[13]||(B[13]=Se=>k.value=Se)},{content:re(()=>[w(Qde,{onSelect:B[12]||(B[12]=Se=>D(Se))})]),default:re(()=>{var Se;return[De(w(te,{class:$e(["handler-item",{active:((Se=H(n))==null?void 0:Se.type)==="line"}])},null,8,["class"]),[[ye,"插入线条"]])]}),_:1},8,["value"]),w(kt,{trigger:"click",value:F.value,"onUpdate:value":B[15]||(B[15]=Se=>F.value=Se)},{content:re(()=>[w(Kde,{onSelect:B[14]||(B[14]=Se=>{H(y)(Se),F.value=!1})})]),default:re(()=>[De(w(le,{class:"handler-item"},null,512),[[ye,"插入图表"]])]),_:1},8,["value"]),w(kt,{trigger:"click",value:N.value,"onUpdate:value":B[18]||(B[18]=Se=>N.value=Se)},{content:re(()=>[w(p0e,{onClose:B[16]||(B[16]=Se=>N.value=!1),onInsert:B[17]||(B[17]=({row:Se,col:be})=>{H(g)(Se,be),N.value=!1})})]),default:re(()=>[De(w($,{class:"handler-item"},null,512),[[ye,"插入表格"]])]),_:1},8,["value"]),De(w(j,{class:"handler-item",onClick:B[19]||(B[19]=Se=>P.value=!0)},null,512),[[ye,"插入公式"]]),w(kt,{trigger:"click",value:E.value,"onUpdate:value":B[23]||(B[23]=Se=>E.value=Se)},{content:re(()=>[w(R0e,{onClose:B[20]||(B[20]=Se=>E.value=!1),onInsertVideo:B[21]||(B[21]=Se=>{H(L)(Se),E.value=!1}),onInsertAudio:B[22]||(B[22]=Se=>{H(T)(Se),E.value=!1})})]),default:re(()=>[De(w(se,{class:"handler-item"},null,512),[[ye,"插入音视频"]])]),_:1},8,["value"])]),V("div",ihe,[w(ge,{class:"handler-item viewport-size",onClick:B[24]||(B[24]=Se=>H(f)("-"))}),w(kt,{trigger:"click",value:A.value,"onUpdate:value":B[26]||(B[26]=Se=>A.value=Se)},{content:re(()=>[(Y(),ee(Ve,null,it(m,Se=>w(Oo,{center:"",key:Se,onClick:be=>x(Se)},{default:re(()=>[We(gt(Se)+"%",1)]),_:2},1032,["onClick"])),64)),w(Oo,{center:"",onClick:B[25]||(B[25]=Se=>H(h)())},{default:re(()=>[We("适应屏幕")]),_:1})]),default:re(()=>[V("span",ahe,gt(H(p)),1)]),_:1},8,["value"]),w(ce,{class:"handler-item viewport-size",onClick:B[27]||(B[27]=Se=>H(f)("+"))}),De(w(Ae,{class:"handler-item viewport-size-adaptation",onClick:B[28]||(B[28]=Se=>H(h)())},null,512),[[ye,"适应屏幕"]])]),w(Zp,{visible:P.value,"onUpdate:visible":B[31]||(B[31]=Se=>P.value=Se),width:880},{default:re(()=>[w(JF,{onClose:B[29]||(B[29]=Se=>P.value=!1),onUpdate:B[30]||(B[30]=Se=>{H(S)(Se),P.value=!1})})]),_:1},8,["visible"])])}}}),lhe=Ue(she,[["__scopeId","data-v-f177f23a"]]),Bp=()=>{const{slides:e}=Xe(ct()),t=pe(null),n=pe(50),r=()=>{e.value.length>n.value?t.value=setTimeout(()=>{n.value=n.value+20,r()},600):n.value=9999};return Gt(r),On(()=>{t.value&&clearTimeout(t.value)}),{slidesLoadLimit:n}},che={class:"layout-pool"},uhe=["onClick"],fhe=Fe({__name:"LayoutPool",emits:["select"],setup(e,{emit:t}){const n=t,{layouts:r}=Xe(ct()),o=i=>{n("select",i)};return(i,a)=>(Y(),ee("div",che,[(Y(!0),ee(Ve,null,it(H(r),s=>(Y(),ee("div",{class:"layout-item",key:s.id,onClick:c=>o(s)},[w(Fa,{class:"thumbnail",slide:s,size:180},null,8,["slide"])],8,uhe))),128))]))}}),dhe=Ue(fhe,[["__scopeId","data-v-0166cc70"]]);var $F={exports:{}};const hhe=fb(FK);/**! * Sortable 1.14.0 * @author RubaXa * @author owenm @@ -152,7 +152,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `)&&(O="(?: "+O+")",F=" "+F,k++),g=new RegExp("^(?:"+O+")",M)),p&&(g=new RegExp("^"+O+"$(?!\\s)",M)),d&&(y=R.lastIndex),S=l.call(T?g:R,F),T?S?(S.input=S.input.slice(k),S[0]=S[0].slice(k),S.index=R.lastIndex,R.lastIndex+=S[0].length):R.lastIndex=0:d&&S&&(R.lastIndex=R.global?S.index+S[0].length:y),p&&S&&S.length>1&&u.call(S[0],g,function(){for(L=1;L=51||!c(function(){var O=[];return O[R]=!1,O.concat()[0]!==O}),L=m("concat"),T=function(O){if(!u(O))return!1;var k=O[R];return k!==void 0?!!k:l(O)},M=!S||!L;s({target:"Array",proto:!0,forced:M},{concat:function(k){var F=f(this),N=p(F,0),E=0,P,_,I,W,D;for(P=-1,I=arguments.length;Py)throw TypeError(g);for(_=0;_=y)throw TypeError(g);h(N,E++,D)}return N.length=E,N}})},"9bdd":function(o,i,a){var s=a("825a");o.exports=function(c,l,u,f){try{return f?l(s(u)[0],u[1]):l(u)}catch(h){var d=c.return;throw d!==void 0&&s(d.call(c)),h}}},"9bf2":function(o,i,a){var s=a("83ab"),c=a("0cfb"),l=a("825a"),u=a("c04e"),f=Object.defineProperty;i.f=s?f:function(h,p,m){if(l(h),p=u(p,!0),l(m),c)try{return f(h,p,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[p]=m.value),h}},"9ed3":function(o,i,a){var s=a("ae93").IteratorPrototype,c=a("7c73"),l=a("5c6c"),u=a("d44e"),f=a("3f8c"),d=function(){return this};o.exports=function(h,p,m){var A=p+" Iterator";return h.prototype=c(s,{next:l(1,m)}),u(h,A,!1,!0),f[A]=d,h}},"9f7f":function(o,i,a){var s=a("d039");function c(l,u){return RegExp(l,u)}i.UNSUPPORTED_Y=s(function(){var l=c("a","y");return l.lastIndex=2,l.exec("abcd")!=null}),i.BROKEN_CARET=s(function(){var l=c("^r","gy");return l.lastIndex=2,l.exec("str")!=null})},a2bf:function(o,i,a){var s=a("e8b5"),c=a("50c4"),l=a("0366"),u=function(f,d,h,p,m,A,x,R){for(var y=m,g=0,S=x?l(x,R,3):!1,L;g0&&s(L))y=u(f,d,L,c(L.length),y,A-1)-1;else{if(y>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[y]=L}y++}g++}return y};o.exports=u},a352:function(o,i){o.exports=r},a434:function(o,i,a){var s=a("23e7"),c=a("23cb"),l=a("a691"),u=a("50c4"),f=a("7b0b"),d=a("65f0"),h=a("8418"),p=a("1dde"),m=a("ae40"),A=p("splice"),x=m("splice",{ACCESSORS:!0,0:0,1:2}),R=Math.max,y=Math.min,g=9007199254740991,S="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!A||!x},{splice:function(T,M){var O=f(this),k=u(O.length),F=c(T,k),N=arguments.length,E,P,_,I,W,D;if(N===0?E=P=0:N===1?(E=0,P=k-F):(E=N-2,P=y(R(l(M),0),k-F)),k+E-P>g)throw TypeError(S);for(_=d(O,P),I=0;Ik-P+E;I--)delete O[I-1]}else if(E>P)for(I=k-P;I>F;I--)W=I+P-1,D=I+E-1,W in O?O[D]=O[W]:delete O[D];for(I=0;IPn;)Qt.push(arguments[Pn++]);if(aa=At,!(!x(At)&&ht===void 0||Te(ht)))return A(At)||(At=function(Ea,io){if(typeof aa=="function"&&(io=aa.call(this,Ea,io)),!Te(io))return io}),Qt[1]=At,te.apply(null,Qt)}})}X[he][me]||_(X[he],me,X[he].valueOf),G(X,oe),z[q]=!0},a630:function(o,i,a){var s=a("23e7"),c=a("4df4"),l=a("1c7e"),u=!l(function(f){Array.from(f)});s({target:"Array",stat:!0,forced:u},{from:c})},a640:function(o,i,a){var s=a("d039");o.exports=function(c,l){var u=[][c];return!!u&&s(function(){u.call(null,l||function(){throw 1},1)})}},a691:function(o,i){var a=Math.ceil,s=Math.floor;o.exports=function(c){return isNaN(c=+c)?0:(c>0?s:a)(c)}},ab13:function(o,i,a){var s=a("b622"),c=s("match");o.exports=function(l){var u=/./;try{"/./"[l](u)}catch{try{return u[c]=!1,"/./"[l](u)}catch{}}return!1}},ac1f:function(o,i,a){var s=a("23e7"),c=a("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==c},{exec:c})},ad6d:function(o,i,a){var s=a("825a");o.exports=function(){var c=s(this),l="";return c.global&&(l+="g"),c.ignoreCase&&(l+="i"),c.multiline&&(l+="m"),c.dotAll&&(l+="s"),c.unicode&&(l+="u"),c.sticky&&(l+="y"),l}},ae40:function(o,i,a){var s=a("83ab"),c=a("d039"),l=a("5135"),u=Object.defineProperty,f={},d=function(h){throw h};o.exports=function(h,p){if(l(f,h))return f[h];p||(p={});var m=[][h],A=l(p,"ACCESSORS")?p.ACCESSORS:!1,x=l(p,0)?p[0]:d,R=l(p,1)?p[1]:void 0;return f[h]=!!m&&!c(function(){if(A&&!s)return!0;var y={length:-1};A?u(y,1,{enumerable:!0,get:d}):y[1]=1,m.call(y,x,R)})}},ae93:function(o,i,a){var s=a("e163"),c=a("9112"),l=a("5135"),u=a("b622"),f=a("c430"),d=u("iterator"),h=!1,p=function(){return this},m,A,x;[].keys&&(x=[].keys(),"next"in x?(A=s(s(x)),A!==Object.prototype&&(m=A)):h=!0),m==null&&(m={}),!f&&!l(m,d)&&c(m,d,p),o.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:h}},b041:function(o,i,a){var s=a("00ee"),c=a("f5df");o.exports=s?{}.toString:function(){return"[object "+c(this)+"]"}},b0c0:function(o,i,a){var s=a("83ab"),c=a("9bf2").f,l=Function.prototype,u=l.toString,f=/^\s*function ([^ (]*)/,d="name";s&&!(d in l)&&c(l,d,{configurable:!0,get:function(){try{return u.call(this).match(f)[1]}catch{return""}}})},b622:function(o,i,a){var s=a("da84"),c=a("5692"),l=a("5135"),u=a("90e3"),f=a("4930"),d=a("fdbf"),h=c("wks"),p=s.Symbol,m=d?p:p&&p.withoutSetter||u;o.exports=function(A){return l(h,A)||(f&&l(p,A)?h[A]=p[A]:h[A]=m("Symbol."+A)),h[A]}},b64b:function(o,i,a){var s=a("23e7"),c=a("7b0b"),l=a("df75"),u=a("d039"),f=u(function(){l(1)});s({target:"Object",stat:!0,forced:f},{keys:function(h){return l(c(h))}})},b727:function(o,i,a){var s=a("0366"),c=a("44ad"),l=a("7b0b"),u=a("50c4"),f=a("65f0"),d=[].push,h=function(p){var m=p==1,A=p==2,x=p==3,R=p==4,y=p==6,g=p==5||y;return function(S,L,T,M){for(var O=l(S),k=c(O),F=s(L,T,3),N=u(k.length),E=0,P=M||f,_=m?P(S,N):A?P(S,0):void 0,I,W;N>E;E++)if((g||E in k)&&(I=k[E],W=F(I,E,O),p)){if(m)_[E]=W;else if(W)switch(p){case 3:return!0;case 5:return I;case 6:return E;case 2:d.call(_,I)}else if(R)return!1}return y?-1:x||R?R:_}};o.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(o,i,a){var s=a("861d");o.exports=function(c,l){if(!s(c))return c;var u,f;if(l&&typeof(u=c.toString)=="function"&&!s(f=u.call(c))||typeof(u=c.valueOf)=="function"&&!s(f=u.call(c))||!l&&typeof(u=c.toString)=="function"&&!s(f=u.call(c)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(o,i){o.exports=!1},c6b6:function(o,i){var a={}.toString;o.exports=function(s){return a.call(s).slice(8,-1)}},c6cd:function(o,i,a){var s=a("da84"),c=a("ce4e"),l="__core-js_shared__",u=s[l]||c(l,{});o.exports=u},c740:function(o,i,a){var s=a("23e7"),c=a("b727").findIndex,l=a("44d2"),u=a("ae40"),f="findIndex",d=!0,h=u(f);f in[]&&Array(1)[f](function(){d=!1}),s({target:"Array",proto:!0,forced:d||!h},{findIndex:function(m){return c(this,m,arguments.length>1?arguments[1]:void 0)}}),l(f)},c8ba:function(o,i){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}o.exports=a},c975:function(o,i,a){var s=a("23e7"),c=a("4d64").indexOf,l=a("a640"),u=a("ae40"),f=[].indexOf,d=!!f&&1/[1].indexOf(1,-0)<0,h=l("indexOf"),p=u("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:d||!h||!p},{indexOf:function(A){return d?f.apply(this,arguments)||0:c(this,A,arguments.length>1?arguments[1]:void 0)}})},ca84:function(o,i,a){var s=a("5135"),c=a("fc6a"),l=a("4d64").indexOf,u=a("d012");o.exports=function(f,d){var h=c(f),p=0,m=[],A;for(A in h)!s(u,A)&&s(h,A)&&m.push(A);for(;d.length>p;)s(h,A=d[p++])&&(~l(m,A)||m.push(A));return m}},caad:function(o,i,a){var s=a("23e7"),c=a("4d64").includes,l=a("44d2"),u=a("ae40"),f=u("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!f},{includes:function(h){return c(this,h,arguments.length>1?arguments[1]:void 0)}}),l("includes")},cc12:function(o,i,a){var s=a("da84"),c=a("861d"),l=s.document,u=c(l)&&c(l.createElement);o.exports=function(f){return u?l.createElement(f):{}}},ce4e:function(o,i,a){var s=a("da84"),c=a("9112");o.exports=function(l,u){try{c(s,l,u)}catch{s[l]=u}return u}},d012:function(o,i){o.exports={}},d039:function(o,i){o.exports=function(a){try{return!!a()}catch{return!0}}},d066:function(o,i,a){var s=a("428f"),c=a("da84"),l=function(u){return typeof u=="function"?u:void 0};o.exports=function(u,f){return arguments.length<2?l(s[u])||l(c[u]):s[u]&&s[u][f]||c[u]&&c[u][f]}},d1e7:function(o,i,a){var s={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,l=c&&!s.call({1:2},1);i.f=l?function(f){var d=c(this,f);return!!d&&d.enumerable}:s},d28b:function(o,i,a){var s=a("746f");s("iterator")},d2bb:function(o,i,a){var s=a("825a"),c=a("3bbe");o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l=!1,u={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(u,[]),l=u instanceof Array}catch{}return function(h,p){return s(h),c(p),l?f.call(h,p):h.__proto__=p,h}}():void 0)},d3b7:function(o,i,a){var s=a("00ee"),c=a("6eeb"),l=a("b041");s||c(Object.prototype,"toString",l,{unsafe:!0})},d44e:function(o,i,a){var s=a("9bf2").f,c=a("5135"),l=a("b622"),u=l("toStringTag");o.exports=function(f,d,h){f&&!c(f=h?f:f.prototype,u)&&s(f,u,{configurable:!0,value:d})}},d58f:function(o,i,a){var s=a("1c0b"),c=a("7b0b"),l=a("44ad"),u=a("50c4"),f=function(d){return function(h,p,m,A){s(p);var x=c(h),R=l(x),y=u(x.length),g=d?y-1:0,S=d?-1:1;if(m<2)for(;;){if(g in R){A=R[g],g+=S;break}if(g+=S,d?g<0:y<=g)throw TypeError("Reduce of empty array with no initial value")}for(;d?g>=0:y>g;g+=S)g in R&&(A=p(A,R[g],g,x));return A}};o.exports={left:f(!1),right:f(!0)}},d784:function(o,i,a){a("ac1f");var s=a("6eeb"),c=a("d039"),l=a("b622"),u=a("9263"),f=a("9112"),d=l("species"),h=!c(function(){var R=/./;return R.exec=function(){var y=[];return y.groups={a:"7"},y},"".replace(R,"$")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),m=l("replace"),A=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),x=!c(function(){var R=/(?:)/,y=R.exec;R.exec=function(){return y.apply(this,arguments)};var g="ab".split(R);return g.length!==2||g[0]!=="a"||g[1]!=="b"});o.exports=function(R,y,g,S){var L=l(R),T=!c(function(){var E={};return E[L]=function(){return 7},""[R](E)!=7}),M=T&&!c(function(){var E=!1,P=/a/;return R==="split"&&(P={},P.constructor={},P.constructor[d]=function(){return P},P.flags="",P[L]=/./[L]),P.exec=function(){return E=!0,null},P[L](""),!E});if(!T||!M||R==="replace"&&!(h&&p&&!A)||R==="split"&&!x){var O=/./[L],k=g(L,""[R],function(E,P,_,I,W){return P.exec===u?T&&!W?{done:!0,value:O.call(P,_,I)}:{done:!0,value:E.call(_,P,I)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:A}),F=k[0],N=k[1];s(String.prototype,R,F),s(RegExp.prototype,L,y==2?function(E,P){return N.call(E,this,P)}:function(E){return N.call(E,this)})}S&&f(RegExp.prototype[L],"sham",!0)}},d81d:function(o,i,a){var s=a("23e7"),c=a("b727").map,l=a("1dde"),u=a("ae40"),f=l("map"),d=u("map");s({target:"Array",proto:!0,forced:!f||!d},{map:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}})},da84:function(o,i,a){(function(s){var c=function(l){return l&&l.Math==Math&&l};o.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof s=="object"&&s)||Function("return this")()}).call(this,a("c8ba"))},dbb4:function(o,i,a){var s=a("23e7"),c=a("83ab"),l=a("56ef"),u=a("fc6a"),f=a("06cf"),d=a("8418");s({target:"Object",stat:!0,sham:!c},{getOwnPropertyDescriptors:function(p){for(var m=u(p),A=f.f,x=l(m),R={},y=0,g,S;x.length>y;)S=A(m,g=x[y++]),S!==void 0&&d(R,g,S);return R}})},dbf1:function(o,i,a){(function(s){a.d(i,"a",function(){return l});function c(){return typeof window<"u"?window.console:s.console}var l=c()}).call(this,a("c8ba"))},ddb0:function(o,i,a){var s=a("da84"),c=a("fdbc"),l=a("e260"),u=a("9112"),f=a("b622"),d=f("iterator"),h=f("toStringTag"),p=l.values;for(var m in c){var A=s[m],x=A&&A.prototype;if(x){if(x[d]!==p)try{u(x,d,p)}catch{x[d]=p}if(x[h]||u(x,h,m),c[m]){for(var R in l)if(x[R]!==l[R])try{u(x,R,l[R])}catch{x[R]=l[R]}}}}},df75:function(o,i,a){var s=a("ca84"),c=a("7839");o.exports=Object.keys||function(u){return s(u,c)}},e01a:function(o,i,a){var s=a("23e7"),c=a("83ab"),l=a("da84"),u=a("5135"),f=a("861d"),d=a("9bf2").f,h=a("e893"),p=l.Symbol;if(c&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var m={},A=function(){var L=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),T=this instanceof A?new p(L):L===void 0?p():p(L);return L===""&&(m[T]=!0),T};h(A,p);var x=A.prototype=p.prototype;x.constructor=A;var R=x.toString,y=String(p("test"))=="Symbol(test)",g=/^Symbol\((.*)\)[^)]+$/;d(x,"description",{configurable:!0,get:function(){var L=f(this)?this.valueOf():this,T=R.call(L);if(u(m,L))return"";var M=y?T.slice(7,-1):T.replace(g,"$1");return M===""?void 0:M}}),s({global:!0,forced:!0},{Symbol:A})}},e163:function(o,i,a){var s=a("5135"),c=a("7b0b"),l=a("f772"),u=a("e177"),f=l("IE_PROTO"),d=Object.prototype;o.exports=u?Object.getPrototypeOf:function(h){return h=c(h),s(h,f)?h[f]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},e177:function(o,i,a){var s=a("d039");o.exports=!s(function(){function c(){}return c.prototype.constructor=null,Object.getPrototypeOf(new c)!==c.prototype})},e260:function(o,i,a){var s=a("fc6a"),c=a("44d2"),l=a("3f8c"),u=a("69f3"),f=a("7dd0"),d="Array Iterator",h=u.set,p=u.getterFor(d);o.exports=f(Array,"Array",function(m,A){h(this,{type:d,target:s(m),index:0,kind:A})},function(){var m=p(this),A=m.target,x=m.kind,R=m.index++;return!A||R>=A.length?(m.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:R,done:!1}:x=="values"?{value:A[R],done:!1}:{value:[R,A[R]],done:!1}},"values"),l.Arguments=l.Array,c("keys"),c("values"),c("entries")},e439:function(o,i,a){var s=a("23e7"),c=a("d039"),l=a("fc6a"),u=a("06cf").f,f=a("83ab"),d=c(function(){u(1)}),h=!f||d;s({target:"Object",stat:!0,forced:h,sham:!f},{getOwnPropertyDescriptor:function(m,A){return u(l(m),A)}})},e538:function(o,i,a){var s=a("b622");i.f=s},e893:function(o,i,a){var s=a("5135"),c=a("56ef"),l=a("06cf"),u=a("9bf2");o.exports=function(f,d){for(var h=c(d),p=u.f,m=l.f,A=0;A"u"||!(Symbol.iterator in Object(Te)))){var _e=[],Ke=!0,tt=!1,ke=void 0;try{for(var Ze=Te[Symbol.iterator](),nt;!(Ke=(nt=Ze.next()).done)&&(_e.push(nt.value),!(Ne&&_e.length===Ne));Ke=!0);}catch(xt){tt=!0,ke=xt}finally{try{!Ke&&Ze.return!=null&&Ze.return()}finally{if(tt)throw ke}}return _e}}a("a630"),a("fb6a"),a("b0c0"),a("25f0");function m(Te,Ne){(Ne==null||Ne>Te.length)&&(Ne=Te.length);for(var _e=0,Ke=new Array(Ne);_e[...o.value,s.value]),d=pe(!1),{copySlide:h,pasteSlide:p,createSlide:m,createSlideByTemplate:A,copyAndPasteSlide:x,deleteSlide:R,cutSlide:y,selectAllSlide:g,sortSlides:S}=Dd(),L=pe();Tt(()=>s.value,()=>{f.value.length&&t.updateSelectedSlidesIndex([]),Vr(()=>{var I,W;const _=(W=(I=L.value)==null?void 0:I.$el)==null?void 0:W.querySelector(".thumbnail-item.active");L.value&&_&&!WJ(_,L.value.$el)&&setTimeout(()=>{_.scrollIntoView({behavior:"smooth"})},100)})});const T=_=>{t.setActiveElementIdList([]),s.value!==_&&n.updateSlideIndex(_)},M=(_,I)=>{const W=f.value.length>1;if(!(W&&f.value.includes(I)&&_.button!==0))if(c.value)if(s.value===I){if(!W)return;const D=f.value.filter(z=>z!==I);t.updateSelectedSlidesIndex(D),T(f.value[0])}else if(f.value.includes(I)){const D=f.value.filter(z=>z!==I);t.updateSelectedSlidesIndex(D)}else{const D=[...f.value,I];t.updateSelectedSlidesIndex(D)}else if(l.value){if(s.value===I&&!W)return;let D=Math.min(...f.value),z=I;I{i.value!==_&&(t.setThumbnailsFocus(_),_||t.updateSelectedSlidesIndex([]))},k=_=>{const{newIndex:I,oldIndex:W}=_;I===void 0||W===void 0||I===W||S(I,W)},{enterScreening:F,enterScreeningFromStart:N}=Mc(),E=()=>[{text:"粘贴",subText:"Ctrl + V",handler:p},{text:"全选",subText:"Ctrl + A",handler:g},{text:"新建页面",subText:"Enter",handler:m},{text:"幻灯片放映",subText:"F5",handler:N}],P=()=>[{text:"剪切",subText:"Ctrl + X",handler:y},{text:"复制",subText:"Ctrl + C",handler:h},{text:"粘贴",subText:"Ctrl + V",handler:p},{text:"全选",subText:"Ctrl + A",handler:g},{divider:!0},{text:"新建页面",subText:"Enter",handler:m},{text:"复制页面",subText:"Ctrl + D",handler:x},{text:"删除页面",subText:"Delete",handler:()=>R()},{divider:!0},{text:"从当前放映",subText:"Shift + F5",handler:F}];return(_,I)=>{const W=xe("IconPlus"),D=xe("IconDown"),z=Mn("contextmenu"),ae=Mn("click-outside");return De((Y(),ee("div",{class:"thumbnails",onMousedown:I[4]||(I[4]=()=>O(!0))},[V("div",jhe,[V("div",{class:"btn",onClick:I[0]||(I[0]=U=>H(m)())},[w(W,{class:"icon"}),We("添加幻灯片")]),w(kt,{trigger:"click",placement:"bottom-start",value:d.value,"onUpdate:value":I[2]||(I[2]=U=>d.value=U),center:""},{content:re(()=>[w(dhe,{onSelect:I[1]||(I[1]=U=>{H(A)(U),d.value=!1})})]),default:re(()=>[V("div",qhe,[w(D)])]),_:1},8,["value"])]),w(H(N5),{class:"thumbnail-list",ref_key:"thumbnailsRef",ref:L,modelValue:H(a),animation:200,scroll:!0,scrollSensitivity:50,onEnd:k,itemKey:"id"},{item:re(({element:U,index:Z})=>[De((Y(),ee("div",{class:$e(["thumbnail-item",{active:H(s)===Z,selected:f.value.includes(Z)}]),onMousedown:B=>M(B,Z),onDblclick:I[3]||(I[3]=B=>H(F)())},[V("div",{class:$e(["label",{"offset-left":Z>=99}])},gt(H(X0)(Z+1,2)),3),w(Fa,{class:"thumbnail",slide:U,size:120,visible:ZO(!1)],[z,E]])}}}),rpe=Ue(npe,[["__scopeId","data-v-d7a17fcd"]]),c_=()=>{const e=ft(),{richTextAttrs:t,textFormatPainter:n}=Xe(e);return{toggleTextFormatPainter:(o=!1)=>{n.value?e.setTextFormatPainter(null):e.setTextFormatPainter({keep:o,bold:t.value.bold,em:t.value.em,underline:t.value.underline,strikethrough:t.value.strikethrough,color:t.value.color,backcolor:t.value.backcolor,fontname:t.value.fontname,fontsize:t.value.fontsize,align:t.value.align})}}};function P5(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function ys(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function fp(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=ys(e);return t>0?P5(Number(e)*Math.pow(10,t)):Number(e)}function mx(e){f_&&(e>Number.MAX_SAFE_INTEGER||eg.getBoundingClientRect().left,r=e,o=t,i=pe(),a=pe(0),s=pe(0),c=pe(0),l=pe("end"),u=g=>{let S=g/100*(r.max-r.min);if(r.step>=1)S=Math.fround(S);else{const L=r.step.toString(),T=L.match(/^[0.]*([1-9])/);if(T){const M=T[1],O=L.indexOf(M)-1;if(O>0){const k=Math.pow(10,O);S=Math.fround(S*k)/k}}}return lpe.plus(S,r.min)},f=Me(()=>u(a.value)),d=Me(()=>u(s.value)),h=Me(()=>u(c.value));Tt(()=>r.value,()=>{r.max!==r.min&&(typeof r.value=="number"?a.value=(r.value-r.min)/(r.max-r.min)*100:(s.value=(r.value[0]-r.min)/(r.max-r.min)*100,c.value=(r.value[1]-r.min)/(r.max-r.min)*100))},{immediate:!0});const p=g=>{if(!i.value)return 0;let L=(("clientX"in g?g.clientX:g.changedTouches[0].clientX)-n(i.value))/i.value.clientWidth;L=Math.max(L,0),L=Math.min(L,1);let T=L*100;const M=r.step/(r.max-r.min)*100,O=T%M;return O>0&&(O<=M/2?T=T-O:T=T-O+M),T},m=g=>{const S=p(g);l.value==="start"?s.value=S:c.value=S},A=g=>{x(g);const S=u(a.value),L=r.value,T=l.value==="start"?[S,L[1]]:[L[0],S];T[0]>T[1]&&([T[0],T[1]]=[T[1],T[0]]),o("update:value",T),document.removeEventListener("mousemove",m),document.removeEventListener("touchmove",m),document.removeEventListener("mouseup",A),document.removeEventListener("touchend",A)},x=g=>{a.value=p(g)},R=g=>{x(g);const S=u(a.value);o("update:value",S),document.removeEventListener("mousemove",x),document.removeEventListener("touchmove",x),document.removeEventListener("mouseup",R),document.removeEventListener("touchend",R)},y=g=>{if(!r.disabled)if(r.range){const S=p(g);Math.abs(S-s.value)(Y(),ee("div",{class:$e(["slider",{disabled:g.disabled}]),ref_key:"sliderRef",ref:i,onMousedown:S[0]||(S[0]=L=>y(L))},[V("div",cpe,[g.range?(Y(),ee(Ve,{key:1},[V("div",{class:"track",style:Le({width:`${c.value-s.value}%`,left:`${s.value}%`})},null,4),V("div",{class:"thumb",style:Le({left:`${s.value}%`}),"data-tooltip":d.value},null,12,fpe),V("div",{class:"thumb",style:Le({left:`${c.value}%`}),"data-tooltip":h.value},null,12,dpe)],64)):(Y(),ee(Ve,{key:0},[V("div",{class:"track",style:Le({width:`${a.value}%`})},null,4),V("div",{class:"thumb",style:Le({left:`${a.value}%`}),"data-tooltip":f.value},null,12,upe)],64))])],34))}}),no=Ue(hpe,[["__scopeId","data-v-a7428be4"]]),ppe=e=>(on("data-v-c3b27b40"),e=e(),an(),e),mpe={class:"element-opacity"},vpe={class:"row"},gpe=ppe(()=>V("div",{style:{width:"40%"}},"不透明度:",-1)),Ape=Fe({__name:"ElementOpacity",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=pe(1);Tt(n,()=>{n.value&&(r.value="opacity"in n.value&&n.value.opacity!==void 0?n.value.opacity:1)},{deep:!0,immediate:!0});const{addHistorySnapshot:o}=zt(),i=a=>{if(!n.value)return;const s={opacity:a};t.updateElement({id:n.value.id,props:s}),o()};return(a,s)=>(Y(),ee("div",mpe,[V("div",vpe,[gpe,w(no,{min:0,max:1,step:.1,value:r.value,"onUpdate:value":s[0]||(s[0]=c=>i(c)),style:{width:"60%"}},null,8,["value"])])]))}}),d_=Ue(Ape,[["__scopeId","data-v-c3b27b40"]]),Rpe={class:"color-block"},ype=Fe({__name:"ColorButton",props:{color:{}},setup(e){return(t,n)=>{const r=xe("IconPlatte");return Y(),we(et,{class:"color-btn"},{default:re(()=>[V("div",Rpe,[V("div",{class:"content",style:Le({backgroundColor:t.color})},null,4)]),w(r,{class:"color-btn-icon"})]),_:1})}}}),ir=Ue(ype,[["__scopeId","data-v-5e2a7fc5"]]);function xpe(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const bpe=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function ol(e){const t=[];for(let n=0,r=e.length;ndi||e.height>di)&&(e.width>di&&e.height>di?e.width>e.height?(e.height*=di/e.width,e.width=di):(e.width*=di/e.height,e.height=di):e.width>di?(e.height*=di/e.width,e.width=di):(e.width*=di/e.height,e.height=di))}function vg(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Ope(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Tpe(e,t,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(e),Ope(o)}const ri=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||ri(n,t)};function kpe(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Npe(e){return ol(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function Ppe(e,t,n){const r=`.${e}:${t}`,o=n.cssText?kpe(n):Npe(n);return document.createTextNode(`${r}{${o}}`)}function QT(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(o===""||o==="none")return;const i=bpe();try{t.className=`${t.className} ${i}`}catch{return}const a=document.createElement("style");a.appendChild(Ppe(i,n,r)),t.appendChild(a)}function Cpe(e,t){QT(e,t,":before"),QT(e,t,":after")}const ZT="application/font-woff",BT="image/jpeg",Ipe={woff:ZT,woff2:ZT,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:BT,jpeg:BT,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Fpe(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function C5(e){const t=Fpe(e).toLowerCase();return Ipe[t]||""}function _pe(e){return e.split(/,/)[1]}function vx(e){return e.search(/^(data:)/)!==-1}function p_(e,t){return`data:${t};base64,${e}`}async function m_(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((i,a)=>{const s=new FileReader;s.onerror=a,s.onloadend=()=>{try{i(n({res:r,result:s.result}))}catch(c){a(c)}},s.readAsDataURL(o)})}const s4={};function Epe(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function I5(e,t,n){const r=Epe(e,t,n.includeQueryParams);if(s4[r]!=null)return s4[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const i=await m_(e,n.fetchRequestInit,({res:a,result:s})=>(t||(t=a.headers.get("Content-Type")||""),_pe(s)));o=p_(i,t)}catch(i){o=n.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;i&&(a=typeof i=="string"?i:i.message),a&&console.warn(a)}return s4[r]=o,o}async function Xpe(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):vg(t)}async function Wpe(e,t){if(e.currentSrc){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=e.clientWidth,i.height=e.clientHeight,a==null||a.drawImage(e,0,0,i.width,i.height);const s=i.toDataURL();return vg(s)}const n=e.poster,r=C5(n),o=await I5(n,r,t);return vg(o)}async function Vpe(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await m2(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function Upe(e,t){return ri(e,HTMLCanvasElement)?Xpe(e):ri(e,HTMLVideoElement)?Wpe(e,t):ri(e,HTMLIFrameElement)?Vpe(e):e.cloneNode(!1)}const Ype=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function Qpe(e,t,n){var r,o;let i=[];return Ype(e)&&e.assignedNodes?i=ol(e.assignedNodes()):ri(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?i=ol(e.contentDocument.body.childNodes):i=ol(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),i.length===0||ri(e,HTMLVideoElement)||await i.reduce((a,s)=>a.then(()=>m2(s,n)).then(c=>{c&&t.appendChild(c)}),Promise.resolve()),t}function Zpe(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):ol(r).forEach(o=>{let i=r.getPropertyValue(o);o==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),ri(e,HTMLIFrameElement)&&o==="display"&&i==="inline"&&(i="block"),o==="d"&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),n.setProperty(o,i,r.getPropertyPriority(o))})}function Bpe(e,t){ri(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),ri(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Dpe(e,t){if(ri(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function Kpe(e,t){return ri(t,Element)&&(Zpe(e,t),Cpe(e,t),Bpe(e,t),Dpe(e,t)),t}async function Hpe(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let i=0;iUpe(r,t)).then(r=>Qpe(e,r,t)).then(r=>Kpe(e,r)).then(r=>Hpe(r,t))}const v_=/url\((['"]?)([^'"]+?)\1\)/g,Gpe=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zpe=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Jpe(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function $pe(e){const t=[];return e.replace(v_,(n,r,o)=>(t.push(o),n)),t.filter(n=>!vx(n))}async function jpe(e,t,n,r,o){try{const i=n?xpe(t,n):t,a=C5(t);let s;if(o){const c=await o(i);s=p_(c,a)}else s=await I5(i,a,r);return e.replace(Jpe(t),`$1${s}$3`)}catch{}return e}function qpe(e,{preferredFontFormat:t}){return t?e.replace(zpe,n=>{for(;;){const[r,,o]=Gpe.exec(n)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function g_(e){return e.search(v_)!==-1}async function A_(e,t,n){if(!g_(e))return e;const r=qpe(e,n);return $pe(r).reduce((i,a)=>i.then(s=>jpe(s,a,t,n)),Promise.resolve(r))}async function Nm(e,t,n){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const i=await A_(o,null,n);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function e1e(e,t){await Nm("background",e,t)||await Nm("background-image",e,t),await Nm("mask",e,t)||await Nm("mask-image",e,t)}async function t1e(e,t){const n=ri(e,HTMLImageElement);if(!(n&&!vx(e.src))&&!(ri(e,SVGImageElement)&&!vx(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,o=await I5(r,C5(r),t);await new Promise((i,a)=>{e.onload=i,e.onerror=a;const s=e;s.decode&&(s.decode=i),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=o):e.href.baseVal=o})}async function n1e(e,t){const r=ol(e.childNodes).map(o=>R_(o,t));await Promise.all(r).then(()=>e)}async function R_(e,t){ri(e,Element)&&(await e1e(e,t),await t1e(e,t),await n1e(e,t))}function r1e(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{n[o]=r[o]}),e}const DT={};async function KT(e){let t=DT[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},DT[e]=t,t}async function HT(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),m_(s,t.fetchRequestInit,({result:c})=>(n=n.replace(a,`url(${c})`),[a,c]))});return Promise.all(i).then(()=>n)}function GT(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=o.exec(r);if(c===null)break;t.push(c[0])}r=r.replace(o,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(a,"gi");for(;;){let c=i.exec(r);if(c===null){if(c=s.exec(r),c===null)break;i.lastIndex=s.lastIndex}else s.lastIndex=i.lastIndex;t.push(c[0])}return t}async function o1e(e,t){const n=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{ol(o.cssRules||[]).forEach((i,a)=>{if(i.type===CSSRule.IMPORT_RULE){let s=a+1;const c=i.href,l=KT(c).then(u=>HT(u,t)).then(u=>GT(u).forEach(f=>{try{o.insertRule(f,f.startsWith("@import")?s+=1:o.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:f,error:d})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(l)}})}catch(i){const a=e.find(s=>s.href==null)||document.styleSheets[0];o.href!=null&&r.push(KT(o.href).then(s=>HT(s,t)).then(s=>GT(s).forEach(c=>{a.insertRule(c,o.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",i)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{ol(o.cssRules||[]).forEach(i=>{n.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${o.href}`,i)}}),n))}function i1e(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>g_(t.style.getPropertyValue("src")))}async function a1e(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=ol(e.ownerDocument.styleSheets),r=await o1e(n,t);return i1e(r)}async function s1e(e,t){const n=await a1e(e,t);return(await Promise.all(n.map(o=>{const i=o.parentStyleSheet?o.parentStyleSheet.href:null;return A_(o.cssText,i,t)}))).join(` -`)}async function l1e(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await s1e(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function c1e(e,t={}){const{width:n,height:r}=h_(e,t),o=await m2(e,t,!0);return await l1e(o,t),await R_(o,t),r1e(o,t),await Tpe(o,n,r)}async function F5(e,t={}){const{width:n,height:r}=h_(e,t),o=await c1e(e,t),i=await vg(o),a=document.createElement("canvas"),s=a.getContext("2d"),c=t.pixelRatio||wpe(),l=t.canvasWidth||n,u=t.canvasHeight||r;return a.width=l*c,a.height=u*c,t.skipAutoScale||Lpe(a),a.style.width=`${l}`,a.style.height=`${u}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,a.width,a.height),a}async function u1e(e,t={}){return(await F5(e,t)).toDataURL()}async function f1e(e,t={}){return(await F5(e,t)).toDataURL("image/jpeg",t.quality||1)}const d1e=Fe({__name:"Checkboard",props:{size:{default:8},white:{default:"#fff"},grey:{default:"#e6e6e6"}},setup(e){const t=e,n={},r=(a,s,c)=>{const l=document.createElement("canvas");l.width=l.height=c*2;const u=l.getContext("2d");return u?(u.fillStyle=a,u.fillRect(0,0,l.width,l.height),u.fillStyle=s,u.fillRect(0,0,c,c),u.translate(c,c),u.fillRect(0,0,c,c),l.toDataURL()):null},o=(a,s,c)=>{const l=a+","+s+","+c;if(n[l])return n[l];const u=r(a,s,c);return n[l]=u,u},i=Me(()=>({backgroundImage:`url(${o(t.white,t.grey,t.size)})`}));return(a,s)=>(Y(),ee("div",{class:"checkerboard",style:Le(i.value)},null,4))}}),gx=Ue(d1e,[["__scopeId","data-v-46275348"]]),h1e=e=>(on("data-v-429f62d3"),e=e(),an(),e),p1e={class:"alpha"},m1e={class:"alpha-checkboard-wrap"},v1e=h1e(()=>V("div",{class:"alpha-picker"},null,-1)),g1e=[v1e],A1e=Fe({__name:"Alpha",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,o=Me(()=>n.value),i=Me(()=>{const u=[o.value.r,o.value.g,o.value.b].join(",");return`linear-gradient(to right, rgba(${u}, 0) 0%, rgba(${u}, 1) 100%)`}),a=pe(),s=u=>{if(u.preventDefault(),!a.value)return;const f=a.value.clientWidth,d=a.value.getBoundingClientRect().left+window.pageXOffset,h=u.pageX-d;let p;h<0?p=0:h>f?p=1:p=Math.round(h*100/f)/100,o.value.a!==p&&r("colorChange",{r:o.value.r,g:o.value.g,b:o.value.b,a:p})},c=()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",c)},l=u=>{s(u),window.addEventListener("mousemove",s),window.addEventListener("mouseup",c)};return Tn(c),(u,f)=>(Y(),ee("div",p1e,[V("div",m1e,[w(gx)]),V("div",{class:"alpha-gradient",style:Le({background:i.value})},null,4),V("div",{class:"alpha-container",ref_key:"alphaRef",ref:a,onMousedown:f[0]||(f[0]=d=>l(d))},[V("div",{class:"alpha-pointer",style:Le({left:o.value.a*100+"%"})},g1e,4)],544)]))}}),R1e=Ue(A1e,[["__scopeId","data-v-429f62d3"]]),y1e=e=>(on("data-v-21ccc370"),e=e(),an(),e),x1e={class:"hue"},b1e=y1e(()=>V("div",{class:"hue-picker"},null,-1)),S1e=[b1e],M1e=Fe({__name:"Hue",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,o=pe(0),i=pe(""),a=Me(()=>{const d=ot(n.value).toHsl();return n.hue!==-1&&(d.h=n.hue),d}),s=Me(()=>a.value.h===0&&i.value==="right"?"100%":a.value.h*100/360+"%");Tt(()=>n.value,()=>{const d=ot(n.value).toHsl(),h=d.s===0?n.hue:d.h;h!==0&&h-o.value>0&&(i.value="right"),h!==0&&h-o.value<0&&(i.value="left"),o.value=h});const c=pe(),l=d=>{if(d.preventDefault(),!c.value)return;const h=c.value.clientWidth,p=c.value.getBoundingClientRect().left+window.pageXOffset,m=d.pageX-p;let A,x;m<0?A=0:m>h?A=360:(x=m*100/h,A=360*x/100),(n.hue===-1||a.value.h!==A)&&r("colorChange",{h:A,l:a.value.l,s:a.value.s,a:a.value.a})},u=()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",u)},f=d=>{l(d),window.addEventListener("mousemove",l),window.addEventListener("mouseup",u)};return Tn(u),(d,h)=>(Y(),ee("div",x1e,[V("div",{class:"hue-container",ref_key:"hueRef",ref:c,onMousedown:h[0]||(h[0]=p=>f(p))},[V("div",{class:"hue-pointer",style:Le({left:s.value})},S1e,4)],544)]))}}),w1e=Ue(M1e,[["__scopeId","data-v-21ccc370"]]),_5=e=>(on("data-v-4a728d90"),e=e(),an(),e),L1e=_5(()=>V("div",{class:"saturation-white"},null,-1)),O1e=_5(()=>V("div",{class:"saturation-black"},null,-1)),T1e=_5(()=>V("div",{class:"saturation-circle"},null,-1)),k1e=[T1e],N1e=Fe({__name:"Saturation",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,o=Me(()=>{const h=ot(n.value).toHsv();return n.hue!==-1&&(h.h=n.hue),h}),i=Me(()=>`hsl(${o.value.h}, 100%, 50%)`),a=Me(()=>-(o.value.v*100)+1+100+"%"),s=Me(()=>o.value.s*100+"%"),c=_n.throttle(function(h){r("colorChange",h)},20,{leading:!0,trailing:!1}),l=pe(),u=h=>{if(h.preventDefault(),!l.value)return;const p=l.value.clientWidth,m=l.value.clientHeight,A=l.value.getBoundingClientRect().left+window.pageXOffset,x=l.value.getBoundingClientRect().top+window.pageYOffset,R=_n.clamp(h.pageX-A,0,p),y=_n.clamp(h.pageY-x,0,m),g=R/p,S=_n.clamp(-(y/m)+1,0,1);c({h:o.value.h,s:g,v:S,a:o.value.a})},f=()=>{window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",f)},d=h=>{u(h),window.addEventListener("mousemove",u),window.addEventListener("mouseup",f)};return Tn(f),(h,p)=>(Y(),ee("div",{class:"saturation",ref_key:"saturationRef",ref:l,style:Le({background:i.value}),onMousedown:p[0]||(p[0]=m=>d(m))},[L1e,O1e,V("div",{class:"saturation-pointer",style:Le({top:a.value,left:s.value})},k1e,4)],36))}}),P1e=Ue(N1e,[["__scopeId","data-v-4a728d90"]]),C1e={class:"editable-input"},I1e=["value"],F1e=Fe({__name:"EditableInput",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,o=Me(()=>{let a="";return n.value.a<1?a=ot(n.value).toHex8String().toUpperCase():a=ot(n.value).toHexString().toUpperCase(),a.replace("#","")}),i=a=>{const s=a.target.value;if(s.length>=6){const c=ot(s);c.isValid()&&r("colorChange",c.toRgb())}};return(a,s)=>(Y(),ee("div",C1e,[V("input",{class:"input-content",value:o.value,onInput:s[0]||(s[0]=c=>i(c))},null,40,I1e)]))}}),_1e=Ue(F1e,[["__scopeId","data-v-573b4dde"]]),E1e={class:"color-picker"},X1e={class:"picker-saturation-wrap"},W1e={class:"picker-controls"},V1e={class:"picker-color-wrap"},U1e={class:"picker-sliders"},Y1e={class:"picker-hue-wrap"},Q1e={class:"picker-alpha-wrap"},Z1e={class:"picker-field"},B1e={class:"picker-presets"},D1e=["onClick"],K1e={class:"picker-gradient-presets"},H1e=["onClick"],G1e={class:"picker-presets"},z1e=["onClick"],J1e={key:0,class:"recent-colors-title"},$1e={class:"picker-presets"},j1e=["onClick"],zT="RECENT_COLORS",q1e=Fe({__name:"index",props:{modelValue:{default:"#e86b99"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],i=(g,S,L)=>{const T=ot(g).toRgb(),M=ot(S).toRgb(),O=(M.r-T.r)/L,k=(M.g-T.g)/L,F=(M.b-T.b)/L,N=[];for(let E=0;E{const g=[];for(const S of o)g.push(i(S[1],S[0],5));return g},s=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],c=["#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57","#00afee","#0071be","#00215f","#72349d"],l=pe(-1),u=pe([]),f=Me({get(){return ot(n.modelValue).toRgb()},set(g){const S=`rgba(${[g.r,g.g,g.b,g.a].join(",")})`;r("update:modelValue",S)}}),d=a(),h=Me(()=>`rgba(${[f.value.r,f.value.g,f.value.b,f.value.a].join(",")})`),p=g=>{l.value=ot(g).toHsl().h,r("update:modelValue",g)},m=_n.debounce(function(){const g=ot(f.value).toRgbString();if(!u.value.includes(g)){u.value=[g,...u.value];const S=10;u.value.length>S&&(u.value=u.value.slice(0,S))}},300,{trailing:!0});Gt(()=>{const g=localStorage.getItem(zT);g&&(u.value=JSON.parse(g))}),Tt(u,()=>{const g=JSON.stringify(u.value);localStorage.setItem(zT,g)});const A=g=>{"h"in g?(l.value=g.h,f.value=ot(g).toRgb()):(l.value=ot(g).toHsl().h,f.value=g),m()},x=()=>{"EyeDropper"in window?R():y()},R=()=>{Sn.success("按 ESC 键关闭取色吸管",{duration:0}),new window.EyeDropper().open().then(S=>{const L=ot(S.sRGBHex);l.value=L.toHsl().h,f.value=L.toRgb(),m()}).catch(()=>{Sn.closeAll()})},y=()=>{const g=document.querySelector(".canvas");if(!g)return;const S=document.createElement("div");S.style.cssText="position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9999; cursor: wait;",document.body.appendChild(S);const L=document.createElement("div");L.style.cssText="position: absolute; top: -100px; left: -100px; width: 16px; height: 16px; border: 1px solid #000; z-index: 999",S.appendChild(L);const{left:T,top:M,width:O,height:k}=g.getBoundingClientRect();F5(g,{filter:N=>!(N.tagName&&N.tagName.toUpperCase()==="FOREIGNOBJECT"||N.classList&&N.classList.contains("operate")),fontEmbedCSS:"",width:O,height:k,canvasWidth:O,canvasHeight:k,pixelRatio:1}).then(N=>{N.style.cssText=`position: absolute; top: ${M}px; left: ${T}px; cursor: crosshair;`,S.style.cursor="default",S.appendChild(N);const E=N.getContext("2d");if(!E)return;let P="";const _=D=>{const z=D.x,ae=D.y,U=z-T,Z=ae-M,[B,G,Q,ie]=E.getImageData(U,Z,1,1).data;P=`rgba(${B}, ${G}, ${Q}, ${(ie/255).toFixed(2)})`,L.style.left=z+10+"px",L.style.top=ae+10+"px",L.style.backgroundColor=P},I=()=>{P="",L.style.left="-100px",L.style.top="-100px",L.style.backgroundColor=""},W=D=>{if(P&&D.button===0){const z=ot(P);l.value=z.toHsl().h,f.value=z.toRgb(),m()}document.body.removeChild(S),N.removeEventListener("mousemove",_),N.removeEventListener("mouseleave",I),window.removeEventListener("mousedown",W)};N.addEventListener("mousemove",_),N.addEventListener("mouseleave",I),window.addEventListener("mousedown",W)}).catch(()=>{Sn.error("取色吸管初始化失败"),document.body.removeChild(S)})};return(g,S)=>{const L=xe("IconNeedle");return Y(),ee("div",E1e,[V("div",X1e,[w(P1e,{value:f.value,hue:l.value,onColorChange:S[0]||(S[0]=T=>A(T))},null,8,["value","hue"])]),V("div",W1e,[V("div",V1e,[V("div",{class:"picker-current-color",style:Le({background:h.value})},null,4),w(gx)]),V("div",U1e,[V("div",Y1e,[w(w1e,{value:f.value,hue:l.value,onColorChange:S[1]||(S[1]=T=>A(T))},null,8,["value","hue"])]),V("div",Q1e,[w(R1e,{value:f.value,onColorChange:S[2]||(S[2]=T=>A(T))},null,8,["value"])])])]),V("div",Z1e,[w(_1e,{class:"input",value:f.value,onColorChange:S[3]||(S[3]=T=>A(T))},null,8,["value"]),V("div",{class:"straw",onClick:S[4]||(S[4]=T=>x())},[w(L)]),V("div",{class:"transparent",onClick:S[5]||(S[5]=T=>p("#00000000"))},[w(gx)])]),V("div",B1e,[(Y(),ee(Ve,null,it(s,T=>V("div",{class:"picker-presets-color",key:T,style:Le({background:T}),onClick:M=>p(T)},null,12,D1e)),64))]),V("div",K1e,[(Y(!0),ee(Ve,null,it(H(d),(T,M)=>(Y(),ee("div",{class:"picker-gradient-col",key:M},[(Y(!0),ee(Ve,null,it(T,O=>(Y(),ee("div",{class:"picker-gradient-color",key:O,style:Le({background:O}),onClick:k=>p(O)},null,12,H1e))),128))]))),128))]),V("div",G1e,[(Y(),ee(Ve,null,it(c,T=>V("div",{key:T,class:"picker-presets-color",style:Le({background:T}),onClick:M=>p(T)},null,12,z1e)),64))]),u.value.length?(Y(),ee("div",J1e,"最近使用:")):Be("",!0),V("div",$1e,[(Y(!0),ee(Ve,null,it(u.value,T=>(Y(),ee("div",{key:T,class:"picker-presets-color alpha",onClick:M=>p(T)},[V("div",{class:"picker-presets-color-content",style:Le({background:T})},null,4)],8,j1e))),128))])])}}}),Ln=Ue(q1e,[["__scopeId","data-v-9ae27223"]]),eme=e=>(on("data-v-a0d44a99"),e=e(),an(),e),tme=eme(()=>V("span",{class:"switch-core"},null,-1)),nme=[tme],rme=Fe({__name:"Switch",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=()=>{n.disabled||r("update:value",!n.value)};return(i,a)=>(Y(),ee("span",{class:$e(["switch",{active:i.value,disabled:i.disabled}]),onClick:a[0]||(a[0]=s=>o())},nme,2))}}),oa=Ue(rme,[["__scopeId","data-v-a0d44a99"]]),v2=e=>(on("data-v-fd752d80"),e=e(),an(),e),ome={class:"element-outline"},ime={key:0,class:"row"},ame=v2(()=>V("div",{style:{width:"40%"}},"启用边框:",-1)),sme={class:"switch-wrapper",style:{width:"60%"}},lme={class:"row"},cme=v2(()=>V("div",{style:{width:"40%"}},"边框样式:",-1)),ume={class:"row"},fme=v2(()=>V("div",{style:{width:"40%"}},"边框颜色:",-1)),dme={class:"row"},hme=v2(()=>V("div",{style:{width:"40%"}},"边框粗细:",-1)),pme=Fe({__name:"ElementOutline",props:{fixed:{type:Boolean,default:!1}},setup(e){const t=ct(),{theme:n}=Xe(t),{handleElement:r}=Xe(ft()),o=pe(),i=pe(!1);Tt(r,()=>{r.value&&(o.value="outline"in r.value?r.value.outline:void 0,i.value=!!o.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:a}=zt(),s=l=>{if(!r.value)return;const u={outline:{...o.value,...l}};t.updateElement({id:r.value.id,props:u}),a()},c=l=>{if(r.value){if(l){const u=n.value.outline;t.updateElement({id:r.value.id,props:{outline:u}})}else t.removeElementProps({id:r.value.id,propName:"outline"});a()}};return(l,u)=>(Y(),ee("div",ome,[l.fixed?Be("",!0):(Y(),ee("div",ime,[ame,V("div",sme,[w(oa,{value:i.value,"onUpdate:value":u[0]||(u[0]=f=>c(f))},null,8,["value"])])])),i.value&&o.value?(Y(),ee(Ve,{key:1},[V("div",lme,[cme,w(Zn,{style:{width:"60%"},value:o.value.style||"","onUpdate:value":u[1]||(u[1]=f=>s({style:f})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"}]},null,8,["value"])]),V("div",ume,[fme,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:o.value.color,"onUpdate:modelValue":u[2]||(u[2]=f=>s({color:f}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:o.value.color||"#000"},null,8,["color"])]),_:1})]),V("div",dme,[hme,w(Li,{value:o.value.width||0,"onUpdate:value":u[3]||(u[3]=f=>s({width:f})),style:{width:"60%"}},null,8,["value"])])],64)):Be("",!0)]))}}),Hp=Ue(pme,[["__scopeId","data-v-fd752d80"]]),Gp=e=>(on("data-v-814f50a5"),e=e(),an(),e),mme={class:"element-shadow"},vme={class:"row"},gme=Gp(()=>V("div",{style:{width:"40%"}},"启用阴影:",-1)),Ame={class:"switch-wrapper",style:{width:"60%"}},Rme={class:"row"},yme=Gp(()=>V("div",{style:{width:"40%"}},"水平阴影:",-1)),xme={class:"row"},bme=Gp(()=>V("div",{style:{width:"40%"}},"垂直阴影:",-1)),Sme={class:"row"},Mme=Gp(()=>V("div",{style:{width:"40%"}},"模糊距离:",-1)),wme={class:"row"},Lme=Gp(()=>V("div",{style:{width:"40%"}},"阴影颜色:",-1)),Ome=Fe({__name:"ElementShadow",setup(e){const t=ct(),{theme:n}=Xe(t),{handleElement:r}=Xe(ft()),o=pe(),i=pe(!1);Tt(r,()=>{r.value&&(o.value="shadow"in r.value?r.value.shadow:void 0,i.value=!!o.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:a}=zt(),s=l=>{if(!r.value||!o.value)return;const u={...o.value,...l};t.updateElement({id:r.value.id,props:{shadow:u}}),a()},c=l=>{if(r.value){if(l){const u=n.value.shadow;t.updateElement({id:r.value.id,props:{shadow:u}})}else t.removeElementProps({id:r.value.id,propName:"shadow"});a()}};return(l,u)=>(Y(),ee("div",mme,[V("div",vme,[gme,V("div",Ame,[w(oa,{value:i.value,"onUpdate:value":u[0]||(u[0]=f=>c(f))},null,8,["value"])])]),i.value&&o.value?(Y(),ee(Ve,{key:0},[V("div",Rme,[yme,w(no,{style:{width:"60%"},min:-10,max:10,step:1,value:o.value.h,"onUpdate:value":u[1]||(u[1]=f=>s({h:f}))},null,8,["value"])]),V("div",xme,[bme,w(no,{style:{width:"60%"},min:-10,max:10,step:1,value:o.value.v,"onUpdate:value":u[2]||(u[2]=f=>s({v:f}))},null,8,["value"])]),V("div",Sme,[Mme,w(no,{style:{width:"60%"},min:1,max:20,step:1,value:o.value.blur,"onUpdate:value":u[3]||(u[3]=f=>s({blur:f}))},null,8,["value"])]),V("div",wme,[Lme,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:o.value.color,"onUpdate:modelValue":u[4]||(u[4]=f=>s({color:f}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:o.value.color},null,8,["color"])]),_:1})])],64)):Be("",!0)]))}}),g2=Ue(Ome,[["__scopeId","data-v-814f50a5"]]),Tme={class:"text-color-block"},kme=Fe({__name:"TextColorButton",props:{color:{}},setup(e){return(t,n)=>(Y(),we(et,{class:"text-color-btn"},{default:re(()=>[cr(t.$slots,"default",{},void 0,!0),V("div",Tme,[V("div",{class:"text-color-block-content",style:Le({backgroundColor:t.color})},null,4)])]),_:3}))}}),xc=Ue(kme,[["__scopeId","data-v-98853be0"]]),Qn=Fe({__name:"CheckboxButton",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(Y(),we(et,{checked:t.checked,disabled:t.disabled,type:"checkbox"},{default:re(()=>[cr(t.$slots,"default")]),_:3},8,["checked","disabled"]))}}),Nme=Fe({__name:"ButtonGroup",props:{passive:{type:Boolean,default:!1}},setup(e){return(t,n)=>(Y(),ee("div",{class:$e(["button-group",{passive:t.passive}]),ref:"groupRef"},[cr(t.$slots,"default",{},void 0,!0)],2))}}),xn=Ue(Nme,[["__scopeId","data-v-6a640ef5"]]),Nn=Fe({__name:"RadioButton",props:{value:{},disabled:{type:Boolean,default:!1}},setup(e){const{value:t,updateValue:n}=jo(uI);return(r,o)=>(Y(),we(et,{checked:!r.disabled&&H(t)===r.value,disabled:r.disabled,type:"radio",onClick:o[0]||(o[0]=i=>!r.disabled&&H(n)(r.value))},{default:re(()=>[cr(r.$slots,"default")]),_:3},8,["checked","disabled"]))}}),_a=Fe({__name:"RadioGroup",props:{value:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=a=>{n.disabled||r("update:value",a)},i=Me(()=>n.value);return Ku(uI,{value:i,updateValue:o}),(a,s)=>(Y(),we(xn,{class:"radio-group"},{default:re(()=>[cr(a.$slots,"default")]),_:3}))}}),Pme={},Cme={class:"select-group"};function Ime(e,t){return Y(),ee("div",Cme,[cr(e.$slots,"default",{},void 0,!0)])}const A2=Ue(Pme,[["render",Ime],["__scopeId","data-v-ed58c719"]]),kc=e=>(on("data-v-becd4c4e"),e=e(),an(),e),Fme={class:"text-style-panel"},_me={class:"preset-style"},Eme=["onClick"],Xme={class:"link-popover"},Wme={class:"btns"},Vme={class:"row",passive:""},Ume={class:"list-wrap"},Yme=["onClick"],Qme=kc(()=>V("span",null,null,-1)),Zme=[Qme],Bme=kc(()=>V("div",{style:{width:"10px"}},null,-1)),Dme={class:"list-wrap"},Kme=["onClick"],Hme=kc(()=>V("span",null,null,-1)),Gme=[Hme],zme={class:"row"},Jme=kc(()=>V("div",{style:{width:"10px"}},null,-1)),$me={class:"row"},jme=kc(()=>V("div",{style:{width:"40%"}},"行间距:",-1)),qme={class:"row"},eve=kc(()=>V("div",{style:{width:"40%"}},"段间距:",-1)),tve={class:"row"},nve=kc(()=>V("div",{style:{width:"40%"}},"字间距:",-1)),rve={class:"row"},ove=kc(()=>V("div",{style:{width:"40%"}},"文本框填充:",-1)),ive=Fe({__name:"TextStylePanel",setup(e){const t=[{label:"大标题",style:{fontSize:"26px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"66px"},{command:"align",value:"center"}]},{label:"小标题",style:{fontSize:"22px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"40px"},{command:"align",value:"center"}]},{label:"正文",style:{fontSize:"20px"},cmd:[{command:"clear"},{command:"fontsize",value:"20px"}]},{label:"正文[小]",style:{fontSize:"18px"},cmd:[{command:"clear"},{command:"fontsize",value:"18px"}]},{label:"注释 1",style:{fontSize:"16px",fontStyle:"italic"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"em"}]},{label:"注释 2",style:{fontSize:"16px",textDecoration:"underline"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"underline"}]}],n=ft(),r=ct(),{handleElement:o,handleElementId:i,richTextAttrs:a,availableFonts:s,textFormatPainter:c}=Xe(n),{addHistorySnapshot:l}=zt(),{toggleTextFormatPainter:u}=c_(),f=ae=>{r.updateElement({id:i.value,props:ae}),l()},d=pe(!1),h=pe(!1),p=pe(!1),m=pe(!1),A=pe(["disc","circle","square"]),x=pe(["decimal","lower-roman","upper-roman","lower-alpha","upper-alpha","lower-greek"]),R=pe("#000"),y=pe(),g=pe(),S=pe();Tt(o,()=>{!o.value||o.value.type!=="text"||(R.value=o.value.fill||"#fff",y.value=o.value.lineHeight||1.5,g.value=o.value.wordSpace||0,S.value=o.value.paragraphSpace===void 0?5:o.value.paragraphSpace,Zr.emit(Wr.SYNC_RICH_TEXT_ATTRS_TO_STORE))},{deep:!0,immediate:!0});const L=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],T=[.9,1,1.15,1.2,1.4,1.5,1.8,2,2.5,3],M=[0,1,2,3,4,5,6,8,10],O=[0,5,10,15,20,25,30,40,50,80],k=ae=>{f({lineHeight:ae})},F=ae=>{f({paragraphSpace:ae})},N=ae=>{f({wordSpace:ae})},E=ae=>{f({fill:ae})},P=(ae,U)=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:ae,value:U}})},_=ae=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:ae})},I=pe(""),W=pe(!1);Tt(a,()=>W.value=!1);const D=()=>{I.value=a.value.link},z=ae=>{if(!ae||!/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/.test(ae))return Sn.error("不是正确的网页链接地址");P("link",ae),W.value=!1};return(ae,U)=>{const Z=xe("IconFontSize"),B=xe("IconAddText"),G=xe("IconText"),Q=xe("IconHighLight"),ie=xe("IconTextBold"),q=xe("IconTextItalic"),oe=xe("IconTextUnderline"),he=xe("IconStrikethrough"),me=xe("IconCode"),ve=xe("IconQuote"),J=xe("IconFormat"),ue=xe("IconFormatBrush"),X=xe("IconLinkOne"),te=xe("IconAlignTextLeft"),le=xe("IconAlignTextCenter"),$=xe("IconAlignTextRight"),j=xe("IconAlignTextBoth"),se=xe("IconList"),ge=xe("IconDown"),ce=xe("IconOrderedList"),Ae=xe("IconIndentLeft"),ye=xe("IconIndentRight"),Ee=xe("IconRowHeight"),Se=xe("IconVerticalSpacingBetweenItems"),be=xe("IconFullwidth"),qe=Mn("tooltip");return Y(),ee("div",Fme,[V("div",_me,[(Y(),ee(Ve,null,it(t,Ce=>V("div",{class:"preset-style-item",key:Ce.label,style:Le(Ce.style),onClick:Te=>_(Ce.cmd)},gt(Ce.label),13,Eme)),64))]),w(Ut),w(A2,{class:"row"},{default:re(()=>[w(Zn,{class:"font-select",style:{width:"60%"},value:H(a).fontname,"onUpdate:value":U[0]||(U[0]=Ce=>P("fontname",Ce)),options:[...H(s),...H(bp)]},{icon:re(()=>[w(Z)]),_:1},8,["value","options"]),w(Zn,{style:{width:"40%"},value:H(a).fontsize,"onUpdate:value":U[1]||(U[1]=Ce=>P("fontsize",Ce)),options:L.map(Ce=>({label:Ce,value:Ce}))},{icon:re(()=>[w(B)]),_:1},8,["value","options"])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(a).color,"onUpdate:modelValue":U[2]||(U[2]=Ce=>P("color",Ce))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{first:"",color:H(a).color},{default:re(()=>[w(G)]),_:1},8,["color"])),[[qe,"文字颜色"]])]),_:1}),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(a).backcolor,"onUpdate:modelValue":U[3]||(U[3]=Ce=>P("backcolor",Ce))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{color:H(a).backcolor},{default:re(()=>[w(Q)]),_:1},8,["color"])),[[qe,"文字高亮"]])]),_:1}),De((Y(),we(et,{class:"font-size-btn",style:{width:"20%"},onClick:U[4]||(U[4]=Ce=>P("fontsize-add"))},{default:re(()=>[w(Z),We("+")]),_:1})),[[qe,"增大字号"]]),De((Y(),we(et,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:U[5]||(U[5]=Ce=>P("fontsize-reduce"))},{default:re(()=>[w(Z),We("-")]),_:1})),[[qe,"减小字号"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).bold,onClick:U[6]||(U[6]=Ce=>P("bold"))},{default:re(()=>[w(ie)]),_:1},8,["checked"])),[[qe,"加粗"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).em,onClick:U[7]||(U[7]=Ce=>P("em"))},{default:re(()=>[w(q)]),_:1},8,["checked"])),[[qe,"斜体"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).underline,onClick:U[8]||(U[8]=Ce=>P("underline"))},{default:re(()=>[w(oe)]),_:1},8,["checked"])),[[qe,"下划线"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).strikethrough,onClick:U[9]||(U[9]=Ce=>P("strikethrough"))},{default:re(()=>[w(he)]),_:1},8,["checked"])),[[qe,"删除线"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).superscript,onClick:U[10]||(U[10]=Ce=>P("superscript"))},{default:re(()=>[We("A²")]),_:1},8,["checked"])),[[qe,"上标"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).subscript,onClick:U[11]||(U[11]=Ce=>P("subscript"))},{default:re(()=>[We("A₂")]),_:1},8,["checked"])),[[qe,"下标"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).code,onClick:U[12]||(U[12]=Ce=>P("code"))},{default:re(()=>[w(me)]),_:1},8,["checked"])),[[qe,"行内代码"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).blockquote,onClick:U[13]||(U[13]=Ce=>P("blockquote"))},{default:re(()=>[w(ve)]),_:1},8,["checked"])),[[qe,"引用"]])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[De((Y(),we(Qn,{first:"",style:{flex:"1"},onClick:U[14]||(U[14]=Ce=>P("clear"))},{default:re(()=>[w(J)]),_:1})),[[qe,"清除格式"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:!!H(c),onClick:U[15]||(U[15]=Ce=>H(u)()),onDblclick:U[16]||(U[16]=Ce=>H(u)(!0))},{default:re(()=>[w(ue)]),_:1},8,["checked"])),[[qe,"格式刷(双击连续使用)"]]),w(kt,{placement:"bottom-end",trigger:"click",value:W.value,"onUpdate:value":U[21]||(U[21]=Ce=>W.value=Ce),style:{width:"33.33%"}},{content:re(()=>[V("div",Xme,[w(Xu,{value:I.value,"onUpdate:value":U[17]||(U[17]=Ce=>I.value=Ce),placeholder:"请输入超链接"},null,8,["value"]),V("div",Wme,[w(et,{size:"small",disabled:!H(a).link,onClick:U[18]||(U[18]=Ce=>z()),style:{"margin-right":"5px"}},{default:re(()=>[We("移除")]),_:1},8,["disabled"]),w(et,{size:"small",type:"primary",onClick:U[19]||(U[19]=Ce=>z(I.value))},{default:re(()=>[We("确认")]),_:1})])])]),default:re(()=>[De((Y(),we(Qn,{last:"",style:{width:"100%"},checked:!!H(a).link,onClick:U[20]||(U[20]=Ce=>D())},{default:re(()=>[w(X)]),_:1},8,["checked"])),[[qe,"超链接"]])]),_:1},8,["value"])]),_:1}),w(Ut),w(_a,{class:"row","button-style":"solid",value:H(a).align,"onUpdate:value":U[22]||(U[22]=Ce=>P("align",Ce))},{default:re(()=>[De((Y(),we(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(te)]),_:1})),[[qe,"左对齐"]]),De((Y(),we(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(le)]),_:1})),[[qe,"居中"]]),De((Y(),we(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w($)]),_:1})),[[qe,"右对齐"]]),De((Y(),we(Nn,{value:"justify",style:{flex:"1"}},{default:re(()=>[w(j)]),_:1})),[[qe,"两端对齐"]])]),_:1},8,["value"]),V("div",Vme,[w(xn,{style:{flex:"1"}},{default:re(()=>[De((Y(),we(et,{first:"",type:H(a).bulletList?"primary":"default",style:{flex:"1"},onClick:U[23]||(U[23]=Ce=>P("bulletList"))},{default:re(()=>[w(se)]),_:1},8,["type"])),[[qe,"项目符号"]]),w(kt,{trigger:"click",value:d.value,"onUpdate:value":U[24]||(U[24]=Ce=>d.value=Ce)},{content:re(()=>[V("div",Ume,[(Y(!0),ee(Ve,null,it(A.value,Ce=>(Y(),ee("ul",{class:"list",key:Ce,style:Le({listStyleType:Ce}),onClick:Te=>P("bulletList",Ce)},[(Y(),ee(Ve,null,it(3,Te=>V("li",{class:"list-item",key:Te},Zme)),64))],12,Yme))),128))])]),default:re(()=>[w(et,{last:"",class:"popover-btn"},{default:re(()=>[w(ge)]),_:1})]),_:1},8,["value"])]),_:1}),Bme,w(xn,{style:{flex:"1"},passive:""},{default:re(()=>[De((Y(),we(et,{first:"",type:H(a).orderedList?"primary":"default",style:{flex:"1"},onClick:U[25]||(U[25]=Ce=>P("orderedList"))},{default:re(()=>[w(ce)]),_:1},8,["type"])),[[qe,"编号"]]),w(kt,{trigger:"click",value:h.value,"onUpdate:value":U[26]||(U[26]=Ce=>h.value=Ce)},{content:re(()=>[V("div",Dme,[(Y(!0),ee(Ve,null,it(x.value,Ce=>(Y(),ee("ul",{class:"list",key:Ce,style:Le({listStyleType:Ce}),onClick:Te=>P("orderedList",Ce)},[(Y(),ee(Ve,null,it(3,Te=>V("li",{class:"list-item",key:Te},Gme)),64))],12,Kme))),128))])]),default:re(()=>[w(et,{last:"",class:"popover-btn"},{default:re(()=>[w(ge)]),_:1})]),_:1},8,["value"])]),_:1})]),V("div",zme,[w(xn,{style:{flex:"1"},passive:""},{default:re(()=>[De((Y(),we(et,{first:"",style:{flex:"1"},onClick:U[27]||(U[27]=Ce=>P("indent","-1"))},{default:re(()=>[w(Ae)]),_:1})),[[qe,"减小段落缩进"]]),w(kt,{trigger:"click",value:p.value,"onUpdate:value":U[29]||(U[29]=Ce=>p.value=Ce)},{content:re(()=>[w(Oo,{onClick:U[28]||(U[28]=Ce=>P("textIndent","-1"))},{default:re(()=>[We("减小首行缩进")]),_:1})]),default:re(()=>[w(et,{last:"",class:"popover-btn"},{default:re(()=>[w(ge)]),_:1})]),_:1},8,["value"])]),_:1}),Jme,w(xn,{style:{flex:"1"},passive:""},{default:re(()=>[De((Y(),we(et,{first:"",style:{flex:"1"},onClick:U[30]||(U[30]=Ce=>P("indent","+1"))},{default:re(()=>[w(ye)]),_:1})),[[qe,"增大段落缩进"]]),w(kt,{trigger:"click",value:m.value,"onUpdate:value":U[32]||(U[32]=Ce=>m.value=Ce)},{content:re(()=>[w(Oo,{onClick:U[31]||(U[31]=Ce=>P("textIndent","+1"))},{default:re(()=>[We("增大首行缩进")]),_:1})]),default:re(()=>[w(et,{last:"",class:"popover-btn"},{default:re(()=>[w(ge)]),_:1})]),_:1},8,["value"])]),_:1})]),w(Ut),V("div",$me,[jme,w(Zn,{style:{width:"60%"},value:y.value||1,"onUpdate:value":U[33]||(U[33]=Ce=>k(Ce)),options:T.map(Ce=>({label:Ce+"倍",value:Ce}))},{icon:re(()=>[w(Ee)]),_:1},8,["value","options"])]),V("div",qme,[eve,w(Zn,{style:{width:"60%"},value:S.value||0,"onUpdate:value":U[34]||(U[34]=Ce=>F(Ce)),options:O.map(Ce=>({label:Ce+"px",value:Ce}))},{icon:re(()=>[w(Se)]),_:1},8,["value","options"])]),V("div",tve,[nve,w(Zn,{style:{width:"60%"},value:g.value||0,"onUpdate:value":U[35]||(U[35]=Ce=>N(Ce)),options:M.map(Ce=>({label:Ce+"px",value:Ce}))},{icon:re(()=>[w(be)]),_:1},8,["value","options"])]),V("div",rve,[ove,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:R.value,"onUpdate:modelValue":U[36]||(U[36]=Ce=>E(Ce))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:R.value},null,8,["color"])]),_:1})]),w(Ut),w(Hp),w(Ut),w(g2),w(Ut),w(d_)])}}}),ave=Ue(ive,[["__scopeId","data-v-becd4c4e"]]),sve={class:"element-flip"},lve=Fe({__name:"ElementFlip",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=pe(!1),o=pe(!1);Tt(n,()=>{n.value&&(n.value.type==="image"||n.value.type==="shape")&&(r.value=!!n.value.flipH,o.value=!!n.value.flipV)},{deep:!0,immediate:!0});const{addHistorySnapshot:i}=zt(),a=s=>{n.value&&(t.updateElement({id:n.value.id,props:s}),i())};return(s,c)=>{const l=xe("IconFlipVertically"),u=xe("IconFlipHorizontally");return Y(),ee("div",sve,[w(xn,{class:"row"},{default:re(()=>[w(Qn,{style:{flex:"1"},checked:o.value,onClick:c[0]||(c[0]=f=>a({flipV:!o.value}))},{default:re(()=>[w(l),We(" 垂直翻转")]),_:1},8,["checked"]),w(Qn,{style:{flex:"1"},checked:r.value,onClick:c[1]||(c[1]=f=>a({flipH:!r.value}))},{default:re(()=>[w(u),We(" 水平翻转")]),_:1},8,["checked"])]),_:1})])}}}),y_=Ue(lve,[["__scopeId","data-v-100c8a7c"]]),cve=e=>(on("data-v-44786c09"),e=e(),an(),e),uve={class:"element-filter"},fve={class:"row"},dve=cve(()=>V("div",{style:{flex:"2"}},"启用滤镜:",-1)),hve={class:"switch-wrapper",style:{flex:"3"}},pve={key:0,class:"filter"},mve={class:"name"},vve=Fe({__name:"ElementFilter",setup(e){const t=[{label:"模糊",key:"blur",default:0,value:0,unit:"px",max:10,step:1},{label:"亮度",key:"brightness",default:100,value:100,unit:"%",max:200,step:5},{label:"对比度",key:"contrast",default:100,value:100,unit:"%",max:200,step:5},{label:"灰度",key:"grayscale",default:0,value:0,unit:"%",max:100,step:5},{label:"饱和度",key:"saturate",default:100,value:100,unit:"%",max:200,step:5},{label:"色相",key:"hue-rotate",default:0,value:0,unit:"deg",max:360,step:10},{label:"不透明度",key:"opacity",default:100,value:100,unit:"%",max:100,step:5}],n=ct(),{handleElement:r,handleElementId:o}=Xe(ft()),i=pe(JSON.parse(JSON.stringify(t))),a=pe(!1),{addHistorySnapshot:s}=zt();Tt(r,()=>{if(!r.value||r.value.type!=="image")return;const u=r.value.filters;u?(i.value=t.map(f=>{const d=u[f.key];return d?{...f,value:parseInt(d)}:f}),a.value=!0):(i.value=JSON.parse(JSON.stringify(t)),a.value=!1)},{deep:!0,immediate:!0});const c=(u,f)=>{const p={...r.value.filters||{},[u.key]:`${f}${u.unit}`};n.updateElement({id:o.value,props:{filters:p}}),s()},l=u=>{r.value&&(u?n.updateElement({id:r.value.id,props:{filters:{}}}):n.removeElementProps({id:r.value.id,propName:"filters"}),s())};return(u,f)=>(Y(),ee("div",uve,[V("div",fve,[dve,V("div",hve,[w(oa,{value:a.value,"onUpdate:value":f[0]||(f[0]=d=>l(d))},null,8,["value"])])]),a.value?(Y(),ee("div",pve,[(Y(!0),ee(Ve,null,it(i.value,d=>(Y(),ee("div",{class:"filter-item",key:d.key},[V("div",mve,gt(d.label),1),w(no,{class:"filter-slider",max:d.max,min:0,step:d.step,value:d.value,"onUpdate:value":h=>c(d,h)},null,8,["max","step","value","onUpdate:value"])]))),128))])):Be("",!0)]))}}),gve=Ue(vve,[["__scopeId","data-v-44786c09"]]),x_=e=>(on("data-v-d428a4e5"),e=e(),an(),e),Ave={class:"element-color-mask"},Rve={class:"row"},yve=x_(()=>V("div",{style:{width:"40%"}},"着色(蒙版):",-1)),xve={class:"switch-wrapper",style:{width:"60%"}},bve={key:0,class:"row",style:{"margin-top":"15px"}},Sve=x_(()=>V("div",{style:{width:"40%"}},"蒙版颜色:",-1)),JT="rgba(226, 83, 77, 0.5)",Mve=Fe({__name:"ElementColorMask",setup(e){const t=ct(),{handleElement:n,handleElementId:r}=Xe(ft()),o=pe(JT),i=pe(!1),{addHistorySnapshot:a}=zt();Tt(n,()=>{!n.value||n.value.type!=="image"||(n.value.colorMask?(o.value=n.value.colorMask,i.value=!0):i.value=!1)},{deep:!0,immediate:!0});const s=l=>{n.value&&(l?t.updateElement({id:n.value.id,props:{colorMask:JT}}):t.removeElementProps({id:n.value.id,propName:"colorMask"}),a())},c=l=>{t.updateElement({id:r.value,props:{colorMask:l}}),a()};return(l,u)=>(Y(),ee("div",Ave,[V("div",Rve,[yve,V("div",xve,[w(oa,{value:i.value,"onUpdate:value":u[0]||(u[0]=f=>s(f))},null,8,["value"])])]),i.value?(Y(),ee("div",bve,[Sve,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=f=>c(f))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:o.value},null,8,["color"])]),_:1})])):Be("",!0)]))}}),wve=Ue(Mve,[["__scopeId","data-v-d428a4e5"]]),Lve=e=>(on("data-v-0c668b03"),e=e(),an(),e),Ove={class:"image-style-panel"},Tve={class:"clip"},kve=Lve(()=>V("div",{class:"title"},"按形状:",-1)),Nve={class:"shape-clip"},Pve=["onClick"],Cve={key:0,class:"title"},Ive=Fe({__name:"ImageStylePanel",setup(e){const t=B3,n=[{label:"纵横比(正方形)",children:[{key:"1:1",ratio:1/1}]},{label:"纵横比(纵向)",children:[{key:"2:3",ratio:3/2},{key:"3:4",ratio:4/3},{key:"3:5",ratio:5/3},{key:"4:5",ratio:5/4}]},{label:"纵横比(横向)",children:[{key:"3:2",ratio:2/3},{key:"4:3",ratio:3/4},{key:"5:3",ratio:3/5},{key:"5:4",ratio:4/5}]},{children:[{key:"16:9",ratio:9/16},{key:"16:10",ratio:10/16}]}],r=ft(),o=ct(),{handleElement:i,handleElementId:a}=Xe(r),{currentSlide:s}=Xe(o),c=i,l=pe(!1),{addHistorySnapshot:u}=zt(),f=()=>{r.setClipingImageElementId(a.value),l.value=!1},d=()=>{const x=i.value,R=x.width,y=x.height,g=x.left,S=x.top,L=x.clip?x.clip.range:[[0,0],[100,100]],T=R/((L[1][0]-L[0][0])/100),M=y/((L[1][1]-L[0][1])/100),O=g-T*(L[0][0]/100),k=S-M*(L[0][1]/100);return{originClipRange:L,originWidth:T,originHeight:M,originLeft:O,originTop:k}},h=(x,R=0)=>{const y=i.value,{originClipRange:g,originWidth:S,originHeight:L,originLeft:T,originTop:M}=d();if(R){const O=L/S,k=0,F=100;let N;if(O>R){const E=(1-R/O)/2*100;N=[[k,E],[F,F-E]]}else{const E=(1-O/R)/2*100;N=[[E,k],[F-E,F]]}o.updateElement({id:a.value,props:{clip:{...y.clip,shape:x,range:N},left:T+S*(N[0][0]/100),top:M+L*(N[0][1]/100),width:S*(N[1][0]-N[0][0])/100,height:L*(N[1][1]-N[0][1])/100}})}else o.updateElement({id:a.value,props:{clip:{...y.clip,shape:x,range:g}}});f(),u()},p=x=>{const R=x[0];R&&(zu(R).then(y=>{const g={src:y};o.updateElement({id:a.value,props:g})}),u())},m=()=>{if(i.value.clip){const{originWidth:R,originHeight:y,originLeft:g,originTop:S}=d();o.updateElement({id:a.value,props:{left:g,top:S,width:R,height:y}})}o.removeElementProps({id:a.value,propName:["clip","outline","flip","shadow","filters","colorMask"]}),u()},A=()=>{const x=i.value,R={...s.value.background,type:"image",image:x.src,imageSize:"cover"};o.updateSlide({background:R}),u()};return(x,R)=>{const y=xe("IconTailoring"),g=xe("IconDown"),S=xe("IconTransform"),L=xe("IconUndo"),T=xe("IconTheme");return Y(),ee("div",Ove,[V("div",{class:"origin-image",style:Le({backgroundImage:`url(${H(c).src})`})},null,4),w(y_),w(xn,{class:"row",passive:""},{default:re(()=>[w(et,{first:"",style:{width:"calc(100% / 6 * 5)"},onClick:R[0]||(R[0]=M=>f())},{default:re(()=>[w(y,{class:"btn-icon"}),We(" 裁剪图片")]),_:1}),w(kt,{trigger:"click",value:l.value,"onUpdate:value":R[1]||(R[1]=M=>l.value=M),style:{width:"calc(100% / 6)"}},{content:re(()=>[V("div",Tve,[kve,V("div",Nve,[(Y(!0),ee(Ve,null,it(H(t),(M,O)=>(Y(),ee("div",{class:"shape-clip-item",key:O,onClick:k=>h(O)},[V("div",{class:"shape",style:Le({clipPath:M.style})},null,4)],8,Pve))),128))]),(Y(),ee(Ve,null,it(n,M=>(Y(),ee(Ve,{key:M.label},[M.label?(Y(),ee("div",Cve,"按"+gt(M.label)+":",1)):Be("",!0),w(xn,{class:"row"},{default:re(()=>[(Y(!0),ee(Ve,null,it(M.children,O=>(Y(),we(et,{style:{flex:"1"},key:O.key,onClick:k=>h("rect",O.ratio)},{default:re(()=>[We(gt(O.key),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)],64))),64))])]),default:re(()=>[w(et,{last:"",class:"popover-btn",style:{width:"100%"}},{default:re(()=>[w(g)]),_:1})]),_:1},8,["value"])]),_:1}),w(Ut),w(wve),w(Ut),w(gve),w(Ut),w(Hp),w(Ut),w(g2),w(Ut),w(Eu,{onChange:R[2]||(R[2]=M=>p(M))},{default:re(()=>[w(et,{class:"full-width-btn"},{default:re(()=>[w(S,{class:"btn-icon"}),We(" 替换图片")]),_:1})]),_:1}),w(et,{class:"full-width-btn",onClick:R[3]||(R[3]=M=>m())},{default:re(()=>[w(L,{class:"btn-icon"}),We(" 重置样式")]),_:1}),w(et,{class:"full-width-btn",onClick:R[4]||(R[4]=M=>A())},{default:re(()=>[w(T,{class:"btn-icon"}),We(" 设为背景")]),_:1})])}}}),Fve=Ue(Ive,[["__scopeId","data-v-0c668b03"]]),_ve=()=>{const e=ft(),{shapeFormatPainter:t,handleElement:n}=Xe(e);return{toggleShapeFormatPainter:(o=!1)=>{const i=n.value;t.value?e.setShapeFormatPainter(null):e.setShapeFormatPainter({keep:o,fill:i.fill,gradient:i.gradient,outline:i.outline,opacity:i.opacity,shadow:i.shadow})}}},zp=e=>(on("data-v-830d0c7f"),e=e(),an(),e),Eve={class:"shape-style-panel"},Xve={class:"title"},Wve=zp(()=>V("span",null,"点击替换形状",-1)),Vve={class:"shape-pool"},Uve={class:"shape-list"},Yve={class:"row"},Qve=zp(()=>V("div",{style:{width:"10px"}},null,-1)),Zve={class:"row"},Bve=zp(()=>V("div",{style:{width:"40%"}},"起点颜色:",-1)),Dve={class:"row"},Kve=zp(()=>V("div",{style:{width:"40%"}},"终点颜色:",-1)),Hve={key:0,class:"row"},Gve=zp(()=>V("div",{style:{width:"40%"}},"渐变角度:",-1)),zve={class:"row"},Jve=Fe({__name:"ShapeStylePanel",setup(e){const t=ft(),n=ct(),{handleElement:r,handleElementId:o,richTextAttrs:i,availableFonts:a,textFormatPainter:s,shapeFormatPainter:c}=Xe(t),l=r,u=pe("#000"),f=pe({type:"linear",rotate:0,color:["#fff","#fff"]}),d=pe("fill"),h=pe("middle");Tt(r,()=>{var O,k;!r.value||r.value.type!=="shape"||(u.value=r.value.fill||"#fff",f.value=r.value.gradient||{type:"linear",rotate:0,color:[u.value,"#fff"]},d.value=r.value.gradient?"gradient":"fill",h.value=((k=(O=r.value)==null?void 0:O.text)==null?void 0:k.align)||"middle")},{deep:!0,immediate:!0});const{addHistorySnapshot:p}=zt(),{toggleTextFormatPainter:m}=c_(),{toggleShapeFormatPainter:A}=_ve(),x=O=>{n.updateElement({id:o.value,props:O}),p()},R=O=>{O==="fill"?(n.removeElementProps({id:o.value,propName:"gradient"}),p()):x({gradient:f.value})},y=O=>{if(!f.value)return;const k={...f.value,...O};x({gradient:k})},g=O=>{x({fill:O})},S=O=>{const{width:k,height:F}=r.value,N={viewBox:O.viewBox,path:O.path,special:O.special};if(O.pathFormula){N.pathFormula=O.pathFormula,N.viewBox=[k,F];const E=Ju[O.pathFormula];"editable"in E?(N.path=E.formula(k,F,E.defaultValue),N.keypoint=E.defaultValue):N.path=E.formula(k,F)}else N.pathFormula=void 0,N.keypoint=void 0;x(N)},L=O=>{const k=r.value,F={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"},N=k.text||F;x({text:{...N,align:O}})},T=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],M=(O,k)=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:O,value:k}})};return(O,k)=>{var he;const F=xe("IconDown"),N=xe("IconFontSize"),E=xe("IconAddText"),P=xe("IconText"),_=xe("IconHighLight"),I=xe("IconTextBold"),W=xe("IconTextItalic"),D=xe("IconTextUnderline"),z=xe("IconStrikethrough"),ae=xe("IconFormat"),U=xe("IconFormatBrush"),Z=xe("IconAlignTextLeft"),B=xe("IconAlignTextCenter"),G=xe("IconAlignTextRight"),Q=xe("IconAlignTextTopOne"),ie=xe("IconAlignTextMiddleOne"),q=xe("IconAlignTextBottomOne"),oe=Mn("tooltip");return Y(),ee("div",Eve,[V("div",Xve,[Wve,w(F)]),V("div",Vve,[(Y(!0),ee(Ve,null,it(H(Nb),me=>(Y(),ee("div",{class:"category",key:me.type},[V("div",Uve,[(Y(!0),ee(Ve,null,it(me.children,(ve,J)=>(Y(),ee(Ve,null,[ve.title!=="任意多边形"?(Y(),we(DF,{class:"shape-item",key:J,shape:ve,onClick:ue=>S(ve)},null,8,["shape","onClick"])):Be("",!0)],64))),256))])]))),128))]),V("div",Yve,[w(Zn,{style:{flex:"1"},value:d.value,"onUpdate:value":k[0]||(k[0]=me=>R(me)),options:[{label:"纯色填充",value:"fill"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),Qve,d.value==="fill"?(Y(),we(kt,{key:0,trigger:"click",style:{flex:"1"}},{content:re(()=>[w(Ln,{modelValue:u.value,"onUpdate:modelValue":k[1]||(k[1]=me=>g(me))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:u.value},null,8,["color"])]),_:1})):(Y(),we(Zn,{key:1,style:{flex:"1"},value:f.value.type,"onUpdate:value":k[2]||(k[2]=me=>y({type:me})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),d.value==="gradient"?(Y(),ee(Ve,{key:0},[V("div",Zve,[Bve,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:f.value.color[0],"onUpdate:modelValue":k[3]||(k[3]=me=>y({color:[me,f.value.color[1]]}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:f.value.color[0]},null,8,["color"])]),_:1})]),V("div",Dve,[Kve,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:f.value.color[1],"onUpdate:modelValue":k[4]||(k[4]=me=>y({color:[f.value.color[0],me]}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:f.value.color[1]},null,8,["color"])]),_:1})]),f.value.type==="linear"?(Y(),ee("div",Hve,[Gve,w(no,{style:{width:"60%"},min:0,max:360,step:15,value:f.value.rotate,"onUpdate:value":k[5]||(k[5]=me=>y({rotate:me}))},null,8,["value"])])):Be("",!0)],64)):Be("",!0),w(y_),w(Ut),(he=H(l).text)!=null&&he.content?(Y(),ee(Ve,{key:1},[w(A2,{class:"row"},{default:re(()=>[w(Zn,{class:"font-select",style:{width:"60%"},value:H(i).fontname,"onUpdate:value":k[6]||(k[6]=me=>M("fontname",me)),options:[...H(a),...H(bp)]},{icon:re(()=>[w(N)]),_:1},8,["value","options"]),w(Zn,{style:{width:"40%"},value:H(i).fontsize,"onUpdate:value":k[7]||(k[7]=me=>M("fontsize",me)),options:T.map(me=>({label:me,value:me}))},{icon:re(()=>[w(E)]),_:1},8,["value","options"])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(i).color,"onUpdate:modelValue":k[8]||(k[8]=me=>M("color",me))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{first:"",color:H(i).color},{default:re(()=>[w(P)]),_:1},8,["color"])),[[oe,"文字颜色"]])]),_:1}),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(i).backcolor,"onUpdate:modelValue":k[9]||(k[9]=me=>M("backcolor",me))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{color:H(i).backcolor},{default:re(()=>[w(_)]),_:1},8,["color"])),[[oe,"文字高亮"]])]),_:1}),De((Y(),we(et,{class:"font-size-btn",style:{width:"20%"},onClick:k[10]||(k[10]=me=>M("fontsize-add"))},{default:re(()=>[w(N),We("+")]),_:1})),[[oe,"增大字号"]]),De((Y(),we(et,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:k[11]||(k[11]=me=>M("fontsize-reduce"))},{default:re(()=>[w(N),We("-")]),_:1})),[[oe,"减小字号"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},checked:H(i).bold,onClick:k[12]||(k[12]=me=>M("bold"))},{default:re(()=>[w(I)]),_:1},8,["checked"])),[[oe,"加粗"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(i).em,onClick:k[13]||(k[13]=me=>M("em"))},{default:re(()=>[w(W)]),_:1},8,["checked"])),[[oe,"斜体"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(i).underline,onClick:k[14]||(k[14]=me=>M("underline"))},{default:re(()=>[w(D)]),_:1},8,["checked"])),[[oe,"下划线"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(i).strikethrough,onClick:k[15]||(k[15]=me=>M("strikethrough"))},{default:re(()=>[w(z)]),_:1},8,["checked"])),[[oe,"删除线"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},onClick:k[16]||(k[16]=me=>M("clear"))},{default:re(()=>[w(ae)]),_:1})),[[oe,"清除格式"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:!!H(s),onClick:k[17]||(k[17]=me=>H(m)()),onDblclick:k[18]||(k[18]=me=>H(m)(!0))},{default:re(()=>[w(U)]),_:1},8,["checked"])),[[oe,"格式刷(双击连续使用)"]])]),_:1}),w(Ut),w(_a,{class:"row","button-style":"solid",value:H(i).align,"onUpdate:value":k[19]||(k[19]=me=>M("align",me))},{default:re(()=>[De((Y(),we(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(Z)]),_:1})),[[oe,"左对齐"]]),De((Y(),we(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(B)]),_:1})),[[oe,"居中"]]),De((Y(),we(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w(G)]),_:1})),[[oe,"右对齐"]])]),_:1},8,["value"]),w(_a,{class:"row","button-style":"solid",value:h.value,"onUpdate:value":k[20]||(k[20]=me=>L(me))},{default:re(()=>[De((Y(),we(Nn,{value:"top",style:{flex:"1"}},{default:re(()=>[w(Q)]),_:1})),[[oe,"顶对齐"]]),De((Y(),we(Nn,{value:"middle",style:{flex:"1"}},{default:re(()=>[w(ie)]),_:1})),[[oe,"居中"]]),De((Y(),we(Nn,{value:"bottom",style:{flex:"1"}},{default:re(()=>[w(q)]),_:1})),[[oe,"底对齐"]])]),_:1},8,["value"]),w(Ut)],64)):Be("",!0),w(Hp),w(Ut),w(g2),w(Ut),w(d_),w(Ut),V("div",zve,[De((Y(),we(Qn,{style:{flex:"1"},checked:!!H(c),onClick:k[21]||(k[21]=me=>H(A)()),onDblclick:k[22]||(k[22]=me=>H(A)(!0))},{default:re(()=>[w(U),We(" 形状格式刷")]),_:1},8,["checked"])),[[oe,"双击连续使用"]])])])}}}),$ve=Ue(Jve,[["__scopeId","data-v-830d0c7f"]]),Jp=e=>(on("data-v-d5f2e330"),e=e(),an(),e),jve={class:"line-style-panel"},qve={class:"row"},ege=Jp(()=>V("div",{style:{width:"40%"}},"线条样式:",-1)),tge={class:"row"},nge=Jp(()=>V("div",{style:{width:"40%"}},"线条颜色:",-1)),rge={class:"row"},oge=Jp(()=>V("div",{style:{width:"40%"}},"线条宽度:",-1)),ige={class:"row"},age=Jp(()=>V("div",{style:{width:"40%"}},"起点样式:",-1)),sge={class:"row"},lge=Jp(()=>V("div",{style:{width:"40%"}},"终点样式:",-1)),cge=Fe({__name:"LineStylePanel",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=n,{addHistorySnapshot:o}=zt(),i=a=>{n.value&&(t.updateElement({id:n.value.id,props:a}),o())};return(a,s)=>(Y(),ee("div",jve,[V("div",qve,[ege,w(Zn,{style:{width:"60%"},value:H(r).style,"onUpdate:value":s[0]||(s[0]=c=>i({style:c})),options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"}]},null,8,["value"])]),V("div",tge,[nge,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(r).color,"onUpdate:modelValue":s[1]||(s[1]=c=>i({color:c}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(r).color},null,8,["color"])]),_:1})]),V("div",rge,[oge,w(Li,{value:H(r).width,"onUpdate:value":s[2]||(s[2]=c=>i({width:c})),style:{width:"60%"}},null,8,["value"])]),V("div",ige,[age,w(Zn,{style:{width:"60%"},value:H(r).points[0],"onUpdate:value":s[3]||(s[3]=c=>i({points:[c,H(r).points[1]]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),V("div",sge,[lge,w(Zn,{style:{width:"60%"},value:H(r).points[1],"onUpdate:value":s[4]||(s[4]=c=>i({points:[H(r).points[0],c]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),w(Ut),w(g2)]))}}),uge=Ue(cge,[["__scopeId","data-v-d5f2e330"]]),fge={class:"chart-data-editor"},dge={class:"editor-content"},hge={class:"range-box"},pge=["id","onFocus","onPaste"],mge={class:"btns"},vge={class:"left"},gge={class:"right"},Tl=100,kl=32,Age=Fe({__name:"ChartDataEditor",props:{data:{}},emits:["save","close"],setup(e,{emit:t}){const n=e,r=t,o=pe([0,0]),i=pe({width:0,height:0}),a=pe(null),s=Me(()=>{const x=o.value[0]*Tl,R=o.value[1]*kl;return[{type:"t",style:{width:x+"px"}},{type:"b",style:{top:R+"px",width:x+"px"}},{type:"l",style:{height:R+"px"}},{type:"r",style:{left:x+"px",height:R+"px"}}]}),c=Me(()=>{const x=o.value[0]*Tl,R=o.value[1]*kl;return{left:x+"px",top:R+"px"}});Gt(()=>{const x=[],{labels:R,legends:y,series:g}=n.data,S=R.length,L=g.length;x.push(["",...y]);for(let T=0;T{if(!a.value)return;const[x,R]=a.value,y=document.querySelector(`#cell-${x+1}-${R}`);y&&y.focus()},f=x=>{x.key.toUpperCase()===yt.ENTER&&u()};Gt(()=>{document.addEventListener("keydown",f)}),Tn(()=>{document.removeEventListener("keydown",f)});const d=()=>{const[x,R]=o.value,y=[],g=[],S=[];for(let L=1;L{for(let x=1;x<31;x++)for(let R=1;R<7;R++){const y=document.querySelector(`#cell-${x}-${R}`);y&&(y.value="")}},p=(x,R,y)=>{if(x.preventDefault(),!x.clipboardData)return;const g=x.clipboardData.items[0];g&&g.kind==="string"&&g.type==="text/plain"&&g.getAsString(S=>{if(typeof Ob(S)=="object")return;const T=GP(S);if(T){const M=R+T.length,O=y+T[0].length;for(let k=R;kr("close"),A=x=>{let R=!0;const y=x.pageX,g=x.pageY,S=o.value[0]*Tl,L=o.value[1]*kl;document.onmousemove=T=>{if(!R)return;const M=T.pageX,O=T.pageY,k=M-y,F=O-g,N=S+k,E=L+F;i.value={width:N,height:E}},document.onmouseup=T=>{R=!1,document.onmousemove=null,document.onmouseup=null;const M=T.pageX,O=T.pageY;if(y===M&&g===O)return;let k=i.value.width,F=i.value.height;k%Tl>Tl*.5&&(k=k+(Tl-k%Tl)),F%kl>kl*.5&&(F=F+(kl-F%kl));let N=Math.round(F/kl),E=Math.round(k/Tl);N<3&&(N=3),E<2&&(E=2),o.value=[E,N],i.value={width:0,height:0}}};return(x,R)=>(Y(),ee("div",fge,[V("div",dge,[V("div",hge,[V("div",{class:"temp-range",style:Le({width:i.value.width+"px",height:i.value.height+"px"})},null,4),(Y(!0),ee(Ve,null,it(s.value,y=>(Y(),ee("div",{class:$e(["range-line",y.type]),key:y.type,style:Le(y.style)},null,6))),128)),V("div",{class:"resizable",style:Le(c.value),onMousedown:R[0]||(R[0]=Wt(y=>A(y),["stop"]))},null,36)]),V("table",null,[V("tbody",null,[(Y(),ee(Ve,null,it(31,y=>V("tr",{key:y},[(Y(),ee(Ve,null,it(7,g=>V("td",{key:g,class:$e({head:g===1&&y<=o.value[1]||y===1&&g<=o.value[0]})},[V("input",{class:$e(["item",{selected:y<=o.value[1]&&g<=o.value[0]}]),id:`cell-${y-1}-${g-1}`,autocomplete:"off",onFocus:S=>a.value=[y-1,g-1],onPaste:S=>p(S,y-1,g-1)},null,42,pge)],2)),64))])),64))])])]),V("div",mge,[V("div",vge,[w(et,{class:"btn",onClick:R[1]||(R[1]=y=>h())},{default:re(()=>[We("清空")]),_:1})]),V("div",gge,[w(et,{class:"btn",onClick:R[2]||(R[2]=y=>m())},{default:re(()=>[We("取消")]),_:1}),w(et,{type:"primary",class:"btn",onClick:R[3]||(R[3]=y=>d()),style:{"margin-left":"10px"}},{default:re(()=>[We("确认")]),_:1})])])]))}}),Rge=Ue(Age,[["__scopeId","data-v-ac578a4f"]]),b_=e=>(on("data-v-3d20c849"),e=e(),an(),e),yge=b_(()=>V("span",{class:"checkbox-input"},null,-1)),xge=b_(()=>V("input",{class:"checkbox-original",type:"checkbox"},null,-1)),bge={class:"checkbox-label"},Sge=Fe({__name:"Checkbox",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=i=>{n.disabled||r("update:value",i.target.checked)};return(i,a)=>(Y(),ee("label",{class:$e(["checkbox",{checked:i.value,disabled:i.disabled}]),onChange:a[0]||(a[0]=s=>o(s))},[yge,xge,V("span",bge,[cr(i.$slots,"default",{},void 0,!0)])],34))}}),qa=Ue(Sge,[["__scopeId","data-v-3d20c849"]]),E5=e=>(on("data-v-63098034"),e=e(),an(),e),Mge={class:"chart-style-panel"},wge={class:"row"},Lge={class:"row"},Oge={key:1,class:"row"},Tge={key:2,class:"row"},kge={class:"row"},Nge=E5(()=>V("div",{style:{width:"40%"}},"图例:",-1)),Pge={class:"row"},Cge=E5(()=>V("div",{style:{width:"40%"}},"背景填充:",-1)),Ige={class:"row"},Fge=E5(()=>V("div",{style:{width:"40%"}},"网格颜色:",-1)),_ge={style:{width:"40%"}},Ege={class:"color-btn-wrap",style:{width:"100%"}},Xge=["onClick"],Wge={class:"preset-themes"},Vge=["onClick","onMouseenter"],Uge=Fe({__name:"index",setup(e){const t=[["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d"],["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78"],["#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],["#893448","#d95850","#eb8146","#ffb248","#f2d643","#ebdba4"],["#4ea397","#22c3aa","#7bd9a5","#d0648a","#f58db2","#f2b3c9"],["#3fb1e3","#6be6c1","#626c91","#a0a7e6","#c4ebad","#96dee8"],["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb"],["#c1232b","#27727b","#fcce10","#e87c25","#b5c334","#fe8463"],["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3"],["#e01f54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2"],["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8"],["#8a7ca8","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc"]],n=ft(),r=ct(),{handleElement:o,handleElementId:i}=Xe(n),{theme:a}=Xe(r),s=o,c=pe(!1),l=pe(!1),u=pe([-1,-1]),{addHistorySnapshot:f}=zt(),d=pe("#000"),h=pe([]),p=pe(""),m=pe(""),A=pe(!0),x=pe(!0),R=pe(!1),y=pe(!1),g=pe(!1),S=pe(!1);Tt(o,()=>{if(!(!o.value||o.value.type!=="chart")){if(d.value=o.value.fill||"#fff",o.value.options){const{lineSmooth:W,showLine:D,showArea:z,horizontalBars:ae,donut:U,stackBars:Z}=o.value.options;A.value=!!W,x.value=!!D,R.value=!!z,y.value=!!ae,g.value=!!U,S.value=!!Z}h.value=o.value.themeColor,p.value=o.value.gridColor||"#333",m.value=o.value.legend||""}},{deep:!0,immediate:!0});const L=W=>{r.updateElement({id:i.value,props:W}),f()},T=W=>{c.value=!1,L({data:W})},M=W=>{L({fill:W})},O=W=>{const z={...o.value.options,...W};L({options:z})},k=(W,D)=>{const z={themeColor:h.value.map((ae,U)=>U===D?W:ae)};L(z)},F=()=>{const W={themeColor:[...h.value,a.value.themeColor]};L(W)},N=(W,D)=>{const z=W.slice(0,D+1);L({themeColor:z}),l.value=!1},E=W=>{const D={themeColor:h.value.filter((z,ae)=>ae!==W)};L(D)},P=W=>{L({gridColor:W})},_=W=>{L({legend:W})},I=()=>c.value=!0;return Zr.on(Wr.OPEN_CHART_DATA_EDITOR,I),Tn(()=>{Zr.off(Wr.OPEN_CHART_DATA_EDITOR,I)}),(W,D)=>{const z=xe("IconEdit"),ae=xe("IconCloseSmall"),U=xe("IconPlus"),Z=Mn("tooltip");return Y(),ee("div",Mge,[w(et,{class:"full-width-btn",onClick:D[0]||(D[0]=B=>c.value=!0)},{default:re(()=>[w(z,{class:"btn-icon"}),We(" 编辑图表数据 ")]),_:1}),w(Ut),H(s).chartType==="line"?(Y(),ee(Ve,{key:0},[V("div",wge,[w(qa,{"onUpdate:value":D[1]||(D[1]=B=>O({showArea:B})),value:R.value,style:{flex:"1"}},{default:re(()=>[We("面积图样式")]),_:1},8,["value"]),w(qa,{"onUpdate:value":D[2]||(D[2]=B=>O({showLine:B})),value:!x.value,style:{flex:"1"}},{default:re(()=>[We("散点图样式")]),_:1},8,["value"])]),V("div",Lge,[w(qa,{"onUpdate:value":D[3]||(D[3]=B=>O({lineSmooth:B})),value:A.value},{default:re(()=>[We("使用平滑曲线")]),_:1},8,["value"])])],64)):Be("",!0),H(s).chartType==="bar"?(Y(),ee("div",Oge,[w(qa,{"onUpdate:value":D[4]||(D[4]=B=>O({horizontalBars:B})),value:y.value,style:{flex:"1"}},{default:re(()=>[We("条形图样式")]),_:1},8,["value"]),w(qa,{"onUpdate:value":D[5]||(D[5]=B=>O({stackBars:B})),value:S.value,style:{flex:"1"}},{default:re(()=>[We("堆叠样式")]),_:1},8,["value"])])):Be("",!0),H(s).chartType==="pie"?(Y(),ee("div",Tge,[w(qa,{"onUpdate:value":D[6]||(D[6]=B=>O({donut:B})),value:g.value},{default:re(()=>[We("环形图样式")]),_:1},8,["value"])])):Be("",!0),w(Ut),V("div",kge,[Nge,w(Zn,{style:{width:"60%"},value:m.value,"onUpdate:value":D[7]||(D[7]=B=>_(B)),options:[{label:"不显示",value:""},{label:"显示在上方",value:"top"},{label:"显示在下方",value:"bottom"}]},null,8,["value"])]),w(Ut),V("div",Pge,[Cge,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:d.value,"onUpdate:modelValue":D[8]||(D[8]=B=>M(B))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:d.value},null,8,["color"])]),_:1})]),V("div",Ige,[Fge,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:p.value,"onUpdate:modelValue":D[9]||(D[9]=B=>P(B))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:p.value},null,8,["color"])]),_:1})]),w(Ut),(Y(!0),ee(Ve,null,it(h.value,(B,G)=>(Y(),ee("div",{class:"row",key:G},[V("div",_ge,gt(G===0?"主题配色:":""),1),w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:B,"onUpdate:modelValue":Q=>k(Q,G)},null,8,["modelValue","onUpdate:modelValue"])]),default:re(()=>[V("div",Ege,[w(ir,{color:B},null,8,["color"]),G!==0?De((Y(),ee("div",{key:0,class:"delete-color-btn",onClick:Wt(Q=>E(G),["stop"])},[w(ae)],8,Xge)),[[Z,"删除"]]):Be("",!0)])]),_:2},1024)]))),128)),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",open:l.value,"onUpdate:open":D[11]||(D[11]=B=>l.value=B),style:{width:"40%"}},{content:re(()=>[V("div",Wge,[(Y(),ee(Ve,null,it(t,(B,G)=>V("div",{class:"preset-theme",key:G},[(Y(!0),ee(Ve,null,it(B,(Q,ie)=>(Y(),ee("div",{class:$e(["preset-theme-color",{select:u.value[0]===G&&ie<=u.value[1]}]),key:Q,style:Le({backgroundColor:Q}),onClick:q=>N(B,ie),onMouseenter:q=>u.value=[G,ie],onMouseleave:D[10]||(D[10]=q=>u.value=[-1,-1])},null,46,Vge))),128))])),64))])]),default:re(()=>[w(et,{first:"",style:{width:"100%"}},{default:re(()=>[We("推荐主题")]),_:1})]),_:1},8,["open"]),w(et,{last:"",disabled:h.value.length>=10,style:{width:"60%"},onClick:D[12]||(D[12]=B=>F())},{default:re(()=>[w(U,{class:"btn-icon"}),We(" 添加主题色 ")]),_:1},8,["disabled"])]),_:1}),w(Ut),w(Hp),w(Zp,{visible:c.value,"onUpdate:visible":D[15]||(D[15]=B=>c.value=B),width:640},{default:re(()=>[w(Rge,{data:H(s).data,onClose:D[13]||(D[13]=B=>c.value=!1),onSave:D[14]||(D[14]=B=>T(B))},null,8,["data"])]),_:1},8,["visible"])])}}}),Yge=Ue(Uge,[["__scopeId","data-v-63098034"]]),R2=e=>(on("data-v-adc75d19"),e=e(),an(),e),Qge={class:"table-style-panel"},Zge={class:"row"},Bge=R2(()=>V("div",{style:{width:"40%"}},"行数:",-1)),Dge={class:"set-count",style:{width:"60%"}},Kge={class:"count-text"},Hge={class:"row"},Gge=R2(()=>V("div",{style:{width:"40%"}},"列数:",-1)),zge={class:"set-count",style:{width:"60%"}},Jge={class:"count-text"},$ge={class:"row theme-switch"},jge=R2(()=>V("div",{style:{width:"40%"}},"启用主题表格:",-1)),qge={class:"switch-wrapper",style:{width:"60%"}},e2e={class:"row"},t2e={class:"row"},n2e={class:"row"},r2e=R2(()=>V("div",{style:{width:"40%"}},"主题颜色:",-1)),o2e=Fe({__name:"TableStylePanel",setup(e){const t=ct(),{handleElement:n,handleElementId:r,selectedTableCells:o,availableFonts:i}=Xe(ft()),a=Me(()=>t.theme.themeColor),s=["12px","14px","16px","18px","20px","22px","24px","28px","32px"],c=pe({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"12px",fontname:"微软雅黑",align:"left"}),l=pe(),u=pe(!1),f=pe(0),d=pe(0),h=pe(0),p=pe(0);Tt(n,()=>{!n.value||n.value.type!=="table"||(l.value=n.value.theme,u.value=!!l.value,f.value=n.value.data.length,d.value=n.value.data[0].length,h.value=n.value.data.length,p.value=n.value.data[0].length)},{deep:!0,immediate:!0});const{addHistorySnapshot:m}=zt(),A=()=>{if(!n.value||n.value.type!=="table")return;let T=0,M=0;if(o.value.length){const k=o.value[0];T=+k.split("_")[0],M=+k.split("_")[1]}const O=n.value.data[T][M].style;O?c.value={bold:!!O.bold,em:!!O.em,underline:!!O.underline,strikethrough:!!O.strikethrough,color:O.color||"#000",backcolor:O.backcolor||"",fontsize:O.fontsize||"12px",fontname:O.fontname||"微软雅黑",align:O.align||"left"}:c.value={bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"12px",fontname:"微软雅黑",align:"left"}};Gt(()=>{o.value.length&&A()}),Tt(o,A);const x=T=>{t.updateElement({id:r.value,props:T}),m()},R=T=>{const M=n.value,O=JSON.parse(JSON.stringify(M.data));for(let k=0;k{if(!l.value)return;const M={...l.value,...T};x({theme:M})},g=T=>{if(T){const M={theme:{color:a.value,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}};x(M)}else t.removeElementProps({id:r.value,propName:"theme"}),m()},S=T=>{const M=n.value,O=M.data.length;if(T>O){const k=new Array(d.value).fill({id:pn(10),colspan:1,rowspan:1,text:""}),F=new Array(T-O).fill(k),N=JSON.parse(JSON.stringify(M.data));N.push(...F),x({data:N})}else{const k=M.data.slice(0,T);x({data:k})}},L=T=>{const M=n.value,O=M.data[0].length;let k=M.data,F=M.colWidths.map(_=>_*M.width);if(T>O){k=k.map(I=>{const W=new Array(T-O).fill({id:pn(10),colspan:1,rowspan:1,text:""});return I.push(...W),I});const _=new Array(T-O).fill(100);F.push(..._)}else k=k.map(_=>_.slice(0,T)),F=F.slice(0,T);const N=F.reduce((_,I)=>_+I),E=F.map(_=>_/N);x({width:N,data:k,colWidths:E})};return(T,M)=>{const O=xe("IconFontSize"),k=xe("IconAddText"),F=xe("IconText"),N=xe("IconFill"),E=xe("IconTextBold"),P=xe("IconTextItalic"),_=xe("IconTextUnderline"),I=xe("IconStrikethrough"),W=xe("IconAlignTextLeft"),D=xe("IconAlignTextCenter"),z=xe("IconAlignTextRight"),ae=xe("IconMinus"),U=xe("IconPlus"),Z=Mn("tooltip");return Y(),ee("div",Qge,[w(A2,{class:"row"},{default:re(()=>[w(Zn,{style:{width:"50%"},value:c.value.fontname,"onUpdate:value":M[0]||(M[0]=B=>R({fontname:B})),options:[...H(i),...H(bp)]},{icon:re(()=>[w(O)]),_:1},8,["value","options"]),w(Zn,{style:{width:"50%"},value:c.value.fontsize,"onUpdate:value":M[1]||(M[1]=B=>R({fontsize:B})),options:s.map(B=>({label:B,value:B}))},{icon:re(()=>[w(k)]),_:1},8,["value","options"])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",style:{width:"50%"}},{content:re(()=>[w(Ln,{modelValue:c.value.color,"onUpdate:modelValue":M[2]||(M[2]=B=>R({color:B}))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{first:"",color:c.value.color},{default:re(()=>[w(F)]),_:1},8,["color"])),[[Z,"文字颜色"]])]),_:1}),w(kt,{trigger:"click",style:{width:"50%"}},{content:re(()=>[w(Ln,{modelValue:c.value.backcolor,"onUpdate:modelValue":M[3]||(M[3]=B=>R({backcolor:B}))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{last:"",color:c.value.backcolor},{default:re(()=>[w(N)]),_:1},8,["color"])),[[Z,"单元格填充"]])]),_:1})]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},checked:c.value.bold,onClick:M[4]||(M[4]=B=>R({bold:!c.value.bold}))},{default:re(()=>[w(E)]),_:1},8,["checked"])),[[Z,"加粗"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:c.value.em,onClick:M[5]||(M[5]=B=>R({em:!c.value.em}))},{default:re(()=>[w(P)]),_:1},8,["checked"])),[[Z,"斜体"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:c.value.underline,onClick:M[6]||(M[6]=B=>R({underline:!c.value.underline}))},{default:re(()=>[w(_)]),_:1},8,["checked"])),[[Z,"下划线"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:c.value.strikethrough,onClick:M[7]||(M[7]=B=>R({strikethrough:!c.value.strikethrough}))},{default:re(()=>[w(I)]),_:1},8,["checked"])),[[Z,"删除线"]])]),_:1}),w(_a,{class:"row","button-style":"solid",value:c.value.align,"onUpdate:value":M[8]||(M[8]=B=>R({align:B}))},{default:re(()=>[De((Y(),we(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(W)]),_:1})),[[Z,"左对齐"]]),De((Y(),we(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(D)]),_:1})),[[Z,"居中"]]),De((Y(),we(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w(z)]),_:1})),[[Z,"右对齐"]])]),_:1},8,["value"]),w(Ut),w(Hp,{fixed:!0}),w(Ut),V("div",Zge,[Bge,V("div",Dge,[w(et,{class:"btn",disabled:f.value<=1,onClick:M[9]||(M[9]=B=>S(f.value-1))},{default:re(()=>[w(ae)]),_:1},8,["disabled"]),V("div",Kge,gt(f.value),1),w(et,{class:"btn",disabled:f.value>=30,onClick:M[10]||(M[10]=B=>S(f.value+1))},{default:re(()=>[w(U)]),_:1},8,["disabled"])])]),V("div",Hge,[Gge,V("div",zge,[w(et,{class:"btn",disabled:d.value<=1,onClick:M[11]||(M[11]=B=>L(d.value-1))},{default:re(()=>[w(ae)]),_:1},8,["disabled"]),V("div",Jge,gt(d.value),1),w(et,{class:"btn",disabled:d.value>=30,onClick:M[12]||(M[12]=B=>L(d.value+1))},{default:re(()=>[w(U)]),_:1},8,["disabled"])])]),w(Ut),V("div",$ge,[jge,V("div",qge,[w(oa,{value:u.value,"onUpdate:value":M[13]||(M[13]=B=>g(B))},null,8,["value"])])]),l.value?(Y(),ee(Ve,{key:0},[V("div",e2e,[w(qa,{"onUpdate:value":M[14]||(M[14]=B=>y({rowHeader:B})),value:l.value.rowHeader,style:{flex:"1"}},{default:re(()=>[We("标题行")]),_:1},8,["value"]),w(qa,{"onUpdate:value":M[15]||(M[15]=B=>y({rowFooter:B})),value:l.value.rowFooter,style:{flex:"1"}},{default:re(()=>[We("汇总行")]),_:1},8,["value"])]),V("div",t2e,[w(qa,{"onUpdate:value":M[16]||(M[16]=B=>y({colHeader:B})),value:l.value.colHeader,style:{flex:"1"}},{default:re(()=>[We("第一列")]),_:1},8,["value"]),w(qa,{"onUpdate:value":M[17]||(M[17]=B=>y({colFooter:B})),value:l.value.colFooter,style:{flex:"1"}},{default:re(()=>[We("最后一列")]),_:1},8,["value"])]),V("div",n2e,[r2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:l.value.color,"onUpdate:modelValue":M[18]||(M[18]=B=>y({color:B}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:l.value.color},null,8,["color"])]),_:1})])],64)):Be("",!0)])}}}),i2e=Ue(o2e,[["__scopeId","data-v-adc75d19"]]),S_=e=>(on("data-v-6b6e110e"),e=e(),an(),e),a2e={class:"latex-style-panel"},s2e={class:"row"},l2e={class:"row"},c2e=S_(()=>V("div",{style:{width:"40%"}},"颜色:",-1)),u2e={class:"row"},f2e=S_(()=>V("div",{style:{width:"40%"}},"粗细:",-1)),d2e=Fe({__name:"LatexStylePanel",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=n,o=pe(!1),{addHistorySnapshot:i}=zt(),a=l=>{n.value&&(t.updateElement({id:n.value.id,props:l}),i())},s=l=>{a({path:l.path,latex:l.latex,width:l.w,height:l.h,viewBox:[l.w,l.h]})},c=()=>o.value=!0;return Zr.on(Wr.OPEN_LATEX_EDITOR,c),Tn(()=>{Zr.off(Wr.OPEN_LATEX_EDITOR,c)}),(l,u)=>(Y(),ee("div",a2e,[V("div",s2e,[w(et,{style:{flex:"1"},onClick:u[0]||(u[0]=f=>o.value=!0)},{default:re(()=>[We("编辑 LaTeX")]),_:1})]),w(Ut),V("div",l2e,[c2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(r).color,"onUpdate:modelValue":u[1]||(u[1]=f=>a({color:f}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(r).color},null,8,["color"])]),_:1})]),V("div",u2e,[f2e,w(Li,{min:1,max:3,value:H(r).strokeWidth,"onUpdate:value":u[2]||(u[2]=f=>a({strokeWidth:f})),style:{width:"60%"}},null,8,["value"])]),w(Zp,{visible:o.value,"onUpdate:visible":u[5]||(u[5]=f=>o.value=f),width:880},{default:re(()=>[w(JF,{value:H(r).latex,onClose:u[3]||(u[3]=f=>o.value=!1),onUpdate:u[4]||(u[4]=f=>{s(f),o.value=!1})},null,8,["value"])]),_:1},8,["visible"])]))}}),h2e=Ue(d2e,[["__scopeId","data-v-6b6e110e"]]),M_=e=>(on("data-v-b289959e"),e=e(),an(),e),p2e={class:"video-style-panel"},m2e=M_(()=>V("div",{class:"title"},"视频预览封面",-1)),v2e={class:"background-image-wrapper"},g2e={class:"background-image"},A2e={class:"row"},R2e={class:"row switch-row"},y2e=M_(()=>V("div",{style:{width:"40%"}},"自动播放:",-1)),x2e={class:"switch-wrapper",style:{width:"60%"}},b2e=Fe({__name:"VideoStylePanel",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=n,{addHistorySnapshot:o}=zt(),i=s=>{n.value&&(t.updateElement({id:n.value.id,props:s}),o())},a=s=>{const c=s[0];c&&zu(c).then(l=>i({poster:l}))};return(s,c)=>{const l=xe("IconPlus");return Y(),ee("div",p2e,[m2e,V("div",v2e,[w(Eu,{onChange:c[0]||(c[0]=u=>a(u))},{default:re(()=>[V("div",g2e,[V("div",{class:"content",style:Le({backgroundImage:H(r).poster?`url(${H(r).poster})`:""})},[w(l)],4)])]),_:1})]),V("div",A2e,[w(et,{style:{flex:"1"},onClick:c[1]||(c[1]=u=>i({poster:""}))},{default:re(()=>[We("重置封面")]),_:1})]),V("div",R2e,[y2e,V("div",x2e,[w(oa,{value:H(r).autoplay,"onUpdate:value":c[2]||(c[2]=u=>i({autoplay:u}))},null,8,["value"])])])])}}}),S2e=Ue(b2e,[["__scopeId","data-v-b289959e"]]),X5=e=>(on("data-v-44ce0855"),e=e(),an(),e),M2e={class:"audio-style-panel"},w2e={class:"row"},L2e=X5(()=>V("div",{style:{width:"40%"}},"图标颜色:",-1)),O2e={class:"row switch-row"},T2e=X5(()=>V("div",{style:{width:"40%"}},"自动播放:",-1)),k2e={class:"switch-wrapper",style:{width:"60%"}},N2e={class:"row switch-row"},P2e=X5(()=>V("div",{style:{width:"40%"}},"循环播放:",-1)),C2e={class:"switch-wrapper",style:{width:"60%"}},I2e=Fe({__name:"AudioStylePanel",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=n,{addHistorySnapshot:o}=zt(),i=a=>{n.value&&(t.updateElement({id:n.value.id,props:a}),o())};return(a,s)=>(Y(),ee("div",M2e,[V("div",w2e,[L2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(r).color,"onUpdate:modelValue":s[0]||(s[0]=c=>i({color:c}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(r).color},null,8,["color"])]),_:1})]),V("div",O2e,[T2e,V("div",k2e,[w(oa,{value:H(r).autoplay,"onUpdate:value":s[1]||(s[1]=c=>i({autoplay:c}))},null,8,["value"])])]),V("div",N2e,[P2e,V("div",C2e,[w(oa,{value:H(r).loop,"onUpdate:value":s[2]||(s[2]=c=>i({loop:c}))},null,8,["value"])])])]))}}),F2e=Ue(I2e,[["__scopeId","data-v-44ce0855"]]),y2=e=>(on("data-v-a267c062"),e=e(),an(),e),_2e={class:"multi-style-panel"},E2e={class:"row"},X2e=y2(()=>V("div",{style:{width:"40%"}},"填充颜色:",-1)),W2e={class:"row"},V2e=y2(()=>V("div",{style:{width:"40%"}},"边框样式:",-1)),U2e={class:"row"},Y2e=y2(()=>V("div",{style:{width:"40%"}},"边框颜色:",-1)),Q2e={class:"row"},Z2e=y2(()=>V("div",{style:{width:"40%"}},"边框粗细:",-1)),B2e=Fe({__name:"MultiStylePanel",setup(e){const t=ct(),{richTextAttrs:n,availableFonts:r,activeElementList:o}=Xe(ft()),{addHistorySnapshot:i}=zt(),a=(h,p)=>{t.updateElement({id:h,props:p}),i()},s=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],c=pe("#fff"),l=pe({width:0,color:"#fff",style:"solid"}),u=h=>{for(const p of o.value){if((p.type==="text"||p.type==="shape"||p.type==="chart")&&a(p.id,{fill:h}),p.type==="table"){const m=JSON.parse(JSON.stringify(p.data));for(let A=0;A{for(const p of o.value){if(p.type==="text"||p.type==="image"||p.type==="shape"||p.type==="table"||p.type==="chart"){const A={outline:{...p.outline||{width:2,color:"#000",style:"solid"},...h}};a(p.id,A)}p.type==="line"&&a(p.id,h)}l.value={...l.value,...h}},d=(h,p)=>{var m;for(const A of o.value){if((A.type==="text"||A.type==="shape"&&((m=A.text)!=null&&m.content))&&Zr.emit(Wr.RICH_TEXT_COMMAND,{target:A.id,action:{command:h,value:p}}),A.type==="table"){const x=JSON.parse(JSON.stringify(A.data));for(let R=0;R{const m=xe("IconFontSize"),A=xe("IconAddText"),x=xe("IconText"),R=xe("IconHighLight"),y=xe("IconAlignTextLeft"),g=xe("IconAlignTextCenter"),S=xe("IconAlignTextRight"),L=Mn("tooltip");return Y(),ee("div",_2e,[V("div",E2e,[X2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:c.value,"onUpdate:modelValue":p[0]||(p[0]=T=>u(T))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:c.value},null,8,["color"])]),_:1})]),w(Ut),V("div",W2e,[V2e,w(Zn,{style:{width:"60%"},value:l.value.style||"","onUpdate:value":p[1]||(p[1]=T=>f({style:T})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"}]},null,8,["value"])]),V("div",U2e,[Y2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:l.value.color,"onUpdate:modelValue":p[2]||(p[2]=T=>f({color:T}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:l.value.color||"#000"},null,8,["color"])]),_:1})]),V("div",Q2e,[Z2e,w(Li,{value:l.value.width||0,"onUpdate:value":p[3]||(p[3]=T=>f({width:T})),style:{width:"60%"}},null,8,["value"])]),w(Ut),w(A2,{class:"row"},{default:re(()=>[w(Zn,{style:{width:"60%"},value:H(n).fontname,"onUpdate:value":p[4]||(p[4]=T=>d("fontname",T)),options:[...H(r),...H(bp)]},{icon:re(()=>[w(m)]),_:1},8,["value","options"]),w(Zn,{style:{width:"40%"},value:H(n).fontsize,"onUpdate:value":p[5]||(p[5]=T=>d("fontsize",T)),options:s.map(T=>({label:T,value:T}))},{icon:re(()=>[w(A)]),_:1},8,["value","options"])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(n).color,"onUpdate:modelValue":p[6]||(p[6]=T=>d("color",T))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{first:"",color:H(n).color},{default:re(()=>[w(x)]),_:1},8,["color"])),[[L,"文字颜色"]])]),_:1}),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(n).backcolor,"onUpdate:modelValue":p[7]||(p[7]=T=>d("backcolor",T))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{color:H(n).backcolor},{default:re(()=>[w(R)]),_:1},8,["color"])),[[L,"文字高亮"]])]),_:1}),De((Y(),we(et,{class:"font-size-btn",style:{width:"20%"},onClick:p[8]||(p[8]=T=>d("fontsize-add","2"))},{default:re(()=>[w(m),We("+")]),_:1})),[[L,"增大字号"]]),De((Y(),we(et,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:p[9]||(p[9]=T=>d("fontsize-reduce","2"))},{default:re(()=>[w(m),We("-")]),_:1})),[[L,"减小字号"]])]),_:1}),w(_a,{class:"row","button-style":"solid",value:H(n).align,"onUpdate:value":p[10]||(p[10]=T=>d("align",T))},{default:re(()=>[De((Y(),we(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(y)]),_:1})),[[L,"左对齐"]]),De((Y(),we(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(g)]),_:1})),[[L,"居中"]]),De((Y(),we(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w(S)]),_:1})),[[L,"右对齐"]])]),_:1},8,["value"])])}}}),D2e=Ue(B2e,[["__scopeId","data-v-a267c062"]]),K2e={class:"element-style-panel"},H2e=Fe({__name:"index",setup(e){const t={[Nt.TEXT]:ave,[Nt.IMAGE]:Fve,[Nt.SHAPE]:$ve,[Nt.LINE]:uge,[Nt.CHART]:Yge,[Nt.TABLE]:i2e,[Nt.LATEX]:h2e,[Nt.VIDEO]:S2e,[Nt.AUDIO]:F2e},{activeElementIdList:n,activeElementList:r,handleElement:o,activeGroupElementId:i}=Xe(ft()),a=Me(()=>{if(n.value.length>1){if(!i.value)return D2e;const s=r.value.find(c=>c.id===i.value);return s&&t[s.type]||null}return o.value&&t[o.value.type]||null});return(s,c)=>(Y(),ee("div",K2e,[(Y(),we(xs(a.value)))]))}}),x2=e=>(on("data-v-6bb316f9"),e=e(),an(),e),G2e={class:"element-positopn-panel"},z2e=x2(()=>V("div",{class:"title"},"层级:",-1)),J2e=x2(()=>V("div",{class:"title"},"对齐:",-1)),$2e={class:"row"},j2e=x2(()=>V("div",{style:{width:"10%"}},null,-1)),q2e={key:0,class:"row"},eAe={key:1,style:{width:"10%"}},tAe={class:"row"},nAe=x2(()=>V("div",{style:{width:"7%"}},null,-1)),rAe=Fe({__name:"ElementPositionPanel",setup(e){const t=ct(),{handleElement:n,handleElementId:r}=Xe(ft()),o=pe(0),i=pe(0),a=pe(0),s=pe(0),c=pe(0),l=pe(!1),u=Me(()=>n.value&&dI[n.value.type]||20),f=Me(()=>{var M;return((M=n.value)==null?void 0:M.type)==="text"&&!n.value.vertical}),d=Me(()=>{var M;return((M=n.value)==null?void 0:M.type)==="text"&&n.value.vertical});Tt(n,()=>{n.value&&(o.value=_n.round(n.value.left,1),i.value=_n.round(n.value.top,1),l.value="fixedRatio"in n.value&&!!n.value.fixedRatio,n.value.type!=="line"&&(a.value=_n.round(n.value.width,1),s.value=_n.round(n.value.height,1),c.value="rotate"in n.value&&n.value.rotate!==void 0?_n.round(n.value.rotate,1):0))},{deep:!0,immediate:!0});const{orderElement:h}=Np(),{alignElementToCanvas:p}=a2(),{addHistorySnapshot:m}=zt(),A=M=>{const O={left:M};t.updateElement({id:r.value,props:O}),m()},x=M=>{const O={top:M};t.updateElement({id:r.value,props:O}),m()},R=(M,O)=>{if(n.value&&n.value.type==="shape"&&"pathFormula"in n.value&&n.value.pathFormula){const k=Ju[n.value.pathFormula];let F="";return"editable"in k?F=k.formula(M,O,n.value.keypoint):F=k.formula(M,O),{viewBox:[M,O],path:F}}return null},y=M=>{let O=s.value;if(l.value){const N=a.value/s.value;O=M/N{let O=a.value;if(l.value){const N=a.value/s.value;O=M*N{const O={rotate:M};t.updateElement({id:r.value,props:O}),m()},L=M=>{const O={fixedRatio:M};t.updateElement({id:r.value,props:O}),m()},T=M=>{let O=Math.floor(c.value/45)*45;M==="+"?O=O+45:M==="-"&&(O=O-45),O<-180&&(O=-180),O>180&&(O=180);const k={rotate:O};t.updateElement({id:r.value,props:k}),m()};return(M,O)=>{const k=xe("IconSendToBack"),F=xe("IconBringToFrontOne"),N=xe("IconBringToFront"),E=xe("IconSentToBack"),P=xe("IconAlignLeft"),_=xe("IconAlignVertically"),I=xe("IconAlignRight"),W=xe("IconAlignTop"),D=xe("IconAlignHorizontally"),z=xe("IconAlignBottom"),ae=xe("IconLock"),U=xe("IconUnlock"),Z=xe("IconRotate"),B=Mn("tooltip");return Y(),ee("div",G2e,[z2e,w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:O[0]||(O[0]=G=>H(h)(H(n),H(pr).TOP))},{default:re(()=>[w(k,{class:"btn-icon"}),We(" 置顶")]),_:1}),w(et,{style:{flex:"1"},onClick:O[1]||(O[1]=G=>H(h)(H(n),H(pr).BOTTOM))},{default:re(()=>[w(F,{class:"btn-icon"}),We(" 置底")]),_:1})]),_:1}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:O[2]||(O[2]=G=>H(h)(H(n),H(pr).UP))},{default:re(()=>[w(N,{class:"btn-icon"}),We(" 上移")]),_:1}),w(et,{style:{flex:"1"},onClick:O[3]||(O[3]=G=>H(h)(H(n),H(pr).DOWN))},{default:re(()=>[w(E,{class:"btn-icon"}),We(" 下移")]),_:1})]),_:1}),w(Ut),J2e,w(xn,{class:"row"},{default:re(()=>[De((Y(),we(et,{style:{flex:"1"},onClick:O[4]||(O[4]=G=>H(p)(H(nn).LEFT))},{default:re(()=>[w(P)]),_:1})),[[B,"左对齐"]]),De((Y(),we(et,{style:{flex:"1"},onClick:O[5]||(O[5]=G=>H(p)(H(nn).HORIZONTAL))},{default:re(()=>[w(_)]),_:1})),[[B,"水平居中"]]),De((Y(),we(et,{style:{flex:"1"},onClick:O[6]||(O[6]=G=>H(p)(H(nn).RIGHT))},{default:re(()=>[w(I)]),_:1})),[[B,"右对齐"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(et,{style:{flex:"1"},onClick:O[7]||(O[7]=G=>H(p)(H(nn).TOP))},{default:re(()=>[w(W)]),_:1})),[[B,"上对齐"]]),De((Y(),we(et,{style:{flex:"1"},onClick:O[8]||(O[8]=G=>H(p)(H(nn).VERTICAL))},{default:re(()=>[w(D)]),_:1})),[[B,"垂直居中"]]),De((Y(),we(et,{style:{flex:"1"},onClick:O[9]||(O[9]=G=>H(p)(H(nn).BOTTOM))},{default:re(()=>[w(z)]),_:1})),[[B,"下对齐"]])]),_:1}),w(Ut),V("div",$2e,[w(Li,{step:5,value:o.value,"onUpdate:value":O[10]||(O[10]=G=>A(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 水平: ")]),_:1},8,["value"]),j2e,w(Li,{step:5,value:i.value,"onUpdate:value":O[11]||(O[11]=G=>x(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 垂直: ")]),_:1},8,["value"])]),H(n).type!=="line"?(Y(),ee("div",q2e,[w(Li,{min:u.value,max:1500,step:5,disabled:d.value,value:a.value,"onUpdate:value":O[12]||(O[12]=G=>y(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 宽度: ")]),_:1},8,["min","disabled","value"]),["image","shape","audio"].includes(H(n).type)?(Y(),ee(Ve,{key:0},[l.value?De((Y(),we(ae,{key:0,style:{width:"10%"},class:"icon-btn active",onClick:O[13]||(O[13]=G=>L(!1))},null,512)),[[B,"解除宽高比锁定"]]):De((Y(),we(U,{key:1,style:{width:"10%"},class:"icon-btn",onClick:O[14]||(O[14]=G=>L(!0))},null,512)),[[B,"宽高比锁定"]])],64)):(Y(),ee("div",eAe)),w(Li,{min:u.value,max:800,step:5,disabled:f.value||H(n).type==="table",value:s.value,"onUpdate:value":O[15]||(O[15]=G=>g(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 高度: ")]),_:1},8,["min","disabled","value"])])):Be("",!0),["line","video","audio"].includes(H(n).type)?Be("",!0):(Y(),ee(Ve,{key:1},[w(Ut),V("div",tAe,[w(Li,{min:-180,max:180,step:5,value:c.value,"onUpdate:value":O[16]||(O[16]=G=>S(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 旋转: ")]),_:1},8,["value"]),nAe,V("div",{class:"text-btn",onClick:O[17]||(O[17]=G=>T("-")),style:{width:"24%"}},[w(Z),We(" -45°")]),V("div",{class:"text-btn",onClick:O[18]||(O[18]=G=>T("+")),style:{width:"24%"}},[w(Z,{style:Le({transform:"rotateY(180deg)"})},null,8,["style"]),We(" +45°")])])],64))])}}}),oAe=Ue(rAe,[["__scopeId","data-v-6bb316f9"]]),l4=1e3,iAe="click",bi="animate__",$T=[{type:"bounce",name:"弹跳",children:[{name:"弹入",value:"bounceIn"},{name:"向右弹入",value:"bounceInLeft"},{name:"向左弹入",value:"bounceInRight"},{name:"向上弹入",value:"bounceInUp"},{name:"向下弹入",value:"bounceInDown"}]},{type:"fade",name:"浮现",children:[{name:"浮入",value:"fadeIn"},{name:"向下浮入",value:"fadeInDown"},{name:"向下长距浮入",value:"fadeInDownBig"},{name:"向右浮入",value:"fadeInLeft"},{name:"向右长距浮入",value:"fadeInLeftBig"},{name:"向左浮入",value:"fadeInRight"},{name:"向左长距浮入",value:"fadeInRightBig"},{name:"向上浮入",value:"fadeInUp"},{name:"向上长距浮入",value:"fadeInUpBig"},{name:"从左上浮入",value:"fadeInTopLeft"},{name:"从右上浮入",value:"fadeInTopRight"},{name:"从左下浮入",value:"fadeInBottomLeft"},{name:"从右下浮入",value:"fadeInBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转进入",value:"rotateIn"},{name:"绕左下进入",value:"rotateInDownLeft"},{name:"绕右下进入",value:"rotateInDownRight"},{name:"绕左上进入",value:"rotateInUpLeft"},{name:"绕右上进入",value:"rotateInUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"放大进入",value:"zoomIn"},{name:"向下放大进入",value:"zoomInDown"},{name:"从左放大进入",value:"zoomInLeft"},{name:"从右放大进入",value:"zoomInRight"},{name:"向上放大进入",value:"zoomInUp"}]},{type:"slide",name:"滑入",children:[{name:"向下滑入",value:"slideInDown"},{name:"从右滑入",value:"slideInLeft"},{name:"从左滑入",value:"slideInRight"},{name:"向上滑入",value:"slideInUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转进入",value:"flipInX"},{name:"Y轴翻转进入",value:"flipInY"}]},{type:"back",name:"放大滑入",children:[{name:"向下放大滑入",value:"backInDown"},{name:"从左放大滑入",value:"backInLeft"},{name:"从右放大滑入",value:"backInRight"},{name:"向上放大滑入",value:"backInUp"}]},{type:"lightSpeed",name:"飞入",children:[{name:"从右飞入",value:"lightSpeedInRight"},{name:"从左飞入",value:"lightSpeedInLeft"}]}],jT=[{type:"bounce",name:"弹跳",children:[{name:"弹出",value:"bounceOut"},{name:"向左弹出",value:"bounceOutLeft"},{name:"向右弹出",value:"bounceOutRight"},{name:"向上弹出",value:"bounceOutUp"},{name:"向下弹出",value:"bounceOutDown"}]},{type:"fade",name:"浮现",children:[{name:"浮出",value:"fadeOut"},{name:"向下浮出",value:"fadeOutDown"},{name:"向下长距浮出",value:"fadeOutDownBig"},{name:"向左浮出",value:"fadeOutLeft"},{name:"向左长距浮出",value:"fadeOutLeftBig"},{name:"向右浮出",value:"fadeOutRight"},{name:"向右长距浮出",value:"fadeOutRightBig"},{name:"向上浮出",value:"fadeOutUp"},{name:"向上长距浮出",value:"fadeOutUpBig"},{name:"从左上浮出",value:"fadeOutTopLeft"},{name:"从右上浮出",value:"fadeOutTopRight"},{name:"从左下浮出",value:"fadeOutBottomLeft"},{name:"从右下浮出",value:"fadeOutBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转退出",value:"rotateOut"},{name:"绕左下退出",value:"rotateOutDownLeft"},{name:"绕右下退出",value:"rotateOutDownRight"},{name:"绕左上退出",value:"rotateOutUpLeft"},{name:"绕右上退出",value:"rotateOutUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"缩小退出",value:"zoomOut"},{name:"向下缩小退出",value:"zoomOutDown"},{name:"从左缩小退出",value:"zoomOutLeft"},{name:"从右缩小退出",value:"zoomOutRight"},{name:"向上缩小退出",value:"zoomOutUp"}]},{type:"slide",name:"滑出",children:[{name:"向下滑出",value:"slideOutDown"},{name:"从左滑出",value:"slideOutLeft"},{name:"从右滑出",value:"slideOutRight"},{name:"向上滑出",value:"slideOutUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转退出",value:"flipOutX"},{name:"Y轴翻转退出",value:"flipOutY"}]},{type:"back",name:"缩小滑出",children:[{name:"向下缩小滑出",value:"backOutDown"},{name:"从左缩小滑出",value:"backOutLeft"},{name:"从右缩小滑出",value:"backOutRight"},{name:"向上缩小滑出",value:"backOutUp"}]},{type:"lightSpeed",name:"飞出",children:[{name:"从右飞出",value:"lightSpeedOutRight"},{name:"从左飞出",value:"lightSpeedOutLeft"}]}],qT=[{type:"shake",name:"晃动",children:[{name:"左右摇晃",value:"shakeX"},{name:"上下摇晃",value:"shakeY"},{name:"摇头",value:"headShake"},{name:"摆动",value:"swing"},{name:"晃动",value:"wobble"},{name:"惊恐",value:"tada"},{name:"果冻",value:"jello"}]},{type:"other",name:"其他",children:[{name:"弹跳",value:"bounce"},{name:"闪烁",value:"flash"},{name:"脉搏",value:"pulse"},{name:"橡皮筋",value:"rubberBand"},{name:"心跳(快)",value:"heartBeat"}]}],w_=[{label:"无",value:"no"},{label:"随机",value:"random"},{label:"左右推移",value:"slideX"},{label:"上下推移",value:"slideY"},{label:"左右推移(3D)",value:"slideX3D"},{label:"上下推移(3D)",value:"slideY3D"},{label:"淡入淡出",value:"fade"},{label:"旋转",value:"rotate"},{label:"上下展开",value:"scaleY"},{label:"左右展开",value:"scaleX"},{label:"放大",value:"scale"},{label:"缩小",value:"scaleReverse"}],L_=e=>(on("data-v-bf835335"),e=e(),an(),e),aAe={class:"element-animation-panel"},sAe={key:0,class:"element-animation"},lAe={class:"type-title"},cAe={class:"pool-item-wrapper"},uAe=["onMouseenter","onClick"],fAe={key:0,class:"mask"},dAe={key:1,class:"tip"},hAe={class:"sequence-content"},pAe={class:"index"},mAe={class:"text"},vAe={class:"handler"},gAe={key:0,class:"configs"},AAe={class:"config-item"},RAe=L_(()=>V("div",{style:{width:"35%"}},"持续时长:",-1)),yAe={class:"config-item"},xAe=L_(()=>V("div",{style:{width:"35%"}},"触发方式:",-1)),bAe={class:"config-item"},SAe=Fe({__name:"ElementAnimationPanel",setup(e){const t={};for(const P of $T)for(const _ of P.children)t[_.value]=_.name;for(const P of jT)for(const _ of P.children)t[_.value]=_.name;for(const P of qT)for(const _ of P.children)t[_.value]=_.name;const n=["in","out","attention"],r=ct(),{handleElement:o,handleElementId:i}=Xe(ft()),{currentSlide:a,formatedAnimations:s,currentSlideAnimations:c}=Xe(r),l=[{key:"in",label:"入场",color:"#68a490"},{key:"out",label:"退场",color:"#d86344"},{key:"attention",label:"强调",color:"#e8b76a"}],u=pe("in"),f=pe(!1);Tt(()=>i.value,()=>{h.value=!1});const d=pe(""),h=pe(!1),{addHistorySnapshot:p}=zt(),m=Me(()=>{const P=[];for(let _=0;_Z.id===D.elId);if(!z)continue;const ae=J0[z.type],U=t[D.effect];P.push({...D,index:W===0?_+1:"",elType:ae,animationEffect:U})}}return P}),A=Me(()=>c.value.filter(I=>I.elId===i.value)||[]),x=P=>{const _=c.value.filter(I=>I.id!==P);r.updateSlide({animations:_}),p()},R=P=>{const{newIndex:_,oldIndex:I}=P;if(_===void 0||I===void 0||_===I)return;const W=JSON.parse(JSON.stringify(c.value)),D=W[I];W.splice(I,1),W.splice(_,0,D),r.updateSlide({animations:W}),p()},y=(P,_,I)=>{const W=document.querySelector(`#editable-element-${P} [class^=editable-element-]`);if(W){const D=`${bi}${_}`;document.documentElement.style.setProperty("--animate-duration",`${I}ms`),W.classList.add(`${bi}animated`,D);const z=()=>{document.documentElement.style.removeProperty("--animate-duration"),W.classList.remove(`${bi}animated`,D)};W.addEventListener("animationend",z,{once:!0})}},g=async()=>{f.value=!f.value;for(let P=0;PsetTimeout(I,_.duration+100)),y(_.elId,_.effect,_.duration),P>=m.value.length-1&&(f.value=!1)}},S=(P,_)=>{if(_<100||_>5e3)return;const I=c.value.map(W=>W.id===P?{...W,duration:_}:W);r.updateSlide({animations:I}),p()},L=(P,_)=>{const I=c.value.map(W=>W.id===P?{...W,trigger:_}:W);r.updateSlide({animations:I}),p()},T=(P,_)=>{const I=c.value.map(z=>z.id===M.value?{...z,type:P,effect:_}:z);r.updateSlide({animations:I}),h.value=!1,p();const W=c.value.find(z=>z.elId===i.value),D=(W==null?void 0:W.duration)||l4;setTimeout(()=>{y(i.value,_,D)},0)},M=pe(""),O=(P,_)=>{if(M.value){T(P,_);return}const I=JSON.parse(JSON.stringify(c.value));I.push({id:pn(10),elId:i.value,type:P,effect:_,duration:l4,trigger:iAe}),r.updateSlide({animations:I}),h.value=!1,p(),setTimeout(()=>{y(i.value,_,l4)},0)},k=pe(!1),F=P=>{P?setTimeout(()=>k.value=!0,600):k.value=!1},N=P=>{h.value=!0,M.value=P,F(!0)},E={in:$T,out:jT,attention:qT};return(P,_)=>{const I=xe("IconEffects"),W=xe("IconClick"),D=xe("IconPlayOne"),z=xe("IconCloseSmall"),ae=Mn("tooltip");return Y(),ee("div",aAe,[H(o)?(Y(),ee("div",sAe,[w(kt,{trigger:"click",value:h.value,"onUpdate:value":[_[3]||(_[3]=U=>h.value=U),_[4]||(_[4]=U=>F(U))],style:{width:"100%"}},{content:re(()=>[w(As,{tabs:l,value:u.value,"onUpdate:value":_[0]||(_[0]=U=>u.value=U),tabsStyle:{marginBottom:"20px"},tabStyle:{width:"33.333%"},spaceAround:""},null,8,["value"]),(Y(),ee(Ve,null,it(n,U=>(Y(),ee(Ve,null,[u.value===U?(Y(),ee("div",{class:$e(["animation-pool",U]),key:U},[(Y(!0),ee(Ve,null,it(E[U],Z=>(Y(),ee("div",{class:"pool-type",key:Z.name},[V("div",lAe,gt(Z.name)+":",1),V("div",cAe,[(Y(!0),ee(Ve,null,it(Z.children,B=>(Y(),ee("div",{class:"pool-item",key:B.name,onMouseenter:G=>d.value=B.value,onMouseleave:_[1]||(_[1]=G=>d.value=""),onClick:G=>O(U,B.value)},[V("div",{class:$e(["animation-box",[`${H(bi)}animated`,`${H(bi)}fast`,d.value===B.value&&`${H(bi)}${B.value}`]])},gt(B.name),3)],40,uAe))),128))])]))),128)),k.value?Be("",!0):(Y(),ee("div",fAe))],2)):Be("",!0)],64))),64))]),default:re(()=>[w(et,{class:"element-animation-btn",onClick:_[2]||(_[2]=U=>M.value="")},{default:re(()=>[w(I,{style:{"margin-right":"5px"}}),We(" 添加动画 ")]),_:1})]),_:1},8,["value"])])):(Y(),ee("div",dAe,[w(W,{style:{"margin-right":"5px"}}),We(" 选中画布中的元素添加动画")])),w(Ut),w(H(N5),{class:"animation-sequence",modelValue:m.value,animation:200,scroll:!0,scrollSensitivity:50,handle:".sequence-content",itemKey:"id",onEnd:R},{item:re(({element:U})=>{var Z,B;return[V("div",{class:$e(["sequence-item",[U.type,{active:((Z=H(o))==null?void 0:Z.id)===U.elId}]])},[V("div",hAe,[V("div",pAe,gt(U.index),1),V("div",mAe,"【"+gt(U.elType)+"】"+gt(U.animationEffect),1),V("div",vAe,[De(w(D,{class:"handler-btn",onClick:G=>y(U.elId,U.effect,U.duration)},null,8,["onClick"]),[[ae,"预览"]]),De(w(z,{class:"handler-btn",onClick:G=>x(U.id)},null,8,["onClick"]),[[ae,"删除"]])])]),((B=A.value[0])==null?void 0:B.elId)===U.elId?(Y(),ee("div",gAe,[w(Ut,{style:{margin:"16px 0"}}),V("div",AAe,[RAe,w(Li,{min:500,max:3e3,step:500,value:U.duration,"onUpdate:value":G=>S(U.id,G),style:{width:"65%"}},null,8,["value","onUpdate:value"])]),V("div",yAe,[xAe,w(Zn,{value:U.trigger,"onUpdate:value":G=>L(U.id,G),style:{width:"65%"},options:[{label:"主动触发",value:"click"},{label:"与上一动画同时",value:"meantime"},{label:"上一动画之后",value:"auto"}]},null,8,["value","onUpdate:value"])]),V("div",bAe,[w(et,{style:{width:"100%"},onClick:G=>N(U.id)},{default:re(()=>[We("更换动画")]),_:2},1032,["onClick"])])])):Be("",!0)],2)]}),_:1},8,["modelValue"]),m.value.length>=2?(Y(),ee(Ve,{key:2},[w(Ut),w(et,{onClick:_[5]||(_[5]=U=>g())},{default:re(()=>[We(gt(f.value?"停止预览":"预览全部"),1)]),_:1})],64)):Be("",!0)])}}}),MAe=Ue(SAe,[["__scopeId","data-v-bf835335"]]),wAe=[{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#5b9bd5","#ed7d31","#a5a5a5","#ffc000","#4472c4","#70ad47"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#83992a","#3c9670","#44709d","#a23b32","#d87728","#deb340"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#e48312","#bd582c","#865640","#9b8357","#c2bc80","#94a088"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#90c225","#54a121","#e6b91e","#e86618","#c42f19","#918756"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#1cade4","#2683c6","#27ced7","#42ba97","#3e8853","#62a39f"]},{background:"#e9efd6",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#a5300f","#de7e18","#9f8351","#728653","#92aa4c","#6aac91"]},{background:"#17444e",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b01513","#ea6312","#e6b729","#6bab90","#55839a","#9e5d9d"]},{background:"#36234d",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b31166","#e33d6f","#e45f3c","#e9943a","#9b6bf2","#d63cd0"]},{background:"#247fad",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#052f61","#a50e82","#14967c","#6a9e1f","#e87d37","#c62324"]},{background:"#103f55",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#40aebd","#97e8d5","#a1cf49","#628f3e","#f2df3a","#fcb01c"]},{background:"#242367",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#ac3ec1","#477bd1","#46b298","#90ba4c","#dd9d31","#e25345"]},{background:"#e4b75e",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529"]},{background:"#333333",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]}],LAe=()=>{const e=ct(),{slides:t,currentSlide:n,theme:r}=Xe(e),{addHistorySnapshot:o}=zt(),i=f=>{const d=[];for(const h of f.elements){if(h.type==="shape"&&ot(h.fill).getAlpha()!==0){const p=ot(h.fill).toRgbString();d.includes(p)||d.push(p)}if(h.type==="text"&&h.fill&&ot(h.fill).getAlpha()!==0){const p=ot(h.fill).toRgbString();d.includes(p)||d.push(p)}if(h.type==="table"&&h.theme&&ot(h.theme.color).getAlpha()!==0){const p=ot(h.theme.color).toRgbString();d.includes(p)||d.push(p)}if(h.type==="chart"&&h.fill&&ot(h.fill).getAlpha()!==0){const p=ot(h.fill).toRgbString();d.includes(p)||d.push(p)}if(h.type==="line"&&ot(h.color).getAlpha()!==0){const p=ot(h.color).toRgbString();d.includes(p)||d.push(p)}if(h.type==="audio"&&ot(h.color).getAlpha()!==0){const p=ot(h.color).toRgbString();d.includes(p)||d.push(p)}}return d},a=(f,d)=>{const h=i(f),p={};if(h.length>d.length){const A=ot(d[0]).analogous(h.length-d.length+10).map(x=>x.toHexString()).slice(1);d.push(...A)}for(let m=0;m{const h=a(f,d.colors);(!f.background||f.background.type!=="image")&&(f.background={type:"solid",color:d.background});for(const p of f.elements){if(p.type==="shape"&&(p.fill=h[ot(p.fill).toRgbString()]||p.fill,p.gradient&&delete p.gradient),p.type==="text"&&(p.fill&&(p.fill=h[ot(p.fill).toRgbString()]||p.fill),p.defaultColor=d.fontColor,p.defaultFontName=d.fontname),p.type==="table"){p.theme&&(p.theme.color=h[ot(p.theme.color).toRgbString()]||p.theme.color);for(const m of p.data)for(const A of m)A.style&&(A.style.color=d.fontColor,A.style.fontname=d.fontname)}p.type==="chart"&&(p.themeColor=[h[ot(p.themeColor[0]).toRgbString()]],p.gridColor=d.fontColor),p.type==="line"&&(p.color=h[ot(p.color).toRgbString()]||p.color),p.type==="audio"&&(p.color=h[ot(p.color).toRgbString()]||p.color),p.type==="latex"&&(p.color=d.fontColor)}};return{applyPresetThemeToSingleSlide:f=>{const d=JSON.parse(JSON.stringify(n.value));s(d,f),e.updateSlide({background:d.background,elements:d.elements}),o()},applyPresetThemeToAllSlides:f=>{const d=JSON.parse(JSON.stringify(t.value));for(const h of d)s(h,f);e.setTheme({backgroundColor:f.background,themeColor:f.colors[0],fontColor:f.fontColor,fontName:f.fontname}),e.setSlides(d),o()},applyThemeToAllSlides:(f=!1)=>{const d=JSON.parse(JSON.stringify(t.value)),{themeColor:h,backgroundColor:p,fontColor:m,fontName:A,outline:x,shadow:R}=r.value;for(const y of d){(!y.background||y.background.type!=="image")&&(y.background={type:"solid",color:p});for(const g of y.elements)if(f&&("outline"in g&&g.outline&&(g.outline=x),"shadow"in g&&g.shadow&&(g.shadow=R)),g.type==="shape")g.fill=h;else if(g.type==="line")g.color=h;else if(g.type==="text")g.defaultColor=m,g.defaultFontName=A,g.fill&&(g.fill=h);else if(g.type==="table"){g.theme&&(g.theme.color=h);for(const S of g.data)for(const L of S)L.style&&(L.style.color=m,L.style.fontname=A)}else g.type==="chart"?(g.themeColor=[h],g.gridColor=m):g.type==="latex"?g.color=m:g.type==="audio"&&(g.color=h)}e.setSlides(d),o()}}},Ir=e=>(on("data-v-5d6a9c2f"),e=e(),an(),e),OAe={class:"slide-design-panel"},TAe=Ir(()=>V("div",{class:"title"},"背景填充",-1)),kAe={class:"row"},NAe=Ir(()=>V("div",{style:{width:"10px"}},null,-1)),PAe={key:0,class:"background-image-wrapper"},CAe={class:"background-image"},IAe={key:1,class:"background-gradient-wrapper"},FAe={class:"row"},_Ae=Ir(()=>V("div",{style:{width:"40%"}},"起点颜色:",-1)),EAe={class:"row"},XAe=Ir(()=>V("div",{style:{width:"40%"}},"终点颜色:",-1)),WAe={key:0,class:"row"},VAe=Ir(()=>V("div",{style:{width:"40%"}},"渐变角度:",-1)),UAe={class:"row"},YAe={class:"row"},QAe=Ir(()=>V("div",{style:{width:"40%"}},"画布尺寸:",-1)),ZAe={class:"title"},BAe=Ir(()=>V("span",null,"全局主题",-1)),DAe=Ir(()=>V("span",{class:"text"},"更多",-1)),KAe={class:"row"},HAe=Ir(()=>V("div",{style:{width:"40%"}},"字体:",-1)),GAe={class:"row"},zAe=Ir(()=>V("div",{style:{width:"40%"}},"字体颜色:",-1)),JAe={class:"row"},$Ae=Ir(()=>V("div",{style:{width:"40%"}},"背景颜色:",-1)),jAe={class:"row"},qAe=Ir(()=>V("div",{style:{width:"40%"}},"主题色:",-1)),eRe={class:"row"},tRe=Ir(()=>V("div",{style:{width:"40%"}},"边框样式:",-1)),nRe={class:"row"},rRe=Ir(()=>V("div",{style:{width:"40%"}},"边框颜色:",-1)),oRe={class:"row"},iRe=Ir(()=>V("div",{style:{width:"40%"}},"边框粗细:",-1)),aRe={class:"row",style:{height:"30px"}},sRe=Ir(()=>V("div",{style:{width:"40%"}},"水平阴影:",-1)),lRe={class:"row",style:{height:"30px"}},cRe=Ir(()=>V("div",{style:{width:"40%"}},"垂直阴影:",-1)),uRe={class:"row",style:{height:"30px"}},fRe=Ir(()=>V("div",{style:{width:"40%"}},"模糊距离:",-1)),dRe={class:"row"},hRe=Ir(()=>V("div",{style:{width:"40%"}},"阴影颜色:",-1)),pRe={class:"row"},mRe=Ir(()=>V("div",{class:"title"},"预置主题",-1)),vRe={class:"theme-list"},gRe={class:"theme-item-content"},ARe={class:"colors"},RRe={class:"btns"},yRe=["onClick"],xRe=["onClick"],bRe=Fe({__name:"SlideDesignPanel",setup(e){const t=ct(),{availableFonts:n}=Xe(ft()),{slides:r,currentSlide:o,viewportRatio:i,theme:a}=Xe(t),s=pe(!1),c=Me(()=>o.value.background?o.value.background:{type:"solid",value:"#fff"}),{addHistorySnapshot:l}=zt(),{applyPresetThemeToSingleSlide:u,applyPresetThemeToAllSlides:f,applyThemeToAllSlides:d}=LAe(),h=y=>{if(y==="solid"){const g={...c.value,type:"solid",color:c.value.color||"#fff"};t.updateSlide({background:g})}else if(y==="image"){const g={...c.value,type:"image",image:c.value.image||"",imageSize:c.value.imageSize||"cover"};t.updateSlide({background:g})}else{const g={...c.value,type:"gradient",gradientType:c.value.gradientType||"linear",gradientColor:c.value.gradientColor||["#fff","#fff"],gradientRotate:c.value.gradientRotate||0};t.updateSlide({background:g})}l()},p=y=>{t.updateSlide({background:{...c.value,...y}}),l()},m=y=>{const g=y[0];g&&zu(g).then(S=>p({image:S}))},A=()=>{const y=r.value.map(g=>({...g,background:o.value.background}));t.setSlides(y),l()},x=y=>{t.setTheme(y)},R=y=>{t.setViewportRatio(y)};return(y,g)=>{const S=xe("IconPlus"),L=xe("IconDown"),T=xe("IconRight");return Y(),ee("div",OAe,[TAe,V("div",kAe,[w(Zn,{style:{flex:"1"},value:c.value.type,"onUpdate:value":g[0]||(g[0]=M=>h(M)),options:[{label:"纯色填充",value:"solid"},{label:"图片填充",value:"image"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),NAe,c.value.type==="solid"?(Y(),we(kt,{key:0,trigger:"click",style:{flex:"1"}},{content:re(()=>[w(Ln,{modelValue:c.value.color,"onUpdate:modelValue":g[1]||(g[1]=M=>p({color:M}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:c.value.color||"#fff"},null,8,["color"])]),_:1})):c.value.type==="image"?(Y(),we(Zn,{key:1,style:{flex:"1"},value:c.value.imageSize||"cover","onUpdate:value":g[2]||(g[2]=M=>p({imageSize:M})),options:[{label:"缩放",value:"contain"},{label:"拼贴",value:"repeat"},{label:"缩放铺满",value:"cover"}]},null,8,["value"])):(Y(),we(Zn,{key:2,style:{flex:"1"},value:c.value.gradientType||"","onUpdate:value":g[3]||(g[3]=M=>p({gradientType:M})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),c.value.type==="image"?(Y(),ee("div",PAe,[w(Eu,{onChange:g[4]||(g[4]=M=>m(M))},{default:re(()=>[V("div",CAe,[V("div",{class:"content",style:Le({backgroundImage:`url(${c.value.image})`})},[w(S)],4)])]),_:1})])):Be("",!0),c.value.type==="gradient"?(Y(),ee("div",IAe,[V("div",FAe,[_Ae,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:c.value.gradientColor[0],"onUpdate:modelValue":g[5]||(g[5]=M=>p({gradientColor:[M,c.value.gradientColor[1]]}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:c.value.gradientColor[0]},null,8,["color"])]),_:1})]),V("div",EAe,[XAe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:c.value.gradientColor[1],"onUpdate:modelValue":g[6]||(g[6]=M=>p({gradientColor:[c.value.gradientColor[0],M]}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:c.value.gradientColor[1]},null,8,["color"])]),_:1})]),c.value.gradientType==="linear"?(Y(),ee("div",WAe,[VAe,w(no,{min:0,max:360,step:15,value:c.value.gradientRotate||0,"onUpdate:value":g[7]||(g[7]=M=>p({gradientRotate:M})),style:{width:"60%"}},null,8,["value"])])):Be("",!0)])):Be("",!0),V("div",UAe,[w(et,{style:{flex:"1"},onClick:g[8]||(g[8]=M=>A())},{default:re(()=>[We("应用背景到全部")]),_:1})]),w(Ut),V("div",YAe,[QAe,w(Zn,{style:{width:"60%"},value:H(i),"onUpdate:value":g[9]||(g[9]=M=>R(M)),options:[{label:"宽屏 16 : 9",value:.5625},{label:"宽屏 16 : 10",value:.625},{label:"标准 4 : 3",value:.75},{label:"纸张 A3 / A4",value:.70710678},{label:"竖向 A3 / A4",value:1.41421356}]},null,8,["value"])]),w(Ut),V("div",ZAe,[BAe,V("span",{class:"more",onClick:g[10]||(g[10]=M=>s.value=!s.value)},[DAe,s.value?(Y(),we(L,{key:0})):(Y(),we(T,{key:1}))])]),V("div",KAe,[HAe,w(Zn,{style:{width:"60%"},value:H(a).fontName,"onUpdate:value":g[11]||(g[11]=M=>x({fontName:M})),options:[...H(n),...H(bp)]},null,8,["value","options"])]),V("div",GAe,[zAe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).fontColor,"onUpdate:modelValue":g[12]||(g[12]=M=>x({fontColor:M}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).fontColor},null,8,["color"])]),_:1})]),V("div",JAe,[$Ae,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).backgroundColor,"onUpdate:modelValue":g[13]||(g[13]=M=>x({backgroundColor:M}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).backgroundColor},null,8,["color"])]),_:1})]),V("div",jAe,[qAe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).themeColor,"onUpdate:modelValue":g[14]||(g[14]=M=>x({themeColor:M}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).themeColor},null,8,["color"])]),_:1})]),s.value?(Y(),ee(Ve,{key:2},[V("div",eRe,[tRe,w(Zn,{style:{width:"60%"},value:H(a).outline.style||"","onUpdate:value":g[15]||(g[15]=M=>x({outline:{...H(a).outline,style:M}})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"}]},null,8,["value"])]),V("div",nRe,[rRe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).outline.color,"onUpdate:modelValue":g[16]||(g[16]=M=>x({outline:{...H(a).outline,color:M}}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).outline.color||"#000"},null,8,["color"])]),_:1})]),V("div",oRe,[iRe,w(Li,{value:H(a).outline.width||0,"onUpdate:value":g[17]||(g[17]=M=>x({outline:{...H(a).outline,width:M}})),style:{width:"60%"}},null,8,["value"])]),V("div",aRe,[sRe,w(no,{style:{width:"60%"},min:-10,max:10,step:1,value:H(a).shadow.h,"onUpdate:value":g[18]||(g[18]=M=>x({shadow:{...H(a).shadow,h:M}}))},null,8,["value"])]),V("div",lRe,[cRe,w(no,{style:{width:"60%"},min:-10,max:10,step:1,value:H(a).shadow.v,"onUpdate:value":g[19]||(g[19]=M=>x({shadow:{...H(a).shadow,v:M}}))},null,8,["value"])]),V("div",uRe,[fRe,w(no,{style:{width:"60%"},min:1,max:20,step:1,value:H(a).shadow.blur,"onUpdate:value":g[20]||(g[20]=M=>x({shadow:{...H(a).shadow,blur:M}}))},null,8,["value"])]),V("div",dRe,[hRe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).shadow.color,"onUpdate:modelValue":g[21]||(g[21]=M=>x({shadow:{...H(a).shadow,color:M}}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).shadow.color},null,8,["color"])]),_:1})])],64)):Be("",!0),V("div",pRe,[w(et,{style:{flex:"1"},onClick:g[22]||(g[22]=M=>H(d)(s.value))},{default:re(()=>[We("应用主题到全部")]),_:1})]),w(Ut),mRe,V("div",vRe,[(Y(!0),ee(Ve,null,it(H(wAe),(M,O)=>(Y(),ee("div",{class:"theme-item",key:O,style:Le({backgroundColor:M.background,fontFamily:M.fontname})},[V("div",gRe,[V("div",{class:"text",style:Le({color:M.fontColor})},"文字 Aa",4),V("div",ARe,[(Y(!0),ee(Ve,null,it(M.colors,(k,F)=>(Y(),ee("div",{class:"color-block",key:F,style:Le({backgroundColor:k})},null,4))),128))]),V("div",RRe,[V("div",{class:"btn",onClick:k=>H(u)(M)},"应用",8,yRe),V("div",{class:"btn",onClick:k=>H(f)(M)},"应用全局",8,xRe)])])],4))),128))])])}}}),SRe=Ue(bRe,[["__scopeId","data-v-5d6a9c2f"]]),MRe={class:"slide-animation-panel"},wRe={class:"animation-pool"},LRe=["onClick"],ORe={class:"animation-text"},TRe=Fe({__name:"SlideAnimationPanel",setup(e){const t=ct(),{slides:n,currentSlide:r}=Xe(t),o=Me(()=>r.value.turningMode||"slideY"),i=w_,{addHistorySnapshot:a}=zt(),s=l=>{l!==o.value&&(t.updateSlide({turningMode:l}),a())},c=()=>{const l=n.value.map(u=>({...u,turningMode:r.value.turningMode}));t.setSlides(l),Sn.success("已应用到全部"),a()};return(l,u)=>(Y(),ee("div",MRe,[V("div",wRe,[(Y(!0),ee(Ve,null,it(H(i),f=>(Y(),ee("div",{class:$e(["animation-item",{active:o.value===f.value}]),key:f.label,onClick:d=>s(f.value)},[V("div",{class:$e(["animation-block",f.value])},null,2),V("div",ORe,gt(f.label),1)],10,LRe))),128))]),w(et,{style:{width:"100%"},onClick:u[0]||(u[0]=f=>c())},{default:re(()=>[We("应用到全部")]),_:1})]))}}),kRe=Ue(TRe,[["__scopeId","data-v-ae84c3f4"]]),NRe=()=>{const e=ct(),{activeElementIdList:t,activeElementList:n}=Xe(ft()),{currentSlide:r}=Xe(e),{addHistorySnapshot:o}=zt();return{alignActiveElement:a=>{const{minX:s,maxX:c,minY:l,maxY:u}=ec(n.value),f=JSON.parse(JSON.stringify(r.value.elements)),d={};for(const h of n.value)if(h.groupId&&!d[h.groupId]){const p=n.value.filter(m=>m.groupId===h.groupId);d[h.groupId]=ec(p)}if(a===nn.LEFT)f.forEach(h=>{if(t.value.includes(h.id))if(h.groupId){const m=d[h.groupId].minX-s;h.left=h.left-m}else if("rotate"in h&&h.rotate){const{offsetX:p}=Gf({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.left=s-p}else h.left=s});else if(a===nn.RIGHT)f.forEach(h=>{if(t.value.includes(h.id))if(h.groupId){const m=d[h.groupId].maxX-c;h.left=h.left-m}else{const p=h.type==="line"?Math.max(h.start[0],h.end[0]):h.width;if("rotate"in h&&h.rotate){const{offsetX:m}=Gf({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.left=c-p+m}else h.left=c-p}});else if(a===nn.TOP)f.forEach(h=>{if(t.value.includes(h.id))if(h.groupId){const m=d[h.groupId].minY-l;h.top=h.top-m}else if("rotate"in h&&h.rotate){const{offsetY:p}=Gf({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.top=l-p}else h.top=l});else if(a===nn.BOTTOM)f.forEach(h=>{if(t.value.includes(h.id))if(h.groupId){const m=d[h.groupId].maxY-u;h.top=h.top-m}else{const p=h.type==="line"?Math.max(h.start[1],h.end[1]):h.height;if("rotate"in h&&h.rotate){const{offsetY:m}=Gf({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.top=u-p+m}else h.top=u-p}});else if(a===nn.HORIZONTAL){const h=(s+c)/2;f.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const m=d[p.groupId],x=(m.maxX+m.minX)/2-h;p.left=p.left-x}else{const m=p.type==="line"?Math.max(p.start[0],p.end[0]):p.width;p.left=h-m/2}})}else if(a===nn.VERTICAL){const h=(l+u)/2;f.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const m=d[p.groupId],x=(m.maxY+m.minY)/2-h;p.top=p.top-x}else{const m=p.type==="line"?Math.max(p.start[1],p.end[1]):p.height;p.top=h-m/2}})}e.updateSlide({elements:f}),o()}}},PRe=()=>{const e=ct(),{activeElementIdList:t,activeElementList:n}=Xe(ft()),{currentSlide:r}=Xe(e),{addHistorySnapshot:o}=zt();return{displayItemCount:Me(()=>{let c=0;const l=[];for(const u of n.value)u.groupId?l.includes(u.groupId)||(l.push(u.groupId),c+=1):c+=1;return c}),uniformHorizontalDisplay:()=>{const{minX:c,maxX:l}=ec(n.value),u=JSON.parse(JSON.stringify(n.value)),f=JSON.parse(JSON.stringify(r.value.elements)),d=[];let h=[];for(const S of u)if(S.groupId)h.find(T=>T.groupId===S.groupId)?h=h.map(T=>T.groupId===S.groupId?{...T,els:[...T.els,S]}:T):h.push({groupId:S.groupId,els:[S]});else{const{minX:L,maxX:T}=Ma(S);d.push({min:L,max:T,el:S})}const p=[];for(const S of h){const{minX:L,maxX:T}=ec(S.els);p.push({min:L,max:T,els:S.els})}const m=[...d,...p];m.sort((S,L)=>S.min-L.min);let A=0;for(const S of m){const L=S.max-S.min;A+=L}const x=(l-c-A)/(m.length-1),R=[],y=m[0];let g={min:y.min,max:y.max};if("el"in y)R.push({pos:y.min,el:y.el});else for(const S of y.els){const{minX:L}=Ma(S);R.push({pos:L,el:S})}for(let S=1;S{const{minY:c,maxY:l}=ec(n.value),u=JSON.parse(JSON.stringify(n.value)),f=JSON.parse(JSON.stringify(r.value.elements)),d=[];let h=[];for(const S of u)if(S.groupId)h.find(T=>T.groupId===S.groupId)?h=h.map(T=>T.groupId===S.groupId?{...T,els:[...T.els,S]}:T):h.push({groupId:S.groupId,els:[S]});else{const{minY:L,maxY:T}=Ma(S);d.push({min:L,max:T,el:S})}const p=[];for(const S of h){const{minY:L,maxY:T}=ec(S.els);p.push({min:L,max:T,els:S.els})}const m=[...d,...p];m.sort((S,L)=>S.min-L.min);let A=0;for(const S of m){const L=S.max-S.min;A+=L}const x=(l-c-A)/(m.length-1),R=[],y=m[0];let g={min:y.min,max:y.max};if("el"in y)R.push({pos:y.min,el:y.el});else for(const S of y.els){const{minY:L}=Ma(S);R.push({pos:L,el:S})}for(let S=1;S{t.value?o(u):i(u)};return(u,f)=>{const d=xe("IconAlignLeft"),h=xe("IconAlignHorizontally"),p=xe("IconAlignRight"),m=xe("IconAlignTop"),A=xe("IconAlignVertically"),x=xe("IconAlignBottom"),R=xe("IconGroup"),y=xe("IconUngroup"),g=Mn("tooltip");return Y(),ee("div",CRe,[w(xn,{class:"row"},{default:re(()=>[De((Y(),we(et,{style:{flex:"1"},onClick:f[0]||(f[0]=S=>l(H(nn).LEFT))},{default:re(()=>[w(d)]),_:1})),[[g,"左对齐"]]),De((Y(),we(et,{style:{flex:"1"},onClick:f[1]||(f[1]=S=>l(H(nn).HORIZONTAL))},{default:re(()=>[w(h)]),_:1})),[[g,"水平居中"]]),De((Y(),we(et,{style:{flex:"1"},onClick:f[2]||(f[2]=S=>l(H(nn).RIGHT))},{default:re(()=>[w(p)]),_:1})),[[g,"右对齐"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(et,{style:{flex:"1"},onClick:f[3]||(f[3]=S=>l(H(nn).TOP))},{default:re(()=>[w(m)]),_:1})),[[g,"上对齐"]]),De((Y(),we(et,{style:{flex:"1"},onClick:f[4]||(f[4]=S=>l(H(nn).VERTICAL))},{default:re(()=>[w(A)]),_:1})),[[g,"垂直居中"]]),De((Y(),we(et,{style:{flex:"1"},onClick:f[5]||(f[5]=S=>l(H(nn).BOTTOM))},{default:re(()=>[w(x)]),_:1})),[[g,"下对齐"]])]),_:1}),H(a)>2?(Y(),we(xn,{key:0,class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:f[6]||(f[6]=S=>H(s)())},{default:re(()=>[We("水平均匀分布")]),_:1}),w(et,{style:{flex:"1"},onClick:f[7]||(f[7]=S=>H(c)())},{default:re(()=>[We("垂直均匀分布")]),_:1})]),_:1})):Be("",!0),w(Ut),w(xn,{class:"row"},{default:re(()=>[w(et,{disabled:!H(t),onClick:f[8]||(f[8]=S=>H(n)()),style:{flex:"1"}},{default:re(()=>[w(R,{style:{"margin-right":"3px"}}),We("组合")]),_:1},8,["disabled"]),w(et,{disabled:H(t),onClick:f[9]||(f[9]=S=>H(r)()),style:{flex:"1"}},{default:re(()=>[w(y,{style:{"margin-right":"3px"}}),We("取消组合")]),_:1},8,["disabled"])]),_:1})])}}}),FRe=Ue(IRe,[["__scopeId","data-v-d41009b1"]]),c4=[{key:"letter",label:"字母",children:["α","β","γ","δ","ϵ","ε","ζ","η","θ","ϑ","ι","κ","λ","μ","ν","ξ","π","ϖ","ρ","ϱ","σ","ς","τ","υ","ϕ","φ","χ","ψ","ω","Γ","Δ","Θ","Λ","Ξ","Π","Σ","Υ","Φ","Ψ","Ω","𝐀","𝐁","𝐂","𝐃","𝐄","𝐅","𝐆","𝐇","𝐈","𝐉","𝐊","𝐋","𝐌","𝐍","𝐎","𝐏","𝐐","𝐑","𝐒","𝐓","𝐔","𝐕","𝐖","𝐗","𝐘","𝐙","𝐚","𝐛","𝐜","𝐝","𝐞","𝐟","𝐠","𝐡","𝐢","𝐣","𝐤","𝐥","𝐦","𝐧","𝐨","𝐩","𝐪","𝐫","𝐬","𝐭","𝐮","𝐯","𝐰","𝐱","𝐲","𝐳","𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩","𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃"]},{key:"number",label:"序号",children:["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","º","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","₀","₁","₂","₃","₄","₅","₆","₇","₈","₉","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ","Ⅼ","Ⅽ","Ⅾ","Ⅿ","ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","ⅺ","ⅻ","ⅼ","ⅽ","ⅾ","ⅿ","ↀ","ↁ","ↂ","㊀","㊁","㊂","㊃","㊄","㊅","㊆","㊇","㊈","㊉","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩","𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"]},{key:"math",label:"数学",children:["+","-","×","÷","=","~","¬","±","%","°","ǃ","‰","‱","½","⅓","⅔","¼","¾","<",">","l","o","g","l","g","l","n","⨂","⨁","⨄","⨃","⨅","⨆","√","∛","∜","∝","∞","∟","∠","∡","∢","∧","∨","∩","∪","∫","∬","∭","∮","∯","∰","∱","∲","∳","∴","∵","∼","∽","∾","∿","≃","≄","≅","≆","≇","≈","≊","≋","≌","≍","≎","≏","≐","≑","≒","≓","≔","≕","≤","≥","≦","≧","≨","≩","≪","≫","≺","≻","≼","≽","≾","≿","⊀","⊁","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒","⊓","⊔","⊢","⊣","⊤","⊥","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⊲","⊳","⊴","⊵","⋀","⋁","⋂","⋃","⋉","⋊","⋋","⋌","⟨","⟩","⟪","⟫","⟮","⟯","⧼","⧽","⦰"]},{key:"arrow",label:"箭头",children:["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨","↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","↼","↽","↾","↿","⇀","⇁","⇂","⇃","⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇋","⇌","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛","⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵","⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿"]},{key:"graph",label:"图形",children:["▢","▣","▤","▥","▦","▧","▨","▩","▭","▮","▯","▰","▱","▲","▷","▼","◁","◈","◉","◍","◐","◑","◒","◓","◔","◕","◧","◨","◩","◪","◫","◬","◭","◮"]}],_Re={class:"symbol-panel"},ERe={class:"pool"},XRe=["onClick"],WRe={class:"symbol"},VRe=Fe({__name:"SymbolPanel",setup(e){const t=pe(c4[0].key),n=Me(()=>{const i=c4.find(a=>a.key===t.value);return(i==null?void 0:i.children)||[]}),r=c4.map(i=>({key:i.key,label:i.label})),o=i=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:"insert",value:i}})};return(i,a)=>(Y(),ee("div",_Re,[w(As,{tabs:H(r),value:t.value,"onUpdate:value":a[0]||(a[0]=s=>t.value=s),tabsStyle:{marginBottom:"8px"},spaceBetween:""},null,8,["tabs","value"]),V("div",ERe,[(Y(!0),ee(Ve,null,it(n.value,(s,c)=>(Y(),ee("div",{class:"symbol-item",key:c,onClick:l=>o(s)},[V("div",WRe,gt(s),1)],8,XRe))),128))])]))}}),URe=Ue(VRe,[["__scopeId","data-v-0f662bb0"]]),YRe={class:"toolbar"},QRe={class:"content"},ZRe=Fe({__name:"index",setup(e){const t=ft(),{activeElementIdList:n,handleElement:r,toolbarState:o}=Xe(t),i=Me(()=>{var f;return((f=r.value)==null?void 0:f.type)==="text"?[{label:"样式",key:Sr.EL_STYLE},{label:"符号",key:Sr.SYMBOL},{label:"位置",key:Sr.EL_POSITION},{label:"动画",key:Sr.EL_ANIMATION}]:[{label:"样式",key:Sr.EL_STYLE},{label:"位置",key:Sr.EL_POSITION},{label:"动画",key:Sr.EL_ANIMATION}]}),a=[{label:"设计",key:Sr.SLIDE_DESIGN},{label:"切换",key:Sr.SLIDE_ANIMATION},{label:"动画",key:Sr.EL_ANIMATION}],s=[{label:"样式",key:Sr.EL_STYLE},{label:"位置",key:Sr.MULTI_POSITION}],c=f=>{t.setToolbarState(f)},l=Me(()=>{if(n.value.length){if(n.value.length>1)return s}else return a;return i.value});Tt(l,()=>{const f=l.value.map(d=>d.key);f.includes(o.value)||t.setToolbarState(f[0])});const u=Me(()=>({[Sr.EL_STYLE]:H2e,[Sr.EL_POSITION]:oAe,[Sr.EL_ANIMATION]:MAe,[Sr.SLIDE_DESIGN]:SRe,[Sr.SLIDE_ANIMATION]:kRe,[Sr.MULTI_POSITION]:FRe,[Sr.SYMBOL]:URe})[o.value]||null);return(f,d)=>(Y(),ee("div",YRe,[w(As,{tabs:l.value,value:H(o),card:"","onUpdate:value":d[0]||(d[0]=h=>c(h))},null,8,["tabs","value"]),V("div",QRe,[(Y(),we(xs(u.value)))])]))}}),BRe=Ue(ZRe,[["__scopeId","data-v-83fff59a"]]),DRe={class:"editor"},KRe=Fe({__name:"Editor",props:{value:{}},emits:["update"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=ft(),a=pe();let s;const c=pe(),l=pe(),u=pe(),f=()=>{l.value&&l.value.hide()},d=_n.debounce(function(){o("update",s.dom.innerHTML)},300,{trailing:!0}),h=()=>{i.setDisableHotkeysState(!0)},p=()=>{i.setDisableHotkeysState(!1)};t({updateTextContent:()=>{if(!s)return;const{doc:R,tr:y}=s.state;s.dispatch(y.replaceRangeWith(0,R.content.size,g5(r.value)))}});const A=()=>{const R=window.getSelection();if(!R||!R.anchorNode||!R.focusNode||R.isCollapsed||R.type==="Caret"||R.type==="None")return;const y=R.getRangeAt(0);if(l.value){c.value=Q4(s);const{x:g,y:S,left:L,top:T}=y.getBoundingClientRect();l.value.setProps({getReferenceClientRect:()=>({x:g,y:S,left:L,top:T,height:0,width:0,right:L,bottom:T})}),l.value.show()}},x=(R,y)=>{if(R==="color"&&y){const g=s.state.schema.marks.forecolor.create({color:y});Er(s),Ka(s,g)}else if(R==="backcolor"&&y){const g=s.state.schema.marks.backcolor.create({backcolor:y});Er(s),Ka(s,g)}else if(R==="bold")Er(s),kr(s.state.schema.marks.strong)(s.state,s.dispatch);else if(R==="em")Er(s),kr(s.state.schema.marks.em)(s.state,s.dispatch);else if(R==="underline")Er(s),kr(s.state.schema.marks.underline)(s.state,s.dispatch);else if(R==="strikethrough")Er(s),kr(s.state.schema.marks.strikethrough)(s.state,s.dispatch);else if(R==="bulletList"){const{bullet_list:g,list_item:S}=s.state.schema.nodes;lg(g,S,"")(s.state,s.dispatch)}else if(R==="orderedList"){const{ordered_list:g,list_item:S}=s.state.schema.nodes;lg(g,S,"")(s.state,s.dispatch)}else if(R==="clear"){Er(s);const{$from:g,$to:S}=s.state.selection;s.dispatch(s.state.tr.removeMark(g.pos,S.pos))}s.focus(),d(),c.value=Q4(s)};return Gt(()=>{s=lF(a.value,r.value,{handleDOMEvents:{focus:h,blur:p,mouseup:A,mousedown:()=>{var R;(R=window.getSelection())==null||R.removeAllRanges(),f()},keydown:f,input:d}},{placeholder:"点击输入演讲者备注"}),l.value=ef(a.value,{duration:0,content:u.value,interactive:!0,trigger:"manual",placement:"top-start",hideOnClick:"toggle",offset:[0,6]})}),Tn(()=>{s&&s.destroy()}),(R,y)=>{var P,_,I,W,D,z;const g=xe("IconTextBold"),S=xe("IconTextItalic"),L=xe("IconTextUnderline"),T=xe("IconStrikethrough"),M=xe("IconText"),O=xe("IconHighLight"),k=xe("IconList"),F=xe("IconOrderedList"),N=xe("IconFormat"),E=Mn("click-outside");return De((Y(),ee("div",DRe,[V("div",{class:"prosemirror-editor",ref_key:"editorViewRef",ref:a},null,512),V("div",{class:"menu",ref_key:"menuRef",ref:u},[V("button",{class:$e({active:(P=c.value)==null?void 0:P.bold}),onClick:y[0]||(y[0]=ae=>x("bold"))},[w(g)],2),V("button",{class:$e({active:(_=c.value)==null?void 0:_.em}),onClick:y[1]||(y[1]=ae=>x("em"))},[w(S)],2),V("button",{class:$e({active:(I=c.value)==null?void 0:I.underline}),onClick:y[2]||(y[2]=ae=>x("underline"))},[w(L)],2),V("button",{class:$e({active:(W=c.value)==null?void 0:W.strikethrough}),onClick:y[3]||(y[3]=ae=>x("strikethrough"))},[w(T)],2),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>{var ae;return[w(Ln,{modelValue:(ae=c.value)==null?void 0:ae.color,"onUpdate:modelValue":y[4]||(y[4]=U=>x("color",U))},null,8,["modelValue"])]}),default:re(()=>[V("button",null,[w(M)])]),_:1}),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>{var ae;return[w(Ln,{modelValue:(ae=c.value)==null?void 0:ae.backcolor,"onUpdate:modelValue":y[5]||(y[5]=U=>x("backcolor",U))},null,8,["modelValue"])]}),default:re(()=>[V("button",null,[w(O)])]),_:1}),V("button",{class:$e({active:(D=c.value)==null?void 0:D.bulletList}),onClick:y[6]||(y[6]=ae=>x("bulletList"))},[w(k)],2),V("button",{class:$e({active:(z=c.value)==null?void 0:z.orderedList}),onClick:y[7]||(y[7]=ae=>x("orderedList"))},[w(F)],2),V("button",{onClick:y[8]||(y[8]=ae=>x("clear"))},[w(N)])],512)])),[[E,f]])}}}),HRe=Ue(KRe,[["__scopeId","data-v-4042a280"]]),GRe={class:"remark"},zRe=Fe({__name:"index",props:{height:{}},emits:["update:height"],setup(e,{emit:t}){const n=e,r=t,o=ct(),{currentSlide:i}=Xe(o),a=pe();Tt(()=>i.value.id,()=>{Vr(()=>{a.value.updateTextContent()})},{immediate:!0});const s=Me(()=>{var u;return((u=i.value)==null?void 0:u.remark)||""}),c=u=>{o.updateSlide({remark:u})},l=u=>{let f=!0;const d=u.pageY,h=n.height;document.onmousemove=p=>{if(!f)return;let x=-(p.pageY-d)+h;x<40&&(x=40),x>360&&(x=360),r("update:height",x)},document.onmouseup=()=>{f=!1,document.onmousemove=null,document.onmouseup=null}};return(u,f)=>(Y(),ee("div",GRe,[V("div",{class:"resize-handler",onMousedown:f[0]||(f[0]=d=>l(d))},null,32),w(HRe,{value:s.value,ref_key:"editorRef",ref:a,onUpdate:f[1]||(f[1]=d=>c(d))},null,8,["value"])]))}}),JRe=Ue(zRe,[["__scopeId","data-v-1c52a472"]]);var O_={exports:{}};(function(e,t){(function(n,r){r()})(Pt,function(){function n(l,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,u,f){var d=new XMLHttpRequest;d.open("GET",l),d.responseType="blob",d.onload=function(){c(d.response,u,f)},d.onerror=function(){console.error("could not download file")},d.send()}function o(l){var u=new XMLHttpRequest;u.open("HEAD",l,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(u)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Pt=="object"&&Pt.global===Pt?Pt:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,u,f){var d=a.URL||a.webkitURL,h=document.createElement("a");u=u||l.name||"download",h.download=u,h.rel="noopener",typeof l=="string"?(h.href=l,h.origin===location.origin?i(h):o(h.href)?r(l,u,f):i(h,h.target="_blank")):(h.href=d.createObjectURL(l),setTimeout(function(){d.revokeObjectURL(h.href)},4e4),setTimeout(function(){i(h)},0))}:"msSaveOrOpenBlob"in navigator?function(l,u,f){if(u=u||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,f),u);else if(o(l))r(l,u,f);else{var d=document.createElement("a");d.href=l,d.target="_blank",setTimeout(function(){i(d)})}}:function(l,u,f,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof l=="string")return r(l,u,f);var h=l.type==="application/octet-stream",p=/constructor/i.test(a.HTMLElement)||a.safari,m=/CriOS\/[\d]+/.test(navigator.userAgent);if((m||h&&p||s)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var y=A.result;y=m?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=y:location=y,d=null},A.readAsDataURL(l)}else{var x=a.URL||a.webkitURL,R=x.createObjectURL(l);d?d.location=R:location.href=R,d=null,setTimeout(function(){x.revokeObjectURL(R)},4e4)}});a.saveAs=c.saveAs=c,e.exports=c})})(O_);var u4=O_.exports,T_={exports:{}};/*! +`)}async function l1e(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await s1e(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function c1e(e,t={}){const{width:n,height:r}=h_(e,t),o=await m2(e,t,!0);return await l1e(o,t),await R_(o,t),r1e(o,t),await Tpe(o,n,r)}async function F5(e,t={}){const{width:n,height:r}=h_(e,t),o=await c1e(e,t),i=await vg(o),a=document.createElement("canvas"),s=a.getContext("2d"),c=t.pixelRatio||wpe(),l=t.canvasWidth||n,u=t.canvasHeight||r;return a.width=l*c,a.height=u*c,t.skipAutoScale||Lpe(a),a.style.width=`${l}`,a.style.height=`${u}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,a.width,a.height),a}async function u1e(e,t={}){return(await F5(e,t)).toDataURL()}async function f1e(e,t={}){return(await F5(e,t)).toDataURL("image/jpeg",t.quality||1)}const d1e=Fe({__name:"Checkboard",props:{size:{default:8},white:{default:"#fff"},grey:{default:"#e6e6e6"}},setup(e){const t=e,n={},r=(a,s,c)=>{const l=document.createElement("canvas");l.width=l.height=c*2;const u=l.getContext("2d");return u?(u.fillStyle=a,u.fillRect(0,0,l.width,l.height),u.fillStyle=s,u.fillRect(0,0,c,c),u.translate(c,c),u.fillRect(0,0,c,c),l.toDataURL()):null},o=(a,s,c)=>{const l=a+","+s+","+c;if(n[l])return n[l];const u=r(a,s,c);return n[l]=u,u},i=Me(()=>({backgroundImage:`url(${o(t.white,t.grey,t.size)})`}));return(a,s)=>(Y(),ee("div",{class:"checkerboard",style:Le(i.value)},null,4))}}),gx=Ue(d1e,[["__scopeId","data-v-46275348"]]),h1e=e=>(on("data-v-429f62d3"),e=e(),an(),e),p1e={class:"alpha"},m1e={class:"alpha-checkboard-wrap"},v1e=h1e(()=>V("div",{class:"alpha-picker"},null,-1)),g1e=[v1e],A1e=Fe({__name:"Alpha",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,o=Me(()=>n.value),i=Me(()=>{const u=[o.value.r,o.value.g,o.value.b].join(",");return`linear-gradient(to right, rgba(${u}, 0) 0%, rgba(${u}, 1) 100%)`}),a=pe(),s=u=>{if(u.preventDefault(),!a.value)return;const f=a.value.clientWidth,d=a.value.getBoundingClientRect().left+window.pageXOffset,h=u.pageX-d;let p;h<0?p=0:h>f?p=1:p=Math.round(h*100/f)/100,o.value.a!==p&&r("colorChange",{r:o.value.r,g:o.value.g,b:o.value.b,a:p})},c=()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",c)},l=u=>{s(u),window.addEventListener("mousemove",s),window.addEventListener("mouseup",c)};return On(c),(u,f)=>(Y(),ee("div",p1e,[V("div",m1e,[w(gx)]),V("div",{class:"alpha-gradient",style:Le({background:i.value})},null,4),V("div",{class:"alpha-container",ref_key:"alphaRef",ref:a,onMousedown:f[0]||(f[0]=d=>l(d))},[V("div",{class:"alpha-pointer",style:Le({left:o.value.a*100+"%"})},g1e,4)],544)]))}}),R1e=Ue(A1e,[["__scopeId","data-v-429f62d3"]]),y1e=e=>(on("data-v-21ccc370"),e=e(),an(),e),x1e={class:"hue"},b1e=y1e(()=>V("div",{class:"hue-picker"},null,-1)),S1e=[b1e],M1e=Fe({__name:"Hue",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,o=pe(0),i=pe(""),a=Me(()=>{const d=ot(n.value).toHsl();return n.hue!==-1&&(d.h=n.hue),d}),s=Me(()=>a.value.h===0&&i.value==="right"?"100%":a.value.h*100/360+"%");Tt(()=>n.value,()=>{const d=ot(n.value).toHsl(),h=d.s===0?n.hue:d.h;h!==0&&h-o.value>0&&(i.value="right"),h!==0&&h-o.value<0&&(i.value="left"),o.value=h});const c=pe(),l=d=>{if(d.preventDefault(),!c.value)return;const h=c.value.clientWidth,p=c.value.getBoundingClientRect().left+window.pageXOffset,m=d.pageX-p;let A,x;m<0?A=0:m>h?A=360:(x=m*100/h,A=360*x/100),(n.hue===-1||a.value.h!==A)&&r("colorChange",{h:A,l:a.value.l,s:a.value.s,a:a.value.a})},u=()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",u)},f=d=>{l(d),window.addEventListener("mousemove",l),window.addEventListener("mouseup",u)};return On(u),(d,h)=>(Y(),ee("div",x1e,[V("div",{class:"hue-container",ref_key:"hueRef",ref:c,onMousedown:h[0]||(h[0]=p=>f(p))},[V("div",{class:"hue-pointer",style:Le({left:s.value})},S1e,4)],544)]))}}),w1e=Ue(M1e,[["__scopeId","data-v-21ccc370"]]),_5=e=>(on("data-v-4a728d90"),e=e(),an(),e),L1e=_5(()=>V("div",{class:"saturation-white"},null,-1)),O1e=_5(()=>V("div",{class:"saturation-black"},null,-1)),T1e=_5(()=>V("div",{class:"saturation-circle"},null,-1)),k1e=[T1e],N1e=Fe({__name:"Saturation",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,o=Me(()=>{const h=ot(n.value).toHsv();return n.hue!==-1&&(h.h=n.hue),h}),i=Me(()=>`hsl(${o.value.h}, 100%, 50%)`),a=Me(()=>-(o.value.v*100)+1+100+"%"),s=Me(()=>o.value.s*100+"%"),c=_n.throttle(function(h){r("colorChange",h)},20,{leading:!0,trailing:!1}),l=pe(),u=h=>{if(h.preventDefault(),!l.value)return;const p=l.value.clientWidth,m=l.value.clientHeight,A=l.value.getBoundingClientRect().left+window.pageXOffset,x=l.value.getBoundingClientRect().top+window.pageYOffset,R=_n.clamp(h.pageX-A,0,p),y=_n.clamp(h.pageY-x,0,m),g=R/p,S=_n.clamp(-(y/m)+1,0,1);c({h:o.value.h,s:g,v:S,a:o.value.a})},f=()=>{window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",f)},d=h=>{u(h),window.addEventListener("mousemove",u),window.addEventListener("mouseup",f)};return On(f),(h,p)=>(Y(),ee("div",{class:"saturation",ref_key:"saturationRef",ref:l,style:Le({background:i.value}),onMousedown:p[0]||(p[0]=m=>d(m))},[L1e,O1e,V("div",{class:"saturation-pointer",style:Le({top:a.value,left:s.value})},k1e,4)],36))}}),P1e=Ue(N1e,[["__scopeId","data-v-4a728d90"]]),C1e={class:"editable-input"},I1e=["value"],F1e=Fe({__name:"EditableInput",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,o=Me(()=>{let a="";return n.value.a<1?a=ot(n.value).toHex8String().toUpperCase():a=ot(n.value).toHexString().toUpperCase(),a.replace("#","")}),i=a=>{const s=a.target.value;if(s.length>=6){const c=ot(s);c.isValid()&&r("colorChange",c.toRgb())}};return(a,s)=>(Y(),ee("div",C1e,[V("input",{class:"input-content",value:o.value,onInput:s[0]||(s[0]=c=>i(c))},null,40,I1e)]))}}),_1e=Ue(F1e,[["__scopeId","data-v-573b4dde"]]),E1e={class:"color-picker"},X1e={class:"picker-saturation-wrap"},W1e={class:"picker-controls"},V1e={class:"picker-color-wrap"},U1e={class:"picker-sliders"},Y1e={class:"picker-hue-wrap"},Q1e={class:"picker-alpha-wrap"},Z1e={class:"picker-field"},B1e={class:"picker-presets"},D1e=["onClick"],K1e={class:"picker-gradient-presets"},H1e=["onClick"],G1e={class:"picker-presets"},z1e=["onClick"],J1e={key:0,class:"recent-colors-title"},$1e={class:"picker-presets"},j1e=["onClick"],zT="RECENT_COLORS",q1e=Fe({__name:"index",props:{modelValue:{default:"#e86b99"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],i=(g,S,L)=>{const T=ot(g).toRgb(),M=ot(S).toRgb(),O=(M.r-T.r)/L,k=(M.g-T.g)/L,F=(M.b-T.b)/L,N=[];for(let E=0;E{const g=[];for(const S of o)g.push(i(S[1],S[0],5));return g},s=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],c=["#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57","#00afee","#0071be","#00215f","#72349d"],l=pe(-1),u=pe([]),f=Me({get(){return ot(n.modelValue).toRgb()},set(g){const S=`rgba(${[g.r,g.g,g.b,g.a].join(",")})`;r("update:modelValue",S)}}),d=a(),h=Me(()=>`rgba(${[f.value.r,f.value.g,f.value.b,f.value.a].join(",")})`),p=g=>{l.value=ot(g).toHsl().h,r("update:modelValue",g)},m=_n.debounce(function(){const g=ot(f.value).toRgbString();if(!u.value.includes(g)){u.value=[g,...u.value];const S=10;u.value.length>S&&(u.value=u.value.slice(0,S))}},300,{trailing:!0});Gt(()=>{const g=localStorage.getItem(zT);g&&(u.value=JSON.parse(g))}),Tt(u,()=>{const g=JSON.stringify(u.value);localStorage.setItem(zT,g)});const A=g=>{"h"in g?(l.value=g.h,f.value=ot(g).toRgb()):(l.value=ot(g).toHsl().h,f.value=g),m()},x=()=>{"EyeDropper"in window?R():y()},R=()=>{Sn.success("按 ESC 键关闭取色吸管",{duration:0}),new window.EyeDropper().open().then(S=>{const L=ot(S.sRGBHex);l.value=L.toHsl().h,f.value=L.toRgb(),m()}).catch(()=>{Sn.closeAll()})},y=()=>{const g=document.querySelector(".canvas");if(!g)return;const S=document.createElement("div");S.style.cssText="position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9999; cursor: wait;",document.body.appendChild(S);const L=document.createElement("div");L.style.cssText="position: absolute; top: -100px; left: -100px; width: 16px; height: 16px; border: 1px solid #000; z-index: 999",S.appendChild(L);const{left:T,top:M,width:O,height:k}=g.getBoundingClientRect();F5(g,{filter:N=>!(N.tagName&&N.tagName.toUpperCase()==="FOREIGNOBJECT"||N.classList&&N.classList.contains("operate")),fontEmbedCSS:"",width:O,height:k,canvasWidth:O,canvasHeight:k,pixelRatio:1}).then(N=>{N.style.cssText=`position: absolute; top: ${M}px; left: ${T}px; cursor: crosshair;`,S.style.cursor="default",S.appendChild(N);const E=N.getContext("2d");if(!E)return;let P="";const _=D=>{const z=D.x,ae=D.y,U=z-T,Z=ae-M,[B,G,Q,ie]=E.getImageData(U,Z,1,1).data;P=`rgba(${B}, ${G}, ${Q}, ${(ie/255).toFixed(2)})`,L.style.left=z+10+"px",L.style.top=ae+10+"px",L.style.backgroundColor=P},I=()=>{P="",L.style.left="-100px",L.style.top="-100px",L.style.backgroundColor=""},W=D=>{if(P&&D.button===0){const z=ot(P);l.value=z.toHsl().h,f.value=z.toRgb(),m()}document.body.removeChild(S),N.removeEventListener("mousemove",_),N.removeEventListener("mouseleave",I),window.removeEventListener("mousedown",W)};N.addEventListener("mousemove",_),N.addEventListener("mouseleave",I),window.addEventListener("mousedown",W)}).catch(()=>{Sn.error("取色吸管初始化失败"),document.body.removeChild(S)})};return(g,S)=>{const L=xe("IconNeedle");return Y(),ee("div",E1e,[V("div",X1e,[w(P1e,{value:f.value,hue:l.value,onColorChange:S[0]||(S[0]=T=>A(T))},null,8,["value","hue"])]),V("div",W1e,[V("div",V1e,[V("div",{class:"picker-current-color",style:Le({background:h.value})},null,4),w(gx)]),V("div",U1e,[V("div",Y1e,[w(w1e,{value:f.value,hue:l.value,onColorChange:S[1]||(S[1]=T=>A(T))},null,8,["value","hue"])]),V("div",Q1e,[w(R1e,{value:f.value,onColorChange:S[2]||(S[2]=T=>A(T))},null,8,["value"])])])]),V("div",Z1e,[w(_1e,{class:"input",value:f.value,onColorChange:S[3]||(S[3]=T=>A(T))},null,8,["value"]),V("div",{class:"straw",onClick:S[4]||(S[4]=T=>x())},[w(L)]),V("div",{class:"transparent",onClick:S[5]||(S[5]=T=>p("#00000000"))},[w(gx)])]),V("div",B1e,[(Y(),ee(Ve,null,it(s,T=>V("div",{class:"picker-presets-color",key:T,style:Le({background:T}),onClick:M=>p(T)},null,12,D1e)),64))]),V("div",K1e,[(Y(!0),ee(Ve,null,it(H(d),(T,M)=>(Y(),ee("div",{class:"picker-gradient-col",key:M},[(Y(!0),ee(Ve,null,it(T,O=>(Y(),ee("div",{class:"picker-gradient-color",key:O,style:Le({background:O}),onClick:k=>p(O)},null,12,H1e))),128))]))),128))]),V("div",G1e,[(Y(),ee(Ve,null,it(c,T=>V("div",{key:T,class:"picker-presets-color",style:Le({background:T}),onClick:M=>p(T)},null,12,z1e)),64))]),u.value.length?(Y(),ee("div",J1e,"最近使用:")):Be("",!0),V("div",$1e,[(Y(!0),ee(Ve,null,it(u.value,T=>(Y(),ee("div",{key:T,class:"picker-presets-color alpha",onClick:M=>p(T)},[V("div",{class:"picker-presets-color-content",style:Le({background:T})},null,4)],8,j1e))),128))])])}}}),Ln=Ue(q1e,[["__scopeId","data-v-9ae27223"]]),eme=e=>(on("data-v-a0d44a99"),e=e(),an(),e),tme=eme(()=>V("span",{class:"switch-core"},null,-1)),nme=[tme],rme=Fe({__name:"Switch",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=()=>{n.disabled||r("update:value",!n.value)};return(i,a)=>(Y(),ee("span",{class:$e(["switch",{active:i.value,disabled:i.disabled}]),onClick:a[0]||(a[0]=s=>o())},nme,2))}}),oa=Ue(rme,[["__scopeId","data-v-a0d44a99"]]),v2=e=>(on("data-v-fd752d80"),e=e(),an(),e),ome={class:"element-outline"},ime={key:0,class:"row"},ame=v2(()=>V("div",{style:{width:"40%"}},"启用边框:",-1)),sme={class:"switch-wrapper",style:{width:"60%"}},lme={class:"row"},cme=v2(()=>V("div",{style:{width:"40%"}},"边框样式:",-1)),ume={class:"row"},fme=v2(()=>V("div",{style:{width:"40%"}},"边框颜色:",-1)),dme={class:"row"},hme=v2(()=>V("div",{style:{width:"40%"}},"边框粗细:",-1)),pme=Fe({__name:"ElementOutline",props:{fixed:{type:Boolean,default:!1}},setup(e){const t=ct(),{theme:n}=Xe(t),{handleElement:r}=Xe(ft()),o=pe(),i=pe(!1);Tt(r,()=>{r.value&&(o.value="outline"in r.value?r.value.outline:void 0,i.value=!!o.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:a}=zt(),s=l=>{if(!r.value)return;const u={outline:{...o.value,...l}};t.updateElement({id:r.value.id,props:u}),a()},c=l=>{if(r.value){if(l){const u=n.value.outline;t.updateElement({id:r.value.id,props:{outline:u}})}else t.removeElementProps({id:r.value.id,propName:"outline"});a()}};return(l,u)=>(Y(),ee("div",ome,[l.fixed?Be("",!0):(Y(),ee("div",ime,[ame,V("div",sme,[w(oa,{value:i.value,"onUpdate:value":u[0]||(u[0]=f=>c(f))},null,8,["value"])])])),i.value&&o.value?(Y(),ee(Ve,{key:1},[V("div",lme,[cme,w(Zn,{style:{width:"60%"},value:o.value.style||"","onUpdate:value":u[1]||(u[1]=f=>s({style:f})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"}]},null,8,["value"])]),V("div",ume,[fme,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:o.value.color,"onUpdate:modelValue":u[2]||(u[2]=f=>s({color:f}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:o.value.color||"#000"},null,8,["color"])]),_:1})]),V("div",dme,[hme,w(Li,{value:o.value.width||0,"onUpdate:value":u[3]||(u[3]=f=>s({width:f})),style:{width:"60%"}},null,8,["value"])])],64)):Be("",!0)]))}}),Hp=Ue(pme,[["__scopeId","data-v-fd752d80"]]),Gp=e=>(on("data-v-814f50a5"),e=e(),an(),e),mme={class:"element-shadow"},vme={class:"row"},gme=Gp(()=>V("div",{style:{width:"40%"}},"启用阴影:",-1)),Ame={class:"switch-wrapper",style:{width:"60%"}},Rme={class:"row"},yme=Gp(()=>V("div",{style:{width:"40%"}},"水平阴影:",-1)),xme={class:"row"},bme=Gp(()=>V("div",{style:{width:"40%"}},"垂直阴影:",-1)),Sme={class:"row"},Mme=Gp(()=>V("div",{style:{width:"40%"}},"模糊距离:",-1)),wme={class:"row"},Lme=Gp(()=>V("div",{style:{width:"40%"}},"阴影颜色:",-1)),Ome=Fe({__name:"ElementShadow",setup(e){const t=ct(),{theme:n}=Xe(t),{handleElement:r}=Xe(ft()),o=pe(),i=pe(!1);Tt(r,()=>{r.value&&(o.value="shadow"in r.value?r.value.shadow:void 0,i.value=!!o.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:a}=zt(),s=l=>{if(!r.value||!o.value)return;const u={...o.value,...l};t.updateElement({id:r.value.id,props:{shadow:u}}),a()},c=l=>{if(r.value){if(l){const u=n.value.shadow;t.updateElement({id:r.value.id,props:{shadow:u}})}else t.removeElementProps({id:r.value.id,propName:"shadow"});a()}};return(l,u)=>(Y(),ee("div",mme,[V("div",vme,[gme,V("div",Ame,[w(oa,{value:i.value,"onUpdate:value":u[0]||(u[0]=f=>c(f))},null,8,["value"])])]),i.value&&o.value?(Y(),ee(Ve,{key:0},[V("div",Rme,[yme,w(no,{style:{width:"60%"},min:-10,max:10,step:1,value:o.value.h,"onUpdate:value":u[1]||(u[1]=f=>s({h:f}))},null,8,["value"])]),V("div",xme,[bme,w(no,{style:{width:"60%"},min:-10,max:10,step:1,value:o.value.v,"onUpdate:value":u[2]||(u[2]=f=>s({v:f}))},null,8,["value"])]),V("div",Sme,[Mme,w(no,{style:{width:"60%"},min:1,max:20,step:1,value:o.value.blur,"onUpdate:value":u[3]||(u[3]=f=>s({blur:f}))},null,8,["value"])]),V("div",wme,[Lme,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:o.value.color,"onUpdate:modelValue":u[4]||(u[4]=f=>s({color:f}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:o.value.color},null,8,["color"])]),_:1})])],64)):Be("",!0)]))}}),g2=Ue(Ome,[["__scopeId","data-v-814f50a5"]]),Tme={class:"text-color-block"},kme=Fe({__name:"TextColorButton",props:{color:{}},setup(e){return(t,n)=>(Y(),we(et,{class:"text-color-btn"},{default:re(()=>[cr(t.$slots,"default",{},void 0,!0),V("div",Tme,[V("div",{class:"text-color-block-content",style:Le({backgroundColor:t.color})},null,4)])]),_:3}))}}),xc=Ue(kme,[["__scopeId","data-v-98853be0"]]),Qn=Fe({__name:"CheckboxButton",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(Y(),we(et,{checked:t.checked,disabled:t.disabled,type:"checkbox"},{default:re(()=>[cr(t.$slots,"default")]),_:3},8,["checked","disabled"]))}}),Nme=Fe({__name:"ButtonGroup",props:{passive:{type:Boolean,default:!1}},setup(e){return(t,n)=>(Y(),ee("div",{class:$e(["button-group",{passive:t.passive}]),ref:"groupRef"},[cr(t.$slots,"default",{},void 0,!0)],2))}}),xn=Ue(Nme,[["__scopeId","data-v-6a640ef5"]]),Nn=Fe({__name:"RadioButton",props:{value:{},disabled:{type:Boolean,default:!1}},setup(e){const{value:t,updateValue:n}=jo(uI);return(r,o)=>(Y(),we(et,{checked:!r.disabled&&H(t)===r.value,disabled:r.disabled,type:"radio",onClick:o[0]||(o[0]=i=>!r.disabled&&H(n)(r.value))},{default:re(()=>[cr(r.$slots,"default")]),_:3},8,["checked","disabled"]))}}),_a=Fe({__name:"RadioGroup",props:{value:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=a=>{n.disabled||r("update:value",a)},i=Me(()=>n.value);return Ku(uI,{value:i,updateValue:o}),(a,s)=>(Y(),we(xn,{class:"radio-group"},{default:re(()=>[cr(a.$slots,"default")]),_:3}))}}),Pme={},Cme={class:"select-group"};function Ime(e,t){return Y(),ee("div",Cme,[cr(e.$slots,"default",{},void 0,!0)])}const A2=Ue(Pme,[["render",Ime],["__scopeId","data-v-ed58c719"]]),kc=e=>(on("data-v-becd4c4e"),e=e(),an(),e),Fme={class:"text-style-panel"},_me={class:"preset-style"},Eme=["onClick"],Xme={class:"link-popover"},Wme={class:"btns"},Vme={class:"row",passive:""},Ume={class:"list-wrap"},Yme=["onClick"],Qme=kc(()=>V("span",null,null,-1)),Zme=[Qme],Bme=kc(()=>V("div",{style:{width:"10px"}},null,-1)),Dme={class:"list-wrap"},Kme=["onClick"],Hme=kc(()=>V("span",null,null,-1)),Gme=[Hme],zme={class:"row"},Jme=kc(()=>V("div",{style:{width:"10px"}},null,-1)),$me={class:"row"},jme=kc(()=>V("div",{style:{width:"40%"}},"行间距:",-1)),qme={class:"row"},eve=kc(()=>V("div",{style:{width:"40%"}},"段间距:",-1)),tve={class:"row"},nve=kc(()=>V("div",{style:{width:"40%"}},"字间距:",-1)),rve={class:"row"},ove=kc(()=>V("div",{style:{width:"40%"}},"文本框填充:",-1)),ive=Fe({__name:"TextStylePanel",setup(e){const t=[{label:"大标题",style:{fontSize:"26px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"66px"},{command:"align",value:"center"}]},{label:"小标题",style:{fontSize:"22px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"40px"},{command:"align",value:"center"}]},{label:"正文",style:{fontSize:"20px"},cmd:[{command:"clear"},{command:"fontsize",value:"20px"}]},{label:"正文[小]",style:{fontSize:"18px"},cmd:[{command:"clear"},{command:"fontsize",value:"18px"}]},{label:"注释 1",style:{fontSize:"16px",fontStyle:"italic"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"em"}]},{label:"注释 2",style:{fontSize:"16px",textDecoration:"underline"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"underline"}]}],n=ft(),r=ct(),{handleElement:o,handleElementId:i,richTextAttrs:a,availableFonts:s,textFormatPainter:c}=Xe(n),{addHistorySnapshot:l}=zt(),{toggleTextFormatPainter:u}=c_(),f=ae=>{r.updateElement({id:i.value,props:ae}),l()},d=pe(!1),h=pe(!1),p=pe(!1),m=pe(!1),A=pe(["disc","circle","square"]),x=pe(["decimal","lower-roman","upper-roman","lower-alpha","upper-alpha","lower-greek"]),R=pe("#000"),y=pe(),g=pe(),S=pe();Tt(o,()=>{!o.value||o.value.type!=="text"||(R.value=o.value.fill||"#fff",y.value=o.value.lineHeight||1.5,g.value=o.value.wordSpace||0,S.value=o.value.paragraphSpace===void 0?5:o.value.paragraphSpace,Zr.emit(Wr.SYNC_RICH_TEXT_ATTRS_TO_STORE))},{deep:!0,immediate:!0});const L=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],T=[.9,1,1.15,1.2,1.4,1.5,1.8,2,2.5,3],M=[0,1,2,3,4,5,6,8,10],O=[0,5,10,15,20,25,30,40,50,80],k=ae=>{f({lineHeight:ae})},F=ae=>{f({paragraphSpace:ae})},N=ae=>{f({wordSpace:ae})},E=ae=>{f({fill:ae})},P=(ae,U)=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:ae,value:U}})},_=ae=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:ae})},I=pe(""),W=pe(!1);Tt(a,()=>W.value=!1);const D=()=>{I.value=a.value.link},z=ae=>{if(!ae||!/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/.test(ae))return Sn.error("不是正确的网页链接地址");P("link",ae),W.value=!1};return(ae,U)=>{const Z=xe("IconFontSize"),B=xe("IconAddText"),G=xe("IconText"),Q=xe("IconHighLight"),ie=xe("IconTextBold"),q=xe("IconTextItalic"),oe=xe("IconTextUnderline"),he=xe("IconStrikethrough"),me=xe("IconCode"),ve=xe("IconQuote"),J=xe("IconFormat"),ue=xe("IconFormatBrush"),X=xe("IconLinkOne"),te=xe("IconAlignTextLeft"),le=xe("IconAlignTextCenter"),$=xe("IconAlignTextRight"),j=xe("IconAlignTextBoth"),se=xe("IconList"),ge=xe("IconDown"),ce=xe("IconOrderedList"),Ae=xe("IconIndentLeft"),ye=xe("IconIndentRight"),Ee=xe("IconRowHeight"),Se=xe("IconVerticalSpacingBetweenItems"),be=xe("IconFullwidth"),qe=Mn("tooltip");return Y(),ee("div",Fme,[V("div",_me,[(Y(),ee(Ve,null,it(t,Ce=>V("div",{class:"preset-style-item",key:Ce.label,style:Le(Ce.style),onClick:Te=>_(Ce.cmd)},gt(Ce.label),13,Eme)),64))]),w(Ut),w(A2,{class:"row"},{default:re(()=>[w(Zn,{class:"font-select",style:{width:"60%"},value:H(a).fontname,"onUpdate:value":U[0]||(U[0]=Ce=>P("fontname",Ce)),options:[...H(s),...H(bp)]},{icon:re(()=>[w(Z)]),_:1},8,["value","options"]),w(Zn,{style:{width:"40%"},value:H(a).fontsize,"onUpdate:value":U[1]||(U[1]=Ce=>P("fontsize",Ce)),options:L.map(Ce=>({label:Ce,value:Ce}))},{icon:re(()=>[w(B)]),_:1},8,["value","options"])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(a).color,"onUpdate:modelValue":U[2]||(U[2]=Ce=>P("color",Ce))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{first:"",color:H(a).color},{default:re(()=>[w(G)]),_:1},8,["color"])),[[qe,"文字颜色"]])]),_:1}),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(a).backcolor,"onUpdate:modelValue":U[3]||(U[3]=Ce=>P("backcolor",Ce))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{color:H(a).backcolor},{default:re(()=>[w(Q)]),_:1},8,["color"])),[[qe,"文字高亮"]])]),_:1}),De((Y(),we(et,{class:"font-size-btn",style:{width:"20%"},onClick:U[4]||(U[4]=Ce=>P("fontsize-add"))},{default:re(()=>[w(Z),We("+")]),_:1})),[[qe,"增大字号"]]),De((Y(),we(et,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:U[5]||(U[5]=Ce=>P("fontsize-reduce"))},{default:re(()=>[w(Z),We("-")]),_:1})),[[qe,"减小字号"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).bold,onClick:U[6]||(U[6]=Ce=>P("bold"))},{default:re(()=>[w(ie)]),_:1},8,["checked"])),[[qe,"加粗"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).em,onClick:U[7]||(U[7]=Ce=>P("em"))},{default:re(()=>[w(q)]),_:1},8,["checked"])),[[qe,"斜体"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).underline,onClick:U[8]||(U[8]=Ce=>P("underline"))},{default:re(()=>[w(oe)]),_:1},8,["checked"])),[[qe,"下划线"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).strikethrough,onClick:U[9]||(U[9]=Ce=>P("strikethrough"))},{default:re(()=>[w(he)]),_:1},8,["checked"])),[[qe,"删除线"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).superscript,onClick:U[10]||(U[10]=Ce=>P("superscript"))},{default:re(()=>[We("A²")]),_:1},8,["checked"])),[[qe,"上标"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).subscript,onClick:U[11]||(U[11]=Ce=>P("subscript"))},{default:re(()=>[We("A₂")]),_:1},8,["checked"])),[[qe,"下标"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).code,onClick:U[12]||(U[12]=Ce=>P("code"))},{default:re(()=>[w(me)]),_:1},8,["checked"])),[[qe,"行内代码"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(a).blockquote,onClick:U[13]||(U[13]=Ce=>P("blockquote"))},{default:re(()=>[w(ve)]),_:1},8,["checked"])),[[qe,"引用"]])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[De((Y(),we(Qn,{first:"",style:{flex:"1"},onClick:U[14]||(U[14]=Ce=>P("clear"))},{default:re(()=>[w(J)]),_:1})),[[qe,"清除格式"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:!!H(c),onClick:U[15]||(U[15]=Ce=>H(u)()),onDblclick:U[16]||(U[16]=Ce=>H(u)(!0))},{default:re(()=>[w(ue)]),_:1},8,["checked"])),[[qe,"格式刷(双击连续使用)"]]),w(kt,{placement:"bottom-end",trigger:"click",value:W.value,"onUpdate:value":U[21]||(U[21]=Ce=>W.value=Ce),style:{width:"33.33%"}},{content:re(()=>[V("div",Xme,[w(Xu,{value:I.value,"onUpdate:value":U[17]||(U[17]=Ce=>I.value=Ce),placeholder:"请输入超链接"},null,8,["value"]),V("div",Wme,[w(et,{size:"small",disabled:!H(a).link,onClick:U[18]||(U[18]=Ce=>z()),style:{"margin-right":"5px"}},{default:re(()=>[We("移除")]),_:1},8,["disabled"]),w(et,{size:"small",type:"primary",onClick:U[19]||(U[19]=Ce=>z(I.value))},{default:re(()=>[We("确认")]),_:1})])])]),default:re(()=>[De((Y(),we(Qn,{last:"",style:{width:"100%"},checked:!!H(a).link,onClick:U[20]||(U[20]=Ce=>D())},{default:re(()=>[w(X)]),_:1},8,["checked"])),[[qe,"超链接"]])]),_:1},8,["value"])]),_:1}),w(Ut),w(_a,{class:"row","button-style":"solid",value:H(a).align,"onUpdate:value":U[22]||(U[22]=Ce=>P("align",Ce))},{default:re(()=>[De((Y(),we(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(te)]),_:1})),[[qe,"左对齐"]]),De((Y(),we(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(le)]),_:1})),[[qe,"居中"]]),De((Y(),we(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w($)]),_:1})),[[qe,"右对齐"]]),De((Y(),we(Nn,{value:"justify",style:{flex:"1"}},{default:re(()=>[w(j)]),_:1})),[[qe,"两端对齐"]])]),_:1},8,["value"]),V("div",Vme,[w(xn,{style:{flex:"1"}},{default:re(()=>[De((Y(),we(et,{first:"",type:H(a).bulletList?"primary":"default",style:{flex:"1"},onClick:U[23]||(U[23]=Ce=>P("bulletList"))},{default:re(()=>[w(se)]),_:1},8,["type"])),[[qe,"项目符号"]]),w(kt,{trigger:"click",value:d.value,"onUpdate:value":U[24]||(U[24]=Ce=>d.value=Ce)},{content:re(()=>[V("div",Ume,[(Y(!0),ee(Ve,null,it(A.value,Ce=>(Y(),ee("ul",{class:"list",key:Ce,style:Le({listStyleType:Ce}),onClick:Te=>P("bulletList",Ce)},[(Y(),ee(Ve,null,it(3,Te=>V("li",{class:"list-item",key:Te},Zme)),64))],12,Yme))),128))])]),default:re(()=>[w(et,{last:"",class:"popover-btn"},{default:re(()=>[w(ge)]),_:1})]),_:1},8,["value"])]),_:1}),Bme,w(xn,{style:{flex:"1"},passive:""},{default:re(()=>[De((Y(),we(et,{first:"",type:H(a).orderedList?"primary":"default",style:{flex:"1"},onClick:U[25]||(U[25]=Ce=>P("orderedList"))},{default:re(()=>[w(ce)]),_:1},8,["type"])),[[qe,"编号"]]),w(kt,{trigger:"click",value:h.value,"onUpdate:value":U[26]||(U[26]=Ce=>h.value=Ce)},{content:re(()=>[V("div",Dme,[(Y(!0),ee(Ve,null,it(x.value,Ce=>(Y(),ee("ul",{class:"list",key:Ce,style:Le({listStyleType:Ce}),onClick:Te=>P("orderedList",Ce)},[(Y(),ee(Ve,null,it(3,Te=>V("li",{class:"list-item",key:Te},Gme)),64))],12,Kme))),128))])]),default:re(()=>[w(et,{last:"",class:"popover-btn"},{default:re(()=>[w(ge)]),_:1})]),_:1},8,["value"])]),_:1})]),V("div",zme,[w(xn,{style:{flex:"1"},passive:""},{default:re(()=>[De((Y(),we(et,{first:"",style:{flex:"1"},onClick:U[27]||(U[27]=Ce=>P("indent","-1"))},{default:re(()=>[w(Ae)]),_:1})),[[qe,"减小段落缩进"]]),w(kt,{trigger:"click",value:p.value,"onUpdate:value":U[29]||(U[29]=Ce=>p.value=Ce)},{content:re(()=>[w(Oo,{onClick:U[28]||(U[28]=Ce=>P("textIndent","-1"))},{default:re(()=>[We("减小首行缩进")]),_:1})]),default:re(()=>[w(et,{last:"",class:"popover-btn"},{default:re(()=>[w(ge)]),_:1})]),_:1},8,["value"])]),_:1}),Jme,w(xn,{style:{flex:"1"},passive:""},{default:re(()=>[De((Y(),we(et,{first:"",style:{flex:"1"},onClick:U[30]||(U[30]=Ce=>P("indent","+1"))},{default:re(()=>[w(ye)]),_:1})),[[qe,"增大段落缩进"]]),w(kt,{trigger:"click",value:m.value,"onUpdate:value":U[32]||(U[32]=Ce=>m.value=Ce)},{content:re(()=>[w(Oo,{onClick:U[31]||(U[31]=Ce=>P("textIndent","+1"))},{default:re(()=>[We("增大首行缩进")]),_:1})]),default:re(()=>[w(et,{last:"",class:"popover-btn"},{default:re(()=>[w(ge)]),_:1})]),_:1},8,["value"])]),_:1})]),w(Ut),V("div",$me,[jme,w(Zn,{style:{width:"60%"},value:y.value||1,"onUpdate:value":U[33]||(U[33]=Ce=>k(Ce)),options:T.map(Ce=>({label:Ce+"倍",value:Ce}))},{icon:re(()=>[w(Ee)]),_:1},8,["value","options"])]),V("div",qme,[eve,w(Zn,{style:{width:"60%"},value:S.value||0,"onUpdate:value":U[34]||(U[34]=Ce=>F(Ce)),options:O.map(Ce=>({label:Ce+"px",value:Ce}))},{icon:re(()=>[w(Se)]),_:1},8,["value","options"])]),V("div",tve,[nve,w(Zn,{style:{width:"60%"},value:g.value||0,"onUpdate:value":U[35]||(U[35]=Ce=>N(Ce)),options:M.map(Ce=>({label:Ce+"px",value:Ce}))},{icon:re(()=>[w(be)]),_:1},8,["value","options"])]),V("div",rve,[ove,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:R.value,"onUpdate:modelValue":U[36]||(U[36]=Ce=>E(Ce))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:R.value},null,8,["color"])]),_:1})]),w(Ut),w(Hp),w(Ut),w(g2),w(Ut),w(d_)])}}}),ave=Ue(ive,[["__scopeId","data-v-becd4c4e"]]),sve={class:"element-flip"},lve=Fe({__name:"ElementFlip",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=pe(!1),o=pe(!1);Tt(n,()=>{n.value&&(n.value.type==="image"||n.value.type==="shape")&&(r.value=!!n.value.flipH,o.value=!!n.value.flipV)},{deep:!0,immediate:!0});const{addHistorySnapshot:i}=zt(),a=s=>{n.value&&(t.updateElement({id:n.value.id,props:s}),i())};return(s,c)=>{const l=xe("IconFlipVertically"),u=xe("IconFlipHorizontally");return Y(),ee("div",sve,[w(xn,{class:"row"},{default:re(()=>[w(Qn,{style:{flex:"1"},checked:o.value,onClick:c[0]||(c[0]=f=>a({flipV:!o.value}))},{default:re(()=>[w(l),We(" 垂直翻转")]),_:1},8,["checked"]),w(Qn,{style:{flex:"1"},checked:r.value,onClick:c[1]||(c[1]=f=>a({flipH:!r.value}))},{default:re(()=>[w(u),We(" 水平翻转")]),_:1},8,["checked"])]),_:1})])}}}),y_=Ue(lve,[["__scopeId","data-v-100c8a7c"]]),cve=e=>(on("data-v-44786c09"),e=e(),an(),e),uve={class:"element-filter"},fve={class:"row"},dve=cve(()=>V("div",{style:{flex:"2"}},"启用滤镜:",-1)),hve={class:"switch-wrapper",style:{flex:"3"}},pve={key:0,class:"filter"},mve={class:"name"},vve=Fe({__name:"ElementFilter",setup(e){const t=[{label:"模糊",key:"blur",default:0,value:0,unit:"px",max:10,step:1},{label:"亮度",key:"brightness",default:100,value:100,unit:"%",max:200,step:5},{label:"对比度",key:"contrast",default:100,value:100,unit:"%",max:200,step:5},{label:"灰度",key:"grayscale",default:0,value:0,unit:"%",max:100,step:5},{label:"饱和度",key:"saturate",default:100,value:100,unit:"%",max:200,step:5},{label:"色相",key:"hue-rotate",default:0,value:0,unit:"deg",max:360,step:10},{label:"不透明度",key:"opacity",default:100,value:100,unit:"%",max:100,step:5}],n=ct(),{handleElement:r,handleElementId:o}=Xe(ft()),i=pe(JSON.parse(JSON.stringify(t))),a=pe(!1),{addHistorySnapshot:s}=zt();Tt(r,()=>{if(!r.value||r.value.type!=="image")return;const u=r.value.filters;u?(i.value=t.map(f=>{const d=u[f.key];return d?{...f,value:parseInt(d)}:f}),a.value=!0):(i.value=JSON.parse(JSON.stringify(t)),a.value=!1)},{deep:!0,immediate:!0});const c=(u,f)=>{const p={...r.value.filters||{},[u.key]:`${f}${u.unit}`};n.updateElement({id:o.value,props:{filters:p}}),s()},l=u=>{r.value&&(u?n.updateElement({id:r.value.id,props:{filters:{}}}):n.removeElementProps({id:r.value.id,propName:"filters"}),s())};return(u,f)=>(Y(),ee("div",uve,[V("div",fve,[dve,V("div",hve,[w(oa,{value:a.value,"onUpdate:value":f[0]||(f[0]=d=>l(d))},null,8,["value"])])]),a.value?(Y(),ee("div",pve,[(Y(!0),ee(Ve,null,it(i.value,d=>(Y(),ee("div",{class:"filter-item",key:d.key},[V("div",mve,gt(d.label),1),w(no,{class:"filter-slider",max:d.max,min:0,step:d.step,value:d.value,"onUpdate:value":h=>c(d,h)},null,8,["max","step","value","onUpdate:value"])]))),128))])):Be("",!0)]))}}),gve=Ue(vve,[["__scopeId","data-v-44786c09"]]),x_=e=>(on("data-v-d428a4e5"),e=e(),an(),e),Ave={class:"element-color-mask"},Rve={class:"row"},yve=x_(()=>V("div",{style:{width:"40%"}},"着色(蒙版):",-1)),xve={class:"switch-wrapper",style:{width:"60%"}},bve={key:0,class:"row",style:{"margin-top":"15px"}},Sve=x_(()=>V("div",{style:{width:"40%"}},"蒙版颜色:",-1)),JT="rgba(226, 83, 77, 0.5)",Mve=Fe({__name:"ElementColorMask",setup(e){const t=ct(),{handleElement:n,handleElementId:r}=Xe(ft()),o=pe(JT),i=pe(!1),{addHistorySnapshot:a}=zt();Tt(n,()=>{!n.value||n.value.type!=="image"||(n.value.colorMask?(o.value=n.value.colorMask,i.value=!0):i.value=!1)},{deep:!0,immediate:!0});const s=l=>{n.value&&(l?t.updateElement({id:n.value.id,props:{colorMask:JT}}):t.removeElementProps({id:n.value.id,propName:"colorMask"}),a())},c=l=>{t.updateElement({id:r.value,props:{colorMask:l}}),a()};return(l,u)=>(Y(),ee("div",Ave,[V("div",Rve,[yve,V("div",xve,[w(oa,{value:i.value,"onUpdate:value":u[0]||(u[0]=f=>s(f))},null,8,["value"])])]),i.value?(Y(),ee("div",bve,[Sve,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=f=>c(f))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:o.value},null,8,["color"])]),_:1})])):Be("",!0)]))}}),wve=Ue(Mve,[["__scopeId","data-v-d428a4e5"]]),Lve=e=>(on("data-v-0c668b03"),e=e(),an(),e),Ove={class:"image-style-panel"},Tve={class:"clip"},kve=Lve(()=>V("div",{class:"title"},"按形状:",-1)),Nve={class:"shape-clip"},Pve=["onClick"],Cve={key:0,class:"title"},Ive=Fe({__name:"ImageStylePanel",setup(e){const t=B3,n=[{label:"纵横比(正方形)",children:[{key:"1:1",ratio:1/1}]},{label:"纵横比(纵向)",children:[{key:"2:3",ratio:3/2},{key:"3:4",ratio:4/3},{key:"3:5",ratio:5/3},{key:"4:5",ratio:5/4}]},{label:"纵横比(横向)",children:[{key:"3:2",ratio:2/3},{key:"4:3",ratio:3/4},{key:"5:3",ratio:3/5},{key:"5:4",ratio:4/5}]},{children:[{key:"16:9",ratio:9/16},{key:"16:10",ratio:10/16}]}],r=ft(),o=ct(),{handleElement:i,handleElementId:a}=Xe(r),{currentSlide:s}=Xe(o),c=i,l=pe(!1),{addHistorySnapshot:u}=zt(),f=()=>{r.setClipingImageElementId(a.value),l.value=!1},d=()=>{const x=i.value,R=x.width,y=x.height,g=x.left,S=x.top,L=x.clip?x.clip.range:[[0,0],[100,100]],T=R/((L[1][0]-L[0][0])/100),M=y/((L[1][1]-L[0][1])/100),O=g-T*(L[0][0]/100),k=S-M*(L[0][1]/100);return{originClipRange:L,originWidth:T,originHeight:M,originLeft:O,originTop:k}},h=(x,R=0)=>{const y=i.value,{originClipRange:g,originWidth:S,originHeight:L,originLeft:T,originTop:M}=d();if(R){const O=L/S,k=0,F=100;let N;if(O>R){const E=(1-R/O)/2*100;N=[[k,E],[F,F-E]]}else{const E=(1-O/R)/2*100;N=[[E,k],[F-E,F]]}o.updateElement({id:a.value,props:{clip:{...y.clip,shape:x,range:N},left:T+S*(N[0][0]/100),top:M+L*(N[0][1]/100),width:S*(N[1][0]-N[0][0])/100,height:L*(N[1][1]-N[0][1])/100}})}else o.updateElement({id:a.value,props:{clip:{...y.clip,shape:x,range:g}}});f(),u()},p=x=>{const R=x[0];R&&(zu(R).then(y=>{const g={src:y};o.updateElement({id:a.value,props:g})}),u())},m=()=>{if(i.value.clip){const{originWidth:R,originHeight:y,originLeft:g,originTop:S}=d();o.updateElement({id:a.value,props:{left:g,top:S,width:R,height:y}})}o.removeElementProps({id:a.value,propName:["clip","outline","flip","shadow","filters","colorMask"]}),u()},A=()=>{const x=i.value,R={...s.value.background,type:"image",image:x.src,imageSize:"cover"};o.updateSlide({background:R}),u()};return(x,R)=>{const y=xe("IconTailoring"),g=xe("IconDown"),S=xe("IconTransform"),L=xe("IconUndo"),T=xe("IconTheme");return Y(),ee("div",Ove,[V("div",{class:"origin-image",style:Le({backgroundImage:`url(${H(c).src})`})},null,4),w(y_),w(xn,{class:"row",passive:""},{default:re(()=>[w(et,{first:"",style:{width:"calc(100% / 6 * 5)"},onClick:R[0]||(R[0]=M=>f())},{default:re(()=>[w(y,{class:"btn-icon"}),We(" 裁剪图片")]),_:1}),w(kt,{trigger:"click",value:l.value,"onUpdate:value":R[1]||(R[1]=M=>l.value=M),style:{width:"calc(100% / 6)"}},{content:re(()=>[V("div",Tve,[kve,V("div",Nve,[(Y(!0),ee(Ve,null,it(H(t),(M,O)=>(Y(),ee("div",{class:"shape-clip-item",key:O,onClick:k=>h(O)},[V("div",{class:"shape",style:Le({clipPath:M.style})},null,4)],8,Pve))),128))]),(Y(),ee(Ve,null,it(n,M=>(Y(),ee(Ve,{key:M.label},[M.label?(Y(),ee("div",Cve,"按"+gt(M.label)+":",1)):Be("",!0),w(xn,{class:"row"},{default:re(()=>[(Y(!0),ee(Ve,null,it(M.children,O=>(Y(),we(et,{style:{flex:"1"},key:O.key,onClick:k=>h("rect",O.ratio)},{default:re(()=>[We(gt(O.key),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)],64))),64))])]),default:re(()=>[w(et,{last:"",class:"popover-btn",style:{width:"100%"}},{default:re(()=>[w(g)]),_:1})]),_:1},8,["value"])]),_:1}),w(Ut),w(wve),w(Ut),w(gve),w(Ut),w(Hp),w(Ut),w(g2),w(Ut),w(Eu,{onChange:R[2]||(R[2]=M=>p(M))},{default:re(()=>[w(et,{class:"full-width-btn"},{default:re(()=>[w(S,{class:"btn-icon"}),We(" 替换图片")]),_:1})]),_:1}),w(et,{class:"full-width-btn",onClick:R[3]||(R[3]=M=>m())},{default:re(()=>[w(L,{class:"btn-icon"}),We(" 重置样式")]),_:1}),w(et,{class:"full-width-btn",onClick:R[4]||(R[4]=M=>A())},{default:re(()=>[w(T,{class:"btn-icon"}),We(" 设为背景")]),_:1})])}}}),Fve=Ue(Ive,[["__scopeId","data-v-0c668b03"]]),_ve=()=>{const e=ft(),{shapeFormatPainter:t,handleElement:n}=Xe(e);return{toggleShapeFormatPainter:(o=!1)=>{const i=n.value;t.value?e.setShapeFormatPainter(null):e.setShapeFormatPainter({keep:o,fill:i.fill,gradient:i.gradient,outline:i.outline,opacity:i.opacity,shadow:i.shadow})}}},zp=e=>(on("data-v-830d0c7f"),e=e(),an(),e),Eve={class:"shape-style-panel"},Xve={class:"title"},Wve=zp(()=>V("span",null,"点击替换形状",-1)),Vve={class:"shape-pool"},Uve={class:"shape-list"},Yve={class:"row"},Qve=zp(()=>V("div",{style:{width:"10px"}},null,-1)),Zve={class:"row"},Bve=zp(()=>V("div",{style:{width:"40%"}},"起点颜色:",-1)),Dve={class:"row"},Kve=zp(()=>V("div",{style:{width:"40%"}},"终点颜色:",-1)),Hve={key:0,class:"row"},Gve=zp(()=>V("div",{style:{width:"40%"}},"渐变角度:",-1)),zve={class:"row"},Jve=Fe({__name:"ShapeStylePanel",setup(e){const t=ft(),n=ct(),{handleElement:r,handleElementId:o,richTextAttrs:i,availableFonts:a,textFormatPainter:s,shapeFormatPainter:c}=Xe(t),l=r,u=pe("#000"),f=pe({type:"linear",rotate:0,color:["#fff","#fff"]}),d=pe("fill"),h=pe("middle");Tt(r,()=>{var O,k;!r.value||r.value.type!=="shape"||(u.value=r.value.fill||"#fff",f.value=r.value.gradient||{type:"linear",rotate:0,color:[u.value,"#fff"]},d.value=r.value.gradient?"gradient":"fill",h.value=((k=(O=r.value)==null?void 0:O.text)==null?void 0:k.align)||"middle")},{deep:!0,immediate:!0});const{addHistorySnapshot:p}=zt(),{toggleTextFormatPainter:m}=c_(),{toggleShapeFormatPainter:A}=_ve(),x=O=>{n.updateElement({id:o.value,props:O}),p()},R=O=>{O==="fill"?(n.removeElementProps({id:o.value,propName:"gradient"}),p()):x({gradient:f.value})},y=O=>{if(!f.value)return;const k={...f.value,...O};x({gradient:k})},g=O=>{x({fill:O})},S=O=>{const{width:k,height:F}=r.value,N={viewBox:O.viewBox,path:O.path,special:O.special};if(O.pathFormula){N.pathFormula=O.pathFormula,N.viewBox=[k,F];const E=Ju[O.pathFormula];"editable"in E?(N.path=E.formula(k,F,E.defaultValue),N.keypoint=E.defaultValue):N.path=E.formula(k,F)}else N.pathFormula=void 0,N.keypoint=void 0;x(N)},L=O=>{const k=r.value,F={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"},N=k.text||F;x({text:{...N,align:O}})},T=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],M=(O,k)=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:O,value:k}})};return(O,k)=>{var he;const F=xe("IconDown"),N=xe("IconFontSize"),E=xe("IconAddText"),P=xe("IconText"),_=xe("IconHighLight"),I=xe("IconTextBold"),W=xe("IconTextItalic"),D=xe("IconTextUnderline"),z=xe("IconStrikethrough"),ae=xe("IconFormat"),U=xe("IconFormatBrush"),Z=xe("IconAlignTextLeft"),B=xe("IconAlignTextCenter"),G=xe("IconAlignTextRight"),Q=xe("IconAlignTextTopOne"),ie=xe("IconAlignTextMiddleOne"),q=xe("IconAlignTextBottomOne"),oe=Mn("tooltip");return Y(),ee("div",Eve,[V("div",Xve,[Wve,w(F)]),V("div",Vve,[(Y(!0),ee(Ve,null,it(H(Nb),me=>(Y(),ee("div",{class:"category",key:me.type},[V("div",Uve,[(Y(!0),ee(Ve,null,it(me.children,(ve,J)=>(Y(),ee(Ve,null,[ve.title!=="任意多边形"?(Y(),we(DF,{class:"shape-item",key:J,shape:ve,onClick:ue=>S(ve)},null,8,["shape","onClick"])):Be("",!0)],64))),256))])]))),128))]),V("div",Yve,[w(Zn,{style:{flex:"1"},value:d.value,"onUpdate:value":k[0]||(k[0]=me=>R(me)),options:[{label:"纯色填充",value:"fill"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),Qve,d.value==="fill"?(Y(),we(kt,{key:0,trigger:"click",style:{flex:"1"}},{content:re(()=>[w(Ln,{modelValue:u.value,"onUpdate:modelValue":k[1]||(k[1]=me=>g(me))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:u.value},null,8,["color"])]),_:1})):(Y(),we(Zn,{key:1,style:{flex:"1"},value:f.value.type,"onUpdate:value":k[2]||(k[2]=me=>y({type:me})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),d.value==="gradient"?(Y(),ee(Ve,{key:0},[V("div",Zve,[Bve,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:f.value.color[0],"onUpdate:modelValue":k[3]||(k[3]=me=>y({color:[me,f.value.color[1]]}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:f.value.color[0]},null,8,["color"])]),_:1})]),V("div",Dve,[Kve,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:f.value.color[1],"onUpdate:modelValue":k[4]||(k[4]=me=>y({color:[f.value.color[0],me]}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:f.value.color[1]},null,8,["color"])]),_:1})]),f.value.type==="linear"?(Y(),ee("div",Hve,[Gve,w(no,{style:{width:"60%"},min:0,max:360,step:15,value:f.value.rotate,"onUpdate:value":k[5]||(k[5]=me=>y({rotate:me}))},null,8,["value"])])):Be("",!0)],64)):Be("",!0),w(y_),w(Ut),(he=H(l).text)!=null&&he.content?(Y(),ee(Ve,{key:1},[w(A2,{class:"row"},{default:re(()=>[w(Zn,{class:"font-select",style:{width:"60%"},value:H(i).fontname,"onUpdate:value":k[6]||(k[6]=me=>M("fontname",me)),options:[...H(a),...H(bp)]},{icon:re(()=>[w(N)]),_:1},8,["value","options"]),w(Zn,{style:{width:"40%"},value:H(i).fontsize,"onUpdate:value":k[7]||(k[7]=me=>M("fontsize",me)),options:T.map(me=>({label:me,value:me}))},{icon:re(()=>[w(E)]),_:1},8,["value","options"])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(i).color,"onUpdate:modelValue":k[8]||(k[8]=me=>M("color",me))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{first:"",color:H(i).color},{default:re(()=>[w(P)]),_:1},8,["color"])),[[oe,"文字颜色"]])]),_:1}),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(i).backcolor,"onUpdate:modelValue":k[9]||(k[9]=me=>M("backcolor",me))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{color:H(i).backcolor},{default:re(()=>[w(_)]),_:1},8,["color"])),[[oe,"文字高亮"]])]),_:1}),De((Y(),we(et,{class:"font-size-btn",style:{width:"20%"},onClick:k[10]||(k[10]=me=>M("fontsize-add"))},{default:re(()=>[w(N),We("+")]),_:1})),[[oe,"增大字号"]]),De((Y(),we(et,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:k[11]||(k[11]=me=>M("fontsize-reduce"))},{default:re(()=>[w(N),We("-")]),_:1})),[[oe,"减小字号"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},checked:H(i).bold,onClick:k[12]||(k[12]=me=>M("bold"))},{default:re(()=>[w(I)]),_:1},8,["checked"])),[[oe,"加粗"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(i).em,onClick:k[13]||(k[13]=me=>M("em"))},{default:re(()=>[w(W)]),_:1},8,["checked"])),[[oe,"斜体"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(i).underline,onClick:k[14]||(k[14]=me=>M("underline"))},{default:re(()=>[w(D)]),_:1},8,["checked"])),[[oe,"下划线"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:H(i).strikethrough,onClick:k[15]||(k[15]=me=>M("strikethrough"))},{default:re(()=>[w(z)]),_:1},8,["checked"])),[[oe,"删除线"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},onClick:k[16]||(k[16]=me=>M("clear"))},{default:re(()=>[w(ae)]),_:1})),[[oe,"清除格式"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:!!H(s),onClick:k[17]||(k[17]=me=>H(m)()),onDblclick:k[18]||(k[18]=me=>H(m)(!0))},{default:re(()=>[w(U)]),_:1},8,["checked"])),[[oe,"格式刷(双击连续使用)"]])]),_:1}),w(Ut),w(_a,{class:"row","button-style":"solid",value:H(i).align,"onUpdate:value":k[19]||(k[19]=me=>M("align",me))},{default:re(()=>[De((Y(),we(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(Z)]),_:1})),[[oe,"左对齐"]]),De((Y(),we(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(B)]),_:1})),[[oe,"居中"]]),De((Y(),we(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w(G)]),_:1})),[[oe,"右对齐"]])]),_:1},8,["value"]),w(_a,{class:"row","button-style":"solid",value:h.value,"onUpdate:value":k[20]||(k[20]=me=>L(me))},{default:re(()=>[De((Y(),we(Nn,{value:"top",style:{flex:"1"}},{default:re(()=>[w(Q)]),_:1})),[[oe,"顶对齐"]]),De((Y(),we(Nn,{value:"middle",style:{flex:"1"}},{default:re(()=>[w(ie)]),_:1})),[[oe,"居中"]]),De((Y(),we(Nn,{value:"bottom",style:{flex:"1"}},{default:re(()=>[w(q)]),_:1})),[[oe,"底对齐"]])]),_:1},8,["value"]),w(Ut)],64)):Be("",!0),w(Hp),w(Ut),w(g2),w(Ut),w(d_),w(Ut),V("div",zve,[De((Y(),we(Qn,{style:{flex:"1"},checked:!!H(c),onClick:k[21]||(k[21]=me=>H(A)()),onDblclick:k[22]||(k[22]=me=>H(A)(!0))},{default:re(()=>[w(U),We(" 形状格式刷")]),_:1},8,["checked"])),[[oe,"双击连续使用"]])])])}}}),$ve=Ue(Jve,[["__scopeId","data-v-830d0c7f"]]),Jp=e=>(on("data-v-d5f2e330"),e=e(),an(),e),jve={class:"line-style-panel"},qve={class:"row"},ege=Jp(()=>V("div",{style:{width:"40%"}},"线条样式:",-1)),tge={class:"row"},nge=Jp(()=>V("div",{style:{width:"40%"}},"线条颜色:",-1)),rge={class:"row"},oge=Jp(()=>V("div",{style:{width:"40%"}},"线条宽度:",-1)),ige={class:"row"},age=Jp(()=>V("div",{style:{width:"40%"}},"起点样式:",-1)),sge={class:"row"},lge=Jp(()=>V("div",{style:{width:"40%"}},"终点样式:",-1)),cge=Fe({__name:"LineStylePanel",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=n,{addHistorySnapshot:o}=zt(),i=a=>{n.value&&(t.updateElement({id:n.value.id,props:a}),o())};return(a,s)=>(Y(),ee("div",jve,[V("div",qve,[ege,w(Zn,{style:{width:"60%"},value:H(r).style,"onUpdate:value":s[0]||(s[0]=c=>i({style:c})),options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"}]},null,8,["value"])]),V("div",tge,[nge,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(r).color,"onUpdate:modelValue":s[1]||(s[1]=c=>i({color:c}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(r).color},null,8,["color"])]),_:1})]),V("div",rge,[oge,w(Li,{value:H(r).width,"onUpdate:value":s[2]||(s[2]=c=>i({width:c})),style:{width:"60%"}},null,8,["value"])]),V("div",ige,[age,w(Zn,{style:{width:"60%"},value:H(r).points[0],"onUpdate:value":s[3]||(s[3]=c=>i({points:[c,H(r).points[1]]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),V("div",sge,[lge,w(Zn,{style:{width:"60%"},value:H(r).points[1],"onUpdate:value":s[4]||(s[4]=c=>i({points:[H(r).points[0],c]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),w(Ut),w(g2)]))}}),uge=Ue(cge,[["__scopeId","data-v-d5f2e330"]]),fge={class:"chart-data-editor"},dge={class:"editor-content"},hge={class:"range-box"},pge=["id","onFocus","onPaste"],mge={class:"btns"},vge={class:"left"},gge={class:"right"},Tl=100,kl=32,Age=Fe({__name:"ChartDataEditor",props:{data:{}},emits:["save","close"],setup(e,{emit:t}){const n=e,r=t,o=pe([0,0]),i=pe({width:0,height:0}),a=pe(null),s=Me(()=>{const x=o.value[0]*Tl,R=o.value[1]*kl;return[{type:"t",style:{width:x+"px"}},{type:"b",style:{top:R+"px",width:x+"px"}},{type:"l",style:{height:R+"px"}},{type:"r",style:{left:x+"px",height:R+"px"}}]}),c=Me(()=>{const x=o.value[0]*Tl,R=o.value[1]*kl;return{left:x+"px",top:R+"px"}});Gt(()=>{const x=[],{labels:R,legends:y,series:g}=n.data,S=R.length,L=g.length;x.push(["",...y]);for(let T=0;T{if(!a.value)return;const[x,R]=a.value,y=document.querySelector(`#cell-${x+1}-${R}`);y&&y.focus()},f=x=>{x.key.toUpperCase()===yt.ENTER&&u()};Gt(()=>{document.addEventListener("keydown",f)}),On(()=>{document.removeEventListener("keydown",f)});const d=()=>{const[x,R]=o.value,y=[],g=[],S=[];for(let L=1;L{for(let x=1;x<31;x++)for(let R=1;R<7;R++){const y=document.querySelector(`#cell-${x}-${R}`);y&&(y.value="")}},p=(x,R,y)=>{if(x.preventDefault(),!x.clipboardData)return;const g=x.clipboardData.items[0];g&&g.kind==="string"&&g.type==="text/plain"&&g.getAsString(S=>{if(typeof Ob(S)=="object")return;const T=GP(S);if(T){const M=R+T.length,O=y+T[0].length;for(let k=R;kr("close"),A=x=>{let R=!0;const y=x.pageX,g=x.pageY,S=o.value[0]*Tl,L=o.value[1]*kl;document.onmousemove=T=>{if(!R)return;const M=T.pageX,O=T.pageY,k=M-y,F=O-g,N=S+k,E=L+F;i.value={width:N,height:E}},document.onmouseup=T=>{R=!1,document.onmousemove=null,document.onmouseup=null;const M=T.pageX,O=T.pageY;if(y===M&&g===O)return;let k=i.value.width,F=i.value.height;k%Tl>Tl*.5&&(k=k+(Tl-k%Tl)),F%kl>kl*.5&&(F=F+(kl-F%kl));let N=Math.round(F/kl),E=Math.round(k/Tl);N<3&&(N=3),E<2&&(E=2),o.value=[E,N],i.value={width:0,height:0}}};return(x,R)=>(Y(),ee("div",fge,[V("div",dge,[V("div",hge,[V("div",{class:"temp-range",style:Le({width:i.value.width+"px",height:i.value.height+"px"})},null,4),(Y(!0),ee(Ve,null,it(s.value,y=>(Y(),ee("div",{class:$e(["range-line",y.type]),key:y.type,style:Le(y.style)},null,6))),128)),V("div",{class:"resizable",style:Le(c.value),onMousedown:R[0]||(R[0]=Wt(y=>A(y),["stop"]))},null,36)]),V("table",null,[V("tbody",null,[(Y(),ee(Ve,null,it(31,y=>V("tr",{key:y},[(Y(),ee(Ve,null,it(7,g=>V("td",{key:g,class:$e({head:g===1&&y<=o.value[1]||y===1&&g<=o.value[0]})},[V("input",{class:$e(["item",{selected:y<=o.value[1]&&g<=o.value[0]}]),id:`cell-${y-1}-${g-1}`,autocomplete:"off",onFocus:S=>a.value=[y-1,g-1],onPaste:S=>p(S,y-1,g-1)},null,42,pge)],2)),64))])),64))])])]),V("div",mge,[V("div",vge,[w(et,{class:"btn",onClick:R[1]||(R[1]=y=>h())},{default:re(()=>[We("清空")]),_:1})]),V("div",gge,[w(et,{class:"btn",onClick:R[2]||(R[2]=y=>m())},{default:re(()=>[We("取消")]),_:1}),w(et,{type:"primary",class:"btn",onClick:R[3]||(R[3]=y=>d()),style:{"margin-left":"10px"}},{default:re(()=>[We("确认")]),_:1})])])]))}}),Rge=Ue(Age,[["__scopeId","data-v-ac578a4f"]]),b_=e=>(on("data-v-3d20c849"),e=e(),an(),e),yge=b_(()=>V("span",{class:"checkbox-input"},null,-1)),xge=b_(()=>V("input",{class:"checkbox-original",type:"checkbox"},null,-1)),bge={class:"checkbox-label"},Sge=Fe({__name:"Checkbox",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=i=>{n.disabled||r("update:value",i.target.checked)};return(i,a)=>(Y(),ee("label",{class:$e(["checkbox",{checked:i.value,disabled:i.disabled}]),onChange:a[0]||(a[0]=s=>o(s))},[yge,xge,V("span",bge,[cr(i.$slots,"default",{},void 0,!0)])],34))}}),qa=Ue(Sge,[["__scopeId","data-v-3d20c849"]]),E5=e=>(on("data-v-63098034"),e=e(),an(),e),Mge={class:"chart-style-panel"},wge={class:"row"},Lge={class:"row"},Oge={key:1,class:"row"},Tge={key:2,class:"row"},kge={class:"row"},Nge=E5(()=>V("div",{style:{width:"40%"}},"图例:",-1)),Pge={class:"row"},Cge=E5(()=>V("div",{style:{width:"40%"}},"背景填充:",-1)),Ige={class:"row"},Fge=E5(()=>V("div",{style:{width:"40%"}},"网格颜色:",-1)),_ge={style:{width:"40%"}},Ege={class:"color-btn-wrap",style:{width:"100%"}},Xge=["onClick"],Wge={class:"preset-themes"},Vge=["onClick","onMouseenter"],Uge=Fe({__name:"index",setup(e){const t=[["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d"],["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78"],["#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],["#893448","#d95850","#eb8146","#ffb248","#f2d643","#ebdba4"],["#4ea397","#22c3aa","#7bd9a5","#d0648a","#f58db2","#f2b3c9"],["#3fb1e3","#6be6c1","#626c91","#a0a7e6","#c4ebad","#96dee8"],["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb"],["#c1232b","#27727b","#fcce10","#e87c25","#b5c334","#fe8463"],["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3"],["#e01f54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2"],["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8"],["#8a7ca8","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc"]],n=ft(),r=ct(),{handleElement:o,handleElementId:i}=Xe(n),{theme:a}=Xe(r),s=o,c=pe(!1),l=pe(!1),u=pe([-1,-1]),{addHistorySnapshot:f}=zt(),d=pe("#000"),h=pe([]),p=pe(""),m=pe(""),A=pe(!0),x=pe(!0),R=pe(!1),y=pe(!1),g=pe(!1),S=pe(!1);Tt(o,()=>{if(!(!o.value||o.value.type!=="chart")){if(d.value=o.value.fill||"#fff",o.value.options){const{lineSmooth:W,showLine:D,showArea:z,horizontalBars:ae,donut:U,stackBars:Z}=o.value.options;A.value=!!W,x.value=!!D,R.value=!!z,y.value=!!ae,g.value=!!U,S.value=!!Z}h.value=o.value.themeColor,p.value=o.value.gridColor||"#333",m.value=o.value.legend||""}},{deep:!0,immediate:!0});const L=W=>{r.updateElement({id:i.value,props:W}),f()},T=W=>{c.value=!1,L({data:W})},M=W=>{L({fill:W})},O=W=>{const z={...o.value.options,...W};L({options:z})},k=(W,D)=>{const z={themeColor:h.value.map((ae,U)=>U===D?W:ae)};L(z)},F=()=>{const W={themeColor:[...h.value,a.value.themeColor]};L(W)},N=(W,D)=>{const z=W.slice(0,D+1);L({themeColor:z}),l.value=!1},E=W=>{const D={themeColor:h.value.filter((z,ae)=>ae!==W)};L(D)},P=W=>{L({gridColor:W})},_=W=>{L({legend:W})},I=()=>c.value=!0;return Zr.on(Wr.OPEN_CHART_DATA_EDITOR,I),On(()=>{Zr.off(Wr.OPEN_CHART_DATA_EDITOR,I)}),(W,D)=>{const z=xe("IconEdit"),ae=xe("IconCloseSmall"),U=xe("IconPlus"),Z=Mn("tooltip");return Y(),ee("div",Mge,[w(et,{class:"full-width-btn",onClick:D[0]||(D[0]=B=>c.value=!0)},{default:re(()=>[w(z,{class:"btn-icon"}),We(" 编辑图表数据 ")]),_:1}),w(Ut),H(s).chartType==="line"?(Y(),ee(Ve,{key:0},[V("div",wge,[w(qa,{"onUpdate:value":D[1]||(D[1]=B=>O({showArea:B})),value:R.value,style:{flex:"1"}},{default:re(()=>[We("面积图样式")]),_:1},8,["value"]),w(qa,{"onUpdate:value":D[2]||(D[2]=B=>O({showLine:B})),value:!x.value,style:{flex:"1"}},{default:re(()=>[We("散点图样式")]),_:1},8,["value"])]),V("div",Lge,[w(qa,{"onUpdate:value":D[3]||(D[3]=B=>O({lineSmooth:B})),value:A.value},{default:re(()=>[We("使用平滑曲线")]),_:1},8,["value"])])],64)):Be("",!0),H(s).chartType==="bar"?(Y(),ee("div",Oge,[w(qa,{"onUpdate:value":D[4]||(D[4]=B=>O({horizontalBars:B})),value:y.value,style:{flex:"1"}},{default:re(()=>[We("条形图样式")]),_:1},8,["value"]),w(qa,{"onUpdate:value":D[5]||(D[5]=B=>O({stackBars:B})),value:S.value,style:{flex:"1"}},{default:re(()=>[We("堆叠样式")]),_:1},8,["value"])])):Be("",!0),H(s).chartType==="pie"?(Y(),ee("div",Tge,[w(qa,{"onUpdate:value":D[6]||(D[6]=B=>O({donut:B})),value:g.value},{default:re(()=>[We("环形图样式")]),_:1},8,["value"])])):Be("",!0),w(Ut),V("div",kge,[Nge,w(Zn,{style:{width:"60%"},value:m.value,"onUpdate:value":D[7]||(D[7]=B=>_(B)),options:[{label:"不显示",value:""},{label:"显示在上方",value:"top"},{label:"显示在下方",value:"bottom"}]},null,8,["value"])]),w(Ut),V("div",Pge,[Cge,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:d.value,"onUpdate:modelValue":D[8]||(D[8]=B=>M(B))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:d.value},null,8,["color"])]),_:1})]),V("div",Ige,[Fge,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:p.value,"onUpdate:modelValue":D[9]||(D[9]=B=>P(B))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:p.value},null,8,["color"])]),_:1})]),w(Ut),(Y(!0),ee(Ve,null,it(h.value,(B,G)=>(Y(),ee("div",{class:"row",key:G},[V("div",_ge,gt(G===0?"主题配色:":""),1),w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:B,"onUpdate:modelValue":Q=>k(Q,G)},null,8,["modelValue","onUpdate:modelValue"])]),default:re(()=>[V("div",Ege,[w(ir,{color:B},null,8,["color"]),G!==0?De((Y(),ee("div",{key:0,class:"delete-color-btn",onClick:Wt(Q=>E(G),["stop"])},[w(ae)],8,Xge)),[[Z,"删除"]]):Be("",!0)])]),_:2},1024)]))),128)),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",open:l.value,"onUpdate:open":D[11]||(D[11]=B=>l.value=B),style:{width:"40%"}},{content:re(()=>[V("div",Wge,[(Y(),ee(Ve,null,it(t,(B,G)=>V("div",{class:"preset-theme",key:G},[(Y(!0),ee(Ve,null,it(B,(Q,ie)=>(Y(),ee("div",{class:$e(["preset-theme-color",{select:u.value[0]===G&&ie<=u.value[1]}]),key:Q,style:Le({backgroundColor:Q}),onClick:q=>N(B,ie),onMouseenter:q=>u.value=[G,ie],onMouseleave:D[10]||(D[10]=q=>u.value=[-1,-1])},null,46,Vge))),128))])),64))])]),default:re(()=>[w(et,{first:"",style:{width:"100%"}},{default:re(()=>[We("推荐主题")]),_:1})]),_:1},8,["open"]),w(et,{last:"",disabled:h.value.length>=10,style:{width:"60%"},onClick:D[12]||(D[12]=B=>F())},{default:re(()=>[w(U,{class:"btn-icon"}),We(" 添加主题色 ")]),_:1},8,["disabled"])]),_:1}),w(Ut),w(Hp),w(Zp,{visible:c.value,"onUpdate:visible":D[15]||(D[15]=B=>c.value=B),width:640},{default:re(()=>[w(Rge,{data:H(s).data,onClose:D[13]||(D[13]=B=>c.value=!1),onSave:D[14]||(D[14]=B=>T(B))},null,8,["data"])]),_:1},8,["visible"])])}}}),Yge=Ue(Uge,[["__scopeId","data-v-63098034"]]),R2=e=>(on("data-v-adc75d19"),e=e(),an(),e),Qge={class:"table-style-panel"},Zge={class:"row"},Bge=R2(()=>V("div",{style:{width:"40%"}},"行数:",-1)),Dge={class:"set-count",style:{width:"60%"}},Kge={class:"count-text"},Hge={class:"row"},Gge=R2(()=>V("div",{style:{width:"40%"}},"列数:",-1)),zge={class:"set-count",style:{width:"60%"}},Jge={class:"count-text"},$ge={class:"row theme-switch"},jge=R2(()=>V("div",{style:{width:"40%"}},"启用主题表格:",-1)),qge={class:"switch-wrapper",style:{width:"60%"}},e2e={class:"row"},t2e={class:"row"},n2e={class:"row"},r2e=R2(()=>V("div",{style:{width:"40%"}},"主题颜色:",-1)),o2e=Fe({__name:"TableStylePanel",setup(e){const t=ct(),{handleElement:n,handleElementId:r,selectedTableCells:o,availableFonts:i}=Xe(ft()),a=Me(()=>t.theme.themeColor),s=["12px","14px","16px","18px","20px","22px","24px","28px","32px"],c=pe({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"12px",fontname:"微软雅黑",align:"left"}),l=pe(),u=pe(!1),f=pe(0),d=pe(0),h=pe(0),p=pe(0);Tt(n,()=>{!n.value||n.value.type!=="table"||(l.value=n.value.theme,u.value=!!l.value,f.value=n.value.data.length,d.value=n.value.data[0].length,h.value=n.value.data.length,p.value=n.value.data[0].length)},{deep:!0,immediate:!0});const{addHistorySnapshot:m}=zt(),A=()=>{if(!n.value||n.value.type!=="table")return;let T=0,M=0;if(o.value.length){const k=o.value[0];T=+k.split("_")[0],M=+k.split("_")[1]}const O=n.value.data[T][M].style;O?c.value={bold:!!O.bold,em:!!O.em,underline:!!O.underline,strikethrough:!!O.strikethrough,color:O.color||"#000",backcolor:O.backcolor||"",fontsize:O.fontsize||"12px",fontname:O.fontname||"微软雅黑",align:O.align||"left"}:c.value={bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"12px",fontname:"微软雅黑",align:"left"}};Gt(()=>{o.value.length&&A()}),Tt(o,A);const x=T=>{t.updateElement({id:r.value,props:T}),m()},R=T=>{const M=n.value,O=JSON.parse(JSON.stringify(M.data));for(let k=0;k{if(!l.value)return;const M={...l.value,...T};x({theme:M})},g=T=>{if(T){const M={theme:{color:a.value,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}};x(M)}else t.removeElementProps({id:r.value,propName:"theme"}),m()},S=T=>{const M=n.value,O=M.data.length;if(T>O){const k=new Array(d.value).fill({id:pn(10),colspan:1,rowspan:1,text:""}),F=new Array(T-O).fill(k),N=JSON.parse(JSON.stringify(M.data));N.push(...F),x({data:N})}else{const k=M.data.slice(0,T);x({data:k})}},L=T=>{const M=n.value,O=M.data[0].length;let k=M.data,F=M.colWidths.map(_=>_*M.width);if(T>O){k=k.map(I=>{const W=new Array(T-O).fill({id:pn(10),colspan:1,rowspan:1,text:""});return I.push(...W),I});const _=new Array(T-O).fill(100);F.push(..._)}else k=k.map(_=>_.slice(0,T)),F=F.slice(0,T);const N=F.reduce((_,I)=>_+I),E=F.map(_=>_/N);x({width:N,data:k,colWidths:E})};return(T,M)=>{const O=xe("IconFontSize"),k=xe("IconAddText"),F=xe("IconText"),N=xe("IconFill"),E=xe("IconTextBold"),P=xe("IconTextItalic"),_=xe("IconTextUnderline"),I=xe("IconStrikethrough"),W=xe("IconAlignTextLeft"),D=xe("IconAlignTextCenter"),z=xe("IconAlignTextRight"),ae=xe("IconMinus"),U=xe("IconPlus"),Z=Mn("tooltip");return Y(),ee("div",Qge,[w(A2,{class:"row"},{default:re(()=>[w(Zn,{style:{width:"50%"},value:c.value.fontname,"onUpdate:value":M[0]||(M[0]=B=>R({fontname:B})),options:[...H(i),...H(bp)]},{icon:re(()=>[w(O)]),_:1},8,["value","options"]),w(Zn,{style:{width:"50%"},value:c.value.fontsize,"onUpdate:value":M[1]||(M[1]=B=>R({fontsize:B})),options:s.map(B=>({label:B,value:B}))},{icon:re(()=>[w(k)]),_:1},8,["value","options"])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",style:{width:"50%"}},{content:re(()=>[w(Ln,{modelValue:c.value.color,"onUpdate:modelValue":M[2]||(M[2]=B=>R({color:B}))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{first:"",color:c.value.color},{default:re(()=>[w(F)]),_:1},8,["color"])),[[Z,"文字颜色"]])]),_:1}),w(kt,{trigger:"click",style:{width:"50%"}},{content:re(()=>[w(Ln,{modelValue:c.value.backcolor,"onUpdate:modelValue":M[3]||(M[3]=B=>R({backcolor:B}))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{last:"",color:c.value.backcolor},{default:re(()=>[w(N)]),_:1},8,["color"])),[[Z,"单元格填充"]])]),_:1})]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(Qn,{style:{flex:"1"},checked:c.value.bold,onClick:M[4]||(M[4]=B=>R({bold:!c.value.bold}))},{default:re(()=>[w(E)]),_:1},8,["checked"])),[[Z,"加粗"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:c.value.em,onClick:M[5]||(M[5]=B=>R({em:!c.value.em}))},{default:re(()=>[w(P)]),_:1},8,["checked"])),[[Z,"斜体"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:c.value.underline,onClick:M[6]||(M[6]=B=>R({underline:!c.value.underline}))},{default:re(()=>[w(_)]),_:1},8,["checked"])),[[Z,"下划线"]]),De((Y(),we(Qn,{style:{flex:"1"},checked:c.value.strikethrough,onClick:M[7]||(M[7]=B=>R({strikethrough:!c.value.strikethrough}))},{default:re(()=>[w(I)]),_:1},8,["checked"])),[[Z,"删除线"]])]),_:1}),w(_a,{class:"row","button-style":"solid",value:c.value.align,"onUpdate:value":M[8]||(M[8]=B=>R({align:B}))},{default:re(()=>[De((Y(),we(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(W)]),_:1})),[[Z,"左对齐"]]),De((Y(),we(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(D)]),_:1})),[[Z,"居中"]]),De((Y(),we(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w(z)]),_:1})),[[Z,"右对齐"]])]),_:1},8,["value"]),w(Ut),w(Hp,{fixed:!0}),w(Ut),V("div",Zge,[Bge,V("div",Dge,[w(et,{class:"btn",disabled:f.value<=1,onClick:M[9]||(M[9]=B=>S(f.value-1))},{default:re(()=>[w(ae)]),_:1},8,["disabled"]),V("div",Kge,gt(f.value),1),w(et,{class:"btn",disabled:f.value>=30,onClick:M[10]||(M[10]=B=>S(f.value+1))},{default:re(()=>[w(U)]),_:1},8,["disabled"])])]),V("div",Hge,[Gge,V("div",zge,[w(et,{class:"btn",disabled:d.value<=1,onClick:M[11]||(M[11]=B=>L(d.value-1))},{default:re(()=>[w(ae)]),_:1},8,["disabled"]),V("div",Jge,gt(d.value),1),w(et,{class:"btn",disabled:d.value>=30,onClick:M[12]||(M[12]=B=>L(d.value+1))},{default:re(()=>[w(U)]),_:1},8,["disabled"])])]),w(Ut),V("div",$ge,[jge,V("div",qge,[w(oa,{value:u.value,"onUpdate:value":M[13]||(M[13]=B=>g(B))},null,8,["value"])])]),l.value?(Y(),ee(Ve,{key:0},[V("div",e2e,[w(qa,{"onUpdate:value":M[14]||(M[14]=B=>y({rowHeader:B})),value:l.value.rowHeader,style:{flex:"1"}},{default:re(()=>[We("标题行")]),_:1},8,["value"]),w(qa,{"onUpdate:value":M[15]||(M[15]=B=>y({rowFooter:B})),value:l.value.rowFooter,style:{flex:"1"}},{default:re(()=>[We("汇总行")]),_:1},8,["value"])]),V("div",t2e,[w(qa,{"onUpdate:value":M[16]||(M[16]=B=>y({colHeader:B})),value:l.value.colHeader,style:{flex:"1"}},{default:re(()=>[We("第一列")]),_:1},8,["value"]),w(qa,{"onUpdate:value":M[17]||(M[17]=B=>y({colFooter:B})),value:l.value.colFooter,style:{flex:"1"}},{default:re(()=>[We("最后一列")]),_:1},8,["value"])]),V("div",n2e,[r2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:l.value.color,"onUpdate:modelValue":M[18]||(M[18]=B=>y({color:B}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:l.value.color},null,8,["color"])]),_:1})])],64)):Be("",!0)])}}}),i2e=Ue(o2e,[["__scopeId","data-v-adc75d19"]]),S_=e=>(on("data-v-6b6e110e"),e=e(),an(),e),a2e={class:"latex-style-panel"},s2e={class:"row"},l2e={class:"row"},c2e=S_(()=>V("div",{style:{width:"40%"}},"颜色:",-1)),u2e={class:"row"},f2e=S_(()=>V("div",{style:{width:"40%"}},"粗细:",-1)),d2e=Fe({__name:"LatexStylePanel",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=n,o=pe(!1),{addHistorySnapshot:i}=zt(),a=l=>{n.value&&(t.updateElement({id:n.value.id,props:l}),i())},s=l=>{a({path:l.path,latex:l.latex,width:l.w,height:l.h,viewBox:[l.w,l.h]})},c=()=>o.value=!0;return Zr.on(Wr.OPEN_LATEX_EDITOR,c),On(()=>{Zr.off(Wr.OPEN_LATEX_EDITOR,c)}),(l,u)=>(Y(),ee("div",a2e,[V("div",s2e,[w(et,{style:{flex:"1"},onClick:u[0]||(u[0]=f=>o.value=!0)},{default:re(()=>[We("编辑 LaTeX")]),_:1})]),w(Ut),V("div",l2e,[c2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(r).color,"onUpdate:modelValue":u[1]||(u[1]=f=>a({color:f}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(r).color},null,8,["color"])]),_:1})]),V("div",u2e,[f2e,w(Li,{min:1,max:3,value:H(r).strokeWidth,"onUpdate:value":u[2]||(u[2]=f=>a({strokeWidth:f})),style:{width:"60%"}},null,8,["value"])]),w(Zp,{visible:o.value,"onUpdate:visible":u[5]||(u[5]=f=>o.value=f),width:880},{default:re(()=>[w(JF,{value:H(r).latex,onClose:u[3]||(u[3]=f=>o.value=!1),onUpdate:u[4]||(u[4]=f=>{s(f),o.value=!1})},null,8,["value"])]),_:1},8,["visible"])]))}}),h2e=Ue(d2e,[["__scopeId","data-v-6b6e110e"]]),M_=e=>(on("data-v-b289959e"),e=e(),an(),e),p2e={class:"video-style-panel"},m2e=M_(()=>V("div",{class:"title"},"视频预览封面",-1)),v2e={class:"background-image-wrapper"},g2e={class:"background-image"},A2e={class:"row"},R2e={class:"row switch-row"},y2e=M_(()=>V("div",{style:{width:"40%"}},"自动播放:",-1)),x2e={class:"switch-wrapper",style:{width:"60%"}},b2e=Fe({__name:"VideoStylePanel",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=n,{addHistorySnapshot:o}=zt(),i=s=>{n.value&&(t.updateElement({id:n.value.id,props:s}),o())},a=s=>{const c=s[0];c&&zu(c).then(l=>i({poster:l}))};return(s,c)=>{const l=xe("IconPlus");return Y(),ee("div",p2e,[m2e,V("div",v2e,[w(Eu,{onChange:c[0]||(c[0]=u=>a(u))},{default:re(()=>[V("div",g2e,[V("div",{class:"content",style:Le({backgroundImage:H(r).poster?`url(${H(r).poster})`:""})},[w(l)],4)])]),_:1})]),V("div",A2e,[w(et,{style:{flex:"1"},onClick:c[1]||(c[1]=u=>i({poster:""}))},{default:re(()=>[We("重置封面")]),_:1})]),V("div",R2e,[y2e,V("div",x2e,[w(oa,{value:H(r).autoplay,"onUpdate:value":c[2]||(c[2]=u=>i({autoplay:u}))},null,8,["value"])])])])}}}),S2e=Ue(b2e,[["__scopeId","data-v-b289959e"]]),X5=e=>(on("data-v-44ce0855"),e=e(),an(),e),M2e={class:"audio-style-panel"},w2e={class:"row"},L2e=X5(()=>V("div",{style:{width:"40%"}},"图标颜色:",-1)),O2e={class:"row switch-row"},T2e=X5(()=>V("div",{style:{width:"40%"}},"自动播放:",-1)),k2e={class:"switch-wrapper",style:{width:"60%"}},N2e={class:"row switch-row"},P2e=X5(()=>V("div",{style:{width:"40%"}},"循环播放:",-1)),C2e={class:"switch-wrapper",style:{width:"60%"}},I2e=Fe({__name:"AudioStylePanel",setup(e){const t=ct(),{handleElement:n}=Xe(ft()),r=n,{addHistorySnapshot:o}=zt(),i=a=>{n.value&&(t.updateElement({id:n.value.id,props:a}),o())};return(a,s)=>(Y(),ee("div",M2e,[V("div",w2e,[L2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(r).color,"onUpdate:modelValue":s[0]||(s[0]=c=>i({color:c}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(r).color},null,8,["color"])]),_:1})]),V("div",O2e,[T2e,V("div",k2e,[w(oa,{value:H(r).autoplay,"onUpdate:value":s[1]||(s[1]=c=>i({autoplay:c}))},null,8,["value"])])]),V("div",N2e,[P2e,V("div",C2e,[w(oa,{value:H(r).loop,"onUpdate:value":s[2]||(s[2]=c=>i({loop:c}))},null,8,["value"])])])]))}}),F2e=Ue(I2e,[["__scopeId","data-v-44ce0855"]]),y2=e=>(on("data-v-a267c062"),e=e(),an(),e),_2e={class:"multi-style-panel"},E2e={class:"row"},X2e=y2(()=>V("div",{style:{width:"40%"}},"填充颜色:",-1)),W2e={class:"row"},V2e=y2(()=>V("div",{style:{width:"40%"}},"边框样式:",-1)),U2e={class:"row"},Y2e=y2(()=>V("div",{style:{width:"40%"}},"边框颜色:",-1)),Q2e={class:"row"},Z2e=y2(()=>V("div",{style:{width:"40%"}},"边框粗细:",-1)),B2e=Fe({__name:"MultiStylePanel",setup(e){const t=ct(),{richTextAttrs:n,availableFonts:r,activeElementList:o}=Xe(ft()),{addHistorySnapshot:i}=zt(),a=(h,p)=>{t.updateElement({id:h,props:p}),i()},s=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],c=pe("#fff"),l=pe({width:0,color:"#fff",style:"solid"}),u=h=>{for(const p of o.value){if((p.type==="text"||p.type==="shape"||p.type==="chart")&&a(p.id,{fill:h}),p.type==="table"){const m=JSON.parse(JSON.stringify(p.data));for(let A=0;A{for(const p of o.value){if(p.type==="text"||p.type==="image"||p.type==="shape"||p.type==="table"||p.type==="chart"){const A={outline:{...p.outline||{width:2,color:"#000",style:"solid"},...h}};a(p.id,A)}p.type==="line"&&a(p.id,h)}l.value={...l.value,...h}},d=(h,p)=>{var m;for(const A of o.value){if((A.type==="text"||A.type==="shape"&&((m=A.text)!=null&&m.content))&&Zr.emit(Wr.RICH_TEXT_COMMAND,{target:A.id,action:{command:h,value:p}}),A.type==="table"){const x=JSON.parse(JSON.stringify(A.data));for(let R=0;R{const m=xe("IconFontSize"),A=xe("IconAddText"),x=xe("IconText"),R=xe("IconHighLight"),y=xe("IconAlignTextLeft"),g=xe("IconAlignTextCenter"),S=xe("IconAlignTextRight"),L=Mn("tooltip");return Y(),ee("div",_2e,[V("div",E2e,[X2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:c.value,"onUpdate:modelValue":p[0]||(p[0]=T=>u(T))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:c.value},null,8,["color"])]),_:1})]),w(Ut),V("div",W2e,[V2e,w(Zn,{style:{width:"60%"},value:l.value.style||"","onUpdate:value":p[1]||(p[1]=T=>f({style:T})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"}]},null,8,["value"])]),V("div",U2e,[Y2e,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:l.value.color,"onUpdate:modelValue":p[2]||(p[2]=T=>f({color:T}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:l.value.color||"#000"},null,8,["color"])]),_:1})]),V("div",Q2e,[Z2e,w(Li,{value:l.value.width||0,"onUpdate:value":p[3]||(p[3]=T=>f({width:T})),style:{width:"60%"}},null,8,["value"])]),w(Ut),w(A2,{class:"row"},{default:re(()=>[w(Zn,{style:{width:"60%"},value:H(n).fontname,"onUpdate:value":p[4]||(p[4]=T=>d("fontname",T)),options:[...H(r),...H(bp)]},{icon:re(()=>[w(m)]),_:1},8,["value","options"]),w(Zn,{style:{width:"40%"},value:H(n).fontsize,"onUpdate:value":p[5]||(p[5]=T=>d("fontsize",T)),options:s.map(T=>({label:T,value:T}))},{icon:re(()=>[w(A)]),_:1},8,["value","options"])]),_:1}),w(xn,{class:"row",passive:""},{default:re(()=>[w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(n).color,"onUpdate:modelValue":p[6]||(p[6]=T=>d("color",T))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{first:"",color:H(n).color},{default:re(()=>[w(x)]),_:1},8,["color"])),[[L,"文字颜色"]])]),_:1}),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>[w(Ln,{modelValue:H(n).backcolor,"onUpdate:modelValue":p[7]||(p[7]=T=>d("backcolor",T))},null,8,["modelValue"])]),default:re(()=>[De((Y(),we(xc,{color:H(n).backcolor},{default:re(()=>[w(R)]),_:1},8,["color"])),[[L,"文字高亮"]])]),_:1}),De((Y(),we(et,{class:"font-size-btn",style:{width:"20%"},onClick:p[8]||(p[8]=T=>d("fontsize-add","2"))},{default:re(()=>[w(m),We("+")]),_:1})),[[L,"增大字号"]]),De((Y(),we(et,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:p[9]||(p[9]=T=>d("fontsize-reduce","2"))},{default:re(()=>[w(m),We("-")]),_:1})),[[L,"减小字号"]])]),_:1}),w(_a,{class:"row","button-style":"solid",value:H(n).align,"onUpdate:value":p[10]||(p[10]=T=>d("align",T))},{default:re(()=>[De((Y(),we(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(y)]),_:1})),[[L,"左对齐"]]),De((Y(),we(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(g)]),_:1})),[[L,"居中"]]),De((Y(),we(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w(S)]),_:1})),[[L,"右对齐"]])]),_:1},8,["value"])])}}}),D2e=Ue(B2e,[["__scopeId","data-v-a267c062"]]),K2e={class:"element-style-panel"},H2e=Fe({__name:"index",setup(e){const t={[Nt.TEXT]:ave,[Nt.IMAGE]:Fve,[Nt.SHAPE]:$ve,[Nt.LINE]:uge,[Nt.CHART]:Yge,[Nt.TABLE]:i2e,[Nt.LATEX]:h2e,[Nt.VIDEO]:S2e,[Nt.AUDIO]:F2e},{activeElementIdList:n,activeElementList:r,handleElement:o,activeGroupElementId:i}=Xe(ft()),a=Me(()=>{if(n.value.length>1){if(!i.value)return D2e;const s=r.value.find(c=>c.id===i.value);return s&&t[s.type]||null}return o.value&&t[o.value.type]||null});return(s,c)=>(Y(),ee("div",K2e,[(Y(),we(xs(a.value)))]))}}),x2=e=>(on("data-v-6bb316f9"),e=e(),an(),e),G2e={class:"element-positopn-panel"},z2e=x2(()=>V("div",{class:"title"},"层级:",-1)),J2e=x2(()=>V("div",{class:"title"},"对齐:",-1)),$2e={class:"row"},j2e=x2(()=>V("div",{style:{width:"10%"}},null,-1)),q2e={key:0,class:"row"},eAe={key:1,style:{width:"10%"}},tAe={class:"row"},nAe=x2(()=>V("div",{style:{width:"7%"}},null,-1)),rAe=Fe({__name:"ElementPositionPanel",setup(e){const t=ct(),{handleElement:n,handleElementId:r}=Xe(ft()),o=pe(0),i=pe(0),a=pe(0),s=pe(0),c=pe(0),l=pe(!1),u=Me(()=>n.value&&dI[n.value.type]||20),f=Me(()=>{var M;return((M=n.value)==null?void 0:M.type)==="text"&&!n.value.vertical}),d=Me(()=>{var M;return((M=n.value)==null?void 0:M.type)==="text"&&n.value.vertical});Tt(n,()=>{n.value&&(o.value=_n.round(n.value.left,1),i.value=_n.round(n.value.top,1),l.value="fixedRatio"in n.value&&!!n.value.fixedRatio,n.value.type!=="line"&&(a.value=_n.round(n.value.width,1),s.value=_n.round(n.value.height,1),c.value="rotate"in n.value&&n.value.rotate!==void 0?_n.round(n.value.rotate,1):0))},{deep:!0,immediate:!0});const{orderElement:h}=Np(),{alignElementToCanvas:p}=a2(),{addHistorySnapshot:m}=zt(),A=M=>{const O={left:M};t.updateElement({id:r.value,props:O}),m()},x=M=>{const O={top:M};t.updateElement({id:r.value,props:O}),m()},R=(M,O)=>{if(n.value&&n.value.type==="shape"&&"pathFormula"in n.value&&n.value.pathFormula){const k=Ju[n.value.pathFormula];let F="";return"editable"in k?F=k.formula(M,O,n.value.keypoint):F=k.formula(M,O),{viewBox:[M,O],path:F}}return null},y=M=>{let O=s.value;if(l.value){const N=a.value/s.value;O=M/N{let O=a.value;if(l.value){const N=a.value/s.value;O=M*N{const O={rotate:M};t.updateElement({id:r.value,props:O}),m()},L=M=>{const O={fixedRatio:M};t.updateElement({id:r.value,props:O}),m()},T=M=>{let O=Math.floor(c.value/45)*45;M==="+"?O=O+45:M==="-"&&(O=O-45),O<-180&&(O=-180),O>180&&(O=180);const k={rotate:O};t.updateElement({id:r.value,props:k}),m()};return(M,O)=>{const k=xe("IconSendToBack"),F=xe("IconBringToFrontOne"),N=xe("IconBringToFront"),E=xe("IconSentToBack"),P=xe("IconAlignLeft"),_=xe("IconAlignVertically"),I=xe("IconAlignRight"),W=xe("IconAlignTop"),D=xe("IconAlignHorizontally"),z=xe("IconAlignBottom"),ae=xe("IconLock"),U=xe("IconUnlock"),Z=xe("IconRotate"),B=Mn("tooltip");return Y(),ee("div",G2e,[z2e,w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:O[0]||(O[0]=G=>H(h)(H(n),H(pr).TOP))},{default:re(()=>[w(k,{class:"btn-icon"}),We(" 置顶")]),_:1}),w(et,{style:{flex:"1"},onClick:O[1]||(O[1]=G=>H(h)(H(n),H(pr).BOTTOM))},{default:re(()=>[w(F,{class:"btn-icon"}),We(" 置底")]),_:1})]),_:1}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:O[2]||(O[2]=G=>H(h)(H(n),H(pr).UP))},{default:re(()=>[w(N,{class:"btn-icon"}),We(" 上移")]),_:1}),w(et,{style:{flex:"1"},onClick:O[3]||(O[3]=G=>H(h)(H(n),H(pr).DOWN))},{default:re(()=>[w(E,{class:"btn-icon"}),We(" 下移")]),_:1})]),_:1}),w(Ut),J2e,w(xn,{class:"row"},{default:re(()=>[De((Y(),we(et,{style:{flex:"1"},onClick:O[4]||(O[4]=G=>H(p)(H(nn).LEFT))},{default:re(()=>[w(P)]),_:1})),[[B,"左对齐"]]),De((Y(),we(et,{style:{flex:"1"},onClick:O[5]||(O[5]=G=>H(p)(H(nn).HORIZONTAL))},{default:re(()=>[w(_)]),_:1})),[[B,"水平居中"]]),De((Y(),we(et,{style:{flex:"1"},onClick:O[6]||(O[6]=G=>H(p)(H(nn).RIGHT))},{default:re(()=>[w(I)]),_:1})),[[B,"右对齐"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(et,{style:{flex:"1"},onClick:O[7]||(O[7]=G=>H(p)(H(nn).TOP))},{default:re(()=>[w(W)]),_:1})),[[B,"上对齐"]]),De((Y(),we(et,{style:{flex:"1"},onClick:O[8]||(O[8]=G=>H(p)(H(nn).VERTICAL))},{default:re(()=>[w(D)]),_:1})),[[B,"垂直居中"]]),De((Y(),we(et,{style:{flex:"1"},onClick:O[9]||(O[9]=G=>H(p)(H(nn).BOTTOM))},{default:re(()=>[w(z)]),_:1})),[[B,"下对齐"]])]),_:1}),w(Ut),V("div",$2e,[w(Li,{step:5,value:o.value,"onUpdate:value":O[10]||(O[10]=G=>A(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 水平: ")]),_:1},8,["value"]),j2e,w(Li,{step:5,value:i.value,"onUpdate:value":O[11]||(O[11]=G=>x(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 垂直: ")]),_:1},8,["value"])]),H(n).type!=="line"?(Y(),ee("div",q2e,[w(Li,{min:u.value,max:1500,step:5,disabled:d.value,value:a.value,"onUpdate:value":O[12]||(O[12]=G=>y(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 宽度: ")]),_:1},8,["min","disabled","value"]),["image","shape","audio"].includes(H(n).type)?(Y(),ee(Ve,{key:0},[l.value?De((Y(),we(ae,{key:0,style:{width:"10%"},class:"icon-btn active",onClick:O[13]||(O[13]=G=>L(!1))},null,512)),[[B,"解除宽高比锁定"]]):De((Y(),we(U,{key:1,style:{width:"10%"},class:"icon-btn",onClick:O[14]||(O[14]=G=>L(!0))},null,512)),[[B,"宽高比锁定"]])],64)):(Y(),ee("div",eAe)),w(Li,{min:u.value,max:800,step:5,disabled:f.value||H(n).type==="table",value:s.value,"onUpdate:value":O[15]||(O[15]=G=>g(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 高度: ")]),_:1},8,["min","disabled","value"])])):Be("",!0),["line","video","audio"].includes(H(n).type)?Be("",!0):(Y(),ee(Ve,{key:1},[w(Ut),V("div",tAe,[w(Li,{min:-180,max:180,step:5,value:c.value,"onUpdate:value":O[16]||(O[16]=G=>S(G)),style:{width:"45%"}},{prefix:re(()=>[We(" 旋转: ")]),_:1},8,["value"]),nAe,V("div",{class:"text-btn",onClick:O[17]||(O[17]=G=>T("-")),style:{width:"24%"}},[w(Z),We(" -45°")]),V("div",{class:"text-btn",onClick:O[18]||(O[18]=G=>T("+")),style:{width:"24%"}},[w(Z,{style:Le({transform:"rotateY(180deg)"})},null,8,["style"]),We(" +45°")])])],64))])}}}),oAe=Ue(rAe,[["__scopeId","data-v-6bb316f9"]]),l4=1e3,iAe="click",bi="animate__",$T=[{type:"bounce",name:"弹跳",children:[{name:"弹入",value:"bounceIn"},{name:"向右弹入",value:"bounceInLeft"},{name:"向左弹入",value:"bounceInRight"},{name:"向上弹入",value:"bounceInUp"},{name:"向下弹入",value:"bounceInDown"}]},{type:"fade",name:"浮现",children:[{name:"浮入",value:"fadeIn"},{name:"向下浮入",value:"fadeInDown"},{name:"向下长距浮入",value:"fadeInDownBig"},{name:"向右浮入",value:"fadeInLeft"},{name:"向右长距浮入",value:"fadeInLeftBig"},{name:"向左浮入",value:"fadeInRight"},{name:"向左长距浮入",value:"fadeInRightBig"},{name:"向上浮入",value:"fadeInUp"},{name:"向上长距浮入",value:"fadeInUpBig"},{name:"从左上浮入",value:"fadeInTopLeft"},{name:"从右上浮入",value:"fadeInTopRight"},{name:"从左下浮入",value:"fadeInBottomLeft"},{name:"从右下浮入",value:"fadeInBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转进入",value:"rotateIn"},{name:"绕左下进入",value:"rotateInDownLeft"},{name:"绕右下进入",value:"rotateInDownRight"},{name:"绕左上进入",value:"rotateInUpLeft"},{name:"绕右上进入",value:"rotateInUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"放大进入",value:"zoomIn"},{name:"向下放大进入",value:"zoomInDown"},{name:"从左放大进入",value:"zoomInLeft"},{name:"从右放大进入",value:"zoomInRight"},{name:"向上放大进入",value:"zoomInUp"}]},{type:"slide",name:"滑入",children:[{name:"向下滑入",value:"slideInDown"},{name:"从右滑入",value:"slideInLeft"},{name:"从左滑入",value:"slideInRight"},{name:"向上滑入",value:"slideInUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转进入",value:"flipInX"},{name:"Y轴翻转进入",value:"flipInY"}]},{type:"back",name:"放大滑入",children:[{name:"向下放大滑入",value:"backInDown"},{name:"从左放大滑入",value:"backInLeft"},{name:"从右放大滑入",value:"backInRight"},{name:"向上放大滑入",value:"backInUp"}]},{type:"lightSpeed",name:"飞入",children:[{name:"从右飞入",value:"lightSpeedInRight"},{name:"从左飞入",value:"lightSpeedInLeft"}]}],jT=[{type:"bounce",name:"弹跳",children:[{name:"弹出",value:"bounceOut"},{name:"向左弹出",value:"bounceOutLeft"},{name:"向右弹出",value:"bounceOutRight"},{name:"向上弹出",value:"bounceOutUp"},{name:"向下弹出",value:"bounceOutDown"}]},{type:"fade",name:"浮现",children:[{name:"浮出",value:"fadeOut"},{name:"向下浮出",value:"fadeOutDown"},{name:"向下长距浮出",value:"fadeOutDownBig"},{name:"向左浮出",value:"fadeOutLeft"},{name:"向左长距浮出",value:"fadeOutLeftBig"},{name:"向右浮出",value:"fadeOutRight"},{name:"向右长距浮出",value:"fadeOutRightBig"},{name:"向上浮出",value:"fadeOutUp"},{name:"向上长距浮出",value:"fadeOutUpBig"},{name:"从左上浮出",value:"fadeOutTopLeft"},{name:"从右上浮出",value:"fadeOutTopRight"},{name:"从左下浮出",value:"fadeOutBottomLeft"},{name:"从右下浮出",value:"fadeOutBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转退出",value:"rotateOut"},{name:"绕左下退出",value:"rotateOutDownLeft"},{name:"绕右下退出",value:"rotateOutDownRight"},{name:"绕左上退出",value:"rotateOutUpLeft"},{name:"绕右上退出",value:"rotateOutUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"缩小退出",value:"zoomOut"},{name:"向下缩小退出",value:"zoomOutDown"},{name:"从左缩小退出",value:"zoomOutLeft"},{name:"从右缩小退出",value:"zoomOutRight"},{name:"向上缩小退出",value:"zoomOutUp"}]},{type:"slide",name:"滑出",children:[{name:"向下滑出",value:"slideOutDown"},{name:"从左滑出",value:"slideOutLeft"},{name:"从右滑出",value:"slideOutRight"},{name:"向上滑出",value:"slideOutUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转退出",value:"flipOutX"},{name:"Y轴翻转退出",value:"flipOutY"}]},{type:"back",name:"缩小滑出",children:[{name:"向下缩小滑出",value:"backOutDown"},{name:"从左缩小滑出",value:"backOutLeft"},{name:"从右缩小滑出",value:"backOutRight"},{name:"向上缩小滑出",value:"backOutUp"}]},{type:"lightSpeed",name:"飞出",children:[{name:"从右飞出",value:"lightSpeedOutRight"},{name:"从左飞出",value:"lightSpeedOutLeft"}]}],qT=[{type:"shake",name:"晃动",children:[{name:"左右摇晃",value:"shakeX"},{name:"上下摇晃",value:"shakeY"},{name:"摇头",value:"headShake"},{name:"摆动",value:"swing"},{name:"晃动",value:"wobble"},{name:"惊恐",value:"tada"},{name:"果冻",value:"jello"}]},{type:"other",name:"其他",children:[{name:"弹跳",value:"bounce"},{name:"闪烁",value:"flash"},{name:"脉搏",value:"pulse"},{name:"橡皮筋",value:"rubberBand"},{name:"心跳(快)",value:"heartBeat"}]}],w_=[{label:"无",value:"no"},{label:"随机",value:"random"},{label:"左右推移",value:"slideX"},{label:"上下推移",value:"slideY"},{label:"左右推移(3D)",value:"slideX3D"},{label:"上下推移(3D)",value:"slideY3D"},{label:"淡入淡出",value:"fade"},{label:"旋转",value:"rotate"},{label:"上下展开",value:"scaleY"},{label:"左右展开",value:"scaleX"},{label:"放大",value:"scale"},{label:"缩小",value:"scaleReverse"}],L_=e=>(on("data-v-bf835335"),e=e(),an(),e),aAe={class:"element-animation-panel"},sAe={key:0,class:"element-animation"},lAe={class:"type-title"},cAe={class:"pool-item-wrapper"},uAe=["onMouseenter","onClick"],fAe={key:0,class:"mask"},dAe={key:1,class:"tip"},hAe={class:"sequence-content"},pAe={class:"index"},mAe={class:"text"},vAe={class:"handler"},gAe={key:0,class:"configs"},AAe={class:"config-item"},RAe=L_(()=>V("div",{style:{width:"35%"}},"持续时长:",-1)),yAe={class:"config-item"},xAe=L_(()=>V("div",{style:{width:"35%"}},"触发方式:",-1)),bAe={class:"config-item"},SAe=Fe({__name:"ElementAnimationPanel",setup(e){const t={};for(const P of $T)for(const _ of P.children)t[_.value]=_.name;for(const P of jT)for(const _ of P.children)t[_.value]=_.name;for(const P of qT)for(const _ of P.children)t[_.value]=_.name;const n=["in","out","attention"],r=ct(),{handleElement:o,handleElementId:i}=Xe(ft()),{currentSlide:a,formatedAnimations:s,currentSlideAnimations:c}=Xe(r),l=[{key:"in",label:"入场",color:"#68a490"},{key:"out",label:"退场",color:"#d86344"},{key:"attention",label:"强调",color:"#e8b76a"}],u=pe("in"),f=pe(!1);Tt(()=>i.value,()=>{h.value=!1});const d=pe(""),h=pe(!1),{addHistorySnapshot:p}=zt(),m=Me(()=>{const P=[];for(let _=0;_Z.id===D.elId);if(!z)continue;const ae=J0[z.type],U=t[D.effect];P.push({...D,index:W===0?_+1:"",elType:ae,animationEffect:U})}}return P}),A=Me(()=>c.value.filter(I=>I.elId===i.value)||[]),x=P=>{const _=c.value.filter(I=>I.id!==P);r.updateSlide({animations:_}),p()},R=P=>{const{newIndex:_,oldIndex:I}=P;if(_===void 0||I===void 0||_===I)return;const W=JSON.parse(JSON.stringify(c.value)),D=W[I];W.splice(I,1),W.splice(_,0,D),r.updateSlide({animations:W}),p()},y=(P,_,I)=>{const W=document.querySelector(`#editable-element-${P} [class^=editable-element-]`);if(W){const D=`${bi}${_}`;document.documentElement.style.setProperty("--animate-duration",`${I}ms`),W.classList.add(`${bi}animated`,D);const z=()=>{document.documentElement.style.removeProperty("--animate-duration"),W.classList.remove(`${bi}animated`,D)};W.addEventListener("animationend",z,{once:!0})}},g=async()=>{f.value=!f.value;for(let P=0;PsetTimeout(I,_.duration+100)),y(_.elId,_.effect,_.duration),P>=m.value.length-1&&(f.value=!1)}},S=(P,_)=>{if(_<100||_>5e3)return;const I=c.value.map(W=>W.id===P?{...W,duration:_}:W);r.updateSlide({animations:I}),p()},L=(P,_)=>{const I=c.value.map(W=>W.id===P?{...W,trigger:_}:W);r.updateSlide({animations:I}),p()},T=(P,_)=>{const I=c.value.map(z=>z.id===M.value?{...z,type:P,effect:_}:z);r.updateSlide({animations:I}),h.value=!1,p();const W=c.value.find(z=>z.elId===i.value),D=(W==null?void 0:W.duration)||l4;setTimeout(()=>{y(i.value,_,D)},0)},M=pe(""),O=(P,_)=>{if(M.value){T(P,_);return}const I=JSON.parse(JSON.stringify(c.value));I.push({id:pn(10),elId:i.value,type:P,effect:_,duration:l4,trigger:iAe}),r.updateSlide({animations:I}),h.value=!1,p(),setTimeout(()=>{y(i.value,_,l4)},0)},k=pe(!1),F=P=>{P?setTimeout(()=>k.value=!0,600):k.value=!1},N=P=>{h.value=!0,M.value=P,F(!0)},E={in:$T,out:jT,attention:qT};return(P,_)=>{const I=xe("IconEffects"),W=xe("IconClick"),D=xe("IconPlayOne"),z=xe("IconCloseSmall"),ae=Mn("tooltip");return Y(),ee("div",aAe,[H(o)?(Y(),ee("div",sAe,[w(kt,{trigger:"click",value:h.value,"onUpdate:value":[_[3]||(_[3]=U=>h.value=U),_[4]||(_[4]=U=>F(U))],style:{width:"100%"}},{content:re(()=>[w(As,{tabs:l,value:u.value,"onUpdate:value":_[0]||(_[0]=U=>u.value=U),tabsStyle:{marginBottom:"20px"},tabStyle:{width:"33.333%"},spaceAround:""},null,8,["value"]),(Y(),ee(Ve,null,it(n,U=>(Y(),ee(Ve,null,[u.value===U?(Y(),ee("div",{class:$e(["animation-pool",U]),key:U},[(Y(!0),ee(Ve,null,it(E[U],Z=>(Y(),ee("div",{class:"pool-type",key:Z.name},[V("div",lAe,gt(Z.name)+":",1),V("div",cAe,[(Y(!0),ee(Ve,null,it(Z.children,B=>(Y(),ee("div",{class:"pool-item",key:B.name,onMouseenter:G=>d.value=B.value,onMouseleave:_[1]||(_[1]=G=>d.value=""),onClick:G=>O(U,B.value)},[V("div",{class:$e(["animation-box",[`${H(bi)}animated`,`${H(bi)}fast`,d.value===B.value&&`${H(bi)}${B.value}`]])},gt(B.name),3)],40,uAe))),128))])]))),128)),k.value?Be("",!0):(Y(),ee("div",fAe))],2)):Be("",!0)],64))),64))]),default:re(()=>[w(et,{class:"element-animation-btn",onClick:_[2]||(_[2]=U=>M.value="")},{default:re(()=>[w(I,{style:{"margin-right":"5px"}}),We(" 添加动画 ")]),_:1})]),_:1},8,["value"])])):(Y(),ee("div",dAe,[w(W,{style:{"margin-right":"5px"}}),We(" 选中画布中的元素添加动画")])),w(Ut),w(H(N5),{class:"animation-sequence",modelValue:m.value,animation:200,scroll:!0,scrollSensitivity:50,handle:".sequence-content",itemKey:"id",onEnd:R},{item:re(({element:U})=>{var Z,B;return[V("div",{class:$e(["sequence-item",[U.type,{active:((Z=H(o))==null?void 0:Z.id)===U.elId}]])},[V("div",hAe,[V("div",pAe,gt(U.index),1),V("div",mAe,"【"+gt(U.elType)+"】"+gt(U.animationEffect),1),V("div",vAe,[De(w(D,{class:"handler-btn",onClick:G=>y(U.elId,U.effect,U.duration)},null,8,["onClick"]),[[ae,"预览"]]),De(w(z,{class:"handler-btn",onClick:G=>x(U.id)},null,8,["onClick"]),[[ae,"删除"]])])]),((B=A.value[0])==null?void 0:B.elId)===U.elId?(Y(),ee("div",gAe,[w(Ut,{style:{margin:"16px 0"}}),V("div",AAe,[RAe,w(Li,{min:500,max:3e3,step:500,value:U.duration,"onUpdate:value":G=>S(U.id,G),style:{width:"65%"}},null,8,["value","onUpdate:value"])]),V("div",yAe,[xAe,w(Zn,{value:U.trigger,"onUpdate:value":G=>L(U.id,G),style:{width:"65%"},options:[{label:"主动触发",value:"click"},{label:"与上一动画同时",value:"meantime"},{label:"上一动画之后",value:"auto"}]},null,8,["value","onUpdate:value"])]),V("div",bAe,[w(et,{style:{width:"100%"},onClick:G=>N(U.id)},{default:re(()=>[We("更换动画")]),_:2},1032,["onClick"])])])):Be("",!0)],2)]}),_:1},8,["modelValue"]),m.value.length>=2?(Y(),ee(Ve,{key:2},[w(Ut),w(et,{onClick:_[5]||(_[5]=U=>g())},{default:re(()=>[We(gt(f.value?"停止预览":"预览全部"),1)]),_:1})],64)):Be("",!0)])}}}),MAe=Ue(SAe,[["__scopeId","data-v-bf835335"]]),wAe=[{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#5b9bd5","#ed7d31","#a5a5a5","#ffc000","#4472c4","#70ad47"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#83992a","#3c9670","#44709d","#a23b32","#d87728","#deb340"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#e48312","#bd582c","#865640","#9b8357","#c2bc80","#94a088"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#90c225","#54a121","#e6b91e","#e86618","#c42f19","#918756"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#1cade4","#2683c6","#27ced7","#42ba97","#3e8853","#62a39f"]},{background:"#e9efd6",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#a5300f","#de7e18","#9f8351","#728653","#92aa4c","#6aac91"]},{background:"#17444e",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b01513","#ea6312","#e6b729","#6bab90","#55839a","#9e5d9d"]},{background:"#36234d",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b31166","#e33d6f","#e45f3c","#e9943a","#9b6bf2","#d63cd0"]},{background:"#247fad",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#052f61","#a50e82","#14967c","#6a9e1f","#e87d37","#c62324"]},{background:"#103f55",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#40aebd","#97e8d5","#a1cf49","#628f3e","#f2df3a","#fcb01c"]},{background:"#242367",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#ac3ec1","#477bd1","#46b298","#90ba4c","#dd9d31","#e25345"]},{background:"#e4b75e",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529"]},{background:"#333333",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]}],LAe=()=>{const e=ct(),{slides:t,currentSlide:n,theme:r}=Xe(e),{addHistorySnapshot:o}=zt(),i=f=>{const d=[];for(const h of f.elements){if(h.type==="shape"&&ot(h.fill).getAlpha()!==0){const p=ot(h.fill).toRgbString();d.includes(p)||d.push(p)}if(h.type==="text"&&h.fill&&ot(h.fill).getAlpha()!==0){const p=ot(h.fill).toRgbString();d.includes(p)||d.push(p)}if(h.type==="table"&&h.theme&&ot(h.theme.color).getAlpha()!==0){const p=ot(h.theme.color).toRgbString();d.includes(p)||d.push(p)}if(h.type==="chart"&&h.fill&&ot(h.fill).getAlpha()!==0){const p=ot(h.fill).toRgbString();d.includes(p)||d.push(p)}if(h.type==="line"&&ot(h.color).getAlpha()!==0){const p=ot(h.color).toRgbString();d.includes(p)||d.push(p)}if(h.type==="audio"&&ot(h.color).getAlpha()!==0){const p=ot(h.color).toRgbString();d.includes(p)||d.push(p)}}return d},a=(f,d)=>{const h=i(f),p={};if(h.length>d.length){const A=ot(d[0]).analogous(h.length-d.length+10).map(x=>x.toHexString()).slice(1);d.push(...A)}for(let m=0;m{const h=a(f,d.colors);(!f.background||f.background.type!=="image")&&(f.background={type:"solid",color:d.background});for(const p of f.elements){if(p.type==="shape"&&(p.fill=h[ot(p.fill).toRgbString()]||p.fill,p.gradient&&delete p.gradient),p.type==="text"&&(p.fill&&(p.fill=h[ot(p.fill).toRgbString()]||p.fill),p.defaultColor=d.fontColor,p.defaultFontName=d.fontname),p.type==="table"){p.theme&&(p.theme.color=h[ot(p.theme.color).toRgbString()]||p.theme.color);for(const m of p.data)for(const A of m)A.style&&(A.style.color=d.fontColor,A.style.fontname=d.fontname)}p.type==="chart"&&(p.themeColor=[h[ot(p.themeColor[0]).toRgbString()]],p.gridColor=d.fontColor),p.type==="line"&&(p.color=h[ot(p.color).toRgbString()]||p.color),p.type==="audio"&&(p.color=h[ot(p.color).toRgbString()]||p.color),p.type==="latex"&&(p.color=d.fontColor)}};return{applyPresetThemeToSingleSlide:f=>{const d=JSON.parse(JSON.stringify(n.value));s(d,f),e.updateSlide({background:d.background,elements:d.elements}),o()},applyPresetThemeToAllSlides:f=>{const d=JSON.parse(JSON.stringify(t.value));for(const h of d)s(h,f);e.setTheme({backgroundColor:f.background,themeColor:f.colors[0],fontColor:f.fontColor,fontName:f.fontname}),e.setSlides(d),o()},applyThemeToAllSlides:(f=!1)=>{const d=JSON.parse(JSON.stringify(t.value)),{themeColor:h,backgroundColor:p,fontColor:m,fontName:A,outline:x,shadow:R}=r.value;for(const y of d){(!y.background||y.background.type!=="image")&&(y.background={type:"solid",color:p});for(const g of y.elements)if(f&&("outline"in g&&g.outline&&(g.outline=x),"shadow"in g&&g.shadow&&(g.shadow=R)),g.type==="shape")g.fill=h;else if(g.type==="line")g.color=h;else if(g.type==="text")g.defaultColor=m,g.defaultFontName=A,g.fill&&(g.fill=h);else if(g.type==="table"){g.theme&&(g.theme.color=h);for(const S of g.data)for(const L of S)L.style&&(L.style.color=m,L.style.fontname=A)}else g.type==="chart"?(g.themeColor=[h],g.gridColor=m):g.type==="latex"?g.color=m:g.type==="audio"&&(g.color=h)}e.setSlides(d),o()}}},Ir=e=>(on("data-v-5d6a9c2f"),e=e(),an(),e),OAe={class:"slide-design-panel"},TAe=Ir(()=>V("div",{class:"title"},"背景填充",-1)),kAe={class:"row"},NAe=Ir(()=>V("div",{style:{width:"10px"}},null,-1)),PAe={key:0,class:"background-image-wrapper"},CAe={class:"background-image"},IAe={key:1,class:"background-gradient-wrapper"},FAe={class:"row"},_Ae=Ir(()=>V("div",{style:{width:"40%"}},"起点颜色:",-1)),EAe={class:"row"},XAe=Ir(()=>V("div",{style:{width:"40%"}},"终点颜色:",-1)),WAe={key:0,class:"row"},VAe=Ir(()=>V("div",{style:{width:"40%"}},"渐变角度:",-1)),UAe={class:"row"},YAe={class:"row"},QAe=Ir(()=>V("div",{style:{width:"40%"}},"画布尺寸:",-1)),ZAe={class:"title"},BAe=Ir(()=>V("span",null,"全局主题",-1)),DAe=Ir(()=>V("span",{class:"text"},"更多",-1)),KAe={class:"row"},HAe=Ir(()=>V("div",{style:{width:"40%"}},"字体:",-1)),GAe={class:"row"},zAe=Ir(()=>V("div",{style:{width:"40%"}},"字体颜色:",-1)),JAe={class:"row"},$Ae=Ir(()=>V("div",{style:{width:"40%"}},"背景颜色:",-1)),jAe={class:"row"},qAe=Ir(()=>V("div",{style:{width:"40%"}},"主题色:",-1)),eRe={class:"row"},tRe=Ir(()=>V("div",{style:{width:"40%"}},"边框样式:",-1)),nRe={class:"row"},rRe=Ir(()=>V("div",{style:{width:"40%"}},"边框颜色:",-1)),oRe={class:"row"},iRe=Ir(()=>V("div",{style:{width:"40%"}},"边框粗细:",-1)),aRe={class:"row",style:{height:"30px"}},sRe=Ir(()=>V("div",{style:{width:"40%"}},"水平阴影:",-1)),lRe={class:"row",style:{height:"30px"}},cRe=Ir(()=>V("div",{style:{width:"40%"}},"垂直阴影:",-1)),uRe={class:"row",style:{height:"30px"}},fRe=Ir(()=>V("div",{style:{width:"40%"}},"模糊距离:",-1)),dRe={class:"row"},hRe=Ir(()=>V("div",{style:{width:"40%"}},"阴影颜色:",-1)),pRe={class:"row"},mRe=Ir(()=>V("div",{class:"title"},"预置主题",-1)),vRe={class:"theme-list"},gRe={class:"theme-item-content"},ARe={class:"colors"},RRe={class:"btns"},yRe=["onClick"],xRe=["onClick"],bRe=Fe({__name:"SlideDesignPanel",setup(e){const t=ct(),{availableFonts:n}=Xe(ft()),{slides:r,currentSlide:o,viewportRatio:i,theme:a}=Xe(t),s=pe(!1),c=Me(()=>o.value.background?o.value.background:{type:"solid",value:"#fff"}),{addHistorySnapshot:l}=zt(),{applyPresetThemeToSingleSlide:u,applyPresetThemeToAllSlides:f,applyThemeToAllSlides:d}=LAe(),h=y=>{if(y==="solid"){const g={...c.value,type:"solid",color:c.value.color||"#fff"};t.updateSlide({background:g})}else if(y==="image"){const g={...c.value,type:"image",image:c.value.image||"",imageSize:c.value.imageSize||"cover"};t.updateSlide({background:g})}else{const g={...c.value,type:"gradient",gradientType:c.value.gradientType||"linear",gradientColor:c.value.gradientColor||["#fff","#fff"],gradientRotate:c.value.gradientRotate||0};t.updateSlide({background:g})}l()},p=y=>{t.updateSlide({background:{...c.value,...y}}),l()},m=y=>{const g=y[0];g&&zu(g).then(S=>p({image:S}))},A=()=>{const y=r.value.map(g=>({...g,background:o.value.background}));t.setSlides(y),l()},x=y=>{t.setTheme(y)},R=y=>{t.setViewportRatio(y)};return(y,g)=>{const S=xe("IconPlus"),L=xe("IconDown"),T=xe("IconRight");return Y(),ee("div",OAe,[TAe,V("div",kAe,[w(Zn,{style:{flex:"1"},value:c.value.type,"onUpdate:value":g[0]||(g[0]=M=>h(M)),options:[{label:"纯色填充",value:"solid"},{label:"图片填充",value:"image"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),NAe,c.value.type==="solid"?(Y(),we(kt,{key:0,trigger:"click",style:{flex:"1"}},{content:re(()=>[w(Ln,{modelValue:c.value.color,"onUpdate:modelValue":g[1]||(g[1]=M=>p({color:M}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:c.value.color||"#fff"},null,8,["color"])]),_:1})):c.value.type==="image"?(Y(),we(Zn,{key:1,style:{flex:"1"},value:c.value.imageSize||"cover","onUpdate:value":g[2]||(g[2]=M=>p({imageSize:M})),options:[{label:"缩放",value:"contain"},{label:"拼贴",value:"repeat"},{label:"缩放铺满",value:"cover"}]},null,8,["value"])):(Y(),we(Zn,{key:2,style:{flex:"1"},value:c.value.gradientType||"","onUpdate:value":g[3]||(g[3]=M=>p({gradientType:M})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),c.value.type==="image"?(Y(),ee("div",PAe,[w(Eu,{onChange:g[4]||(g[4]=M=>m(M))},{default:re(()=>[V("div",CAe,[V("div",{class:"content",style:Le({backgroundImage:`url(${c.value.image})`})},[w(S)],4)])]),_:1})])):Be("",!0),c.value.type==="gradient"?(Y(),ee("div",IAe,[V("div",FAe,[_Ae,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:c.value.gradientColor[0],"onUpdate:modelValue":g[5]||(g[5]=M=>p({gradientColor:[M,c.value.gradientColor[1]]}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:c.value.gradientColor[0]},null,8,["color"])]),_:1})]),V("div",EAe,[XAe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:c.value.gradientColor[1],"onUpdate:modelValue":g[6]||(g[6]=M=>p({gradientColor:[c.value.gradientColor[0],M]}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:c.value.gradientColor[1]},null,8,["color"])]),_:1})]),c.value.gradientType==="linear"?(Y(),ee("div",WAe,[VAe,w(no,{min:0,max:360,step:15,value:c.value.gradientRotate||0,"onUpdate:value":g[7]||(g[7]=M=>p({gradientRotate:M})),style:{width:"60%"}},null,8,["value"])])):Be("",!0)])):Be("",!0),V("div",UAe,[w(et,{style:{flex:"1"},onClick:g[8]||(g[8]=M=>A())},{default:re(()=>[We("应用背景到全部")]),_:1})]),w(Ut),V("div",YAe,[QAe,w(Zn,{style:{width:"60%"},value:H(i),"onUpdate:value":g[9]||(g[9]=M=>R(M)),options:[{label:"宽屏 16 : 9",value:.5625},{label:"宽屏 16 : 10",value:.625},{label:"标准 4 : 3",value:.75},{label:"纸张 A3 / A4",value:.70710678},{label:"竖向 A3 / A4",value:1.41421356}]},null,8,["value"])]),w(Ut),V("div",ZAe,[BAe,V("span",{class:"more",onClick:g[10]||(g[10]=M=>s.value=!s.value)},[DAe,s.value?(Y(),we(L,{key:0})):(Y(),we(T,{key:1}))])]),V("div",KAe,[HAe,w(Zn,{style:{width:"60%"},value:H(a).fontName,"onUpdate:value":g[11]||(g[11]=M=>x({fontName:M})),options:[...H(n),...H(bp)]},null,8,["value","options"])]),V("div",GAe,[zAe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).fontColor,"onUpdate:modelValue":g[12]||(g[12]=M=>x({fontColor:M}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).fontColor},null,8,["color"])]),_:1})]),V("div",JAe,[$Ae,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).backgroundColor,"onUpdate:modelValue":g[13]||(g[13]=M=>x({backgroundColor:M}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).backgroundColor},null,8,["color"])]),_:1})]),V("div",jAe,[qAe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).themeColor,"onUpdate:modelValue":g[14]||(g[14]=M=>x({themeColor:M}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).themeColor},null,8,["color"])]),_:1})]),s.value?(Y(),ee(Ve,{key:2},[V("div",eRe,[tRe,w(Zn,{style:{width:"60%"},value:H(a).outline.style||"","onUpdate:value":g[15]||(g[15]=M=>x({outline:{...H(a).outline,style:M}})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"}]},null,8,["value"])]),V("div",nRe,[rRe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).outline.color,"onUpdate:modelValue":g[16]||(g[16]=M=>x({outline:{...H(a).outline,color:M}}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).outline.color||"#000"},null,8,["color"])]),_:1})]),V("div",oRe,[iRe,w(Li,{value:H(a).outline.width||0,"onUpdate:value":g[17]||(g[17]=M=>x({outline:{...H(a).outline,width:M}})),style:{width:"60%"}},null,8,["value"])]),V("div",aRe,[sRe,w(no,{style:{width:"60%"},min:-10,max:10,step:1,value:H(a).shadow.h,"onUpdate:value":g[18]||(g[18]=M=>x({shadow:{...H(a).shadow,h:M}}))},null,8,["value"])]),V("div",lRe,[cRe,w(no,{style:{width:"60%"},min:-10,max:10,step:1,value:H(a).shadow.v,"onUpdate:value":g[19]||(g[19]=M=>x({shadow:{...H(a).shadow,v:M}}))},null,8,["value"])]),V("div",uRe,[fRe,w(no,{style:{width:"60%"},min:1,max:20,step:1,value:H(a).shadow.blur,"onUpdate:value":g[20]||(g[20]=M=>x({shadow:{...H(a).shadow,blur:M}}))},null,8,["value"])]),V("div",dRe,[hRe,w(kt,{trigger:"click",style:{width:"60%"}},{content:re(()=>[w(Ln,{modelValue:H(a).shadow.color,"onUpdate:modelValue":g[21]||(g[21]=M=>x({shadow:{...H(a).shadow,color:M}}))},null,8,["modelValue"])]),default:re(()=>[w(ir,{color:H(a).shadow.color},null,8,["color"])]),_:1})])],64)):Be("",!0),V("div",pRe,[w(et,{style:{flex:"1"},onClick:g[22]||(g[22]=M=>H(d)(s.value))},{default:re(()=>[We("应用主题到全部")]),_:1})]),w(Ut),mRe,V("div",vRe,[(Y(!0),ee(Ve,null,it(H(wAe),(M,O)=>(Y(),ee("div",{class:"theme-item",key:O,style:Le({backgroundColor:M.background,fontFamily:M.fontname})},[V("div",gRe,[V("div",{class:"text",style:Le({color:M.fontColor})},"文字 Aa",4),V("div",ARe,[(Y(!0),ee(Ve,null,it(M.colors,(k,F)=>(Y(),ee("div",{class:"color-block",key:F,style:Le({backgroundColor:k})},null,4))),128))]),V("div",RRe,[V("div",{class:"btn",onClick:k=>H(u)(M)},"应用",8,yRe),V("div",{class:"btn",onClick:k=>H(f)(M)},"应用全局",8,xRe)])])],4))),128))])])}}}),SRe=Ue(bRe,[["__scopeId","data-v-5d6a9c2f"]]),MRe={class:"slide-animation-panel"},wRe={class:"animation-pool"},LRe=["onClick"],ORe={class:"animation-text"},TRe=Fe({__name:"SlideAnimationPanel",setup(e){const t=ct(),{slides:n,currentSlide:r}=Xe(t),o=Me(()=>r.value.turningMode||"slideY"),i=w_,{addHistorySnapshot:a}=zt(),s=l=>{l!==o.value&&(t.updateSlide({turningMode:l}),a())},c=()=>{const l=n.value.map(u=>({...u,turningMode:r.value.turningMode}));t.setSlides(l),Sn.success("已应用到全部"),a()};return(l,u)=>(Y(),ee("div",MRe,[V("div",wRe,[(Y(!0),ee(Ve,null,it(H(i),f=>(Y(),ee("div",{class:$e(["animation-item",{active:o.value===f.value}]),key:f.label,onClick:d=>s(f.value)},[V("div",{class:$e(["animation-block",f.value])},null,2),V("div",ORe,gt(f.label),1)],10,LRe))),128))]),w(et,{style:{width:"100%"},onClick:u[0]||(u[0]=f=>c())},{default:re(()=>[We("应用到全部")]),_:1})]))}}),kRe=Ue(TRe,[["__scopeId","data-v-ae84c3f4"]]),NRe=()=>{const e=ct(),{activeElementIdList:t,activeElementList:n}=Xe(ft()),{currentSlide:r}=Xe(e),{addHistorySnapshot:o}=zt();return{alignActiveElement:a=>{const{minX:s,maxX:c,minY:l,maxY:u}=ec(n.value),f=JSON.parse(JSON.stringify(r.value.elements)),d={};for(const h of n.value)if(h.groupId&&!d[h.groupId]){const p=n.value.filter(m=>m.groupId===h.groupId);d[h.groupId]=ec(p)}if(a===nn.LEFT)f.forEach(h=>{if(t.value.includes(h.id))if(h.groupId){const m=d[h.groupId].minX-s;h.left=h.left-m}else if("rotate"in h&&h.rotate){const{offsetX:p}=Gf({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.left=s-p}else h.left=s});else if(a===nn.RIGHT)f.forEach(h=>{if(t.value.includes(h.id))if(h.groupId){const m=d[h.groupId].maxX-c;h.left=h.left-m}else{const p=h.type==="line"?Math.max(h.start[0],h.end[0]):h.width;if("rotate"in h&&h.rotate){const{offsetX:m}=Gf({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.left=c-p+m}else h.left=c-p}});else if(a===nn.TOP)f.forEach(h=>{if(t.value.includes(h.id))if(h.groupId){const m=d[h.groupId].minY-l;h.top=h.top-m}else if("rotate"in h&&h.rotate){const{offsetY:p}=Gf({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.top=l-p}else h.top=l});else if(a===nn.BOTTOM)f.forEach(h=>{if(t.value.includes(h.id))if(h.groupId){const m=d[h.groupId].maxY-u;h.top=h.top-m}else{const p=h.type==="line"?Math.max(h.start[1],h.end[1]):h.height;if("rotate"in h&&h.rotate){const{offsetY:m}=Gf({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.top=u-p+m}else h.top=u-p}});else if(a===nn.HORIZONTAL){const h=(s+c)/2;f.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const m=d[p.groupId],x=(m.maxX+m.minX)/2-h;p.left=p.left-x}else{const m=p.type==="line"?Math.max(p.start[0],p.end[0]):p.width;p.left=h-m/2}})}else if(a===nn.VERTICAL){const h=(l+u)/2;f.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const m=d[p.groupId],x=(m.maxY+m.minY)/2-h;p.top=p.top-x}else{const m=p.type==="line"?Math.max(p.start[1],p.end[1]):p.height;p.top=h-m/2}})}e.updateSlide({elements:f}),o()}}},PRe=()=>{const e=ct(),{activeElementIdList:t,activeElementList:n}=Xe(ft()),{currentSlide:r}=Xe(e),{addHistorySnapshot:o}=zt();return{displayItemCount:Me(()=>{let c=0;const l=[];for(const u of n.value)u.groupId?l.includes(u.groupId)||(l.push(u.groupId),c+=1):c+=1;return c}),uniformHorizontalDisplay:()=>{const{minX:c,maxX:l}=ec(n.value),u=JSON.parse(JSON.stringify(n.value)),f=JSON.parse(JSON.stringify(r.value.elements)),d=[];let h=[];for(const S of u)if(S.groupId)h.find(T=>T.groupId===S.groupId)?h=h.map(T=>T.groupId===S.groupId?{...T,els:[...T.els,S]}:T):h.push({groupId:S.groupId,els:[S]});else{const{minX:L,maxX:T}=Ma(S);d.push({min:L,max:T,el:S})}const p=[];for(const S of h){const{minX:L,maxX:T}=ec(S.els);p.push({min:L,max:T,els:S.els})}const m=[...d,...p];m.sort((S,L)=>S.min-L.min);let A=0;for(const S of m){const L=S.max-S.min;A+=L}const x=(l-c-A)/(m.length-1),R=[],y=m[0];let g={min:y.min,max:y.max};if("el"in y)R.push({pos:y.min,el:y.el});else for(const S of y.els){const{minX:L}=Ma(S);R.push({pos:L,el:S})}for(let S=1;S{const{minY:c,maxY:l}=ec(n.value),u=JSON.parse(JSON.stringify(n.value)),f=JSON.parse(JSON.stringify(r.value.elements)),d=[];let h=[];for(const S of u)if(S.groupId)h.find(T=>T.groupId===S.groupId)?h=h.map(T=>T.groupId===S.groupId?{...T,els:[...T.els,S]}:T):h.push({groupId:S.groupId,els:[S]});else{const{minY:L,maxY:T}=Ma(S);d.push({min:L,max:T,el:S})}const p=[];for(const S of h){const{minY:L,maxY:T}=ec(S.els);p.push({min:L,max:T,els:S.els})}const m=[...d,...p];m.sort((S,L)=>S.min-L.min);let A=0;for(const S of m){const L=S.max-S.min;A+=L}const x=(l-c-A)/(m.length-1),R=[],y=m[0];let g={min:y.min,max:y.max};if("el"in y)R.push({pos:y.min,el:y.el});else for(const S of y.els){const{minY:L}=Ma(S);R.push({pos:L,el:S})}for(let S=1;S{t.value?o(u):i(u)};return(u,f)=>{const d=xe("IconAlignLeft"),h=xe("IconAlignHorizontally"),p=xe("IconAlignRight"),m=xe("IconAlignTop"),A=xe("IconAlignVertically"),x=xe("IconAlignBottom"),R=xe("IconGroup"),y=xe("IconUngroup"),g=Mn("tooltip");return Y(),ee("div",CRe,[w(xn,{class:"row"},{default:re(()=>[De((Y(),we(et,{style:{flex:"1"},onClick:f[0]||(f[0]=S=>l(H(nn).LEFT))},{default:re(()=>[w(d)]),_:1})),[[g,"左对齐"]]),De((Y(),we(et,{style:{flex:"1"},onClick:f[1]||(f[1]=S=>l(H(nn).HORIZONTAL))},{default:re(()=>[w(h)]),_:1})),[[g,"水平居中"]]),De((Y(),we(et,{style:{flex:"1"},onClick:f[2]||(f[2]=S=>l(H(nn).RIGHT))},{default:re(()=>[w(p)]),_:1})),[[g,"右对齐"]])]),_:1}),w(xn,{class:"row"},{default:re(()=>[De((Y(),we(et,{style:{flex:"1"},onClick:f[3]||(f[3]=S=>l(H(nn).TOP))},{default:re(()=>[w(m)]),_:1})),[[g,"上对齐"]]),De((Y(),we(et,{style:{flex:"1"},onClick:f[4]||(f[4]=S=>l(H(nn).VERTICAL))},{default:re(()=>[w(A)]),_:1})),[[g,"垂直居中"]]),De((Y(),we(et,{style:{flex:"1"},onClick:f[5]||(f[5]=S=>l(H(nn).BOTTOM))},{default:re(()=>[w(x)]),_:1})),[[g,"下对齐"]])]),_:1}),H(a)>2?(Y(),we(xn,{key:0,class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:f[6]||(f[6]=S=>H(s)())},{default:re(()=>[We("水平均匀分布")]),_:1}),w(et,{style:{flex:"1"},onClick:f[7]||(f[7]=S=>H(c)())},{default:re(()=>[We("垂直均匀分布")]),_:1})]),_:1})):Be("",!0),w(Ut),w(xn,{class:"row"},{default:re(()=>[w(et,{disabled:!H(t),onClick:f[8]||(f[8]=S=>H(n)()),style:{flex:"1"}},{default:re(()=>[w(R,{style:{"margin-right":"3px"}}),We("组合")]),_:1},8,["disabled"]),w(et,{disabled:H(t),onClick:f[9]||(f[9]=S=>H(r)()),style:{flex:"1"}},{default:re(()=>[w(y,{style:{"margin-right":"3px"}}),We("取消组合")]),_:1},8,["disabled"])]),_:1})])}}}),FRe=Ue(IRe,[["__scopeId","data-v-d41009b1"]]),c4=[{key:"letter",label:"字母",children:["α","β","γ","δ","ϵ","ε","ζ","η","θ","ϑ","ι","κ","λ","μ","ν","ξ","π","ϖ","ρ","ϱ","σ","ς","τ","υ","ϕ","φ","χ","ψ","ω","Γ","Δ","Θ","Λ","Ξ","Π","Σ","Υ","Φ","Ψ","Ω","𝐀","𝐁","𝐂","𝐃","𝐄","𝐅","𝐆","𝐇","𝐈","𝐉","𝐊","𝐋","𝐌","𝐍","𝐎","𝐏","𝐐","𝐑","𝐒","𝐓","𝐔","𝐕","𝐖","𝐗","𝐘","𝐙","𝐚","𝐛","𝐜","𝐝","𝐞","𝐟","𝐠","𝐡","𝐢","𝐣","𝐤","𝐥","𝐦","𝐧","𝐨","𝐩","𝐪","𝐫","𝐬","𝐭","𝐮","𝐯","𝐰","𝐱","𝐲","𝐳","𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩","𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃"]},{key:"number",label:"序号",children:["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","º","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","₀","₁","₂","₃","₄","₅","₆","₇","₈","₉","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ","Ⅼ","Ⅽ","Ⅾ","Ⅿ","ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","ⅺ","ⅻ","ⅼ","ⅽ","ⅾ","ⅿ","ↀ","ↁ","ↂ","㊀","㊁","㊂","㊃","㊄","㊅","㊆","㊇","㊈","㊉","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩","𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"]},{key:"math",label:"数学",children:["+","-","×","÷","=","~","¬","±","%","°","ǃ","‰","‱","½","⅓","⅔","¼","¾","<",">","l","o","g","l","g","l","n","⨂","⨁","⨄","⨃","⨅","⨆","√","∛","∜","∝","∞","∟","∠","∡","∢","∧","∨","∩","∪","∫","∬","∭","∮","∯","∰","∱","∲","∳","∴","∵","∼","∽","∾","∿","≃","≄","≅","≆","≇","≈","≊","≋","≌","≍","≎","≏","≐","≑","≒","≓","≔","≕","≤","≥","≦","≧","≨","≩","≪","≫","≺","≻","≼","≽","≾","≿","⊀","⊁","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒","⊓","⊔","⊢","⊣","⊤","⊥","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⊲","⊳","⊴","⊵","⋀","⋁","⋂","⋃","⋉","⋊","⋋","⋌","⟨","⟩","⟪","⟫","⟮","⟯","⧼","⧽","⦰"]},{key:"arrow",label:"箭头",children:["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨","↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","↼","↽","↾","↿","⇀","⇁","⇂","⇃","⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇋","⇌","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛","⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵","⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿"]},{key:"graph",label:"图形",children:["▢","▣","▤","▥","▦","▧","▨","▩","▭","▮","▯","▰","▱","▲","▷","▼","◁","◈","◉","◍","◐","◑","◒","◓","◔","◕","◧","◨","◩","◪","◫","◬","◭","◮"]}],_Re={class:"symbol-panel"},ERe={class:"pool"},XRe=["onClick"],WRe={class:"symbol"},VRe=Fe({__name:"SymbolPanel",setup(e){const t=pe(c4[0].key),n=Me(()=>{const i=c4.find(a=>a.key===t.value);return(i==null?void 0:i.children)||[]}),r=c4.map(i=>({key:i.key,label:i.label})),o=i=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:"insert",value:i}})};return(i,a)=>(Y(),ee("div",_Re,[w(As,{tabs:H(r),value:t.value,"onUpdate:value":a[0]||(a[0]=s=>t.value=s),tabsStyle:{marginBottom:"8px"},spaceBetween:""},null,8,["tabs","value"]),V("div",ERe,[(Y(!0),ee(Ve,null,it(n.value,(s,c)=>(Y(),ee("div",{class:"symbol-item",key:c,onClick:l=>o(s)},[V("div",WRe,gt(s),1)],8,XRe))),128))])]))}}),URe=Ue(VRe,[["__scopeId","data-v-0f662bb0"]]),YRe={class:"toolbar"},QRe={class:"content"},ZRe=Fe({__name:"index",setup(e){const t=ft(),{activeElementIdList:n,handleElement:r,toolbarState:o}=Xe(t),i=Me(()=>{var f;return((f=r.value)==null?void 0:f.type)==="text"?[{label:"样式",key:Sr.EL_STYLE},{label:"符号",key:Sr.SYMBOL},{label:"位置",key:Sr.EL_POSITION},{label:"动画",key:Sr.EL_ANIMATION}]:[{label:"样式",key:Sr.EL_STYLE},{label:"位置",key:Sr.EL_POSITION},{label:"动画",key:Sr.EL_ANIMATION}]}),a=[{label:"设计",key:Sr.SLIDE_DESIGN},{label:"切换",key:Sr.SLIDE_ANIMATION},{label:"动画",key:Sr.EL_ANIMATION}],s=[{label:"样式",key:Sr.EL_STYLE},{label:"位置",key:Sr.MULTI_POSITION}],c=f=>{t.setToolbarState(f)},l=Me(()=>{if(n.value.length){if(n.value.length>1)return s}else return a;return i.value});Tt(l,()=>{const f=l.value.map(d=>d.key);f.includes(o.value)||t.setToolbarState(f[0])});const u=Me(()=>({[Sr.EL_STYLE]:H2e,[Sr.EL_POSITION]:oAe,[Sr.EL_ANIMATION]:MAe,[Sr.SLIDE_DESIGN]:SRe,[Sr.SLIDE_ANIMATION]:kRe,[Sr.MULTI_POSITION]:FRe,[Sr.SYMBOL]:URe})[o.value]||null);return(f,d)=>(Y(),ee("div",YRe,[w(As,{tabs:l.value,value:H(o),card:"","onUpdate:value":d[0]||(d[0]=h=>c(h))},null,8,["tabs","value"]),V("div",QRe,[(Y(),we(xs(u.value)))])]))}}),BRe=Ue(ZRe,[["__scopeId","data-v-83fff59a"]]),DRe={class:"editor"},KRe=Fe({__name:"Editor",props:{value:{}},emits:["update"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=ft(),a=pe();let s;const c=pe(),l=pe(),u=pe(),f=()=>{l.value&&l.value.hide()},d=_n.debounce(function(){o("update",s.dom.innerHTML)},300,{trailing:!0}),h=()=>{i.setDisableHotkeysState(!0)},p=()=>{i.setDisableHotkeysState(!1)};t({updateTextContent:()=>{if(!s)return;const{doc:R,tr:y}=s.state;s.dispatch(y.replaceRangeWith(0,R.content.size,g5(r.value)))}});const A=()=>{const R=window.getSelection();if(!R||!R.anchorNode||!R.focusNode||R.isCollapsed||R.type==="Caret"||R.type==="None")return;const y=R.getRangeAt(0);if(l.value){c.value=Q4(s);const{x:g,y:S,left:L,top:T}=y.getBoundingClientRect();l.value.setProps({getReferenceClientRect:()=>({x:g,y:S,left:L,top:T,height:0,width:0,right:L,bottom:T})}),l.value.show()}},x=(R,y)=>{if(R==="color"&&y){const g=s.state.schema.marks.forecolor.create({color:y});Er(s),Ka(s,g)}else if(R==="backcolor"&&y){const g=s.state.schema.marks.backcolor.create({backcolor:y});Er(s),Ka(s,g)}else if(R==="bold")Er(s),kr(s.state.schema.marks.strong)(s.state,s.dispatch);else if(R==="em")Er(s),kr(s.state.schema.marks.em)(s.state,s.dispatch);else if(R==="underline")Er(s),kr(s.state.schema.marks.underline)(s.state,s.dispatch);else if(R==="strikethrough")Er(s),kr(s.state.schema.marks.strikethrough)(s.state,s.dispatch);else if(R==="bulletList"){const{bullet_list:g,list_item:S}=s.state.schema.nodes;lg(g,S,"")(s.state,s.dispatch)}else if(R==="orderedList"){const{ordered_list:g,list_item:S}=s.state.schema.nodes;lg(g,S,"")(s.state,s.dispatch)}else if(R==="clear"){Er(s);const{$from:g,$to:S}=s.state.selection;s.dispatch(s.state.tr.removeMark(g.pos,S.pos))}s.focus(),d(),c.value=Q4(s)};return Gt(()=>{s=lF(a.value,r.value,{handleDOMEvents:{focus:h,blur:p,mouseup:A,mousedown:()=>{var R;(R=window.getSelection())==null||R.removeAllRanges(),f()},keydown:f,input:d}},{placeholder:"点击输入演讲者备注"}),l.value=ef(a.value,{duration:0,content:u.value,interactive:!0,trigger:"manual",placement:"top-start",hideOnClick:"toggle",offset:[0,6]})}),On(()=>{s&&s.destroy()}),(R,y)=>{var P,_,I,W,D,z;const g=xe("IconTextBold"),S=xe("IconTextItalic"),L=xe("IconTextUnderline"),T=xe("IconStrikethrough"),M=xe("IconText"),O=xe("IconHighLight"),k=xe("IconList"),F=xe("IconOrderedList"),N=xe("IconFormat"),E=Mn("click-outside");return De((Y(),ee("div",DRe,[V("div",{class:"prosemirror-editor",ref_key:"editorViewRef",ref:a},null,512),V("div",{class:"menu",ref_key:"menuRef",ref:u},[V("button",{class:$e({active:(P=c.value)==null?void 0:P.bold}),onClick:y[0]||(y[0]=ae=>x("bold"))},[w(g)],2),V("button",{class:$e({active:(_=c.value)==null?void 0:_.em}),onClick:y[1]||(y[1]=ae=>x("em"))},[w(S)],2),V("button",{class:$e({active:(I=c.value)==null?void 0:I.underline}),onClick:y[2]||(y[2]=ae=>x("underline"))},[w(L)],2),V("button",{class:$e({active:(W=c.value)==null?void 0:W.strikethrough}),onClick:y[3]||(y[3]=ae=>x("strikethrough"))},[w(T)],2),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>{var ae;return[w(Ln,{modelValue:(ae=c.value)==null?void 0:ae.color,"onUpdate:modelValue":y[4]||(y[4]=U=>x("color",U))},null,8,["modelValue"])]}),default:re(()=>[V("button",null,[w(M)])]),_:1}),w(kt,{trigger:"click",style:{width:"30%"}},{content:re(()=>{var ae;return[w(Ln,{modelValue:(ae=c.value)==null?void 0:ae.backcolor,"onUpdate:modelValue":y[5]||(y[5]=U=>x("backcolor",U))},null,8,["modelValue"])]}),default:re(()=>[V("button",null,[w(O)])]),_:1}),V("button",{class:$e({active:(D=c.value)==null?void 0:D.bulletList}),onClick:y[6]||(y[6]=ae=>x("bulletList"))},[w(k)],2),V("button",{class:$e({active:(z=c.value)==null?void 0:z.orderedList}),onClick:y[7]||(y[7]=ae=>x("orderedList"))},[w(F)],2),V("button",{onClick:y[8]||(y[8]=ae=>x("clear"))},[w(N)])],512)])),[[E,f]])}}}),HRe=Ue(KRe,[["__scopeId","data-v-4042a280"]]),GRe={class:"remark"},zRe=Fe({__name:"index",props:{height:{}},emits:["update:height"],setup(e,{emit:t}){const n=e,r=t,o=ct(),{currentSlide:i}=Xe(o),a=pe();Tt(()=>i.value.id,()=>{Vr(()=>{a.value.updateTextContent()})},{immediate:!0});const s=Me(()=>{var u;return((u=i.value)==null?void 0:u.remark)||""}),c=u=>{o.updateSlide({remark:u})},l=u=>{let f=!0;const d=u.pageY,h=n.height;document.onmousemove=p=>{if(!f)return;let x=-(p.pageY-d)+h;x<40&&(x=40),x>360&&(x=360),r("update:height",x)},document.onmouseup=()=>{f=!1,document.onmousemove=null,document.onmouseup=null}};return(u,f)=>(Y(),ee("div",GRe,[V("div",{class:"resize-handler",onMousedown:f[0]||(f[0]=d=>l(d))},null,32),w(HRe,{value:s.value,ref_key:"editorRef",ref:a,onUpdate:f[1]||(f[1]=d=>c(d))},null,8,["value"])]))}}),JRe=Ue(zRe,[["__scopeId","data-v-1c52a472"]]);var O_={exports:{}};(function(e,t){(function(n,r){r()})(Pt,function(){function n(l,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,u,f){var d=new XMLHttpRequest;d.open("GET",l),d.responseType="blob",d.onload=function(){c(d.response,u,f)},d.onerror=function(){console.error("could not download file")},d.send()}function o(l){var u=new XMLHttpRequest;u.open("HEAD",l,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(u)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Pt=="object"&&Pt.global===Pt?Pt:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,u,f){var d=a.URL||a.webkitURL,h=document.createElement("a");u=u||l.name||"download",h.download=u,h.rel="noopener",typeof l=="string"?(h.href=l,h.origin===location.origin?i(h):o(h.href)?r(l,u,f):i(h,h.target="_blank")):(h.href=d.createObjectURL(l),setTimeout(function(){d.revokeObjectURL(h.href)},4e4),setTimeout(function(){i(h)},0))}:"msSaveOrOpenBlob"in navigator?function(l,u,f){if(u=u||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,f),u);else if(o(l))r(l,u,f);else{var d=document.createElement("a");d.href=l,d.target="_blank",setTimeout(function(){i(d)})}}:function(l,u,f,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof l=="string")return r(l,u,f);var h=l.type==="application/octet-stream",p=/constructor/i.test(a.HTMLElement)||a.safari,m=/CriOS\/[\d]+/.test(navigator.userAgent);if((m||h&&p||s)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var y=A.result;y=m?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=y:location=y,d=null},A.readAsDataURL(l)}else{var x=a.URL||a.webkitURL,R=x.createObjectURL(l);d?d.location=R:location.href=R,d=null,setTimeout(function(){x.revokeObjectURL(R)},4e4)}});a.saveAs=c.saveAs=c,e.exports=c})})(O_);var u4=O_.exports,T_={exports:{}};/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files @@ -313,4 +313,4 @@ PERFORMANCE OF THIS SOFTWARE. ${l} ${u} - `),e.close()},B4e=(e,t)=>{const n=Q4e(),r=n.contentWindow;if(!n.contentDocument||!r)return;Z4e(n.contentDocument,e,t);const o=()=>{r.focus(),r.print()},i=()=>{n.removeEventListener("load",o),r.removeEventListener("afterprint",i),document.body.removeChild(n)};n.addEventListener("load",o),r.addEventListener("afterprint",i)},w2=e=>(on("data-v-d3a30d69"),e=e(),an(),e),D4e={class:"export-pdf-dialog"},K4e={class:"thumbnails-view"},H4e={class:"configs"},G4e={class:"row"},z4e=w2(()=>V("div",{class:"title"},"导出范围:",-1)),J4e={class:"row"},$4e=w2(()=>V("div",{class:"title"},"每页数量:",-1)),j4e={class:"row"},q4e=w2(()=>V("div",{class:"title"},"边缘留白:",-1)),e3e={class:"config-item"},t3e=w2(()=>V("div",{class:"tip"}," 提示:若打印预览与实际样式不一致,请在弹出的打印窗口中勾选【背景图形】选项。 ",-1)),n3e={class:"btns"},r3e=Fe({__name:"ExportPDF",emits:["close"],setup(e,{emit:t}){const n=t,{slides:r,currentSlide:o,viewportRatio:i}=Xe(ct()),a=pe(),s=pe("all"),c=pe(1),l=pe(!0),u=()=>{if(!a.value)return;const f={width:1600,height:s.value==="all"?1600*i.value*c.value:1600*i.value,margin:l.value?50:0};B4e(a.value,f)};return(f,d)=>(Y(),ee("div",D4e,[V("div",K4e,[V("div",{class:"thumbnails",ref_key:"pdfThumbnailsRef",ref:a},[s.value==="current"?(Y(),we(Fa,{key:0,class:"thumbnail",slide:H(o),size:1600},null,8,["slide"])):(Y(!0),ee(Ve,{key:1},it(H(r),(h,p)=>(Y(),we(Fa,{class:$e(["thumbnail",{"break-page":(p+1)%c.value===0}]),key:h.id,slide:h,size:1600},null,8,["class","slide"]))),128))],512)]),V("div",H4e,[V("div",G4e,[z4e,w(_a,{class:"config-item",value:s.value,"onUpdate:value":d[0]||(d[0]=h=>s.value=h)},{default:re(()=>[w(Nn,{style:{width:"50%"},value:"all"},{default:re(()=>[We("全部")]),_:1}),w(Nn,{style:{width:"50%"},value:"current"},{default:re(()=>[We("当前页")]),_:1})]),_:1},8,["value"])]),V("div",J4e,[$4e,w(Zn,{class:"config-item",value:c.value,"onUpdate:value":d[1]||(d[1]=h=>c.value=h),options:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3}]},null,8,["value"])]),V("div",j4e,[q4e,V("div",e3e,[w(oa,{value:l.value,"onUpdate:value":d[2]||(d[2]=h=>l.value=h)},null,8,["value"])])]),t3e]),V("div",n3e,[w(et,{class:"btn export",type:"primary",onClick:d[3]||(d[3]=h=>u())},{default:re(()=>[We("打印 / 导出 PDF")]),_:1}),w(et,{class:"btn close",onClick:d[4]||(d[4]=h=>n("close"))},{default:re(()=>[We("关闭")]),_:1})])]))}}),o3e=Ue(r3e,[["__scopeId","data-v-d3a30d69"]]),Q5=e=>(on("data-v-254b6b07"),e=e(),an(),e),i3e={class:"export-pptx-dialog"},a3e={class:"configs"},s3e={class:"row"},l3e=Q5(()=>V("div",{class:"title"},"导出范围:",-1)),c3e={key:0,class:"row"},u3e=["data-range"],f3e={class:"row"},d3e=Q5(()=>V("div",{class:"title"},"忽略音频/视频:",-1)),h3e={class:"config-item"},p3e={class:"row"},m3e=Q5(()=>V("div",{class:"title"},"覆盖默认母版:",-1)),v3e={class:"config-item"},g3e={key:1,class:"tip"},A3e={class:"btns"},R3e=Fe({__name:"ExportPPTX",emits:["close"],setup(e,{emit:t}){const n=t,{slides:r,currentSlide:o}=Xe(ct()),{exportPPTX:i,exporting:a}=S2(),s=pe("all"),c=pe([1,r.value.length]),l=pe(!0),u=pe(!0),f=Me(()=>s.value==="all"?r.value:s.value==="current"?[o.value]:r.value.filter((d,h)=>{const[p,m]=c.value;return h>=p-1&&h<=m-1}));return(d,h)=>{const p=Mn("tooltip");return Y(),ee("div",i3e,[V("div",a3e,[V("div",s3e,[l3e,w(_a,{class:"config-item",value:s.value,"onUpdate:value":h[0]||(h[0]=m=>s.value=m)},{default:re(()=>[w(Nn,{style:{width:"33.33%"},value:"all"},{default:re(()=>[We("全部")]),_:1}),w(Nn,{style:{width:"33.33%"},value:"current"},{default:re(()=>[We("当前页")]),_:1}),w(Nn,{style:{width:"33.33%"},value:"custom"},{default:re(()=>[We("自定义")]),_:1})]),_:1},8,["value"])]),s.value==="custom"?(Y(),ee("div",c3e,[V("div",{class:"title","data-range":`(${c.value[0]} ~ ${c.value[1]})`},"自定义范围:",8,u3e),w(no,{class:"config-item",range:"",min:1,max:H(r).length,step:1,value:c.value,"onUpdate:value":h[1]||(h[1]=m=>c.value=m)},null,8,["max","value"])])):Be("",!0),V("div",f3e,[d3e,V("div",h3e,[De(w(oa,{value:u.value,"onUpdate:value":h[2]||(h[2]=m=>u.value=m)},null,8,["value"]),[[p,"导出时默认忽略音视频,若您的幻灯片中存在音视频元素,且希望将其导出到PPTX文件中,可选择关闭【忽略音视频】选项,但要注意这将会大幅增加导出用时。"]])])]),V("div",p3e,[m3e,V("div",v3e,[w(oa,{value:l.value,"onUpdate:value":h[3]||(h[3]=m=>l.value=m)},null,8,["value"])])]),u.value?Be("",!0):(Y(),ee("div",g3e," 提示:1. 支持导出格式:avi、mp4、mov、wmv、mp3、wav;2. 跨域资源无法导出。 "))]),V("div",A3e,[w(et,{class:"btn export",type:"primary",onClick:h[4]||(h[4]=m=>H(i)(f.value,l.value,u.value))},{default:re(()=>[We("导出 PPTX")]),_:1}),w(et,{class:"btn close",onClick:h[5]||(h[5]=m=>n("close"))},{default:re(()=>[We("关闭")]),_:1})]),w(zb,{loading:H(a),tip:"正在导出..."},null,8,["loading"])])}}}),y3e=Ue(R3e,[["__scopeId","data-v-254b6b07"]]),K_=e=>(on("data-v-bc56c9db"),e=e(),an(),e),x3e={class:"export-pptist-dialog"},b3e={class:"configs"},S3e={class:"row"},M3e=K_(()=>V("div",{class:"title"},"导出范围:",-1)),w3e={key:0,class:"row"},L3e=["data-range"],O3e=K_(()=>V("div",{class:"tip"}," 提示:.pptist 是本应用的特有文件后缀,支持将该类型的文件导入回应用中。 ",-1)),T3e={class:"btns"},k3e=Fe({__name:"ExportSpecificFile",emits:["close"],setup(e,{emit:t}){const n=t,{slides:r,currentSlide:o}=Xe(ct()),{exportSpecificFile:i}=S2(),a=pe("all"),s=pe([1,r.value.length]),c=Me(()=>a.value==="all"?r.value:a.value==="current"?[o.value]:r.value.filter((l,u)=>{const[f,d]=s.value;return u>=f-1&&u<=d-1}));return(l,u)=>(Y(),ee("div",x3e,[V("div",b3e,[V("div",S3e,[M3e,w(_a,{class:"config-item",value:a.value,"onUpdate:value":u[0]||(u[0]=f=>a.value=f)},{default:re(()=>[w(Nn,{style:{width:"33.33%"},value:"all"},{default:re(()=>[We("全部")]),_:1}),w(Nn,{style:{width:"33.33%"},value:"current"},{default:re(()=>[We("当前页")]),_:1}),w(Nn,{style:{width:"33.33%"},value:"custom"},{default:re(()=>[We("自定义")]),_:1})]),_:1},8,["value"])]),a.value==="custom"?(Y(),ee("div",w3e,[V("div",{class:"title","data-range":`(${s.value[0]} ~ ${s.value[1]})`},"自定义范围:",8,L3e),w(no,{class:"config-item",range:"",min:1,max:H(r).length,step:1,value:s.value,"onUpdate:value":u[1]||(u[1]=f=>s.value=f)},null,8,["max","value"])])):Be("",!0),O3e]),V("div",T3e,[w(et,{class:"btn export",type:"primary",onClick:u[2]||(u[2]=f=>H(i)(c.value))},{default:re(()=>[We("导出 .pptist 文件")]),_:1}),w(et,{class:"btn close",onClick:u[3]||(u[3]=f=>n("close"))},{default:re(()=>[We("关闭")]),_:1})])]))}}),N3e=Ue(k3e,[["__scopeId","data-v-bc56c9db"]]),P3e={class:"export-dialog"},C3e={class:"content"},I3e=Fe({__name:"index",setup(e){const t=ft(),{dialogForExport:n}=Xe(t),r=t.setDialogForExport,o=[{key:"pptist",label:"导出 pptist 文件"},{key:"pptx",label:"导出 PPTX"},{key:"image",label:"导出图片"},{key:"json",label:"导出 JSON"},{key:"pdf",label:"打印 / 导出 PDF"}],i=Me(()=>{const a={image:E4e,json:Y4e,pdf:o3e,pptx:y3e,pptist:N3e};return n.value&&a[n.value]||null});return(a,s)=>(Y(),ee("div",P3e,[w(As,{tabs:o,value:H(n),card:"","onUpdate:value":s[0]||(s[0]=c=>H(r)(c))},null,8,["value"]),V("div",C3e,[(Y(),we(xs(i.value),{onClose:s[1]||(s[1]=c=>H(r)(""))},null,32))])]))}}),F3e=Ue(I3e,[["__scopeId","data-v-b54f4542"]]),_3e=()=>{const e=ct(),t=ft(),{currentSlide:n}=Xe(e),{activeElementIdList:r,hiddenElementIdList:o}=Xe(t);return{toggleHideElement:c=>{o.value.includes(c)?t.setHiddenElementIdList(o.value.filter(l=>l!==c)):t.setHiddenElementIdList([...o.value,c]),r.value.includes(c)&&t.setActiveElementIdList([])},showAllElements:()=>{const c=n.value.elements.map(u=>u.id),l=o.value.filter(u=>!c.includes(u));t.setHiddenElementIdList(l)},hideAllElements:()=>{const c=n.value.elements.map(l=>l.id);t.setHiddenElementIdList([...o.value,...c]),r.value.length&&t.setActiveElementIdList([])}}},E3e={class:"title"},X3e={class:"content"},W3e=Fe({__name:"MoveablePanel",props:{width:{},height:{},minWidth:{default:20},minHeight:{default:20},maxWidth:{default:500},maxHeight:{default:500},left:{default:10},top:{default:10},title:{default:""},moveable:{type:Boolean,default:!0},resizeable:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=pe(0),i=pe(0),a=pe(0),s=pe(0),c=pe(),l=Me(()=>{var d;return s.value?s.value:((d=c.value)==null?void 0:d.clientHeight)||0});Gt(()=>{n.left>=0?o.value=n.left:o.value=document.body.clientWidth+n.left-n.width,n.top>=0?i.value=n.top:i.value=document.body.clientHeight+n.top-l.value,a.value=n.width,s.value=n.height});const u=d=>{if(!n.moveable)return;let h=!0;const p=document.body.clientWidth,m=document.body.clientHeight,A=d.pageX,x=d.pageY,R=o.value,y=i.value;document.onmousemove=g=>{if(!h)return;const S=g.pageX-A,L=g.pageY-x;let T=R+S,M=y+L;T<0&&(T=0),M<0&&(M=0),T+a.value>p&&(T=p-a.value),M+l.value>m&&(M=m-l.value),o.value=T,i.value=M},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null}},f=d=>{if(!n.resizeable)return;let h=!0;const p=d.pageX,m=d.pageY,A=a.value,x=s.value;document.onmousemove=R=>{if(!h)return;const y=R.pageX-p,g=R.pageY-m;let S=A+y,L=x+g;Sn.maxWidth&&(S=n.maxWidth),L>n.maxHeight&&(L=n.maxHeight),a.value=S,s.value=L},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null}};return(d,h)=>{const p=xe("IconClose");return Y(),ee("div",{class:"moveable-panel",ref_key:"moveablePanelRef",ref:c,style:Le({width:a.value+"px",height:s.value?s.value+"px":"auto",left:o.value+"px",top:i.value+"px"})},[d.title?(Y(),ee(Ve,{key:0},[V("div",{class:"header",onMousedown:h[1]||(h[1]=m=>u(m))},[V("div",E3e,gt(d.title),1),V("div",{class:"close-btn",onClick:h[0]||(h[0]=m=>r("close"))},[w(p)])],32),V("div",X3e,[cr(d.$slots,"default",{},void 0,!0)])],64)):(Y(),ee("div",{key:1,class:"content",onMousedown:h[2]||(h[2]=m=>u(m))},[cr(d.$slots,"default",{},void 0,!0)],32)),d.resizeable?(Y(),ee("div",{key:2,class:"resizer",onMousedown:h[3]||(h[3]=m=>f(m))},null,32)):Be("",!0)],4)}}}),jp=Ue(W3e,[["__scopeId","data-v-94a0a962"]]),V3e=e=>(on("data-v-8d6111bd"),e=e(),an(),e),U3e={key:0,class:"handler"},Y3e={class:"btns"},Q3e={key:0,class:"icon-btns"},Z3e={class:"element-list"},B3e={key:0,class:"group-els"},D3e=V3e(()=>V("div",{class:"group-title"},"组合",-1)),K3e=["onClick","onDblclick"],H3e=["id","value","onBlur","onKeydown"],G3e={key:1,class:"name"},z3e={class:"icons"},J3e=["onClick","onDblclick"],$3e=["id","value","onBlur","onKeydown"],j3e={key:1,class:"name"},q3e={class:"icons"},exe=Fe({__name:"SelectPanel",setup(e){const t=ct(),n=ft(),{currentSlide:r}=Xe(t),{handleElement:o,handleElementId:i,activeElementIdList:a,activeGroupElementId:s,hiddenElementIdList:c}=Xe(n),{orderElement:l}=Np(),{selectElement:u}=Hg(),{toggleHideElement:f,showAllElements:d,hideAllElements:h}=_3e(),p=Me(()=>{const g=[];for(const S of r.value.elements)if(S.groupId){const L=g[g.length-1];L&&L.type==="group"&&L.id&&L.id===S.groupId?L.elements.push(S):g.push({type:"group",id:S.groupId,elements:[S]})}else g.push(S);return g}),m=(g,S)=>{if(i.value===S||c.value.includes(S))return;const L=g.elements.map(T=>T.id);n.setActiveElementIdList(L),n.setHandleElementId(S),Vr(()=>n.setActiveGroupElementId(S))},A=pe(""),x=(g,S)=>{const L=g.target.value;t.updateElement({id:S,props:{name:L}}),A.value=""},R=g=>{A.value=g,Vr(()=>{document.querySelector(`#input-${g}`).focus()})},y=()=>{n.setSelectPanelState(!1)};return(g,S)=>{const L=xe("IconDown"),T=xe("IconUp"),M=xe("IconPreviewClose"),O=xe("IconPreviewOpen");return Y(),we(jp,{class:"select-panel",width:200,height:360,title:`选择(${H(a).length}/${H(r).elements.length})`,left:-270,top:90,onClose:S[4]||(S[4]=k=>y())},{default:re(()=>[p.value.length?(Y(),ee("div",U3e,[V("div",Y3e,[w(et,{size:"small",style:{"margin-right":"5px"},onClick:S[0]||(S[0]=k=>H(d)())},{default:re(()=>[We("全部显示")]),_:1}),w(et,{size:"small",onClick:S[1]||(S[1]=k=>H(h)())},{default:re(()=>[We("全部隐藏")]),_:1})]),H(o)?(Y(),ee("div",Q3e,[w(L,{class:"icon-btn",onClick:S[2]||(S[2]=k=>H(l)(H(o),H(pr).UP))}),w(T,{class:"icon-btn",onClick:S[3]||(S[3]=k=>H(l)(H(o),H(pr).DOWN))})])):Be("",!0)])):Be("",!0),V("div",Z3e,[(Y(!0),ee(Ve,null,it(p.value,k=>(Y(),ee(Ve,{key:k.id},[k.type==="group"?(Y(),ee("div",B3e,[D3e,(Y(!0),ee(Ve,null,it(k.elements,F=>(Y(),ee("div",{class:$e(["item",{active:H(a).includes(F.id),"group-active":H(s).includes(F.id)}]),key:F.id,onClick:N=>m(k,F.id),onDblclick:N=>R(F.id)},[A.value===F.id?(Y(),ee("input",{key:0,id:`input-${F.id}`,value:F.name||H(J0)[F.type],class:"input",type:"text",onBlur:N=>x(N,F.id),onKeydown:gc(N=>x(N,F.id),["enter"])},null,40,H3e)):(Y(),ee("div",G3e,gt(F.name||H(J0)[F.type]),1)),V("div",z3e,[H(c).includes(F.id)?(Y(),we(M,{key:0,style:{"font-size":"17px"},onClick:Wt(N=>H(f)(F.id),["stop"])},null,8,["onClick"])):(Y(),we(O,{key:1,style:{"font-size":"17px"},onClick:Wt(N=>H(f)(F.id),["stop"])},null,8,["onClick"]))])],42,K3e))),128))])):(Y(),ee("div",{key:1,class:$e(["item",{active:H(a).includes(k.id)}]),onClick:F=>H(u)(k.id),onDblclick:F=>R(k.id)},[A.value===k.id?(Y(),ee("input",{key:0,id:`input-${k.id}`,value:k.name||H(J0)[k.type],class:"input",type:"text",onBlur:F=>x(F,k.id),onKeydown:gc(F=>x(F,k.id),["enter"])},null,40,$3e)):(Y(),ee("div",j3e,gt(k.name||H(J0)[k.type]),1)),V("div",q3e,[H(c).includes(k.id)?(Y(),we(M,{key:0,style:{"font-size":"17px"},onClick:Wt(F=>H(f)(k.id),["stop"])},null,8,["onClick"])):(Y(),we(O,{key:1,style:{"font-size":"17px"},onClick:Wt(F=>H(f)(k.id),["stop"])},null,8,["onClick"]))])],42,J3e))],64))),128))])]),_:1},8,["title"])}}}),txe=Ue(exe,[["__scopeId","data-v-8d6111bd"]]),nxe=()=>{const e=ft(),t=ct(),{handleElement:n}=Xe(e),{slides:r,slideIndex:o,currentSlide:i}=Xe(t),a=pe(""),s=pe(""),c=pe([]),l=pe(-1),u=pe("g"),f=()=>{const F=[],N=new RegExp(a.value,u.value),E=/(<([^>]+)>)/g;for(const P of r.value)for(const _ of P.elements)if(_.type==="text"){const W=_.content.replace(E,"").match(N);W&&F.push(...new Array(W.length).fill({slideId:P.id,elId:_.id,elType:_.type}))}else if(_.type==="shape"&&_.text&&_.text.content){const W=_.text.content.replace(E,"").match(N);W&&F.push(...new Array(W.length).fill({slideId:P.id,elId:_.id,elType:_.type}))}else if(_.type==="table")for(let I=0;I<_.data.length;I++){const W=_.data[I];for(let D=0;D{const N=[...F.childNodes],E=[];for(;N.length;){const P=N.shift();P.nodeType===P.TEXT_NODE?P.wholeText&&E.push(P):N.unshift(...P.childNodes)}return E},h=F=>{let N=0;return F.map(P=>{const _=N,I=N+P.wholeText.length;return N=I,{text:P.wholeText,startIdx:_,endIdx:I}})},p=(F,N)=>{const E=new RegExp(N,u.value),P=[];let _=E.exec(F);for(;_;)P.push(_),_=E.exec(F);return P},m=(F,N,E,P)=>{for(let _=E.length-1;_>=0;_--){const I=E[_],W=I.index,D=W+I[0].length;for(let z=0;z=D)break;let B=F[z];const G=Math.max(0,W-U),Q=Math.min(Z,D)-U-G;G>0&&(B=B.splitText(G)),Q{for(const E of F)E.innerHTML=E.innerHTML.replace(new RegExp(a.value,u.value),()=>`${a.value}`)},x=()=>{const F=document.querySelectorAll(".editable-element mark");for(const N of F)setTimeout(()=>{const E=N.parentNode,P=N.textContent;E.replaceChild(document.createTextNode(P),N)},0)},R=()=>{x(),setTimeout(()=>{for(let F=0;Fz).join(""),D=p(W,a.value);m(_,I,D,F)}}},0)},y=()=>{const F=document.querySelectorAll("mark[data-index]");for(const N of F)setTimeout(()=>{const E=N.dataset.index;E!==void 0&&+E===l.value?N.classList.add("active"):N.classList.remove("active")},0)},g=()=>{if(l.value===-1)return;const F=c.value[l.value];if(F.slideId===i.value.id)setTimeout(y,0);else{const N=r.value.findIndex(E=>E.id===F.slideId);N!==-1&&t.updateSlideIndex(N)}},S=()=>{if(!a.value)return Sn.warning("请先输入查找内容");e.setActiveElementIdList([]),l.value===-1?f():l.value{if(!a.value)return Sn.warning("请先输入查找内容");e.setActiveElementIdList([]),l.value===-1?f():l.value>0?l.value-=1:l.value=c.value.length-1,g()},T=()=>{if(!a.value)return;if(l.value===-1){S();return}const F=c.value[l.value];let N=null;if(F.elType==="table"){const[I,W]=F.cellIndex;N=document.querySelector(`#editable-element-${F.elId} .cell[data-cell-index="${I}_${W}"] .cell-text`)}else N=document.querySelector(`#editable-element-${F.elId} .ProseMirror`);if(!N)return;const E=document.createElement("div");E.innerHTML=N.innerHTML;let P=!1;const _=E.querySelectorAll("mark[data-index]");for(const I of _){const W=I.parentNode;if(I.classList.contains("active"))P?W.removeChild(I):(W.replaceChild(document.createTextNode(s.value),I),P=!0);else{const D=I.textContent;W.replaceChild(document.createTextNode(D),I)}}if(F.elType==="text"){const I={content:E.innerHTML};t.updateElement({id:F.elId,props:I})}else if(F.elType==="shape"){const I=i.value.elements.find(W=>W.id===F.elId);if(I&&I.type==="shape"&&I.text){const W={text:{...I.text,content:E.innerHTML}};t.updateElement({id:F.elId,props:W})}}else if(F.elType==="table"){const I=i.value.elements.find(W=>W.id===F.elId);if(I&&I.type==="table"){const D={data:I.data.map((z,ae)=>ae===F.cellIndex[0]?z.map((U,Z)=>Z===F.cellIndex[1]?{...U,text:E.innerHTML}:U):z)};t.updateElement({id:F.elId,props:D})}}c.value.splice(l.value,1),c.value.length?(l.value>c.value.length-1&&(l.value=0),Vr(()=>{R(),g()})):l.value=-1},M=()=>{var F;if(a.value){if(l.value===-1){S();return}for(let N=0;ND.id===P.slideId);if(!_)continue;const I=_.elements.find(D=>D.id===P.elId);if(!I)continue;const W=document.createElement("div");if(I.type==="text"?W.innerHTML=I.content:I.type==="shape"&&(W.innerHTML=((F=I.text)==null?void 0:F.content)||""),P.elType==="table"){const z={data:I.data.map(ae=>ae.map(U=>U.text?{...U,text:U.text.replace(new RegExp(a.value,"g"),s.value)}:U))};t.updateElement({id:P.elId,slideId:P.slideId,props:z})}else{const D=d(W),z=h(D),ae=z.map(({text:G})=>G).join(""),U=p(ae,a.value);m(D,z,U,N);const Z=W.querySelectorAll("mark[data-index]");let B=-1;for(const G of Z){const Q=+G.dataset.index,ie=G.parentNode;Q===B?ie.removeChild(G):(ie.replaceChild(document.createTextNode(s.value),G),B=Q)}if(P.elType==="text"){const G={content:W.innerHTML};t.updateElement({id:P.elId,slideId:P.slideId,props:G})}else if(P.elType==="shape"){const G=i.value.elements.find(Q=>Q.id===P.elId);if(G&&G.type==="shape"&&G.text){const Q={text:{...G.text,content:W.innerHTML}};t.updateElement({id:P.elId,slideId:P.slideId,props:Q})}}}}c.value=[],l.value=-1}},O=()=>{l.value=-1,c.value=[],a.value||x()};return Tt(a,O),Tt(o,()=>{Vr(()=>{R(),setTimeout(y,0)})}),Tt(n,()=>{n.value&&(l.value=-1,c.value=[],x())}),Vd(x),{searchWord:a,replaceWord:s,searchResults:c,searchIndex:l,modifiers:u,searchNext:S,searchPrev:L,replace:T,replaceAll:M,toggleModifiers:()=>{u.value=u.value==="g"?"gi":"g",O()}}},rxe={class:"count"},oxe={key:1,class:"footer"},ixe=Fe({__name:"SearchPanel",setup(e){const t=ft(),{searchWord:n,replaceWord:r,searchResults:o,searchIndex:i,modifiers:a,searchNext:s,searchPrev:c,replace:l,replaceAll:u,toggleModifiers:f}=nxe(),d=pe("search"),h=[{key:"search",label:"查找"},{key:"replace",label:"替换"}],p=()=>{t.setSearchPanelState(!1)},m=pe();return Gt(()=>{m.value.focus()}),Tt(d,()=>{Vr(()=>{m.value.focus()})}),(A,x)=>{const R=xe("IconClose"),y=xe("IconLeft"),g=xe("IconRight"),S=Mn("tooltip");return Y(),we(jp,{class:"search-panel",width:330,height:0,left:-270,top:90},{default:re(()=>[V("div",{class:"close-btn",onClick:x[0]||(x[0]=L=>p()),onMousedown:x[1]||(x[1]=Wt(()=>{},["stop"]))},[w(R)],32),w(As,{tabs:h,value:d.value,"onUpdate:value":x[2]||(x[2]=L=>d.value=L)},null,8,["value"]),V("div",{class:$e(["content",d.value]),onMousedown:x[12]||(x[12]=Wt(()=>{},["stop"]))},[w(Xu,{class:"input",value:H(n),"onUpdate:value":x[6]||(x[6]=L=>lr(n)?n.value=L:null),placeholder:"输入查找内容",onEnter:x[7]||(x[7]=L=>H(s)()),ref_key:"searchInpRef",ref:m},{suffix:re(()=>[V("span",rxe,gt(H(i)+1)+"/"+gt(H(o).length),1),w(Ut,{type:"vertical"}),De((Y(),ee("span",{class:$e(["ignore-case",{active:H(a)==="g"}]),onClick:x[3]||(x[3]=L=>H(f)())},[We("Aa")],2)),[[S,"忽略大小写"]]),w(Ut,{type:"vertical"}),De(w(y,{class:"next-btn left",onClick:x[4]||(x[4]=L=>H(c)())},null,512),[[S,"上一个"]]),De(w(g,{class:"next-btn right",onClick:x[5]||(x[5]=L=>H(s)())},null,512),[[S,"下一个"]])]),_:1},8,["value"]),d.value==="replace"?(Y(),we(Xu,{key:0,class:"input",value:H(r),"onUpdate:value":x[8]||(x[8]=L=>lr(r)?r.value=L:null),placeholder:"输入替换内容",onEnter:x[9]||(x[9]=L=>H(l)())},null,8,["value"])):Be("",!0),d.value==="replace"?(Y(),ee("div",oxe,[w(et,{disabled:!H(n),style:{"margin-left":"5px"},onClick:x[10]||(x[10]=L=>H(l)())},{default:re(()=>[We("替换")]),_:1},8,["disabled"]),w(et,{disabled:!H(n),type:"primary",style:{"margin-left":"5px"},onClick:x[11]||(x[11]=L=>H(u)())},{default:re(()=>[We("全部替换")]),_:1},8,["disabled"])])):Be("",!0)],34)]),_:1})}}}),axe=Ue(ixe,[["__scopeId","data-v-2536ae51"]]),sxe={class:"container"},lxe={class:"notes"},cxe=["onClick"],uxe={class:"header note-header"},fxe={class:"user"},dxe={class:"avatar"},hxe={class:"user-info"},pxe={class:"username"},mxe={class:"time"},vxe={class:"btns"},gxe=["onClick"],Axe=["onClick"],Rxe={class:"content"},yxe={key:0,class:"replies"},xxe={class:"header reply-header"},bxe={class:"user"},Sxe={class:"avatar"},Mxe={class:"user-info"},wxe={class:"username"},Lxe={class:"time"},Oxe={class:"btns"},Txe=["onClick"],kxe={class:"content"},Nxe={key:1,class:"note-reply"},Pxe={class:"reply-btns"},Cxe={key:0,class:"empty"},Ixe={class:"send"},Fxe={class:"footer"},_xe=Fe({__name:"NotesPanel",setup(e){const t=ct(),n=ft(),{slideIndex:r,currentSlide:o}=Xe(t),{handleElementId:i}=Xe(n),a=pe(""),s=pe(""),c=Me(()=>{var y;return((y=o.value)==null?void 0:y.notes)||[]}),l=pe(""),u=pe(""),f=pe(),d=()=>{if(!a.value){f.value&&f.value.focus();return}const y={id:pn(),content:a.value,time:new Date().getTime(),user:"测试用户"};i.value&&(y.elId=i.value);const g=[...c.value,y];t.updateSlide({notes:g}),a.value=""},h=y=>{const g=c.value.filter(S=>S.id!==y);t.updateSlide({notes:g})},p=()=>{if(!s.value)return;const y=c.value.find(T=>T.id===u.value);if(!y)return;const g=[...y.replies||[],{id:pn(),content:s.value,time:new Date().getTime(),user:"测试用户"}],S={...y,replies:g},L=c.value.map(T=>T.id===u.value?S:T);t.updateSlide({notes:L}),s.value="",u.value=""},m=(y,g)=>{const S=c.value.find(O=>O.id===y);if(!S||!S.replies)return;const L=S.replies.filter(O=>O.id!==g),T={...S,replies:L},M=c.value.map(O=>O.id===y?T:O);t.updateSlide({notes:M})},A=y=>{l.value=y.id,y.elId?o.value.elements.map(S=>S.id).includes(y.elId)?n.setActiveElementIdList([y.elId]):n.setActiveElementIdList([]):n.setActiveElementIdList([])},x=()=>{t.updateSlide({notes:[]})},R=()=>{n.setNotesPanelState(!1)};return(y,g)=>{const S=xe("IconUser"),L=xe("IconDelete"),T=Mn("tooltip");return Y(),we(jp,{class:"notes-panel",width:300,height:560,title:`幻灯片${H(r)+1}的批注`,left:-270,top:90,minWidth:300,minHeight:400,maxWidth:480,maxHeight:780,resizeable:"",onClose:g[7]||(g[7]=M=>R())},{default:re(()=>[V("div",sxe,[V("div",lxe,[(Y(!0),ee(Ve,null,it(c.value,M=>{var O;return Y(),ee("div",{class:$e(["note",{active:l.value===M.id}]),key:M.id,onClick:k=>A(M)},[V("div",uxe,[V("div",fxe,[V("div",dxe,[w(S)]),V("div",hxe,[V("div",pxe,gt(M.user),1),V("div",mxe,gt(new Date(M.time).toLocaleString()),1)])]),V("div",vxe,[V("div",{class:"btn reply",onClick:k=>u.value=M.id},"回复",8,gxe),V("div",{class:"btn delete",onClick:Wt(k=>h(M.id),["stop"])},"删除",8,Axe)])]),V("div",Rxe,gt(M.content),1),(O=M.replies)!=null&&O.length?(Y(),ee("div",yxe,[(Y(!0),ee(Ve,null,it(M.replies,k=>(Y(),ee("div",{class:"reply-item",key:k.id},[V("div",xxe,[V("div",bxe,[V("div",Sxe,[w(S)]),V("div",Mxe,[V("div",wxe,gt(k.user),1),V("div",Lxe,gt(new Date(k.time).toLocaleString()),1)])]),V("div",Oxe,[V("div",{class:"btn delete",onClick:Wt(F=>m(M.id,k.id),["stop"])},"删除",8,Txe)])]),V("div",kxe,gt(k.content),1)]))),128))])):Be("",!0),u.value===M.id?(Y(),ee("div",Nxe,[w(cx,{padding:6,value:s.value,"onUpdate:value":g[0]||(g[0]=k=>s.value=k),placeholder:"输入回复内容",rows:1},null,8,["value"]),V("div",Pxe,[w(et,{class:"btn",size:"small",onClick:g[1]||(g[1]=k=>u.value="")},{default:re(()=>[We("取消")]),_:1}),w(et,{class:"btn",size:"small",type:"primary",onClick:g[2]||(g[2]=k=>p())},{default:re(()=>[We("回复")]),_:1})])])):Be("",!0)],10,cxe)}),128)),c.value.length?Be("",!0):(Y(),ee("div",Cxe,"本页暂无批注"))]),V("div",Ixe,[w(cx,{ref_key:"textAreaRef",ref:f,value:a.value,"onUpdate:value":g[3]||(g[3]=M=>a.value=M),padding:6,placeholder:`输入批注(为${H(i)?"选中元素":"当前页幻灯片"})`,rows:2,onFocus:g[4]||(g[4]=M=>{u.value="",l.value=""})},null,8,["value","placeholder"]),V("div",Fxe,[De((Y(),we(et,{class:"btn",style:{flex:"1"},onClick:g[5]||(g[5]=M=>x())},{default:re(()=>[w(L)]),_:1})),[[T,"清空本页批注"]]),w(et,{type:"primary",class:"btn",style:{flex:"12"},onClick:g[6]||(g[6]=M=>d())},{default:re(()=>[We("添加批注")]),_:1})])])])]),_:1},8,["title"])}}}),Exe=Ue(_xe,[["__scopeId","data-v-3d769863"]]),Xxe={class:"pptist-editor"},Wxe={class:"layout-content"},Vxe={class:"layout-content-center"},Uxe=Fe({__name:"index",setup(e){const t=ft(),{dialogForExport:n,showSelectPanel:r,showSearchPanel:o,showNotesPanel:i}=Xe(t),a=()=>t.setDialogForExport(""),s=pe(40);return mq(),vq(),(c,l)=>(Y(),ee(Ve,null,[V("div",Xxe,[w(yoe,{class:"layout-header"}),V("div",Wxe,[w(rpe,{class:"layout-content-left"}),V("div",Vxe,[w(lhe,{class:"center-top"}),w(bde,{class:"center-body",style:Le({height:`calc(100% - ${s.value+40}px)`})},null,8,["style"]),w(JRe,{class:"center-bottom",height:s.value,"onUpdate:height":l[0]||(l[0]=u=>s.value=u),style:Le({height:`${s.value}px`})},null,8,["height","style"])]),w(BRe,{class:"layout-content-right"})])]),H(r)?(Y(),we(txe,{key:0})):Be("",!0),H(o)?(Y(),we(axe,{key:1})):Be("",!0),H(i)?(Y(),we(Exe,{key:2})):Be("",!0),w(Zp,{visible:!!H(n),width:680,onClosed:l[1]||(l[1]=u=>a())},{default:re(()=>[w(F3e)]),_:1},8,["visible"])],64))}}),Yxe=Ue(Uxe,[["__scopeId","data-v-39fd665d"]]),H_=()=>{const e=ct(),{slides:t,slideIndex:n,formatedAnimations:r}=Xe(e),o=pe(0),i=pe(!1),a=pe(n.value),s=()=>{if(i.value)return;const{animations:N,autoNext:E}=r.value[o.value];o.value+=1,i.value=!0;let P=0;for(const _ of N){const I=document.querySelector(`#screen-element-${_.elId} [class^=base-element-]`);if(!I){P+=1;continue}const W=`${bi}${_.effect}`;I.style.removeProperty("--animate-duration");for(const z of I.classList)z.indexOf(bi)!==-1&&I.classList.remove(z,`${bi}animated`);I.style.setProperty("--animate-duration",`${_.duration}ms`),I.classList.add(W,`${bi}animated`);const D=()=>{_.type!=="out"&&(I.style.removeProperty("--animate-duration"),I.classList.remove(W,`${bi}animated`)),P+=1,P===N.length&&(i.value=!1,E&&s())};I.addEventListener("animationend",D,{once:!0})}},c=()=>{o.value-=1;const{animations:N}=r.value[o.value];for(const E of N){const P=document.querySelector(`#screen-element-${E.elId} [class^=base-element-]`);if(P){P.style.removeProperty("--animate-duration");for(const _ of P.classList)_.indexOf(bi)!==-1&&P.classList.remove(_,`${bi}animated`)}}N.every(E=>E.type==="attention")&&p()},l=pe(0),u=()=>{l.value&&(clearInterval(l.value),l.value=0)};Tn(u);const f=pe(!1),d=N=>{f.value=N},h=_n.throttle(function(N){Sn.success(N)},1e3,{leading:!0,trailing:!1}),p=()=>{r.value.length&&o.value>0?c():n.value>0?(e.updateSlideIndex(n.value-1),n.value{r.value.length&&o.value{u(),Sn.success("开始自动放映"),l.value=setInterval(m,A.value)},R=N=>{u(),A.value=N,x()},y=_n.throttle(function(N){N.deltaY<0?p():N.deltaY>0&&m()},500,{leading:!0,trailing:!1}),g=pe(null),S=N=>{g.value={x:N.changedTouches[0].pageX,y:N.changedTouches[0].pageY}},L=N=>{if(!g.value)return;const E=Math.abs(g.value.x-N.changedTouches[0].pageX),P=N.changedTouches[0].pageY-g.value.y;Math.abs(P)>E&&Math.abs(P)>50&&(g.value=null,P>0?p():m())},T=N=>{const E=N.key.toUpperCase();E===yt.UP||E===yt.LEFT||E===yt.PAGEUP?p():(E===yt.DOWN||E===yt.RIGHT||E===yt.SPACE||E===yt.ENTER||E===yt.PAGEDOWN)&&m()};Gt(()=>document.addEventListener("keydown",T)),Tn(()=>document.removeEventListener("keydown",T));const M=()=>{e.updateSlideIndex(n.value-1),o.value=0},O=()=>{e.updateSlideIndex(n.value+1),o.value=0},k=N=>{e.updateSlideIndex(N),o.value=0};return{autoPlayTimer:l,autoPlayInterval:A,setAutoPlayInterval:R,autoPlay:x,closeAutoPlay:u,loopPlay:f,setLoopPlay:d,mousewheelListener:y,touchStartListener:S,touchEndListener:L,turnPrevSlide:M,turnNextSlide:O,turnSlideToIndex:k,turnSlideToId:N=>{const E=t.value.findIndex(P=>P.id===N);E!==-1&&(e.updateSlideIndex(E),o.value=0)},execPrev:p,execNext:m,animationIndex:o}},G_=e=>{const t=ct(),{viewportRatio:n}=Xe(t),r=pe(0),o=pe(0),i=()=>{const a=(e==null?void 0:e.value)||document.body,s=a.clientWidth,c=a.clientHeight;let l,u;c/s===n.value?(l=s,u=c):c/s>n.value?(l=s,u=s*n.value):(l=c/n.value,u=c),r.value=l,o.value=u};return Gt(()=>{i(),window.addEventListener("resize",i)}),Tn(()=>{window.removeEventListener("resize",i)}),{slideWidth:r,slideHeight:o}},z_=()=>{const e=pe(!0),t=pe(!0),{exitScreening:n}=Mc(),r=()=>{e.value=p3(),!e.value&&t.value&&n(),t.value=!0};return Gt(()=>{e.value=p3(),document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r)}),Tn(()=>{document.removeEventListener("fullscreenchange",r),document.removeEventListener("webkitfullscreenchange",r)}),{fullscreenState:e,manualExitFullscreen:()=>{e.value&&(t.value=!1,$P())}}},Qxe={class:"element-content"},Zxe=Fe({__name:"ScreenVideoElement",props:{elementInfo:{}},setup(e){const{currentSlide:t}=Xe(ct()),n=jo(tf)||pe(1),r=jo(o5)||pe(""),o=Me(()=>t.value.id===r.value);return(i,a)=>(Y(),ee("div",{class:"base-element-video screen-element-video",style:Le({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:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[V("div",Qxe,[o.value?(Y(),we(PF,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,src:i.elementInfo.src,poster:i.elementInfo.poster,autoplay:i.elementInfo.autoplay,scale:H(n)},null,8,["width","height","src","poster","autoplay","scale"])):Be("",!0)])],4)],4))}}),Bxe=Ue(Zxe,[["__scopeId","data-v-d9f232b0"]]),Dxe={class:"element-content"},Kxe=Fe({__name:"ScreenAudioElement",props:{elementInfo:{}},setup(e){const t=e,{viewportRatio:n,currentSlide:r}=Xe(ct()),o=jo(tf)||pe(1),i=jo(o5)||pe(""),a=Me(()=>r.value.id===i.value),s=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),c=Me(()=>{const f=Ht,d=Ht*n.value,h=280/o.value,p=50/o.value,m=t.elementInfo.width,A=t.elementInfo.height,x=t.elementInfo.left,R=t.elementInfo.top;let y=0,g=A;return x+h>=f&&(y=m-h),R+A+p>=d&&(g=-p),{left:y+"px",top:g+"px"}}),l=pe(),u=()=>{l.value&&l.value.toggle()};return(f,d)=>{const h=xe("IconVolumeNotice");return Y(),ee("div",{class:"base-element-audio screen-element-audio",style:Le({top:f.elementInfo.top+"px",left:f.elementInfo.left+"px",width:f.elementInfo.width+"px",height:f.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${f.elementInfo.rotate}deg)`})},[V("div",Dxe,[w(h,{class:"audio-icon",style:Le({fontSize:s.value,color:f.elementInfo.color}),onClick:d[0]||(d[0]=p=>u())},null,8,["style"]),a.value?(Y(),we(FF,{key:0,class:"audio-player",ref_key:"audioPlayerRef",ref:l,style:Le({...c.value}),src:f.elementInfo.src,loop:f.elementInfo.loop,autoplay:f.elementInfo.autoplay,scale:H(o)},null,8,["style","src","loop","autoplay","scale"])):Be("",!0)])],4)],4)}}}),Hxe=Ue(Kxe,[["__scopeId","data-v-94802f8e"]]),Gxe=["id","title"],zxe=Fe({__name:"ScreenElement",props:{elementInfo:{},elementIndex:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(e){const t=e,n=Me(()=>({[Nt.IMAGE]:WF,[Nt.TEXT]:VF,[Nt.SHAPE]:UF,[Nt.LINE]:YF,[Nt.CHART]:QF,[Nt.TABLE]:ZF,[Nt.LATEX]:BF,[Nt.VIDEO]:Bxe,[Nt.AUDIO]:Hxe})[t.elementInfo.type]||null),{formatedAnimations:r,theme:o}=Xe(ct()),i=Me(()=>{const s=r.value.findIndex(l=>l.animations.map(f=>f.elId).includes(t.elementInfo.id));if(s===-1||sl.elId===t.elementInfo.id);return(c==null?void 0:c.type)==="in"}),a=()=>{const s=t.elementInfo.link;s&&(s.type==="web"?(t.manualExitFullscreen(),window.open(s.target)):s.type==="slide"&&t.turnSlideToId(s.target))};return(s,c)=>{var l;return Y(),ee("div",{class:$e(["screen-element",{link:s.elementInfo.link}]),id:`screen-element-${s.elementInfo.id}`,style:Le({zIndex:s.elementIndex,color:H(o).fontColor,fontFamily:H(o).fontName,visibility:i.value?"hidden":"visible"}),title:((l=s.elementInfo.link)==null?void 0:l.target)||"",onClick:c[0]||(c[0]=u=>a())},[(Y(),we(xs(n.value),{elementInfo:s.elementInfo},null,8,["elementInfo"]))],14,Gxe)}}}),Jxe=Ue(zxe,[["__scopeId","data-v-da31ab53"]]),$xe=Fe({__name:"ScreenSlide",props:{slide:{},scale:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(e){const t=e,{viewportRatio:n}=Xe(ct()),r=Me(()=>t.slide.background),{backgroundStyle:o}=d2(r),i=Me(()=>t.slide.id);return Ku(o5,i),(a,s)=>(Y(),ee("div",{class:"screen-slide",style:Le({width:H(Ht)+"px",height:H(Ht)*H(n)+"px",transform:`scale(${a.scale})`})},[V("div",{class:"background",style:Le({...H(o)})},null,4),(Y(!0),ee(Ve,null,it(a.slide.elements,(c,l)=>(Y(),we(Jxe,{key:c.id,elementInfo:c,elementIndex:l+1,animationIndex:a.animationIndex,turnSlideToId:a.turnSlideToId,manualExitFullscreen:a.manualExitFullscreen},null,8,["elementInfo","elementIndex","animationIndex","turnSlideToId","manualExitFullscreen"]))),128))],4))}}),jxe=Ue($xe,[["__scopeId","data-v-7ee8460e"]]),qxe={class:"screen-slide-list"},ebe=Fe({__name:"ScreenSlideList",props:{slideWidth:{},slideHeight:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(e){const t=e,{slides:n,slideIndex:r}=Xe(ct()),o=Me(()=>n.value.map(a=>{let s=a.turningMode;if(s||(s="slideY"),s==="random"){const c=w_.filter(l=>!["random","no"].includes(l.value)).map(l=>l.value);s=c[Math.floor(Math.random()*c.length)]}return{...a,turningMode:s}})),i=Me(()=>t.slideWidth/Ht);return Ku(tf,i),(a,s)=>(Y(),ee("div",qxe,[(Y(!0),ee(Ve,null,it(o.value,(c,l)=>{var u;return Y(),ee("div",{class:$e(["slide-item",`turning-mode-${c.turningMode}`,{current:l===H(r),before:lH(r),hide:(l===H(r)-1||l===H(r)+1)&&c.turningMode!==o.value[H(r)].turningMode}]),key:c.id},[Math.abs(H(r)-l)<2||(u=c.animations)!=null&&u.length?(Y(),ee("div",{key:0,class:"slide-content",style:Le({width:a.slideWidth+"px",height:a.slideHeight+"px"})},[w(jxe,{slide:c,scale:i.value,animationIndex:a.animationIndex,turnSlideToId:a.turnSlideToId,manualExitFullscreen:a.manualExitFullscreen},null,8,["slide","scale","animationIndex","turnSlideToId","manualExitFullscreen"])],4)):Be("",!0)],2)}),128))]))}}),J_=Ue(ebe,[["__scopeId","data-v-21b28464"]]),tbe={class:"slide-thumbnails"},nbe={class:"return-button"},rbe={class:"slide-thumbnails-content"},obe=["onClick"],ibe=Fe({__name:"SlideThumbnails",props:{turnSlideToIndex:{type:Function}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,{slides:o,slideIndex:i}=Xe(ct()),{slidesLoadLimit:a}=Bp(),s=c=>{n.turnSlideToIndex(c),r("close")};return(c,l)=>{const u=xe("IconArrowCircleLeft");return Y(),ee("div",tbe,[V("div",nbe,[w(u,{class:"icon",onClick:l[0]||(l[0]=f=>r("close"))})]),V("div",rbe,[(Y(!0),ee(Ve,null,it(H(o),(f,d)=>(Y(),ee("div",{class:$e(["thumbnail",{active:d===H(i)}]),key:f.id,onClick:h=>s(d)},[w(Fa,{slide:f,size:150,visible:ds.value?p.value/s.value.width:1),x=Me(()=>s.value?m.value/s.value.height:1),R=()=>{a.value&&(p.value=a.value.clientWidth,m.value=a.value.clientHeight)},y=new ResizeObserver(R);Gt(()=>{a.value&&y.observe(a.value)}),Tn(()=>{a.value&&y.unobserve(a.value)}),Gt(()=>{!s.value||!a.value||(i=s.value.getContext("2d"),i&&(s.value.width=a.value.clientWidth,s.value.height=a.value.clientHeight,i.lineCap="round",i.lineJoin="round"))});const S=()=>{i&&(r.model==="mark"?(i.globalCompositeOperation="xor",i.globalAlpha=.5):r.model==="pen"&&(i.globalCompositeOperation="source-over",i.globalAlpha=1))};Tt(()=>r.model,S);const L=(D,z,ae)=>{if(!i)return;const U=c.x,Z=c.y;i.lineWidth=ae,i.strokeStyle=r.color,i.beginPath(),i.moveTo(U,Z),i.lineTo(D,z),i.stroke(),i.closePath()},T=(D,z)=>{if(!i||!s.value)return;const ae=c.x,U=c.y,Z=r.rubberSize/2,B=Z*Math.sin(Math.atan((z-U)/(D-ae))),G=Z*Math.cos(Math.atan((z-U)/(D-ae))),Q=[ae+B,U-G],ie=[ae-B,U+G],q=[D+B,z-G],oe=[D-B,z+G];i.save(),i.beginPath(),i.arc(D,z,Z,0,Math.PI*2),i.clip(),i.clearRect(0,0,s.value.width,s.value.height),i.restore(),i.save(),i.beginPath(),i.moveTo(...Q),i.lineTo(...q),i.lineTo(...oe),i.lineTo(...ie),i.closePath(),i.clip(),i.clearRect(0,0,s.value.width,s.value.height),i.restore()},M=(D,z)=>{const ae=c.x,U=c.y;return Math.sqrt((D-ae)*(D-ae)+(z-U)*(z-U))},O=(D,z)=>{const Z=r.penSize,B=3,G=D/z;let Q;return G<=.1?Q=Z:G>=10?Q=B:Q=Z-G/10*Z,f===-1?Q:Q*1/3+f*2/3},k=(D,z)=>{const ae=new Date().getTime();if(r.model==="pen"){const U=M(D,z),Z=ae-u,B=O(U,Z);L(D,z,B),f=B}else r.model==="mark"?L(D,z,r.markSize):T(D,z);c={x:D,y:z},u=new Date().getTime()},F=D=>{if(!s.value)return[0,0];const z=D instanceof MouseEvent?D:D.changedTouches[0],ae=s.value.getBoundingClientRect(),U=z.pageX-ae.x,Z=z.pageY-ae.y;return[U,Z]},N=D=>{const[z,ae]=F(D),U=z/A.value,Z=ae/x.value;l=!0,c={x:U,y:Z},u=new Date().getTime(),D instanceof MouseEvent||(d.value={x:z,y:ae},h.value=!0)},E=D=>{const[z,ae]=F(D),U=z/A.value,Z=ae/x.value;d.value={x:z,y:ae},l&&k(U,Z)},P=()=>{l&&(l=!1,o("end"))};return t({clearCanvas:()=>{!i||!s.value||(i.clearRect(0,0,s.value.width,s.value.height),o("end"))},getImageDataURL:()=>{var D;return(D=s.value)==null?void 0:D.toDataURL()},setImageDataURL:D=>{if(!(!i||!s.value)&&(i.clearRect(0,0,s.value.width,s.value.height),D)){i.globalCompositeOperation="source-over",i.globalAlpha=1;const z=new Image;z.src=D,z.onload=()=>{i.drawImage(z,0,0),S()}}}}),(D,z)=>{const ae=xe("IconWrite"),U=xe("IconHighLight");return Y(),ee("div",{class:"writing-board",ref_key:"writingBoardRef",ref:a},[D.blackboard?(Y(),ee("div",sbe)):Be("",!0),V("canvas",{class:"canvas",ref_key:"canvasRef",ref:s,style:Le({width:p.value+"px",height:m.value+"px"}),onMousedown:z[0]||(z[0]=Z=>N(Z)),onMousemove:z[1]||(z[1]=Z=>E(Z)),onMouseup:z[2]||(z[2]=Z=>P()),onTouchstart:z[3]||(z[3]=Z=>N(Z)),onTouchmove:z[4]||(z[4]=Z=>E(Z)),onTouchend:z[5]||(z[5]=Z=>{P(),h.value=!1}),onMouseleave:z[6]||(z[6]=Z=>{P(),h.value=!1}),onMouseenter:z[7]||(z[7]=Z=>h.value=!0)},null,36),h.value?(Y(),ee(Ve,{key:1},[D.model==="eraser"?(Y(),ee("div",{key:0,class:"eraser",style:Le({left:d.value.x-D.rubberSize/2+"px",top:d.value.y-D.rubberSize/2+"px",width:D.rubberSize+"px",height:D.rubberSize+"px"})},null,4)):Be("",!0),D.model==="pen"?(Y(),ee("div",{key:1,class:"pen",style:Le({left:d.value.x-D.penSize/2+"px",top:d.value.y-D.penSize*6+D.penSize/2+"px",color:D.color})},[D.model==="pen"?(Y(),we(ae,{key:0,class:"icon",size:D.penSize*6},null,8,["size"])):Be("",!0)],4)):Be("",!0),D.model==="mark"?(Y(),ee("div",{key:2,class:"pen",style:Le({left:d.value.x-D.markSize/2+"px",top:d.value.y+"px",color:D.color})},[D.model==="mark"?(Y(),we(U,{key:0,class:"icon",size:D.markSize*1.5},null,8,["size"])):Be("",!0)],4)):Be("",!0)],64)):Be("",!0)],512)}}}),cbe=Ue(lbe,[["__scopeId","data-v-55ae5f6c"]]),Z5=e=>(on("data-v-47295ef6"),e=e(),an(),e),ube={class:"writing-board-tool"},fbe={class:"tool-content"},dbe={class:"size"},hbe=Z5(()=>V("div",{class:"label"},"墨迹粗细:",-1)),pbe={class:"size"},mbe=Z5(()=>V("div",{class:"label"},"墨迹粗细:",-1)),vbe={class:"size"},gbe=Z5(()=>V("div",{class:"label"},"橡皮大小:",-1)),Abe={class:"colors"},Rbe=["onClick"],ybe=Fe({__name:"WritingBoardTool",props:{slideWidth:{},slideHeight:{},left:{default:-5},top:{default:-5}},emits:["close"],setup(e,{emit:t}){const n=["#000000","#ffffff","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c","#ffff3a"],r=t,{currentSlide:o}=Xe(ct()),i=pe(),a=pe("#e2534d"),s=pe("pen"),c=pe(!1),l=pe(""),u=pe(6),f=pe(24),d=pe(80),h=R=>{s.value===R?l.value=l.value===R?"":R:(l.value&&(l.value=""),s.value=R)},p=()=>{i.value.clearCanvas()},m=R=>{s.value==="eraser"&&(s.value="pen"),a.value=R},A=()=>{r("close")};Tt(o,()=>{xa.writingBoardImgs.where("id").equals(o.value.id).toArray().then(R=>{const y=R[0];i.value.setImageDataURL((y==null?void 0:y.dataURL)||"")})},{immediate:!0});const x=()=>{const R=i.value.getImageDataURL();R&&xa.writingBoardImgs.where("id").equals(o.value.id).toArray().then(y=>{const g=y[0];g?xa.writingBoardImgs.update(g,{dataURL:R}):xa.writingBoardImgs.add({id:o.value.id,dataURL:R})})};return(R,y)=>{const g=xe("IconWrite"),S=xe("IconHighLight"),L=xe("IconErase"),T=xe("IconClear"),M=xe("IconFill"),O=xe("IconClose"),k=Mn("tooltip");return Y(),ee("div",ube,[V("div",{class:"writing-board-wrap",style:Le({width:R.slideWidth+"px",height:R.slideHeight+"px"})},[w(cbe,{ref_key:"writingBoardRef",ref:i,color:a.value,blackboard:c.value,model:s.value,penSize:u.value,markSize:f.value,rubberSize:d.value,onEnd:y[0]||(y[0]=F=>x())},null,8,["color","blackboard","model","penSize","markSize","rubberSize"])],4),w(jp,{class:"tools-panel",width:520,height:50,left:R.left,top:R.top,moveable:l.value===""},{default:re(()=>[V("div",{class:"tools",onMousedown:y[10]||(y[10]=Wt(()=>{},["stop"]))},[V("div",fbe,[w(kt,{trigger:"manual",value:l.value==="pen"},{content:re(()=>[V("div",dbe,[hbe,w(no,{class:"size-slider",min:4,max:10,step:2,value:u.value,"onUpdate:value":y[1]||(y[1]=F=>u.value=F)},null,8,["value"])])]),default:re(()=>[De((Y(),ee("div",{class:$e(["btn",{active:s.value==="pen"}]),onClick:y[2]||(y[2]=F=>h("pen"))},[w(g,{class:"icon"})],2)),[[k,"画笔"]])]),_:1},8,["value"]),w(kt,{trigger:"manual",value:l.value==="mark"},{content:re(()=>[V("div",pbe,[mbe,w(no,{class:"size-slider",min:16,max:40,step:4,value:f.value,"onUpdate:value":y[3]||(y[3]=F=>f.value=F)},null,8,["value"])])]),default:re(()=>[De((Y(),ee("div",{class:$e(["btn",{active:s.value==="mark"}]),onClick:y[4]||(y[4]=F=>h("mark"))},[w(S,{class:"icon"})],2)),[[k,"荧光笔"]])]),_:1},8,["value"]),w(kt,{trigger:"manual",value:l.value==="eraser"},{content:re(()=>[V("div",vbe,[gbe,w(no,{class:"size-slider",min:20,max:200,step:20,value:d.value,"onUpdate:value":y[5]||(y[5]=F=>d.value=F)},null,8,["value"])])]),default:re(()=>[De((Y(),ee("div",{class:$e(["btn",{active:s.value==="eraser"}]),onClick:y[6]||(y[6]=F=>h("eraser"))},[w(L,{class:"icon"})],2)),[[k,"橡皮擦"]])]),_:1},8,["value"]),De((Y(),ee("div",{class:"btn",onClick:y[7]||(y[7]=F=>p())},[w(T,{class:"icon"})])),[[k,"清除墨迹"]]),De((Y(),ee("div",{class:$e(["btn",{active:c.value}]),onClick:y[8]||(y[8]=F=>c.value=!c.value)},[w(M,{class:"icon"})],2)),[[k,"黑板"]]),V("div",Abe,[(Y(),ee(Ve,null,it(n,F=>V("div",{class:$e(["color",{active:F===a.value}]),key:F,style:Le({backgroundColor:F}),onClick:N=>m(F)},null,14,Rbe)),64))])]),De((Y(),ee("div",{class:"btn",onClick:y[9]||(y[9]=F=>A())},[w(O,{class:"icon"})])),[[k,"关闭画笔"]])],32)]),_:1},8,["left","top","moveable"])])}}}),$_=Ue(ybe,[["__scopeId","data-v-47295ef6"]]),xbe=e=>(on("data-v-92c1f9be"),e=e(),an(),e),bbe={class:"header"},Sbe={class:"content"},Mbe={class:"timer"},wbe=["value","disabled"],Lbe=xbe(()=>V("div",{class:"colon"},":",-1)),Obe={class:"timer"},Tbe=["value","disabled"],kbe=Fe({__name:"CountdownTimer",props:{left:{default:5},top:{default:5}},emits:["close"],setup(e,{emit:t}){const n=t,r=pe(null),o=pe(!1),i=pe(!1),a=pe(0),s=Me(()=>Math.floor(a.value/60)),c=Me(()=>a.value%60),l=Me(()=>!i.value||o.value),u=()=>{r.value&&clearInterval(r.value)};Tn(u);const f=()=>{u(),o.value=!1},d=()=>{u(),o.value=!1,i.value?a.value=600:a.value=0},h=()=>{u(),i.value?r.value=setInterval(()=>{a.value=a.value-1,a.value<=0&&d()},1e3):r.value=setInterval(()=>{a.value=a.value+1,a.value>36e3&&f()},1e3),o.value=!0},p=()=>{o.value?f():h()},m=()=>{i.value=!i.value,d()},A=(x,R)=>{const y=x.target;let g=y.value;/^(\d)+$/.test(g)?(R==="second"&&+g>=60&&(g="59"),a.value=R==="minute"?+g*60+c.value:+g+s.value*60):y.value=X0(R==="minute"?s.value:c.value,2)};return(x,R)=>{const y=xe("IconClose");return Y(),we(jp,{class:"countdown-timer",width:180,height:110,left:x.left,top:x.top},{default:re(()=>[V("div",bbe,[V("span",{class:"text-btn",onClick:R[0]||(R[0]=g=>p())},gt(o.value?"暂停":"开始"),1),V("span",{class:"text-btn",onClick:R[1]||(R[1]=g=>d())},"重置"),V("span",{class:$e(["text-btn",{active:i.value}]),onClick:R[2]||(R[2]=g=>m())},"倒计时",2)]),V("div",Sbe,[V("div",Mbe,[V("input",{type:"text",value:H(X0)(s.value,2),maxlength:3,disabled:l.value,onMousedown:R[3]||(R[3]=Wt(()=>{},["stop"])),onBlur:R[4]||(R[4]=g=>A(g,"minute")),onKeydown:[R[5]||(R[5]=Wt(()=>{},["stop"])),R[6]||(R[6]=gc(Wt(g=>A(g,"minute"),["stop"]),["enter"]))]},null,40,wbe)]),Lbe,V("div",Obe,[V("input",{type:"text",value:H(X0)(c.value,2),maxlength:3,disabled:l.value,onMousedown:R[7]||(R[7]=Wt(()=>{},["stop"])),onBlur:R[8]||(R[8]=g=>A(g,"second")),onKeydown:[R[9]||(R[9]=Wt(()=>{},["stop"])),R[10]||(R[10]=gc(Wt(g=>A(g,"second"),["stop"]),["enter"]))]},null,40,Tbe)])]),V("div",{class:"close-btn",onClick:R[11]||(R[11]=g=>n("close"))},[w(y,{class:"icon"})])]),_:1},8,["left","top"])}}}),j_=Ue(kbe,[["__scopeId","data-v-92c1f9be"]]),Nbe={class:"tools-left"},Pbe={class:"content"},Cbe=Fe({__name:"BaseView",props:{changeViewMode:{type:Function}},setup(e){const t=e,{slides:n,slideIndex:r}=Xe(ct()),{autoPlayTimer:o,autoPlay:i,closeAutoPlay:a,autoPlayInterval:s,setAutoPlayInterval:c,loopPlay:l,setLoopPlay:u,mousewheelListener:f,touchStartListener:d,touchEndListener:h,turnPrevSlide:p,turnNextSlide:m,turnSlideToIndex:A,turnSlideToId:x,execPrev:R,execNext:y,animationIndex:g}=H_(),{slideWidth:S,slideHeight:L}=G_(),{exitScreening:T}=Mc(),{fullscreenState:M,manualExitFullscreen:O}=z_(),k=pe(!1),F=pe(!1),N=pe(!1),E=pe(!1),P=pe(!1),_=()=>[{text:"上一页",subText:"↑ ←",disable:r.value<=0,handler:()=>p()},{text:"下一页",subText:"↓ →",disable:r.value>=n.value.length-1,handler:()=>m()},{text:"第一页",disable:r.value===0,handler:()=>A(0)},{text:"最后一页",disable:r.value===n.value.length-1,handler:()=>A(n.value.length-1)},{divider:!0},{text:o.value?"取消自动放映":"自动放映",handler:o.value?a:i,children:[{text:"2.5秒",subText:s.value===2500?"√":"",handler:()=>c(2500)},{text:"5秒",subText:s.value===5e3?"√":"",handler:()=>c(5e3)},{text:"7.5秒",subText:s.value===7500?"√":"",handler:()=>c(7500)},{text:"10秒",subText:s.value===1e4?"√":"",handler:()=>c(1e4)}]},{text:"循环放映",subText:l.value?"√":"",handler:()=>u(!l.value)},{divider:!0},{text:"显示工具栏",handler:()=>k.value=!0},{text:"查看所有幻灯片",handler:()=>E.value=!0},{text:"画笔工具",handler:()=>F.value=!0},{text:"演讲者视图",handler:()=>t.changeViewMode("presenter")},{divider:!0},{text:"结束放映",subText:"ESC",handler:T}];return(I,W)=>{const D=xe("IconLeftTwo"),z=xe("IconRightTwo"),ae=xe("IconWrite"),U=xe("IconMagic"),Z=xe("IconStopwatchStart"),B=xe("IconListView"),G=xe("IconOffScreenOne"),Q=xe("IconFullScreenOne"),ie=xe("IconPower"),q=Mn("contextmenu"),oe=Mn("tooltip");return Y(),ee("div",{class:$e(["base-view",{"laser-pen":P.value}])},[De(w(J_,{slideWidth:H(S),slideHeight:H(L),animationIndex:H(g),turnSlideToId:H(x),manualExitFullscreen:H(O),onWheel:W[0]||(W[0]=he=>H(f)(he)),onTouchstart:W[1]||(W[1]=he=>H(d)(he)),onTouchend:W[2]||(W[2]=he=>H(h)(he))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[q,_]]),E.value?(Y(),we(abe,{key:0,turnSlideToIndex:H(A),onClose:W[3]||(W[3]=he=>E.value=!1)},null,8,["turnSlideToIndex"])):Be("",!0),F.value?(Y(),we($_,{key:1,slideWidth:H(S),slideHeight:H(L),onClose:W[4]||(W[4]=he=>F.value=!1)},null,8,["slideWidth","slideHeight"])):Be("",!0),N.value?(Y(),we(j_,{key:2,onClose:W[5]||(W[5]=he=>N.value=!1)})):Be("",!0),V("div",Nbe,[w(D,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:W[6]||(W[6]=he=>H(R)())}),w(z,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:W[7]||(W[7]=he=>H(y)())})]),V("div",{class:$e(["tools-right",{visible:k.value}]),onMouseleave:W[16]||(W[16]=he=>k.value=!1),onMouseenter:W[17]||(W[17]=he=>k.value=!0)},[V("div",Pbe,[V("div",{class:"tool-btn page-number",onClick:W[8]||(W[8]=he=>E.value=!0)},"幻灯片 "+gt(H(r)+1)+" / "+gt(H(n).length),1),De(w(ae,{class:"tool-btn",onClick:W[9]||(W[9]=he=>F.value=!0)},null,512),[[oe,"画笔工具"]]),De(w(U,{class:$e(["tool-btn",{active:P.value}]),onClick:W[10]||(W[10]=he=>P.value=!P.value)},null,8,["class"]),[[oe,"激光笔"]]),De(w(Z,{class:$e(["tool-btn",{active:N.value}]),onClick:W[11]||(W[11]=he=>N.value=!N.value)},null,8,["class"]),[[oe,"计时器"]]),De(w(B,{class:"tool-btn",onClick:W[12]||(W[12]=he=>I.changeViewMode("presenter"))},null,512),[[oe,"演讲者视图"]]),H(M)?De((Y(),we(G,{key:0,class:"tool-btn",onClick:W[13]||(W[13]=he=>H(O)())},null,512)),[[oe,"退出全屏"]]):De((Y(),we(Q,{key:1,class:"tool-btn",onClick:W[14]||(W[14]=he=>H(Fb)())},null,512)),[[oe,"进入全屏"]]),De(w(ie,{class:"tool-btn",onClick:W[15]||(W[15]=he=>H(T)())},null,512),[[oe,"结束放映"]])])],34)],2)}}}),Ibe=Ue(Cbe,[["__scopeId","data-v-85c13201"]]),Jd=e=>(on("data-v-691774ef"),e=e(),an(),e),Fbe={class:"presenter-view"},_be={class:"toolbar"},Ebe=Jd(()=>V("span",null,"普通视图",-1)),Xbe=Jd(()=>V("span",null,"画笔",-1)),Wbe=Jd(()=>V("span",null,"激光笔",-1)),Vbe=Jd(()=>V("span",null,"计时器",-1)),Ube=Jd(()=>V("span",null,"结束放映",-1)),Ybe={class:"content"},Qbe=["onClick"],Zbe={class:"remark"},Bbe={class:"header"},Dbe=Jd(()=>V("span",null,"演讲者备注",-1)),Kbe=["innerHTML"],Hbe={class:"remark-scale"},Gbe=Fe({__name:"PresenterView",props:{changeViewMode:{type:Function}},setup(e){const t=e,{slides:n,slideIndex:r,viewportRatio:o,currentSlide:i}=Xe(ct()),a=pe(),s=pe(),c=pe(!1),l=pe(!1),u=pe(!1),{mousewheelListener:f,touchStartListener:d,touchEndListener:h,turnPrevSlide:p,turnNextSlide:m,turnSlideToIndex:A,turnSlideToId:x,animationIndex:R}=H_(),{slideWidth:y,slideHeight:g}=G_(a),{exitScreening:S}=Mc(),{slidesLoadLimit:L}=Bp(),{fullscreenState:T,manualExitFullscreen:M}=z_(),O=pe(16),k=Me(()=>kb(i.value.remark||"无备注")),F=P=>{s.value&&s.value.scrollBy(P.deltaY,0)},N=P=>{P<12||P>40||(O.value=P)};Tt(r,()=>{Vr(()=>{if(!s.value)return;const P=s.value.querySelector(".thumbnail.active");if(!P)return;const _=s.value.offsetWidth,I=P.offsetLeft;s.value.scrollTo({left:I-_/2,behavior:"smooth"})})});const E=()=>[{text:"上一页",subText:"↑ ←",disable:r.value<=0,handler:()=>p()},{text:"下一页",subText:"↓ →",disable:r.value>=n.value.length-1,handler:()=>m()},{text:"第一页",disable:r.value===0,handler:()=>A(0)},{text:"最后一页",disable:r.value===n.value.length-1,handler:()=>A(n.value.length-1)},{divider:!0},{text:"画笔工具",handler:()=>c.value=!0},{text:"普通视图",handler:()=>t.changeViewMode("base")},{divider:!0},{text:"结束放映",subText:"ESC",handler:S}];return(P,_)=>{const I=xe("IconListView"),W=xe("IconWrite"),D=xe("IconMagic"),z=xe("IconStopwatchStart"),ae=xe("IconOffScreenOne"),U=xe("IconPower"),Z=xe("IconMinus"),B=xe("IconPlus"),G=Mn("contextmenu");return Y(),ee("div",Fbe,[V("div",_be,[V("div",{class:"tool-btn",onClick:_[0]||(_[0]=Q=>P.changeViewMode("base"))},[w(I,{class:"tool-icon"}),Ebe]),V("div",{class:$e(["tool-btn",{active:c.value}]),onClick:_[1]||(_[1]=Q=>c.value=!c.value)},[w(W,{class:"tool-icon"}),Xbe],2),V("div",{class:$e(["tool-btn",{active:u.value}]),onClick:_[2]||(_[2]=Q=>u.value=!u.value)},[w(D,{class:"tool-icon"}),Wbe],2),V("div",{class:$e(["tool-btn",{active:l.value}]),onClick:_[3]||(_[3]=Q=>l.value=!l.value)},[w(z,{class:"tool-icon"}),Vbe],2),V("div",{class:"tool-btn",onClick:_[4]||(_[4]=()=>H(T)?H(M)():H(Fb)())},[H(T)?(Y(),we(ae,{key:0,class:"tool-icon"})):(Y(),we(ae,{key:1,class:"tool-icon"})),V("span",null,gt(H(T)?"退出全屏":"全屏"),1)]),w(Ut,{class:"divider"}),V("div",{class:"tool-btn",onClick:_[5]||(_[5]=Q=>H(S)())},[w(U,{class:"tool-icon"}),Ube])]),V("div",Ybe,[V("div",{class:$e(["slide-list-wrap",{"laser-pen":u.value}]),ref_key:"slideListWrapRef",ref:a},[De(w(J_,{slideWidth:H(y),slideHeight:H(g),animationIndex:H(R),turnSlideToId:H(x),manualExitFullscreen:H(M),onWheel:_[6]||(_[6]=Q=>H(f)(Q)),onTouchstart:_[7]||(_[7]=Q=>H(d)(Q)),onTouchend:_[8]||(_[8]=Q=>H(h)(Q))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[G,E]]),c.value?(Y(),we($_,{key:0,slideWidth:H(y),slideHeight:H(g),left:-365,top:-155,onClose:_[9]||(_[9]=Q=>c.value=!1)},null,8,["slideWidth","slideHeight"])):Be("",!0),l.value?(Y(),we(j_,{key:1,left:75,onClose:_[10]||(_[10]=Q=>l.value=!1)})):Be("",!0)],2),V("div",{class:"thumbnails",ref_key:"thumbnailsRef",ref:s,onWheel:_[11]||(_[11]=Wt(Q=>F(Q),["prevent"]))},[(Y(!0),ee(Ve,null,it(H(n),(Q,ie)=>(Y(),ee("div",{class:$e(["thumbnail",{active:ie===H(r)}]),key:Q.id,onClick:q=>H(A)(ie)},[w(Fa,{slide:Q,size:120/H(o),visible:ieN(O.value-2))},[w(Z)],2),V("div",{class:$e(["scale-btn",{disable:O.value===40}]),onClick:_[13]||(_[13]=Q=>N(O.value+2))},[w(B)],2)])])])}}}),zbe=Ue(Gbe,[["__scopeId","data-v-691774ef"]]),Jbe={class:"pptist-screen"},$be=Fe({__name:"index",setup(e){const t=pe("base"),n=i=>{t.value=i},{exitScreening:r}=Mc(),o=i=>{i.key.toUpperCase()===yt.ESC&&r()};return Gt(()=>document.addEventListener("keydown",o)),Tn(()=>document.removeEventListener("keydown",o)),(i,a)=>(Y(),ee("div",Jbe,[t.value==="base"?(Y(),we(Ibe,{key:0,changeViewMode:n})):t.value==="presenter"?(Y(),we(zbe,{key:1,changeViewMode:n})):Be("",!0)]))}}),jbe=Ue($be,[["__scopeId","data-v-2f0dc4b8"]]),qbe=Fe({__name:"MobileEditableElement",props:{elementInfo:{},elementIndex:{},selectElement:{type:Function}},setup(e){const t=e,n=Me(()=>({[Nt.IMAGE]:RI,[Nt.TEXT]:dF,[Nt.SHAPE]:pF,[Nt.LINE]:mF,[Nt.CHART]:MF,[Nt.TABLE]:kF,[Nt.LATEX]:NF,[Nt.VIDEO]:CF,[Nt.AUDIO]:_F})[t.elementInfo.type]||null);return(r,o)=>(Y(),ee("div",{class:"mobile-editable-element",style:Le({zIndex:r.elementIndex})},[(Y(),we(xs(n.value),{elementInfo:r.elementInfo,selectElement:r.selectElement,contextmenus:()=>null},null,8,["elementInfo","selectElement"]))],4))}}),e5e=Fe({__name:"MobileOperate",props:{elementInfo:{},isSelected:{type:Boolean},canvasScale:{},scaleElement:{type:Function},rotateElement:{type:Function}},setup(e){const t=e,n=Me(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),r=Me(()=>t.elementInfo.width*t.canvasScale),o=Me(()=>t.elementInfo.height*t.canvasScale),{borderLines:i,resizeHandlers:a,textElementResizeHandlers:s}=nf(r,o),c=t.elementInfo.type==="text"||t.elementInfo.type==="table"?s:a,l=Me(()=>["chart","video","audio"].includes(t.elementInfo.type));return(u,f)=>(Y(),ee("div",{class:"mobile-operate",style:Le({top:u.elementInfo.top*u.canvasScale+"px",left:u.elementInfo.left*u.canvasScale+"px",transform:`rotate(${n.value}deg)`,transformOrigin:`${u.elementInfo.width*u.canvasScale/2}px ${u.elementInfo.height*u.canvasScale/2}px`})},[u.isSelected?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(i),d=>(Y(),we(rf,{class:"operate-border-line",key:d.type,type:d.type,style:Le(d.style)},null,8,["type","style"]))),128)),(Y(!0),ee(Ve,null,it(H(c),d=>(Y(),we(Tc,{class:"operate-resize-handler",key:d.direction,type:d.direction,rotate:u.elementInfo.rotate,style:Le(d.style),onTouchstart:Wt(h=>u.scaleElement(h,u.elementInfo,d.direction),["stop"])},null,8,["type","rotate","style","onTouchstart"]))),128)),l.value?Be("",!0):(Y(),we(zd,{key:0,class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onTouchstart:f[0]||(f[0]=Wt(d=>u.rotateElement(d,u.elementInfo),["stop"]))},null,8,["style"]))],64)):Be("",!0)],4))}}),t5e=Ue(e5e,[["__scopeId","data-v-b61bf2dc"]]),n5e={class:"mobile-thumbnails"},r5e=["onClick"],o5e={class:"label"},i5e=Fe({__name:"MobileThumbnails",setup(e){const t=ct(),{slides:n,slideIndex:r}=Xe(t),{sortSlides:o}=Dd(),{slidesLoadLimit:i}=Bp(),a=c=>{t.updateSlideIndex(c)},s=c=>{const{newIndex:l,oldIndex:u}=c;l===void 0||u===void 0||l===u||o(l,u)};return(c,l)=>(Y(),ee("div",n5e,[w(H(N5),{class:"thumbnail-list",modelValue:H(n),animation:200,scroll:!0,scrollSensitivity:50,delayOnTouchOnly:!0,delay:800,itemKey:"id",onEnd:s},{item:re(({element:u,index:f})=>[V("div",{class:$e(["thumbnail-item",{active:H(r)===f}]),onClick:d=>a(f)},[V("div",o5e,gt(f+1),1),w(Fa,{class:"thumbnail",slide:u,size:120,visible:f{s({left:(Ht-400)/2,top:(Ht*n.value-56)/2,width:400,height:56},{content:"

    新添加文本

    "})},f=m=>{!m||!m[0]||zu(m[0]).then(A=>c(A))},d=m=>{const R={square:{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},round:{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"}},y=200;l({left:(Ht-y)/2,top:(Ht*n.value-y)/2,width:y,height:y},R[m])},h=Me(()=>{var m;return((m=r.value)==null?void 0:m.remark)||""}),p=m=>{const A=m.target.value;t.updateSlide({remark:A})};return(m,A)=>{const x=xe("IconPlus"),R=xe("IconCopy"),y=xe("IconDelete"),g=xe("IconFontSize"),S=xe("IconPicture"),L=xe("IconSquare"),T=xe("IconRound");return Y(),ee("div",a5e,[V("div",s5e,[V("textarea",{value:h.value,placeholder:"点击输入演讲者备注",onInput:A[0]||(A[0]=M=>p(M))},null,40,l5e)]),V("div",c5e,[w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:A[1]||(A[1]=M=>H(o)())},{default:re(()=>[w(x,{class:"icon"}),We(" 新幻灯片")]),_:1}),w(et,{style:{flex:"1"},onClick:A[2]||(A[2]=M=>H(i)())},{default:re(()=>[w(R,{class:"icon"}),We(" 复制")]),_:1}),w(et,{style:{flex:"1"},onClick:A[3]||(A[3]=M=>H(a)())},{default:re(()=>[w(y,{class:"icon"}),We(" 删除")]),_:1})]),_:1}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:A[4]||(A[4]=M=>u())},{default:re(()=>[w(g,{class:"icon"}),We(" 文字")]),_:1}),w(et,{style:{flex:"1"}},{default:re(()=>[w(Eu,{onChange:A[5]||(A[5]=M=>f(M))},{default:re(()=>[w(S,{class:"icon"}),We("图片 ")]),_:1})]),_:1}),w(et,{style:{flex:"1"},onClick:A[6]||(A[6]=M=>d("square"))},{default:re(()=>[w(L,{class:"icon"}),We(" 矩形")]),_:1}),w(et,{style:{flex:"1"},onClick:A[7]||(A[7]=M=>d("round"))},{default:re(()=>[w(T,{class:"icon"}),We(" 圆形")]),_:1})]),_:1})]),w(q_)])}}}),f5e=Ue(u5e,[["__scopeId","data-v-bceba327"]]),eE=e=>(on("data-v-65decaff"),e=e(),an(),e),d5e={class:"element-toolbar"},h5e={class:"content"},p5e={key:0,class:"style"},m5e={class:"row-block"},v5e=eE(()=>V("div",{class:"label"},"文字颜色:",-1)),g5e={class:"colors"},A5e=["onClick"],R5e={class:"row-block"},y5e=eE(()=>V("div",{class:"label"},"填充色:",-1)),x5e={class:"colors"},b5e=["onClick"],S5e={key:1,class:"common"},M5e=Fe({__name:"ElementToolbar",setup(e){const t=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c","#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57"],n=ft(),r=ct(),{handleElement:o,handleElementId:i,richTextAttrs:a}=Xe(n),{addHistorySnapshot:s}=zt(),c=(y,g)=>{r.updateElement({id:y,props:g}),s()},l=[{key:"style",label:"样式"},{key:"common",label:"布局"}],u=pe("common"),{orderElement:f}=Np(),{alignElementToCanvas:d}=a2(),{addElementsFromData:h}=Kg(),{deleteElement:p}=kp(),m=()=>{const y=JSON.parse(JSON.stringify(o.value));h([y])},A=(y,g)=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:y,value:g}})},x=y=>{var g;if(o.value){if((o.value.type==="text"||o.value.type==="shape"&&((g=o.value.text)!=null&&g.content))&&Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:"color",value:y}}),o.value.type==="table"){const S=JSON.parse(JSON.stringify(o.value.data));for(let L=0;L{if(o.value){if((o.value.type==="text"||o.value.type==="shape"||o.value.type==="chart")&&c(i.value,{fill:y}),o.value.type==="table"){const g=JSON.parse(JSON.stringify(o.value.data));for(let S=0;S{const S=xe("IconTextBold"),L=xe("IconTextItalic"),T=xe("IconTextUnderline"),M=xe("IconStrikethrough"),O=xe("IconFontSize"),k=xe("IconAlignTextLeft"),F=xe("IconAlignTextCenter"),N=xe("IconAlignTextRight"),E=xe("IconCopy"),P=xe("IconDelete"),_=xe("IconSendToBack"),I=xe("IconBringToFrontOne"),W=xe("IconBringToFront"),D=xe("IconSentToBack"),z=xe("IconAlignLeft"),ae=xe("IconAlignVertically"),U=xe("IconAlignRight"),Z=xe("IconAlignTop"),B=xe("IconAlignHorizontally"),G=xe("IconAlignBottom");return Y(),ee("div",d5e,[w(As,{tabs:l,value:u.value,"onUpdate:value":g[0]||(g[0]=Q=>u.value=Q),tabsStyle:{marginBottom:"8px"},tabStyle:{width:"30%",margin:"0 10%"}},null,8,["value"]),V("div",h5e,[u.value==="style"?(Y(),ee("div",p5e,[w(xn,{class:"row"},{default:re(()=>[w(Qn,{style:{flex:"1"},checked:H(a).bold,onClick:g[1]||(g[1]=Q=>A("bold"))},{default:re(()=>[w(S)]),_:1},8,["checked"]),w(Qn,{style:{flex:"1"},checked:H(a).em,onClick:g[2]||(g[2]=Q=>A("em"))},{default:re(()=>[w(L)]),_:1},8,["checked"]),w(Qn,{style:{flex:"1"},checked:H(a).underline,onClick:g[3]||(g[3]=Q=>A("underline"))},{default:re(()=>[w(T)]),_:1},8,["checked"]),w(Qn,{style:{flex:"1"},checked:H(a).strikethrough,onClick:g[4]||(g[4]=Q=>A("strikethrough"))},{default:re(()=>[w(M)]),_:1},8,["checked"])]),_:1}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[5]||(g[5]=Q=>A("fontsize-add"))},{default:re(()=>[w(O),We("+")]),_:1}),w(et,{style:{flex:"1"},onClick:g[6]||(g[6]=Q=>A("fontsize-reduce"))},{default:re(()=>[w(O),We("-")]),_:1})]),_:1}),w(Ut,{style:{margin:"20px 0"}}),w(_a,{class:"row","button-style":"solid",value:H(a).align,"onUpdate:value":g[7]||(g[7]=Q=>A("align",Q))},{default:re(()=>[w(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(k)]),_:1}),w(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(F)]),_:1}),w(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w(N)]),_:1})]),_:1},8,["value"]),w(Ut,{style:{margin:"20px 0"}}),V("div",m5e,[v5e,V("div",g5e,[(Y(),ee(Ve,null,it(t,Q=>V("div",{class:"color",key:Q,onClick:ie=>x(Q)},[V("div",{class:"color-block",style:Le({backgroundColor:Q})},null,4)],8,A5e)),64))])]),V("div",R5e,[y5e,V("div",x5e,[(Y(),ee(Ve,null,it(t,Q=>V("div",{class:"color",key:Q,onClick:ie=>R(Q)},[V("div",{class:"color-block",style:Le({backgroundColor:Q})},null,4)],8,b5e)),64))])])])):Be("",!0),u.value==="common"?(Y(),ee("div",S5e,[w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[8]||(g[8]=Q=>m())},{default:re(()=>[w(E,{class:"icon"}),We(" 复制")]),_:1}),w(et,{style:{flex:"1"},onClick:g[9]||(g[9]=Q=>H(p)())},{default:re(()=>[w(P,{class:"icon"}),We(" 删除")]),_:1})]),_:1}),w(Ut,{style:{margin:"20px 0"}}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[10]||(g[10]=Q=>H(f)(H(o),H(pr).TOP))},{default:re(()=>[w(_,{class:"icon"}),We(" 置顶")]),_:1}),w(et,{style:{flex:"1"},onClick:g[11]||(g[11]=Q=>H(f)(H(o),H(pr).BOTTOM))},{default:re(()=>[w(I,{class:"icon"}),We(" 置底")]),_:1}),w(et,{style:{flex:"1"},onClick:g[12]||(g[12]=Q=>H(f)(H(o),H(pr).UP))},{default:re(()=>[w(W,{class:"icon"}),We(" 上移")]),_:1}),w(et,{style:{flex:"1"},onClick:g[13]||(g[13]=Q=>H(f)(H(o),H(pr).DOWN))},{default:re(()=>[w(D,{class:"icon"}),We(" 下移")]),_:1})]),_:1}),w(Ut,{style:{margin:"20px 0"}}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[14]||(g[14]=Q=>H(d)(H(nn).LEFT))},{default:re(()=>[w(z,{class:"icon"}),We(" 左对齐")]),_:1}),w(et,{style:{flex:"1"},onClick:g[15]||(g[15]=Q=>H(d)(H(nn).HORIZONTAL))},{default:re(()=>[w(ae,{class:"icon"}),We(" 水平居中")]),_:1}),w(et,{style:{flex:"1"},onClick:g[16]||(g[16]=Q=>H(d)(H(nn).RIGHT))},{default:re(()=>[w(U,{class:"icon"}),We(" 右对齐")]),_:1})]),_:1}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[17]||(g[17]=Q=>H(d)(H(nn).TOP))},{default:re(()=>[w(Z,{class:"icon"}),We(" 上对齐")]),_:1}),w(et,{style:{flex:"1"},onClick:g[18]||(g[18]=Q=>H(d)(H(nn).VERTICAL))},{default:re(()=>[w(B,{class:"icon"}),We(" 垂直居中")]),_:1}),w(et,{style:{flex:"1"},onClick:g[19]||(g[19]=Q=>H(d)(H(nn).BOTTOM))},{default:re(()=>[w(G,{class:"icon"}),We(" 下对齐")]),_:1})]),_:1})])):Be("",!0)])])}}}),w5e=Ue(M5e,[["__scopeId","data-v-65decaff"]]),L5e={class:"mobile-editor-header"},O5e={class:"history"},T5e=Fe({__name:"Header",props:{changeMode:{type:Function}},setup(e){const{canUndo:t,canRedo:n}=Xe(Bg()),{redo:r,undo:o}=zt();return(i,a)=>{const s=xe("IconBack"),c=xe("IconNext"),l=xe("IconLogout");return Y(),ee("div",L5e,[V("div",O5e,[V("div",{class:$e(["history-item",{disable:!H(t)}]),onClick:a[0]||(a[0]=Wt(u=>H(o)(),["stop"]))},[w(s),We(" 撤销")],2),V("div",{class:$e(["history-item",{disable:!H(n)}]),onClick:a[1]||(a[1]=Wt(u=>H(r)(),["stop"]))},[w(c),We(" 重做")],2)]),V("div",{class:"back",onClick:a[2]||(a[2]=u=>i.changeMode("preview"))},[w(l),We(" 退出编辑")])])}}}),k5e=Ue(T5e,[["__scopeId","data-v-091403e4"]]),N5e={class:"mobile-editor"},P5e=Fe({__name:"index",props:{changeMode:{type:Function}},setup(e){const t=ct(),n=ft(),{slideIndex:r,currentSlide:o,viewportRatio:i}=Xe(t),{activeElementIdList:a,handleElement:s}=Xe(n),c=pe(),l=pe(),u=pe([]),f=Me(()=>o.value.background),{backgroundStyle:d}=d2(f),h=Me(()=>{if(!c.value)return 1;const L=c.value.clientWidth,T=c.value.clientHeight;return T/L>=i.value?(L-20)/Ht:(T-20)/i.value/Ht});Gt(()=>{a.value.length&&n.setActiveElementIdList([]),r.value!==0&&t.updateSlideIndex(0)});const p=Me(()=>({width:Ht*h.value+"px",height:Ht*i.value*h.value+"px"})),m=pe([]);Tg(()=>{m.value=o.value?JSON.parse(JSON.stringify(o.value.elements)):[]});const{dragElement:x}=pI(m,u,h),{scaleElement:R}=hI(m,u,h),{rotateElement:y}=fI(m,l,h),g=(L,T,M=!0)=>{a.value.includes(T.id)||(n.setActiveElementIdList([T.id]),n.setHandleElementId(T.id)),M&&x(L,T)},S=()=>{n.setActiveElementIdList([])};return(L,T)=>(Y(),ee("div",N5e,[w(k5e,{changeMode:L.changeMode},null,8,["changeMode"]),V("div",{class:"content",ref_key:"contentRef",ref:c,onTouchstart:T[0]||(T[0]=M=>S())},[V("div",{class:"viewport-wrapper",style:Le(p.value)},[V("div",{class:"background",style:Le(H(d))},null,4),(Y(!0),ee(Ve,null,it(u.value,(M,O)=>(Y(),we(EF,{key:O,type:M.type,axis:M.axis,length:M.length,canvasScale:h.value},null,8,["type","axis","length","canvasScale"]))),128)),(Y(!0),ee(Ve,null,it(m.value,M=>(Y(),ee(Ve,{key:M.id},[M.type!=="line"?(Y(),we(t5e,{key:0,elementInfo:M,isSelected:H(a).includes(M.id),canvasScale:h.value,scaleElement:H(R),rotateElement:H(y)},null,8,["elementInfo","isSelected","canvasScale","scaleElement","rotateElement"])):Be("",!0)],64))),128)),V("div",{class:"viewport",ref_key:"viewportRef",ref:l,style:Le({transform:`scale(${h.value})`})},[(Y(!0),ee(Ve,null,it(m.value,(M,O)=>(Y(),we(qbe,{key:M.id,elementInfo:M,elementIndex:O+1,selectElement:g},null,8,["elementInfo","elementIndex"]))),128))],4)],4)],544),w(f5e),H(s)?(Y(),we(w5e,{key:0})):Be("",!0)]))}}),C5e=Ue(P5e,[["__scopeId","data-v-8b282f2e"]]),I5e={class:"header"},F5e=Fe({__name:"MobilePlayer",props:{changeMode:{type:Function}},setup(e){const t=ct(),{slides:n,slideIndex:r,currentSlide:o,viewportRatio:i}=Xe(t),a=pe(!1),s=pe({width:0,height:0});Gt(()=>{r.value!==0&&t.updateSlideIndex(0),s.value={width:document.body.clientHeight,height:document.body.clientWidth}});const c=Me(()=>{const d=s.value.height/s.value.width;let h=0,p=0;return d>=i.value?(h=s.value.width,p=h*i.value):(p=s.value.height,h=p/i.value),{width:h,height:p}}),l=pe(null),u=d=>{l.value={x:d.changedTouches[0].pageX,y:d.changedTouches[0].pageY}},f=d=>{if(!l.value)return;const h=Math.abs(l.value.y-d.changedTouches[0].pageY),p=d.changedTouches[0].pageX-l.value.x;Math.abs(p)>h&&Math.abs(p)>50&&(l.value=null,p<0&&r.value>0&&t.updateSlideIndex(r.value-1),p>0&&r.value{const p=xe("IconLogout");return Y(),ee("div",{class:"mobile-player",style:Le({width:s.value.width+"px",height:s.value.height+"px",transform:`rotate(90deg) translateY(-${s.value.height}px)`})},[V("div",{class:"screen-slide-list",onClick:h[0]||(h[0]=m=>a.value=!a.value),onTouchstart:h[1]||(h[1]=m=>u(m)),onTouchend:h[2]||(h[2]=m=>f(m))},[(Y(!0),ee(Ve,null,it(H(n),(m,A)=>(Y(),ee("div",{class:$e(["slide-item",`turning-mode-${m.turningMode||"slideY"}`,{current:A===H(r),before:AH(r),hide:(A===H(r)-1||A===H(r)+1)&&m.turningMode!==H(o).turningMode}]),key:m.id},[Math.abs(H(r)-A)<2?(Y(),ee("div",{key:0,class:"slide-content",style:Le({width:c.value.width+"px",height:c.value.height+"px"})},[w(Fa,{slide:m,size:c.value.width},null,8,["slide","size"])],4)):Be("",!0)],2))),128))],32),a.value?(Y(),ee(Ve,{key:0},[V("div",I5e,[V("div",{class:"back",onClick:h[3]||(h[3]=m=>d.changeMode("preview"))},[w(p),We(" 退出播放")])]),w(q_,{class:"thumbnails"})],64)):Be("",!0)],4)}}}),_5e=Ue(F5e,[["__scopeId","data-v-c846a018"]]),E5e={class:"thumbnail-list"},X5e={class:"menu"},W5e=Fe({__name:"MobilePreview",props:{changeMode:{type:Function}},setup(e){const{slides:t}=Xe(ct()),{slidesLoadLimit:n}=Bp(),r=pe(),o=pe(0);return Gt(()=>{r.value&&(o.value=r.value.clientWidth)}),(i,a)=>{const s=xe("IconEdit"),c=xe("IconFullScreenPlay");return Y(),ee("div",{class:"mobile-preview",ref_key:"mobileRef",ref:r},[V("div",E5e,[(Y(!0),ee(Ve,null,it(H(t),(l,u)=>(Y(),ee("div",{class:"thumbnail-item",key:l.id},[w(Fa,{slide:l,size:o.value-20,visible:ui.changeMode("editor"))},[w(s,{class:"icon"}),We(" 编辑")]),w(Ut,{type:"vertical",style:{height:"30px"}}),V("div",{class:"menu-item",onClick:a[1]||(a[1]=l=>i.changeMode("player"))},[w(c,{class:"icon"}),We(" 播放")])])],512)}}}),V5e=Ue(W5e,[["__scopeId","data-v-99aa0ac4"]]),U5e={class:"mobile"},Y5e=Fe({__name:"index",setup(e){const t=pe("preview"),n=o=>t.value=o,r=Me(()=>({editor:C5e,player:_5e,preview:V5e})[t.value]||null);return(o,i)=>(Y(),ee("div",U5e,[(Y(),we(xs(r.value),{changeMode:n}))]))}}),Q5e=Ue(Y5e,[["__scopeId","data-v-d02011cb"]]),Z5e=Fe({__name:"App",setup(e){const t=oJ(),n=ft(),r=Bg(),{databaseId:o}=Xe(n),{screening:i}=Xe(VP());return window.onbeforeunload=()=>!1,Gt(async()=>{await nJ(),r.initSnapshotDatabase(),n.setAvailableFonts()}),window.addEventListener("unload",()=>{const a=localStorage.getItem(Vv),s=a?JSON.parse(a):[];s.push(o.value);const c=JSON.stringify(s);localStorage.setItem(Vv,c)}),(a,s)=>H(i)?(Y(),we(jbe,{key:0})):H(t)?(Y(),we(Yxe,{key:1})):(Y(),we(Q5e,{key:2}))}}),B5e={class:"menu-content"},D5e=["onClick"],K5e={class:"text"},H5e={key:0,class:"sub-text"},G5e=Fe({__name:"MenuContent",props:{menus:{},handleClickMenuItem:{type:Function}},setup(e){return(t,n)=>{const r=xe("menu-content",!0);return Y(),ee("ul",B5e,[(Y(!0),ee(Ve,null,it(t.menus,(o,i)=>(Y(),ee(Ve,{key:o.text||i},[o.hide?Be("",!0):(Y(),ee("li",{key:0,class:$e(["menu-item",{divider:o.divider,disable:o.disable}]),onClick:Wt(a=>t.handleClickMenuItem(o),["stop"])},[o.divider?Be("",!0):(Y(),ee("div",{key:0,class:$e(["menu-item-content",{"has-children":o.children,"has-handler":o.handler}])},[V("span",K5e,gt(o.text),1),o.subText&&!o.children?(Y(),ee("span",H5e,gt(o.subText),1)):Be("",!0),o.children&&o.children.length?(Y(),we(r,{key:1,class:"sub-menu",menus:o.children,handleClickMenuItem:t.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])):Be("",!0)],2))],10,D5e))],64))),128))])}}}),z5e=Ue(G5e,[["__scopeId","data-v-b0ce5ca5"]]),J5e=Fe({__name:"index",props:{axis:{},el:{},menus:{},removeContextmenu:{type:Function}},setup(e){const t=e,n=Me(()=>{const{x:c,y:l}=t.axis,u=t.menus.filter(A=>!(A.divider||A.hide)).length,f=t.menus.filter(A=>A.divider).length,d=170,h=u*30+f*11+5*2,p=document.body.clientWidth,m=document.body.clientHeight;return{left:p<=c+d?c-d:c,top:m<=l+h?l-h:l}}),r=o=>{o.disable||o.children&&!o.handler||(o.handler&&o.handler(t.el),t.removeContextmenu())};return(o,i)=>(Y(),ee(Ve,null,[V("div",{class:"mask",onContextmenu:i[0]||(i[0]=Wt(a=>o.removeContextmenu(),["prevent"])),onMousedown:i[1]||(i[1]=a=>o.removeContextmenu())},null,32),V("div",{class:"contextmenu",style:Le({left:n.value.left+"px",top:n.value.top+"px"}),onContextmenu:i[2]||(i[2]=Wt(()=>{},["prevent"]))},[w(z5e,{menus:o.menus,handleClickMenuItem:r},null,8,["menus"])],36)],64))}}),L0="CTX_CONTEXTMENU_HANDLER",$5e=(e,t,n)=>{t.stopPropagation(),t.preventDefault();const r=n.value(e);if(!r)return;let o=null;const i=()=>{o&&(document.body.removeChild(o),o=null),e.classList.remove("contextmenu-active"),document.body.removeEventListener("scroll",i),window.removeEventListener("resize",i)},a={axis:{x:t.x,y:t.y},el:e,menus:r,removeContextmenu:i};o=document.createElement("div");const s=w(J5e,a,null);bd(s,o),document.body.appendChild(o),e.classList.add("contextmenu-active"),document.body.addEventListener("scroll",i),window.addEventListener("resize",i)},j5e={mounted(e,t){e[L0]=n=>$5e(e,n,t),e.addEventListener("contextmenu",e[L0])},unmounted(e){e&&e[L0]&&(e.removeEventListener("contextmenu",e[L0]),delete e[L0])}},O0="CTX_CLICK_OUTSIDE_HANDLER",q5e=(e,t,n)=>{const r=n.value,o=t.composedPath();(o?o.indexOf(e)<0:!e.contains(t.target))&&r(t)},e8e={mounted(e,t){e[O0]=n=>q5e(e,n,t),setTimeout(()=>{document.addEventListener("click",e[O0])},0)},unmounted(e){e[O0]&&(document.removeEventListener("click",e[O0]),delete e[O0])}},T0="TOOLTIP_INSTANCE",t8e={mounted(e,t){let n="",r="top",o=[300,0];typeof t.value=="string"?n=t.value:(n=t.value.content,t.value.placement!==void 0&&(r=t.value.placement),t.value.delay!==void 0&&(o=t.value.delay)),e[T0]=ef(e,{content:n,theme:"tooltip",duration:100,animation:"scale",allowHTML:!0,placement:r,delay:o})},updated(e,t){let n="";typeof t.value=="string"?n=t.value:n=t.value.content,e[T0]&&e[T0].setContent(n)},unmounted(e){e[T0]&&e[T0].destroy()}},n8e={install(e){e.directive("contextmenu",j5e),e.directive("click-outside",e8e),e.directive("tooltip",t8e)}},L2=tN(Z5e);L2.use(tq);L2.use(n8e);L2.use(EK());L2.mount("#app"); + `),e.close()},B4e=(e,t)=>{const n=Q4e(),r=n.contentWindow;if(!n.contentDocument||!r)return;Z4e(n.contentDocument,e,t);const o=()=>{r.focus(),r.print()},i=()=>{n.removeEventListener("load",o),r.removeEventListener("afterprint",i),document.body.removeChild(n)};n.addEventListener("load",o),r.addEventListener("afterprint",i)},w2=e=>(on("data-v-d3a30d69"),e=e(),an(),e),D4e={class:"export-pdf-dialog"},K4e={class:"thumbnails-view"},H4e={class:"configs"},G4e={class:"row"},z4e=w2(()=>V("div",{class:"title"},"导出范围:",-1)),J4e={class:"row"},$4e=w2(()=>V("div",{class:"title"},"每页数量:",-1)),j4e={class:"row"},q4e=w2(()=>V("div",{class:"title"},"边缘留白:",-1)),e3e={class:"config-item"},t3e=w2(()=>V("div",{class:"tip"}," 提示:若打印预览与实际样式不一致,请在弹出的打印窗口中勾选【背景图形】选项。 ",-1)),n3e={class:"btns"},r3e=Fe({__name:"ExportPDF",emits:["close"],setup(e,{emit:t}){const n=t,{slides:r,currentSlide:o,viewportRatio:i}=Xe(ct()),a=pe(),s=pe("all"),c=pe(1),l=pe(!0),u=()=>{if(!a.value)return;const f={width:1600,height:s.value==="all"?1600*i.value*c.value:1600*i.value,margin:l.value?50:0};B4e(a.value,f)};return(f,d)=>(Y(),ee("div",D4e,[V("div",K4e,[V("div",{class:"thumbnails",ref_key:"pdfThumbnailsRef",ref:a},[s.value==="current"?(Y(),we(Fa,{key:0,class:"thumbnail",slide:H(o),size:1600},null,8,["slide"])):(Y(!0),ee(Ve,{key:1},it(H(r),(h,p)=>(Y(),we(Fa,{class:$e(["thumbnail",{"break-page":(p+1)%c.value===0}]),key:h.id,slide:h,size:1600},null,8,["class","slide"]))),128))],512)]),V("div",H4e,[V("div",G4e,[z4e,w(_a,{class:"config-item",value:s.value,"onUpdate:value":d[0]||(d[0]=h=>s.value=h)},{default:re(()=>[w(Nn,{style:{width:"50%"},value:"all"},{default:re(()=>[We("全部")]),_:1}),w(Nn,{style:{width:"50%"},value:"current"},{default:re(()=>[We("当前页")]),_:1})]),_:1},8,["value"])]),V("div",J4e,[$4e,w(Zn,{class:"config-item",value:c.value,"onUpdate:value":d[1]||(d[1]=h=>c.value=h),options:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3}]},null,8,["value"])]),V("div",j4e,[q4e,V("div",e3e,[w(oa,{value:l.value,"onUpdate:value":d[2]||(d[2]=h=>l.value=h)},null,8,["value"])])]),t3e]),V("div",n3e,[w(et,{class:"btn export",type:"primary",onClick:d[3]||(d[3]=h=>u())},{default:re(()=>[We("打印 / 导出 PDF")]),_:1}),w(et,{class:"btn close",onClick:d[4]||(d[4]=h=>n("close"))},{default:re(()=>[We("关闭")]),_:1})])]))}}),o3e=Ue(r3e,[["__scopeId","data-v-d3a30d69"]]),Q5=e=>(on("data-v-254b6b07"),e=e(),an(),e),i3e={class:"export-pptx-dialog"},a3e={class:"configs"},s3e={class:"row"},l3e=Q5(()=>V("div",{class:"title"},"导出范围:",-1)),c3e={key:0,class:"row"},u3e=["data-range"],f3e={class:"row"},d3e=Q5(()=>V("div",{class:"title"},"忽略音频/视频:",-1)),h3e={class:"config-item"},p3e={class:"row"},m3e=Q5(()=>V("div",{class:"title"},"覆盖默认母版:",-1)),v3e={class:"config-item"},g3e={key:1,class:"tip"},A3e={class:"btns"},R3e=Fe({__name:"ExportPPTX",emits:["close"],setup(e,{emit:t}){const n=t,{slides:r,currentSlide:o}=Xe(ct()),{exportPPTX:i,exporting:a}=S2(),s=pe("all"),c=pe([1,r.value.length]),l=pe(!0),u=pe(!0),f=Me(()=>s.value==="all"?r.value:s.value==="current"?[o.value]:r.value.filter((d,h)=>{const[p,m]=c.value;return h>=p-1&&h<=m-1}));return(d,h)=>{const p=Mn("tooltip");return Y(),ee("div",i3e,[V("div",a3e,[V("div",s3e,[l3e,w(_a,{class:"config-item",value:s.value,"onUpdate:value":h[0]||(h[0]=m=>s.value=m)},{default:re(()=>[w(Nn,{style:{width:"33.33%"},value:"all"},{default:re(()=>[We("全部")]),_:1}),w(Nn,{style:{width:"33.33%"},value:"current"},{default:re(()=>[We("当前页")]),_:1}),w(Nn,{style:{width:"33.33%"},value:"custom"},{default:re(()=>[We("自定义")]),_:1})]),_:1},8,["value"])]),s.value==="custom"?(Y(),ee("div",c3e,[V("div",{class:"title","data-range":`(${c.value[0]} ~ ${c.value[1]})`},"自定义范围:",8,u3e),w(no,{class:"config-item",range:"",min:1,max:H(r).length,step:1,value:c.value,"onUpdate:value":h[1]||(h[1]=m=>c.value=m)},null,8,["max","value"])])):Be("",!0),V("div",f3e,[d3e,V("div",h3e,[De(w(oa,{value:u.value,"onUpdate:value":h[2]||(h[2]=m=>u.value=m)},null,8,["value"]),[[p,"导出时默认忽略音视频,若您的幻灯片中存在音视频元素,且希望将其导出到PPTX文件中,可选择关闭【忽略音视频】选项,但要注意这将会大幅增加导出用时。"]])])]),V("div",p3e,[m3e,V("div",v3e,[w(oa,{value:l.value,"onUpdate:value":h[3]||(h[3]=m=>l.value=m)},null,8,["value"])])]),u.value?Be("",!0):(Y(),ee("div",g3e," 提示:1. 支持导出格式:avi、mp4、mov、wmv、mp3、wav;2. 跨域资源无法导出。 "))]),V("div",A3e,[w(et,{class:"btn export",type:"primary",onClick:h[4]||(h[4]=m=>H(i)(f.value,l.value,u.value))},{default:re(()=>[We("导出 PPTX")]),_:1}),w(et,{class:"btn close",onClick:h[5]||(h[5]=m=>n("close"))},{default:re(()=>[We("关闭")]),_:1})]),w(zb,{loading:H(a),tip:"正在导出..."},null,8,["loading"])])}}}),y3e=Ue(R3e,[["__scopeId","data-v-254b6b07"]]),K_=e=>(on("data-v-bc56c9db"),e=e(),an(),e),x3e={class:"export-pptist-dialog"},b3e={class:"configs"},S3e={class:"row"},M3e=K_(()=>V("div",{class:"title"},"导出范围:",-1)),w3e={key:0,class:"row"},L3e=["data-range"],O3e=K_(()=>V("div",{class:"tip"}," 提示:.pptist 是本应用的特有文件后缀,支持将该类型的文件导入回应用中。 ",-1)),T3e={class:"btns"},k3e=Fe({__name:"ExportSpecificFile",emits:["close"],setup(e,{emit:t}){const n=t,{slides:r,currentSlide:o}=Xe(ct()),{exportSpecificFile:i}=S2(),a=pe("all"),s=pe([1,r.value.length]),c=Me(()=>a.value==="all"?r.value:a.value==="current"?[o.value]:r.value.filter((l,u)=>{const[f,d]=s.value;return u>=f-1&&u<=d-1}));return(l,u)=>(Y(),ee("div",x3e,[V("div",b3e,[V("div",S3e,[M3e,w(_a,{class:"config-item",value:a.value,"onUpdate:value":u[0]||(u[0]=f=>a.value=f)},{default:re(()=>[w(Nn,{style:{width:"33.33%"},value:"all"},{default:re(()=>[We("全部")]),_:1}),w(Nn,{style:{width:"33.33%"},value:"current"},{default:re(()=>[We("当前页")]),_:1}),w(Nn,{style:{width:"33.33%"},value:"custom"},{default:re(()=>[We("自定义")]),_:1})]),_:1},8,["value"])]),a.value==="custom"?(Y(),ee("div",w3e,[V("div",{class:"title","data-range":`(${s.value[0]} ~ ${s.value[1]})`},"自定义范围:",8,L3e),w(no,{class:"config-item",range:"",min:1,max:H(r).length,step:1,value:s.value,"onUpdate:value":u[1]||(u[1]=f=>s.value=f)},null,8,["max","value"])])):Be("",!0),O3e]),V("div",T3e,[w(et,{class:"btn export",type:"primary",onClick:u[2]||(u[2]=f=>H(i)(c.value))},{default:re(()=>[We("导出 .pptist 文件")]),_:1}),w(et,{class:"btn close",onClick:u[3]||(u[3]=f=>n("close"))},{default:re(()=>[We("关闭")]),_:1})])]))}}),N3e=Ue(k3e,[["__scopeId","data-v-bc56c9db"]]),P3e={class:"export-dialog"},C3e={class:"content"},I3e=Fe({__name:"index",setup(e){const t=ft(),{dialogForExport:n}=Xe(t),r=t.setDialogForExport,o=[{key:"pptist",label:"导出 pptist 文件"},{key:"pptx",label:"导出 PPTX"},{key:"image",label:"导出图片"},{key:"json",label:"导出 JSON"},{key:"pdf",label:"打印 / 导出 PDF"}],i=Me(()=>{const a={image:E4e,json:Y4e,pdf:o3e,pptx:y3e,pptist:N3e};return n.value&&a[n.value]||null});return(a,s)=>(Y(),ee("div",P3e,[w(As,{tabs:o,value:H(n),card:"","onUpdate:value":s[0]||(s[0]=c=>H(r)(c))},null,8,["value"]),V("div",C3e,[(Y(),we(xs(i.value),{onClose:s[1]||(s[1]=c=>H(r)(""))},null,32))])]))}}),F3e=Ue(I3e,[["__scopeId","data-v-b54f4542"]]),_3e=()=>{const e=ct(),t=ft(),{currentSlide:n}=Xe(e),{activeElementIdList:r,hiddenElementIdList:o}=Xe(t);return{toggleHideElement:c=>{o.value.includes(c)?t.setHiddenElementIdList(o.value.filter(l=>l!==c)):t.setHiddenElementIdList([...o.value,c]),r.value.includes(c)&&t.setActiveElementIdList([])},showAllElements:()=>{const c=n.value.elements.map(u=>u.id),l=o.value.filter(u=>!c.includes(u));t.setHiddenElementIdList(l)},hideAllElements:()=>{const c=n.value.elements.map(l=>l.id);t.setHiddenElementIdList([...o.value,...c]),r.value.length&&t.setActiveElementIdList([])}}},E3e={class:"title"},X3e={class:"content"},W3e=Fe({__name:"MoveablePanel",props:{width:{},height:{},minWidth:{default:20},minHeight:{default:20},maxWidth:{default:500},maxHeight:{default:500},left:{default:10},top:{default:10},title:{default:""},moveable:{type:Boolean,default:!0},resizeable:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=pe(0),i=pe(0),a=pe(0),s=pe(0),c=pe(),l=Me(()=>{var d;return s.value?s.value:((d=c.value)==null?void 0:d.clientHeight)||0});Gt(()=>{n.left>=0?o.value=n.left:o.value=document.body.clientWidth+n.left-n.width,n.top>=0?i.value=n.top:i.value=document.body.clientHeight+n.top-l.value,a.value=n.width,s.value=n.height});const u=d=>{if(!n.moveable)return;let h=!0;const p=document.body.clientWidth,m=document.body.clientHeight,A=d.pageX,x=d.pageY,R=o.value,y=i.value;document.onmousemove=g=>{if(!h)return;const S=g.pageX-A,L=g.pageY-x;let T=R+S,M=y+L;T<0&&(T=0),M<0&&(M=0),T+a.value>p&&(T=p-a.value),M+l.value>m&&(M=m-l.value),o.value=T,i.value=M},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null}},f=d=>{if(!n.resizeable)return;let h=!0;const p=d.pageX,m=d.pageY,A=a.value,x=s.value;document.onmousemove=R=>{if(!h)return;const y=R.pageX-p,g=R.pageY-m;let S=A+y,L=x+g;Sn.maxWidth&&(S=n.maxWidth),L>n.maxHeight&&(L=n.maxHeight),a.value=S,s.value=L},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null}};return(d,h)=>{const p=xe("IconClose");return Y(),ee("div",{class:"moveable-panel",ref_key:"moveablePanelRef",ref:c,style:Le({width:a.value+"px",height:s.value?s.value+"px":"auto",left:o.value+"px",top:i.value+"px"})},[d.title?(Y(),ee(Ve,{key:0},[V("div",{class:"header",onMousedown:h[1]||(h[1]=m=>u(m))},[V("div",E3e,gt(d.title),1),V("div",{class:"close-btn",onClick:h[0]||(h[0]=m=>r("close"))},[w(p)])],32),V("div",X3e,[cr(d.$slots,"default",{},void 0,!0)])],64)):(Y(),ee("div",{key:1,class:"content",onMousedown:h[2]||(h[2]=m=>u(m))},[cr(d.$slots,"default",{},void 0,!0)],32)),d.resizeable?(Y(),ee("div",{key:2,class:"resizer",onMousedown:h[3]||(h[3]=m=>f(m))},null,32)):Be("",!0)],4)}}}),jp=Ue(W3e,[["__scopeId","data-v-94a0a962"]]),V3e=e=>(on("data-v-8d6111bd"),e=e(),an(),e),U3e={key:0,class:"handler"},Y3e={class:"btns"},Q3e={key:0,class:"icon-btns"},Z3e={class:"element-list"},B3e={key:0,class:"group-els"},D3e=V3e(()=>V("div",{class:"group-title"},"组合",-1)),K3e=["onClick","onDblclick"],H3e=["id","value","onBlur","onKeydown"],G3e={key:1,class:"name"},z3e={class:"icons"},J3e=["onClick","onDblclick"],$3e=["id","value","onBlur","onKeydown"],j3e={key:1,class:"name"},q3e={class:"icons"},exe=Fe({__name:"SelectPanel",setup(e){const t=ct(),n=ft(),{currentSlide:r}=Xe(t),{handleElement:o,handleElementId:i,activeElementIdList:a,activeGroupElementId:s,hiddenElementIdList:c}=Xe(n),{orderElement:l}=Np(),{selectElement:u}=Hg(),{toggleHideElement:f,showAllElements:d,hideAllElements:h}=_3e(),p=Me(()=>{const g=[];for(const S of r.value.elements)if(S.groupId){const L=g[g.length-1];L&&L.type==="group"&&L.id&&L.id===S.groupId?L.elements.push(S):g.push({type:"group",id:S.groupId,elements:[S]})}else g.push(S);return g}),m=(g,S)=>{if(i.value===S||c.value.includes(S))return;const L=g.elements.map(T=>T.id);n.setActiveElementIdList(L),n.setHandleElementId(S),Vr(()=>n.setActiveGroupElementId(S))},A=pe(""),x=(g,S)=>{const L=g.target.value;t.updateElement({id:S,props:{name:L}}),A.value=""},R=g=>{A.value=g,Vr(()=>{document.querySelector(`#input-${g}`).focus()})},y=()=>{n.setSelectPanelState(!1)};return(g,S)=>{const L=xe("IconDown"),T=xe("IconUp"),M=xe("IconPreviewClose"),O=xe("IconPreviewOpen");return Y(),we(jp,{class:"select-panel",width:200,height:360,title:`选择(${H(a).length}/${H(r).elements.length})`,left:-270,top:90,onClose:S[4]||(S[4]=k=>y())},{default:re(()=>[p.value.length?(Y(),ee("div",U3e,[V("div",Y3e,[w(et,{size:"small",style:{"margin-right":"5px"},onClick:S[0]||(S[0]=k=>H(d)())},{default:re(()=>[We("全部显示")]),_:1}),w(et,{size:"small",onClick:S[1]||(S[1]=k=>H(h)())},{default:re(()=>[We("全部隐藏")]),_:1})]),H(o)?(Y(),ee("div",Q3e,[w(L,{class:"icon-btn",onClick:S[2]||(S[2]=k=>H(l)(H(o),H(pr).UP))}),w(T,{class:"icon-btn",onClick:S[3]||(S[3]=k=>H(l)(H(o),H(pr).DOWN))})])):Be("",!0)])):Be("",!0),V("div",Z3e,[(Y(!0),ee(Ve,null,it(p.value,k=>(Y(),ee(Ve,{key:k.id},[k.type==="group"?(Y(),ee("div",B3e,[D3e,(Y(!0),ee(Ve,null,it(k.elements,F=>(Y(),ee("div",{class:$e(["item",{active:H(a).includes(F.id),"group-active":H(s).includes(F.id)}]),key:F.id,onClick:N=>m(k,F.id),onDblclick:N=>R(F.id)},[A.value===F.id?(Y(),ee("input",{key:0,id:`input-${F.id}`,value:F.name||H(J0)[F.type],class:"input",type:"text",onBlur:N=>x(N,F.id),onKeydown:gc(N=>x(N,F.id),["enter"])},null,40,H3e)):(Y(),ee("div",G3e,gt(F.name||H(J0)[F.type]),1)),V("div",z3e,[H(c).includes(F.id)?(Y(),we(M,{key:0,style:{"font-size":"17px"},onClick:Wt(N=>H(f)(F.id),["stop"])},null,8,["onClick"])):(Y(),we(O,{key:1,style:{"font-size":"17px"},onClick:Wt(N=>H(f)(F.id),["stop"])},null,8,["onClick"]))])],42,K3e))),128))])):(Y(),ee("div",{key:1,class:$e(["item",{active:H(a).includes(k.id)}]),onClick:F=>H(u)(k.id),onDblclick:F=>R(k.id)},[A.value===k.id?(Y(),ee("input",{key:0,id:`input-${k.id}`,value:k.name||H(J0)[k.type],class:"input",type:"text",onBlur:F=>x(F,k.id),onKeydown:gc(F=>x(F,k.id),["enter"])},null,40,$3e)):(Y(),ee("div",j3e,gt(k.name||H(J0)[k.type]),1)),V("div",q3e,[H(c).includes(k.id)?(Y(),we(M,{key:0,style:{"font-size":"17px"},onClick:Wt(F=>H(f)(k.id),["stop"])},null,8,["onClick"])):(Y(),we(O,{key:1,style:{"font-size":"17px"},onClick:Wt(F=>H(f)(k.id),["stop"])},null,8,["onClick"]))])],42,J3e))],64))),128))])]),_:1},8,["title"])}}}),txe=Ue(exe,[["__scopeId","data-v-8d6111bd"]]),nxe=()=>{const e=ft(),t=ct(),{handleElement:n}=Xe(e),{slides:r,slideIndex:o,currentSlide:i}=Xe(t),a=pe(""),s=pe(""),c=pe([]),l=pe(-1),u=pe("g"),f=()=>{const F=[],N=new RegExp(a.value,u.value),E=/(<([^>]+)>)/g;for(const P of r.value)for(const _ of P.elements)if(_.type==="text"){const W=_.content.replace(E,"").match(N);W&&F.push(...new Array(W.length).fill({slideId:P.id,elId:_.id,elType:_.type}))}else if(_.type==="shape"&&_.text&&_.text.content){const W=_.text.content.replace(E,"").match(N);W&&F.push(...new Array(W.length).fill({slideId:P.id,elId:_.id,elType:_.type}))}else if(_.type==="table")for(let I=0;I<_.data.length;I++){const W=_.data[I];for(let D=0;D{const N=[...F.childNodes],E=[];for(;N.length;){const P=N.shift();P.nodeType===P.TEXT_NODE?P.wholeText&&E.push(P):N.unshift(...P.childNodes)}return E},h=F=>{let N=0;return F.map(P=>{const _=N,I=N+P.wholeText.length;return N=I,{text:P.wholeText,startIdx:_,endIdx:I}})},p=(F,N)=>{const E=new RegExp(N,u.value),P=[];let _=E.exec(F);for(;_;)P.push(_),_=E.exec(F);return P},m=(F,N,E,P)=>{for(let _=E.length-1;_>=0;_--){const I=E[_],W=I.index,D=W+I[0].length;for(let z=0;z=D)break;let B=F[z];const G=Math.max(0,W-U),Q=Math.min(Z,D)-U-G;G>0&&(B=B.splitText(G)),Q{for(const E of F)E.innerHTML=E.innerHTML.replace(new RegExp(a.value,u.value),()=>`${a.value}`)},x=()=>{const F=document.querySelectorAll(".editable-element mark");for(const N of F)setTimeout(()=>{const E=N.parentNode,P=N.textContent;E.replaceChild(document.createTextNode(P),N)},0)},R=()=>{x(),setTimeout(()=>{for(let F=0;Fz).join(""),D=p(W,a.value);m(_,I,D,F)}}},0)},y=()=>{const F=document.querySelectorAll("mark[data-index]");for(const N of F)setTimeout(()=>{const E=N.dataset.index;E!==void 0&&+E===l.value?N.classList.add("active"):N.classList.remove("active")},0)},g=()=>{if(l.value===-1)return;const F=c.value[l.value];if(F.slideId===i.value.id)setTimeout(y,0);else{const N=r.value.findIndex(E=>E.id===F.slideId);N!==-1&&t.updateSlideIndex(N)}},S=()=>{if(!a.value)return Sn.warning("请先输入查找内容");e.setActiveElementIdList([]),l.value===-1?f():l.value{if(!a.value)return Sn.warning("请先输入查找内容");e.setActiveElementIdList([]),l.value===-1?f():l.value>0?l.value-=1:l.value=c.value.length-1,g()},T=()=>{if(!a.value)return;if(l.value===-1){S();return}const F=c.value[l.value];let N=null;if(F.elType==="table"){const[I,W]=F.cellIndex;N=document.querySelector(`#editable-element-${F.elId} .cell[data-cell-index="${I}_${W}"] .cell-text`)}else N=document.querySelector(`#editable-element-${F.elId} .ProseMirror`);if(!N)return;const E=document.createElement("div");E.innerHTML=N.innerHTML;let P=!1;const _=E.querySelectorAll("mark[data-index]");for(const I of _){const W=I.parentNode;if(I.classList.contains("active"))P?W.removeChild(I):(W.replaceChild(document.createTextNode(s.value),I),P=!0);else{const D=I.textContent;W.replaceChild(document.createTextNode(D),I)}}if(F.elType==="text"){const I={content:E.innerHTML};t.updateElement({id:F.elId,props:I})}else if(F.elType==="shape"){const I=i.value.elements.find(W=>W.id===F.elId);if(I&&I.type==="shape"&&I.text){const W={text:{...I.text,content:E.innerHTML}};t.updateElement({id:F.elId,props:W})}}else if(F.elType==="table"){const I=i.value.elements.find(W=>W.id===F.elId);if(I&&I.type==="table"){const D={data:I.data.map((z,ae)=>ae===F.cellIndex[0]?z.map((U,Z)=>Z===F.cellIndex[1]?{...U,text:E.innerHTML}:U):z)};t.updateElement({id:F.elId,props:D})}}c.value.splice(l.value,1),c.value.length?(l.value>c.value.length-1&&(l.value=0),Vr(()=>{R(),g()})):l.value=-1},M=()=>{var F;if(a.value){if(l.value===-1){S();return}for(let N=0;ND.id===P.slideId);if(!_)continue;const I=_.elements.find(D=>D.id===P.elId);if(!I)continue;const W=document.createElement("div");if(I.type==="text"?W.innerHTML=I.content:I.type==="shape"&&(W.innerHTML=((F=I.text)==null?void 0:F.content)||""),P.elType==="table"){const z={data:I.data.map(ae=>ae.map(U=>U.text?{...U,text:U.text.replace(new RegExp(a.value,"g"),s.value)}:U))};t.updateElement({id:P.elId,slideId:P.slideId,props:z})}else{const D=d(W),z=h(D),ae=z.map(({text:G})=>G).join(""),U=p(ae,a.value);m(D,z,U,N);const Z=W.querySelectorAll("mark[data-index]");let B=-1;for(const G of Z){const Q=+G.dataset.index,ie=G.parentNode;Q===B?ie.removeChild(G):(ie.replaceChild(document.createTextNode(s.value),G),B=Q)}if(P.elType==="text"){const G={content:W.innerHTML};t.updateElement({id:P.elId,slideId:P.slideId,props:G})}else if(P.elType==="shape"){const G=i.value.elements.find(Q=>Q.id===P.elId);if(G&&G.type==="shape"&&G.text){const Q={text:{...G.text,content:W.innerHTML}};t.updateElement({id:P.elId,slideId:P.slideId,props:Q})}}}}c.value=[],l.value=-1}},O=()=>{l.value=-1,c.value=[],a.value||x()};return Tt(a,O),Tt(o,()=>{Vr(()=>{R(),setTimeout(y,0)})}),Tt(n,()=>{n.value&&(l.value=-1,c.value=[],x())}),Vd(x),{searchWord:a,replaceWord:s,searchResults:c,searchIndex:l,modifiers:u,searchNext:S,searchPrev:L,replace:T,replaceAll:M,toggleModifiers:()=>{u.value=u.value==="g"?"gi":"g",O()}}},rxe={class:"count"},oxe={key:1,class:"footer"},ixe=Fe({__name:"SearchPanel",setup(e){const t=ft(),{searchWord:n,replaceWord:r,searchResults:o,searchIndex:i,modifiers:a,searchNext:s,searchPrev:c,replace:l,replaceAll:u,toggleModifiers:f}=nxe(),d=pe("search"),h=[{key:"search",label:"查找"},{key:"replace",label:"替换"}],p=()=>{t.setSearchPanelState(!1)},m=pe();return Gt(()=>{m.value.focus()}),Tt(d,()=>{Vr(()=>{m.value.focus()})}),(A,x)=>{const R=xe("IconClose"),y=xe("IconLeft"),g=xe("IconRight"),S=Mn("tooltip");return Y(),we(jp,{class:"search-panel",width:330,height:0,left:-270,top:90},{default:re(()=>[V("div",{class:"close-btn",onClick:x[0]||(x[0]=L=>p()),onMousedown:x[1]||(x[1]=Wt(()=>{},["stop"]))},[w(R)],32),w(As,{tabs:h,value:d.value,"onUpdate:value":x[2]||(x[2]=L=>d.value=L)},null,8,["value"]),V("div",{class:$e(["content",d.value]),onMousedown:x[12]||(x[12]=Wt(()=>{},["stop"]))},[w(Xu,{class:"input",value:H(n),"onUpdate:value":x[6]||(x[6]=L=>lr(n)?n.value=L:null),placeholder:"输入查找内容",onEnter:x[7]||(x[7]=L=>H(s)()),ref_key:"searchInpRef",ref:m},{suffix:re(()=>[V("span",rxe,gt(H(i)+1)+"/"+gt(H(o).length),1),w(Ut,{type:"vertical"}),De((Y(),ee("span",{class:$e(["ignore-case",{active:H(a)==="g"}]),onClick:x[3]||(x[3]=L=>H(f)())},[We("Aa")],2)),[[S,"忽略大小写"]]),w(Ut,{type:"vertical"}),De(w(y,{class:"next-btn left",onClick:x[4]||(x[4]=L=>H(c)())},null,512),[[S,"上一个"]]),De(w(g,{class:"next-btn right",onClick:x[5]||(x[5]=L=>H(s)())},null,512),[[S,"下一个"]])]),_:1},8,["value"]),d.value==="replace"?(Y(),we(Xu,{key:0,class:"input",value:H(r),"onUpdate:value":x[8]||(x[8]=L=>lr(r)?r.value=L:null),placeholder:"输入替换内容",onEnter:x[9]||(x[9]=L=>H(l)())},null,8,["value"])):Be("",!0),d.value==="replace"?(Y(),ee("div",oxe,[w(et,{disabled:!H(n),style:{"margin-left":"5px"},onClick:x[10]||(x[10]=L=>H(l)())},{default:re(()=>[We("替换")]),_:1},8,["disabled"]),w(et,{disabled:!H(n),type:"primary",style:{"margin-left":"5px"},onClick:x[11]||(x[11]=L=>H(u)())},{default:re(()=>[We("全部替换")]),_:1},8,["disabled"])])):Be("",!0)],34)]),_:1})}}}),axe=Ue(ixe,[["__scopeId","data-v-2536ae51"]]),sxe={class:"container"},lxe={class:"notes"},cxe=["onClick"],uxe={class:"header note-header"},fxe={class:"user"},dxe={class:"avatar"},hxe={class:"user-info"},pxe={class:"username"},mxe={class:"time"},vxe={class:"btns"},gxe=["onClick"],Axe=["onClick"],Rxe={class:"content"},yxe={key:0,class:"replies"},xxe={class:"header reply-header"},bxe={class:"user"},Sxe={class:"avatar"},Mxe={class:"user-info"},wxe={class:"username"},Lxe={class:"time"},Oxe={class:"btns"},Txe=["onClick"],kxe={class:"content"},Nxe={key:1,class:"note-reply"},Pxe={class:"reply-btns"},Cxe={key:0,class:"empty"},Ixe={class:"send"},Fxe={class:"footer"},_xe=Fe({__name:"NotesPanel",setup(e){const t=ct(),n=ft(),{slideIndex:r,currentSlide:o}=Xe(t),{handleElementId:i}=Xe(n),a=pe(""),s=pe(""),c=Me(()=>{var y;return((y=o.value)==null?void 0:y.notes)||[]}),l=pe(""),u=pe(""),f=pe(),d=()=>{if(!a.value){f.value&&f.value.focus();return}const y={id:pn(),content:a.value,time:new Date().getTime(),user:"测试用户"};i.value&&(y.elId=i.value);const g=[...c.value,y];t.updateSlide({notes:g}),a.value=""},h=y=>{const g=c.value.filter(S=>S.id!==y);t.updateSlide({notes:g})},p=()=>{if(!s.value)return;const y=c.value.find(T=>T.id===u.value);if(!y)return;const g=[...y.replies||[],{id:pn(),content:s.value,time:new Date().getTime(),user:"测试用户"}],S={...y,replies:g},L=c.value.map(T=>T.id===u.value?S:T);t.updateSlide({notes:L}),s.value="",u.value=""},m=(y,g)=>{const S=c.value.find(O=>O.id===y);if(!S||!S.replies)return;const L=S.replies.filter(O=>O.id!==g),T={...S,replies:L},M=c.value.map(O=>O.id===y?T:O);t.updateSlide({notes:M})},A=y=>{l.value=y.id,y.elId?o.value.elements.map(S=>S.id).includes(y.elId)?n.setActiveElementIdList([y.elId]):n.setActiveElementIdList([]):n.setActiveElementIdList([])},x=()=>{t.updateSlide({notes:[]})},R=()=>{n.setNotesPanelState(!1)};return(y,g)=>{const S=xe("IconUser"),L=xe("IconDelete"),T=Mn("tooltip");return Y(),we(jp,{class:"notes-panel",width:300,height:560,title:`幻灯片${H(r)+1}的批注`,left:-270,top:90,minWidth:300,minHeight:400,maxWidth:480,maxHeight:780,resizeable:"",onClose:g[7]||(g[7]=M=>R())},{default:re(()=>[V("div",sxe,[V("div",lxe,[(Y(!0),ee(Ve,null,it(c.value,M=>{var O;return Y(),ee("div",{class:$e(["note",{active:l.value===M.id}]),key:M.id,onClick:k=>A(M)},[V("div",uxe,[V("div",fxe,[V("div",dxe,[w(S)]),V("div",hxe,[V("div",pxe,gt(M.user),1),V("div",mxe,gt(new Date(M.time).toLocaleString()),1)])]),V("div",vxe,[V("div",{class:"btn reply",onClick:k=>u.value=M.id},"回复",8,gxe),V("div",{class:"btn delete",onClick:Wt(k=>h(M.id),["stop"])},"删除",8,Axe)])]),V("div",Rxe,gt(M.content),1),(O=M.replies)!=null&&O.length?(Y(),ee("div",yxe,[(Y(!0),ee(Ve,null,it(M.replies,k=>(Y(),ee("div",{class:"reply-item",key:k.id},[V("div",xxe,[V("div",bxe,[V("div",Sxe,[w(S)]),V("div",Mxe,[V("div",wxe,gt(k.user),1),V("div",Lxe,gt(new Date(k.time).toLocaleString()),1)])]),V("div",Oxe,[V("div",{class:"btn delete",onClick:Wt(F=>m(M.id,k.id),["stop"])},"删除",8,Txe)])]),V("div",kxe,gt(k.content),1)]))),128))])):Be("",!0),u.value===M.id?(Y(),ee("div",Nxe,[w(cx,{padding:6,value:s.value,"onUpdate:value":g[0]||(g[0]=k=>s.value=k),placeholder:"输入回复内容",rows:1},null,8,["value"]),V("div",Pxe,[w(et,{class:"btn",size:"small",onClick:g[1]||(g[1]=k=>u.value="")},{default:re(()=>[We("取消")]),_:1}),w(et,{class:"btn",size:"small",type:"primary",onClick:g[2]||(g[2]=k=>p())},{default:re(()=>[We("回复")]),_:1})])])):Be("",!0)],10,cxe)}),128)),c.value.length?Be("",!0):(Y(),ee("div",Cxe,"本页暂无批注"))]),V("div",Ixe,[w(cx,{ref_key:"textAreaRef",ref:f,value:a.value,"onUpdate:value":g[3]||(g[3]=M=>a.value=M),padding:6,placeholder:`输入批注(为${H(i)?"选中元素":"当前页幻灯片"})`,rows:2,onFocus:g[4]||(g[4]=M=>{u.value="",l.value=""})},null,8,["value","placeholder"]),V("div",Fxe,[De((Y(),we(et,{class:"btn",style:{flex:"1"},onClick:g[5]||(g[5]=M=>x())},{default:re(()=>[w(L)]),_:1})),[[T,"清空本页批注"]]),w(et,{type:"primary",class:"btn",style:{flex:"12"},onClick:g[6]||(g[6]=M=>d())},{default:re(()=>[We("添加批注")]),_:1})])])])]),_:1},8,["title"])}}}),Exe=Ue(_xe,[["__scopeId","data-v-3d769863"]]),Xxe={class:"pptist-editor"},Wxe={class:"layout-content"},Vxe={class:"layout-content-center"},Uxe=Fe({__name:"index",setup(e){const t=ft(),{dialogForExport:n,showSelectPanel:r,showSearchPanel:o,showNotesPanel:i}=Xe(t),a=()=>t.setDialogForExport(""),s=pe(40);return mq(),vq(),(c,l)=>(Y(),ee(Ve,null,[V("div",Xxe,[w(yoe,{class:"layout-header"}),V("div",Wxe,[w(rpe,{class:"layout-content-left"}),V("div",Vxe,[w(lhe,{class:"center-top"}),w(bde,{class:"center-body",style:Le({height:`calc(100% - ${s.value+40}px)`})},null,8,["style"]),w(JRe,{class:"center-bottom",height:s.value,"onUpdate:height":l[0]||(l[0]=u=>s.value=u),style:Le({height:`${s.value}px`})},null,8,["height","style"])]),w(BRe,{class:"layout-content-right"})])]),H(r)?(Y(),we(txe,{key:0})):Be("",!0),H(o)?(Y(),we(axe,{key:1})):Be("",!0),H(i)?(Y(),we(Exe,{key:2})):Be("",!0),w(Zp,{visible:!!H(n),width:680,onClosed:l[1]||(l[1]=u=>a())},{default:re(()=>[w(F3e)]),_:1},8,["visible"])],64))}}),Yxe=Ue(Uxe,[["__scopeId","data-v-39fd665d"]]),H_=()=>{const e=ct(),{slides:t,slideIndex:n,formatedAnimations:r}=Xe(e),o=pe(0),i=pe(!1),a=pe(n.value),s=()=>{if(i.value)return;const{animations:N,autoNext:E}=r.value[o.value];o.value+=1,i.value=!0;let P=0;for(const _ of N){const I=document.querySelector(`#screen-element-${_.elId} [class^=base-element-]`);if(!I){P+=1;continue}const W=`${bi}${_.effect}`;I.style.removeProperty("--animate-duration");for(const z of I.classList)z.indexOf(bi)!==-1&&I.classList.remove(z,`${bi}animated`);I.style.setProperty("--animate-duration",`${_.duration}ms`),I.classList.add(W,`${bi}animated`);const D=()=>{_.type!=="out"&&(I.style.removeProperty("--animate-duration"),I.classList.remove(W,`${bi}animated`)),P+=1,P===N.length&&(i.value=!1,E&&s())};I.addEventListener("animationend",D,{once:!0})}},c=()=>{o.value-=1;const{animations:N}=r.value[o.value];for(const E of N){const P=document.querySelector(`#screen-element-${E.elId} [class^=base-element-]`);if(P){P.style.removeProperty("--animate-duration");for(const _ of P.classList)_.indexOf(bi)!==-1&&P.classList.remove(_,`${bi}animated`)}}N.every(E=>E.type==="attention")&&p()},l=pe(0),u=()=>{l.value&&(clearInterval(l.value),l.value=0)};On(u);const f=pe(!1),d=N=>{f.value=N},h=_n.throttle(function(N){Sn.success(N)},1e3,{leading:!0,trailing:!1}),p=()=>{r.value.length&&o.value>0?c():n.value>0?(e.updateSlideIndex(n.value-1),n.value{r.value.length&&o.value{u(),Sn.success("开始自动放映"),l.value=setInterval(m,A.value)},R=N=>{u(),A.value=N,x()},y=_n.throttle(function(N){N.deltaY<0?p():N.deltaY>0&&m()},500,{leading:!0,trailing:!1}),g=pe(null),S=N=>{g.value={x:N.changedTouches[0].pageX,y:N.changedTouches[0].pageY}},L=N=>{if(!g.value)return;const E=Math.abs(g.value.x-N.changedTouches[0].pageX),P=N.changedTouches[0].pageY-g.value.y;Math.abs(P)>E&&Math.abs(P)>50&&(g.value=null,P>0?p():m())},T=N=>{const E=N.key.toUpperCase();E===yt.UP||E===yt.LEFT||E===yt.PAGEUP?p():(E===yt.DOWN||E===yt.RIGHT||E===yt.SPACE||E===yt.ENTER||E===yt.PAGEDOWN)&&m()};Gt(()=>document.addEventListener("keydown",T)),On(()=>document.removeEventListener("keydown",T));const M=()=>{e.updateSlideIndex(n.value-1),o.value=0},O=()=>{e.updateSlideIndex(n.value+1),o.value=0},k=N=>{e.updateSlideIndex(N),o.value=0};return{autoPlayTimer:l,autoPlayInterval:A,setAutoPlayInterval:R,autoPlay:x,closeAutoPlay:u,loopPlay:f,setLoopPlay:d,mousewheelListener:y,touchStartListener:S,touchEndListener:L,turnPrevSlide:M,turnNextSlide:O,turnSlideToIndex:k,turnSlideToId:N=>{const E=t.value.findIndex(P=>P.id===N);E!==-1&&(e.updateSlideIndex(E),o.value=0)},execPrev:p,execNext:m,animationIndex:o}},G_=e=>{const t=ct(),{viewportRatio:n}=Xe(t),r=pe(0),o=pe(0),i=()=>{const a=(e==null?void 0:e.value)||document.body,s=a.clientWidth,c=a.clientHeight;let l,u;c/s===n.value?(l=s,u=c):c/s>n.value?(l=s,u=s*n.value):(l=c/n.value,u=c),r.value=l,o.value=u};return Gt(()=>{i(),window.addEventListener("resize",i)}),On(()=>{window.removeEventListener("resize",i)}),{slideWidth:r,slideHeight:o}},z_=()=>{const e=pe(!0),t=pe(!0),{exitScreening:n}=Mc(),r=()=>{e.value=p3(),!e.value&&t.value&&n(),t.value=!0};return Gt(()=>{e.value=p3(),document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r)}),On(()=>{document.removeEventListener("fullscreenchange",r),document.removeEventListener("webkitfullscreenchange",r)}),{fullscreenState:e,manualExitFullscreen:()=>{e.value&&(t.value=!1,$P())}}},Qxe={class:"element-content"},Zxe=Fe({__name:"ScreenVideoElement",props:{elementInfo:{}},setup(e){const{currentSlide:t}=Xe(ct()),n=jo(tf)||pe(1),r=jo(o5)||pe(""),o=Me(()=>t.value.id===r.value);return(i,a)=>(Y(),ee("div",{class:"base-element-video screen-element-video",style:Le({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:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[V("div",Qxe,[o.value?(Y(),we(PF,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,src:i.elementInfo.src,poster:i.elementInfo.poster,autoplay:i.elementInfo.autoplay,scale:H(n)},null,8,["width","height","src","poster","autoplay","scale"])):Be("",!0)])],4)],4))}}),Bxe=Ue(Zxe,[["__scopeId","data-v-d9f232b0"]]),Dxe={class:"element-content"},Kxe=Fe({__name:"ScreenAudioElement",props:{elementInfo:{}},setup(e){const t=e,{viewportRatio:n,currentSlide:r}=Xe(ct()),o=jo(tf)||pe(1),i=jo(o5)||pe(""),a=Me(()=>r.value.id===i.value),s=Me(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),c=Me(()=>{const f=Ht,d=Ht*n.value,h=280/o.value,p=50/o.value,m=t.elementInfo.width,A=t.elementInfo.height,x=t.elementInfo.left,R=t.elementInfo.top;let y=0,g=A;return x+h>=f&&(y=m-h),R+A+p>=d&&(g=-p),{left:y+"px",top:g+"px"}}),l=pe(),u=()=>{l.value&&l.value.toggle()};return(f,d)=>{const h=xe("IconVolumeNotice");return Y(),ee("div",{class:"base-element-audio screen-element-audio",style:Le({top:f.elementInfo.top+"px",left:f.elementInfo.left+"px",width:f.elementInfo.width+"px",height:f.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${f.elementInfo.rotate}deg)`})},[V("div",Dxe,[w(h,{class:"audio-icon",style:Le({fontSize:s.value,color:f.elementInfo.color}),onClick:d[0]||(d[0]=p=>u())},null,8,["style"]),a.value?(Y(),we(FF,{key:0,class:"audio-player",ref_key:"audioPlayerRef",ref:l,style:Le({...c.value}),src:f.elementInfo.src,loop:f.elementInfo.loop,autoplay:f.elementInfo.autoplay,scale:H(o)},null,8,["style","src","loop","autoplay","scale"])):Be("",!0)])],4)],4)}}}),Hxe=Ue(Kxe,[["__scopeId","data-v-94802f8e"]]),Gxe=["id","title"],zxe=Fe({__name:"ScreenElement",props:{elementInfo:{},elementIndex:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(e){const t=e,n=Me(()=>({[Nt.IMAGE]:WF,[Nt.TEXT]:VF,[Nt.SHAPE]:UF,[Nt.LINE]:YF,[Nt.CHART]:QF,[Nt.TABLE]:ZF,[Nt.LATEX]:BF,[Nt.VIDEO]:Bxe,[Nt.AUDIO]:Hxe})[t.elementInfo.type]||null),{formatedAnimations:r,theme:o}=Xe(ct()),i=Me(()=>{const s=r.value.findIndex(l=>l.animations.map(f=>f.elId).includes(t.elementInfo.id));if(s===-1||sl.elId===t.elementInfo.id);return(c==null?void 0:c.type)==="in"}),a=()=>{const s=t.elementInfo.link;s&&(s.type==="web"?(t.manualExitFullscreen(),window.open(s.target)):s.type==="slide"&&t.turnSlideToId(s.target))};return(s,c)=>{var l;return Y(),ee("div",{class:$e(["screen-element",{link:s.elementInfo.link}]),id:`screen-element-${s.elementInfo.id}`,style:Le({zIndex:s.elementIndex,color:H(o).fontColor,fontFamily:H(o).fontName,visibility:i.value?"hidden":"visible"}),title:((l=s.elementInfo.link)==null?void 0:l.target)||"",onClick:c[0]||(c[0]=u=>a())},[(Y(),we(xs(n.value),{elementInfo:s.elementInfo},null,8,["elementInfo"]))],14,Gxe)}}}),Jxe=Ue(zxe,[["__scopeId","data-v-da31ab53"]]),$xe=Fe({__name:"ScreenSlide",props:{slide:{},scale:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(e){const t=e,{viewportRatio:n}=Xe(ct()),r=Me(()=>t.slide.background),{backgroundStyle:o}=d2(r),i=Me(()=>t.slide.id);return Ku(o5,i),(a,s)=>(Y(),ee("div",{class:"screen-slide",style:Le({width:H(Ht)+"px",height:H(Ht)*H(n)+"px",transform:`scale(${a.scale})`})},[V("div",{class:"background",style:Le({...H(o)})},null,4),(Y(!0),ee(Ve,null,it(a.slide.elements,(c,l)=>(Y(),we(Jxe,{key:c.id,elementInfo:c,elementIndex:l+1,animationIndex:a.animationIndex,turnSlideToId:a.turnSlideToId,manualExitFullscreen:a.manualExitFullscreen},null,8,["elementInfo","elementIndex","animationIndex","turnSlideToId","manualExitFullscreen"]))),128))],4))}}),jxe=Ue($xe,[["__scopeId","data-v-7ee8460e"]]),qxe={class:"screen-slide-list"},ebe=Fe({__name:"ScreenSlideList",props:{slideWidth:{},slideHeight:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(e){const t=e,{slides:n,slideIndex:r}=Xe(ct()),o=Me(()=>n.value.map(a=>{let s=a.turningMode;if(s||(s="slideY"),s==="random"){const c=w_.filter(l=>!["random","no"].includes(l.value)).map(l=>l.value);s=c[Math.floor(Math.random()*c.length)]}return{...a,turningMode:s}})),i=Me(()=>t.slideWidth/Ht);return Ku(tf,i),(a,s)=>(Y(),ee("div",qxe,[(Y(!0),ee(Ve,null,it(o.value,(c,l)=>{var u;return Y(),ee("div",{class:$e(["slide-item",`turning-mode-${c.turningMode}`,{current:l===H(r),before:lH(r),hide:(l===H(r)-1||l===H(r)+1)&&c.turningMode!==o.value[H(r)].turningMode}]),key:c.id},[Math.abs(H(r)-l)<2||(u=c.animations)!=null&&u.length?(Y(),ee("div",{key:0,class:"slide-content",style:Le({width:a.slideWidth+"px",height:a.slideHeight+"px"})},[w(jxe,{slide:c,scale:i.value,animationIndex:a.animationIndex,turnSlideToId:a.turnSlideToId,manualExitFullscreen:a.manualExitFullscreen},null,8,["slide","scale","animationIndex","turnSlideToId","manualExitFullscreen"])],4)):Be("",!0)],2)}),128))]))}}),J_=Ue(ebe,[["__scopeId","data-v-21b28464"]]),tbe={class:"slide-thumbnails"},nbe={class:"return-button"},rbe={class:"slide-thumbnails-content"},obe=["onClick"],ibe=Fe({__name:"SlideThumbnails",props:{turnSlideToIndex:{type:Function}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,{slides:o,slideIndex:i}=Xe(ct()),{slidesLoadLimit:a}=Bp(),s=c=>{n.turnSlideToIndex(c),r("close")};return(c,l)=>{const u=xe("IconArrowCircleLeft");return Y(),ee("div",tbe,[V("div",nbe,[w(u,{class:"icon",onClick:l[0]||(l[0]=f=>r("close"))})]),V("div",rbe,[(Y(!0),ee(Ve,null,it(H(o),(f,d)=>(Y(),ee("div",{class:$e(["thumbnail",{active:d===H(i)}]),key:f.id,onClick:h=>s(d)},[w(Fa,{slide:f,size:150,visible:ds.value?p.value/s.value.width:1),x=Me(()=>s.value?m.value/s.value.height:1),R=()=>{a.value&&(p.value=a.value.clientWidth,m.value=a.value.clientHeight)},y=new ResizeObserver(R);Gt(()=>{a.value&&y.observe(a.value)}),On(()=>{a.value&&y.unobserve(a.value)}),Gt(()=>{!s.value||!a.value||(i=s.value.getContext("2d"),i&&(s.value.width=a.value.clientWidth,s.value.height=a.value.clientHeight,i.lineCap="round",i.lineJoin="round"))});const S=()=>{i&&(r.model==="mark"?(i.globalCompositeOperation="xor",i.globalAlpha=.5):r.model==="pen"&&(i.globalCompositeOperation="source-over",i.globalAlpha=1))};Tt(()=>r.model,S);const L=(D,z,ae)=>{if(!i)return;const U=c.x,Z=c.y;i.lineWidth=ae,i.strokeStyle=r.color,i.beginPath(),i.moveTo(U,Z),i.lineTo(D,z),i.stroke(),i.closePath()},T=(D,z)=>{if(!i||!s.value)return;const ae=c.x,U=c.y,Z=r.rubberSize/2,B=Z*Math.sin(Math.atan((z-U)/(D-ae))),G=Z*Math.cos(Math.atan((z-U)/(D-ae))),Q=[ae+B,U-G],ie=[ae-B,U+G],q=[D+B,z-G],oe=[D-B,z+G];i.save(),i.beginPath(),i.arc(D,z,Z,0,Math.PI*2),i.clip(),i.clearRect(0,0,s.value.width,s.value.height),i.restore(),i.save(),i.beginPath(),i.moveTo(...Q),i.lineTo(...q),i.lineTo(...oe),i.lineTo(...ie),i.closePath(),i.clip(),i.clearRect(0,0,s.value.width,s.value.height),i.restore()},M=(D,z)=>{const ae=c.x,U=c.y;return Math.sqrt((D-ae)*(D-ae)+(z-U)*(z-U))},O=(D,z)=>{const Z=r.penSize,B=3,G=D/z;let Q;return G<=.1?Q=Z:G>=10?Q=B:Q=Z-G/10*Z,f===-1?Q:Q*1/3+f*2/3},k=(D,z)=>{const ae=new Date().getTime();if(r.model==="pen"){const U=M(D,z),Z=ae-u,B=O(U,Z);L(D,z,B),f=B}else r.model==="mark"?L(D,z,r.markSize):T(D,z);c={x:D,y:z},u=new Date().getTime()},F=D=>{if(!s.value)return[0,0];const z=D instanceof MouseEvent?D:D.changedTouches[0],ae=s.value.getBoundingClientRect(),U=z.pageX-ae.x,Z=z.pageY-ae.y;return[U,Z]},N=D=>{const[z,ae]=F(D),U=z/A.value,Z=ae/x.value;l=!0,c={x:U,y:Z},u=new Date().getTime(),D instanceof MouseEvent||(d.value={x:z,y:ae},h.value=!0)},E=D=>{const[z,ae]=F(D),U=z/A.value,Z=ae/x.value;d.value={x:z,y:ae},l&&k(U,Z)},P=()=>{l&&(l=!1,o("end"))};return t({clearCanvas:()=>{!i||!s.value||(i.clearRect(0,0,s.value.width,s.value.height),o("end"))},getImageDataURL:()=>{var D;return(D=s.value)==null?void 0:D.toDataURL()},setImageDataURL:D=>{if(!(!i||!s.value)&&(i.clearRect(0,0,s.value.width,s.value.height),D)){i.globalCompositeOperation="source-over",i.globalAlpha=1;const z=new Image;z.src=D,z.onload=()=>{i.drawImage(z,0,0),S()}}}}),(D,z)=>{const ae=xe("IconWrite"),U=xe("IconHighLight");return Y(),ee("div",{class:"writing-board",ref_key:"writingBoardRef",ref:a},[D.blackboard?(Y(),ee("div",sbe)):Be("",!0),V("canvas",{class:"canvas",ref_key:"canvasRef",ref:s,style:Le({width:p.value+"px",height:m.value+"px"}),onMousedown:z[0]||(z[0]=Z=>N(Z)),onMousemove:z[1]||(z[1]=Z=>E(Z)),onMouseup:z[2]||(z[2]=Z=>P()),onTouchstart:z[3]||(z[3]=Z=>N(Z)),onTouchmove:z[4]||(z[4]=Z=>E(Z)),onTouchend:z[5]||(z[5]=Z=>{P(),h.value=!1}),onMouseleave:z[6]||(z[6]=Z=>{P(),h.value=!1}),onMouseenter:z[7]||(z[7]=Z=>h.value=!0)},null,36),h.value?(Y(),ee(Ve,{key:1},[D.model==="eraser"?(Y(),ee("div",{key:0,class:"eraser",style:Le({left:d.value.x-D.rubberSize/2+"px",top:d.value.y-D.rubberSize/2+"px",width:D.rubberSize+"px",height:D.rubberSize+"px"})},null,4)):Be("",!0),D.model==="pen"?(Y(),ee("div",{key:1,class:"pen",style:Le({left:d.value.x-D.penSize/2+"px",top:d.value.y-D.penSize*6+D.penSize/2+"px",color:D.color})},[D.model==="pen"?(Y(),we(ae,{key:0,class:"icon",size:D.penSize*6},null,8,["size"])):Be("",!0)],4)):Be("",!0),D.model==="mark"?(Y(),ee("div",{key:2,class:"pen",style:Le({left:d.value.x-D.markSize/2+"px",top:d.value.y+"px",color:D.color})},[D.model==="mark"?(Y(),we(U,{key:0,class:"icon",size:D.markSize*1.5},null,8,["size"])):Be("",!0)],4)):Be("",!0)],64)):Be("",!0)],512)}}}),cbe=Ue(lbe,[["__scopeId","data-v-55ae5f6c"]]),Z5=e=>(on("data-v-47295ef6"),e=e(),an(),e),ube={class:"writing-board-tool"},fbe={class:"tool-content"},dbe={class:"size"},hbe=Z5(()=>V("div",{class:"label"},"墨迹粗细:",-1)),pbe={class:"size"},mbe=Z5(()=>V("div",{class:"label"},"墨迹粗细:",-1)),vbe={class:"size"},gbe=Z5(()=>V("div",{class:"label"},"橡皮大小:",-1)),Abe={class:"colors"},Rbe=["onClick"],ybe=Fe({__name:"WritingBoardTool",props:{slideWidth:{},slideHeight:{},left:{default:-5},top:{default:-5}},emits:["close"],setup(e,{emit:t}){const n=["#000000","#ffffff","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c","#ffff3a"],r=t,{currentSlide:o}=Xe(ct()),i=pe(),a=pe("#e2534d"),s=pe("pen"),c=pe(!1),l=pe(""),u=pe(6),f=pe(24),d=pe(80),h=R=>{s.value===R?l.value=l.value===R?"":R:(l.value&&(l.value=""),s.value=R)},p=()=>{i.value.clearCanvas()},m=R=>{s.value==="eraser"&&(s.value="pen"),a.value=R},A=()=>{r("close")};Tt(o,()=>{xa.writingBoardImgs.where("id").equals(o.value.id).toArray().then(R=>{const y=R[0];i.value.setImageDataURL((y==null?void 0:y.dataURL)||"")})},{immediate:!0});const x=()=>{const R=i.value.getImageDataURL();R&&xa.writingBoardImgs.where("id").equals(o.value.id).toArray().then(y=>{const g=y[0];g?xa.writingBoardImgs.update(g,{dataURL:R}):xa.writingBoardImgs.add({id:o.value.id,dataURL:R})})};return(R,y)=>{const g=xe("IconWrite"),S=xe("IconHighLight"),L=xe("IconErase"),T=xe("IconClear"),M=xe("IconFill"),O=xe("IconClose"),k=Mn("tooltip");return Y(),ee("div",ube,[V("div",{class:"writing-board-wrap",style:Le({width:R.slideWidth+"px",height:R.slideHeight+"px"})},[w(cbe,{ref_key:"writingBoardRef",ref:i,color:a.value,blackboard:c.value,model:s.value,penSize:u.value,markSize:f.value,rubberSize:d.value,onEnd:y[0]||(y[0]=F=>x())},null,8,["color","blackboard","model","penSize","markSize","rubberSize"])],4),w(jp,{class:"tools-panel",width:520,height:50,left:R.left,top:R.top,moveable:l.value===""},{default:re(()=>[V("div",{class:"tools",onMousedown:y[10]||(y[10]=Wt(()=>{},["stop"]))},[V("div",fbe,[w(kt,{trigger:"manual",value:l.value==="pen"},{content:re(()=>[V("div",dbe,[hbe,w(no,{class:"size-slider",min:4,max:10,step:2,value:u.value,"onUpdate:value":y[1]||(y[1]=F=>u.value=F)},null,8,["value"])])]),default:re(()=>[De((Y(),ee("div",{class:$e(["btn",{active:s.value==="pen"}]),onClick:y[2]||(y[2]=F=>h("pen"))},[w(g,{class:"icon"})],2)),[[k,"画笔"]])]),_:1},8,["value"]),w(kt,{trigger:"manual",value:l.value==="mark"},{content:re(()=>[V("div",pbe,[mbe,w(no,{class:"size-slider",min:16,max:40,step:4,value:f.value,"onUpdate:value":y[3]||(y[3]=F=>f.value=F)},null,8,["value"])])]),default:re(()=>[De((Y(),ee("div",{class:$e(["btn",{active:s.value==="mark"}]),onClick:y[4]||(y[4]=F=>h("mark"))},[w(S,{class:"icon"})],2)),[[k,"荧光笔"]])]),_:1},8,["value"]),w(kt,{trigger:"manual",value:l.value==="eraser"},{content:re(()=>[V("div",vbe,[gbe,w(no,{class:"size-slider",min:20,max:200,step:20,value:d.value,"onUpdate:value":y[5]||(y[5]=F=>d.value=F)},null,8,["value"])])]),default:re(()=>[De((Y(),ee("div",{class:$e(["btn",{active:s.value==="eraser"}]),onClick:y[6]||(y[6]=F=>h("eraser"))},[w(L,{class:"icon"})],2)),[[k,"橡皮擦"]])]),_:1},8,["value"]),De((Y(),ee("div",{class:"btn",onClick:y[7]||(y[7]=F=>p())},[w(T,{class:"icon"})])),[[k,"清除墨迹"]]),De((Y(),ee("div",{class:$e(["btn",{active:c.value}]),onClick:y[8]||(y[8]=F=>c.value=!c.value)},[w(M,{class:"icon"})],2)),[[k,"黑板"]]),V("div",Abe,[(Y(),ee(Ve,null,it(n,F=>V("div",{class:$e(["color",{active:F===a.value}]),key:F,style:Le({backgroundColor:F}),onClick:N=>m(F)},null,14,Rbe)),64))])]),De((Y(),ee("div",{class:"btn",onClick:y[9]||(y[9]=F=>A())},[w(O,{class:"icon"})])),[[k,"关闭画笔"]])],32)]),_:1},8,["left","top","moveable"])])}}}),$_=Ue(ybe,[["__scopeId","data-v-47295ef6"]]),xbe=e=>(on("data-v-92c1f9be"),e=e(),an(),e),bbe={class:"header"},Sbe={class:"content"},Mbe={class:"timer"},wbe=["value","disabled"],Lbe=xbe(()=>V("div",{class:"colon"},":",-1)),Obe={class:"timer"},Tbe=["value","disabled"],kbe=Fe({__name:"CountdownTimer",props:{left:{default:5},top:{default:5}},emits:["close"],setup(e,{emit:t}){const n=t,r=pe(null),o=pe(!1),i=pe(!1),a=pe(0),s=Me(()=>Math.floor(a.value/60)),c=Me(()=>a.value%60),l=Me(()=>!i.value||o.value),u=()=>{r.value&&clearInterval(r.value)};On(u);const f=()=>{u(),o.value=!1},d=()=>{u(),o.value=!1,i.value?a.value=600:a.value=0},h=()=>{u(),i.value?r.value=setInterval(()=>{a.value=a.value-1,a.value<=0&&d()},1e3):r.value=setInterval(()=>{a.value=a.value+1,a.value>36e3&&f()},1e3),o.value=!0},p=()=>{o.value?f():h()},m=()=>{i.value=!i.value,d()},A=(x,R)=>{const y=x.target;let g=y.value;/^(\d)+$/.test(g)?(R==="second"&&+g>=60&&(g="59"),a.value=R==="minute"?+g*60+c.value:+g+s.value*60):y.value=X0(R==="minute"?s.value:c.value,2)};return(x,R)=>{const y=xe("IconClose");return Y(),we(jp,{class:"countdown-timer",width:180,height:110,left:x.left,top:x.top},{default:re(()=>[V("div",bbe,[V("span",{class:"text-btn",onClick:R[0]||(R[0]=g=>p())},gt(o.value?"暂停":"开始"),1),V("span",{class:"text-btn",onClick:R[1]||(R[1]=g=>d())},"重置"),V("span",{class:$e(["text-btn",{active:i.value}]),onClick:R[2]||(R[2]=g=>m())},"倒计时",2)]),V("div",Sbe,[V("div",Mbe,[V("input",{type:"text",value:H(X0)(s.value,2),maxlength:3,disabled:l.value,onMousedown:R[3]||(R[3]=Wt(()=>{},["stop"])),onBlur:R[4]||(R[4]=g=>A(g,"minute")),onKeydown:[R[5]||(R[5]=Wt(()=>{},["stop"])),R[6]||(R[6]=gc(Wt(g=>A(g,"minute"),["stop"]),["enter"]))]},null,40,wbe)]),Lbe,V("div",Obe,[V("input",{type:"text",value:H(X0)(c.value,2),maxlength:3,disabled:l.value,onMousedown:R[7]||(R[7]=Wt(()=>{},["stop"])),onBlur:R[8]||(R[8]=g=>A(g,"second")),onKeydown:[R[9]||(R[9]=Wt(()=>{},["stop"])),R[10]||(R[10]=gc(Wt(g=>A(g,"second"),["stop"]),["enter"]))]},null,40,Tbe)])]),V("div",{class:"close-btn",onClick:R[11]||(R[11]=g=>n("close"))},[w(y,{class:"icon"})])]),_:1},8,["left","top"])}}}),j_=Ue(kbe,[["__scopeId","data-v-92c1f9be"]]),Nbe={class:"tools-left"},Pbe={class:"content"},Cbe=Fe({__name:"BaseView",props:{changeViewMode:{type:Function}},setup(e){const t=e,{slides:n,slideIndex:r}=Xe(ct()),{autoPlayTimer:o,autoPlay:i,closeAutoPlay:a,autoPlayInterval:s,setAutoPlayInterval:c,loopPlay:l,setLoopPlay:u,mousewheelListener:f,touchStartListener:d,touchEndListener:h,turnPrevSlide:p,turnNextSlide:m,turnSlideToIndex:A,turnSlideToId:x,execPrev:R,execNext:y,animationIndex:g}=H_(),{slideWidth:S,slideHeight:L}=G_(),{exitScreening:T}=Mc(),{fullscreenState:M,manualExitFullscreen:O}=z_(),k=pe(!1),F=pe(!1),N=pe(!1),E=pe(!1),P=pe(!1),_=()=>[{text:"上一页",subText:"↑ ←",disable:r.value<=0,handler:()=>p()},{text:"下一页",subText:"↓ →",disable:r.value>=n.value.length-1,handler:()=>m()},{text:"第一页",disable:r.value===0,handler:()=>A(0)},{text:"最后一页",disable:r.value===n.value.length-1,handler:()=>A(n.value.length-1)},{divider:!0},{text:o.value?"取消自动放映":"自动放映",handler:o.value?a:i,children:[{text:"2.5秒",subText:s.value===2500?"√":"",handler:()=>c(2500)},{text:"5秒",subText:s.value===5e3?"√":"",handler:()=>c(5e3)},{text:"7.5秒",subText:s.value===7500?"√":"",handler:()=>c(7500)},{text:"10秒",subText:s.value===1e4?"√":"",handler:()=>c(1e4)}]},{text:"循环放映",subText:l.value?"√":"",handler:()=>u(!l.value)},{divider:!0},{text:"显示工具栏",handler:()=>k.value=!0},{text:"查看所有幻灯片",handler:()=>E.value=!0},{text:"画笔工具",handler:()=>F.value=!0},{text:"演讲者视图",handler:()=>t.changeViewMode("presenter")},{divider:!0},{text:"结束放映",subText:"ESC",handler:T}];return(I,W)=>{const D=xe("IconLeftTwo"),z=xe("IconRightTwo"),ae=xe("IconWrite"),U=xe("IconMagic"),Z=xe("IconStopwatchStart"),B=xe("IconListView"),G=xe("IconOffScreenOne"),Q=xe("IconFullScreenOne"),ie=xe("IconPower"),q=Mn("contextmenu"),oe=Mn("tooltip");return Y(),ee("div",{class:$e(["base-view",{"laser-pen":P.value}])},[De(w(J_,{slideWidth:H(S),slideHeight:H(L),animationIndex:H(g),turnSlideToId:H(x),manualExitFullscreen:H(O),onWheel:W[0]||(W[0]=he=>H(f)(he)),onTouchstart:W[1]||(W[1]=he=>H(d)(he)),onTouchend:W[2]||(W[2]=he=>H(h)(he))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[q,_]]),E.value?(Y(),we(abe,{key:0,turnSlideToIndex:H(A),onClose:W[3]||(W[3]=he=>E.value=!1)},null,8,["turnSlideToIndex"])):Be("",!0),F.value?(Y(),we($_,{key:1,slideWidth:H(S),slideHeight:H(L),onClose:W[4]||(W[4]=he=>F.value=!1)},null,8,["slideWidth","slideHeight"])):Be("",!0),N.value?(Y(),we(j_,{key:2,onClose:W[5]||(W[5]=he=>N.value=!1)})):Be("",!0),V("div",Nbe,[w(D,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:W[6]||(W[6]=he=>H(R)())}),w(z,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:W[7]||(W[7]=he=>H(y)())})]),V("div",{class:$e(["tools-right",{visible:k.value}]),onMouseleave:W[16]||(W[16]=he=>k.value=!1),onMouseenter:W[17]||(W[17]=he=>k.value=!0)},[V("div",Pbe,[V("div",{class:"tool-btn page-number",onClick:W[8]||(W[8]=he=>E.value=!0)},"幻灯片 "+gt(H(r)+1)+" / "+gt(H(n).length),1),De(w(ae,{class:"tool-btn",onClick:W[9]||(W[9]=he=>F.value=!0)},null,512),[[oe,"画笔工具"]]),De(w(U,{class:$e(["tool-btn",{active:P.value}]),onClick:W[10]||(W[10]=he=>P.value=!P.value)},null,8,["class"]),[[oe,"激光笔"]]),De(w(Z,{class:$e(["tool-btn",{active:N.value}]),onClick:W[11]||(W[11]=he=>N.value=!N.value)},null,8,["class"]),[[oe,"计时器"]]),De(w(B,{class:"tool-btn",onClick:W[12]||(W[12]=he=>I.changeViewMode("presenter"))},null,512),[[oe,"演讲者视图"]]),H(M)?De((Y(),we(G,{key:0,class:"tool-btn",onClick:W[13]||(W[13]=he=>H(O)())},null,512)),[[oe,"退出全屏"]]):De((Y(),we(Q,{key:1,class:"tool-btn",onClick:W[14]||(W[14]=he=>H(Fb)())},null,512)),[[oe,"进入全屏"]]),De(w(ie,{class:"tool-btn",onClick:W[15]||(W[15]=he=>H(T)())},null,512),[[oe,"结束放映"]])])],34)],2)}}}),Ibe=Ue(Cbe,[["__scopeId","data-v-85c13201"]]),Jd=e=>(on("data-v-691774ef"),e=e(),an(),e),Fbe={class:"presenter-view"},_be={class:"toolbar"},Ebe=Jd(()=>V("span",null,"普通视图",-1)),Xbe=Jd(()=>V("span",null,"画笔",-1)),Wbe=Jd(()=>V("span",null,"激光笔",-1)),Vbe=Jd(()=>V("span",null,"计时器",-1)),Ube=Jd(()=>V("span",null,"结束放映",-1)),Ybe={class:"content"},Qbe=["onClick"],Zbe={class:"remark"},Bbe={class:"header"},Dbe=Jd(()=>V("span",null,"演讲者备注",-1)),Kbe=["innerHTML"],Hbe={class:"remark-scale"},Gbe=Fe({__name:"PresenterView",props:{changeViewMode:{type:Function}},setup(e){const t=e,{slides:n,slideIndex:r,viewportRatio:o,currentSlide:i}=Xe(ct()),a=pe(),s=pe(),c=pe(!1),l=pe(!1),u=pe(!1),{mousewheelListener:f,touchStartListener:d,touchEndListener:h,turnPrevSlide:p,turnNextSlide:m,turnSlideToIndex:A,turnSlideToId:x,animationIndex:R}=H_(),{slideWidth:y,slideHeight:g}=G_(a),{exitScreening:S}=Mc(),{slidesLoadLimit:L}=Bp(),{fullscreenState:T,manualExitFullscreen:M}=z_(),O=pe(16),k=Me(()=>kb(i.value.remark||"无备注")),F=P=>{s.value&&s.value.scrollBy(P.deltaY,0)},N=P=>{P<12||P>40||(O.value=P)};Tt(r,()=>{Vr(()=>{if(!s.value)return;const P=s.value.querySelector(".thumbnail.active");if(!P)return;const _=s.value.offsetWidth,I=P.offsetLeft;s.value.scrollTo({left:I-_/2,behavior:"smooth"})})});const E=()=>[{text:"上一页",subText:"↑ ←",disable:r.value<=0,handler:()=>p()},{text:"下一页",subText:"↓ →",disable:r.value>=n.value.length-1,handler:()=>m()},{text:"第一页",disable:r.value===0,handler:()=>A(0)},{text:"最后一页",disable:r.value===n.value.length-1,handler:()=>A(n.value.length-1)},{divider:!0},{text:"画笔工具",handler:()=>c.value=!0},{text:"普通视图",handler:()=>t.changeViewMode("base")},{divider:!0},{text:"结束放映",subText:"ESC",handler:S}];return(P,_)=>{const I=xe("IconListView"),W=xe("IconWrite"),D=xe("IconMagic"),z=xe("IconStopwatchStart"),ae=xe("IconOffScreenOne"),U=xe("IconPower"),Z=xe("IconMinus"),B=xe("IconPlus"),G=Mn("contextmenu");return Y(),ee("div",Fbe,[V("div",_be,[V("div",{class:"tool-btn",onClick:_[0]||(_[0]=Q=>P.changeViewMode("base"))},[w(I,{class:"tool-icon"}),Ebe]),V("div",{class:$e(["tool-btn",{active:c.value}]),onClick:_[1]||(_[1]=Q=>c.value=!c.value)},[w(W,{class:"tool-icon"}),Xbe],2),V("div",{class:$e(["tool-btn",{active:u.value}]),onClick:_[2]||(_[2]=Q=>u.value=!u.value)},[w(D,{class:"tool-icon"}),Wbe],2),V("div",{class:$e(["tool-btn",{active:l.value}]),onClick:_[3]||(_[3]=Q=>l.value=!l.value)},[w(z,{class:"tool-icon"}),Vbe],2),V("div",{class:"tool-btn",onClick:_[4]||(_[4]=()=>H(T)?H(M)():H(Fb)())},[H(T)?(Y(),we(ae,{key:0,class:"tool-icon"})):(Y(),we(ae,{key:1,class:"tool-icon"})),V("span",null,gt(H(T)?"退出全屏":"全屏"),1)]),w(Ut,{class:"divider"}),V("div",{class:"tool-btn",onClick:_[5]||(_[5]=Q=>H(S)())},[w(U,{class:"tool-icon"}),Ube])]),V("div",Ybe,[V("div",{class:$e(["slide-list-wrap",{"laser-pen":u.value}]),ref_key:"slideListWrapRef",ref:a},[De(w(J_,{slideWidth:H(y),slideHeight:H(g),animationIndex:H(R),turnSlideToId:H(x),manualExitFullscreen:H(M),onWheel:_[6]||(_[6]=Q=>H(f)(Q)),onTouchstart:_[7]||(_[7]=Q=>H(d)(Q)),onTouchend:_[8]||(_[8]=Q=>H(h)(Q))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[G,E]]),c.value?(Y(),we($_,{key:0,slideWidth:H(y),slideHeight:H(g),left:-365,top:-155,onClose:_[9]||(_[9]=Q=>c.value=!1)},null,8,["slideWidth","slideHeight"])):Be("",!0),l.value?(Y(),we(j_,{key:1,left:75,onClose:_[10]||(_[10]=Q=>l.value=!1)})):Be("",!0)],2),V("div",{class:"thumbnails",ref_key:"thumbnailsRef",ref:s,onWheel:_[11]||(_[11]=Wt(Q=>F(Q),["prevent"]))},[(Y(!0),ee(Ve,null,it(H(n),(Q,ie)=>(Y(),ee("div",{class:$e(["thumbnail",{active:ie===H(r)}]),key:Q.id,onClick:q=>H(A)(ie)},[w(Fa,{slide:Q,size:120/H(o),visible:ieN(O.value-2))},[w(Z)],2),V("div",{class:$e(["scale-btn",{disable:O.value===40}]),onClick:_[13]||(_[13]=Q=>N(O.value+2))},[w(B)],2)])])])}}}),zbe=Ue(Gbe,[["__scopeId","data-v-691774ef"]]),Jbe={class:"pptist-screen"},$be=Fe({__name:"index",setup(e){const t=pe("base"),n=i=>{t.value=i},{exitScreening:r}=Mc(),o=i=>{i.key.toUpperCase()===yt.ESC&&r()};return Gt(()=>document.addEventListener("keydown",o)),On(()=>document.removeEventListener("keydown",o)),(i,a)=>(Y(),ee("div",Jbe,[t.value==="base"?(Y(),we(Ibe,{key:0,changeViewMode:n})):t.value==="presenter"?(Y(),we(zbe,{key:1,changeViewMode:n})):Be("",!0)]))}}),jbe=Ue($be,[["__scopeId","data-v-2f0dc4b8"]]),qbe=Fe({__name:"MobileEditableElement",props:{elementInfo:{},elementIndex:{},selectElement:{type:Function}},setup(e){const t=e,n=Me(()=>({[Nt.IMAGE]:RI,[Nt.TEXT]:dF,[Nt.SHAPE]:pF,[Nt.LINE]:mF,[Nt.CHART]:MF,[Nt.TABLE]:kF,[Nt.LATEX]:NF,[Nt.VIDEO]:CF,[Nt.AUDIO]:_F})[t.elementInfo.type]||null);return(r,o)=>(Y(),ee("div",{class:"mobile-editable-element",style:Le({zIndex:r.elementIndex})},[(Y(),we(xs(n.value),{elementInfo:r.elementInfo,selectElement:r.selectElement,contextmenus:()=>null},null,8,["elementInfo","selectElement"]))],4))}}),e5e=Fe({__name:"MobileOperate",props:{elementInfo:{},isSelected:{type:Boolean},canvasScale:{},scaleElement:{type:Function},rotateElement:{type:Function}},setup(e){const t=e,n=Me(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),r=Me(()=>t.elementInfo.width*t.canvasScale),o=Me(()=>t.elementInfo.height*t.canvasScale),{borderLines:i,resizeHandlers:a,textElementResizeHandlers:s}=nf(r,o),c=t.elementInfo.type==="text"||t.elementInfo.type==="table"?s:a,l=Me(()=>["chart","video","audio"].includes(t.elementInfo.type));return(u,f)=>(Y(),ee("div",{class:"mobile-operate",style:Le({top:u.elementInfo.top*u.canvasScale+"px",left:u.elementInfo.left*u.canvasScale+"px",transform:`rotate(${n.value}deg)`,transformOrigin:`${u.elementInfo.width*u.canvasScale/2}px ${u.elementInfo.height*u.canvasScale/2}px`})},[u.isSelected?(Y(),ee(Ve,{key:0},[(Y(!0),ee(Ve,null,it(H(i),d=>(Y(),we(rf,{class:"operate-border-line",key:d.type,type:d.type,style:Le(d.style)},null,8,["type","style"]))),128)),(Y(!0),ee(Ve,null,it(H(c),d=>(Y(),we(Tc,{class:"operate-resize-handler",key:d.direction,type:d.direction,rotate:u.elementInfo.rotate,style:Le(d.style),onTouchstart:Wt(h=>u.scaleElement(h,u.elementInfo,d.direction),["stop"])},null,8,["type","rotate","style","onTouchstart"]))),128)),l.value?Be("",!0):(Y(),we(zd,{key:0,class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onTouchstart:f[0]||(f[0]=Wt(d=>u.rotateElement(d,u.elementInfo),["stop"]))},null,8,["style"]))],64)):Be("",!0)],4))}}),t5e=Ue(e5e,[["__scopeId","data-v-b61bf2dc"]]),n5e={class:"mobile-thumbnails"},r5e=["onClick"],o5e={class:"label"},i5e=Fe({__name:"MobileThumbnails",setup(e){const t=ct(),{slides:n,slideIndex:r}=Xe(t),{sortSlides:o}=Dd(),{slidesLoadLimit:i}=Bp(),a=c=>{t.updateSlideIndex(c)},s=c=>{const{newIndex:l,oldIndex:u}=c;l===void 0||u===void 0||l===u||o(l,u)};return(c,l)=>(Y(),ee("div",n5e,[w(H(N5),{class:"thumbnail-list",modelValue:H(n),animation:200,scroll:!0,scrollSensitivity:50,delayOnTouchOnly:!0,delay:800,itemKey:"id",onEnd:s},{item:re(({element:u,index:f})=>[V("div",{class:$e(["thumbnail-item",{active:H(r)===f}]),onClick:d=>a(f)},[V("div",o5e,gt(f+1),1),w(Fa,{class:"thumbnail",slide:u,size:120,visible:f{s({left:(Ht-400)/2,top:(Ht*n.value-56)/2,width:400,height:56},{content:"

    新添加文本

    "})},f=m=>{!m||!m[0]||zu(m[0]).then(A=>c(A))},d=m=>{const R={square:{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},round:{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"}},y=200;l({left:(Ht-y)/2,top:(Ht*n.value-y)/2,width:y,height:y},R[m])},h=Me(()=>{var m;return((m=r.value)==null?void 0:m.remark)||""}),p=m=>{const A=m.target.value;t.updateSlide({remark:A})};return(m,A)=>{const x=xe("IconPlus"),R=xe("IconCopy"),y=xe("IconDelete"),g=xe("IconFontSize"),S=xe("IconPicture"),L=xe("IconSquare"),T=xe("IconRound");return Y(),ee("div",a5e,[V("div",s5e,[V("textarea",{value:h.value,placeholder:"点击输入演讲者备注",onInput:A[0]||(A[0]=M=>p(M))},null,40,l5e)]),V("div",c5e,[w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:A[1]||(A[1]=M=>H(o)())},{default:re(()=>[w(x,{class:"icon"}),We(" 新幻灯片")]),_:1}),w(et,{style:{flex:"1"},onClick:A[2]||(A[2]=M=>H(i)())},{default:re(()=>[w(R,{class:"icon"}),We(" 复制")]),_:1}),w(et,{style:{flex:"1"},onClick:A[3]||(A[3]=M=>H(a)())},{default:re(()=>[w(y,{class:"icon"}),We(" 删除")]),_:1})]),_:1}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:A[4]||(A[4]=M=>u())},{default:re(()=>[w(g,{class:"icon"}),We(" 文字")]),_:1}),w(et,{style:{flex:"1"}},{default:re(()=>[w(Eu,{onChange:A[5]||(A[5]=M=>f(M))},{default:re(()=>[w(S,{class:"icon"}),We("图片 ")]),_:1})]),_:1}),w(et,{style:{flex:"1"},onClick:A[6]||(A[6]=M=>d("square"))},{default:re(()=>[w(L,{class:"icon"}),We(" 矩形")]),_:1}),w(et,{style:{flex:"1"},onClick:A[7]||(A[7]=M=>d("round"))},{default:re(()=>[w(T,{class:"icon"}),We(" 圆形")]),_:1})]),_:1})]),w(q_)])}}}),f5e=Ue(u5e,[["__scopeId","data-v-bceba327"]]),eE=e=>(on("data-v-65decaff"),e=e(),an(),e),d5e={class:"element-toolbar"},h5e={class:"content"},p5e={key:0,class:"style"},m5e={class:"row-block"},v5e=eE(()=>V("div",{class:"label"},"文字颜色:",-1)),g5e={class:"colors"},A5e=["onClick"],R5e={class:"row-block"},y5e=eE(()=>V("div",{class:"label"},"填充色:",-1)),x5e={class:"colors"},b5e=["onClick"],S5e={key:1,class:"common"},M5e=Fe({__name:"ElementToolbar",setup(e){const t=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c","#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57"],n=ft(),r=ct(),{handleElement:o,handleElementId:i,richTextAttrs:a}=Xe(n),{addHistorySnapshot:s}=zt(),c=(y,g)=>{r.updateElement({id:y,props:g}),s()},l=[{key:"style",label:"样式"},{key:"common",label:"布局"}],u=pe("common"),{orderElement:f}=Np(),{alignElementToCanvas:d}=a2(),{addElementsFromData:h}=Kg(),{deleteElement:p}=kp(),m=()=>{const y=JSON.parse(JSON.stringify(o.value));h([y])},A=(y,g)=>{Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:y,value:g}})},x=y=>{var g;if(o.value){if((o.value.type==="text"||o.value.type==="shape"&&((g=o.value.text)!=null&&g.content))&&Zr.emit(Wr.RICH_TEXT_COMMAND,{action:{command:"color",value:y}}),o.value.type==="table"){const S=JSON.parse(JSON.stringify(o.value.data));for(let L=0;L{if(o.value){if((o.value.type==="text"||o.value.type==="shape"||o.value.type==="chart")&&c(i.value,{fill:y}),o.value.type==="table"){const g=JSON.parse(JSON.stringify(o.value.data));for(let S=0;S{const S=xe("IconTextBold"),L=xe("IconTextItalic"),T=xe("IconTextUnderline"),M=xe("IconStrikethrough"),O=xe("IconFontSize"),k=xe("IconAlignTextLeft"),F=xe("IconAlignTextCenter"),N=xe("IconAlignTextRight"),E=xe("IconCopy"),P=xe("IconDelete"),_=xe("IconSendToBack"),I=xe("IconBringToFrontOne"),W=xe("IconBringToFront"),D=xe("IconSentToBack"),z=xe("IconAlignLeft"),ae=xe("IconAlignVertically"),U=xe("IconAlignRight"),Z=xe("IconAlignTop"),B=xe("IconAlignHorizontally"),G=xe("IconAlignBottom");return Y(),ee("div",d5e,[w(As,{tabs:l,value:u.value,"onUpdate:value":g[0]||(g[0]=Q=>u.value=Q),tabsStyle:{marginBottom:"8px"},tabStyle:{width:"30%",margin:"0 10%"}},null,8,["value"]),V("div",h5e,[u.value==="style"?(Y(),ee("div",p5e,[w(xn,{class:"row"},{default:re(()=>[w(Qn,{style:{flex:"1"},checked:H(a).bold,onClick:g[1]||(g[1]=Q=>A("bold"))},{default:re(()=>[w(S)]),_:1},8,["checked"]),w(Qn,{style:{flex:"1"},checked:H(a).em,onClick:g[2]||(g[2]=Q=>A("em"))},{default:re(()=>[w(L)]),_:1},8,["checked"]),w(Qn,{style:{flex:"1"},checked:H(a).underline,onClick:g[3]||(g[3]=Q=>A("underline"))},{default:re(()=>[w(T)]),_:1},8,["checked"]),w(Qn,{style:{flex:"1"},checked:H(a).strikethrough,onClick:g[4]||(g[4]=Q=>A("strikethrough"))},{default:re(()=>[w(M)]),_:1},8,["checked"])]),_:1}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[5]||(g[5]=Q=>A("fontsize-add"))},{default:re(()=>[w(O),We("+")]),_:1}),w(et,{style:{flex:"1"},onClick:g[6]||(g[6]=Q=>A("fontsize-reduce"))},{default:re(()=>[w(O),We("-")]),_:1})]),_:1}),w(Ut,{style:{margin:"20px 0"}}),w(_a,{class:"row","button-style":"solid",value:H(a).align,"onUpdate:value":g[7]||(g[7]=Q=>A("align",Q))},{default:re(()=>[w(Nn,{value:"left",style:{flex:"1"}},{default:re(()=>[w(k)]),_:1}),w(Nn,{value:"center",style:{flex:"1"}},{default:re(()=>[w(F)]),_:1}),w(Nn,{value:"right",style:{flex:"1"}},{default:re(()=>[w(N)]),_:1})]),_:1},8,["value"]),w(Ut,{style:{margin:"20px 0"}}),V("div",m5e,[v5e,V("div",g5e,[(Y(),ee(Ve,null,it(t,Q=>V("div",{class:"color",key:Q,onClick:ie=>x(Q)},[V("div",{class:"color-block",style:Le({backgroundColor:Q})},null,4)],8,A5e)),64))])]),V("div",R5e,[y5e,V("div",x5e,[(Y(),ee(Ve,null,it(t,Q=>V("div",{class:"color",key:Q,onClick:ie=>R(Q)},[V("div",{class:"color-block",style:Le({backgroundColor:Q})},null,4)],8,b5e)),64))])])])):Be("",!0),u.value==="common"?(Y(),ee("div",S5e,[w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[8]||(g[8]=Q=>m())},{default:re(()=>[w(E,{class:"icon"}),We(" 复制")]),_:1}),w(et,{style:{flex:"1"},onClick:g[9]||(g[9]=Q=>H(p)())},{default:re(()=>[w(P,{class:"icon"}),We(" 删除")]),_:1})]),_:1}),w(Ut,{style:{margin:"20px 0"}}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[10]||(g[10]=Q=>H(f)(H(o),H(pr).TOP))},{default:re(()=>[w(_,{class:"icon"}),We(" 置顶")]),_:1}),w(et,{style:{flex:"1"},onClick:g[11]||(g[11]=Q=>H(f)(H(o),H(pr).BOTTOM))},{default:re(()=>[w(I,{class:"icon"}),We(" 置底")]),_:1}),w(et,{style:{flex:"1"},onClick:g[12]||(g[12]=Q=>H(f)(H(o),H(pr).UP))},{default:re(()=>[w(W,{class:"icon"}),We(" 上移")]),_:1}),w(et,{style:{flex:"1"},onClick:g[13]||(g[13]=Q=>H(f)(H(o),H(pr).DOWN))},{default:re(()=>[w(D,{class:"icon"}),We(" 下移")]),_:1})]),_:1}),w(Ut,{style:{margin:"20px 0"}}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[14]||(g[14]=Q=>H(d)(H(nn).LEFT))},{default:re(()=>[w(z,{class:"icon"}),We(" 左对齐")]),_:1}),w(et,{style:{flex:"1"},onClick:g[15]||(g[15]=Q=>H(d)(H(nn).HORIZONTAL))},{default:re(()=>[w(ae,{class:"icon"}),We(" 水平居中")]),_:1}),w(et,{style:{flex:"1"},onClick:g[16]||(g[16]=Q=>H(d)(H(nn).RIGHT))},{default:re(()=>[w(U,{class:"icon"}),We(" 右对齐")]),_:1})]),_:1}),w(xn,{class:"row"},{default:re(()=>[w(et,{style:{flex:"1"},onClick:g[17]||(g[17]=Q=>H(d)(H(nn).TOP))},{default:re(()=>[w(Z,{class:"icon"}),We(" 上对齐")]),_:1}),w(et,{style:{flex:"1"},onClick:g[18]||(g[18]=Q=>H(d)(H(nn).VERTICAL))},{default:re(()=>[w(B,{class:"icon"}),We(" 垂直居中")]),_:1}),w(et,{style:{flex:"1"},onClick:g[19]||(g[19]=Q=>H(d)(H(nn).BOTTOM))},{default:re(()=>[w(G,{class:"icon"}),We(" 下对齐")]),_:1})]),_:1})])):Be("",!0)])])}}}),w5e=Ue(M5e,[["__scopeId","data-v-65decaff"]]),L5e={class:"mobile-editor-header"},O5e={class:"history"},T5e=Fe({__name:"Header",props:{changeMode:{type:Function}},setup(e){const{canUndo:t,canRedo:n}=Xe(Bg()),{redo:r,undo:o}=zt();return(i,a)=>{const s=xe("IconBack"),c=xe("IconNext"),l=xe("IconLogout");return Y(),ee("div",L5e,[V("div",O5e,[V("div",{class:$e(["history-item",{disable:!H(t)}]),onClick:a[0]||(a[0]=Wt(u=>H(o)(),["stop"]))},[w(s),We(" 撤销")],2),V("div",{class:$e(["history-item",{disable:!H(n)}]),onClick:a[1]||(a[1]=Wt(u=>H(r)(),["stop"]))},[w(c),We(" 重做")],2)]),V("div",{class:"back",onClick:a[2]||(a[2]=u=>i.changeMode("preview"))},[w(l),We(" 退出编辑")])])}}}),k5e=Ue(T5e,[["__scopeId","data-v-091403e4"]]),N5e={class:"mobile-editor"},P5e=Fe({__name:"index",props:{changeMode:{type:Function}},setup(e){const t=ct(),n=ft(),{slideIndex:r,currentSlide:o,viewportRatio:i}=Xe(t),{activeElementIdList:a,handleElement:s}=Xe(n),c=pe(),l=pe(),u=pe([]),f=Me(()=>o.value.background),{backgroundStyle:d}=d2(f),h=Me(()=>{if(!c.value)return 1;const L=c.value.clientWidth,T=c.value.clientHeight;return T/L>=i.value?(L-20)/Ht:(T-20)/i.value/Ht});Gt(()=>{a.value.length&&n.setActiveElementIdList([]),r.value!==0&&t.updateSlideIndex(0)});const p=Me(()=>({width:Ht*h.value+"px",height:Ht*i.value*h.value+"px"})),m=pe([]);Tg(()=>{m.value=o.value?JSON.parse(JSON.stringify(o.value.elements)):[]});const{dragElement:x}=pI(m,u,h),{scaleElement:R}=hI(m,u,h),{rotateElement:y}=fI(m,l,h),g=(L,T,M=!0)=>{a.value.includes(T.id)||(n.setActiveElementIdList([T.id]),n.setHandleElementId(T.id)),M&&x(L,T)},S=()=>{n.setActiveElementIdList([])};return(L,T)=>(Y(),ee("div",N5e,[w(k5e,{changeMode:L.changeMode},null,8,["changeMode"]),V("div",{class:"content",ref_key:"contentRef",ref:c,onTouchstart:T[0]||(T[0]=M=>S())},[V("div",{class:"viewport-wrapper",style:Le(p.value)},[V("div",{class:"background",style:Le(H(d))},null,4),(Y(!0),ee(Ve,null,it(u.value,(M,O)=>(Y(),we(EF,{key:O,type:M.type,axis:M.axis,length:M.length,canvasScale:h.value},null,8,["type","axis","length","canvasScale"]))),128)),(Y(!0),ee(Ve,null,it(m.value,M=>(Y(),ee(Ve,{key:M.id},[M.type!=="line"?(Y(),we(t5e,{key:0,elementInfo:M,isSelected:H(a).includes(M.id),canvasScale:h.value,scaleElement:H(R),rotateElement:H(y)},null,8,["elementInfo","isSelected","canvasScale","scaleElement","rotateElement"])):Be("",!0)],64))),128)),V("div",{class:"viewport",ref_key:"viewportRef",ref:l,style:Le({transform:`scale(${h.value})`})},[(Y(!0),ee(Ve,null,it(m.value,(M,O)=>(Y(),we(qbe,{key:M.id,elementInfo:M,elementIndex:O+1,selectElement:g},null,8,["elementInfo","elementIndex"]))),128))],4)],4)],544),w(f5e),H(s)?(Y(),we(w5e,{key:0})):Be("",!0)]))}}),C5e=Ue(P5e,[["__scopeId","data-v-8b282f2e"]]),I5e={class:"header"},F5e=Fe({__name:"MobilePlayer",props:{changeMode:{type:Function}},setup(e){const t=ct(),{slides:n,slideIndex:r,currentSlide:o,viewportRatio:i}=Xe(t),a=pe(!1),s=pe({width:0,height:0});Gt(()=>{r.value!==0&&t.updateSlideIndex(0),s.value={width:document.body.clientHeight,height:document.body.clientWidth}});const c=Me(()=>{const d=s.value.height/s.value.width;let h=0,p=0;return d>=i.value?(h=s.value.width,p=h*i.value):(p=s.value.height,h=p/i.value),{width:h,height:p}}),l=pe(null),u=d=>{l.value={x:d.changedTouches[0].pageX,y:d.changedTouches[0].pageY}},f=d=>{if(!l.value)return;const h=Math.abs(l.value.y-d.changedTouches[0].pageY),p=d.changedTouches[0].pageX-l.value.x;Math.abs(p)>h&&Math.abs(p)>50&&(l.value=null,p<0&&r.value>0&&t.updateSlideIndex(r.value-1),p>0&&r.value{const p=xe("IconLogout");return Y(),ee("div",{class:"mobile-player",style:Le({width:s.value.width+"px",height:s.value.height+"px",transform:`rotate(90deg) translateY(-${s.value.height}px)`})},[V("div",{class:"screen-slide-list",onClick:h[0]||(h[0]=m=>a.value=!a.value),onTouchstart:h[1]||(h[1]=m=>u(m)),onTouchend:h[2]||(h[2]=m=>f(m))},[(Y(!0),ee(Ve,null,it(H(n),(m,A)=>(Y(),ee("div",{class:$e(["slide-item",`turning-mode-${m.turningMode||"slideY"}`,{current:A===H(r),before:AH(r),hide:(A===H(r)-1||A===H(r)+1)&&m.turningMode!==H(o).turningMode}]),key:m.id},[Math.abs(H(r)-A)<2?(Y(),ee("div",{key:0,class:"slide-content",style:Le({width:c.value.width+"px",height:c.value.height+"px"})},[w(Fa,{slide:m,size:c.value.width},null,8,["slide","size"])],4)):Be("",!0)],2))),128))],32),a.value?(Y(),ee(Ve,{key:0},[V("div",I5e,[V("div",{class:"back",onClick:h[3]||(h[3]=m=>d.changeMode("preview"))},[w(p),We(" 退出播放")])]),w(q_,{class:"thumbnails"})],64)):Be("",!0)],4)}}}),_5e=Ue(F5e,[["__scopeId","data-v-c846a018"]]),E5e={class:"thumbnail-list"},X5e={class:"menu"},W5e=Fe({__name:"MobilePreview",props:{changeMode:{type:Function}},setup(e){const{slides:t}=Xe(ct()),{slidesLoadLimit:n}=Bp(),r=pe(),o=pe(0);return Gt(()=>{r.value&&(o.value=r.value.clientWidth)}),(i,a)=>{const s=xe("IconEdit"),c=xe("IconFullScreenPlay");return Y(),ee("div",{class:"mobile-preview",ref_key:"mobileRef",ref:r},[V("div",E5e,[(Y(!0),ee(Ve,null,it(H(t),(l,u)=>(Y(),ee("div",{class:"thumbnail-item",key:l.id},[w(Fa,{slide:l,size:o.value-20,visible:ui.changeMode("editor"))},[w(s,{class:"icon"}),We(" 编辑")]),w(Ut,{type:"vertical",style:{height:"30px"}}),V("div",{class:"menu-item",onClick:a[1]||(a[1]=l=>i.changeMode("player"))},[w(c,{class:"icon"}),We(" 播放")])])],512)}}}),V5e=Ue(W5e,[["__scopeId","data-v-99aa0ac4"]]),U5e={class:"mobile"},Y5e=Fe({__name:"index",setup(e){const t=pe("preview"),n=o=>t.value=o,r=Me(()=>({editor:C5e,player:_5e,preview:V5e})[t.value]||null);return(o,i)=>(Y(),ee("div",U5e,[(Y(),we(xs(r.value),{changeMode:n}))]))}}),Q5e=Ue(Y5e,[["__scopeId","data-v-d02011cb"]]),Z5e=Fe({__name:"App",setup(e){const t=oJ(),n=ft(),r=Bg(),{databaseId:o}=Xe(n),{screening:i}=Xe(VP());return window.onbeforeunload=()=>!1,Gt(async()=>{await nJ(),r.initSnapshotDatabase(),n.setAvailableFonts()}),window.addEventListener("unload",()=>{const a=localStorage.getItem(Vv),s=a?JSON.parse(a):[];s.push(o.value);const c=JSON.stringify(s);localStorage.setItem(Vv,c)}),(a,s)=>H(i)?(Y(),we(jbe,{key:0})):H(t)?(Y(),we(Yxe,{key:1})):(Y(),we(Q5e,{key:2}))}}),B5e={class:"menu-content"},D5e=["onClick"],K5e={class:"text"},H5e={key:0,class:"sub-text"},G5e=Fe({__name:"MenuContent",props:{menus:{},handleClickMenuItem:{type:Function}},setup(e){return(t,n)=>{const r=xe("menu-content",!0);return Y(),ee("ul",B5e,[(Y(!0),ee(Ve,null,it(t.menus,(o,i)=>(Y(),ee(Ve,{key:o.text||i},[o.hide?Be("",!0):(Y(),ee("li",{key:0,class:$e(["menu-item",{divider:o.divider,disable:o.disable}]),onClick:Wt(a=>t.handleClickMenuItem(o),["stop"])},[o.divider?Be("",!0):(Y(),ee("div",{key:0,class:$e(["menu-item-content",{"has-children":o.children,"has-handler":o.handler}])},[V("span",K5e,gt(o.text),1),o.subText&&!o.children?(Y(),ee("span",H5e,gt(o.subText),1)):Be("",!0),o.children&&o.children.length?(Y(),we(r,{key:1,class:"sub-menu",menus:o.children,handleClickMenuItem:t.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])):Be("",!0)],2))],10,D5e))],64))),128))])}}}),z5e=Ue(G5e,[["__scopeId","data-v-b0ce5ca5"]]),J5e=Fe({__name:"index",props:{axis:{},el:{},menus:{},removeContextmenu:{type:Function}},setup(e){const t=e,n=Me(()=>{const{x:c,y:l}=t.axis,u=t.menus.filter(A=>!(A.divider||A.hide)).length,f=t.menus.filter(A=>A.divider).length,d=170,h=u*30+f*11+5*2,p=document.body.clientWidth,m=document.body.clientHeight;return{left:p<=c+d?c-d:c,top:m<=l+h?l-h:l}}),r=o=>{o.disable||o.children&&!o.handler||(o.handler&&o.handler(t.el),t.removeContextmenu())};return(o,i)=>(Y(),ee(Ve,null,[V("div",{class:"mask",onContextmenu:i[0]||(i[0]=Wt(a=>o.removeContextmenu(),["prevent"])),onMousedown:i[1]||(i[1]=a=>o.removeContextmenu())},null,32),V("div",{class:"contextmenu",style:Le({left:n.value.left+"px",top:n.value.top+"px"}),onContextmenu:i[2]||(i[2]=Wt(()=>{},["prevent"]))},[w(z5e,{menus:o.menus,handleClickMenuItem:r},null,8,["menus"])],36)],64))}}),L0="CTX_CONTEXTMENU_HANDLER",$5e=(e,t,n)=>{t.stopPropagation(),t.preventDefault();const r=n.value(e);if(!r)return;let o=null;const i=()=>{o&&(document.body.removeChild(o),o=null),e.classList.remove("contextmenu-active"),document.body.removeEventListener("scroll",i),window.removeEventListener("resize",i)},a={axis:{x:t.x,y:t.y},el:e,menus:r,removeContextmenu:i};o=document.createElement("div");const s=w(J5e,a,null);bd(s,o),document.body.appendChild(o),e.classList.add("contextmenu-active"),document.body.addEventListener("scroll",i),window.addEventListener("resize",i)},j5e={mounted(e,t){e[L0]=n=>$5e(e,n,t),e.addEventListener("contextmenu",e[L0])},unmounted(e){e&&e[L0]&&(e.removeEventListener("contextmenu",e[L0]),delete e[L0])}},O0="CTX_CLICK_OUTSIDE_HANDLER",q5e=(e,t,n)=>{const r=n.value,o=t.composedPath();(o?o.indexOf(e)<0:!e.contains(t.target))&&r(t)},e8e={mounted(e,t){e[O0]=n=>q5e(e,n,t),setTimeout(()=>{document.addEventListener("click",e[O0])},0)},unmounted(e){e[O0]&&(document.removeEventListener("click",e[O0]),delete e[O0])}},T0="TOOLTIP_INSTANCE",t8e={mounted(e,t){let n="",r="top",o=[300,0];typeof t.value=="string"?n=t.value:(n=t.value.content,t.value.placement!==void 0&&(r=t.value.placement),t.value.delay!==void 0&&(o=t.value.delay)),e[T0]=ef(e,{content:n,theme:"tooltip",duration:100,animation:"scale",allowHTML:!0,placement:r,delay:o})},updated(e,t){let n="";typeof t.value=="string"?n=t.value:n=t.value.content,e[T0]&&e[T0].setContent(n)},unmounted(e){e[T0]&&e[T0].destroy()}},n8e={install(e){e.directive("contextmenu",j5e),e.directive("click-outside",e8e),e.directive("tooltip",t8e)}},L2=tN(Z5e);L2.use(tq);L2.use(n8e);L2.use(EK());L2.mount("#app"); diff --git a/assets/index-CRuQ7K4h.css b/assets/index-jymP306v.css similarity index 99% rename from assets/index-CRuQ7K4h.css rename to assets/index-jymP306v.css index 3194d107..99dd4fc2 100644 --- a/assets/index-CRuQ7K4h.css +++ b/assets/index-jymP306v.css @@ -1,4 +1,4 @@ -@charset "UTF-8";.message[data-v-5f638602]{max-width:600px}.message+.message[data-v-5f638602]{margin-top:15px}.message-container[data-v-5f638602]{min-width:50px;display:flex;align-items:center;padding:10px;font-size:13px;overflow:hidden;border-radius:2px;box-shadow:0 1px 8px #00000026;background:#fff;pointer-events:all;position:relative}.message-container .icons[data-v-5f638602]{display:flex;align-items:center;margin-right:10px}.message-container .title[data-v-5f638602]{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-container .content[data-v-5f638602]{width:100%}.message-container .description[data-v-5f638602]{line-height:1.5;color:#41464b}.message-container .title+.description[data-v-5f638602]{margin-top:5px}.message-container .control[data-v-5f638602]{position:relative;height:100%;margin-left:10px}.message-container .close-btn[data-v-5f638602]{font-size:15px;color:#666;display:flex;align-items:center;cursor:pointer}.message-container .close-btn[data-v-5f638602]:hover{color:#d14424}.message-fade-enter-active[data-v-5f638602]{animation:message-fade-in-down-5f638602 .3s}.message-fade-leave-active[data-v-5f638602]{animation:message-fade-out-5f638602 .3s}@keyframes message-fade-in-down-5f638602{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-fade-out-5f638602{0%{opacity:1;margin-top:0}to{opacity:0;margin-top:-45px}}.hotkey-doc[data-v-0762be00]{height:100%;overflow:auto;font-size:12px;margin:0 -15px;padding:0 15px 15px}.title[data-v-0762be00]{font-size:14px;font-weight:700;border-bottom:1px solid #e5e5e5;padding:25px 0 5px}.title[data-v-0762be00]:first-child{padding-top:0}.hotkey-item[data-v-0762be00]{border-bottom:1px solid #e5e5e5;padding:15px 0 5px;display:flex;align-items:center}.label[data-v-0762be00]{width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input[data-v-1bd53d05]{display:none}.fullscreen-spin[data-v-9856918a]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:100;display:flex;justify-content:center;align-items:center;background-color:#f1f1f1b3}.spin[data-v-9856918a]{width:200px;height:200px;position:fixed;top:50%;left:50%;margin-top:-100px;margin-left:-100px;display:flex;flex-direction:column;justify-content:center;align-items:center}.spinner[data-v-9856918a]{width:36px;height:36px;border:3px solid #d14424;border-top-color:transparent;border-radius:50%;animation:spinner-9856918a .8s linear infinite}.text[data-v-9856918a]{margin-top:20px;color:#d14424}@keyframes spinner-9856918a{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.drawer[data-v-46f39759]{height:100%;position:fixed;top:0;bottom:0;z-index:5000;background:#fff;display:flex;flex-direction:column}.drawer.left[data-v-46f39759]{left:0;box-shadow:3px 0 6px -4px #0000001f,9px 0 28px 8px #0000000d}.drawer.right[data-v-46f39759]{right:0;box-shadow:-3px 0 6px -4px #0000001f,-9px 0 28px 8px #0000000d}.header[data-v-46f39759]{height:50px;padding:0 15px;position:relative;display:flex;align-items:center}.header .close-btn[data-v-46f39759]{width:20px;height:20px;display:flex;justify-content:center;align-items:center;position:absolute;top:15px;right:15px;cursor:pointer}.content[data-v-46f39759]{padding:0 15px;overflow:auto;flex:1}.drawer-slide-right-enter-active[data-v-46f39759]{animation:drawer-slide-right-enter-46f39759 .25s both ease}.drawer-slide-right-leave-active[data-v-46f39759]{animation:drawer-slide-right-leave-46f39759 .25s both ease}.drawer-slide-left-enter-active[data-v-46f39759]{animation:drawer-slide-left-enter-46f39759 .25s both ease}.drawer-slide-left-leave-active[data-v-46f39759]{animation:drawer-slide-left-leave-46f39759 .25s both ease}@keyframes drawer-slide-right-enter-46f39759{0%{transform:translate(100%)}}@keyframes drawer-slide-right-leave-46f39759{to{transform:translate(100%)}}@keyframes drawer-slide-left-enter-46f39759{0%{transform:translate(-100%)}}@keyframes drawer-slide-left-leave-46f39759{to{transform:translate(-100%)}}.input[data-v-08dd2583]{background-color:#fff;border:1px solid #d9d9d9;padding:0 5px;border-radius:2px;transition:border-color .25s;font-size:13px;display:flex}.input input[data-v-08dd2583]{min-width:0;height:30px;outline:0;border:0;line-height:30px;vertical-align:top;color:#41464b;padding:0 5px;flex:1;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.input input[data-v-08dd2583]::placeholder{color:#bfbfbf}.input[data-v-08dd2583]:not(.disabled):hover,.input.focused[data-v-08dd2583]{border-color:#d14424}.input.disabled[data-v-08dd2583]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7}.input .prefix[data-v-08dd2583],.input .suffix[data-v-08dd2583]{display:flex;justify-content:center;align-items:center;line-height:30px;-webkit-user-select:none;user-select:none}.tippy-box[data-animation=scale][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale][data-state=hidden]{transform:scale(.5);opacity:0}.popover.center[data-v-f1b06373]{display:flex;justify-content:center;align-items:center}.popover-content[data-v-f1b06373]{background-color:#fff;padding:10px;border:1px solid #eee;box-shadow:3px 3px 3px #00000026;border-radius:2px;font-size:13px}.tippy-box[data-theme~=popover]{border:0;outline:0}.popover-menu-item[data-v-1f176c16]{min-width:80px;padding:6px 10px;border-radius:2px;font-size:13px;cursor:pointer}.popover-menu-item.center[data-v-1f176c16]{text-align:center}.popover-menu-item[data-v-1f176c16]:hover{background-color:#f1f1f1}.popover-menu-item+.popover-menu-item[data-v-1f176c16]{margin-top:2px}.editor-header[data-v-89efe6b2]{background-color:#fff;-webkit-user-select:none;user-select:none;border-bottom:1px solid #eee;display:flex;justify-content:space-between;padding:0 5px}.left[data-v-89efe6b2],.right[data-v-89efe6b2]{display:flex;justify-content:center;align-items:center}.menu-item[data-v-89efe6b2]{height:30px;display:flex;justify-content:center;align-items:center;font-size:14px;padding:0 10px;border-radius:2px;cursor:pointer}.menu-item .icon[data-v-89efe6b2]{font-size:18px;color:#666}.menu-item[data-v-89efe6b2]:hover{background-color:#f1f1f1}.group-menu-item[data-v-89efe6b2]{height:30px;display:flex;margin:0 8px;padding:0 2px;border-radius:2px}.group-menu-item[data-v-89efe6b2]:hover{background-color:#f1f1f1}.group-menu-item .menu-item[data-v-89efe6b2]{padding:0 3px}.group-menu-item .arrow-btn[data-v-89efe6b2]{display:flex;justify-content:center;align-items:center;cursor:pointer}.title[data-v-89efe6b2]{height:32px;margin-left:2px;font-size:13px}.title .title-input[data-v-89efe6b2]{width:200px;height:100%;padding-left:0;padding-right:0}.title .title-text[data-v-89efe6b2]{min-width:20px;max-width:400px;line-height:32px;padding:0 6px;border-radius:2px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.title .title-text[data-v-89efe6b2]:hover{background-color:#f1f1f1}.github-link[data-v-89efe6b2]{display:inline-block;height:30px}svg[data-v-09a0319c]{overflow:visible;position:absolute;z-index:2;top:0;left:0}svg[data-v-19e68d74]{overflow:visible;position:absolute;z-index:2;top:0;left:0}svg[data-v-a036b0a3]{overflow:visible;position:absolute;z-index:2;top:0;left:0}.image-clip-handler[data-v-31b3b0f9]{width:100%;height:100%;position:relative}.image-clip-handler .bottom-img[data-v-31b3b0f9]{top:0;left:0;width:100%;height:100%;opacity:.5}.image-clip-handler img[data-v-31b3b0f9]{width:100%;height:100%}.image-clip-handler .top-image-content[data-v-31b3b0f9]{position:absolute;overflow:hidden}.image-clip-handler .top-image-content img[data-v-31b3b0f9]{position:absolute}.operate[data-v-31b3b0f9]{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.clip-point[data-v-31b3b0f9]{position:absolute;width:16px;height:16px}.clip-point svg[data-v-31b3b0f9]{overflow:visible}.clip-point.left-top[data-v-31b3b0f9]{left:0;top:0}.clip-point.right-top[data-v-31b3b0f9]{left:100%;top:0;transform:rotate(90deg);transform-origin:0 0}.clip-point.left-bottom[data-v-31b3b0f9]{left:0;top:100%;transform:rotate(-90deg);transform-origin:0 0}.clip-point.right-bottom[data-v-31b3b0f9]{left:100%;top:100%;transform:rotate(180deg);transform-origin:0 0}.clip-point.top[data-v-31b3b0f9]{left:50%;top:0;margin-left:-8px}.clip-point.bottom[data-v-31b3b0f9]{left:50%;bottom:0;margin-left:-8px;transform:rotate(180deg)}.clip-point.left[data-v-31b3b0f9]{left:0;top:50%;margin-top:-8px;transform:rotate(-90deg)}.clip-point.right[data-v-31b3b0f9]{right:0;top:50%;margin-top:-8px;transform:rotate(90deg)}.clip-point.left-top.rotate-0[data-v-31b3b0f9],.clip-point.right-bottom.rotate-0[data-v-31b3b0f9],.clip-point.left.rotate-45[data-v-31b3b0f9],.clip-point.right.rotate-45[data-v-31b3b0f9],.clip-point.left-bottom.rotate-90[data-v-31b3b0f9],.clip-point.right-top.rotate-90[data-v-31b3b0f9],.clip-point.top.rotate-135[data-v-31b3b0f9],.clip-point.bottom.rotate-135[data-v-31b3b0f9]{cursor:nwse-resize}.clip-point.top.rotate-0[data-v-31b3b0f9],.clip-point.bottom.rotate-0[data-v-31b3b0f9],.clip-point.left-top.rotate-45[data-v-31b3b0f9],.clip-point.right-bottom.rotate-45[data-v-31b3b0f9],.clip-point.left.rotate-90[data-v-31b3b0f9],.clip-point.right.rotate-90[data-v-31b3b0f9],.clip-point.left-bottom.rotate-135[data-v-31b3b0f9],.clip-point.right-top.rotate-135[data-v-31b3b0f9]{cursor:ns-resize}.clip-point.left-bottom.rotate-0[data-v-31b3b0f9],.clip-point.right-top.rotate-0[data-v-31b3b0f9],.clip-point.top.rotate-45[data-v-31b3b0f9],.clip-point.bottom.rotate-45[data-v-31b3b0f9],.clip-point.left-top.rotate-90[data-v-31b3b0f9],.clip-point.right-bottom.rotate-90[data-v-31b3b0f9],.clip-point.left.rotate-135[data-v-31b3b0f9],.clip-point.right.rotate-135[data-v-31b3b0f9]{cursor:nesw-resize}.clip-point.left.rotate-0[data-v-31b3b0f9],.clip-point.right.rotate-0[data-v-31b3b0f9],.clip-point.left-bottom.rotate-45[data-v-31b3b0f9],.clip-point.right-top.rotate-45[data-v-31b3b0f9],.clip-point.top.rotate-90[data-v-31b3b0f9],.clip-point.bottom.rotate-90[data-v-31b3b0f9],.clip-point.left-top.rotate-135[data-v-31b3b0f9],.clip-point.right-bottom.rotate-135[data-v-31b3b0f9]{cursor:ew-resize}.editable-element-image[data-v-d615c21a]{position:absolute}.editable-element-image.lock .element-content[data-v-d615c21a]{cursor:default}.rotate-wrapper[data-v-d615c21a]{width:100%;height:100%}.element-content[data-v-d615c21a]{width:100%;height:100%;position:relative;cursor:move}.element-content .image-content[data-v-d615c21a]{width:100%;height:100%;overflow:hidden;position:relative}.element-content img[data-v-d615c21a]{position:absolute}.color-mask[data-v-d615c21a]{position:absolute;top:0;bottom:0;left:0;right:0}svg[data-v-e2ef58f5]{overflow:visible;position:absolute;top:0;left:0}.prosemirror-editor[data-v-23fdc807]{cursor:text}.prosemirror-editor.format-painter[data-v-23fdc807]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzUuMDEybC0uMDY2Ljk5OGE1LjI3MSA1LjI3MSAwIDAwLTEuMTg0LjA2IDMuOCAzLjggMCAwMC0uOTMzLjQ3MmMtLjQ0LjM1Ni0uNzgzLjgxMS0uOTk4IDEuMzI0bC4wMTgtLjAzNnY1LjEyaDEuMDR2Ljk4aC0xLjA0bC0uMDAyIDQuMTVjLjE4Ny40MjYuNDYuODEuNzkxIDEuMTE3bC4xNzUuMTUyYy4yOTMuMjA4LjYxNS4zNzMuODkuNDcyLjQxLjA4Mi44My4xMTIgMS4yNDkuMDlsLjA1Ny45OTlhNi4wNjMgNi4wNjMgMCAwMS0xLjU4OC0uMTI5IDQuODM2IDQuODM2IDAgMDEtMS4yNS0uNjQ3IDQuNDYzIDQuNDYzIDAgMDEtLjgzOC0uODgzYy0uMjI0LjMzMi0uNS42NDItLjgyNC45MjdhNC4xMSA0LjExIDAgMDEtMS4zMDUuNjMzQTYuMTI2IDYuMTI2IDAgMDEwIDE1LjkwOWwuMDY4LS45OTdjLjQyNC4wMjYuODUtLjAwMSAxLjIxNy0uMDcuMzM2LS4wOTkuNjUxLS4yNTQuODk0LS40My40My0uMzguNzY1LS44NDcuOTgyLTEuMzY4bC0uMDA1LjAxNFY4LjkzSDIuMTE1di0uOThoMS4wNFYyLjg2MmEzLjc3IDMuNzcgMCAwMC0uNzc0LTEuMTY3bC0uMTY1LS4xNTZhMy4wNjQgMy4wNjQgMCAwMC0uODgtLjQ0OEE1LjA2MiA1LjA2MiAwIDAwLjA2NyAxLjAxTDAgLjAxMmE2LjE0IDYuMTQgMCAwMTEuNTkyLjExYy40NTMuMTM1Ljg3Ny4zNDUgMS4yOS42NS4zLjI2NS41NjUuNTY0Ljc4Ny44OS4yMzMtLjMzMS41Mi0uNjM0Ljg1My0uOTA0YTQuODM1IDQuODM1IDAgMDExLjMtLjY0OEE2LjE1NSA2LjE1NSAwIDAxNy4zNS4wMTJ6IiBmaWxsPSIjMEQwRDBEIi8+PHBhdGggZD0iTTE3LjM1IDE0LjVsNC41LTQuNS02LTZjLTIgMi0zIDItNS41IDIuNS40IDMuMiA0LjgzMyA2LjY2NyA3IDh6bTQuNTg4LTQuNDkzYS4zLjMgMCAwMC40MjQgMGwuNjgtLjY4YTEuNSAxLjUgMCAwMDAtMi4xMjJMMjEuNjkgNS44NTNsMi4wMjUtMS41ODNhMS42MjkgMS42MjkgMCAxMC0yLjI3OS0yLjI5NmwtMS42MDMgMi4wMjItMS4zNTctMS4zNTdhMS41IDEuNSAwIDAwLTIuMTIxIDBsLS42OC42OGEuMy4zIDAgMDAwIC40MjVsNi4yNjMgNi4yNjN6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTE1Ljg5MiAzLjk2MnMtMS4wMyAxLjIwMi0yLjQ5NCAxLjg5Yy0xLjAwNi40NzQtMi4xOC41ODYtMi43MzQuNjI3LS4yLjAxNS0uMzQ0LjIxLS4yNzYuMzk5LjI5Mi44MiAxLjExMiAyLjggMi42NTggNC4zNDYgMi4xMjYgMi4xMjcgMy42NTggMi45NjggNC4xNDIgMy4yMDMuMS4wNDguMjE0LjAzLjI5OC0uMDQyLjM4Ni0uMzI1IDEuNS0xLjI3NyAyLjIxLTEuOTg2Ljg5Mi0uODg5IDIuMTg3LTIuNDQ3IDIuMTg3LTIuNDQ3bS40NzkuMDU1YS4zLjMgMCAwMS0uNDI0IDBsLTYuMjY0LTYuMjYzYS4zLjMgMCAwMTAtLjQyNWwuNjgtLjY4YTEuNSAxLjUgMCAwMTIuMTIyIDBsMS4zNTcgMS4zNTcgMS42MDMtMi4wMjJhMS42MjkgMS42MjkgMCAxMTIuMjggMi4yOTZMMjEuNjkgNS44NTNsMS4zNTIgMS4zNTJhMS41IDEuNSAwIDAxMCAyLjEyMmwtLjY4LjY4eiIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+) 2 5,default!important}.editable-element-text[data-v-88c920e1]{position:absolute}.editable-element-text.lock .element-content[data-v-88c920e1]{cursor:default}.rotate-wrapper[data-v-88c920e1]{width:100%;height:100%}.element-content[data-v-88c920e1]{position:relative;padding:10px;line-height:1.5;word-break:break-word;cursor:move}.element-content .text[data-v-88c920e1]{position:relative}.element-content[data-v-88c920e1] a{cursor:text}.drag-handler[data-v-88c920e1]{height:10px;position:absolute;left:0;right:0}.drag-handler.top[data-v-88c920e1]{top:0}.drag-handler.bottom[data-v-88c920e1]{bottom:0}.editable-element-shape[data-v-63255815]{position:absolute;pointer-events:none}.editable-element-shape.lock .element-content[data-v-63255815]{cursor:default}.editable-element-shape.format-painter .element-content[data-v-63255815]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNzUgMTMuNzY0VjEuNDIxYS4zLjMgMCAwMS40NDgtLjI2bDEwLjkxIDYuMTk3YS4zLjMgMCAwMS0uMTE2LjU1OWwtNC4xOTYuNDQyIDIuNTgyIDQuNDcyYS4zLjMgMCAwMS0uMTEuNDFsLTMuMTg0IDEuODM4YS4zLjMgMCAwMS0uNDEtLjExbC0yLjU4MS00LjQ3Mi0yLjgxIDMuNDU2YS4zLjMgMCAwMS0uNTMzLS4xODl6IiBmaWxsPSIjZmZmIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMjYgMTQuNWw0LjUtNC41LTYtNmMtMiAyLTMgMi01LjUgMi41LjQgMy4yIDQuODMzIDYuNjY3IDcgOHptNC41ODgtNC40OTRhLjMuMyAwIDAwLjQyNCAwbC42OC0uNjhhMS41IDEuNSAwIDAwMC0yLjEyMUwzMC4zNCA1Ljg1MmwyLjAyNi0xLjU4MmExLjYyOSAxLjYyOSAwIDEwLTIuMjgtMi4yOTZsLTEuNjAzIDIuMDIxLTEuMzU3LTEuMzU2YTEuNSAxLjUgMCAwMC0yLjEyIDBsLS42ODEuNjhhLjMuMyAwIDAwMCAuNDI0bDYuMjYzIDYuMjYzeiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0yNC41NDMgMy45NjFzLTEuMDMgMS4yMDItMi40OTQgMS44OTFjLTEuMDA2LjQ3NC0yLjE4MS41ODUtMi43MzQuNjI3LS4yLjAxNC0uMzQ0LjIwOS0uMjc3LjM5OC4yOTMuODIgMS4xMTIgMi44MDEgMi42NTggNC4zNDcgMi4xMjYgMi4xMjYgMy42NTkgMi45NjggNC4xNDIgMy4yMDIuMS4wNDguMjE1LjAzLjI5OS0uMDQxLjM4NS0uMzI2IDEuNS0xLjI3NyAyLjIxLTEuOTg2Ljg5MS0uODkgMi4xODYtMi40NDggMi4xODYtMi40NDhtLjQ4LjA1NWEuMy4zIDAgMDEtLjQyNSAwbC02LjI2My02LjI2M2EuMy4zIDAgMDEwLS40MjRsLjY4LS42OGExLjUgMS41IDAgMDEyLjEyMiAwbDEuMzU2IDEuMzU2IDEuNjA0LTIuMDIxYTEuNjI5IDEuNjI5IDAgMTEyLjI3OSAyLjI5NkwzMC4zNCA1Ljg1MmwxLjM1MyAxLjM1M2ExLjUgMS41IDAgMDEwIDIuMTIxbC0uNjguNjh6IiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4=) 2 5,default!important}.rotate-wrapper[data-v-63255815]{width:100%;height:100%}.element-content[data-v-63255815]{width:100%;height:100%;position:relative;cursor:move}.element-content svg[data-v-63255815]{transform-origin:0 0;overflow:visible}.element-content .shape-path[data-v-63255815]{pointer-events:all}.shape-text[data-v-63255815]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;padding:10px;line-height:1.2;word-break:break-word;pointer-events:none}.shape-text.editable[data-v-63255815]{pointer-events:all}.shape-text.top[data-v-63255815]{justify-content:flex-start}.shape-text.middle[data-v-63255815]{justify-content:center}.shape-text.bottom[data-v-63255815]{justify-content:flex-end}.editable-element-shape[data-v-7ecafe01]{position:absolute;pointer-events:none}.editable-element-shape.lock .line-path[data-v-7ecafe01],.editable-element-shape.lock .line-point[data-v-7ecafe01]{cursor:default}.element-content[data-v-7ecafe01]{width:100%;height:100%;position:relative}.element-content svg[data-v-7ecafe01]{transform-origin:0 0;overflow:visible}.line-path[data-v-7ecafe01],.line-point[data-v-7ecafe01]{pointer-events:all;cursor:move}.ct-label{fill:#0006;color:#0006;font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:#0003;stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{content:"";display:table;clear:both}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{content:"";display:table;clear:both}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{content:"";display:table;clear:both}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{content:"";display:table;clear:both}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{content:"";display:table;clear:both}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{content:"";display:table;clear:both}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{content:"";display:table;clear:both}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{content:"";display:table;clear:both}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{content:"";display:table;clear:both}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{content:"";display:table;clear:both}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{content:"";display:table;clear:both}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{content:"";display:table;clear:both}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{content:"";display:table;clear:both}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{content:"";display:table;clear:both}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after{content:"";display:table;clear:both}.ct-major-twelfth>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{content:"";display:table;clear:both}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}.chart[data-v-786c4a79]{display:flex}.chart-content[data-v-786c4a79]{transform-origin:0 0}.chart-content{--theme-color-1: #666;--theme-color-2: #666;--theme-color-3: #666;--theme-color-4: #666;--theme-color-5: #666;--theme-color-6: #666;--theme-color-7: #666;--theme-color-8: #666;--theme-color-9: #666;--theme-color-10: #666;--grid-color: rgba(0, 0, 0, .4)}.chart-content .ct-series-a .ct-line,.chart-content .ct-series-a .ct-point{stroke:var(--theme-color-1)}.chart-content .ct-series-a .ct-area{fill:var(--theme-color-1)}.chart-content .ct-series-a .ct-bar{stroke:var(--theme-color-1)}.chart-content .ct-series-a .ct-slice-pie{fill:var(--theme-color-1)}.chart-content .ct-series-a .ct-slice-donut{stroke:var(--theme-color-1)}.chart-content .ct-series-b .ct-line,.chart-content .ct-series-b .ct-point{stroke:var(--theme-color-2)}.chart-content .ct-series-b .ct-area{fill:var(--theme-color-2)}.chart-content .ct-series-b .ct-bar{stroke:var(--theme-color-2)}.chart-content .ct-series-b .ct-slice-pie{fill:var(--theme-color-2)}.chart-content .ct-series-b .ct-slice-donut{stroke:var(--theme-color-2)}.chart-content .ct-series-c .ct-line,.chart-content .ct-series-c .ct-point{stroke:var(--theme-color-3)}.chart-content .ct-series-c .ct-area{fill:var(--theme-color-3)}.chart-content .ct-series-c .ct-bar{stroke:var(--theme-color-3)}.chart-content .ct-series-c .ct-slice-pie{fill:var(--theme-color-3)}.chart-content .ct-series-c .ct-slice-donut{stroke:var(--theme-color-3)}.chart-content .ct-series-d .ct-line,.chart-content .ct-series-d .ct-point{stroke:var(--theme-color-4)}.chart-content .ct-series-d .ct-area{fill:var(--theme-color-4)}.chart-content .ct-series-d .ct-bar{stroke:var(--theme-color-4)}.chart-content .ct-series-d .ct-slice-pie{fill:var(--theme-color-4)}.chart-content .ct-series-d .ct-slice-donut{stroke:var(--theme-color-4)}.chart-content .ct-series-e .ct-line,.chart-content .ct-series-e .ct-point{stroke:var(--theme-color-5)}.chart-content .ct-series-e .ct-area{fill:var(--theme-color-5)}.chart-content .ct-series-e .ct-bar{stroke:var(--theme-color-5)}.chart-content .ct-series-e .ct-slice-pie{fill:var(--theme-color-5)}.chart-content .ct-series-e .ct-slice-donut{stroke:var(--theme-color-5)}.chart-content .ct-series-f .ct-line,.chart-content .ct-series-f .ct-point{stroke:var(--theme-color-6)}.chart-content .ct-series-f .ct-area{fill:var(--theme-color-6)}.chart-content .ct-series-f .ct-bar{stroke:var(--theme-color-6)}.chart-content .ct-series-f .ct-slice-pie{fill:var(--theme-color-6)}.chart-content .ct-series-f .ct-slice-donut{stroke:var(--theme-color-6)}.chart-content .ct-series-g .ct-line,.chart-content .ct-series-g .ct-point{stroke:var(--theme-color-7)}.chart-content .ct-series-g .ct-area{fill:var(--theme-color-7)}.chart-content .ct-series-g .ct-bar{stroke:var(--theme-color-7)}.chart-content .ct-series-g .ct-slice-pie{fill:var(--theme-color-7)}.chart-content .ct-series-g .ct-slice-donut{stroke:var(--theme-color-7)}.chart-content .ct-series-h .ct-line,.chart-content .ct-series-h .ct-point{stroke:var(--theme-color-8)}.chart-content .ct-series-h .ct-area{fill:var(--theme-color-8)}.chart-content .ct-series-h .ct-bar{stroke:var(--theme-color-8)}.chart-content .ct-series-h .ct-slice-pie{fill:var(--theme-color-8)}.chart-content .ct-series-h .ct-slice-donut{stroke:var(--theme-color-8)}.chart-content .ct-series-i .ct-line,.chart-content .ct-series-i .ct-point{stroke:var(--theme-color-9)}.chart-content .ct-series-i .ct-area{fill:var(--theme-color-9)}.chart-content .ct-series-i .ct-bar{stroke:var(--theme-color-9)}.chart-content .ct-series-i .ct-slice-pie{fill:var(--theme-color-9)}.chart-content .ct-series-i .ct-slice-donut{stroke:var(--theme-color-9)}.chart-content .ct-grid{stroke:var(--grid-color)}.chart-content .ct-label{fill:var(--grid-color);color:var(--grid-color)}.legends{height:20px;display:flex;justify-content:center;align-items:center;font-size:14px}.legend{display:flex;align-items:center}.legend+.legend{margin-left:10px}.legend .block{width:10px;height:10px;margin-right:5px}.editable-element-chart[data-v-e98d2ede]{position:absolute}.editable-element-chart.lock .element-content[data-v-e98d2ede]{cursor:default}.rotate-wrapper[data-v-e98d2ede]{width:100%;height:100%}.element-content[data-v-e98d2ede]{width:100%;height:100%;overflow:hidden;cursor:move}.custom-textarea[data-v-cfadb975]{border:0;outline:0;-webkit-user-modify:read-write-plaintext-only}.editable-table[data-v-d040a5e0]{position:relative;-webkit-user-select:none;user-select:none}table[data-v-d040a5e0]{width:100%;position:relative;table-layout:fixed;border-collapse:collapse;border-spacing:0;border:0;word-wrap:break-word;-webkit-user-select:none;user-select:none;--themeColor: $themeColor;--subThemeColor1: $themeColor;--subThemeColor2: $themeColor}table.theme[data-v-d040a5e0]{background-color:#fff}table.theme tr:nth-child(2n) .cell[data-v-d040a5e0]{background-color:var(--subThemeColor1)}table.theme tr:nth-child(odd) .cell[data-v-d040a5e0]{background-color:var(--subThemeColor2)}table.theme.row-header tr:first-child .cell[data-v-d040a5e0]{background-color:var(--themeColor)}table.theme.row-footer tr:last-child .cell[data-v-d040a5e0]{background-color:var(--themeColor)}table.theme.col-header tr .cell[data-v-d040a5e0]:first-child{background-color:var(--themeColor)}table.theme.col-footer tr .cell[data-v-d040a5e0]:last-child{background-color:var(--themeColor)}table .cell[data-v-d040a5e0]{position:relative;white-space:normal;word-wrap:break-word;vertical-align:middle;font-size:14px;background-clip:padding-box;cursor:default}table .cell.selected[data-v-d040a5e0]:after{content:"";width:100%;height:100%;position:absolute;top:0;left:0;background-color:#6666}table .cell-text[data-v-d040a5e0]{padding:5px;line-height:1.5;-webkit-user-select:none;user-select:none;cursor:text}table .cell-text.active[data-v-d040a5e0]{-webkit-user-select:text;user-select:text}.drag-line[data-v-d040a5e0]{position:absolute;top:0;bottom:0;width:3px;background-color:#d14424;margin-left:-1px;opacity:0;z-index:2;cursor:col-resize}.editable-element-table[data-v-7795910a]{position:absolute}.editable-element-table.lock .element-content[data-v-7795910a]{cursor:default}.rotate-wrapper[data-v-7795910a]{width:100%;height:100%}.element-content[data-v-7795910a]{width:100%;height:100%;position:relative;cursor:move}.table-mask[data-v-7795910a]{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .2s}.table-mask .mask-tip[data-v-7795910a]{position:absolute;top:5px;left:5px;background-color:#00000080;color:#fff;padding:6px 12px;font-size:12px;transform-origin:0 0}.table-mask[data-v-7795910a]:hover:not(.lock){opacity:.9}.editable-element-latex[data-v-b73586f6]{position:absolute}.editable-element-latex.lock .element-content[data-v-b73586f6]{cursor:default}.rotate-wrapper[data-v-b73586f6]{width:100%;height:100%}.element-content[data-v-b73586f6]{width:100%;height:100%;position:relative;cursor:move}.element-content svg[data-v-b73586f6]{transform-origin:0 0;overflow:visible}.video-player[data-v-597c0901]{position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;line-height:1;transform-origin:0 0}.video-player.hide-controller[data-v-597c0901]{cursor:none}.video-player.hide-controller .controller-mask[data-v-597c0901],.video-player.hide-controller .controller[data-v-597c0901]{opacity:0;transform:translateY(100%)}.video-wrap[data-v-597c0901]{position:relative;background:#000;font-size:0;width:100%;height:100%}.video-wrap .video[data-v-597c0901]{width:100%;height:100%}.controller-mask[data-v-597c0901]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom;height:98px;width:100%;position:absolute;bottom:0;transition:all .3s ease}.controller[data-v-597c0901]{position:absolute;bottom:0;left:0;right:0;height:41px;padding:0 20px;-webkit-user-select:none;user-select:none;transition:all .3s ease}.controller .bar-wrap[data-v-597c0901]{padding:5px 0;cursor:pointer;position:absolute;bottom:33px;width:calc(100% - 40px);height:3px}.controller .bar-wrap:hover .bar .played .thumb[data-v-597c0901]{transform:scale(1)}.controller .bar-wrap .bar-time[data-v-597c0901]{position:absolute;left:0;top:-20px;border-radius:4px;padding:5px 7px;background-color:#0000009e;color:#fff;font-size:12px;text-align:center;opacity:1;transition:opacity .1s ease-in-out;word-wrap:normal;word-break:normal;z-index:2;pointer-events:none}.controller .bar-wrap .bar-time.hidden[data-v-597c0901]{opacity:0}.controller .bar-wrap .bar[data-v-597c0901]{position:relative;height:3px;width:100%;background:#fff3;cursor:pointer}.controller .bar-wrap .bar .loaded[data-v-597c0901]{position:absolute;left:0;top:0;bottom:0;background:#fff6;height:3px;transition:all .5s ease;will-change:width}.controller .bar-wrap .bar .played[data-v-597c0901]{position:absolute;left:0;top:0;bottom:0;height:3px;will-change:width;background-color:#fff}.controller .bar-wrap .bar .played .thumb[data-v-597c0901]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .icons[data-v-597c0901]{height:38px;position:absolute;bottom:0;display:flex;align-items:center}.controller .icons.icons-right[data-v-597c0901]{right:15px}.controller .icons .time[data-v-597c0901]{line-height:38px;color:#eee;text-shadow:0 0 2px rgba(0,0,0,.5);vertical-align:middle;font-size:13px;cursor:default}.controller .icons .icon[data-v-597c0901]{width:40px;height:100%;position:relative;cursor:pointer;display:flex;align-items:center;font-size:20px}.controller .icons .icon.play-icon[data-v-597c0901]{font-size:26px}.controller .icons .icon .icon-content[data-v-597c0901]{transition:all .2s ease-in-out;opacity:.8;color:#fff}.controller .icons .icon.loop-icon[data-v-597c0901]{font-size:12px}.controller .icons .icon.loop-icon .icon-content[data-v-597c0901]{opacity:.5}.controller .icons .icon.speed-icon[data-v-597c0901]{font-size:12px;position:relative}.controller .icons .icon .speed-menu[data-v-597c0901]{width:70px;position:absolute;bottom:30px;left:-23px;background-color:#22211b;padding:5px 0;color:#ddd}.controller .icons .icon .speed-menu .speed-menu-item[data-v-597c0901]{padding:8px 0;text-align:center}.controller .icons .icon .speed-menu .speed-menu-item[data-v-597c0901]:hover{background-color:#393833;color:#fff}.controller .icons .icon .speed-menu .speed-menu-item.active[data-v-597c0901]{font-weight:700;color:#fff}.controller .icons .icon.active .icon-content[data-v-597c0901],.controller .icons .icon:hover .icon-content[data-v-597c0901]{opacity:1}.controller .icons .volume[data-v-597c0901]{height:100%;position:relative;cursor:pointer;display:flex;align-items:center}.controller .icons .volume:hover .volume-bar-wrap .volume-bar[data-v-597c0901]{width:45px}.controller .icons .volume:hover .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-597c0901]{transform:scale(1)}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar[data-v-597c0901]{width:45px}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-597c0901]{transform:scale(1)}.controller .icons .volume-bar-wrap[data-v-597c0901]{display:inline-block;margin:0 15px 0 -5px;vertical-align:middle;height:100%}.controller .icons .volume-bar[data-v-597c0901]{position:relative;top:17px;width:0;height:3px;background:#aaa;transition:all .3s ease-in-out}.controller .icons .volume-bar .volume-bar-inner[data-v-597c0901]{position:absolute;bottom:0;left:0;height:100%;transition:all .1s ease;will-change:width;background-color:#fff}.controller .icons .volume-bar .volume-bar-inner .thumb[data-v-597c0901]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .icons .loop[data-v-597c0901]{display:inline-block;height:100%}.bezel[data-v-597c0901]{position:absolute;left:0;right:0;top:0;bottom:0;font-size:22px;color:#fff;pointer-events:none}.bezel .bezel-icon[data-v-597c0901]{position:absolute;top:50%;left:50%;margin:-26px 0 0 -26px;height:52px;width:52px;padding:12px;display:flex;justify-content:center;align-items:center;background:#00000080;border-radius:50%;opacity:0;pointer-events:none;font-size:40px}.bezel .bezel-icon.bezel-transition[data-v-597c0901]{animation:bezel-hide-597c0901 .5s linear}@keyframes bezel-hide-597c0901{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.load-error[data-v-597c0901]{position:absolute;left:0;right:0;top:0;bottom:0;font-size:15px;color:#fff;pointer-events:none;display:flex;justify-content:center;align-items:center}.editable-element-video[data-v-c50d3bc7]{position:absolute}.editable-element-video.lock .handler-border[data-v-c50d3bc7]{cursor:default}.rotate-wrapper[data-v-c50d3bc7]{width:100%;height:100%}.element-content[data-v-c50d3bc7]{width:100%;height:100%;position:relative}.handler-border[data-v-c50d3bc7]{position:absolute;cursor:move}.handler-border.t[data-v-c50d3bc7]{width:100%;height:20px;top:0;left:0}.handler-border.b[data-v-c50d3bc7]{width:100%;height:5px;bottom:0;left:0}.handler-border.l[data-v-c50d3bc7]{width:10px;height:100%;left:0;top:0}.handler-border.r[data-v-c50d3bc7]{width:10px;height:100%;right:0;top:0}.audio-player[data-v-32038f5c]{width:280px;height:50px;position:relative;-webkit-user-select:none;user-select:none;line-height:1;transform-origin:0 0;background:#000}.controller[data-v-32038f5c]{position:absolute;bottom:0;left:0;right:0;height:41px;padding:0 20px;-webkit-user-select:none;user-select:none;transition:all .3s ease}.controller .bar-wrap[data-v-32038f5c]{padding:5px 0;cursor:pointer;position:absolute;bottom:35px;width:calc(100% - 40px);height:3px}.controller .bar-wrap:hover .bar .played .thumb[data-v-32038f5c]{transform:scale(1)}.controller .bar-wrap .bar-time[data-v-32038f5c]{position:absolute;left:0;top:-20px;border-radius:4px;padding:5px 7px;background-color:#0000009e;color:#fff;font-size:12px;text-align:center;opacity:1;transition:opacity .1s ease-in-out;word-wrap:normal;word-break:normal;z-index:2;pointer-events:none}.controller .bar-wrap .bar-time.hidden[data-v-32038f5c]{opacity:0}.controller .bar-wrap .bar[data-v-32038f5c]{position:relative;height:3px;width:100%;background:#fff3;cursor:pointer}.controller .bar-wrap .bar .loaded[data-v-32038f5c]{position:absolute;left:0;top:0;bottom:0;background:#fff6;height:3px;transition:all .5s ease;will-change:width}.controller .bar-wrap .bar .played[data-v-32038f5c]{position:absolute;left:0;top:0;bottom:0;height:3px;will-change:width;background-color:#fff}.controller .bar-wrap .bar .played .thumb[data-v-32038f5c]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .icons[data-v-32038f5c]{height:38px;position:absolute;bottom:0;left:14px;display:flex;align-items:center}.controller .icons .icon[data-v-32038f5c]{width:36px;height:100%;position:relative;cursor:pointer;display:flex;align-items:center;font-size:20px}.controller .icons .icon.play-icon[data-v-32038f5c]{font-size:26px}.controller .icons .icon .icon-content[data-v-32038f5c]{transition:all .2s ease-in-out;opacity:.8;color:#fff}.controller .icons .icon.active .icon-content[data-v-32038f5c],.controller .icons .icon:hover .icon-content[data-v-32038f5c]{opacity:1}.controller .icons .volume[data-v-32038f5c]{height:100%;position:relative;cursor:pointer;display:flex;align-items:center}.controller .icons .volume:hover .volume-bar-wrap .volume-bar[data-v-32038f5c]{width:45px}.controller .icons .volume:hover .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-32038f5c]{transform:scale(1)}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar[data-v-32038f5c]{width:45px}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-32038f5c]{transform:scale(1)}.controller .icons .volume-bar-wrap[data-v-32038f5c]{display:inline-block;margin:0 15px 0 -5px;vertical-align:middle;height:100%}.controller .icons .volume-bar[data-v-32038f5c]{position:relative;top:17px;width:0;height:3px;background:#aaa;transition:all .3s ease-in-out}.controller .icons .volume-bar .volume-bar-inner[data-v-32038f5c]{position:absolute;bottom:0;left:0;height:100%;transition:all .1s ease;will-change:width;background-color:#fff}.controller .icons .volume-bar .volume-bar-inner .thumb[data-v-32038f5c]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .time[data-v-32038f5c]{height:38px;position:absolute;right:20px;bottom:0;display:flex;align-items:center;line-height:38px;color:#eee;text-shadow:0 0 2px rgba(0,0,0,.5);vertical-align:middle;font-size:13px;cursor:default}.controller .time .ptime[data-v-32038f5c]{margin-right:2px}.controller .time .dtime[data-v-32038f5c]{margin-left:2px}.editable-element-audio[data-v-5d8373ba]{position:absolute}.editable-element-audio.lock .audio-icon[data-v-5d8373ba]{cursor:default}.rotate-wrapper[data-v-5d8373ba]{width:100%;height:100%}.element-content[data-v-5d8373ba]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.audio-icon[data-v-5d8373ba]{cursor:move}.audio-player[data-v-5d8373ba]{position:absolute}.mouse-selection[data-v-053bfa3e]{position:absolute;background-color:#d144241a;border:1px solid #d14424;z-index:200}.mouse-selection.quadrant-1[data-v-053bfa3e]{transform-origin:50% 0;transform:rotate(180deg)}.mouse-selection.quadrant-2[data-v-053bfa3e]{transform-origin:0 0;transform:rotate(180deg)}.mouse-selection.quadrant-3[data-v-053bfa3e]{transform-origin:0 50%;transform:rotate(180deg)}.mouse-selection.quadrant-4[data-v-053bfa3e]{transform-origin:0 0;transform:rotate(0)}.grid-lines[data-v-d6e1ea18]{width:100%;height:100%;overflow:visible;z-index:999;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}.viewport-background[data-v-203ea8ff]{width:100%;height:100%;background-position:center;position:absolute}.alignment-line[data-v-7cd3d25d]{position:absolute;z-index:100}.alignment-line .line[data-v-7cd3d25d]{width:0;height:0;border:0 dashed #d14424}.alignment-line .line.vertical[data-v-7cd3d25d]{transform:translateY(-.5px);border-left-width:1px}.alignment-line .line.horizontal[data-v-7cd3d25d]{transform:translate(-.5px);border-top-width:1px}.ruler[data-v-b01be305]{font-size:12px}.h[data-v-b01be305]{position:absolute;background-color:#fff;border:1px solid #eee;height:20px;top:5px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.h .ruler-marker-100[data-v-b01be305]{height:100%;width:10%;line-height:20px;text-align:right;flex-shrink:0;padding-right:5px;position:relative}.h .ruler-marker-100.hide span[data-v-b01be305]{display:none}.h .ruler-marker-100.omit[data-v-b01be305]:before{display:none}.h .ruler-marker-100[data-v-b01be305]:not(:last-child):after{content:"";width:.1px;height:12px;position:absolute;right:0;bottom:0;background-color:#999}.h .ruler-marker-100[data-v-b01be305]:before{content:"";width:.1px;height:8px;position:absolute;right:50%;bottom:0;background-color:#999}.v[data-v-b01be305]{position:absolute;background-color:#fff;border:1px solid #eee;width:20px;left:5px;overflow:hidden}.v .ruler-marker-100[data-v-b01be305]{width:100%;line-height:20px;text-align:right;padding-bottom:5px;position:relative;writing-mode:vertical-rl}.v .ruler-marker-100.hide span[data-v-b01be305]{display:none}.v .ruler-marker-100.omit[data-v-b01be305]:before{display:none}.v .ruler-marker-100[data-v-b01be305]:not(:last-child):after{content:"";height:.1px;width:12px;position:absolute;bottom:0;right:0;background-color:#999}.v .ruler-marker-100[data-v-b01be305]:before{content:"";height:.1px;width:8px;position:absolute;bottom:50%;right:0;background-color:#999}.element-create-selection[data-v-7b17a883]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;cursor:crosshair}.element-create-selection svg[data-v-7b17a883]{overflow:visible}.selection[data-v-7b17a883]{position:absolute;opacity:.8}.selection[data-v-7b17a883]:not(.line){border:1px solid #d14424}.shape-create-canvas[data-v-8ea8c340]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;cursor:crosshair}.shape-create-canvas svg[data-v-8ea8c340]{width:100%;height:100%;overflow:visible}.resize-handler[data-v-bb3f9e62]{position:absolute;width:10px;height:10px;left:0;top:0;margin:-5px 0 0 -5px;border:1px solid #d14424;background-color:#fff;border-radius:1px;cursor:pointer}.resize-handler.left-top.rotate-0[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-0[data-v-bb3f9e62],.resize-handler.left.rotate-45[data-v-bb3f9e62],.resize-handler.right.rotate-45[data-v-bb3f9e62],.resize-handler.left-bottom.rotate-90[data-v-bb3f9e62],.resize-handler.right-top.rotate-90[data-v-bb3f9e62],.resize-handler.top.rotate-135[data-v-bb3f9e62],.resize-handler.bottom.rotate-135[data-v-bb3f9e62]{cursor:nwse-resize}.resize-handler.top.rotate-0[data-v-bb3f9e62],.resize-handler.bottom.rotate-0[data-v-bb3f9e62],.resize-handler.left-top.rotate-45[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-45[data-v-bb3f9e62],.resize-handler.left.rotate-90[data-v-bb3f9e62],.resize-handler.right.rotate-90[data-v-bb3f9e62],.resize-handler.left-bottom.rotate-135[data-v-bb3f9e62],.resize-handler.right-top.rotate-135[data-v-bb3f9e62]{cursor:ns-resize}.resize-handler.left-bottom.rotate-0[data-v-bb3f9e62],.resize-handler.right-top.rotate-0[data-v-bb3f9e62],.resize-handler.top.rotate-45[data-v-bb3f9e62],.resize-handler.bottom.rotate-45[data-v-bb3f9e62],.resize-handler.left-top.rotate-90[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-90[data-v-bb3f9e62],.resize-handler.left.rotate-135[data-v-bb3f9e62],.resize-handler.right.rotate-135[data-v-bb3f9e62]{cursor:nesw-resize}.resize-handler.left.rotate-0[data-v-bb3f9e62],.resize-handler.right.rotate-0[data-v-bb3f9e62],.resize-handler.left-bottom.rotate-45[data-v-bb3f9e62],.resize-handler.right-top.rotate-45[data-v-bb3f9e62],.resize-handler.top.rotate-90[data-v-bb3f9e62],.resize-handler.bottom.rotate-90[data-v-bb3f9e62],.resize-handler.left-top.rotate-135[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-135[data-v-bb3f9e62]{cursor:ew-resize}.border-line[data-v-7114fb45]{position:absolute;width:0;height:0;left:0;top:0;border:0 dashed #d14424}.border-line.top[data-v-7114fb45]{border-top-width:1px}.border-line.bottom[data-v-7114fb45]{border-bottom-width:1px}.border-line.left[data-v-7114fb45]{border-left-width:1px}.border-line.right[data-v-7114fb45]{border-right-width:1px}.border-line.wide[data-v-7114fb45]:before{content:"";position:absolute;background:transparent;cursor:move}.border-line.wide.top[data-v-7114fb45]:before{top:-8px;left:-8px;width:calc(100% + 16px);height:16px}.border-line.wide.bottom[data-v-7114fb45]:before{bottom:-8px;left:-8px;width:calc(100% + 16px);height:16px}.border-line.wide.left[data-v-7114fb45]:before{top:-8px;left:-8px;width:16px;height:calc(100% + 16px)}.border-line.wide.right[data-v-7114fb45]:before{top:-8px;right:-8px;width:16px;height:calc(100% + 16px)}.multi-select-operate[data-v-135c8cb7]{position:absolute;top:0;left:0;z-index:101}.rotate-handler[data-v-9f21fc0f]{position:absolute;width:10px;height:10px;top:-25px;margin-left:-5px;border:1px solid #d14424;background-color:#fff;border-radius:1px;cursor:grab}.rotate-handler[data-v-9f21fc0f]:active{cursor:grabbing}.image-element-operate.cliping[data-v-2a1bef4e]{visibility:hidden}.operate-keypoint-handler[data-v-e65e73bd]{position:absolute;width:10px;height:10px;left:0;top:0;margin:-5px 0 0 -5px;border:1px solid #d14424;background-color:#ffe873;border-radius:1px}svg[data-v-32a06240]{position:absolute;left:0;top:0;pointer-events:none;transform-origin:0 0}.anchor-line[data-v-32a06240]{stroke-width:1px;stroke-dasharray:5 5;opacity:.5}.divider.horizontal[data-v-c7c64e0b]{width:100%;margin:24px 0;border-block-start:1px solid rgba(5,5,5,.06)}.divider.vertical[data-v-c7c64e0b]{position:relative;height:1em;display:inline-block;margin:0 8px;border-inline-start:1px solid rgba(5,5,5,.06)}.link-handler[data-v-f8f46f78]{height:30px;position:absolute;left:0;font-size:12px;padding:0 10px;background-color:#fff;box-shadow:3px 3px 3px #00000026;display:flex;align-items:center;color:#d14424}.link[data-v-f8f46f78]{max-width:300px;margin-right:20px;word-break:keep-all;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.btns[data-v-f8f46f78]{display:flex;align-items:center}.btns .btn[data-v-f8f46f78]{word-break:keep-all;cursor:pointer}.operate[data-v-b96daa51]{position:absolute;z-index:100;-webkit-user-select:none;user-select:none}.operate.multi-select[data-v-b96daa51]{opacity:.2}.animation-index[data-v-b96daa51]{position:absolute;top:0;left:-24px;font-size:12px}.animation-index .index-item[data-v-b96daa51]{width:18px;height:18px;background-color:#fff;color:#d14424;border:1px solid #d14424;display:flex;justify-content:center;align-items:center}.animation-index .index-item+.index-item[data-v-b96daa51]{margin-top:5px}.base-element-image[data-v-71d24108]{position:absolute}.rotate-wrapper[data-v-71d24108]{width:100%;height:100%}.element-content[data-v-71d24108]{width:100%;height:100%;position:relative}.element-content .image-content[data-v-71d24108]{width:100%;height:100%;overflow:hidden;position:relative}.element-content img[data-v-71d24108]{position:absolute}.color-mask[data-v-71d24108]{position:absolute;top:0;bottom:0;left:0;right:0}.base-element-text[data-v-e8894a41]{position:absolute}.rotate-wrapper[data-v-e8894a41]{width:100%;height:100%}.element-content[data-v-e8894a41]{position:relative;padding:10px;line-height:1.5;word-break:break-word}.element-content .text[data-v-e8894a41]{position:relative}.base-element-shape[data-v-2d39d3d1]{position:absolute}.rotate-wrapper[data-v-2d39d3d1]{width:100%;height:100%}.element-content[data-v-2d39d3d1]{width:100%;height:100%;position:relative}.element-content svg[data-v-2d39d3d1]{transform-origin:0 0;overflow:visible}.shape-text[data-v-2d39d3d1]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;padding:10px;line-height:1.2;word-break:break-word}.shape-text.top[data-v-2d39d3d1]{justify-content:flex-start}.shape-text.middle[data-v-2d39d3d1]{justify-content:center}.shape-text.bottom[data-v-2d39d3d1]{justify-content:flex-end}.base-element-line[data-v-e7dc2b42]{position:absolute}.element-content[data-v-e7dc2b42]{width:100%;height:100%;position:relative}.element-content svg[data-v-e7dc2b42]{transform-origin:0 0;overflow:visible}.base-element-chart[data-v-37ca5799]{position:absolute}.rotate-wrapper[data-v-37ca5799],.element-content[data-v-37ca5799]{width:100%;height:100%}.static-table[data-v-6d887dcd]{position:relative;-webkit-user-select:none;user-select:none}table[data-v-6d887dcd]{width:100%;position:relative;table-layout:fixed;border-collapse:collapse;border-spacing:0;border:0;word-wrap:break-word;-webkit-user-select:none;user-select:none;--themeColor: $themeColor;--subThemeColor1: $themeColor;--subThemeColor2: $themeColor}table.theme[data-v-6d887dcd]{background-color:#fff}table.theme tr:nth-child(2n) .cell[data-v-6d887dcd]{background-color:var(--subThemeColor1)}table.theme tr:nth-child(odd) .cell[data-v-6d887dcd]{background-color:var(--subThemeColor2)}table.theme.row-header tr:first-child .cell[data-v-6d887dcd]{background-color:var(--themeColor)}table.theme.row-footer tr:last-child .cell[data-v-6d887dcd]{background-color:var(--themeColor)}table.theme.col-header tr .cell[data-v-6d887dcd]:first-child{background-color:var(--themeColor)}table.theme.col-footer tr .cell[data-v-6d887dcd]:last-child{background-color:var(--themeColor)}table .cell[data-v-6d887dcd]{position:relative;white-space:normal;word-wrap:break-word;vertical-align:middle;background-clip:padding-box}table .cell-text[data-v-6d887dcd]{padding:5px;line-height:1.5}.base-element-table[data-v-77cfa6e4]{position:absolute}.rotate-wrapper[data-v-77cfa6e4]{width:100%;height:100%}.element-content[data-v-77cfa6e4]{width:100%;height:100%;position:relative}.base-element-latex[data-v-93374af9]{position:absolute}.rotate-wrapper[data-v-93374af9]{width:100%;height:100%}.element-content[data-v-93374af9]{width:100%;height:100%;position:relative}.element-content svg[data-v-93374af9]{transform-origin:0 0;overflow:visible}.base-element-video[data-v-2fb0e771]{position:absolute}.rotate-wrapper[data-v-2fb0e771]{width:100%;height:100%}.element-content[data-v-2fb0e771]{width:100%;height:100%;background-color:#000;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;justify-content:center;align-items:center}.icon[data-v-2fb0e771]{font-size:140px;color:#aaa}.base-element-audio[data-v-b33e6120]{position:absolute}.rotate-wrapper[data-v-b33e6120]{width:100%;height:100%}.element-content[data-v-b33e6120]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.audio-icon[data-v-b33e6120]{cursor:move}.thumbnail-slide[data-v-cbd76d0a]{background-color:#fff;overflow:hidden;-webkit-user-select:none;user-select:none}.elements[data-v-cbd76d0a]{transform-origin:0 0}.background[data-v-cbd76d0a]{width:100%;height:100%;background-position:center;position:absolute}.placeholder[data-v-cbd76d0a]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.tabs[data-v-c7f9dce0]{display:flex;-webkit-user-select:none;user-select:none;line-height:1}.tabs[data-v-c7f9dce0]:not(.card){font-size:13px;align-items:center;justify-content:flex-start;border-bottom:1px solid #eee}.tabs:not(.card).space-around[data-v-c7f9dce0]{justify-content:space-around}.tabs:not(.card).space-between[data-v-c7f9dce0]{justify-content:space-between}.tabs:not(.card) .tab[data-v-c7f9dce0]{text-align:center;border-bottom:2px solid transparent;padding:8px 10px;cursor:pointer}.tabs:not(.card) .tab.active[data-v-c7f9dce0]{border-bottom:2px solid var(--color, #d14424)}.tabs.card[data-v-c7f9dce0]{height:40px;font-size:12px;flex-shrink:0}.tabs.card .tab[data-v-c7f9dce0]{flex:1;display:flex;justify-content:center;align-items:center;background-color:#f9f9f9;border-bottom:1px solid #eee;cursor:pointer}.tabs.card .tab.active[data-v-c7f9dce0]{background-color:transparent;border-bottom-color:transparent}.tabs.card .tab+.tab[data-v-c7f9dce0]{border-left:1px solid #eee}.button[data-v-3e3d85be]{height:32px;line-height:32px;outline:0;font-size:13px;padding:0 15px;text-align:center;color:#41464b;border-radius:2px;-webkit-user-select:none;user-select:none;letter-spacing:1px;cursor:pointer}.button.small[data-v-3e3d85be]{height:24px;line-height:24px;padding:0 7px;letter-spacing:0}.button.default[data-v-3e3d85be]{background-color:#fff;border:1px solid #d9d9d9;color:#41464b}.button.default[data-v-3e3d85be]:hover{color:#d14424;border-color:#d14424}.button.primary[data-v-3e3d85be]{background-color:#d14424;border:1px solid #d14424;color:#fff}.button.primary[data-v-3e3d85be]:hover{background-color:#de6949;border-color:#de6949}.button.checkbox[data-v-3e3d85be],.button.radio[data-v-3e3d85be]{background-color:#fff;border:1px solid #d9d9d9;color:#41464b}.button.checkbox[data-v-3e3d85be]:not(.checked):hover,.button.radio[data-v-3e3d85be]:not(.checked):hover{color:#d14424}.button.checked[data-v-3e3d85be]{color:#fff;background-color:#d14424;border-color:#d14424}.button.checked[data-v-3e3d85be]:hover{background-color:#de6949;border-color:#de6949}.button.disabled[data-v-3e3d85be]{background-color:#f5f5f5;border:1px solid #d9d9d9;color:#b7b7b7;cursor:default}.select[data-v-618af0ca]{width:100%;height:32px;padding-right:32px;border-radius:2px;transition:border-color .25s;font-size:13px;-webkit-user-select:none;user-select:none;background-color:#fff;border:1px solid #d9d9d9;position:relative;cursor:pointer}.select[data-v-618af0ca]:not(.disabled):hover{border-color:#d14424}.select.disabled[data-v-618af0ca]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7;cursor:default}.select .selector[data-v-618af0ca]{min-width:50px;height:30px;line-height:30px;padding-left:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.options[data-v-618af0ca]{max-height:260px;padding:5px;overflow:auto;text-align:left;font-size:13px;-webkit-user-select:none;user-select:none}.option[data-v-618af0ca]{height:32px;line-height:32px;padding:0 5px;border-radius:2px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.option.disabled[data-v-618af0ca]{color:#b7b7b7;cursor:default}.option[data-v-618af0ca]:not(.disabled,.selected):hover{background-color:#6666660d}.option.selected[data-v-618af0ca]{background-color:#d144240d}.icon[data-v-618af0ca]{width:32px;height:30px;color:#bfbfbf;position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center}.link-dialog[data-v-de4d9db3]{font-size:13px;line-height:1.675}.input[data-v-de4d9db3]{width:100%;height:32px}.preview[data-v-de4d9db3]{margin-top:12px}.thumbnail[data-v-de4d9db3]{border:1px solid rgba(209,68,36,.15);margin-top:5px}.btns[data-v-de4d9db3]{margin-top:20px;text-align:right}.modal[data-v-4d27bcca],.mask[data-v-4d27bcca]{top:0;left:0;width:100%;height:100%;z-index:5000}.modal[data-v-4d27bcca]{position:fixed;display:flex;justify-content:center;align-items:center;outline:0;border:0}.mask[data-v-4d27bcca]{position:absolute;background:#00000040}.modal-content[data-v-4d27bcca]{z-index:5001;padding:20px;background:#fff;border-radius:2px;overflow:hidden;box-shadow:0 1px 3px #0003;position:relative}.close-btn[data-v-4d27bcca]{width:20px;height:20px;display:flex;justify-content:center;align-items:center;position:absolute;top:16px;right:16px;cursor:pointer}.modal-fade-enter-active[data-v-4d27bcca]{animation:modal-fade-enter-4d27bcca .25s both ease-in}.modal-fade-leave-active[data-v-4d27bcca]{animation:modal-fade-leave-4d27bcca .25s both ease-out}.modal-zoom-enter-active[data-v-4d27bcca]{animation:modal-zoom-enter-4d27bcca .25s both cubic-bezier(.4,0,0,1.5)}.modal-zoom-leave-active[data-v-4d27bcca]{animation:modal-zoom-leave-4d27bcca .25s both}@keyframes modal-fade-enter-4d27bcca{0%{opacity:0}}@keyframes modal-fade-leave-4d27bcca{to{opacity:0}}@keyframes modal-zoom-enter-4d27bcca{0%{transform:scale3d(.3,.3,.3)}}@keyframes modal-zoom-leave-4d27bcca{to{transform:scale3d(.3,.3,.3)}}.canvas[data-v-47bbcf7b]{height:100%;-webkit-user-select:none;user-select:none;overflow:hidden;background-color:#f9f9f9;position:relative}.drag-mask[data-v-47bbcf7b]{cursor:grab;position:absolute;top:0;right:0;bottom:0;left:0}.viewport-wrapper[data-v-47bbcf7b]{position:absolute;box-shadow:0 0 15px #0000001a}.viewport[data-v-47bbcf7b]{position:absolute;top:0;left:0;transform-origin:0 0}.shape-item-thumbnail[data-v-2896ae03]{position:relative;cursor:pointer}.shape-content[data-v-2896ae03]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center}.shape-content:hover .shape-path[data-v-2896ae03]:not(.outlined){stroke:#d14424}.shape-content:hover .shape-path.outlined[data-v-2896ae03]{fill:#d14424}.shape-content svg[data-v-2896ae03]:not(:root){overflow:visible}.shape-pool[data-v-553b0d02]{width:340px;max-height:520px;overflow:auto;margin-top:-12px;margin-bottom:-12px;margin-right:-12px;padding-right:12px;padding-top:12px}.category-name[data-v-553b0d02]{width:100%;font-size:13px;margin-bottom:10px;border-left:4px solid #aaa;background-color:#eee;padding:2px 0 2px 10px}.shape-list[data-v-553b0d02]{display:flex;flex-wrap:wrap;align-content:flex-start;margin-bottom:10px}.shape-item[data-v-553b0d02]{width:8%;margin-bottom:calc(20% / 9);height:0;padding-bottom:8%;flex-shrink:0}.shape-item[data-v-553b0d02]:not(:nth-child(10n)){margin-right:calc(20% / 9)}.line-pool[data-v-b07efd40]{width:220px;overflow:auto;margin-bottom:-12px;margin-right:-12px;padding-right:12px}.category-name[data-v-b07efd40]{width:100%;font-size:13px;margin-bottom:10px;border-left:4px solid #aaa;background-color:#eee;padding:2px 0 2px 10px}.line-list[data-v-b07efd40]{display:flex;flex-wrap:wrap;align-content:flex-start;margin-bottom:10px}.line-item[data-v-b07efd40]{width:19%;margin-bottom:1.25%;height:0;padding-bottom:19%;flex-shrink:0;position:relative;cursor:pointer}.line-item[data-v-b07efd40]:not(:nth-child(5n)){margin-right:1.25%}.line-content[data-v-b07efd40]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#999}.line-content[data-v-b07efd40]:hover{color:#d14424}.line-content svg[data-v-b07efd40]:not(:root){overflow:visible}.chart-pool[data-v-a4bc3ce2]{width:200px;margin-bottom:-5px;display:flex;flex-wrap:wrap;align-content:flex-start}.chart-item[data-v-a4bc3ce2]{width:19%;margin-bottom:1.25%;height:0;padding-bottom:19%;flex-shrink:0;position:relative;cursor:pointer}.chart-item[data-v-a4bc3ce2]:not(:nth-child(5n)){margin-right:1.25%}.chart-content[data-v-a4bc3ce2]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#999}.chart-content[data-v-a4bc3ce2]:hover{color:#d14424}.number-input[data-v-246b23f6]{background-color:#fff;border:1px solid #d9d9d9;padding:0 0 0 5px;border-radius:2px;transition:border-color .25s;font-size:13px;display:inline-flex}.number-input .input-wrap[data-v-246b23f6]{flex:1;color:#41464b;padding:0 0 0 5px;position:relative}.number-input:not(.disabled) .input-wrap:hover .handlers[data-v-246b23f6]{opacity:1}.number-input .handlers[data-v-246b23f6]{width:20px;position:absolute;top:0;bottom:0;right:0;display:flex;flex-direction:column;font-size:6px;color:#999;opacity:0;-webkit-user-select:none;user-select:none;transition:opacity .25s}.number-input .handlers .handler[data-v-246b23f6]{width:100%;height:50%;display:flex;justify-content:center;align-items:center;border-left:1px solid #d9d9d9;cursor:pointer}.number-input .handlers .handler+.handler[data-v-246b23f6]{border-top:1px solid #d9d9d9}.number-input .handlers .handler[data-v-246b23f6]:hover{color:#d14424}.number-input input[data-v-246b23f6]{width:100%;min-width:0;padding:0;height:30px;line-height:30px;outline:0;border:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.number-input input[data-v-246b23f6]::placeholder{color:#bfbfbf}.number-input[data-v-246b23f6]:not(.disabled):hover,.number-input.focused[data-v-246b23f6]{border-color:#d14424}.number-input.disabled[data-v-246b23f6]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7}.number-input .prefix[data-v-246b23f6],.number-input .suffix[data-v-246b23f6]{display:flex;justify-content:center;align-items:center;line-height:30px;-webkit-user-select:none;user-select:none}.table-generator[data-v-81680e19]{width:100%;margin-top:-12px}.title[data-v-81680e19]{height:28px;line-height:28px;background-color:#ededed;margin:0 -12px 12px;padding:0 14px;font-size:12px;display:flex;justify-content:space-between;-webkit-user-select:none;user-select:none}.title .right[data-v-81680e19]{cursor:pointer}.title .right[data-v-81680e19]:hover{color:#d14424}table[data-v-81680e19]{border-collapse:separate}td[data-v-81680e19]{width:23px;height:23px;line-height:23px;border:2px solid #fff;background-color:#f7f7f7}.cell[data-v-81680e19]{width:100%;height:100%;border:1px solid #dcdcdc}.cell.active[data-v-81680e19]{background-color:#d144241a;border-color:#d14424}.custom[data-v-81680e19]{width:230px}.custom .row[data-v-81680e19]{display:flex;align-items:center}.custom .row+.row[data-v-81680e19]{margin-top:10px}.btns[data-v-81680e19]{margin-top:10px;text-align:right}.btns .btn[data-v-81680e19]{margin-left:10px}.media-input[data-v-999b18ca]{width:480px}.btns[data-v-999b18ca]{margin-top:10px;text-align:right}svg[data-v-fa1b116d]{overflow:hidden}.textarea[data-v-2b83189c]{outline:0;width:100%;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;padding:10px;transition:border-color .25s;box-sizing:border-box;line-height:1.675;resize:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.textarea[data-v-2b83189c]:focus{border-color:#d14424;background-color:#fff}.textarea.resizable[data-v-2b83189c]{resize:vertical}.textarea.disabled[data-v-2b83189c]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7}.textarea[data-v-2b83189c]::placeholder{color:#bfbfbf}.latex-editor[data-v-44075c46]{height:560px}.container[data-v-44075c46]{height:calc(100% - 50px);display:flex}.left[data-v-44075c46]{width:540px;height:100%;display:flex;flex-direction:column;flex-shrink:0}.input-area[data-v-44075c46]{flex:1}.input-area textarea[data-v-44075c46]{height:100%!important;border-color:#eee!important;padding:10px!important}.input-area textarea[data-v-44075c46]:focus{box-shadow:none!important}.preview[data-v-44075c46]{height:160px;display:flex;justify-content:center;align-items:center;text-align:center;margin-top:20px;border:1px solid #eee;-webkit-user-select:none;user-select:none}.placeholder[data-v-44075c46]{color:#888;font-size:13px}.preview-content[data-v-44075c46]{width:100%;height:100%;padding:10px;display:flex;justify-content:center;align-items:center}.right[data-v-44075c46]{width:280px;height:100%;margin-left:20px;border:solid 1px #eee;background-color:#fff;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.content[data-v-44075c46]{height:calc(100% - 40px);font-size:13px}.formula[data-v-44075c46]{height:100%;padding:12px;overflow:auto;overflow:overlay}.formula-item+.formula-item[data-v-44075c46]{margin-top:10px}.formula-item .formula-title[data-v-44075c46]{margin-bottom:5px}.formula-item .formula-item-content[data-v-44075c46]{height:60px;padding:5px;display:flex;align-items:center;background-color:#f9f9f9;cursor:pointer}.symbol[data-v-44075c46]{height:100%;display:flex;flex-direction:column}.symbol-pool[data-v-44075c46]{display:flex;flex-wrap:wrap;flex:1;padding:12px;overflow:auto;overflow:overlay}.symbol-item[data-v-44075c46]{display:flex;justify-content:center;align-items:center}.symbol-item[data-v-44075c46]:hover{background-color:#f9f9f9;cursor:pointer}.footer[data-v-44075c46]{height:50px;display:flex;justify-content:flex-end;align-items:flex-end}.footer .btn[data-v-44075c46]{margin-left:10px}.canvas-tool[data-v-f177f23a]{position:relative;border-bottom:1px solid #eee;background-color:#fff;display:flex;justify-content:space-between;padding:0 10px;font-size:13px;-webkit-user-select:none;user-select:none}.left-handler[data-v-f177f23a],.more[data-v-f177f23a]{display:flex;align-items:center}.add-element-handler[data-v-f177f23a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex}.add-element-handler .handler-item[data-v-f177f23a]{width:32px}.add-element-handler .handler-item[data-v-f177f23a]:not(.group-btn):hover{background-color:#f1f1f1}.add-element-handler .handler-item.active[data-v-f177f23a]{color:#d14424}.add-element-handler .handler-item.group-btn[data-v-f177f23a]{width:auto;margin-right:4px}.add-element-handler .handler-item.group-btn[data-v-f177f23a]:hover{background-color:#f3f3f3}.add-element-handler .handler-item.group-btn .icon[data-v-f177f23a],.add-element-handler .handler-item.group-btn .arrow[data-v-f177f23a]{height:100%;display:flex;justify-content:center;align-items:center}.add-element-handler .handler-item.group-btn .icon[data-v-f177f23a]{width:26px;padding:0 2px}.add-element-handler .handler-item.group-btn .icon[data-v-f177f23a]:hover{background-color:#e9e9e9}.add-element-handler .handler-item.group-btn .icon.active[data-v-f177f23a]{color:#d14424}.add-element-handler .handler-item.group-btn .arrow[data-v-f177f23a]{font-size:12px}.add-element-handler .handler-item.group-btn .arrow[data-v-f177f23a]:hover{background-color:#e9e9e9}.handler-item[data-v-f177f23a]{height:24px;font-size:14px;margin:0 2px;display:flex;justify-content:center;align-items:center;border-radius:2px;overflow:hidden;cursor:pointer}.handler-item.disable[data-v-f177f23a]{opacity:.5}.left-handler .handler-item[data-v-f177f23a],.right-handler .handler-item[data-v-f177f23a]{padding:0 8px}.left-handler .handler-item.active[data-v-f177f23a],.left-handler .handler-item[data-v-f177f23a]:not(.disable):hover,.right-handler .handler-item.active[data-v-f177f23a],.right-handler .handler-item[data-v-f177f23a]:not(.disable):hover{background-color:#f1f1f1}.right-handler[data-v-f177f23a]{display:flex;align-items:center}.right-handler .text[data-v-f177f23a]{display:inline-block;width:40px;text-align:center;cursor:pointer}.right-handler .viewport-size[data-v-f177f23a]{font-size:13px}@media screen and (width <= 1200px){.right-handler .text[data-v-f177f23a],.more[data-v-f177f23a]{display:none}}@media screen and (width <= 1000px){.left-handler[data-v-f177f23a],.right-handler[data-v-f177f23a]{display:none}}.layout-pool[data-v-0166cc70]{width:394px;height:500px;padding:2px 12px 2px 2px;margin-right:-12px;overflow:auto;display:flex;flex-wrap:wrap;align-content:flex-start}.layout-item[data-v-0166cc70]{width:48%;margin-bottom:4%}.layout-item[data-v-0166cc70]:not(:nth-child(2n)){margin-right:4%}.layout-item[data-v-0166cc70]:nth-last-child(2),.layout-item[data-v-0166cc70]:last-child{margin-bottom:0}.layout-item .thumbnail[data-v-0166cc70]{outline:2px solid #eee;transition:outline .2s;cursor:pointer}.layout-item .thumbnail[data-v-0166cc70]:hover{outline-color:#d14424}.thumbnails[data-v-d7a17fcd]{border-right:solid 1px #eee;background-color:#fff;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.add-slide[data-v-d7a17fcd]{height:40px;font-size:12px;display:flex;flex-shrink:0;border-bottom:1px solid #eee;cursor:pointer}.add-slide .btn[data-v-d7a17fcd]{flex:1;display:flex;justify-content:center;align-items:center}.add-slide .btn[data-v-d7a17fcd]:hover{background-color:#f9f9f9}.add-slide .select-btn[data-v-d7a17fcd]{width:30px;height:100%;display:flex;justify-content:center;align-items:center;border-left:1px solid #eee}.add-slide .select-btn[data-v-d7a17fcd]:hover{background-color:#f9f9f9}.add-slide .icon[data-v-d7a17fcd]{margin-right:3px;font-size:14px}.thumbnail-list[data-v-d7a17fcd]{padding:5px 0;flex:1;overflow:auto}.thumbnail-item[data-v-d7a17fcd]{display:flex;justify-content:center;align-items:center;padding:5px 0}.thumbnail-item .thumbnail[data-v-d7a17fcd]{outline:2px solid rgba(209,68,36,.15)}.thumbnail-item.active .label[data-v-d7a17fcd]{color:#d14424}.thumbnail-item.active .thumbnail[data-v-d7a17fcd],.thumbnail-item.selected .thumbnail[data-v-d7a17fcd]{outline-color:#d14424}.label[data-v-d7a17fcd]{font-size:12px;color:#999;width:20px;cursor:grab}.label.offset-left[data-v-d7a17fcd]{position:relative;left:-4px}.label[data-v-d7a17fcd]:active{cursor:grabbing}.page-number[data-v-d7a17fcd]{height:40px;font-size:12px;border-top:1px solid #eee;line-height:40px;text-align:center;color:#666}.slider[data-v-a7428be4]{width:100%;height:12px;padding:4px 0;-webkit-user-select:none;user-select:none}.slider.disabled .track[data-v-a7428be4]{background-color:#b4b4b4}.slider.disabled .thumb[data-v-a7428be4]{outline:2px solid #b4b4b4}.slider[data-v-a7428be4]:not(.disabled){cursor:pointer}.slider:not(.disabled) .bar[data-v-a7428be4]:hover{background-color:#f0f0f0}.slider:not(.disabled) .track[data-v-a7428be4]:hover{background-color:#de6949}.slider:not(.disabled) .thumb[data-v-a7428be4]:hover,.slider:not(.disabled) .thumb[data-v-a7428be4]:active{outline:4px solid #d14424}.bar[data-v-a7428be4]{width:calc(100% - 10px);margin-left:5px;height:4px;border-radius:2px;position:relative;background-color:#f5f5f5;-webkit-user-select:none;user-select:none;transition:background-color .2s}.track[data-v-a7428be4]{position:absolute;top:0;left:0;height:100%;background-color:#d14424;transition:background-color .2s}.thumb[data-v-a7428be4]{position:absolute;top:50%;left:0;width:10px;height:10px;background-color:#fff;outline:2px solid #d14424;transform:translate(-50%,-50%);border-radius:50%;z-index:100}.thumb[data-v-a7428be4]:hover:before,.thumb[data-v-a7428be4]:hover:after,.thumb[data-v-a7428be4]:active:before,.thumb[data-v-a7428be4]:active:after{display:block}.thumb[data-v-a7428be4]:before{content:attr(data-tooltip);min-width:28px;display:none;position:absolute;left:50%;bottom:24px;transform:translate(-50%);background-color:#262626;text-align:center;color:#fff;border-radius:2px;padding:6px 5px;font-size:12px}.thumb[data-v-a7428be4]:after{content:"";display:none;position:absolute;left:50%;bottom:15px;transform:translate(-50%);border:5px solid transparent;border-top-color:#262626}.row[data-v-c3b27b40]{width:100%;display:flex;align-items:center;margin-bottom:10px}.color-btn[data-v-5e2a7fc5]{width:100%;display:flex!important;align-items:center;justify-content:center;padding:0!important}.color-block[data-v-5e2a7fc5]{height:20px;margin-left:8px;flex:1;outline:1px dashed rgba(102,102,102,.12);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAEBJREFUOE9jfPbs2X8GIoCkpCQRqhgYGEcNxBlOo2GIM2iGQLL5//8/UTnl+fPnxOWUUQNxhtNoGOLOKYM+2QAAh2Nq10DwkukAAAAASUVORK5CYII=)}.content[data-v-5e2a7fc5]{width:100%;height:100%}.color-btn-icon[data-v-5e2a7fc5]{width:32px;font-size:13px;color:#bfbfbf}.checkerboard[data-v-46275348]{background-size:contain;position:absolute;top:0;right:0;bottom:0;left:0}.alpha[data-v-429f62d3]{position:absolute;top:0;right:0;bottom:0;left:0}.alpha-checkboard-wrap[data-v-429f62d3]{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0}.alpha-gradient[data-v-429f62d3]{position:absolute;top:0;right:0;bottom:0;left:0}.alpha-container[data-v-429f62d3]{cursor:pointer;position:relative;z-index:2;height:100%;margin:0 3px}.alpha-pointer[data-v-429f62d3]{z-index:2;position:absolute}.alpha-picker[data-v-429f62d3]{cursor:pointer;width:4px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}.hue[data-v-21ccc370]{background:linear-gradient(to right,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);position:absolute;top:0;right:0;bottom:0;left:0}.hue-container[data-v-21ccc370]{cursor:pointer;margin:0 2px;position:relative;height:100%}.hue-pointer[data-v-21ccc370]{z-index:2;position:absolute;top:0}.hue-picker[data-v-21ccc370]{cursor:pointer;margin-top:1px;width:4px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.saturation[data-v-4a728d90],.saturation-white[data-v-4a728d90],.saturation-black[data-v-4a728d90]{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer}.saturation-white[data-v-4a728d90]{background:linear-gradient(to right,#fff,#fff0)}.saturation-black[data-v-4a728d90]{background:linear-gradient(to top,#000,#0000)}.saturation-pointer[data-v-4a728d90]{cursor:pointer;position:absolute}.saturation-circle[data-v-4a728d90]{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.editable-input[data-v-573b4dde]{width:100%;position:relative;overflow:hidden;text-align:center;font-size:14px}.editable-input[data-v-573b4dde]:after{content:"#";position:absolute;left:0;top:50%;transform:translateY(-50%);color:#999}.input-content[data-v-573b4dde]{width:100%;padding:3px;border:0;border-bottom:1px solid #ddd;outline:none;text-align:center}.input-label[data-v-573b4dde]{text-transform:capitalize}.color-picker[data-v-9ae27223]{position:relative;width:240px;background:#fff;-webkit-user-select:none;user-select:none;margin-bottom:-10px}.picker-saturation-wrap[data-v-9ae27223]{width:100%;padding-bottom:50%;position:relative;overflow:hidden}.picker-controls[data-v-9ae27223]{display:flex}.picker-sliders[data-v-9ae27223]{padding:4px 0;flex:1}.picker-hue-wrap[data-v-9ae27223]{position:relative;height:10px}.picker-alpha-wrap[data-v-9ae27223]{position:relative;height:10px;margin-top:4px;overflow:hidden}.picker-color-wrap[data-v-9ae27223]{width:24px;height:24px;position:relative;margin-top:4px;margin-right:4px;outline:1px dashed rgba(102,102,102,.12)}.picker-color-wrap .checkerboard[data-v-9ae27223]{background-size:auto}.picker-current-color[data-v-9ae27223]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.picker-field[data-v-9ae27223]{display:flex;margin-bottom:8px}.picker-field .transparent[data-v-9ae27223]{width:24px;height:24px;margin-top:4px;margin-left:8px;position:relative;cursor:pointer}.picker-field .transparent[data-v-9ae27223]:after{content:"";width:26px;height:2px;position:absolute;top:11px;left:-1px;transform:rotate(-45deg);background-color:red}.picker-field .transparent .checkerboard[data-v-9ae27223]{background-size:auto}.picker-field .straw[data-v-9ae27223]{width:24px;height:24px;margin-top:4px;margin-left:8px;display:flex;justify-content:center;align-items:center;font-size:20px;background-color:#f5f5f5;outline:1px solid #f1f1f1;cursor:pointer}.picker-field .input[data-v-9ae27223]{flex:1}.picker-presets[data-v-9ae27223]{display:flex;flex-wrap:wrap;align-content:flex-start}.picker-presets-color[data-v-9ae27223]{width:7%;margin-bottom:calc(30% / 9);height:0;padding-bottom:7%;flex-shrink:0;position:relative;cursor:pointer}.picker-presets-color[data-v-9ae27223]:not(:nth-child(10n)){margin-right:calc(30% / 9)}.picker-presets-color.alpha[data-v-9ae27223]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAADBJREFUOE9jfPbs2X8GPEBSUhKfNAPjqAHDIgz+//+PNx08f/4cfzoYNYCBceiHAQC5flV5JzgrxQAAAABJRU5ErkJggg==)}.picker-presets-color-content[data-v-9ae27223]{position:absolute;top:0;right:0;bottom:0;left:0}.picker-gradient-presets[data-v-9ae27223]{display:flex;flex-wrap:wrap;align-content:flex-start}.picker-gradient-col[data-v-9ae27223]{width:7%;margin-bottom:calc(30% / 9);display:flex;flex-direction:column}.picker-gradient-col[data-v-9ae27223]:not(:nth-child(10n)){margin-right:calc(30% / 9)}.picker-gradient-color[data-v-9ae27223]{width:100%;height:16px;position:relative;cursor:pointer}.recent-colors-title[data-v-9ae27223]{font-size:12px;margin-bottom:4px}.switch[data-v-a0d44a99]{height:20px;display:inline-block;cursor:pointer}.switch:not(.disabled).active .switch-core[data-v-a0d44a99]{border-color:#d14424;background-color:#d14424}.switch:not(.disabled).active .switch-core[data-v-a0d44a99]:after{left:100%;margin-left:-17px}.switch.disabled[data-v-a0d44a99]{cursor:default}.switch.disabled .switch-core[data-v-a0d44a99]:after{background-color:#f5f5f5}.switch-core[data-v-a0d44a99]{margin:0;display:inline-block;position:relative;width:40px;height:20px;border:1px solid #d9d9d9;outline:none;border-radius:10px;box-sizing:border-box;background:#d9d9d9;transition:border-color .3s,background-color .3s;vertical-align:middle}.switch-core[data-v-a0d44a99]:after{content:"";position:absolute;top:1px;left:1px;border-radius:100%;transition:all .3s;width:16px;height:16px;background-color:#fff}.row[data-v-fd752d80]{width:100%;height:30px;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-fd752d80]{text-align:right}.row[data-v-814f50a5]{width:100%;height:30px;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-814f50a5]{text-align:right}.text-color-btn[data-v-98853be0]{width:100%;display:flex!important;flex-direction:column;justify-content:center;align-items:center;padding:0}.text-color-block[data-v-98853be0]{width:17px;height:4px;margin-top:1px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAACdJREFUGFdjfPbs2X8GBgYGSUlJEMXAiCHw//9/sIrnz59DVKALAADNxxVfaiODNQAAAABJRU5ErkJggg==)}.text-color-block .text-color-block-content[data-v-98853be0]{width:100%;height:100%}.button-group[data-v-6a640ef5]{display:flex;align-items:center}.button-group[data-v-6a640ef5] button.button{border-radius:0;border-left-width:1px;border-right-width:0;display:inline-block}.button-group[data-v-6a640ef5]:not(.passive) button.button:not(:last-child,.radio,.checkbox):hover{position:relative}.button-group[data-v-6a640ef5]:not(.passive) button.button:not(:last-child,.radio,.checkbox):hover:after{content:"";width:1px;height:calc(100% + 2px);background-color:#d14424;position:absolute;top:-1px;right:-1px}.button-group[data-v-6a640ef5]:not(.passive) button.button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left-width:1px}.button-group[data-v-6a640ef5]:not(.passive) button.button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right-width:1px}.button-group.passive[data-v-6a640ef5] button.button:not(.last,.radio,.checkbox):hover{position:relative}.button-group.passive[data-v-6a640ef5] button.button:not(.last,.radio,.checkbox):hover:after{content:"";width:1px;height:calc(100% + 2px);background-color:#d14424;position:absolute;top:-1px;right:-1px}.button-group.passive[data-v-6a640ef5] button.button.first{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left-width:1px}.button-group.passive[data-v-6a640ef5] button.button.last{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right-width:1px}.select-group[data-v-ed58c719]{display:flex;align-items:center}.select-group[data-v-ed58c719] .select-wrap .select{border-radius:0;border-left-width:0;border-right-width:0}.select-group[data-v-ed58c719] .select-wrap+.select-wrap .select{border-left-width:1px}.select-group[data-v-ed58c719] .select-wrap:hover+.select-wrap .select{border-left-color:#d14424}.select-group[data-v-ed58c719] .select-wrap:first-child .select{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left-width:1px}.select-group[data-v-ed58c719] .select-wrap:last-child .select{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right-width:1px}.text-style-panel[data-v-becd4c4e]{-webkit-user-select:none;user-select:none}.row[data-v-becd4c4e]{width:100%;display:flex;align-items:center;margin-bottom:10px}.preset-style[data-v-becd4c4e]{display:flex;flex-wrap:wrap;margin-bottom:10px}.preset-style-item[data-v-becd4c4e]{width:50%;height:50px;border:solid 1px #d6d6d6;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;transition:all .2s}.preset-style-item[data-v-becd4c4e]:hover{border-color:#d14424;color:#d14424;z-index:1}.preset-style-item[data-v-becd4c4e]:nth-child(2n){margin-left:-1px}.preset-style-item[data-v-becd4c4e]:nth-child(n+3){margin-top:-1px}.font-size-btn[data-v-becd4c4e]{padding:0}.link-popover[data-v-becd4c4e]{width:240px}.link-popover .btns[data-v-becd4c4e]{margin-top:10px;text-align:right}.list-wrap[data-v-becd4c4e]{width:176px;color:#666;padding:8px;margin:-12px;display:flex;flex-wrap:wrap;align-content:flex-start}.list[data-v-becd4c4e]{background-color:#f9f9f9;padding:4px 4px 4px 20px;cursor:pointer}.list[data-v-becd4c4e]:not(:nth-child(3n)){margin-right:8px}.list[data-v-becd4c4e]:nth-child(4),.list[data-v-becd4c4e]:nth-child(5),.list[data-v-becd4c4e]:nth-child(6){margin-top:8px}.list[data-v-becd4c4e]:hover{color:#d14424}.list:hover span[data-v-becd4c4e]{background-color:#d14424}.list-item[data-v-becd4c4e]{width:24px;height:12px;position:relative;font-size:12px;top:-5px}.list-item span[data-v-becd4c4e]{width:100%;height:2px;display:inline-block;position:absolute;top:10px;background-color:#666}.popover-btn[data-v-becd4c4e]{padding:0 3px}.row[data-v-100c8a7c],.row[data-v-44786c09]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-44786c09]{text-align:right}.filter[data-v-44786c09]{font-size:12px}.filter-item[data-v-44786c09]{padding:6px 0;display:flex;justify-content:center;align-items:center}.filter-item .name[data-v-44786c09]{width:60px}.filter-item .filter-slider[data-v-44786c09]{flex:1;margin:0 6px}.row[data-v-d428a4e5]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-d428a4e5]{text-align:right}.row[data-v-0c668b03]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-0c668b03]{text-align:right}.origin-image[data-v-0c668b03]{height:100px;background-size:contain;background-repeat:no-repeat;background-position:center;background-color:#f9f9f9;margin-bottom:10px}.full-width-btn[data-v-0c668b03]{width:100%;margin-bottom:10px}.btn-icon[data-v-0c668b03]{margin-right:3px}.clip[data-v-0c668b03]{width:260px;font-size:12px}.clip .title[data-v-0c668b03]{margin-bottom:5px}.shape-clip[data-v-0c668b03]{margin-bottom:10px;display:flex;flex-wrap:wrap;align-content:flex-start}.shape-clip-item[data-v-0c668b03]{display:flex;justify-content:center;align-items:center;cursor:pointer;width:16%;margin-bottom:5%}.shape-clip-item[data-v-0c668b03]:not(:nth-child(5n)){margin-right:5%}.shape-clip-item:hover .shape[data-v-0c668b03]{background-color:#ccc}.shape-clip-item .shape[data-v-0c668b03]{width:40px;height:40px;background-color:#e1e1e1}.popover-btn[data-v-0c668b03]{padding:0 3px}.shape-style-panel[data-v-830d0c7f]{-webkit-user-select:none;user-select:none}.row[data-v-830d0c7f]{width:100%;display:flex;align-items:center;margin-bottom:10px}.font-size-btn[data-v-830d0c7f]{padding:0}.title[data-v-830d0c7f]{display:flex;justify-content:space-between;margin-bottom:10px}.shape-pool[data-v-830d0c7f]{width:235px;height:150px;overflow:auto;padding:5px 10px 5px 5px;border:1px solid #eee;margin-bottom:20px}.shape-list[data-v-830d0c7f]{display:flex;flex-wrap:wrap;align-content:flex-start}.shape-item[data-v-830d0c7f]{width:14%;margin-bottom:3.2%;height:0;padding-bottom:14%;flex-shrink:0}.shape-item[data-v-830d0c7f]:not(:nth-child(6n)){margin-right:3.2%}.row[data-v-d5f2e330]{width:100%;display:flex;align-items:center;margin-bottom:10px}.line-btn[data-v-d5f2e330]{display:flex;align-items:center;justify-content:space-between;padding:0!important}.line-btn .line-wrapper[data-v-d5f2e330]{margin-left:8px}.line-wrapper[data-v-d5f2e330]{overflow:visible}.line-btn-icon[data-v-d5f2e330]{width:30px;font-size:12px;margin-top:2px;color:#bfbfbf}.preset-point-style[data-v-d5f2e330]{padding:0 10px}.preset-point-style+.preset-point-style[data-v-d5f2e330]{margin-top:10px}.chart-data-editor[data-v-ac578a4f]{width:600px;position:relative}.editor-content[data-v-ac578a4f]{width:100%;height:360px;position:relative;border-right:1px solid #ccc;border-bottom:1px solid #ccc;overflow:auto;overflow:overlay}.range-box[data-v-ac578a4f]{position:absolute;top:0;left:0;z-index:100;-webkit-user-select:none;user-select:none}.temp-range[data-v-ac578a4f]{width:0;height:0;position:absolute;top:0;left:0;background-color:#8888884d}.range-line[data-v-ac578a4f]{width:0;height:0;position:absolute;left:0;top:0;border:0 solid #d14424}.range-line.t[data-v-ac578a4f]{border-top-width:1px}.range-line.b[data-v-ac578a4f]{border-bottom-width:1px}.range-line.l[data-v-ac578a4f]{border-left-width:1px}.range-line.r[data-v-ac578a4f]{border-right-width:1px}.resizable[data-v-ac578a4f]{position:absolute;width:12px;height:12px;left:0;top:0;margin:-9px 0 0 -9px;cursor:nwse-resize}.resizable[data-v-ac578a4f]:after{content:"";position:absolute;width:4px;height:12px;right:0;top:0;background-color:#d14424}.resizable[data-v-ac578a4f]:before{content:"";position:absolute;width:12px;height:4px;right:0;bottom:0;background-color:#d14424}table[data-v-ac578a4f]{width:100%;height:100%;-webkit-user-select:none;user-select:none;table-layout:fixed}table td[data-v-ac578a4f]{text-align:center;border:1px solid #ccc;vertical-align:middle;width:100px;height:32px}table td.head[data-v-ac578a4f]{background-color:#d144241a}table .item[data-v-ac578a4f]{width:100%;height:100%;border:0;outline:0;font-size:13px;text-align:center;background-color:transparent}table .item.selected[data-v-ac578a4f]{background-color:#d1442405}.btns[data-v-ac578a4f]{margin-top:10px;display:flex;justify-content:space-between}.checkbox[data-v-3d20c849]{height:20px;display:flex;align-items:center;cursor:pointer}.checkbox:not(.disabled).checked .checkbox-input[data-v-3d20c849]{background-color:#d14424;border-color:#d14424}.checkbox:not(.disabled).checked .checkbox-input[data-v-3d20c849]:after{transform:rotate(45deg) scaleY(1)}.checkbox:not(.disabled).checked .checkbox-label[data-v-3d20c849]{color:#d14424}.checkbox.disabled[data-v-3d20c849]{color:#b7b7b7;cursor:default}.checkbox.disabled .checkbox-input[data-v-3d20c849]{background-color:#f5f5f5}.checkbox-input[data-v-3d20c849]{display:inline-block;position:relative;border:1px solid #d9d9d9;border-radius:2px;width:16px;height:16px;background-color:#fff;vertical-align:middle;transition:border-color .15s cubic-bezier(.71,-.46,.29,1.46),background-color .15s cubic-bezier(.71,-.46,.29,1.46);z-index:1}.checkbox-input[data-v-3d20c849]:after{content:"";border:2px solid #fff;border-left:0;border-top:0;height:9px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:6px;transition:transform .15s ease-in .05s;transform-origin:center}.checkbox-original[data-v-3d20c849]{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.checkbox-label[data-v-3d20c849]{margin-left:5px;line-height:20px;font-size:13px;-webkit-user-select:none;user-select:none}.chart-style-panel[data-v-63098034]{-webkit-user-select:none;user-select:none}.row[data-v-63098034]{width:100%;display:flex;align-items:center;margin-bottom:10px}.full-width-btn[data-v-63098034]{width:100%}.btn-icon[data-v-63098034]{margin-right:3px}.color-btn-wrap[data-v-63098034]{position:relative}.delete-color-btn[data-v-63098034]{position:absolute;width:30px;right:2px;top:2px;bottom:2px;display:flex;justify-content:center;align-items:center;background-color:#fff;cursor:pointer}.preset-themes[data-v-63098034]{width:250px;margin-bottom:-10px;display:flex;flex-wrap:wrap;align-content:flex-start}.preset-theme[data-v-63098034]{display:flex;cursor:pointer;width:48%;margin-bottom:4%}.preset-theme[data-v-63098034]:not(:nth-child(2n)){margin-right:4%}.preset-theme-color[data-v-63098034]{width:20px;height:20px}.preset-theme-color.select[data-v-63098034]{transform:scale(1.2);transition:transform .1s}.row[data-v-adc75d19]{width:100%;display:flex;align-items:center;margin-bottom:10px}.theme-switch[data-v-adc75d19]{margin-bottom:18px}.switch-wrapper[data-v-adc75d19]{text-align:right}.set-count[data-v-adc75d19]{display:flex;justify-content:center;align-items:center}.set-count .btn[data-v-adc75d19]{padding:0 8px}.set-count .count-text[data-v-adc75d19]{flex:1;text-align:center;margin:0 8px}.row[data-v-6b6e110e],.row[data-v-b289959e]{width:100%;display:flex;align-items:center;margin-bottom:10px}.title[data-v-b289959e],.background-image-wrapper[data-v-b289959e]{margin-bottom:10px}.background-image[data-v-b289959e]{height:0;padding-bottom:56.25%;border:1px dashed #eee;border-radius:2px;position:relative;transition:all .2s}.background-image[data-v-b289959e]:hover{border-color:#d14424;color:#d14424}.background-image .content[data-v-b289959e]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer}.switch-row[data-v-b289959e]{height:32px}.switch-wrapper[data-v-b289959e]{text-align:right}.row[data-v-44ce0855]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-row[data-v-44ce0855]{height:32px}.switch-wrapper[data-v-44ce0855]{text-align:right}.row[data-v-a267c062]{width:100%;display:flex;align-items:center;margin-bottom:10px}.font-size-btn[data-v-a267c062]{padding:0}.row[data-v-6bb316f9]{width:100%;display:flex;align-items:center;margin-bottom:10px}.title[data-v-6bb316f9]{margin-bottom:10px}.label[data-v-6bb316f9]{text-align:center}.btn-icon[data-v-6bb316f9]{margin-right:3px}.icon-btn[data-v-6bb316f9]{cursor:pointer}.icon-btn.active[data-v-6bb316f9]{color:#d14424}.text-btn[data-v-6bb316f9]{height:30px;line-height:30px;text-align:center;cursor:pointer}.text-btn[data-v-6bb316f9]:hover{background-color:#efefef;border-radius:2px}.element-animation-panel[data-v-bf835335]{height:100%;display:flex;flex-direction:column}.element-animation[data-v-bf835335]{height:32px;display:flex;align-items:center}.element-animation-btn[data-v-bf835335]{width:100%}.config-item[data-v-bf835335]{display:flex;align-items:center}.config-item+.config-item[data-v-bf835335]{margin-top:5px}.tip[data-v-bf835335]{height:32px;display:flex;justify-content:center;align-items:center;font-style:italic}.animation-pool[data-v-bf835335]{width:400px;height:500px;overflow-y:auto;overflow-x:hidden;font-size:12px;margin-right:-10px;padding-right:5px;position:relative}.animation-pool .mask[data-v-bf835335]{position:absolute;top:0;right:0;bottom:0;left:0}.animation-pool.in .type-title[data-v-bf835335]{border-left-color:#68a490;background-color:#68a49026}.animation-pool.out .type-title[data-v-bf835335]{border-left-color:#d86344;background-color:#d8634426}.animation-pool.attention .type-title[data-v-bf835335]{border-left-color:#e8b76a;background-color:#e8b76a26}.pool-type[data-v-bf835335]:not(:last-child){margin-bottom:5px}.type-title[data-v-bf835335]{width:100%;font-size:13px;margin-bottom:10px;border-left:4px solid #aaa;background-color:#eee;padding:4px 0 4px 10px}.pool-item-wrapper[data-v-bf835335]{display:flex;flex-wrap:wrap;align-content:flex-start}.pool-item[data-v-bf835335]{width:24%;margin-bottom:calc(4% / 3);margin-bottom:5px;height:40px;line-height:40px;text-align:center;cursor:pointer}.pool-item[data-v-bf835335]:not(:nth-child(4n)){margin-right:calc(4% / 3)}.animation-box[data-v-bf835335]{background-color:#f9f9f9;border-radius:2px}.animation-sequence[data-v-bf835335]{flex:1;padding-right:12px;margin-right:-12px;overflow:auto;overflow:overlay}.sequence-item[data-v-bf835335]{border:1px solid #eee;padding:8px;border-radius:2px;margin-bottom:8px;transition:all .5s}.sequence-item.in.active[data-v-bf835335]{border-color:#68a490}.sequence-item.out.active[data-v-bf835335]{border-color:#d86344}.sequence-item.attention.active[data-v-bf835335]{border-color:#e8b76a}.sequence-item.active[data-v-bf835335]{height:auto}.sequence-item .sequence-content[data-v-bf835335]{display:flex;align-items:center;cursor:grab}.sequence-item .sequence-content[data-v-bf835335]:active{cursor:grabbing}.sequence-item .sequence-content .index[data-v-bf835335]{flex:1}.sequence-item .sequence-content .text[data-v-bf835335]{flex:6}.sequence-item .sequence-content .handler[data-v-bf835335]{flex:2;font-size:15px;text-align:right}.sequence-item .sequence-content .handler-btn[data-v-bf835335]{margin-left:8px;cursor:pointer}.slide-design-panel[data-v-5d6a9c2f]{-webkit-user-select:none;user-select:none}.row[data-v-5d6a9c2f]{width:100%;display:flex;align-items:center;margin-bottom:10px}.title[data-v-5d6a9c2f]{display:flex;justify-content:space-between;margin-bottom:10px}.title .more[data-v-5d6a9c2f]{cursor:pointer}.title .more .text[data-v-5d6a9c2f]{font-size:12px;margin-right:3px}.background-image-wrapper[data-v-5d6a9c2f]{margin-bottom:10px}.background-image[data-v-5d6a9c2f]{height:0;padding-bottom:56.25%;border:1px dashed #eee;border-radius:2px;position:relative;transition:all .2s}.background-image[data-v-5d6a9c2f]:hover{border-color:#d14424;color:#d14424}.background-image .content[data-v-5d6a9c2f]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer}.theme-list[data-v-5d6a9c2f]{display:flex;flex-wrap:wrap;align-content:flex-start}.theme-item[data-v-5d6a9c2f]{width:48%;margin-bottom:4%;padding-bottom:30%;border-radius:2px;position:relative;cursor:pointer}.theme-item[data-v-5d6a9c2f]:not(:nth-child(2n)){margin-right:4%}.theme-item .theme-item-content[data-v-5d6a9c2f]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center;padding:8px;border:1px solid #eee;border-radius:2px}.theme-item .text[data-v-5d6a9c2f]{font-size:16px}.theme-item .colors[data-v-5d6a9c2f]{display:flex}.theme-item .color-block[data-v-5d6a9c2f]{margin-top:8px;width:12px;height:12px;margin-right:2px}.theme-item:hover .btns[data-v-5d6a9c2f]{opacity:1}.theme-item .btns[data-v-5d6a9c2f]{position:absolute;top:0;right:0;bottom:0;left:0;flex-direction:column;justify-content:center;align-items:center;display:flex;background-color:#00000040;opacity:0;transition:opacity .2s}.theme-item .btn[data-v-5d6a9c2f]{width:72px;padding:5px 0;text-align:center;background-color:#d14424;color:#fff;font-size:12px;border-radius:2px}.theme-item .btn[data-v-5d6a9c2f]:hover{background-color:#de6949}.theme-item .btn+.btn[data-v-5d6a9c2f]{margin-top:5px}.animation-pool[data-v-ae84c3f4]{display:flex;flex-wrap:wrap;margin-bottom:10px}.animation-item[data-v-ae84c3f4]{width:50%;height:100px;border:solid 1px #d6d6d6;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:20px 0 15px;position:relative;cursor:pointer}.animation-item.active[data-v-ae84c3f4]{border-color:#d14424;z-index:1}.animation-item[data-v-ae84c3f4]:nth-child(2n){margin-left:-1px}.animation-item[data-v-ae84c3f4]:nth-child(n+3){margin-top:-1px}.animation-block[data-v-ae84c3f4]{width:64px;height:36px;background:#666;position:relative;overflow:hidden}.animation-block.fade[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:fade-ae84c3f4 .3s linear}.animation-block.slideX[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideX-ae84c3f4 .3s linear}.animation-block.slideY[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideY-ae84c3f4 .3s linear}.animation-block.slideX3D[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideX3D-ae84c3f4 .3s linear}.animation-block.slideY3D[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideY3D-ae84c3f4 .3s linear}.animation-block.rotate[data-v-ae84c3f4]:hover:after{transform-origin:0 0;content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:rotate-ae84c3f4 .3s linear}.animation-block.scaleY[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scaleY-ae84c3f4 .3s linear}.animation-block.scaleX[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scaleX-ae84c3f4 .3s linear}.animation-block.scale[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scale-ae84c3f4 .3s linear}.animation-block.scaleReverse[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scaleReverse-ae84c3f4 .3s linear}.animation-text[data-v-ae84c3f4]{font-size:12px;color:#333;text-align:center}@keyframes fade-ae84c3f4{0%{opacity:0}to{opacity:1}}@keyframes slideX-ae84c3f4{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideY-ae84c3f4{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideX3D-ae84c3f4{0%{transform:translate(100%) scale(.5)}to{transform:translate(0)}}@keyframes slideY3D-ae84c3f4{0%{transform:translateY(100%) scale(.5)}to{transform:translateY(0)}}@keyframes rotate-ae84c3f4{0%{transform:rotate(-90deg)}to{transform:rotate(0)}}@keyframes scaleY-ae84c3f4{0%{transform:scaleY(.1)}to{transform:scaleY(1)}}@keyframes scaleX-ae84c3f4{0%{transform:scaleX(.1)}to{transform:scaleY(1)}}@keyframes scale-ae84c3f4{0%{transform:scale(.25)}to{transform:scale(1)}}@keyframes scaleReverse-ae84c3f4{0%{transform:scale(2)}to{transform:scale(1)}}.row[data-v-d41009b1]{width:100%;display:flex;align-items:center;margin-bottom:10px}.symbol-panel[data-v-0f662bb0]{height:100%;display:flex;flex-direction:column}.symbol-panel .pool[data-v-0f662bb0]{padding:5px 12px;margin:0 -12px;flex:1;font-size:18px;overflow:auto;overflow:overlay;display:flex;flex-wrap:wrap;align-content:flex-start}.symbol-panel .symbol-item[data-v-0f662bb0]{width:18%;margin-bottom:2.5%;height:0;padding-bottom:18%;position:relative;cursor:pointer;border:1px solid #eee}.symbol-panel .symbol-item[data-v-0f662bb0]:not(:nth-child(5n)){margin-right:2.5%}.symbol-panel .symbol-item[data-v-0f662bb0]:hover{color:#d14424}.symbol-panel .symbol-item .symbol[data-v-0f662bb0]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-color:#fff}.toolbar[data-v-83fff59a]{border-left:solid 1px #eee;background-color:#fff;display:flex;flex-direction:column}.content[data-v-83fff59a]{padding:12px;font-size:13px;overflow:auto;overflow:overlay}.editor[data-v-4042a280]{height:100%;overflow:auto}.prosemirror-editor[data-v-4042a280]{height:100%;cursor:text}.prosemirror-editor[data-v-4042a280] .ProseMirror{height:100%;font-size:12px;overflow:auto;padding:8px;line-height:1.5}.prosemirror-editor[data-v-4042a280] .ProseMirror>p[data-placeholder]:before{content:attr(data-placeholder);pointer-events:none;position:absolute;font-size:12px;color:#66666680}.menu[data-v-4042a280]{display:flex;background-color:#fff;padding:6px 4px;border-radius:2px;box-shadow:0 0 20px #00000026}.menu button[data-v-4042a280]{outline:0;border:0;background-color:#fff;padding:3px;border-radius:2px;font-size:16px;margin:0 3px;display:flex;align-items:center;justify-content:center;cursor:pointer}.menu button[data-v-4042a280]:hover,.menu button.active[data-v-4042a280]{background-color:#d14424;color:#fff}.remark[data-v-1c52a472]{position:relative;border-top:1px solid #eee}.resize-handler[data-v-1c52a472]{height:7px;position:absolute;top:-3px;left:0;right:0;cursor:n-resize;z-index:2}.export-img-dialog[data-v-32b43d99]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.thumbnails-view[data-v-32b43d99]{position:absolute;top:0;right:0;bottom:0;left:0}.thumbnails-view[data-v-32b43d99]:after{content:"";background-color:#fff;position:absolute;top:0;right:0;bottom:0;left:0}.configs[data-v-32b43d99]{width:350px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center;z-index:1}.configs .row[data-v-32b43d99]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-32b43d99]{width:100px;position:relative}.configs .title[data-v-32b43d99]:after{content:attr(data-range);position:absolute;top:20px;left:0}.configs .config-item[data-v-32b43d99]{flex:1}.btns[data-v-32b43d99]{width:300px;height:100px;display:flex;justify-content:center;align-items:center;z-index:1}.btns .export[data-v-32b43d99]{flex:1}.btns .close[data-v-32b43d99]{width:100px;margin-left:10px}.export-json-dialog[data-v-c2d35f76]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.preview[data-v-c2d35f76]{width:100%;height:calc(100% - 100px);background-color:#f9f9f9;color:#0451a5;overflow:auto}pre[data-v-c2d35f76]{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.btns[data-v-c2d35f76]{width:300px;height:100px;display:flex;justify-content:center;align-items:center}.btns .export[data-v-c2d35f76]{flex:1}.btns .close[data-v-c2d35f76]{width:100px;margin-left:10px}[data-v-c2d35f76]::-webkit-scrollbar{width:10px;height:10px;background-color:#f9f9f9}[data-v-c2d35f76]::-webkit-scrollbar-thumb{background-color:#c1c1c1}.export-pdf-dialog[data-v-d3a30d69]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.thumbnails-view[data-v-d3a30d69]{position:absolute;top:0;right:0;bottom:0;left:0}.thumbnails-view[data-v-d3a30d69]:after{content:"";background-color:#fff;position:absolute;top:0;right:0;bottom:0;left:0}.thumbnail.break-page[data-v-d3a30d69]{break-after:page}.configs[data-v-d3a30d69]{width:300px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center;z-index:1}.configs .row[data-v-d3a30d69]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-d3a30d69]{width:100px}.configs .config-item[data-v-d3a30d69]{flex:1}.configs .tip[data-v-d3a30d69]{font-size:12px;color:#aaa;line-height:1.8;margin-top:25px}.btns[data-v-d3a30d69]{width:300px;height:100px;display:flex;justify-content:center;align-items:center;z-index:1}.btns .export[data-v-d3a30d69]{flex:1}.btns .close[data-v-d3a30d69]{width:100px;margin-left:10px}.export-pptx-dialog[data-v-254b6b07]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.configs[data-v-254b6b07]{width:350px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center}.configs .row[data-v-254b6b07]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-254b6b07]{width:100px;position:relative}.configs .title[data-v-254b6b07]:after{content:attr(data-range);position:absolute;top:20px;left:0}.configs .config-item[data-v-254b6b07]{flex:1}.configs .tip[data-v-254b6b07]{font-size:12px;color:#aaa;line-height:1.8;margin-top:10px}.btns[data-v-254b6b07]{width:300px;height:100px;display:flex;justify-content:center;align-items:center}.btns .export[data-v-254b6b07]{flex:1}.btns .close[data-v-254b6b07]{width:100px;margin-left:10px}.export-pptist-dialog[data-v-bc56c9db]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.configs[data-v-bc56c9db]{width:350px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center}.configs .row[data-v-bc56c9db]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-bc56c9db]{width:100px;position:relative}.configs .title[data-v-bc56c9db]:after{content:attr(data-range);position:absolute;top:20px;left:0}.configs .config-item[data-v-bc56c9db]{flex:1}.configs .tip[data-v-bc56c9db]{font-size:12px;color:#aaa;line-height:1.8;margin-top:25px}.btns[data-v-bc56c9db]{width:300px;height:100px;display:flex;justify-content:center;align-items:center}.btns .export[data-v-bc56c9db]{flex:1}.btns .close[data-v-bc56c9db]{width:100px;margin-left:10px}.export-dialog[data-v-b54f4542]{margin:-20px}.content[data-v-b54f4542]{height:460px;padding:12px;font-size:13px;overflow:auto;overflow:overlay}.moveable-panel[data-v-94a0a962]{position:fixed;background-color:#fff;box-shadow:0 2px 12px #38383826;border:1px solid #eee;border-radius:2px;display:flex;flex-direction:column;z-index:999}.resizer[data-v-94a0a962]{width:10px;height:10px;position:absolute;bottom:0;right:0;cursor:se-resize}.resizer[data-v-94a0a962]:after{content:"";position:absolute;bottom:-4px;right:-4px;transform:rotate(45deg);transform-origin:center;width:0;height:0;border:6px solid transparent;border-left-color:#e1e1e1}.header[data-v-94a0a962]{height:40px;display:flex;align-items:center;border-bottom:1px solid #f0f0f0;cursor:move}.title[data-v-94a0a962]{flex:1;font-size:13px;padding-left:10px}.close-btn[data-v-94a0a962]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;color:#666;font-size:12px;cursor:pointer}.content[data-v-94a0a962]{flex:1;padding:10px;overflow:auto}.select-panel[data-v-8d6111bd]{height:100%;font-size:12px;-webkit-user-select:none;user-select:none}.handler[data-v-8d6111bd]{height:24px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.handler .icon-btns[data-v-8d6111bd]{height:100%;flex:1;display:flex;align-items:center;justify-content:flex-end}.handler .icon-btn[data-v-8d6111bd]{width:16px;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer}.handler .icon-btn[data-v-8d6111bd]:hover{color:#d14424}.element-list[data-v-8d6111bd]{height:calc(100% - 32px);padding-right:10px;margin-right:-10px;overflow:auto}.item[data-v-8d6111bd]{padding:5px;font-size:12px;border-radius:2px;display:flex;align-items:center;cursor:pointer}.item.active[data-v-8d6111bd]{background-color:#d144241a}.item.group-active[data-v-8d6111bd]{background-color:#d1442433}.item[data-v-8d6111bd]:hover{background-color:#d1442440}.item .name[data-v-8d6111bd]{height:18px;line-height:18px;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.item .icons[data-v-8d6111bd]{width:20px;display:flex;align-items:center;justify-content:center;margin-left:5px}.group-els[data-v-8d6111bd]{padding:5px 0}.group-els .group-title[data-v-8d6111bd]{margin-bottom:5px;padding:0 5px}.group-els .item[data-v-8d6111bd]{margin-left:15px}.input[data-v-8d6111bd]{width:100%;height:16px;border:0;outline:0;padding-left:0;padding-right:0;flex:1;font-size:12px;background-color:transparent}.search-panel[data-v-2536ae51]{font-size:13px}.content[data-v-2536ae51]{display:flex;flex-direction:column;justify-content:space-between}.input[data-v-2536ae51]{margin-top:10px}.count[data-v-2536ae51]{font-size:12px;margin-right:8px;-webkit-user-select:none;user-select:none}.ignore-case[data-v-2536ae51]{font-size:12px;-webkit-user-select:none;user-select:none;cursor:pointer}.ignore-case.active[data-v-2536ae51]{color:#d14424}.next-btn[data-v-2536ae51]{width:22px;height:100%;display:flex;justify-content:center;align-items:center;margin:0!important;-webkit-user-select:none;user-select:none;cursor:pointer}.next-btn[data-v-2536ae51]:hover{color:#d14424}.footer[data-v-2536ae51]{display:flex;justify-content:flex-end;align-items:center;margin-top:10px}.close-btn[data-v-2536ae51]{width:32px;height:32px;position:absolute;top:8px;right:3px;display:flex;justify-content:center;align-items:center;color:#666;font-size:12px;cursor:pointer}.notes-panel[data-v-3d769863]{height:100%;font-size:12px;-webkit-user-select:none;user-select:none}.container[data-v-3d769863]{height:100%;display:flex;flex-direction:column}.notes[data-v-3d769863]{flex:1;overflow:auto;margin:0 -10px;padding:2px 12px}.empty[data-v-3d769863]{width:100%;height:100%;color:#999;font-style:italic;display:flex;justify-content:center;align-items:center}.note[data-v-3d769863]{border:1px solid #eee;border-radius:4px;padding:10px}.note+.note[data-v-3d769863]{margin-top:10px}.note.active[data-v-3d769863]{background-color:#f7f7f7}.note .header[data-v-3d769863]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.note .header:hover .btns[data-v-3d769863]{opacity:1}.note .user[data-v-3d769863]{display:flex;align-items:center}.note .user .avatar[data-v-3d769863]{width:30px;height:30px;border-radius:50%;background-color:#42ba97;color:#fff;font-size:18px;display:flex;justify-content:center;align-items:center;margin-right:10px}.note .user .username[data-v-3d769863]{font-size:14px}.note .user .time[data-v-3d769863]{font-size:12px;color:#aaa}.note .btns[data-v-3d769863]{display:flex;align-items:center;opacity:0}.note .btns .btn[data-v-3d769863]{margin-left:5px;cursor:pointer}.note .btns .btn[data-v-3d769863]:hover{text-decoration:underline;color:#d14424}.note .replies[data-v-3d769863]{margin-left:20px;margin-top:15px}.note .replies .reply-item[data-v-3d769863]{margin-top:10px}.note .replies .reply-item .content[data-v-3d769863]{margin-top:5px}.note-reply[data-v-3d769863]{margin-top:15px}.reply-btns[data-v-3d769863]{margin-top:5px;text-align:right}.reply-btns .btn[data-v-3d769863]{margin-left:8px}.send[data-v-3d769863]{height:120px;flex-shrink:0;text-align:right;display:flex;flex-direction:column;justify-content:flex-end}.send .footer[data-v-3d769863]{margin-top:10px;display:flex}.send .footer .btn+.btn[data-v-3d769863]{margin-left:8px;flex-shrink:0}.pptist-editor[data-v-39fd665d]{height:100%}.layout-header[data-v-39fd665d]{height:40px}.layout-content[data-v-39fd665d]{height:calc(100% - 40px);display:flex}.layout-content-left[data-v-39fd665d]{width:160px;height:100%;flex-shrink:0}.layout-content-center[data-v-39fd665d]{width:calc(100% - 420px)}.layout-content-center .center-top[data-v-39fd665d]{height:40px}.layout-content-right[data-v-39fd665d]{width:260px;height:100%}.screen-element-video[data-v-d9f232b0]{position:absolute}.rotate-wrapper[data-v-d9f232b0],.element-content[data-v-d9f232b0]{width:100%;height:100%}.screen-element-audio[data-v-94802f8e]{position:absolute}.rotate-wrapper[data-v-94802f8e]{width:100%;height:100%}.element-content[data-v-94802f8e]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.element-content:hover .audio-player[data-v-94802f8e]{display:block}.audio-icon[data-v-94802f8e]{cursor:pointer}.audio-player[data-v-94802f8e]{position:absolute;display:none}.link[data-v-da31ab53]{cursor:pointer}.screen-slide[data-v-7ee8460e]{position:absolute;top:0;left:0;transform-origin:0 0;overflow:hidden}.background[data-v-7ee8460e]{width:100%;height:100%;background-position:center;position:absolute}.screen-slide-list[data-v-21b28464]{background:#1d1d1d;position:relative;width:100%;height:100%}.slide-item[data-v-21b28464]{position:absolute;top:0;left:0;width:100%;height:100%}.slide-item.current[data-v-21b28464]{z-index:2}.slide-item.hide[data-v-21b28464]{opacity:0}.slide-item.turning-mode-no.before[data-v-21b28464]{transform:translateY(-100%)}.slide-item.turning-mode-no.after[data-v-21b28464]{transform:translateY(100%)}.slide-item.turning-mode-fade[data-v-21b28464]{transition:opacity .75s}.slide-item.turning-mode-fade.before[data-v-21b28464],.slide-item.turning-mode-fade.after[data-v-21b28464]{pointer-events:none;opacity:0}.slide-item.turning-mode-slideX[data-v-21b28464]{transition:transform .35s}.slide-item.turning-mode-slideX.before[data-v-21b28464]{transform:translate(-100%)}.slide-item.turning-mode-slideX.after[data-v-21b28464]{transform:translate(100%)}.slide-item.turning-mode-slideY[data-v-21b28464]{transition:transform .35s}.slide-item.turning-mode-slideY.before[data-v-21b28464]{transform:translateY(-100%)}.slide-item.turning-mode-slideY.after[data-v-21b28464]{transform:translateY(100%)}.slide-item.turning-mode-slideX3D[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-slideX3D.before[data-v-21b28464]{transform:translate(-100%) scale(.5)}.slide-item.turning-mode-slideX3D.after[data-v-21b28464]{transform:translate(100%) scale(.5)}.slide-item.turning-mode-slideY3D[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-slideY3D.before[data-v-21b28464]{transform:translateY(-100%) scale(.5)}.slide-item.turning-mode-slideY3D.after[data-v-21b28464]{transform:translateY(100%) scale(.5)}.slide-item.turning-mode-rotate[data-v-21b28464]{transition:transform .5s;transform-origin:0 0}.slide-item.turning-mode-rotate.before[data-v-21b28464]{transform:rotate(90deg)}.slide-item.turning-mode-rotate.after[data-v-21b28464]{transform:rotate(-90deg)}.slide-item.turning-mode-scaleY[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scaleY.before[data-v-21b28464],.slide-item.turning-mode-scaleY.after[data-v-21b28464]{transform:scaleY(.1)}.slide-item.turning-mode-scaleX[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scaleX.before[data-v-21b28464],.slide-item.turning-mode-scaleX.after[data-v-21b28464]{transform:scaleX(.1)}.slide-item.turning-mode-scale[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scale.before[data-v-21b28464],.slide-item.turning-mode-scale.after[data-v-21b28464]{transform:scale(.25)}.slide-item.turning-mode-scaleReverse[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scaleReverse.before[data-v-21b28464],.slide-item.turning-mode-scaleReverse.after[data-v-21b28464]{transform:scale(2)}.slide-content[data-v-21b28464]{background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.slide-thumbnails[data-v-09d790f0]{width:100%;height:100%;position:fixed;top:0;left:0;background-color:#1a1a1a;z-index:99}.return-button[data-v-09d790f0]{height:60px;padding:20px 30px 0}.return-button .icon[data-v-09d790f0]{color:#fff;font-size:36px;cursor:pointer}.return-button .icon[data-v-09d790f0]:hover{color:#d14424}.slide-thumbnails-content[data-v-09d790f0]{height:calc(100% - 100px);padding:20px 30px 30px;display:flex;flex-wrap:wrap;align-content:flex-start;overflow:auto;overflow:overlay}.slide-thumbnails-content .thumbnail[data-v-09d790f0]{width:150px;outline:2px solid #aaa;margin-right:12px;margin-bottom:12px}.slide-thumbnails-content .thumbnail[data-v-09d790f0]:hover{outline-color:#d14424}.slide-thumbnails-content .thumbnail.active[data-v-09d790f0]{outline-width:3px;outline-color:#d14424}.writing-board[data-v-55ae5f6c]{z-index:8;cursor:none;position:absolute;top:0;right:0;bottom:0;left:0}.blackboard[data-v-55ae5f6c]{width:100%;height:100%;background-color:#0f392b}.canvas[data-v-55ae5f6c]{position:absolute;top:0;left:0}.eraser[data-v-55ae5f6c],.pen[data-v-55ae5f6c]{pointer-events:none;position:absolute;z-index:9}.eraser .icon[data-v-55ae5f6c],.pen .icon[data-v-55ae5f6c]{filter:drop-shadow(2px 2px 2px #555)}.eraser[data-v-55ae5f6c]{display:flex;justify-content:center;align-items:center;border-radius:50%;border:4px solid rgba(85,85,85,.15);color:#555555bf}.writing-board-tool[data-v-47295ef6]{font-size:12px;z-index:10;position:absolute;top:0;right:0;bottom:0;left:0}.writing-board-tool .writing-board-wrap[data-v-47295ef6]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.writing-board-tool .tools[data-v-47295ef6]{width:100%;height:100%;display:flex;align-items:center;justify-content:space-between}.writing-board-tool .tool-content[data-v-47295ef6]{display:flex;align-items:center}.writing-board-tool .btn[data-v-47295ef6]{padding:5px 10px;cursor:pointer}.writing-board-tool .btn[data-v-47295ef6]:hover{color:#d14424}.writing-board-tool .btn.active[data-v-47295ef6]{background-color:#d1442480;color:#fff}.writing-board-tool .icon[data-v-47295ef6]{font-size:20px}.writing-board-tool .colors[data-v-47295ef6]{display:flex;padding:0 10px}.writing-board-tool .color[data-v-47295ef6]{width:16px;height:16px;border-radius:2px;cursor:pointer}.writing-board-tool .color[data-v-47295ef6]:hover{transform:scale(1.15)}.writing-board-tool .color.active[data-v-47295ef6]{transform:scale(1.3)}.writing-board-tool .color+.color[data-v-47295ef6]{margin-left:8px}.size[data-v-47295ef6]{width:200px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;font-size:13px}.size .label[data-v-47295ef6]{width:70px}.size .size-slider[data-v-47295ef6]{flex:1}.countdown-timer[data-v-92c1f9be]{-webkit-user-select:none;user-select:none}.header[data-v-92c1f9be]{height:16px;font-size:13px;margin-bottom:16px;display:flex;align-items:center}.header .text-btn[data-v-92c1f9be]{margin-right:8px;cursor:pointer}.header .text-btn[data-v-92c1f9be]:hover,.header .text-btn.active[data-v-92c1f9be]{color:#d14424}.content[data-v-92c1f9be]{display:flex;justify-content:space-between;padding:0 5px}.timer[data-v-92c1f9be]{width:54px;height:54px;border-radius:50%;background-color:#d144240d;font-size:22px;overflow:hidden}.timer input[data-v-92c1f9be]{width:100%;height:100%;border:0;outline:0;background-color:transparent;text-align:center}.colon[data-v-92c1f9be]{height:54px;line-height:54px;font-size:22px}.icon-btn[data-v-92c1f9be]{width:20px;height:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.pause[data-v-92c1f9be],.play[data-v-92c1f9be]{font-size:17px}.reset[data-v-92c1f9be]{font-size:12px}.close-btn[data-v-92c1f9be]{position:absolute;top:0;right:0;padding:10px;cursor:pointer}.base-view[data-v-85c13201]{width:100%;height:100%}.base-view.laser-pen[data-v-85c13201]{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABHNCSVQICAgIfAhkiAAACCJJREFUWIXtmLuO3MYShv/qZl9IzqwXo2BkSAtsIK+z8wwOBcOJ9C56Cr2LlThQcgBnfofVBnswXlgTaLHaIdk3dtcJOKOzd8n2MeDABRDDgKz/m+pudv0N/BN/Luj/kYSZJQBxJR8DKESU/2zuPwTIzAKnpxqHhxUuLir0vYSUAkS0ewA5F7Rtxv7+iNPTEYeHkYjKXwrIzHK9XtultRohaKSkkFIVhqGCEAIxTvm0ZpRSTNOMUGqEUgnGxLX3cblc+t9T2S8GXK1W9dP53OLiwoLZhMtLQ4CiGBVKkchZIOcpn5QMKQuEyKx1YiCZvb0AooD9ff/rZuMPDg7cl+hWn3uAmQWABut1g/PzOnZdTd5bMY6aQtAIQQGQGEd5bYirKgPIZExiY2IKIbK1XpeinzaN2s7b4XPD/iAgM0ucn7fYbNrQ963Juaauq8k5i3E01PcG46iQs0TO1wGlzJAyo6oS2jagqgLGUQNQwTllvJeYzwUz9w8N+b2AzCxwft6i72fBuZkYhnbcbBqKsSbvazhnEIJBzqrEqGQpAlO1AaKShShC6wQpE4UQUNcBKenReyXm8yoIIYwQtNXq7qvkQxVssNm0wbmZuLiYUQgtnGtps2ngfQ3vLaVkEKOmGKcqMtMWkEnKTFonaB3Z+4AQPFmreD6vSAghxpECAFMKY7EoALovBlytVjXW6yb0fSuGoaUQWrq8nKHvW/R9S943xbmavJ+qmNIO8FMFIWXert7A1gYxjprHsSLmaTHt7UF0HYdSilmv82q1ynctnFuAzCzx8aPF+Xltcq7HzaaBcy36vsUwzKjrZhiGRgxDA+8tUjIUgkbOEqVMgEIUkjLDmAjvgwjBI6WKxlHybp5KyVRKMcaMGIb0dLFIzBxvzsdbgOv12i69t7HrpgURY02bTYO+b6nrZui6qZLONdz3jTg5ORDHx0f48OExQpgBAIzp8OjRez46Oi7Pnq1ot5BKETQVgYmosJRj6rrEQNJCxLX3EUB/LyAzC3z8qOGcIe8tOWdpmm81ed9gGJpdJdF1rXz79jucnX1za454P8fZ2ZzOzr6Rx8fvyvPnP38afiEKVVXmqhrJ+wSlIqoqYj73S2s1M7urC0ZcS3x6qhGCDpeXBuOoMY4Gzhl4b4tzNYahgXMNuq4Vb978cCfczTg7+0a8efMDuq6Fcw2GoSnO1fDewjmDcTQYx0kzBI3TU3319euAh4cVUlIEKApBU98bhGAoJSO8N/Dect834u3b73B+/vVn4XZxfv61ePv2O+77Bt5b4b2hlKbcfW8oBE2AQkoKh4fXRvU64MVFhZQqilEhBLX9CCvEqLer1YiTk4MvqtxdlTw5OcAWDDFq5DxphDBtmSlNzcddgMws0fcyDEOFUiQAiZxliVGVGFVJSXEImo6Pj3433Dbo+PiIQ9AlJbXLi5wnrVIm7b6X223wOiAAASkFhBDIWWAcJXKWshQhcpYiZ0k5S3z48PhO9ZcvgV9+ma6XL+8m/PDhMW1ziW1u5Cy3WpO2lOIq11VAAhEhRkLO0z0RgVmAefotRXz6lNyMV6+AxWK6Xr26GzCEGXZb4i7nTifnSXv6Tn7qssTdmf4+cRWQwczQmiHldM/MICogmn6FKDDmzj0Tr18D5+fT9fr13WrGdBCiXMu505Fy0mZmTJYBwPUPdUHOBaUUSFlQVRlS5rzbtqTMJGXGo0fvcXY2vyX+44/T9VA8evSepcy8zcdCFDG1ZBlSTto5FwC3P9RElNG22TTNCCEygAwps9A6Ca2TUCqRMZGPjo4fprg/+OjomIyJQqm0ywspJy0hJu22zVf34+tzcH9/hFIja51gTEJVJUiZoHWEMQFKhfLs2QpPnrz73XRPnrwrz56toFSAMQFaR0g5aRiTWOsEpUbs749XX7u51Y1QKjGQ2JjIbRtgTGClQrE2wFpPbTuU589/xmLx2xfDLRa/lefPf6a2HWCtL9YG3oJy2wY2JjKQoFTC6ekDgIeHEcZEs7cXUFURVTV1wtZ6UdcOTTOgrgfMZn158eKnL6rkkyfvyosXP2E261HXA5pmEHXtYK1HXU9WoKomTWMiDg/j1devbStEVN6/fx+XRIGt9RhHjZQ0Wat4HCsax//1fEQlf//9v8XJyTF9rt1q2+mPtW2PphnY2gHWOrbWcV17ttaDKKy9j4/398u9gACwXC49Pn7UuhQNQI3eT206s2DadptCFEiZqaoS/+tfvnz77X/oRsPKUmYyJpJSAdZ6NM2Aphl4Pu/QND3P5wO0dmo2c5jNHPb3/fKrr/xNnluARJRXq5V/2jQqOKfE1kPsPC8zM1VVLkqNwpiAEAxbq+hGy89SZtq2/MXaIOrasbUDmqZH2/Zo257bdghSOtM07tfNxh/s799yd3d6koODA8fM0ngvw9bgYG9vatOJClfVSFUVYe3UldxhmiBlxtY0kVLTlLHW8Xw+oG17NqYvs1lv6rrHcjkcEN1p5B9ydQPmc2GEoABAdB1TKYWlnDph5wJvbSdPpwvXbCcLUXhrO2FMQF0HttZBa8dtO5TZrDdt26FtewDDfRD3AhJRYeYemKxh2Bqc1HVTm17Xn4y7yFnyDeMurhh33hp3rmuvZjMXpHSmrqehXiz6h04XHjxZIKLMzB0Wi2LW64xhSAwkVFXEOGpo/dmjD2yPPlBVka31mM2caRqH5XLAnz362FUSQLdarfLTxSJpISLmcx8uLw217R8/PLpnzt3S/5KHdvG3Pn67Afr3PMB8APgvOwL+J/5s/BeEBm1u1Gu4+QAAAABJRU5ErkJggg==) 20 20,default!important}.tools-left[data-v-85c13201]{position:fixed;bottom:8px;left:8px;font-size:25px;color:#666;z-index:10}.tools-left .tool-btn[data-v-85c13201]{opacity:.35;cursor:pointer}.tools-left .tool-btn[data-v-85c13201]:hover{opacity:.9}.tools-left .tool-btn+.tool-btn[data-v-85c13201]{margin-left:8px}.tools-right[data-v-85c13201]{height:66px;position:fixed;bottom:-66px;right:0;z-index:5;padding:8px;transition:bottom .2s}.tools-right.visible[data-v-85c13201]{bottom:0}.tools-right[data-v-85c13201]:after{content:"";width:100%;height:66px;position:absolute;left:0;top:-66px}.tools-right .content[data-v-85c13201]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;border-radius:2px;font-size:25px;background-color:#fff;color:#41464b;padding:8px 10px;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed}.tools-right .tool-btn[data-v-85c13201]{cursor:pointer}.tools-right .tool-btn[data-v-85c13201]:hover,.tools-right .tool-btn.active[data-v-85c13201]{color:#d14424}.tools-right .tool-btn+.tool-btn[data-v-85c13201]{margin-left:15px}.tools-right .page-number[data-v-85c13201]{font-size:13px;padding:8px 12px;cursor:pointer}.presenter-view[data-v-691774ef]{width:100%;height:100%;display:flex}.toolbar[data-v-691774ef]{width:70px;height:100%;background-color:#fff;border-right:solid 1px #eee;font-size:12px;margin:20px 0}.toolbar .tool-btn[data-v-691774ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.toolbar .tool-btn+.tool-btn[data-v-691774ef]{margin-top:22px}.toolbar .tool-btn[data-v-691774ef]:hover,.toolbar .tool-btn.active[data-v-691774ef]{color:#d14424}.toolbar .divider[data-v-691774ef]{width:70%;margin:24px 15%!important}.toolbar .tool-icon[data-v-691774ef]{margin-bottom:8px;font-size:22px}.content[data-v-691774ef]{width:calc(100% - 430px);height:100%;background-color:#1d1d1d}.slide-list-wrap[data-v-691774ef]{height:calc(100% - 190px);margin:20px;overflow:hidden;position:relative}.slide-list-wrap.laser-pen[data-v-691774ef]{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABHNCSVQICAgIfAhkiAAACCJJREFUWIXtmLuO3MYShv/qZl9IzqwXo2BkSAtsIK+z8wwOBcOJ9C56Cr2LlThQcgBnfofVBnswXlgTaLHaIdk3dtcJOKOzd8n2MeDABRDDgKz/m+pudv0N/BN/Luj/kYSZJQBxJR8DKESU/2zuPwTIzAKnpxqHhxUuLir0vYSUAkS0ewA5F7Rtxv7+iNPTEYeHkYjKXwrIzHK9XtultRohaKSkkFIVhqGCEAIxTvm0ZpRSTNOMUGqEUgnGxLX3cblc+t9T2S8GXK1W9dP53OLiwoLZhMtLQ4CiGBVKkchZIOcpn5QMKQuEyKx1YiCZvb0AooD9ff/rZuMPDg7cl+hWn3uAmQWABut1g/PzOnZdTd5bMY6aQtAIQQGQGEd5bYirKgPIZExiY2IKIbK1XpeinzaN2s7b4XPD/iAgM0ucn7fYbNrQ963Juaauq8k5i3E01PcG46iQs0TO1wGlzJAyo6oS2jagqgLGUQNQwTllvJeYzwUz9w8N+b2AzCxwft6i72fBuZkYhnbcbBqKsSbvazhnEIJBzqrEqGQpAlO1AaKShShC6wQpE4UQUNcBKenReyXm8yoIIYwQtNXq7qvkQxVssNm0wbmZuLiYUQgtnGtps2ngfQ3vLaVkEKOmGKcqMtMWkEnKTFonaB3Z+4AQPFmreD6vSAghxpECAFMKY7EoALovBlytVjXW6yb0fSuGoaUQWrq8nKHvW/R9S943xbmavJ+qmNIO8FMFIWXert7A1gYxjprHsSLmaTHt7UF0HYdSilmv82q1ynctnFuAzCzx8aPF+Xltcq7HzaaBcy36vsUwzKjrZhiGRgxDA+8tUjIUgkbOEqVMgEIUkjLDmAjvgwjBI6WKxlHybp5KyVRKMcaMGIb0dLFIzBxvzsdbgOv12i69t7HrpgURY02bTYO+b6nrZui6qZLONdz3jTg5ORDHx0f48OExQpgBAIzp8OjRez46Oi7Pnq1ot5BKETQVgYmosJRj6rrEQNJCxLX3EUB/LyAzC3z8qOGcIe8tOWdpmm81ed9gGJpdJdF1rXz79jucnX1za454P8fZ2ZzOzr6Rx8fvyvPnP38afiEKVVXmqhrJ+wSlIqoqYj73S2s1M7urC0ZcS3x6qhGCDpeXBuOoMY4Gzhl4b4tzNYahgXMNuq4Vb978cCfczTg7+0a8efMDuq6Fcw2GoSnO1fDewjmDcTQYx0kzBI3TU3319euAh4cVUlIEKApBU98bhGAoJSO8N/Dect834u3b73B+/vVn4XZxfv61ePv2O+77Bt5b4b2hlKbcfW8oBE2AQkoKh4fXRvU64MVFhZQqilEhBLX9CCvEqLer1YiTk4MvqtxdlTw5OcAWDDFq5DxphDBtmSlNzcddgMws0fcyDEOFUiQAiZxliVGVGFVJSXEImo6Pj3433Dbo+PiIQ9AlJbXLi5wnrVIm7b6X223wOiAAASkFhBDIWWAcJXKWshQhcpYiZ0k5S3z48PhO9ZcvgV9+ma6XL+8m/PDhMW1ziW1u5Cy3WpO2lOIq11VAAhEhRkLO0z0RgVmAefotRXz6lNyMV6+AxWK6Xr26GzCEGXZb4i7nTifnSXv6Tn7qssTdmf4+cRWQwczQmiHldM/MICogmn6FKDDmzj0Tr18D5+fT9fr13WrGdBCiXMu505Fy0mZmTJYBwPUPdUHOBaUUSFlQVRlS5rzbtqTMJGXGo0fvcXY2vyX+44/T9VA8evSepcy8zcdCFDG1ZBlSTto5FwC3P9RElNG22TTNCCEygAwps9A6Ca2TUCqRMZGPjo4fprg/+OjomIyJQqm0ywspJy0hJu22zVf34+tzcH9/hFIja51gTEJVJUiZoHWEMQFKhfLs2QpPnrz73XRPnrwrz56toFSAMQFaR0g5aRiTWOsEpUbs749XX7u51Y1QKjGQ2JjIbRtgTGClQrE2wFpPbTuU589/xmLx2xfDLRa/lefPf6a2HWCtL9YG3oJy2wY2JjKQoFTC6ekDgIeHEcZEs7cXUFURVTV1wtZ6UdcOTTOgrgfMZn158eKnL6rkkyfvyosXP2E261HXA5pmEHXtYK1HXU9WoKomTWMiDg/j1devbStEVN6/fx+XRIGt9RhHjZQ0Wat4HCsax//1fEQlf//9v8XJyTF9rt1q2+mPtW2PphnY2gHWOrbWcV17ttaDKKy9j4/398u9gACwXC49Pn7UuhQNQI3eT206s2DadptCFEiZqaoS/+tfvnz77X/oRsPKUmYyJpJSAdZ6NM2Aphl4Pu/QND3P5wO0dmo2c5jNHPb3/fKrr/xNnluARJRXq5V/2jQqOKfE1kPsPC8zM1VVLkqNwpiAEAxbq+hGy89SZtq2/MXaIOrasbUDmqZH2/Zo257bdghSOtM07tfNxh/s799yd3d6koODA8fM0ngvw9bgYG9vatOJClfVSFUVYe3UldxhmiBlxtY0kVLTlLHW8Xw+oG17NqYvs1lv6rrHcjkcEN1p5B9ydQPmc2GEoABAdB1TKYWlnDph5wJvbSdPpwvXbCcLUXhrO2FMQF0HttZBa8dtO5TZrDdt26FtewDDfRD3AhJRYeYemKxh2Bqc1HVTm17Xn4y7yFnyDeMurhh33hp3rmuvZjMXpHSmrqehXiz6h04XHjxZIKLMzB0Wi2LW64xhSAwkVFXEOGpo/dmjD2yPPlBVka31mM2caRqH5XLAnz362FUSQLdarfLTxSJpISLmcx8uLw217R8/PLpnzt3S/5KHdvG3Pn67Afr3PMB8APgvOwL+J/5s/BeEBm1u1Gu4+QAAAABJRU5ErkJggg==) 20 20,default!important}.thumbnails[data-v-691774ef]{height:150px;padding:15px;white-space:nowrap;overflow-x:auto;overflow-y:hidden;border-top:solid 1px #3a3a3a}.thumbnail[data-v-691774ef]{display:inline-block;outline:2px solid #aaa}.thumbnail+.thumbnail[data-v-691774ef]{margin-left:10px}.thumbnail[data-v-691774ef]:hover{outline-color:#d14424}.thumbnail.active[data-v-691774ef]{outline-width:3px;outline-color:#d14424}.remark[data-v-691774ef]{width:360px;height:100%;position:relative;background-color:#2a2a2a;border-left:solid 1px #3a3a3a;color:#fff}.remark .header[data-v-691774ef]{height:60px;padding:0 20px;display:flex;justify-content:space-between;align-items:center;font-size:18px;border-bottom:1px solid #3a3a3a}.remark .remark-content[data-v-691774ef]{height:calc(100% - 60px);padding:20px;line-height:1.5;overflow:auto;overflow:overlay}.remark .remark-scale[data-v-691774ef]{position:absolute;right:5px;bottom:5px;font-size:22px;display:flex}.remark .scale-btn[data-v-691774ef]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer}.remark .scale-btn.disable[data-v-691774ef]{color:#666;cursor:no-drop}.remark .scale-btn[data-v-691774ef]:not(.disable):hover{background-color:#333}[data-v-691774ef]::-webkit-scrollbar{width:0;height:0}.pptist-screen[data-v-2f0dc4b8]{width:100%;height:100%}.mobile-operate[data-v-b61bf2dc]{position:absolute;z-index:100;-webkit-user-select:none;user-select:none}.mobile-thumbnails[data-v-f47af55e]{padding:10px;white-space:nowrap;overflow-x:auto;overflow-y:hidden}.thumbnail-item[data-v-f47af55e]{position:relative;display:inline-block;outline:2px solid #aaa}.thumbnail-item+.thumbnail-item[data-v-f47af55e]{margin-left:10px}.thumbnail-item.active[data-v-f47af55e]{outline-color:#d14424}.thumbnail-item.active .label[data-v-f47af55e]{background-color:#d14424}.thumbnail-item .label[data-v-f47af55e]{min-width:20px;height:14px;line-height:14px;position:absolute;right:-1px;top:-1px;color:#fff;background-color:#aaa;z-index:1;font-size:12px;text-align:center;padding:0 5px}.sortable-chosen[data-v-f47af55e]{top:-5px}[data-v-f47af55e]::-webkit-scrollbar{width:0;height:0}.slide-toolbar[data-v-bceba327]{height:230px;background-color:#fff;box-shadow:0 0 15px #0000001a;display:flex;flex-direction:column;position:relative;z-index:2}.remark[data-v-bceba327]{position:relative;flex:1;border-bottom:1px solid #eee;line-height:1.5}.remark textarea[data-v-bceba327]{width:100%;height:100%;overflow-y:auto;resize:none;border:0;outline:0;padding:8px 10px;font-size:12px;box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0}.toolbar[data-v-bceba327]{height:90px;border-bottom:1px solid #eee;padding:10px}.row[data-v-bceba327]{width:100%;display:flex;align-items:center;margin-bottom:5px}.row .icon[data-v-bceba327]{margin-right:3px}.element-toolbar[data-v-65decaff]{width:100%;height:240px;position:absolute;z-index:99;bottom:0;left:0;background-color:#fff;box-shadow:0 0 15px #0000001a;display:flex;flex-direction:column;animation:slideInUp-65decaff .15s}@keyframes slideInUp-65decaff{0%{transform:translateY(100%)}to{transform:translateY(0)}}.content[data-v-65decaff]{padding:10px;flex:1;overflow:auto}.row[data-v-65decaff]{width:100%;display:flex;align-items:center;margin-bottom:10px}.row .icon[data-v-65decaff]{margin-right:3px}.row-block[data-v-65decaff]{margin-bottom:10px;background-color:#f9f9f9;border-radius:2px;padding:10px}.label[data-v-65decaff]{font-size:13px;margin-bottom:20px;margin-left:6px}.colors[data-v-65decaff]{display:flex;flex-wrap:wrap;align-content:flex-start}.color[data-v-65decaff]{width:12%;margin-bottom:calc(4% / 7);padding-bottom:5px;display:flex;justify-content:center;align-items:center}.color[data-v-65decaff]:not(:nth-child(8n)){margin-right:calc(4% / 7)}.color .color-block[data-v-65decaff]{width:30px;height:30px;border-radius:50%}.mobile-editor-header[data-v-091403e4]{height:50px;background-color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 18px;font-size:13px;box-shadow:0 0 15px #0000001a;position:relative;z-index:2}.history[data-v-091403e4]{display:flex;justify-content:center;align-items:center}.history-item[data-v-091403e4]{margin-right:20px}.history-item.disable[data-v-091403e4]{opacity:.5}.mobile-editor[data-v-8b282f2e]{height:100%;position:relative;background-color:#f9f9f9}.content[data-v-8b282f2e]{height:calc(100% - 280px);display:flex;justify-content:center;align-items:center}.viewport[data-v-8b282f2e]{transform-origin:0 0}.viewport-wrapper[data-v-8b282f2e]{position:relative;box-shadow:0 0 15px #0000001a}.background[data-v-8b282f2e]{width:100%;height:100%;background-position:center;position:absolute}.mobile-player[data-v-c846a018]{transform-origin:0 0;background-color:#1d1d1d;position:relative}.screen-slide-list[data-v-c846a018]{position:relative;width:100%;height:100%}.slide-item[data-v-c846a018]{position:absolute;top:0;left:0;width:100%;height:100%}.slide-item.current[data-v-c846a018]{z-index:2}.slide-item.hide[data-v-c846a018]{opacity:0}.slide-item.turning-mode-no.before[data-v-c846a018]{transform:translateY(-100%)}.slide-item.turning-mode-no.after[data-v-c846a018]{transform:translateY(100%)}.slide-item.turning-mode-fade[data-v-c846a018]{transition:opacity .75s}.slide-item.turning-mode-fade.before[data-v-c846a018],.slide-item.turning-mode-fade.after[data-v-c846a018]{pointer-events:none;opacity:0}.slide-item.turning-mode-slideX[data-v-c846a018]{transition:transform .35s}.slide-item.turning-mode-slideX.before[data-v-c846a018]{transform:translate(-100%)}.slide-item.turning-mode-slideX.after[data-v-c846a018]{transform:translate(100%)}.slide-item.turning-mode-slideY[data-v-c846a018]{transition:transform .35s}.slide-item.turning-mode-slideY.before[data-v-c846a018]{transform:translateY(-100%)}.slide-item.turning-mode-slideY.after[data-v-c846a018]{transform:translateY(100%)}.slide-content[data-v-c846a018]{background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.header[data-v-c846a018]{width:100%;height:40px;line-height:40px;padding:0 15px;position:absolute;top:0;left:0;z-index:99;background-color:#1d1d1db3;text-align:right;font-size:13px;color:#fff;animation:slideInDown-c846a018 .15s}.header .back[data-v-c846a018]{height:100%}.thumbnails[data-v-c846a018]{width:100%;position:absolute;bottom:0;left:0;z-index:99;background-color:#1d1d1db3;overflow:auto!important;animation:slideInUp-c846a018 .15s}@keyframes slideInUp-c846a018{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInDown-c846a018{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.mobile-preview[data-v-99aa0ac4]{height:100%;background-color:#f9f9f9}.thumbnail-list[data-v-99aa0ac4]{height:calc(100% - 50px);padding:10px;overflow:auto}.thumbnail-item[data-v-99aa0ac4]{display:flex;justify-content:center;align-items:center;box-shadow:0 0 15px #0000001a}.thumbnail-item+.thumbnail-item[data-v-99aa0ac4]{margin-top:10px}.menu[data-v-99aa0ac4]{height:50px;position:relative;box-shadow:0 -2px 4px #3333330d;background:#fff;display:flex;justify-content:center;align-items:center}.menu .menu-item[data-v-99aa0ac4]{width:50%;height:100%;display:flex;justify-content:center;align-items:center;font-size:13px}.menu .menu-item .icon[data-v-99aa0ac4]{margin-right:8px;font-size:18px}.mobile[data-v-d02011cb],#app{height:100%}.i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ProseMirror{position:relative}.ProseMirror{word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0}.ProseMirror pre{white-space:pre-wrap}.ProseMirror li{position:relative}.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection *::-moz-selection{background:transparent}.ProseMirror-hideselection{caret-color:transparent}.ProseMirror [draggable][contenteditable=false]{-webkit-user-select:text;user-select:text}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}img.ProseMirror-separator{display:inline!important;border:none!important;margin:0!important}/*! +@charset "UTF-8";.message[data-v-5f638602]{max-width:600px}.message+.message[data-v-5f638602]{margin-top:15px}.message-container[data-v-5f638602]{min-width:50px;display:flex;align-items:center;padding:10px;font-size:13px;overflow:hidden;border-radius:2px;box-shadow:0 1px 8px #00000026;background:#fff;pointer-events:all;position:relative}.message-container .icons[data-v-5f638602]{display:flex;align-items:center;margin-right:10px}.message-container .title[data-v-5f638602]{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-container .content[data-v-5f638602]{width:100%}.message-container .description[data-v-5f638602]{line-height:1.5;color:#41464b}.message-container .title+.description[data-v-5f638602]{margin-top:5px}.message-container .control[data-v-5f638602]{position:relative;height:100%;margin-left:10px}.message-container .close-btn[data-v-5f638602]{font-size:15px;color:#666;display:flex;align-items:center;cursor:pointer}.message-container .close-btn[data-v-5f638602]:hover{color:#d14424}.message-fade-enter-active[data-v-5f638602]{animation:message-fade-in-down-5f638602 .3s}.message-fade-leave-active[data-v-5f638602]{animation:message-fade-out-5f638602 .3s}@keyframes message-fade-in-down-5f638602{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-fade-out-5f638602{0%{opacity:1;margin-top:0}to{opacity:0;margin-top:-45px}}.hotkey-doc[data-v-0762be00]{height:100%;overflow:auto;font-size:12px;margin:0 -15px;padding:0 15px 15px}.title[data-v-0762be00]{font-size:14px;font-weight:700;border-bottom:1px solid #e5e5e5;padding:25px 0 5px}.title[data-v-0762be00]:first-child{padding-top:0}.hotkey-item[data-v-0762be00]{border-bottom:1px solid #e5e5e5;padding:15px 0 5px;display:flex;align-items:center}.label[data-v-0762be00]{width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input[data-v-1bd53d05]{display:none}.fullscreen-spin[data-v-9856918a]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:100;display:flex;justify-content:center;align-items:center;background-color:#f1f1f1b3}.spin[data-v-9856918a]{width:200px;height:200px;position:fixed;top:50%;left:50%;margin-top:-100px;margin-left:-100px;display:flex;flex-direction:column;justify-content:center;align-items:center}.spinner[data-v-9856918a]{width:36px;height:36px;border:3px solid #d14424;border-top-color:transparent;border-radius:50%;animation:spinner-9856918a .8s linear infinite}.text[data-v-9856918a]{margin-top:20px;color:#d14424}@keyframes spinner-9856918a{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.drawer[data-v-46f39759]{height:100%;position:fixed;top:0;bottom:0;z-index:5000;background:#fff;display:flex;flex-direction:column}.drawer.left[data-v-46f39759]{left:0;box-shadow:3px 0 6px -4px #0000001f,9px 0 28px 8px #0000000d}.drawer.right[data-v-46f39759]{right:0;box-shadow:-3px 0 6px -4px #0000001f,-9px 0 28px 8px #0000000d}.header[data-v-46f39759]{height:50px;padding:0 15px;position:relative;display:flex;align-items:center}.header .close-btn[data-v-46f39759]{width:20px;height:20px;display:flex;justify-content:center;align-items:center;position:absolute;top:15px;right:15px;cursor:pointer}.content[data-v-46f39759]{padding:0 15px;overflow:auto;flex:1}.drawer-slide-right-enter-active[data-v-46f39759]{animation:drawer-slide-right-enter-46f39759 .25s both ease}.drawer-slide-right-leave-active[data-v-46f39759]{animation:drawer-slide-right-leave-46f39759 .25s both ease}.drawer-slide-left-enter-active[data-v-46f39759]{animation:drawer-slide-left-enter-46f39759 .25s both ease}.drawer-slide-left-leave-active[data-v-46f39759]{animation:drawer-slide-left-leave-46f39759 .25s both ease}@keyframes drawer-slide-right-enter-46f39759{0%{transform:translate(100%)}}@keyframes drawer-slide-right-leave-46f39759{to{transform:translate(100%)}}@keyframes drawer-slide-left-enter-46f39759{0%{transform:translate(-100%)}}@keyframes drawer-slide-left-leave-46f39759{to{transform:translate(-100%)}}.input[data-v-08dd2583]{background-color:#fff;border:1px solid #d9d9d9;padding:0 5px;border-radius:2px;transition:border-color .25s;font-size:13px;display:flex}.input input[data-v-08dd2583]{min-width:0;height:30px;outline:0;border:0;line-height:30px;vertical-align:top;color:#41464b;padding:0 5px;flex:1;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.input input[data-v-08dd2583]::placeholder{color:#bfbfbf}.input[data-v-08dd2583]:not(.disabled):hover,.input.focused[data-v-08dd2583]{border-color:#d14424}.input.disabled[data-v-08dd2583]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7}.input .prefix[data-v-08dd2583],.input .suffix[data-v-08dd2583]{display:flex;justify-content:center;align-items:center;line-height:30px;-webkit-user-select:none;user-select:none}.tippy-box[data-animation=scale][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale][data-state=hidden]{transform:scale(.5);opacity:0}.popover.center[data-v-7277ff01]{display:flex;justify-content:center;align-items:center}.popover-content[data-v-7277ff01]{background-color:#fff;padding:10px;border:1px solid #eee;box-shadow:3px 3px 3px #00000026;border-radius:2px;font-size:13px}.tippy-box[data-theme~=popover]{border:0;outline:0}.popover-menu-item[data-v-1f176c16]{min-width:80px;padding:6px 10px;border-radius:2px;font-size:13px;cursor:pointer}.popover-menu-item.center[data-v-1f176c16]{text-align:center}.popover-menu-item[data-v-1f176c16]:hover{background-color:#f1f1f1}.popover-menu-item+.popover-menu-item[data-v-1f176c16]{margin-top:2px}.editor-header[data-v-89efe6b2]{background-color:#fff;-webkit-user-select:none;user-select:none;border-bottom:1px solid #eee;display:flex;justify-content:space-between;padding:0 5px}.left[data-v-89efe6b2],.right[data-v-89efe6b2]{display:flex;justify-content:center;align-items:center}.menu-item[data-v-89efe6b2]{height:30px;display:flex;justify-content:center;align-items:center;font-size:14px;padding:0 10px;border-radius:2px;cursor:pointer}.menu-item .icon[data-v-89efe6b2]{font-size:18px;color:#666}.menu-item[data-v-89efe6b2]:hover{background-color:#f1f1f1}.group-menu-item[data-v-89efe6b2]{height:30px;display:flex;margin:0 8px;padding:0 2px;border-radius:2px}.group-menu-item[data-v-89efe6b2]:hover{background-color:#f1f1f1}.group-menu-item .menu-item[data-v-89efe6b2]{padding:0 3px}.group-menu-item .arrow-btn[data-v-89efe6b2]{display:flex;justify-content:center;align-items:center;cursor:pointer}.title[data-v-89efe6b2]{height:32px;margin-left:2px;font-size:13px}.title .title-input[data-v-89efe6b2]{width:200px;height:100%;padding-left:0;padding-right:0}.title .title-text[data-v-89efe6b2]{min-width:20px;max-width:400px;line-height:32px;padding:0 6px;border-radius:2px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.title .title-text[data-v-89efe6b2]:hover{background-color:#f1f1f1}.github-link[data-v-89efe6b2]{display:inline-block;height:30px}svg[data-v-09a0319c]{overflow:visible;position:absolute;z-index:2;top:0;left:0}svg[data-v-19e68d74]{overflow:visible;position:absolute;z-index:2;top:0;left:0}svg[data-v-a036b0a3]{overflow:visible;position:absolute;z-index:2;top:0;left:0}.image-clip-handler[data-v-31b3b0f9]{width:100%;height:100%;position:relative}.image-clip-handler .bottom-img[data-v-31b3b0f9]{top:0;left:0;width:100%;height:100%;opacity:.5}.image-clip-handler img[data-v-31b3b0f9]{width:100%;height:100%}.image-clip-handler .top-image-content[data-v-31b3b0f9]{position:absolute;overflow:hidden}.image-clip-handler .top-image-content img[data-v-31b3b0f9]{position:absolute}.operate[data-v-31b3b0f9]{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.clip-point[data-v-31b3b0f9]{position:absolute;width:16px;height:16px}.clip-point svg[data-v-31b3b0f9]{overflow:visible}.clip-point.left-top[data-v-31b3b0f9]{left:0;top:0}.clip-point.right-top[data-v-31b3b0f9]{left:100%;top:0;transform:rotate(90deg);transform-origin:0 0}.clip-point.left-bottom[data-v-31b3b0f9]{left:0;top:100%;transform:rotate(-90deg);transform-origin:0 0}.clip-point.right-bottom[data-v-31b3b0f9]{left:100%;top:100%;transform:rotate(180deg);transform-origin:0 0}.clip-point.top[data-v-31b3b0f9]{left:50%;top:0;margin-left:-8px}.clip-point.bottom[data-v-31b3b0f9]{left:50%;bottom:0;margin-left:-8px;transform:rotate(180deg)}.clip-point.left[data-v-31b3b0f9]{left:0;top:50%;margin-top:-8px;transform:rotate(-90deg)}.clip-point.right[data-v-31b3b0f9]{right:0;top:50%;margin-top:-8px;transform:rotate(90deg)}.clip-point.left-top.rotate-0[data-v-31b3b0f9],.clip-point.right-bottom.rotate-0[data-v-31b3b0f9],.clip-point.left.rotate-45[data-v-31b3b0f9],.clip-point.right.rotate-45[data-v-31b3b0f9],.clip-point.left-bottom.rotate-90[data-v-31b3b0f9],.clip-point.right-top.rotate-90[data-v-31b3b0f9],.clip-point.top.rotate-135[data-v-31b3b0f9],.clip-point.bottom.rotate-135[data-v-31b3b0f9]{cursor:nwse-resize}.clip-point.top.rotate-0[data-v-31b3b0f9],.clip-point.bottom.rotate-0[data-v-31b3b0f9],.clip-point.left-top.rotate-45[data-v-31b3b0f9],.clip-point.right-bottom.rotate-45[data-v-31b3b0f9],.clip-point.left.rotate-90[data-v-31b3b0f9],.clip-point.right.rotate-90[data-v-31b3b0f9],.clip-point.left-bottom.rotate-135[data-v-31b3b0f9],.clip-point.right-top.rotate-135[data-v-31b3b0f9]{cursor:ns-resize}.clip-point.left-bottom.rotate-0[data-v-31b3b0f9],.clip-point.right-top.rotate-0[data-v-31b3b0f9],.clip-point.top.rotate-45[data-v-31b3b0f9],.clip-point.bottom.rotate-45[data-v-31b3b0f9],.clip-point.left-top.rotate-90[data-v-31b3b0f9],.clip-point.right-bottom.rotate-90[data-v-31b3b0f9],.clip-point.left.rotate-135[data-v-31b3b0f9],.clip-point.right.rotate-135[data-v-31b3b0f9]{cursor:nesw-resize}.clip-point.left.rotate-0[data-v-31b3b0f9],.clip-point.right.rotate-0[data-v-31b3b0f9],.clip-point.left-bottom.rotate-45[data-v-31b3b0f9],.clip-point.right-top.rotate-45[data-v-31b3b0f9],.clip-point.top.rotate-90[data-v-31b3b0f9],.clip-point.bottom.rotate-90[data-v-31b3b0f9],.clip-point.left-top.rotate-135[data-v-31b3b0f9],.clip-point.right-bottom.rotate-135[data-v-31b3b0f9]{cursor:ew-resize}.editable-element-image[data-v-d615c21a]{position:absolute}.editable-element-image.lock .element-content[data-v-d615c21a]{cursor:default}.rotate-wrapper[data-v-d615c21a]{width:100%;height:100%}.element-content[data-v-d615c21a]{width:100%;height:100%;position:relative;cursor:move}.element-content .image-content[data-v-d615c21a]{width:100%;height:100%;overflow:hidden;position:relative}.element-content img[data-v-d615c21a]{position:absolute}.color-mask[data-v-d615c21a]{position:absolute;top:0;bottom:0;left:0;right:0}svg[data-v-e2ef58f5]{overflow:visible;position:absolute;top:0;left:0}.prosemirror-editor[data-v-23fdc807]{cursor:text}.prosemirror-editor.format-painter[data-v-23fdc807]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzUuMDEybC0uMDY2Ljk5OGE1LjI3MSA1LjI3MSAwIDAwLTEuMTg0LjA2IDMuOCAzLjggMCAwMC0uOTMzLjQ3MmMtLjQ0LjM1Ni0uNzgzLjgxMS0uOTk4IDEuMzI0bC4wMTgtLjAzNnY1LjEyaDEuMDR2Ljk4aC0xLjA0bC0uMDAyIDQuMTVjLjE4Ny40MjYuNDYuODEuNzkxIDEuMTE3bC4xNzUuMTUyYy4yOTMuMjA4LjYxNS4zNzMuODkuNDcyLjQxLjA4Mi44My4xMTIgMS4yNDkuMDlsLjA1Ny45OTlhNi4wNjMgNi4wNjMgMCAwMS0xLjU4OC0uMTI5IDQuODM2IDQuODM2IDAgMDEtMS4yNS0uNjQ3IDQuNDYzIDQuNDYzIDAgMDEtLjgzOC0uODgzYy0uMjI0LjMzMi0uNS42NDItLjgyNC45MjdhNC4xMSA0LjExIDAgMDEtMS4zMDUuNjMzQTYuMTI2IDYuMTI2IDAgMDEwIDE1LjkwOWwuMDY4LS45OTdjLjQyNC4wMjYuODUtLjAwMSAxLjIxNy0uMDcuMzM2LS4wOTkuNjUxLS4yNTQuODk0LS40My40My0uMzguNzY1LS44NDcuOTgyLTEuMzY4bC0uMDA1LjAxNFY4LjkzSDIuMTE1di0uOThoMS4wNFYyLjg2MmEzLjc3IDMuNzcgMCAwMC0uNzc0LTEuMTY3bC0uMTY1LS4xNTZhMy4wNjQgMy4wNjQgMCAwMC0uODgtLjQ0OEE1LjA2MiA1LjA2MiAwIDAwLjA2NyAxLjAxTDAgLjAxMmE2LjE0IDYuMTQgMCAwMTEuNTkyLjExYy40NTMuMTM1Ljg3Ny4zNDUgMS4yOS42NS4zLjI2NS41NjUuNTY0Ljc4Ny44OS4yMzMtLjMzMS41Mi0uNjM0Ljg1My0uOTA0YTQuODM1IDQuODM1IDAgMDExLjMtLjY0OEE2LjE1NSA2LjE1NSAwIDAxNy4zNS4wMTJ6IiBmaWxsPSIjMEQwRDBEIi8+PHBhdGggZD0iTTE3LjM1IDE0LjVsNC41LTQuNS02LTZjLTIgMi0zIDItNS41IDIuNS40IDMuMiA0LjgzMyA2LjY2NyA3IDh6bTQuNTg4LTQuNDkzYS4zLjMgMCAwMC40MjQgMGwuNjgtLjY4YTEuNSAxLjUgMCAwMDAtMi4xMjJMMjEuNjkgNS44NTNsMi4wMjUtMS41ODNhMS42MjkgMS42MjkgMCAxMC0yLjI3OS0yLjI5NmwtMS42MDMgMi4wMjItMS4zNTctMS4zNTdhMS41IDEuNSAwIDAwLTIuMTIxIDBsLS42OC42OGEuMy4zIDAgMDAwIC40MjVsNi4yNjMgNi4yNjN6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTE1Ljg5MiAzLjk2MnMtMS4wMyAxLjIwMi0yLjQ5NCAxLjg5Yy0xLjAwNi40NzQtMi4xOC41ODYtMi43MzQuNjI3LS4yLjAxNS0uMzQ0LjIxLS4yNzYuMzk5LjI5Mi44MiAxLjExMiAyLjggMi42NTggNC4zNDYgMi4xMjYgMi4xMjcgMy42NTggMi45NjggNC4xNDIgMy4yMDMuMS4wNDguMjE0LjAzLjI5OC0uMDQyLjM4Ni0uMzI1IDEuNS0xLjI3NyAyLjIxLTEuOTg2Ljg5Mi0uODg5IDIuMTg3LTIuNDQ3IDIuMTg3LTIuNDQ3bS40NzkuMDU1YS4zLjMgMCAwMS0uNDI0IDBsLTYuMjY0LTYuMjYzYS4zLjMgMCAwMTAtLjQyNWwuNjgtLjY4YTEuNSAxLjUgMCAwMTIuMTIyIDBsMS4zNTcgMS4zNTcgMS42MDMtMi4wMjJhMS42MjkgMS42MjkgMCAxMTIuMjggMi4yOTZMMjEuNjkgNS44NTNsMS4zNTIgMS4zNTJhMS41IDEuNSAwIDAxMCAyLjEyMmwtLjY4LjY4eiIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+) 2 5,default!important}.editable-element-text[data-v-88c920e1]{position:absolute}.editable-element-text.lock .element-content[data-v-88c920e1]{cursor:default}.rotate-wrapper[data-v-88c920e1]{width:100%;height:100%}.element-content[data-v-88c920e1]{position:relative;padding:10px;line-height:1.5;word-break:break-word;cursor:move}.element-content .text[data-v-88c920e1]{position:relative}.element-content[data-v-88c920e1] a{cursor:text}.drag-handler[data-v-88c920e1]{height:10px;position:absolute;left:0;right:0}.drag-handler.top[data-v-88c920e1]{top:0}.drag-handler.bottom[data-v-88c920e1]{bottom:0}.editable-element-shape[data-v-63255815]{position:absolute;pointer-events:none}.editable-element-shape.lock .element-content[data-v-63255815]{cursor:default}.editable-element-shape.format-painter .element-content[data-v-63255815]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNzUgMTMuNzY0VjEuNDIxYS4zLjMgMCAwMS40NDgtLjI2bDEwLjkxIDYuMTk3YS4zLjMgMCAwMS0uMTE2LjU1OWwtNC4xOTYuNDQyIDIuNTgyIDQuNDcyYS4zLjMgMCAwMS0uMTEuNDFsLTMuMTg0IDEuODM4YS4zLjMgMCAwMS0uNDEtLjExbC0yLjU4MS00LjQ3Mi0yLjgxIDMuNDU2YS4zLjMgMCAwMS0uNTMzLS4xODl6IiBmaWxsPSIjZmZmIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMjYgMTQuNWw0LjUtNC41LTYtNmMtMiAyLTMgMi01LjUgMi41LjQgMy4yIDQuODMzIDYuNjY3IDcgOHptNC41ODgtNC40OTRhLjMuMyAwIDAwLjQyNCAwbC42OC0uNjhhMS41IDEuNSAwIDAwMC0yLjEyMUwzMC4zNCA1Ljg1MmwyLjAyNi0xLjU4MmExLjYyOSAxLjYyOSAwIDEwLTIuMjgtMi4yOTZsLTEuNjAzIDIuMDIxLTEuMzU3LTEuMzU2YTEuNSAxLjUgMCAwMC0yLjEyIDBsLS42ODEuNjhhLjMuMyAwIDAwMCAuNDI0bDYuMjYzIDYuMjYzeiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0yNC41NDMgMy45NjFzLTEuMDMgMS4yMDItMi40OTQgMS44OTFjLTEuMDA2LjQ3NC0yLjE4MS41ODUtMi43MzQuNjI3LS4yLjAxNC0uMzQ0LjIwOS0uMjc3LjM5OC4yOTMuODIgMS4xMTIgMi44MDEgMi42NTggNC4zNDcgMi4xMjYgMi4xMjYgMy42NTkgMi45NjggNC4xNDIgMy4yMDIuMS4wNDguMjE1LjAzLjI5OS0uMDQxLjM4NS0uMzI2IDEuNS0xLjI3NyAyLjIxLTEuOTg2Ljg5MS0uODkgMi4xODYtMi40NDggMi4xODYtMi40NDhtLjQ4LjA1NWEuMy4zIDAgMDEtLjQyNSAwbC02LjI2My02LjI2M2EuMy4zIDAgMDEwLS40MjRsLjY4LS42OGExLjUgMS41IDAgMDEyLjEyMiAwbDEuMzU2IDEuMzU2IDEuNjA0LTIuMDIxYTEuNjI5IDEuNjI5IDAgMTEyLjI3OSAyLjI5NkwzMC4zNCA1Ljg1MmwxLjM1MyAxLjM1M2ExLjUgMS41IDAgMDEwIDIuMTIxbC0uNjguNjh6IiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4=) 2 5,default!important}.rotate-wrapper[data-v-63255815]{width:100%;height:100%}.element-content[data-v-63255815]{width:100%;height:100%;position:relative;cursor:move}.element-content svg[data-v-63255815]{transform-origin:0 0;overflow:visible}.element-content .shape-path[data-v-63255815]{pointer-events:all}.shape-text[data-v-63255815]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;padding:10px;line-height:1.2;word-break:break-word;pointer-events:none}.shape-text.editable[data-v-63255815]{pointer-events:all}.shape-text.top[data-v-63255815]{justify-content:flex-start}.shape-text.middle[data-v-63255815]{justify-content:center}.shape-text.bottom[data-v-63255815]{justify-content:flex-end}.editable-element-shape[data-v-7ecafe01]{position:absolute;pointer-events:none}.editable-element-shape.lock .line-path[data-v-7ecafe01],.editable-element-shape.lock .line-point[data-v-7ecafe01]{cursor:default}.element-content[data-v-7ecafe01]{width:100%;height:100%;position:relative}.element-content svg[data-v-7ecafe01]{transform-origin:0 0;overflow:visible}.line-path[data-v-7ecafe01],.line-point[data-v-7ecafe01]{pointer-events:all;cursor:move}.ct-label{fill:#0006;color:#0006;font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:#0003;stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{content:"";display:table;clear:both}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{content:"";display:table;clear:both}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{content:"";display:table;clear:both}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{content:"";display:table;clear:both}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{content:"";display:table;clear:both}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{content:"";display:table;clear:both}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{content:"";display:table;clear:both}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{content:"";display:table;clear:both}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{content:"";display:table;clear:both}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{content:"";display:table;clear:both}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{content:"";display:table;clear:both}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{content:"";display:table;clear:both}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{content:"";display:table;clear:both}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{content:"";display:table;clear:both}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after{content:"";display:table;clear:both}.ct-major-twelfth>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{content:"";display:table;clear:both}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}.chart[data-v-786c4a79]{display:flex}.chart-content[data-v-786c4a79]{transform-origin:0 0}.chart-content{--theme-color-1: #666;--theme-color-2: #666;--theme-color-3: #666;--theme-color-4: #666;--theme-color-5: #666;--theme-color-6: #666;--theme-color-7: #666;--theme-color-8: #666;--theme-color-9: #666;--theme-color-10: #666;--grid-color: rgba(0, 0, 0, .4)}.chart-content .ct-series-a .ct-line,.chart-content .ct-series-a .ct-point{stroke:var(--theme-color-1)}.chart-content .ct-series-a .ct-area{fill:var(--theme-color-1)}.chart-content .ct-series-a .ct-bar{stroke:var(--theme-color-1)}.chart-content .ct-series-a .ct-slice-pie{fill:var(--theme-color-1)}.chart-content .ct-series-a .ct-slice-donut{stroke:var(--theme-color-1)}.chart-content .ct-series-b .ct-line,.chart-content .ct-series-b .ct-point{stroke:var(--theme-color-2)}.chart-content .ct-series-b .ct-area{fill:var(--theme-color-2)}.chart-content .ct-series-b .ct-bar{stroke:var(--theme-color-2)}.chart-content .ct-series-b .ct-slice-pie{fill:var(--theme-color-2)}.chart-content .ct-series-b .ct-slice-donut{stroke:var(--theme-color-2)}.chart-content .ct-series-c .ct-line,.chart-content .ct-series-c .ct-point{stroke:var(--theme-color-3)}.chart-content .ct-series-c .ct-area{fill:var(--theme-color-3)}.chart-content .ct-series-c .ct-bar{stroke:var(--theme-color-3)}.chart-content .ct-series-c .ct-slice-pie{fill:var(--theme-color-3)}.chart-content .ct-series-c .ct-slice-donut{stroke:var(--theme-color-3)}.chart-content .ct-series-d .ct-line,.chart-content .ct-series-d .ct-point{stroke:var(--theme-color-4)}.chart-content .ct-series-d .ct-area{fill:var(--theme-color-4)}.chart-content .ct-series-d .ct-bar{stroke:var(--theme-color-4)}.chart-content .ct-series-d .ct-slice-pie{fill:var(--theme-color-4)}.chart-content .ct-series-d .ct-slice-donut{stroke:var(--theme-color-4)}.chart-content .ct-series-e .ct-line,.chart-content .ct-series-e .ct-point{stroke:var(--theme-color-5)}.chart-content .ct-series-e .ct-area{fill:var(--theme-color-5)}.chart-content .ct-series-e .ct-bar{stroke:var(--theme-color-5)}.chart-content .ct-series-e .ct-slice-pie{fill:var(--theme-color-5)}.chart-content .ct-series-e .ct-slice-donut{stroke:var(--theme-color-5)}.chart-content .ct-series-f .ct-line,.chart-content .ct-series-f .ct-point{stroke:var(--theme-color-6)}.chart-content .ct-series-f .ct-area{fill:var(--theme-color-6)}.chart-content .ct-series-f .ct-bar{stroke:var(--theme-color-6)}.chart-content .ct-series-f .ct-slice-pie{fill:var(--theme-color-6)}.chart-content .ct-series-f .ct-slice-donut{stroke:var(--theme-color-6)}.chart-content .ct-series-g .ct-line,.chart-content .ct-series-g .ct-point{stroke:var(--theme-color-7)}.chart-content .ct-series-g .ct-area{fill:var(--theme-color-7)}.chart-content .ct-series-g .ct-bar{stroke:var(--theme-color-7)}.chart-content .ct-series-g .ct-slice-pie{fill:var(--theme-color-7)}.chart-content .ct-series-g .ct-slice-donut{stroke:var(--theme-color-7)}.chart-content .ct-series-h .ct-line,.chart-content .ct-series-h .ct-point{stroke:var(--theme-color-8)}.chart-content .ct-series-h .ct-area{fill:var(--theme-color-8)}.chart-content .ct-series-h .ct-bar{stroke:var(--theme-color-8)}.chart-content .ct-series-h .ct-slice-pie{fill:var(--theme-color-8)}.chart-content .ct-series-h .ct-slice-donut{stroke:var(--theme-color-8)}.chart-content .ct-series-i .ct-line,.chart-content .ct-series-i .ct-point{stroke:var(--theme-color-9)}.chart-content .ct-series-i .ct-area{fill:var(--theme-color-9)}.chart-content .ct-series-i .ct-bar{stroke:var(--theme-color-9)}.chart-content .ct-series-i .ct-slice-pie{fill:var(--theme-color-9)}.chart-content .ct-series-i .ct-slice-donut{stroke:var(--theme-color-9)}.chart-content .ct-grid{stroke:var(--grid-color)}.chart-content .ct-label{fill:var(--grid-color);color:var(--grid-color)}.legends{height:20px;display:flex;justify-content:center;align-items:center;font-size:14px}.legend{display:flex;align-items:center}.legend+.legend{margin-left:10px}.legend .block{width:10px;height:10px;margin-right:5px}.editable-element-chart[data-v-e98d2ede]{position:absolute}.editable-element-chart.lock .element-content[data-v-e98d2ede]{cursor:default}.rotate-wrapper[data-v-e98d2ede]{width:100%;height:100%}.element-content[data-v-e98d2ede]{width:100%;height:100%;overflow:hidden;cursor:move}.custom-textarea[data-v-cfadb975]{border:0;outline:0;-webkit-user-modify:read-write-plaintext-only}.editable-table[data-v-d040a5e0]{position:relative;-webkit-user-select:none;user-select:none}table[data-v-d040a5e0]{width:100%;position:relative;table-layout:fixed;border-collapse:collapse;border-spacing:0;border:0;word-wrap:break-word;-webkit-user-select:none;user-select:none;--themeColor: $themeColor;--subThemeColor1: $themeColor;--subThemeColor2: $themeColor}table.theme[data-v-d040a5e0]{background-color:#fff}table.theme tr:nth-child(2n) .cell[data-v-d040a5e0]{background-color:var(--subThemeColor1)}table.theme tr:nth-child(odd) .cell[data-v-d040a5e0]{background-color:var(--subThemeColor2)}table.theme.row-header tr:first-child .cell[data-v-d040a5e0]{background-color:var(--themeColor)}table.theme.row-footer tr:last-child .cell[data-v-d040a5e0]{background-color:var(--themeColor)}table.theme.col-header tr .cell[data-v-d040a5e0]:first-child{background-color:var(--themeColor)}table.theme.col-footer tr .cell[data-v-d040a5e0]:last-child{background-color:var(--themeColor)}table .cell[data-v-d040a5e0]{position:relative;white-space:normal;word-wrap:break-word;vertical-align:middle;font-size:14px;background-clip:padding-box;cursor:default}table .cell.selected[data-v-d040a5e0]:after{content:"";width:100%;height:100%;position:absolute;top:0;left:0;background-color:#6666}table .cell-text[data-v-d040a5e0]{padding:5px;line-height:1.5;-webkit-user-select:none;user-select:none;cursor:text}table .cell-text.active[data-v-d040a5e0]{-webkit-user-select:text;user-select:text}.drag-line[data-v-d040a5e0]{position:absolute;top:0;bottom:0;width:3px;background-color:#d14424;margin-left:-1px;opacity:0;z-index:2;cursor:col-resize}.editable-element-table[data-v-7795910a]{position:absolute}.editable-element-table.lock .element-content[data-v-7795910a]{cursor:default}.rotate-wrapper[data-v-7795910a]{width:100%;height:100%}.element-content[data-v-7795910a]{width:100%;height:100%;position:relative;cursor:move}.table-mask[data-v-7795910a]{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .2s}.table-mask .mask-tip[data-v-7795910a]{position:absolute;top:5px;left:5px;background-color:#00000080;color:#fff;padding:6px 12px;font-size:12px;transform-origin:0 0}.table-mask[data-v-7795910a]:hover:not(.lock){opacity:.9}.editable-element-latex[data-v-b73586f6]{position:absolute}.editable-element-latex.lock .element-content[data-v-b73586f6]{cursor:default}.rotate-wrapper[data-v-b73586f6]{width:100%;height:100%}.element-content[data-v-b73586f6]{width:100%;height:100%;position:relative;cursor:move}.element-content svg[data-v-b73586f6]{transform-origin:0 0;overflow:visible}.video-player[data-v-597c0901]{position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;line-height:1;transform-origin:0 0}.video-player.hide-controller[data-v-597c0901]{cursor:none}.video-player.hide-controller .controller-mask[data-v-597c0901],.video-player.hide-controller .controller[data-v-597c0901]{opacity:0;transform:translateY(100%)}.video-wrap[data-v-597c0901]{position:relative;background:#000;font-size:0;width:100%;height:100%}.video-wrap .video[data-v-597c0901]{width:100%;height:100%}.controller-mask[data-v-597c0901]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom;height:98px;width:100%;position:absolute;bottom:0;transition:all .3s ease}.controller[data-v-597c0901]{position:absolute;bottom:0;left:0;right:0;height:41px;padding:0 20px;-webkit-user-select:none;user-select:none;transition:all .3s ease}.controller .bar-wrap[data-v-597c0901]{padding:5px 0;cursor:pointer;position:absolute;bottom:33px;width:calc(100% - 40px);height:3px}.controller .bar-wrap:hover .bar .played .thumb[data-v-597c0901]{transform:scale(1)}.controller .bar-wrap .bar-time[data-v-597c0901]{position:absolute;left:0;top:-20px;border-radius:4px;padding:5px 7px;background-color:#0000009e;color:#fff;font-size:12px;text-align:center;opacity:1;transition:opacity .1s ease-in-out;word-wrap:normal;word-break:normal;z-index:2;pointer-events:none}.controller .bar-wrap .bar-time.hidden[data-v-597c0901]{opacity:0}.controller .bar-wrap .bar[data-v-597c0901]{position:relative;height:3px;width:100%;background:#fff3;cursor:pointer}.controller .bar-wrap .bar .loaded[data-v-597c0901]{position:absolute;left:0;top:0;bottom:0;background:#fff6;height:3px;transition:all .5s ease;will-change:width}.controller .bar-wrap .bar .played[data-v-597c0901]{position:absolute;left:0;top:0;bottom:0;height:3px;will-change:width;background-color:#fff}.controller .bar-wrap .bar .played .thumb[data-v-597c0901]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .icons[data-v-597c0901]{height:38px;position:absolute;bottom:0;display:flex;align-items:center}.controller .icons.icons-right[data-v-597c0901]{right:15px}.controller .icons .time[data-v-597c0901]{line-height:38px;color:#eee;text-shadow:0 0 2px rgba(0,0,0,.5);vertical-align:middle;font-size:13px;cursor:default}.controller .icons .icon[data-v-597c0901]{width:40px;height:100%;position:relative;cursor:pointer;display:flex;align-items:center;font-size:20px}.controller .icons .icon.play-icon[data-v-597c0901]{font-size:26px}.controller .icons .icon .icon-content[data-v-597c0901]{transition:all .2s ease-in-out;opacity:.8;color:#fff}.controller .icons .icon.loop-icon[data-v-597c0901]{font-size:12px}.controller .icons .icon.loop-icon .icon-content[data-v-597c0901]{opacity:.5}.controller .icons .icon.speed-icon[data-v-597c0901]{font-size:12px;position:relative}.controller .icons .icon .speed-menu[data-v-597c0901]{width:70px;position:absolute;bottom:30px;left:-23px;background-color:#22211b;padding:5px 0;color:#ddd}.controller .icons .icon .speed-menu .speed-menu-item[data-v-597c0901]{padding:8px 0;text-align:center}.controller .icons .icon .speed-menu .speed-menu-item[data-v-597c0901]:hover{background-color:#393833;color:#fff}.controller .icons .icon .speed-menu .speed-menu-item.active[data-v-597c0901]{font-weight:700;color:#fff}.controller .icons .icon.active .icon-content[data-v-597c0901],.controller .icons .icon:hover .icon-content[data-v-597c0901]{opacity:1}.controller .icons .volume[data-v-597c0901]{height:100%;position:relative;cursor:pointer;display:flex;align-items:center}.controller .icons .volume:hover .volume-bar-wrap .volume-bar[data-v-597c0901]{width:45px}.controller .icons .volume:hover .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-597c0901]{transform:scale(1)}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar[data-v-597c0901]{width:45px}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-597c0901]{transform:scale(1)}.controller .icons .volume-bar-wrap[data-v-597c0901]{display:inline-block;margin:0 15px 0 -5px;vertical-align:middle;height:100%}.controller .icons .volume-bar[data-v-597c0901]{position:relative;top:17px;width:0;height:3px;background:#aaa;transition:all .3s ease-in-out}.controller .icons .volume-bar .volume-bar-inner[data-v-597c0901]{position:absolute;bottom:0;left:0;height:100%;transition:all .1s ease;will-change:width;background-color:#fff}.controller .icons .volume-bar .volume-bar-inner .thumb[data-v-597c0901]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .icons .loop[data-v-597c0901]{display:inline-block;height:100%}.bezel[data-v-597c0901]{position:absolute;left:0;right:0;top:0;bottom:0;font-size:22px;color:#fff;pointer-events:none}.bezel .bezel-icon[data-v-597c0901]{position:absolute;top:50%;left:50%;margin:-26px 0 0 -26px;height:52px;width:52px;padding:12px;display:flex;justify-content:center;align-items:center;background:#00000080;border-radius:50%;opacity:0;pointer-events:none;font-size:40px}.bezel .bezel-icon.bezel-transition[data-v-597c0901]{animation:bezel-hide-597c0901 .5s linear}@keyframes bezel-hide-597c0901{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.load-error[data-v-597c0901]{position:absolute;left:0;right:0;top:0;bottom:0;font-size:15px;color:#fff;pointer-events:none;display:flex;justify-content:center;align-items:center}.editable-element-video[data-v-c50d3bc7]{position:absolute}.editable-element-video.lock .handler-border[data-v-c50d3bc7]{cursor:default}.rotate-wrapper[data-v-c50d3bc7]{width:100%;height:100%}.element-content[data-v-c50d3bc7]{width:100%;height:100%;position:relative}.handler-border[data-v-c50d3bc7]{position:absolute;cursor:move}.handler-border.t[data-v-c50d3bc7]{width:100%;height:20px;top:0;left:0}.handler-border.b[data-v-c50d3bc7]{width:100%;height:5px;bottom:0;left:0}.handler-border.l[data-v-c50d3bc7]{width:10px;height:100%;left:0;top:0}.handler-border.r[data-v-c50d3bc7]{width:10px;height:100%;right:0;top:0}.audio-player[data-v-32038f5c]{width:280px;height:50px;position:relative;-webkit-user-select:none;user-select:none;line-height:1;transform-origin:0 0;background:#000}.controller[data-v-32038f5c]{position:absolute;bottom:0;left:0;right:0;height:41px;padding:0 20px;-webkit-user-select:none;user-select:none;transition:all .3s ease}.controller .bar-wrap[data-v-32038f5c]{padding:5px 0;cursor:pointer;position:absolute;bottom:35px;width:calc(100% - 40px);height:3px}.controller .bar-wrap:hover .bar .played .thumb[data-v-32038f5c]{transform:scale(1)}.controller .bar-wrap .bar-time[data-v-32038f5c]{position:absolute;left:0;top:-20px;border-radius:4px;padding:5px 7px;background-color:#0000009e;color:#fff;font-size:12px;text-align:center;opacity:1;transition:opacity .1s ease-in-out;word-wrap:normal;word-break:normal;z-index:2;pointer-events:none}.controller .bar-wrap .bar-time.hidden[data-v-32038f5c]{opacity:0}.controller .bar-wrap .bar[data-v-32038f5c]{position:relative;height:3px;width:100%;background:#fff3;cursor:pointer}.controller .bar-wrap .bar .loaded[data-v-32038f5c]{position:absolute;left:0;top:0;bottom:0;background:#fff6;height:3px;transition:all .5s ease;will-change:width}.controller .bar-wrap .bar .played[data-v-32038f5c]{position:absolute;left:0;top:0;bottom:0;height:3px;will-change:width;background-color:#fff}.controller .bar-wrap .bar .played .thumb[data-v-32038f5c]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .icons[data-v-32038f5c]{height:38px;position:absolute;bottom:0;left:14px;display:flex;align-items:center}.controller .icons .icon[data-v-32038f5c]{width:36px;height:100%;position:relative;cursor:pointer;display:flex;align-items:center;font-size:20px}.controller .icons .icon.play-icon[data-v-32038f5c]{font-size:26px}.controller .icons .icon .icon-content[data-v-32038f5c]{transition:all .2s ease-in-out;opacity:.8;color:#fff}.controller .icons .icon.active .icon-content[data-v-32038f5c],.controller .icons .icon:hover .icon-content[data-v-32038f5c]{opacity:1}.controller .icons .volume[data-v-32038f5c]{height:100%;position:relative;cursor:pointer;display:flex;align-items:center}.controller .icons .volume:hover .volume-bar-wrap .volume-bar[data-v-32038f5c]{width:45px}.controller .icons .volume:hover .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-32038f5c]{transform:scale(1)}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar[data-v-32038f5c]{width:45px}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-32038f5c]{transform:scale(1)}.controller .icons .volume-bar-wrap[data-v-32038f5c]{display:inline-block;margin:0 15px 0 -5px;vertical-align:middle;height:100%}.controller .icons .volume-bar[data-v-32038f5c]{position:relative;top:17px;width:0;height:3px;background:#aaa;transition:all .3s ease-in-out}.controller .icons .volume-bar .volume-bar-inner[data-v-32038f5c]{position:absolute;bottom:0;left:0;height:100%;transition:all .1s ease;will-change:width;background-color:#fff}.controller .icons .volume-bar .volume-bar-inner .thumb[data-v-32038f5c]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .time[data-v-32038f5c]{height:38px;position:absolute;right:20px;bottom:0;display:flex;align-items:center;line-height:38px;color:#eee;text-shadow:0 0 2px rgba(0,0,0,.5);vertical-align:middle;font-size:13px;cursor:default}.controller .time .ptime[data-v-32038f5c]{margin-right:2px}.controller .time .dtime[data-v-32038f5c]{margin-left:2px}.editable-element-audio[data-v-5d8373ba]{position:absolute}.editable-element-audio.lock .audio-icon[data-v-5d8373ba]{cursor:default}.rotate-wrapper[data-v-5d8373ba]{width:100%;height:100%}.element-content[data-v-5d8373ba]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.audio-icon[data-v-5d8373ba]{cursor:move}.audio-player[data-v-5d8373ba]{position:absolute}.mouse-selection[data-v-053bfa3e]{position:absolute;background-color:#d144241a;border:1px solid #d14424;z-index:200}.mouse-selection.quadrant-1[data-v-053bfa3e]{transform-origin:50% 0;transform:rotate(180deg)}.mouse-selection.quadrant-2[data-v-053bfa3e]{transform-origin:0 0;transform:rotate(180deg)}.mouse-selection.quadrant-3[data-v-053bfa3e]{transform-origin:0 50%;transform:rotate(180deg)}.mouse-selection.quadrant-4[data-v-053bfa3e]{transform-origin:0 0;transform:rotate(0)}.grid-lines[data-v-d6e1ea18]{width:100%;height:100%;overflow:visible;z-index:999;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}.viewport-background[data-v-203ea8ff]{width:100%;height:100%;background-position:center;position:absolute}.alignment-line[data-v-7cd3d25d]{position:absolute;z-index:100}.alignment-line .line[data-v-7cd3d25d]{width:0;height:0;border:0 dashed #d14424}.alignment-line .line.vertical[data-v-7cd3d25d]{transform:translateY(-.5px);border-left-width:1px}.alignment-line .line.horizontal[data-v-7cd3d25d]{transform:translate(-.5px);border-top-width:1px}.ruler[data-v-b01be305]{font-size:12px}.h[data-v-b01be305]{position:absolute;background-color:#fff;border:1px solid #eee;height:20px;top:5px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.h .ruler-marker-100[data-v-b01be305]{height:100%;width:10%;line-height:20px;text-align:right;flex-shrink:0;padding-right:5px;position:relative}.h .ruler-marker-100.hide span[data-v-b01be305]{display:none}.h .ruler-marker-100.omit[data-v-b01be305]:before{display:none}.h .ruler-marker-100[data-v-b01be305]:not(:last-child):after{content:"";width:.1px;height:12px;position:absolute;right:0;bottom:0;background-color:#999}.h .ruler-marker-100[data-v-b01be305]:before{content:"";width:.1px;height:8px;position:absolute;right:50%;bottom:0;background-color:#999}.v[data-v-b01be305]{position:absolute;background-color:#fff;border:1px solid #eee;width:20px;left:5px;overflow:hidden}.v .ruler-marker-100[data-v-b01be305]{width:100%;line-height:20px;text-align:right;padding-bottom:5px;position:relative;writing-mode:vertical-rl}.v .ruler-marker-100.hide span[data-v-b01be305]{display:none}.v .ruler-marker-100.omit[data-v-b01be305]:before{display:none}.v .ruler-marker-100[data-v-b01be305]:not(:last-child):after{content:"";height:.1px;width:12px;position:absolute;bottom:0;right:0;background-color:#999}.v .ruler-marker-100[data-v-b01be305]:before{content:"";height:.1px;width:8px;position:absolute;bottom:50%;right:0;background-color:#999}.element-create-selection[data-v-7b17a883]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;cursor:crosshair}.element-create-selection svg[data-v-7b17a883]{overflow:visible}.selection[data-v-7b17a883]{position:absolute;opacity:.8}.selection[data-v-7b17a883]:not(.line){border:1px solid #d14424}.shape-create-canvas[data-v-8ea8c340]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;cursor:crosshair}.shape-create-canvas svg[data-v-8ea8c340]{width:100%;height:100%;overflow:visible}.resize-handler[data-v-bb3f9e62]{position:absolute;width:10px;height:10px;left:0;top:0;margin:-5px 0 0 -5px;border:1px solid #d14424;background-color:#fff;border-radius:1px;cursor:pointer}.resize-handler.left-top.rotate-0[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-0[data-v-bb3f9e62],.resize-handler.left.rotate-45[data-v-bb3f9e62],.resize-handler.right.rotate-45[data-v-bb3f9e62],.resize-handler.left-bottom.rotate-90[data-v-bb3f9e62],.resize-handler.right-top.rotate-90[data-v-bb3f9e62],.resize-handler.top.rotate-135[data-v-bb3f9e62],.resize-handler.bottom.rotate-135[data-v-bb3f9e62]{cursor:nwse-resize}.resize-handler.top.rotate-0[data-v-bb3f9e62],.resize-handler.bottom.rotate-0[data-v-bb3f9e62],.resize-handler.left-top.rotate-45[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-45[data-v-bb3f9e62],.resize-handler.left.rotate-90[data-v-bb3f9e62],.resize-handler.right.rotate-90[data-v-bb3f9e62],.resize-handler.left-bottom.rotate-135[data-v-bb3f9e62],.resize-handler.right-top.rotate-135[data-v-bb3f9e62]{cursor:ns-resize}.resize-handler.left-bottom.rotate-0[data-v-bb3f9e62],.resize-handler.right-top.rotate-0[data-v-bb3f9e62],.resize-handler.top.rotate-45[data-v-bb3f9e62],.resize-handler.bottom.rotate-45[data-v-bb3f9e62],.resize-handler.left-top.rotate-90[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-90[data-v-bb3f9e62],.resize-handler.left.rotate-135[data-v-bb3f9e62],.resize-handler.right.rotate-135[data-v-bb3f9e62]{cursor:nesw-resize}.resize-handler.left.rotate-0[data-v-bb3f9e62],.resize-handler.right.rotate-0[data-v-bb3f9e62],.resize-handler.left-bottom.rotate-45[data-v-bb3f9e62],.resize-handler.right-top.rotate-45[data-v-bb3f9e62],.resize-handler.top.rotate-90[data-v-bb3f9e62],.resize-handler.bottom.rotate-90[data-v-bb3f9e62],.resize-handler.left-top.rotate-135[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-135[data-v-bb3f9e62]{cursor:ew-resize}.border-line[data-v-7114fb45]{position:absolute;width:0;height:0;left:0;top:0;border:0 dashed #d14424}.border-line.top[data-v-7114fb45]{border-top-width:1px}.border-line.bottom[data-v-7114fb45]{border-bottom-width:1px}.border-line.left[data-v-7114fb45]{border-left-width:1px}.border-line.right[data-v-7114fb45]{border-right-width:1px}.border-line.wide[data-v-7114fb45]:before{content:"";position:absolute;background:transparent;cursor:move}.border-line.wide.top[data-v-7114fb45]:before{top:-8px;left:-8px;width:calc(100% + 16px);height:16px}.border-line.wide.bottom[data-v-7114fb45]:before{bottom:-8px;left:-8px;width:calc(100% + 16px);height:16px}.border-line.wide.left[data-v-7114fb45]:before{top:-8px;left:-8px;width:16px;height:calc(100% + 16px)}.border-line.wide.right[data-v-7114fb45]:before{top:-8px;right:-8px;width:16px;height:calc(100% + 16px)}.multi-select-operate[data-v-135c8cb7]{position:absolute;top:0;left:0;z-index:101}.rotate-handler[data-v-9f21fc0f]{position:absolute;width:10px;height:10px;top:-25px;margin-left:-5px;border:1px solid #d14424;background-color:#fff;border-radius:1px;cursor:grab}.rotate-handler[data-v-9f21fc0f]:active{cursor:grabbing}.image-element-operate.cliping[data-v-2a1bef4e]{visibility:hidden}.operate-keypoint-handler[data-v-e65e73bd]{position:absolute;width:10px;height:10px;left:0;top:0;margin:-5px 0 0 -5px;border:1px solid #d14424;background-color:#ffe873;border-radius:1px}svg[data-v-32a06240]{position:absolute;left:0;top:0;pointer-events:none;transform-origin:0 0}.anchor-line[data-v-32a06240]{stroke-width:1px;stroke-dasharray:5 5;opacity:.5}.divider.horizontal[data-v-c7c64e0b]{width:100%;margin:24px 0;border-block-start:1px solid rgba(5,5,5,.06)}.divider.vertical[data-v-c7c64e0b]{position:relative;height:1em;display:inline-block;margin:0 8px;border-inline-start:1px solid rgba(5,5,5,.06)}.link-handler[data-v-f8f46f78]{height:30px;position:absolute;left:0;font-size:12px;padding:0 10px;background-color:#fff;box-shadow:3px 3px 3px #00000026;display:flex;align-items:center;color:#d14424}.link[data-v-f8f46f78]{max-width:300px;margin-right:20px;word-break:keep-all;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.btns[data-v-f8f46f78]{display:flex;align-items:center}.btns .btn[data-v-f8f46f78]{word-break:keep-all;cursor:pointer}.operate[data-v-b96daa51]{position:absolute;z-index:100;-webkit-user-select:none;user-select:none}.operate.multi-select[data-v-b96daa51]{opacity:.2}.animation-index[data-v-b96daa51]{position:absolute;top:0;left:-24px;font-size:12px}.animation-index .index-item[data-v-b96daa51]{width:18px;height:18px;background-color:#fff;color:#d14424;border:1px solid #d14424;display:flex;justify-content:center;align-items:center}.animation-index .index-item+.index-item[data-v-b96daa51]{margin-top:5px}.base-element-image[data-v-71d24108]{position:absolute}.rotate-wrapper[data-v-71d24108]{width:100%;height:100%}.element-content[data-v-71d24108]{width:100%;height:100%;position:relative}.element-content .image-content[data-v-71d24108]{width:100%;height:100%;overflow:hidden;position:relative}.element-content img[data-v-71d24108]{position:absolute}.color-mask[data-v-71d24108]{position:absolute;top:0;bottom:0;left:0;right:0}.base-element-text[data-v-e8894a41]{position:absolute}.rotate-wrapper[data-v-e8894a41]{width:100%;height:100%}.element-content[data-v-e8894a41]{position:relative;padding:10px;line-height:1.5;word-break:break-word}.element-content .text[data-v-e8894a41]{position:relative}.base-element-shape[data-v-2d39d3d1]{position:absolute}.rotate-wrapper[data-v-2d39d3d1]{width:100%;height:100%}.element-content[data-v-2d39d3d1]{width:100%;height:100%;position:relative}.element-content svg[data-v-2d39d3d1]{transform-origin:0 0;overflow:visible}.shape-text[data-v-2d39d3d1]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;padding:10px;line-height:1.2;word-break:break-word}.shape-text.top[data-v-2d39d3d1]{justify-content:flex-start}.shape-text.middle[data-v-2d39d3d1]{justify-content:center}.shape-text.bottom[data-v-2d39d3d1]{justify-content:flex-end}.base-element-line[data-v-e7dc2b42]{position:absolute}.element-content[data-v-e7dc2b42]{width:100%;height:100%;position:relative}.element-content svg[data-v-e7dc2b42]{transform-origin:0 0;overflow:visible}.base-element-chart[data-v-37ca5799]{position:absolute}.rotate-wrapper[data-v-37ca5799],.element-content[data-v-37ca5799]{width:100%;height:100%}.static-table[data-v-6d887dcd]{position:relative;-webkit-user-select:none;user-select:none}table[data-v-6d887dcd]{width:100%;position:relative;table-layout:fixed;border-collapse:collapse;border-spacing:0;border:0;word-wrap:break-word;-webkit-user-select:none;user-select:none;--themeColor: $themeColor;--subThemeColor1: $themeColor;--subThemeColor2: $themeColor}table.theme[data-v-6d887dcd]{background-color:#fff}table.theme tr:nth-child(2n) .cell[data-v-6d887dcd]{background-color:var(--subThemeColor1)}table.theme tr:nth-child(odd) .cell[data-v-6d887dcd]{background-color:var(--subThemeColor2)}table.theme.row-header tr:first-child .cell[data-v-6d887dcd]{background-color:var(--themeColor)}table.theme.row-footer tr:last-child .cell[data-v-6d887dcd]{background-color:var(--themeColor)}table.theme.col-header tr .cell[data-v-6d887dcd]:first-child{background-color:var(--themeColor)}table.theme.col-footer tr .cell[data-v-6d887dcd]:last-child{background-color:var(--themeColor)}table .cell[data-v-6d887dcd]{position:relative;white-space:normal;word-wrap:break-word;vertical-align:middle;background-clip:padding-box}table .cell-text[data-v-6d887dcd]{padding:5px;line-height:1.5}.base-element-table[data-v-77cfa6e4]{position:absolute}.rotate-wrapper[data-v-77cfa6e4]{width:100%;height:100%}.element-content[data-v-77cfa6e4]{width:100%;height:100%;position:relative}.base-element-latex[data-v-93374af9]{position:absolute}.rotate-wrapper[data-v-93374af9]{width:100%;height:100%}.element-content[data-v-93374af9]{width:100%;height:100%;position:relative}.element-content svg[data-v-93374af9]{transform-origin:0 0;overflow:visible}.base-element-video[data-v-2fb0e771]{position:absolute}.rotate-wrapper[data-v-2fb0e771]{width:100%;height:100%}.element-content[data-v-2fb0e771]{width:100%;height:100%;background-color:#000;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;justify-content:center;align-items:center}.icon[data-v-2fb0e771]{font-size:140px;color:#aaa}.base-element-audio[data-v-b33e6120]{position:absolute}.rotate-wrapper[data-v-b33e6120]{width:100%;height:100%}.element-content[data-v-b33e6120]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.audio-icon[data-v-b33e6120]{cursor:move}.thumbnail-slide[data-v-cbd76d0a]{background-color:#fff;overflow:hidden;-webkit-user-select:none;user-select:none}.elements[data-v-cbd76d0a]{transform-origin:0 0}.background[data-v-cbd76d0a]{width:100%;height:100%;background-position:center;position:absolute}.placeholder[data-v-cbd76d0a]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.tabs[data-v-c7f9dce0]{display:flex;-webkit-user-select:none;user-select:none;line-height:1}.tabs[data-v-c7f9dce0]:not(.card){font-size:13px;align-items:center;justify-content:flex-start;border-bottom:1px solid #eee}.tabs:not(.card).space-around[data-v-c7f9dce0]{justify-content:space-around}.tabs:not(.card).space-between[data-v-c7f9dce0]{justify-content:space-between}.tabs:not(.card) .tab[data-v-c7f9dce0]{text-align:center;border-bottom:2px solid transparent;padding:8px 10px;cursor:pointer}.tabs:not(.card) .tab.active[data-v-c7f9dce0]{border-bottom:2px solid var(--color, #d14424)}.tabs.card[data-v-c7f9dce0]{height:40px;font-size:12px;flex-shrink:0}.tabs.card .tab[data-v-c7f9dce0]{flex:1;display:flex;justify-content:center;align-items:center;background-color:#f9f9f9;border-bottom:1px solid #eee;cursor:pointer}.tabs.card .tab.active[data-v-c7f9dce0]{background-color:transparent;border-bottom-color:transparent}.tabs.card .tab+.tab[data-v-c7f9dce0]{border-left:1px solid #eee}.button[data-v-3e3d85be]{height:32px;line-height:32px;outline:0;font-size:13px;padding:0 15px;text-align:center;color:#41464b;border-radius:2px;-webkit-user-select:none;user-select:none;letter-spacing:1px;cursor:pointer}.button.small[data-v-3e3d85be]{height:24px;line-height:24px;padding:0 7px;letter-spacing:0}.button.default[data-v-3e3d85be]{background-color:#fff;border:1px solid #d9d9d9;color:#41464b}.button.default[data-v-3e3d85be]:hover{color:#d14424;border-color:#d14424}.button.primary[data-v-3e3d85be]{background-color:#d14424;border:1px solid #d14424;color:#fff}.button.primary[data-v-3e3d85be]:hover{background-color:#de6949;border-color:#de6949}.button.checkbox[data-v-3e3d85be],.button.radio[data-v-3e3d85be]{background-color:#fff;border:1px solid #d9d9d9;color:#41464b}.button.checkbox[data-v-3e3d85be]:not(.checked):hover,.button.radio[data-v-3e3d85be]:not(.checked):hover{color:#d14424}.button.checked[data-v-3e3d85be]{color:#fff;background-color:#d14424;border-color:#d14424}.button.checked[data-v-3e3d85be]:hover{background-color:#de6949;border-color:#de6949}.button.disabled[data-v-3e3d85be]{background-color:#f5f5f5;border:1px solid #d9d9d9;color:#b7b7b7;cursor:default}.select[data-v-618af0ca]{width:100%;height:32px;padding-right:32px;border-radius:2px;transition:border-color .25s;font-size:13px;-webkit-user-select:none;user-select:none;background-color:#fff;border:1px solid #d9d9d9;position:relative;cursor:pointer}.select[data-v-618af0ca]:not(.disabled):hover{border-color:#d14424}.select.disabled[data-v-618af0ca]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7;cursor:default}.select .selector[data-v-618af0ca]{min-width:50px;height:30px;line-height:30px;padding-left:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.options[data-v-618af0ca]{max-height:260px;padding:5px;overflow:auto;text-align:left;font-size:13px;-webkit-user-select:none;user-select:none}.option[data-v-618af0ca]{height:32px;line-height:32px;padding:0 5px;border-radius:2px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.option.disabled[data-v-618af0ca]{color:#b7b7b7;cursor:default}.option[data-v-618af0ca]:not(.disabled,.selected):hover{background-color:#6666660d}.option.selected[data-v-618af0ca]{background-color:#d144240d}.icon[data-v-618af0ca]{width:32px;height:30px;color:#bfbfbf;position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center}.link-dialog[data-v-de4d9db3]{font-size:13px;line-height:1.675}.input[data-v-de4d9db3]{width:100%;height:32px}.preview[data-v-de4d9db3]{margin-top:12px}.thumbnail[data-v-de4d9db3]{border:1px solid rgba(209,68,36,.15);margin-top:5px}.btns[data-v-de4d9db3]{margin-top:20px;text-align:right}.modal[data-v-4d27bcca],.mask[data-v-4d27bcca]{top:0;left:0;width:100%;height:100%;z-index:5000}.modal[data-v-4d27bcca]{position:fixed;display:flex;justify-content:center;align-items:center;outline:0;border:0}.mask[data-v-4d27bcca]{position:absolute;background:#00000040}.modal-content[data-v-4d27bcca]{z-index:5001;padding:20px;background:#fff;border-radius:2px;overflow:hidden;box-shadow:0 1px 3px #0003;position:relative}.close-btn[data-v-4d27bcca]{width:20px;height:20px;display:flex;justify-content:center;align-items:center;position:absolute;top:16px;right:16px;cursor:pointer}.modal-fade-enter-active[data-v-4d27bcca]{animation:modal-fade-enter-4d27bcca .25s both ease-in}.modal-fade-leave-active[data-v-4d27bcca]{animation:modal-fade-leave-4d27bcca .25s both ease-out}.modal-zoom-enter-active[data-v-4d27bcca]{animation:modal-zoom-enter-4d27bcca .25s both cubic-bezier(.4,0,0,1.5)}.modal-zoom-leave-active[data-v-4d27bcca]{animation:modal-zoom-leave-4d27bcca .25s both}@keyframes modal-fade-enter-4d27bcca{0%{opacity:0}}@keyframes modal-fade-leave-4d27bcca{to{opacity:0}}@keyframes modal-zoom-enter-4d27bcca{0%{transform:scale3d(.3,.3,.3)}}@keyframes modal-zoom-leave-4d27bcca{to{transform:scale3d(.3,.3,.3)}}.canvas[data-v-47bbcf7b]{height:100%;-webkit-user-select:none;user-select:none;overflow:hidden;background-color:#f9f9f9;position:relative}.drag-mask[data-v-47bbcf7b]{cursor:grab;position:absolute;top:0;right:0;bottom:0;left:0}.viewport-wrapper[data-v-47bbcf7b]{position:absolute;box-shadow:0 0 15px #0000001a}.viewport[data-v-47bbcf7b]{position:absolute;top:0;left:0;transform-origin:0 0}.shape-item-thumbnail[data-v-2896ae03]{position:relative;cursor:pointer}.shape-content[data-v-2896ae03]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center}.shape-content:hover .shape-path[data-v-2896ae03]:not(.outlined){stroke:#d14424}.shape-content:hover .shape-path.outlined[data-v-2896ae03]{fill:#d14424}.shape-content svg[data-v-2896ae03]:not(:root){overflow:visible}.shape-pool[data-v-553b0d02]{width:340px;max-height:520px;overflow:auto;margin-top:-12px;margin-bottom:-12px;margin-right:-12px;padding-right:12px;padding-top:12px}.category-name[data-v-553b0d02]{width:100%;font-size:13px;margin-bottom:10px;border-left:4px solid #aaa;background-color:#eee;padding:2px 0 2px 10px}.shape-list[data-v-553b0d02]{display:flex;flex-wrap:wrap;align-content:flex-start;margin-bottom:10px}.shape-item[data-v-553b0d02]{width:8%;margin-bottom:calc(20% / 9);height:0;padding-bottom:8%;flex-shrink:0}.shape-item[data-v-553b0d02]:not(:nth-child(10n)){margin-right:calc(20% / 9)}.line-pool[data-v-b07efd40]{width:220px;overflow:auto;margin-bottom:-12px;margin-right:-12px;padding-right:12px}.category-name[data-v-b07efd40]{width:100%;font-size:13px;margin-bottom:10px;border-left:4px solid #aaa;background-color:#eee;padding:2px 0 2px 10px}.line-list[data-v-b07efd40]{display:flex;flex-wrap:wrap;align-content:flex-start;margin-bottom:10px}.line-item[data-v-b07efd40]{width:19%;margin-bottom:1.25%;height:0;padding-bottom:19%;flex-shrink:0;position:relative;cursor:pointer}.line-item[data-v-b07efd40]:not(:nth-child(5n)){margin-right:1.25%}.line-content[data-v-b07efd40]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#999}.line-content[data-v-b07efd40]:hover{color:#d14424}.line-content svg[data-v-b07efd40]:not(:root){overflow:visible}.chart-pool[data-v-a4bc3ce2]{width:200px;margin-bottom:-5px;display:flex;flex-wrap:wrap;align-content:flex-start}.chart-item[data-v-a4bc3ce2]{width:19%;margin-bottom:1.25%;height:0;padding-bottom:19%;flex-shrink:0;position:relative;cursor:pointer}.chart-item[data-v-a4bc3ce2]:not(:nth-child(5n)){margin-right:1.25%}.chart-content[data-v-a4bc3ce2]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#999}.chart-content[data-v-a4bc3ce2]:hover{color:#d14424}.number-input[data-v-246b23f6]{background-color:#fff;border:1px solid #d9d9d9;padding:0 0 0 5px;border-radius:2px;transition:border-color .25s;font-size:13px;display:inline-flex}.number-input .input-wrap[data-v-246b23f6]{flex:1;color:#41464b;padding:0 0 0 5px;position:relative}.number-input:not(.disabled) .input-wrap:hover .handlers[data-v-246b23f6]{opacity:1}.number-input .handlers[data-v-246b23f6]{width:20px;position:absolute;top:0;bottom:0;right:0;display:flex;flex-direction:column;font-size:6px;color:#999;opacity:0;-webkit-user-select:none;user-select:none;transition:opacity .25s}.number-input .handlers .handler[data-v-246b23f6]{width:100%;height:50%;display:flex;justify-content:center;align-items:center;border-left:1px solid #d9d9d9;cursor:pointer}.number-input .handlers .handler+.handler[data-v-246b23f6]{border-top:1px solid #d9d9d9}.number-input .handlers .handler[data-v-246b23f6]:hover{color:#d14424}.number-input input[data-v-246b23f6]{width:100%;min-width:0;padding:0;height:30px;line-height:30px;outline:0;border:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.number-input input[data-v-246b23f6]::placeholder{color:#bfbfbf}.number-input[data-v-246b23f6]:not(.disabled):hover,.number-input.focused[data-v-246b23f6]{border-color:#d14424}.number-input.disabled[data-v-246b23f6]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7}.number-input .prefix[data-v-246b23f6],.number-input .suffix[data-v-246b23f6]{display:flex;justify-content:center;align-items:center;line-height:30px;-webkit-user-select:none;user-select:none}.table-generator[data-v-81680e19]{width:100%;margin-top:-12px}.title[data-v-81680e19]{height:28px;line-height:28px;background-color:#ededed;margin:0 -12px 12px;padding:0 14px;font-size:12px;display:flex;justify-content:space-between;-webkit-user-select:none;user-select:none}.title .right[data-v-81680e19]{cursor:pointer}.title .right[data-v-81680e19]:hover{color:#d14424}table[data-v-81680e19]{border-collapse:separate}td[data-v-81680e19]{width:23px;height:23px;line-height:23px;border:2px solid #fff;background-color:#f7f7f7}.cell[data-v-81680e19]{width:100%;height:100%;border:1px solid #dcdcdc}.cell.active[data-v-81680e19]{background-color:#d144241a;border-color:#d14424}.custom[data-v-81680e19]{width:230px}.custom .row[data-v-81680e19]{display:flex;align-items:center}.custom .row+.row[data-v-81680e19]{margin-top:10px}.btns[data-v-81680e19]{margin-top:10px;text-align:right}.btns .btn[data-v-81680e19]{margin-left:10px}.media-input[data-v-999b18ca]{width:480px}.btns[data-v-999b18ca]{margin-top:10px;text-align:right}svg[data-v-fa1b116d]{overflow:hidden}.textarea[data-v-2b83189c]{outline:0;width:100%;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;padding:10px;transition:border-color .25s;box-sizing:border-box;line-height:1.675;resize:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.textarea[data-v-2b83189c]:focus{border-color:#d14424;background-color:#fff}.textarea.resizable[data-v-2b83189c]{resize:vertical}.textarea.disabled[data-v-2b83189c]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7}.textarea[data-v-2b83189c]::placeholder{color:#bfbfbf}.latex-editor[data-v-44075c46]{height:560px}.container[data-v-44075c46]{height:calc(100% - 50px);display:flex}.left[data-v-44075c46]{width:540px;height:100%;display:flex;flex-direction:column;flex-shrink:0}.input-area[data-v-44075c46]{flex:1}.input-area textarea[data-v-44075c46]{height:100%!important;border-color:#eee!important;padding:10px!important}.input-area textarea[data-v-44075c46]:focus{box-shadow:none!important}.preview[data-v-44075c46]{height:160px;display:flex;justify-content:center;align-items:center;text-align:center;margin-top:20px;border:1px solid #eee;-webkit-user-select:none;user-select:none}.placeholder[data-v-44075c46]{color:#888;font-size:13px}.preview-content[data-v-44075c46]{width:100%;height:100%;padding:10px;display:flex;justify-content:center;align-items:center}.right[data-v-44075c46]{width:280px;height:100%;margin-left:20px;border:solid 1px #eee;background-color:#fff;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.content[data-v-44075c46]{height:calc(100% - 40px);font-size:13px}.formula[data-v-44075c46]{height:100%;padding:12px;overflow:auto;overflow:overlay}.formula-item+.formula-item[data-v-44075c46]{margin-top:10px}.formula-item .formula-title[data-v-44075c46]{margin-bottom:5px}.formula-item .formula-item-content[data-v-44075c46]{height:60px;padding:5px;display:flex;align-items:center;background-color:#f9f9f9;cursor:pointer}.symbol[data-v-44075c46]{height:100%;display:flex;flex-direction:column}.symbol-pool[data-v-44075c46]{display:flex;flex-wrap:wrap;flex:1;padding:12px;overflow:auto;overflow:overlay}.symbol-item[data-v-44075c46]{display:flex;justify-content:center;align-items:center}.symbol-item[data-v-44075c46]:hover{background-color:#f9f9f9;cursor:pointer}.footer[data-v-44075c46]{height:50px;display:flex;justify-content:flex-end;align-items:flex-end}.footer .btn[data-v-44075c46]{margin-left:10px}.canvas-tool[data-v-f177f23a]{position:relative;border-bottom:1px solid #eee;background-color:#fff;display:flex;justify-content:space-between;padding:0 10px;font-size:13px;-webkit-user-select:none;user-select:none}.left-handler[data-v-f177f23a],.more[data-v-f177f23a]{display:flex;align-items:center}.add-element-handler[data-v-f177f23a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex}.add-element-handler .handler-item[data-v-f177f23a]{width:32px}.add-element-handler .handler-item[data-v-f177f23a]:not(.group-btn):hover{background-color:#f1f1f1}.add-element-handler .handler-item.active[data-v-f177f23a]{color:#d14424}.add-element-handler .handler-item.group-btn[data-v-f177f23a]{width:auto;margin-right:4px}.add-element-handler .handler-item.group-btn[data-v-f177f23a]:hover{background-color:#f3f3f3}.add-element-handler .handler-item.group-btn .icon[data-v-f177f23a],.add-element-handler .handler-item.group-btn .arrow[data-v-f177f23a]{height:100%;display:flex;justify-content:center;align-items:center}.add-element-handler .handler-item.group-btn .icon[data-v-f177f23a]{width:26px;padding:0 2px}.add-element-handler .handler-item.group-btn .icon[data-v-f177f23a]:hover{background-color:#e9e9e9}.add-element-handler .handler-item.group-btn .icon.active[data-v-f177f23a]{color:#d14424}.add-element-handler .handler-item.group-btn .arrow[data-v-f177f23a]{font-size:12px}.add-element-handler .handler-item.group-btn .arrow[data-v-f177f23a]:hover{background-color:#e9e9e9}.handler-item[data-v-f177f23a]{height:24px;font-size:14px;margin:0 2px;display:flex;justify-content:center;align-items:center;border-radius:2px;overflow:hidden;cursor:pointer}.handler-item.disable[data-v-f177f23a]{opacity:.5}.left-handler .handler-item[data-v-f177f23a],.right-handler .handler-item[data-v-f177f23a]{padding:0 8px}.left-handler .handler-item.active[data-v-f177f23a],.left-handler .handler-item[data-v-f177f23a]:not(.disable):hover,.right-handler .handler-item.active[data-v-f177f23a],.right-handler .handler-item[data-v-f177f23a]:not(.disable):hover{background-color:#f1f1f1}.right-handler[data-v-f177f23a]{display:flex;align-items:center}.right-handler .text[data-v-f177f23a]{display:inline-block;width:40px;text-align:center;cursor:pointer}.right-handler .viewport-size[data-v-f177f23a]{font-size:13px}@media screen and (width <= 1200px){.right-handler .text[data-v-f177f23a],.more[data-v-f177f23a]{display:none}}@media screen and (width <= 1000px){.left-handler[data-v-f177f23a],.right-handler[data-v-f177f23a]{display:none}}.layout-pool[data-v-0166cc70]{width:394px;height:500px;padding:2px 12px 2px 2px;margin-right:-12px;overflow:auto;display:flex;flex-wrap:wrap;align-content:flex-start}.layout-item[data-v-0166cc70]{width:48%;margin-bottom:4%}.layout-item[data-v-0166cc70]:not(:nth-child(2n)){margin-right:4%}.layout-item[data-v-0166cc70]:nth-last-child(2),.layout-item[data-v-0166cc70]:last-child{margin-bottom:0}.layout-item .thumbnail[data-v-0166cc70]{outline:2px solid #eee;transition:outline .2s;cursor:pointer}.layout-item .thumbnail[data-v-0166cc70]:hover{outline-color:#d14424}.thumbnails[data-v-d7a17fcd]{border-right:solid 1px #eee;background-color:#fff;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.add-slide[data-v-d7a17fcd]{height:40px;font-size:12px;display:flex;flex-shrink:0;border-bottom:1px solid #eee;cursor:pointer}.add-slide .btn[data-v-d7a17fcd]{flex:1;display:flex;justify-content:center;align-items:center}.add-slide .btn[data-v-d7a17fcd]:hover{background-color:#f9f9f9}.add-slide .select-btn[data-v-d7a17fcd]{width:30px;height:100%;display:flex;justify-content:center;align-items:center;border-left:1px solid #eee}.add-slide .select-btn[data-v-d7a17fcd]:hover{background-color:#f9f9f9}.add-slide .icon[data-v-d7a17fcd]{margin-right:3px;font-size:14px}.thumbnail-list[data-v-d7a17fcd]{padding:5px 0;flex:1;overflow:auto}.thumbnail-item[data-v-d7a17fcd]{display:flex;justify-content:center;align-items:center;padding:5px 0}.thumbnail-item .thumbnail[data-v-d7a17fcd]{outline:2px solid rgba(209,68,36,.15)}.thumbnail-item.active .label[data-v-d7a17fcd]{color:#d14424}.thumbnail-item.active .thumbnail[data-v-d7a17fcd],.thumbnail-item.selected .thumbnail[data-v-d7a17fcd]{outline-color:#d14424}.label[data-v-d7a17fcd]{font-size:12px;color:#999;width:20px;cursor:grab}.label.offset-left[data-v-d7a17fcd]{position:relative;left:-4px}.label[data-v-d7a17fcd]:active{cursor:grabbing}.page-number[data-v-d7a17fcd]{height:40px;font-size:12px;border-top:1px solid #eee;line-height:40px;text-align:center;color:#666}.slider[data-v-a7428be4]{width:100%;height:12px;padding:4px 0;-webkit-user-select:none;user-select:none}.slider.disabled .track[data-v-a7428be4]{background-color:#b4b4b4}.slider.disabled .thumb[data-v-a7428be4]{outline:2px solid #b4b4b4}.slider[data-v-a7428be4]:not(.disabled){cursor:pointer}.slider:not(.disabled) .bar[data-v-a7428be4]:hover{background-color:#f0f0f0}.slider:not(.disabled) .track[data-v-a7428be4]:hover{background-color:#de6949}.slider:not(.disabled) .thumb[data-v-a7428be4]:hover,.slider:not(.disabled) .thumb[data-v-a7428be4]:active{outline:4px solid #d14424}.bar[data-v-a7428be4]{width:calc(100% - 10px);margin-left:5px;height:4px;border-radius:2px;position:relative;background-color:#f5f5f5;-webkit-user-select:none;user-select:none;transition:background-color .2s}.track[data-v-a7428be4]{position:absolute;top:0;left:0;height:100%;background-color:#d14424;transition:background-color .2s}.thumb[data-v-a7428be4]{position:absolute;top:50%;left:0;width:10px;height:10px;background-color:#fff;outline:2px solid #d14424;transform:translate(-50%,-50%);border-radius:50%;z-index:100}.thumb[data-v-a7428be4]:hover:before,.thumb[data-v-a7428be4]:hover:after,.thumb[data-v-a7428be4]:active:before,.thumb[data-v-a7428be4]:active:after{display:block}.thumb[data-v-a7428be4]:before{content:attr(data-tooltip);min-width:28px;display:none;position:absolute;left:50%;bottom:24px;transform:translate(-50%);background-color:#262626;text-align:center;color:#fff;border-radius:2px;padding:6px 5px;font-size:12px}.thumb[data-v-a7428be4]:after{content:"";display:none;position:absolute;left:50%;bottom:15px;transform:translate(-50%);border:5px solid transparent;border-top-color:#262626}.row[data-v-c3b27b40]{width:100%;display:flex;align-items:center;margin-bottom:10px}.color-btn[data-v-5e2a7fc5]{width:100%;display:flex!important;align-items:center;justify-content:center;padding:0!important}.color-block[data-v-5e2a7fc5]{height:20px;margin-left:8px;flex:1;outline:1px dashed rgba(102,102,102,.12);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAEBJREFUOE9jfPbs2X8GIoCkpCQRqhgYGEcNxBlOo2GIM2iGQLL5//8/UTnl+fPnxOWUUQNxhtNoGOLOKYM+2QAAh2Nq10DwkukAAAAASUVORK5CYII=)}.content[data-v-5e2a7fc5]{width:100%;height:100%}.color-btn-icon[data-v-5e2a7fc5]{width:32px;font-size:13px;color:#bfbfbf}.checkerboard[data-v-46275348]{background-size:contain;position:absolute;top:0;right:0;bottom:0;left:0}.alpha[data-v-429f62d3]{position:absolute;top:0;right:0;bottom:0;left:0}.alpha-checkboard-wrap[data-v-429f62d3]{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0}.alpha-gradient[data-v-429f62d3]{position:absolute;top:0;right:0;bottom:0;left:0}.alpha-container[data-v-429f62d3]{cursor:pointer;position:relative;z-index:2;height:100%;margin:0 3px}.alpha-pointer[data-v-429f62d3]{z-index:2;position:absolute}.alpha-picker[data-v-429f62d3]{cursor:pointer;width:4px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}.hue[data-v-21ccc370]{background:linear-gradient(to right,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);position:absolute;top:0;right:0;bottom:0;left:0}.hue-container[data-v-21ccc370]{cursor:pointer;margin:0 2px;position:relative;height:100%}.hue-pointer[data-v-21ccc370]{z-index:2;position:absolute;top:0}.hue-picker[data-v-21ccc370]{cursor:pointer;margin-top:1px;width:4px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.saturation[data-v-4a728d90],.saturation-white[data-v-4a728d90],.saturation-black[data-v-4a728d90]{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer}.saturation-white[data-v-4a728d90]{background:linear-gradient(to right,#fff,#fff0)}.saturation-black[data-v-4a728d90]{background:linear-gradient(to top,#000,#0000)}.saturation-pointer[data-v-4a728d90]{cursor:pointer;position:absolute}.saturation-circle[data-v-4a728d90]{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.editable-input[data-v-573b4dde]{width:100%;position:relative;overflow:hidden;text-align:center;font-size:14px}.editable-input[data-v-573b4dde]:after{content:"#";position:absolute;left:0;top:50%;transform:translateY(-50%);color:#999}.input-content[data-v-573b4dde]{width:100%;padding:3px;border:0;border-bottom:1px solid #ddd;outline:none;text-align:center}.input-label[data-v-573b4dde]{text-transform:capitalize}.color-picker[data-v-9ae27223]{position:relative;width:240px;background:#fff;-webkit-user-select:none;user-select:none;margin-bottom:-10px}.picker-saturation-wrap[data-v-9ae27223]{width:100%;padding-bottom:50%;position:relative;overflow:hidden}.picker-controls[data-v-9ae27223]{display:flex}.picker-sliders[data-v-9ae27223]{padding:4px 0;flex:1}.picker-hue-wrap[data-v-9ae27223]{position:relative;height:10px}.picker-alpha-wrap[data-v-9ae27223]{position:relative;height:10px;margin-top:4px;overflow:hidden}.picker-color-wrap[data-v-9ae27223]{width:24px;height:24px;position:relative;margin-top:4px;margin-right:4px;outline:1px dashed rgba(102,102,102,.12)}.picker-color-wrap .checkerboard[data-v-9ae27223]{background-size:auto}.picker-current-color[data-v-9ae27223]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.picker-field[data-v-9ae27223]{display:flex;margin-bottom:8px}.picker-field .transparent[data-v-9ae27223]{width:24px;height:24px;margin-top:4px;margin-left:8px;position:relative;cursor:pointer}.picker-field .transparent[data-v-9ae27223]:after{content:"";width:26px;height:2px;position:absolute;top:11px;left:-1px;transform:rotate(-45deg);background-color:red}.picker-field .transparent .checkerboard[data-v-9ae27223]{background-size:auto}.picker-field .straw[data-v-9ae27223]{width:24px;height:24px;margin-top:4px;margin-left:8px;display:flex;justify-content:center;align-items:center;font-size:20px;background-color:#f5f5f5;outline:1px solid #f1f1f1;cursor:pointer}.picker-field .input[data-v-9ae27223]{flex:1}.picker-presets[data-v-9ae27223]{display:flex;flex-wrap:wrap;align-content:flex-start}.picker-presets-color[data-v-9ae27223]{width:7%;margin-bottom:calc(30% / 9);height:0;padding-bottom:7%;flex-shrink:0;position:relative;cursor:pointer}.picker-presets-color[data-v-9ae27223]:not(:nth-child(10n)){margin-right:calc(30% / 9)}.picker-presets-color.alpha[data-v-9ae27223]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAADBJREFUOE9jfPbs2X8GPEBSUhKfNAPjqAHDIgz+//+PNx08f/4cfzoYNYCBceiHAQC5flV5JzgrxQAAAABJRU5ErkJggg==)}.picker-presets-color-content[data-v-9ae27223]{position:absolute;top:0;right:0;bottom:0;left:0}.picker-gradient-presets[data-v-9ae27223]{display:flex;flex-wrap:wrap;align-content:flex-start}.picker-gradient-col[data-v-9ae27223]{width:7%;margin-bottom:calc(30% / 9);display:flex;flex-direction:column}.picker-gradient-col[data-v-9ae27223]:not(:nth-child(10n)){margin-right:calc(30% / 9)}.picker-gradient-color[data-v-9ae27223]{width:100%;height:16px;position:relative;cursor:pointer}.recent-colors-title[data-v-9ae27223]{font-size:12px;margin-bottom:4px}.switch[data-v-a0d44a99]{height:20px;display:inline-block;cursor:pointer}.switch:not(.disabled).active .switch-core[data-v-a0d44a99]{border-color:#d14424;background-color:#d14424}.switch:not(.disabled).active .switch-core[data-v-a0d44a99]:after{left:100%;margin-left:-17px}.switch.disabled[data-v-a0d44a99]{cursor:default}.switch.disabled .switch-core[data-v-a0d44a99]:after{background-color:#f5f5f5}.switch-core[data-v-a0d44a99]{margin:0;display:inline-block;position:relative;width:40px;height:20px;border:1px solid #d9d9d9;outline:none;border-radius:10px;box-sizing:border-box;background:#d9d9d9;transition:border-color .3s,background-color .3s;vertical-align:middle}.switch-core[data-v-a0d44a99]:after{content:"";position:absolute;top:1px;left:1px;border-radius:100%;transition:all .3s;width:16px;height:16px;background-color:#fff}.row[data-v-fd752d80]{width:100%;height:30px;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-fd752d80]{text-align:right}.row[data-v-814f50a5]{width:100%;height:30px;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-814f50a5]{text-align:right}.text-color-btn[data-v-98853be0]{width:100%;display:flex!important;flex-direction:column;justify-content:center;align-items:center;padding:0}.text-color-block[data-v-98853be0]{width:17px;height:4px;margin-top:1px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAACdJREFUGFdjfPbs2X8GBgYGSUlJEMXAiCHw//9/sIrnz59DVKALAADNxxVfaiODNQAAAABJRU5ErkJggg==)}.text-color-block .text-color-block-content[data-v-98853be0]{width:100%;height:100%}.button-group[data-v-6a640ef5]{display:flex;align-items:center}.button-group[data-v-6a640ef5] button.button{border-radius:0;border-left-width:1px;border-right-width:0;display:inline-block}.button-group[data-v-6a640ef5]:not(.passive) button.button:not(:last-child,.radio,.checkbox):hover{position:relative}.button-group[data-v-6a640ef5]:not(.passive) button.button:not(:last-child,.radio,.checkbox):hover:after{content:"";width:1px;height:calc(100% + 2px);background-color:#d14424;position:absolute;top:-1px;right:-1px}.button-group[data-v-6a640ef5]:not(.passive) button.button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left-width:1px}.button-group[data-v-6a640ef5]:not(.passive) button.button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right-width:1px}.button-group.passive[data-v-6a640ef5] button.button:not(.last,.radio,.checkbox):hover{position:relative}.button-group.passive[data-v-6a640ef5] button.button:not(.last,.radio,.checkbox):hover:after{content:"";width:1px;height:calc(100% + 2px);background-color:#d14424;position:absolute;top:-1px;right:-1px}.button-group.passive[data-v-6a640ef5] button.button.first{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left-width:1px}.button-group.passive[data-v-6a640ef5] button.button.last{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right-width:1px}.select-group[data-v-ed58c719]{display:flex;align-items:center}.select-group[data-v-ed58c719] .select-wrap .select{border-radius:0;border-left-width:0;border-right-width:0}.select-group[data-v-ed58c719] .select-wrap+.select-wrap .select{border-left-width:1px}.select-group[data-v-ed58c719] .select-wrap:hover+.select-wrap .select{border-left-color:#d14424}.select-group[data-v-ed58c719] .select-wrap:first-child .select{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left-width:1px}.select-group[data-v-ed58c719] .select-wrap:last-child .select{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right-width:1px}.text-style-panel[data-v-becd4c4e]{-webkit-user-select:none;user-select:none}.row[data-v-becd4c4e]{width:100%;display:flex;align-items:center;margin-bottom:10px}.preset-style[data-v-becd4c4e]{display:flex;flex-wrap:wrap;margin-bottom:10px}.preset-style-item[data-v-becd4c4e]{width:50%;height:50px;border:solid 1px #d6d6d6;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;transition:all .2s}.preset-style-item[data-v-becd4c4e]:hover{border-color:#d14424;color:#d14424;z-index:1}.preset-style-item[data-v-becd4c4e]:nth-child(2n){margin-left:-1px}.preset-style-item[data-v-becd4c4e]:nth-child(n+3){margin-top:-1px}.font-size-btn[data-v-becd4c4e]{padding:0}.link-popover[data-v-becd4c4e]{width:240px}.link-popover .btns[data-v-becd4c4e]{margin-top:10px;text-align:right}.list-wrap[data-v-becd4c4e]{width:176px;color:#666;padding:8px;margin:-12px;display:flex;flex-wrap:wrap;align-content:flex-start}.list[data-v-becd4c4e]{background-color:#f9f9f9;padding:4px 4px 4px 20px;cursor:pointer}.list[data-v-becd4c4e]:not(:nth-child(3n)){margin-right:8px}.list[data-v-becd4c4e]:nth-child(4),.list[data-v-becd4c4e]:nth-child(5),.list[data-v-becd4c4e]:nth-child(6){margin-top:8px}.list[data-v-becd4c4e]:hover{color:#d14424}.list:hover span[data-v-becd4c4e]{background-color:#d14424}.list-item[data-v-becd4c4e]{width:24px;height:12px;position:relative;font-size:12px;top:-5px}.list-item span[data-v-becd4c4e]{width:100%;height:2px;display:inline-block;position:absolute;top:10px;background-color:#666}.popover-btn[data-v-becd4c4e]{padding:0 3px}.row[data-v-100c8a7c],.row[data-v-44786c09]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-44786c09]{text-align:right}.filter[data-v-44786c09]{font-size:12px}.filter-item[data-v-44786c09]{padding:6px 0;display:flex;justify-content:center;align-items:center}.filter-item .name[data-v-44786c09]{width:60px}.filter-item .filter-slider[data-v-44786c09]{flex:1;margin:0 6px}.row[data-v-d428a4e5]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-d428a4e5]{text-align:right}.row[data-v-0c668b03]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-0c668b03]{text-align:right}.origin-image[data-v-0c668b03]{height:100px;background-size:contain;background-repeat:no-repeat;background-position:center;background-color:#f9f9f9;margin-bottom:10px}.full-width-btn[data-v-0c668b03]{width:100%;margin-bottom:10px}.btn-icon[data-v-0c668b03]{margin-right:3px}.clip[data-v-0c668b03]{width:260px;font-size:12px}.clip .title[data-v-0c668b03]{margin-bottom:5px}.shape-clip[data-v-0c668b03]{margin-bottom:10px;display:flex;flex-wrap:wrap;align-content:flex-start}.shape-clip-item[data-v-0c668b03]{display:flex;justify-content:center;align-items:center;cursor:pointer;width:16%;margin-bottom:5%}.shape-clip-item[data-v-0c668b03]:not(:nth-child(5n)){margin-right:5%}.shape-clip-item:hover .shape[data-v-0c668b03]{background-color:#ccc}.shape-clip-item .shape[data-v-0c668b03]{width:40px;height:40px;background-color:#e1e1e1}.popover-btn[data-v-0c668b03]{padding:0 3px}.shape-style-panel[data-v-830d0c7f]{-webkit-user-select:none;user-select:none}.row[data-v-830d0c7f]{width:100%;display:flex;align-items:center;margin-bottom:10px}.font-size-btn[data-v-830d0c7f]{padding:0}.title[data-v-830d0c7f]{display:flex;justify-content:space-between;margin-bottom:10px}.shape-pool[data-v-830d0c7f]{width:235px;height:150px;overflow:auto;padding:5px 10px 5px 5px;border:1px solid #eee;margin-bottom:20px}.shape-list[data-v-830d0c7f]{display:flex;flex-wrap:wrap;align-content:flex-start}.shape-item[data-v-830d0c7f]{width:14%;margin-bottom:3.2%;height:0;padding-bottom:14%;flex-shrink:0}.shape-item[data-v-830d0c7f]:not(:nth-child(6n)){margin-right:3.2%}.row[data-v-d5f2e330]{width:100%;display:flex;align-items:center;margin-bottom:10px}.line-btn[data-v-d5f2e330]{display:flex;align-items:center;justify-content:space-between;padding:0!important}.line-btn .line-wrapper[data-v-d5f2e330]{margin-left:8px}.line-wrapper[data-v-d5f2e330]{overflow:visible}.line-btn-icon[data-v-d5f2e330]{width:30px;font-size:12px;margin-top:2px;color:#bfbfbf}.preset-point-style[data-v-d5f2e330]{padding:0 10px}.preset-point-style+.preset-point-style[data-v-d5f2e330]{margin-top:10px}.chart-data-editor[data-v-ac578a4f]{width:600px;position:relative}.editor-content[data-v-ac578a4f]{width:100%;height:360px;position:relative;border-right:1px solid #ccc;border-bottom:1px solid #ccc;overflow:auto;overflow:overlay}.range-box[data-v-ac578a4f]{position:absolute;top:0;left:0;z-index:100;-webkit-user-select:none;user-select:none}.temp-range[data-v-ac578a4f]{width:0;height:0;position:absolute;top:0;left:0;background-color:#8888884d}.range-line[data-v-ac578a4f]{width:0;height:0;position:absolute;left:0;top:0;border:0 solid #d14424}.range-line.t[data-v-ac578a4f]{border-top-width:1px}.range-line.b[data-v-ac578a4f]{border-bottom-width:1px}.range-line.l[data-v-ac578a4f]{border-left-width:1px}.range-line.r[data-v-ac578a4f]{border-right-width:1px}.resizable[data-v-ac578a4f]{position:absolute;width:12px;height:12px;left:0;top:0;margin:-9px 0 0 -9px;cursor:nwse-resize}.resizable[data-v-ac578a4f]:after{content:"";position:absolute;width:4px;height:12px;right:0;top:0;background-color:#d14424}.resizable[data-v-ac578a4f]:before{content:"";position:absolute;width:12px;height:4px;right:0;bottom:0;background-color:#d14424}table[data-v-ac578a4f]{width:100%;height:100%;-webkit-user-select:none;user-select:none;table-layout:fixed}table td[data-v-ac578a4f]{text-align:center;border:1px solid #ccc;vertical-align:middle;width:100px;height:32px}table td.head[data-v-ac578a4f]{background-color:#d144241a}table .item[data-v-ac578a4f]{width:100%;height:100%;border:0;outline:0;font-size:13px;text-align:center;background-color:transparent}table .item.selected[data-v-ac578a4f]{background-color:#d1442405}.btns[data-v-ac578a4f]{margin-top:10px;display:flex;justify-content:space-between}.checkbox[data-v-3d20c849]{height:20px;display:flex;align-items:center;cursor:pointer}.checkbox:not(.disabled).checked .checkbox-input[data-v-3d20c849]{background-color:#d14424;border-color:#d14424}.checkbox:not(.disabled).checked .checkbox-input[data-v-3d20c849]:after{transform:rotate(45deg) scaleY(1)}.checkbox:not(.disabled).checked .checkbox-label[data-v-3d20c849]{color:#d14424}.checkbox.disabled[data-v-3d20c849]{color:#b7b7b7;cursor:default}.checkbox.disabled .checkbox-input[data-v-3d20c849]{background-color:#f5f5f5}.checkbox-input[data-v-3d20c849]{display:inline-block;position:relative;border:1px solid #d9d9d9;border-radius:2px;width:16px;height:16px;background-color:#fff;vertical-align:middle;transition:border-color .15s cubic-bezier(.71,-.46,.29,1.46),background-color .15s cubic-bezier(.71,-.46,.29,1.46);z-index:1}.checkbox-input[data-v-3d20c849]:after{content:"";border:2px solid #fff;border-left:0;border-top:0;height:9px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:6px;transition:transform .15s ease-in .05s;transform-origin:center}.checkbox-original[data-v-3d20c849]{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.checkbox-label[data-v-3d20c849]{margin-left:5px;line-height:20px;font-size:13px;-webkit-user-select:none;user-select:none}.chart-style-panel[data-v-63098034]{-webkit-user-select:none;user-select:none}.row[data-v-63098034]{width:100%;display:flex;align-items:center;margin-bottom:10px}.full-width-btn[data-v-63098034]{width:100%}.btn-icon[data-v-63098034]{margin-right:3px}.color-btn-wrap[data-v-63098034]{position:relative}.delete-color-btn[data-v-63098034]{position:absolute;width:30px;right:2px;top:2px;bottom:2px;display:flex;justify-content:center;align-items:center;background-color:#fff;cursor:pointer}.preset-themes[data-v-63098034]{width:250px;margin-bottom:-10px;display:flex;flex-wrap:wrap;align-content:flex-start}.preset-theme[data-v-63098034]{display:flex;cursor:pointer;width:48%;margin-bottom:4%}.preset-theme[data-v-63098034]:not(:nth-child(2n)){margin-right:4%}.preset-theme-color[data-v-63098034]{width:20px;height:20px}.preset-theme-color.select[data-v-63098034]{transform:scale(1.2);transition:transform .1s}.row[data-v-adc75d19]{width:100%;display:flex;align-items:center;margin-bottom:10px}.theme-switch[data-v-adc75d19]{margin-bottom:18px}.switch-wrapper[data-v-adc75d19]{text-align:right}.set-count[data-v-adc75d19]{display:flex;justify-content:center;align-items:center}.set-count .btn[data-v-adc75d19]{padding:0 8px}.set-count .count-text[data-v-adc75d19]{flex:1;text-align:center;margin:0 8px}.row[data-v-6b6e110e],.row[data-v-b289959e]{width:100%;display:flex;align-items:center;margin-bottom:10px}.title[data-v-b289959e],.background-image-wrapper[data-v-b289959e]{margin-bottom:10px}.background-image[data-v-b289959e]{height:0;padding-bottom:56.25%;border:1px dashed #eee;border-radius:2px;position:relative;transition:all .2s}.background-image[data-v-b289959e]:hover{border-color:#d14424;color:#d14424}.background-image .content[data-v-b289959e]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer}.switch-row[data-v-b289959e]{height:32px}.switch-wrapper[data-v-b289959e]{text-align:right}.row[data-v-44ce0855]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-row[data-v-44ce0855]{height:32px}.switch-wrapper[data-v-44ce0855]{text-align:right}.row[data-v-a267c062]{width:100%;display:flex;align-items:center;margin-bottom:10px}.font-size-btn[data-v-a267c062]{padding:0}.row[data-v-6bb316f9]{width:100%;display:flex;align-items:center;margin-bottom:10px}.title[data-v-6bb316f9]{margin-bottom:10px}.label[data-v-6bb316f9]{text-align:center}.btn-icon[data-v-6bb316f9]{margin-right:3px}.icon-btn[data-v-6bb316f9]{cursor:pointer}.icon-btn.active[data-v-6bb316f9]{color:#d14424}.text-btn[data-v-6bb316f9]{height:30px;line-height:30px;text-align:center;cursor:pointer}.text-btn[data-v-6bb316f9]:hover{background-color:#efefef;border-radius:2px}.element-animation-panel[data-v-bf835335]{height:100%;display:flex;flex-direction:column}.element-animation[data-v-bf835335]{height:32px;display:flex;align-items:center}.element-animation-btn[data-v-bf835335]{width:100%}.config-item[data-v-bf835335]{display:flex;align-items:center}.config-item+.config-item[data-v-bf835335]{margin-top:5px}.tip[data-v-bf835335]{height:32px;display:flex;justify-content:center;align-items:center;font-style:italic}.animation-pool[data-v-bf835335]{width:400px;height:500px;overflow-y:auto;overflow-x:hidden;font-size:12px;margin-right:-10px;padding-right:5px;position:relative}.animation-pool .mask[data-v-bf835335]{position:absolute;top:0;right:0;bottom:0;left:0}.animation-pool.in .type-title[data-v-bf835335]{border-left-color:#68a490;background-color:#68a49026}.animation-pool.out .type-title[data-v-bf835335]{border-left-color:#d86344;background-color:#d8634426}.animation-pool.attention .type-title[data-v-bf835335]{border-left-color:#e8b76a;background-color:#e8b76a26}.pool-type[data-v-bf835335]:not(:last-child){margin-bottom:5px}.type-title[data-v-bf835335]{width:100%;font-size:13px;margin-bottom:10px;border-left:4px solid #aaa;background-color:#eee;padding:4px 0 4px 10px}.pool-item-wrapper[data-v-bf835335]{display:flex;flex-wrap:wrap;align-content:flex-start}.pool-item[data-v-bf835335]{width:24%;margin-bottom:calc(4% / 3);margin-bottom:5px;height:40px;line-height:40px;text-align:center;cursor:pointer}.pool-item[data-v-bf835335]:not(:nth-child(4n)){margin-right:calc(4% / 3)}.animation-box[data-v-bf835335]{background-color:#f9f9f9;border-radius:2px}.animation-sequence[data-v-bf835335]{flex:1;padding-right:12px;margin-right:-12px;overflow:auto;overflow:overlay}.sequence-item[data-v-bf835335]{border:1px solid #eee;padding:8px;border-radius:2px;margin-bottom:8px;transition:all .5s}.sequence-item.in.active[data-v-bf835335]{border-color:#68a490}.sequence-item.out.active[data-v-bf835335]{border-color:#d86344}.sequence-item.attention.active[data-v-bf835335]{border-color:#e8b76a}.sequence-item.active[data-v-bf835335]{height:auto}.sequence-item .sequence-content[data-v-bf835335]{display:flex;align-items:center;cursor:grab}.sequence-item .sequence-content[data-v-bf835335]:active{cursor:grabbing}.sequence-item .sequence-content .index[data-v-bf835335]{flex:1}.sequence-item .sequence-content .text[data-v-bf835335]{flex:6}.sequence-item .sequence-content .handler[data-v-bf835335]{flex:2;font-size:15px;text-align:right}.sequence-item .sequence-content .handler-btn[data-v-bf835335]{margin-left:8px;cursor:pointer}.slide-design-panel[data-v-5d6a9c2f]{-webkit-user-select:none;user-select:none}.row[data-v-5d6a9c2f]{width:100%;display:flex;align-items:center;margin-bottom:10px}.title[data-v-5d6a9c2f]{display:flex;justify-content:space-between;margin-bottom:10px}.title .more[data-v-5d6a9c2f]{cursor:pointer}.title .more .text[data-v-5d6a9c2f]{font-size:12px;margin-right:3px}.background-image-wrapper[data-v-5d6a9c2f]{margin-bottom:10px}.background-image[data-v-5d6a9c2f]{height:0;padding-bottom:56.25%;border:1px dashed #eee;border-radius:2px;position:relative;transition:all .2s}.background-image[data-v-5d6a9c2f]:hover{border-color:#d14424;color:#d14424}.background-image .content[data-v-5d6a9c2f]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer}.theme-list[data-v-5d6a9c2f]{display:flex;flex-wrap:wrap;align-content:flex-start}.theme-item[data-v-5d6a9c2f]{width:48%;margin-bottom:4%;padding-bottom:30%;border-radius:2px;position:relative;cursor:pointer}.theme-item[data-v-5d6a9c2f]:not(:nth-child(2n)){margin-right:4%}.theme-item .theme-item-content[data-v-5d6a9c2f]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center;padding:8px;border:1px solid #eee;border-radius:2px}.theme-item .text[data-v-5d6a9c2f]{font-size:16px}.theme-item .colors[data-v-5d6a9c2f]{display:flex}.theme-item .color-block[data-v-5d6a9c2f]{margin-top:8px;width:12px;height:12px;margin-right:2px}.theme-item:hover .btns[data-v-5d6a9c2f]{opacity:1}.theme-item .btns[data-v-5d6a9c2f]{position:absolute;top:0;right:0;bottom:0;left:0;flex-direction:column;justify-content:center;align-items:center;display:flex;background-color:#00000040;opacity:0;transition:opacity .2s}.theme-item .btn[data-v-5d6a9c2f]{width:72px;padding:5px 0;text-align:center;background-color:#d14424;color:#fff;font-size:12px;border-radius:2px}.theme-item .btn[data-v-5d6a9c2f]:hover{background-color:#de6949}.theme-item .btn+.btn[data-v-5d6a9c2f]{margin-top:5px}.animation-pool[data-v-ae84c3f4]{display:flex;flex-wrap:wrap;margin-bottom:10px}.animation-item[data-v-ae84c3f4]{width:50%;height:100px;border:solid 1px #d6d6d6;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:20px 0 15px;position:relative;cursor:pointer}.animation-item.active[data-v-ae84c3f4]{border-color:#d14424;z-index:1}.animation-item[data-v-ae84c3f4]:nth-child(2n){margin-left:-1px}.animation-item[data-v-ae84c3f4]:nth-child(n+3){margin-top:-1px}.animation-block[data-v-ae84c3f4]{width:64px;height:36px;background:#666;position:relative;overflow:hidden}.animation-block.fade[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:fade-ae84c3f4 .3s linear}.animation-block.slideX[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideX-ae84c3f4 .3s linear}.animation-block.slideY[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideY-ae84c3f4 .3s linear}.animation-block.slideX3D[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideX3D-ae84c3f4 .3s linear}.animation-block.slideY3D[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideY3D-ae84c3f4 .3s linear}.animation-block.rotate[data-v-ae84c3f4]:hover:after{transform-origin:0 0;content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:rotate-ae84c3f4 .3s linear}.animation-block.scaleY[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scaleY-ae84c3f4 .3s linear}.animation-block.scaleX[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scaleX-ae84c3f4 .3s linear}.animation-block.scale[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scale-ae84c3f4 .3s linear}.animation-block.scaleReverse[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scaleReverse-ae84c3f4 .3s linear}.animation-text[data-v-ae84c3f4]{font-size:12px;color:#333;text-align:center}@keyframes fade-ae84c3f4{0%{opacity:0}to{opacity:1}}@keyframes slideX-ae84c3f4{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideY-ae84c3f4{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideX3D-ae84c3f4{0%{transform:translate(100%) scale(.5)}to{transform:translate(0)}}@keyframes slideY3D-ae84c3f4{0%{transform:translateY(100%) scale(.5)}to{transform:translateY(0)}}@keyframes rotate-ae84c3f4{0%{transform:rotate(-90deg)}to{transform:rotate(0)}}@keyframes scaleY-ae84c3f4{0%{transform:scaleY(.1)}to{transform:scaleY(1)}}@keyframes scaleX-ae84c3f4{0%{transform:scaleX(.1)}to{transform:scaleY(1)}}@keyframes scale-ae84c3f4{0%{transform:scale(.25)}to{transform:scale(1)}}@keyframes scaleReverse-ae84c3f4{0%{transform:scale(2)}to{transform:scale(1)}}.row[data-v-d41009b1]{width:100%;display:flex;align-items:center;margin-bottom:10px}.symbol-panel[data-v-0f662bb0]{height:100%;display:flex;flex-direction:column}.symbol-panel .pool[data-v-0f662bb0]{padding:5px 12px;margin:0 -12px;flex:1;font-size:18px;overflow:auto;overflow:overlay;display:flex;flex-wrap:wrap;align-content:flex-start}.symbol-panel .symbol-item[data-v-0f662bb0]{width:18%;margin-bottom:2.5%;height:0;padding-bottom:18%;position:relative;cursor:pointer;border:1px solid #eee}.symbol-panel .symbol-item[data-v-0f662bb0]:not(:nth-child(5n)){margin-right:2.5%}.symbol-panel .symbol-item[data-v-0f662bb0]:hover{color:#d14424}.symbol-panel .symbol-item .symbol[data-v-0f662bb0]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-color:#fff}.toolbar[data-v-83fff59a]{border-left:solid 1px #eee;background-color:#fff;display:flex;flex-direction:column}.content[data-v-83fff59a]{padding:12px;font-size:13px;overflow:auto;overflow:overlay}.editor[data-v-4042a280]{height:100%;overflow:auto}.prosemirror-editor[data-v-4042a280]{height:100%;cursor:text}.prosemirror-editor[data-v-4042a280] .ProseMirror{height:100%;font-size:12px;overflow:auto;padding:8px;line-height:1.5}.prosemirror-editor[data-v-4042a280] .ProseMirror>p[data-placeholder]:before{content:attr(data-placeholder);pointer-events:none;position:absolute;font-size:12px;color:#66666680}.menu[data-v-4042a280]{display:flex;background-color:#fff;padding:6px 4px;border-radius:2px;box-shadow:0 0 20px #00000026}.menu button[data-v-4042a280]{outline:0;border:0;background-color:#fff;padding:3px;border-radius:2px;font-size:16px;margin:0 3px;display:flex;align-items:center;justify-content:center;cursor:pointer}.menu button[data-v-4042a280]:hover,.menu button.active[data-v-4042a280]{background-color:#d14424;color:#fff}.remark[data-v-1c52a472]{position:relative;border-top:1px solid #eee}.resize-handler[data-v-1c52a472]{height:7px;position:absolute;top:-3px;left:0;right:0;cursor:n-resize;z-index:2}.export-img-dialog[data-v-32b43d99]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.thumbnails-view[data-v-32b43d99]{position:absolute;top:0;right:0;bottom:0;left:0}.thumbnails-view[data-v-32b43d99]:after{content:"";background-color:#fff;position:absolute;top:0;right:0;bottom:0;left:0}.configs[data-v-32b43d99]{width:350px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center;z-index:1}.configs .row[data-v-32b43d99]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-32b43d99]{width:100px;position:relative}.configs .title[data-v-32b43d99]:after{content:attr(data-range);position:absolute;top:20px;left:0}.configs .config-item[data-v-32b43d99]{flex:1}.btns[data-v-32b43d99]{width:300px;height:100px;display:flex;justify-content:center;align-items:center;z-index:1}.btns .export[data-v-32b43d99]{flex:1}.btns .close[data-v-32b43d99]{width:100px;margin-left:10px}.export-json-dialog[data-v-c2d35f76]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.preview[data-v-c2d35f76]{width:100%;height:calc(100% - 100px);background-color:#f9f9f9;color:#0451a5;overflow:auto}pre[data-v-c2d35f76]{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.btns[data-v-c2d35f76]{width:300px;height:100px;display:flex;justify-content:center;align-items:center}.btns .export[data-v-c2d35f76]{flex:1}.btns .close[data-v-c2d35f76]{width:100px;margin-left:10px}[data-v-c2d35f76]::-webkit-scrollbar{width:10px;height:10px;background-color:#f9f9f9}[data-v-c2d35f76]::-webkit-scrollbar-thumb{background-color:#c1c1c1}.export-pdf-dialog[data-v-d3a30d69]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.thumbnails-view[data-v-d3a30d69]{position:absolute;top:0;right:0;bottom:0;left:0}.thumbnails-view[data-v-d3a30d69]:after{content:"";background-color:#fff;position:absolute;top:0;right:0;bottom:0;left:0}.thumbnail.break-page[data-v-d3a30d69]{break-after:page}.configs[data-v-d3a30d69]{width:300px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center;z-index:1}.configs .row[data-v-d3a30d69]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-d3a30d69]{width:100px}.configs .config-item[data-v-d3a30d69]{flex:1}.configs .tip[data-v-d3a30d69]{font-size:12px;color:#aaa;line-height:1.8;margin-top:25px}.btns[data-v-d3a30d69]{width:300px;height:100px;display:flex;justify-content:center;align-items:center;z-index:1}.btns .export[data-v-d3a30d69]{flex:1}.btns .close[data-v-d3a30d69]{width:100px;margin-left:10px}.export-pptx-dialog[data-v-254b6b07]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.configs[data-v-254b6b07]{width:350px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center}.configs .row[data-v-254b6b07]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-254b6b07]{width:100px;position:relative}.configs .title[data-v-254b6b07]:after{content:attr(data-range);position:absolute;top:20px;left:0}.configs .config-item[data-v-254b6b07]{flex:1}.configs .tip[data-v-254b6b07]{font-size:12px;color:#aaa;line-height:1.8;margin-top:10px}.btns[data-v-254b6b07]{width:300px;height:100px;display:flex;justify-content:center;align-items:center}.btns .export[data-v-254b6b07]{flex:1}.btns .close[data-v-254b6b07]{width:100px;margin-left:10px}.export-pptist-dialog[data-v-bc56c9db]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.configs[data-v-bc56c9db]{width:350px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center}.configs .row[data-v-bc56c9db]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-bc56c9db]{width:100px;position:relative}.configs .title[data-v-bc56c9db]:after{content:attr(data-range);position:absolute;top:20px;left:0}.configs .config-item[data-v-bc56c9db]{flex:1}.configs .tip[data-v-bc56c9db]{font-size:12px;color:#aaa;line-height:1.8;margin-top:25px}.btns[data-v-bc56c9db]{width:300px;height:100px;display:flex;justify-content:center;align-items:center}.btns .export[data-v-bc56c9db]{flex:1}.btns .close[data-v-bc56c9db]{width:100px;margin-left:10px}.export-dialog[data-v-b54f4542]{margin:-20px}.content[data-v-b54f4542]{height:460px;padding:12px;font-size:13px;overflow:auto;overflow:overlay}.moveable-panel[data-v-94a0a962]{position:fixed;background-color:#fff;box-shadow:0 2px 12px #38383826;border:1px solid #eee;border-radius:2px;display:flex;flex-direction:column;z-index:999}.resizer[data-v-94a0a962]{width:10px;height:10px;position:absolute;bottom:0;right:0;cursor:se-resize}.resizer[data-v-94a0a962]:after{content:"";position:absolute;bottom:-4px;right:-4px;transform:rotate(45deg);transform-origin:center;width:0;height:0;border:6px solid transparent;border-left-color:#e1e1e1}.header[data-v-94a0a962]{height:40px;display:flex;align-items:center;border-bottom:1px solid #f0f0f0;cursor:move}.title[data-v-94a0a962]{flex:1;font-size:13px;padding-left:10px}.close-btn[data-v-94a0a962]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;color:#666;font-size:12px;cursor:pointer}.content[data-v-94a0a962]{flex:1;padding:10px;overflow:auto}.select-panel[data-v-8d6111bd]{height:100%;font-size:12px;-webkit-user-select:none;user-select:none}.handler[data-v-8d6111bd]{height:24px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.handler .icon-btns[data-v-8d6111bd]{height:100%;flex:1;display:flex;align-items:center;justify-content:flex-end}.handler .icon-btn[data-v-8d6111bd]{width:16px;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer}.handler .icon-btn[data-v-8d6111bd]:hover{color:#d14424}.element-list[data-v-8d6111bd]{height:calc(100% - 32px);padding-right:10px;margin-right:-10px;overflow:auto}.item[data-v-8d6111bd]{padding:5px;font-size:12px;border-radius:2px;display:flex;align-items:center;cursor:pointer}.item.active[data-v-8d6111bd]{background-color:#d144241a}.item.group-active[data-v-8d6111bd]{background-color:#d1442433}.item[data-v-8d6111bd]:hover{background-color:#d1442440}.item .name[data-v-8d6111bd]{height:18px;line-height:18px;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.item .icons[data-v-8d6111bd]{width:20px;display:flex;align-items:center;justify-content:center;margin-left:5px}.group-els[data-v-8d6111bd]{padding:5px 0}.group-els .group-title[data-v-8d6111bd]{margin-bottom:5px;padding:0 5px}.group-els .item[data-v-8d6111bd]{margin-left:15px}.input[data-v-8d6111bd]{width:100%;height:16px;border:0;outline:0;padding-left:0;padding-right:0;flex:1;font-size:12px;background-color:transparent}.search-panel[data-v-2536ae51]{font-size:13px}.content[data-v-2536ae51]{display:flex;flex-direction:column;justify-content:space-between}.input[data-v-2536ae51]{margin-top:10px}.count[data-v-2536ae51]{font-size:12px;margin-right:8px;-webkit-user-select:none;user-select:none}.ignore-case[data-v-2536ae51]{font-size:12px;-webkit-user-select:none;user-select:none;cursor:pointer}.ignore-case.active[data-v-2536ae51]{color:#d14424}.next-btn[data-v-2536ae51]{width:22px;height:100%;display:flex;justify-content:center;align-items:center;margin:0!important;-webkit-user-select:none;user-select:none;cursor:pointer}.next-btn[data-v-2536ae51]:hover{color:#d14424}.footer[data-v-2536ae51]{display:flex;justify-content:flex-end;align-items:center;margin-top:10px}.close-btn[data-v-2536ae51]{width:32px;height:32px;position:absolute;top:8px;right:3px;display:flex;justify-content:center;align-items:center;color:#666;font-size:12px;cursor:pointer}.notes-panel[data-v-3d769863]{height:100%;font-size:12px;-webkit-user-select:none;user-select:none}.container[data-v-3d769863]{height:100%;display:flex;flex-direction:column}.notes[data-v-3d769863]{flex:1;overflow:auto;margin:0 -10px;padding:2px 12px}.empty[data-v-3d769863]{width:100%;height:100%;color:#999;font-style:italic;display:flex;justify-content:center;align-items:center}.note[data-v-3d769863]{border:1px solid #eee;border-radius:4px;padding:10px}.note+.note[data-v-3d769863]{margin-top:10px}.note.active[data-v-3d769863]{background-color:#f7f7f7}.note .header[data-v-3d769863]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.note .header:hover .btns[data-v-3d769863]{opacity:1}.note .user[data-v-3d769863]{display:flex;align-items:center}.note .user .avatar[data-v-3d769863]{width:30px;height:30px;border-radius:50%;background-color:#42ba97;color:#fff;font-size:18px;display:flex;justify-content:center;align-items:center;margin-right:10px}.note .user .username[data-v-3d769863]{font-size:14px}.note .user .time[data-v-3d769863]{font-size:12px;color:#aaa}.note .btns[data-v-3d769863]{display:flex;align-items:center;opacity:0}.note .btns .btn[data-v-3d769863]{margin-left:5px;cursor:pointer}.note .btns .btn[data-v-3d769863]:hover{text-decoration:underline;color:#d14424}.note .replies[data-v-3d769863]{margin-left:20px;margin-top:15px}.note .replies .reply-item[data-v-3d769863]{margin-top:10px}.note .replies .reply-item .content[data-v-3d769863]{margin-top:5px}.note-reply[data-v-3d769863]{margin-top:15px}.reply-btns[data-v-3d769863]{margin-top:5px;text-align:right}.reply-btns .btn[data-v-3d769863]{margin-left:8px}.send[data-v-3d769863]{height:120px;flex-shrink:0;text-align:right;display:flex;flex-direction:column;justify-content:flex-end}.send .footer[data-v-3d769863]{margin-top:10px;display:flex}.send .footer .btn+.btn[data-v-3d769863]{margin-left:8px;flex-shrink:0}.pptist-editor[data-v-39fd665d]{height:100%}.layout-header[data-v-39fd665d]{height:40px}.layout-content[data-v-39fd665d]{height:calc(100% - 40px);display:flex}.layout-content-left[data-v-39fd665d]{width:160px;height:100%;flex-shrink:0}.layout-content-center[data-v-39fd665d]{width:calc(100% - 420px)}.layout-content-center .center-top[data-v-39fd665d]{height:40px}.layout-content-right[data-v-39fd665d]{width:260px;height:100%}.screen-element-video[data-v-d9f232b0]{position:absolute}.rotate-wrapper[data-v-d9f232b0],.element-content[data-v-d9f232b0]{width:100%;height:100%}.screen-element-audio[data-v-94802f8e]{position:absolute}.rotate-wrapper[data-v-94802f8e]{width:100%;height:100%}.element-content[data-v-94802f8e]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.element-content:hover .audio-player[data-v-94802f8e]{display:block}.audio-icon[data-v-94802f8e]{cursor:pointer}.audio-player[data-v-94802f8e]{position:absolute;display:none}.link[data-v-da31ab53]{cursor:pointer}.screen-slide[data-v-7ee8460e]{position:absolute;top:0;left:0;transform-origin:0 0;overflow:hidden}.background[data-v-7ee8460e]{width:100%;height:100%;background-position:center;position:absolute}.screen-slide-list[data-v-21b28464]{background:#1d1d1d;position:relative;width:100%;height:100%}.slide-item[data-v-21b28464]{position:absolute;top:0;left:0;width:100%;height:100%}.slide-item.current[data-v-21b28464]{z-index:2}.slide-item.hide[data-v-21b28464]{opacity:0}.slide-item.turning-mode-no.before[data-v-21b28464]{transform:translateY(-100%)}.slide-item.turning-mode-no.after[data-v-21b28464]{transform:translateY(100%)}.slide-item.turning-mode-fade[data-v-21b28464]{transition:opacity .75s}.slide-item.turning-mode-fade.before[data-v-21b28464],.slide-item.turning-mode-fade.after[data-v-21b28464]{pointer-events:none;opacity:0}.slide-item.turning-mode-slideX[data-v-21b28464]{transition:transform .35s}.slide-item.turning-mode-slideX.before[data-v-21b28464]{transform:translate(-100%)}.slide-item.turning-mode-slideX.after[data-v-21b28464]{transform:translate(100%)}.slide-item.turning-mode-slideY[data-v-21b28464]{transition:transform .35s}.slide-item.turning-mode-slideY.before[data-v-21b28464]{transform:translateY(-100%)}.slide-item.turning-mode-slideY.after[data-v-21b28464]{transform:translateY(100%)}.slide-item.turning-mode-slideX3D[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-slideX3D.before[data-v-21b28464]{transform:translate(-100%) scale(.5)}.slide-item.turning-mode-slideX3D.after[data-v-21b28464]{transform:translate(100%) scale(.5)}.slide-item.turning-mode-slideY3D[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-slideY3D.before[data-v-21b28464]{transform:translateY(-100%) scale(.5)}.slide-item.turning-mode-slideY3D.after[data-v-21b28464]{transform:translateY(100%) scale(.5)}.slide-item.turning-mode-rotate[data-v-21b28464]{transition:transform .5s;transform-origin:0 0}.slide-item.turning-mode-rotate.before[data-v-21b28464]{transform:rotate(90deg)}.slide-item.turning-mode-rotate.after[data-v-21b28464]{transform:rotate(-90deg)}.slide-item.turning-mode-scaleY[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scaleY.before[data-v-21b28464],.slide-item.turning-mode-scaleY.after[data-v-21b28464]{transform:scaleY(.1)}.slide-item.turning-mode-scaleX[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scaleX.before[data-v-21b28464],.slide-item.turning-mode-scaleX.after[data-v-21b28464]{transform:scaleX(.1)}.slide-item.turning-mode-scale[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scale.before[data-v-21b28464],.slide-item.turning-mode-scale.after[data-v-21b28464]{transform:scale(.25)}.slide-item.turning-mode-scaleReverse[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scaleReverse.before[data-v-21b28464],.slide-item.turning-mode-scaleReverse.after[data-v-21b28464]{transform:scale(2)}.slide-content[data-v-21b28464]{background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.slide-thumbnails[data-v-09d790f0]{width:100%;height:100%;position:fixed;top:0;left:0;background-color:#1a1a1a;z-index:99}.return-button[data-v-09d790f0]{height:60px;padding:20px 30px 0}.return-button .icon[data-v-09d790f0]{color:#fff;font-size:36px;cursor:pointer}.return-button .icon[data-v-09d790f0]:hover{color:#d14424}.slide-thumbnails-content[data-v-09d790f0]{height:calc(100% - 100px);padding:20px 30px 30px;display:flex;flex-wrap:wrap;align-content:flex-start;overflow:auto;overflow:overlay}.slide-thumbnails-content .thumbnail[data-v-09d790f0]{width:150px;outline:2px solid #aaa;margin-right:12px;margin-bottom:12px}.slide-thumbnails-content .thumbnail[data-v-09d790f0]:hover{outline-color:#d14424}.slide-thumbnails-content .thumbnail.active[data-v-09d790f0]{outline-width:3px;outline-color:#d14424}.writing-board[data-v-55ae5f6c]{z-index:8;cursor:none;position:absolute;top:0;right:0;bottom:0;left:0}.blackboard[data-v-55ae5f6c]{width:100%;height:100%;background-color:#0f392b}.canvas[data-v-55ae5f6c]{position:absolute;top:0;left:0}.eraser[data-v-55ae5f6c],.pen[data-v-55ae5f6c]{pointer-events:none;position:absolute;z-index:9}.eraser .icon[data-v-55ae5f6c],.pen .icon[data-v-55ae5f6c]{filter:drop-shadow(2px 2px 2px #555)}.eraser[data-v-55ae5f6c]{display:flex;justify-content:center;align-items:center;border-radius:50%;border:4px solid rgba(85,85,85,.15);color:#555555bf}.writing-board-tool[data-v-47295ef6]{font-size:12px;z-index:10;position:absolute;top:0;right:0;bottom:0;left:0}.writing-board-tool .writing-board-wrap[data-v-47295ef6]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.writing-board-tool .tools[data-v-47295ef6]{width:100%;height:100%;display:flex;align-items:center;justify-content:space-between}.writing-board-tool .tool-content[data-v-47295ef6]{display:flex;align-items:center}.writing-board-tool .btn[data-v-47295ef6]{padding:5px 10px;cursor:pointer}.writing-board-tool .btn[data-v-47295ef6]:hover{color:#d14424}.writing-board-tool .btn.active[data-v-47295ef6]{background-color:#d1442480;color:#fff}.writing-board-tool .icon[data-v-47295ef6]{font-size:20px}.writing-board-tool .colors[data-v-47295ef6]{display:flex;padding:0 10px}.writing-board-tool .color[data-v-47295ef6]{width:16px;height:16px;border-radius:2px;cursor:pointer}.writing-board-tool .color[data-v-47295ef6]:hover{transform:scale(1.15)}.writing-board-tool .color.active[data-v-47295ef6]{transform:scale(1.3)}.writing-board-tool .color+.color[data-v-47295ef6]{margin-left:8px}.size[data-v-47295ef6]{width:200px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;font-size:13px}.size .label[data-v-47295ef6]{width:70px}.size .size-slider[data-v-47295ef6]{flex:1}.countdown-timer[data-v-92c1f9be]{-webkit-user-select:none;user-select:none}.header[data-v-92c1f9be]{height:16px;font-size:13px;margin-bottom:16px;display:flex;align-items:center}.header .text-btn[data-v-92c1f9be]{margin-right:8px;cursor:pointer}.header .text-btn[data-v-92c1f9be]:hover,.header .text-btn.active[data-v-92c1f9be]{color:#d14424}.content[data-v-92c1f9be]{display:flex;justify-content:space-between;padding:0 5px}.timer[data-v-92c1f9be]{width:54px;height:54px;border-radius:50%;background-color:#d144240d;font-size:22px;overflow:hidden}.timer input[data-v-92c1f9be]{width:100%;height:100%;border:0;outline:0;background-color:transparent;text-align:center}.colon[data-v-92c1f9be]{height:54px;line-height:54px;font-size:22px}.icon-btn[data-v-92c1f9be]{width:20px;height:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.pause[data-v-92c1f9be],.play[data-v-92c1f9be]{font-size:17px}.reset[data-v-92c1f9be]{font-size:12px}.close-btn[data-v-92c1f9be]{position:absolute;top:0;right:0;padding:10px;cursor:pointer}.base-view[data-v-85c13201]{width:100%;height:100%}.base-view.laser-pen[data-v-85c13201]{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABHNCSVQICAgIfAhkiAAACCJJREFUWIXtmLuO3MYShv/qZl9IzqwXo2BkSAtsIK+z8wwOBcOJ9C56Cr2LlThQcgBnfofVBnswXlgTaLHaIdk3dtcJOKOzd8n2MeDABRDDgKz/m+pudv0N/BN/Luj/kYSZJQBxJR8DKESU/2zuPwTIzAKnpxqHhxUuLir0vYSUAkS0ewA5F7Rtxv7+iNPTEYeHkYjKXwrIzHK9XtultRohaKSkkFIVhqGCEAIxTvm0ZpRSTNOMUGqEUgnGxLX3cblc+t9T2S8GXK1W9dP53OLiwoLZhMtLQ4CiGBVKkchZIOcpn5QMKQuEyKx1YiCZvb0AooD9ff/rZuMPDg7cl+hWn3uAmQWABut1g/PzOnZdTd5bMY6aQtAIQQGQGEd5bYirKgPIZExiY2IKIbK1XpeinzaN2s7b4XPD/iAgM0ucn7fYbNrQ963Juaauq8k5i3E01PcG46iQs0TO1wGlzJAyo6oS2jagqgLGUQNQwTllvJeYzwUz9w8N+b2AzCxwft6i72fBuZkYhnbcbBqKsSbvazhnEIJBzqrEqGQpAlO1AaKShShC6wQpE4UQUNcBKenReyXm8yoIIYwQtNXq7qvkQxVssNm0wbmZuLiYUQgtnGtps2ngfQ3vLaVkEKOmGKcqMtMWkEnKTFonaB3Z+4AQPFmreD6vSAghxpECAFMKY7EoALovBlytVjXW6yb0fSuGoaUQWrq8nKHvW/R9S943xbmavJ+qmNIO8FMFIWXert7A1gYxjprHsSLmaTHt7UF0HYdSilmv82q1ynctnFuAzCzx8aPF+Xltcq7HzaaBcy36vsUwzKjrZhiGRgxDA+8tUjIUgkbOEqVMgEIUkjLDmAjvgwjBI6WKxlHybp5KyVRKMcaMGIb0dLFIzBxvzsdbgOv12i69t7HrpgURY02bTYO+b6nrZui6qZLONdz3jTg5ORDHx0f48OExQpgBAIzp8OjRez46Oi7Pnq1ot5BKETQVgYmosJRj6rrEQNJCxLX3EUB/LyAzC3z8qOGcIe8tOWdpmm81ed9gGJpdJdF1rXz79jucnX1za454P8fZ2ZzOzr6Rx8fvyvPnP38afiEKVVXmqhrJ+wSlIqoqYj73S2s1M7urC0ZcS3x6qhGCDpeXBuOoMY4Gzhl4b4tzNYahgXMNuq4Vb978cCfczTg7+0a8efMDuq6Fcw2GoSnO1fDewjmDcTQYx0kzBI3TU3319euAh4cVUlIEKApBU98bhGAoJSO8N/Dect834u3b73B+/vVn4XZxfv61ePv2O+77Bt5b4b2hlKbcfW8oBE2AQkoKh4fXRvU64MVFhZQqilEhBLX9CCvEqLer1YiTk4MvqtxdlTw5OcAWDDFq5DxphDBtmSlNzcddgMws0fcyDEOFUiQAiZxliVGVGFVJSXEImo6Pj3433Dbo+PiIQ9AlJbXLi5wnrVIm7b6X223wOiAAASkFhBDIWWAcJXKWshQhcpYiZ0k5S3z48PhO9ZcvgV9+ma6XL+8m/PDhMW1ziW1u5Cy3WpO2lOIq11VAAhEhRkLO0z0RgVmAefotRXz6lNyMV6+AxWK6Xr26GzCEGXZb4i7nTifnSXv6Tn7qssTdmf4+cRWQwczQmiHldM/MICogmn6FKDDmzj0Tr18D5+fT9fr13WrGdBCiXMu505Fy0mZmTJYBwPUPdUHOBaUUSFlQVRlS5rzbtqTMJGXGo0fvcXY2vyX+44/T9VA8evSepcy8zcdCFDG1ZBlSTto5FwC3P9RElNG22TTNCCEygAwps9A6Ca2TUCqRMZGPjo4fprg/+OjomIyJQqm0ywspJy0hJu22zVf34+tzcH9/hFIja51gTEJVJUiZoHWEMQFKhfLs2QpPnrz73XRPnrwrz56toFSAMQFaR0g5aRiTWOsEpUbs749XX7u51Y1QKjGQ2JjIbRtgTGClQrE2wFpPbTuU589/xmLx2xfDLRa/lefPf6a2HWCtL9YG3oJy2wY2JjKQoFTC6ekDgIeHEcZEs7cXUFURVTV1wtZ6UdcOTTOgrgfMZn158eKnL6rkkyfvyosXP2E261HXA5pmEHXtYK1HXU9WoKomTWMiDg/j1devbStEVN6/fx+XRIGt9RhHjZQ0Wat4HCsax//1fEQlf//9v8XJyTF9rt1q2+mPtW2PphnY2gHWOrbWcV17ttaDKKy9j4/398u9gACwXC49Pn7UuhQNQI3eT206s2DadptCFEiZqaoS/+tfvnz77X/oRsPKUmYyJpJSAdZ6NM2Aphl4Pu/QND3P5wO0dmo2c5jNHPb3/fKrr/xNnluARJRXq5V/2jQqOKfE1kPsPC8zM1VVLkqNwpiAEAxbq+hGy89SZtq2/MXaIOrasbUDmqZH2/Zo257bdghSOtM07tfNxh/s799yd3d6koODA8fM0ngvw9bgYG9vatOJClfVSFUVYe3UldxhmiBlxtY0kVLTlLHW8Xw+oG17NqYvs1lv6rrHcjkcEN1p5B9ydQPmc2GEoABAdB1TKYWlnDph5wJvbSdPpwvXbCcLUXhrO2FMQF0HttZBa8dtO5TZrDdt26FtewDDfRD3AhJRYeYemKxh2Bqc1HVTm17Xn4y7yFnyDeMurhh33hp3rmuvZjMXpHSmrqehXiz6h04XHjxZIKLMzB0Wi2LW64xhSAwkVFXEOGpo/dmjD2yPPlBVka31mM2caRqH5XLAnz362FUSQLdarfLTxSJpISLmcx8uLw217R8/PLpnzt3S/5KHdvG3Pn67Afr3PMB8APgvOwL+J/5s/BeEBm1u1Gu4+QAAAABJRU5ErkJggg==) 20 20,default!important}.tools-left[data-v-85c13201]{position:fixed;bottom:8px;left:8px;font-size:25px;color:#666;z-index:10}.tools-left .tool-btn[data-v-85c13201]{opacity:.35;cursor:pointer}.tools-left .tool-btn[data-v-85c13201]:hover{opacity:.9}.tools-left .tool-btn+.tool-btn[data-v-85c13201]{margin-left:8px}.tools-right[data-v-85c13201]{height:66px;position:fixed;bottom:-66px;right:0;z-index:5;padding:8px;transition:bottom .2s}.tools-right.visible[data-v-85c13201]{bottom:0}.tools-right[data-v-85c13201]:after{content:"";width:100%;height:66px;position:absolute;left:0;top:-66px}.tools-right .content[data-v-85c13201]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;border-radius:2px;font-size:25px;background-color:#fff;color:#41464b;padding:8px 10px;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed}.tools-right .tool-btn[data-v-85c13201]{cursor:pointer}.tools-right .tool-btn[data-v-85c13201]:hover,.tools-right .tool-btn.active[data-v-85c13201]{color:#d14424}.tools-right .tool-btn+.tool-btn[data-v-85c13201]{margin-left:15px}.tools-right .page-number[data-v-85c13201]{font-size:13px;padding:8px 12px;cursor:pointer}.presenter-view[data-v-691774ef]{width:100%;height:100%;display:flex}.toolbar[data-v-691774ef]{width:70px;height:100%;background-color:#fff;border-right:solid 1px #eee;font-size:12px;margin:20px 0}.toolbar .tool-btn[data-v-691774ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.toolbar .tool-btn+.tool-btn[data-v-691774ef]{margin-top:22px}.toolbar .tool-btn[data-v-691774ef]:hover,.toolbar .tool-btn.active[data-v-691774ef]{color:#d14424}.toolbar .divider[data-v-691774ef]{width:70%;margin:24px 15%!important}.toolbar .tool-icon[data-v-691774ef]{margin-bottom:8px;font-size:22px}.content[data-v-691774ef]{width:calc(100% - 430px);height:100%;background-color:#1d1d1d}.slide-list-wrap[data-v-691774ef]{height:calc(100% - 190px);margin:20px;overflow:hidden;position:relative}.slide-list-wrap.laser-pen[data-v-691774ef]{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABHNCSVQICAgIfAhkiAAACCJJREFUWIXtmLuO3MYShv/qZl9IzqwXo2BkSAtsIK+z8wwOBcOJ9C56Cr2LlThQcgBnfofVBnswXlgTaLHaIdk3dtcJOKOzd8n2MeDABRDDgKz/m+pudv0N/BN/Luj/kYSZJQBxJR8DKESU/2zuPwTIzAKnpxqHhxUuLir0vYSUAkS0ewA5F7Rtxv7+iNPTEYeHkYjKXwrIzHK9XtultRohaKSkkFIVhqGCEAIxTvm0ZpRSTNOMUGqEUgnGxLX3cblc+t9T2S8GXK1W9dP53OLiwoLZhMtLQ4CiGBVKkchZIOcpn5QMKQuEyKx1YiCZvb0AooD9ff/rZuMPDg7cl+hWn3uAmQWABut1g/PzOnZdTd5bMY6aQtAIQQGQGEd5bYirKgPIZExiY2IKIbK1XpeinzaN2s7b4XPD/iAgM0ucn7fYbNrQ963Juaauq8k5i3E01PcG46iQs0TO1wGlzJAyo6oS2jagqgLGUQNQwTllvJeYzwUz9w8N+b2AzCxwft6i72fBuZkYhnbcbBqKsSbvazhnEIJBzqrEqGQpAlO1AaKShShC6wQpE4UQUNcBKenReyXm8yoIIYwQtNXq7qvkQxVssNm0wbmZuLiYUQgtnGtps2ngfQ3vLaVkEKOmGKcqMtMWkEnKTFonaB3Z+4AQPFmreD6vSAghxpECAFMKY7EoALovBlytVjXW6yb0fSuGoaUQWrq8nKHvW/R9S943xbmavJ+qmNIO8FMFIWXert7A1gYxjprHsSLmaTHt7UF0HYdSilmv82q1ynctnFuAzCzx8aPF+Xltcq7HzaaBcy36vsUwzKjrZhiGRgxDA+8tUjIUgkbOEqVMgEIUkjLDmAjvgwjBI6WKxlHybp5KyVRKMcaMGIb0dLFIzBxvzsdbgOv12i69t7HrpgURY02bTYO+b6nrZui6qZLONdz3jTg5ORDHx0f48OExQpgBAIzp8OjRez46Oi7Pnq1ot5BKETQVgYmosJRj6rrEQNJCxLX3EUB/LyAzC3z8qOGcIe8tOWdpmm81ed9gGJpdJdF1rXz79jucnX1za454P8fZ2ZzOzr6Rx8fvyvPnP38afiEKVVXmqhrJ+wSlIqoqYj73S2s1M7urC0ZcS3x6qhGCDpeXBuOoMY4Gzhl4b4tzNYahgXMNuq4Vb978cCfczTg7+0a8efMDuq6Fcw2GoSnO1fDewjmDcTQYx0kzBI3TU3319euAh4cVUlIEKApBU98bhGAoJSO8N/Dect834u3b73B+/vVn4XZxfv61ePv2O+77Bt5b4b2hlKbcfW8oBE2AQkoKh4fXRvU64MVFhZQqilEhBLX9CCvEqLer1YiTk4MvqtxdlTw5OcAWDDFq5DxphDBtmSlNzcddgMws0fcyDEOFUiQAiZxliVGVGFVJSXEImo6Pj3433Dbo+PiIQ9AlJbXLi5wnrVIm7b6X223wOiAAASkFhBDIWWAcJXKWshQhcpYiZ0k5S3z48PhO9ZcvgV9+ma6XL+8m/PDhMW1ziW1u5Cy3WpO2lOIq11VAAhEhRkLO0z0RgVmAefotRXz6lNyMV6+AxWK6Xr26GzCEGXZb4i7nTifnSXv6Tn7qssTdmf4+cRWQwczQmiHldM/MICogmn6FKDDmzj0Tr18D5+fT9fr13WrGdBCiXMu505Fy0mZmTJYBwPUPdUHOBaUUSFlQVRlS5rzbtqTMJGXGo0fvcXY2vyX+44/T9VA8evSepcy8zcdCFDG1ZBlSTto5FwC3P9RElNG22TTNCCEygAwps9A6Ca2TUCqRMZGPjo4fprg/+OjomIyJQqm0ywspJy0hJu22zVf34+tzcH9/hFIja51gTEJVJUiZoHWEMQFKhfLs2QpPnrz73XRPnrwrz56toFSAMQFaR0g5aRiTWOsEpUbs749XX7u51Y1QKjGQ2JjIbRtgTGClQrE2wFpPbTuU589/xmLx2xfDLRa/lefPf6a2HWCtL9YG3oJy2wY2JjKQoFTC6ekDgIeHEcZEs7cXUFURVTV1wtZ6UdcOTTOgrgfMZn158eKnL6rkkyfvyosXP2E261HXA5pmEHXtYK1HXU9WoKomTWMiDg/j1devbStEVN6/fx+XRIGt9RhHjZQ0Wat4HCsax//1fEQlf//9v8XJyTF9rt1q2+mPtW2PphnY2gHWOrbWcV17ttaDKKy9j4/398u9gACwXC49Pn7UuhQNQI3eT206s2DadptCFEiZqaoS/+tfvnz77X/oRsPKUmYyJpJSAdZ6NM2Aphl4Pu/QND3P5wO0dmo2c5jNHPb3/fKrr/xNnluARJRXq5V/2jQqOKfE1kPsPC8zM1VVLkqNwpiAEAxbq+hGy89SZtq2/MXaIOrasbUDmqZH2/Zo257bdghSOtM07tfNxh/s799yd3d6koODA8fM0ngvw9bgYG9vatOJClfVSFUVYe3UldxhmiBlxtY0kVLTlLHW8Xw+oG17NqYvs1lv6rrHcjkcEN1p5B9ydQPmc2GEoABAdB1TKYWlnDph5wJvbSdPpwvXbCcLUXhrO2FMQF0HttZBa8dtO5TZrDdt26FtewDDfRD3AhJRYeYemKxh2Bqc1HVTm17Xn4y7yFnyDeMurhh33hp3rmuvZjMXpHSmrqehXiz6h04XHjxZIKLMzB0Wi2LW64xhSAwkVFXEOGpo/dmjD2yPPlBVka31mM2caRqH5XLAnz362FUSQLdarfLTxSJpISLmcx8uLw217R8/PLpnzt3S/5KHdvG3Pn67Afr3PMB8APgvOwL+J/5s/BeEBm1u1Gu4+QAAAABJRU5ErkJggg==) 20 20,default!important}.thumbnails[data-v-691774ef]{height:150px;padding:15px;white-space:nowrap;overflow-x:auto;overflow-y:hidden;border-top:solid 1px #3a3a3a}.thumbnail[data-v-691774ef]{display:inline-block;outline:2px solid #aaa}.thumbnail+.thumbnail[data-v-691774ef]{margin-left:10px}.thumbnail[data-v-691774ef]:hover{outline-color:#d14424}.thumbnail.active[data-v-691774ef]{outline-width:3px;outline-color:#d14424}.remark[data-v-691774ef]{width:360px;height:100%;position:relative;background-color:#2a2a2a;border-left:solid 1px #3a3a3a;color:#fff}.remark .header[data-v-691774ef]{height:60px;padding:0 20px;display:flex;justify-content:space-between;align-items:center;font-size:18px;border-bottom:1px solid #3a3a3a}.remark .remark-content[data-v-691774ef]{height:calc(100% - 60px);padding:20px;line-height:1.5;overflow:auto;overflow:overlay}.remark .remark-scale[data-v-691774ef]{position:absolute;right:5px;bottom:5px;font-size:22px;display:flex}.remark .scale-btn[data-v-691774ef]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer}.remark .scale-btn.disable[data-v-691774ef]{color:#666;cursor:no-drop}.remark .scale-btn[data-v-691774ef]:not(.disable):hover{background-color:#333}[data-v-691774ef]::-webkit-scrollbar{width:0;height:0}.pptist-screen[data-v-2f0dc4b8]{width:100%;height:100%}.mobile-operate[data-v-b61bf2dc]{position:absolute;z-index:100;-webkit-user-select:none;user-select:none}.mobile-thumbnails[data-v-f47af55e]{padding:10px;white-space:nowrap;overflow-x:auto;overflow-y:hidden}.thumbnail-item[data-v-f47af55e]{position:relative;display:inline-block;outline:2px solid #aaa}.thumbnail-item+.thumbnail-item[data-v-f47af55e]{margin-left:10px}.thumbnail-item.active[data-v-f47af55e]{outline-color:#d14424}.thumbnail-item.active .label[data-v-f47af55e]{background-color:#d14424}.thumbnail-item .label[data-v-f47af55e]{min-width:20px;height:14px;line-height:14px;position:absolute;right:-1px;top:-1px;color:#fff;background-color:#aaa;z-index:1;font-size:12px;text-align:center;padding:0 5px}.sortable-chosen[data-v-f47af55e]{top:-5px}[data-v-f47af55e]::-webkit-scrollbar{width:0;height:0}.slide-toolbar[data-v-bceba327]{height:230px;background-color:#fff;box-shadow:0 0 15px #0000001a;display:flex;flex-direction:column;position:relative;z-index:2}.remark[data-v-bceba327]{position:relative;flex:1;border-bottom:1px solid #eee;line-height:1.5}.remark textarea[data-v-bceba327]{width:100%;height:100%;overflow-y:auto;resize:none;border:0;outline:0;padding:8px 10px;font-size:12px;box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0}.toolbar[data-v-bceba327]{height:90px;border-bottom:1px solid #eee;padding:10px}.row[data-v-bceba327]{width:100%;display:flex;align-items:center;margin-bottom:5px}.row .icon[data-v-bceba327]{margin-right:3px}.element-toolbar[data-v-65decaff]{width:100%;height:240px;position:absolute;z-index:99;bottom:0;left:0;background-color:#fff;box-shadow:0 0 15px #0000001a;display:flex;flex-direction:column;animation:slideInUp-65decaff .15s}@keyframes slideInUp-65decaff{0%{transform:translateY(100%)}to{transform:translateY(0)}}.content[data-v-65decaff]{padding:10px;flex:1;overflow:auto}.row[data-v-65decaff]{width:100%;display:flex;align-items:center;margin-bottom:10px}.row .icon[data-v-65decaff]{margin-right:3px}.row-block[data-v-65decaff]{margin-bottom:10px;background-color:#f9f9f9;border-radius:2px;padding:10px}.label[data-v-65decaff]{font-size:13px;margin-bottom:20px;margin-left:6px}.colors[data-v-65decaff]{display:flex;flex-wrap:wrap;align-content:flex-start}.color[data-v-65decaff]{width:12%;margin-bottom:calc(4% / 7);padding-bottom:5px;display:flex;justify-content:center;align-items:center}.color[data-v-65decaff]:not(:nth-child(8n)){margin-right:calc(4% / 7)}.color .color-block[data-v-65decaff]{width:30px;height:30px;border-radius:50%}.mobile-editor-header[data-v-091403e4]{height:50px;background-color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 18px;font-size:13px;box-shadow:0 0 15px #0000001a;position:relative;z-index:2}.history[data-v-091403e4]{display:flex;justify-content:center;align-items:center}.history-item[data-v-091403e4]{margin-right:20px}.history-item.disable[data-v-091403e4]{opacity:.5}.mobile-editor[data-v-8b282f2e]{height:100%;position:relative;background-color:#f9f9f9}.content[data-v-8b282f2e]{height:calc(100% - 280px);display:flex;justify-content:center;align-items:center}.viewport[data-v-8b282f2e]{transform-origin:0 0}.viewport-wrapper[data-v-8b282f2e]{position:relative;box-shadow:0 0 15px #0000001a}.background[data-v-8b282f2e]{width:100%;height:100%;background-position:center;position:absolute}.mobile-player[data-v-c846a018]{transform-origin:0 0;background-color:#1d1d1d;position:relative}.screen-slide-list[data-v-c846a018]{position:relative;width:100%;height:100%}.slide-item[data-v-c846a018]{position:absolute;top:0;left:0;width:100%;height:100%}.slide-item.current[data-v-c846a018]{z-index:2}.slide-item.hide[data-v-c846a018]{opacity:0}.slide-item.turning-mode-no.before[data-v-c846a018]{transform:translateY(-100%)}.slide-item.turning-mode-no.after[data-v-c846a018]{transform:translateY(100%)}.slide-item.turning-mode-fade[data-v-c846a018]{transition:opacity .75s}.slide-item.turning-mode-fade.before[data-v-c846a018],.slide-item.turning-mode-fade.after[data-v-c846a018]{pointer-events:none;opacity:0}.slide-item.turning-mode-slideX[data-v-c846a018]{transition:transform .35s}.slide-item.turning-mode-slideX.before[data-v-c846a018]{transform:translate(-100%)}.slide-item.turning-mode-slideX.after[data-v-c846a018]{transform:translate(100%)}.slide-item.turning-mode-slideY[data-v-c846a018]{transition:transform .35s}.slide-item.turning-mode-slideY.before[data-v-c846a018]{transform:translateY(-100%)}.slide-item.turning-mode-slideY.after[data-v-c846a018]{transform:translateY(100%)}.slide-content[data-v-c846a018]{background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.header[data-v-c846a018]{width:100%;height:40px;line-height:40px;padding:0 15px;position:absolute;top:0;left:0;z-index:99;background-color:#1d1d1db3;text-align:right;font-size:13px;color:#fff;animation:slideInDown-c846a018 .15s}.header .back[data-v-c846a018]{height:100%}.thumbnails[data-v-c846a018]{width:100%;position:absolute;bottom:0;left:0;z-index:99;background-color:#1d1d1db3;overflow:auto!important;animation:slideInUp-c846a018 .15s}@keyframes slideInUp-c846a018{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInDown-c846a018{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.mobile-preview[data-v-99aa0ac4]{height:100%;background-color:#f9f9f9}.thumbnail-list[data-v-99aa0ac4]{height:calc(100% - 50px);padding:10px;overflow:auto}.thumbnail-item[data-v-99aa0ac4]{display:flex;justify-content:center;align-items:center;box-shadow:0 0 15px #0000001a}.thumbnail-item+.thumbnail-item[data-v-99aa0ac4]{margin-top:10px}.menu[data-v-99aa0ac4]{height:50px;position:relative;box-shadow:0 -2px 4px #3333330d;background:#fff;display:flex;justify-content:center;align-items:center}.menu .menu-item[data-v-99aa0ac4]{width:50%;height:100%;display:flex;justify-content:center;align-items:center;font-size:13px}.menu .menu-item .icon[data-v-99aa0ac4]{margin-right:8px;font-size:18px}.mobile[data-v-d02011cb],#app{height:100%}.i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ProseMirror{position:relative}.ProseMirror{word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0}.ProseMirror pre{white-space:pre-wrap}.ProseMirror li{position:relative}.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection *::-moz-selection{background:transparent}.ProseMirror-hideselection{caret-color:transparent}.ProseMirror [draggable][contenteditable=false]{-webkit-user-select:text;user-select:text}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}img.ProseMirror-separator{display:inline!important;border:none!important;margin:0!important}/*! * animate.css - https://animate.style/ * Version - 4.1.1 * Licensed under the MIT license - http://opensource.org/licenses/MIT diff --git a/index.html b/index.html index f8a09bf7..16ca9eff 100644 --- a/index.html +++ b/index.html @@ -45,8 +45,8 @@ } } - - + +