@zyzgroup/core-vue 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,33 +1,33 @@
1
- (function(Ke,Xt){typeof exports=="object"&&typeof module<"u"?Xt(exports):typeof define=="function"&&define.amd?define(["exports"],Xt):(Ke=typeof globalThis<"u"?globalThis:Ke||self,Xt(Ke.YZCustomElement={}))})(this,function(Ke){"use strict";/**
1
+ (function(et,en){typeof exports=="object"&&typeof module<"u"?en(exports):typeof define=="function"&&define.amd?define(["exports"],en):(et=typeof globalThis<"u"?globalThis:et||self,en(et.YZCustomElement={}))})(this,function(et){"use strict";/**
2
2
  * @vue/shared v3.4.25
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function Xt(n,e){const t=new Set(n.split(","));return e?s=>t.has(s.toLowerCase()):s=>t.has(s)}const He={}.NODE_ENV!=="production"?Object.freeze({}):{},is={}.NODE_ENV!=="production"?Object.freeze([]):[],ot=()=>{},fh=()=>!1,_s=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),si=n=>n.startsWith("onUpdate:"),Ze=Object.assign,Eo=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},ph=Object.prototype.hasOwnProperty,Re=(n,e)=>ph.call(n,e),we=Array.isArray,An=n=>ii(n)==="[object Map]",ya=n=>ii(n)==="[object Set]",Se=n=>typeof n=="function",it=n=>typeof n=="string",Rn=n=>typeof n=="symbol",Be=n=>n!==null&&typeof n=="object",So=n=>(Be(n)||Se(n))&&Se(n.then)&&Se(n.catch),_a=Object.prototype.toString,ii=n=>_a.call(n),ko=n=>ii(n).slice(8,-1),ba=n=>ii(n)==="[object Object]",To=n=>it(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,bs=Xt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mh=Xt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),oi=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},gh=/-(\w)/g,sn=oi(n=>n.replace(gh,(e,t)=>t?t.toUpperCase():"")),vh=/\B([A-Z])/g,Mt=oi(n=>n.replace(vh,"-$1").toLowerCase()),ri=oi(n=>n.charAt(0).toUpperCase()+n.slice(1)),Vn=oi(n=>n?`on${ri(n)}`:""),bn=(n,e)=>!Object.is(n,e),xs=(n,e)=>{for(let t=0;t<n.length;t++)n[t](e)},xa=(n,e,t)=>{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},yh=n=>{const e=parseFloat(n);return isNaN(e)?n:e},wa=n=>{const e=it(n)?Number(n):NaN;return isNaN(e)?n:e};let Ca;const Po=()=>Ca||(Ca=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Z(n){if(we(n)){const e={};for(let t=0;t<n.length;t++){const s=n[t],i=it(s)?wh(s):Z(s);if(i)for(const o in i)e[o]=i[o]}return e}else if(it(n)||Be(n))return n}const _h=/;(?![^(]*\))/g,bh=/:([^]+)/,xh=/\/\*[^]*?\*\//g;function wh(n){const e={};return n.replace(xh,"").split(_h).forEach(t=>{if(t){const s=t.split(bh);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function xt(n){let e="";if(it(n))e=n;else if(we(n))for(let t=0;t<n.length;t++){const s=xt(n[t]);s&&(e+=s+" ")}else if(Be(n))for(const t in n)n[t]&&(e+=t+" ");return e.trim()}const Ch=Xt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ea(n){return!!n||n===""}const Oe=n=>it(n)?n:n==null?"":we(n)||Be(n)&&(n.toString===_a||!Se(n.toString))?JSON.stringify(n,Sa,2):String(n),Sa=(n,e)=>e&&e.__v_isRef?Sa(n,e.value):An(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,i],o)=>(t[Oo(s,o)+" =>"]=i,t),{})}:ya(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Oo(t))}:Rn(e)?Oo(e):Be(e)&&!we(e)&&!ba(e)?String(e):e,Oo=(n,e="")=>{var t;return Rn(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function en(n,e){const t=new Set(n.split(","));return e?s=>t.has(s.toLowerCase()):s=>t.has(s)}const Ge={}.NODE_ENV!=="production"?Object.freeze({}):{},fs={}.NODE_ENV!=="production"?Object.freeze([]):[],ct=()=>{},kh=()=>!1,Os=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),hi=n=>n.startsWith("onUpdate:"),tt=Object.assign,Po=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},Th=Object.prototype.hasOwnProperty,De=(n,e)=>Th.call(n,e),ye=Array.isArray,Gn=n=>di(n)==="[object Map]",Oa=n=>di(n)==="[object Set]",Ce=n=>typeof n=="function",ot=n=>typeof n=="string",jn=n=>typeof n=="symbol",Ve=n=>n!==null&&typeof n=="object",Oo=n=>(Ve(n)||Ce(n))&&Ce(n.then)&&Ce(n.catch),Ia=Object.prototype.toString,di=n=>Ia.call(n),Io=n=>di(n).slice(8,-1),Da=n=>di(n)==="[object Object]",Do=n=>ot(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,Is=en(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ph=en("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),fi=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},Oh=/-(\w)/g,hn=fi(n=>n.replace(Oh,(e,t)=>t?t.toUpperCase():"")),Ih=/\B([A-Z])/g,Vt=fi(n=>n.replace(Ih,"-$1").toLowerCase()),pi=fi(n=>n.charAt(0).toUpperCase()+n.slice(1)),Bn=fi(n=>n?`on${pi(n)}`:""),Pn=(n,e)=>!Object.is(n,e),Ds=(n,e)=>{for(let t=0;t<n.length;t++)n[t](e)},Na=(n,e,t)=>{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},Dh=n=>{const e=parseFloat(n);return isNaN(e)?n:e},$a=n=>{const e=ot(n)?Number(n):NaN;return isNaN(e)?n:e};let Aa;const No=()=>Aa||(Aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function V(n){if(ye(n)){const e={};for(let t=0;t<n.length;t++){const s=n[t],i=ot(s)?Mh(s):V(s);if(i)for(const o in i)e[o]=i[o]}return e}else if(ot(n)||Ve(n))return n}const Nh=/;(?![^(]*\))/g,$h=/:([^]+)/,Ah=/\/\*[^]*?\*\//g;function Mh(n){const e={};return n.replace(Ah,"").split(Nh).forEach(t=>{if(t){const s=t.split($h);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function kt(n){let e="";if(ot(n))e=n;else if(ye(n))for(let t=0;t<n.length;t++){const s=kt(n[t]);s&&(e+=s+" ")}else if(Ve(n))for(const t in n)n[t]&&(e+=t+" ");return e.trim()}const Rh=en("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ma(n){return!!n||n===""}const _e=n=>ot(n)?n:n==null?"":ye(n)||Ve(n)&&(n.toString===Ia||!Ce(n.toString))?JSON.stringify(n,Ra,2):String(n),Ra=(n,e)=>e&&e.__v_isRef?Ra(n,e.value):Gn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,i],o)=>(t[$o(s,o)+" =>"]=i,t),{})}:Oa(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>$o(t))}:jn(e)?$o(e):Ve(e)&&!ye(e)&&!Da(e)?String(e):e,$o=(n,e="")=>{var t;return jn(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/**
6
6
  * @vue/reactivity v3.4.25
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/function xn(n,...e){console.warn(`[Vue warn] ${n}`,...e)}let jt;class Eh{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=jt,!e&&jt&&(this.index=(jt.scopes||(jt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=jt;try{return jt=this,e()}finally{jt=t}}else({}).NODE_ENV!=="production"&&xn("cannot run an inactive effect scope.")}on(){jt=this}off(){jt=this.parent}stop(e){if(this._active){let t,s;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].stop();for(t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Sh(n,e=jt){e&&e.active&&e.effects.push(n)}function kh(){return jt}let Ln;class Io{constructor(e,t,s,i){this.fn=e,this.trigger=t,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Sh(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,on();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(Th(t.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),rn()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=wn,t=Ln;try{return wn=!0,Ln=this,this._runnings++,ka(this),this.fn()}finally{Ta(this),this._runnings--,Ln=t,wn=e}}stop(){var e;this.active&&(ka(this),Ta(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function Th(n){return n.value}function ka(n){n._trackId++,n._depsLength=0}function Ta(n){if(n.deps.length>n._depsLength){for(let e=n._depsLength;e<n.deps.length;e++)Pa(n.deps[e],n);n.deps.length=n._depsLength}}function Pa(n,e){const t=n.get(e);t!==void 0&&e._trackId!==t&&(n.delete(e),n.size===0&&n.cleanup())}let wn=!0,No=0;const Oa=[];function on(){Oa.push(wn),wn=!1}function rn(){const n=Oa.pop();wn=n===void 0?!0:n}function Do(){No++}function Mo(){for(No--;!No&&$o.length;)$o.shift()()}function Ia(n,e,t){var s;if(e.get(n)!==n._trackId){e.set(n,n._trackId);const i=n.deps[n._depsLength];i!==e?(i&&Pa(i,n),n.deps[n._depsLength++]=e):n._depsLength++,{}.NODE_ENV!=="production"&&((s=n.onTrack)==null||s.call(n,Ze({effect:n},t)))}}const $o=[];function Na(n,e,t){var s;Do();for(const i of n.keys()){let o;i._dirtyLevel<e&&(o??(o=n.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(o??(o=n.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((s=i.onTrigger)==null||s.call(i,Ze({effect:i},t))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&$o.push(i.scheduler)))}Mo()}const Da=(n,e)=>{const t=new Map;return t.cleanup=n,t.computed=e,t},Ao=new WeakMap,Fn=Symbol({}.NODE_ENV!=="production"?"iterate":""),Ro=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function mt(n,e,t){if(wn&&Ln){let s=Ao.get(n);s||Ao.set(n,s=new Map);let i=s.get(t);i||s.set(t,i=Da(()=>s.delete(t))),Ia(Ln,i,{}.NODE_ENV!=="production"?{target:n,type:e,key:t}:void 0)}}function Ut(n,e,t,s,i,o){const r=Ao.get(n);if(!r)return;let a=[];if(e==="clear")a=[...r.values()];else if(t==="length"&&we(n)){const l=Number(s);r.forEach((c,u)=>{(u==="length"||!Rn(u)&&u>=l)&&a.push(c)})}else switch(t!==void 0&&a.push(r.get(t)),e){case"add":we(n)?To(t)&&a.push(r.get("length")):(a.push(r.get(Fn)),An(n)&&a.push(r.get(Ro)));break;case"delete":we(n)||(a.push(r.get(Fn)),An(n)&&a.push(r.get(Ro)));break;case"set":An(n)&&a.push(r.get(Fn));break}Do();for(const l of a)l&&Na(l,4,{}.NODE_ENV!=="production"?{target:n,type:e,key:t,newValue:s,oldValue:i,oldTarget:o}:void 0);Mo()}const Ph=Xt("__proto__,__v_isRef,__isVue"),Ma=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Rn)),$a=Oh();function Oh(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const s=Me(this);for(let o=0,r=this.length;o<r;o++)mt(s,"get",o+"");const i=s[e](...t);return i===-1||i===!1?s[e](...t.map(Me)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{n[e]=function(...t){on(),Do();const s=Me(this)[e].apply(this,t);return Mo(),rn(),s}}),n}function Ih(n){Rn(n)||(n=String(n));const e=Me(this);return mt(e,"has",n),e.hasOwnProperty(n)}class Aa{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,s){const i=this._isReadonly,o=this._isShallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return o;if(t==="__v_raw")return s===(i?o?Wa:Ya:o?Ha:Ba).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const r=we(e);if(!i){if(r&&Re($a,t))return Reflect.get($a,t,s);if(t==="hasOwnProperty")return Ih}const a=Reflect.get(e,t,s);return(Rn(t)?Ma.has(t):Ph(t))||(i||mt(e,"get",t),o)?a:vt(a)?r&&To(t)?a:a.value:Be(a)?i?Xa(a):gt(a):a}}class Ra extends Aa{constructor(e=!1){super(!1,e)}set(e,t,s,i){let o=e[t];if(!this._isShallow){const l=zn(o);if(!Gn(s)&&!zn(s)&&(o=Me(o),s=Me(s)),!we(e)&&vt(o)&&!vt(s))return l?!1:(o.value=s,!0)}const r=we(e)&&To(t)?Number(t)<e.length:Re(e,t),a=Reflect.set(e,t,s,i);return e===Me(i)&&(r?bn(s,o)&&Ut(e,"set",t,s,o):Ut(e,"add",t,s)),a}deleteProperty(e,t){const s=Re(e,t),i=e[t],o=Reflect.deleteProperty(e,t);return o&&s&&Ut(e,"delete",t,void 0,i),o}has(e,t){const s=Reflect.has(e,t);return(!Rn(t)||!Ma.has(t))&&mt(e,"has",t),s}ownKeys(e){return mt(e,"iterate",we(e)?"length":Fn),Reflect.ownKeys(e)}}class Va extends Aa{constructor(e=!1){super(!0,e)}set(e,t){return{}.NODE_ENV!=="production"&&xn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return{}.NODE_ENV!=="production"&&xn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const Nh=new Ra,Dh=new Va,Mh=new Ra(!0),$h=new Va(!0),Vo=n=>n,ai=n=>Reflect.getPrototypeOf(n);function li(n,e,t=!1,s=!1){n=n.__v_raw;const i=Me(n),o=Me(e);t||(bn(e,o)&&mt(i,"get",e),mt(i,"get",o));const{has:r}=ai(i),a=s?Vo:t?Fo:ws;if(r.call(i,e))return a(n.get(e));if(r.call(i,o))return a(n.get(o));n!==i&&n.get(e)}function ci(n,e=!1){const t=this.__v_raw,s=Me(t),i=Me(n);return e||(bn(n,i)&&mt(s,"has",n),mt(s,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function ui(n,e=!1){return n=n.__v_raw,!e&&mt(Me(n),"iterate",Fn),Reflect.get(n,"size",n)}function La(n){n=Me(n);const e=Me(this);return ai(e).has.call(e,n)||(e.add(n),Ut(e,"add",n,n)),this}function Fa(n,e){e=Me(e);const t=Me(this),{has:s,get:i}=ai(t);let o=s.call(t,n);o?{}.NODE_ENV!=="production"&&ja(t,s,n):(n=Me(n),o=s.call(t,n));const r=i.call(t,n);return t.set(n,e),o?bn(e,r)&&Ut(t,"set",n,e,r):Ut(t,"add",n,e),this}function za(n){const e=Me(this),{has:t,get:s}=ai(e);let i=t.call(e,n);i?{}.NODE_ENV!=="production"&&ja(e,t,n):(n=Me(n),i=t.call(e,n));const o=s?s.call(e,n):void 0,r=e.delete(n);return i&&Ut(e,"delete",n,void 0,o),r}function Ga(){const n=Me(this),e=n.size!==0,t={}.NODE_ENV!=="production"?An(n)?new Map(n):new Set(n):void 0,s=n.clear();return e&&Ut(n,"clear",void 0,void 0,t),s}function hi(n,e){return function(s,i){const o=this,r=o.__v_raw,a=Me(r),l=e?Vo:n?Fo:ws;return!n&&mt(a,"iterate",Fn),r.forEach((c,u)=>s.call(i,l(c),l(u),o))}}function di(n,e,t){return function(...s){const i=this.__v_raw,o=Me(i),r=An(o),a=n==="entries"||n===Symbol.iterator&&r,l=n==="keys"&&r,c=i[n](...s),u=t?Vo:e?Fo:ws;return!e&&mt(o,"iterate",l?Ro:Fn),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:a?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function Cn(n){return function(...e){if({}.NODE_ENV!=="production"){const t=e[0]?`on key "${e[0]}" `:"";xn(`${ri(n)} operation ${t}failed: target is readonly.`,Me(this))}return n==="delete"?!1:n==="clear"?void 0:this}}function Ah(){const n={get(o){return li(this,o)},get size(){return ui(this)},has:ci,add:La,set:Fa,delete:za,clear:Ga,forEach:hi(!1,!1)},e={get(o){return li(this,o,!1,!0)},get size(){return ui(this)},has:ci,add:La,set:Fa,delete:za,clear:Ga,forEach:hi(!1,!0)},t={get(o){return li(this,o,!0)},get size(){return ui(this,!0)},has(o){return ci.call(this,o,!0)},add:Cn("add"),set:Cn("set"),delete:Cn("delete"),clear:Cn("clear"),forEach:hi(!0,!1)},s={get(o){return li(this,o,!0,!0)},get size(){return ui(this,!0)},has(o){return ci.call(this,o,!0)},add:Cn("add"),set:Cn("set"),delete:Cn("delete"),clear:Cn("clear"),forEach:hi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=di(o,!1,!1),t[o]=di(o,!0,!1),e[o]=di(o,!1,!0),s[o]=di(o,!0,!0)}),[n,t,e,s]}const[Rh,Vh,Lh,Fh]=Ah();function fi(n,e){const t=e?n?Fh:Lh:n?Vh:Rh;return(s,i,o)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?s:Reflect.get(Re(t,i)&&i in s?t:s,i,o)}const zh={get:fi(!1,!1)},Gh={get:fi(!1,!0)},jh={get:fi(!0,!1)},Bh={get:fi(!0,!0)};function ja(n,e,t){const s=Me(t);if(s!==t&&e.call(n,s)){const i=ko(n);xn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Ba=new WeakMap,Ha=new WeakMap,Ya=new WeakMap,Wa=new WeakMap;function Hh(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yh(n){return n.__v_skip||!Object.isExtensible(n)?0:Hh(ko(n))}function gt(n){return zn(n)?n:pi(n,!1,Nh,zh,Ba)}function Wh(n){return pi(n,!1,Mh,Gh,Ha)}function Xa(n){return pi(n,!0,Dh,jh,Ya)}function an(n){return pi(n,!0,$h,Bh,Wa)}function pi(n,e,t,s,i){if(!Be(n))return{}.NODE_ENV!=="production"&&xn(`value cannot be made reactive: ${String(n)}`),n;if(n.__v_raw&&!(e&&n.__v_isReactive))return n;const o=i.get(n);if(o)return o;const r=Yh(n);if(r===0)return n;const a=new Proxy(n,r===2?s:t);return i.set(n,a),a}function os(n){return zn(n)?os(n.__v_raw):!!(n&&n.__v_isReactive)}function zn(n){return!!(n&&n.__v_isReadonly)}function Gn(n){return!!(n&&n.__v_isShallow)}function Lo(n){return n?!!n.__v_raw:!1}function Me(n){const e=n&&n.__v_raw;return e?Me(e):n}function Xh(n){return Object.isExtensible(n)&&xa(n,"__v_skip",!0),n}const ws=n=>Be(n)?gt(n):n,Fo=n=>Be(n)?Xa(n):n,Uh="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class Ua{constructor(e,t,s,i){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Io(()=>e(this._value),()=>mi(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const e=Me(this);return(!e._cacheable||e.effect.dirty)&&bn(e._value,e._value=e.effect.run())&&mi(e,4),qa(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&xn(Uh,`
9
+ **/function On(n,...e){console.warn(`[Vue warn] ${n}`,...e)}let qt;class Vh{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qt,!e&&qt&&(this.index=(qt.scopes||(qt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=qt;try{return qt=this,e()}finally{qt=t}}else({}).NODE_ENV!=="production"&&On("cannot run an inactive effect scope.")}on(){qt=this}off(){qt=this.parent}stop(e){if(this._active){let t,s;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].stop();for(t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Lh(n,e=qt){e&&e.active&&e.effects.push(n)}function Fh(){return qt}let Hn;class Ao{constructor(e,t,s,i){this.fn=e,this.trigger=t,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Lh(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,dn();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(zh(t.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),fn()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=In,t=Hn;try{return In=!0,Hn=this,this._runnings++,Va(this),this.fn()}finally{La(this),this._runnings--,Hn=t,In=e}}stop(){var e;this.active&&(Va(this),La(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function zh(n){return n.value}function Va(n){n._trackId++,n._depsLength=0}function La(n){if(n.deps.length>n._depsLength){for(let e=n._depsLength;e<n.deps.length;e++)Fa(n.deps[e],n);n.deps.length=n._depsLength}}function Fa(n,e){const t=n.get(e);t!==void 0&&e._trackId!==t&&(n.delete(e),n.size===0&&n.cleanup())}let In=!0,Mo=0;const za=[];function dn(){za.push(In),In=!1}function fn(){const n=za.pop();In=n===void 0?!0:n}function Ro(){Mo++}function Vo(){for(Mo--;!Mo&&Lo.length;)Lo.shift()()}function Ga(n,e,t){var s;if(e.get(n)!==n._trackId){e.set(n,n._trackId);const i=n.deps[n._depsLength];i!==e?(i&&Fa(i,n),n.deps[n._depsLength++]=e):n._depsLength++,{}.NODE_ENV!=="production"&&((s=n.onTrack)==null||s.call(n,tt({effect:n},t)))}}const Lo=[];function ja(n,e,t){var s;Ro();for(const i of n.keys()){let o;i._dirtyLevel<e&&(o??(o=n.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(o??(o=n.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((s=i.onTrigger)==null||s.call(i,tt({effect:i},t))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Lo.push(i.scheduler)))}Vo()}const Ba=(n,e)=>{const t=new Map;return t.cleanup=n,t.computed=e,t},Fo=new WeakMap,Yn=Symbol({}.NODE_ENV!=="production"?"iterate":""),zo=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function _t(n,e,t){if(In&&Hn){let s=Fo.get(n);s||Fo.set(n,s=new Map);let i=s.get(t);i||s.set(t,i=Ba(()=>s.delete(t))),Ga(Hn,i,{}.NODE_ENV!=="production"?{target:n,type:e,key:t}:void 0)}}function tn(n,e,t,s,i,o){const r=Fo.get(n);if(!r)return;let a=[];if(e==="clear")a=[...r.values()];else if(t==="length"&&ye(n)){const l=Number(s);r.forEach((c,u)=>{(u==="length"||!jn(u)&&u>=l)&&a.push(c)})}else switch(t!==void 0&&a.push(r.get(t)),e){case"add":ye(n)?Do(t)&&a.push(r.get("length")):(a.push(r.get(Yn)),Gn(n)&&a.push(r.get(zo)));break;case"delete":ye(n)||(a.push(r.get(Yn)),Gn(n)&&a.push(r.get(zo)));break;case"set":Gn(n)&&a.push(r.get(Yn));break}Ro();for(const l of a)l&&ja(l,4,{}.NODE_ENV!=="production"?{target:n,type:e,key:t,newValue:s,oldValue:i,oldTarget:o}:void 0);Vo()}const Gh=en("__proto__,__v_isRef,__isVue"),Ha=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(jn)),Ya=jh();function jh(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const s=ke(this);for(let o=0,r=this.length;o<r;o++)_t(s,"get",o+"");const i=s[e](...t);return i===-1||i===!1?s[e](...t.map(ke)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{n[e]=function(...t){dn(),Ro();const s=ke(this)[e].apply(this,t);return Vo(),fn(),s}}),n}function Bh(n){jn(n)||(n=String(n));const e=ke(this);return _t(e,"has",n),e.hasOwnProperty(n)}class Wa{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,s){const i=this._isReadonly,o=this._isShallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return o;if(t==="__v_raw")return s===(i?o?sl:nl:o?tl:el).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const r=ye(e);if(!i){if(r&&De(Ya,t))return Reflect.get(Ya,t,s);if(t==="hasOwnProperty")return Bh}const a=Reflect.get(e,t,s);return(jn(t)?Ha.has(t):Gh(t))||(i||_t(e,"get",t),o)?a:wt(a)?r&&Do(t)?a:a.value:Ve(a)?i?il(a):xt(a):a}}class Ua extends Wa{constructor(e=!1){super(!1,e)}set(e,t,s,i){let o=e[t];if(!this._isShallow){const l=Wn(o);if(!Un(s)&&!Wn(s)&&(o=ke(o),s=ke(s)),!ye(e)&&wt(o)&&!wt(s))return l?!1:(o.value=s,!0)}const r=ye(e)&&Do(t)?Number(t)<e.length:De(e,t),a=Reflect.set(e,t,s,i);return e===ke(i)&&(r?Pn(s,o)&&tn(e,"set",t,s,o):tn(e,"add",t,s)),a}deleteProperty(e,t){const s=De(e,t),i=e[t],o=Reflect.deleteProperty(e,t);return o&&s&&tn(e,"delete",t,void 0,i),o}has(e,t){const s=Reflect.has(e,t);return(!jn(t)||!Ha.has(t))&&_t(e,"has",t),s}ownKeys(e){return _t(e,"iterate",ye(e)?"length":Yn),Reflect.ownKeys(e)}}class Xa extends Wa{constructor(e=!1){super(!0,e)}set(e,t){return{}.NODE_ENV!=="production"&&On(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return{}.NODE_ENV!=="production"&&On(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const Hh=new Ua,Yh=new Xa,Wh=new Ua(!0),Uh=new Xa(!0),Go=n=>n,mi=n=>Reflect.getPrototypeOf(n);function gi(n,e,t=!1,s=!1){n=n.__v_raw;const i=ke(n),o=ke(e);t||(Pn(e,o)&&_t(i,"get",e),_t(i,"get",o));const{has:r}=mi(i),a=s?Go:t?Bo:Ns;if(r.call(i,e))return a(n.get(e));if(r.call(i,o))return a(n.get(o));n!==i&&n.get(e)}function vi(n,e=!1){const t=this.__v_raw,s=ke(t),i=ke(n);return e||(Pn(n,i)&&_t(s,"has",n),_t(s,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function yi(n,e=!1){return n=n.__v_raw,!e&&_t(ke(n),"iterate",Yn),Reflect.get(n,"size",n)}function qa(n){n=ke(n);const e=ke(this);return mi(e).has.call(e,n)||(e.add(n),tn(e,"add",n,n)),this}function Ka(n,e){e=ke(e);const t=ke(this),{has:s,get:i}=mi(t);let o=s.call(t,n);o?{}.NODE_ENV!=="production"&&Ja(t,s,n):(n=ke(n),o=s.call(t,n));const r=i.call(t,n);return t.set(n,e),o?Pn(e,r)&&tn(t,"set",n,e,r):tn(t,"add",n,e),this}function Za(n){const e=ke(this),{has:t,get:s}=mi(e);let i=t.call(e,n);i?{}.NODE_ENV!=="production"&&Ja(e,t,n):(n=ke(n),i=t.call(e,n));const o=s?s.call(e,n):void 0,r=e.delete(n);return i&&tn(e,"delete",n,void 0,o),r}function Qa(){const n=ke(this),e=n.size!==0,t={}.NODE_ENV!=="production"?Gn(n)?new Map(n):new Set(n):void 0,s=n.clear();return e&&tn(n,"clear",void 0,void 0,t),s}function bi(n,e){return function(s,i){const o=this,r=o.__v_raw,a=ke(r),l=e?Go:n?Bo:Ns;return!n&&_t(a,"iterate",Yn),r.forEach((c,u)=>s.call(i,l(c),l(u),o))}}function _i(n,e,t){return function(...s){const i=this.__v_raw,o=ke(i),r=Gn(o),a=n==="entries"||n===Symbol.iterator&&r,l=n==="keys"&&r,c=i[n](...s),u=t?Go:e?Bo:Ns;return!e&&_t(o,"iterate",l?zo:Yn),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Dn(n){return function(...e){if({}.NODE_ENV!=="production"){const t=e[0]?`on key "${e[0]}" `:"";On(`${pi(n)} operation ${t}failed: target is readonly.`,ke(this))}return n==="delete"?!1:n==="clear"?void 0:this}}function Xh(){const n={get(o){return gi(this,o)},get size(){return yi(this)},has:vi,add:qa,set:Ka,delete:Za,clear:Qa,forEach:bi(!1,!1)},e={get(o){return gi(this,o,!1,!0)},get size(){return yi(this)},has:vi,add:qa,set:Ka,delete:Za,clear:Qa,forEach:bi(!1,!0)},t={get(o){return gi(this,o,!0)},get size(){return yi(this,!0)},has(o){return vi.call(this,o,!0)},add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear"),forEach:bi(!0,!1)},s={get(o){return gi(this,o,!0,!0)},get size(){return yi(this,!0)},has(o){return vi.call(this,o,!0)},add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear"),forEach:bi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=_i(o,!1,!1),t[o]=_i(o,!0,!1),e[o]=_i(o,!1,!0),s[o]=_i(o,!0,!0)}),[n,t,e,s]}const[qh,Kh,Zh,Qh]=Xh();function xi(n,e){const t=e?n?Qh:Zh:n?Kh:qh;return(s,i,o)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?s:Reflect.get(De(t,i)&&i in s?t:s,i,o)}const Jh={get:xi(!1,!1)},ed={get:xi(!1,!0)},td={get:xi(!0,!1)},nd={get:xi(!0,!0)};function Ja(n,e,t){const s=ke(t);if(s!==t&&e.call(n,s)){const i=Io(n);On(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const el=new WeakMap,tl=new WeakMap,nl=new WeakMap,sl=new WeakMap;function sd(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function id(n){return n.__v_skip||!Object.isExtensible(n)?0:sd(Io(n))}function xt(n){return Wn(n)?n:wi(n,!1,Hh,Jh,el)}function od(n){return wi(n,!1,Wh,ed,tl)}function il(n){return wi(n,!0,Yh,td,nl)}function pn(n){return wi(n,!0,Uh,nd,sl)}function wi(n,e,t,s,i){if(!Ve(n))return{}.NODE_ENV!=="production"&&On(`value cannot be made reactive: ${String(n)}`),n;if(n.__v_raw&&!(e&&n.__v_isReactive))return n;const o=i.get(n);if(o)return o;const r=id(n);if(r===0)return n;const a=new Proxy(n,r===2?s:t);return i.set(n,a),a}function ps(n){return Wn(n)?ps(n.__v_raw):!!(n&&n.__v_isReactive)}function Wn(n){return!!(n&&n.__v_isReadonly)}function Un(n){return!!(n&&n.__v_isShallow)}function jo(n){return n?!!n.__v_raw:!1}function ke(n){const e=n&&n.__v_raw;return e?ke(e):n}function rd(n){return Object.isExtensible(n)&&Na(n,"__v_skip",!0),n}const Ns=n=>Ve(n)?xt(n):n,Bo=n=>Ve(n)?il(n):n,ad="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class ol{constructor(e,t,s,i){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ao(()=>e(this._value),()=>Ci(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const e=ke(this);return(!e._cacheable||e.effect.dirty)&&Pn(e._value,e._value=e.effect.run())&&Ci(e,4),rl(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&On(ad,`
10
10
 
11
- getter: `,this.getter),mi(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function qh(n,e,t=!1){let s,i;const o=Se(n);o?(s=n,i={}.NODE_ENV!=="production"?()=>{xn("Write operation failed: computed value is readonly")}:ot):(s=n.get,i=n.set);const r=new Ua(s,i,o||!i,t);return{}.NODE_ENV!=="production"&&e&&!t&&(r.effect.onTrack=e.onTrack,r.effect.onTrigger=e.onTrigger),r}function qa(n){var e;wn&&Ln&&(n=Me(n),Ia(Ln,(e=n.dep)!=null?e:n.dep=Da(()=>n.dep=void 0,n instanceof Ua?n:void 0),{}.NODE_ENV!=="production"?{target:n,type:"get",key:"value"}:void 0))}function mi(n,e=4,t){n=Me(n);const s=n.dep;s&&Na(s,e,{}.NODE_ENV!=="production"?{target:n,type:"set",key:"value",newValue:t}:void 0)}function vt(n){return!!(n&&n.__v_isRef===!0)}function M(n){return Kh(n,!1)}function Kh(n,e){return vt(n)?n:new Zh(n,e)}class Zh{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Me(e),this._value=t?e:ws(e)}get value(){return qa(this),this._value}set value(e){const t=this.__v_isShallow||Gn(e)||zn(e);e=t?e:Me(e),bn(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ws(e),mi(this,4,e))}}function $e(n){return vt(n)?n.value:n}const Qh={get:(n,e,t)=>$e(Reflect.get(n,e,t)),set:(n,e,t,s)=>{const i=n[e];return vt(i)&&!vt(t)?(i.value=t,!0):Reflect.set(n,e,t,s)}};function Ka(n){return os(n)?n:new Proxy(n,Qh)}/**
11
+ getter: `,this.getter),Ci(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function ld(n,e,t=!1){let s,i;const o=Ce(n);o?(s=n,i={}.NODE_ENV!=="production"?()=>{On("Write operation failed: computed value is readonly")}:ct):(s=n.get,i=n.set);const r=new ol(s,i,o||!i,t);return{}.NODE_ENV!=="production"&&e&&!t&&(r.effect.onTrack=e.onTrack,r.effect.onTrigger=e.onTrigger),r}function rl(n){var e;In&&Hn&&(n=ke(n),Ga(Hn,(e=n.dep)!=null?e:n.dep=Ba(()=>n.dep=void 0,n instanceof ol?n:void 0),{}.NODE_ENV!=="production"?{target:n,type:"get",key:"value"}:void 0))}function Ci(n,e=4,t){n=ke(n);const s=n.dep;s&&ja(s,e,{}.NODE_ENV!=="production"?{target:n,type:"set",key:"value",newValue:t}:void 0)}function wt(n){return!!(n&&n.__v_isRef===!0)}function D(n){return cd(n,!1)}function cd(n,e){return wt(n)?n:new ud(n,e)}class ud{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ke(e),this._value=t?e:Ns(e)}get value(){return rl(this),this._value}set value(e){const t=this.__v_isShallow||Un(e)||Wn(e);e=t?e:ke(e),Pn(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ns(e),Ci(this,4,e))}}function Te(n){return wt(n)?n.value:n}const hd={get:(n,e,t)=>Te(Reflect.get(n,e,t)),set:(n,e,t,s)=>{const i=n[e];return wt(i)&&!wt(t)?(i.value=t,!0):Reflect.set(n,e,t,s)}};function al(n){return ps(n)?n:new Proxy(n,hd)}/**
12
12
  * @vue/runtime-core v3.4.25
13
13
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
14
14
  * @license MIT
15
- **/const jn=[];function gi(n){jn.push(n)}function vi(){jn.pop()}function ie(n,...e){on();const t=jn.length?jn[jn.length-1].component:null,s=t&&t.appContext.config.warnHandler,i=Jh();if(s)ln(s,t,11,[n+e.map(o=>{var r,a;return(a=(r=o.toString)==null?void 0:r.call(o))!=null?a:JSON.stringify(o)}).join(""),t&&t.proxy,i.map(({vnode:o})=>`at <${Ai(t,o.type)}>`).join(`
15
+ **/const Xn=[];function Si(n){Xn.push(n)}function Ei(){Xn.pop()}function ie(n,...e){dn();const t=Xn.length?Xn[Xn.length-1].component:null,s=t&&t.appContext.config.warnHandler,i=dd();if(s)mn(s,t,11,[n+e.map(o=>{var r,a;return(a=(r=o.toString)==null?void 0:r.call(o))!=null?a:JSON.stringify(o)}).join(""),t&&t.proxy,i.map(({vnode:o})=>`at <${Bi(t,o.type)}>`).join(`
16
16
  `),i]);else{const o=[`[Vue warn]: ${n}`,...e];i.length&&o.push(`
17
- `,...ed(i)),console.warn(...o)}rn()}function Jh(){let n=jn[jn.length-1];if(!n)return[];const e=[];for(;n;){const t=e[0];t&&t.vnode===n?t.recurseCount++:e.push({vnode:n,recurseCount:0});const s=n.component&&n.component.parent;n=s&&s.vnode}return e}function ed(n){const e=[];return n.forEach((t,s)=>{e.push(...s===0?[]:[`
18
- `],...td(t))}),e}function td({vnode:n,recurseCount:e}){const t=e>0?`... (${e} recursive calls)`:"",s=n.component?n.component.parent==null:!1,i=` at <${Ai(n.component,n.type,s)}`,o=">"+t;return n.props?[i,...nd(n.props),o]:[i+o]}function nd(n){const e=[],t=Object.keys(n);return t.slice(0,3).forEach(s=>{e.push(...Za(s,n[s]))}),t.length>3&&e.push(" ..."),e}function Za(n,e,t){return it(e)?(e=JSON.stringify(e),t?e:[`${n}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?t?e:[`${n}=${e}`]:vt(e)?(e=Za(n,Me(e.value),!0),t?e:[`${n}=Ref<`,e,">"]):Se(e)?[`${n}=fn${e.name?`<${e.name}>`:""}`]:(e=Me(e),t?e:[`${n}=`,e])}const zo={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 ln(n,e,t,s){try{return s?n(...s):n()}catch(i){Cs(i,e,t)}}function Bt(n,e,t,s){if(Se(n)){const i=ln(n,e,t,s);return i&&So(i)&&i.catch(o=>{Cs(o,e,t)}),i}if(we(n)){const i=[];for(let o=0;o<n.length;o++)i.push(Bt(n[o],e,t,s));return i}else({}).NODE_ENV!=="production"&&ie(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof n}`)}function Cs(n,e,t,s=!0){const i=e?e.vnode:null;if(e){let o=e.parent;const r=e.proxy,a={}.NODE_ENV!=="production"?zo[t]:`https://vuejs.org/error-reference/#runtime-${t}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](n,r,a)===!1)return}o=o.parent}const l=e.appContext.config.errorHandler;if(l){on(),ln(l,null,10,[n,r,a]),rn();return}}sd(n,t,i,s)}function sd(n,e,t,s=!0){if({}.NODE_ENV!=="production"){const i=zo[e];if(t&&gi(t),ie(`Unhandled error${i?` during execution of ${i}`:""}`),t&&vi(),s)throw n;console.error(n)}else console.error(n)}let Es=!1,Go=!1;const wt=[];let qt=0;const rs=[];let cn=null,En=0;const Qa=Promise.resolve();let jo=null;const id=100;function yi(n){const e=jo||Qa;return n?e.then(this?n.bind(this):n):e}function od(n){let e=qt+1,t=wt.length;for(;e<t;){const s=e+t>>>1,i=wt[s],o=Ss(i);o<n||o===n&&i.pre?e=s+1:t=s}return e}function _i(n){(!wt.length||!wt.includes(n,Es&&n.allowRecurse?qt+1:qt))&&(n.id==null?wt.push(n):wt.splice(od(n.id),0,n),Ja())}function Ja(){!Es&&!Go&&(Go=!0,jo=Qa.then(sl))}function rd(n){const e=wt.indexOf(n);e>qt&&wt.splice(e,1)}function el(n){we(n)?rs.push(...n):(!cn||!cn.includes(n,n.allowRecurse?En+1:En))&&rs.push(n),Ja()}function tl(n,e,t=Es?qt+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);t<wt.length;t++){const s=wt[t];if(s&&s.pre){if(n&&s.id!==n.uid||{}.NODE_ENV!=="production"&&Bo(e,s))continue;wt.splice(t,1),t--,s()}}}function nl(n){if(rs.length){const e=[...new Set(rs)].sort((t,s)=>Ss(t)-Ss(s));if(rs.length=0,cn){cn.push(...e);return}for(cn=e,{}.NODE_ENV!=="production"&&(n=n||new Map),En=0;En<cn.length;En++)({}).NODE_ENV!=="production"&&Bo(n,cn[En])||cn[En]();cn=null,En=0}}const Ss=n=>n.id==null?1/0:n.id,ad=(n,e)=>{const t=Ss(n)-Ss(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function sl(n){Go=!1,Es=!0,{}.NODE_ENV!=="production"&&(n=n||new Map),wt.sort(ad);const e={}.NODE_ENV!=="production"?t=>Bo(n,t):ot;try{for(qt=0;qt<wt.length;qt++){const t=wt[qt];if(t&&t.active!==!1){if({}.NODE_ENV!=="production"&&e(t))continue;ln(t,null,14)}}}finally{qt=0,wt.length=0,nl(n),Es=!1,jo=null,(wt.length||rs.length)&&sl(n)}}function Bo(n,e){if(!n.has(e))n.set(e,1);else{const t=n.get(e);if(t>id){const s=e.ownerInstance,i=s&&Ql(s.type);return Cs(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else n.set(e,t+1)}}let Bn=!1;const as=new Set;({}).NODE_ENV!=="production"&&(Po().__VUE_HMR_RUNTIME__={createRecord:Ho(il),rerender:Ho(ud),reload:Ho(hd)});const Hn=new Map;function ld(n){const e=n.type.__hmrId;let t=Hn.get(e);t||(il(e,n.type),t=Hn.get(e)),t.instances.add(n)}function cd(n){Hn.get(n.type.__hmrId).instances.delete(n)}function il(n,e){return Hn.has(n)?!1:(Hn.set(n,{initialDef:ks(e),instances:new Set}),!0)}function ks(n){return Jl(n)?n.__vccOpts:n}function ud(n,e){const t=Hn.get(n);t&&(t.initialDef.render=e,[...t.instances].forEach(s=>{e&&(s.render=e,ks(s.type).render=e),s.renderCache=[],Bn=!0,s.effect.dirty=!0,s.update(),Bn=!1}))}function hd(n,e){const t=Hn.get(n);if(!t)return;e=ks(e),ol(t.initialDef,e);const s=[...t.instances];for(const i of s){const o=ks(i.type);as.has(o)||(o!==t.initialDef&&ol(o,e),as.add(o)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(as.add(o),i.ceReload(e.styles),as.delete(o)):i.parent?(i.parent.effect.dirty=!0,_i(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}el(()=>{for(const i of s)as.delete(ks(i.type))})}function ol(n,e){Ze(n,e);for(const t in n)t!=="__file"&&!(t in e)&&delete n[t]}function Ho(n){return(e,t)=>{try{return n(e,t)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Kt,Ts=[],Yo=!1;function Ps(n,...e){Kt?Kt.emit(n,...e):Yo||Ts.push({event:n,args:e})}function rl(n,e){var t,s;Kt=n,Kt?(Kt.enabled=!0,Ts.forEach(({event:i,args:o})=>Kt.emit(i,...o)),Ts=[]):typeof window<"u"&&window.HTMLElement&&!((s=(t=window.navigator)==null?void 0:t.userAgent)!=null&&s.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{rl(o,e)}),setTimeout(()=>{Kt||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Yo=!0,Ts=[])},3e3)):(Yo=!0,Ts=[])}function dd(n,e){Ps("app:init",n,e,{Fragment:ze,Text:Ms,Comment:Dt,Static:Ii})}function fd(n){Ps("app:unmount",n)}const pd=Wo("component:added"),al=Wo("component:updated"),md=Wo("component:removed"),gd=n=>{Kt&&typeof Kt.cleanupBuffer=="function"&&!Kt.cleanupBuffer(n)&&md(n)};/*! #__NO_SIDE_EFFECTS__ */function Wo(n){return e=>{Ps(n,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const vd=ll("perf:start"),yd=ll("perf:end");function ll(n){return(e,t,s)=>{Ps(n,e.appContext.app,e.uid,e,t,s)}}function _d(n,e,t){Ps("component:emit",n.appContext.app,n,e,t)}function bd(n,e,...t){if(n.isUnmounted)return;const s=n.vnode.props||He;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=n;if(u)if(!(e in u))(!h||!(Vn(e)in h))&&ie(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${Vn(e)}" prop.`);else{const d=u[e];Se(d)&&(d(...t)||ie(`Invalid event arguments: event validation failed for event "${e}".`))}}let i=t;const o=e.startsWith("update:"),r=o&&e.slice(7);if(r&&r in s){const u=`${r==="modelValue"?"model":r}Modifiers`,{number:h,trim:d}=s[u]||He;d&&(i=t.map(f=>it(f)?f.trim():f)),h&&(i=t.map(yh))}if({}.NODE_ENV!=="production"&&_d(n,e,i),{}.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&s[Vn(u)]&&ie(`Event "${u}" is emitted in component ${Ai(n,n.type)} but the handler is registered for "${e}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Mt(e)}" instead of "${e}".`)}let a,l=s[a=Vn(e)]||s[a=Vn(sn(e))];!l&&o&&(l=s[a=Vn(Mt(e))]),l&&Bt(l,n,6,i);const c=s[a+"Once"];if(c){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,Bt(c,n,6,i)}}function cl(n,e,t=!1){const s=e.emitsCache,i=s.get(n);if(i!==void 0)return i;const o=n.emits;let r={},a=!1;if(!Se(n)){const l=c=>{const u=cl(c,e,!0);u&&(a=!0,Ze(r,u))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!o&&!a?(Be(n)&&s.set(n,null),null):(we(o)?o.forEach(l=>r[l]=null):Ze(r,o),Be(n)&&s.set(n,r),r)}function bi(n,e){return!n||!_s(e)?!1:(e=e.slice(2).replace(/Once$/,""),Re(n,e[0].toLowerCase()+e.slice(1))||Re(n,Mt(e))||Re(n,e))}let at=null,xi=null;function wi(n){const e=at;return at=n,xi=n&&n.type.__scopeId||null,e}function Yn(n){xi=n}function Wn(){xi=null}function Qe(n,e=at,t){if(!e||n._n)return n;const s=(...i)=>{s._d&&zl(-1);const o=wi(e);let r;try{r=n(...i)}finally{wi(o),s._d&&zl(1)}return{}.NODE_ENV!=="production"&&al(e),r};return s._n=!0,s._c=!0,s._d=!0,s}let Xo=!1;function Ci(){Xo=!0}function Uo(n){const{type:e,vnode:t,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:u,props:h,data:d,setupState:f,ctx:m,inheritAttrs:y}=n,_=wi(n);let C,k;({}).NODE_ENV!=="production"&&(Xo=!1);try{if(t.shapeFlag&4){const U=i||s,F={}.NODE_ENV!=="production"&&f.__isScriptSetup?new Proxy(U,{get(H,ve,be){return ie(`Property '${String(ve)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(H,ve,be)}}):U;C=Yt(c.call(F,U,u,{}.NODE_ENV!=="production"?an(h):h,f,d,m)),k=a}else{const U=e;({}).NODE_ENV!=="production"&&a===h&&Ci(),C=Yt(U.length>1?U({}.NODE_ENV!=="production"?an(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Ci(),a},slots:r,emit:l}:{attrs:a,slots:r,emit:l}):U({}.NODE_ENV!=="production"?an(h):h,null)),k=e.props?a:xd(a)}}catch(U){$s.length=0,Cs(U,n,1),C=Ee(Dt)}let P=C,D;if({}.NODE_ENV!=="production"&&C.patchFlag>0&&C.patchFlag&2048&&([P,D]=ul(C)),k&&y!==!1){const U=Object.keys(k),{shapeFlag:F}=P;if(U.length){if(F&7)o&&U.some(si)&&(k=wd(k,o)),P=Pn(P,k);else if({}.NODE_ENV!=="production"&&!Xo&&P.type!==Dt){const H=Object.keys(a),ve=[],be=[];for(let Ce=0,De=H.length;Ce<De;Ce++){const ye=H[Ce];_s(ye)?si(ye)||ve.push(ye[2].toLowerCase()+ye.slice(3)):be.push(ye)}be.length&&ie(`Extraneous non-props attributes (${be.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ve.length&&ie(`Extraneous non-emits event listeners (${ve.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return t.dirs&&({}.NODE_ENV!=="production"&&!hl(P)&&ie("Runtime directive used on component with non-element root node. The directives will not function as intended."),P=Pn(P),P.dirs=P.dirs?P.dirs.concat(t.dirs):t.dirs),t.transition&&({}.NODE_ENV!=="production"&&!hl(P)&&ie("Component inside <Transition> renders non-element root node that cannot be animated."),P.transition=t.transition),{}.NODE_ENV!=="production"&&D?D(P):C=P,wi(_),C}const ul=n=>{const e=n.children,t=n.dynamicChildren,s=qo(e,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return ul(s)}else return[n,void 0];const i=e.indexOf(s),o=t?t.indexOf(s):-1,r=a=>{e[i]=a,t&&(o>-1?t[o]=a:a.patchFlag>0&&(n.dynamicChildren=[...t,a]))};return[Yt(s),r]};function qo(n,e=!0){let t;for(let s=0;s<n.length;s++){const i=n[s];if(ls(i)){if(i.type!==Dt||i.children==="v-if"){if(t)return;if(t=i,{}.NODE_ENV!=="production"&&e&&t.patchFlag>0&&t.patchFlag&2048)return qo(t.children)}}else return}return t}const xd=n=>{let e;for(const t in n)(t==="class"||t==="style"||_s(t))&&((e||(e={}))[t]=n[t]);return e},wd=(n,e)=>{const t={};for(const s in n)(!si(s)||!(s.slice(9)in e))&&(t[s]=n[s]);return t},hl=n=>n.shapeFlag&7||n.type===Dt;function Cd(n,e,t){const{props:s,children:i,component:o}=n,{props:r,children:a,patchFlag:l}=e,c=o.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Bn||e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return s?dl(s,r,c):!!r;if(l&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(r[d]!==s[d]&&!bi(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===r?!1:s?r?dl(s,r,c):!0:!!r;return!1}function dl(n,e,t){const s=Object.keys(e);if(s.length!==Object.keys(n).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(e[o]!==n[o]&&!bi(t,o))return!0}return!1}function Ed({vnode:n,parent:e},t){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===n&&(s.el=n.el),s===n)(n=e.vnode).el=t,e=e.parent;else break}}const Sd=Symbol.for("v-ndc"),kd=n=>n.__isSuspense;function Td(n,e){e&&e.pendingBranch?we(n)?e.effects.push(...n):e.effects.push(n):el(n)}const Pd=Symbol.for("v-scx"),Od=()=>{{const n=Ti(Pd);return n||{}.NODE_ENV!=="production"&&ie("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),n}};function fl(n,e){return Ko(n,null,e)}const Ei={};function Ie(n,e,t){return{}.NODE_ENV!=="production"&&!Se(e)&&ie("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Ko(n,e,t)}function Ko(n,e,{immediate:t,deep:s,flush:i,once:o,onTrack:r,onTrigger:a}=He){if(e&&o){const H=e;e=(...ve)=>{H(...ve),F()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&ie('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!e&&(t!==void 0&&ie('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&ie('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&ie('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=H=>{ie("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=ht,u=H=>s===!0?H:Xn(H,s===!1?1:void 0);let h,d=!1,f=!1;if(vt(n)?(h=()=>n.value,d=Gn(n)):os(n)?(h=()=>u(n),d=!0):we(n)?(f=!0,d=n.some(H=>os(H)||Gn(H)),h=()=>n.map(H=>{if(vt(H))return H.value;if(os(H))return u(H);if(Se(H))return ln(H,c,2);({}).NODE_ENV!=="production"&&l(H)})):Se(n)?e?h=()=>ln(n,c,2):h=()=>(m&&m(),Bt(n,c,3,[y])):(h=ot,{}.NODE_ENV!=="production"&&l(n)),e&&s){const H=h;h=()=>Xn(H())}let m,y=H=>{m=D.onStop=()=>{ln(H,c,4),m=D.onStop=void 0}},_;if(Mi)if(y=ot,e?t&&Bt(e,c,3,[h(),f?[]:void 0,y]):h(),i==="sync"){const H=Od();_=H.__watcherHandles||(H.__watcherHandles=[])}else return ot;let C=f?new Array(n.length).fill(Ei):Ei;const k=()=>{if(!(!D.active||!D.dirty))if(e){const H=D.run();(s||d||(f?H.some((ve,be)=>bn(ve,C[be])):bn(H,C)))&&(m&&m(),Bt(e,c,3,[H,C===Ei?void 0:f&&C[0]===Ei?[]:C,y]),C=H)}else D.run()};k.allowRecurse=!!e;let P;i==="sync"?P=k:i==="post"?P=()=>Nt(k,c&&c.suspense):(k.pre=!0,c&&(k.id=c.uid),P=()=>_i(k));const D=new Io(h,ot,P),U=kh(),F=()=>{D.stop(),U&&Eo(U.effects,D)};return{}.NODE_ENV!=="production"&&(D.onTrack=r,D.onTrigger=a),e?t?k():C=D.run():i==="post"?Nt(D.run.bind(D),c&&c.suspense):D.run(),_&&_.push(F),F}function Id(n,e,t){const s=this.proxy,i=it(n)?n.includes(".")?pl(s,n):()=>s[n]:n.bind(s,s);let o;Se(e)?o=e:(o=e.handler,t=e);const r=Vs(this),a=Ko(i,o.bind(s),t);return r(),a}function pl(n,e){const t=e.split(".");return()=>{let s=n;for(let i=0;i<t.length&&s;i++)s=s[t[i]];return s}}function Xn(n,e,t=0,s){if(!Be(n)||n.__v_skip)return n;if(e&&e>0){if(t>=e)return n;t++}if(s=s||new Set,s.has(n))return n;if(s.add(n),vt(n))Xn(n.value,e,t,s);else if(we(n))for(let i=0;i<n.length;i++)Xn(n[i],e,t,s);else if(ya(n)||An(n))n.forEach(i=>{Xn(i,e,t,s)});else if(ba(n))for(const i in n)Xn(n[i],e,t,s);return n}function ml(n){mh(n)&&ie("Do not use built-in directive ids as custom directive id: "+n)}function Sn(n,e){if(at===null)return{}.NODE_ENV!=="production"&&ie("withDirectives can only be used inside render functions."),n;const t=$i(at)||at.proxy,s=n.dirs||(n.dirs=[]);for(let i=0;i<e.length;i++){let[o,r,a,l=He]=e[i];o&&(Se(o)&&(o={mounted:o,updated:o}),o.deep&&Xn(r),s.push({dir:o,instance:t,value:r,oldValue:void 0,arg:a,modifiers:l}))}return n}function Un(n,e,t,s){const i=n.dirs,o=e&&e.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[s];l&&(on(),Bt(l,t,8,[n.el,a,n,e]),rn())}}/*! #__NO_SIDE_EFFECTS__ */function ce(n,e){return Se(n)?(()=>Ze({name:n.name},e,{setup:n}))():n}const Os=n=>!!n.type.__asyncLoader,Zo=n=>n.type.__isKeepAlive;function Nd(n,e){gl(n,"a",e)}function Dd(n,e){gl(n,"da",e)}function gl(n,e,t=ht){const s=n.__wdc||(n.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if(Si(e,s,t),t){let i=t.parent;for(;i&&i.parent;)Zo(i.parent.vnode)&&Md(s,e,t,i),i=i.parent}}function Md(n,e,t,s){const i=Si(e,n,s,!0);qe(()=>{Eo(s[e],i)},t)}function Si(n,e,t=ht,s=!1){if(t){const i=t[n]||(t[n]=[]),o=e.__weh||(e.__weh=(...r)=>{if(t.isUnmounted)return;on();const a=Vs(t),l=Bt(e,t,n,r);return a(),rn(),l});return s?i.unshift(o):i.push(o),o}else if({}.NODE_ENV!=="production"){const i=Vn(zo[n].replace(/ hook$/,""));ie(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const un=n=>(e,t=ht)=>(!Mi||n==="sp")&&Si(n,(...s)=>e(...s),t),$d=un("bm"),kn=un("m"),Ad=un("bu"),Rd=un("u"),Vd=un("bum"),qe=un("um"),Ld=un("sp"),Fd=un("rtg"),zd=un("rtc");function Gd(n,e=ht){Si("ec",n,e)}function yt(n,e,t,s){let i;const o=t&&t[s];if(we(n)||it(n)){i=new Array(n.length);for(let r=0,a=n.length;r<a;r++)i[r]=e(n[r],r,void 0,o&&o[r])}else if(typeof n=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(n)&&ie(`The v-for range expect an integer value but got ${n}.`),i=new Array(n);for(let r=0;r<n;r++)i[r]=e(r+1,r,void 0,o&&o[r])}else if(Be(n))if(n[Symbol.iterator])i=Array.from(n,(r,a)=>e(r,a,void 0,o&&o[a]));else{const r=Object.keys(n);i=new Array(r.length);for(let a=0,l=r.length;a<l;a++){const c=r[a];i[a]=e(n[c],c,a,o&&o[a])}}else i=[];return t&&(t[s]=i),i}function Xe(n,e,t={},s,i){if(at.isCE||at.parent&&Os(at.parent)&&at.parent.isCE)return e!=="default"&&(t.name=e),Ee("slot",t,s&&s());let o=n[e];({}).NODE_ENV!=="production"&&o&&o.length>1&&(ie("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),o=()=>[]),o&&o._c&&(o._d=!1),$();const r=o&&vl(o(t)),a=lt(ze,{key:t.key||r&&r.key||`_${e}`},r||(s?s():[]),r&&n._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function vl(n){return n.some(e=>ls(e)?!(e.type===Dt||e.type===ze&&!vl(e.children)):!0)?n:null}const Qo=n=>n?Xl(n)?$i(n)||n.proxy:Qo(n.parent):null,qn=Ze(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>({}).NODE_ENV!=="production"?an(n.props):n.props,$attrs:n=>({}).NODE_ENV!=="production"?an(n.attrs):n.attrs,$slots:n=>({}).NODE_ENV!=="production"?an(n.slots):n.slots,$refs:n=>({}).NODE_ENV!=="production"?an(n.refs):n.refs,$parent:n=>Qo(n.parent),$root:n=>Qo(n.root),$emit:n=>n.emit,$options:n=>nr(n),$forceUpdate:n=>n.f||(n.f=()=>{n.effect.dirty=!0,_i(n.update)}),$nextTick:n=>n.n||(n.n=yi.bind(n.proxy)),$watch:n=>Id.bind(n)}),Jo=n=>n==="_"||n==="$",er=(n,e)=>n!==He&&!n.__isScriptSetup&&Re(n,e),yl={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=n;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const f=r[e];if(f!==void 0)switch(f){case 1:return s[e];case 2:return i[e];case 4:return t[e];case 3:return o[e]}else{if(er(s,e))return r[e]=1,s[e];if(i!==He&&Re(i,e))return r[e]=2,i[e];if((c=n.propsOptions[0])&&Re(c,e))return r[e]=3,o[e];if(t!==He&&Re(t,e))return r[e]=4,t[e];tr&&(r[e]=0)}}const u=qn[e];let h,d;if(u)return e==="$attrs"?(mt(n.attrs,"get",""),{}.NODE_ENV!=="production"&&Ci()):{}.NODE_ENV!=="production"&&e==="$slots"&&mt(n,"get",e),u(n);if((h=a.__cssModules)&&(h=h[e]))return h;if(t!==He&&Re(t,e))return r[e]=4,t[e];if(d=l.config.globalProperties,Re(d,e))return d[e];({}).NODE_ENV!=="production"&&at&&(!it(e)||e.indexOf("__v")!==0)&&(i!==He&&Jo(e[0])&&Re(i,e)?ie(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):n===at&&ie(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:n},e,t){const{data:s,setupState:i,ctx:o}=n;return er(i,e)?(i[e]=t,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Re(i,e)?(ie(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):s!==He&&Re(s,e)?(s[e]=t,!0):Re(n.props,e)?({}.NODE_ENV!=="production"&&ie(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in n?({}.NODE_ENV!=="production"&&ie(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in n.appContext.config.globalProperties?Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:t}):o[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:s,appContext:i,propsOptions:o}},r){let a;return!!t[r]||n!==He&&Re(n,r)||er(e,r)||(a=o[0])&&Re(a,r)||Re(s,r)||Re(qn,r)||Re(i.config.globalProperties,r)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Re(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};({}).NODE_ENV!=="production"&&(yl.ownKeys=n=>(ie("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(n)));function jd(n){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>n}),Object.keys(qn).forEach(t=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:()=>qn[t](n),set:ot})}),e}function Bd(n){const{ctx:e,propsOptions:[t]}=n;t&&Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>n.props[s],set:ot})})}function Hd(n){const{ctx:e,setupState:t}=n;Object.keys(Me(t)).forEach(s=>{if(!t.__isScriptSetup){if(Jo(s[0])){ie(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>t[s],set:ot})}})}function Yd(){return Wd().slots}function Wd(){const n=Yl();return{}.NODE_ENV!=="production"&&!n&&ie("useContext() called without active instance."),n.setupContext||(n.setupContext=Zl(n))}function _l(n){return we(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}function Xd(){const n=Object.create(null);return(e,t)=>{n[t]?ie(`${e} property "${t}" is already defined in ${n[t]}.`):n[t]=e}}let tr=!0;function Ud(n){const e=nr(n),t=n.proxy,s=n.ctx;tr=!1,e.beforeCreate&&bl(e.beforeCreate,n,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:f,updated:m,activated:y,deactivated:_,beforeDestroy:C,beforeUnmount:k,destroyed:P,unmounted:D,render:U,renderTracked:F,renderTriggered:H,errorCaptured:ve,serverPrefetch:be,expose:Ce,inheritAttrs:De,components:ye,directives:Ne,filters:Le}=e,me={}.NODE_ENV!=="production"?Xd():null;if({}.NODE_ENV!=="production"){const[re]=n.propsOptions;if(re)for(const V in re)me("Props",V)}if(c&&qd(c,s,me),r)for(const re in r){const V=r[re];Se(V)?({}.NODE_ENV!=="production"?Object.defineProperty(s,re,{value:V.bind(t),configurable:!0,enumerable:!0,writable:!0}):s[re]=V.bind(t),{}.NODE_ENV!=="production"&&me("Methods",re)):{}.NODE_ENV!=="production"&&ie(`Method "${re}" has type "${typeof V}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!Se(i)&&ie("The data option must be a function. Plain object usage is no longer supported.");const re=i.call(t,t);if({}.NODE_ENV!=="production"&&So(re)&&ie("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Be(re))({}).NODE_ENV!=="production"&&ie("data() should return an object.");else if(n.data=gt(re),{}.NODE_ENV!=="production")for(const V in re)me("Data",V),Jo(V[0])||Object.defineProperty(s,V,{configurable:!0,enumerable:!0,get:()=>re[V],set:ot})}if(tr=!0,o)for(const re in o){const V=o[re],J=Se(V)?V.bind(t,t):Se(V.get)?V.get.bind(t,t):ot;({}).NODE_ENV!=="production"&&J===ot&&ie(`Computed property "${re}" has no getter.`);const Y=!Se(V)&&Se(V.set)?V.set.bind(t):{}.NODE_ENV!=="production"?()=>{ie(`Write operation failed: computed property "${re}" is readonly.`)}:ot,Pe=Mf({get:J,set:Y});Object.defineProperty(s,re,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:de=>Pe.value=de}),{}.NODE_ENV!=="production"&&me("Computed",re)}if(a)for(const re in a)xl(a[re],s,t,re);if(l){const re=Se(l)?l.call(t):l;Reflect.ownKeys(re).forEach(V=>{tf(V,re[V])})}u&&bl(u,n,"c");function _e(re,V){we(V)?V.forEach(J=>re(J.bind(t))):V&&re(V.bind(t))}if(_e($d,h),_e(kn,d),_e(Ad,f),_e(Rd,m),_e(Nd,y),_e(Dd,_),_e(Gd,ve),_e(zd,F),_e(Fd,H),_e(Vd,k),_e(qe,D),_e(Ld,be),we(Ce))if(Ce.length){const re=n.exposed||(n.exposed={});Ce.forEach(V=>{Object.defineProperty(re,V,{get:()=>t[V],set:J=>t[V]=J})})}else n.exposed||(n.exposed={});U&&n.render===ot&&(n.render=U),De!=null&&(n.inheritAttrs=De),ye&&(n.components=ye),Ne&&(n.directives=Ne)}function qd(n,e,t=ot){we(n)&&(n=sr(n));for(const s in n){const i=n[s];let o;Be(i)?"default"in i?o=Ti(i.from||s,i.default,!0):o=Ti(i.from||s):o=Ti(i),vt(o)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):e[s]=o,{}.NODE_ENV!=="production"&&t("Inject",s)}}function bl(n,e,t){Bt(we(n)?n.map(s=>s.bind(e.proxy)):n.bind(e.proxy),e,t)}function xl(n,e,t,s){const i=s.includes(".")?pl(t,s):()=>t[s];if(it(n)){const o=e[n];Se(o)?Ie(i,o):{}.NODE_ENV!=="production"&&ie(`Invalid watch handler specified by key "${n}"`,o)}else if(Se(n))Ie(i,n.bind(t));else if(Be(n))if(we(n))n.forEach(o=>xl(o,e,t,s));else{const o=Se(n.handler)?n.handler.bind(t):e[n.handler];Se(o)?Ie(i,o,n):{}.NODE_ENV!=="production"&&ie(`Invalid watch handler specified by key "${n.handler}"`,o)}else({}).NODE_ENV!=="production"&&ie(`Invalid watch option: "${s}"`,n)}function nr(n){const e=n.type,{mixins:t,extends:s}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=n.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!t&&!s?l=e:(l={},i.length&&i.forEach(c=>ki(l,c,r,!0)),ki(l,e,r)),Be(e)&&o.set(e,l),l}function ki(n,e,t,s=!1){const{mixins:i,extends:o}=e;o&&ki(n,o,t,!0),i&&i.forEach(r=>ki(n,r,t,!0));for(const r in e)if(s&&r==="expose")({}).NODE_ENV!=="production"&&ie('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Kd[r]||t&&t[r];n[r]=a?a(n[r],e[r]):e[r]}return n}const Kd={data:wl,props:Cl,emits:Cl,methods:Is,computed:Is,beforeCreate:Et,created:Et,beforeMount:Et,mounted:Et,beforeUpdate:Et,updated:Et,beforeDestroy:Et,beforeUnmount:Et,destroyed:Et,unmounted:Et,activated:Et,deactivated:Et,errorCaptured:Et,serverPrefetch:Et,components:Is,directives:Is,watch:Qd,provide:wl,inject:Zd};function wl(n,e){return e?n?function(){return Ze(Se(n)?n.call(this,this):n,Se(e)?e.call(this,this):e)}:e:n}function Zd(n,e){return Is(sr(n),sr(e))}function sr(n){if(we(n)){const e={};for(let t=0;t<n.length;t++)e[n[t]]=n[t];return e}return n}function Et(n,e){return n?[...new Set([].concat(n,e))]:e}function Is(n,e){return n?Ze(Object.create(null),n,e):e}function Cl(n,e){return n?we(n)&&we(e)?[...new Set([...n,...e])]:Ze(Object.create(null),_l(n),_l(e??{})):e}function Qd(n,e){if(!n)return e;if(!e)return n;const t=Ze(Object.create(null),n);for(const s in e)t[s]=Et(n[s],e[s]);return t}function El(){return{app:null,config:{isNativeTag:fh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Jd=0;function ef(n,e){return function(s,i=null){Se(s)||(s=Ze({},s)),i!=null&&!Be(i)&&({}.NODE_ENV!=="production"&&ie("root props passed to app.mount() must be an object."),i=null);const o=El(),r=new WeakSet;let a=!1;const l=o.app={_uid:Jd++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:ec,get config(){return o.config},set config(c){({}).NODE_ENV!=="production"&&ie("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return r.has(c)?{}.NODE_ENV!=="production"&&ie("Plugin has already been applied to target app."):c&&Se(c.install)?(r.add(c),c.install(l,...u)):Se(c)?(r.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&ie('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return o.mixins.includes(c)?{}.NODE_ENV!=="production"&&ie("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):o.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&dr(c,o.config),u?({}.NODE_ENV!=="production"&&o.components[c]&&ie(`Component "${c}" has already been registered in target app.`),o.components[c]=u,l):o.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&ml(c),u?({}.NODE_ENV!=="production"&&o.directives[c]&&ie(`Directive "${c}" has already been registered in target app.`),o.directives[c]=u,l):o.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&ie("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&c.__vue_app__&&ie("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const d=Ee(s,i);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(o.reload=()=>{n(Pn(d),c,h)}),u&&e?e(d,c):n(d,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=d.component,dd(l,ec)),$i(d.component)||d.component.proxy}},unmount(){a?(n(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,fd(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&ie("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in o.provides&&ie(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),o.provides[c]=u,l},runWithContext(c){const u=Ns;Ns=l;try{return c()}finally{Ns=u}}};return l}}let Ns=null;function tf(n,e){if(!ht)({}).NODE_ENV!=="production"&&ie("provide() can only be used inside setup().");else{let t=ht.provides;const s=ht.parent&&ht.parent.provides;s===t&&(t=ht.provides=Object.create(s)),t[n]=e}}function Ti(n,e,t=!1){const s=ht||at;if(s||Ns){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Ns._context.provides;if(i&&n in i)return i[n];if(arguments.length>1)return t&&Se(e)?e.call(s&&s.proxy):e;({}).NODE_ENV!=="production"&&ie(`injection "${String(n)}" not found.`)}else({}).NODE_ENV!=="production"&&ie("inject() can only be used inside setup() or functional components.")}const Sl={},kl=()=>Object.create(Sl),Tl=n=>Object.getPrototypeOf(n)===Sl;function nf(n,e,t,s=!1){const i={},o=kl();n.propsDefaults=Object.create(null),Pl(n,e,i,o);for(const r in n.propsOptions[0])r in i||(i[r]=void 0);({}).NODE_ENV!=="production"&&Ml(e||{},i,n),t?n.props=s?i:Wh(i):n.type.props?n.props=i:n.props=o,n.attrs=o}function sf(n){for(;n;){if(n.type.__hmrId)return!0;n=n.parent}}function of(n,e,t,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=n,a=Me(i),[l]=n.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&sf(n))&&(s||r>0)&&!(r&16)){if(r&8){const u=n.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(bi(n.emitsOptions,d))continue;const f=e[d];if(l)if(Re(o,d))f!==o[d]&&(o[d]=f,c=!0);else{const m=sn(d);i[m]=ir(l,a,m,f,n,!1)}else f!==o[d]&&(o[d]=f,c=!0)}}}else{Pl(n,e,i,o)&&(c=!0);let u;for(const h in a)(!e||!Re(e,h)&&((u=Mt(h))===h||!Re(e,u)))&&(l?t&&(t[h]!==void 0||t[u]!==void 0)&&(i[h]=ir(l,a,h,void 0,n,!0)):delete i[h]);if(o!==a)for(const h in o)(!e||!Re(e,h))&&(delete o[h],c=!0)}c&&Ut(n.attrs,"set",""),{}.NODE_ENV!=="production"&&Ml(e||{},i,n)}function Pl(n,e,t,s){const[i,o]=n.propsOptions;let r=!1,a;if(e)for(let l in e){if(bs(l))continue;const c=e[l];let u;i&&Re(i,u=sn(l))?!o||!o.includes(u)?t[u]=c:(a||(a={}))[u]=c:bi(n.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,r=!0)}if(o){const l=Me(t),c=a||He;for(let u=0;u<o.length;u++){const h=o[u];t[h]=ir(i,l,h,c[h],n,!Re(c,h))}}return r}function ir(n,e,t,s,i,o){const r=n[t];if(r!=null){const a=Re(r,"default");if(a&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Se(l)){const{propsDefaults:c}=i;if(t in c)s=c[t];else{const u=Vs(i);s=c[t]=l.call(null,e),u()}}else s=l}r[0]&&(o&&!a?s=!1:r[1]&&(s===""||s===Mt(t))&&(s=!0))}return s}function Ol(n,e,t=!1){const s=e.propsCache,i=s.get(n);if(i)return i;const o=n.props,r={},a=[];let l=!1;if(!Se(n)){const u=h=>{l=!0;const[d,f]=Ol(h,e,!0);Ze(r,d),f&&a.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!o&&!l)return Be(n)&&s.set(n,is),is;if(we(o))for(let u=0;u<o.length;u++){({}).NODE_ENV!=="production"&&!it(o[u])&&ie("props must be strings when using array syntax.",o[u]);const h=sn(o[u]);Il(h)&&(r[h]=He)}else if(o){({}).NODE_ENV!=="production"&&!Be(o)&&ie("invalid props options",o);for(const u in o){const h=sn(u);if(Il(h)){const d=o[u],f=r[h]=we(d)||Se(d)?{type:d}:Ze({},d);if(f){const m=Dl(Boolean,f.type),y=Dl(String,f.type);f[0]=m>-1,f[1]=y<0||m<y,(m>-1||Re(f,"default"))&&a.push(h)}}}}const c=[r,a];return Be(n)&&s.set(n,c),c}function Il(n){return n[0]!=="$"&&!bs(n)?!0:({}.NODE_ENV!=="production"&&ie(`Invalid prop name: "${n}" is a reserved property.`),!1)}function or(n){return n===null?"null":typeof n=="function"?n.name||"":typeof n=="object"&&n.constructor&&n.constructor.name||""}function Nl(n,e){return or(n)===or(e)}function Dl(n,e){return we(e)?e.findIndex(t=>Nl(t,n)):Se(e)&&Nl(e,n)?0:-1}function Ml(n,e,t){const s=Me(e),i=t.propsOptions[0];for(const o in i){let r=i[o];r!=null&&rf(o,s[o],r,{}.NODE_ENV!=="production"?an(s):s,!Re(n,o)&&!Re(n,Mt(o)))}}function rf(n,e,t,s,i){const{type:o,required:r,validator:a,skipCheck:l}=t;if(r&&i){ie('Missing required prop: "'+n+'"');return}if(!(e==null&&!r)){if(o!=null&&o!==!0&&!l){let c=!1;const u=we(o)?o:[o],h=[];for(let d=0;d<u.length&&!c;d++){const{valid:f,expectedType:m}=lf(e,u[d]);h.push(m||""),c=f}if(!c){ie(cf(n,e,h));return}}a&&!a(e,s)&&ie('Invalid prop: custom validator check failed for prop "'+n+'".')}}const af=Xt("String,Number,Boolean,Function,Symbol,BigInt");function lf(n,e){let t;const s=or(e);if(af(s)){const i=typeof n;t=i===s.toLowerCase(),!t&&i==="object"&&(t=n instanceof e)}else s==="Object"?t=Be(n):s==="Array"?t=we(n):s==="null"?t=n===null:t=n instanceof e;return{valid:t,expectedType:s}}function cf(n,e,t){if(t.length===0)return`Prop type [] for prop "${n}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${n}". Expected ${t.map(ri).join(" | ")}`;const i=t[0],o=ko(e),r=$l(e,i),a=$l(e,o);return t.length===1&&Al(i)&&!uf(i,o)&&(s+=` with value ${r}`),s+=`, got ${o} `,Al(o)&&(s+=`with value ${a}.`),s}function $l(n,e){return e==="String"?`"${n}"`:e==="Number"?`${Number(n)}`:`${n}`}function Al(n){return["string","number","boolean"].some(t=>n.toLowerCase()===t)}function uf(...n){return n.some(e=>e.toLowerCase()==="boolean")}const Rl=n=>n[0]==="_"||n==="$stable",rr=n=>we(n)?n.map(Yt):[Yt(n)],hf=(n,e,t)=>{if(e._n)return e;const s=Qe((...i)=>({}.NODE_ENV!=="production"&&ht&&(!t||t.root===ht.root)&&ie(`Slot "${n}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),rr(e(...i))),t);return s._c=!1,s},Vl=(n,e,t)=>{const s=n._ctx;for(const i in n){if(Rl(i))continue;const o=n[i];if(Se(o))e[i]=hf(i,o,s);else if(o!=null){({}).NODE_ENV!=="production"&&ie(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const r=rr(o);e[i]=()=>r}}},Ll=(n,e)=>{({}).NODE_ENV!=="production"&&!Zo(n.vnode)&&ie("Non-function value encountered for default slot. Prefer function slots for better performance.");const t=rr(e);n.slots.default=()=>t},df=(n,e)=>{const t=n.slots=kl();if(n.vnode.shapeFlag&32){const s=e._;s?(Ze(t,e),xa(t,"_",s)):Vl(e,t)}else e&&Ll(n,e)},ff=(n,e,t)=>{const{vnode:s,slots:i}=n;let o=!0,r=He;if(s.shapeFlag&32){const a=e._;a?{}.NODE_ENV!=="production"&&Bn?(Ze(i,e),Ut(n,"set","$slots")):t&&a===1?o=!1:(Ze(i,e),!t&&a===1&&delete i._):(o=!e.$stable,Vl(e,i)),r=e}else e&&(Ll(n,e),r={default:1});if(o)for(const a in i)!Rl(a)&&r[a]==null&&delete i[a]};function ar(n,e,t,s,i=!1){if(we(n)){n.forEach((d,f)=>ar(d,e&&(we(e)?e[f]:e),t,s,i));return}if(Os(s)&&!i)return;const o=s.shapeFlag&4?$i(s.component)||s.component.proxy:s.el,r=i?null:o,{i:a,r:l}=n;if({}.NODE_ENV!=="production"&&!a){ie("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=e&&e.r,u=a.refs===He?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(it(c)?(u[c]=null,Re(h,c)&&(h[c]=null)):vt(c)&&(c.value=null)),Se(l))ln(l,a,12,[r,u]);else{const d=it(l),f=vt(l);if(d||f){const m=()=>{if(n.f){const y=d?Re(h,l)?h[l]:u[l]:l.value;i?we(y)&&Eo(y,o):we(y)?y.includes(o)||y.push(o):d?(u[l]=[o],Re(h,l)&&(h[l]=u[l])):(l.value=[o],n.k&&(u[n.k]=l.value))}else d?(u[l]=r,Re(h,l)&&(h[l]=r)):f?(l.value=r,n.k&&(u[n.k]=r)):{}.NODE_ENV!=="production"&&ie("Invalid template ref type:",l,`(${typeof l})`)};r?(m.id=-1,Nt(m,t)):m()}else({}).NODE_ENV!=="production"&&ie("Invalid template ref type:",l,`(${typeof l})`)}}let Ds,Tn;function hn(n,e){n.appContext.config.performance&&Pi()&&Tn.mark(`vue-${e}-${n.uid}`),{}.NODE_ENV!=="production"&&vd(n,e,Pi()?Tn.now():Date.now())}function dn(n,e){if(n.appContext.config.performance&&Pi()){const t=`vue-${e}-${n.uid}`,s=t+":end";Tn.mark(s),Tn.measure(`<${Ai(n,n.type)}> ${e}`,t,s),Tn.clearMarks(t),Tn.clearMarks(s)}({}).NODE_ENV!=="production"&&yd(n,e,Pi()?Tn.now():Date.now())}function Pi(){return Ds!==void 0||(typeof window<"u"&&window.performance?(Ds=!0,Tn=window.performance):Ds=!1),Ds}function pf(){const n=[];if({}.NODE_ENV!=="production"&&n.length){const e=n.length>1;console.warn(`Feature flag${e?"s":""} ${n.join(", ")} ${e?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
17
+ `,...fd(i)),console.warn(...o)}fn()}function dd(){let n=Xn[Xn.length-1];if(!n)return[];const e=[];for(;n;){const t=e[0];t&&t.vnode===n?t.recurseCount++:e.push({vnode:n,recurseCount:0});const s=n.component&&n.component.parent;n=s&&s.vnode}return e}function fd(n){const e=[];return n.forEach((t,s)=>{e.push(...s===0?[]:[`
18
+ `],...pd(t))}),e}function pd({vnode:n,recurseCount:e}){const t=e>0?`... (${e} recursive calls)`:"",s=n.component?n.component.parent==null:!1,i=` at <${Bi(n.component,n.type,s)}`,o=">"+t;return n.props?[i,...md(n.props),o]:[i+o]}function md(n){const e=[],t=Object.keys(n);return t.slice(0,3).forEach(s=>{e.push(...ll(s,n[s]))}),t.length>3&&e.push(" ..."),e}function ll(n,e,t){return ot(e)?(e=JSON.stringify(e),t?e:[`${n}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?t?e:[`${n}=${e}`]:wt(e)?(e=ll(n,ke(e.value),!0),t?e:[`${n}=Ref<`,e,">"]):Ce(e)?[`${n}=fn${e.name?`<${e.name}>`:""}`]:(e=ke(e),t?e:[`${n}=`,e])}const Ho={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 mn(n,e,t,s){try{return s?n(...s):n()}catch(i){$s(i,e,t)}}function Kt(n,e,t,s){if(Ce(n)){const i=mn(n,e,t,s);return i&&Oo(i)&&i.catch(o=>{$s(o,e,t)}),i}if(ye(n)){const i=[];for(let o=0;o<n.length;o++)i.push(Kt(n[o],e,t,s));return i}else({}).NODE_ENV!=="production"&&ie(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof n}`)}function $s(n,e,t,s=!0){const i=e?e.vnode:null;if(e){let o=e.parent;const r=e.proxy,a={}.NODE_ENV!=="production"?Ho[t]:`https://vuejs.org/error-reference/#runtime-${t}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](n,r,a)===!1)return}o=o.parent}const l=e.appContext.config.errorHandler;if(l){dn(),mn(l,null,10,[n,r,a]),fn();return}}gd(n,t,i,s)}function gd(n,e,t,s=!0){if({}.NODE_ENV!=="production"){const i=Ho[e];if(t&&Si(t),ie(`Unhandled error${i?` during execution of ${i}`:""}`),t&&Ei(),s)throw n;console.error(n)}else console.error(n)}let As=!1,Yo=!1;const Tt=[];let nn=0;const ms=[];let gn=null,Nn=0;const cl=Promise.resolve();let Wo=null;const vd=100;function ki(n){const e=Wo||cl;return n?e.then(this?n.bind(this):n):e}function yd(n){let e=nn+1,t=Tt.length;for(;e<t;){const s=e+t>>>1,i=Tt[s],o=Ms(i);o<n||o===n&&i.pre?e=s+1:t=s}return e}function Ti(n){(!Tt.length||!Tt.includes(n,As&&n.allowRecurse?nn+1:nn))&&(n.id==null?Tt.push(n):Tt.splice(yd(n.id),0,n),ul())}function ul(){!As&&!Yo&&(Yo=!0,Wo=cl.then(pl))}function bd(n){const e=Tt.indexOf(n);e>nn&&Tt.splice(e,1)}function hl(n){ye(n)?ms.push(...n):(!gn||!gn.includes(n,n.allowRecurse?Nn+1:Nn))&&ms.push(n),ul()}function dl(n,e,t=As?nn+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);t<Tt.length;t++){const s=Tt[t];if(s&&s.pre){if(n&&s.id!==n.uid||{}.NODE_ENV!=="production"&&Uo(e,s))continue;Tt.splice(t,1),t--,s()}}}function fl(n){if(ms.length){const e=[...new Set(ms)].sort((t,s)=>Ms(t)-Ms(s));if(ms.length=0,gn){gn.push(...e);return}for(gn=e,{}.NODE_ENV!=="production"&&(n=n||new Map),Nn=0;Nn<gn.length;Nn++)({}).NODE_ENV!=="production"&&Uo(n,gn[Nn])||gn[Nn]();gn=null,Nn=0}}const Ms=n=>n.id==null?1/0:n.id,_d=(n,e)=>{const t=Ms(n)-Ms(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function pl(n){Yo=!1,As=!0,{}.NODE_ENV!=="production"&&(n=n||new Map),Tt.sort(_d);const e={}.NODE_ENV!=="production"?t=>Uo(n,t):ct;try{for(nn=0;nn<Tt.length;nn++){const t=Tt[nn];if(t&&t.active!==!1){if({}.NODE_ENV!=="production"&&e(t))continue;mn(t,null,14)}}}finally{nn=0,Tt.length=0,fl(n),As=!1,Wo=null,(Tt.length||ms.length)&&pl(n)}}function Uo(n,e){if(!n.has(e))n.set(e,1);else{const t=n.get(e);if(t>vd){const s=e.ownerInstance,i=s&&cc(s.type);return $s(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else n.set(e,t+1)}}let qn=!1;const gs=new Set;({}).NODE_ENV!=="production"&&(No().__VUE_HMR_RUNTIME__={createRecord:Xo(ml),rerender:Xo(Cd),reload:Xo(Sd)});const Kn=new Map;function xd(n){const e=n.type.__hmrId;let t=Kn.get(e);t||(ml(e,n.type),t=Kn.get(e)),t.instances.add(n)}function wd(n){Kn.get(n.type.__hmrId).instances.delete(n)}function ml(n,e){return Kn.has(n)?!1:(Kn.set(n,{initialDef:Rs(e),instances:new Set}),!0)}function Rs(n){return uc(n)?n.__vccOpts:n}function Cd(n,e){const t=Kn.get(n);t&&(t.initialDef.render=e,[...t.instances].forEach(s=>{e&&(s.render=e,Rs(s.type).render=e),s.renderCache=[],qn=!0,s.effect.dirty=!0,s.update(),qn=!1}))}function Sd(n,e){const t=Kn.get(n);if(!t)return;e=Rs(e),gl(t.initialDef,e);const s=[...t.instances];for(const i of s){const o=Rs(i.type);gs.has(o)||(o!==t.initialDef&&gl(o,e),gs.add(o)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(gs.add(o),i.ceReload(e.styles),gs.delete(o)):i.parent?(i.parent.effect.dirty=!0,Ti(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}hl(()=>{for(const i of s)gs.delete(Rs(i.type))})}function gl(n,e){tt(n,e);for(const t in n)t!=="__file"&&!(t in e)&&delete n[t]}function Xo(n){return(e,t)=>{try{return n(e,t)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let sn,Vs=[],qo=!1;function Ls(n,...e){sn?sn.emit(n,...e):qo||Vs.push({event:n,args:e})}function vl(n,e){var t,s;sn=n,sn?(sn.enabled=!0,Vs.forEach(({event:i,args:o})=>sn.emit(i,...o)),Vs=[]):typeof window<"u"&&window.HTMLElement&&!((s=(t=window.navigator)==null?void 0:t.userAgent)!=null&&s.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{vl(o,e)}),setTimeout(()=>{sn||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,qo=!0,Vs=[])},3e3)):(qo=!0,Vs=[])}function Ed(n,e){Ls("app:init",n,e,{Fragment:Me,Text:Bs,Comment:At,Static:Li})}function kd(n){Ls("app:unmount",n)}const Td=Ko("component:added"),yl=Ko("component:updated"),Pd=Ko("component:removed"),Od=n=>{sn&&typeof sn.cleanupBuffer=="function"&&!sn.cleanupBuffer(n)&&Pd(n)};/*! #__NO_SIDE_EFFECTS__ */function Ko(n){return e=>{Ls(n,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const Id=bl("perf:start"),Dd=bl("perf:end");function bl(n){return(e,t,s)=>{Ls(n,e.appContext.app,e.uid,e,t,s)}}function Nd(n,e,t){Ls("component:emit",n.appContext.app,n,e,t)}function $d(n,e,...t){if(n.isUnmounted)return;const s=n.vnode.props||Ge;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=n;if(u)if(!(e in u))(!h||!(Bn(e)in h))&&ie(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${Bn(e)}" prop.`);else{const f=u[e];Ce(f)&&(f(...t)||ie(`Invalid event arguments: event validation failed for event "${e}".`))}}let i=t;const o=e.startsWith("update:"),r=o&&e.slice(7);if(r&&r in s){const u=`${r==="modelValue"?"model":r}Modifiers`,{number:h,trim:f}=s[u]||Ge;f&&(i=t.map(d=>ot(d)?d.trim():d)),h&&(i=t.map(Dh))}if({}.NODE_ENV!=="production"&&Nd(n,e,i),{}.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&s[Bn(u)]&&ie(`Event "${u}" is emitted in component ${Bi(n,n.type)} but the handler is registered for "${e}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Vt(e)}" instead of "${e}".`)}let a,l=s[a=Bn(e)]||s[a=Bn(hn(e))];!l&&o&&(l=s[a=Bn(Vt(e))]),l&&Kt(l,n,6,i);const c=s[a+"Once"];if(c){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,Kt(c,n,6,i)}}function _l(n,e,t=!1){const s=e.emitsCache,i=s.get(n);if(i!==void 0)return i;const o=n.emits;let r={},a=!1;if(!Ce(n)){const l=c=>{const u=_l(c,e,!0);u&&(a=!0,tt(r,u))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!o&&!a?(Ve(n)&&s.set(n,null),null):(ye(o)?o.forEach(l=>r[l]=null):tt(r,o),Ve(n)&&s.set(n,r),r)}function Pi(n,e){return!n||!Os(e)?!1:(e=e.slice(2).replace(/Once$/,""),De(n,e[0].toLowerCase()+e.slice(1))||De(n,Vt(e))||De(n,e))}let ut=null,Oi=null;function Ii(n){const e=ut;return ut=n,Oi=n&&n.type.__scopeId||null,e}function Zn(n){Oi=n}function Qn(){Oi=null}function Ze(n,e=ut,t){if(!e||n._n)return n;const s=(...i)=>{s._d&&Zl(-1);const o=Ii(e);let r;try{r=n(...i)}finally{Ii(o),s._d&&Zl(1)}return{}.NODE_ENV!=="production"&&yl(e),r};return s._n=!0,s._c=!0,s._d=!0,s}let Zo=!1;function Di(){Zo=!0}function Qo(n){const{type:e,vnode:t,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:m,inheritAttrs:v}=n,b=Ii(n);let E,I;({}).NODE_ENV!=="production"&&(Zo=!1);try{if(t.shapeFlag&4){const B=i||s,R={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(B,{get(Y,fe,be){return ie(`Property '${String(fe)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(Y,fe,be)}}):B;E=Qt(c.call(R,B,u,{}.NODE_ENV!=="production"?pn(h):h,d,f,m)),I=a}else{const B=e;({}).NODE_ENV!=="production"&&a===h&&Di(),E=Qt(B.length>1?B({}.NODE_ENV!=="production"?pn(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Di(),a},slots:r,emit:l}:{attrs:a,slots:r,emit:l}):B({}.NODE_ENV!=="production"?pn(h):h,null)),I=e.props?a:Ad(a)}}catch(B){Hs.length=0,$s(B,n,1),E=me(At)}let N=E,k;if({}.NODE_ENV!=="production"&&E.patchFlag>0&&E.patchFlag&2048&&([N,k]=xl(E)),I&&v!==!1){const B=Object.keys(I),{shapeFlag:R}=N;if(B.length){if(R&7)o&&B.some(hi)&&(I=Md(I,o)),N=Mn(N,I);else if({}.NODE_ENV!=="production"&&!Zo&&N.type!==At){const Y=Object.keys(a),fe=[],be=[];for(let ge=0,Pe=Y.length;ge<Pe;ge++){const Oe=Y[ge];Os(Oe)?hi(Oe)||fe.push(Oe[2].toLowerCase()+Oe.slice(3)):be.push(Oe)}be.length&&ie(`Extraneous non-props attributes (${be.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),fe.length&&ie(`Extraneous non-emits event listeners (${fe.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return t.dirs&&({}.NODE_ENV!=="production"&&!wl(N)&&ie("Runtime directive used on component with non-element root node. The directives will not function as intended."),N=Mn(N),N.dirs=N.dirs?N.dirs.concat(t.dirs):t.dirs),t.transition&&({}.NODE_ENV!=="production"&&!wl(N)&&ie("Component inside <Transition> renders non-element root node that cannot be animated."),N.transition=t.transition),{}.NODE_ENV!=="production"&&k?k(N):E=N,Ii(b),E}const xl=n=>{const e=n.children,t=n.dynamicChildren,s=Jo(e,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return xl(s)}else return[n,void 0];const i=e.indexOf(s),o=t?t.indexOf(s):-1,r=a=>{e[i]=a,t&&(o>-1?t[o]=a:a.patchFlag>0&&(n.dynamicChildren=[...t,a]))};return[Qt(s),r]};function Jo(n,e=!0){let t;for(let s=0;s<n.length;s++){const i=n[s];if(vs(i)){if(i.type!==At||i.children==="v-if"){if(t)return;if(t=i,{}.NODE_ENV!=="production"&&e&&t.patchFlag>0&&t.patchFlag&2048)return Jo(t.children)}}else return}return t}const Ad=n=>{let e;for(const t in n)(t==="class"||t==="style"||Os(t))&&((e||(e={}))[t]=n[t]);return e},Md=(n,e)=>{const t={};for(const s in n)(!hi(s)||!(s.slice(9)in e))&&(t[s]=n[s]);return t},wl=n=>n.shapeFlag&7||n.type===At;function Rd(n,e,t){const{props:s,children:i,component:o}=n,{props:r,children:a,patchFlag:l}=e,c=o.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&qn||e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return s?Cl(s,r,c):!!r;if(l&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(r[f]!==s[f]&&!Pi(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===r?!1:s?r?Cl(s,r,c):!0:!!r;return!1}function Cl(n,e,t){const s=Object.keys(e);if(s.length!==Object.keys(n).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(e[o]!==n[o]&&!Pi(t,o))return!0}return!1}function Vd({vnode:n,parent:e},t){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===n&&(s.el=n.el),s===n)(n=e.vnode).el=t,e=e.parent;else break}}const Ld=Symbol.for("v-ndc"),Fd=n=>n.__isSuspense;function zd(n,e){e&&e.pendingBranch?ye(n)?e.effects.push(...n):e.effects.push(n):hl(n)}const Gd=Symbol.for("v-scx"),jd=()=>{{const n=Mi(Gd);return n||{}.NODE_ENV!=="production"&&ie("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),n}};function Sl(n,e){return er(n,null,e)}const Ni={};function Se(n,e,t){return{}.NODE_ENV!=="production"&&!Ce(e)&&ie("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),er(n,e,t)}function er(n,e,{immediate:t,deep:s,flush:i,once:o,onTrack:r,onTrigger:a}=Ge){if(e&&o){const Y=e;e=(...fe)=>{Y(...fe),R()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&ie('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!e&&(t!==void 0&&ie('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&ie('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&ie('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=Y=>{ie("Invalid watch source: ",Y,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=mt,u=Y=>s===!0?Y:Jn(Y,s===!1?1:void 0);let h,f=!1,d=!1;if(wt(n)?(h=()=>n.value,f=Un(n)):ps(n)?(h=()=>u(n),f=!0):ye(n)?(d=!0,f=n.some(Y=>ps(Y)||Un(Y)),h=()=>n.map(Y=>{if(wt(Y))return Y.value;if(ps(Y))return u(Y);if(Ce(Y))return mn(Y,c,2);({}).NODE_ENV!=="production"&&l(Y)})):Ce(n)?e?h=()=>mn(n,c,2):h=()=>(m&&m(),Kt(n,c,3,[v])):(h=ct,{}.NODE_ENV!=="production"&&l(n)),e&&s){const Y=h;h=()=>Jn(Y())}let m,v=Y=>{m=k.onStop=()=>{mn(Y,c,4),m=k.onStop=void 0}},b;if(Gi)if(v=ct,e?t&&Kt(e,c,3,[h(),d?[]:void 0,v]):h(),i==="sync"){const Y=jd();b=Y.__watcherHandles||(Y.__watcherHandles=[])}else return ct;let E=d?new Array(n.length).fill(Ni):Ni;const I=()=>{if(!(!k.active||!k.dirty))if(e){const Y=k.run();(s||f||(d?Y.some((fe,be)=>Pn(fe,E[be])):Pn(Y,E)))&&(m&&m(),Kt(e,c,3,[Y,E===Ni?void 0:d&&E[0]===Ni?[]:E,v]),E=Y)}else k.run()};I.allowRecurse=!!e;let N;i==="sync"?N=I:i==="post"?N=()=>$t(I,c&&c.suspense):(I.pre=!0,c&&(I.id=c.uid),N=()=>Ti(I));const k=new Ao(h,ct,N),B=Fh(),R=()=>{k.stop(),B&&Po(B.effects,k)};return{}.NODE_ENV!=="production"&&(k.onTrack=r,k.onTrigger=a),e?t?I():E=k.run():i==="post"?$t(k.run.bind(k),c&&c.suspense):k.run(),b&&b.push(R),R}function Bd(n,e,t){const s=this.proxy,i=ot(n)?n.includes(".")?El(s,n):()=>s[n]:n.bind(s,s);let o;Ce(e)?o=e:(o=e.handler,t=e);const r=Us(this),a=er(i,o.bind(s),t);return r(),a}function El(n,e){const t=e.split(".");return()=>{let s=n;for(let i=0;i<t.length&&s;i++)s=s[t[i]];return s}}function Jn(n,e,t=0,s){if(!Ve(n)||n.__v_skip)return n;if(e&&e>0){if(t>=e)return n;t++}if(s=s||new Set,s.has(n))return n;if(s.add(n),wt(n))Jn(n.value,e,t,s);else if(ye(n))for(let i=0;i<n.length;i++)Jn(n[i],e,t,s);else if(Oa(n)||Gn(n))n.forEach(i=>{Jn(i,e,t,s)});else if(Da(n))for(const i in n)Jn(n[i],e,t,s);return n}function kl(n){Ph(n)&&ie("Do not use built-in directive ids as custom directive id: "+n)}function vn(n,e){if(ut===null)return{}.NODE_ENV!=="production"&&ie("withDirectives can only be used inside render functions."),n;const t=ji(ut)||ut.proxy,s=n.dirs||(n.dirs=[]);for(let i=0;i<e.length;i++){let[o,r,a,l=Ge]=e[i];o&&(Ce(o)&&(o={mounted:o,updated:o}),o.deep&&Jn(r),s.push({dir:o,instance:t,value:r,oldValue:void 0,arg:a,modifiers:l}))}return n}function es(n,e,t,s){const i=n.dirs,o=e&&e.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[s];l&&(dn(),Kt(l,t,8,[n.el,a,n,e]),fn())}}/*! #__NO_SIDE_EFFECTS__ */function oe(n,e){return Ce(n)?(()=>tt({name:n.name},e,{setup:n}))():n}const Fs=n=>!!n.type.__asyncLoader,tr=n=>n.type.__isKeepAlive;function Hd(n,e){Tl(n,"a",e)}function Yd(n,e){Tl(n,"da",e)}function Tl(n,e,t=mt){const s=n.__wdc||(n.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if($i(e,s,t),t){let i=t.parent;for(;i&&i.parent;)tr(i.parent.vnode)&&Wd(s,e,t,i),i=i.parent}}function Wd(n,e,t,s){const i=$i(e,n,s,!0);je(()=>{Po(s[e],i)},t)}function $i(n,e,t=mt,s=!1){if(t){const i=t[n]||(t[n]=[]),o=e.__weh||(e.__weh=(...r)=>{if(t.isUnmounted)return;dn();const a=Us(t),l=Kt(e,t,n,r);return a(),fn(),l});return s?i.unshift(o):i.push(o),o}else if({}.NODE_ENV!=="production"){const i=Bn(Ho[n].replace(/ hook$/,""));ie(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const yn=n=>(e,t=mt)=>(!Gi||n==="sp")&&$i(n,(...s)=>e(...s),t),Ud=yn("bm"),$n=yn("m"),Xd=yn("bu"),qd=yn("u"),Kd=yn("bum"),je=yn("um"),Zd=yn("sp"),Qd=yn("rtg"),Jd=yn("rtc");function ef(n,e=mt){$i("ec",n,e)}function Ct(n,e,t,s){let i;const o=t&&t[s];if(ye(n)||ot(n)){i=new Array(n.length);for(let r=0,a=n.length;r<a;r++)i[r]=e(n[r],r,void 0,o&&o[r])}else if(typeof n=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(n)&&ie(`The v-for range expect an integer value but got ${n}.`),i=new Array(n);for(let r=0;r<n;r++)i[r]=e(r+1,r,void 0,o&&o[r])}else if(Ve(n))if(n[Symbol.iterator])i=Array.from(n,(r,a)=>e(r,a,void 0,o&&o[a]));else{const r=Object.keys(n);i=new Array(r.length);for(let a=0,l=r.length;a<l;a++){const c=r[a];i[a]=e(n[c],c,a,o&&o[a])}}else i=[];return t&&(t[s]=i),i}function Ue(n,e,t={},s,i){if(ut.isCE||ut.parent&&Fs(ut.parent)&&ut.parent.isCE)return e!=="default"&&(t.name=e),me("slot",t,s&&s());let o=n[e];({}).NODE_ENV!=="production"&&o&&o.length>1&&(ie("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),o=()=>[]),o&&o._c&&(o._d=!1),A();const r=o&&Pl(o(t)),a=ht(Me,{key:t.key||r&&r.key||`_${e}`},r||(s?s():[]),r&&n._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Pl(n){return n.some(e=>vs(e)?!(e.type===At||e.type===Me&&!Pl(e.children)):!0)?n:null}const nr=n=>n?ic(n)?ji(n)||n.proxy:nr(n.parent):null,ts=tt(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>({}).NODE_ENV!=="production"?pn(n.props):n.props,$attrs:n=>({}).NODE_ENV!=="production"?pn(n.attrs):n.attrs,$slots:n=>({}).NODE_ENV!=="production"?pn(n.slots):n.slots,$refs:n=>({}).NODE_ENV!=="production"?pn(n.refs):n.refs,$parent:n=>nr(n.parent),$root:n=>nr(n.root),$emit:n=>n.emit,$options:n=>rr(n),$forceUpdate:n=>n.f||(n.f=()=>{n.effect.dirty=!0,Ti(n.update)}),$nextTick:n=>n.n||(n.n=ki.bind(n.proxy)),$watch:n=>Bd.bind(n)}),sr=n=>n==="_"||n==="$",ir=(n,e)=>n!==Ge&&!n.__isScriptSetup&&De(n,e),Ol={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=n;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const d=r[e];if(d!==void 0)switch(d){case 1:return s[e];case 2:return i[e];case 4:return t[e];case 3:return o[e]}else{if(ir(s,e))return r[e]=1,s[e];if(i!==Ge&&De(i,e))return r[e]=2,i[e];if((c=n.propsOptions[0])&&De(c,e))return r[e]=3,o[e];if(t!==Ge&&De(t,e))return r[e]=4,t[e];or&&(r[e]=0)}}const u=ts[e];let h,f;if(u)return e==="$attrs"?(_t(n.attrs,"get",""),{}.NODE_ENV!=="production"&&Di()):{}.NODE_ENV!=="production"&&e==="$slots"&&_t(n,"get",e),u(n);if((h=a.__cssModules)&&(h=h[e]))return h;if(t!==Ge&&De(t,e))return r[e]=4,t[e];if(f=l.config.globalProperties,De(f,e))return f[e];({}).NODE_ENV!=="production"&&ut&&(!ot(e)||e.indexOf("__v")!==0)&&(i!==Ge&&sr(e[0])&&De(i,e)?ie(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):n===ut&&ie(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:n},e,t){const{data:s,setupState:i,ctx:o}=n;return ir(i,e)?(i[e]=t,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&De(i,e)?(ie(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):s!==Ge&&De(s,e)?(s[e]=t,!0):De(n.props,e)?({}.NODE_ENV!=="production"&&ie(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in n?({}.NODE_ENV!=="production"&&ie(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in n.appContext.config.globalProperties?Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:t}):o[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:s,appContext:i,propsOptions:o}},r){let a;return!!t[r]||n!==Ge&&De(n,r)||ir(e,r)||(a=o[0])&&De(a,r)||De(s,r)||De(ts,r)||De(i.config.globalProperties,r)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:De(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};({}).NODE_ENV!=="production"&&(Ol.ownKeys=n=>(ie("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(n)));function tf(n){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>n}),Object.keys(ts).forEach(t=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:()=>ts[t](n),set:ct})}),e}function nf(n){const{ctx:e,propsOptions:[t]}=n;t&&Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>n.props[s],set:ct})})}function sf(n){const{ctx:e,setupState:t}=n;Object.keys(ke(t)).forEach(s=>{if(!t.__isScriptSetup){if(sr(s[0])){ie(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>t[s],set:ct})}})}function of(){return rf().slots}function rf(){const n=nc();return{}.NODE_ENV!=="production"&&!n&&ie("useContext() called without active instance."),n.setupContext||(n.setupContext=lc(n))}function Il(n){return ye(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}function af(){const n=Object.create(null);return(e,t)=>{n[t]?ie(`${e} property "${t}" is already defined in ${n[t]}.`):n[t]=e}}let or=!0;function lf(n){const e=rr(n),t=n.proxy,s=n.ctx;or=!1,e.beforeCreate&&Dl(e.beforeCreate,n,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:m,activated:v,deactivated:b,beforeDestroy:E,beforeUnmount:I,destroyed:N,unmounted:k,render:B,renderTracked:R,renderTriggered:Y,errorCaptured:fe,serverPrefetch:be,expose:ge,inheritAttrs:Pe,components:Oe,directives:Le,filters:Fe}=e,He={}.NODE_ENV!=="production"?af():null;if({}.NODE_ENV!=="production"){const[ve]=n.propsOptions;if(ve)for(const F in ve)He("Props",F)}if(c&&cf(c,s,He),r)for(const ve in r){const F=r[ve];Ce(F)?({}.NODE_ENV!=="production"?Object.defineProperty(s,ve,{value:F.bind(t),configurable:!0,enumerable:!0,writable:!0}):s[ve]=F.bind(t),{}.NODE_ENV!=="production"&&He("Methods",ve)):{}.NODE_ENV!=="production"&&ie(`Method "${ve}" has type "${typeof F}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!Ce(i)&&ie("The data option must be a function. Plain object usage is no longer supported.");const ve=i.call(t,t);if({}.NODE_ENV!=="production"&&Oo(ve)&&ie("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ve(ve))({}).NODE_ENV!=="production"&&ie("data() should return an object.");else if(n.data=xt(ve),{}.NODE_ENV!=="production")for(const F in ve)He("Data",F),sr(F[0])||Object.defineProperty(s,F,{configurable:!0,enumerable:!0,get:()=>ve[F],set:ct})}if(or=!0,o)for(const ve in o){const F=o[ve],te=Ce(F)?F.bind(t,t):Ce(F.get)?F.get.bind(t,t):ct;({}).NODE_ENV!=="production"&&te===ct&&ie(`Computed property "${ve}" has no getter.`);const q=!Ce(F)&&Ce(F.set)?F.set.bind(t):{}.NODE_ENV!=="production"?()=>{ie(`Write operation failed: computed property "${ve}" is readonly.`)}:ct,Ee=Wf({get:te,set:q});Object.defineProperty(s,ve,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:re=>Ee.value=re}),{}.NODE_ENV!=="production"&&He("Computed",ve)}if(a)for(const ve in a)Nl(a[ve],s,t,ve);if(l){const ve=Ce(l)?l.call(t):l;Reflect.ownKeys(ve).forEach(F=>{mf(F,ve[F])})}u&&Dl(u,n,"c");function Ie(ve,F){ye(F)?F.forEach(te=>ve(te.bind(t))):F&&ve(F.bind(t))}if(Ie(Ud,h),Ie($n,f),Ie(Xd,d),Ie(qd,m),Ie(Hd,v),Ie(Yd,b),Ie(ef,fe),Ie(Jd,R),Ie(Qd,Y),Ie(Kd,I),Ie(je,k),Ie(Zd,be),ye(ge))if(ge.length){const ve=n.exposed||(n.exposed={});ge.forEach(F=>{Object.defineProperty(ve,F,{get:()=>t[F],set:te=>t[F]=te})})}else n.exposed||(n.exposed={});B&&n.render===ct&&(n.render=B),Pe!=null&&(n.inheritAttrs=Pe),Oe&&(n.components=Oe),Le&&(n.directives=Le)}function cf(n,e,t=ct){ye(n)&&(n=ar(n));for(const s in n){const i=n[s];let o;Ve(i)?"default"in i?o=Mi(i.from||s,i.default,!0):o=Mi(i.from||s):o=Mi(i),wt(o)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):e[s]=o,{}.NODE_ENV!=="production"&&t("Inject",s)}}function Dl(n,e,t){Kt(ye(n)?n.map(s=>s.bind(e.proxy)):n.bind(e.proxy),e,t)}function Nl(n,e,t,s){const i=s.includes(".")?El(t,s):()=>t[s];if(ot(n)){const o=e[n];Ce(o)?Se(i,o):{}.NODE_ENV!=="production"&&ie(`Invalid watch handler specified by key "${n}"`,o)}else if(Ce(n))Se(i,n.bind(t));else if(Ve(n))if(ye(n))n.forEach(o=>Nl(o,e,t,s));else{const o=Ce(n.handler)?n.handler.bind(t):e[n.handler];Ce(o)?Se(i,o,n):{}.NODE_ENV!=="production"&&ie(`Invalid watch handler specified by key "${n.handler}"`,o)}else({}).NODE_ENV!=="production"&&ie(`Invalid watch option: "${s}"`,n)}function rr(n){const e=n.type,{mixins:t,extends:s}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=n.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!t&&!s?l=e:(l={},i.length&&i.forEach(c=>Ai(l,c,r,!0)),Ai(l,e,r)),Ve(e)&&o.set(e,l),l}function Ai(n,e,t,s=!1){const{mixins:i,extends:o}=e;o&&Ai(n,o,t,!0),i&&i.forEach(r=>Ai(n,r,t,!0));for(const r in e)if(s&&r==="expose")({}).NODE_ENV!=="production"&&ie('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=uf[r]||t&&t[r];n[r]=a?a(n[r],e[r]):e[r]}return n}const uf={data:$l,props:Al,emits:Al,methods:zs,computed:zs,beforeCreate:Ot,created:Ot,beforeMount:Ot,mounted:Ot,beforeUpdate:Ot,updated:Ot,beforeDestroy:Ot,beforeUnmount:Ot,destroyed:Ot,unmounted:Ot,activated:Ot,deactivated:Ot,errorCaptured:Ot,serverPrefetch:Ot,components:zs,directives:zs,watch:df,provide:$l,inject:hf};function $l(n,e){return e?n?function(){return tt(Ce(n)?n.call(this,this):n,Ce(e)?e.call(this,this):e)}:e:n}function hf(n,e){return zs(ar(n),ar(e))}function ar(n){if(ye(n)){const e={};for(let t=0;t<n.length;t++)e[n[t]]=n[t];return e}return n}function Ot(n,e){return n?[...new Set([].concat(n,e))]:e}function zs(n,e){return n?tt(Object.create(null),n,e):e}function Al(n,e){return n?ye(n)&&ye(e)?[...new Set([...n,...e])]:tt(Object.create(null),Il(n),Il(e??{})):e}function df(n,e){if(!n)return e;if(!e)return n;const t=tt(Object.create(null),n);for(const s in e)t[s]=Ot(n[s],e[s]);return t}function Ml(){return{app:null,config:{isNativeTag:kh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ff=0;function pf(n,e){return function(s,i=null){Ce(s)||(s=tt({},s)),i!=null&&!Ve(i)&&({}.NODE_ENV!=="production"&&ie("root props passed to app.mount() must be an object."),i=null);const o=Ml(),r=new WeakSet;let a=!1;const l=o.app={_uid:ff++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:hc,get config(){return o.config},set config(c){({}).NODE_ENV!=="production"&&ie("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return r.has(c)?{}.NODE_ENV!=="production"&&ie("Plugin has already been applied to target app."):c&&Ce(c.install)?(r.add(c),c.install(l,...u)):Ce(c)?(r.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&ie('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return o.mixins.includes(c)?{}.NODE_ENV!=="production"&&ie("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):o.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&gr(c,o.config),u?({}.NODE_ENV!=="production"&&o.components[c]&&ie(`Component "${c}" has already been registered in target app.`),o.components[c]=u,l):o.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&kl(c),u?({}.NODE_ENV!=="production"&&o.directives[c]&&ie(`Directive "${c}" has already been registered in target app.`),o.directives[c]=u,l):o.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&ie("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&c.__vue_app__&&ie("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const f=me(s,i);return f.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(o.reload=()=>{n(Mn(f),c,h)}),u&&e?e(f,c):n(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,Ed(l,hc)),ji(f.component)||f.component.proxy}},unmount(){a?(n(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,kd(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&ie("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in o.provides&&ie(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),o.provides[c]=u,l},runWithContext(c){const u=Gs;Gs=l;try{return c()}finally{Gs=u}}};return l}}let Gs=null;function mf(n,e){if(!mt)({}).NODE_ENV!=="production"&&ie("provide() can only be used inside setup().");else{let t=mt.provides;const s=mt.parent&&mt.parent.provides;s===t&&(t=mt.provides=Object.create(s)),t[n]=e}}function Mi(n,e,t=!1){const s=mt||ut;if(s||Gs){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Gs._context.provides;if(i&&n in i)return i[n];if(arguments.length>1)return t&&Ce(e)?e.call(s&&s.proxy):e;({}).NODE_ENV!=="production"&&ie(`injection "${String(n)}" not found.`)}else({}).NODE_ENV!=="production"&&ie("inject() can only be used inside setup() or functional components.")}const Rl={},Vl=()=>Object.create(Rl),Ll=n=>Object.getPrototypeOf(n)===Rl;function gf(n,e,t,s=!1){const i={},o=Vl();n.propsDefaults=Object.create(null),Fl(n,e,i,o);for(const r in n.propsOptions[0])r in i||(i[r]=void 0);({}).NODE_ENV!=="production"&&Hl(e||{},i,n),t?n.props=s?i:od(i):n.type.props?n.props=i:n.props=o,n.attrs=o}function vf(n){for(;n;){if(n.type.__hmrId)return!0;n=n.parent}}function yf(n,e,t,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=n,a=ke(i),[l]=n.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&vf(n))&&(s||r>0)&&!(r&16)){if(r&8){const u=n.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Pi(n.emitsOptions,f))continue;const d=e[f];if(l)if(De(o,f))d!==o[f]&&(o[f]=d,c=!0);else{const m=hn(f);i[m]=lr(l,a,m,d,n,!1)}else d!==o[f]&&(o[f]=d,c=!0)}}}else{Fl(n,e,i,o)&&(c=!0);let u;for(const h in a)(!e||!De(e,h)&&((u=Vt(h))===h||!De(e,u)))&&(l?t&&(t[h]!==void 0||t[u]!==void 0)&&(i[h]=lr(l,a,h,void 0,n,!0)):delete i[h]);if(o!==a)for(const h in o)(!e||!De(e,h))&&(delete o[h],c=!0)}c&&tn(n.attrs,"set",""),{}.NODE_ENV!=="production"&&Hl(e||{},i,n)}function Fl(n,e,t,s){const[i,o]=n.propsOptions;let r=!1,a;if(e)for(let l in e){if(Is(l))continue;const c=e[l];let u;i&&De(i,u=hn(l))?!o||!o.includes(u)?t[u]=c:(a||(a={}))[u]=c:Pi(n.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,r=!0)}if(o){const l=ke(t),c=a||Ge;for(let u=0;u<o.length;u++){const h=o[u];t[h]=lr(i,l,h,c[h],n,!De(c,h))}}return r}function lr(n,e,t,s,i,o){const r=n[t];if(r!=null){const a=De(r,"default");if(a&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Ce(l)){const{propsDefaults:c}=i;if(t in c)s=c[t];else{const u=Us(i);s=c[t]=l.call(null,e),u()}}else s=l}r[0]&&(o&&!a?s=!1:r[1]&&(s===""||s===Vt(t))&&(s=!0))}return s}function zl(n,e,t=!1){const s=e.propsCache,i=s.get(n);if(i)return i;const o=n.props,r={},a=[];let l=!1;if(!Ce(n)){const u=h=>{l=!0;const[f,d]=zl(h,e,!0);tt(r,f),d&&a.push(...d)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!o&&!l)return Ve(n)&&s.set(n,fs),fs;if(ye(o))for(let u=0;u<o.length;u++){({}).NODE_ENV!=="production"&&!ot(o[u])&&ie("props must be strings when using array syntax.",o[u]);const h=hn(o[u]);Gl(h)&&(r[h]=Ge)}else if(o){({}).NODE_ENV!=="production"&&!Ve(o)&&ie("invalid props options",o);for(const u in o){const h=hn(u);if(Gl(h)){const f=o[u],d=r[h]=ye(f)||Ce(f)?{type:f}:tt({},f);if(d){const m=Bl(Boolean,d.type),v=Bl(String,d.type);d[0]=m>-1,d[1]=v<0||m<v,(m>-1||De(d,"default"))&&a.push(h)}}}}const c=[r,a];return Ve(n)&&s.set(n,c),c}function Gl(n){return n[0]!=="$"&&!Is(n)?!0:({}.NODE_ENV!=="production"&&ie(`Invalid prop name: "${n}" is a reserved property.`),!1)}function cr(n){return n===null?"null":typeof n=="function"?n.name||"":typeof n=="object"&&n.constructor&&n.constructor.name||""}function jl(n,e){return cr(n)===cr(e)}function Bl(n,e){return ye(e)?e.findIndex(t=>jl(t,n)):Ce(e)&&jl(e,n)?0:-1}function Hl(n,e,t){const s=ke(e),i=t.propsOptions[0];for(const o in i){let r=i[o];r!=null&&bf(o,s[o],r,{}.NODE_ENV!=="production"?pn(s):s,!De(n,o)&&!De(n,Vt(o)))}}function bf(n,e,t,s,i){const{type:o,required:r,validator:a,skipCheck:l}=t;if(r&&i){ie('Missing required prop: "'+n+'"');return}if(!(e==null&&!r)){if(o!=null&&o!==!0&&!l){let c=!1;const u=ye(o)?o:[o],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=xf(e,u[f]);h.push(m||""),c=d}if(!c){ie(wf(n,e,h));return}}a&&!a(e,s)&&ie('Invalid prop: custom validator check failed for prop "'+n+'".')}}const _f=en("String,Number,Boolean,Function,Symbol,BigInt");function xf(n,e){let t;const s=cr(e);if(_f(s)){const i=typeof n;t=i===s.toLowerCase(),!t&&i==="object"&&(t=n instanceof e)}else s==="Object"?t=Ve(n):s==="Array"?t=ye(n):s==="null"?t=n===null:t=n instanceof e;return{valid:t,expectedType:s}}function wf(n,e,t){if(t.length===0)return`Prop type [] for prop "${n}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${n}". Expected ${t.map(pi).join(" | ")}`;const i=t[0],o=Io(e),r=Yl(e,i),a=Yl(e,o);return t.length===1&&Wl(i)&&!Cf(i,o)&&(s+=` with value ${r}`),s+=`, got ${o} `,Wl(o)&&(s+=`with value ${a}.`),s}function Yl(n,e){return e==="String"?`"${n}"`:e==="Number"?`${Number(n)}`:`${n}`}function Wl(n){return["string","number","boolean"].some(t=>n.toLowerCase()===t)}function Cf(...n){return n.some(e=>e.toLowerCase()==="boolean")}const Ul=n=>n[0]==="_"||n==="$stable",ur=n=>ye(n)?n.map(Qt):[Qt(n)],Sf=(n,e,t)=>{if(e._n)return e;const s=Ze((...i)=>({}.NODE_ENV!=="production"&&mt&&(!t||t.root===mt.root)&&ie(`Slot "${n}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),ur(e(...i))),t);return s._c=!1,s},Xl=(n,e,t)=>{const s=n._ctx;for(const i in n){if(Ul(i))continue;const o=n[i];if(Ce(o))e[i]=Sf(i,o,s);else if(o!=null){({}).NODE_ENV!=="production"&&ie(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const r=ur(o);e[i]=()=>r}}},ql=(n,e)=>{({}).NODE_ENV!=="production"&&!tr(n.vnode)&&ie("Non-function value encountered for default slot. Prefer function slots for better performance.");const t=ur(e);n.slots.default=()=>t},Ef=(n,e)=>{const t=n.slots=Vl();if(n.vnode.shapeFlag&32){const s=e._;s?(tt(t,e),Na(t,"_",s)):Xl(e,t)}else e&&ql(n,e)},kf=(n,e,t)=>{const{vnode:s,slots:i}=n;let o=!0,r=Ge;if(s.shapeFlag&32){const a=e._;a?{}.NODE_ENV!=="production"&&qn?(tt(i,e),tn(n,"set","$slots")):t&&a===1?o=!1:(tt(i,e),!t&&a===1&&delete i._):(o=!e.$stable,Xl(e,i)),r=e}else e&&(ql(n,e),r={default:1});if(o)for(const a in i)!Ul(a)&&r[a]==null&&delete i[a]};function hr(n,e,t,s,i=!1){if(ye(n)){n.forEach((f,d)=>hr(f,e&&(ye(e)?e[d]:e),t,s,i));return}if(Fs(s)&&!i)return;const o=s.shapeFlag&4?ji(s.component)||s.component.proxy:s.el,r=i?null:o,{i:a,r:l}=n;if({}.NODE_ENV!=="production"&&!a){ie("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=e&&e.r,u=a.refs===Ge?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(ot(c)?(u[c]=null,De(h,c)&&(h[c]=null)):wt(c)&&(c.value=null)),Ce(l))mn(l,a,12,[r,u]);else{const f=ot(l),d=wt(l);if(f||d){const m=()=>{if(n.f){const v=f?De(h,l)?h[l]:u[l]:l.value;i?ye(v)&&Po(v,o):ye(v)?v.includes(o)||v.push(o):f?(u[l]=[o],De(h,l)&&(h[l]=u[l])):(l.value=[o],n.k&&(u[n.k]=l.value))}else f?(u[l]=r,De(h,l)&&(h[l]=r)):d?(l.value=r,n.k&&(u[n.k]=r)):{}.NODE_ENV!=="production"&&ie("Invalid template ref type:",l,`(${typeof l})`)};r?(m.id=-1,$t(m,t)):m()}else({}).NODE_ENV!=="production"&&ie("Invalid template ref type:",l,`(${typeof l})`)}}let js,An;function bn(n,e){n.appContext.config.performance&&Ri()&&An.mark(`vue-${e}-${n.uid}`),{}.NODE_ENV!=="production"&&Id(n,e,Ri()?An.now():Date.now())}function _n(n,e){if(n.appContext.config.performance&&Ri()){const t=`vue-${e}-${n.uid}`,s=t+":end";An.mark(s),An.measure(`<${Bi(n,n.type)}> ${e}`,t,s),An.clearMarks(t),An.clearMarks(s)}({}).NODE_ENV!=="production"&&Dd(n,e,Ri()?An.now():Date.now())}function Ri(){return js!==void 0||(typeof window<"u"&&window.performance?(js=!0,An=window.performance):js=!1),js}function Tf(){const n=[];if({}.NODE_ENV!=="production"&&n.length){const e=n.length>1;console.warn(`Feature flag${e?"s":""} ${n.join(", ")} ${e?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
19
19
 
20
- For more details, see https://link.vuejs.org/feature-flags.`)}}const Nt=Td;function mf(n){return gf(n)}function gf(n,e){pf();const t=Po();t.__VUE__=!0,{}.NODE_ENV!=="production"&&rl(t.__VUE_DEVTOOLS_GLOBAL_HOOK__,t);const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:f=ot,insertStaticContent:m}=n,y=(v,x,N,R=null,z=null,K=null,se=void 0,B=null,ne={}.NODE_ENV!=="production"&&Bn?!1:!!x.dynamicChildren)=>{if(v===x)return;v&&!Rs(v,x)&&(R=q(v),j(v,z,K,!0),v=null),x.patchFlag===-2&&(ne=!1,x.dynamicChildren=null);const{type:W,ref:le,shapeFlag:xe}=x;switch(W){case Ms:_(v,x,N,R);break;case Dt:C(v,x,N,R);break;case Ii:v==null?k(x,N,R,se):{}.NODE_ENV!=="production"&&P(v,x,N,se);break;case ze:Ne(v,x,N,R,z,K,se,B,ne);break;default:xe&1?F(v,x,N,R,z,K,se,B,ne):xe&6?Le(v,x,N,R,z,K,se,B,ne):xe&64||xe&128?W.process(v,x,N,R,z,K,se,B,ne,te):{}.NODE_ENV!=="production"&&ie("Invalid VNode type:",W,`(${typeof W})`)}le!=null&&z&&ar(le,v&&v.ref,K,x||v,!x)},_=(v,x,N,R)=>{if(v==null)s(x.el=a(x.children),N,R);else{const z=x.el=v.el;x.children!==v.children&&c(z,x.children)}},C=(v,x,N,R)=>{v==null?s(x.el=l(x.children||""),N,R):x.el=v.el},k=(v,x,N,R)=>{[v.el,v.anchor]=m(v.children,x,N,R,v.el,v.anchor)},P=(v,x,N,R)=>{if(x.children!==v.children){const z=d(v.anchor);U(v),[x.el,x.anchor]=m(x.children,N,z,R)}else x.el=v.el,x.anchor=v.anchor},D=({el:v,anchor:x},N,R)=>{let z;for(;v&&v!==x;)z=d(v),s(v,N,R),v=z;s(x,N,R)},U=({el:v,anchor:x})=>{let N;for(;v&&v!==x;)N=d(v),i(v),v=N;i(x)},F=(v,x,N,R,z,K,se,B,ne)=>{x.type==="svg"?se="svg":x.type==="math"&&(se="mathml"),v==null?H(x,N,R,z,K,se,B,ne):Ce(v,x,z,K,se,B,ne)},H=(v,x,N,R,z,K,se,B)=>{let ne,W;const{props:le,shapeFlag:xe,transition:ge,dirs:ke}=v;if(ne=v.el=r(v.type,K,le&&le.is,le),xe&8?u(ne,v.children):xe&16&&be(v.children,ne,null,R,z,lr(v,K),se,B),ke&&Un(v,null,R,"created"),ve(ne,v,v.scopeId,se,R),le){for(const Fe in le)Fe!=="value"&&!bs(Fe)&&o(ne,Fe,null,le[Fe],K,v.children,R,z,O);"value"in le&&o(ne,"value",null,le.value,K),(W=le.onVnodeBeforeMount)&&Zt(W,R,v)}({}).NODE_ENV!=="production"&&(Object.defineProperty(ne,"__vnode",{value:v,enumerable:!1}),Object.defineProperty(ne,"__vueParentComponent",{value:R,enumerable:!1})),ke&&Un(v,null,R,"beforeMount");const Ae=vf(z,ge);Ae&&ge.beforeEnter(ne),s(ne,x,N),((W=le&&le.onVnodeMounted)||Ae||ke)&&Nt(()=>{W&&Zt(W,R,v),Ae&&ge.enter(ne),ke&&Un(v,null,R,"mounted")},z)},ve=(v,x,N,R,z)=>{if(N&&f(v,N),R)for(let K=0;K<R.length;K++)f(v,R[K]);if(z){let K=z.subTree;if({}.NODE_ENV!=="production"&&K.patchFlag>0&&K.patchFlag&2048&&(K=qo(K.children)||K),x===K){const se=z.vnode;ve(v,se,se.scopeId,se.slotScopeIds,z.parent)}}},be=(v,x,N,R,z,K,se,B,ne=0)=>{for(let W=ne;W<v.length;W++){const le=v[W]=B?On(v[W]):Yt(v[W]);y(null,le,x,N,R,z,K,se,B)}},Ce=(v,x,N,R,z,K,se)=>{const B=x.el=v.el;let{patchFlag:ne,dynamicChildren:W,dirs:le}=x;ne|=v.patchFlag&16;const xe=v.props||He,ge=x.props||He;let ke;if(N&&Kn(N,!1),(ke=ge.onVnodeBeforeUpdate)&&Zt(ke,N,x,v),le&&Un(x,v,N,"beforeUpdate"),N&&Kn(N,!0),{}.NODE_ENV!=="production"&&Bn&&(ne=0,se=!1,W=null),W?(De(v.dynamicChildren,W,B,N,R,lr(x,z),K),{}.NODE_ENV!=="production"&&Oi(v,x)):se||J(v,x,B,null,N,R,lr(x,z),K,!1),ne>0){if(ne&16)ye(B,x,xe,ge,N,R,z);else if(ne&2&&xe.class!==ge.class&&o(B,"class",null,ge.class,z),ne&4&&o(B,"style",xe.style,ge.style,z),ne&8){const Ae=x.dynamicProps;for(let Fe=0;Fe<Ae.length;Fe++){const We=Ae[Fe],st=xe[We],Pt=ge[We];(Pt!==st||We==="value")&&o(B,We,st,Pt,z,v.children,N,R,O)}}ne&1&&v.children!==x.children&&u(B,x.children)}else!se&&W==null&&ye(B,x,xe,ge,N,R,z);((ke=ge.onVnodeUpdated)||le)&&Nt(()=>{ke&&Zt(ke,N,x,v),le&&Un(x,v,N,"updated")},R)},De=(v,x,N,R,z,K,se)=>{for(let B=0;B<x.length;B++){const ne=v[B],W=x[B],le=ne.el&&(ne.type===ze||!Rs(ne,W)||ne.shapeFlag&70)?h(ne.el):N;y(ne,W,le,null,R,z,K,se,!0)}},ye=(v,x,N,R,z,K,se)=>{if(N!==R){if(N!==He)for(const B in N)!bs(B)&&!(B in R)&&o(v,B,N[B],null,se,x.children,z,K,O);for(const B in R){if(bs(B))continue;const ne=R[B],W=N[B];ne!==W&&B!=="value"&&o(v,B,W,ne,se,x.children,z,K,O)}"value"in R&&o(v,"value",N.value,R.value,se)}},Ne=(v,x,N,R,z,K,se,B,ne)=>{const W=x.el=v?v.el:a(""),le=x.anchor=v?v.anchor:a("");let{patchFlag:xe,dynamicChildren:ge,slotScopeIds:ke}=x;({}).NODE_ENV!=="production"&&(Bn||xe&2048)&&(xe=0,ne=!1,ge=null),ke&&(B=B?B.concat(ke):ke),v==null?(s(W,N,R),s(le,N,R),be(x.children||[],N,le,z,K,se,B,ne)):xe>0&&xe&64&&ge&&v.dynamicChildren?(De(v.dynamicChildren,ge,N,z,K,se,B),{}.NODE_ENV!=="production"?Oi(v,x):(x.key!=null||z&&x===z.subTree)&&Oi(v,x,!0)):J(v,x,N,le,z,K,se,B,ne)},Le=(v,x,N,R,z,K,se,B,ne)=>{x.slotScopeIds=B,v==null?x.shapeFlag&512?z.ctx.activate(x,N,R,se,ne):me(x,N,R,z,K,se,ne):_e(v,x,ne)},me=(v,x,N,R,z,K,se)=>{const B=v.component=Sf(v,R,z);if({}.NODE_ENV!=="production"&&B.type.__hmrId&&ld(B),{}.NODE_ENV!=="production"&&(gi(v),hn(B,"mount")),Zo(v)&&(B.ctx.renderer=te),{}.NODE_ENV!=="production"&&hn(B,"init"),Tf(B),{}.NODE_ENV!=="production"&&dn(B,"init"),B.asyncDep){if(z&&z.registerDep(B,re),!v.el){const ne=B.subTree=Ee(Dt);C(null,ne,x,N)}}else re(B,v,x,N,z,K,se);({}).NODE_ENV!=="production"&&(vi(),dn(B,"mount"))},_e=(v,x,N)=>{const R=x.component=v.component;if(Cd(v,x,N))if(R.asyncDep&&!R.asyncResolved){({}).NODE_ENV!=="production"&&gi(x),V(R,x,N),{}.NODE_ENV!=="production"&&vi();return}else R.next=x,rd(R.update),R.effect.dirty=!0,R.update();else x.el=v.el,R.vnode=x},re=(v,x,N,R,z,K,se)=>{const B=()=>{if(v.isMounted){let{next:le,bu:xe,u:ge,parent:ke,vnode:Ae}=v;{const Mn=Fl(v);if(Mn){le&&(le.el=Ae.el,V(v,le,se)),Mn.asyncDep.then(()=>{v.isUnmounted||B()});return}}let Fe=le,We;({}).NODE_ENV!=="production"&&gi(le||v.vnode),Kn(v,!1),le?(le.el=Ae.el,V(v,le,se)):le=Ae,xe&&xs(xe),(We=le.props&&le.props.onVnodeBeforeUpdate)&&Zt(We,ke,le,Ae),Kn(v,!0),{}.NODE_ENV!=="production"&&hn(v,"render");const st=Uo(v);({}).NODE_ENV!=="production"&&dn(v,"render");const Pt=v.subTree;v.subTree=st,{}.NODE_ENV!=="production"&&hn(v,"patch"),y(Pt,st,h(Pt.el),q(Pt),v,z,K),{}.NODE_ENV!=="production"&&dn(v,"patch"),le.el=st.el,Fe===null&&Ed(v,st.el),ge&&Nt(ge,z),(We=le.props&&le.props.onVnodeUpdated)&&Nt(()=>Zt(We,ke,le,Ae),z),{}.NODE_ENV!=="production"&&al(v),{}.NODE_ENV!=="production"&&vi()}else{let le;const{el:xe,props:ge}=x,{bm:ke,m:Ae,parent:Fe}=v,We=Os(x);if(Kn(v,!1),ke&&xs(ke),!We&&(le=ge&&ge.onVnodeBeforeMount)&&Zt(le,Fe,x),Kn(v,!0),xe&&ae){const st=()=>{({}).NODE_ENV!=="production"&&hn(v,"render"),v.subTree=Uo(v),{}.NODE_ENV!=="production"&&dn(v,"render"),{}.NODE_ENV!=="production"&&hn(v,"hydrate"),ae(xe,v.subTree,v,z,null),{}.NODE_ENV!=="production"&&dn(v,"hydrate")};We?x.type.__asyncLoader().then(()=>!v.isUnmounted&&st()):st()}else{({}).NODE_ENV!=="production"&&hn(v,"render");const st=v.subTree=Uo(v);({}).NODE_ENV!=="production"&&dn(v,"render"),{}.NODE_ENV!=="production"&&hn(v,"patch"),y(null,st,N,R,v,z,K),{}.NODE_ENV!=="production"&&dn(v,"patch"),x.el=st.el}if(Ae&&Nt(Ae,z),!We&&(le=ge&&ge.onVnodeMounted)){const st=x;Nt(()=>Zt(le,Fe,st),z)}(x.shapeFlag&256||Fe&&Os(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&v.a&&Nt(v.a,z),v.isMounted=!0,{}.NODE_ENV!=="production"&&pd(v),x=N=R=null}},ne=v.effect=new Io(B,ot,()=>_i(W),v.scope),W=v.update=()=>{ne.dirty&&ne.run()};W.id=v.uid,Kn(v,!0),{}.NODE_ENV!=="production"&&(ne.onTrack=v.rtc?le=>xs(v.rtc,le):void 0,ne.onTrigger=v.rtg?le=>xs(v.rtg,le):void 0,W.ownerInstance=v),W()},V=(v,x,N)=>{x.component=v;const R=v.vnode.props;v.vnode=x,v.next=null,of(v,x.props,R,N),ff(v,x.children,N),on(),tl(v),rn()},J=(v,x,N,R,z,K,se,B,ne=!1)=>{const W=v&&v.children,le=v?v.shapeFlag:0,xe=x.children,{patchFlag:ge,shapeFlag:ke}=x;if(ge>0){if(ge&128){Pe(W,xe,N,R,z,K,se,B,ne);return}else if(ge&256){Y(W,xe,N,R,z,K,se,B,ne);return}}ke&8?(le&16&&O(W,z,K),xe!==W&&u(N,xe)):le&16?ke&16?Pe(W,xe,N,R,z,K,se,B,ne):O(W,z,K,!0):(le&8&&u(N,""),ke&16&&be(xe,N,R,z,K,se,B,ne))},Y=(v,x,N,R,z,K,se,B,ne)=>{v=v||is,x=x||is;const W=v.length,le=x.length,xe=Math.min(W,le);let ge;for(ge=0;ge<xe;ge++){const ke=x[ge]=ne?On(x[ge]):Yt(x[ge]);y(v[ge],ke,N,null,z,K,se,B,ne)}W>le?O(v,z,K,!0,!1,xe):be(x,N,R,z,K,se,B,ne,xe)},Pe=(v,x,N,R,z,K,se,B,ne)=>{let W=0;const le=x.length;let xe=v.length-1,ge=le-1;for(;W<=xe&&W<=ge;){const ke=v[W],Ae=x[W]=ne?On(x[W]):Yt(x[W]);if(Rs(ke,Ae))y(ke,Ae,N,null,z,K,se,B,ne);else break;W++}for(;W<=xe&&W<=ge;){const ke=v[xe],Ae=x[ge]=ne?On(x[ge]):Yt(x[ge]);if(Rs(ke,Ae))y(ke,Ae,N,null,z,K,se,B,ne);else break;xe--,ge--}if(W>xe){if(W<=ge){const ke=ge+1,Ae=ke<le?x[ke].el:R;for(;W<=ge;)y(null,x[W]=ne?On(x[W]):Yt(x[W]),N,Ae,z,K,se,B,ne),W++}}else if(W>ge)for(;W<=xe;)j(v[W],z,K,!0),W++;else{const ke=W,Ae=W,Fe=new Map;for(W=Ae;W<=ge;W++){const _t=x[W]=ne?On(x[W]):Yt(x[W]);_t.key!=null&&({}.NODE_ENV!=="production"&&Fe.has(_t.key)&&ie("Duplicate keys found during update:",JSON.stringify(_t.key),"Make sure keys are unique."),Fe.set(_t.key,W))}let We,st=0;const Pt=ge-Ae+1;let Mn=!1,mo=0;const ns=new Array(Pt);for(W=0;W<Pt;W++)ns[W]=0;for(W=ke;W<=xe;W++){const _t=v[W];if(st>=Pt){j(_t,z,K,!0);continue}let Ot;if(_t.key!=null)Ot=Fe.get(_t.key);else for(We=Ae;We<=ge;We++)if(ns[We-Ae]===0&&Rs(_t,x[We])){Ot=We;break}Ot===void 0?j(_t,z,K,!0):(ns[Ot-Ae]=W+1,Ot>=mo?mo=Ot:Mn=!0,y(_t,x[Ot],N,null,z,K,se,B,ne),st++)}const go=Mn?yf(ns):is;for(We=go.length-1,W=Pt-1;W>=0;W--){const _t=Ae+W,Ot=x[_t],vo=_t+1<le?x[_t+1].el:R;ns[W]===0?y(null,Ot,N,vo,z,K,se,B,ne):Mn&&(We<0||W!==go[We]?de(Ot,N,vo,2):We--)}}},de=(v,x,N,R,z=null)=>{const{el:K,type:se,transition:B,children:ne,shapeFlag:W}=v;if(W&6){de(v.component.subTree,x,N,R);return}if(W&128){v.suspense.move(x,N,R);return}if(W&64){se.move(v,x,N,te);return}if(se===ze){s(K,x,N);for(let xe=0;xe<ne.length;xe++)de(ne[xe],x,N,R);s(v.anchor,x,N);return}if(se===Ii){D(v,x,N);return}if(R!==2&&W&1&&B)if(R===0)B.beforeEnter(K),s(K,x,N),Nt(()=>B.enter(K),z);else{const{leave:xe,delayLeave:ge,afterLeave:ke}=B,Ae=()=>s(K,x,N),Fe=()=>{xe(K,()=>{Ae(),ke&&ke()})};ge?ge(K,Ae,Fe):Fe()}else s(K,x,N)},j=(v,x,N,R=!1,z=!1)=>{const{type:K,props:se,ref:B,children:ne,dynamicChildren:W,shapeFlag:le,patchFlag:xe,dirs:ge}=v;if(B!=null&&ar(B,null,N,v,!0),le&256){x.ctx.deactivate(v);return}const ke=le&1&&ge,Ae=!Os(v);let Fe;if(Ae&&(Fe=se&&se.onVnodeBeforeUnmount)&&Zt(Fe,x,v),le&6)A(v.component,N,R);else{if(le&128){v.suspense.unmount(N,R);return}ke&&Un(v,null,x,"beforeUnmount"),le&64?v.type.remove(v,x,N,z,te,R):W&&(K!==ze||xe>0&&xe&64)?O(W,x,N,!1,!0):(K===ze&&xe&384||!z&&le&16)&&O(ne,x,N),R&&ee(v)}(Ae&&(Fe=se&&se.onVnodeUnmounted)||ke)&&Nt(()=>{Fe&&Zt(Fe,x,v),ke&&Un(v,null,x,"unmounted")},N)},ee=v=>{const{type:x,el:N,anchor:R,transition:z}=v;if(x===ze){({}).NODE_ENV!=="production"&&v.patchFlag>0&&v.patchFlag&2048&&z&&!z.persisted?v.children.forEach(se=>{se.type===Dt?i(se.el):ee(se)}):S(N,R);return}if(x===Ii){U(v);return}const K=()=>{i(N),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(v.shapeFlag&1&&z&&!z.persisted){const{leave:se,delayLeave:B}=z,ne=()=>se(N,K);B?B(v.el,K,ne):ne()}else K()},S=(v,x)=>{let N;for(;v!==x;)N=d(v),i(v),v=N;i(x)},A=(v,x,N)=>{({}).NODE_ENV!=="production"&&v.type.__hmrId&&cd(v);const{bum:R,scope:z,update:K,subTree:se,um:B}=v;R&&xs(R),z.stop(),K&&(K.active=!1,j(se,v,x,N)),B&&Nt(B,x),Nt(()=>{v.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),{}.NODE_ENV!=="production"&&gd(v)},O=(v,x,N,R=!1,z=!1,K=0)=>{for(let se=K;se<v.length;se++)j(v[se],x,N,R,z)},q=v=>v.shapeFlag&6?q(v.component.subTree):v.shapeFlag&128?v.suspense.next():d(v.anchor||v.el);let E=!1;const L=(v,x,N)=>{v==null?x._vnode&&j(x._vnode,null,null,!0):y(x._vnode||null,v,x,null,null,null,N),E||(E=!0,tl(),nl(),E=!1),x._vnode=v},te={p:y,um:j,m:de,r:ee,mt:me,mc:be,pc:J,pbc:De,n:q,o:n};let fe,ae;return e&&([fe,ae]=e(te)),{render:L,hydrate:fe,createApp:ef(L,fe)}}function lr({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function Kn({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function vf(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function Oi(n,e,t=!1){const s=n.children,i=e.children;if(we(s)&&we(i))for(let o=0;o<s.length;o++){const r=s[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=On(i[o]),a.el=r.el),t||Oi(r,a)),a.type===Ms&&(a.el=r.el),{}.NODE_ENV!=="production"&&a.type===Dt&&!a.el&&(a.el=r.el)}}function yf(n){const e=n.slice(),t=[0];let s,i,o,r,a;const l=n.length;for(s=0;s<l;s++){const c=n[s];if(c!==0){if(i=t[t.length-1],n[i]<c){e[s]=i,t.push(s);continue}for(o=0,r=t.length-1;o<r;)a=o+r>>1,n[t[a]]<c?o=a+1:r=a;c<n[t[o]]&&(o>0&&(e[s]=t[o-1]),t[o]=s)}}for(o=t.length,r=t[o-1];o-- >0;)t[o]=r,r=e[r];return t}function Fl(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Fl(e)}const _f=n=>n.__isTeleport,ze=Symbol.for("v-fgt"),Ms=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),Ii=Symbol.for("v-stc"),$s=[];let Ht=null;function $(n=!1){$s.push(Ht=n?null:[])}function bf(){$s.pop(),Ht=$s[$s.length-1]||null}let As=1;function zl(n){As+=n}function Gl(n){return n.dynamicChildren=As>0?Ht||is:null,bf(),As>0&&Ht&&Ht.push(n),n}function G(n,e,t,s,i,o){return Gl(w(n,e,t,s,i,o,!0))}function lt(n,e,t,s,i){return Gl(Ee(n,e,t,s,i,!0))}function ls(n){return n?n.__v_isVNode===!0:!1}function Rs(n,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&as.has(e.type)?(n.shapeFlag&=-257,e.shapeFlag&=-513,!1):n.type===e.type&&n.key===e.key}const xf=(...n)=>Bl(...n),jl=({key:n})=>n??null,Ni=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?it(n)||vt(n)||Se(n)?{i:at,r:n,k:e,f:!!t}:n:null);function w(n,e=null,t=null,s=0,i=null,o=n===ze?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&jl(e),ref:e&&Ni(e),scopeId:xi,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:at};return a?(cr(l,t),o&128&&n.normalize(l)):t&&(l.shapeFlag|=it(t)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&ie("VNode created with invalid key (NaN). VNode type:",l.type),As>0&&!r&&Ht&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ht.push(l),l}const Ee={}.NODE_ENV!=="production"?xf:Bl;function Bl(n,e=null,t=null,s=0,i=null,o=!1){if((!n||n===Sd)&&({}.NODE_ENV!=="production"&&!n&&ie(`Invalid vnode type when creating vnode: ${n}.`),n=Dt),ls(n)){const a=Pn(n,e,!0);return t&&cr(a,t),As>0&&!o&&Ht&&(a.shapeFlag&6?Ht[Ht.indexOf(n)]=a:Ht.push(a)),a.patchFlag|=-2,a}if(Jl(n)&&(n=n.__vccOpts),e){e=wf(e);let{class:a,style:l}=e;a&&!it(a)&&(e.class=xt(a)),Be(l)&&(Lo(l)&&!we(l)&&(l=Ze({},l)),e.style=Z(l))}const r=it(n)?1:kd(n)?128:_f(n)?64:Be(n)?4:Se(n)?2:0;return{}.NODE_ENV!=="production"&&r&4&&Lo(n)&&(n=Me(n),ie("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
21
- Component that was made reactive: `,n)),w(n,e,t,s,i,r,o,!0)}function wf(n){return n?Lo(n)||Tl(n)?Ze({},n):n:null}function Pn(n,e,t=!1){const{props:s,ref:i,patchFlag:o,children:r}=n,a=e?ur(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&jl(a),ref:e&&e.ref?t&&i?we(i)?i.concat(Ni(e)):[i,Ni(e)]:Ni(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:{}.NODE_ENV!=="production"&&o===-1&&we(r)?r.map(Hl):r,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==ze?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Pn(n.ssContent),ssFallback:n.ssFallback&&Pn(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function Hl(n){const e=Pn(n);return we(n.children)&&(e.children=n.children.map(Hl)),e}function ut(n=" ",e=0){return Ee(Ms,null,n,e)}function Ge(n="",e=!1){return e?($(),lt(Dt,null,n)):Ee(Dt,null,n)}function Yt(n){return n==null||typeof n=="boolean"?Ee(Dt):we(n)?Ee(ze,null,n.slice()):typeof n=="object"?On(n):Ee(Ms,null,String(n))}function On(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Pn(n)}function cr(n,e){let t=0;const{shapeFlag:s}=n;if(e==null)e=null;else if(we(e))t=16;else if(typeof e=="object")if(s&65){const i=e.default;i&&(i._c&&(i._d=!1),cr(n,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!Tl(e)?e._ctx=at:i===3&&at&&(at.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else Se(e)?(e={default:e,_ctx:at},t=32):(e=String(e),s&64?(t=16,e=[ut(e)]):t=8);n.children=e,n.shapeFlag|=t}function ur(...n){const e={};for(let t=0;t<n.length;t++){const s=n[t];for(const i in s)if(i==="class")e.class!==s.class&&(e.class=xt([e.class,s.class]));else if(i==="style")e.style=Z([e.style,s.style]);else if(_s(i)){const o=e[i],r=s[i];r&&o!==r&&!(we(o)&&o.includes(r))&&(e[i]=o?[].concat(o,r):r)}else i!==""&&(e[i]=s[i])}return e}function Zt(n,e,t,s=null){Bt(n,e,7,[t,s])}const Cf=El();let Ef=0;function Sf(n,e,t){const s=n.type,i=(e?e.appContext:n.appContext)||Cf,o={uid:Ef++,vnode:n,type:s,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Eh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ol(s,i),emitsOptions:cl(s,i),emit:null,emitted:null,propsDefaults:He,inheritAttrs:s.inheritAttrs,ctx:He,data:He,props:He,attrs:He,slots:He,refs:He,setupState:He,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:t,suspenseId:t?t.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?o.ctx=jd(o):o.ctx={_:o},o.root=e?e.root:o,o.emit=bd.bind(null,o),n.ce&&n.ce(o),o}let ht=null;const Yl=()=>ht||at;let Di,hr;{const n=Po(),e=(t,s)=>{let i;return(i=n[t])||(i=n[t]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Di=e("__VUE_INSTANCE_SETTERS__",t=>ht=t),hr=e("__VUE_SSR_SETTERS__",t=>Mi=t)}const Vs=n=>{const e=ht;return Di(n),n.scope.on(),()=>{n.scope.off(),Di(e)}},Wl=()=>{ht&&ht.scope.off(),Di(null)},kf=Xt("slot,component");function dr(n,{isNativeTag:e}){(kf(n)||e(n))&&ie("Do not use built-in or reserved HTML elements as component id: "+n)}function Xl(n){return n.vnode.shapeFlag&4}let Mi=!1;function Tf(n,e=!1){e&&hr(e);const{props:t,children:s}=n.vnode,i=Xl(n);nf(n,t,i,e),df(n,s);const o=i?Pf(n,e):void 0;return e&&hr(!1),o}function Pf(n,e){var t;const s=n.type;if({}.NODE_ENV!=="production"){if(s.name&&dr(s.name,n.appContext.config),s.components){const o=Object.keys(s.components);for(let r=0;r<o.length;r++)dr(o[r],n.appContext.config)}if(s.directives){const o=Object.keys(s.directives);for(let r=0;r<o.length;r++)ml(o[r])}s.compilerOptions&&Of()&&ie('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,yl),{}.NODE_ENV!=="production"&&Bd(n);const{setup:i}=s;if(i){const o=n.setupContext=i.length>1?Zl(n):null,r=Vs(n);on();const a=ln(i,n,0,[{}.NODE_ENV!=="production"?an(n.props):n.props,o]);if(rn(),r(),So(a)){if(a.then(Wl,Wl),e)return a.then(l=>{Ul(n,l,e)}).catch(l=>{Cs(l,n,0)});if(n.asyncDep=a,{}.NODE_ENV!=="production"&&!n.suspense){const l=(t=s.name)!=null?t:"Anonymous";ie(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Ul(n,a,e)}else ql(n,e)}function Ul(n,e,t){Se(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:Be(e)?({}.NODE_ENV!=="production"&&ls(e)&&ie("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(n.devtoolsRawSetupState=e),n.setupState=Ka(e),{}.NODE_ENV!=="production"&&Hd(n)):{}.NODE_ENV!=="production"&&e!==void 0&&ie(`setup() should return an object. Received: ${e===null?"null":typeof e}`),ql(n,t)}let fr;const Of=()=>!fr;function ql(n,e,t){const s=n.type;if(!n.render){if(!e&&fr&&!s.render){const i=s.template||nr(n).template;if(i){({}).NODE_ENV!=="production"&&hn(n,"compile");const{isCustomElement:o,compilerOptions:r}=n.appContext.config,{delimiters:a,compilerOptions:l}=s,c=Ze(Ze({isCustomElement:o,delimiters:a},r),l);s.render=fr(i,c),{}.NODE_ENV!=="production"&&dn(n,"compile")}}n.render=s.render||ot}{const i=Vs(n);on();try{Ud(n)}finally{rn(),i()}}({}).NODE_ENV!=="production"&&!s.render&&n.render===ot&&!e&&(s.template?ie('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):ie("Component is missing template or render function."))}const Kl={}.NODE_ENV!=="production"?{get(n,e){return Ci(),mt(n,"get",""),n[e]},set(){return ie("setupContext.attrs is readonly."),!1},deleteProperty(){return ie("setupContext.attrs is readonly."),!1}}:{get(n,e){return mt(n,"get",""),n[e]}};function If(n){return n.slotsProxy||(n.slotsProxy=new Proxy(n.slots,{get(e,t){return mt(n,"get","$slots"),e[t]}}))}function Zl(n){const e=t=>{if({}.NODE_ENV!=="production"&&(n.exposed&&ie("expose() should be called only once per setup()."),t!=null)){let s=typeof t;s==="object"&&(we(t)?s="array":vt(t)&&(s="ref")),s!=="object"&&ie(`expose() should be passed a plain object, received ${s}.`)}n.exposed=t||{}};if({}.NODE_ENV!=="production"){let t;return Object.freeze({get attrs(){return t||(t=new Proxy(n.attrs,Kl))},get slots(){return If(n)},get emit(){return(s,...i)=>n.emit(s,...i)},expose:e})}else return{attrs:new Proxy(n.attrs,Kl),slots:n.slots,emit:n.emit,expose:e}}function $i(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(Ka(Xh(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in qn)return qn[t](n)},has(e,t){return t in e||t in qn}}))}const Nf=/(?:^|[-_])(\w)/g,Df=n=>n.replace(Nf,e=>e.toUpperCase()).replace(/[-_]/g,"");function Ql(n,e=!0){return Se(n)?n.displayName||n.name:n.name||e&&n.__name}function Ai(n,e,t=!1){let s=Ql(e);if(!s&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&n&&n.parent){const i=o=>{for(const r in o)if(o[r]===e)return r};s=i(n.components||n.parent.type.components)||i(n.appContext.components)}return s?Df(s):t?"App":"Anonymous"}function Jl(n){return Se(n)&&"__vccOpts"in n}const Mf=(n,e)=>{const t=qh(n,e,Mi);if({}.NODE_ENV!=="production"){const s=Yl();s&&s.appContext.config.warnRecursiveComputed&&(t._warnRecursive=!0)}return t};function Ue(n,e,t){const s=arguments.length;return s===2?Be(e)&&!we(e)?ls(e)?Ee(n,null,[e]):Ee(n,e):Ee(n,null,e):(s>3?t=Array.prototype.slice.call(arguments,2):s===3&&ls(t)&&(t=[t]),Ee(n,e,t))}function $f(){if({}.NODE_ENV==="production"||typeof window>"u")return;const n={style:"color:#3ba776"},e={style:"color:#1677ff"},t={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(h){return Be(h)?h.__isVue?["div",n,"VueInstance"]:vt(h)?["div",{},["span",n,u(h)],"<",a(h.value),">"]:os(h)?["div",{},["span",n,Gn(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${zn(h)?" (readonly)":""}`]:zn(h)?["div",{},["span",n,Gn(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...o(h.$)]}};function o(h){const d=[];h.type.props&&h.props&&d.push(r("props",Me(h.props))),h.setupState!==He&&d.push(r("setup",h.setupState)),h.data!==He&&d.push(r("data",Me(h.data)));const f=l(h,"computed");f&&d.push(r("computed",f));const m=l(h,"inject");return m&&d.push(r("injected",m)),d.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),d}function r(h,d){return d=Ze({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(f=>["div",{},["span",s,f+": "],a(d[f],!1)])]]:["span",{}]}function a(h,d=!0){return typeof h=="number"?["span",e,h]:typeof h=="string"?["span",t,JSON.stringify(h)]:typeof h=="boolean"?["span",s,h]:Be(h)?["object",{object:d?Me(h):h}]:["span",t,String(h)]}function l(h,d){const f=h.type;if(Se(f))return;const m={};for(const y in h.ctx)c(f,y,d)&&(m[y]=h.ctx[y]);return m}function c(h,d,f){const m=h[f];if(we(m)&&m.includes(d)||Be(m)&&d in m||h.extends&&c(h.extends,d,f)||h.mixins&&h.mixins.some(y=>c(y,d,f)))return!0}function u(h){return Gn(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const ec="3.4.25",Ri={}.NODE_ENV!=="production"?ie:ot;/**
20
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const $t=zd;function Pf(n){return Of(n)}function Of(n,e){Tf();const t=No();t.__VUE__=!0,{}.NODE_ENV!=="production"&&vl(t.__VUE_DEVTOOLS_GLOBAL_HOOK__,t);const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=ct,insertStaticContent:m}=n,v=(y,w,$,L=null,j=null,Q=null,se=void 0,H=null,ne={}.NODE_ENV!=="production"&&qn?!1:!!w.dynamicChildren)=>{if(y===w)return;y&&!Ws(y,w)&&(L=Rt(y),$e(y,j,Q,!0),y=null),w.patchFlag===-2&&(ne=!1,w.dynamicChildren=null);const{type:U,ref:ae,shapeFlag:P}=w;switch(U){case Bs:b(y,w,$,L);break;case At:E(y,w,$,L);break;case Li:y==null?I(w,$,L,se):{}.NODE_ENV!=="production"&&N(y,w,$,se);break;case Me:Le(y,w,$,L,j,Q,se,H,ne);break;default:P&1?R(y,w,$,L,j,Q,se,H,ne):P&6?Fe(y,w,$,L,j,Q,se,H,ne):P&64||P&128?U.process(y,w,$,L,j,Q,se,H,ne,Ht):{}.NODE_ENV!=="production"&&ie("Invalid VNode type:",U,`(${typeof U})`)}ae!=null&&j&&hr(ae,y&&y.ref,Q,w||y,!w)},b=(y,w,$,L)=>{if(y==null)s(w.el=a(w.children),$,L);else{const j=w.el=y.el;w.children!==y.children&&c(j,w.children)}},E=(y,w,$,L)=>{y==null?s(w.el=l(w.children||""),$,L):w.el=y.el},I=(y,w,$,L)=>{[y.el,y.anchor]=m(y.children,w,$,L,y.el,y.anchor)},N=(y,w,$,L)=>{if(w.children!==y.children){const j=f(y.anchor);B(y),[w.el,w.anchor]=m(w.children,$,j,L)}else w.el=y.el,w.anchor=y.anchor},k=({el:y,anchor:w},$,L)=>{let j;for(;y&&y!==w;)j=f(y),s(y,$,L),y=j;s(w,$,L)},B=({el:y,anchor:w})=>{let $;for(;y&&y!==w;)$=f(y),i(y),y=$;i(w)},R=(y,w,$,L,j,Q,se,H,ne)=>{w.type==="svg"?se="svg":w.type==="math"&&(se="mathml"),y==null?Y(w,$,L,j,Q,se,H,ne):ge(y,w,j,Q,se,H,ne)},Y=(y,w,$,L,j,Q,se,H)=>{let ne,U;const{props:ae,shapeFlag:P,transition:S,dirs:x}=y;if(ne=y.el=r(y.type,Q,ae&&ae.is,ae),P&8?u(ne,y.children):P&16&&be(y.children,ne,null,L,j,dr(y,Q),se,H),x&&es(y,null,L,"created"),fe(ne,y,y.scopeId,se,L),ae){for(const X in ae)X!=="value"&&!Is(X)&&o(ne,X,null,ae[X],Q,y.children,L,j,Ye);"value"in ae&&o(ne,"value",null,ae.value,Q),(U=ae.onVnodeBeforeMount)&&on(U,L,y)}({}).NODE_ENV!=="production"&&(Object.defineProperty(ne,"__vnode",{value:y,enumerable:!1}),Object.defineProperty(ne,"__vueParentComponent",{value:L,enumerable:!1})),x&&es(y,null,L,"beforeMount");const M=If(j,S);M&&S.beforeEnter(ne),s(ne,w,$),((U=ae&&ae.onVnodeMounted)||M||x)&&$t(()=>{U&&on(U,L,y),M&&S.enter(ne),x&&es(y,null,L,"mounted")},j)},fe=(y,w,$,L,j)=>{if($&&d(y,$),L)for(let Q=0;Q<L.length;Q++)d(y,L[Q]);if(j){let Q=j.subTree;if({}.NODE_ENV!=="production"&&Q.patchFlag>0&&Q.patchFlag&2048&&(Q=Jo(Q.children)||Q),w===Q){const se=j.vnode;fe(y,se,se.scopeId,se.slotScopeIds,j.parent)}}},be=(y,w,$,L,j,Q,se,H,ne=0)=>{for(let U=ne;U<y.length;U++){const ae=y[U]=H?Rn(y[U]):Qt(y[U]);v(null,ae,w,$,L,j,Q,se,H)}},ge=(y,w,$,L,j,Q,se)=>{const H=w.el=y.el;let{patchFlag:ne,dynamicChildren:U,dirs:ae}=w;ne|=y.patchFlag&16;const P=y.props||Ge,S=w.props||Ge;let x;if($&&ns($,!1),(x=S.onVnodeBeforeUpdate)&&on(x,$,w,y),ae&&es(w,y,$,"beforeUpdate"),$&&ns($,!0),{}.NODE_ENV!=="production"&&qn&&(ne=0,se=!1,U=null),U?(Pe(y.dynamicChildren,U,H,$,L,dr(w,j),Q),{}.NODE_ENV!=="production"&&Vi(y,w)):se||te(y,w,H,null,$,L,dr(w,j),Q,!1),ne>0){if(ne&16)Oe(H,w,P,S,$,L,j);else if(ne&2&&P.class!==S.class&&o(H,"class",null,S.class,j),ne&4&&o(H,"style",P.style,S.style,j),ne&8){const M=w.dynamicProps;for(let X=0;X<M.length;X++){const G=M[X],J=P[G],W=S[G];(W!==J||G==="value")&&o(H,G,J,W,j,y.children,$,L,Ye)}}ne&1&&y.children!==w.children&&u(H,w.children)}else!se&&U==null&&Oe(H,w,P,S,$,L,j);((x=S.onVnodeUpdated)||ae)&&$t(()=>{x&&on(x,$,w,y),ae&&es(w,y,$,"updated")},L)},Pe=(y,w,$,L,j,Q,se)=>{for(let H=0;H<w.length;H++){const ne=y[H],U=w[H],ae=ne.el&&(ne.type===Me||!Ws(ne,U)||ne.shapeFlag&70)?h(ne.el):$;v(ne,U,ae,null,L,j,Q,se,!0)}},Oe=(y,w,$,L,j,Q,se)=>{if($!==L){if($!==Ge)for(const H in $)!Is(H)&&!(H in L)&&o(y,H,$[H],null,se,w.children,j,Q,Ye);for(const H in L){if(Is(H))continue;const ne=L[H],U=$[H];ne!==U&&H!=="value"&&o(y,H,U,ne,se,w.children,j,Q,Ye)}"value"in L&&o(y,"value",$.value,L.value,se)}},Le=(y,w,$,L,j,Q,se,H,ne)=>{const U=w.el=y?y.el:a(""),ae=w.anchor=y?y.anchor:a("");let{patchFlag:P,dynamicChildren:S,slotScopeIds:x}=w;({}).NODE_ENV!=="production"&&(qn||P&2048)&&(P=0,ne=!1,S=null),x&&(H=H?H.concat(x):x),y==null?(s(U,$,L),s(ae,$,L),be(w.children||[],$,ae,j,Q,se,H,ne)):P>0&&P&64&&S&&y.dynamicChildren?(Pe(y.dynamicChildren,S,$,j,Q,se,H),{}.NODE_ENV!=="production"?Vi(y,w):(w.key!=null||j&&w===j.subTree)&&Vi(y,w,!0)):te(y,w,$,ae,j,Q,se,H,ne)},Fe=(y,w,$,L,j,Q,se,H,ne)=>{w.slotScopeIds=H,y==null?w.shapeFlag&512?j.ctx.activate(w,$,L,se,ne):He(w,$,L,j,Q,se,ne):Ie(y,w,ne)},He=(y,w,$,L,j,Q,se)=>{const H=y.component=Lf(y,L,j);if({}.NODE_ENV!=="production"&&H.type.__hmrId&&xd(H),{}.NODE_ENV!=="production"&&(Si(y),bn(H,"mount")),tr(y)&&(H.ctx.renderer=Ht),{}.NODE_ENV!=="production"&&bn(H,"init"),zf(H),{}.NODE_ENV!=="production"&&_n(H,"init"),H.asyncDep){if(j&&j.registerDep(H,ve),!y.el){const ne=H.subTree=me(At);E(null,ne,w,$)}}else ve(H,y,w,$,j,Q,se);({}).NODE_ENV!=="production"&&(Ei(),_n(H,"mount"))},Ie=(y,w,$)=>{const L=w.component=y.component;if(Rd(y,w,$))if(L.asyncDep&&!L.asyncResolved){({}).NODE_ENV!=="production"&&Si(w),F(L,w,$),{}.NODE_ENV!=="production"&&Ei();return}else L.next=w,bd(L.update),L.effect.dirty=!0,L.update();else w.el=y.el,L.vnode=w},ve=(y,w,$,L,j,Q,se)=>{const H=()=>{if(y.isMounted){let{next:ae,bu:P,u:S,parent:x,vnode:M}=y;{const ue=Kl(y);if(ue){ae&&(ae.el=M.el,F(y,ae,se)),ue.asyncDep.then(()=>{y.isUnmounted||H()});return}}let X=ae,G;({}).NODE_ENV!=="production"&&Si(ae||y.vnode),ns(y,!1),ae?(ae.el=M.el,F(y,ae,se)):ae=M,P&&Ds(P),(G=ae.props&&ae.props.onVnodeBeforeUpdate)&&on(G,x,ae,M),ns(y,!0),{}.NODE_ENV!=="production"&&bn(y,"render");const J=Qo(y);({}).NODE_ENV!=="production"&&_n(y,"render");const W=y.subTree;y.subTree=J,{}.NODE_ENV!=="production"&&bn(y,"patch"),v(W,J,h(W.el),Rt(W),y,j,Q),{}.NODE_ENV!=="production"&&_n(y,"patch"),ae.el=J.el,X===null&&Vd(y,J.el),S&&$t(S,j),(G=ae.props&&ae.props.onVnodeUpdated)&&$t(()=>on(G,x,ae,M),j),{}.NODE_ENV!=="production"&&yl(y),{}.NODE_ENV!=="production"&&Ei()}else{let ae;const{el:P,props:S}=w,{bm:x,m:M,parent:X}=y,G=Fs(w);if(ns(y,!1),x&&Ds(x),!G&&(ae=S&&S.onVnodeBeforeMount)&&on(ae,X,w),ns(y,!0),P&&at){const J=()=>{({}).NODE_ENV!=="production"&&bn(y,"render"),y.subTree=Qo(y),{}.NODE_ENV!=="production"&&_n(y,"render"),{}.NODE_ENV!=="production"&&bn(y,"hydrate"),at(P,y.subTree,y,j,null),{}.NODE_ENV!=="production"&&_n(y,"hydrate")};G?w.type.__asyncLoader().then(()=>!y.isUnmounted&&J()):J()}else{({}).NODE_ENV!=="production"&&bn(y,"render");const J=y.subTree=Qo(y);({}).NODE_ENV!=="production"&&_n(y,"render"),{}.NODE_ENV!=="production"&&bn(y,"patch"),v(null,J,$,L,y,j,Q),{}.NODE_ENV!=="production"&&_n(y,"patch"),w.el=J.el}if(M&&$t(M,j),!G&&(ae=S&&S.onVnodeMounted)){const J=w;$t(()=>on(ae,X,J),j)}(w.shapeFlag&256||X&&Fs(X.vnode)&&X.vnode.shapeFlag&256)&&y.a&&$t(y.a,j),y.isMounted=!0,{}.NODE_ENV!=="production"&&Td(y),w=$=L=null}},ne=y.effect=new Ao(H,ct,()=>Ti(U),y.scope),U=y.update=()=>{ne.dirty&&ne.run()};U.id=y.uid,ns(y,!0),{}.NODE_ENV!=="production"&&(ne.onTrack=y.rtc?ae=>Ds(y.rtc,ae):void 0,ne.onTrigger=y.rtg?ae=>Ds(y.rtg,ae):void 0,U.ownerInstance=y),U()},F=(y,w,$)=>{w.component=y;const L=y.vnode.props;y.vnode=w,y.next=null,yf(y,w.props,L,$),kf(y,w.children,$),dn(),dl(y),fn()},te=(y,w,$,L,j,Q,se,H,ne=!1)=>{const U=y&&y.children,ae=y?y.shapeFlag:0,P=w.children,{patchFlag:S,shapeFlag:x}=w;if(S>0){if(S&128){Ee(U,P,$,L,j,Q,se,H,ne);return}else if(S&256){q(U,P,$,L,j,Q,se,H,ne);return}}x&8?(ae&16&&Ye(U,j,Q),P!==U&&u($,P)):ae&16?x&16?Ee(U,P,$,L,j,Q,se,H,ne):Ye(U,j,Q,!0):(ae&8&&u($,""),x&16&&be(P,$,L,j,Q,se,H,ne))},q=(y,w,$,L,j,Q,se,H,ne)=>{y=y||fs,w=w||fs;const U=y.length,ae=w.length,P=Math.min(U,ae);let S;for(S=0;S<P;S++){const x=w[S]=ne?Rn(w[S]):Qt(w[S]);v(y[S],x,$,null,j,Q,se,H,ne)}U>ae?Ye(y,j,Q,!0,!1,P):be(w,$,L,j,Q,se,H,ne,P)},Ee=(y,w,$,L,j,Q,se,H,ne)=>{let U=0;const ae=w.length;let P=y.length-1,S=ae-1;for(;U<=P&&U<=S;){const x=y[U],M=w[U]=ne?Rn(w[U]):Qt(w[U]);if(Ws(x,M))v(x,M,$,null,j,Q,se,H,ne);else break;U++}for(;U<=P&&U<=S;){const x=y[P],M=w[S]=ne?Rn(w[S]):Qt(w[S]);if(Ws(x,M))v(x,M,$,null,j,Q,se,H,ne);else break;P--,S--}if(U>P){if(U<=S){const x=S+1,M=x<ae?w[x].el:L;for(;U<=S;)v(null,w[U]=ne?Rn(w[U]):Qt(w[U]),$,M,j,Q,se,H,ne),U++}}else if(U>S)for(;U<=P;)$e(y[U],j,Q,!0),U++;else{const x=U,M=U,X=new Map;for(U=M;U<=S;U++){const lt=w[U]=ne?Rn(w[U]):Qt(w[U]);lt.key!=null&&({}.NODE_ENV!=="production"&&X.has(lt.key)&&ie("Duplicate keys found during update:",JSON.stringify(lt.key),"Make sure keys are unique."),X.set(lt.key,U))}let G,J=0;const W=S-M+1;let ue=!1,pe=0;const de=new Array(W);for(U=0;U<W;U++)de[U]=0;for(U=x;U<=P;U++){const lt=y[U];if(J>=W){$e(lt,j,Q,!0);continue}let We;if(lt.key!=null)We=X.get(lt.key);else for(G=M;G<=S;G++)if(de[G-M]===0&&Ws(lt,w[G])){We=G;break}We===void 0?$e(lt,j,Q,!0):(de[We-M]=U+1,We>=pe?pe=We:ue=!0,v(lt,w[We],$,null,j,Q,se,H,ne),J++)}const Ke=ue?Df(de):fs;for(G=Ke.length-1,U=W-1;U>=0;U--){const lt=M+U,We=w[lt],Ts=lt+1<ae?w[lt+1].el:L;de[U]===0?v(null,We,$,Ts,j,Q,se,H,ne):ue&&(G<0||U!==Ke[G]?re(We,$,Ts,2):G--)}}},re=(y,w,$,L,j=null)=>{const{el:Q,type:se,transition:H,children:ne,shapeFlag:U}=y;if(U&6){re(y.component.subTree,w,$,L);return}if(U&128){y.suspense.move(w,$,L);return}if(U&64){se.move(y,w,$,Ht);return}if(se===Me){s(Q,w,$);for(let P=0;P<ne.length;P++)re(ne[P],w,$,L);s(y.anchor,w,$);return}if(se===Li){k(y,w,$);return}if(L!==2&&U&1&&H)if(L===0)H.beforeEnter(Q),s(Q,w,$),$t(()=>H.enter(Q),j);else{const{leave:P,delayLeave:S,afterLeave:x}=H,M=()=>s(Q,w,$),X=()=>{P(Q,()=>{M(),x&&x()})};S?S(Q,M,X):X()}else s(Q,w,$)},$e=(y,w,$,L=!1,j=!1)=>{const{type:Q,props:se,ref:H,children:ne,dynamicChildren:U,shapeFlag:ae,patchFlag:P,dirs:S}=y;if(H!=null&&hr(H,null,$,y,!0),ae&256){w.ctx.deactivate(y);return}const x=ae&1&&S,M=!Fs(y);let X;if(M&&(X=se&&se.onVnodeBeforeUnmount)&&on(X,w,y),ae&6)Je(y.component,$,L);else{if(ae&128){y.suspense.unmount($,L);return}x&&es(y,null,w,"beforeUnmount"),ae&64?y.type.remove(y,w,$,j,Ht,L):U&&(Q!==Me||P>0&&P&64)?Ye(U,w,$,!1,!0):(Q===Me&&P&384||!j&&ae&16)&&Ye(ne,w,$),L&&Re(y)}(M&&(X=se&&se.onVnodeUnmounted)||x)&&$t(()=>{X&&on(X,w,y),x&&es(y,null,w,"unmounted")},$)},Re=y=>{const{type:w,el:$,anchor:L,transition:j}=y;if(w===Me){({}).NODE_ENV!=="production"&&y.patchFlag>0&&y.patchFlag&2048&&j&&!j.persisted?y.children.forEach(se=>{se.type===At?i(se.el):Re(se)}):ze($,L);return}if(w===Li){B(y);return}const Q=()=>{i($),j&&!j.persisted&&j.afterLeave&&j.afterLeave()};if(y.shapeFlag&1&&j&&!j.persisted){const{leave:se,delayLeave:H}=j,ne=()=>se($,Q);H?H(y.el,Q,ne):ne()}else Q()},ze=(y,w)=>{let $;for(;y!==w;)$=f(y),i(y),y=$;i(w)},Je=(y,w,$)=>{({}).NODE_ENV!=="production"&&y.type.__hmrId&&wd(y);const{bum:L,scope:j,update:Q,subTree:se,um:H}=y;L&&Ds(L),j.stop(),Q&&(Q.active=!1,$e(se,y,w,$)),H&&$t(H,w),$t(()=>{y.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve()),{}.NODE_ENV!=="production"&&Od(y)},Ye=(y,w,$,L=!1,j=!1,Q=0)=>{for(let se=Q;se<y.length;se++)$e(y[se],w,$,L,j)},Rt=y=>y.shapeFlag&6?Rt(y.component.subTree):y.shapeFlag&128?y.suspense.next():f(y.anchor||y.el);let qe=!1;const pt=(y,w,$)=>{y==null?w._vnode&&$e(w._vnode,null,null,!0):v(w._vnode||null,y,w,null,null,null,$),qe||(qe=!0,dl(),fl(),qe=!1),w._vnode=y},Ht={p:v,um:$e,m:re,r:Re,mt:He,mc:be,pc:te,pbc:Pe,n:Rt,o:n};let rt,at;return e&&([rt,at]=e(Ht)),{render:pt,hydrate:rt,createApp:pf(pt,rt)}}function dr({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function ns({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function If(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function Vi(n,e,t=!1){const s=n.children,i=e.children;if(ye(s)&&ye(i))for(let o=0;o<s.length;o++){const r=s[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Rn(i[o]),a.el=r.el),t||Vi(r,a)),a.type===Bs&&(a.el=r.el),{}.NODE_ENV!=="production"&&a.type===At&&!a.el&&(a.el=r.el)}}function Df(n){const e=n.slice(),t=[0];let s,i,o,r,a;const l=n.length;for(s=0;s<l;s++){const c=n[s];if(c!==0){if(i=t[t.length-1],n[i]<c){e[s]=i,t.push(s);continue}for(o=0,r=t.length-1;o<r;)a=o+r>>1,n[t[a]]<c?o=a+1:r=a;c<n[t[o]]&&(o>0&&(e[s]=t[o-1]),t[o]=s)}}for(o=t.length,r=t[o-1];o-- >0;)t[o]=r,r=e[r];return t}function Kl(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Kl(e)}const Nf=n=>n.__isTeleport,Me=Symbol.for("v-fgt"),Bs=Symbol.for("v-txt"),At=Symbol.for("v-cmt"),Li=Symbol.for("v-stc"),Hs=[];let Zt=null;function A(n=!1){Hs.push(Zt=n?null:[])}function $f(){Hs.pop(),Zt=Hs[Hs.length-1]||null}let Ys=1;function Zl(n){Ys+=n}function Ql(n){return n.dynamicChildren=Ys>0?Zt||fs:null,$f(),Ys>0&&Zt&&Zt.push(n),n}function z(n,e,t,s,i,o){return Ql(C(n,e,t,s,i,o,!0))}function ht(n,e,t,s,i){return Ql(me(n,e,t,s,i,!0))}function vs(n){return n?n.__v_isVNode===!0:!1}function Ws(n,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&gs.has(e.type)?(n.shapeFlag&=-257,e.shapeFlag&=-513,!1):n.type===e.type&&n.key===e.key}const Af=(...n)=>ec(...n),Jl=({key:n})=>n??null,Fi=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?ot(n)||wt(n)||Ce(n)?{i:ut,r:n,k:e,f:!!t}:n:null);function C(n,e=null,t=null,s=0,i=null,o=n===Me?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&Jl(e),ref:e&&Fi(e),scopeId:Oi,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ut};return a?(fr(l,t),o&128&&n.normalize(l)):t&&(l.shapeFlag|=ot(t)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&ie("VNode created with invalid key (NaN). VNode type:",l.type),Ys>0&&!r&&Zt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Zt.push(l),l}const me={}.NODE_ENV!=="production"?Af:ec;function ec(n,e=null,t=null,s=0,i=null,o=!1){if((!n||n===Ld)&&({}.NODE_ENV!=="production"&&!n&&ie(`Invalid vnode type when creating vnode: ${n}.`),n=At),vs(n)){const a=Mn(n,e,!0);return t&&fr(a,t),Ys>0&&!o&&Zt&&(a.shapeFlag&6?Zt[Zt.indexOf(n)]=a:Zt.push(a)),a.patchFlag|=-2,a}if(uc(n)&&(n=n.__vccOpts),e){e=Mf(e);let{class:a,style:l}=e;a&&!ot(a)&&(e.class=kt(a)),Ve(l)&&(jo(l)&&!ye(l)&&(l=tt({},l)),e.style=V(l))}const r=ot(n)?1:Fd(n)?128:Nf(n)?64:Ve(n)?4:Ce(n)?2:0;return{}.NODE_ENV!=="production"&&r&4&&jo(n)&&(n=ke(n),ie("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
21
+ Component that was made reactive: `,n)),C(n,e,t,s,i,r,o,!0)}function Mf(n){return n?jo(n)||Ll(n)?tt({},n):n:null}function Mn(n,e,t=!1){const{props:s,ref:i,patchFlag:o,children:r}=n,a=e?pr(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&Jl(a),ref:e&&e.ref?t&&i?ye(i)?i.concat(Fi(e)):[i,Fi(e)]:Fi(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:{}.NODE_ENV!=="production"&&o===-1&&ye(r)?r.map(tc):r,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==Me?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Mn(n.ssContent),ssFallback:n.ssFallback&&Mn(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function tc(n){const e=Mn(n);return ye(n.children)&&(e.children=n.children.map(tc)),e}function dt(n=" ",e=0){return me(Bs,null,n,e)}function Ae(n="",e=!1){return e?(A(),ht(At,null,n)):me(At,null,n)}function Qt(n){return n==null||typeof n=="boolean"?me(At):ye(n)?me(Me,null,n.slice()):typeof n=="object"?Rn(n):me(Bs,null,String(n))}function Rn(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Mn(n)}function fr(n,e){let t=0;const{shapeFlag:s}=n;if(e==null)e=null;else if(ye(e))t=16;else if(typeof e=="object")if(s&65){const i=e.default;i&&(i._c&&(i._d=!1),fr(n,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!Ll(e)?e._ctx=ut:i===3&&ut&&(ut.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else Ce(e)?(e={default:e,_ctx:ut},t=32):(e=String(e),s&64?(t=16,e=[dt(e)]):t=8);n.children=e,n.shapeFlag|=t}function pr(...n){const e={};for(let t=0;t<n.length;t++){const s=n[t];for(const i in s)if(i==="class")e.class!==s.class&&(e.class=kt([e.class,s.class]));else if(i==="style")e.style=V([e.style,s.style]);else if(Os(i)){const o=e[i],r=s[i];r&&o!==r&&!(ye(o)&&o.includes(r))&&(e[i]=o?[].concat(o,r):r)}else i!==""&&(e[i]=s[i])}return e}function on(n,e,t,s=null){Kt(n,e,7,[t,s])}const Rf=Ml();let Vf=0;function Lf(n,e,t){const s=n.type,i=(e?e.appContext:n.appContext)||Rf,o={uid:Vf++,vnode:n,type:s,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Vh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zl(s,i),emitsOptions:_l(s,i),emit:null,emitted:null,propsDefaults:Ge,inheritAttrs:s.inheritAttrs,ctx:Ge,data:Ge,props:Ge,attrs:Ge,slots:Ge,refs:Ge,setupState:Ge,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:t,suspenseId:t?t.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?o.ctx=tf(o):o.ctx={_:o},o.root=e?e.root:o,o.emit=$d.bind(null,o),n.ce&&n.ce(o),o}let mt=null;const nc=()=>mt||ut;let zi,mr;{const n=No(),e=(t,s)=>{let i;return(i=n[t])||(i=n[t]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};zi=e("__VUE_INSTANCE_SETTERS__",t=>mt=t),mr=e("__VUE_SSR_SETTERS__",t=>Gi=t)}const Us=n=>{const e=mt;return zi(n),n.scope.on(),()=>{n.scope.off(),zi(e)}},sc=()=>{mt&&mt.scope.off(),zi(null)},Ff=en("slot,component");function gr(n,{isNativeTag:e}){(Ff(n)||e(n))&&ie("Do not use built-in or reserved HTML elements as component id: "+n)}function ic(n){return n.vnode.shapeFlag&4}let Gi=!1;function zf(n,e=!1){e&&mr(e);const{props:t,children:s}=n.vnode,i=ic(n);gf(n,t,i,e),Ef(n,s);const o=i?Gf(n,e):void 0;return e&&mr(!1),o}function Gf(n,e){var t;const s=n.type;if({}.NODE_ENV!=="production"){if(s.name&&gr(s.name,n.appContext.config),s.components){const o=Object.keys(s.components);for(let r=0;r<o.length;r++)gr(o[r],n.appContext.config)}if(s.directives){const o=Object.keys(s.directives);for(let r=0;r<o.length;r++)kl(o[r])}s.compilerOptions&&jf()&&ie('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,Ol),{}.NODE_ENV!=="production"&&nf(n);const{setup:i}=s;if(i){const o=n.setupContext=i.length>1?lc(n):null,r=Us(n);dn();const a=mn(i,n,0,[{}.NODE_ENV!=="production"?pn(n.props):n.props,o]);if(fn(),r(),Oo(a)){if(a.then(sc,sc),e)return a.then(l=>{oc(n,l,e)}).catch(l=>{$s(l,n,0)});if(n.asyncDep=a,{}.NODE_ENV!=="production"&&!n.suspense){const l=(t=s.name)!=null?t:"Anonymous";ie(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else oc(n,a,e)}else rc(n,e)}function oc(n,e,t){Ce(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:Ve(e)?({}.NODE_ENV!=="production"&&vs(e)&&ie("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(n.devtoolsRawSetupState=e),n.setupState=al(e),{}.NODE_ENV!=="production"&&sf(n)):{}.NODE_ENV!=="production"&&e!==void 0&&ie(`setup() should return an object. Received: ${e===null?"null":typeof e}`),rc(n,t)}let vr;const jf=()=>!vr;function rc(n,e,t){const s=n.type;if(!n.render){if(!e&&vr&&!s.render){const i=s.template||rr(n).template;if(i){({}).NODE_ENV!=="production"&&bn(n,"compile");const{isCustomElement:o,compilerOptions:r}=n.appContext.config,{delimiters:a,compilerOptions:l}=s,c=tt(tt({isCustomElement:o,delimiters:a},r),l);s.render=vr(i,c),{}.NODE_ENV!=="production"&&_n(n,"compile")}}n.render=s.render||ct}{const i=Us(n);dn();try{lf(n)}finally{fn(),i()}}({}).NODE_ENV!=="production"&&!s.render&&n.render===ct&&!e&&(s.template?ie('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):ie("Component is missing template or render function."))}const ac={}.NODE_ENV!=="production"?{get(n,e){return Di(),_t(n,"get",""),n[e]},set(){return ie("setupContext.attrs is readonly."),!1},deleteProperty(){return ie("setupContext.attrs is readonly."),!1}}:{get(n,e){return _t(n,"get",""),n[e]}};function Bf(n){return n.slotsProxy||(n.slotsProxy=new Proxy(n.slots,{get(e,t){return _t(n,"get","$slots"),e[t]}}))}function lc(n){const e=t=>{if({}.NODE_ENV!=="production"&&(n.exposed&&ie("expose() should be called only once per setup()."),t!=null)){let s=typeof t;s==="object"&&(ye(t)?s="array":wt(t)&&(s="ref")),s!=="object"&&ie(`expose() should be passed a plain object, received ${s}.`)}n.exposed=t||{}};if({}.NODE_ENV!=="production"){let t;return Object.freeze({get attrs(){return t||(t=new Proxy(n.attrs,ac))},get slots(){return Bf(n)},get emit(){return(s,...i)=>n.emit(s,...i)},expose:e})}else return{attrs:new Proxy(n.attrs,ac),slots:n.slots,emit:n.emit,expose:e}}function ji(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(al(rd(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in ts)return ts[t](n)},has(e,t){return t in e||t in ts}}))}const Hf=/(?:^|[-_])(\w)/g,Yf=n=>n.replace(Hf,e=>e.toUpperCase()).replace(/[-_]/g,"");function cc(n,e=!0){return Ce(n)?n.displayName||n.name:n.name||e&&n.__name}function Bi(n,e,t=!1){let s=cc(e);if(!s&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&n&&n.parent){const i=o=>{for(const r in o)if(o[r]===e)return r};s=i(n.components||n.parent.type.components)||i(n.appContext.components)}return s?Yf(s):t?"App":"Anonymous"}function uc(n){return Ce(n)&&"__vccOpts"in n}const Wf=(n,e)=>{const t=ld(n,e,Gi);if({}.NODE_ENV!=="production"){const s=nc();s&&s.appContext.config.warnRecursiveComputed&&(t._warnRecursive=!0)}return t};function Xe(n,e,t){const s=arguments.length;return s===2?Ve(e)&&!ye(e)?vs(e)?me(n,null,[e]):me(n,e):me(n,null,e):(s>3?t=Array.prototype.slice.call(arguments,2):s===3&&vs(t)&&(t=[t]),me(n,e,t))}function Uf(){if({}.NODE_ENV==="production"||typeof window>"u")return;const n={style:"color:#3ba776"},e={style:"color:#1677ff"},t={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(h){return Ve(h)?h.__isVue?["div",n,"VueInstance"]:wt(h)?["div",{},["span",n,u(h)],"<",a(h.value),">"]:ps(h)?["div",{},["span",n,Un(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Wn(h)?" (readonly)":""}`]:Wn(h)?["div",{},["span",n,Un(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...o(h.$)]}};function o(h){const f=[];h.type.props&&h.props&&f.push(r("props",ke(h.props))),h.setupState!==Ge&&f.push(r("setup",h.setupState)),h.data!==Ge&&f.push(r("data",ke(h.data)));const d=l(h,"computed");d&&f.push(r("computed",d));const m=l(h,"inject");return m&&f.push(r("injected",m)),f.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function r(h,f){return f=tt({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(d=>["div",{},["span",s,d+": "],a(f[d],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",e,h]:typeof h=="string"?["span",t,JSON.stringify(h)]:typeof h=="boolean"?["span",s,h]:Ve(h)?["object",{object:f?ke(h):h}]:["span",t,String(h)]}function l(h,f){const d=h.type;if(Ce(d))return;const m={};for(const v in h.ctx)c(d,v,f)&&(m[v]=h.ctx[v]);return m}function c(h,f,d){const m=h[d];if(ye(m)&&m.includes(f)||Ve(m)&&f in m||h.extends&&c(h.extends,f,d)||h.mixins&&h.mixins.some(v=>c(v,f,d)))return!0}function u(h){return Un(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const hc="3.4.25",Hi={}.NODE_ENV!=="production"?ie:ct;/**
22
22
  * @vue/runtime-dom v3.4.25
23
23
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
24
24
  * @license MIT
25
- **/const Af="http://www.w3.org/2000/svg",Rf="http://www.w3.org/1998/Math/MathML",In=typeof document<"u"?document:null,tc=In&&In.createElement("template"),Vf={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,s)=>{const i=e==="svg"?In.createElementNS(Af,n):e==="mathml"?In.createElementNS(Rf,n):In.createElement(n,t?{is:t}:void 0);return n==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:n=>In.createTextNode(n),createComment:n=>In.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>In.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,s,i,o){const r=t?t.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===o||!(i=i.nextSibling)););else{tc.innerHTML=s==="svg"?`<svg>${n}</svg>`:s==="mathml"?`<math>${n}</math>`:n;const a=tc.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[r?r.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Lf=Symbol("_vtc");function Ff(n,e,t){const s=n[Lf];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const Vi=Symbol("_vod"),nc=Symbol("_vsh"),fn={beforeMount(n,{value:e},{transition:t}){n[Vi]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):Ls(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:s}){!e!=!t&&(s?e?(s.beforeEnter(n),Ls(n,!0),s.enter(n)):s.leave(n,()=>{Ls(n,!1)}):Ls(n,e))},beforeUnmount(n,{value:e}){Ls(n,e)}};({}).NODE_ENV!=="production"&&(fn.name="show");function Ls(n,e){n.style.display=e?n[Vi]:"none",n[nc]=!e}const zf=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Gf=/(^|;)\s*display\s*:/;function jf(n,e,t){const s=n.style,i=it(t);let o=!1;if(t&&!i){if(e)if(it(e))for(const r of e.split(";")){const a=r.slice(0,r.indexOf(":")).trim();t[a]==null&&Li(s,a,"")}else for(const r in e)t[r]==null&&Li(s,r,"");for(const r in t)r==="display"&&(o=!0),Li(s,r,t[r])}else if(i){if(e!==t){const r=s[zf];r&&(t+=";"+r),s.cssText=t,o=Gf.test(t)}}else e&&n.removeAttribute("style");Vi in n&&(n[Vi]=o?s.display:"",n[nc]&&(s.display="none"))}const Bf=/[^\\];\s*$/,sc=/\s*!important$/;function Li(n,e,t){if(we(t))t.forEach(s=>Li(n,e,s));else if(t==null&&(t=""),{}.NODE_ENV!=="production"&&Bf.test(t)&&Ri(`Unexpected semicolon at the end of '${e}' style value: '${t}'`),e.startsWith("--"))n.setProperty(e,t);else{const s=Hf(n,e);sc.test(t)?n.setProperty(Mt(s),t.replace(sc,""),"important"):n[s]=t}}const ic=["Webkit","Moz","ms"],pr={};function Hf(n,e){const t=pr[e];if(t)return t;let s=sn(e);if(s!=="filter"&&s in n)return pr[e]=s;s=ri(s);for(let i=0;i<ic.length;i++){const o=ic[i]+s;if(o in n)return pr[e]=o}return e}const oc="http://www.w3.org/1999/xlink";function Yf(n,e,t,s,i){if(s&&e.startsWith("xlink:"))t==null?n.removeAttributeNS(oc,e.slice(6,e.length)):n.setAttributeNS(oc,e,t);else{const o=Ch(e);t==null||o&&!Ea(t)?n.removeAttribute(e):n.setAttribute(e,o?"":t)}}function Wf(n,e,t,s,i,o,r){if(e==="innerHTML"||e==="textContent"){s&&r(s,i,o),n[e]=t??"";return}const a=n.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?n.getAttribute("value")||"":n.value,u=t??"";(c!==u||!("_value"in n))&&(n.value=u),t==null&&n.removeAttribute(e),n._value=t;return}let l=!1;if(t===""||t==null){const c=typeof n[e];c==="boolean"?t=Ea(t):t==null&&c==="string"?(t="",l=!0):c==="number"&&(t=0,l=!0)}try{n[e]=t}catch(c){({}).NODE_ENV!=="production"&&!l&&Ri(`Failed setting prop "${e}" on <${a.toLowerCase()}>: value ${t} is invalid.`,c)}l&&n.removeAttribute(e)}function Xf(n,e,t,s){n.addEventListener(e,t,s)}function Uf(n,e,t,s){n.removeEventListener(e,t,s)}const rc=Symbol("_vei");function qf(n,e,t,s,i=null){const o=n[rc]||(n[rc]={}),r=o[e];if(s&&r)r.value={}.NODE_ENV!=="production"?lc(s,e):s;else{const[a,l]=Kf(e);if(s){const c=o[e]=Jf({}.NODE_ENV!=="production"?lc(s,e):s,i);Xf(n,a,c,l)}else r&&(Uf(n,a,r,l),o[e]=void 0)}}const ac=/(?:Once|Passive|Capture)$/;function Kf(n){let e;if(ac.test(n)){e={};let s;for(;s=n.match(ac);)n=n.slice(0,n.length-s[0].length),e[s[0].toLowerCase()]=!0}return[n[2]===":"?n.slice(3):Mt(n.slice(2)),e]}let mr=0;const Zf=Promise.resolve(),Qf=()=>mr||(Zf.then(()=>mr=0),mr=Date.now());function Jf(n,e){const t=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=t.attached)return;Bt(ep(s,t.value),e,5,[s])};return t.value=n,t.attached=Qf(),t}function lc(n,e){return Se(n)||we(n)?n:(Ri(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
26
- Expected function or array of functions, received type ${typeof n}.`),ot)}function ep(n,e){if(we(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const cc=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,tp=(n,e,t,s,i,o,r,a,l)=>{const c=i==="svg";e==="class"?Ff(n,s,c):e==="style"?jf(n,t,s):_s(e)?si(e)||qf(n,e,t,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):np(n,e,s,c))?Wf(n,e,s,o,r,a,l):(e==="true-value"?n._trueValue=s:e==="false-value"&&(n._falseValue=s),Yf(n,e,s,c))};function np(n,e,t,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in n&&cc(e)&&Se(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=n.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return cc(e)&&it(t)?!1:e in n}/*! #__NO_SIDE_EFFECTS__ */function Te(n,e){const t=ce(n);class s extends gr{constructor(o){super(t,o,e)}}return s.def=t,s}const sp=typeof HTMLElement<"u"?HTMLElement:class{};class gr extends sp{constructor(e,t={},s){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&Ri("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),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),yi(()=>{this._connected||(Fi(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const i of s)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(s,i=!1)=>{const{props:o,styles:r}=s;let a;if(o&&!we(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=wa(this._props[l])),(a||(a=Object.create(null)))[sn(l)]=!0)}this._numberProps=a,i&&this._resolveProps(s),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then(s=>e(s,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,s=we(t)?t:Object.keys(t||{});for(const i of Object.keys(this))i[0]!=="_"&&s.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of s.map(sn))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const s=sn(e);this._numberProps&&this._numberProps[s]&&(t=wa(t)),this._setProp(s,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,s=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),s&&(t===!0?this.setAttribute(Mt(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Mt(e),t+""):t||this.removeAttribute(Mt(e))))}_update(){Fi(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Ee(this._def,Ze({},this._props));return this._instance||(e.ce=t=>{this._instance=t,t.isCE=!0,{}.NODE_ENV!=="production"&&(t.ceReload=o=>{this._styles&&(this._styles.forEach(r=>this.shadowRoot.removeChild(r)),this._styles.length=0),this._applyStyles(o),this._instance=null,this._update()});const s=(o,r)=>{this.dispatchEvent(new CustomEvent(o,{detail:r}))};t.emit=(o,...r)=>{s(o,r),Mt(o)!==o&&s(Mt(o),r)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof gr){t.parent=i._instance,t.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(t=>{const s=document.createElement("style");s.textContent=t,this.shadowRoot.appendChild(s),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(s)})}}const ip=Ze({patchProp:tp},Vf);let uc;function op(){return uc||(uc=mf(ip))}const Fi=(...n)=>{op().render(...n)};/**
25
+ **/const Xf="http://www.w3.org/2000/svg",qf="http://www.w3.org/1998/Math/MathML",Vn=typeof document<"u"?document:null,dc=Vn&&Vn.createElement("template"),Kf={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,s)=>{const i=e==="svg"?Vn.createElementNS(Xf,n):e==="mathml"?Vn.createElementNS(qf,n):Vn.createElement(n,t?{is:t}:void 0);return n==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:n=>Vn.createTextNode(n),createComment:n=>Vn.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Vn.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,s,i,o){const r=t?t.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===o||!(i=i.nextSibling)););else{dc.innerHTML=s==="svg"?`<svg>${n}</svg>`:s==="mathml"?`<math>${n}</math>`:n;const a=dc.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[r?r.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Zf=Symbol("_vtc");function Qf(n,e,t){const s=n[Zf];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const Yi=Symbol("_vod"),fc=Symbol("_vsh"),rn={beforeMount(n,{value:e},{transition:t}){n[Yi]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):Xs(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:s}){!e!=!t&&(s?e?(s.beforeEnter(n),Xs(n,!0),s.enter(n)):s.leave(n,()=>{Xs(n,!1)}):Xs(n,e))},beforeUnmount(n,{value:e}){Xs(n,e)}};({}).NODE_ENV!=="production"&&(rn.name="show");function Xs(n,e){n.style.display=e?n[Yi]:"none",n[fc]=!e}const Jf=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),ep=/(^|;)\s*display\s*:/;function tp(n,e,t){const s=n.style,i=ot(t);let o=!1;if(t&&!i){if(e)if(ot(e))for(const r of e.split(";")){const a=r.slice(0,r.indexOf(":")).trim();t[a]==null&&Wi(s,a,"")}else for(const r in e)t[r]==null&&Wi(s,r,"");for(const r in t)r==="display"&&(o=!0),Wi(s,r,t[r])}else if(i){if(e!==t){const r=s[Jf];r&&(t+=";"+r),s.cssText=t,o=ep.test(t)}}else e&&n.removeAttribute("style");Yi in n&&(n[Yi]=o?s.display:"",n[fc]&&(s.display="none"))}const np=/[^\\];\s*$/,pc=/\s*!important$/;function Wi(n,e,t){if(ye(t))t.forEach(s=>Wi(n,e,s));else if(t==null&&(t=""),{}.NODE_ENV!=="production"&&np.test(t)&&Hi(`Unexpected semicolon at the end of '${e}' style value: '${t}'`),e.startsWith("--"))n.setProperty(e,t);else{const s=sp(n,e);pc.test(t)?n.setProperty(Vt(s),t.replace(pc,""),"important"):n[s]=t}}const mc=["Webkit","Moz","ms"],yr={};function sp(n,e){const t=yr[e];if(t)return t;let s=hn(e);if(s!=="filter"&&s in n)return yr[e]=s;s=pi(s);for(let i=0;i<mc.length;i++){const o=mc[i]+s;if(o in n)return yr[e]=o}return e}const gc="http://www.w3.org/1999/xlink";function ip(n,e,t,s,i){if(s&&e.startsWith("xlink:"))t==null?n.removeAttributeNS(gc,e.slice(6,e.length)):n.setAttributeNS(gc,e,t);else{const o=Rh(e);t==null||o&&!Ma(t)?n.removeAttribute(e):n.setAttribute(e,o?"":t)}}function op(n,e,t,s,i,o,r){if(e==="innerHTML"||e==="textContent"){s&&r(s,i,o),n[e]=t??"";return}const a=n.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?n.getAttribute("value")||"":n.value,u=t??"";(c!==u||!("_value"in n))&&(n.value=u),t==null&&n.removeAttribute(e),n._value=t;return}let l=!1;if(t===""||t==null){const c=typeof n[e];c==="boolean"?t=Ma(t):t==null&&c==="string"?(t="",l=!0):c==="number"&&(t=0,l=!0)}try{n[e]=t}catch(c){({}).NODE_ENV!=="production"&&!l&&Hi(`Failed setting prop "${e}" on <${a.toLowerCase()}>: value ${t} is invalid.`,c)}l&&n.removeAttribute(e)}function rp(n,e,t,s){n.addEventListener(e,t,s)}function ap(n,e,t,s){n.removeEventListener(e,t,s)}const vc=Symbol("_vei");function lp(n,e,t,s,i=null){const o=n[vc]||(n[vc]={}),r=o[e];if(s&&r)r.value={}.NODE_ENV!=="production"?bc(s,e):s;else{const[a,l]=cp(e);if(s){const c=o[e]=dp({}.NODE_ENV!=="production"?bc(s,e):s,i);rp(n,a,c,l)}else r&&(ap(n,a,r,l),o[e]=void 0)}}const yc=/(?:Once|Passive|Capture)$/;function cp(n){let e;if(yc.test(n)){e={};let s;for(;s=n.match(yc);)n=n.slice(0,n.length-s[0].length),e[s[0].toLowerCase()]=!0}return[n[2]===":"?n.slice(3):Vt(n.slice(2)),e]}let br=0;const up=Promise.resolve(),hp=()=>br||(up.then(()=>br=0),br=Date.now());function dp(n,e){const t=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=t.attached)return;Kt(fp(s,t.value),e,5,[s])};return t.value=n,t.attached=hp(),t}function bc(n,e){return Ce(n)||ye(n)?n:(Hi(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
26
+ Expected function or array of functions, received type ${typeof n}.`),ct)}function fp(n,e){if(ye(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const _c=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,pp=(n,e,t,s,i,o,r,a,l)=>{const c=i==="svg";e==="class"?Qf(n,s,c):e==="style"?tp(n,t,s):Os(e)?hi(e)||lp(n,e,t,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):mp(n,e,s,c))?op(n,e,s,o,r,a,l):(e==="true-value"?n._trueValue=s:e==="false-value"&&(n._falseValue=s),ip(n,e,s,c))};function mp(n,e,t,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in n&&_c(e)&&Ce(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=n.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return _c(e)&&ot(t)?!1:e in n}/*! #__NO_SIDE_EFFECTS__ */function xe(n,e){const t=oe(n);class s extends _r{constructor(o){super(t,o,e)}}return s.def=t,s}const gp=typeof HTMLElement<"u"?HTMLElement:class{};class _r extends gp{constructor(e,t={},s){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&Hi("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),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),ki(()=>{this._connected||(Ui(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const i of s)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(s,i=!1)=>{const{props:o,styles:r}=s;let a;if(o&&!ye(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=$a(this._props[l])),(a||(a=Object.create(null)))[hn(l)]=!0)}this._numberProps=a,i&&this._resolveProps(s),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then(s=>e(s,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,s=ye(t)?t:Object.keys(t||{});for(const i of Object.keys(this))i[0]!=="_"&&s.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of s.map(hn))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const s=hn(e);this._numberProps&&this._numberProps[s]&&(t=$a(t)),this._setProp(s,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,s=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),s&&(t===!0?this.setAttribute(Vt(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Vt(e),t+""):t||this.removeAttribute(Vt(e))))}_update(){Ui(this._createVNode(),this.shadowRoot)}_createVNode(){const e=me(this._def,tt({},this._props));return this._instance||(e.ce=t=>{this._instance=t,t.isCE=!0,{}.NODE_ENV!=="production"&&(t.ceReload=o=>{this._styles&&(this._styles.forEach(r=>this.shadowRoot.removeChild(r)),this._styles.length=0),this._applyStyles(o),this._instance=null,this._update()});const s=(o,r)=>{this.dispatchEvent(new CustomEvent(o,{detail:r}))};t.emit=(o,...r)=>{s(o,r),Vt(o)!==o&&s(Vt(o),r)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof _r){t.parent=i._instance,t.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(t=>{const s=document.createElement("style");s.textContent=t,this.shadowRoot.appendChild(s),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(s)})}}const vp=tt({patchProp:pp},Kf);let xc;function yp(){return xc||(xc=Pf(vp))}const Ui=(...n)=>{yp().render(...n)};/**
27
27
  * vue v3.4.25
28
28
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
29
29
  * @license MIT
30
- **/function rp(){$f()}({}).NODE_ENV!=="production"&&rp(),typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function hc(n){this.message=n}hc.prototype=new Error,hc.prototype.name="InvalidCharacterError";const vr=n=>{let e=null;switch(n){case"any-character":e=/[^]/;break;case"bin":e=/^(0b)?[0-1]+$/;break;case"oct":e=/^(0o)?[0-7]+$/i;break;case"hex":e=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":e=/^[-+]?[0-9]+$/;break;case"number":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":e=/\s*,\s*/gi;break;case"svg-segment":e=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":e=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":e=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":e=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":e=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"whitespace":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"trim":e=/^\s+|\s+$/g;break;case"base64-data":e=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":e=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":e=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":e=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":e=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"bezier":e=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":e=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":e=new RegExp(String.raw`
30
+ **/function bp(){Uf()}({}).NODE_ENV!=="production"&&bp(),typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function wc(n){this.message=n}wc.prototype=new Error,wc.prototype.name="InvalidCharacterError";const xr=n=>{let e=null;switch(n){case"any-character":e=/[^]/;break;case"bin":e=/^(0b)?[0-1]+$/;break;case"oct":e=/^(0o)?[0-7]+$/i;break;case"hex":e=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":e=/^[-+]?[0-9]+$/;break;case"number":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":e=/\s*,\s*/gi;break;case"svg-segment":e=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":e=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":e=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":e=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":e=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"whitespace":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"trim":e=/^\s+|\s+$/g;break;case"base64-data":e=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":e=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":e=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":e=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":e=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"bezier":e=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":e=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":e=new RegExp(String.raw`
31
31
  [\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
32
32
  |[\u{4E00}-\u{9FCC}]
33
33
  |[\u{3400}-\u{4DB5}]
@@ -36,55 +36,71 @@ Expected function or array of functions, received type ${typeof n}.`),ot)}functi
36
36
  |[\u{2B740}-\u{2B81D}]
37
37
  |[\u{2B820}-\u{2CEAF}]
38
38
  |[\u{2CEB0}-\u{2EBEF}]
39
- `.replace(/\s+/g,""),"u");break;case"mime-image":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":e=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":e=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e},pn=(n,e)=>(typeof n=="string"&&(n=vr(n)||new RegExp(n)),n.test(e)),dc=(n,e)=>{typeof n=="string"&&(n=vr(n)||new RegExp(n));const t=e.match(n);return t?n.flags.toLowerCase().indexOf("g")>=0?t.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof t.index=="number"?t.index:-1,fullMatch:t[0],groupMatchs:t.slice(1)}:null},fc=(n,e)=>{typeof n=="string"&&(n=vr(n)||new RegExp(n));const t=[],s=e.matchAll(n);for(const i of s)t.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return t};function pc(n){const e=n.match(/[\s\S]/gu);return e?e.length:0}function mc(n,e){const t=n.codePointAt(e);return t?String.fromCodePoint(t):void 0}function ap(){let n=new Date().getTime();return"xxxxxxxx_xxxx_xxxx_yxxx_xxxxxxxxxxxx".replace(/[xy]/g,function(t){const s=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(t=="x"?s:s&3|8).toString(16)})}function lp(n){return n.replace(/(^\w)/g,function(e){return e.toLowerCase()})}const Rt=(n,e="-")=>{const t=new RegExp(`/${e}?([A-Z])/`,"g");return n=n.replace(t,e+"$1").toLowerCase(),n.indexOf(e)==0?n.slice(1):n};function yr(n){return n.replace(/(^\w|[_-]\w)/g,function(e){return e.slice(-1).toUpperCase()})}function gc(n){return lp(yr(n))}const vc=(n,e="")=>(n=n.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,e),n);function cp(n,e,t="0",s="left"){const i=pc(n);if(e>i){const o=e-i;switch(s){case"left":n=Array(o+1).join(t)+n;break;case"right":n=n+Array(o+1).join(t);break;default:const r=Math.ceil(o/2),a=o-r;n=Array(a+1).join(t)+n+Array(r+1).join(t);break}}return n}function yc(n){const e=typeof n;return e!=="object"?e:Object.prototype.toString.call(n).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function up(n){return yc(n)==="array"}function hp(n){return yc(n)==="object"}function zi(n,e){for(const t of Reflect.ownKeys(e))if(t!=="constructor"&&t!=="prototype"&&t!=="name"&&t!=="displayName"){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(n,t,s)}}function dp(n,e){const t=Object.getPrototypeOf(n),s=Object.getPrototypeOf(e);for(const i of Reflect.ownKeys(s))if(!Object.prototype.hasOwnProperty.call(t,i)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(t,i,o)}}function _c(n,e=new WeakMap){if(n==null)return n;if(n.constructor===Date)return new Date(n);if(n.constructor===RegExp)return new RegExp(n);if(typeof n!="object")return n;if(e.has(n))return e.get(n);const t=Object.create(Object.getPrototypeOf(n),Object.getOwnPropertyDescriptors(n));for(const s of Reflect.ownKeys(n))t[s]=hp(n[s])?_c(n[s],e):n[s];return e.set(n,t),t}function Zn(n){for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&delete n[e];return n}function Fs(n,e){const t=n.length,s=e.length;for(let o=0;o<s;o++)n[o]=e[o];let i=Math.max(0,t-s);for(;i>0;)n.pop(),i--}function zs(n,e,t=Number.EPSILON*Math.pow(2,2)){return Math.abs(n-e)<t}const Vt=(n,e,t)=>n<e?e:n>t?t:n;function cs(n,e=12){return+n.toFixed(e)}function Gs(n){const e=dc("number-single",n);return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?n.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?n.substring(e.matchIndex+e.fullMatch.length):""}}function fp(n){const e=dc("number",n);return e?Array.isArray(e)?e.map(t=>Number(t.fullMatch)):[Number(e.fullMatch)]:[]}function bc(n,e){let t=!0;return function(...s){t&&(t=!1,n.apply(this,s),setTimeout(()=>{t=!0},e))}}function pp(n,e){let t;return function(...s){clearTimeout(t),t=setTimeout(()=>{n.apply(this,s)},e)}}class xc{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(e=1){this.concurrency=e,this.rs=new ReadableStream({start:async t=>{this.controller=t}})}get readableStream(){return this.rs}addTask(e){Array.isArray(e)?this.queue.push(...e):this.queue.push(e),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const e=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=e.length;const t=await Promise.allSettled(e.map(s=>s()));this.results.push(...t),t.forEach(s=>{s.status=="fulfilled"?this.controller?.enqueue(s.value):s.status=="rejected"&&this.controller?.enqueue(new Error(s.reason))}),this.activeTaskCount-=t.length}}}class wc{events;constructor(){this.events={}}on(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),this}addListener(e,t){return this.on(e,t),this}prependListener(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].unshift(t),this}removeListener(e,t){if(this.events[e])return this.events[e]=this.events[e].filter(s=>s!==t),this}off(e,t){return this.removeListener(e,t),this}removeAllListeners(e){return e?this.events[e]=[]:this.events={},this}emit(e,...t){return this.events[e]&&this.events[e].forEach(s=>{Reflect.apply(s,this,t)}),this}once(e,t){const i=(()=>{let o=!1;return(...r)=>{o||(o=!0,Reflect.apply(t,this,r),this.off(e,i))}})();return this.on(e,i),this}}var Cc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function mp(n,e={}){var t=1,s=1;function i(J){var Y=J.match(/\n/g);Y&&(t+=Y.length);var Pe=J.lastIndexOf(`
40
- `);s=~Pe?J.length-Pe:s+J.length}function o(){var J={line:t,column:s};return function(Y){return Y.position=new r(J),m(),Y}}function r(J){this.start=J,this.end={line:t,column:s},this.source=e.source}r.prototype.content=n;var a=[];function l(J){var Y=new Error(e.source+":"+t+":"+s+": "+J);if(Y.reason=J,Y.filename=e.source,Y.line=t,Y.column=s,Y.source=n,e.silent)a.push(Y);else throw Y}function c(){var J=d();return{type:"stylesheet",stylesheet:{source:e.source,rules:J,parsingErrors:a}}}function u(){return f(/^{\s*/)}function h(){return f(/^}/)}function d(){var J,Y=[];for(m(),y(Y);n.length&&n.charAt(0)!="}"&&(J=re()||V());)J!==!1&&(Y.push(J),y(Y));return Y}function f(J){var Y=J.exec(n);if(Y){var Pe=Y[0];return i(Pe),n=n.slice(Pe.length),Y}}function m(){f(/^\s*/)}function y(J){var Y;for(J=J||[];Y=_();)Y!==!1&&J.push(Y);return J}function _(){var J=o();if(!(n.charAt(0)!="/"||n.charAt(1)!="*")){for(var Y=2;n.charAt(Y)!=""&&(n.charAt(Y)!="*"||n.charAt(Y+1)!="/");)++Y;if(Y+=2,n.charAt(Y-1)==="")return l("End of comment missing");var Pe=n.slice(2,Y-2);return s+=2,i(Pe),n=n.slice(Y),s+=2,J({type:"comment",comment:Pe})}}function C(){var J=f(/^([^{]+)/);if(J)return mn(J[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(Y){return Y.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(Y){return Y.replace(/\u200C/g,",")})}function k(){var J=o(),Y=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(Y){if(Y=mn(Y[0]),!f(/^:\s*/))return l("property missing ':'");var Pe=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),de=J({type:"declaration",property:Y.replace(Cc,""),value:Pe?mn(Pe[0]).replace(Cc,""):""});return f(/^[;\s]*/),de}}function P(){var J=[];if(!u())return l("missing '{'");y(J);for(var Y;Y=k();)Y!==!1&&(J.push(Y),y(J));return h()?J:l("missing '}'")}function D(){for(var J,Y=[],Pe=o();J=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)Y.push(J[1]),f(/^,\s*/);if(Y.length)return Pe({type:"keyframe",values:Y,declarations:P()})}function U(){var J=o(),Y=f(/^@([-\w]+)?keyframes\s*/);if(Y){var Pe=Y[1];if(Y=f(/^([-\w]+)\s*/),!Y)return l("@keyframes missing name");var de=Y[1];if(!u())return l("@keyframes missing '{'");for(var j,ee=y();j=D();)ee.push(j),ee=ee.concat(y());return h()?J({type:"keyframes",name:de,vendor:Pe,keyframes:ee}):l("@keyframes missing '}'")}}function F(){var J=o(),Y=f(/^@supports *([^{]+)/);if(Y){var Pe=mn(Y[1]);if(!u())return l("@supports missing '{'");var de=y().concat(d());return h()?J({type:"supports",supports:Pe,rules:de}):l("@supports missing '}'")}}function H(){var J=o(),Y=f(/^@host\s*/);if(Y){if(!u())return l("@host missing '{'");var Pe=y().concat(d());return h()?J({type:"host",rules:Pe}):l("@host missing '}'")}}function ve(){var J=o(),Y=f(/^@media *([^{]+)/);if(Y){var Pe=mn(Y[1]);if(!u())return l("@media missing '{'");var de=y().concat(d());return h()?J({type:"media",media:Pe,rules:de}):l("@media missing '}'")}}function be(){var J=o(),Y=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(Y)return J({type:"custom-media",name:mn(Y[1]),media:mn(Y[2])})}function Ce(){var J=o(),Y=f(/^@page */);if(Y){var Pe=C()||[];if(!u())return l("@page missing '{'");for(var de=y(),j;j=k();)de.push(j),de=de.concat(y());return h()?J({type:"page",selectors:Pe,declarations:de}):l("@page missing '}'")}}function De(){var J=o(),Y=f(/^@([-\w]+)?document *([^{]+)/);if(Y){var Pe=mn(Y[1]),de=mn(Y[2]);if(!u())return l("@document missing '{'");var j=y().concat(d());return h()?J({type:"document",document:de,vendor:Pe,rules:j}):l("@document missing '}'")}}function ye(){var J=o(),Y=f(/^@font-face\s*/);if(Y){if(!u())return l("@font-face missing '{'");for(var Pe=y(),de;de=k();)Pe.push(de),Pe=Pe.concat(y());return h()?J({type:"font-face",declarations:Pe}):l("@font-face missing '}'")}}var Ne=_e("import"),Le=_e("charset"),me=_e("namespace");function _e(J){var Y=new RegExp("^@"+J+"\\s*([^;]+);");return function(){var Pe=o(),de=f(Y);if(de){var j={type:J};return j[J]=de[1].trim(),Pe(j)}}}function re(){if(n[0]=="@")return U()||ve()||be()||F()||Ne()||Le()||me()||De()||Ce()||H()||ye()}function V(){var J=o(),Y=C();return Y?(y(),J({type:"rule",selectors:Y,declarations:P()})):l("selector missing")}return _r(c())}function mn(n){return n?n.replace(/^\s+|\s+$/g,""):""}function _r(n,e){var t=n&&typeof n.type=="string",s=t?n:e;for(var i in n){var o=n[i];Array.isArray(o)?o.forEach(function(r){_r(r,s)}):o&&typeof o=="object"&&_r(o,s)}return t&&Object.defineProperty(n,"parent",{configurable:!0,writable:!0,enumerable:!1,value:e||null}),n}crypto.subtle||console.warn("Crypto API not supported");const js=/^[a-z0-9]+(-[a-z0-9]+)*$/,Gi=(n,e,t,s="")=>{const i=n.split(":");if(n.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;s=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:s,prefix:l,name:a};return e&&!ji(c)?null:c}const o=i[0],r=o.split("-");if(r.length>1){const a={provider:s,prefix:r.shift(),name:r.join("-")};return e&&!ji(a)?null:a}if(t&&s===""){const a={provider:s,prefix:"",name:o};return e&&!ji(a,t)?null:a}return null},ji=(n,e)=>n?!!((n.provider===""||n.provider.match(js))&&(e&&n.prefix===""||n.prefix.match(js))&&n.name.match(js)):!1,Ec=Object.freeze({left:0,top:0,width:16,height:16}),Bi=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Hi=Object.freeze({...Ec,...Bi}),br=Object.freeze({...Hi,body:"",hidden:!1});function gp(n,e){const t={};!n.hFlip!=!e.hFlip&&(t.hFlip=!0),!n.vFlip!=!e.vFlip&&(t.vFlip=!0);const s=((n.rotate||0)+(e.rotate||0))%4;return s&&(t.rotate=s),t}function Sc(n,e){const t=gp(n,e);for(const s in br)s in Bi?s in n&&!(s in t)&&(t[s]=Bi[s]):s in e?t[s]=e[s]:s in n&&(t[s]=n[s]);return t}function vp(n,e){const t=n.icons,s=n.aliases||Object.create(null),i=Object.create(null);function o(r){if(t[r])return i[r]=[];if(!(r in i)){i[r]=null;const a=s[r]&&s[r].parent,l=a&&o(a);l&&(i[r]=[a].concat(l))}return i[r]}return(e||Object.keys(t).concat(Object.keys(s))).forEach(o),i}function yp(n,e,t){const s=n.icons,i=n.aliases||Object.create(null);let o={};function r(a){o=Sc(s[a]||i[a],o)}return r(e),t.forEach(r),Sc(n,o)}function kc(n,e){const t=[];if(typeof n!="object"||typeof n.icons!="object")return t;n.not_found instanceof Array&&n.not_found.forEach(i=>{e(i,null),t.push(i)});const s=vp(n);for(const i in s){const o=s[i];o&&(e(i,yp(n,i,o)),t.push(i))}return t}const _p={provider:"",aliases:{},not_found:{},...Ec};function xr(n,e){for(const t in e)if(t in n&&typeof n[t]!=typeof e[t])return!1;return!0}function Tc(n){if(typeof n!="object"||n===null)return null;const e=n;if(typeof e.prefix!="string"||!n.icons||typeof n.icons!="object"||!xr(n,_p))return null;const t=e.icons;for(const i in t){const o=t[i];if(!i.match(js)||typeof o.body!="string"||!xr(o,br))return null}const s=e.aliases||Object.create(null);for(const i in s){const o=s[i],r=o.parent;if(!i.match(js)||typeof r!="string"||!t[r]&&!s[r]||!xr(o,br))return null}return e}const Pc=Object.create(null);function bp(n,e){return{provider:n,prefix:e,icons:Object.create(null),missing:new Set}}function Qn(n,e){const t=Pc[n]||(Pc[n]=Object.create(null));return t[e]||(t[e]=bp(n,e))}function wr(n,e){return Tc(e)?kc(e,(t,s)=>{s?n.icons[t]=s:n.missing.add(t)}):[]}function xp(n,e,t){try{if(typeof t.body=="string")return n.icons[e]={...t},!0}catch{}return!1}let Bs=!1;function Oc(n){return typeof n=="boolean"&&(Bs=n),Bs}function wp(n){const e=typeof n=="string"?Gi(n,!0,Bs):n;if(e){const t=Qn(e.provider,e.prefix),s=e.name;return t.icons[s]||(t.missing.has(s)?null:void 0)}}function Cp(n,e){const t=Gi(n,!0,Bs);if(!t)return!1;const s=Qn(t.provider,t.prefix);return xp(s,t.name,e)}function Ep(n,e){if(typeof n!="object")return!1;if(typeof e!="string"&&(e=n.provider||""),Bs&&!e&&!n.prefix){let i=!1;return Tc(n)&&(n.prefix="",kc(n,(o,r)=>{r&&Cp(o,r)&&(i=!0)})),i}const t=n.prefix;if(!ji({provider:e,prefix:t,name:"a"}))return!1;const s=Qn(e,t);return!!wr(s,n)}const Ic=Object.freeze({width:null,height:null}),Nc=Object.freeze({...Ic,...Bi}),Sp=/(-?[0-9.]*[0-9]+[0-9.]*)/g,kp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Dc(n,e,t){if(e===1)return n;if(t=t||100,typeof n=="number")return Math.ceil(n*e*t)/t;if(typeof n!="string")return n;const s=n.split(Sp);if(s===null||!s.length)return n;const i=[];let o=s.shift(),r=kp.test(o);for(;;){if(r){const a=parseFloat(o);isNaN(a)?i.push(o):i.push(Math.ceil(a*e*t)/t)}else i.push(o);if(o=s.shift(),o===void 0)return i.join("");r=!r}}function Tp(n,e="defs"){let t="";const s=n.indexOf("<"+e);for(;s>=0;){const i=n.indexOf(">",s),o=n.indexOf("</"+e);if(i===-1||o===-1)break;const r=n.indexOf(">",o);if(r===-1)break;t+=n.slice(i+1,o).trim(),n=n.slice(0,s).trim()+n.slice(r+1)}return{defs:t,content:n}}function Pp(n,e){return n?"<defs>"+n+"</defs>"+e:e}function Op(n,e,t){const s=Tp(n);return Pp(s.defs,e+s.content+t)}const Ip=n=>n==="unset"||n==="undefined"||n==="none";function Np(n,e){const t={...Hi,...n},s={...Nc,...e},i={left:t.left,top:t.top,width:t.width,height:t.height};let o=t.body;[t,s].forEach(y=>{const _=[],C=y.hFlip,k=y.vFlip;let P=y.rotate;C?k?P+=2:(_.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),_.push("scale(-1 1)"),i.top=i.left=0):k&&(_.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),_.push("scale(1 -1)"),i.top=i.left=0);let D;switch(P<0&&(P-=Math.floor(P/4)*4),P=P%4,P){case 1:D=i.height/2+i.top,_.unshift("rotate(90 "+D.toString()+" "+D.toString()+")");break;case 2:_.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:D=i.width/2+i.left,_.unshift("rotate(-90 "+D.toString()+" "+D.toString()+")");break}P%2===1&&(i.left!==i.top&&(D=i.left,i.left=i.top,i.top=D),i.width!==i.height&&(D=i.width,i.width=i.height,i.height=D)),_.length&&(o=Op(o,'<g transform="'+_.join(" ")+'">',"</g>"))});const r=s.width,a=s.height,l=i.width,c=i.height;let u,h;r===null?(h=a===null?"1em":a==="auto"?c:a,u=Dc(h,l/c)):(u=r==="auto"?l:r,h=a===null?Dc(u,c/l):a==="auto"?c:a);const d={},f=(y,_)=>{Ip(_)||(d[y]=_.toString())};f("width",u),f("height",h);const m=[i.left,i.top,l,c];return d.viewBox=m.join(" "),{attributes:d,viewBox:m,body:o}}const Dp=/\sid="(\S+)"/g,Mp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let $p=0;function Ap(n,e=Mp){const t=[];let s;for(;s=Dp.exec(n);)t.push(s[1]);if(!t.length)return n;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(o=>{const r=typeof e=="function"?e(o):e+($p++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),n=n.replace(new RegExp(i,"g"),""),n}const Cr=Object.create(null);function Rp(n,e){Cr[n]=e}function Er(n){return Cr[n]||Cr[""]}function Sr(n){let e;if(typeof n.resources=="string")e=[n.resources];else if(e=n.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:n.path||"/",maxURL:n.maxURL||500,rotate:n.rotate||750,timeout:n.timeout||5e3,random:n.random===!0,index:n.index||0,dataAfterTimeout:n.dataAfterTimeout!==!1}}const kr=Object.create(null),Hs=["https://api.simplesvg.com","https://api.unisvg.com"],Yi=[];for(;Hs.length>0;)Hs.length===1||Math.random()>.5?Yi.push(Hs.shift()):Yi.push(Hs.pop());kr[""]=Sr({resources:["https://api.iconify.design"].concat(Yi)});function Vp(n,e){const t=Sr(e);return t===null?!1:(kr[n]=t,!0)}function Tr(n){return kr[n]}let Mc=(()=>{let n;try{if(n=fetch,typeof n=="function")return n}catch{}})();function Lp(n,e){const t=Tr(n);if(!t)return 0;let s;if(!t.maxURL)s=0;else{let i=0;t.resources.forEach(r=>{i=Math.max(i,r.length)});const o=e+".json?icons=";s=t.maxURL-i-t.path.length-o.length}return s}function Fp(n){return n===404}const zp=(n,e,t)=>{const s=[],i=Lp(n,e),o="icons";let r={type:o,provider:n,prefix:e,icons:[]},a=0;return t.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(s.push(r),r={type:o,provider:n,prefix:e,icons:[]},a=l.length),r.icons.push(l)}),s.push(r),s};function Gp(n){if(typeof n=="string"){const e=Tr(n);if(e)return e.path}return"/"}const jp={prepare:zp,send:(n,e,t)=>{if(!Mc){t("abort",424);return}let s=Gp(e.provider);switch(e.type){case"icons":{const o=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});s+=o+".json?"+l.toString();break}case"custom":{const o=e.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:t("abort",400);return}let i=503;Mc(n+s).then(o=>{const r=o.status;if(r!==200){setTimeout(()=>{t(Fp(r)?"abort":"next",r)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?t("abort",o):t("next",i)});return}setTimeout(()=>{t("success",o)})}).catch(()=>{t("next",i)})}};function Bp(n){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);n.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return n.forEach(i=>{if(s.name===i.name&&s.prefix===i.prefix&&s.provider===i.provider)return;s=i;const o=i.provider,r=i.prefix,a=i.name,l=t[o]||(t[o]=Object.create(null)),c=l[r]||(l[r]=Qn(o,r));let u;a in c.icons?u=e.loaded:r===""||c.missing.has(a)?u=e.missing:u=e.pending;const h={provider:o,prefix:r,name:a};u.push(h)}),e}function $c(n,e){n.forEach(t=>{const s=t.loaderCallbacks;s&&(t.loaderCallbacks=s.filter(i=>i.id!==e))})}function Hp(n){n.pendingCallbacksFlag||(n.pendingCallbacksFlag=!0,setTimeout(()=>{n.pendingCallbacksFlag=!1;const e=n.loaderCallbacks?n.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const s=n.provider,i=n.prefix;e.forEach(o=>{const r=o.icons,a=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(n.icons[c])r.loaded.push({provider:s,prefix:i,name:c});else if(n.missing.has(c))r.missing.push({provider:s,prefix:i,name:c});else return t=!0,!0;return!1}),r.pending.length!==a&&(t||$c([n],o.id),o.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),o.abort))})}))}let Yp=0;function Wp(n,e,t){const s=Yp++,i=$c.bind(null,t,s);if(!e.pending.length)return i;const o={id:s,icons:e,callback:n,abort:i};return t.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(o)}),i}function Xp(n,e=!0,t=!1){const s=[];return n.forEach(i=>{const o=typeof i=="string"?Gi(i,e,t):i;o&&s.push(o)}),s}var Up={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function qp(n,e,t,s){const i=n.resources.length,o=n.random?Math.floor(Math.random()*i):n.index;let r;if(n.random){let F=n.resources.slice(0);for(r=[];F.length>1;){const H=Math.floor(Math.random()*F.length);r.push(F[H]),F=F.slice(0,H).concat(F.slice(H+1))}r=r.concat(F)}else r=n.resources.slice(o).concat(n.resources.slice(0,o));const a=Date.now();let l="pending",c=0,u,h=null,d=[],f=[];typeof s=="function"&&f.push(s);function m(){h&&(clearTimeout(h),h=null)}function y(){l==="pending"&&(l="aborted"),m(),d.forEach(F=>{F.status==="pending"&&(F.status="aborted")}),d=[]}function _(F,H){H&&(f=[]),typeof F=="function"&&f.push(F)}function C(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:d.length,subscribe:_,abort:y}}function k(){l="failed",f.forEach(F=>{F(void 0,u)})}function P(){d.forEach(F=>{F.status==="pending"&&(F.status="aborted")}),d=[]}function D(F,H,ve){const be=H!=="success";switch(d=d.filter(Ce=>Ce!==F),l){case"pending":break;case"failed":if(be||!n.dataAfterTimeout)return;break;default:return}if(H==="abort"){u=ve,k();return}if(be){u=ve,d.length||(r.length?U():k());return}if(m(),P(),!n.random){const Ce=n.resources.indexOf(F.resource);Ce!==-1&&Ce!==n.index&&(n.index=Ce)}l="completed",f.forEach(Ce=>{Ce(ve)})}function U(){if(l!=="pending")return;m();const F=r.shift();if(F===void 0){if(d.length){h=setTimeout(()=>{m(),l==="pending"&&(P(),k())},n.timeout);return}k();return}const H={status:"pending",resource:F,callback:(ve,be)=>{D(H,ve,be)}};d.push(H),c++,h=setTimeout(U,n.rotate),t(F,e,H.callback)}return setTimeout(U),C}function Ac(n){const e={...Up,...n};let t=[];function s(){t=t.filter(a=>a().status==="pending")}function i(a,l,c){const u=qp(e,a,l,(h,d)=>{s(),c&&c(h,d)});return t.push(u),u}function o(a){return t.find(l=>a(l))||null}return{query:i,find:o,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function Rc(){}const Pr=Object.create(null);function Kp(n){if(!Pr[n]){const e=Tr(n);if(!e)return;const t=Ac(e),s={config:e,redundancy:t};Pr[n]=s}return Pr[n]}function Zp(n,e,t){let s,i;if(typeof n=="string"){const o=Er(n);if(!o)return t(void 0,424),Rc;i=o.send;const r=Kp(n);r&&(s=r.redundancy)}else{const o=Sr(n);if(o){s=Ac(o);const r=n.resources?n.resources[0]:"",a=Er(r);a&&(i=a.send)}}return!s||!i?(t(void 0,424),Rc):s.query(e,i,t)().abort}const Vc="iconify2",Ys="iconify",Lc=Ys+"-count",Fc=Ys+"-version",zc=36e5,Qp=168,Jp=50;function Or(n,e){try{return n.getItem(e)}catch{}}function Ir(n,e,t){try{return n.setItem(e,t),!0}catch{}}function Gc(n,e){try{n.removeItem(e)}catch{}}function Nr(n,e){return Ir(n,Lc,e.toString())}function Dr(n){return parseInt(Or(n,Lc))||0}const Wi={local:!0,session:!0},jc={local:new Set,session:new Set};let Mr=!1;function em(n){Mr=n}let Xi=typeof window>"u"?{}:window;function Bc(n){const e=n+"Storage";try{if(Xi&&Xi[e]&&typeof Xi[e].length=="number")return Xi[e]}catch{}Wi[n]=!1}function Hc(n,e){const t=Bc(n);if(!t)return;const s=Or(t,Fc);if(s!==Vc){if(s){const a=Dr(t);for(let l=0;l<a;l++)Gc(t,Ys+l.toString())}Ir(t,Fc,Vc),Nr(t,0);return}const i=Math.floor(Date.now()/zc)-Qp,o=a=>{const l=Ys+a.toString(),c=Or(t,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}Gc(t,l)}};let r=Dr(t);for(let a=r-1;a>=0;a--)o(a)||(a===r-1?(r--,Nr(t,r)):jc[n].add(a))}function Yc(){if(!Mr){em(!0);for(const n in Wi)Hc(n,e=>{const t=e.data,s=e.provider,i=t.prefix,o=Qn(s,i);if(!wr(o,t).length)return!1;const r=t.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,r):r,!0})}}function tm(n,e){const t=n.lastModifiedCached;if(t&&t>=e)return t===e;if(n.lastModifiedCached=e,t)for(const s in Wi)Hc(s,i=>{const o=i.data;return i.provider!==n.provider||o.prefix!==n.prefix||o.lastModified===e});return!0}function nm(n,e){Mr||Yc();function t(s){let i;if(!Wi[s]||!(i=Bc(s)))return;const o=jc[s];let r;if(o.size)o.delete(r=Array.from(o).shift());else if(r=Dr(i),r>=Jp||!Nr(i,r+1))return;const a={cached:Math.floor(Date.now()/zc),provider:n.provider,data:e};return Ir(i,Ys+r.toString(),JSON.stringify(a))}e.lastModified&&!tm(n,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Wc(){}function sm(n){n.iconsLoaderFlag||(n.iconsLoaderFlag=!0,setTimeout(()=>{n.iconsLoaderFlag=!1,Hp(n)}))}function im(n,e){n.iconsToLoad?n.iconsToLoad=n.iconsToLoad.concat(e).sort():n.iconsToLoad=e,n.iconsQueueFlag||(n.iconsQueueFlag=!0,setTimeout(()=>{n.iconsQueueFlag=!1;const{provider:t,prefix:s}=n,i=n.iconsToLoad;delete n.iconsToLoad;let o;if(!i||!(o=Er(t)))return;o.prepare(t,s,i).forEach(a=>{Zp(t,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{n.missing.add(c)});else try{const c=wr(n,l);if(!c.length)return;const u=n.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),nm(n,l)}catch(c){console.error(c)}sm(n)})})}))}const om=(n,e)=>{const t=Xp(n,!0,Oc()),s=Bp(t);if(!s.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(s.loaded,s.missing,s.pending,Wc)}),()=>{l=!1}}const i=Object.create(null),o=[];let r,a;return s.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===r)return;r=c,a=u,o.push(Qn(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),s.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,d=Qn(c,u),f=d.pendingIcons||(d.pendingIcons=new Set);f.has(h)||(f.add(h),i[c][u].push(h))}),o.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&im(l,i[c][u])}),e?Wp(e,s,o):Wc};function rm(n,e){const t={...n};for(const s in e){const i=e[s],o=typeof i;s in Ic?(i===null||i&&(o==="string"||o==="number"))&&(t[s]=i):o===typeof t[s]&&(t[s]=s==="rotate"?i%4:i)}return t}const am=/[\s,]+/;function lm(n,e){e.split(am).forEach(t=>{switch(t.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0;break}})}function cm(n,e=0){const t=n.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(t===""){const i=parseInt(n);return isNaN(i)?0:s(i)}else if(t!==n){let i=0;switch(t){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(n.slice(0,n.length-t.length));return isNaN(o)?0:(o=o/i,o%1===0?s(o):0)}}return e}function um(n,e){let t=n.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)t+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+n+"</svg>"}function hm(n){return n.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function dm(n){return"data:image/svg+xml,"+hm(n)}function fm(n){return'url("'+dm(n)+'")'}const Xc={...Nc,inline:!1},pm={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},mm={display:"inline-block"},$r={backgroundColor:"currentColor"},Uc={backgroundColor:"transparent"},qc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Kc={webkitMask:$r,mask:$r,background:Uc};for(const n in Kc){const e=Kc[n];for(const t in qc)e[n+t]=qc[t]}const Ui={};["horizontal","vertical"].forEach(n=>{const e=n.slice(0,1)+"Flip";Ui[n+"-flip"]=e,Ui[n.slice(0,1)+"-flip"]=e,Ui[n+"Flip"]=e});function Zc(n){return n+(n.match(/^[-0-9.]+$/)?"px":"")}const Qc=(n,e)=>{const t=rm(Xc,e),s={...pm},i=e.mode||"svg",o={},r=e.style,a=typeof r=="object"&&!(r instanceof Array)?r:{};for(let y in e){const _=e[y];if(_!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":t[y]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&lm(t,_);break;case"color":o.color=_;break;case"rotate":typeof _=="string"?t[y]=cm(_):typeof _=="number"&&(t[y]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete s["aria-hidden"];break;default:{const C=Ui[y];C?(_===!0||_==="true"||_===1)&&(t[C]=!0):Xc[y]===void 0&&(s[y]=_)}}}const l=Np(n,t),c=l.attributes;if(t.inline&&(o.verticalAlign="-0.125em"),i==="svg"){s.style={...o,...a},Object.assign(s,c);let y=0,_=e.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),s.innerHTML=Ap(l.body,_?()=>_+"ID"+y++:"iconifyVue"),Ue("svg",s)}const{body:u,width:h,height:d}=n,f=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=um(u,{...c,width:h+"",height:d+""});return s.style={...o,"--svg":fm(m),width:Zc(c.width),height:Zc(c.height),...mm,...f?$r:Uc,...a},Ue("span",s)};if(Oc(!0),Rp("",jp),typeof document<"u"&&typeof window<"u"){Yc();const n=window;if(n.IconifyPreload!==void 0){const e=n.IconifyPreload,t="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Ep(s))&&console.error(t)}catch{console.error(t)}})}if(n.IconifyProviders!==void 0){const e=n.IconifyProviders;if(typeof e=="object"&&e!==null)for(let t in e){const s="IconifyProviders["+t+"] is invalid.";try{const i=e[t];if(typeof i!="object"||!i||i.resources===void 0)continue;Vp(t,i)||console.error(s)}catch{console.error(s)}}}}const gm={...Hi,body:""},Jc=ce({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(n,e){if(typeof n=="object"&&n!==null&&typeof n.body=="string")return this._name="",this.abortLoading(),{data:n};let t;if(typeof n!="string"||(t=Gi(n,!1,!0))===null)return this.abortLoading(),null;const s=wp(t);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==n)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:n,abort:om([t],()=>{this.counter++})})),null;this.abortLoading(),this._name!==n&&(this._name=n,e&&e(n));const i=["iconify"];return t.prefix!==""&&i.push("iconify--"+t.prefix),t.provider!==""&&i.push("iconify--"+t.provider),{data:s,classes:i}}},render(){this.counter;const n=this.$attrs,e=this.iconMounted||n.ssr?this.getIcon(n.icon,n.onLoad):null;if(!e)return Qc(gm,n);let t=n;return e.classes&&(t={...n,class:(typeof n.class=="string"?n.class+" ":"")+e.classes.join(" ")}),Qc({...Hi,...e.data},t)}}),eu=(n,e="image/svg+xml",t="utf-8")=>t==="base64"?new Blob([n],{type:`${e};${t}`}):new Blob([n],{type:`${e};charset=${t}`}),tu=n=>new XMLSerializer().serializeToString(n),vm=(n,e="image/svg+xml",t="utf-8")=>eu(tu(n),e,t),nu=(n,e)=>{const t=document.createElement("a");t.style.visibility="hidden",document.body.appendChild(t),t.download=e,typeof n=="string"?t.href=n:t.href=window.URL.createObjectURL(n),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(t.href)};function ym(n=["*"],e){return new Promise((t,s)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return s(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(n)&&n.length>0&&i.setAttribute("accept",n.join(",")),e&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&s(new Error("Cancel select"))},1e3)},{once:!0});const o=()=>{if(i.removeEventListener("change",o),!i.files||i.files?.length===0)s(new Error("Cancel select"));else{const r=Array.from(i.files);!n.includes("*")&&r.some(a=>!n.includes(`.${bm(a)}`))&&s(new Error(`Please select files in ${n} format`)),i.remove(),t(r)}};i.addEventListener("change",o),i.click()})}function _m(n,e="text",t){return new Promise((s,i)=>{const o=new FileReader;switch(o.addEventListener("progress",r=>{t?.(r.loaded,r.total)}),o.addEventListener("load",r=>{s(r.target?.result)}),o.addEventListener("error",r=>{i(r)}),e){case"dataURL":o.readAsDataURL(n);break;case"binaryString":o.readAsBinaryString(n);break;case"arrayBuffer":o.readAsArrayBuffer(n);break;case"text":default:o.readAsText(n)}})}const bm=n=>{let e;return n instanceof File?e=n.name:e=n,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function qi(){const n=document.documentElement;return{clientWidth:n.clientWidth,clientHeight:n.clientHeight,clientTop:n.clientTop,clientLeft:n.clientLeft,scrollWidth:n.scrollWidth,scrollHeight:n.scrollHeight,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,offsetWidth:n.offsetWidth,offsetHeight:n.offsetHeight,offsetTop:n.offsetTop,offsetLeft:n.offsetLeft,offsetParent:n.offsetParent,clientX:n.getBoundingClientRect().x,clientY:n.getBoundingClientRect().y}}function Ar(){const{clientWidth:n,clientHeight:e}=qi();return{width:n||window.innerWidth,height:e||window.innerHeight}}function xm(n){const{top:e,left:t}=n.getBoundingClientRect(),{scrollLeft:s,scrollTop:i}=qi();return{x:t+s,y:e+i}}function wm(){const{clientHeight:n,scrollTop:e,scrollHeight:t}=qi(),s=t-n;return s<=0?0:e/s*100}function Cm(n){if("center"in n)return n.center;if(n.pageX&&n.pageY)return{x:n.pageX,y:n.pageY};const{scrollLeft:e,scrollTop:t}=qi();return{x:n.clientX+e,y:n.clientY+t}}function Em(n,e){const t=Cm(e),s=xm(n);return{x:t.x-s.x,y:t.y-s.y}}function su(){return typeof window<"u"?window:this||{}}const Sm=()=>{const n=navigator.userAgent.toLowerCase();let e="Unknown";return/mac/i.test(n)?e="macOS":/win/i.test(n)?e="Windows":/android/i.test(n)?e="Android":/iphone|ipad|ipod/i.test(n)?e="iOS":/linux/i.test(n)?e="Linux":/bsd/i.test(n)&&(e="BSD"),e.toLowerCase()};function km(){return Sm()==="macos"}function Tm(){const n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0)return parseInt(n.substring(e+5,n.indexOf(".",e)),10);if(n.indexOf("Trident/")>0){const i=n.indexOf("rv:");return parseInt(n.substring(i+3,n.indexOf(".",i)),10)}const s=n.indexOf("Edge/");return s>0?parseInt(n.substring(s+5,n.indexOf(".",s)),10):-1}const Rr=Tm()!==-1;(()=>{const n=su();return!!(n.Worker&&n.Blob&&n.Promise&&n.OffscreenCanvas&&n.OffscreenCanvasRenderingContext2D&&n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype.transferControlToOffscreen&&n.URL&&n.URL.createObjectURL)})(),function(){if(!su().OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),t=e.getContext("2d");t.fillRect(0,0,1,1);var s=e.transferToImageBitmap();try{t.createPattern(s,"no-repeat")}catch{return!1}return!0}();function Pm(n){const e=document.documentElement,t=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=t;let s=100;const i=function(){const o=Math.min(e.clientWidth,n);e.dataset.width=o,e.dataset.rem=s=Math.round(100*(o/n)),e.style.fontSize=s+"px"};i(),window.rem2px=function(o){return o=parseFloat(o),o*s},window.px2rem=function(o){return o=parseFloat(o),o/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}function St(n){return n*Math.PI/180}function kt(n){return n*180/Math.PI}function Om(n,e,t=0){return Math.sqrt(n*n+e*e+t*t)}function iu(n,e,t,s){const i=n-t,o=e-s;return Om(i,o)}function Vr(n,e,t,s){const i=t-n,o=s-e;let r=Math.atan2(o,i);return r<0&&(r+=Math.PI*2),r}function Jn(n,e){return{x:Math.cos(n)*e,y:Math.sin(n)*e}}const ou=[1,0,0,1,0,0],ru=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ct{value;matrix3d;isEverTo3d=!1;constructor(e=ou){this.value=Array.from(e),this.matrix3d=this.toMatrix3D()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return 0}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return 0}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return 1}toMatrix3D(e=this.matrix3d){const t=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return e?(e.value=t,e):new us(t)}unit(){return this.value=Array.from(ou),this.matrix3d=this.toMatrix3D(),this}transformPoint(e,t,s=0,i=0){const o=e-s,r=t-i;return e=this.m11*o+this.m21*r+this.m31,t=this.m12*o+this.m22*r+this.m32,[e+s,t+i]}fromString(e){const t=fc("number",e);return t.length===6?t.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}clone(){return new Ct(this.value)}multiply(e){const t=this.value;let s;e instanceof Ct?s=e.value:s=e;const i=t[0]*s[0]+t[2]*s[1],o=t[1]*s[0]+t[3]*s[1],r=t[0]*s[2]+t[2]*s[3],a=t[1]*s[2]+t[3]*s[3],l=t[0]*s[4]+t[2]*s[5]+t[4],c=t[1]*s[4]+t[3]*s[5]+t[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=l,t[5]=c,this}inverse(){const e=new Ct(this.value),t=e.value,s=1/(t[0]*t[3]-t[1]*t[2]),i=t[3]*s,o=-t[1]*s,r=-t[2]*s,a=t[0]*s,l=s*(t[2]*t[5]-t[3]*t[4]),c=s*(t[1]*t[4]-t[0]*t[5]);return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=l,t[5]=c,e}offset(e=0,t=0){return[e-this.m31,t-this.m32]}translate(e,t){return this.multiply([1,0,0,1,e,t]),this.toMatrix3D(),this}translateTo(e,t){const s=this.offset(e,t);return this.translate(s[0],s[1])}translateX(e){return this.translate(e,0)}translateXTo(e){return this.translateTo(e,this.m32)}translateY(e){return this.translate(0,e)}translateYTo(e){return this.translateTo(this.m31,e)}translateZ(e){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,e),this.matrix3d.toMatrix(this),this}translateZTo(e){return this.translateZ(e-this.matrix3d.m43),this}translate3d(e,t,s){return this.isEverTo3d=!0,this.matrix3d.translate(e,t,s),this.matrix3d.toMatrix(this),this}translate3dTo(e,t,s){return this.translate3d(e-this.matrix3d.m41,t-this.matrix3d.m42,s-this.matrix3d.m43),this}rotate(e,t=0,s=0){const i=St(e),o=Math.cos(i),r=Math.sin(i);return this.multiply([o,r,-r,o,t,s]),this.translate(-t,-s),this.toMatrix3D(),this}rotateTo(e,t=0,s=0){const{rotateZ:i}=this.matrix3d.split();return this.rotate(e-i,t,s),this}rotateX(e){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e),this.matrix3d.toMatrix(this),this}rotateXTo(e){const{rotateX:t}=this.matrix3d.split();return this.rotateX(e-t),this}rotateY(e){return this.isEverTo3d=!0,this.matrix3d.rotate("y",e),this.matrix3d.toMatrix(this),this}rotateYTo(e){const{rotateY:t}=this.matrix3d.split();return this.rotateY(e-t),this}rotateZ(e){return this.isEverTo3d=!0,this.matrix3d.rotate("z",e),this.matrix3d.toMatrix(this),this}rotateZTo(e){const{rotateZ:t}=this.matrix3d.split();return this.rotateZ(e-t),this}rotate3d(e,t,s){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e).rotate("y",t).rotate("z",s),this.matrix3d.toMatrix(this),this}rotate3dTo(e,t,s){const{rotateX:i,rotateY:o,rotateZ:r}=this.matrix3d.split();return this.rotate3d(e-i,t-o,s-r),this}scale(e,t=e,s=0,i=0){return this.translate(s,i),this.multiply([e,0,0,t,0,0]),this.translate(-s,-i),this.toMatrix3D(),this}scaleTo(e,t=e,s=0,i=0){return this.scale(e/this.m11,t/this.m22,s,i)}scaleX(e){return this.scale(e,1)}scaleXTo(e){return this.scale(e/this.m11,1)}scaleY(e){return this.scale(1,e)}scaleYTo(e){return this.scale(1,e/this.m22)}scaleZ(e){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,e),this.matrix3d.toMatrix(this),this}scaleZTo(e){const{scaleZ:t}=this.matrix3d.split();return this.scaleZ(e/t),this}scale3d(e,t=e,s=e){return this.isEverTo3d=!0,this.matrix3d.scale(e,t,s),this.matrix3d.toMatrix(this),this}scale3dTo(e,t=e,s=e){const{scaleX:i,scaleY:o,scaleZ:r}=this.matrix3d.split();return this.scale3d(e/i,t/o,s/r),this}skew(e,t=e){const s=Math.tan(St(e)),i=Math.tan(St(t));return this.multiply([1,i,s,1,0,0]),this.toMatrix3D(),this}skewTo(e,t=e){return this.skew(e-kt(this.m21),t-kt(this.m12))}skewX(e){return this.skew(e,kt(this.m12))}skewXTo(e){return this.skewTo(e,kt(this.m12))}skewY(e){return this.skew(kt(this.m21),e)}skewYTo(e){return this.skewTo(kt(this.m21),e)}skewZ(e){return this}skewZTo(e){return this}skew3d(e,t,s){return this}skew3dTo(e,t,s){return this}getGroupCoords(e){const t=this.value[0],s=this.value[1],i=this.value[2],o=this.value[3],r=this.value[4],a=this.value[5],l=e.value[0],c=e.value[1],u=e.value[2],h=e.value[3],d=e.value[4],f=e.value[5],m=l*h,y=c*u,_=(u*s-t*h)/(y-m),C=(l*s-t*c)/(m-y),k=(u*o-i*h)/(y-m),P=(l*o-i*c)/(m-y),D=(u*(a-f)+h*(d-r))/(y-m),U=(l*(a-f)+c*(d-r))/(m-y),F=[_,C,k,P,D,U];return new Ct(F)}toString(){return this.isEverTo3d?this.matrix3d.toString():`matrix(${this.value.map(e=>cs(e,6)).join(",")})`}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class us{value;constructor(e=ru){this.value=Array.from(e)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}unit(){return this.value=Array.from(ru),this}fromString(e){const t=fc("number",e);return t.length===16?t.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(e){const{scaleX:t,scaleY:s,skewX:i,skewY:o,x:r,y:a}=this.split(),l=[t,o,i,s,r,a];return e?(e.value=l,e):new Ct(l)}multiplyMatrix(e){const t=e.value[0],s=e.value[1],i=e.value[2],o=e.value[3],r=t*this.m11+s*this.m21+i*this.m31+o*this.m41,a=t*this.m12+s*this.m22+i*this.m32+o*this.m42,l=t*this.m13+s*this.m23+i*this.m33+o*this.m43,c=t*this.m14+s*this.m24+i*this.m34+o*this.m44;return new Ct([r,a,l,c,0,0])}multiply(e){const t=new Ct([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),s=new Ct([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),i=new Ct([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),o=new Ct([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),r=this.multiplyMatrix(t),a=this.multiplyMatrix(s),l=this.multiplyMatrix(i),c=this.multiplyMatrix(o);return this.value[0]=r.value[0],this.value[1]=r.value[1],this.value[2]=r.value[2],this.value[3]=r.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=l.value[0],this.value[9]=l.value[1],this.value[10]=l.value[2],this.value[11]=l.value[3],this.value[12]=c.value[0],this.value[13]=c.value[1],this.value[14]=c.value[2],this.value[15]=c.value[3],this}translate(e=0,t=0,s=0){return this.multiply(new us([1,0,0,0,0,1,0,0,0,0,1,0,e,t,s,1]))}scale(e=1,t=1,s=1){return this.multiply(new us([e,0,0,0,0,t,0,0,0,0,s,0,0,0,0,1]))}rotate(e,t){const s=St(t),i=Math.sin,o=Math.cos;let r;switch(e){case"x":r=[1,0,0,0,0,o(s),i(s),0,0,-i(s),o(s),0,0,0,0,1];break;case"y":r=[o(s),0,-i(s),0,0,1,0,0,i(s),0,o(s),0,0,0,0,1];break;case"z":r=[o(s),i(s),0,0,-i(s),o(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new us(r))}toString(){return`matrix3d(${this.value.map(e=>cs(e,6)).join(",")})`}split(){let e=kt(Vt(Math.asin(-this.m13),-1,1)),t=kt(Math.atan2(this.m23,this.m33)),s=kt(Math.atan2(this.m12,this.m11));return Math.cos(e)===0&&(t=kt(Math.atan2(-this.m31,this.m22)),s=0),{x:this.m41,y:this.m42,z:this.m43,rotateX:t,rotateY:e,rotateZ:s,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),scaleZ:Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),skewX:kt(this.m14),skewY:kt(this.m24),skewZ:kt(this.m34),skewW:this.m44}}inverse(){const e=[],t=this.m11,s=this.m12,i=this.m13,o=this.m14,r=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,d=this.m33,f=this.m34,m=this.m41,y=this.m42,_=this.m43,C=this.m44;e[0]=l*f*y-c*d*y+c*h*_-a*f*_-l*h*C+a*d*C,e[1]=o*d*y-i*f*y-o*h*_+s*f*_+i*h*C-s*d*C,e[2]=i*c*y-o*l*y+o*a*_-s*c*_-i*a*C+s*l*C,e[3]=o*l*h-i*c*h-o*a*d+s*c*d+i*a*f-s*l*f;const k=t*e[0]+r*e[1]+u*e[2]+m*e[3];if(k==0)return console.warn("Can't invert matrix, determinant is 0");e[4]=c*d*m-l*f*m-c*u*_+r*f*_+l*u*C-r*d*C,e[5]=i*f*m-o*d*m+o*u*_-t*f*_-i*u*C+t*d*C,e[6]=o*l*m-i*c*m-o*r*_+t*c*_+i*r*C-t*l*C,e[7]=i*c*u-o*l*u+o*r*d-t*c*d-i*r*f+t*l*f,e[8]=a*f*m-c*h*m+c*u*y-r*f*y-a*u*C+r*h*C,e[9]=o*h*m-s*f*m-o*u*y+t*f*y+s*u*C-t*h*C,e[10]=s*c*m-o*a*m+o*r*y-t*c*y-s*r*C+t*a*C,e[11]=o*a*u-s*c*u-o*r*h+t*c*h+s*r*f-t*a*f,e[12]=l*h*m-a*d*m-l*u*y+r*d*y+a*u*_-r*h*_,e[13]=s*d*m-i*h*m+i*u*y-t*d*y-s*u*_+t*h*_,e[14]=i*a*m-s*l*m-i*r*y+t*l*y+s*r*_-t*a*_,e[15]=s*l*u-i*a*u+i*r*h-t*l*h-s*r*d+t*a*d,this.value=e;const P=1/k;this.value.map(D=>D*P)}}function au(n){const e=new Ct;return n.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(t,s,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const o=[];for(let r=0,a=i.length;r<a;r++)i[r].trim()&&o.push(parseFloat(""+i[r]));switch(s.toLowerCase()){case"t":case"translate":e.translate(o[0],o[1]);break;case"translatex":e.translateX(o[0]);break;case"translatey":e.translateY(o[0]);break;case"translatez":e.translateZ(o[0]);break;case"translate3d":e.translate3d(o[0],o[1],o[2]);break;case"r":case"rotate":e.rotate(o[0],o[1]??0,o[2]??0);break;case"rotatex":e.rotateX(o[0]);break;case"rotatey":e.rotateY(o[0]);break;case"rotatez":e.rotateZ(o[0]);break;case"rotate3d":e.rotate3d(o[0],o[1],o[2]);break;case"s":case"scale":e.scale(o[0],o[1]??o[0]);break;case"scalex":e.scaleX(o[0]);break;case"scaley":e.scaleY(o[0]);break;case"scalez":e.scaleZ(o[0]);break;case"scale3d":e.scale3d(o[0],o[1],o[2]);break;case"skew":e.skew(o[0],o[1]??0);break;case"skewx":e.skewX(o[0]);break;case"skewy":e.skewY(o[0]);break;case"skewz":e.skewZ(o[0]);break;case"skew3d":e.skew3d(o[0],o[1],o[2]);break;case"m":case"matrix":e.multiply([o[0],o[1],o[2],o[3],o[4],o[5]]),e.toMatrix3D();break;case"matrix3d":e.matrix3d.multiply(new us(o)),e.matrix3d.toMatrix(e);break}return""}),e}class Q{static onDocumentReady(e){let t=!1;function s(){document.readyState==="loading"||t||(t=!0,e(),document.removeEventListener("DOMContentLoaded",s))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",s),s())}static onBeforeUnload(e){function t(){e(),document.removeEventListener("beforeunload",t)}typeof document<"u"&&document.addEventListener("beforeunload",t)}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,t){document.documentElement.style.setProperty(e,t)}static add3DSupport(e,t="1000px"){if(e.parentElement){const s=Q.getStyle(e.parentElement,"position");Q.setStyle(e.parentElement,{position:s=="static"?"relative":s,perspective:t})}Q.setStyle(e,{"transform-style":"preserve-3d"})}static convertAttrs(e,t,s={}){s.hasOwnProperty("transform")||Object.assign(s,{transform:Q.getStyle(e,"transform")||""});const i=au(s.transform),o={};for(let r in t){const a=t[r];switch(r){case"transform":break;case"translate":i.translate(a[0]||0,a[1]||0);break;case"translateTo":i.translateTo(a[0]||0,a[1]||0);break;case"translateX":i.translateX(a||0);break;case"translateXTo":i.translateXTo(a||0);break;case"translateY":i.translateY(a||0);break;case"translateYTo":i.translateYTo(a||0);break;case"translateZ":i.translateZ(a||0);break;case"translateZTo":i.translateZTo(a||0);break;case"translate3d":i.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":i.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?i.rotate(a||0):i.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?i.rotateTo(a||0):i.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":i.rotateX(a||0);break;case"rotateXTo":i.rotateXTo(a||0);break;case"rotateY":i.rotateY(a||0);break;case"rotateYTo":i.rotateYTo(a||0);break;case"rotateZ":i.rotateZ(a||0);break;case"rotateZTo":i.rotateZTo(a||0);break;case"rotate3d":i.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":i.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?i.scale(a||1):i.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?i.scaleTo(a||1):i.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":i.scaleX(a||1);break;case"scaleXTo":i.scaleXTo(a||1);break;case"scaleY":i.scaleY(a||1);break;case"scaleYTo":i.scaleYTo(a||1);break;case"scaleZ":i.scaleZ(a||1);break;case"scaleZTo":i.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?i.scale3d(a||1):i.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?i.scale3dTo(a||1):i.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?i.skew(a||0):i.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?i.skewTo(a||0):i.skewTo(a[0]||0,a[1]||0);break;case"skewX":i.skewX(a||0);break;case"skewXTo":i.skewXTo(a||0);break;case"skewY":i.skewY(a||0);break;case"skewYTo":i.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;default:s.hasOwnProperty(r)||(s[r]=Q.getStyle(e,r)),Object.assign(o,{[r]:`${a}`});break}}return Object.assign(o,{transform:i.toString()}),o}static attrsToCanvas(e,t){for(const s in t){const i=t[s];switch(Rt(s)){case"fill":i!=="none"&&(e.fillStyle=i);break;case"stroke":i!=="none"&&(e.strokeStyle=i);break;case"stroke-width":e.lineWidth=Number(i);break;case"stroke-linecap":e.lineCap=i;break;case"stroke-linejoin":switch(i){case"round":case"bevel":case"miter":e.lineJoin=i;break;default:e.lineJoin="miter";break}break;case"stroke-miterlimit":e.miterLimit=Number(i);break;case"stroke-opacity":break;case"cursor":break;case"font":e.font=i;break;case"font-size":e.font+=` ${i}`;break;case"font-family":e.font+=` ${i}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(i){case"middle":e.textAlign="center";break;case"end":e.textAlign="end";break;case"start":e.textAlign="start";break}break;case"alignment-baseline":switch(i){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":e.textBaseline=i;break;default:e.textBaseline="alphabetic";break}break}}}static getStyle(e,t,s){const i=e;if(getComputedStyle)if(t){t=Rt(t);const o=getComputedStyle(i,s).getPropertyPriority(t);return getComputedStyle(i,s).getPropertyValue(t).trim()+(o?"!"+o:"")}else{const o=[],r=getComputedStyle(i,"");for(let a=0;a<r.length;a++)o.push(r[a]+":"+r.getPropertyValue(r[a]));return o.push(...(i.style.cssText||"").split(";")),Object.fromEntries(o.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(e.currentStyle){if(t)return t=gc(t),e.currentStyle[t];{const o=[],r=i.currentStyle;for(let a in r)o.push(a+":"+r[a]);return o.push(...(i.style.cssText||"").split(";")),Object.fromEntries(o.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(e,t,s){if(typeof t=="string"&&s){const i=String(s).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Rt(t),s.replace(/!important/i,""),i)}else t instanceof Object&&Object.keys(t).forEach(i=>{const o=String(t[i]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Rt(i),String(t[i]).replace(/!important/i,""),o)})}static setStyleSheet(e,t){let s;if(typeof t=="string"){const o=document.querySelector(t)?.shadowRoot;o?s=o:s=document.querySelector(t)}else s=t;const i=document.createElement("style");if(i.innerHTML=e,s)return s.appendChild(i),()=>{(s instanceof HTMLElement||s instanceof ShadowRoot)&&s.removeChild(i)};{const o=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(o)}}}static toggleClass(e,t,s="toggle"){t.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&e.classList[s](i.trim())})}static addClass(e,t){this.toggleClass(e,t,"add")}static removeClass(e,t){this.toggleClass(e,t,"remove")}static hasClass(e,t){return t.split(/[,\s]+/).every(s=>s.trim()!==""?Array.from(e.classList||[]).includes(s.trim()):!0)}static toggleDisplay(e,t){this.getStyle(e,"display")=="none"&&t===void 0||t===!0?e.style.setProperty("display",e instanceof HTMLTableRowElement?"table-row":e instanceof HTMLTableCellElement?"table-cell":"block"):e.style.setProperty("display","none")}static show(e){this.toggleDisplay(e,!0)}static hide(e){this.toggleDisplay(e,!1)}static attribute(e,t,s){let i={};if(t===void 0&&s===void 0){for(let o=0,r=e.attributes,a=r.length;o<a;o++){const l=r[o];l.nodeName&&l.nodeValue&&(i[l.nodeName]=l.nodeValue)}return i}if(typeof t=="string"&&s===void 0)return e.getAttribute(Rt(t));typeof t=="object"?i=t:typeof t=="string"&&s!==void 0&&(i[t]=s),Object.entries(i).forEach(([o,r])=>{e.setAttribute(Rt(o),r)})}static removeAttribute(e,t){t.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&e.removeAttribute(s.trim())})}static fixProp(e){const t={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return t[e]?t[e]:e}static prop(e,t,s){if(s===void 0&&typeof t=="string")return e[t];{let i={};typeof t=="object"?i=t:typeof t=="string"&&s!==void 0&&(i[t]=s),Object.entries(i).forEach(([o,r])=>{const a=this.fixProp(o);e[a]=r,a=="innerHTML"&&this.scriptConvert(e)})}}static removeProp(e,t){t.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e[this.fixProp(s.trim())]})}static data(e,t,s){if(typeof t=="string"&&(t=gc(t)),(typeof t=="string"||t===void 0)&&s===void 0){const i=Object.assign({},e.dataset);return Object.keys(i).forEach(o=>{if(i[o]?.startsWith("[")||i[o]?.startsWith("{"))try{i[o]=JSON.parse(i[o]||"")}catch{}}),typeof t=="string"?i[t]:i}else{let i={};typeof t=="object"?i=t:typeof t=="string"&&(i[t]=s),Object.entries(i).forEach(([o,r])=>{r!=null?e.dataset[o]=r instanceof Object?JSON.stringify(r):r:delete e.dataset[o]})}}static removeData(e,t){t.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e.dataset[s.trim()]})}static empty(e){this.html(e,"")}static html(e,t){t instanceof HTMLElement||t instanceof SVGElement?this.insert(e,t,"replaceWith"):this.prop(e,"innerHTML",t)}static text(e,t){return this.prop(e,"textContent",t)}static value(e,t){return this.prop(e,"value",t)}static dispatchEvent(e,t,s){let i;const o=["click","dblclick","mousedown","mouseup","mousemove"],r=["keydown","keyup","keypress"];typeof t=="string"?o.includes(t)?i=new MouseEvent(t,s):r.includes(t)?i=new KeyboardEvent(t,s):i=new Event(t,s):i=t,e.dispatchEvent(i)}static scriptConvert(e){const t=s=>{const o=s.ownerDocument.createElement("script");o.text=s.text;const r=s.attributes;for(let a=0;a<r.length;a++)o.setAttribute(r[a].name,r[a].value);return o};return e.tagName=="SCRIPT"&&(e=t(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(t(s),s)}),e}static fragment(e){const t=document.createElement("template");return t.innerHTML=e,t.content.childNodes.forEach(s=>{const i=this.scriptConvert(s);i!=s&&t.content.replaceChild(i,s)}),t.content}static insert(e,t,s="append"){return typeof t=="string"?e[s](this.fragment(t)):(t instanceof HTMLElement||t instanceof SVGElement)&&e[s](t),this}static createElement(e){return document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static remove(e){return e.remove()}static siblings=e=>Array.prototype.slice.call(e.parentElement?.children).filter(t=>t!==e);static nextElementSibling(e){return e.nextElementSibling}static previousElementSibling(e){return e.previousElementSibling}static closest(e,t){return e.closest(t)}static shadowRoot(e){return e.shadowRoot}static parentElement=e=>e.parentElement;static changeSelectSelected(e,t){if(e instanceof HTMLSelectElement){const s=e.options;for(let i=0,o=s.length;i<o;i++)s[i].value==t?s[i].selected=!0:s[i].selected=!1}}static changeRadioChecked(e,t){e instanceof HTMLInputElement&&(e.value==t?e.checked=!0:e.checked=!1)}static entity2text(e){const t={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let s;return e.charAt(0)=="#"?e.charAt(1).toLowerCase()=="x"?s=parseInt(e.substring(2),16):s=parseInt(e.substring(1),10):s=t[e],s?String.fromCharCode(s):"&"+e}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const t=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length||0;const i=()=>s>=t.length?(e(),!0):!1;i()||t.forEach(o=>{o.onload=()=>{s+=1,i()}})});static loadScript(e,t=()=>{},s=(i,o,r,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=e,i.async=!1,i.onload=t,i.onerror=s,document.body.appendChild(i)}static runInSafe(e){const t=new Proxy(window,{get(s,i,o){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?t:Reflect.get(s,i,o)},set(s,i,o,r){return Reflect.set(s,i,o,r)}});new Function("window",`with(window) { ${e} }`)(t,null)}static dom=new Proxy({},{get(e,t){return function(s={},...i){const o=document.createElement(t);for(const r of Object.keys(s))o.setAttribute(r,s[r]);for(const r of i)typeof r=="string"?o.appendChild(document.createTextNode(r)):o.appendChild(r);return o}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
39
+ `.replace(/\s+/g,""),"u");break;case"mime-image":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":e=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":e=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e},xn=(n,e)=>(typeof n=="string"&&(n=xr(n)||new RegExp(n)),n.test(e)),Cc=(n,e)=>{typeof n=="string"&&(n=xr(n)||new RegExp(n));const t=e.match(n);return t?n.flags.toLowerCase().indexOf("g")>=0?t.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof t.index=="number"?t.index:-1,fullMatch:t[0],groupMatchs:t.slice(1)}:null},Sc=(n,e)=>{typeof n=="string"&&(n=xr(n)||new RegExp(n));const t=[],s=e.matchAll(n);for(const i of s)t.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return t};function Ec(n){const e=n.match(/[\s\S]/gu);return e?e.length:0}function kc(n,e){const t=n.codePointAt(e);return t?String.fromCodePoint(t):void 0}function _p(){let n=new Date().getTime();return"xxxxxxxx_xxxx_xxxx_yxxx_xxxxxxxxxxxx".replace(/[xy]/g,function(t){const s=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(t=="x"?s:s&3|8).toString(16)})}function xp(n){return n.replace(/(^\w)/g,function(e){return e.toLowerCase()})}const Lt=(n,e="-")=>{const t=new RegExp(`${e}?([A-Z])`,"g");return n=n.replace(t,e+"$1").toLowerCase(),n.indexOf(e)==0?n.slice(1):n};function wr(n){return n.replace(/(^\w|[_-]\w)/g,function(e){return e.slice(-1).toUpperCase()})}function Tc(n){return xp(wr(n))}const Pc=(n,e="")=>(n=n.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,e),n);function wp(n,e,t="0",s="left"){const i=Ec(n);if(e>i){const o=e-i;switch(s){case"left":n=Array(o+1).join(t)+n;break;case"right":n=n+Array(o+1).join(t);break;default:const r=Math.ceil(o/2),a=o-r;n=Array(a+1).join(t)+n+Array(r+1).join(t);break}}return n}function Oc(n){const e=typeof n;return e!=="object"?e:Object.prototype.toString.call(n).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function Cp(n){return Oc(n)==="array"}function Sp(n){return n!=null}function Cr(n){return Oc(n)==="object"}function Ep(n,e){for(const t of Reflect.ownKeys(e))if(t!=="constructor"&&t!=="prototype"&&t!=="name"&&t!=="displayName"){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(n,t,s)}}function Ic(n,e=new WeakMap){if(n==null)return n;if(n.constructor===Date)return new Date(n);if(n.constructor===RegExp)return new RegExp(n);if(typeof n!="object")return n;if(e.has(n))return e.get(n);const t=Object.create(Object.getPrototypeOf(n),Object.getOwnPropertyDescriptors(n));for(const s of Reflect.ownKeys(n))t[s]=Cr(n[s])?Ic(n[s],e):n[s];return e.set(n,t),t}function ss(n){for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&delete n[e];return n}function qs(n,e){const t=n.length,s=e.length;for(let o=0;o<s;o++)n[o]=e[o];let i=Math.max(0,t-s);for(;i>0;)n.pop(),i--}function kp(n){if(n=parseFloat(n),isNaN(n))throw new Error(`${n}不能转换为number!`);return n}function Ks(n,e,t=Number.EPSILON*Math.pow(2,2)){return Math.abs(n-e)<t}const Yt=(n,e,t)=>n<e?e:n>t?t:n;function Mt(n,e=12){return+kp(n).toFixed(e)}function ys(n,e){const t=Cc("number-single",n);return{hasNumber:!!t,number:t&&!Array.isArray(t)&&t.fullMatch?parseFloat(t.fullMatch):Sp(e)?e:NaN,prefix:t&&!Array.isArray(t)&&t.fullMatch?n.substring(0,t.matchIndex):"",suffix:t&&!Array.isArray(t)&&t.fullMatch?n.substring(t.matchIndex+t.fullMatch.length):""}}function Dc(n){const e=Cc("number",n);return e?Array.isArray(e)?e.map(t=>Number(t.fullMatch)):[Number(e.fullMatch)]:[]}function gt(n=0,e=100){return Math.floor(Math.random()*(e-n)+n)}function Nc(n,e){let t=!0;return function(...s){t&&(t=!1,n.apply(this,s),setTimeout(()=>{t=!0},e))}}function Tp(n,e){let t;return function(...s){clearTimeout(t),t=setTimeout(()=>{n.apply(this,s)},e)}}class $c{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(e=1){this.concurrency=e,this.rs=new ReadableStream({start:async t=>{this.controller=t}})}get readableStream(){return this.rs}addTask(e){Array.isArray(e)?this.queue.push(...e):this.queue.push(e),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const e=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=e.length;const t=await Promise.allSettled(e.map(s=>s()));this.results.push(...t),t.forEach(s=>{s.status=="fulfilled"?this.controller?.enqueue(s.value):s.status=="rejected"&&this.controller?.enqueue(new Error(s.reason))}),this.activeTaskCount-=t.length}}}class Sr{events;constructor(){this.events={}}on(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),this}addListener(e,t){return this.on(e,t),this}prependListener(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].unshift(t),this}removeListener(e,t){if(this.events[e])return this.events[e]=this.events[e].filter(s=>s!==t),this}off(e,t){return this.removeListener(e,t),this}removeAllListeners(e){return e?this.events[e]=[]:this.events={},this}emit(e,...t){return this.events[e]&&this.events[e].forEach(s=>{Reflect.apply(s,this,t)}),this}once(e,t){const i=(()=>{let o=!1;return(...r)=>{o||(o=!0,Reflect.apply(t,this,r),this.off(e,i))}})();return this.on(e,i),this}}var Ac=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Pp(n,e={}){var t=1,s=1;function i(te){var q=te.match(/\n/g);q&&(t+=q.length);var Ee=te.lastIndexOf(`
40
+ `);s=~Ee?te.length-Ee:s+te.length}function o(){var te={line:t,column:s};return function(q){return q.position=new r(te),m(),q}}function r(te){this.start=te,this.end={line:t,column:s},this.source=e.source}r.prototype.content=n;var a=[];function l(te){var q=new Error(e.source+":"+t+":"+s+": "+te);if(q.reason=te,q.filename=e.source,q.line=t,q.column=s,q.source=n,e.silent)a.push(q);else throw q}function c(){var te=f();return{type:"stylesheet",stylesheet:{source:e.source,rules:te,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var te,q=[];for(m(),v(q);n.length&&n.charAt(0)!="}"&&(te=ve()||F());)te!==!1&&(q.push(te),v(q));return q}function d(te){var q=te.exec(n);if(q){var Ee=q[0];return i(Ee),n=n.slice(Ee.length),q}}function m(){d(/^\s*/)}function v(te){var q;for(te=te||[];q=b();)q!==!1&&te.push(q);return te}function b(){var te=o();if(!(n.charAt(0)!="/"||n.charAt(1)!="*")){for(var q=2;n.charAt(q)!=""&&(n.charAt(q)!="*"||n.charAt(q+1)!="/");)++q;if(q+=2,n.charAt(q-1)==="")return l("End of comment missing");var Ee=n.slice(2,q-2);return s+=2,i(Ee),n=n.slice(q),s+=2,te({type:"comment",comment:Ee})}}function E(){var te=d(/^([^{]+)/);if(te)return wn(te[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(q){return q.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(q){return q.replace(/\u200C/g,",")})}function I(){var te=o(),q=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(q){if(q=wn(q[0]),!d(/^:\s*/))return l("property missing ':'");var Ee=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),re=te({type:"declaration",property:q.replace(Ac,""),value:Ee?wn(Ee[0]).replace(Ac,""):""});return d(/^[;\s]*/),re}}function N(){var te=[];if(!u())return l("missing '{'");v(te);for(var q;q=I();)q!==!1&&(te.push(q),v(te));return h()?te:l("missing '}'")}function k(){for(var te,q=[],Ee=o();te=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)q.push(te[1]),d(/^,\s*/);if(q.length)return Ee({type:"keyframe",values:q,declarations:N()})}function B(){var te=o(),q=d(/^@([-\w]+)?keyframes\s*/);if(q){var Ee=q[1];if(q=d(/^([-\w]+)\s*/),!q)return l("@keyframes missing name");var re=q[1];if(!u())return l("@keyframes missing '{'");for(var $e,Re=v();$e=k();)Re.push($e),Re=Re.concat(v());return h()?te({type:"keyframes",name:re,vendor:Ee,keyframes:Re}):l("@keyframes missing '}'")}}function R(){var te=o(),q=d(/^@supports *([^{]+)/);if(q){var Ee=wn(q[1]);if(!u())return l("@supports missing '{'");var re=v().concat(f());return h()?te({type:"supports",supports:Ee,rules:re}):l("@supports missing '}'")}}function Y(){var te=o(),q=d(/^@host\s*/);if(q){if(!u())return l("@host missing '{'");var Ee=v().concat(f());return h()?te({type:"host",rules:Ee}):l("@host missing '}'")}}function fe(){var te=o(),q=d(/^@media *([^{]+)/);if(q){var Ee=wn(q[1]);if(!u())return l("@media missing '{'");var re=v().concat(f());return h()?te({type:"media",media:Ee,rules:re}):l("@media missing '}'")}}function be(){var te=o(),q=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(q)return te({type:"custom-media",name:wn(q[1]),media:wn(q[2])})}function ge(){var te=o(),q=d(/^@page */);if(q){var Ee=E()||[];if(!u())return l("@page missing '{'");for(var re=v(),$e;$e=I();)re.push($e),re=re.concat(v());return h()?te({type:"page",selectors:Ee,declarations:re}):l("@page missing '}'")}}function Pe(){var te=o(),q=d(/^@([-\w]+)?document *([^{]+)/);if(q){var Ee=wn(q[1]),re=wn(q[2]);if(!u())return l("@document missing '{'");var $e=v().concat(f());return h()?te({type:"document",document:re,vendor:Ee,rules:$e}):l("@document missing '}'")}}function Oe(){var te=o(),q=d(/^@font-face\s*/);if(q){if(!u())return l("@font-face missing '{'");for(var Ee=v(),re;re=I();)Ee.push(re),Ee=Ee.concat(v());return h()?te({type:"font-face",declarations:Ee}):l("@font-face missing '}'")}}var Le=Ie("import"),Fe=Ie("charset"),He=Ie("namespace");function Ie(te){var q=new RegExp("^@"+te+"\\s*([^;]+);");return function(){var Ee=o(),re=d(q);if(re){var $e={type:te};return $e[te]=re[1].trim(),Ee($e)}}}function ve(){if(n[0]=="@")return B()||fe()||be()||R()||Le()||Fe()||He()||Pe()||ge()||Y()||Oe()}function F(){var te=o(),q=E();return q?(v(),te({type:"rule",selectors:q,declarations:N()})):l("selector missing")}return Er(c())}function wn(n){return n?n.replace(/^\s+|\s+$/g,""):""}function Er(n,e){var t=n&&typeof n.type=="string",s=t?n:e;for(var i in n){var o=n[i];Array.isArray(o)?o.forEach(function(r){Er(r,s)}):o&&typeof o=="object"&&Er(o,s)}return t&&Object.defineProperty(n,"parent",{configurable:!0,writable:!0,enumerable:!1,value:e||null}),n}const Zs=/^[a-z0-9]+(-[a-z0-9]+)*$/,Xi=(n,e,t,s="")=>{const i=n.split(":");if(n.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;s=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:s,prefix:l,name:a};return e&&!qi(c)?null:c}const o=i[0],r=o.split("-");if(r.length>1){const a={provider:s,prefix:r.shift(),name:r.join("-")};return e&&!qi(a)?null:a}if(t&&s===""){const a={provider:s,prefix:"",name:o};return e&&!qi(a,t)?null:a}return null},qi=(n,e)=>n?!!((n.provider===""||n.provider.match(Zs))&&(e&&n.prefix===""||n.prefix.match(Zs))&&n.name.match(Zs)):!1,Mc=Object.freeze({left:0,top:0,width:16,height:16}),Ki=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Zi=Object.freeze({...Mc,...Ki}),kr=Object.freeze({...Zi,body:"",hidden:!1});function Op(n,e){const t={};!n.hFlip!=!e.hFlip&&(t.hFlip=!0),!n.vFlip!=!e.vFlip&&(t.vFlip=!0);const s=((n.rotate||0)+(e.rotate||0))%4;return s&&(t.rotate=s),t}function Rc(n,e){const t=Op(n,e);for(const s in kr)s in Ki?s in n&&!(s in t)&&(t[s]=Ki[s]):s in e?t[s]=e[s]:s in n&&(t[s]=n[s]);return t}function Ip(n,e){const t=n.icons,s=n.aliases||Object.create(null),i=Object.create(null);function o(r){if(t[r])return i[r]=[];if(!(r in i)){i[r]=null;const a=s[r]&&s[r].parent,l=a&&o(a);l&&(i[r]=[a].concat(l))}return i[r]}return(e||Object.keys(t).concat(Object.keys(s))).forEach(o),i}function Dp(n,e,t){const s=n.icons,i=n.aliases||Object.create(null);let o={};function r(a){o=Rc(s[a]||i[a],o)}return r(e),t.forEach(r),Rc(n,o)}function Vc(n,e){const t=[];if(typeof n!="object"||typeof n.icons!="object")return t;n.not_found instanceof Array&&n.not_found.forEach(i=>{e(i,null),t.push(i)});const s=Ip(n);for(const i in s){const o=s[i];o&&(e(i,Dp(n,i,o)),t.push(i))}return t}const Np={provider:"",aliases:{},not_found:{},...Mc};function Tr(n,e){for(const t in e)if(t in n&&typeof n[t]!=typeof e[t])return!1;return!0}function Lc(n){if(typeof n!="object"||n===null)return null;const e=n;if(typeof e.prefix!="string"||!n.icons||typeof n.icons!="object"||!Tr(n,Np))return null;const t=e.icons;for(const i in t){const o=t[i];if(!i.match(Zs)||typeof o.body!="string"||!Tr(o,kr))return null}const s=e.aliases||Object.create(null);for(const i in s){const o=s[i],r=o.parent;if(!i.match(Zs)||typeof r!="string"||!t[r]&&!s[r]||!Tr(o,kr))return null}return e}const Fc=Object.create(null);function $p(n,e){return{provider:n,prefix:e,icons:Object.create(null),missing:new Set}}function is(n,e){const t=Fc[n]||(Fc[n]=Object.create(null));return t[e]||(t[e]=$p(n,e))}function Pr(n,e){return Lc(e)?Vc(e,(t,s)=>{s?n.icons[t]=s:n.missing.add(t)}):[]}function Ap(n,e,t){try{if(typeof t.body=="string")return n.icons[e]={...t},!0}catch{}return!1}let Qs=!1;function zc(n){return typeof n=="boolean"&&(Qs=n),Qs}function Mp(n){const e=typeof n=="string"?Xi(n,!0,Qs):n;if(e){const t=is(e.provider,e.prefix),s=e.name;return t.icons[s]||(t.missing.has(s)?null:void 0)}}function Rp(n,e){const t=Xi(n,!0,Qs);if(!t)return!1;const s=is(t.provider,t.prefix);return Ap(s,t.name,e)}function Vp(n,e){if(typeof n!="object")return!1;if(typeof e!="string"&&(e=n.provider||""),Qs&&!e&&!n.prefix){let i=!1;return Lc(n)&&(n.prefix="",Vc(n,(o,r)=>{r&&Rp(o,r)&&(i=!0)})),i}const t=n.prefix;if(!qi({provider:e,prefix:t,name:"a"}))return!1;const s=is(e,t);return!!Pr(s,n)}const Gc=Object.freeze({width:null,height:null}),jc=Object.freeze({...Gc,...Ki}),Lp=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Fp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Bc(n,e,t){if(e===1)return n;if(t=t||100,typeof n=="number")return Math.ceil(n*e*t)/t;if(typeof n!="string")return n;const s=n.split(Lp);if(s===null||!s.length)return n;const i=[];let o=s.shift(),r=Fp.test(o);for(;;){if(r){const a=parseFloat(o);isNaN(a)?i.push(o):i.push(Math.ceil(a*e*t)/t)}else i.push(o);if(o=s.shift(),o===void 0)return i.join("");r=!r}}function zp(n,e="defs"){let t="";const s=n.indexOf("<"+e);for(;s>=0;){const i=n.indexOf(">",s),o=n.indexOf("</"+e);if(i===-1||o===-1)break;const r=n.indexOf(">",o);if(r===-1)break;t+=n.slice(i+1,o).trim(),n=n.slice(0,s).trim()+n.slice(r+1)}return{defs:t,content:n}}function Gp(n,e){return n?"<defs>"+n+"</defs>"+e:e}function jp(n,e,t){const s=zp(n);return Gp(s.defs,e+s.content+t)}const Bp=n=>n==="unset"||n==="undefined"||n==="none";function Hp(n,e){const t={...Zi,...n},s={...jc,...e},i={left:t.left,top:t.top,width:t.width,height:t.height};let o=t.body;[t,s].forEach(v=>{const b=[],E=v.hFlip,I=v.vFlip;let N=v.rotate;E?I?N+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):I&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let k;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:k=i.height/2+i.top,b.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:k=i.width/2+i.left,b.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}N%2===1&&(i.left!==i.top&&(k=i.left,i.left=i.top,i.top=k),i.width!==i.height&&(k=i.width,i.width=i.height,i.height=k)),b.length&&(o=jp(o,'<g transform="'+b.join(" ")+'">',"</g>"))});const r=s.width,a=s.height,l=i.width,c=i.height;let u,h;r===null?(h=a===null?"1em":a==="auto"?c:a,u=Bc(h,l/c)):(u=r==="auto"?l:r,h=a===null?Bc(u,c/l):a==="auto"?c:a);const f={},d=(v,b)=>{Bp(b)||(f[v]=b.toString())};d("width",u),d("height",h);const m=[i.left,i.top,l,c];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:o}}const Yp=/\sid="(\S+)"/g,Wp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Up=0;function Xp(n,e=Wp){const t=[];let s;for(;s=Yp.exec(n);)t.push(s[1]);if(!t.length)return n;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(o=>{const r=typeof e=="function"?e(o):e+(Up++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),n=n.replace(new RegExp(i,"g"),""),n}const Or=Object.create(null);function qp(n,e){Or[n]=e}function Ir(n){return Or[n]||Or[""]}function Dr(n){let e;if(typeof n.resources=="string")e=[n.resources];else if(e=n.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:n.path||"/",maxURL:n.maxURL||500,rotate:n.rotate||750,timeout:n.timeout||5e3,random:n.random===!0,index:n.index||0,dataAfterTimeout:n.dataAfterTimeout!==!1}}const Nr=Object.create(null),Js=["https://api.simplesvg.com","https://api.unisvg.com"],Qi=[];for(;Js.length>0;)Js.length===1||Math.random()>.5?Qi.push(Js.shift()):Qi.push(Js.pop());Nr[""]=Dr({resources:["https://api.iconify.design"].concat(Qi)});function Kp(n,e){const t=Dr(e);return t===null?!1:(Nr[n]=t,!0)}function $r(n){return Nr[n]}let Hc=(()=>{let n;try{if(n=fetch,typeof n=="function")return n}catch{}})();function Zp(n,e){const t=$r(n);if(!t)return 0;let s;if(!t.maxURL)s=0;else{let i=0;t.resources.forEach(r=>{i=Math.max(i,r.length)});const o=e+".json?icons=";s=t.maxURL-i-t.path.length-o.length}return s}function Qp(n){return n===404}const Jp=(n,e,t)=>{const s=[],i=Zp(n,e),o="icons";let r={type:o,provider:n,prefix:e,icons:[]},a=0;return t.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(s.push(r),r={type:o,provider:n,prefix:e,icons:[]},a=l.length),r.icons.push(l)}),s.push(r),s};function em(n){if(typeof n=="string"){const e=$r(n);if(e)return e.path}return"/"}const tm={prepare:Jp,send:(n,e,t)=>{if(!Hc){t("abort",424);return}let s=em(e.provider);switch(e.type){case"icons":{const o=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});s+=o+".json?"+l.toString();break}case"custom":{const o=e.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:t("abort",400);return}let i=503;Hc(n+s).then(o=>{const r=o.status;if(r!==200){setTimeout(()=>{t(Qp(r)?"abort":"next",r)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?t("abort",o):t("next",i)});return}setTimeout(()=>{t("success",o)})}).catch(()=>{t("next",i)})}};function nm(n){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);n.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return n.forEach(i=>{if(s.name===i.name&&s.prefix===i.prefix&&s.provider===i.provider)return;s=i;const o=i.provider,r=i.prefix,a=i.name,l=t[o]||(t[o]=Object.create(null)),c=l[r]||(l[r]=is(o,r));let u;a in c.icons?u=e.loaded:r===""||c.missing.has(a)?u=e.missing:u=e.pending;const h={provider:o,prefix:r,name:a};u.push(h)}),e}function Yc(n,e){n.forEach(t=>{const s=t.loaderCallbacks;s&&(t.loaderCallbacks=s.filter(i=>i.id!==e))})}function sm(n){n.pendingCallbacksFlag||(n.pendingCallbacksFlag=!0,setTimeout(()=>{n.pendingCallbacksFlag=!1;const e=n.loaderCallbacks?n.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const s=n.provider,i=n.prefix;e.forEach(o=>{const r=o.icons,a=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(n.icons[c])r.loaded.push({provider:s,prefix:i,name:c});else if(n.missing.has(c))r.missing.push({provider:s,prefix:i,name:c});else return t=!0,!0;return!1}),r.pending.length!==a&&(t||Yc([n],o.id),o.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),o.abort))})}))}let im=0;function om(n,e,t){const s=im++,i=Yc.bind(null,t,s);if(!e.pending.length)return i;const o={id:s,icons:e,callback:n,abort:i};return t.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(o)}),i}function rm(n,e=!0,t=!1){const s=[];return n.forEach(i=>{const o=typeof i=="string"?Xi(i,e,t):i;o&&s.push(o)}),s}var am={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lm(n,e,t,s){const i=n.resources.length,o=n.random?Math.floor(Math.random()*i):n.index;let r;if(n.random){let R=n.resources.slice(0);for(r=[];R.length>1;){const Y=Math.floor(Math.random()*R.length);r.push(R[Y]),R=R.slice(0,Y).concat(R.slice(Y+1))}r=r.concat(R)}else r=n.resources.slice(o).concat(n.resources.slice(0,o));const a=Date.now();let l="pending",c=0,u,h=null,f=[],d=[];typeof s=="function"&&d.push(s);function m(){h&&(clearTimeout(h),h=null)}function v(){l==="pending"&&(l="aborted"),m(),f.forEach(R=>{R.status==="pending"&&(R.status="aborted")}),f=[]}function b(R,Y){Y&&(d=[]),typeof R=="function"&&d.push(R)}function E(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:f.length,subscribe:b,abort:v}}function I(){l="failed",d.forEach(R=>{R(void 0,u)})}function N(){f.forEach(R=>{R.status==="pending"&&(R.status="aborted")}),f=[]}function k(R,Y,fe){const be=Y!=="success";switch(f=f.filter(ge=>ge!==R),l){case"pending":break;case"failed":if(be||!n.dataAfterTimeout)return;break;default:return}if(Y==="abort"){u=fe,I();return}if(be){u=fe,f.length||(r.length?B():I());return}if(m(),N(),!n.random){const ge=n.resources.indexOf(R.resource);ge!==-1&&ge!==n.index&&(n.index=ge)}l="completed",d.forEach(ge=>{ge(fe)})}function B(){if(l!=="pending")return;m();const R=r.shift();if(R===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&(N(),I())},n.timeout);return}I();return}const Y={status:"pending",resource:R,callback:(fe,be)=>{k(Y,fe,be)}};f.push(Y),c++,h=setTimeout(B,n.rotate),t(R,e,Y.callback)}return setTimeout(B),E}function Wc(n){const e={...am,...n};let t=[];function s(){t=t.filter(a=>a().status==="pending")}function i(a,l,c){const u=lm(e,a,l,(h,f)=>{s(),c&&c(h,f)});return t.push(u),u}function o(a){return t.find(l=>a(l))||null}return{query:i,find:o,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function Uc(){}const Ar=Object.create(null);function cm(n){if(!Ar[n]){const e=$r(n);if(!e)return;const t=Wc(e),s={config:e,redundancy:t};Ar[n]=s}return Ar[n]}function um(n,e,t){let s,i;if(typeof n=="string"){const o=Ir(n);if(!o)return t(void 0,424),Uc;i=o.send;const r=cm(n);r&&(s=r.redundancy)}else{const o=Dr(n);if(o){s=Wc(o);const r=n.resources?n.resources[0]:"",a=Ir(r);a&&(i=a.send)}}return!s||!i?(t(void 0,424),Uc):s.query(e,i,t)().abort}const Xc="iconify2",ei="iconify",qc=ei+"-count",Kc=ei+"-version",Zc=36e5,hm=168,dm=50;function Mr(n,e){try{return n.getItem(e)}catch{}}function Rr(n,e,t){try{return n.setItem(e,t),!0}catch{}}function Qc(n,e){try{n.removeItem(e)}catch{}}function Vr(n,e){return Rr(n,qc,e.toString())}function Lr(n){return parseInt(Mr(n,qc))||0}const Ji={local:!0,session:!0},Jc={local:new Set,session:new Set};let Fr=!1;function fm(n){Fr=n}let eo=typeof window>"u"?{}:window;function eu(n){const e=n+"Storage";try{if(eo&&eo[e]&&typeof eo[e].length=="number")return eo[e]}catch{}Ji[n]=!1}function tu(n,e){const t=eu(n);if(!t)return;const s=Mr(t,Kc);if(s!==Xc){if(s){const a=Lr(t);for(let l=0;l<a;l++)Qc(t,ei+l.toString())}Rr(t,Kc,Xc),Vr(t,0);return}const i=Math.floor(Date.now()/Zc)-hm,o=a=>{const l=ei+a.toString(),c=Mr(t,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}Qc(t,l)}};let r=Lr(t);for(let a=r-1;a>=0;a--)o(a)||(a===r-1?(r--,Vr(t,r)):Jc[n].add(a))}function nu(){if(!Fr){fm(!0);for(const n in Ji)tu(n,e=>{const t=e.data,s=e.provider,i=t.prefix,o=is(s,i);if(!Pr(o,t).length)return!1;const r=t.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,r):r,!0})}}function pm(n,e){const t=n.lastModifiedCached;if(t&&t>=e)return t===e;if(n.lastModifiedCached=e,t)for(const s in Ji)tu(s,i=>{const o=i.data;return i.provider!==n.provider||o.prefix!==n.prefix||o.lastModified===e});return!0}function mm(n,e){Fr||nu();function t(s){let i;if(!Ji[s]||!(i=eu(s)))return;const o=Jc[s];let r;if(o.size)o.delete(r=Array.from(o).shift());else if(r=Lr(i),r>=dm||!Vr(i,r+1))return;const a={cached:Math.floor(Date.now()/Zc),provider:n.provider,data:e};return Rr(i,ei+r.toString(),JSON.stringify(a))}e.lastModified&&!pm(n,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function su(){}function gm(n){n.iconsLoaderFlag||(n.iconsLoaderFlag=!0,setTimeout(()=>{n.iconsLoaderFlag=!1,sm(n)}))}function vm(n,e){n.iconsToLoad?n.iconsToLoad=n.iconsToLoad.concat(e).sort():n.iconsToLoad=e,n.iconsQueueFlag||(n.iconsQueueFlag=!0,setTimeout(()=>{n.iconsQueueFlag=!1;const{provider:t,prefix:s}=n,i=n.iconsToLoad;delete n.iconsToLoad;let o;if(!i||!(o=Ir(t)))return;o.prepare(t,s,i).forEach(a=>{um(t,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{n.missing.add(c)});else try{const c=Pr(n,l);if(!c.length)return;const u=n.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),mm(n,l)}catch(c){console.error(c)}gm(n)})})}))}const ym=(n,e)=>{const t=rm(n,!0,zc()),s=nm(t);if(!s.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(s.loaded,s.missing,s.pending,su)}),()=>{l=!1}}const i=Object.create(null),o=[];let r,a;return s.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===r)return;r=c,a=u,o.push(is(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),s.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=is(c,u),d=f.pendingIcons||(f.pendingIcons=new Set);d.has(h)||(d.add(h),i[c][u].push(h))}),o.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&vm(l,i[c][u])}),e?om(e,s,o):su};function bm(n,e){const t={...n};for(const s in e){const i=e[s],o=typeof i;s in Gc?(i===null||i&&(o==="string"||o==="number"))&&(t[s]=i):o===typeof t[s]&&(t[s]=s==="rotate"?i%4:i)}return t}const _m=/[\s,]+/;function xm(n,e){e.split(_m).forEach(t=>{switch(t.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0;break}})}function wm(n,e=0){const t=n.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(t===""){const i=parseInt(n);return isNaN(i)?0:s(i)}else if(t!==n){let i=0;switch(t){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(n.slice(0,n.length-t.length));return isNaN(o)?0:(o=o/i,o%1===0?s(o):0)}}return e}function Cm(n,e){let t=n.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)t+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+n+"</svg>"}function Sm(n){return n.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Em(n){return"data:image/svg+xml,"+Sm(n)}function km(n){return'url("'+Em(n)+'")'}const iu={...jc,inline:!1},Tm={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pm={display:"inline-block"},zr={backgroundColor:"currentColor"},ou={backgroundColor:"transparent"},ru={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},au={webkitMask:zr,mask:zr,background:ou};for(const n in au){const e=au[n];for(const t in ru)e[n+t]=ru[t]}const to={};["horizontal","vertical"].forEach(n=>{const e=n.slice(0,1)+"Flip";to[n+"-flip"]=e,to[n.slice(0,1)+"-flip"]=e,to[n+"Flip"]=e});function lu(n){return n+(n.match(/^[-0-9.]+$/)?"px":"")}const cu=(n,e)=>{const t=bm(iu,e),s={...Tm},i=e.mode||"svg",o={},r=e.style,a=typeof r=="object"&&!(r instanceof Array)?r:{};for(let v in e){const b=e[v];if(b!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":t[v]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&xm(t,b);break;case"color":o.color=b;break;case"rotate":typeof b=="string"?t[v]=wm(b):typeof b=="number"&&(t[v]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete s["aria-hidden"];break;default:{const E=to[v];E?(b===!0||b==="true"||b===1)&&(t[E]=!0):iu[v]===void 0&&(s[v]=b)}}}const l=Hp(n,t),c=l.attributes;if(t.inline&&(o.verticalAlign="-0.125em"),i==="svg"){s.style={...o,...a},Object.assign(s,c);let v=0,b=e.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),s.innerHTML=Xp(l.body,b?()=>b+"ID"+v++:"iconifyVue"),Xe("svg",s)}const{body:u,width:h,height:f}=n,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=Cm(u,{...c,width:h+"",height:f+""});return s.style={...o,"--svg":km(m),width:lu(c.width),height:lu(c.height),...Pm,...d?zr:ou,...a},Xe("span",s)};if(zc(!0),qp("",tm),typeof document<"u"&&typeof window<"u"){nu();const n=window;if(n.IconifyPreload!==void 0){const e=n.IconifyPreload,t="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Vp(s))&&console.error(t)}catch{console.error(t)}})}if(n.IconifyProviders!==void 0){const e=n.IconifyProviders;if(typeof e=="object"&&e!==null)for(let t in e){const s="IconifyProviders["+t+"] is invalid.";try{const i=e[t];if(typeof i!="object"||!i||i.resources===void 0)continue;Kp(t,i)||console.error(s)}catch{console.error(s)}}}}const Om={...Zi,body:""},uu=oe({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(n,e){if(typeof n=="object"&&n!==null&&typeof n.body=="string")return this._name="",this.abortLoading(),{data:n};let t;if(typeof n!="string"||(t=Xi(n,!1,!0))===null)return this.abortLoading(),null;const s=Mp(t);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==n)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:n,abort:ym([t],()=>{this.counter++})})),null;this.abortLoading(),this._name!==n&&(this._name=n,e&&e(n));const i=["iconify"];return t.prefix!==""&&i.push("iconify--"+t.prefix),t.provider!==""&&i.push("iconify--"+t.provider),{data:s,classes:i}}},render(){this.counter;const n=this.$attrs,e=this.iconMounted||n.ssr?this.getIcon(n.icon,n.onLoad):null;if(!e)return cu(Om,n);let t=n;return e.classes&&(t={...n,class:(typeof n.class=="string"?n.class+" ":"")+e.classes.join(" ")}),cu({...Zi,...e.data},t)}}),hu=(n,e="image/svg+xml",t="utf-8")=>t==="base64"?new Blob([n],{type:`${e};${t}`}):new Blob([n],{type:`${e};charset=${t}`}),du=n=>new XMLSerializer().serializeToString(n),Im=(n,e="image/svg+xml",t="utf-8")=>hu(du(n),e,t),fu=(n,e)=>new Promise(t=>{const s=document.createElement("a");s.style.visibility="hidden",document.body.appendChild(s),s.download=e,typeof n=="string"?s.href=n:s.href=window.URL.createObjectURL(n),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(s.href),t()});function Dm(n=["*"],e){return new Promise((t,s)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return s(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(n)&&n.length>0&&i.setAttribute("accept",n.join(",")),e&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&s(new Error("Cancel select"))},1e3)},{once:!0});const o=()=>{if(i.removeEventListener("change",o),!i.files||i.files?.length===0)s(new Error("Cancel select"));else{const r=Array.from(i.files);!n.includes("*")&&r.some(a=>!n.includes(`.${$m(a)}`))&&s(new Error(`Please select files in ${n} format`)),i.remove(),t(r)}};i.addEventListener("change",o),i.click()})}function Nm(n,e="text",t){return new Promise((s,i)=>{const o=new FileReader;switch(o.addEventListener("progress",r=>{t?.(r.loaded,r.total)}),o.addEventListener("load",r=>{s(r.target?.result)}),o.addEventListener("error",r=>{i(r)}),e){case"dataURL":o.readAsDataURL(n);break;case"binaryString":o.readAsBinaryString(n);break;case"arrayBuffer":o.readAsArrayBuffer(n);break;case"text":default:o.readAsText(n)}})}const $m=n=>{let e;return n instanceof File?e=n.name:e=n,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function no(){const n=document.documentElement;return{clientWidth:n.clientWidth,clientHeight:n.clientHeight,clientTop:n.clientTop,clientLeft:n.clientLeft,scrollWidth:n.scrollWidth,scrollHeight:n.scrollHeight,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,offsetWidth:n.offsetWidth,offsetHeight:n.offsetHeight,offsetTop:n.offsetTop,offsetLeft:n.offsetLeft,offsetParent:n.offsetParent,clientX:n.getBoundingClientRect().x,clientY:n.getBoundingClientRect().y}}function Gr(){const{clientWidth:n,clientHeight:e}=no();return{width:n||window.innerWidth,height:e||window.innerHeight}}function Am(n){const{top:e,left:t}=n.getBoundingClientRect(),{scrollLeft:s,scrollTop:i}=no();return{x:t+s,y:e+i}}function Mm(){const{clientHeight:n,scrollTop:e,scrollHeight:t}=no(),s=t-n;return s<=0?0:e/s*100}function Rm(n){if("center"in n)return n.center;if(n.pageX&&n.pageY)return{x:n.pageX,y:n.pageY};const{scrollLeft:e,scrollTop:t}=no();return{x:n.clientX+e,y:n.clientY+t}}function Vm(n,e){const t=Rm(e),s=Am(n);return{x:t.x-s.x,y:t.y-s.y}}function pu(){return typeof window<"u"?window:this||{}}const Lm=()=>{const n=navigator.userAgent.toLowerCase();let e="Unknown";return/mac/i.test(n)?e="macOS":/win/i.test(n)?e="Windows":/android/i.test(n)?e="Android":/iphone|ipad|ipod/i.test(n)?e="iOS":/linux/i.test(n)?e="Linux":/bsd/i.test(n)&&(e="BSD"),e.toLowerCase()};function Fm(){return Lm()==="macos"}function zm(){const n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0)return parseInt(n.substring(e+5,n.indexOf(".",e)),10);if(n.indexOf("Trident/")>0){const i=n.indexOf("rv:");return parseInt(n.substring(i+3,n.indexOf(".",i)),10)}const s=n.indexOf("Edge/");return s>0?parseInt(n.substring(s+5,n.indexOf(".",s)),10):-1}const jr=zm()!==-1;(()=>{const n=pu();return!!(n.Worker&&n.Blob&&n.Promise&&n.OffscreenCanvas&&n.OffscreenCanvasRenderingContext2D&&n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype.transferControlToOffscreen&&n.URL&&n.URL.createObjectURL)})(),function(){if(!pu().OffscreenCanvas)return!1;const e=new OffscreenCanvas(1,1),t=e.getContext("2d");t.fillRect(0,0,1,1);const s=e.transferToImageBitmap();try{t.createPattern(s,"no-repeat")}catch{return!1}return!0}();function Gm(n){const e=document.documentElement,t=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=t;let s=100;const i=function(){const o=Math.min(e.clientWidth,n);e.dataset.width=o,e.dataset.rem=s=Math.round(100*(o/n)),e.style.fontSize=s+"px"};i(),window.rem2px=function(o){return o=parseFloat(o),o*s},window.px2rem=function(o){return o=parseFloat(o),o/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}function It(n){return n*Math.PI/180}function Pt(n){return n*180/Math.PI}function mu(n,e,t=0){return Math.sqrt(n*n+e*e+t*t)}function Br(n,e,t,s){const i=n-t,o=e-s;return mu(i,o)}function Hr(n,e,t,s){const i=t-n,o=s-e;let r=Math.atan2(o,i);return r<0&&(r+=Math.PI*2),r}function os(n,e){return{x:Math.cos(n)*e,y:Math.sin(n)*e}}const gu=[1,0,0,1,0,0],vu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class St{value;matrix3d;isEverTo3d=!1;constructor(e=gu){this.value=Array.from(e),this.matrix3d=this.toMatrix3D()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return 0}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return 0}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return 1}toMatrix3D(e=this.matrix3d){const t=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return e?(e.value=t,e):new bs(t)}unit(){return this.value=Array.from(gu),this.matrix3d=this.toMatrix3D(),this}multiplyPoint(e,t,s=0,i=0){const o=e-s,r=t-i;return e=this.m11*o+this.m21*r+this.m31,t=this.m12*o+this.m22*r+this.m32,{x:e+s,y:t+i}}fromString(e){const t=Sc("number",e);return t.length===6?t.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}clone(){return new St(this.value)}multiply(e){const t=this.value;let s;e instanceof St?s=e.value:s=e;const i=t[0]*s[0]+t[2]*s[1],o=t[1]*s[0]+t[3]*s[1],r=t[0]*s[2]+t[2]*s[3],a=t[1]*s[2]+t[3]*s[3],l=t[0]*s[4]+t[2]*s[5]+t[4],c=t[1]*s[4]+t[3]*s[5]+t[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=l,t[5]=c,this}inverse(){const e=new St(this.value),t=e.value,s=1/(t[0]*t[3]-t[1]*t[2]),i=t[3]*s,o=-t[1]*s,r=-t[2]*s,a=t[0]*s,l=s*(t[2]*t[5]-t[3]*t[4]),c=s*(t[1]*t[4]-t[0]*t[5]);return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=l,t[5]=c,e}offset(e=0,t=0){return{x:e-this.m31,y:t-this.m32}}translate(e,t){return this.multiply([1,0,0,1,e,t]),this.toMatrix3D(),this}translateTo(e,t){const s=this.offset(e,t);return this.translate(s.x,s.y)}translateX(e){return this.translate(e,0)}translateXTo(e){return this.translateTo(e,this.m32)}translateY(e){return this.translate(0,e)}translateYTo(e){return this.translateTo(this.m31,e)}translateZ(e){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,e),this.matrix3d.toMatrix(this),this}translateZTo(e){return this.translateZ(e-this.matrix3d.m43),this}translate3d(e,t,s){return this.isEverTo3d=!0,this.matrix3d.translate(e,t,s),this.matrix3d.toMatrix(this),this}translate3dTo(e,t,s){return this.translate3d(e-this.matrix3d.m41,t-this.matrix3d.m42,s-this.matrix3d.m43),this}rotate(e,t=0,s=0){const i=It(e),o=Math.cos(i),r=Math.sin(i);return this.multiply([o,r,-r,o,t,s]),this.translate(-t,-s),this.toMatrix3D(),this}rotateTo(e,t=0,s=0){const{rotateZ:i}=this.matrix3d.split();return this.rotate(e-i,t,s),this}rotateX(e){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e),this.matrix3d.toMatrix(this),this}rotateXTo(e){const{rotateX:t}=this.matrix3d.split();return this.rotateX(e-t),this}rotateY(e){return this.isEverTo3d=!0,this.matrix3d.rotate("y",e),this.matrix3d.toMatrix(this),this}rotateYTo(e){const{rotateY:t}=this.matrix3d.split();return this.rotateY(e-t),this}rotateZ(e){return this.isEverTo3d=!0,this.matrix3d.rotate("z",e),this.matrix3d.toMatrix(this),this}rotateZTo(e){const{rotateZ:t}=this.matrix3d.split();return this.rotateZ(e-t),this}rotate3d(e,t,s){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e).rotate("y",t).rotate("z",s),this.matrix3d.toMatrix(this),this}rotate3dTo(e,t,s){const{rotateX:i,rotateY:o,rotateZ:r}=this.matrix3d.split();return this.rotate3d(e-i,t-o,s-r),this}scale(e,t=e,s=0,i=0){return this.translate(s,i),this.multiply([e,0,0,t,0,0]),this.translate(-s,-i),this.toMatrix3D(),this}scaleTo(e,t=e,s=0,i=0){return this.scale(e/this.m11,t/this.m22,s,i)}scaleX(e){return this.scale(e,1)}scaleXTo(e){return this.scale(e/this.m11,1)}scaleY(e){return this.scale(1,e)}scaleYTo(e){return this.scale(1,e/this.m22)}scaleZ(e){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,e),this.matrix3d.toMatrix(this),this}scaleZTo(e){const{scaleZ:t}=this.matrix3d.split();return this.scaleZ(e/t),this}scale3d(e,t=e,s=e){return this.isEverTo3d=!0,this.matrix3d.scale(e,t,s),this.matrix3d.toMatrix(this),this}scale3dTo(e,t=e,s=e){const{scaleX:i,scaleY:o,scaleZ:r}=this.matrix3d.split();return this.scale3d(e/i,t/o,s/r),this}skew(e,t=e){const s=Math.tan(It(e)),i=Math.tan(It(t));return this.multiply([1,i,s,1,0,0]),this.toMatrix3D(),this}skewTo(e,t=e){return this.skew(e-Pt(this.m21),t-Pt(this.m12))}skewX(e){return this.skew(e,Pt(this.m12))}skewXTo(e){return this.skewTo(e,Pt(this.m12))}skewY(e){return this.skew(Pt(this.m21),e)}skewYTo(e){return this.skewTo(Pt(this.m21),e)}skewZ(e){return this}skewZTo(e){return this}skew3d(e,t,s){return this}skew3dTo(e,t,s){return this}getGroupCoords(e){const t=this.value[0],s=this.value[1],i=this.value[2],o=this.value[3],r=this.value[4],a=this.value[5],l=e.value[0],c=e.value[1],u=e.value[2],h=e.value[3],f=e.value[4],d=e.value[5],m=l*h,v=c*u,b=(u*s-t*h)/(v-m),E=(l*s-t*c)/(m-v),I=(u*o-i*h)/(v-m),N=(l*o-i*c)/(m-v),k=(u*(a-d)+h*(f-r))/(v-m),B=(l*(a-d)+c*(f-r))/(m-v),R=[b,E,I,N,k,B];return new St(R)}toString(){return this.isEverTo3d?this.matrix3d.toString():`matrix(${this.value.map(e=>Mt(e,6)).join(",")})`}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class bs{value;constructor(e=vu){this.value=Array.from(e)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}unit(){return this.value=Array.from(vu),this}fromString(e){const t=Sc("number",e);return t.length===16?t.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(e){const{scaleX:t,scaleY:s,skewX:i,skewY:o,x:r,y:a}=this.split(),l=[t,o,i,s,r,a];return e?(e.value=l,e):new St(l)}multiplyMatrix(e){const t=e.value[0],s=e.value[1],i=e.value[2],o=e.value[3],r=t*this.m11+s*this.m21+i*this.m31+o*this.m41,a=t*this.m12+s*this.m22+i*this.m32+o*this.m42,l=t*this.m13+s*this.m23+i*this.m33+o*this.m43,c=t*this.m14+s*this.m24+i*this.m34+o*this.m44;return new St([r,a,l,c,0,0])}multiply(e){const t=new St([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),s=new St([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),i=new St([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),o=new St([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),r=this.multiplyMatrix(t),a=this.multiplyMatrix(s),l=this.multiplyMatrix(i),c=this.multiplyMatrix(o);return this.value[0]=r.value[0],this.value[1]=r.value[1],this.value[2]=r.value[2],this.value[3]=r.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=l.value[0],this.value[9]=l.value[1],this.value[10]=l.value[2],this.value[11]=l.value[3],this.value[12]=c.value[0],this.value[13]=c.value[1],this.value[14]=c.value[2],this.value[15]=c.value[3],this}translate(e=0,t=0,s=0){return this.multiply(new bs([1,0,0,0,0,1,0,0,0,0,1,0,e,t,s,1]))}scale(e=1,t=1,s=1){return this.multiply(new bs([e,0,0,0,0,t,0,0,0,0,s,0,0,0,0,1]))}rotate(e,t){const s=It(t),i=Math.sin,o=Math.cos;let r;switch(e){case"x":r=[1,0,0,0,0,o(s),i(s),0,0,-i(s),o(s),0,0,0,0,1];break;case"y":r=[o(s),0,-i(s),0,0,1,0,0,i(s),0,o(s),0,0,0,0,1];break;case"z":r=[o(s),i(s),0,0,-i(s),o(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new bs(r))}toString(){return`matrix3d(${this.value.map(e=>Mt(e,6)).join(",")})`}split(){let e=Pt(Yt(Math.asin(-this.m13),-1,1)),t=Pt(Math.atan2(this.m23,this.m33)),s=Pt(Math.atan2(this.m12,this.m11));return Math.cos(e)===0&&(t=Pt(Math.atan2(-this.m31,this.m22)),s=0),{x:this.m41,y:this.m42,z:this.m43,rotateX:t,rotateY:e,rotateZ:s,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),scaleZ:Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),skewX:Pt(this.m14),skewY:Pt(this.m24),skewZ:Pt(this.m34),skewW:this.m44}}inverse(){const e=[],t=this.m11,s=this.m12,i=this.m13,o=this.m14,r=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,d=this.m34,m=this.m41,v=this.m42,b=this.m43,E=this.m44;e[0]=l*d*v-c*f*v+c*h*b-a*d*b-l*h*E+a*f*E,e[1]=o*f*v-i*d*v-o*h*b+s*d*b+i*h*E-s*f*E,e[2]=i*c*v-o*l*v+o*a*b-s*c*b-i*a*E+s*l*E,e[3]=o*l*h-i*c*h-o*a*f+s*c*f+i*a*d-s*l*d;const I=t*e[0]+r*e[1]+u*e[2]+m*e[3];if(I==0)return console.warn("Can't invert matrix, determinant is 0");e[4]=c*f*m-l*d*m-c*u*b+r*d*b+l*u*E-r*f*E,e[5]=i*d*m-o*f*m+o*u*b-t*d*b-i*u*E+t*f*E,e[6]=o*l*m-i*c*m-o*r*b+t*c*b+i*r*E-t*l*E,e[7]=i*c*u-o*l*u+o*r*f-t*c*f-i*r*d+t*l*d,e[8]=a*d*m-c*h*m+c*u*v-r*d*v-a*u*E+r*h*E,e[9]=o*h*m-s*d*m-o*u*v+t*d*v+s*u*E-t*h*E,e[10]=s*c*m-o*a*m+o*r*v-t*c*v-s*r*E+t*a*E,e[11]=o*a*u-s*c*u-o*r*h+t*c*h+s*r*d-t*a*d,e[12]=l*h*m-a*f*m-l*u*v+r*f*v+a*u*b-r*h*b,e[13]=s*f*m-i*h*m+i*u*v-t*f*v-s*u*b+t*h*b,e[14]=i*a*m-s*l*m-i*r*v+t*l*v+s*r*b-t*a*b,e[15]=s*l*u-i*a*u+i*r*h-t*l*h-s*r*f+t*a*f,this.value=e;const N=1/I;this.value.map(k=>k*N)}}function yu(n){const e=new St;return n.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(t,s,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const o=[];for(let r=0,a=i.length;r<a;r++)i[r].trim()&&o.push(parseFloat(""+i[r]));switch(s.toLowerCase()){case"t":case"translate":e.translate(o[0],o[1]);break;case"translatex":e.translateX(o[0]);break;case"translatey":e.translateY(o[0]);break;case"translatez":e.translateZ(o[0]);break;case"translate3d":e.translate3d(o[0],o[1],o[2]);break;case"r":case"rotate":e.rotate(o[0],o[1]??0,o[2]??0);break;case"rotatex":e.rotateX(o[0]);break;case"rotatey":e.rotateY(o[0]);break;case"rotatez":e.rotateZ(o[0]);break;case"rotate3d":e.rotate3d(o[0],o[1],o[2]);break;case"s":case"scale":e.scale(o[0],o[1]??o[0]);break;case"scalex":e.scaleX(o[0]);break;case"scaley":e.scaleY(o[0]);break;case"scalez":e.scaleZ(o[0]);break;case"scale3d":e.scale3d(o[0],o[1],o[2]);break;case"skew":e.skew(o[0],o[1]??0);break;case"skewx":e.skewX(o[0]);break;case"skewy":e.skewY(o[0]);break;case"skewz":e.skewZ(o[0]);break;case"skew3d":e.skew3d(o[0],o[1],o[2]);break;case"m":case"matrix":e.multiply([o[0],o[1],o[2],o[3],o[4],o[5]]),e.toMatrix3D();break;case"matrix3d":e.matrix3d.multiply(new bs(o)),e.matrix3d.toMatrix(e);break}return""}),e}function rs(n,e,t,s=0,i=0){const o=new St;return o.rotate(Pt(n),s,i),o.multiplyPoint(e,t,s,i)}class Z{static onDocumentReady(e){let t=!1;function s(){document.readyState==="loading"||t||(t=!0,e(),document.removeEventListener("DOMContentLoaded",s))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",s),s())}static onBeforeUnload(e){function t(){e(),document.removeEventListener("beforeunload",t)}typeof document<"u"&&document.addEventListener("beforeunload",t)}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,t){document.documentElement.style.setProperty(e,t)}static add3DSupport(e,t="1000px"){if(e.parentElement){const s=Z.getStyle(e.parentElement,"position");Z.setStyle(e.parentElement,{position:s=="static"?"relative":s,perspective:t})}Z.setStyle(e,{"transform-style":"preserve-3d"})}static convertAttrs(e,t,s={}){s.hasOwnProperty("transform")||Object.assign(s,{transform:Z.getStyle(e,"transform")||""});const i=yu(s.transform),o={};for(let r in t){const a=t[r];switch(r){case"transform":break;case"translate":i.translate(a[0]||0,a[1]||0);break;case"translateTo":i.translateTo(a[0]||0,a[1]||0);break;case"translateX":i.translateX(a||0);break;case"translateXTo":i.translateXTo(a||0);break;case"translateY":i.translateY(a||0);break;case"translateYTo":i.translateYTo(a||0);break;case"translateZ":i.translateZ(a||0);break;case"translateZTo":i.translateZTo(a||0);break;case"translate3d":i.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":i.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?i.rotate(a||0):i.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?i.rotateTo(a||0):i.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":i.rotateX(a||0);break;case"rotateXTo":i.rotateXTo(a||0);break;case"rotateY":i.rotateY(a||0);break;case"rotateYTo":i.rotateYTo(a||0);break;case"rotateZ":i.rotateZ(a||0);break;case"rotateZTo":i.rotateZTo(a||0);break;case"rotate3d":i.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":i.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?i.scale(a||1):i.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?i.scaleTo(a||1):i.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":i.scaleX(a||1);break;case"scaleXTo":i.scaleXTo(a||1);break;case"scaleY":i.scaleY(a||1);break;case"scaleYTo":i.scaleYTo(a||1);break;case"scaleZ":i.scaleZ(a||1);break;case"scaleZTo":i.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?i.scale3d(a||1):i.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?i.scale3dTo(a||1):i.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?i.skew(a||0):i.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?i.skewTo(a||0):i.skewTo(a[0]||0,a[1]||0);break;case"skewX":i.skewX(a||0);break;case"skewXTo":i.skewXTo(a||0);break;case"skewY":i.skewY(a||0);break;case"skewYTo":i.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;default:s.hasOwnProperty(r)||(s[r]=Z.getStyle(e,r)),Object.assign(o,{[r]:`${a}`});break}}return Object.assign(o,{transform:i.toString()}),o}static attrsToCanvas(e,t){for(const s in t){const i=t[s];switch(Lt(s)){case"fill":i!=="none"&&(e.fillStyle=i);break;case"stroke":i!=="none"&&(e.strokeStyle=i);break;case"stroke-width":e.lineWidth=Number(i);break;case"stroke-linecap":e.lineCap=i;break;case"stroke-linejoin":switch(i){case"round":case"bevel":case"miter":e.lineJoin=i;break;default:e.lineJoin="miter";break}break;case"stroke-miterlimit":e.miterLimit=Number(i);break;case"stroke-opacity":break;case"stroke-dashoffset":e.lineDashOffset=Number(i);break;case"stroke-dasharray":e.setLineDash(i.split(/\s+/).map(o=>Number(o)));break;case"cursor":break;case"font":e.font=i;break;case"font-size":e.font+=` ${i}`;break;case"font-family":e.font+=` ${i}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(i){case"middle":e.textAlign="center";break;case"end":e.textAlign="end";break;case"start":e.textAlign="start";break}break;case"alignment-baseline":switch(i){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":e.textBaseline=i;break;default:e.textBaseline="alphabetic";break}break}}}static getStyle(e,t,s){const i=e;if(getComputedStyle)if(t){t=Lt(t);const o=getComputedStyle(i,s).getPropertyPriority(t);return getComputedStyle(i,s).getPropertyValue(t).trim()+(o?"!"+o:"")}else{const o=[],r=getComputedStyle(i,"");for(let a=0;a<r.length;a++)o.push(r[a]+":"+r.getPropertyValue(r[a]));return o.push(...(i.style.cssText||"").split(";")),Object.fromEntries(o.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(e.currentStyle){if(t)return t=Tc(t),e.currentStyle[t];{const o=[],r=i.currentStyle;for(let a in r)o.push(a+":"+r[a]);return o.push(...(i.style.cssText||"").split(";")),Object.fromEntries(o.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(e,t,s){if(typeof t=="string"&&s){const i=String(s).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Lt(t),s.replace(/!important/i,""),i)}else t instanceof Object&&Object.keys(t).forEach(i=>{const o=String(t[i]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Lt(i),String(t[i]).replace(/!important/i,""),o)})}static setStyleSheet(e,t){let s;if(typeof t=="string"){const o=document.querySelector(t)?.shadowRoot;o?s=o:s=document.querySelector(t)}else s=t;const i=document.createElement("style");if(i.innerHTML=e,s)return s.appendChild(i),()=>{(s instanceof HTMLElement||s instanceof ShadowRoot)&&s.removeChild(i)};{const o=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(o)}}}static toggleClass(e,t,s="toggle"){t.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&e.classList[s](i.trim())})}static addClass(e,t){this.toggleClass(e,t,"add")}static removeClass(e,t){this.toggleClass(e,t,"remove")}static hasClass(e,t){return t.split(/[,\s]+/).every(s=>s.trim()!==""?Array.from(e.classList||[]).includes(s.trim()):!0)}static toggleDisplay(e,t){this.getStyle(e,"display")=="none"&&t===void 0||t===!0?e.style.setProperty("display",e instanceof HTMLTableRowElement?"table-row":e instanceof HTMLTableCellElement?"table-cell":"block"):e.style.setProperty("display","none")}static show(e){this.toggleDisplay(e,!0)}static hide(e){this.toggleDisplay(e,!1)}static attribute(e,t,s){let i={};if(t===void 0&&s===void 0){for(let o=0,r=e.attributes,a=r.length;o<a;o++){const l=r[o];l.nodeName&&l.nodeValue&&(i[l.nodeName]=l.nodeValue)}return i}if(typeof t=="string"&&s===void 0)return e.getAttribute(Lt(t));typeof t=="object"?i=t:typeof t=="string"&&s!==void 0&&(i[t]=s),Object.entries(i).forEach(([o,r])=>{e.setAttribute(Lt(o),r)})}static removeAttribute(e,t){t.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&e.removeAttribute(s.trim())})}static fixProp(e){const t={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return t[e]?t[e]:e}static prop(e,t,s){if(s===void 0&&typeof t=="string")return e[t];{let i={};typeof t=="object"?i=t:typeof t=="string"&&s!==void 0&&(i[t]=s),Object.entries(i).forEach(([o,r])=>{const a=this.fixProp(o);e[a]=r,a=="innerHTML"&&this.scriptConvert(e)})}}static removeProp(e,t){t.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e[this.fixProp(s.trim())]})}static data(e,t,s){if(typeof t=="string"&&(t=Tc(t)),(typeof t=="string"||t===void 0)&&s===void 0){const i=Object.assign({},e.dataset);return Object.keys(i).forEach(o=>{if(i[o]?.startsWith("[")||i[o]?.startsWith("{"))try{i[o]=JSON.parse(i[o]||"")}catch{}}),typeof t=="string"?i[t]:i}else{let i={};typeof t=="object"?i=t:typeof t=="string"&&(i[t]=s),Object.entries(i).forEach(([o,r])=>{r!=null?e.dataset[o]=r instanceof Object?JSON.stringify(r):r:delete e.dataset[o]})}}static removeData(e,t){t.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e.dataset[s.trim()]})}static empty(e){this.html(e,"")}static html(e,t){t instanceof HTMLElement||t instanceof SVGElement?this.insert(e,t,"replaceWith"):this.prop(e,"innerHTML",t)}static text(e,t){return this.prop(e,"textContent",t)}static value(e,t){return this.prop(e,"value",t)}static dispatchEvent(e,t,s){let i;const o=["click","dblclick","mousedown","mouseup","mousemove"],r=["keydown","keyup","keypress"];typeof t=="string"?o.includes(t)?i=new MouseEvent(t,s):r.includes(t)?i=new KeyboardEvent(t,s):i=new Event(t,s):i=t,e.dispatchEvent(i)}static scriptConvert(e){const t=s=>{const o=s.ownerDocument.createElement("script");o.text=s.text;const r=s.attributes;for(let a=0;a<r.length;a++)o.setAttribute(r[a].name,r[a].value);return o};return e.tagName=="SCRIPT"&&(e=t(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(t(s),s)}),e}static fragment(e){const t=document.createElement("template");return t.innerHTML=e,t.content.childNodes.forEach(s=>{const i=this.scriptConvert(s);i!=s&&t.content.replaceChild(i,s)}),t.content}static insert(e,t,s="append"){return typeof t=="string"?e[s](this.fragment(t)):(t instanceof HTMLElement||t instanceof SVGElement)&&e[s](t),this}static createElement(e){return document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static remove(e){return e.remove()}static siblings=e=>Array.prototype.slice.call(e.parentElement?.children).filter(t=>t!==e);static nextElementSibling(e){return e.nextElementSibling}static previousElementSibling(e){return e.previousElementSibling}static closest(e,t){return e.closest(t)}static shadowRoot(e){return e.shadowRoot}static parentElement=e=>e.parentElement;static changeSelectSelected(e,t){if(e instanceof HTMLSelectElement){const s=e.options;for(let i=0,o=s.length;i<o;i++)s[i].value==t?s[i].selected=!0:s[i].selected=!1}}static changeRadioChecked(e,t){e instanceof HTMLInputElement&&(e.value==t?e.checked=!0:e.checked=!1)}static entity2text(e){const t={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let s;return e.charAt(0)=="#"?e.charAt(1).toLowerCase()=="x"?s=parseInt(e.substring(2),16):s=parseInt(e.substring(1),10):s=t[e],s?String.fromCharCode(s):"&"+e}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const t=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length||0;const i=()=>s>=t.length?(e(),!0):!1;i()||t.forEach(o=>{o.onload=()=>{s+=1,i()}})});static loadScript(e,t=()=>{},s=(i,o,r,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=e,i.async=!1,i.onload=t,i.onerror=s,document.body.appendChild(i)}static runInSafe(e){const t=new Proxy(window,{get(s,i,o){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?t:Reflect.get(s,i,o)},set(s,i,o,r){return Reflect.set(s,i,o,r)}});new Function("window",`with(window) { ${e} }`)(t,null)}static dom=new Proxy({},{get(e,t){return function(s={},...i){const o=document.createElement(t);for(const r of Object.keys(s))o.setAttribute(r,s[r]);for(const r of i)typeof r=="string"?o.appendChild(document.createTextNode(r)):o.appendChild(r);return o}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
41
41
  let output = "";
42
42
  function echo(html){
43
43
  output += html;
44
44
  }
45
45
  ${e}
46
46
  return output;
47
- })`}static escape(e,t="encode"){const s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e=e.replace(new RegExp(t=="encode"?i:s[i],"g"),t=="encode"?s[i]:i));return e}static getInnerText=e=>{let t=e.innerText;if(!t){const s=e.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!t&&i<=s.length-1;)"innerText"in s[i]&&(t=s[i].innerText),i++}return t};static copyToClipboard=e=>new Promise((t,s)=>{if(navigator.clipboard)navigator.clipboard.writeText(e).then(t).catch(s);else{const i=document.createElement("textarea");i.value=e,i.style.opacity="0",i.style.top="0",i.style.left="0",i.style.position="fixed",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")?t():s()}catch(o){s(o)}document.body.removeChild(i)}});static scrollTo=(e,t)=>window.scrollTo(e,t);static setScrollRestoration(e){try{window.history.scrollRestoration=e}catch{}}static getLocation(){return new Promise((e,t)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(s=>{e(s.coords)}):t("Geolocation is not supported by this browser")})}static vibrate(e=200){"vibrate"in navigator?window.navigator.vibrate(e):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=e=>e===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(e,t="http://test.com/localstorage.html"){const s=document.createElement("iframe");s.src=t,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(e,t)},4e3),setTimeout(function(){s.remove()},6e3)}static measureText=(e,t=12,s=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=t>12?t+"px":"12px",i.style.fontWeight=s.toString(),i.innerText=e,document.body.appendChild(i);const o=i.offsetWidth;return document.body.removeChild(i),o};static getFixedWidthText=(e,t,s=12,i=400,o=!0)=>{let r="";if(!e||t<s)return r;const a=e.split(""),l="...";let c=o?Q.measureText(l,s,i):0;for(let u=0,h=a.length;u<h;u++)if(c+=Q.measureText(a[u],s,i),c>t){o&&(r+=l);break}else r+=a[u];return r}}function Im(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lu={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
47
+ })`}static escape(e,t="encode"){const s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e=e.replace(new RegExp(t=="encode"?i:s[i],"g"),t=="encode"?s[i]:i));return e}static getInnerText=e=>{let t=e.innerText;if(!t){const s=e.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!t&&i<=s.length-1;)"innerText"in s[i]&&(t=s[i].innerText),i++}return t};static copyToClipboard=e=>new Promise((t,s)=>{if(navigator.clipboard)navigator.clipboard.writeText(e).then(t).catch(s);else{const i=document.createElement("textarea");i.value=e,i.style.opacity="0",i.style.top="0",i.style.left="0",i.style.position="fixed",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")?t():s()}catch(o){s(o)}document.body.removeChild(i)}});static scrollTo=(e,t)=>window.scrollTo(e,t);static setScrollRestoration(e){try{window.history.scrollRestoration=e}catch{}}static getLocation(){return new Promise((e,t)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(s=>{e(s.coords)}):t("Geolocation is not supported by this browser")})}static vibrate(e=200){"vibrate"in navigator?window.navigator.vibrate(e):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=e=>e===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(e,t="http://test.com/localstorage.html"){const s=document.createElement("iframe");s.src=t,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(e,t)},4e3),setTimeout(function(){s.remove()},6e3)}static measureText=(e,t=12,s=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=t>12?t+"px":"12px",i.style.fontWeight=s.toString(),i.innerText=e,document.body.appendChild(i);const o=i.offsetWidth;return document.body.removeChild(i),o};static getFixedWidthText=(e,t,s=12,i=400,o=!0)=>{let r="";if(!e||t<s)return r;const a=e.split(""),l="...";let c=o?Z.measureText(l,s,i):0;for(let u=0,h=a.length;u<h;u++)if(c+=Z.measureText(a[u],s,i),c>t){o&&(r+=l);break}else r+=a[u];return r}}function jm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var bu={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
48
48
  * http://hammerjs.github.io/
49
49
  *
50
50
  * Copyright (c) 2016 Jorik Tangelder;
51
- * Licensed under the MIT license */(function(n){(function(e,t,s,i){var o=["","webkit","Moz","MS","ms","o"],r=t.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,g,b){return setTimeout(P(p,b),g)}function d(p,g,b){return Array.isArray(p)?(f(p,b[g],b),!0):!1}function f(p,g,b){var I;if(p)if(p.forEach)p.forEach(g,b);else if(p.length!==i)for(I=0;I<p.length;)g.call(b,p[I],I,p),I++;else for(I in p)p.hasOwnProperty(I)&&g.call(b,p[I],I,p)}function m(p,g,b){var I="DEPRECATED METHOD: "+g+`
52
- `+b+` AT
53
- `;return function(){var X=new Error("get-stack-trace"),he=X&&X.stack?X.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Ve=e.console&&(e.console.warn||e.console.log);return Ve&&Ve.call(e.console,I,he),p.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(g){if(g===i||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(g),I=1;I<arguments.length;I++){var X=arguments[I];if(X!==i&&X!==null)for(var he in X)X.hasOwnProperty(he)&&(b[he]=X[he])}return b}:y=Object.assign;var _=m(function(g,b,I){for(var X=Object.keys(b),he=0;he<X.length;)(!I||I&&g[X[he]]===i)&&(g[X[he]]=b[X[he]]),he++;return g},"extend","Use `assign`."),C=m(function(g,b){return _(g,b,!0)},"merge","Use `assign`.");function k(p,g,b){var I=g.prototype,X;X=p.prototype=Object.create(I),X.constructor=p,X._super=I,b&&y(X,b)}function P(p,g){return function(){return p.apply(g,arguments)}}function D(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function U(p,g){return p===i?g:p}function F(p,g,b){f(Ce(g),function(I){p.addEventListener(I,b,!1)})}function H(p,g,b){f(Ce(g),function(I){p.removeEventListener(I,b,!1)})}function ve(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function be(p,g){return p.indexOf(g)>-1}function Ce(p){return p.trim().split(/\s+/g)}function De(p,g,b){if(p.indexOf&&!b)return p.indexOf(g);for(var I=0;I<p.length;){if(b&&p[I][b]==g||!b&&p[I]===g)return I;I++}return-1}function ye(p){return Array.prototype.slice.call(p,0)}function Ne(p,g,b){for(var I=[],X=[],he=0;he<p.length;){var Ve=g?p[he][g]:p[he];De(X,Ve)<0&&I.push(p[he]),X[he]=Ve,he++}return b&&(g?I=I.sort(function(bt,It){return bt[g]>It[g]}):I=I.sort()),I}function Le(p,g){for(var b,I,X=g[0].toUpperCase()+g.slice(1),he=0;he<o.length;){if(b=o[he],I=b?b+X:g,I in p)return I;he++}return i}var me=1;function _e(){return me++}function re(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||e}var V=/mobile|tablet|ip(ad|hone|od)|android/i,J="ontouchstart"in e,Y=Le(e,"PointerEvent")!==i,Pe=J&&V.test(navigator.userAgent),de="touch",j="pen",ee="mouse",S="kinect",A=25,O=1,q=2,E=4,L=8,te=1,fe=2,ae=4,v=8,x=16,N=fe|ae,R=v|x,z=N|R,K=["x","y"],se=["clientX","clientY"];function B(p,g){var b=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(I){D(p.options.enable,[p])&&b.handler(I)},this.init()}B.prototype={handler:function(){},init:function(){this.evEl&&F(this.element,this.evEl,this.domHandler),this.evTarget&&F(this.target,this.evTarget,this.domHandler),this.evWin&&F(re(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&H(this.element,this.evEl,this.domHandler),this.evTarget&&H(this.target,this.evTarget,this.domHandler),this.evWin&&H(re(this.element),this.evWin,this.domHandler)}};function ne(p){var g,b=p.options.inputClass;return b?g=b:Y?g=ca:Pe?g=yo:J?g=ua:g=Ot,new g(p,W)}function W(p,g,b){var I=b.pointers.length,X=b.changedPointers.length,he=g&O&&I-X===0,Ve=g&(E|L)&&I-X===0;b.isFirst=!!he,b.isFinal=!!Ve,he&&(p.session={}),b.eventType=g,le(p,b),p.emit("hammer.input",b),p.recognize(b),p.session.prevInput=b}function le(p,g){var b=p.session,I=g.pointers,X=I.length;b.firstInput||(b.firstInput=ke(g)),X>1&&!b.firstMultiple?b.firstMultiple=ke(g):X===1&&(b.firstMultiple=!1);var he=b.firstInput,Ve=b.firstMultiple,pt=Ve?Ve.center:he.center,bt=g.center=Ae(I);g.timeStamp=u(),g.deltaTime=g.timeStamp-he.timeStamp,g.angle=Pt(pt,bt),g.distance=st(pt,bt),xe(b,g),g.offsetDirection=We(g.deltaX,g.deltaY);var It=Fe(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=It.x,g.overallVelocityY=It.y,g.overallVelocity=c(It.x)>c(It.y)?It.x:It.y,g.scale=Ve?mo(Ve.pointers,I):1,g.rotation=Ve?Mn(Ve.pointers,I):0,g.maxPointers=b.prevInput?g.pointers.length>b.prevInput.maxPointers?g.pointers.length:b.prevInput.maxPointers:g.pointers.length,ge(b,g);var nn=p.element;ve(g.srcEvent.target,nn)&&(nn=g.srcEvent.target),g.target=nn}function xe(p,g){var b=g.center,I=p.offsetDelta||{},X=p.prevDelta||{},he=p.prevInput||{};(g.eventType===O||he.eventType===E)&&(X=p.prevDelta={x:he.deltaX||0,y:he.deltaY||0},I=p.offsetDelta={x:b.x,y:b.y}),g.deltaX=X.x+(b.x-I.x),g.deltaY=X.y+(b.y-I.y)}function ge(p,g){var b=p.lastInterval||g,I=g.timeStamp-b.timeStamp,X,he,Ve,pt;if(g.eventType!=L&&(I>A||b.velocity===i)){var bt=g.deltaX-b.deltaX,It=g.deltaY-b.deltaY,nn=Fe(I,bt,It);he=nn.x,Ve=nn.y,X=c(nn.x)>c(nn.y)?nn.x:nn.y,pt=We(bt,It),p.lastInterval=g}else X=b.velocity,he=b.velocityX,Ve=b.velocityY,pt=b.direction;g.velocity=X,g.velocityX=he,g.velocityY=Ve,g.direction=pt}function ke(p){for(var g=[],b=0;b<p.pointers.length;)g[b]={clientX:l(p.pointers[b].clientX),clientY:l(p.pointers[b].clientY)},b++;return{timeStamp:u(),pointers:g,center:Ae(g),deltaX:p.deltaX,deltaY:p.deltaY}}function Ae(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var b=0,I=0,X=0;X<g;)b+=p[X].clientX,I+=p[X].clientY,X++;return{x:l(b/g),y:l(I/g)}}function Fe(p,g,b){return{x:g/p||0,y:b/p||0}}function We(p,g){return p===g?te:c(p)>=c(g)?p<0?fe:ae:g<0?v:x}function st(p,g,b){b||(b=K);var I=g[b[0]]-p[b[0]],X=g[b[1]]-p[b[1]];return Math.sqrt(I*I+X*X)}function Pt(p,g,b){b||(b=K);var I=g[b[0]]-p[b[0]],X=g[b[1]]-p[b[1]];return Math.atan2(X,I)*180/Math.PI}function Mn(p,g){return Pt(g[1],g[0],se)+Pt(p[1],p[0],se)}function mo(p,g){return st(g[0],g[1],se)/st(p[0],p[1],se)}var ns={mousedown:O,mousemove:q,mouseup:E},go="mousedown",_t="mousemove mouseup";function Ot(){this.evEl=go,this.evWin=_t,this.pressed=!1,B.apply(this,arguments)}k(Ot,B,{handler:function(g){var b=ns[g.type];b&O&&g.button===0&&(this.pressed=!0),b&q&&g.which!==1&&(b=E),this.pressed&&(b&E&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[g],changedPointers:[g],pointerType:ee,srcEvent:g}))}});var vo={pointerdown:O,pointermove:q,pointerup:E,pointercancel:L,pointerout:L},qy={2:de,3:j,4:ee,5:S},eh="pointerdown",th="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(eh="MSPointerDown",th="MSPointerMove MSPointerUp MSPointerCancel");function ca(){this.evEl=eh,this.evWin=th,B.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}k(ca,B,{handler:function(g){var b=this.store,I=!1,X=g.type.toLowerCase().replace("ms",""),he=vo[X],Ve=qy[g.pointerType]||g.pointerType,pt=Ve==de,bt=De(b,g.pointerId,"pointerId");he&O&&(g.button===0||pt)?bt<0&&(b.push(g),bt=b.length-1):he&(E|L)&&(I=!0),!(bt<0)&&(b[bt]=g,this.callback(this.manager,he,{pointers:b,changedPointers:[g],pointerType:Ve,srcEvent:g}),I&&b.splice(bt,1))}});var Ky={touchstart:O,touchmove:q,touchend:E,touchcancel:L},Zy="touchstart",Qy="touchstart touchmove touchend touchcancel";function nh(){this.evTarget=Zy,this.evWin=Qy,this.started=!1,B.apply(this,arguments)}k(nh,B,{handler:function(g){var b=Ky[g.type];if(b===O&&(this.started=!0),!!this.started){var I=Jy.call(this,g,b);b&(E|L)&&I[0].length-I[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:I[0],changedPointers:I[1],pointerType:de,srcEvent:g})}}});function Jy(p,g){var b=ye(p.touches),I=ye(p.changedTouches);return g&(E|L)&&(b=Ne(b.concat(I),"identifier",!0)),[b,I]}var e1={touchstart:O,touchmove:q,touchend:E,touchcancel:L},t1="touchstart touchmove touchend touchcancel";function yo(){this.evTarget=t1,this.targetIds={},B.apply(this,arguments)}k(yo,B,{handler:function(g){var b=e1[g.type],I=n1.call(this,g,b);I&&this.callback(this.manager,b,{pointers:I[0],changedPointers:I[1],pointerType:de,srcEvent:g})}});function n1(p,g){var b=ye(p.touches),I=this.targetIds;if(g&(O|q)&&b.length===1)return I[b[0].identifier]=!0,[b,b];var X,he,Ve=ye(p.changedTouches),pt=[],bt=this.target;if(he=b.filter(function(It){return ve(It.target,bt)}),g===O)for(X=0;X<he.length;)I[he[X].identifier]=!0,X++;for(X=0;X<Ve.length;)I[Ve[X].identifier]&&pt.push(Ve[X]),g&(E|L)&&delete I[Ve[X].identifier],X++;if(pt.length)return[Ne(he.concat(pt),"identifier",!0),pt]}var s1=2500,sh=25;function ua(){B.apply(this,arguments);var p=P(this.handler,this);this.touch=new yo(this.manager,p),this.mouse=new Ot(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}k(ua,B,{handler:function(g,b,I){var X=I.pointerType==de,he=I.pointerType==ee;if(!(he&&I.sourceCapabilities&&I.sourceCapabilities.firesTouchEvents)){if(X)i1.call(this,b,I);else if(he&&o1.call(this,I))return;this.callback(g,b,I)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function i1(p,g){p&O?(this.primaryTouch=g.changedPointers[0].identifier,ih.call(this,g)):p&(E|L)&&ih.call(this,g)}function ih(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var b={x:g.clientX,y:g.clientY};this.lastTouches.push(b);var I=this.lastTouches,X=function(){var he=I.indexOf(b);he>-1&&I.splice(he,1)};setTimeout(X,s1)}}function o1(p){for(var g=p.srcEvent.clientX,b=p.srcEvent.clientY,I=0;I<this.lastTouches.length;I++){var X=this.lastTouches[I],he=Math.abs(g-X.x),Ve=Math.abs(b-X.y);if(he<=sh&&Ve<=sh)return!0}return!1}var oh=Le(r.style,"touchAction"),rh=oh!==i,ah="compute",lh="auto",ha="manipulation",ss="none",ei="pan-x",ti="pan-y",_o=a1();function da(p,g){this.manager=p,this.set(g)}da.prototype={set:function(p){p==ah&&(p=this.compute()),rh&&this.manager.element.style&&_o[p]&&(this.manager.element.style[oh]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return f(this.manager.recognizers,function(g){D(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),r1(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,b=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var I=this.actions,X=be(I,ss)&&!_o[ss],he=be(I,ti)&&!_o[ti],Ve=be(I,ei)&&!_o[ei];if(X){var pt=p.pointers.length===1,bt=p.distance<2,It=p.deltaTime<250;if(pt&&bt&&It)return}if(!(Ve&&he)&&(X||he&&b&N||Ve&&b&R))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function r1(p){if(be(p,ss))return ss;var g=be(p,ei),b=be(p,ti);return g&&b?ss:g||b?g?ei:ti:be(p,ha)?ha:lh}function a1(){if(!rh)return!1;var p={},g=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(b){p[b]=g?e.CSS.supports("touch-action",b):!0}),p}var bo=1,Gt=2,ys=4,$n=8,vn=$n,ni=16,tn=32;function yn(p){this.options=y({},this.defaults,p||{}),this.id=_e(),this.manager=null,this.options.enable=U(this.options.enable,!0),this.state=bo,this.simultaneous={},this.requireFail=[]}yn.prototype={defaults:{},set:function(p){return y(this.options,p),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(p){if(d(p,"recognizeWith",this))return this;var g=this.simultaneous;return p=xo(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return d(p,"dropRecognizeWith",this)?this:(p=xo(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(d(p,"requireFailure",this))return this;var g=this.requireFail;return p=xo(p,this),De(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(d(p,"dropRequireFailure",this))return this;p=xo(p,this);var g=De(this.requireFail,p);return g>-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(p){return!!this.simultaneous[p.id]},emit:function(p){var g=this,b=this.state;function I(X){g.manager.emit(X,p)}b<$n&&I(g.options.event+ch(b)),I(g.options.event),p.additionalEvent&&I(p.additionalEvent),b>=$n&&I(g.options.event+ch(b))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=tn},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(tn|bo)))return!1;p++}return!0},recognize:function(p){var g=y({},p);if(!D(this.options.enable,[this,g])){this.reset(),this.state=tn;return}this.state&(vn|ni|tn)&&(this.state=bo),this.state=this.process(g),this.state&(Gt|ys|$n|ni)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function ch(p){return p&ni?"cancel":p&$n?"end":p&ys?"move":p&Gt?"start":""}function uh(p){return p==x?"down":p==v?"up":p==fe?"left":p==ae?"right":""}function xo(p,g){var b=g.manager;return b?b.get(p):p}function Wt(){yn.apply(this,arguments)}k(Wt,yn,{defaults:{pointers:1},attrTest:function(p){var g=this.options.pointers;return g===0||p.pointers.length===g},process:function(p){var g=this.state,b=p.eventType,I=g&(Gt|ys),X=this.attrTest(p);return I&&(b&L||!X)?g|ni:I||X?b&E?g|$n:g&Gt?g|ys:Gt:tn}});function wo(){Wt.apply(this,arguments),this.pX=null,this.pY=null}k(wo,Wt,{defaults:{event:"pan",threshold:10,pointers:1,direction:z},getTouchAction:function(){var p=this.options.direction,g=[];return p&N&&g.push(ti),p&R&&g.push(ei),g},directionTest:function(p){var g=this.options,b=!0,I=p.distance,X=p.direction,he=p.deltaX,Ve=p.deltaY;return X&g.direction||(g.direction&N?(X=he===0?te:he<0?fe:ae,b=he!=this.pX,I=Math.abs(p.deltaX)):(X=Ve===0?te:Ve<0?v:x,b=Ve!=this.pY,I=Math.abs(p.deltaY))),p.direction=X,b&&I>g.threshold&&X&g.direction},attrTest:function(p){return Wt.prototype.attrTest.call(this,p)&&(this.state&Gt||!(this.state&Gt)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=uh(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function fa(){Wt.apply(this,arguments)}k(fa,Wt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ss]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&Gt)},emit:function(p){if(p.scale!==1){var g=p.scale<1?"in":"out";p.additionalEvent=this.options.event+g}this._super.emit.call(this,p)}});function pa(){yn.apply(this,arguments),this._timer=null,this._input=null}k(pa,yn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[lh]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,I=p.distance<g.threshold,X=p.deltaTime>g.time;if(this._input=p,!I||!b||p.eventType&(E|L)&&!X)this.reset();else if(p.eventType&O)this.reset(),this._timer=h(function(){this.state=vn,this.tryEmit()},g.time,this);else if(p.eventType&E)return vn;return tn},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===vn&&(p&&p.eventType&E?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function ma(){Wt.apply(this,arguments)}k(ma,Wt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ss]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&Gt)}});function ga(){Wt.apply(this,arguments)}k(ga,Wt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:N|R,pointers:1},getTouchAction:function(){return wo.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,b;return g&(N|R)?b=p.overallVelocity:g&N?b=p.overallVelocityX:g&R&&(b=p.overallVelocityY),this._super.attrTest.call(this,p)&&g&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(b)>this.options.velocity&&p.eventType&E},emit:function(p){var g=uh(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function Co(){yn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}k(Co,yn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ha]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,I=p.distance<g.threshold,X=p.deltaTime<g.time;if(this.reset(),p.eventType&O&&this.count===0)return this.failTimeout();if(I&&X&&b){if(p.eventType!=E)return this.failTimeout();var he=this.pTime?p.timeStamp-this.pTime<g.interval:!0,Ve=!this.pCenter||st(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!Ve||!he?this.count=1:this.count+=1,this._input=p;var pt=this.count%g.taps;if(pt===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=vn,this.tryEmit()},g.interval,this),Gt):vn}return tn},failTimeout:function(){return this._timer=h(function(){this.state=tn},this.options.interval,this),tn},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==vn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function _n(p,g){return g=g||{},g.recognizers=U(g.recognizers,_n.defaults.preset),new va(p,g)}_n.VERSION="2.0.7",_n.defaults={domEvents:!1,touchAction:ah,enable:!0,inputTarget:null,inputClass:null,preset:[[ma,{enable:!1}],[fa,{enable:!1},["rotate"]],[ga,{direction:N}],[wo,{direction:N},["swipe"]],[Co],[Co,{event:"doubletap",taps:2},["tap"]],[pa]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var l1=1,hh=2;function va(p,g){this.options=y({},_n.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=ne(this),this.touchAction=new da(this,this.options.touchAction),dh(this,!0),f(this.options.recognizers,function(b){var I=this.add(new b[0](b[1]));b[2]&&I.recognizeWith(b[2]),b[3]&&I.requireFailure(b[3])},this)}va.prototype={set:function(p){return y(this.options,p),p.touchAction&&this.touchAction.update(),p.inputTarget&&(this.input.destroy(),this.input.target=p.inputTarget,this.input.init()),this},stop:function(p){this.session.stopped=p?hh:l1},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var b,I=this.recognizers,X=g.curRecognizer;(!X||X&&X.state&vn)&&(X=g.curRecognizer=null);for(var he=0;he<I.length;)b=I[he],g.stopped!==hh&&(!X||b==X||b.canRecognizeWith(X))?b.recognize(p):b.reset(),!X&&b.state&(Gt|ys|$n)&&(X=g.curRecognizer=b),he++}},get:function(p){if(p instanceof yn)return p;for(var g=this.recognizers,b=0;b<g.length;b++)if(g[b].options.event==p)return g[b];return null},add:function(p){if(d(p,"add",this))return this;var g=this.get(p.options.event);return g&&this.remove(g),this.recognizers.push(p),p.manager=this,this.touchAction.update(),p},remove:function(p){if(d(p,"remove",this))return this;if(p=this.get(p),p){var g=this.recognizers,b=De(g,p);b!==-1&&(g.splice(b,1),this.touchAction.update())}return this},on:function(p,g){if(p!==i&&g!==i){var b=this.handlers;return f(Ce(p),function(I){b[I]=b[I]||[],b[I].push(g)}),this}},off:function(p,g){if(p!==i){var b=this.handlers;return f(Ce(p),function(I){g?b[I]&&b[I].splice(De(b[I],g),1):delete b[I]}),this}},emit:function(p,g){this.options.domEvents&&c1(p,g);var b=this.handlers[p]&&this.handlers[p].slice();if(!(!b||!b.length)){g.type=p,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var I=0;I<b.length;)b[I](g),I++}},destroy:function(){this.element&&dh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function dh(p,g){var b=p.element;if(b.style){var I;f(p.options.cssProps,function(X,he){I=Le(b.style,he),g?(p.oldCssProps[I]=b.style[I],b.style[I]=X):b.style[I]=p.oldCssProps[I]||""}),g||(p.oldCssProps={})}}function c1(p,g){var b=t.createEvent("Event");b.initEvent(p,!0,!0),b.gesture=g,g.target.dispatchEvent(b)}y(_n,{INPUT_START:O,INPUT_MOVE:q,INPUT_END:E,INPUT_CANCEL:L,STATE_POSSIBLE:bo,STATE_BEGAN:Gt,STATE_CHANGED:ys,STATE_ENDED:$n,STATE_RECOGNIZED:vn,STATE_CANCELLED:ni,STATE_FAILED:tn,DIRECTION_NONE:te,DIRECTION_LEFT:fe,DIRECTION_RIGHT:ae,DIRECTION_UP:v,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:N,DIRECTION_VERTICAL:R,DIRECTION_ALL:z,Manager:va,Input:B,TouchAction:da,TouchInput:yo,MouseInput:Ot,PointerEventInput:ca,TouchMouseInput:ua,SingleTouchInput:nh,Recognizer:yn,AttrRecognizer:Wt,Tap:Co,Pan:wo,Swipe:ga,Pinch:fa,Rotate:ma,Press:pa,on:F,off:H,each:f,merge:C,extend:_,assign:y,inherit:k,bindFn:P,prefixed:Le});var u1=typeof e<"u"?e:typeof self<"u"?self:{};u1.Hammer=_n,typeof i=="function"&&i.amd?i(function(){return _n}):n.exports?n.exports=_n:e[s]=_n})(window,document,"Hammer")})(lu);var Nm=lu.exports;const Dm=Im(Nm);function Lr(n,e,t,s,i,o,r,a,l,c){let u=Math.PI*120/180,h=Math.PI/180*(+i||0),d=[],f,m=function(me,_e,re){const V=me*Math.cos(re)-_e*Math.sin(re),J=me*Math.sin(re)+_e*Math.cos(re);return{x:V,y:J}},y,_,C,k;if(c)y=c[0],_=c[1],C=c[2],k=c[3];else{f=m(n,e,-h),n=f.x,e=f.y,f=m(a,l,-h),a=f.x,l=f.y;let me=(n-a)/2,_e=(e-l)/2,re=me*me/(t*t)+_e*_e/(s*s);re>1&&(re=Math.sqrt(re),t=re*t,s=re*s);let V=t*t,J=s*s,Y=(o==r?-1:1)*Math.sqrt(Math.abs((V*J-V*_e*_e-J*me*me)/(V*_e*_e+J*me*me)));C=Y*t*_e/s+(n+a)/2,k=Y*-s*me/t+(e+l)/2,y=Math.asin(Number(((e-k)/s).toFixed(9))),_=Math.asin(Number(((l-k)/s).toFixed(9))),y=n<C?Math.PI-y:y,_=a<C?Math.PI-_:_,y<0&&(y=Math.PI*2+y),_<0&&(_=Math.PI*2+_),r&&y>_&&(y=y-Math.PI*2),!r&&_>y&&(_=_-Math.PI*2)}let P=_-y;if(Math.abs(P)>u){let me=_,_e=a,re=l;_=y+u*(r&&_>y?1:-1),a=C+t*Math.cos(_),l=k+s*Math.sin(_),d=Lr(a,l,t,s,i,0,r,_e,re,[_,me,C,k])}P=_-y;let D=Math.cos(y),U=Math.sin(y),F=Math.cos(_),H=Math.sin(_),ve=Math.tan(P/4),be=4/3*t*ve,Ce=4/3*s*ve,De=[n,e],ye=[n+be*U,e-Ce*D],Ne=[a+be*H,l-Ce*F],Le=[a,l];return ye[0]=2*De[0]-ye[0],ye[1]=2*De[1]-ye[1],c?[[...ye,...Ne,...Le]].concat(d):[[...ye,...Ne,...Le]].concat(d).map(me=>{const _e=[];for(let re=0,V=me.length;re<V;re++)_e[re]=re%2?m(me[re-1],me[re],h).y:m(me[re],me[re+1],h).x;return _e})}function Fr(n,e,t,s,i,o){return[n/3+2/3*t,e/3+2/3*s,i/3+2/3*t,o/3+2/3*s,i,o]}function Ws(n,e,t,s){return[n,e,t,s,t,s]}const Ki={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class hs{static createSVGElement(e="path",t){const s=document.createElementNS.call(document,"http://www.w3.org/2000/svg",e);return t&&Q.attribute(s,t),s}static createSvgPath(e){return this.createSVGElement("path",{d:e})}static downloadFromSVGElement(e,t="shape"){return nu(vm(e),`${t}.svg`)}static downloadFromSVGString(e,t="shape"){return nu(eu(e),`${t}.svg`)}static getSVGRawStringFromElement(e){return tu(e)}static isSVGPath(e){return typeof e!="string"?!1:(e=e.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(e)&&/[\dz]$/i.test(e))}static SVGPathDataToD(e){return e.map(t=>{if(!t[0])return"";switch(t[0].toLowerCase()){case"a":return`${t[0]} ${t[1]},${t[2]} ${t[3]} ${t[4]},${t[5]} ${t[6]},${t[7]}`;case"c":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]} ${t[5]},${t[6]}`;case"s":case"q":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]}`;default:return t[0]+" "+t.slice(1).join(",")}}).join(" ")}static parseSVGPath(e){const t=[];return e.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,o)=>{let r=i.toLowerCase();const a=fp(o);for(r=="m"&&a.length>Ki[r]&&(t.push([i,...a.splice(0,Ki[r])]),r="l",i=i=="m"?"l":"L");a.length;){if(a.length<Ki[r])throw new Error(`parseSVGPath substring:{ ${s} } command:{ ${i} } args:{ ${a} }`);t.push([i,...a.splice(0,Ki[r])])}return r=="z"&&t.push([i]),""}),t}static absolutizeSVGPath(e){let t=0,s=0,i=0,o=0;return e.map(function(r){const a=r[0],l=a.toUpperCase();if(a!=l)switch(r[0]=l,a){case"a":r[6]+=i,r[7]+=o;break;case"v":r[1]+=o;break;case"h":r[1]+=i;break;default:for(let c=1;c<r.length;)r[c++]+=i,r[c++]+=o}switch(l){case"Z":i=t,o=s;break;case"H":i=r[1];break;case"V":o=r[1];break;case"M":i=t=r[1],o=s=r[2];break;default:i=r[r.length-2],o=r[r.length-1]}return r})}static relativeSVGPath(e){let t=0,s=0,i=0,o=0;return e.map(function(r){const a=r[0],l=a.toLowerCase();if(a!=l)switch(r[0]=l,a){case"A":r[6]-=i,r[7]-=o;break;case"V":r[1]-=o;break;case"H":r[1]-=i;break;default:for(let c=1;c<r.length;)r[c++]-=i,r[c++]-=o}switch(l){case"z":i=t,o=s;break;case"h":i+=r[1];break;case"v":o+=r[1];break;case"m":i+=r[1],o+=r[2],t+=r[1],s+=r[2];break;default:i+=r[r.length-2],o+=r[r.length-1]}return r})}static normalizeSVGPath(e){let t=[],s=0,i=0,o=0,r=0,a=0,l=0,c=0,u=0,h;for(let d=0,f=e.length;d<f;d++){let m=e[d];const y=m[0];switch(y){case"M":s=m[1],i=m[2];break;case"A":const _=Lr(o,r,m[1],m[2],m[3],m[4],m[5],m[6],m[7]);if(!_.length)continue;_.forEach((P,D)=>{const[U,F,H,ve,be,Ce]=P;m=["C",U,F,H,ve,be,Ce],D<_.length-1&&t.push(m)});break;case"S":let C=o,k=r;(h=="C"||h=="S")&&(C+=C-c,k+=k-u),m=["C",C,k,m[1],m[2],m[3],m[4]];break;case"T":h=="Q"||h=="T"?(a=o*2-a,l=r*2-l):(a=o,l=r),m=["C",...Fr(o,r,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...Fr(o,r,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...Ws(o,r,m[1],m[2])];break;case"H":m=["C",...Ws(o,r,m[1],r)];break;case"V":m=["C",...Ws(o,r,o,m[1])];break;case"Z":m=["C",...Ws(o,r,s,i)];break}h=y,o=m[m.length-2],r=m[m.length-1],m.length>4?(c=m[m.length-4],u=m[m.length-3]):(c=o,u=r),t.push(m)}return t}static catmullRom2bezier(e){let t=[];for(let s=0,i=e.length;i-2>s;s+=2){let o;s==0?o=[{x:e[s],y:e[s+1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+5]}]:i-4==s?o=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+2],y:e[s+3]}]:o=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+5]}];const r=[{x:o[1].x,y:o[1].y},{x:(-o[0].x+6*o[1].x+o[2].x)/6,y:(-o[0].y+6*o[1].y+o[2].y)/6},{x:(o[1].x+6*o[2].x-o[3].x)/6,y:(o[1].y+6*o[2].y-o[3].y)/6},{x:o[2].x,y:o[2].y}];t.push(["C",r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y])}return t}static zvhToLSVGPath(e){let t=[],s=["L",0,0],i;for(let o=0,r=e.length;o<r;o++){let a=e[o];switch(a[0]){case"M":s=["L",a[1],a[2]],t.push(a);break;case"Z":t.push(s);break;case"H":i=t[t.length-1]||["L",0,0],t.push(["L",a[1],i[i.length-1]]);break;case"V":i=t[t.length-1]||["L",0,0],t.push(["L",i[i.length-2],a[1]]);break;default:t.push(a)}}return t}static longhandSVGPath(e){const t={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,i=0,o=0;for(let r=0,a=e.length;r<a;r++){const l=e[r],c=t[l[0]];c&&(l[0]=c.to,s&&(s[0]===c.to?(i=2*Number(s[c.x+2])-Number(s[c.x]),o=2*Number(s[c.x+3])-Number(s[c.x+1])):(i=Number(s[s.length-2]),o=Number(s[s.length-1]))),l.splice(1,0,i,o)),s=l}return e}static curveDim(e,t,s,i,o,r,a,l){const c=[],u=[[],[]];let h,d,f,m,y,_,C,k;for(let F=0;F<2;++F){if(F===0?(d=6*e-12*s+6*o,h=-3*e+9*s-9*o+3*a,f=3*s-3*e):(d=6*t-12*i+6*r,h=-3*t+9*i-9*r+3*l,f=3*i-3*t),Math.abs(h)<1e-12){if(Math.abs(d)<1e-12)continue;m=-f/d,m>0&&m<1&&c.push(m);continue}C=d*d-4*f*h,k=Math.sqrt(C),!(C<0)&&(y=(-d+k)/(2*h),y>0&&y<1&&c.push(y),_=(-d-k)/(2*h),_>0&&_<1&&c.push(_))}let P=c.length,D;const U=P;for(;P--;)m=c[P],D=1-m,u[0][P]=D*D*D*e+3*D*D*m*s+3*D*m*m*o+m*m*m*a,u[1][P]=D*D*D*t+3*D*D*m*i+3*D*m*m*r+m*m*m*l;return u[0][U]=e,u[1][U]=t,u[0][U+1]=a,u[1][U+1]=l,u[0].length=u[1].length=U+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}}static base3(e,t,s,i,o){const r=-3*t+9*s-9*i+3*o,a=e*r+6*t-12*s+6*i;return e*a-3*t+3*s}static bezlen(e,t,s,i,o,r,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let y=0;y<h;y++){const _=u*d[y]+u,C=this.base3(_,e,s,o,a),k=this.base3(_,t,i,r,l),P=C*C+k*k;m+=f[y]*Math.sqrt(P)}return u*m}}const rt=hs;class dt{id;x;prevX;y;prevY;degree;prevDegree;scaleOnOrigin;prevScaleOnOrigin;skewDegreeOnOrigin;prevSkewDegreeOnOrigin;vx;vy;ax;ay;mass;attrs;enableDrag;targetToAfterDragFree;followMouse;isShow=!0;mouseMove;history=[];path2d=new Path2D;isDragging=!1;el;constructor(e){this.id=ap(),this.prevX=this.x=e?.x||0,this.prevY=this.y=e?.y||0,this.prevDegree=this.degree=e?.degree||0,this.prevScaleOnOrigin=this.scaleOnOrigin=e?.scaleOnOrigin||1,this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin=e?.skewDegreeOnOrigin||0,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||0,this.attrs=Object.assign({fill:"none",stroke:"none"},e?.attrs),this.enableDrag=e?.enableDrag||!1,this.targetToAfterDragFree=e?.targetToAfterDragFree,this.followMouse=e?.followMouse||!1,this.isShow=typeof e?.isShow=="boolean"?e?.isShow:!0,this.mouseMove=e?.mouseMove}save(){this.history.push(_c(this))}restore(){const e=this.history.pop();e&&zi(this,e)}get centerX(){const e=this.getBoundingClientRect();return e?e.x+e.width/2:this.x}get centerY(){const e=this.getBoundingClientRect();return e?e.y+e.height/2:this.y}get centerDiff(){return{dx:this.centerX-this.x,dy:this.centerY-this.y}}getBoundingClientRect(){return null}toSVGPathD(){const e=[],t=this.toSVGPathData();return t[0]&&Array.isArray(t[0])?e.push(...t):e.push(t),rt.SVGPathDataToD(e)}distanceTo(e){return iu(this.x,this.y,e.x,e.y)}angleTo(e){return this.degree=kt(Vr(this.x,this.y,e.x,e.y)),this.degree}followTo(e,t=3){const s=this.angleTo(e),{x:i,y:o}=Jn(St(s),t);this.vx=i,this.vy=o,this.nextFrame()}followAccelerationTo(e,t=.05){const s=this.angleTo(e),{x:i,y:o}=Jn(St(s),t);this.ax=i,this.ay=o,this.nextFrame()}nextFrame(e){const t=e?.gravity??0,s=e?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=t,s>0){const i=Math.atan2(this.vy,this.vx);let o=Math.sqrt(this.vx*this.vx+this.vy*this.vy);o>s?o-=s:o=0,this.vx=Math.cos(i)*o,this.vy=Math.sin(i)*o}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,t){const s=t?.gravity??0,i=t?.friction??1,o=t?.easing??.05,{dx:r,dy:a}=this.centerDiff,l=e.x-this.x-r,c=e.y-this.y-a;this.vx=l*o,this.vy=c*o,this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,t){const s=t?.gravity??0,i=t?.friction??.95,o=t?.spring??.03,{dx:r,dy:a}=this.centerDiff;(Array.isArray(e)?e:[e]).forEach(c=>{const u=c.x-this.x-r,h=c.y-this.y-a,d=u*o,f=h*o;this.vx+=d,this.vy+=f}),this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}static nextFrameSpringConnect(e,t){const s=t?.springLength??100,i=t?.spring??.03,o=t?.gravity??0,r=t?.friction??.95;e.forEach(a=>{a.isDragging||e.filter(l=>l.id!==a.id).forEach(l=>{const c=a.angleTo(l);a.nextFrameSpringTo(new et({x:l.x-Math.cos(St(c))*s,y:l.y-Math.sin(St(c))*s}),{spring:i,gravity:o,friction:r})})})}}class Lt extends dt{width;height;borderRadius;constructor(e){super(e),this.width=e.width,this.height=e.height,this.borderRadius=e.borderRadius||0}static fromBezier(e,t,s,i,o,r,a,l){const c=hs.curveDim(e,t,s,i,o,r,a,l);return new Lt({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return this}toSVGPathData(){return this.borderRadius?[["M",this.x+this.borderRadius,this.y],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["M",this.x,this.y],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(e){e.beginPath(),this.borderRadius<=0?e.rect(0,0,this.width,this.height):(e.moveTo(0,this.borderRadius),e.lineTo(0,this.height-this.borderRadius),e.quadraticCurveTo(0,this.height,this.borderRadius,this.height),e.lineTo(this.width-this.borderRadius,this.height),e.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),e.lineTo(this.width,this.borderRadius),e.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),e.lineTo(this.borderRadius,0),e.quadraticCurveTo(0,0,0,this.borderRadius)),e.closePath()}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height&&this.borderRadius===e.borderRadius}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height}clone(e){return new Lt({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}const Zi=Lt;class et extends dt{radius;constructor(e){super(e),this.radius=e?.radius||0}getBoundingClientRect(){return new Lt({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}toSVGPathData(){return this.radius?[["M",this.x,this.y-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:["M",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath()}toArray(){return[this.x,this.y,this.radius]}setX(e){this.x=e}setY(e){this.y=e}setXY(e,t){this.x=e,this.y=t}eq(e){return this.x===e.x&&this.y===e.y&&this.radius===e.radius}midPointBtw(e){return new et({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}clone(e){return new et({x:e.x,y:e.y,radius:e.radius})}nextFrameCollisionTo(e){const t=e.x-this.x,s=e.y-this.y;if(Math.sqrt(t*t+s*s)<this.radius+e.radius){const r=Math.atan2(s,t),a=Math.sin(r),l=Math.cos(r),c={x:0,y:0},u=o(t,s,a,l,!0),h=o(this.vx,this.vy,a,l,!0),d=o(e.vx,e.vy,a,l,!0),f=h.x-d.x;h.x=((this.mass-e.mass)*h.x+2*e.mass*d.x)/(this.mass+e.mass),d.x=f+h.x;const m=Math.abs(h.x)+Math.abs(d.x),y=this.radius+e.radius-Math.abs(c.x-u.x);c.x+=h.x/m*y,u.x+=d.x/m*y;const _=o(c.x,c.y,a,l,!1),C=o(u.x,u.y,a,l,!1);e.x=this.x+C.x,e.y=this.y+C.y,this.x=this.x+_.x,this.y=this.y+_.y;const k=o(h.x,h.y,a,l,!1),P=o(d.x,d.y,a,l,!1);this.vx=k.x,this.vy=k.y,e.vx=P.x,e.vy=P.y}function o(r,a,l,c,u=!1){return{x:u?r*c+a*l:r*c-a*l,y:u?a*c-r*l:a*c+r*l}}}nextFrameBounce(e,t){const s=e.x,i=e.y,o=e.x+e.width,r=e.y+e.height,a=t?.bounce??-1;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=a):this.x-this.radius<s&&(this.x=s+this.radius,this.vx*=a),this.y+this.radius>r?(this.y=r-this.radius,this.vy*=a):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=a)}}class Mm{constructor(){}static getFormatKeyNames(e){const t=km(),s=[];return e.ctrl&&s.push(t?"Cmd":"Ctrl"),e.shift&&s.push("Shift"),e.alt&&s.push("Alt"),typeof e.key=="string"?s.push(yr(e.key)):Array.isArray(e.key)&&(e.key.map(i=>yr(i)),s.push(...e.key)),s}static matchKeyScheme(e,t){const s=e.ctrl??!1,i=e.shift??!1,o=e.alt??!1;if(e.exact)return(s===t.metaKey||s===t.ctrlKey)&&i===t.shiftKey&&o===t.altKey;const r=[];return s&&r.push(s===t.metaKey||s===t.ctrlKey),i&&r.push(i===t.shiftKey),o&&r.push(o===t.altKey),r.every(a=>a)}static on(e,t){if(e?.key===void 0||e?.key===null)return t;const s=e?.target??window;let i=!1;const o=this.getFormatKeyNames(e),r=a=>{if(a.stopPropagation(),!i&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&o.find(l=>l.toLowerCase()===a.key.toLowerCase())&&this.matchKeyScheme(e,a)){a.preventDefault();const l=t(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),s.removeEventListener("keyup",c)};s.addEventListener("keyup",c)}};return t.title=e?.title??"",t.formatedKeyNames=o,t.pause=()=>i=!0,t.restart=()=>i=!1,t.removeListener=()=>s.removeEventListener("keydown",r),s.addEventListener("keydown",r),t}}let Ft;const ds=[];class tt extends wc{container;width;height;mousePoint;hammer;domEventBusRemoves=[];constructor(e=document.documentElement,t=!0){super(),this.container=e,this.width=this.container.clientWidth,this.height=this.container.clientHeight,this.hammer=new Dm(this.container),this.mousePoint=new et({x:0,y:0}),t&&this.start()}emitDebounce=pp((e,...t)=>super.emit(e,...t),50);emit(e,...t){switch(e){case"panLeft":case"panRight":this.emitDebounce(e,...t);break;default:super.emit(e,...t);break}return this}static get page(){if(Ft)return Ft;Ft=new tt,window.addEventListener("hashchange",()=>{Ft.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{Ft.emit("popstate")}),Ft.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{ym().then(t=>_m(t[0])).then(t=>{Ft.emit("openFile",t)}).catch(t=>{Ft.emit("openFileError",t)})}),Ft.registerMatchMediaChange("(prefers-color-scheme: dark)");const e=()=>ds.forEach(t=>t());return Ft.registerGlobalScrollChange=t=>{ds.push(t),ds.length==1&&document.addEventListener("scroll",e)},Ft.removeGlobalScrollChange=t=>{const s=ds.findIndex(i=>i==t);s>=0&&(ds.splice(s,1),ds.length==0&&document.removeEventListener("scroll",e))},Ft}start(){this.registerMouseEventListeners(),this.registerInputEventListeners(),this.registerTransitionEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventBusRemoves(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParentWhenScrollChange()}restart(){this.destroy(),this.start()}destroy(){this.domEventBusRemoves.forEach(e=>e()),this.domEventBusRemoves=[],this.removeAllListeners()}addDOMEventBusRemoves(e){this.domEventBusRemoves.push(e)}setMousePoint(e){const t=Em(this.container,e);return this.mousePoint.x=t.x,this.mousePoint.y=t.y,t}registerMouseEventListeners(){const e=V=>{this.emit("mouseDown",V),this.container.style.userSelect="none"},t=V=>{this.emit("mouseUp",V),this.container.style.userSelect=""},s=V=>{this.emit("mouseMove",V)},i=V=>{this.emit("mouseOver",V)},o=V=>{this.emit("mouseOut",V),this.container.style.userSelect=""},r=V=>{this.emit("mouseClick",V)},a=V=>{this.emit("mouseDoubleClick",V)},l=V=>{this.emit("mouseWheel",V)},c=V=>{this.emit("mouseContextMenu",V)},u=V=>{this.emit("touchStart",V),this.container.style.userSelect="none"},h=V=>{this.emit("touchEnd",V),this.container.style.userSelect=""},d=V=>{this.emit("touchCancel",V),this.container.style.userSelect=""},f=V=>{this.emit("touchMove",V)},m=V=>{this.emit("pointerDown",V),this.container.style.userSelect="none"},y=V=>{this.emit("pointerUp",V),this.container.style.userSelect=""},_=V=>{this.emit("pointerCancel",V),this.container.style.userSelect=""},C=V=>{this.emit("pointerMove",V)},k=V=>{this.emit("pan",V)},P=V=>{this.emit("panStart",V),this.container.style.userSelect="none"},D=V=>{this.emit("panMove",V)},U=V=>{this.emit("panEnd",V),this.container.style.userSelect=""},F=V=>{this.emit("panCancel",V),this.container.style.userSelect=""},H=V=>{this.emit("panLeft",V)},ve=V=>{this.emit("panRight",V)},be=V=>{this.emit("panUp",V),this.container.style.userSelect=""},Ce=V=>{this.emit("panDown",V),this.container.style.userSelect="none"},De=V=>{this.emit("pinch",V)},ye=V=>{this.emit("press",V)},Ne=V=>{this.emit("rotate",V)},Le=V=>{this.emit("swipe",V)},me=V=>{this.emit("tap",V)},_e=V=>{!V.target||this.container==V.target||this.container.contains(V.target)||this.emit("tapOutSide",V)};this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",t),this.container.addEventListener("mousemove",s),this.container.addEventListener("mouseover",i),this.container.addEventListener("mouseout",o),this.container.addEventListener("click",r),this.container.addEventListener("dblclick",a),this.container.addEventListener("wheel",l),this.container.addEventListener("contextmenu",c),this.container.addEventListener("touchstart",u),this.container.addEventListener("touchend",h),this.container.addEventListener("touchcancel",d),this.container.addEventListener("touchmove",f),this.container.addEventListener("pointerdown",m),this.container.addEventListener("pointerup",y),this.container.addEventListener("pointercancel",_),this.container.addEventListener("pointermove",C),this.hammer.on("pan",k),this.hammer.on("panstart",P),this.hammer.on("panmove",D),this.hammer.on("panend",U),this.hammer.on("pancancel",F),this.hammer.on("panleft",H),this.hammer.on("panright",ve),this.hammer.on("panup",be),this.hammer.on("pandown",Ce),this.hammer.on("pinch",De),this.hammer.on("press",ye),this.hammer.on("rotate",Ne),this.hammer.on("swipe",Le),this.hammer.on("tap",me),document.addEventListener("pointerdown",_e,!1);const re=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",t),this.container.removeEventListener("mousemove",s),this.container.removeEventListener("mouseover",i),this.container.removeEventListener("mouseout",o),this.container.removeEventListener("click",r),this.container.removeEventListener("dblclick",a),this.container.removeEventListener("wheel",l),this.container.removeEventListener("contextmenu",c),this.container.removeEventListener("touchstart",u),this.container.removeEventListener("touchend",h),this.container.removeEventListener("touchcancel",d),this.container.removeEventListener("touchmove",f),this.container.removeEventListener("pointerdown",m),this.container.removeEventListener("pointerup",y),this.container.removeEventListener("pointercancel",_),this.container.removeEventListener("pointermove",C),this.hammer.off("pan",k),this.hammer.off("panstart",P),this.hammer.off("panmove",D),this.hammer.off("panend",U),this.hammer.off("pancancel",F),this.hammer.off("panleft",H),this.hammer.off("panright",ve),this.hammer.off("panup",be),this.hammer.off("pandown",Ce),this.hammer.off("pinch",De),this.hammer.off("press",ye),this.hammer.off("rotate",Ne),this.hammer.off("swipe",Le),this.hammer.off("tap",me),document.removeEventListener("pointerdown",_e,!1),document.removeEventListener("touchstart",_e,!1),document.removeEventListener("mousedown",_e,!1)};return this.addDOMEventBusRemoves(re),re}registerInputEventListeners(){const e=l=>{this.emit("inputChange",l,this.container.files)},t=l=>{this.emit("dragstart",l)},s=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="copy"),this.emit("dragover",l)},i=l=>{this.emit("dragenter",l)},o=l=>{this.emit("dragend",l)},r=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer,this.emit("drop",l,l.dataTransfer?.files)};this.container instanceof HTMLInputElement&&this.container.addEventListener("change",e,!1),this.container.addEventListener("dragstart",t,!1),this.container.addEventListener("dragover",s,!1),this.container.addEventListener("dragenter",i,!1),this.container.addEventListener("dragend",o,!1),this.container.addEventListener("drop",r,!1);const a=()=>{this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",e,!1),this.container.removeEventListener("dragstart",t,!1),this.container.removeEventListener("dragover",s,!1),this.container.removeEventListener("dragenter",i,!1),this.container.removeEventListener("dragend",o,!1),this.container.removeEventListener("drop",r,!1)};return this.addDOMEventBusRemoves(a),a}registerTransitionEventListeners(){const e=s=>{this.emit("transitionend",s)};this.container.addEventListener("transitionend",e);const t=()=>{this.container.removeEventListener("transitionend",e)};return this.addDOMEventBusRemoves(t),t}registerKeyDown(e,t,s){const i=Mm.on(e,r=>(t(r,i.formatedKeyNames,i.pause,i.restart),s)),o=()=>{i.removeListener?.()};return this.addDOMEventBusRemoves(o),o}registerResizeObserver(){const e=new ResizeObserver(s=>{const{width:i,height:o}=s[0].contentRect;this.width=i,this.height=o,this.emit("resize",i,o)});e.observe(this.container);const t=()=>{e.unobserve(this.container)};return this.addDOMEventBusRemoves(t),t}registerMatchMediaChange(e){let t="";switch(e){case"(prefers-color-scheme: dark)":t="matchMediaChangePrefersColorSchemeDark";break;default:t=e;break}const s=o=>{this.emit(t,o.matches)};window.matchMedia(e).addEventListener("change",s);const i=()=>{window.matchMedia(e).removeEventListener("change",s)};return this.addDOMEventBusRemoves(i),i}registerElementDisplayInParentWhenScrollChange(e){const t={threshold:e?.threshold||.5,root:e?.parentElement},s=new IntersectionObserver((o,r)=>{let a=o[0];if(o.length>1){const c=o.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=t.threshold?this.emit("showInParent"):this.emit("showOffParent")},t);s.observe(this.container);const i=()=>{s.unobserve(this.container)};return this.addDOMEventBusRemoves(i),i}registerPullDownRefresh(e){const t=e?.distance||50;let s=0,i=0;return this.captureMove({start:o=>{s=this.setMousePoint(o).y},move:()=>{i=this.mousePoint.y-s,i>0&&i<t&&this.emit("pullDownIng",i)},end:()=>{i>=t&&this.emit("pullDown")}})}registerPullUpLoading(e){const t=e?.distance||50;let s=0,i=0;return this.captureMove({start:o=>{s=this.setMousePoint(o).y},move:()=>{i=s-this.mousePoint.y,i>0&&i<t&&this.emit("pullUpIng",i)},end:()=>{i>=t&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(e){return this.captureMoveUsePointer(e)}captureMoveUsePointer(e){const t=r=>{this.container.setPointerCapture(r.pointerId),this.container.style.userSelect="none",e?.start?.(r)},s=r=>{this.container.style.userSelect="",e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("pointerDown",t),this.on("pointerUp",s),this.on("pointerCancel",s),this.on("pointerMove",i);const o=()=>{this.off("pointerDown",t),this.off("pointerUp",s),this.off("pointerCancel",s),this.off("pointerMove",i)};return this.addDOMEventBusRemoves(o),o}captureMoveUseMouse(e){const t=r=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",s,!1),this.container.style.userSelect="none",e?.start?.(r)},s=r=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",s,!1),this.container.style.userSelect="",e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("mouseDown",t);const o=()=>{this.off("mouseDown",t)};return this.addDOMEventBusRemoves(o),o}captureMoveUseTouch(e){const t=r=>{r.preventDefault(),e?.start?.(r)},s=r=>{e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("touchStart",t),this.on("touchEnd",s),this.on("touchCancel",s),this.on("touchMove",i);const o=()=>{this.off("touchStart",t),this.off("touchEnd",s),this.off("touchCancel",s),this.off("touchMove",i)};return this.addDOMEventBusRemoves(o),o}static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class zr{video;constructor(e){this.video=e}setSrcObject(e){this.video.addEventListener("loadedmetadata",t=>{t.target}),this.video.srcObject=e}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{this.setSrcObject(e)})}static async videoMediaChangeSupport(){return new Promise(e=>{const t=document.createElement("iframe"),s=document.createElement("video"),i=document.createElement("source"),o=new MediaSource;o.addEventListener("sourceopen",()=>e(!0)),i.src=URL.createObjectURL(o),i.media="(min-width:10px)",s.append(i),t.width="5",t.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(t),t.contentDocument?.body.append(s),setTimeout(()=>{t.width="15"}),setTimeout(()=>{t.remove(),e(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(t=>{e.play().then(()=>{e.autoplay=!0,t(!0)}).catch(()=>{zr.setAutoPlayWhenClick(e),t(!1)})})}static setAutoPlayWhenClick(e){function t(){e.autoplay=!0,e.play(),document.removeEventListener("click",t),document.removeEventListener("touchend",t)}document.addEventListener("click",t),document.addEventListener("touchend",t)}}class $m extends wc{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(e){super(),this.source=e}parse(){const e=pc(this.source);if(e===0){this.emit("finish");return}let t,s,i=mc(this.source,0);for(let o=1;o<e;o++)t=s,s=i,i=mc(this.source,o),this.raw+=s,s&&this.step(s,i,t);i&&this.step(i,void 0,s),this.emit("finish")}step(e,t,s){e==`
54
- `&&this.emit("newline"),this.act(e,t,s)}act(e,t,s){switch(this.mode){case"text":switch(e){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=e,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=e;break}break;case"entity":pn("whitespace",e)?(this.textchunk+=Q.entity2text(this.entity),this.mode="text"):e==";"?(this.textchunk+=Q.entity2text(this.entity+e),this.mode="text"):this.entity+=e;break;case"special":if(s=="!"&&e=="-"&&t=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&e=="["){this.mode="cdata",this.textchunk="";break}if(e==">"||e=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=e;break;case"cdata":if(s=="]"&&e=="]"&&t==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}e=="eof"&&(this.mode="cdata end",this.act(e,t,s)),this.textchunk+=e;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":t==">"||e=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":e=="-"&&s=="-"&&t==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):e=="eof"?this.emit("comment",this.textchunk):this.textchunk+=e;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(e=="?"&&t==">"){this.mode="declaration end";break}e=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=e;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(e=="eof"){this.emit("text","<");break}if(!pn("whitespace",e)){if(this.mode="tag name",e=="/"){this.mode="close tag name start";break}else if(e=="!"){this.mode="special",this.textchunk="";break}else if(e=="?"){this.mode="declaration";break}this.act(e,t,s)}break;case"close tag name start":pn("whitespace",e)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(e,t,s));break;case"close tag name":if(pn("whitespace",e))this.tagname=this.nodename;else switch(e){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=e);break}break;case"tag name":if(pn("whitespace",e))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(e){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=t,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=e;break}break;case"attr start":pn("whitespace",e)||(this.mode="attr",this.nodename="",this.act(e,t,s));break;case"attr":if(pn("whitespace",e)||e=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(e){case">":this.nodename=="/"?(delete this.attrs["/"],this.emit("tag",this.tagname,this.attrs),this.emit("/tag",this.tagname,this.attrs)):(this.nodename&&(this.attrs[this.nodename]=""),this.emit("tag",this.tagname,this.attrs)),this.mode="text";break;default:this.nodename+=e;break}break;case"attr value start":if(!pn("whitespace",e)){if(this.mode="attr value",this.quote="",e=="'"||e=='"'){this.quote=e;return}this.act(e,t,s)}break;case"attr value":if(pn("whitespace",e)&&!this.quote)this.mode="attr start";else if(e==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(e){case'"':case"'":this.quote==e&&s!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=e;break}break}}}function cu(n,e){if(typeof e<"u")window.localStorage.setItem(n,e);else return window.localStorage.getItem(n)??void 0}tt.page.on("matchMediaChangePrefersColorSchemeDark",n=>{Gr(n?"dark":"light")}),Am();function Gr(n){cu("colorScheme",n),document.documentElement.classList.toggle("dark",n=="dark")}function Am(){const n=cu("colorScheme");if(n=="dark"||n=="light")return Gr(n),n;{const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return Gr(e),e}}const oe={safeAreaTop:Q.getCSSVar("--safe-area-inset-top"),safeAreaRight:Q.getCSSVar("--safe-area-inset-right"),safeAreaBottom:Q.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:Q.getCSSVar("--safe-area-inset-left"),colorPrimary:Q.getCSSVar("--color-primary")||"#5078f0",colorRed:Q.getCSSVar("--color-red")||"#ff5050",colorOrange:Q.getCSSVar("--color-orange")||"#fa8c00",colorYellow:Q.getCSSVar("--color-yellow")||"#fadc32",colorGreen:Q.getCSSVar("--color-green")||"#00c878",colorBlue:Q.getCSSVar("--color-blue")||"#00b4fa",colorPurple:Q.getCSSVar("--color-purple")||"#6464fa",colorBlack:Q.getCSSVar("--color-black")||"#001428",colorGray00:Q.getCSSVar("--color-gray-00")||"#000000",colorGray33:Q.getCSSVar("--color-gray-33")||"#333333",colorGray66:Q.getCSSVar("--color-gray-66")||"#666666",colorGray99:Q.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:Q.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:Q.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:Q.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:Q.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:Q.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:Q.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:Q.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:Q.getCSSVar("--font-line-height")||"1,4",fontSize32:Q.getCSSVar("--font-size-32")||"32px",fontSize24:Q.getCSSVar("--font-size-24")||"24px",fontSize20:Q.getCSSVar("--font-size-20")||"20px",fontSize18:Q.getCSSVar("--font-size-18")||"18px",fontSize16:Q.getCSSVar("--font-size-16")||"16px",fontSize14:Q.getCSSVar("--font-size-14")||"14px",fontSize12:Q.getCSSVar("--font-size-12")||"12px",fontSize11:Q.getCSSVar("--font-size-11")||"11px",gap4:Q.getCSSVar("--gap-4")||"4px",gap8:Q.getCSSVar("--gap-8")||"8px",gap12:Q.getCSSVar("--gap-12")||"12px",gap16:Q.getCSSVar("--gap-16")||"16px",gap20:Q.getCSSVar("--gap-20")||"20px",gap40:Q.getCSSVar("--gap-40")||"40px",height44:Q.getCSSVar("--height-44")||"44px",height32:Q.getCSSVar("--height-32")||"32px",borderRadius:Q.getCSSVar("--border-radius")||"4px"};function Qi(n,e){if(n.hasOwnProperty("r")&&n.hasOwnProperty("g")&&n.hasOwnProperty("b"))return n.r=Math.round(Vt(n.r,0,255)),n.g=Math.round(Vt(n.g,0,255)),n.b=Math.round(Vt(n.b,0,255)),n.hasOwnProperty("a")?n.a=typeof e=="number"?e:n.a:n.a=typeof e=="number"?e:1,n.a=Vt(n.a,0,1),n;const t={r:0,g:0,b:0,a:1};let s=-1;if(typeof n=="number")s=n;else if(typeof n=="string")if(n[0].toLowerCase()==="r"){const i=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(n);i&&(s=(parseInt(i[1])<<16)+(parseInt(i[2])<<8)+parseInt(i[3]),i[4]&&(t.a=parseFloat(i[4])))}else if(n[0]==="#")s=parseInt(n.slice(1,7),16),n.length>7&&(t.a=cs(parseInt(n.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+n);return s>=0&&(t.r=s>>16&255,t.g=s>>8&255,t.b=s&255),typeof e=="number"&&(t.a=e),t.a=Vt(t.a,0,1),t}function uu(n,e){const t=Qi(n,e);return t.a===1?`rgb(${t.r},${t.g},${t.b})`:`rgba(${t.r},${t.g},${t.b},${t.a})`}function Ji(n){return cp(n.toString(16),2,"0","left")}function hu(n,e){const t=Qi(n,e);let s=`#${Ji(t.r)}${Ji(t.g)}${Ji(t.b)}`;return t.a===1?s:s+`${Ji(t.a)}`}const Rm=()=>Math.random()*16777215,eo=()=>hu(Rm());function gn(n,e){const t=Qi(n);return t.r==0&&(t.r=32),t.g==0&&(t.g=32),t.b==0&&(t.b=32),t.r=t.r*(100+e)/100,t.g=t.g*(100+e)/100,t.b=t.b*(100+e)/100,t.r=Math.round(Vt(t.r,0,255)),t.g=Math.round(Vt(t.g,0,255)),t.b=Math.round(Vt(t.b,0,255)),hu(t)}const to=new Map;async function du(n){return new Promise((e,t)=>{Vm(n,(s,i)=>s?t(s):e({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const Vm=(n,e)=>{if(to.has(n))return e(null,to.get(n));const t=new Image;t.onload=function(){to.set(n,{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height,element:t}),e(null,to.get(n))},t.onerror=function(s){e(s,null)},t.src=n};class Xs extends dt{shapes=[];constructor(e){super(e)}toSVGPathData(){return this.shapes.reduce((e,t,s)=>{const i=t.toSVGPathData();return Array.isArray(i[0])?e.push(...i):e.push(i),e},[])}toCanvasContext(e){}}const Lm=Xs;class Fm extends $m{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(e){super(e),this.on("tag",(t,s)=>{switch(this.text="",this.currentItem={type:t},t){case"g":this.groups.push(this.currentItem);break}this.processAttrs(t,s)}),this.on("text",t=>{if(this.currentItem.type=="style"){try{const s=mp(t);for(let i of s.stylesheet.rules)for(let o of i.declarations)for(let r of i.selectors)this.globalStyles[r]=this.globalStyles[r]||[],this.globalStyles[r].push(`${o.property}:${o.value}`)}catch{console.error("CAN'T parse css text: "+t)}return}this.text+=t}),this.on("/tag",(t,s)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let o="",r="";for(let a in this.groups[i])a=="transform"?o=this.groups[i].transform:a=="class"&&this.globalStyles["."+this.groups[i][a]]?r=this.globalStyles["."+this.groups[i][a]].join(";")+";"+r:a=="id"&&this.globalStyles["#"+this.groups[i][a]]?r=this.globalStyles["#"+this.groups[i][a]].join(";")+";"+r:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[i][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=o:this.currentItem.transform+=" "+o,typeof this.currentItem.style>"u"?this.currentItem.style=r:this.currentItem.style=r+this.currentItem.style,this.currentItem.class&&this.globalStyles["."+this.currentItem.class]?this.currentItem.style=this.globalStyles["."+this.currentItem.class].join(";")+";"+this.currentItem.style:this.currentItem.id&&this.globalStyles["#"+this.currentItem.id]&&(this.currentItem.style=this.globalStyles["#"+this.currentItem.id].join(";")+";"+this.currentItem.style),Br(this.currentItem.style,this.currentItem,Hr)}switch(this.processAttrs(t,s),t){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(e,t){let s=[],i;switch(e){case"svg":let o="",r="";if(t.width&&t.height)o=t.width,r=t.height;else if(t.viewBox){const a=t.viewBox.split(/\s+/gi);a.length==4&&(o=String(parseFloat(a[2])-parseFloat(a[0])),r=String(parseFloat(a[3])-parseFloat(a[1])))}o&&r&&this.items.push({type:"viewbox",width:o,height:r});break;case"line":typeof t.x1=="number"&&typeof t.y1=="number"&&typeof t.x2=="number"&&typeof t.y2=="number"&&(this.currentItem.path="M"+[t.x1,t.y1,t.x2,t.y2]);break;case"stop":i={},t.style&&Br(t.style,i),i.offset=i.offset||t.offset,i.color=i["stop-color"]||t["stop-color"],i.opacity=i["stop-opacity"]||t["stop-opacity"],~(i.offset+"").indexOf("%")?i.offset=parseFloat(i.offset):i.offset=parseFloat(i.offset)*100,i.offset=+i.offset.toFixed(2),this.grad.stops.push(i);break;case"linearGradient":this.grad.angle=(360+jr(parseFloat(t.x1),parseFloat(t.y1),parseFloat(t.x2),parseFloat(t.y2),parseFloat(t.x1)+100,parseFloat(t.y1))).toFixed(2),s=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":s=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let o in t){const r=t[o];if(Hr.includes(o)&&(this.currentItem[o]=r),o==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:o,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:o,stops:[]})),o==="style"&&Br(r,this.currentItem,Hr),o==="transform"&&(this.currentItem.transform=r+(this.currentItem.transform||" ")),o==="fill"){const a=r.match(/url\(#([^)]+)\)/);if(a){const l=a[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}o==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+r+"z"),o==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=r),o==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=r)}}addToItems(){this.items.push(this.currentItem)}}function jr(n,e,t,s,i,o){if(typeof i>"u"||typeof o>"u"){const r=n-t,a=e-s;return!r&&!a?0:(180+Math.atan2(-a,-r)*180/Math.PI+360)%360}else return jr(n,e,i,o)-jr(t,s,i,o)}function Br(n,e,t){const s=(n+"").split(";"),i=/^\s+|\s+$/g;for(let o=0,r=s.length;o<r;o++){let a=s[o].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!t||t.includes(l))&&(e[l]=a[1].replace(i,""))}}const Hr=["id","class","viewBox","width","height","x","y","cx","cy","r","rx","ry","cursor","opacity","src","fill","fill-opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","font","font-family","font-size","font-style","font-weight","letter-spacing"];let fu=class{app;rootEl;shapes=[];allShapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e,t,s){this.app=e,this.rootEl=rt.createSVGElement("svg"),Q.empty(this.app.container),Q.insert(this.app.container,this.rootEl),t&&s?this.setSize(t,s):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.currentMouseInShapeID="",this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}let i=0,o=this.shapes.length;for(;i<o;i++){const r=this.shapes[i];if(!(r instanceof je))continue;const a=r.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1;if(a&&(this.currentMouseInShapeID=r.id),r.mouseMove&&r.mouseMove(a),a&&r.enableDrag){this.currentEnableDragMouseInShapeID=r.id;break}}i>=o&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShapeID?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}setSize(e,t){return Q.attribute(this.rootEl,{viewBox:`0 0 ${e} ${t}`,width:`${e}`,height:`${t}`}),this}download(){return rt.downloadFromSVGElement(this.rootEl)}attr(e,t,s){const i=e.el||e;if(!(i instanceof SVGElement))return this;if(t===void 0&&s===void 0)return Q.attribute(i);if(typeof t=="string"&&s===void 0)return Q.attribute(i,Rt(t))||"";if(typeof t=="object"){const o=Q.attribute(i);if(Q.attribute(i,t),e instanceof dt){e.attrs={...t};for(let r in t)Rt(r)===o[Rt(r)]&&delete o[Rt(r)];for(let r in o)r!=="d"&&r!=="fill"&&r!=="stroke"&&Q.removeAttribute(i,r)}}else typeof t=="string"&&s!==void 0&&(Q.attribute(i,Rt(t),s),e instanceof dt&&(e.attrs[Rt(t)]=s));return this}path(e,t){const s=typeof t?.addToShapes=="boolean"?t?.addToShapes:!0;if(e instanceof gu){e.el=this.text(e.text,e.x,e.y),this.attr(e.el,e.attrs),this.allShapes.push(e);return}if(e instanceof ct){const o=`M ${e.fromX} ${e.fromY} `+e.toSVGPathD();e.el=rt.createSvgPath(o),Q.insert(this.rootEl,e.el),this.update(e),this.allShapes.push(e),s&&this.shapes.push(e);return}if(e instanceof Qt){e.shapes.forEach(o=>{o.el=rt.createSvgPath(o.toSVGPathD()),Q.insert(this.rootEl,o.el),this.update(o),this.allShapes.push(o),s&&this.shapes.push(o)});return}if(e instanceof Xs){e.shapes.forEach(o=>this.path(o,t));return}let i;return e instanceof je?i=e:e instanceof dt?i=je.fromShape(e):(i=je.fromSVGPathD(e||"M0,0"),zi(i,t||{})),i.el=rt.createSvgPath(i.toSVGPathD()),Q.insert(this.rootEl,i.el),this.update(i),this.allShapes.push(i),s&&this.shapes.push(i),i}update(e){if(!e)return;const t=[];e instanceof Xs?t.push(...e.shapes):t.push(e),t.forEach(s=>{if(s instanceof je){if(s.followMouse&&(!zs(s.x,this.app.mousePoint.x,5)||!zs(s.y,this.app.mousePoint.y,5))&&(s.angleTo(this.app.mousePoint),s.followTo(this.app.mousePoint)),s.targetToAfterDragFree&&(this.isMouseDown||s.nextFrameEaseTo(new et({x:s.targetToAfterDragFree.targetX,y:s.targetToAfterDragFree.targetY}),{easing:s.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==s.id){const{dx:i,dy:o}=s.centerDiff;s.x=this.app.mousePoint.x,s.y=this.app.mousePoint.y,s.x-=i,s.y-=o,s.isDragging=!0,this.shapes.filter(r=>r.id!=s.id).forEach(r=>{r instanceof dt&&(r.isDragging=!1)})}s.updateTransform()}(s instanceof ct||s instanceof je)&&(this.attr(s,"d",s instanceof ct?`M ${s.fromX} ${s.fromY} `+s.toSVGPathD():s.toSVGPathD()),this.attr(s,s.attrs)),s.el&&(s.isShow?Q.show(s.el):Q.hide(s.el))})}click(e){const t=()=>{this.shapes.forEach(s=>{s instanceof je&&s.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)&&e(s)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}delete(e){e.el&&Q.remove(e.el),this.shapes=this.shapes.filter(t=>t.id!=e.id),this.allShapes=this.allShapes.filter(t=>t.id!=e.id)}clear(){this.allShapes.forEach(e=>{e instanceof SVGElement?Q.remove(e):e.el&&Q.remove(e.el)}),this.shapes=[],this.allShapes=[]}pathRosetta(e,t,s,i,o){if(o==0)throw new Error("no dividing by zero, please");const r=new je({x:e,y:t}),a=360/o;for(let l=0;l<o;l+=1){const c=a*l*Math.PI/180,u=e+2*s*Math.cos(c),h=t+2*s*Math.sin(c);r.appendLine(new qs({x:u,y:h,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),r.appendLine(new qs({x:e,y:t,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return this.path(r),r}trailPath(e,t,s=0){const i=e.getTotalLength();return this.attr(t,"d",e.getSubpath(0,s*i).toSVGPathD()),e.getPointAtLength(s*i)}circle(e,t,s){return this.path(new et({x:e,y:t,radius:s}))}circleEl(e,t,s){const i=rt.createSVGElement("circle",{cx:String(e),cy:String(t),r:String(s)});return Q.insert(this.rootEl,i),i}ellipse(e,t,s,i){return this.path(new Ym({x:e,y:t,rx:s,ry:i}))}ellipseEl(e,t,s,i){const o=rt.createSVGElement("ellipse",{cx:String(e),cy:String(t),rx:String(s),ry:String(i)});return Q.insert(this.rootEl,o),o}rect(e,t,s,i){return this.path(new Lt({x:e,y:t,width:s,height:i}))}rectEl(e,t,s,i){const o=rt.createSVGElement("rect",{x:String(e),y:String(t),width:String(s),height:String(i)});return Q.insert(this.rootEl,o),o}image(e,t,s,i,o){}text(e,t,s,i="1.2em"){const o=rt.createSVGElement("text",{x:String(t),y:String(s)});return e.split(`
55
- `).forEach((r,a)=>{if(r.trim()){const l=rt.createSVGElement("tspan",{x:String(t),dy:a>0?i:"0"});Q.html(l,r),Q.insert(o,l),this.attr(l,{"alignment-baseline":"middle"})}}),Q.insert(this.rootEl,o),o}};const pu=zm("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function zm(n,e=10){const t={},s=n.split(",");for(let i=0;i<s.length;i+=2){const o="&"+s[i+1]+";",r=parseInt(s[i],e);t[o]="&#"+r+";"}return t["\\xa0"]="&#160;",t}function Tt(n,e){const t=Object.keys(e);for(let s=0;s<t.length;s++)n=n.replace(new RegExp("{"+t[s]+"}","gi"),""+e[t[s]]);return n}function no(n){let e,t;if(!n)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",t=0;t<12;t++)e+=s[Math.floor(Math.random()*s.length)];while(n[e]);return e}function Gm(n){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[n]||e.start}function jm(n){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[n]||e.alphabetic}const Us={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class Yr{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}addColorStop(e,t){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+e),t.indexOf("rgba")!==-1){const o=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(t);o&&(s.setAttribute("stop-color",Tt("rgb({r},{g},{b})",{r:o[1],g:o[2],b:o[3]})),s.setAttribute("stop-opacity",o[4]))}else s.setAttribute("stop-color",t);this.__root.appendChild(s)}}class mu{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}}class so{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:t=500,height:s=500}){e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=t,this.height=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(Us);for(let t=0,s=e.length;t<s;t++){const i=e[t];this[i]=Us[i].canvas}}__getStyleState(){const e={},t=Object.keys(Us);for(let s=0,i=t.length;s<i;s++){const o=t[s];e[o]=this[o]}return e}__applyStyleState(e){const t=Object.keys(e);for(let s=0,i=t.length;s<i;s++){const o=t[s];this[o]=e[o]}}__createElement(e,t={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",e),o=Object.keys(t);s&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let r=0;r<o.length;r++){const a=o[r];i.setAttribute(a,t[a])}return i}__applyStyleToCurrentElement(e){let t=this.__currentElement;const s=this.__currentElementsToStyle;s&&(t.setAttribute(e,""),t=s.element,s.children.forEach(o=>{o.setAttribute(e,"")}));const i=Object.keys(Us);for(let o=0;o<i.length;o++){const r=Us[i[o]],a=this[i[o]];if(r.apply){if(a instanceof mu){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const l=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}t.setAttribute(r.apply,Tt("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Yr)t.setAttribute(r.apply,Tt("url(#{id})",{id:a.__root.getAttribute("id")}));else if(r.apply.indexOf(e)!==-1&&r.svg!==a)if((r.svgAttr==="stroke"||r.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);t.setAttribute(r.svgAttr,Tt("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const h=this.globalAlpha;h!=null&&(u*=h),t.setAttribute(r.svgAttr+"-opacity",""+u)}else{let l=r.svgAttr;if(i[o]==="globalAlpha"&&(l=e+"-"+r.svgAttr,t.getAttribute(l)))continue;l&&t.setAttribute(l,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let t=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(t)&&(t=t.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const i=Object.keys(pu);for(let o=0,r=i.length;o<r;o++){const a=i[o],l=pu[a],c=new RegExp(a,"gi");c.test(t)&&(t=t.replace(c,l))}}return t}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),t=this.__closestGroupOrSvg();this.__groupStack.push(t),t.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const t=this.__styleStack.pop();t&&this.__applyStyleState(t)}__addTransform(e){const t=this.__closestGroupOrSvg();if(t.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:t,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");t.appendChild(i),this.__currentElement=i}let s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=e,this.__currentElement.setAttribute("transform",s)}scale(e,t){t===void 0&&(t=e),this.__addTransform(Tt("scale({x},{y})",{x:e,y:t}))}rotate(e){const t=e*180/Math.PI;this.__addTransform(Tt("rotate({angle},{cx},{cy})",{angle:t,cx:0,cy:0}))}translate(e,t){this.__addTransform(Tt("translate({x},{y})",{x:e,y:t}))}transform(e,t,s,i,o,r){this.__addTransform(Tt("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:t,c:s,d:i,e:o,f:r}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"&&e.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,t){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:t},this.__addPathCommand(Tt("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,t){this.__currentPosition={x:e,y:t},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Tt("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Tt("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,t,s,i,o,r){this.__currentPosition={x:o,y:r},this.__addPathCommand(Tt("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:t,cp2x:s,cp2y:i,x:o,y:r}))}quadraticCurveTo(e,t,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(Tt("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:t,x:s,y:i}))}normalize(e){const t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}arcTo(e,t,s,i,o){const r=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof r>"u"||typeof a>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(r===e&&a===t||e===s&&t===i||o===0){this.lineTo(e,t);return}const l=this.normalize([r-e,a-t]),c=this.normalize([s-e,i-t]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(e,t);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),d=this.normalize([l[0]+c[0],l[1]+c[1]]),f=o/Math.sin(h/2),m=e+f*d[0],y=t+f*d[1],_=[-l[1],l[0]],C=[c[1],-c[0]],k=function(U){const F=U[0];return U[1]>=0?Math.acos(F):-Math.acos(F)},P=k(_),D=k(C);this.lineTo(m+_[0]*o,y+_[1]*o),this.arc(m,y,o,P,D)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,t,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,t),this.lineTo(e+s,t),this.lineTo(e+s,t+i),this.lineTo(e,t+i),this.lineTo(e,t),this.closePath()}fillRect(e,t,s,i){const o=this.__createElement("rect",{x:e,y:t,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("fill")}strokeRect(e,t,s,i){const o=this.__createElement("rect",{x:e,y:t,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const t=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],i=s.childNodes;for(let o=i.length-1;o>=0;o--)i[o]&&s.removeChild(i[o]);this.__currentElement=s,this.__groupStack=[],t&&this.__addTransform(t)}clearRect(e,t,s,i){if(e===0&&t===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const o=this.__closestGroupOrSvg(),r=this.__createElement("rect",{x:e,y:t,width:s,height:i,fill:"#FFFFFF"},!0);o.appendChild(r)}createLinearGradient(e,t,s,i){const o=this.__createElement("linearGradient",{id:no(this.__ids),x1:e+"px",x2:s+"px",y1:t+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new Yr(o,this)}createRadialGradient(e,t,s,i,o,r){const a=this.__createElement("radialGradient",{id:no(this.__ids),cx:i+"px",cy:o+"px",r:r+"px",fx:e+"px",fy:t+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Yr(a,this)}__parseFont(){const t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),s={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(e,t){if(e.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),s.appendChild(t),s}return t}__applyText(e,t,s,i){const o=this.__parseFont(),r=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":o.family,"font-size":o.size,"font-style":o.style,"font-weight":o.weight,"text-decoration":o.decoration,x:t,y:s,"text-anchor":Gm(this.textAlign),"dominant-baseline":jm(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),r.appendChild(this.__wrapTextLink(o,a))}fillText(e,t,s){this.__applyText(e,t,s,"fill")}strokeText(e,t,s){this.__applyText(e,t,s,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,t,s,i,o,r){if(i===o)return;i=i%(2*Math.PI),o=o%(2*Math.PI),i===o&&(o=(o+2*Math.PI-.001*(r?-1:1))%(2*Math.PI));const a=e+s*Math.cos(o),l=t+s*Math.sin(o),c=e+s*Math.cos(i),u=t+s*Math.sin(i),h=r?0:1;let d=0,f=o-i;f<0&&(f+=2*Math.PI),r?d=f>Math.PI?0:1:d=f>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Tt("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:d,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const e=this.__closestGroupOrSvg(),t=this.__createElement("clipPath"),s=no(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),t.setAttribute("id",s),t.appendChild(this.__currentElement),this.__SVGdefs.appendChild(t),e.setAttribute("clip-path",Tt("url(#{id})",{id:s})),e.appendChild(i),this.__currentElement=i}drawImage(...e){let t=e[0],s,i,o,r,a=0,l=0,c,u,h,d,f,m,y,_;if(e.length===3)s=e[1],i=e[2],c=t.width,u=t.height,o=c,r=u;else if(e.length===5)s=e[1],i=e[2],o=e[3],r=e[4],c=t.width,u=t.height;else if(e.length===9)a=e[1],l=e[2],c=e[3],u=e[4],s=e[5],i=e[6],o=e[7],r=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const C=this.__closestGroupOrSvg();this.__currentElement;const k="translate("+s+", "+i+")";if(t instanceof so){if(h=t.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(d=h.childNodes[0];d.childNodes.length;)_=d.childNodes[0].getAttribute("id"),this.__ids[_]=_,this.__SVGdefs.appendChild(d.childNodes[0]);if(f=h.childNodes[1],f){const P=f.getAttribute("transform");let D;P?D=P+" "+k:D=k,f.setAttribute("transform",D),C.appendChild(f)}}}else(t.nodeName==="CANVAS"||t.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",o),m.setAttribute("height",r),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==t.width||u!==t.height)&&(y=this.__document.createElement("canvas"),y.width=o,y.height=r,y.getContext("2d")?.drawImage(t,a,l,c,u,0,0,o,r),t=y),m.setAttribute("transform",k),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),C.appendChild(m))}createPattern(e,t){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=no(this.__ids);let o;return s.setAttribute("id",i),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(o=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),o.setAttribute("width",""+e.width),o.setAttribute("height",""+e.height),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),s.appendChild(o),this.__SVGdefs.appendChild(s)):e instanceof so&&(s.setAttribute("width",""+e.width),s.setAttribute("height",""+e.height),s.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new mu(s,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Wr{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(e){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),this.customContext=new so({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(e){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=e,this.customContext.lineWidth=e}get lineWidth(){return this.context.lineWidth}set lineCap(e){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=e,this.customContext.lineCap=e}get lineCap(){return this.context.lineCap}set lineJoin(e){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=e,this.customContext.lineCap=e}get lineJoin(){return this.context.lineJoin}set lineDashOffset(e){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=e,this.customContext.lineDashOffset=e}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(e){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=e,this.customContext.miterLimit=e}get miterLimit(){return this.context.miterLimit}set globalAlpha(e){this.context.globalAlpha=e,this.customContext.globalAlpha=e}get globalAlpha(){return this.context.globalAlpha}set fillStyle(e){this.hasSetCustomFillStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.fillStyle=e,this.customContext.fillStyle=e):(this.context.fillStyle=e.gradient,this.customContext.fillStyle=e.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(e){this.hasSetCustomStrokeStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.strokeStyle=e,this.customContext.strokeStyle=e):(this.context.strokeStyle=e.gradient,this.customContext.strokeStyle=e.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(e){this.context.font=e,this.customContext.font=e}get font(){return this.context.font}set textBaseline(e){this.context.textBaseline=e,this.customContext.textBaseline=e}get textBaseline(){return this.context.textBaseline}set textAlign(e){this.context.textAlign=e,this.customContext.textAlign=e}get textAlign(){return this.context.textAlign}fill(e){return e?this.context.fill(e):(this.context.fill(),this.customContext.fill()),this}fillRect(e,t,s,i){return this.context.fillRect(e,t,s,i),this.customContext.fillRect(e,t,s,i),this}fillText(e,t,s,i){return this.context.fillText(e,t,s,i),this.customContext.fillText(e,t,s),this}setLineDash(e){return this.context.setLineDash(e),this.customContext.setLineDash(e),this}stroke(e){return e?this.context.stroke(e):(this.context.stroke(),this.customContext.stroke()),this}strokeText(e,t,s,i){return this.context.strokeText(e,t,s,i),this.customContext.strokeText(e,t,s),this}strokeRect(e,t,s,i){return this.context.strokeRect(e,t,s,i),this.customContext.strokeRect(e,t,s,i),this}measureText(e){return this.context.measureText(e)}clearRect(e=0,t=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(e,t,s,i),this.customContext.clearRect(e,t,s,i),this}save(){return this.context.save(),this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(e=this.currentPath2D,t=this.currentMatrix){const s=new Path2D;s.addPath(e,t),this.currentPath2D=s}isPointInStroke(...e){return e[0]instanceof Path2D?this.context.isPointInStroke(e[0],e[1],e[2]):this.context.isPointInStroke(e[0],e[1])}isPointInPath(...e){return e[0]instanceof Path2D?this.context.isPointInPath(e[0],e[1],e[2]):this.context.isPointInPath(e[0],e[1])}translate(e,t){return this.context.translate(e,t),this.customContext.translate(e,t),this.currentMatrix.translate(e,t),this.changePath2D(),this}rotate(e){return this.context.rotate(e),this.customContext.rotate(e),this.currentMatrix.rotate(e),this.changePath2D(),this}scale(e,t=e){return this.context.scale(e,t),this.customContext.scale(e,t),this.currentMatrix.scale(e,t),this.changePath2D(),this}moveTo(e,t){return this.context.moveTo(e,t),this.customContext.moveTo(e,t),this.currentPath2D.moveTo(e,t),this}lineTo(e,t){return this.context.lineTo(e,t),this.customContext.lineTo(e,t),this.currentPath2D.lineTo(e,t),this}arc(e,t,s,i,o,r){return this.context.arc(e,t,s,i,o,r),this.customContext.arc(e,t,s,i,o,r?-1:1),this.currentPath2D.arc(e,t,s,i,o,r),this}arcTo(e,t,s,i,o){return this.context.arcTo(e,t,s,i,o),this.customContext.arcTo(e,t,s,i,o),this.currentPath2D.arcTo(e,t,s,i,o),this}ellipse(e,t,s,i,o,r,a,l){return this.context.ellipse(e,t,s,i,o,r,a,l),this.currentPath2D.ellipse(e,t,s,i,o,r,a,l),this}quadraticCurveTo(e,t,s,i){return this.context.quadraticCurveTo(e,t,s,i),this.customContext.quadraticCurveTo(e,t,s,i),this.currentPath2D.quadraticCurveTo(e,t,s,i),this}bezierCurveTo(e,t,s,i,o,r){return this.context.bezierCurveTo(e,t,s,i,o,r),this.customContext.bezierCurveTo(e,t,s,i,o,r),this.currentPath2D.bezierCurveTo(e,t,s,i,o,r),this}rect(e,t,s,i){return this.context.rect(e,t,s,i),this.customContext.rect(e,t,s,i),this.currentPath2D.rect(e,t,s,i),this}createLinearGradient(e,t,s,i,o){const r=this.context.createLinearGradient(e,t,s,i),a=this.customContext.createLinearGradient(e,t,s,i);return o&&Object.keys(o).forEach(l=>{const c=parseFloat(l);r.addColorStop(c,o[c]),a.addColorStop(c,o[c])}),{gradient:r,gradientCustom:a}}createRadialGradient(e,t,s,i,o,r,a){const l=this.context.createRadialGradient(e,t,s,i,o,r),c=this.customContext.createRadialGradient(e,t,s,i,o,r);return a&&Object.keys(a).forEach(u=>{const h=parseFloat(u);l.addColorStop(h,a[h]),c.addColorStop(h,a[h])}),{gradient:l,gradientCustom:c}}drawImage(e,...t){if(t.length===0)this.context.drawImage(e,0,0);else if(t.length===2){const s=t[0],i=t[1];this.context.drawImage(e,s,i)}else if(t.length===4){const s=t[0],i=t[1],o=t[2],r=t[3];this.context.drawImage(e,s,i,o,r)}else if(t.length===8){const s=t[0],i=t[1],o=t[2],r=t[3],a=t[4],l=t[5],c=t[6],u=t[7];this.context.drawImage(e,s,i,o,r,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+t.length);return this.customContext.drawImage(e,...t),this}getImageData(e=0,t=0,s=this.canvas.width,i=this.canvas.height,o){return this.context.getImageData(e,t,s,i,o)}putImageData(e,t=0,s=0){return this.context.putImageData(e,t,s)}toRawSVG(){const e=this.customContext.getSerializedSvg(!0),t=this.customContext.getSvg();return{raw:e,element:t}}}const Bm=Wr;class ct extends dt{fromX;fromY;constructor(e){super(e),this.fromX=e?.fromX||0,this.fromY=e?.fromY||0}static fromSVGPathData(e,t){if(e.length<3)throw new Error("Line 参数个数错误");if(e[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new ct({x:e[1],y:e[2],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.lineTo(this.x,this.y)}getBoundingClientRect(){const e=Vr(this.fromX,this.fromY,this.x,this.y);if(e===0){const t=Math.min(this.x,this.fromX),s=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),o=Math.max(this.y,this.fromY);return new Zi({x:t,y:s,width:i-t,height:o-s})}else{const t=Math.sin(e),s=Math.cos(e),i=s*this.fromX-t*this.fromY,o=s*this.x-t*this.y,r=s*this.fromY+t*this.fromX,a=s*this.y+t*this.x;return new Zi({x:Math.min(i,o),y:Math.min(r,a),width:Math.max(i,o)-Math.min(i,o),height:Math.max(r,a)-Math.min(r,a)})}}interpolate(e){return{x:this.fromX+e*(this.x-this.fromX),y:this.fromY+e*(this.y-this.fromY)}}}class Xr extends ct{c1x;c1y;c2x;c2y;constructor(e){super(e),this.c1x=e.c1x,this.c1y=e.c1y,this.c2x=e.c2x,this.c2y=e.c2y}static fromSVGPathData(e,t){if(e.length<7)throw new Error("CubicBezier 参数个数错误");if(e[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Xr({c1x:e[1],c1y:e[2],c2x:e[3],c2y:e[4],x:e[5],y:e[6],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const e=rt.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new Zi({x:e.min.x,y:e.min.y,width:e.max.x-e.min.x,height:e.max.y-e.min.y})}interpolate(e){return{x:Math.pow(1-e,3)*this.fromX+3*Math.pow(1-e,2)*e*this.c1x+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2x+Math.pow(e,3)*this.x,y:Math.pow(1-e,3)*this.fromY+3*Math.pow(1-e,2)*e*this.c1y+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2y+Math.pow(e,3)*this.y}}length(e=1){return rt.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,e)}getTatLen(e){const t=this.fromX,s=this.fromY,i=this.c1x,o=this.c1y,r=this.c2x,a=this.c2y,l=this.x,c=this.y;if(e<0||rt.bezlen(t,s,i,o,r,a,l,c)<e)return 0;let u=1,h=u/2,d=u-h,f,m=.01;for(f=rt.bezlen(t,s,i,o,r,a,l,c,d);Math.abs(f-e)>m;)h/=2,d+=(f<e?1:-1)*h,f=rt.bezlen(t,s,i,o,r,a,l,c,d);return d}getPointAtSegmentLength(e){const t=this.getTatLen(e),s=this.fromX,i=this.fromY,o=this.c1x,r=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-t,d=Math.pow(h,3),f=Math.pow(h,2),m=t*t,y=m*t,_=d*s+f*3*t*o+h*3*t*t*a+y*c,C=d*i+f*3*t*r+h*3*t*t*l+y*u,k=s+2*t*(o-s)+m*(a-2*o+s),P=i+2*t*(r-i)+m*(l-2*r+i),D=o+2*t*(a-o)+m*(c-2*a+o),U=r+2*t*(l-r)+m*(u-2*l+r),F=h*s+t*o,H=h*i+t*r,ve=h*a+t*c,be=h*l+t*u,Ce=90-Math.atan2(k-D,P-U)*180/Math.PI;return{x:_,y:C,m:{x:k,y:P},n:{x:D,y:U},start:{x:F,y:H},end:{x:ve,y:be},alpha:Ce}}}const Nn=Xr;class es extends ct{cx;cy;isLineThrough;constructor(e){super(e),this.cx=e.cx,this.cy=e.cy,this.isLineThrough=typeof e.isLineThrough=="boolean"?e.isLineThrough:!0}static fromSVGPathData(e,t){if(e.length<5)throw new Error("QuadraticBezier 参数个数错误");if(e[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new es({cx:e[1],cy:e[2],x:e[3],y:e[4],fromX:t?.x,fromY:t?.y})}toSVGPathData(){if(this.isLineThrough){const e=this.cx*2-(this.fromX+this.x)/2,t=this.cy*2-(this.fromY+this.y)/2;return["Q",e,t,this.x,this.y]}else return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(e){if(e.beginPath(),e.moveTo(this.fromX,this.fromY),this.isLineThrough){const t=this.cx*2-(this.fromX+this.x)/2,s=this.cy*2-(this.fromY+this.y)/2;e.quadraticCurveTo(t,s,this.x,this.y)}else e.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}interpolate(e){return{x:(1-e)*(1-e)*this.fromX+2*(1-e)*e*this.cx+e*e*this.x,y:(1-e)*(1-e)*this.fromY+2*(1-e)*e*this.cy+e*e*this.y}}}const Hm=es;class qs extends ct{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(e){super(e),this.rx=e.rx,this.ry=e.ry,this.xAxisRotate=e?.xAxisRotate??0,this.largeArcFlag=e?.largeArcFlag??1,this.sweepFlag=e?.sweepFlag??1}static fromSVGPathData(e,t){if(e.length<8)throw new Error("Arc 参数个数错误");if(e[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new qs({rx:e[1],ry:e[2],xAxisRotate:e[3],largeArcFlag:e[4],sweepFlag:e[5],x:e[6],y:e[7],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}toCanvasContext(e){e.beginPath();const[t,s,i,o,r,a,l]=this.convertSVGToCanvas(this.fromX,this.fromY,this.x,this.y,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);e.ellipse(t,s,i,o,r,a,l,!this.sweepFlag)}convertSVGToCanvas(e,t,s,i,o,r,a,l,c){const u=a/180*Math.PI,h=(e-s)/2,d=(t-i)/2,f=Math.cos(u)*h+Math.sin(u)*d,m=-Math.sin(u)*h+Math.cos(u)*d,y=f*f/(o*o)+m*m/(r*r);if(y>1){const De=Math.sqrt(y);throw o=De*o,r=De*r,new Error(`Radii are too small to build an arc. Correcting them to ${o}/${r}.`)}const _=Math.sqrt((o*o*r*r-o*o*m*m-r*r*f*f)/(o*o*m*m+r*r*f*f)),C=l!=c?1:-1,k=C*_*o*m/r,P=C*_*-r*f/o,D=(e+s)/2,U=(t+i)/2,F=Math.cos(u)*k-Math.sin(u)*P+D,H=Math.sin(u)*k+Math.cos(u)*P+U,ve=(De,ye,Ne,Le)=>(De*Le>=ye*Ne?1:-1)*Math.acos((De*Ne+ye*Le)/(Math.sqrt(De*De+ye*ye)*Math.sqrt(Ne*Ne+Le*Le))),be=ve(1,0,e-F,t-H)-u,Ce=ve(e-F,t-H,s-F,i-H);return[F,H,o,r,u,be,be+Ce]}}class je extends dt{startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(e){super(e),this.prevPathX=this.startPathX=this.x,this.prevPathY=this.startPathY=this.y}appendLine(e){if(e instanceof qs){Lr(this.prevPathX,this.prevPathY,e.rx,e.ry,e.xAxisRotate,e.largeArcFlag,e.sweepFlag,e.x,e.y).forEach(c=>{const[u,h,d,f,m,y]=c;this.normalizedLines.push(new Nn({c1x:u,c1y:h,c2x:d,c2y:f,x:m,y,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=m,this.prevPathY=y});return}let t,s,i,o,r,a;e instanceof Nn?(t=e.c1x,s=e.c1y,i=e.c2x,o=e.c2y,r=e.x,a=e.y):e instanceof Hm?[t,s,i,o,r,a]=Fr(this.prevPathX,this.prevPathY,e.cx,e.cy,e.x,e.y):[t,s,i,o,r,a]=Ws(this.prevPathX,this.prevPathY,e.x,e.y),this.normalizedLines.push(new Nn({c1x:t,c1y:s,c2x:i,c2y:o,x:r,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=r,this.prevPathY=a}static fromShape(e){const t=je.fromSVGPathD(e.toSVGPathD());return zi(t,e),dp(t,e),t.prevDegree=0,t.prevScaleOnOrigin=1,t.prevSkewDegreeOnOrigin=0,t.updateTransform(),t}static fromSVGPathD(e,t){const s=new je;return s.updateFromSVGPathD(e,t),s}static fromSVGPathData(e,t){const s=new je;return s.updateFromSVGPathData(e,t),s}updateFromSVGPathD(e,t){if(!rt.isSVGPath(e))throw new Error("Not a SVG path!");return this.updateFromSVGPathData(rt.parseSVGPath(e),t)}updateFromSVGPathData(e,t){this.normalizedLines=[];const s=rt.normalizeSVGPath(rt.absolutizeSVGPath(e));for(let o=0,r=s.length;o<r;o++){const a=s[o];if(a[0]=="M"){this.prevPathX=this.startPathX=a[1],this.prevPathY=this.startPathY=a[2];continue}this.appendLine(new Nn({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],x:a[5],y:a[6]}))}const i=au(t??"");return this.transform(i)}toSVGPathData(){const e=[];e.push(["M",this.startPathX,this.startPathY]);for(let t=0,s=this.normalizedLines.length;t<s;t++)e.push(this.normalizedLines[t].toSVGPathData());return e}toCanvasContext(e){e.beginPath(),e.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(t=>{const[s,...i]=t.toSVGPathData();e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}updateTransform(){if((this.x!=this.prevX||this.y!=this.prevY)&&this.translate(this.x-this.prevX,this.y-this.prevY),this.degree!=this.prevDegree){const e=this.getBoundingClientRect();this.rotate(this.degree-this.prevDegree,e.x+e.width/2,e.y+e.height/2)}if(this.scaleOnOrigin!=this.prevScaleOnOrigin){const e=this.getBoundingClientRect(),t=this.scaleOnOrigin/this.prevScaleOnOrigin;this.scale(t,t,e.x+e.width/2,e.y+e.height/2)}}transform(e){return[this.startPathX,this.startPathY]=e.transformPoint(this.startPathX,this.startPathY),[this.prevPathX,this.prevPathY]=e.transformPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(t=>{[t.fromX,t.fromY]=e.transformPoint(t.fromX,t.fromY),[t.c1x,t.c1y]=e.transformPoint(t.c1x,t.c1y),[t.c2x,t.c2y]=e.transformPoint(t.c2x,t.c2y),[t.x,t.y]=e.transformPoint(t.x,t.y)}),this}translate(e,t){const s=new Ct().translate(e,t);return this.transform(s),this.prevX=this.x,this.prevY=this.y,this}rotate(e,t=0,s=0){const i=new Ct().rotate(e,t,s);return this.transform(i),this.prevDegree=this.degree,this}scale(e,t=e,s=0,i=0){const o=new Ct().scale(e,t,s,i);return this.transform(o),this.prevScaleOnOrigin=this.scaleOnOrigin,this}skew(e,t=0){const s=new Ct().skew(e,t);return this.transform(s),this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin,this}trim(){const e=this.getBoundingClientRect();return this.translate(-e.x,-e.y),this}getBoundingClientRect(){let e=0,t=0,s=[],i=[];e=this.startPathX,t=this.startPathY,s.push(e),i.push(t),this.normalizedLines.forEach(c=>{const u=rt.curveDim(e,t,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);s=s.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),e=c.x,t=c.y});const o=Math.min.apply(0,s),r=Math.min.apply(0,i),a=Math.max.apply(0,s),l=Math.max.apply(0,i);return new Zi({x:o,y:r,width:a-o,height:l-r})}getTotalLength(){return this.normalizedLines.reduce((e,t)=>e+=t.length(),0)}interpolate(e){if(this.normalizedLines.length===0)return{x:this.startPathX,y:this.startPathX};if(this.normalizedLines.length===1)return this.normalizedLines[0].interpolate(e);{let t=e*this.normalizedLines.length,s=this.normalizedLines[0];if(t--,t>1)for(let i=1,o=this.normalizedLines.length;i<o&&(s=this.normalizedLines[i],t>1);i++)t-=1;return s.interpolate(t)}}getPointAtLength(e){let t={x:0,y:0,alpha:0},s=0;for(let i=0,o=this.normalizedLines.length;i<o;i++){const r=this.normalizedLines[i],a=r.length();if(s+a>e){t=r.getPointAtSegmentLength(e-s);break}s+=a}return t}getSubpathsAtLength(e,t,s){let i=null,o=0;const r=new je;r.prevPathX=r.startPathX=e.x,r.prevPathY=r.startPathY=e.y;for(let a=0,l=e.normalizedLines.length;a<l;a++){const c=e.normalizedLines[a],u=c.length();if(o+u>t&&!i){const h=c.getPointAtSegmentLength(t-o);if(r.appendLine(new Nn({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),s)return r;i=r,r.prevPathX=h.x,r.prevPathY=h.y,r.appendLine(new Nn({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),o+=u;continue}o+=u,r.appendLine(c)}return r}getSubpath(e,t){if(this.getTotalLength()-t<1e-6)return this.getSubpathsAtLength(this,e);{const s=this.getSubpathsAtLength(this,t,1);return e?this.getSubpathsAtLength(s,e):s}}isPointInPath(e,t,s){if(s instanceof Wr)return s.isPointInPath(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=s.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(e,t,s){if(s instanceof Wr)return s.isPointInStroke(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=s.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}get polymorphPoints(){return[this.startPathX,this.startPathY].concat(this.normalizedLines.reduce((e,t)=>e.concat([t.c1x,t.c1y,t.c2x,t.c2y,t.x,t.y]),[]))}static fromPolymorphPoints(e){const t=new je({x:e[0],y:e[1]});for(let s=2;s+5<e.length;s+=6)t.appendLine(new Nn({c1x:e[s],c1y:e[s+1],c2x:e[s+2],c2y:e[s+3],x:e[s+4],y:e[s+5]}));return t}perimeterPoints(){const e=this.polymorphPoints,t=e.length;let s=e[t-2],i=e[t-1],o=0;for(let r=0;r<t;r+=6)o+=iu(e[r],e[r+1],s,i),s=e[r],i=e[r+1];return Math.floor(o)}fillPathD(e){const t=this.polymorphPoints,s=t.length;let i=e-s;const o=Math.ceil(e/s),r=[];r.push(["M",t[0],t[1]]);let a=2;for(;a+5<=s-1;){const l=t[a++],c=t[a++],u=t[a++],h=t[a++],d=t[a++],f=t[a++];r.push(["C",l,c,u,h,d,f]);let m=0;for(;m<o&&i>0;)r.push(["C",d,f,d,f,d,f]),i-=6,m++}return je.fromSVGPathData(r)}static mixPoints(e,t,s){const i=e.length,o=new Array(i);for(let r=0;r<i;r++)o[r]=cs(e[r]+(t[r]-e[r])*s,6);return o}static getPathInterpolator(e,t){return s=>Math.abs(s-0)<Number.EPSILON?e.toSVGPathD():Math.abs(s-1)<Number.EPSILON?t.toSVGPathD():je.fromPolymorphPoints(this.mixPoints(e.polymorphPoints,t.polymorphPoints,s)).toSVGPathD()}static polymorph(e){if(!e.length)throw new Error("paths 为空!");const t=e.length-1,s=new Array(t);for(let o=0;o<t;o++){const r=Math.max(e[o].polymorphPoints.length,e[o+1].polymorphPoints.length);s[o]=this.getPathInterpolator(e[o].fillPathD(r),e[o+1].fillPathD(r))}const i=je.fromSVGPathD(s[0](0));return o=>{const r=cs(t*o,6),a=Math.min(Math.floor(r),t-1),l=cs(r-a,6);return i.updateFromSVGPathD(s[a](l)),i.attrs=e[a+1].attrs,i}}}class Qt extends Lm{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(e){if(super(e),!e?.svg)return;const t=new Fm(e.svg).parse();for(let s=0,i=t.length;s<i;s++){const o=t[s];if(o.type=="viewbox"&&o.width&&o.height){if(this.svgWidth=parseFloat(o.width),this.svgHeight=parseFloat(o.height),e.width){const u=this.svgWidth/this.svgHeight;this.width=e.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(o.type!="path"||!hs.isSVGPath(o.path))continue;const r={};for(const u in o)u==="type"||u==="path"||u==="transform"||(r[u]=o[u]);const a=hs.absolutizeSVGPath(hs.parseSVGPath(o.path));let l=[],c=[];for(let u=0,h=a.length;u<h;u++){const d=a[u];c.push(d),d[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=je.fromSVGPathData(u,o.transform);zi(h,e),h.attrs={...h.attrs,...r,...e.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.shapes.push(h)})}}static fromShape(e){const t=new Qt;return e instanceof dt?t.shapes.push(je.fromShape(e)):t.shapes.push(...e.map(s=>je.fromShape(s))),t}sortPathD(){this.shapes=this.shapes.map(e=>({path:e,perimeter:e.perimeterPoints()})).sort((e,t)=>t.perimeter-e.perimeter).map(e=>e.path)}fillPathDGroup(e){const t=e.shapes.length,s=this.shapes.length;if(t<s)return e.fillPathDGroup(this);for(let i=s;i<t;i++){const o=e.shapes[i].polymorphPoints,r=o[0],a=o[1],l=new je({x:r,y:a,attrs:e.shapes[i].attrs});for(let c=2;c+5<o.length;c+=6)l.appendLine(new Nn({c1x:r,c1y:a,c2x:r,c2y:a,x:r,y:a}));this.shapes.push(l)}}static polymorph(e){if(!e.length)throw new Error("groups 为空!");let t=-1,s=0;e.forEach((a,l)=>{a.sortPathD(),s<a.shapes.length&&(s=a.shapes.length,t=l)}),e.forEach(a=>a.fillPathDGroup(e[t]));const i=[];e.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const o=[];i.forEach(a=>o.push(je.polymorph(a)));const r=new Qt;return o.forEach(a=>{r.shapes.push(a(0))}),a=>(o.forEach(l=>{l(a)}),r)}}class Ym extends dt{rx;ry;constructor(e){super(e),this.rx=e?.rx||0,this.ry=e?.ry||0}getBoundingClientRect(){return new Lt({x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2})}toSVGPathData(){return[["M",this.x,this.y],["m",0,-this.ry],["a",this.rx,this.ry,0,1,1,0,2*this.ry],["a",this.rx,this.ry,0,1,1,0,-2*this.ry],["z"]]}toCanvasContext(e){e.beginPath(),e.ellipse(this.x,this.y,this.rx,this.ry,0,0,2*Math.PI,!0),e.closePath()}}class fs extends dt{points;constructor(e=[]){if(!e.length)throw new Error("points can't be null");super(e[0]),this.points=e}toSVGPathData(){const e=this.points.length;if(e<3)throw new Error("points length must >= 3");const t=[];t.push(["M",this.points[0].x,this.points[0].y]);for(let s=0;s<=e-1;s++)t.push(["L",this.points[s].x,this.points[s].y]);return t.push(["L",this.points[0].x,this.points[0].y]),t}toCanvasContext(e){const t=this.points.length;if(t<3)throw new Error("points length must >= 3");e.beginPath(),e.moveTo(0,0);for(let s=0;s<=t-1;s++)e.lineTo(this.points[s].x-this.points[0].x,this.points[s].y-this.points[0].y);e.lineTo(0,0)}get length(){return this.points.length}addPoint(e){this.points.push(e)}getPoint(e){return this.points[e]}isContainPoint(e,t){const s=this.length;let i=!1;const o=2e-10;for(let r=0,a=s-1;r<s;a=r,r++){const l=this.points[r].x,c=this.points[r].y,u=this.points[a].x,h=this.points[a].y;if(l===e&&c===t||u===e&&h===t||t===c&&t===h)return!0;if(t>=c&&t<h||t<c&&t>=h){const d=(u-l)/(h-c),f=l+d*(t-c);if(f===e||Math.abs(f-e)<o)return!0;f>e&&(i=!i)}}return i}[Symbol.iterator](){let e=0;return{next:()=>({value:e>=this.length-1?this.points[++e]:void 0,done:e>=this.length})}}static generatePoints(e,t,s,i){const o=[];for(let r=0;r<i;r++){const a=r/i*2*Math.PI,{x:l,y:c}=Jn(a,s);o.push(new et({x:e+l,y:t+c}))}return new fs(o)}}class gu extends dt{text;constructor(e){super(e),this.text=e.text,this.attrs={fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',fill:"#666666","alignment-baseline":"middle",...this.attrs}}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(e){e.fillText(this.text,0,0)}}class vu extends Xs{radius;startDegree;endDegree;text="";defaultShowText;p1=new et;p1Offset=10;p2=new et;p2Offset=40;p3=new et;p3Offset=10;p4=new et;p4Offset=10;direction=1;constructor(e){super(e),this.radius=e.radius,this.startDegree=e.startDegree,this.endDegree=e.endDegree,this.text=e.text||"",this.defaultShowText=typeof e?.defaultShowText=="boolean"?e.defaultShowText:!1;const t=this.startDegree+(this.endDegree-this.startDegree)/2,{x:s,y:i}=Jn(St(t),this.radius+this.p1Offset);this.p1.x=this.x+s,this.p1.y=this.y+i;const{x:o,y:r}=Jn(St(t),this.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+o,this.p2.y=this.y+r,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y;const a=Object.assign({...this.attrs},{fill:"none"}),l=new ct({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:a,isShow:this.defaultShowText}),c=new ct({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:a,isShow:this.defaultShowText}),u=new gu({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{...a,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText});this.shapes.push(new Wm({x:this.x,y:this.y,radius:this.radius,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.attrs},{strokeWidth:"0"}),mouseMove:h=>{this.text&&!this.defaultShowText&&(l.isShow=h,c.isShow=h,u.isShow=h)}})),this.text&&(this.shapes.push(l),this.shapes.push(c),this.shapes.push(u))}}class Wm extends dt{radius;startDegree;endDegree;constructor(e){super(e),this.radius=e.radius,this.startDegree=e.startDegree,this.endDegree=e.endDegree}toSVGPathData(){const{x:e,y:t}=Jn(St(this.startDegree),this.radius),{x:s,y:i}=Jn(St(this.endDegree),this.radius);return[["M",this.x,this.y],["l",e,t],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+s,this.y+i],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(0,0),e.arc(0,0,this.radius,St(this.startDegree),St(this.endDegree),!1),e.closePath()}containPoint(e,t){const[s,i]=[e-this.x,t-this.y],o=Math.sqrt(s*s+i*i);let r=Vr(this.x,this.y,e,t);r<0&&(r+=Math.PI*2);const a=kt(r);return o<this.radius&&a>this.startDegree&&a<this.endDegree}}class io extends dt{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",-50,-25],["l",50,0],["l",0,-25],["l",50,50],["l",-50,50],["l",0,-25],["l",-50,0],["l",0,-50],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath()}}class Ur extends dt{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",4,24],["l",4,-8],["l",6,-6],["l",1,-10],["l",-6,-10],["l",-7,10],["l",-4,0],["l",-7,-10],["l",-6,10],["l",1,10],["l",6,6],["l",4,8],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(4,24),e.lineTo(8,16),e.lineTo(14,10),e.lineTo(15,0),e.lineTo(9,-10),e.lineTo(2,0),e.lineTo(-2,0),e.lineTo(-9,-10),e.lineTo(-15,0),e.lineTo(-14,10),e.lineTo(-8,16),e.lineTo(-4,24),e.closePath()}}(function(){let n=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const t=new Date().getTime(),s=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+s)},s);return n=t+s,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const Xm=n=>{let e=window.requestAnimationFrame(function t(s){n(s),e=window.requestAnimationFrame(t)});return()=>window.cancelAnimationFrame(e)};class Um{id=0;renders={};cancelAnimateInWeb;constructor(){}get length(){let e=0;for(let t in this.renders)e++;return e}run(e){const t=this.id++;this.renders[t]=e,!this.cancelAnimateInWeb&&(this.cancelAnimateInWeb=Xm(s=>{const i=[];for(let o in this.renders)this.renders[o](s)===!1&&i.push(parseInt(o));for(let o of i)delete this.renders[o];!this.length&&this.cancelAnimateInWeb&&(this.cancelAnimateInWeb(),this.cancelAnimateInWeb=void 0)}))}runAccurateSetTimeout(e,t=0){let s=!1,i;return this.run(o=>s?!1:(i||(i=o),o-i>=t?(e(),!1):!0)),()=>{s=!0}}}const Ye=new Um;let Ks;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ks=function(){const n=process.hrtime();return n[0]*1e3+n[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ks=self.performance.now.bind(self.performance):Date.now!==void 0?Ks=Date.now:Ks=function(){return new Date().getTime()};const ps=Ks;class Zs{static _nextId=0;static nextId(){return Zs._nextId++}}const oo={Linear:{None:function(n){return n}},Ease:{In:function(n){return Math.pow(n,1.7)}},Quadratic:{In:function(n){return n*n},Out:function(n){return n*(2-n)},InOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)}},Cubic:{In:function(n){return n*n*n},Out:function(n){return--n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)}},Quartic:{In:function(n){return n*n*n*n},Out:function(n){return 1- --n*n*n*n},InOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)}},Quintic:{In:function(n){return n*n*n*n*n},Out:function(n){return--n*n*n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)}},Sinusoidal:{In:function(n){return 1-Math.sin((1-n)*Math.PI/2)},Out:function(n){return Math.sin(n*Math.PI/2)},InOut:function(n){return .5*(1-Math.sin(Math.PI*(.5-n)))}},Exponential:{In:function(n){return n===0?0:Math.pow(1024,n-1)},Out:function(n){return n===1?1:1-Math.pow(2,-10*n)},InOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)}},Circular:{In:function(n){return 1-Math.sqrt(1-n*n)},Out:function(n){return Math.sqrt(1- --n*n)},InOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)}},Elastic:{In:function(n){return n===0?0:n===1?1:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI)},Out:function(n){return n===0?0:n===1?1:Math.pow(2,-10*n)*Math.sin((n-.1)*5*Math.PI)+1},InOut:function(n){return n===0?0:n===1?1:(n*=2,n<1?-.5*Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI):.5*Math.pow(2,-10*(n-1))*Math.sin((n-1.1)*5*Math.PI)+1)}},Back:{In:function(n){return n===1?1:n*n*((1.70158+1)*n-1.70158)},Out:function(n){return n===0?0:--n*n*((1.70158+1)*n+1.70158)+1},InOut:function(n){const e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)}},Bounce:{In:function(n){return 1-oo.Bounce.Out(1-n)},Out:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},InOut:function(n){return n<.5?oo.Bounce.In(n*2)*.5:oo.Bounce.Out(n*2-1)*.5+.5}},generatePow:function(n=4){return n=n<Number.EPSILON?Number.EPSILON:n,n=n>1e4?1e4:n,{In:function(e){return e**n},Out:function(e){return 1-(1-e)**n},InOut:function(e){return e<.5?(e*2)**n/2:(1-(2-e*2)**n)/2+.5}}},random:function(n){return Math.random()},createStep:function(n){return function(e){return Math.floor(e*n)/n}},createNoisyEasing:function(n,e=.1){const t=1-e;return function(s){return e*Math.random()+t*n(s)}},swing:function(n){return n+Math.sin(n*Math.PI*2)/2},causeSeizures:function(n){return n+.2*Math.random()-.1}},qr=oo,Qs={Utils:{Linear:function(n,e,t){return(e-n)*t+n},Factorial:function(){const n=[1];return function(e){let t=1;if(n[e])return n[e];for(let s=e;s>1;s--)t*=s;return n[e]=t,t}}(),Bernstein:function(n,e){const t=Qs.Utils.Factorial;return t(n)/t(e)/t(n-e)},CatmullRom:function(n,e,t,s,i){const o=(t-n)*.5,r=(s-e)*.5,a=i*i,l=i*a;return(2*e-2*t+o+r)*l+(-3*e+3*t-2*o-r)*a+o*i+e}},Linear:function(n,e){const t=n.length-1,s=t*e,i=Math.floor(s),o=Qs.Utils.Linear;return e<0?o(n[0],n[1],s):e>1?o(n[t],n[t-1],t-s):o(n[i],n[i+1>t?t:i+1],s-i)},Bezier:function(n,e){let t=0;const s=n.length-1,i=Math.pow,o=Qs.Utils.Bernstein;for(let r=0;r<=s;r++)t+=i(1-e,s-r)*i(e,r)*n[r]*o(s,r);return t},CatmullRom:function(n,e){const t=n.length-1;let s=t*e,i=Math.floor(s);const o=Qs.Utils.CatmullRom;return n[0]===n[t]?(e<0&&(i=Math.floor(s=t*(1+e))),o(n[(i-1+t)%t],n[i],n[(i+1)%t],n[(i+2)%t],s-i)):e<0?n[0]-(o(n[0],n[0],n[1],n[1],-s)-n[0]):e>1?n[t]-(o(n[t],n[t],n[t-1],n[t-1],s-t)-n[t]):o(n[i?i-1:0],n[i],n[t<i+1?t:i+1],n[t<i+2?t:i+2],s-i)}},Kr=Qs;class yu{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=ps(),t=!1){let s=Object.keys(this._tweens);if(s.length===0)return!1;for(;s.length>0;){this._tweensAddedDuringUpdate={};for(let i=0;i<s.length;i++){const o=this._tweens[s[i]],r=!t;o&&o.update(e,r)===!1&&!t&&delete this._tweens[s[i]]}s=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const zt=new yu;class qm{constructor(e,t=zt){this._object=e,this._group=t}_id=Zs.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=qr.Linear.None;_interpolationFunction=Kr.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,t){return this._valuesEnd=Object.create(e),t!==void 0&&(this._durationTime=t),this}duration(e=1e3){return this._durationTime=e,this}start(e=ps()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const t in this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,t,s,i){for(const o in s){const r=e[o],a=Array.isArray(r),l=a?"array":typeof r,c=!a&&Array.isArray(s[o]);if(!(l==="undefined"||l==="function")){if(c){let u=s[o];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,r)),s[o]=[r].concat(u)}if((l==="object"||a)&&r&&!c){t[o]=a?[]:{};for(const u in r)t[o][u]=r[u];i[o]=a?[]:{},this._setupProperties(r,t[o],s[o],i[o])}else typeof t[o]>"u"&&(t[o]=r),a||(t[o]*=1),c?i[o]=s[o].slice().reverse():i[o]=t[o]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=ps()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=ps()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this}group(e=zt){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=qr.Linear.None){return this._easingFunction=e,this}interpolation(e=Kr.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=ps(),t=!0){if(this._isPaused)return!0;let s,i;const o=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>o)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(e-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const r=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,r),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,t,s,i){for(const o in s){if(t[o]===void 0)continue;const r=t[o]||0;let a=s[o];const l=Array.isArray(e[o]),c=Array.isArray(a);!l&&c?e[o]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(e[o],r,a,i):(a=this._handleRelativeValue(r,a),typeof a=="number"&&(e[o]=r+(a-r)*i))}}_handleRelativeValue(e,t){return typeof t!="string"?t:t.charAt(0)==="+"||t.charAt(0)==="-"?e+parseFloat(t):parseFloat(t)}_swapEndStartRepeatValues(e){const t=this._valuesStartRepeat[e],s=this._valuesEnd[e];typeof s=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(s):this._valuesStartRepeat[e]=s,this._valuesEnd[e]=t}}const Km=qm,Zm=Zs.nextId,Qm=zt.getAll.bind(zt),Jm=zt.removeAll.bind(zt),eg=zt.add.bind(zt),tg=zt.remove.bind(zt),ng=zt.update.bind(zt),pe={now:ps,Sequence:Zs,Easing:qr,Interpolation:Kr,Group:yu,Tween:Km,nextId:Zm,getAll:Qm,removeAll:Jm,add:eg,remove:tg,update:ng};function sg(n){switch(n){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const ig={attributeName:["display"],values:[["block","block"]],immediate:!1},$t={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class nt{objects=[];animateObjects=[];currentAnimateName;constructor(){}hasObjects(){return this.objects.length>0}fromDOM(e){return Array.isArray(e)||(e=[e]),this.objects.forEach(t=>{t.app.destroy()}),this.objects=[],e.forEach(t=>{this.objects.push({el:t,app:new tt(t),originAttrs:{}})}),this}static isRunningGlobalTween=!1;static runGlobalTween(e){this.isRunningGlobalTween||Ye.run(()=>(this.isRunningGlobalTween=pe.update(e?.()),this.isRunningGlobalTween))}static toTween(e,t,s){const i=s?.onStart||(()=>{}),o=s?.onUpdate||(()=>{}),r=s?.onComplete||(()=>{}),a=s?.duration||1e3,l=s?.delay||0,c=s?.easeFunction||pe.Easing.Linear.None,u=s?.repeat||0,h=s?.yoyo||!1,d=new pe.Tween(e).to(t,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(i).onUpdate((f,m)=>{o(f,m)}).onComplete(r);return s?.interpolationFunction&&d.interpolation(s.interpolationFunction),{tween:d,startAuto:f=>{d.start(f?.()),Ye.run(()=>{const m=d.update(f?.());if(s?.precision){let y=!0;for(let _ in e)zs(e[_],t[_],s.precision)||(y=!1);return y?!1:m}return m})}}}static toTweenCSS(e,t,s,i){Q.add3DSupport(e);const o=i?.onUpdate||(()=>{});return nt.toTween(t,s,Object.assign(i||{},{onUpdate:(r,a)=>{const l=Q.convertAttrs(e,r);Q.setStyle(e,l),o(r,a)}}))}addAnimateObject(e=ig,t=$t,s=0,i=!1){const o=t.easeName||"linear",r=t.dur||300,a=t.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(sg(o))});const c=this.objects[s];return this.animateObjects=i?[]:this.animateObjects,this.animateObjects.push({el:c.el,app:c.app,originAttrs:c.originAttrs,attributeName:e.attributeName,values:e.values,immediate:e.immediate||!1,easeName:o,begin:t.begin||0,dur:r,repeatCount:t.repeatCount||1,direction:t.direction||"normal",fill:t.fill||"freeze",keyTimes:a,realKeyTimes:a.map(u=>r*u),keySplines:l,calcMode:t.calcMode||"linear",onComplete:t.onComplete||(()=>{})}),this}resetAnimateObjects(e,t,s,i,o=$t,r=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;r=Vt(r,0,h);let d=r-1;d=Vt(d,0,h);let f=r+1;f=Vt(f,0,h);const m=this.objects[r],y=this.objects[d],_=this.objects[f];if(y&&d!==r){const C=e(y);C&&(this.addAnimateObject(C,o,d,a),a=!1,l=!0)}if(m){const C=t(m);C&&(this.addAnimateObject(C,o,r,a),a=!1,c=!0)}if(_&&f!==r){const C=s(_);C&&(this.addAnimateObject(C,o,f,a),a=!1,u=!0)}this.objects.forEach((C,k)=>{if(!(k==d&&l||k==r&&c||k==f&&u)){const P=i(C);P&&(this.addAnimateObject(P,o,k,a),a=!1)}})}toCSS(e,...t){if(!this.hasObjects())return;this.currentAnimateName=e,this[e](...t),Q.add3DSupport(this.objects[0].el),this.objects.forEach((o,r)=>{Q.setStyle(o.el,{position:"absolute","z-index":String(2e3+r),"transform-style":"preserve-3d","backface-visibility":"hidden"})});let s=0;const i=()=>{this.animateObjects.forEach((o,r)=>{let a=[],l=[];Array.isArray(o.attributeName)?(a=o.attributeName,l=o.values):o.attributeName&&(a=[o.attributeName],l=[o.values]);const c=o.keyTimes.length;let u=o.begin;o.keyTimes.forEach((h,d)=>{if(d==0||o.immediate){const f={};a.forEach((y,_)=>{const C=l[_][o.direction=="reverse"?c-1-d:d];f[y]=C});const m=Q.convertAttrs(o.el,f,o.originAttrs);Q.setStyle(o.el,Object.assign(m,{transition:"none"}))}else Ye.runAccurateSetTimeout(()=>{const f={};a.forEach((y,_)=>{const C=l[_][o.direction=="reverse"?c-1-d:d];f[y]=C});const m=Q.convertAttrs(o.el,f,o.originAttrs);Q.setStyle(o.el,Object.assign(m,{transition:`all ${o.realKeyTimes[d]}ms cubic-bezier(${o.keySplines[d-1].join(",")})`}))},u),u+=o.realKeyTimes[d]}),Ye.runAccurateSetTimeout(()=>{o.fill==="remove"&&Q.setStyle(o.el,o.originAttrs||{}),r==this.animateObjects.length-1&&(o.onComplete?.(),this.currentAnimateName==e&&(o.repeatCount=="infinite"||typeof o.repeatCount=="number"&&++s<o.repeatCount)&&i())},o.begin+o.dur)})};i()}slideLeft(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-s.app.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[s.app.width,0],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[s.app.width,0],[s.app.width,0]]],immediate:!0}),e,t)}slideRight(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>{},s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-s.app.width,0],[0,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[s.app.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-s.app.width,0],[-s.app.width,0]]],immediate:!0}),e,t)}slideDown(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,s.app.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-s.app.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-s.app.height],[0,-s.app.height]]],immediate:!0}),e,t)}slideUp(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-s.app.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,s.app.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,s.app.height],[0,s.app.height]]],immediate:!0}),e,t)}flipLeft(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipRight(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipDown(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipUp(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popIn(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popOut(e=$t,t=this.objects.length-1){this.resetAnimateObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}rotate(e=$t,t=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const s=e.degree||360;this.resetAnimateObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}}let Zr=class{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e){this.app=e,this.ctx=new Bm(this.app.container),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.currentMouseInShapeID="",this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}let t=0,s=this.shapes.length;for(;t<s;t++){const i=this.shapes[t];this.ctx.save(),this.transformCtxBaseOnShape(i);const o=this.ctx.isPointInPath(i.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),o&&(this.currentMouseInShapeID=i.id),i.mouseMove&&i.mouseMove(o),o&&i.enableDrag){this.currentEnableDragMouseInShapeID=i.id;break}}t>=s&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShapeID?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(e){!(e instanceof ct)&&!(e instanceof je)&&this.ctx.translate(e.x,e.y),this.ctx.rotate(St(e.degree)),this.ctx.scale(e.scaleOnOrigin,e.scaleOnOrigin)}draw(e=[]){const t=[];up(e)?t.push(...e):t.push(e),this.shapes=[],t.forEach(s=>{s instanceof Xs?this.shapes.push(...s.shapes):this.shapes.push(s)});for(let s of this.shapes)if(s.isShow){if(this.ctx.save(),Q.attrsToCanvas(this.ctx,s.attrs),s.followMouse&&(!zs(s.x,this.app.mousePoint.x,5)||!zs(s.y,this.app.mousePoint.y,5))&&(s.angleTo(this.app.mousePoint),s.followTo(this.app.mousePoint)),s.targetToAfterDragFree&&(this.isMouseDown||s.nextFrameEaseTo(new et({x:s.targetToAfterDragFree.targetX,y:s.targetToAfterDragFree.targetY}),{easing:s.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==s.id){const{dx:i,dy:o}=s.centerDiff;s.x=this.app.mousePoint.x,s.y=this.app.mousePoint.y,s.x-=i,s.y-=o,s.isDragging=!0,this.shapes.filter(r=>r.id!=s.id).forEach(r=>r.isDragging=!1)}this.transformCtxBaseOnShape(s),s.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),s.path2d=this.ctx.currentPath2D,this.ctx.restore()}return this}click(e){const t=()=>{this.shapes.forEach(s=>{(s instanceof je&&s.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx)||this.currentMouseInShapeID==s.id)&&e(s)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}drawMouseMoveLine(e="line",t){switch(e){case"brush":const s=t?.brushSize??10,i=t?.brushDensity??50,o=t?.brushColor??"#000000",r=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=r.data,l=Qi(o);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*s,d=this.app.mousePoint.x+Math.cos(u)*h|0,f=this.app.mousePoint.y+Math.sin(u)*h|0,m=(d+f*r.width)*4;a[m]=l.r,a[m+1]=l.g,a[m+2]=l.b,a[m+3]=255}this.ctx.putImageData(r)}}});case"line":default:return this.app.captureMove({start:c=>{this.ctx.beginPath(),this.app.setMousePoint(c),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}};class og{map;constructor(e,t=120.619585,s=31.299379,i=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(t,s),i)}}const rg=ce({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("span",{class:"icon",style:Z(["color: "+t.color])},[Ee($e(Jc),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),ag=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
56
- `,ue=(n,e)=>{const t=n.__vccOpts||n;for(const[s,i]of e)t[s]=i;return t},_u=ue(rg,[["styles",[ag]],["__scopeId","data-v-b2d9b612"]]),lg=ce({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("span",{class:"icon",style:Z(["color: "+t.color])},[Ee($e(Jc),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),m1="",Jt=ue(lg,[["__scopeId","data-v-8789b4ce"]]),ms=ue(ce({customOptions:{},inheritAttrs:!0,__name:"Button.ce",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(s.borderColor),a=M(s.bgColor),l=M(s.fontColor),c=M(s.borderColor),u=M(s.bgColor);function h(P){switch(P){case"outline":r.value=s.borderColor??oe.colorPrimary,a.value=s.bgColor??oe.colorGrayFF,l.value=s.fontColor??oe.colorPrimary,c.value=r.value,u.value=a.value;break;default:r.value=s.borderColor??oe.colorPrimary,a.value=s.bgColor??oe.colorPrimary,l.value=s.fontColor??oe.colorGrayFF,c.value=r.value,u.value=a.value;break}}Ie(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const d=M(s.isDisabled?"0.6":"1"),f=M(s.isDisabled?"not-allowed":"pointer");let m=!1;const y=()=>{s.isDisabled||(m=!0,r.value=gn(c.value,10),a.value=gn(u.value,10))},_=()=>{s.isDisabled||(m=!1,r.value=c.value,a.value=u.value)},k=bc(()=>{s.isDisabled||(r.value=gn(c.value,-10),a.value=gn(u.value,-10),setTimeout(()=>{m?y():_()},150),i("ceClick"),i("click"))},500);return e({el:o}),(P,D)=>($(),G("div",{ref_key:"el",ref:o,class:"button",style:Z([`opacity: ${d.value}`,`border: 1px solid ${r.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${f.value}`,"user-select: none"]),onMouseover:y,onMouseleave:_,onClick:D[0]||(D[0]=(...U)=>$e(k)&&$e(k)(...U))},[w("label",{class:"label truncate",style:Z({padding:"0 "+P.padding,cursor:f.value})},[Xe(P.$slots,"default",{},()=>[P.icon&&P.iconPosition==="left"?($(),lt(Jt,{key:0,icon:P.icon,color:l.value,style:Z({marginRight:$e(oe).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ge("",!0),w("span",{style:Z({cursor:f.value})},Oe(P.label),5),P.icon&&P.iconPosition==="right"?($(),lt(Jt,{key:1,icon:P.icon,color:l.value,style:Z({marginLeft:$e(oe).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ge("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-d0ff6d52]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-d0ff6d52]{display:inline-flex;justify-content:center;align-items:center}
57
- `]],["__scopeId","data-v-d0ff6d52"]]),cg=ce({customOptions:{},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(s.borderColor),a=M(s.bgColor),l=M(s.fontColor),c=M(s.borderColor),u=M(s.bgColor);function h(P){switch(P){case"outline":r.value=s.borderColor??oe.colorPrimary,a.value=s.bgColor??oe.colorGrayFF,l.value=s.fontColor??oe.colorPrimary,c.value=r.value,u.value=a.value;break;default:r.value=s.borderColor??oe.colorPrimary,a.value=s.bgColor??oe.colorPrimary,l.value=s.fontColor??oe.colorGrayFF,c.value=r.value,u.value=a.value;break}}Ie(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const d=M(s.isDisabled?"0.6":"1"),f=M(s.isDisabled?"not-allowed":"pointer");let m=!1;const y=()=>{s.isDisabled||(m=!0,r.value=gn(c.value,10),a.value=gn(u.value,10))},_=()=>{s.isDisabled||(m=!1,r.value=c.value,a.value=u.value)},k=bc(()=>{s.isDisabled||(r.value=gn(c.value,-10),a.value=gn(u.value,-10),setTimeout(()=>{m?y():_()},150),i("ceClick"),i("click"))},500);return e({el:o}),(P,D)=>($(),G("div",{ref_key:"el",ref:o,class:"button",style:Z([`opacity: ${d.value}`,`border: 1px solid ${r.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${f.value}`,"user-select: none"]),onMouseover:y,onMouseleave:_,onClick:D[0]||(D[0]=(...U)=>$e(k)&&$e(k)(...U))},[w("label",{class:"label truncate",style:Z({padding:"0 "+P.padding,cursor:f.value})},[Xe(P.$slots,"default",{},()=>[P.icon&&P.iconPosition==="left"?($(),lt(Jt,{key:0,icon:P.icon,color:l.value,style:Z({marginRight:$e(oe).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ge("",!0),w("span",{style:Z({cursor:f.value})},Oe(P.label),5),P.icon&&P.iconPosition==="right"?($(),lt(Jt,{key:1,icon:P.icon,color:l.value,style:Z({marginLeft:$e(oe).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ge("",!0)],!0)],4)],36))}}),y1="",Je=ue(cg,[["__scopeId","data-v-7b86bde0"]]),ug=["onClick","value"],hg={class:"option-inner"},dg=ue(ce({customOptions:{Icon:Jt,Button:Je},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;kn(()=>{Q.setStyleSheet(`
51
+ * Licensed under the MIT license */(function(n){(function(e,t,s,i){var o=["","webkit","Moz","MS","ms","o"],r=t.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,g,_){return setTimeout(N(p,_),g)}function f(p,g,_){return Array.isArray(p)?(d(p,_[g],_),!0):!1}function d(p,g,_){var O;if(p)if(p.forEach)p.forEach(g,_);else if(p.length!==i)for(O=0;O<p.length;)g.call(_,p[O],O,p),O++;else for(O in p)p.hasOwnProperty(O)&&g.call(_,p[O],O,p)}function m(p,g,_){var O="DEPRECATED METHOD: "+g+`
52
+ `+_+` AT
53
+ `;return function(){var K=new Error("get-stack-trace"),ce=K&&K.stack?K.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Ne=e.console&&(e.console.warn||e.console.log);return Ne&&Ne.call(e.console,O,ce),p.apply(this,arguments)}}var v;typeof Object.assign!="function"?v=function(g){if(g===i||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var _=Object(g),O=1;O<arguments.length;O++){var K=arguments[O];if(K!==i&&K!==null)for(var ce in K)K.hasOwnProperty(ce)&&(_[ce]=K[ce])}return _}:v=Object.assign;var b=m(function(g,_,O){for(var K=Object.keys(_),ce=0;ce<K.length;)(!O||O&&g[K[ce]]===i)&&(g[K[ce]]=_[K[ce]]),ce++;return g},"extend","Use `assign`."),E=m(function(g,_){return b(g,_,!0)},"merge","Use `assign`.");function I(p,g,_){var O=g.prototype,K;K=p.prototype=Object.create(O),K.constructor=p,K._super=O,_&&v(K,_)}function N(p,g){return function(){return p.apply(g,arguments)}}function k(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function B(p,g){return p===i?g:p}function R(p,g,_){d(ge(g),function(O){p.addEventListener(O,_,!1)})}function Y(p,g,_){d(ge(g),function(O){p.removeEventListener(O,_,!1)})}function fe(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function be(p,g){return p.indexOf(g)>-1}function ge(p){return p.trim().split(/\s+/g)}function Pe(p,g,_){if(p.indexOf&&!_)return p.indexOf(g);for(var O=0;O<p.length;){if(_&&p[O][_]==g||!_&&p[O]===g)return O;O++}return-1}function Oe(p){return Array.prototype.slice.call(p,0)}function Le(p,g,_){for(var O=[],K=[],ce=0;ce<p.length;){var Ne=g?p[ce][g]:p[ce];Pe(K,Ne)<0&&O.push(p[ce]),K[ce]=Ne,ce++}return _&&(g?O=O.sort(function(Et,Nt){return Et[g]>Nt[g]}):O=O.sort()),O}function Fe(p,g){for(var _,O,K=g[0].toUpperCase()+g.slice(1),ce=0;ce<o.length;){if(_=o[ce],O=_?_+K:g,O in p)return O;ce++}return i}var He=1;function Ie(){return He++}function ve(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||e}var F=/mobile|tablet|ip(ad|hone|od)|android/i,te="ontouchstart"in e,q=Fe(e,"PointerEvent")!==i,Ee=te&&F.test(navigator.userAgent),re="touch",$e="pen",Re="mouse",ze="kinect",Je=25,Ye=1,Rt=2,qe=4,pt=8,Ht=1,rt=2,at=4,y=8,w=16,$=rt|at,L=y|w,j=$|L,Q=["x","y"],se=["clientX","clientY"];function H(p,g){var _=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(O){k(p.options.enable,[p])&&_.handler(O)},this.init()}H.prototype={handler:function(){},init:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(ve(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Y(this.element,this.evEl,this.domHandler),this.evTarget&&Y(this.target,this.evTarget,this.domHandler),this.evWin&&Y(ve(this.element),this.evWin,this.domHandler)}};function ne(p){var g,_=p.options.inputClass;return _?g=_:q?g=_a:Ee?g=wo:te?g=xa:g=We,new g(p,U)}function U(p,g,_){var O=_.pointers.length,K=_.changedPointers.length,ce=g&Ye&&O-K===0,Ne=g&(qe|pt)&&O-K===0;_.isFirst=!!ce,_.isFinal=!!Ne,ce&&(p.session={}),_.eventType=g,ae(p,_),p.emit("hammer.input",_),p.recognize(_),p.session.prevInput=_}function ae(p,g){var _=p.session,O=g.pointers,K=O.length;_.firstInput||(_.firstInput=x(g)),K>1&&!_.firstMultiple?_.firstMultiple=x(g):K===1&&(_.firstMultiple=!1);var ce=_.firstInput,Ne=_.firstMultiple,bt=Ne?Ne.center:ce.center,Et=g.center=M(O);g.timeStamp=u(),g.deltaTime=g.timeStamp-ce.timeStamp,g.angle=W(bt,Et),g.distance=J(bt,Et),P(_,g),g.offsetDirection=G(g.deltaX,g.deltaY);var Nt=X(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Nt.x,g.overallVelocityY=Nt.y,g.overallVelocity=c(Nt.x)>c(Nt.y)?Nt.x:Nt.y,g.scale=Ne?pe(Ne.pointers,O):1,g.rotation=Ne?ue(Ne.pointers,O):0,g.maxPointers=_.prevInput?g.pointers.length>_.prevInput.maxPointers?g.pointers.length:_.prevInput.maxPointers:g.pointers.length,S(_,g);var un=p.element;fe(g.srcEvent.target,un)&&(un=g.srcEvent.target),g.target=un}function P(p,g){var _=g.center,O=p.offsetDelta||{},K=p.prevDelta||{},ce=p.prevInput||{};(g.eventType===Ye||ce.eventType===qe)&&(K=p.prevDelta={x:ce.deltaX||0,y:ce.deltaY||0},O=p.offsetDelta={x:_.x,y:_.y}),g.deltaX=K.x+(_.x-O.x),g.deltaY=K.y+(_.y-O.y)}function S(p,g){var _=p.lastInterval||g,O=g.timeStamp-_.timeStamp,K,ce,Ne,bt;if(g.eventType!=pt&&(O>Je||_.velocity===i)){var Et=g.deltaX-_.deltaX,Nt=g.deltaY-_.deltaY,un=X(O,Et,Nt);ce=un.x,Ne=un.y,K=c(un.x)>c(un.y)?un.x:un.y,bt=G(Et,Nt),p.lastInterval=g}else K=_.velocity,ce=_.velocityX,Ne=_.velocityY,bt=_.direction;g.velocity=K,g.velocityX=ce,g.velocityY=Ne,g.direction=bt}function x(p){for(var g=[],_=0;_<p.pointers.length;)g[_]={clientX:l(p.pointers[_].clientX),clientY:l(p.pointers[_].clientY)},_++;return{timeStamp:u(),pointers:g,center:M(g),deltaX:p.deltaX,deltaY:p.deltaY}}function M(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var _=0,O=0,K=0;K<g;)_+=p[K].clientX,O+=p[K].clientY,K++;return{x:l(_/g),y:l(O/g)}}function X(p,g,_){return{x:g/p||0,y:_/p||0}}function G(p,g){return p===g?Ht:c(p)>=c(g)?p<0?rt:at:g<0?y:w}function J(p,g,_){_||(_=Q);var O=g[_[0]]-p[_[0]],K=g[_[1]]-p[_[1]];return Math.sqrt(O*O+K*K)}function W(p,g,_){_||(_=Q);var O=g[_[0]]-p[_[0]],K=g[_[1]]-p[_[1]];return Math.atan2(K,O)*180/Math.PI}function ue(p,g){return W(g[1],g[0],se)+W(p[1],p[0],se)}function pe(p,g){return J(g[0],g[1],se)/J(p[0],p[1],se)}var de={mousedown:Ye,mousemove:Rt,mouseup:qe},Ke="mousedown",lt="mousemove mouseup";function We(){this.evEl=Ke,this.evWin=lt,this.pressed=!1,H.apply(this,arguments)}I(We,H,{handler:function(g){var _=de[g.type];_&Ye&&g.button===0&&(this.pressed=!0),_&Rt&&g.which!==1&&(_=qe),this.pressed&&(_&qe&&(this.pressed=!1),this.callback(this.manager,_,{pointers:[g],changedPointers:[g],pointerType:Re,srcEvent:g}))}});var Ts={pointerdown:Ye,pointermove:Rt,pointerup:qe,pointercancel:pt,pointerout:pt},ba={2:re,3:$e,4:Re,5:ze},xo="pointerdown",ph="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(xo="MSPointerDown",ph="MSPointerMove MSPointerUp MSPointerCancel");function _a(){this.evEl=xo,this.evWin=ph,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}I(_a,H,{handler:function(g){var _=this.store,O=!1,K=g.type.toLowerCase().replace("ms",""),ce=Ts[K],Ne=ba[g.pointerType]||g.pointerType,bt=Ne==re,Et=Pe(_,g.pointerId,"pointerId");ce&Ye&&(g.button===0||bt)?Et<0&&(_.push(g),Et=_.length-1):ce&(qe|pt)&&(O=!0),!(Et<0)&&(_[Et]=g,this.callback(this.manager,ce,{pointers:_,changedPointers:[g],pointerType:Ne,srcEvent:g}),O&&_.splice(Et,1))}});var V1={touchstart:Ye,touchmove:Rt,touchend:qe,touchcancel:pt},L1="touchstart",F1="touchstart touchmove touchend touchcancel";function mh(){this.evTarget=L1,this.evWin=F1,this.started=!1,H.apply(this,arguments)}I(mh,H,{handler:function(g){var _=V1[g.type];if(_===Ye&&(this.started=!0),!!this.started){var O=z1.call(this,g,_);_&(qe|pt)&&O[0].length-O[1].length===0&&(this.started=!1),this.callback(this.manager,_,{pointers:O[0],changedPointers:O[1],pointerType:re,srcEvent:g})}}});function z1(p,g){var _=Oe(p.touches),O=Oe(p.changedTouches);return g&(qe|pt)&&(_=Le(_.concat(O),"identifier",!0)),[_,O]}var G1={touchstart:Ye,touchmove:Rt,touchend:qe,touchcancel:pt},j1="touchstart touchmove touchend touchcancel";function wo(){this.evTarget=j1,this.targetIds={},H.apply(this,arguments)}I(wo,H,{handler:function(g){var _=G1[g.type],O=B1.call(this,g,_);O&&this.callback(this.manager,_,{pointers:O[0],changedPointers:O[1],pointerType:re,srcEvent:g})}});function B1(p,g){var _=Oe(p.touches),O=this.targetIds;if(g&(Ye|Rt)&&_.length===1)return O[_[0].identifier]=!0,[_,_];var K,ce,Ne=Oe(p.changedTouches),bt=[],Et=this.target;if(ce=_.filter(function(Nt){return fe(Nt.target,Et)}),g===Ye)for(K=0;K<ce.length;)O[ce[K].identifier]=!0,K++;for(K=0;K<Ne.length;)O[Ne[K].identifier]&&bt.push(Ne[K]),g&(qe|pt)&&delete O[Ne[K].identifier],K++;if(bt.length)return[Le(ce.concat(bt),"identifier",!0),bt]}var H1=2500,gh=25;function xa(){H.apply(this,arguments);var p=N(this.handler,this);this.touch=new wo(this.manager,p),this.mouse=new We(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}I(xa,H,{handler:function(g,_,O){var K=O.pointerType==re,ce=O.pointerType==Re;if(!(ce&&O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents)){if(K)Y1.call(this,_,O);else if(ce&&W1.call(this,O))return;this.callback(g,_,O)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Y1(p,g){p&Ye?(this.primaryTouch=g.changedPointers[0].identifier,vh.call(this,g)):p&(qe|pt)&&vh.call(this,g)}function vh(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var _={x:g.clientX,y:g.clientY};this.lastTouches.push(_);var O=this.lastTouches,K=function(){var ce=O.indexOf(_);ce>-1&&O.splice(ce,1)};setTimeout(K,H1)}}function W1(p){for(var g=p.srcEvent.clientX,_=p.srcEvent.clientY,O=0;O<this.lastTouches.length;O++){var K=this.lastTouches[O],ce=Math.abs(g-K.x),Ne=Math.abs(_-K.y);if(ce<=gh&&Ne<=gh)return!0}return!1}var yh=Fe(r.style,"touchAction"),bh=yh!==i,_h="compute",xh="auto",wa="manipulation",ds="none",li="pan-x",ci="pan-y",Co=X1();function Ca(p,g){this.manager=p,this.set(g)}Ca.prototype={set:function(p){p==_h&&(p=this.compute()),bh&&this.manager.element.style&&Co[p]&&(this.manager.element.style[yh]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return d(this.manager.recognizers,function(g){k(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),U1(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,_=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var O=this.actions,K=be(O,ds)&&!Co[ds],ce=be(O,ci)&&!Co[ci],Ne=be(O,li)&&!Co[li];if(K){var bt=p.pointers.length===1,Et=p.distance<2,Nt=p.deltaTime<250;if(bt&&Et&&Nt)return}if(!(Ne&&ce)&&(K||ce&&_&$||Ne&&_&L))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function U1(p){if(be(p,ds))return ds;var g=be(p,li),_=be(p,ci);return g&&_?ds:g||_?g?li:ci:be(p,wa)?wa:xh}function X1(){if(!bh)return!1;var p={},g=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(_){p[_]=g?e.CSS.supports("touch-action",_):!0}),p}var So=1,Xt=2,Ps=4,zn=8,En=zn,ui=16,cn=32;function kn(p){this.options=v({},this.defaults,p||{}),this.id=Ie(),this.manager=null,this.options.enable=B(this.options.enable,!0),this.state=So,this.simultaneous={},this.requireFail=[]}kn.prototype={defaults:{},set:function(p){return v(this.options,p),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(p){if(f(p,"recognizeWith",this))return this;var g=this.simultaneous;return p=Eo(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=Eo(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var g=this.requireFail;return p=Eo(p,this),Pe(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=Eo(p,this);var g=Pe(this.requireFail,p);return g>-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(p){return!!this.simultaneous[p.id]},emit:function(p){var g=this,_=this.state;function O(K){g.manager.emit(K,p)}_<zn&&O(g.options.event+wh(_)),O(g.options.event),p.additionalEvent&&O(p.additionalEvent),_>=zn&&O(g.options.event+wh(_))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=cn},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(cn|So)))return!1;p++}return!0},recognize:function(p){var g=v({},p);if(!k(this.options.enable,[this,g])){this.reset(),this.state=cn;return}this.state&(En|ui|cn)&&(this.state=So),this.state=this.process(g),this.state&(Xt|Ps|zn|ui)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function wh(p){return p&ui?"cancel":p&zn?"end":p&Ps?"move":p&Xt?"start":""}function Ch(p){return p==w?"down":p==y?"up":p==rt?"left":p==at?"right":""}function Eo(p,g){var _=g.manager;return _?_.get(p):p}function Jt(){kn.apply(this,arguments)}I(Jt,kn,{defaults:{pointers:1},attrTest:function(p){var g=this.options.pointers;return g===0||p.pointers.length===g},process:function(p){var g=this.state,_=p.eventType,O=g&(Xt|Ps),K=this.attrTest(p);return O&&(_&pt||!K)?g|ui:O||K?_&qe?g|zn:g&Xt?g|Ps:Xt:cn}});function ko(){Jt.apply(this,arguments),this.pX=null,this.pY=null}I(ko,Jt,{defaults:{event:"pan",threshold:10,pointers:1,direction:j},getTouchAction:function(){var p=this.options.direction,g=[];return p&$&&g.push(ci),p&L&&g.push(li),g},directionTest:function(p){var g=this.options,_=!0,O=p.distance,K=p.direction,ce=p.deltaX,Ne=p.deltaY;return K&g.direction||(g.direction&$?(K=ce===0?Ht:ce<0?rt:at,_=ce!=this.pX,O=Math.abs(p.deltaX)):(K=Ne===0?Ht:Ne<0?y:w,_=Ne!=this.pY,O=Math.abs(p.deltaY))),p.direction=K,_&&O>g.threshold&&K&g.direction},attrTest:function(p){return Jt.prototype.attrTest.call(this,p)&&(this.state&Xt||!(this.state&Xt)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Ch(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Sa(){Jt.apply(this,arguments)}I(Sa,Jt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ds]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&Xt)},emit:function(p){if(p.scale!==1){var g=p.scale<1?"in":"out";p.additionalEvent=this.options.event+g}this._super.emit.call(this,p)}});function Ea(){kn.apply(this,arguments),this._timer=null,this._input=null}I(Ea,kn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[xh]},process:function(p){var g=this.options,_=p.pointers.length===g.pointers,O=p.distance<g.threshold,K=p.deltaTime>g.time;if(this._input=p,!O||!_||p.eventType&(qe|pt)&&!K)this.reset();else if(p.eventType&Ye)this.reset(),this._timer=h(function(){this.state=En,this.tryEmit()},g.time,this);else if(p.eventType&qe)return En;return cn},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===En&&(p&&p.eventType&qe?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function ka(){Jt.apply(this,arguments)}I(ka,Jt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ds]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&Xt)}});function Ta(){Jt.apply(this,arguments)}I(Ta,Jt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:$|L,pointers:1},getTouchAction:function(){return ko.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,_;return g&($|L)?_=p.overallVelocity:g&$?_=p.overallVelocityX:g&L&&(_=p.overallVelocityY),this._super.attrTest.call(this,p)&&g&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(_)>this.options.velocity&&p.eventType&qe},emit:function(p){var g=Ch(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function To(){kn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}I(To,kn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[wa]},process:function(p){var g=this.options,_=p.pointers.length===g.pointers,O=p.distance<g.threshold,K=p.deltaTime<g.time;if(this.reset(),p.eventType&Ye&&this.count===0)return this.failTimeout();if(O&&K&&_){if(p.eventType!=qe)return this.failTimeout();var ce=this.pTime?p.timeStamp-this.pTime<g.interval:!0,Ne=!this.pCenter||J(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!Ne||!ce?this.count=1:this.count+=1,this._input=p;var bt=this.count%g.taps;if(bt===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=En,this.tryEmit()},g.interval,this),Xt):En}return cn},failTimeout:function(){return this._timer=h(function(){this.state=cn},this.options.interval,this),cn},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==En&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Tn(p,g){return g=g||{},g.recognizers=B(g.recognizers,Tn.defaults.preset),new Pa(p,g)}Tn.VERSION="2.0.7",Tn.defaults={domEvents:!1,touchAction:_h,enable:!0,inputTarget:null,inputClass:null,preset:[[ka,{enable:!1}],[Sa,{enable:!1},["rotate"]],[Ta,{direction:$}],[ko,{direction:$},["swipe"]],[To],[To,{event:"doubletap",taps:2},["tap"]],[Ea]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var q1=1,Sh=2;function Pa(p,g){this.options=v({},Tn.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=ne(this),this.touchAction=new Ca(this,this.options.touchAction),Eh(this,!0),d(this.options.recognizers,function(_){var O=this.add(new _[0](_[1]));_[2]&&O.recognizeWith(_[2]),_[3]&&O.requireFailure(_[3])},this)}Pa.prototype={set:function(p){return v(this.options,p),p.touchAction&&this.touchAction.update(),p.inputTarget&&(this.input.destroy(),this.input.target=p.inputTarget,this.input.init()),this},stop:function(p){this.session.stopped=p?Sh:q1},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var _,O=this.recognizers,K=g.curRecognizer;(!K||K&&K.state&En)&&(K=g.curRecognizer=null);for(var ce=0;ce<O.length;)_=O[ce],g.stopped!==Sh&&(!K||_==K||_.canRecognizeWith(K))?_.recognize(p):_.reset(),!K&&_.state&(Xt|Ps|zn)&&(K=g.curRecognizer=_),ce++}},get:function(p){if(p instanceof kn)return p;for(var g=this.recognizers,_=0;_<g.length;_++)if(g[_].options.event==p)return g[_];return null},add:function(p){if(f(p,"add",this))return this;var g=this.get(p.options.event);return g&&this.remove(g),this.recognizers.push(p),p.manager=this,this.touchAction.update(),p},remove:function(p){if(f(p,"remove",this))return this;if(p=this.get(p),p){var g=this.recognizers,_=Pe(g,p);_!==-1&&(g.splice(_,1),this.touchAction.update())}return this},on:function(p,g){if(p!==i&&g!==i){var _=this.handlers;return d(ge(p),function(O){_[O]=_[O]||[],_[O].push(g)}),this}},off:function(p,g){if(p!==i){var _=this.handlers;return d(ge(p),function(O){g?_[O]&&_[O].splice(Pe(_[O],g),1):delete _[O]}),this}},emit:function(p,g){this.options.domEvents&&K1(p,g);var _=this.handlers[p]&&this.handlers[p].slice();if(!(!_||!_.length)){g.type=p,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var O=0;O<_.length;)_[O](g),O++}},destroy:function(){this.element&&Eh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Eh(p,g){var _=p.element;if(_.style){var O;d(p.options.cssProps,function(K,ce){O=Fe(_.style,ce),g?(p.oldCssProps[O]=_.style[O],_.style[O]=K):_.style[O]=p.oldCssProps[O]||""}),g||(p.oldCssProps={})}}function K1(p,g){var _=t.createEvent("Event");_.initEvent(p,!0,!0),_.gesture=g,g.target.dispatchEvent(_)}v(Tn,{INPUT_START:Ye,INPUT_MOVE:Rt,INPUT_END:qe,INPUT_CANCEL:pt,STATE_POSSIBLE:So,STATE_BEGAN:Xt,STATE_CHANGED:Ps,STATE_ENDED:zn,STATE_RECOGNIZED:En,STATE_CANCELLED:ui,STATE_FAILED:cn,DIRECTION_NONE:Ht,DIRECTION_LEFT:rt,DIRECTION_RIGHT:at,DIRECTION_UP:y,DIRECTION_DOWN:w,DIRECTION_HORIZONTAL:$,DIRECTION_VERTICAL:L,DIRECTION_ALL:j,Manager:Pa,Input:H,TouchAction:Ca,TouchInput:wo,MouseInput:We,PointerEventInput:_a,TouchMouseInput:xa,SingleTouchInput:mh,Recognizer:kn,AttrRecognizer:Jt,Tap:To,Pan:ko,Swipe:Ta,Pinch:Sa,Rotate:ka,Press:Ea,on:R,off:Y,each:d,merge:E,extend:b,assign:v,inherit:I,bindFn:N,prefixed:Fe});var Z1=typeof e<"u"?e:typeof self<"u"?self:{};Z1.Hammer=Tn,typeof i=="function"&&i.amd?i(function(){return Tn}):n.exports?n.exports=Tn:e[s]=Tn})(window,document,"Hammer")})(bu);var Bm=bu.exports;const Hm=jm(Bm),ti=Math.PI*2;function _u(n,e,t,s){const i=n*s-e*t<0?-1:1;let o=n*t+e*s;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function Ym(n,e,t,s,i,o,r,a,l,c){const u=c*(n-t)/2+l*(e-s)/2,h=-l*(n-t)/2+c*(e-s)/2,f=r*r,d=a*a,m=u*u,v=h*h;let b=f*d-f*v-d*m;b<0&&(b=0),b/=f*v+d*m,b=Math.sqrt(b)*(i===o?-1:1);const E=b*r/a*h,I=b*-a/r*u,N=c*E-l*I+(n+t)/2,k=l*E+c*I+(e+s)/2,B=(u-E)/r,R=(h-I)/a,Y=(-u-E)/r,fe=(-h-I)/a,be=_u(1,0,B,R);let ge=_u(B,R,Y,fe);return o===0&&ge>0&&(ge-=ti),o===1&&ge<0&&(ge+=ti),[N,k,be,ge]}function Wm(n,e){const t=1.3333333333333333*Math.tan(e/4),s=Math.cos(n),i=Math.sin(n),o=Math.cos(n+e),r=Math.sin(n+e);return[s,i,s-i*t,i+s*t,o+r*t,r-o*t,o,r]}function xu(n,e,t,s,i,o,r,a,l){const c=Math.sin(l*ti/360),u=Math.cos(l*ti/360),h=u*(n-t)/2+c*(e-s)/2,f=-c*(n-t)/2+u*(e-s)/2;if(h===0&&f===0)return[];if(r===0||a===0)return[];r=Math.abs(r),a=Math.abs(a);const d=h*h/(r*r)+f*f/(a*a);d>1&&(r*=Math.sqrt(d),a*=Math.sqrt(d));const m=Ym(n,e,t,s,i,o,r,a,c,u),v=[];let b=m[2],E=m[3];const I=Math.max(Math.ceil(Math.abs(E)/(ti/4)),1);E/=I;for(let N=0;N<I;N++)v.push(Wm(b,E)),b+=E;return v.map(N=>{for(let k=0;k<N.length;k+=2){let B=N[k+0],R=N[k+1];B*=r,R*=a;const Y=u*B-c*R,fe=c*B+u*R;N[k+0]=Y+m[0],N[k+1]=fe+m[1]}return N})}function Yr(n,e,t,s,i,o){return[n/3+2/3*t,e/3+2/3*s,i/3+2/3*t,o/3+2/3*s,i,o]}function ni(n,e,t,s){return[n,e,t,s,t,s]}const so={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class as{static createSVGElement(e="path",t){const s=document.createElementNS.call(document,"http://www.w3.org/2000/svg",e);return t&&Z.attribute(s,t),s}static createSvgPath(e){return this.createSVGElement("path",{d:e})}static downloadFromSVGElement(e,t="shape"){return fu(Im(e),`${t}.svg`)}static downloadFromSVGString(e,t="shape"){return fu(hu(e),`${t}.svg`)}static getSVGRawStringFromElement(e){return du(e)}static isSVGPath(e){return typeof e!="string"?!1:(e=e.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(e)&&/[\dz]$/i.test(e))}static SVGPathDataToD(e){return e.map(t=>{if(!t[0])return"";switch(t[0].toLowerCase()){case"a":return`${t[0]} ${t[1]},${t[2]} ${t[3]} ${t[4]},${t[5]} ${t[6]},${t[7]}`;case"c":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]} ${t[5]},${t[6]}`;case"s":case"q":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]}`;default:return t[0]+" "+t.slice(1).join(",")}}).join(" ")}static parseSVGPath(e){const t=[];return e.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,o)=>{let r=i.toLowerCase();const a=Dc(o);for(r=="m"&&a.length>so[r]&&(t.push([i,...a.splice(0,so[r])]),r="l",i=i=="m"?"l":"L");a.length;){if(a.length<so[r])throw new Error(`parseSVGPath substring:{ ${s} } command:{ ${i} } args:{ ${a} }`);t.push([i,...a.splice(0,so[r])])}return r=="z"&&t.push([i]),""}),t}static absolutizeSVGPath(e){let t=0,s=0,i=0,o=0;return e.map(function(r){const a=r[0],l=a.toUpperCase();if(a!=l)switch(r[0]=l,a){case"a":r[6]+=i,r[7]+=o;break;case"v":r[1]+=o;break;case"h":r[1]+=i;break;default:for(let c=1;c<r.length;)r[c++]+=i,r[c++]+=o}switch(l){case"Z":i=t,o=s;break;case"H":i=r[1];break;case"V":o=r[1];break;case"M":i=t=r[1],o=s=r[2];break;default:i=r[r.length-2],o=r[r.length-1]}return r})}static relativeSVGPath(e){let t=0,s=0,i=0,o=0;return e.map(function(r){const a=r[0],l=a.toLowerCase();if(a!=l)switch(r[0]=l,a){case"A":r[6]-=i,r[7]-=o;break;case"V":r[1]-=o;break;case"H":r[1]-=i;break;default:for(let c=1;c<r.length;)r[c++]-=i,r[c++]-=o}switch(l){case"z":i=t,o=s;break;case"h":i+=r[1];break;case"v":o+=r[1];break;case"m":i+=r[1],o+=r[2],t+=r[1],s+=r[2];break;default:i+=r[r.length-2],o+=r[r.length-1]}return r})}static normalizeSVGPath(e){let t=[],s=0,i=0,o=0,r=0,a=0,l=0,c=0,u=0,h;for(let f=0,d=e.length;f<d;f++){let m=e[f];const v=m[0];switch(v){case"M":s=m[1],i=m[2];break;case"A":const b=xu(o,r,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!b.length)continue;b.forEach((N,k)=>{const[B,R,Y,fe,be,ge,Pe,Oe]=N;m=["C",Y,fe,be,ge,Pe,Oe],k<b.length-1&&t.push(m)});break;case"S":let E=o,I=r;(h=="C"||h=="S")&&(E+=E-c,I+=I-u),m=["C",E,I,m[1],m[2],m[3],m[4]];break;case"T":h=="Q"||h=="T"?(a=o*2-a,l=r*2-l):(a=o,l=r),m=["C",...Yr(o,r,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...Yr(o,r,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...ni(o,r,m[1],m[2])];break;case"H":m=["C",...ni(o,r,m[1],r)];break;case"V":m=["C",...ni(o,r,o,m[1])];break;case"Z":m=["C",...ni(o,r,s,i)];break}h=v,o=m[m.length-2],r=m[m.length-1],m.length>4?(c=m[m.length-4],u=m[m.length-3]):(c=o,u=r),t.push(m)}return t}static catmullRom2bezier(e){let t=[];for(let s=0,i=e.length;i-2>s;s+=2){let o;s==0?o=[{x:e[s],y:e[s+1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+5]}]:i-4==s?o=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+2],y:e[s+3]}]:o=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+5]}];const r=[{x:o[1].x,y:o[1].y},{x:(-o[0].x+6*o[1].x+o[2].x)/6,y:(-o[0].y+6*o[1].y+o[2].y)/6},{x:(o[1].x+6*o[2].x-o[3].x)/6,y:(o[1].y+6*o[2].y-o[3].y)/6},{x:o[2].x,y:o[2].y}];t.push(["C",r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y])}return t}static zvhToLSVGPath(e){let t=[],s=["L",0,0],i;for(let o=0,r=e.length;o<r;o++){let a=e[o];switch(a[0]){case"M":s=["L",a[1],a[2]],t.push(a);break;case"Z":t.push(s);break;case"H":i=t[t.length-1]||["L",0,0],t.push(["L",a[1],i[i.length-1]]);break;case"V":i=t[t.length-1]||["L",0,0],t.push(["L",i[i.length-2],a[1]]);break;default:t.push(a)}}return t}static longhandSVGPath(e){const t={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,i=0,o=0;for(let r=0,a=e.length;r<a;r++){const l=e[r],c=t[l[0]];c&&(l[0]=c.to,s&&(s[0]===c.to?(i=2*Number(s[c.x+2])-Number(s[c.x]),o=2*Number(s[c.x+3])-Number(s[c.x+1])):(i=Number(s[s.length-2]),o=Number(s[s.length-1]))),l.splice(1,0,i,o)),s=l}return e}static curveDim(e,t,s,i,o,r,a,l){const c=[],u=[[],[]];let h,f,d,m,v,b,E,I;for(let R=0;R<2;++R){if(R===0?(f=6*e-12*s+6*o,h=-3*e+9*s-9*o+3*a,d=3*s-3*e):(f=6*t-12*i+6*r,h=-3*t+9*i-9*r+3*l,d=3*i-3*t),Math.abs(h)<1e-12){if(Math.abs(f)<1e-12)continue;m=-d/f,m>0&&m<1&&c.push(m);continue}E=f*f-4*d*h,I=Math.sqrt(E),!(E<0)&&(v=(-f+I)/(2*h),v>0&&v<1&&c.push(v),b=(-f-I)/(2*h),b>0&&b<1&&c.push(b))}let N=c.length,k;const B=N;for(;N--;)m=c[N],k=1-m,u[0][N]=k*k*k*e+3*k*k*m*s+3*k*m*m*o+m*m*m*a,u[1][N]=k*k*k*t+3*k*k*m*i+3*k*m*m*r+m*m*m*l;return u[0][B]=e,u[1][B]=t,u[0][B+1]=a,u[1][B+1]=l,u[0].length=u[1].length=B+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}}static base3(e,t,s,i,o){const r=-3*t+9*s-9*i+3*o,a=e*r+6*t-12*s+6*i;return e*a-3*t+3*s}static bezlen(e,t,s,i,o,r,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let v=0;v<h;v++){const b=u*f[v]+u,E=this.base3(b,e,s,o,a),I=this.base3(b,t,i,r,l),N=E*E+I*I;m+=d[v]*Math.sqrt(N)}return u*m}}const nt=as;class vt extends Sr{id;x;prevX;y;prevY;degree;prevDegree;scaleOnOrigin;prevScaleOnOrigin;skewDegreeOnOrigin;prevSkewDegreeOnOrigin;vx;vy;ax;ay;mass;attrs;enableDrag;isDragging=!1;isMouseIn=!1;targetToAfterDragFree;followMouse;isShow=!0;now=new Date().getTime();frameRate=60;strokeArmyAnts;strokeArmyAntsOffset=0;history=[];path2d=new Path2D;el;pathd;constructor(e){super(),this.id=_p(),this.prevX=this.x=e?.x||0,this.prevY=this.y=e?.y||0,this.prevDegree=this.degree=e?.degree||0,this.prevScaleOnOrigin=this.scaleOnOrigin=e?.scaleOnOrigin||1,this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin=e?.skewDegreeOnOrigin||0,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||0,this.attrs=Object.assign({paintOrder:"stroke",stroke:"none",fill:"none"},Object.fromEntries(Object.entries(e?.attrs||{}).map(([t,s])=>[Lt(t),s]))),this.enableDrag=e?.enableDrag||!1,this.targetToAfterDragFree=e?.targetToAfterDragFree,this.followMouse=e?.followMouse||!1,this.isShow=typeof e?.isShow=="boolean"?e?.isShow:!0,this.strokeArmyAnts=e?.strokeArmyAnts||!1}save(){this.history.push(Ic(this))}restore(){const e=this.history.pop();e&&Ep(this,e)}setAttr(e,t){Cr(e)?Object.assign(this.attrs,Object.fromEntries(Object.entries(e).map(([s,i])=>[Lt(s),i]))):typeof e=="string"&&t&&(this.attrs[Lt(e)]=t)}getAttr(e,t){return this.attrs[Lt(e)]||t}hasAttr(e){return!!this.attrs[Lt(e)]}get centerX(){const e=this.getBoundingClientRect();return e?e.x+e.width/2:this.x}get centerY(){const e=this.getBoundingClientRect();return e?e.y+e.height/2:this.y}get centerDiff(){return{dx:this.centerX-this.x,dy:this.centerY-this.y}}getBoundingClientRect(){return null}frameUpdate(){const e=new Date().getTime();if(!(e-this.now<1e3/this.frameRate)&&(this.now=e,this.strokeArmyAnts&&!this.isMouseIn)){const t=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",t);const s=Dc(t);this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>s.reduce((i,o)=>i+o,0)&&(this.strokeArmyAntsOffset=0)}}toSVGPathD(e=!1){let t=[];const s=this.toSVGPathData();return s[0]&&Array.isArray(s[0])?t.push(...s):t.push(s),e&&(t=nt.relativeSVGPath(t)),nt.SVGPathDataToD(t)}distanceTo(e){return Br(this.x,this.y,e.x,e.y)}angleTo(e){return this.degree=Pt(Hr(this.x,this.y,e.x,e.y)),this.degree}followTo(e,t=3){const s=this.angleTo(e),{x:i,y:o}=os(It(s),t);this.vx=i,this.vy=o,this.nextFrame()}followAccelerationTo(e,t=.05){const s=this.angleTo(e),{x:i,y:o}=os(It(s),t);this.ax=i,this.ay=o,this.nextFrame()}nextFrame(e){const t=e?.gravity??0,s=e?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=t,s>0){const i=Math.atan2(this.vy,this.vx);let o=Math.sqrt(this.vx*this.vx+this.vy*this.vy);o>s?o-=s:o=0,this.vx=Math.cos(i)*o,this.vy=Math.sin(i)*o}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,t){const s=t?.gravity??0,i=t?.friction??1,o=t?.easing??.05,{dx:r,dy:a}=this.centerDiff,l=e.x-this.x-r,c=e.y-this.y-a;this.vx=l*o,this.vy=c*o,this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,t){const s=t?.gravity??0,i=t?.friction??.95,o=t?.spring??.03,{dx:r,dy:a}=this.centerDiff;(Array.isArray(e)?e:[e]).forEach(c=>{const u=c.x-this.x-r,h=c.y-this.y-a,f=u*o,d=h*o;this.vx+=f,this.vy+=d}),this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}static nextFrameSpringConnect(e,t){const s=t?.springLength??100,i=t?.spring??.03,o=t?.gravity??0,r=t?.friction??.95;e.forEach(a=>{a.isDragging||e.filter(l=>l.id!==a.id).forEach(l=>{const c=a.angleTo(l);a.nextFrameSpringTo(new wu({x:l.x-Math.cos(It(c))*s,y:l.y-Math.sin(It(c))*s}),{spring:i,gravity:o,friction:r})})})}}class Ft extends vt{width;height;borderRadius;constructor(e){super(e),this.width=e.width,this.height=e.height,this.borderRadius=e.borderRadius||0}static fromBezier(e,t,s,i,o,r,a,l){const c=as.curveDim(e,t,s,i,o,r,a,l);return new Ft({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return this}toSVGPathData(){return this.borderRadius?[["M",this.x+this.borderRadius,this.y],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["M",this.x,this.y],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(e){e.beginPath(),this.borderRadius<=0?e.rect(0,0,this.width,this.height):(e.moveTo(0,this.borderRadius),e.lineTo(0,this.height-this.borderRadius),e.quadraticCurveTo(0,this.height,this.borderRadius,this.height),e.lineTo(this.width-this.borderRadius,this.height),e.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),e.lineTo(this.width,this.borderRadius),e.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),e.lineTo(this.borderRadius,0),e.quadraticCurveTo(0,0,0,this.borderRadius)),e.closePath()}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height&&this.borderRadius===e.borderRadius}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height}clone(e){return new Ft({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}const io=Ft;class yt extends vt{radius;constructor(e){super(e),this.radius=e?.radius||0}getBoundingClientRect(){return new Ft({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}toSVGPathData(){return this.radius?[["M",this.x,this.y-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:["M",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath()}toArray(){return[this.x,this.y,this.radius]}setX(e){this.x=e}setY(e){this.y=e}setXY(e,t){this.x=e,this.y=t}eq(e){return this.x===e.x&&this.y===e.y&&this.radius===e.radius}midPointBtw(e){return new yt({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}cross(e){const t=this.x,s=this.y;return this.x=s*e.x-t*e.y,this.y=t*e.y-s*e.x,this}normalize(e=1){const t=mu(this.x,this.y);if(t){const s=e/t;this.x*=s,this.y*=s}return this}reflect(e,t){const s=e.x*t.x+e.y*t.y;return this.x=e.x-2*s*t.x,this.y=e.y-2*s*t.y,this}clone(e){return new yt({x:e.x,y:e.y,radius:e.radius})}nextFrameCollisionTo(e){const t=e.x-this.x,s=e.y-this.y;if(Math.sqrt(t*t+s*s)<this.radius+e.radius){const o=Math.atan2(s,t),r={x:0,y:0},a=rs(-o,t,s),l=rs(-o,this.vx,this.vy),c=rs(-o,e.vx,e.vy),u=l.x-c.x;l.x=((this.mass-e.mass)*l.x+2*e.mass*c.x)/(this.mass+e.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),f=this.radius+e.radius-Math.abs(r.x-a.x);r.x+=l.x/h*f,a.x+=c.x/h*f;const d=rs(o,r.x,r.y),m=rs(o,a.x,a.y);e.x=this.x+m.x,e.y=this.y+m.y,this.x=this.x+d.x,this.y=this.y+d.y;const v=rs(o,l.x,l.y),b=rs(o,c.x,c.y);this.vx=v.x,this.vy=v.y,e.vx=b.x,e.vy=b.y}}nextFrameBounce(e,t){const s=t?.bounce??-1,i=e.x,o=e.y,r=e.x+e.width,a=e.y+e.height;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=s):this.x-this.radius<i&&(this.x=i+this.radius,this.vx*=s),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=s):this.y-this.radius<o&&(this.y=o+this.radius,this.vy*=s)}}const wu=yt;class Um{constructor(){}static getFormatKeyNames(e){const t=Fm(),s=[];return e.ctrl&&s.push(t?"Cmd":"Ctrl"),e.shift&&s.push("Shift"),e.alt&&s.push("Alt"),typeof e.key=="string"?s.push(wr(e.key)):Array.isArray(e.key)&&(e.key.map(i=>wr(i)),s.push(...e.key)),s}static matchKeyScheme(e,t){const s=e.ctrl??!1,i=e.shift??!1,o=e.alt??!1;if(e.exact)return(s===t.metaKey||s===t.ctrlKey)&&i===t.shiftKey&&o===t.altKey;const r=[];return s&&r.push(s===t.metaKey||s===t.ctrlKey),i&&r.push(i===t.shiftKey),o&&r.push(o===t.altKey),r.every(a=>a)}static on(e,t){if(e?.key===void 0||e?.key===null)return t;const s=e?.target??window;let i=!1;const o=this.getFormatKeyNames(e),r=a=>{if(a.stopPropagation(),!i&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&o.find(l=>l.toLowerCase()===a.key.toLowerCase())&&this.matchKeyScheme(e,a)){a.preventDefault();const l=t(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),s.removeEventListener("keyup",c)};s.addEventListener("keyup",c)}};return t.title=e?.title??"",t.formatedKeyNames=o,t.pause=()=>i=!0,t.restart=()=>i=!1,t.removeListener=()=>s.removeEventListener("keydown",r),s.addEventListener("keydown",r),t}}let Wt;const _s=[];class st extends Sr{container;width;height;mousePoint;hammer;domEventBusRemoves=[];constructor(e=document.documentElement,t=!0){super(),this.container=e,this.width=this.container.clientWidth,this.height=this.container.clientHeight,this.hammer=new Hm(this.container),this.mousePoint=new yt({x:0,y:0}),t&&this.start()}emitDebounce=Tp((e,...t)=>super.emit(e,...t),50);emit(e,...t){switch(e){case"panLeft":case"panRight":this.emitDebounce(e,...t);break;default:super.emit(e,...t);break}return this}static get page(){if(Wt)return Wt;Wt=new st,window.addEventListener("hashchange",()=>{Wt.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{Wt.emit("popstate")}),Wt.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{Dm().then(t=>Nm(t[0])).then(t=>{Wt.emit("openFile",t)}).catch(t=>{Wt.emit("openFileError",t)})}),Wt.registerMatchMediaChange("(prefers-color-scheme: dark)");const e=()=>_s.forEach(t=>t());return Wt.registerGlobalScrollChange=t=>{_s.push(t),_s.length==1&&document.addEventListener("scroll",e)},Wt.removeGlobalScrollChange=t=>{const s=_s.findIndex(i=>i==t);s>=0&&(_s.splice(s,1),_s.length==0&&document.removeEventListener("scroll",e))},Wt}start(){this.registerMouseEventListeners(),this.registerInputEventListeners(),this.registerTransitionEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventBusRemoves(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParent()}restart(){this.destroy(),this.start()}destroy(){this.domEventBusRemoves.forEach(e=>e()),this.domEventBusRemoves=[],this.removeAllListeners()}addDOMEventBusRemoves(e){this.domEventBusRemoves.push(e)}setMousePoint(e){const t=Vm(this.container,e);return this.mousePoint.x=t.x,this.mousePoint.y=t.y,t}registerMouseEventListeners(){const e=F=>{this.emit("mouseDown",F),this.container.style.userSelect="none"},t=F=>{this.emit("mouseUp",F),this.container.style.userSelect=""},s=F=>{this.emit("mouseMove",F)},i=F=>{this.emit("mouseOver",F)},o=F=>{this.emit("mouseOut",F),this.container.style.userSelect=""},r=F=>{this.emit("mouseClick",F)},a=F=>{this.emit("mouseDoubleClick",F)},l=F=>{this.emit("mouseWheel",F)},c=F=>{this.emit("mouseContextMenu",F)},u=F=>{this.emit("touchStart",F),this.container.style.userSelect="none"},h=F=>{this.emit("touchEnd",F),this.container.style.userSelect=""},f=F=>{this.emit("touchCancel",F),this.container.style.userSelect=""},d=F=>{this.emit("touchMove",F)},m=F=>{this.emit("pointerDown",F),this.container.style.userSelect="none"},v=F=>{this.emit("pointerUp",F),this.container.style.userSelect=""},b=F=>{this.emit("pointerCancel",F),this.container.style.userSelect=""},E=F=>{this.emit("pointerMove",F)},I=F=>{this.emit("pan",F)},N=F=>{this.emit("panStart",F),this.container.style.userSelect="none"},k=F=>{this.emit("panMove",F)},B=F=>{this.emit("panEnd",F),this.container.style.userSelect=""},R=F=>{this.emit("panCancel",F),this.container.style.userSelect=""},Y=F=>{this.emit("panLeft",F)},fe=F=>{this.emit("panRight",F)},be=F=>{this.emit("panUp",F),this.container.style.userSelect=""},ge=F=>{this.emit("panDown",F),this.container.style.userSelect="none"},Pe=F=>{this.emit("pinch",F)},Oe=F=>{this.emit("press",F)},Le=F=>{this.emit("rotate",F)},Fe=F=>{this.emit("swipe",F)},He=F=>{this.emit("tap",F)},Ie=F=>{!F.target||this.container==F.target||this.container.contains(F.target)||this.emit("tapOutSide",F)};this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",t),this.container.addEventListener("mousemove",s),this.container.addEventListener("mouseover",i),this.container.addEventListener("mouseout",o),this.container.addEventListener("click",r),this.container.addEventListener("dblclick",a),this.container.addEventListener("wheel",l),this.container.addEventListener("contextmenu",c),this.container.addEventListener("touchstart",u),this.container.addEventListener("touchend",h),this.container.addEventListener("touchcancel",f),this.container.addEventListener("touchmove",d),this.container.addEventListener("pointerdown",m),this.container.addEventListener("pointerup",v),this.container.addEventListener("pointercancel",b),this.container.addEventListener("pointermove",E),this.hammer.on("pan",I),this.hammer.on("panstart",N),this.hammer.on("panmove",k),this.hammer.on("panend",B),this.hammer.on("pancancel",R),this.hammer.on("panleft",Y),this.hammer.on("panright",fe),this.hammer.on("panup",be),this.hammer.on("pandown",ge),this.hammer.on("pinch",Pe),this.hammer.on("press",Oe),this.hammer.on("rotate",Le),this.hammer.on("swipe",Fe),this.hammer.on("tap",He),document.addEventListener("pointerdown",Ie,!1);const ve=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",t),this.container.removeEventListener("mousemove",s),this.container.removeEventListener("mouseover",i),this.container.removeEventListener("mouseout",o),this.container.removeEventListener("click",r),this.container.removeEventListener("dblclick",a),this.container.removeEventListener("wheel",l),this.container.removeEventListener("contextmenu",c),this.container.removeEventListener("touchstart",u),this.container.removeEventListener("touchend",h),this.container.removeEventListener("touchcancel",f),this.container.removeEventListener("touchmove",d),this.container.removeEventListener("pointerdown",m),this.container.removeEventListener("pointerup",v),this.container.removeEventListener("pointercancel",b),this.container.removeEventListener("pointermove",E),this.hammer.off("pan",I),this.hammer.off("panstart",N),this.hammer.off("panmove",k),this.hammer.off("panend",B),this.hammer.off("pancancel",R),this.hammer.off("panleft",Y),this.hammer.off("panright",fe),this.hammer.off("panup",be),this.hammer.off("pandown",ge),this.hammer.off("pinch",Pe),this.hammer.off("press",Oe),this.hammer.off("rotate",Le),this.hammer.off("swipe",Fe),this.hammer.off("tap",He),document.removeEventListener("pointerdown",Ie,!1),document.removeEventListener("touchstart",Ie,!1),document.removeEventListener("mousedown",Ie,!1)};return this.addDOMEventBusRemoves(ve),ve}registerInputEventListeners(){const e=l=>{this.emit("inputChange",l,this.container.files)},t=l=>{this.emit("dragstart",l)},s=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="copy"),this.emit("dragover",l)},i=l=>{this.emit("dragenter",l)},o=l=>{this.emit("dragend",l)},r=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer,this.emit("drop",l,l.dataTransfer?.files)};this.container instanceof HTMLInputElement&&this.container.addEventListener("change",e,!1),this.container.addEventListener("dragstart",t,!1),this.container.addEventListener("dragover",s,!1),this.container.addEventListener("dragenter",i,!1),this.container.addEventListener("dragend",o,!1),this.container.addEventListener("drop",r,!1);const a=()=>{this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",e,!1),this.container.removeEventListener("dragstart",t,!1),this.container.removeEventListener("dragover",s,!1),this.container.removeEventListener("dragenter",i,!1),this.container.removeEventListener("dragend",o,!1),this.container.removeEventListener("drop",r,!1)};return this.addDOMEventBusRemoves(a),a}registerTransitionEventListeners(){const e=s=>{this.emit("transitionend",s)};this.container.addEventListener("transitionend",e);const t=()=>{this.container.removeEventListener("transitionend",e)};return this.addDOMEventBusRemoves(t),t}registerKeyDown(e,t,s){const i=Um.on(e,r=>(t(r,i.formatedKeyNames,i.pause,i.restart),s)),o=()=>{i.removeListener?.()};return this.addDOMEventBusRemoves(o),o}registerResizeObserver(){const e=new ResizeObserver(s=>{const{width:i,height:o}=s[0].contentRect;this.width=i,this.height=o,this.emit("resize",i,o)});e.observe(this.container);const t=()=>{e.unobserve(this.container)};return this.addDOMEventBusRemoves(t),t}registerMatchMediaChange(e){let t="";switch(e){case"(prefers-color-scheme: dark)":t="matchMediaChangePrefersColorSchemeDark";break;default:t=e;break}const s=o=>{this.emit(t,o.matches)};window.matchMedia(e).addEventListener("change",s);const i=()=>{window.matchMedia(e).removeEventListener("change",s)};return this.addDOMEventBusRemoves(i),i}registerElementDisplayInParent(e){const t={threshold:e?.threshold||.5,root:e?.parentElement},s=new IntersectionObserver((o,r)=>{let a=o[0];if(o.length>1){const c=o.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=t.threshold?this.emit("showInParent"):this.emit("showOffParent")},t);s.observe(this.container);const i=()=>{s.unobserve(this.container)};return this.addDOMEventBusRemoves(i),i}registerPullDownRefresh(e){const t=e?.distance||50;let s=0,i=0;return this.captureMove({start:o=>{s=this.setMousePoint(o).y},move:()=>{i=this.mousePoint.y-s,i>0&&i<t&&this.emit("pullDownIng",i)},end:()=>{i>=t&&this.emit("pullDown")}})}registerPullUpLoading(e){const t=e?.distance||50;let s=0,i=0;return this.captureMove({start:o=>{s=this.setMousePoint(o).y},move:()=>{i=s-this.mousePoint.y,i>0&&i<t&&this.emit("pullUpIng",i)},end:()=>{i>=t&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(e){return this.captureMoveUsePointer(e)}captureMoveUsePointer(e){const t=r=>{this.container.setPointerCapture(r.pointerId),this.container.style.userSelect="none",e?.start?.(r)},s=r=>{this.container.style.userSelect="",e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("pointerDown",t),this.on("pointerUp",s),this.on("pointerCancel",s),this.on("pointerMove",i);const o=()=>{this.off("pointerDown",t),this.off("pointerUp",s),this.off("pointerCancel",s),this.off("pointerMove",i)};return this.addDOMEventBusRemoves(o),o}captureMoveUseMouse(e){const t=r=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",s,!1),this.container.style.userSelect="none",e?.start?.(r)},s=r=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",s,!1),this.container.style.userSelect="",e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("mouseDown",t);const o=()=>{this.off("mouseDown",t)};return this.addDOMEventBusRemoves(o),o}captureMoveUseTouch(e){const t=r=>{r.preventDefault(),e?.start?.(r)},s=r=>{e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("touchStart",t),this.on("touchEnd",s),this.on("touchCancel",s),this.on("touchMove",i);const o=()=>{this.off("touchStart",t),this.off("touchEnd",s),this.off("touchCancel",s),this.off("touchMove",i)};return this.addDOMEventBusRemoves(o),o}static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class Wr{video;constructor(e){this.video=e}setSrcObject(e){this.video.addEventListener("loadedmetadata",t=>{t.target}),this.video.srcObject=e}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{this.setSrcObject(e)})}static async videoMediaChangeSupport(){return new Promise(e=>{const t=document.createElement("iframe"),s=document.createElement("video"),i=document.createElement("source"),o=new MediaSource;o.addEventListener("sourceopen",()=>e(!0)),i.src=URL.createObjectURL(o),i.media="(min-width:10px)",s.append(i),t.width="5",t.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(t),t.contentDocument?.body.append(s),setTimeout(()=>{t.width="15"}),setTimeout(()=>{t.remove(),e(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(t=>{e.play().then(()=>{e.autoplay=!0,t(!0)}).catch(()=>{Wr.setAutoPlayWhenClick(e),t(!1)})})}static setAutoPlayWhenClick(e){function t(){e.autoplay=!0,e.play(),document.removeEventListener("click",t),document.removeEventListener("touchend",t)}document.addEventListener("click",t),document.addEventListener("touchend",t)}}class Xm extends Sr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(e){super(),this.source=e}parse(){const e=Ec(this.source);if(e===0){this.emit("finish");return}let t,s,i=kc(this.source,0);for(let o=1;o<e;o++)t=s,s=i,i=kc(this.source,o),this.raw+=s,s&&this.step(s,i,t);i&&this.step(i,void 0,s),this.emit("finish")}step(e,t,s){e==`
54
+ `&&this.emit("newline"),this.act(e,t,s)}act(e,t,s){switch(this.mode){case"text":switch(e){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=e,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=e;break}break;case"entity":xn("whitespace",e)?(this.textchunk+=Z.entity2text(this.entity),this.mode="text"):e==";"?(this.textchunk+=Z.entity2text(this.entity+e),this.mode="text"):this.entity+=e;break;case"special":if(s=="!"&&e=="-"&&t=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&e=="["){this.mode="cdata",this.textchunk="";break}if(e==">"||e=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=e;break;case"cdata":if(s=="]"&&e=="]"&&t==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}e=="eof"&&(this.mode="cdata end",this.act(e,t,s)),this.textchunk+=e;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":t==">"||e=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":e=="-"&&s=="-"&&t==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):e=="eof"?this.emit("comment",this.textchunk):this.textchunk+=e;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(e=="?"&&t==">"){this.mode="declaration end";break}e=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=e;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(e=="eof"){this.emit("text","<");break}if(!xn("whitespace",e)){if(this.mode="tag name",e=="/"){this.mode="close tag name start";break}else if(e=="!"){this.mode="special",this.textchunk="";break}else if(e=="?"){this.mode="declaration";break}this.act(e,t,s)}break;case"close tag name start":xn("whitespace",e)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(e,t,s));break;case"close tag name":if(xn("whitespace",e))this.tagname=this.nodename;else switch(e){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=e);break}break;case"tag name":if(xn("whitespace",e))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(e){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=t,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=e;break}break;case"attr start":xn("whitespace",e)||(this.mode="attr",this.nodename="",this.act(e,t,s));break;case"attr":if(xn("whitespace",e)||e=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(e){case">":this.nodename=="/"?(delete this.attrs["/"],this.emit("tag",this.tagname,this.attrs),this.emit("/tag",this.tagname,this.attrs)):(this.nodename&&(this.attrs[this.nodename]=""),this.emit("tag",this.tagname,this.attrs)),this.mode="text";break;default:this.nodename+=e;break}break;case"attr value start":if(!xn("whitespace",e)){if(this.mode="attr value",this.quote="",e=="'"||e=='"'){this.quote=e;return}this.act(e,t,s)}break;case"attr value":if(xn("whitespace",e)&&!this.quote)this.mode="attr start";else if(e==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(e){case'"':case"'":this.quote==e&&s!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=e;break}break}}}function Cu(n,e){if(typeof e<"u")window.localStorage.setItem(n,e);else return window.localStorage.getItem(n)??void 0}st.page.on("matchMediaChangePrefersColorSchemeDark",n=>{Ur(n?"dark":"light")}),qm();function Ur(n){Cu("colorScheme",n),document.documentElement.classList.toggle("dark",n=="dark")}function qm(){const n=Cu("colorScheme");if(n=="dark"||n=="light")return Ur(n),n;{const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return Ur(e),e}}const ee={safeAreaTop:Z.getCSSVar("--safe-area-inset-top"),safeAreaRight:Z.getCSSVar("--safe-area-inset-right"),safeAreaBottom:Z.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:Z.getCSSVar("--safe-area-inset-left"),colorPrimary:Z.getCSSVar("--color-primary")||"#5078f0",colorRed:Z.getCSSVar("--color-red")||"#ff5050",colorOrange:Z.getCSSVar("--color-orange")||"#fa8c00",colorYellow:Z.getCSSVar("--color-yellow")||"#fadc32",colorGreen:Z.getCSSVar("--color-green")||"#00c878",colorBlue:Z.getCSSVar("--color-blue")||"#00b4fa",colorPurple:Z.getCSSVar("--color-purple")||"#6464fa",colorBlack:Z.getCSSVar("--color-black")||"#001428",colorGray00:Z.getCSSVar("--color-gray-00")||"#000000",colorGray33:Z.getCSSVar("--color-gray-33")||"#333333",colorGray66:Z.getCSSVar("--color-gray-66")||"#666666",colorGray99:Z.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:Z.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:Z.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:Z.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:Z.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:Z.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:Z.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:Z.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:Z.getCSSVar("--font-line-height")||"1,4",fontSize32:Z.getCSSVar("--font-size-32")||"32px",fontSize24:Z.getCSSVar("--font-size-24")||"24px",fontSize20:Z.getCSSVar("--font-size-20")||"20px",fontSize18:Z.getCSSVar("--font-size-18")||"18px",fontSize16:Z.getCSSVar("--font-size-16")||"16px",fontSize14:Z.getCSSVar("--font-size-14")||"14px",fontSize12:Z.getCSSVar("--font-size-12")||"12px",fontSize11:Z.getCSSVar("--font-size-11")||"11px",gap4:Z.getCSSVar("--gap-4")||"4px",gap8:Z.getCSSVar("--gap-8")||"8px",gap12:Z.getCSSVar("--gap-12")||"12px",gap16:Z.getCSSVar("--gap-16")||"16px",gap20:Z.getCSSVar("--gap-20")||"20px",gap40:Z.getCSSVar("--gap-40")||"40px",height44:Z.getCSSVar("--height-44")||"44px",height32:Z.getCSSVar("--height-32")||"32px",borderRadius:Z.getCSSVar("--border-radius")||"4px"};function xs(n,e){if(n.hasOwnProperty("r")&&n.hasOwnProperty("g")&&n.hasOwnProperty("b"))return n.r=Math.round(Yt(n.r,0,255)),n.g=Math.round(Yt(n.g,0,255)),n.b=Math.round(Yt(n.b,0,255)),n.hasOwnProperty("a")?n.a=typeof e=="number"?e:n.a:n.a=typeof e=="number"?e:1,n.a=Yt(n.a,0,1),n;const t={r:0,g:0,b:0,a:1};let s=-1;if(typeof n=="number")s=n;else if(typeof n=="string")if(n[0].toLowerCase()==="r"){const i=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(n);i&&(s=(parseInt(i[1])<<16)+(parseInt(i[2])<<8)+parseInt(i[3]),i[4]&&(t.a=Mt(parseFloat(i[4]),2)))}else if(n[0]==="#")s=parseInt(n.slice(1,7),16),n.length>7&&(t.a=Mt(parseInt(n.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+n);return s>=0&&(t.r=s>>16&255,t.g=s>>8&255,t.b=s&255),typeof e=="number"&&(t.a=e),t.a=Yt(t.a,0,1),t}function Su(n,e){const t=xs(n,e);return t.a===1?`rgb(${t.r},${t.g},${t.b})`:`rgba(${t.r},${t.g},${t.b},${t.a})`}function oo(n){return wp(n.toString(16),2,"0","left")}function ls(n,e){const t=xs(n,e);let s=`#${oo(t.r)}${oo(t.g)}${oo(t.b)}`;return t.a===1?s:s+`${oo(Math.ceil(t.a*255))}`}const Km=()=>Math.random()*16777215,zt=()=>ls(Km());function Cn(n,e){const t=xs(n);return t.r==0&&(t.r=32),t.g==0&&(t.g=32),t.b==0&&(t.b=32),t.r=t.r*(100+e)/100,t.g=t.g*(100+e)/100,t.b=t.b*(100+e)/100,t.r=Math.round(Yt(t.r,0,255)),t.g=Math.round(Yt(t.g,0,255)),t.b=Math.round(Yt(t.b,0,255)),ls(t)}function Eu(n,e,t){try{const s=xs(n),i=xs(e);return ls({r:(i.r-s.r)*t+s.r,g:(i.g-s.g)*t+s.g,b:(i.b-s.b)*t+s.b,a:(i.a-s.a)*t+s.a})}catch{return e}}const ro=new Map;async function ku(n){return new Promise((e,t)=>{Zm(n,(s,i)=>s?t(s):e({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const Zm=(n,e)=>{if(ro.has(n))return e(null,ro.get(n));const t=new Image;t.onload=function(){ro.set(n,{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height,element:t}),e(null,ro.get(n))},t.onerror=function(s){e(s,null)},t.src=n};class ws extends vt{shapes=[];constructor(e){super(e)}setAttrs(e,t){this.shapes.forEach(s=>{Cr(e)?s.setAttr(e):typeof e=="string"&&t&&s.setAttr(e,t)})}addShape(e){this.shapes.push(...Array.isArray(e)?e:[e])}toSVGPathData(){return this.shapes.reduce((e,t,s)=>{const i=t.toSVGPathData();return Array.isArray(i[0])?e.push(...i):e.push(i),e},[])}toCanvasContext(e){this.shapes.forEach(t=>t.toCanvasContext(e))}}const Qm=ws;let si;typeof self>"u"&&typeof process<"u"&&process.hrtime?si=function(){const n=process.hrtime();return n[0]*1e3+n[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?si=self.performance.now.bind(self.performance):Date.now!==void 0?si=Date.now:si=function(){return new Date().getTime()};const Cs=si;class ii{static _nextId=0;static nextId(){return ii._nextId++}}const ao={Linear:{None:function(n){return n}},Ease:{In:function(n){return Math.pow(n,1.7)}},Quadratic:{In:function(n){return n*n},Out:function(n){return n*(2-n)},InOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)}},Cubic:{In:function(n){return n*n*n},Out:function(n){return--n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)}},Quartic:{In:function(n){return n*n*n*n},Out:function(n){return 1- --n*n*n*n},InOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)}},Quintic:{In:function(n){return n*n*n*n*n},Out:function(n){return--n*n*n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)}},Sinusoidal:{In:function(n){return 1-Math.sin((1-n)*Math.PI/2)},Out:function(n){return Math.sin(n*Math.PI/2)},InOut:function(n){return .5*(1-Math.sin(Math.PI*(.5-n)))}},Exponential:{In:function(n){return n===0?0:Math.pow(1024,n-1)},Out:function(n){return n===1?1:1-Math.pow(2,-10*n)},InOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)}},Circular:{In:function(n){return 1-Math.sqrt(1-n*n)},Out:function(n){return Math.sqrt(1- --n*n)},InOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)}},Elastic:{In:function(n){return n===0?0:n===1?1:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI)},Out:function(n){return n===0?0:n===1?1:Math.pow(2,-10*n)*Math.sin((n-.1)*5*Math.PI)+1},InOut:function(n){return n===0?0:n===1?1:(n*=2,n<1?-.5*Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI):.5*Math.pow(2,-10*(n-1))*Math.sin((n-1.1)*5*Math.PI)+1)}},Back:{In:function(n){return n===1?1:n*n*((1.70158+1)*n-1.70158)},Out:function(n){return n===0?0:--n*n*((1.70158+1)*n+1.70158)+1},InOut:function(n){const e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)}},Bounce:{In:function(n){return 1-ao.Bounce.Out(1-n)},Out:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},InOut:function(n){return n<.5?ao.Bounce.In(n*2)*.5:ao.Bounce.Out(n*2-1)*.5+.5}},generatePow:function(n=4){return n=n<Number.EPSILON?Number.EPSILON:n,n=n>1e4?1e4:n,{In:function(e){return e**n},Out:function(e){return 1-(1-e)**n},InOut:function(e){return e<.5?(e*2)**n/2:(1-(2-e*2)**n)/2+.5}}},random:function(n){return Math.random()},createStep:function(n){return function(e){return Math.floor(e*n)/n}},createNoisyEasing:function(n,e=.1){const t=1-e;return function(s){return e*Math.random()+t*n(s)}},swing:function(n){return n+Math.sin(n*Math.PI*2)/2},causeSeizures:function(n){return n+.2*Math.random()-.1}},Xr=ao,oi={Utils:{Linear:function(n,e,t){return(e-n)*t+n},Factorial:function(){const n=[1];return function(e){let t=1;if(n[e])return n[e];for(let s=e;s>1;s--)t*=s;return n[e]=t,t}}(),Bernstein:function(n,e){const t=oi.Utils.Factorial;return t(n)/t(e)/t(n-e)},CatmullRom:function(n,e,t,s,i){const o=(t-n)*.5,r=(s-e)*.5,a=i*i,l=i*a;return(2*e-2*t+o+r)*l+(-3*e+3*t-2*o-r)*a+o*i+e}},Linear:function(n,e){const t=n.length-1,s=t*e,i=Math.floor(s),o=oi.Utils.Linear;return e<0?o(n[0],n[1],s):e>1?o(n[t],n[t-1],t-s):o(n[i],n[i+1>t?t:i+1],s-i)},Bezier:function(n,e){let t=0;const s=n.length-1,i=Math.pow,o=oi.Utils.Bernstein;for(let r=0;r<=s;r++)t+=i(1-e,s-r)*i(e,r)*n[r]*o(s,r);return t},CatmullRom:function(n,e){const t=n.length-1;let s=t*e,i=Math.floor(s);const o=oi.Utils.CatmullRom;return n[0]===n[t]?(e<0&&(i=Math.floor(s=t*(1+e))),o(n[(i-1+t)%t],n[i],n[(i+1)%t],n[(i+2)%t],s-i)):e<0?n[0]-(o(n[0],n[0],n[1],n[1],-s)-n[0]):e>1?n[t]-(o(n[t],n[t],n[t-1],n[t-1],s-t)-n[t]):o(n[i?i-1:0],n[i],n[t<i+1?t:i+1],n[t<i+2?t:i+2],s-i)}},qr=oi;class Tu{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=Cs(),t=!1){let s=Object.keys(this._tweens);for(let i=0;i<s.length;i++){const o=this._tweens[s[i]],r=!t;o&&o.update(e,r)===!1&&!t&&delete this._tweens[s[i]]}return!!Object.keys(this._tweens).length}}const Ut=new Tu;class Pu{constructor(e,t=Ut){this._object=e,this._group=t}_id=ii.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=Xr.Linear.None;_interpolationFunction=qr.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,t){return this._valuesEnd=Object.create(e),t!==void 0&&(this._durationTime=t),this}duration(e=1e3){return this._durationTime=e,this}start(e=Cs()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const t in this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,t,s,i){for(const o in s){const r=e[o],a=Array.isArray(r),l=a?"array":typeof r,c=!a&&Array.isArray(s[o]);if(!(l==="undefined"||l==="function")){if(c){let u=s[o];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,r)),s[o]=[r].concat(u)}if((l==="object"||a)&&r&&!c){t[o]=a?[]:{};for(const u in r)t[o][u]=r[u];i[o]=a?[]:{},this._setupProperties(r,t[o],s[o],i[o])}else typeof t[o]>"u"&&(t[o]=r),a||(t[o]*=1),c?i[o]=s[o].slice().reverse():i[o]=t[o]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=Cs()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=Cs()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this}group(e=Ut){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=Xr.Linear.None){return this._easingFunction=e,this}interpolation(e=qr.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=Cs(),t=!0){if(this._isPaused)return!0;let s,i;const o=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>o)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(e-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const r=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,r),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,t,s,i){for(const o in s){if(t[o]===void 0)continue;const r=t[o]||0;let a=s[o];const l=Array.isArray(e[o]),c=Array.isArray(a);!l&&c?e[o]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(e[o],r,a,i):(a=this._handleRelativeValue(r,a),typeof a=="number"&&(e[o]=r+(a-r)*i))}}_handleRelativeValue(e,t){return typeof t!="string"?t:t.charAt(0)==="+"||t.charAt(0)==="-"?e+parseFloat(t):parseFloat(t)}_swapEndStartRepeatValues(e){const t=this._valuesStartRepeat[e],s=this._valuesEnd[e];typeof s=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(s):this._valuesStartRepeat[e]=s,this._valuesEnd[e]=t}}const Jm=Pu,eg=ii.nextId,tg=Ut.getAll.bind(Ut),ng=Ut.removeAll.bind(Ut),sg=Ut.add.bind(Ut),ig=Ut.remove.bind(Ut),og=Ut.update.bind(Ut),he={now:Cs,Sequence:ii,Easing:Xr,Interpolation:qr,Group:Tu,Tween:Jm,nextId:eg,getAll:tg,removeAll:ng,add:sg,remove:ig,update:og};function rg(n){switch(n){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}(function(){let n=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const t=new Date().getTime(),s=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+s)},s);return n=t+s,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const ag=n=>{let e=window.requestAnimationFrame(function t(s){n(s),e=window.requestAnimationFrame(t)});return()=>window.cancelAnimationFrame(e)};class lg{id=0;renders={};cancelAnimateInWeb;constructor(){}get length(){return Object.keys(this.renders).length}run(e){this.renders[this.id++]=e,!this.cancelAnimateInWeb&&(this.cancelAnimateInWeb=ag(t=>{const s=[];for(let i in this.renders)this.renders[i](t)===!1&&s.push(parseInt(i));for(let i of s)delete this.renders[i];!this.length&&this.cancelAnimateInWeb&&(this.cancelAnimateInWeb(),this.cancelAnimateInWeb=void 0)}))}runAccurateSetTimeout(e,t=0){let s=!1,i;return this.run(o=>s?!1:(i||(i=o),o-i>=t?(e(),!1):!0)),()=>{s=!0}}}const it=new lg,cg={attributeName:["display"],values:[["block","block"]],immediate:!1},Gt={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Be{objects=[];animateObjects=[];currentAnimateName;constructor(){}hasObjects(){return this.objects.length>0}fromDOM(e){return Array.isArray(e)||(e=[e]),this.objects.forEach(t=>{t.app.destroy()}),this.objects=[],e.forEach(t=>{this.objects.push({el:t,app:new st(t),originAttrs:{}})}),this}static toTween(e,t,s){const i=s?.onStart||(()=>{}),o=s?.onUpdate||(()=>{}),r=s?.onComplete||(()=>{}),a=s?.duration||1e3,l=s?.delay||0,c=s?.easeFunction||he.Easing.Linear.None,u=s?.repeat||0,h=s?.yoyo||!1,f=new he.Tween(e).to(t,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(i).onUpdate((d,m)=>{o(d,m)}).onComplete(r);return s?.interpolationFunction&&f.interpolation(s.interpolationFunction),{tween:f,startAuto:d=>{f.start(d?.()),it.run(()=>{const m=f.update(d?.());if(s?.precision){let v=!0;for(let b in e)Ks(e[b],t[b],s.precision)||(v=!1);return v?!1:m}return m})}}}static toTweenGroup(e,t){if(e instanceof Pu)return s=>{e.start(),t?.onGroupStart?.(),it.run(()=>{const i=he.update(s?.());return i?t?.onGroupUpdate?.():t?.onGroupComplete?.(),i})};{const s=new he.Group;return e.forEach(i=>{s.add(i)}),i=>{e.forEach(o=>o.start()),t?.onGroupStart?.(),it.run(()=>{const o=s.update(i?.());return o?t?.onGroupUpdate?.():t?.onGroupComplete?.(),o})}}}static toTweenCSS(e,t,s,i){Z.add3DSupport(e);const o=i?.onUpdate||(()=>{});return Be.toTween(t,s,Object.assign(i||{},{onUpdate:(r,a)=>{const l=Z.convertAttrs(e,r);Z.setStyle(e,l),o(r,a)}}))}addAnimateObject(e=cg,t=Gt,s=0,i=!1){const o=t.easeName||"linear",r=t.dur||300,a=t.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(rg(o))});const c=this.objects[s];return this.animateObjects=i?[]:this.animateObjects,this.animateObjects.push({el:c.el,app:c.app,originAttrs:c.originAttrs,attributeName:e.attributeName,values:e.values,immediate:e.immediate||!1,easeName:o,begin:t.begin||0,dur:r,repeatCount:t.repeatCount||1,direction:t.direction||"normal",fill:t.fill||"freeze",keyTimes:a,realKeyTimes:a.map(u=>r*u),keySplines:l,calcMode:t.calcMode||"linear",onComplete:t.onComplete||(()=>{})}),this}resetAnimateObjects(e,t,s,i,o=Gt,r=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;r=Yt(r,0,h);let f=r-1;f=Yt(f,0,h);let d=r+1;d=Yt(d,0,h);const m=this.objects[r],v=this.objects[f],b=this.objects[d];if(v&&f!==r){const E=e(v);E&&(this.addAnimateObject(E,o,f,a),a=!1,l=!0)}if(m){const E=t(m);E&&(this.addAnimateObject(E,o,r,a),a=!1,c=!0)}if(b&&d!==r){const E=s(b);E&&(this.addAnimateObject(E,o,d,a),a=!1,u=!0)}this.objects.forEach((E,I)=>{if(!(I==f&&l||I==r&&c||I==d&&u)){const N=i(E);N&&(this.addAnimateObject(N,o,I,a),a=!1)}})}toCSS(e,...t){if(!this.hasObjects())return;this.currentAnimateName=e,this[e](...t),Z.add3DSupport(this.objects[0].el),this.objects.forEach((o,r)=>{Z.setStyle(o.el,{position:"absolute","z-index":String(2e3+r),"transform-style":"preserve-3d","backface-visibility":"hidden"})});let s=0;const i=()=>{this.animateObjects.forEach((o,r)=>{let a=[],l=[];Array.isArray(o.attributeName)?(a=o.attributeName,l=o.values):o.attributeName&&(a=[o.attributeName],l=[o.values]);const c=o.keyTimes.length;let u=o.begin;o.keyTimes.forEach((h,f)=>{if(f==0||o.immediate){const d={};a.forEach((v,b)=>{const E=l[b][o.direction=="reverse"?c-1-f:f];d[v]=E});const m=Z.convertAttrs(o.el,d,o.originAttrs);Z.setStyle(o.el,Object.assign(m,{transition:"none"}))}else it.runAccurateSetTimeout(()=>{const d={};a.forEach((v,b)=>{const E=l[b][o.direction=="reverse"?c-1-f:f];d[v]=E});const m=Z.convertAttrs(o.el,d,o.originAttrs);Z.setStyle(o.el,Object.assign(m,{transition:`all ${o.realKeyTimes[f]}ms cubic-bezier(${o.keySplines[f-1].join(",")})`}))},u),u+=o.realKeyTimes[f]}),it.runAccurateSetTimeout(()=>{o.fill==="remove"&&Z.setStyle(o.el,o.originAttrs||{}),r==this.animateObjects.length-1&&(o.onComplete?.(),this.currentAnimateName==e&&(o.repeatCount=="infinite"||typeof o.repeatCount=="number"&&++s<o.repeatCount)&&i())},o.begin+o.dur)})};i()}slideLeft(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-s.app.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[s.app.width,0],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[s.app.width,0],[s.app.width,0]]],immediate:!0}),e,t)}slideRight(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>{},s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-s.app.width,0],[0,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[s.app.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-s.app.width,0],[-s.app.width,0]]],immediate:!0}),e,t)}slideDown(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,s.app.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-s.app.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-s.app.height],[0,-s.app.height]]],immediate:!0}),e,t)}slideUp(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-s.app.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,s.app.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,s.app.height],[0,s.app.height]]],immediate:!0}),e,t)}flipLeft(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipRight(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipDown(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipUp(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popIn(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popOut(e=Gt,t=this.objects.length-1){this.resetAnimateObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}rotate(e=Gt,t=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const s=e.degree||360;this.resetAnimateObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}}class ug extends Xm{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(e){super(e),this.on("tag",(t,s)=>{switch(this.text="",this.currentItem={type:t},t){case"g":this.groups.push(this.currentItem);break}this.processAttrs(t,s)}),this.on("text",t=>{if(this.currentItem.type=="style"){try{const s=Pp(t);for(let i of s.stylesheet.rules)for(let o of i.declarations)for(let r of i.selectors)this.globalStyles[r]=this.globalStyles[r]||[],this.globalStyles[r].push(`${o.property}:${o.value}`)}catch{console.error("CAN'T parse css text: "+t)}return}this.text+=t}),this.on("/tag",(t,s)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let o="",r="";for(let a in this.groups[i])a=="transform"?o=this.groups[i].transform:a=="class"&&this.globalStyles["."+this.groups[i][a]]?r=this.globalStyles["."+this.groups[i][a]].join(";")+";"+r:a=="id"&&this.globalStyles["#"+this.groups[i][a]]?r=this.globalStyles["#"+this.groups[i][a]].join(";")+";"+r:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[i][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=o:this.currentItem.transform+=" "+o,typeof this.currentItem.style>"u"?this.currentItem.style=r:this.currentItem.style=r+this.currentItem.style,this.currentItem.class&&this.globalStyles["."+this.currentItem.class]?this.currentItem.style=this.globalStyles["."+this.currentItem.class].join(";")+";"+this.currentItem.style:this.currentItem.id&&this.globalStyles["#"+this.currentItem.id]&&(this.currentItem.style=this.globalStyles["#"+this.currentItem.id].join(";")+";"+this.currentItem.style),Zr(this.currentItem.style,this.currentItem,Qr)}switch(this.processAttrs(t,s),t){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(e,t){let s=[],i;switch(e){case"svg":let o="",r="";if(t.width&&t.height)o=t.width,r=t.height;else if(t.viewBox){const a=t.viewBox.split(/\s+/gi);a.length==4&&(o=String(parseFloat(a[2])-parseFloat(a[0])),r=String(parseFloat(a[3])-parseFloat(a[1])))}o&&r&&this.items.push({type:"viewbox",width:o,height:r});break;case"line":typeof t.x1=="number"&&typeof t.y1=="number"&&typeof t.x2=="number"&&typeof t.y2=="number"&&(this.currentItem.path="M"+[t.x1,t.y1,t.x2,t.y2]);break;case"stop":i={},t.style&&Zr(t.style,i),i.offset=i.offset||t.offset,i.color=i["stop-color"]||t["stop-color"],i.opacity=i["stop-opacity"]||t["stop-opacity"],~(i.offset+"").indexOf("%")?i.offset=parseFloat(i.offset):i.offset=parseFloat(i.offset)*100,i.offset=+i.offset.toFixed(2),this.grad.stops.push(i);break;case"linearGradient":this.grad.angle=(360+Kr(parseFloat(t.x1),parseFloat(t.y1),parseFloat(t.x2),parseFloat(t.y2),parseFloat(t.x1)+100,parseFloat(t.y1))).toFixed(2),s=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":s=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let o in t){const r=t[o];if(Qr.includes(o)&&(this.currentItem[o]=r),o==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:o,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:o,stops:[]})),o==="style"&&Zr(r,this.currentItem,Qr),o==="transform"&&(this.currentItem.transform=r+(this.currentItem.transform||" ")),o==="fill"){const a=r.match(/url\(#([^)]+)\)/);if(a){const l=a[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}o==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+r+"z"),o==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=r),o==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=r)}}addToItems(){this.items.push(this.currentItem)}}function Kr(n,e,t,s,i,o){if(typeof i>"u"||typeof o>"u"){const r=n-t,a=e-s;return!r&&!a?0:(180+Math.atan2(-a,-r)*180/Math.PI+360)%360}else return Kr(n,e,i,o)-Kr(t,s,i,o)}function Zr(n,e,t){const s=(n+"").split(";"),i=/^\s+|\s+$/g;for(let o=0,r=s.length;o<r;o++){let a=s[o].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!t||t.includes(l))&&(e[l]=a[1].replace(i,""))}}const Qr=["id","class","viewBox","width","height","x","y","cx","cy","r","rx","ry","cursor","opacity","src","fill","fill-opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","font","font-family","font-size","font-style","font-weight","letter-spacing"];let Ou=class{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e,t,s){this.app=e,this.rootEl=nt.createSVGElement("svg"),Z.empty(this.app.container),Z.insert(this.app.container,this.rootEl),t&&s?this.setSize(t,s):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";let i=0,o=this.shapes.length;for(;i<o;i++){const r=this.shapes[i];if(!(r instanceof we)&&!r.pathd){r.isMouseIn=!1;continue}const a=r instanceof we&&r.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||r.pathd instanceof we&&r.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1;if(r.isMouseIn=a,a&&(this.currentMouseInShapeID=r.id,r.enableDrag)){this.currentEnableDragMouseInShapeID=r.id,this.shapes.filter(l=>l.id!==r.id).forEach(l=>{l instanceof vt&&(l.isMouseIn=!1)});break}}i>=o&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShapeID?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}setSize(e,t){return Z.attribute(this.rootEl,{viewBox:`0 0 ${e} ${t}`,width:`${e}`,height:`${t}`}),this}download(){return nt.downloadFromSVGElement(this.rootEl)}path(e){[...Array.isArray(e)?e:[e]].forEach(t=>{if(t instanceof ws){t.shapes.forEach(s=>this.path(s));return}if(t instanceof ia)t.el=this.text(t.text,t.x,t.y,t.attrs);else if(t instanceof jt)t.el=nt.createSvgPath(`M ${t.fromX} ${t.fromY} `+t.toSVGPathD()),Z.insert(this.rootEl,t.el);else if(t instanceof we)t.el=nt.createSvgPath(t.toSVGPathD()),Z.insert(this.rootEl,t.el);else if(t instanceof vt){const s=we.fromShape(t)||t;s.el=t.el=nt.createSvgPath(s.toSVGPathD()),Z.insert(this.rootEl,t.el),s instanceof we&&(t.pathd=s)}this.update(t),this.shapes.push(t)})}update(e){[...Array.isArray(e)?e:[e]].forEach(t=>{const s=[];t instanceof ws?(t.frameUpdate(),s.push(...t.shapes)):s.push(t),s.forEach(i=>{if(i.followMouse&&(!Ks(i.x,this.app.mousePoint.x,5)||!Ks(i.y,this.app.mousePoint.y,5))&&(i.angleTo(this.app.mousePoint),i.followTo(this.app.mousePoint)),i.targetToAfterDragFree&&(this.isMouseDown||i.nextFrameEaseTo(new yt({x:i.targetToAfterDragFree.targetX,y:i.targetToAfterDragFree.targetY}),{easing:i.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==i.id){const{dx:o,dy:r}=i.centerDiff;i.x=this.app.mousePoint.x,i.y=this.app.mousePoint.y,i.x-=o,i.y-=r,i.isDragging=!0,this.shapes.filter(a=>a.id!=i.id).forEach(a=>{a instanceof vt&&(a.isDragging=!1)})}else this.shapes.forEach(o=>{o instanceof vt&&(o.isDragging=!1)});i.frameUpdate(),i instanceof we?i.updateTransform():i.pathd&&i.pathd.updateFromShape(i),(i instanceof jt||i instanceof we||i.pathd instanceof we)&&this.attr(i,"d",i instanceof jt?`M ${i.fromX} ${i.fromY} `+i.toSVGPathD():i.pathd instanceof we?i.pathd.toSVGPathD():i.toSVGPathD()),i instanceof ia&&(i.setAttr("x",String(i.x)),i.setAttr("y",String(i.y))),this.attr(i,i.attrs),i.el&&(i.isShow?Z.show(i.el):Z.hide(i.el))})})}click(e){const t=()=>{this.shapes.forEach(s=>{(s instanceof we&&s.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||s.pathd instanceof we&&s.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))&&e(s)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}delete(e){[...e instanceof ws?e.shapes:[e]].forEach(t=>{t.el&&Z.remove(t.el),delete t.el,delete t.pathd?.el,this.shapes=this.shapes.filter(s=>s.id!=t.id)})}clear(){this.shapes.forEach(e=>{delete e.el,delete e.pathd?.el}),Z.empty(this.rootEl),this.shapes=[]}attr(e,t,s){const i=e.el||e;return i instanceof SVGElement?t===void 0&&s===void 0?Z.attribute(i):typeof t=="string"&&s===void 0?Z.attribute(i,Lt(t))||"":(typeof t=="object"?Z.attribute(i,t):typeof t=="string"&&s!==void 0&&Z.attribute(i,Lt(t),s),this):this}circle(e,t,s){return this.path(new yt({x:e,y:t,radius:s}))}circleEl(e,t,s){const i=nt.createSVGElement("circle",{cx:String(e),cy:String(t),r:String(s)});return Z.insert(this.rootEl,i),i}ellipse(e,t,s,i){return this.path(new mg({x:e,y:t,rx:s,ry:i}))}ellipseEl(e,t,s,i){const o=nt.createSVGElement("ellipse",{cx:String(e),cy:String(t),rx:String(s),ry:String(i)});return Z.insert(this.rootEl,o),o}rect(e,t,s,i){return this.path(new Ft({x:e,y:t,width:s,height:i}))}rectEl(e,t,s,i){const o=nt.createSVGElement("rect",{x:String(e),y:String(t),width:String(s),height:String(i)});return Z.insert(this.rootEl,o),o}image(e,t,s,i,o){}text(e,t,s,i){const o=nt.createSVGElement("text",{x:String(t),y:String(s)});return Z.html(o,e),this.attr(o,Object.assign({"alignment-baseline":"middle"},i)),Z.insert(this.rootEl,o),o}textWithTspan(e,t,s,i){const o=i?.["line-height"]||"1.2em",r=nt.createSVGElement("text",{x:String(t),y:String(s)});return e.split(`
55
+ `).forEach((a,l)=>{if(a.trim()){const c=nt.createSVGElement("tspan",{x:String(t),dy:l>0?o:"0"});Z.html(c,a),Z.insert(r,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),Z.insert(this.rootEl,r),r}};const Iu=hg("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function hg(n,e=10){const t={},s=n.split(",");for(let i=0;i<s.length;i+=2){const o="&"+s[i+1]+";",r=parseInt(s[i],e);t[o]="&#"+r+";"}return t["\\xa0"]="&#160;",t}function Dt(n,e){const t=Object.keys(e);for(let s=0;s<t.length;s++)n=n.replace(new RegExp("{"+t[s]+"}","gi"),""+e[t[s]]);return n}function lo(n){let e,t;if(!n)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",t=0;t<12;t++)e+=s[Math.floor(Math.random()*s.length)];while(n[e]);return e}function dg(n){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[n]||e.start}function fg(n){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[n]||e.alphabetic}const ri={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class Jr{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}addColorStop(e,t){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+e),t.indexOf("rgba")!==-1){const o=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(t);o&&(s.setAttribute("stop-color",Dt("rgb({r},{g},{b})",{r:o[1],g:o[2],b:o[3]})),s.setAttribute("stop-opacity",o[4]))}else s.setAttribute("stop-color",t);this.__root.appendChild(s)}}class Du{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}}class co{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:t=500,height:s=500}){e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=t,this.height=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(ri);for(let t=0,s=e.length;t<s;t++){const i=e[t];this[i]=ri[i].canvas}}__getStyleState(){const e={},t=Object.keys(ri);for(let s=0,i=t.length;s<i;s++){const o=t[s];e[o]=this[o]}return e}__applyStyleState(e){const t=Object.keys(e);for(let s=0,i=t.length;s<i;s++){const o=t[s];this[o]=e[o]}}__createElement(e,t={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",e),o=Object.keys(t);s&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let r=0;r<o.length;r++){const a=o[r];i.setAttribute(a,t[a])}return i}__applyStyleToCurrentElement(e){let t=this.__currentElement;const s=this.__currentElementsToStyle;s&&(t.setAttribute(e,""),t=s.element,s.children.forEach(o=>{o.setAttribute(e,"")}));const i=Object.keys(ri);for(let o=0;o<i.length;o++){const r=ri[i[o]],a=this[i[o]];if(r.apply){if(a instanceof Du){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const l=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}t.setAttribute(r.apply,Dt("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Jr)t.setAttribute(r.apply,Dt("url(#{id})",{id:a.__root.getAttribute("id")}));else if(r.apply.indexOf(e)!==-1&&r.svg!==a)if((r.svgAttr==="stroke"||r.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);t.setAttribute(r.svgAttr,Dt("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const h=this.globalAlpha;h!=null&&(u*=h),t.setAttribute(r.svgAttr+"-opacity",""+u)}else{let l=r.svgAttr;if(i[o]==="globalAlpha"&&(l=e+"-"+r.svgAttr,t.getAttribute(l)))continue;l&&t.setAttribute(l,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let t=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(t)&&(t=t.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const i=Object.keys(Iu);for(let o=0,r=i.length;o<r;o++){const a=i[o],l=Iu[a],c=new RegExp(a,"gi");c.test(t)&&(t=t.replace(c,l))}}return t}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),t=this.__closestGroupOrSvg();this.__groupStack.push(t),t.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const t=this.__styleStack.pop();t&&this.__applyStyleState(t)}__addTransform(e){const t=this.__closestGroupOrSvg();if(t.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:t,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");t.appendChild(i),this.__currentElement=i}let s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=e,this.__currentElement.setAttribute("transform",s)}scale(e,t){t===void 0&&(t=e),this.__addTransform(Dt("scale({x},{y})",{x:e,y:t}))}rotate(e){const t=e*180/Math.PI;this.__addTransform(Dt("rotate({angle},{cx},{cy})",{angle:t,cx:0,cy:0}))}translate(e,t){this.__addTransform(Dt("translate({x},{y})",{x:e,y:t}))}transform(e,t,s,i,o,r){this.__addTransform(Dt("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:t,c:s,d:i,e:o,f:r}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"&&e.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,t){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:t},this.__addPathCommand(Dt("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,t){this.__currentPosition={x:e,y:t},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Dt("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Dt("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,t,s,i,o,r){this.__currentPosition={x:o,y:r},this.__addPathCommand(Dt("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:t,cp2x:s,cp2y:i,x:o,y:r}))}quadraticCurveTo(e,t,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(Dt("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:t,x:s,y:i}))}normalize(e){const t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}arcTo(e,t,s,i,o){const r=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof r>"u"||typeof a>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(r===e&&a===t||e===s&&t===i||o===0){this.lineTo(e,t);return}const l=this.normalize([r-e,a-t]),c=this.normalize([s-e,i-t]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(e,t);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),f=this.normalize([l[0]+c[0],l[1]+c[1]]),d=o/Math.sin(h/2),m=e+d*f[0],v=t+d*f[1],b=[-l[1],l[0]],E=[c[1],-c[0]],I=function(B){const R=B[0];return B[1]>=0?Math.acos(R):-Math.acos(R)},N=I(b),k=I(E);this.lineTo(m+b[0]*o,v+b[1]*o),this.arc(m,v,o,N,k)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,t,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,t),this.lineTo(e+s,t),this.lineTo(e+s,t+i),this.lineTo(e,t+i),this.lineTo(e,t),this.closePath()}fillRect(e,t,s,i){const o=this.__createElement("rect",{x:e,y:t,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("fill")}strokeRect(e,t,s,i){const o=this.__createElement("rect",{x:e,y:t,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const t=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],i=s.childNodes;for(let o=i.length-1;o>=0;o--)i[o]&&s.removeChild(i[o]);this.__currentElement=s,this.__groupStack=[],t&&this.__addTransform(t)}clearRect(e,t,s,i){if(e===0&&t===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const o=this.__closestGroupOrSvg(),r=this.__createElement("rect",{x:e,y:t,width:s,height:i,fill:"#FFFFFF"},!0);o.appendChild(r)}createLinearGradient(e,t,s,i){const o=this.__createElement("linearGradient",{id:lo(this.__ids),x1:e+"px",x2:s+"px",y1:t+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new Jr(o,this)}createRadialGradient(e,t,s,i,o,r){const a=this.__createElement("radialGradient",{id:lo(this.__ids),cx:i+"px",cy:o+"px",r:r+"px",fx:e+"px",fy:t+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Jr(a,this)}__parseFont(){const t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),s={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(e,t){if(e.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),s.appendChild(t),s}return t}__applyText(e,t,s,i){const o=this.__parseFont(),r=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":o.family,"font-size":o.size,"font-style":o.style,"font-weight":o.weight,"text-decoration":o.decoration,x:t,y:s,"text-anchor":dg(this.textAlign),"dominant-baseline":fg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),r.appendChild(this.__wrapTextLink(o,a))}fillText(e,t,s){this.__applyText(e,t,s,"fill")}strokeText(e,t,s){this.__applyText(e,t,s,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,t,s,i,o,r){if(i===o)return;i=i%(2*Math.PI),o=o%(2*Math.PI),i===o&&(o=(o+2*Math.PI-.001*(r?-1:1))%(2*Math.PI));const a=e+s*Math.cos(o),l=t+s*Math.sin(o),c=e+s*Math.cos(i),u=t+s*Math.sin(i),h=r?0:1;let f=0,d=o-i;d<0&&(d+=2*Math.PI),r?f=d>Math.PI?0:1:f=d>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Dt("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const e=this.__closestGroupOrSvg(),t=this.__createElement("clipPath"),s=lo(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),t.setAttribute("id",s),t.appendChild(this.__currentElement),this.__SVGdefs.appendChild(t),e.setAttribute("clip-path",Dt("url(#{id})",{id:s})),e.appendChild(i),this.__currentElement=i}drawImage(...e){let t=e[0],s,i,o,r,a=0,l=0,c,u,h,f,d,m,v,b;if(e.length===3)s=e[1],i=e[2],c=t.width,u=t.height,o=c,r=u;else if(e.length===5)s=e[1],i=e[2],o=e[3],r=e[4],c=t.width,u=t.height;else if(e.length===9)a=e[1],l=e[2],c=e[3],u=e[4],s=e[5],i=e[6],o=e[7],r=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const E=this.__closestGroupOrSvg();this.__currentElement;const I="translate("+s+", "+i+")";if(t instanceof co){if(h=t.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)b=f.childNodes[0].getAttribute("id"),this.__ids[b]=b,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const N=d.getAttribute("transform");let k;N?k=N+" "+I:k=I,d.setAttribute("transform",k),E.appendChild(d)}}}else(t.nodeName==="CANVAS"||t.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",o),m.setAttribute("height",r),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==t.width||u!==t.height)&&(v=this.__document.createElement("canvas"),v.width=o,v.height=r,v.getContext("2d")?.drawImage(t,a,l,c,u,0,0,o,r),t=v),m.setAttribute("transform",I),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),E.appendChild(m))}createPattern(e,t){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=lo(this.__ids);let o;return s.setAttribute("id",i),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(o=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),o.setAttribute("width",""+e.width),o.setAttribute("height",""+e.height),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),s.appendChild(o),this.__SVGdefs.appendChild(s)):e instanceof co&&(s.setAttribute("width",""+e.width),s.setAttribute("height",""+e.height),s.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new Du(s,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class ea{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(e,t,s){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),this.customContext=new co({canvas:this.canvas,width:t||this.canvas.width,height:s||this.canvas.height})}set lineWidth(e){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=e,this.customContext.lineWidth=e}get lineWidth(){return this.context.lineWidth}set lineCap(e){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=e,this.customContext.lineCap=e}get lineCap(){return this.context.lineCap}set lineJoin(e){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=e,this.customContext.lineCap=e}get lineJoin(){return this.context.lineJoin}set lineDashOffset(e){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=e,this.customContext.lineDashOffset=e}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(e){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=e,this.customContext.miterLimit=e}get miterLimit(){return this.context.miterLimit}set globalAlpha(e){this.context.globalAlpha=e,this.customContext.globalAlpha=e}get globalAlpha(){return this.context.globalAlpha}set fillStyle(e){this.hasSetCustomFillStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.fillStyle=e,this.customContext.fillStyle=e):(this.context.fillStyle=e.gradient,this.customContext.fillStyle=e.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(e){this.hasSetCustomStrokeStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.strokeStyle=e,this.customContext.strokeStyle=e):(this.context.strokeStyle=e.gradient,this.customContext.strokeStyle=e.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(e){this.context.font=e,this.customContext.font=e}get font(){return this.context.font}set textBaseline(e){this.context.textBaseline=e,this.customContext.textBaseline=e}get textBaseline(){return this.context.textBaseline}set textAlign(e){this.context.textAlign=e,this.customContext.textAlign=e}get textAlign(){return this.context.textAlign}fill(e){return e?this.context.fill(e):(this.context.fill(),this.customContext.fill()),this}fillRect(e,t,s,i){return this.context.fillRect(e,t,s,i),this.customContext.fillRect(e,t,s,i),this}fillText(e,t,s,i){return this.context.fillText(e,t,s,i),this.customContext.fillText(e,t,s),this}setLineDash(e){return this.context.setLineDash(e),this.customContext.setLineDash(e),this}stroke(e){return e?this.context.stroke(e):(this.context.stroke(),this.customContext.stroke()),this}strokeText(e,t,s,i){return this.context.strokeText(e,t,s,i),this.customContext.strokeText(e,t,s),this}strokeRect(e,t,s,i){return this.context.strokeRect(e,t,s,i),this.customContext.strokeRect(e,t,s,i),this}measureText(e){return this.context.measureText(e)}clearRect(e=0,t=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(e,t,s,i),this.customContext.clearRect(e,t,s,i),this}save(){return this.context.save(),this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(e=this.currentPath2D,t=this.currentMatrix){const s=new Path2D;s.addPath(e,t),this.currentPath2D=s}isPointInStroke(...e){return e[0]instanceof Path2D?this.context.isPointInStroke(e[0],e[1],e[2]):this.context.isPointInStroke(e[0],e[1])}isPointInPath(...e){return e[0]instanceof Path2D?this.context.isPointInPath(e[0],e[1],e[2]):this.context.isPointInPath(e[0],e[1])}translate(e,t){return this.context.translate(e,t),this.customContext.translate(e,t),this.currentMatrix.translate(e,t),this.changePath2D(),this}rotate(e){return this.context.rotate(e),this.customContext.rotate(e),this.currentMatrix.rotate(e),this.changePath2D(),this}scale(e,t=e){return this.context.scale(e,t),this.customContext.scale(e,t),this.currentMatrix.scale(e,t),this.changePath2D(),this}moveTo(e,t){return this.context.moveTo(e,t),this.customContext.moveTo(e,t),this.currentPath2D.moveTo(e,t),this}lineTo(e,t){return this.context.lineTo(e,t),this.customContext.lineTo(e,t),this.currentPath2D.lineTo(e,t),this}arc(e,t,s,i,o,r){return this.context.arc(e,t,s,i,o,r),this.customContext.arc(e,t,s,i,o,r?-1:1),this.currentPath2D.arc(e,t,s,i,o,r),this}arcTo(e,t,s,i,o){return this.context.arcTo(e,t,s,i,o),this.customContext.arcTo(e,t,s,i,o),this.currentPath2D.arcTo(e,t,s,i,o),this}ellipse(e,t,s,i,o,r,a,l){return this.context.ellipse(e,t,s,i,o,r,a,l),this.currentPath2D.ellipse(e,t,s,i,o,r,a,l),this}quadraticCurveTo(e,t,s,i){return this.context.quadraticCurveTo(e,t,s,i),this.customContext.quadraticCurveTo(e,t,s,i),this.currentPath2D.quadraticCurveTo(e,t,s,i),this}bezierCurveTo(e,t,s,i,o,r){return this.context.bezierCurveTo(e,t,s,i,o,r),this.customContext.bezierCurveTo(e,t,s,i,o,r),this.currentPath2D.bezierCurveTo(e,t,s,i,o,r),this}rect(e,t,s,i){return this.context.rect(e,t,s,i),this.customContext.rect(e,t,s,i),this.currentPath2D.rect(e,t,s,i),this}createLinearGradient(e,t,s,i,o){const r=this.context.createLinearGradient(e,t,s,i),a=this.customContext.createLinearGradient(e,t,s,i);return o&&Object.keys(o).forEach(l=>{const c=parseFloat(l);r.addColorStop(c,o[c]),a.addColorStop(c,o[c])}),{gradient:r,gradientCustom:a}}createRadialGradient(e,t,s,i,o,r,a){const l=this.context.createRadialGradient(e,t,s,i,o,r),c=this.customContext.createRadialGradient(e,t,s,i,o,r);return a&&Object.keys(a).forEach(u=>{const h=parseFloat(u);l.addColorStop(h,a[h]),c.addColorStop(h,a[h])}),{gradient:l,gradientCustom:c}}drawImage(e,...t){if(t.length===0)this.context.drawImage(e,0,0);else if(t.length===2){const s=t[0],i=t[1];this.context.drawImage(e,s,i)}else if(t.length===4){const s=t[0],i=t[1],o=t[2],r=t[3];this.context.drawImage(e,s,i,o,r)}else if(t.length===8){const s=t[0],i=t[1],o=t[2],r=t[3],a=t[4],l=t[5],c=t[6],u=t[7];this.context.drawImage(e,s,i,o,r,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+t.length);return this.customContext.drawImage(e,...t),this}getImageData(e=0,t=0,s=this.canvas.width,i=this.canvas.height,o){return this.context.getImageData(e,t,s,i,o)}putImageData(e,t=0,s=0){return this.context.putImageData(e,t,s)}toRawSVG(){const e=this.customContext.getSerializedSvg(!0),t=this.customContext.getSvg();return{raw:e,element:t}}}class jt extends vt{fromX;fromY;constructor(e){super(e),this.fromX=e?.fromX||0,this.fromY=e?.fromY||0}static fromSVGPathData(e,t){if(e.length<3)throw new Error("Line 参数个数错误");if(e[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new jt({x:e[1],y:e[2],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.lineTo(this.x,this.y)}getBoundingClientRect(){const e=Hr(this.fromX,this.fromY,this.x,this.y);if(e===0){const t=Math.min(this.x,this.fromX),s=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),o=Math.max(this.y,this.fromY);return new io({x:t,y:s,width:i-t,height:o-s})}else{const t=Math.sin(e),s=Math.cos(e),i=s*this.fromX-t*this.fromY,o=s*this.x-t*this.y,r=s*this.fromY+t*this.fromX,a=s*this.y+t*this.x;return new io({x:Math.min(i,o),y:Math.min(r,a),width:Math.max(i,o)-Math.min(i,o),height:Math.max(r,a)-Math.min(r,a)})}}interpolate(e){return{x:this.fromX+e*(this.x-this.fromX),y:this.fromY+e*(this.y-this.fromY)}}}class ta extends jt{c1x;c1y;c2x;c2y;constructor(e){super(e),this.c1x=e.c1x,this.c1y=e.c1y,this.c2x=e.c2x,this.c2y=e.c2y}static fromSVGPathData(e,t){if(e.length<7)throw new Error("CubicBezier 参数个数错误");if(e[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new ta({c1x:e[1],c1y:e[2],c2x:e[3],c2y:e[4],x:e[5],y:e[6],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const e=nt.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new io({x:e.min.x,y:e.min.y,width:e.max.x-e.min.x,height:e.max.y-e.min.y})}interpolate(e){return{x:Math.pow(1-e,3)*this.fromX+3*Math.pow(1-e,2)*e*this.c1x+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2x+Math.pow(e,3)*this.x,y:Math.pow(1-e,3)*this.fromY+3*Math.pow(1-e,2)*e*this.c1y+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2y+Math.pow(e,3)*this.y}}length(e=1){return nt.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,e)}getTatLen(e){const t=this.fromX,s=this.fromY,i=this.c1x,o=this.c1y,r=this.c2x,a=this.c2y,l=this.x,c=this.y;if(e<0||nt.bezlen(t,s,i,o,r,a,l,c)<e)return 0;let u=1,h=u/2,f=u-h,d,m=.01;for(d=nt.bezlen(t,s,i,o,r,a,l,c,f);Math.abs(d-e)>m;)h/=2,f+=(d<e?1:-1)*h,d=nt.bezlen(t,s,i,o,r,a,l,c,f);return f}getPointAtSegmentLength(e){const t=this.getTatLen(e),s=this.fromX,i=this.fromY,o=this.c1x,r=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-t,f=Math.pow(h,3),d=Math.pow(h,2),m=t*t,v=m*t,b=f*s+d*3*t*o+h*3*t*t*a+v*c,E=f*i+d*3*t*r+h*3*t*t*l+v*u,I=s+2*t*(o-s)+m*(a-2*o+s),N=i+2*t*(r-i)+m*(l-2*r+i),k=o+2*t*(a-o)+m*(c-2*a+o),B=r+2*t*(l-r)+m*(u-2*l+r),R=h*s+t*o,Y=h*i+t*r,fe=h*a+t*c,be=h*l+t*u,ge=90-Math.atan2(I-k,N-B)*180/Math.PI;return{x:b,y:E,m:{x:I,y:N},n:{x:k,y:B},start:{x:R,y:Y},end:{x:fe,y:be},alpha:ge}}}const Ln=ta;class cs extends jt{cx;cy;isLineThrough;constructor(e){super(e),this.cx=e.cx,this.cy=e.cy,this.isLineThrough=typeof e.isLineThrough=="boolean"?e.isLineThrough:!0}static fromSVGPathData(e,t){if(e.length<5)throw new Error("QuadraticBezier 参数个数错误");if(e[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new cs({cx:e[1],cy:e[2],x:e[3],y:e[4],fromX:t?.x,fromY:t?.y})}toSVGPathData(){if(this.isLineThrough){const e=this.cx*2-(this.fromX+this.x)/2,t=this.cy*2-(this.fromY+this.y)/2;return["Q",e,t,this.x,this.y]}else return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(e){if(e.beginPath(),e.moveTo(this.fromX,this.fromY),this.isLineThrough){const t=this.cx*2-(this.fromX+this.x)/2,s=this.cy*2-(this.fromY+this.y)/2;e.quadraticCurveTo(t,s,this.x,this.y)}else e.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}interpolate(e){return{x:(1-e)*(1-e)*this.fromX+2*(1-e)*e*this.cx+e*e*this.x,y:(1-e)*(1-e)*this.fromY+2*(1-e)*e*this.cy+e*e*this.y}}}const pg=cs;class na extends jt{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(e){super(e),this.rx=e.rx,this.ry=e.ry,this.xAxisRotate=e?.xAxisRotate??0,this.largeArcFlag=e?.largeArcFlag??1,this.sweepFlag=e?.sweepFlag??1}static fromSVGPathData(e,t){if(e.length<8)throw new Error("Arc 参数个数错误");if(e[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new na({rx:e[1],ry:e[2],xAxisRotate:e[3],largeArcFlag:e[4],sweepFlag:e[5],x:e[6],y:e[7],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}toCanvasContext(e){e.beginPath();const[t,s,i,o,r,a,l]=this.convertSVGToCanvas(this.fromX,this.fromY,this.x,this.y,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);e.ellipse(t,s,i,o,r,a,l,!this.sweepFlag)}convertSVGToCanvas(e,t,s,i,o,r,a,l,c){const u=a/180*Math.PI,h=(e-s)/2,f=(t-i)/2,d=Math.cos(u)*h+Math.sin(u)*f,m=-Math.sin(u)*h+Math.cos(u)*f,v=d*d/(o*o)+m*m/(r*r);if(v>1){const Pe=Math.sqrt(v);throw o=Pe*o,r=Pe*r,new Error(`Radii are too small to build an arc. Correcting them to ${o}/${r}.`)}const b=Math.sqrt((o*o*r*r-o*o*m*m-r*r*d*d)/(o*o*m*m+r*r*d*d)),E=l!=c?1:-1,I=E*b*o*m/r,N=E*b*-r*d/o,k=(e+s)/2,B=(t+i)/2,R=Math.cos(u)*I-Math.sin(u)*N+k,Y=Math.sin(u)*I+Math.cos(u)*N+B,fe=(Pe,Oe,Le,Fe)=>(Pe*Fe>=Oe*Le?1:-1)*Math.acos((Pe*Le+Oe*Fe)/(Math.sqrt(Pe*Pe+Oe*Oe)*Math.sqrt(Le*Le+Fe*Fe))),be=fe(1,0,e-R,t-Y)-u,ge=fe(e-R,t-Y,s-R,i-Y);return[R,Y,o,r,u,be,be+ge]}}const sa=na;class we extends vt{startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(e){super(e),this.prevPathX=this.startPathX=this.x,this.prevPathY=this.startPathY=this.y}appendLine(e){if(e instanceof sa){xu(this.prevPathX,this.prevPathY,e.x,e.y,e.largeArcFlag,e.sweepFlag,e.rx,e.ry,e.xAxisRotate).forEach(c=>{const[u,h,f,d,m,v,b,E]=c;this.normalizedLines.push(new Ln({c1x:f,c1y:d,c2x:m,c2y:v,x:b,y:E,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=b,this.prevPathY=E});return}let t,s,i,o,r,a;e instanceof Ln?(t=e.c1x,s=e.c1y,i=e.c2x,o=e.c2y,r=e.x,a=e.y):e instanceof pg?[t,s,i,o,r,a]=Yr(this.prevPathX,this.prevPathY,e.cx,e.cy,e.x,e.y):[t,s,i,o,r,a]=ni(this.prevPathX,this.prevPathY,e.x,e.y),this.normalizedLines.push(new Ln({c1x:t,c1y:s,c2x:i,c2y:o,x:r,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=r,this.prevPathY=a}static fromShape(e,t){const s=new we(Object.assign({attrs:{...e.attrs}},t));return s.updateFromShape(e),s}updateFromShape(e){this.degree=e.degree,this.scaleOnOrigin=e.scaleOnOrigin,this.skewDegreeOnOrigin=e.skewDegreeOnOrigin,this.updateFromSVGPathD(e.toSVGPathD())}static fromSVGPathD(e="M0,0",t){const s=new we(t);return s.updateFromSVGPathD(e),s}static fromSVGPathData(e,t){const s=new we(t);return s.updateFromSVGPathData(e),s}updateFromSVGPathD(e){nt.isSVGPath(e)&&this.updateFromSVGPathData(nt.parseSVGPath(e))}updateFromSVGPathData(e){this.normalizedLines=[];const t=nt.normalizeSVGPath(nt.absolutizeSVGPath(e));for(let s=0,i=t.length;s<i;s++){const o=t[s];if(o[0]=="M"){this.prevPathX=this.startPathX=o[1],this.prevPathY=this.startPathY=o[2];continue}this.appendLine(new Ln({c1x:o[1],c1y:o[2],c2x:o[3],c2y:o[4],x:o[5],y:o[6]}))}this.prevDegree=0,this.prevScaleOnOrigin=1,this.prevSkewDegreeOnOrigin=0,this.updateTransform()}toSVGPathData(e=!1){let t=[];t.push(["M",this.startPathX,this.startPathY]);for(let s=0,i=this.normalizedLines.length;s<i;s++)t.push(this.normalizedLines[s].toSVGPathData());return e&&(t=nt.relativeSVGPath(t)),t}toCanvasContext(e){e.beginPath(),e.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(t=>{const[s,...i]=t.toSVGPathData();e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}updateTransform(){if((this.x!=this.prevX||this.y!=this.prevY)&&this.translate(this.x-this.prevX,this.y-this.prevY),this.degree!=this.prevDegree){const e=this.getBoundingClientRect();this.rotate(this.degree-this.prevDegree,e.x+e.width/2,e.y+e.height/2)}if(this.scaleOnOrigin!=this.prevScaleOnOrigin){const e=this.getBoundingClientRect(),t=this.scaleOnOrigin/this.prevScaleOnOrigin;this.scale(t,t,e.x+e.width/2,e.y+e.height/2)}}transform(e){return{x:this.startPathX,y:this.startPathY}=e.multiplyPoint(this.startPathX,this.startPathY),{x:this.prevPathX,y:this.prevPathY}=e.multiplyPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(t=>{({x:t.fromX,y:t.fromY}=e.multiplyPoint(t.fromX,t.fromY)),{x:t.c1x,y:t.c1y}=e.multiplyPoint(t.c1x,t.c1y),{x:t.c2x,y:t.c2y}=e.multiplyPoint(t.c2x,t.c2y),{x:t.x,y:t.y}=e.multiplyPoint(t.x,t.y)}),this}translate(e,t){const s=new St().translate(e,t);return this.transform(s),this.prevX=this.x,this.prevY=this.y,this}rotate(e,t=0,s=0){const i=new St().rotate(e,t,s);return this.transform(i),this.prevDegree=this.degree,this}scale(e,t=e,s=0,i=0){const o=new St().scale(e,t,s,i);return this.transform(o),this.prevScaleOnOrigin=this.scaleOnOrigin,this}skew(e,t=0){const s=new St().skew(e,t);return this.transform(s),this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin,this}trim(){const e=this.getBoundingClientRect();return this.translate(-e.x,-e.y),this}getBoundingClientRect(){let e=0,t=0,s=[],i=[];e=this.startPathX,t=this.startPathY,s.push(e),i.push(t),this.normalizedLines.forEach(c=>{const u=nt.curveDim(e,t,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);s=s.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),e=c.x,t=c.y});const o=Math.min.apply(0,s),r=Math.min.apply(0,i),a=Math.max.apply(0,s),l=Math.max.apply(0,i);return new io({x:o,y:r,width:a-o,height:l-r})}getTotalLength(){return this.normalizedLines.reduce((e,t)=>e+=t.length(),0)}interpolate(e){if(this.normalizedLines.length===0)return{x:this.startPathX,y:this.startPathX};if(this.normalizedLines.length===1)return this.normalizedLines[0].interpolate(e);{let t=e*this.normalizedLines.length,s=this.normalizedLines[0];if(t--,t>1)for(let i=1,o=this.normalizedLines.length;i<o&&(s=this.normalizedLines[i],t>1);i++)t-=1;return s.interpolate(t)}}getPointAtLength(e){let t=0;const s=this.normalizedLines.length;for(let i=0;i<s;i++){const o=this.normalizedLines[i],r=o.length();if(t+r>=e)return o.getPointAtSegmentLength(e-t);t+=r}return this.normalizedLines[s-1].getPointAtSegmentLength(1)}getSubpathsAtLength(e,t,s){let i=null,o=0;const r=new we;r.prevPathX=r.startPathX=e.x,r.prevPathY=r.startPathY=e.y;for(let a=0,l=e.normalizedLines.length;a<l;a++){const c=e.normalizedLines[a],u=c.length();if(o+u>t&&!i){const h=c.getPointAtSegmentLength(t-o);if(r.appendLine(new Ln({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),s)return r;i=r,r.prevPathX=h.x,r.prevPathY=h.y,r.appendLine(new Ln({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),o+=u;continue}o+=u,r.appendLine(c)}return r}getSubpath(e,t){if(this.getTotalLength()-t<1e-6)return this.getSubpathsAtLength(this,e);{const s=this.getSubpathsAtLength(this,t,1);return e?this.getSubpathsAtLength(s,e):s}}trailPath(e,t=0){const s=this.getTotalLength();return e.updateFromSVGPathD(this.getSubpath(0,t*s).toSVGPathD()),this.getPointAtLength(t*s)}isPointInPath(e,t,s){if(s instanceof ea)return s.isPointInPath(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=s.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(e,t,s){if(s instanceof ea)return s.isPointInStroke(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=s.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}strokeDashToTween(e){const t=+this.getTotalLength().toFixed(0);this.setAttr({strokeDasharray:`${t} ${t}`,strokeDashoffset:`${t}`});const s=e?.onUpdate;return Be.toTween({offset:t},{offset:0},Object.assign(e||{},{onUpdate:(i,o)=>{this.setAttr("strokeDashoffset",""+Mt(i.offset,2)),s?.(i,o)}}))}get polymorphPoints(){return[this.startPathX,this.startPathY].concat(this.normalizedLines.reduce((e,t)=>e.concat([t.c1x,t.c1y,t.c2x,t.c2y,t.x,t.y]),[]))}static fromPolymorphPoints(e){const t=new we({x:e[0],y:e[1]});for(let s=2;s+5<e.length;s+=6)t.appendLine(new Ln({c1x:e[s],c1y:e[s+1],c2x:e[s+2],c2y:e[s+3],x:e[s+4],y:e[s+5]}));return t}perimeterPoints(){const e=this.polymorphPoints,t=e.length;let s=e[t-2],i=e[t-1],o=0;for(let r=0;r<t;r+=6)o+=Br(e[r],e[r+1],s,i),s=e[r],i=e[r+1];return Math.floor(o)}fillPathD(e){const t=this.polymorphPoints,s=t.length;let i=e-s;const o=Math.ceil(e/s),r=[];r.push(["M",t[0],t[1]]);let a=2;for(;a+5<=s-1;){const l=t[a++],c=t[a++],u=t[a++],h=t[a++],f=t[a++],d=t[a++];r.push(["C",l,c,u,h,f,d]);let m=0;for(;m<o&&i>0;)r.push(["C",f,d,f,d,f,d]),i-=6,m++}return we.fromSVGPathData(r)}static mixPoints(e,t,s){const i=e.length,o=new Array(i);for(let r=0;r<i;r++)o[r]=Mt(e[r]+(t[r]-e[r])*s,6);return o}static getPathInterpolator(e,t){return s=>Math.abs(s-0)<Number.EPSILON?e.toSVGPathD():Math.abs(s-1)<Number.EPSILON?t.toSVGPathD():we.fromPolymorphPoints(this.mixPoints(e.polymorphPoints,t.polymorphPoints,s)).toSVGPathD()}static polymorph(e){if(!e.length)throw new Error("paths 为空!");const t=e.length-1,s=new Array(t);for(let o=0;o<t;o++){const r=Math.max(e[o].polymorphPoints.length,e[o+1].polymorphPoints.length);s[o]=this.getPathInterpolator(e[o].fillPathD(r),e[o+1].fillPathD(r))}const i=we.fromSVGPathD(s[0](0));return o=>{const r=Mt(t*o,6),a=Math.min(Math.floor(r),t-1),l=Mt(r-a,6);return i.updateFromSVGPathD(s[a](l)),i.setAttr("fill",Eu(e[a].getAttr("fill","none"),e[a+1].getAttr("fill","none"),l)),i.setAttr("stroke",Eu(e[a].getAttr("stroke","none"),e[a+1].getAttr("stroke","none"),l)),i}}static generateRosetta(e,t,s,i,o){if(o==0)throw new Error("no dividing by zero, please");const r=new we({x:e,y:t}),a=360/o;for(let l=0;l<o;l+=1){const c=a*l*Math.PI/180,u=e+2*s*Math.cos(c),h=t+2*s*Math.sin(c);r.appendLine(new sa({x:u,y:h,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),r.appendLine(new sa({x:e,y:t,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return r}}class Sn extends Qm{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(e){if(super(e),!e?.svg)return;const t=new ug(e.svg).parse();for(let s=0,i=t.length;s<i;s++){const o=t[s];if(o.type=="viewbox"&&o.width&&o.height){if(this.svgWidth=parseFloat(o.width),this.svgHeight=parseFloat(o.height),e.width){const u=this.svgWidth/this.svgHeight;this.width=e.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(o.type!="path"||!as.isSVGPath(o.path))continue;const r={};for(const u in o)u==="type"||u==="path"||u==="transform"||(r[u]=o[u]);const a=as.absolutizeSVGPath(as.parseSVGPath(o.path));let l=[],c=[];for(let u=0,h=a.length;u<h;u++){const f=a[u];c.push(f),f[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=we.fromSVGPathData(u,e),f=yu(o.transform??"");h.transform(f),h.attrs={...h.attrs,...r,...e.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.shapes.push(h)})}}static fromShape(e,t){const s=new Sn;if(e instanceof vt){const i=we.fromShape(e,t);i&&s.shapes.push(i)}else e.forEach(i=>{const o=we.fromShape(i,t);o&&s.shapes.push(o)});return s}addShape(e,t){(Array.isArray(e)?e:[e]).forEach(s=>{if(s instanceof we)this.shapes.push(s);else{const i=we.fromShape(s,t);i&&this.shapes.push(i)}})}strokeDashToTween(e){const t=e?.type||"parallel",s=this.shapes.map(i=>i.strokeDashToTween({...e}).tween);switch(t){case"sequence":return s.forEach((i,o)=>{o>0&&s[o-1].chain(i)}),{startAuto:Be.toTweenGroup(s[0],e)};case"parallel":default:return{startAuto:Be.toTweenGroup(s,e)}}}sortPathD(){this.shapes=this.shapes.map(e=>({path:e,perimeter:e.perimeterPoints()})).sort((e,t)=>t.perimeter-e.perimeter).map(e=>e.path)}fillPathDGroup(e){const t=e.shapes.length,s=this.shapes.length;if(t<s)return e.fillPathDGroup(this);for(let i=s;i<t;i++){const o=e.shapes[i].polymorphPoints,r=o[0],a=o[1],l=new we({x:r,y:a,attrs:{...e.shapes[i].attrs}});for(let c=2;c+5<o.length;c+=6)l.appendLine(new Ln({c1x:r,c1y:a,c2x:r,c2y:a,x:r,y:a}));this.shapes.push(l)}}static polymorph(e){if(!e.length)throw new Error("groups 为空!");let t=-1,s=0;e.forEach((a,l)=>{a.sortPathD(),s<a.shapes.length&&(s=a.shapes.length,t=l)}),e.forEach(a=>a.fillPathDGroup(e[t]));const i=[];e.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const o=[];i.forEach(a=>o.push(we.polymorph(a)));const r=new Sn;return o.forEach(a=>{r.shapes.push(a(0))}),a=>(o.forEach(l=>{l(a)}),r)}}class mg extends vt{rx;ry;constructor(e){super(e),this.rx=e?.rx||0,this.ry=e?.ry||0}getBoundingClientRect(){return new Ft({x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2})}toSVGPathData(){return[["M",this.x,this.y],["m",0,-this.ry],["a",this.rx,this.ry,0,1,1,0,2*this.ry],["a",this.rx,this.ry,0,1,1,0,-2*this.ry],["z"]]}toCanvasContext(e){e.beginPath(),e.ellipse(this.x,this.y,this.rx,this.ry,0,0,2*Math.PI,!0),e.closePath()}}class Ss extends vt{points;constructor(e=[]){if(!e.length)throw new Error("points can't be null");super(e[0]),this.points=e}toSVGPathData(){const e=this.points.length;if(e<3)throw new Error("points length must >= 3");const t=[];t.push(["M",this.points[0].x,this.points[0].y]);for(let s=0;s<=e-1;s++)t.push(["L",this.points[s].x,this.points[s].y]);return t.push(["L",this.points[0].x,this.points[0].y]),t}toCanvasContext(e){const t=this.points.length;if(t<3)throw new Error("points length must >= 3");e.beginPath(),e.moveTo(0,0);for(let s=0;s<=t-1;s++)e.lineTo(this.points[s].x-this.points[0].x,this.points[s].y-this.points[0].y);e.lineTo(0,0)}get length(){return this.points.length}addPoint(e){this.points.push(e)}getPoint(e){return this.points[e]}isContainPoint(e,t){const s=this.length;let i=!1;const o=2e-10;for(let r=0,a=s-1;r<s;a=r,r++){const l=this.points[r].x,c=this.points[r].y,u=this.points[a].x,h=this.points[a].y;if(l===e&&c===t||u===e&&h===t||t===c&&t===h)return!0;if(t>=c&&t<h||t<c&&t>=h){const f=(u-l)/(h-c),d=l+f*(t-c);if(d===e||Math.abs(d-e)<o)return!0;d>e&&(i=!i)}}return i}[Symbol.iterator](){let e=0;return{next:()=>({value:e>=this.length-1?this.points[++e]:void 0,done:e>=this.length})}}static generatePoints(e,t,s,i){const o=[];for(let r=0;r<i;r++){const a=r/i*2*Math.PI,{x:l,y:c}=os(a,s);o.push(new wu({x:e+l,y:t+c}))}return new Ss(o)}}class ia extends vt{text;width=0;height=0;bitmap=null;constructor(e){super(e),this.text=e.text,this.attrs={fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666","alignment-baseline":"middle",textAnchor:"start",...this.attrs};const t=ys(this.attrs.fontSize,10).number,s=new OffscreenCanvas(t,t),i=s.getContext("2d");if(i){i.font=""+this.attrs.fontSize+" "+this.attrs.fontFamily,this.bitmap=s.transferToImageBitmap();const o=i.measureText(this.text);let r=Math.ceil(o.actualBoundingBoxRight+o.actualBoundingBoxLeft),a=Math.ceil(o.actualBoundingBoxAscent+o.actualBoundingBoxDescent);const l=2;r+=l+l,a+=l+l,this.width=r,this.height=a}}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(e){e.fillText(this.text,0,0)}}class gg extends ws{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;p1=new yt;p1Offset=10;p2=new yt;p2Offset=40;p3=new yt;p3Offset=10;p4=new yt;p4Offset=10;direction=1;constructor(e){super(e),this.radius=e.radius,this.expandRaidus=e.expandRaidus??20,this.startDegree=e.startDegree,this.endDegree=e.endDegree,this.text=e.text||"",this.defaultShowText=typeof e?.defaultShowText=="boolean"?e.defaultShowText:!1;const t=Object.assign({...this.attrs},{fill:"none"});this.line12=new jt({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:{...t},isShow:this.defaultShowText}),this.line23=new jt({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:{...t},isShow:this.defaultShowText}),this.textShape=new ia({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{...t,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.sector=new vg({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.attrs},{strokeWidth:"0"})}),this.shapes.push(this.sector),this.text&&(this.shapes.push(this.line12),this.shapes.push(this.line23),this.shapes.push(this.textShape)),this.update()}frameUpdate(){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sector.isMouseIn,this.line23.isShow=this.sector.isMouseIn,this.textShape.isShow=this.sector.isMouseIn),this.update()}update(){const e=this.startDegree+(this.endDegree-this.startDegree)/2,{x:t,y:s}=os(It(e),this.sector.radius+this.p1Offset);this.p1.x=this.x+t,this.p1.y=this.y+s;const{x:i,y:o}=os(It(e),this.sector.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+i,this.p2.y=this.y+o,this.line12.fromX=this.p1.x,this.line12.fromY=this.p1.y,this.line12.x=this.p2.x,this.line12.y=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.fromX=this.p2.x,this.line23.fromY=this.p2.y,this.line23.x=this.p3.x,this.line23.y=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end")}}class vg extends vt{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;dur;status;constructor(e){super(e),this.radius=0,this.realRadius=e.radius,this.expandRaidus=e.expandRaidus??20,this.startDegree=e.startDegree,this.endDegree=e.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.dur=1e3/120,this.status=0}frameUpdate(){this.status==0&&this.radius<this.realRadius?(this.expand(this.realRadius),this.radius>=this.realRadius&&(this.status=1)):this.isMouseIn?this.expand(this.realRadius+this.expandRaidus):this.shrink(this.realRadius)}expand(e){this.vr+=this.ar,this.radius+=this.vr*this.dur,this.radius>e&&(this.radius=e,this.vr*=-this.bounce)}shrink(e){this.vr-=this.ar,this.radius+=this.vr*this.dur,this.radius<e&&(this.radius=e,this.vr*=-this.bounce)}toSVGPathData(){const{x:e,y:t}=os(It(this.startDegree),this.radius),{x:s,y:i}=os(It(this.endDegree),this.radius);return[["M",this.x,this.y],["l",e,t],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+s,this.y+i],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(0,0),e.arc(0,0,this.radius,It(this.startDegree),It(this.endDegree),!1),e.closePath()}containPoint(e,t){const s=Br(this.x,this.y,e,t),i=Pt(Hr(this.x,this.y,e,t));return s<this.radius&&i>this.startDegree&&i<this.endDegree}}class uo extends vt{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",-50,-25],["l",50,0],["l",0,-25],["l",50,50],["l",-50,50],["l",0,-25],["l",-50,0],["l",0,-50],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath()}}class oa extends vt{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",4,24],["l",4,-8],["l",6,-6],["l",1,-10],["l",-6,-10],["l",-7,10],["l",-4,0],["l",-7,-10],["l",-6,10],["l",1,10],["l",6,6],["l",4,8],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(4,24),e.lineTo(8,16),e.lineTo(14,10),e.lineTo(15,0),e.lineTo(9,-10),e.lineTo(2,0),e.lineTo(-2,0),e.lineTo(-9,-10),e.lineTo(-15,0),e.lineTo(-14,10),e.lineTo(-8,16),e.lineTo(-4,24),e.closePath()}}class yg extends we{constructor(e){super(e),this.rx=e?.rx??10,this.ry=e?.ry??10,this.updateFromSVGPathData([["M",this.x,this.y],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]])}}class bg extends we{constructor(e){super(e),this.rx=e?.rx??50,this.ry=e?.ry??50,this.updateFromSVGPathData([["M",this.x,this.y+this.ry*.3],["C",this.x,this.y,this.x-this.rx/2,this.y,this.x-this.rx/2,this.y+this.ry*.3],["C",this.x-this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x,this.y+(this.ry+this.ry*.3)/1.4,this.x,this.y+this.ry],["C",this.x,this.y+(this.ry+this.ry*.3)/1.8,this.x+this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x+this.rx/2,this.y+this.ry*.3],["C",this.x+this.rx/2,this.y,this.x,this.y,this.x,this.y+this.ry*.3],["z"]])}}class _g extends we{constructor(e){super(e),this.r=e?.r??20;let t="M"+this.x+","+(this.y-this.r);for(let s=0;s<6;s+=1){const i=270+s*144,o=this.x+this.r*Math.cos(i*Math.PI/180),r=this.y+this.r*Math.sin(i*Math.PI/180);t+="L"+o+","+r}this.updateFromSVGPathD(t)}}class xg extends we{constructor(e){super(e),this.updateFromSVGPathData([["M",this.x,this.y],["C",this.x+15,this.y,this.x+15,this.y-40,this.x+5,this.y+-30],["L",this.x,this.y],["C",this.x-15,this.y,this.x-15,this.y-40,this.x-5,this.y-30],["L",this.x,this.y],["a",15,15,0,1,1,0,2*15],["a",15,15,0,1,1,0,-2*15]])}}class wg extends we{constructor(e){super(e),this.updateFromSVGPathD(`M${this.x} ${this.y}m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z`)}}class Cg extends Sn{constructor(e){super(e),this.addShape(we.fromSVGPathData([["M",this.x,this.y],["L",this.x,this.y-140-Math.random()*20]],e)),this.addShape(we.fromSVGPathData([["M",this.x,this.y-30-Math.random()*30],["L",this.x+Math.random()*80-40,this.y-100-Math.random()*40]],e)),this.addShape(we.fromSVGPathData([["M",this.x,this.y-60-Math.random()*40],["L",this.x+Math.random()*60-30,this.y-110-Math.random()*20]],e))}}let ra=class{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e){this.app=e,this.ctx=new ea(this.app.container,this.app.width,this.app.height),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";let t=0,s=this.shapes.length;for(;t<s;t++){const i=this.shapes[t];this.ctx.save(),this.transformCtxBaseOnShape(i);const o=this.ctx.isPointInPath(i.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),i.isMouseIn=o,o&&(this.currentMouseInShapeID=i.id,i.enableDrag)){this.currentEnableDragMouseInShapeID=i.id,this.shapes.filter(r=>r.id!==i.id).forEach(r=>{r instanceof vt&&(r.isMouseIn=!1)});break}}t>=s&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShapeID?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(e){!(e instanceof jt)&&!(e instanceof we)&&this.ctx.translate(e.x,e.y),this.ctx.rotate(It(e.degree)),this.ctx.scale(e.scaleOnOrigin,e.scaleOnOrigin)}draw(e=[]){const t=[];Cp(e)?t.push(...e):t.push(e),this.shapes=[],t.forEach(s=>{s instanceof ws?(s.frameUpdate(),this.shapes.push(...s.shapes)):this.shapes.push(s)});for(let s of this.shapes)if(s.isShow){if(this.ctx.save(),Z.attrsToCanvas(this.ctx,s.attrs),s.followMouse&&(!Ks(s.x,this.app.mousePoint.x,5)||!Ks(s.y,this.app.mousePoint.y,5))&&(s.angleTo(this.app.mousePoint),s.followTo(this.app.mousePoint)),s.targetToAfterDragFree&&(this.isMouseDown||s.nextFrameEaseTo(new yt({x:s.targetToAfterDragFree.targetX,y:s.targetToAfterDragFree.targetY}),{easing:s.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==s.id){const{dx:i,dy:o}=s.centerDiff;s.x=this.app.mousePoint.x,s.y=this.app.mousePoint.y,s.x-=i,s.y-=o,s.isDragging=!0,this.shapes.filter(r=>r.id!=s.id).forEach(r=>r.isDragging=!1)}else this.shapes.forEach(i=>i.isDragging=!1);s.frameUpdate(),this.transformCtxBaseOnShape(s),s.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),s.path2d=this.ctx.currentPath2D,this.ctx.restore()}return this}click(e){const t=()=>{this.shapes.forEach(s=>{(s instanceof we&&s.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx)||this.currentMouseInShapeID==s.id)&&e(s)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}drawMouseMoveLine(e="line",t){switch(e){case"brush":const s=t?.brushSize??10,i=t?.brushDensity??50,o=t?.brushColor??"#000000",r=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=r.data,l=xs(o);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*s,f=this.app.mousePoint.x+Math.cos(u)*h|0,d=this.app.mousePoint.y+Math.sin(u)*h|0,m=(f+d*r.width)*4;a[m]=l.r,a[m+1]=l.g,a[m+2]=l.b,a[m+3]=255}this.ctx.putImageData(r)}}});case"line":default:return this.app.captureMove({start:c=>{this.ctx.beginPath(),this.app.setMousePoint(c),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}};class Sg{map;constructor(e,t=120.619585,s=31.299379,i=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(t,s),i)}}const Eg=oe({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("span",{class:"icon",style:V(["color: "+t.color])},[me(Te(uu),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),kg=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
56
+ `,le=(n,e)=>{const t=n.__vccOpts||n;for(const[s,i]of e)t[s]=i;return t},Nu=le(Eg,[["styles",[kg]],["__scopeId","data-v-b2d9b612"]]),Tg=oe({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("span",{class:"icon",style:V(["color: "+t.color])},[me(Te(uu),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),tb="",an=le(Tg,[["__scopeId","data-v-8789b4ce"]]),Pg={class:"loading-11",ref:"loading11"},Og={class:"container container-1"},Ig={class:"container container-2"},Dg={class:"container container-3"},Ng=oe({__name:"Loading11",props:{color:{default:ee.colorPrimary},width:{default:"0.8em"}},setup(n){const e=n;return(t,s)=>(A(),z("div",Pg,[C("div",{class:"loading-11-inner",style:V({width:e.width,height:e.width})},[C("div",Og,[C("div",{class:"dot dot-1",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-2",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-3",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-4",style:V({backgroundColor:e.color})},null,4)]),C("div",Ig,[C("div",{class:"dot dot-1",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-2",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-3",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-4",style:V({backgroundColor:e.color})},null,4)]),C("div",Dg,[C("div",{class:"dot dot-1",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-2",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-3",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-4",style:V({backgroundColor:e.color})},null,4)])],4)],512))}}),nb="",ho=le(Ng,[["__scopeId","data-v-f95fac77"]]),$g={key:0,class:"loading"},us=le(oe({customOptions:{Loading11:ho},inheritAttrs:!0,__name:"Button.ce",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(s.borderColor),a=D(s.bgColor),l=D(s.fontColor),c=D(s.borderColor),u=D(s.bgColor);function h(k){switch(k){case"outline":r.value=s.borderColor??ee.colorPrimary,a.value=s.bgColor??ee.colorGrayFF,l.value=s.fontColor??ee.colorPrimary,c.value=r.value,u.value=a.value;break;case"fullfilled":default:r.value=s.borderColor??ee.colorPrimary,a.value=s.bgColor??ee.colorPrimary,l.value=s.fontColor??ee.colorGrayFF,c.value=r.value,u.value=a.value;break}}Se(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const f=D(s.isDisabled?"0.6":"1"),d=D(s.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{s.isDisabled||(m=!0,r.value=Cn(c.value,10),a.value=Cn(u.value,10))},b=()=>{s.isDisabled||(m=!1,r.value=c.value,a.value=u.value)},E=D(!1),N=Nc(()=>{s.isDisabled||E.value||(r.value=Cn(c.value,-10),a.value=Cn(u.value,-10),setTimeout(()=>{m?v():b()},150),i("ceClick"),i("click"),s.asyncClick&&(E.value=!0,s.asyncClick().then(()=>{E.value=!1}).catch(()=>{E.value=!1})))},500);return e({el:o}),(k,B)=>(A(),z("div",{ref_key:"el",ref:o,class:"button",style:V([`opacity: ${f.value}`,`border: 1px solid ${r.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${d.value}`,"user-select: none"]),onMouseover:v,onMouseleave:b,onClick:B[0]||(B[0]=(...R)=>Te(N)&&Te(N)(...R))},[C("label",{class:"label truncate",style:V({padding:"0 "+k.padding,cursor:d.value})},[E.value?(A(),z("div",$g,[me(ho,{color:l.value},null,8,["color"])])):Ae("",!0),Ue(k.$slots,"default",{},()=>[k.icon&&k.iconPosition==="left"?(A(),ht(an,{key:0,icon:k.icon,color:l.value,style:V({marginRight:Te(ee).gap4,cursor:d.value})},null,8,["icon","color","style"])):Ae("",!0),C("span",{style:V({cursor:d.value})},_e(k.label),5),k.icon&&k.iconPosition==="right"?(A(),ht(an,{key:1,icon:k.icon,color:l.value,style:V({marginLeft:Te(ee).gap4,cursor:d.value})},null,8,["icon","color","style"])):Ae("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-2205d3fb]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-2205d3fb]{display:inline-flex;justify-content:center;align-items:center}.loading[data-v-2205d3fb]{margin-right:6px}
57
+ `]],["__scopeId","data-v-2205d3fb"]]),Ag={key:0,class:"loading"},Mg=oe({customOptions:{Loading11:ho},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(s.borderColor),a=D(s.bgColor),l=D(s.fontColor),c=D(s.borderColor),u=D(s.bgColor);function h(k){switch(k){case"outline":r.value=s.borderColor??ee.colorPrimary,a.value=s.bgColor??ee.colorGrayFF,l.value=s.fontColor??ee.colorPrimary,c.value=r.value,u.value=a.value;break;case"fullfilled":default:r.value=s.borderColor??ee.colorPrimary,a.value=s.bgColor??ee.colorPrimary,l.value=s.fontColor??ee.colorGrayFF,c.value=r.value,u.value=a.value;break}}Se(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const f=D(s.isDisabled?"0.6":"1"),d=D(s.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{s.isDisabled||(m=!0,r.value=Cn(c.value,10),a.value=Cn(u.value,10))},b=()=>{s.isDisabled||(m=!1,r.value=c.value,a.value=u.value)},E=D(!1),N=Nc(()=>{s.isDisabled||E.value||(r.value=Cn(c.value,-10),a.value=Cn(u.value,-10),setTimeout(()=>{m?v():b()},150),i("ceClick"),i("click"),s.asyncClick&&(E.value=!0,s.asyncClick().then(()=>{E.value=!1}).catch(()=>{E.value=!1})))},500);return e({el:o}),(k,B)=>(A(),z("div",{ref_key:"el",ref:o,class:"button",style:V([`opacity: ${f.value}`,`border: 1px solid ${r.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${d.value}`,"user-select: none"]),onMouseover:v,onMouseleave:b,onClick:B[0]||(B[0]=(...R)=>Te(N)&&Te(N)(...R))},[C("label",{class:"label truncate",style:V({padding:"0 "+k.padding,cursor:d.value})},[E.value?(A(),z("div",Ag,[me(ho,{color:l.value},null,8,["color"])])):Ae("",!0),Ue(k.$slots,"default",{},()=>[k.icon&&k.iconPosition==="left"?(A(),ht(an,{key:0,icon:k.icon,color:l.value,style:V({marginRight:Te(ee).gap4,cursor:d.value})},null,8,["icon","color","style"])):Ae("",!0),C("span",{style:V({cursor:d.value})},_e(k.label),5),k.icon&&k.iconPosition==="right"?(A(),ht(an,{key:1,icon:k.icon,color:l.value,style:V({marginLeft:Te(ee).gap4,cursor:d.value})},null,8,["icon","color","style"])):Ae("",!0)],!0)],4)],36))}}),ob="",Qe=le(Mg,[["__scopeId","data-v-ea027c50"]]),Rg=["onClick","value"],Vg={class:"option-inner"},Lg=le(oe({customOptions:{Icon:an,Button:Qe},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;$n(()=>{Z.setStyleSheet(`
58
58
  :root {
59
- --select-option-bg-color: ${oe.colorGrayFF};
60
- --select-option-bg-color-hover: ${oe.colorGrayF5};
59
+ --select-option-bg-color: ${ee.colorGrayFF};
60
+ --select-option-bg-color-hover: ${ee.colorGrayF5};
61
61
  }
62
- `)});const i=M(!1),o=M(t.initIndex);Ie(o,function(){s("change",o.value,t.options[o.value])});function r(){i.value=!i.value}function a(l){o.value=l,i.value=!1}return(l,c)=>($(),G("div",{class:"select",style:Z(["font-size:"+l.fontSize])},[w("div",{onClick:r},[Xe(l.$slots,"button",{selectedIndex:o.value},()=>[Ee(Je,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[o.value],style:{width:"100%"}},null,8,["label"])],!0)]),Sn(w("div",{class:"options",style:Z({border:"1px solid "+$e(oe).colorGrayCC})},[($(!0),G(ze,null,yt(l.options,(u,h)=>($(),G("div",{onClick:d=>a(h),class:"option",key:h,value:h,style:Z({borderTop:(h==0?"0":"1px")+" solid "+$e(oe).colorGrayCC})},[w("div",hg,[Xe(l.$slots,"default",{item:u,index:h},()=>[w("span",null,Oe(u),1),h==o.value?($(),lt(Jt,{key:0,icon:"mingcute:check-fill",class:"icon"})):Ge("",!0)],!0)])],12,ug))),128))],4),[[fn,i.value]])],4))}}),[["styles",[`.select[data-v-2b1ef62b]{display:inline-block;position:relative}.options[data-v-2b1ef62b]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box;background-color:#fff}.option[data-v-2b1ef62b]{cursor:pointer}.option-inner[data-v-2b1ef62b]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-2b1ef62b]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-2b1ef62b]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
63
- `]],["__scopeId","data-v-2b1ef62b"]]),fg=["width","height"],pg=["fill"],mg=ce({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:oe.colorGrayCC}},setup(n){const e=n;return(t,s)=>($(),G("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:e.color},null,8,pg)],8,fg))}}),x1="",ro=ue(mg,[["__scopeId","data-v-b1f2ae20"]]),gg={class:"button-default"},vg={class:"truncate"},yg=["onClick","value"],_g=ce({customOptions:{SVGDown:ro},__name:"SelectAbsolute.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:oe.colorGrayFF},hoverColor:{default:oe.colorGrayF5},selectedColor:{default:oe.colorPrimary},fontColor:{default:oe.colorGray33},duration:{default:300}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;kn(()=>{Q.setStyleSheet(`
62
+ `)});const i=D(!1),o=D(t.initIndex);Se(o,function(){s("change",o.value,t.options[o.value])});function r(){i.value=!i.value}function a(l){o.value=l,i.value=!1}return(l,c)=>(A(),z("div",{class:"select",style:V(["font-size:"+l.fontSize])},[C("div",{onClick:r},[Ue(l.$slots,"button",{selectedIndex:o.value},()=>[me(Qe,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[o.value],style:{width:"100%"}},null,8,["label"])],!0)]),vn(C("div",{class:"options",style:V({border:"1px solid "+Te(ee).colorGrayCC})},[(A(!0),z(Me,null,Ct(l.options,(u,h)=>(A(),z("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:V({borderTop:(h==0?"0":"1px")+" solid "+Te(ee).colorGrayCC})},[C("div",Vg,[Ue(l.$slots,"default",{item:u,index:h},()=>[C("span",null,_e(u),1),h==o.value?(A(),ht(an,{key:0,icon:"mingcute:check-fill",class:"icon"})):Ae("",!0)],!0)])],12,Rg))),128))],4),[[rn,i.value]])],4))}}),[["styles",[`.select[data-v-2b1ef62b]{display:inline-block;position:relative}.options[data-v-2b1ef62b]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box;background-color:#fff}.option[data-v-2b1ef62b]{cursor:pointer}.option-inner[data-v-2b1ef62b]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-2b1ef62b]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-2b1ef62b]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
63
+ `]],["__scopeId","data-v-2b1ef62b"]]),Fg=["width","height"],zg=["fill"],Gg=oe({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:ee.colorGrayCC}},setup(n){const e=n;return(t,s)=>(A(),z("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[C("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:e.color},null,8,zg)],8,Fg))}}),lb="",fo=le(Gg,[["__scopeId","data-v-b1f2ae20"]]),jg={class:"button-default"},Bg={class:"truncate"},Hg=["onClick","value"],Yg=oe({customOptions:{SVGDown:fo},__name:"SelectAbsolute.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:ee.colorGrayFF},hoverColor:{default:ee.colorGrayF5},selectedColor:{default:ee.colorPrimary},fontColor:{default:ee.colorGray33},duration:{default:300}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;$n(()=>{Z.setStyleSheet(`
64
64
  :root {
65
65
  --select-option-bg-color: ${t.bgColor};
66
66
  --select-option-bg-color-hover: ${t.hoverColor};
67
67
  }
68
- `)});const i=M(!1),o=M(t.initIndex);Ie(o,function(){s("change",o.value,t.options[o.value])});function r(){i.value=!i.value}function a(c){o.value=c,i.value=!1}const l=M("rotate(-180deg)");return fl(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>($(),G("div",{class:"select-absolute",style:Z({fontSize:t.fontSize,backgroundColor:t.bgColor})},[w("div",{class:"select-absolute-button",onClick:r},[Xe(c.$slots,"button",{selectedIndex:o.value},()=>[w("div",gg,[w("div",vg,Oe(c.options[o.value]),1),Ee(ro,{class:"icon-down",width:"20px",style:Z({transition:`transform ${t.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),w("div",{class:"options",style:Z({maxHeight:i.value?"200px":0,transition:`all ${t.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[($(!0),G(ze,null,yt(c.options,(h,d)=>($(),G("div",{onClick:f=>a(d),class:"option",key:d,value:d},[Xe(c.$slots,"default",{item:h,index:d},()=>[w("div",{class:"option-default",style:Z({color:o.value==d?t.selectedColor:t.fontColor})},Oe(h),5)],!0)],8,yg))),128))],4)],4))}}),bu=ue(_g,[["styles",[`.select-absolute[data-v-fd6e278c]{display:block;position:relative;width:100%}.select-absolute-button[data-v-fd6e278c]{overflow:hidden}.button-default[data-v-fd6e278c]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 15px;height:44px;line-height:44px}.icon-down[data-v-fd6e278c]{flex:0 0 auto}.truncate[data-v-fd6e278c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.options[data-v-fd6e278c]{position:absolute;bottom:0;left:0;transform:translateY(100%);z-index:99;width:100%;overflow-y:scroll;box-sizing:border-box}.options[data-v-fd6e278c]::-webkit-scrollbar{-webkit-appearance:none}.options[data-v-fd6e278c]::-webkit-scrollbar:vertical{width:2px}.options[data-v-fd6e278c]::-webkit-scrollbar-track{background-color:var(--select-option-bg-color)}.options[data-v-fd6e278c]::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.option[data-v-fd6e278c]{cursor:pointer}.option-default[data-v-fd6e278c]{padding:14px 15px;line-height:1;background-color:var(--select-option-bg-color)}.option-default[data-v-fd6e278c]:hover{background-color:var(--select-option-bg-color-hover)}
69
- `]],["__scopeId","data-v-fd6e278c"]]),bg=ce({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:oe.colorPrimary},colorBgOn:{default:oe.colorGrayEF},colorBgOff:{default:oe.colorGrayF5}},emits:["change"],setup(n,{emit:e}){const t=n,s=Gs(t.width),i=Gs(t.height),o=Gs(t.padding),r=i.number-o.number*2+i.suffix,a=t.padding,l=s.number-Gs(a).number-Gs(r).number+s.suffix,c=e,u=M(t.init);Ie(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(d,f)=>($(),G("div",{class:"switch",onClick:h,style:Z(["width: "+t.width,"height: "+t.height,"background-color: "+(u.value?t.colorBgOn:t.colorBgOff)])},[w("span",{class:"round",style:Z(["width: "+r,"height: "+r,"background-color: "+(u.value?t.colorPrimary:$e(gn)(t.colorPrimary,30)),"transform: translate("+(u.value?l:$e(a))+", 0)"])},null,4)],4))}}),xg=ue(bg,[["styles",[`.switch[data-v-3e04e7d9]{position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-3e04e7d9]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
70
- `]],["__scopeId","data-v-3e04e7d9"]]),wg=["onClick"],Cg=["stroke","fill"],Eg=["stroke","fill"],Sg=["stroke"],kg=ce({customOptions:{},__name:"RadioGroup.ce",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:oe.colorGrayFF},colorBgSelected:{default:oe.colorPrimary},colorBgDisabled:{default:oe.colorGrayCC},colorBorder:{default:oe.colorGrayCC},colorBorderSelected:{default:oe.colorPrimary},colorBorderDisabled:{default:oe.colorGrayCC},colorPath:{default:oe.colorGrayFF},colorPathDisabled:{default:oe.colorGrayFF},fontSize:{default:oe.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;let i=M(t.initIndex??0);Ie(i,function(){s("change",t.options[i.value])});const o=function(r){t.disabledIndexs&&t.disabledIndexs.findIndex(a=>a==r)>=0||(i.value=r)};return(r,a)=>($(!0),G(ze,null,yt(r.options,(l,c)=>($(),G("div",{class:xt(["radio",r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>o(c),style:Z(["margin-left:"+(c>0?t.itemPadding:0)])},[Xe(r.$slots,"default",{label:l,index:c},()=>[($(),G("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Z(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Ge("",!0):($(),G("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBorderDisabled:$e(i)==c?r.colorBorderSelected:r.colorBorder,fill:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBgDisabled:$e(i)==c?r.colorBgSelected:r.colorBg},null,8,Cg)),t.isRounded?($(),G("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBorderDisabled:$e(i)==c?r.colorBorderSelected:r.colorBorder,fill:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBgDisabled:$e(i)==c?r.colorBgSelected:r.colorBg},null,8,Eg)):Ge("",!0),$e(i)==c?($(),G("path",{key:2,d:"m7 13l3 3 7-7",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorPathDisabled:r.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Sg)):Ge("",!0)],4)),w("span",{style:Z(["font-size:"+t.fontSize])},Oe(l),5)],!0)],14,wg))),128))}}),Tg=ue(kg,[["styles",[`.radio[data-v-c165166d]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.radio.disabled[data-v-c165166d]{cursor:not-allowed}.icon[data-v-c165166d]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
71
- `]],["__scopeId","data-v-c165166d"]]),Pg=["onClick"],Og=["stroke","fill"],Ig=["stroke","fill"],Ng=["stroke"],Dg=ce({customOptions:{},__name:"CheckboxGroup.ce",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:oe.colorGrayFF},colorBgSelected:{default:oe.colorPrimary},colorBgDisabled:{default:oe.colorGrayCC},colorBorder:{default:oe.colorGrayCC},colorBorderSelected:{default:oe.colorPrimary},colorBorderDisabled:{default:oe.colorGrayCC},colorPath:{default:oe.colorGrayFF},colorPathDisabled:{default:oe.colorGrayFF},fontSize:{default:oe.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;let i=gt(t.initIndexs??[]);Ie(i,function(){s("change",i.map(r=>t.options[r]))});const o=function(r){if(t.disabledIndexs&&t.disabledIndexs.findIndex(l=>l==r)>=0)return;const a=i.findIndex(l=>l===r);a>=0?i.splice(a,1):i.push(r)};return(r,a)=>($(!0),G(ze,null,yt(r.options,(l,c)=>($(),G("div",{class:xt(["checkbox",r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>o(c),style:Z(["margin-left:"+(c>0?t.itemPadding:0)])},[Xe(r.$slots,"default",{label:l,index:c},()=>[($(),G("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Z(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Ge("",!0):($(),G("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBorderDisabled:$e(i).findIndex(u=>u===c)>=0?r.colorBorderSelected:r.colorBorder,fill:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBgDisabled:$e(i).findIndex(u=>u===c)>=0?r.colorBgSelected:r.colorBg},null,8,Og)),t.isRounded?($(),G("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBorderDisabled:$e(i).findIndex(u=>u===c)>=0?r.colorBorderSelected:r.colorBorder,fill:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBgDisabled:$e(i).findIndex(u=>u===c)>=0?r.colorBgSelected:r.colorBg},null,8,Ig)):Ge("",!0),$e(i).findIndex(u=>u===c)>=0?($(),G("path",{key:2,d:"m7 13l3 3 7-7",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorPathDisabled:r.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ng)):Ge("",!0)],4)),w("span",{style:Z(["font-size:"+t.fontSize])},Oe(l),5)],!0)],14,Pg))),128))}}),Mg=ue(Dg,[["styles",[`.checkbox[data-v-1584b0b1]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.checkbox.disabled[data-v-1584b0b1]{cursor:not-allowed}.icon[data-v-1584b0b1]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
72
- `]],["__scopeId","data-v-1584b0b1"]]),$g=["width","height"],Ag=["fill"],Rg=["fill"],Vg=["fill"],Lg=ce({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:oe.colorRed}},setup(n){const e=n;return(t,s)=>($(),G("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12ZM19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5C15.866 5 19 8.13401 19 12Z",fill:e.color},null,8,Ag),w("path",{d:"M12.5332 15.2001C12.5332 15.4946 12.2944 15.7334 11.9999 15.7334C11.7053 15.7334 11.4665 15.4946 11.4665 15.2001L11.4665 10.9334C11.4665 10.6388 11.7053 10.4001 11.9999 10.4001C12.2944 10.4001 12.5332 10.6388 12.5332 10.9334L12.5332 15.2001Z",fill:e.color},null,8,Rg),w("path",{d:"M12.5332 8.80006C12.5332 9.09462 12.2944 9.3334 11.9999 9.3334C11.7053 9.3334 11.4665 9.09462 11.4665 8.80006C11.4665 8.50551 11.7053 8.26673 11.9999 8.26673C12.2944 8.26673 12.5332 8.50551 12.5332 8.80006Z",fill:e.color},null,8,Vg)],8,$g))}}),k1="",xu=ue(Lg,[["__scopeId","data-v-41294f60"]]),Fg={class:"wrap"},zg=["type","required"],Gg={class:"ellipsis"},jg={key:1,style:{}},Bg=ce({customOptions:{SVGPrompt:xu},inheritAttrs:!0,__name:"Input.ce",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:oe.colorPrimary},errorColor:{default:oe.colorRed},bgColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","ceFocus","blur","ceBlur","input","ceInput"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=s.placeholder.split(""),r=s.duration/o.length,a=M(!1),l=M(""),c=M("");function u(){a.value=!0,i("focus"),i("ceFocus")}function h(){a.value=!1,i("blur"),i("ceBlur"),f()}function d(m){c.value=m.target.value,f()}function f(){if(c.value&&s.validator){const m=s.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return qe(()=>{}),e({}),(m,y)=>($(),G("div",Fg,[w("input",{type:s.type,required:s.required,autocomplete:"off",style:Z({height:s.height,lineHeight:s.height,borderRadius:s.borderRadius,color:s.fontColor,borderColor:l.value?s.errorColor:a.value?s.focusColor:c.value?s.bgColor:"transparent",transition:s.duration+"ms"}),class:xt([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:d,onChange:d},null,46,zg),w("div",{class:"placeholder",style:Z({lineHeight:a.value||c.value?1.3:s.height,color:s.placeholderColor,transition:s.placeholderJump?"":s.duration+"ms",transform:s.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?($(),G("div",{key:0,style:Z({color:s.errorColor,transform:s.placeholderJump?"translateY(-100%)":""})},[Ee(xu,{class:"icon"}),w("div",Gg,Oe(l.value),1)],4)):Ge("",!0),!l.value&&!s.placeholderJump?($(),G("div",jg,Oe(s.placeholder),1)):Ge("",!0),!l.value&&s.placeholderJump?($(!0),G(ze,{key:2},yt($e(o),(_,C)=>($(),G("span",{key:C,style:Z({transition:s.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${r*C}ms`,transform:a.value||c.value?`translateX(${100*C}%) translateY(-100%)`:`translateX(${100*C}%)`}),class:"single"},Oe(_),5))),128)):Ge("",!0)],4),w("div",{class:"bg",style:Z({transition:s.duration+"ms",backgroundColor:a.value||c.value?"transparent":s.bgColor,height:a.value||c.value?s.height:"2px",borderRadius:s.borderRadius})},null,4)]))}}),Hg=ue(Bg,[["styles",[`.wrap[data-v-133a3bfb]{position:relative;box-sizing:border-box;font-size:1em}.input[data-v-133a3bfb]{display:block;box-sizing:border-box;position:relative;width:100%;background:transparent;outline:none;box-shadow:none;border:1px solid transparent;padding:.6em;z-index:10}.bg[data-v-133a3bfb]{position:absolute;left:0;bottom:0;width:100%;pointer-events:none;z-index:9}.placeholder[data-v-133a3bfb]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.focus~.placeholder[data-v-133a3bfb]{font-size:.75em}.placeholder>div[data-v-133a3bfb]{width:100%;display:flex;justify-content:flex-start;align-items:center}.icon[data-v-133a3bfb]{flex:0 0 auto}.ellipsis[data-v-133a3bfb]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.placeholder>span.single[data-v-133a3bfb]{position:absolute;left:0;top:0}
73
- `]],["__scopeId","data-v-133a3bfb"]]),Yg=["width","height"],Wg=["fill"],Xg=ce({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[w("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,Wg)],8,Yg))}}),P1="",wu=ue(Xg,[["__scopeId","data-v-4747d4a7"]]),Ug=ce({customOptions:{SVGDelete:wu},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:oe.colorGrayFF},deleteColor:{default:oe.colorRed},fontColor:{default:oe.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(!1),r=()=>{i("delete"),o.value=!1};let a;const l=M();return Ie(l,()=>{l.value&&(a=new tt(l.value),a.on("panLeft",()=>{o.value=!0}),a.on("panRight",()=>{o.value=!1}),a.on("tapOutSide",()=>{o.value=!1}))}),qe(()=>{a?.destroy()}),e({}),(c,u)=>($(),G("div",{class:"parent",ref_key:"item",ref:l,style:Z({backgroundColor:s.bgColor,borderRadius:s.borderRadius})},[w("div",{class:"content",style:Z({transition:"all ease-in "+s.transtionDuration,transform:o.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[Xe(c.$slots,"default",{},void 0,!0)],4),w("div",{class:"delete",onClick:r,style:Z({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:o.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[Ee(wu,{color:s.fontColor},null,8,["color"])],4)],4))}}),Cu=ue(Ug,[["styles",[`.parent[data-v-4ea80232]{position:relative;overflow:hidden;width:100%}.content[data-v-4ea80232]{width:100%;height:100%}.delete[data-v-4ea80232]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
74
- `]],["__scopeId","data-v-4ea80232"]]),qg=n=>{const e={};for(const t of n.attributes)e[t.name]=t.value;return e},Kg={class:"overlay-content",style:Z(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},Zg=ce({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:uu(oe.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(n,{expose:e,emit:t}){const s=n,i=M();function o(r){s.isGlobal?r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&r&&(i.value.parentElement.style.overflow="hidden")}return Ie(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,a)=>s.visible?($(),G("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:Z([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[w("div",Kg,[Xe(r.$slots,"default",{},void 0,!0)])],4)):Ge("",!0)}}),I1="",Dn=ue(Zg,[["__scopeId","data-v-e23bcc53"]]),Qg=(n=>(Yn("data-v-fb37ce89"),n=n(),Wn(),n))(()=>w("div",null,null,-1)),Jg=ce({customOptions:{Overlay:Dn},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M();let r;const a=gt({}),l=gt({});function c(){switch(Zn(a),Zn(l),s.directionFrom){case"absolute":r="",a.display="block",l.width="100%",l.height="100%";break;case"top":r="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":r="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":r="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":r="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:r="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}Ie(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new nt,h=(C=!0)=>{!r||!o.value||(C?(u.fromDOM(o.value),u.toCSS(r,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(r,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{y()}}))};Ie(o,()=>{o.value&&h(!0)},{});const d=M(!1);function f(){d.value=!0}function m(){s.directionFrom=="absolute"?y():h(!1)}function y(){d.value=!1,i("close")}function _(C){s.directionFrom=="absolute"?o.value&&o.value.children[0]&&!o.value.children[0].contains(C.target)&&s.closeWhenClickOverlay&&y():o.value&&!o.value.contains(C.target)&&s.closeWhenClickOverlay&&m()}return e({open:f,close:m}),(C,k)=>($(),lt(Dn,{visible:d.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Qe(()=>[w("div",{class:"pop-parent",style:Z([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:_},[w("div",{ref_key:"pop",ref:o,class:"pop",style:Z([{position:"absolute","z-index":"3000"},l])},[Xe(C.$slots,"default",{},()=>[Qg],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),D1="",At=ue(Jg,[["__scopeId","data-v-fb37ce89"]]),e0={class:"dialog-parent"},t0={key:0,class:"title"},n0={key:0,class:"title-inner truncate"},s0={class:"custom-content"},i0={class:"custom-content-default"},o0={key:1,class:"btns"},r0=ce({customOptions:{Overlay:Dn,Pop:At,Icon:Jt,Button:Je},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(""),a=M(""),l=M(!1),c=M(""),u=M("");let h,d,f;function m(k){r.value=k?.title||"",a.value=k?.content||"",l.value=typeof k?.showClose=="boolean"?k?.showClose:!1,c.value=k?.cancelText||"",u.value=k?.confirmText||"",o.value.open(),h=k?.onClose,d=k?.onCancel,f=k?.onConfirm,i("open")}function y(){o.value.close(),h?.(),i("close")}function _(){y(),d?.(),i("cancel")}function C(){y(),f?.(),i("confirm")}return e({open:m,close:y}),(k,P)=>($(),lt(At,{ref_key:"popRef",ref:o,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Qe(()=>[w("div",e0,[w("div",{class:"dialog",style:Z({minWidth:s.minWidth,maxWidth:s.maxWidth})},[r.value||l.value?($(),G("div",t0,[r.value?($(),G("div",n0,Oe(r.value),1)):Ge("",!0),l.value?($(),G("div",{key:1,class:"close",onClick:y},[Ee(Jt,{icon:"ic:baseline-close",color:$e(oe).colorGrayCC},null,8,["color"])])):Ge("",!0)])):Ge("",!0),w("div",s0,[Xe(k.$slots,"default",{},()=>[w("div",i0,Oe(a.value),1)],!0)]),c.value||u.value?($(),G("div",o0,[c.value?($(),lt(Je,{key:0,onClick:_,class:"btn",bgColor:$e(oe).colorGrayE6,borderColor:$e(oe).colorGrayE6,fontColor:$e(oe).colorGray33,borderRadius:"0"},{default:Qe(()=>[ut(Oe(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ge("",!0),u.value?($(),lt(Je,{key:1,onClick:C,class:"btn",borderRadius:"0"},{default:Qe(()=>[ut(Oe(u.value),1)]),_:1})):Ge("",!0)])):Ge("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),M1="",ao=ue(r0,[["__scopeId","data-v-6bd255c9"]]),a0={class:"loading-8"},l0={viewBox:"25 25 50 50"},c0=ce({__name:"Loading8",props:{color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("div",a0,[($(),G("svg",l0,[w("circle",{cx:"50",cy:"50",r:"20",style:Z(["stroke: "+e.color])},null,4)]))]))}}),$1="",Eu=ue(c0,[["__scopeId","data-v-e5e3cf4c"]]),Qr=n=>(Yn("data-v-85491020"),n=n(),Wn(),n),u0=[Qr(()=>w("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),Qr(()=>w("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),Qr(()=>w("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],h0=ce({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("svg",{style:Z(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},u0,4))}}),L1="",Jr=ue(h0,[["__scopeId","data-v-85491020"]]);function gs(n){let e=!1;return n=="123"&&(e=!0),{isValidated:e,msg:n+"不对!"}}function F1(n){return n}document.getElementById("teleport")||document.documentElement;function ea(n,e){{const t=document.querySelector("yz-dialog-toast#globalDialogToast");t&&"_instance"in t&&t._instance.exposed.open(n,e)}}function d0(n){{const e=document.querySelector("yz-dialog-loading#globalDialogLoading");return e&&"_instance"in e&&e._instance.exposed.open(n),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function f0(n){{const e=document.querySelector("yz-dialog#globalDialog");return e&&"_instance"in e&&e._instance.exposed.open(n),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function vs(n,e="bottom"){let t;n instanceof HTMLElement?t=Ue(At,{directionFrom:e},()=>Ue("div",{...qg(n),innerHTML:n.innerHTML})):t=Ue(At,{directionFrom:e},()=>n),Fi(t,document.getElementById("teleport")||document.documentElement),t.component?.exposed?.open();const s=()=>{t.component?.exposed?.close()};return s.vnode=t,s}function Su(n){return vs(n,"bottom")}function ku(n){return vs(n,"top")}function Tu(n){return vs(n,"left")}function Pu(n){return vs(n,"right")}function Ou(n){return vs(n,"center")}function lo(n){return vs(n,"absolute")}const p0=()=>Su(Ue("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},Ue("yz-input",{placeholder:"请输入姓名",validator:gs}))),m0=()=>ku(Ue("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},Ue("yz-input",{placeholder:"请输入姓名",validator:gs}))),g0=()=>Tu(Ue("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},Ue("yz-input",{placeholder:"请输入姓名",validator:gs}))),v0=()=>Pu(Ue("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},Ue("yz-input",{placeholder:"请输入姓名",validator:gs}))),y0=()=>Ou(Ue("div",{style:"width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},Ue("yz-input",{placeholder:"请输入姓名",validator:gs}))),_0=()=>lo(Ue("div",{style:"position:absolute;left: 100px;top: 100px;width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},Ue("yz-input",{placeholder:"请输入姓名",validator:gs})));let co;function Iu(n){{const e=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return e&&"_instance"in e&&(co&&e.removeEventListener("plates",co),co=t=>{"detail"in t&&n?.onPlates?.(t.detail[0])},e.addEventListener("plates",co),e.initPlates=n?.initPlates,e.completePlateLength=n?.completePlateLength,e._instance.exposed.open()),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}const b0={class:"content"},x0=ue(ce({customOptions:{},inheritAttrs:!0,__name:"MouseOver.ce",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(!1),a=gt({});let l=gt({}),c=gt({}),u=1,h;Ie(o,()=>{o.value&&(f(),h=new tt(o.value,!1),h.on("resize",(m,y)=>{u=Math.max(m,y)/Math.min(m,y);const _=Math.min(m,y);l.width=_+"px",l.height=_+"px",f()}),h.on("mouseOver",()=>{i("mouseOver"),r.value=!0,f()}),h.on("mouseOut",()=>{i("mouseOut"),r.value=!1,f()}),h.start())});function d(){Q.copyToClipboard(Q.getInnerText(o.value)).then(()=>{ea("复制成功")}).catch(m=>{ea(m.toString())})}function f(){switch(s.coverDirection){case"bottomLeft":l.top="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"bottomRight":l.top="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topLeft":l.bottom="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, 50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topRight":l.bottom="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, 50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"center":l.top="50%",l.left="50%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"slideUp":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center bottom":"center top"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideDown":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center top":"center bottom"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideRight":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center left":"center right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideLeft":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center right":"center left"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"animationJelly":l.transform="scale(0)",a.animation=`${r.value?"jelly 0.5s":"none"}`;break;case"floatUp":l.transform="scale(0)",a.transform=`${r.value?"translateY(-4px)":"translateY(0)"}`,a.willChange="box-shadow, transform",a.transition=`transform ${s.timeGap}ms ease,box-shadow ${s.timeGap}ms ease `;break;case"underlineRight":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"bottom left":"bottom right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineRightInit":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"bottom right":"bottom left"}`,l.transform=`${r.value?"scaleX(0)":"scaleX(1)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineCenter":l.bottom="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"lineThrough":l.top="50%",l.left="0",l.right="0",l.width="100%",l.height="3px",l.transformOrigin=`${r.value?"center right":"center left"}`,l.transform=`${r.value?"scaleX(0)":"scaleX(1)"} translateY(-50%)`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineRight":l.top="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"bottom left":"bottom right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineCenter":l.top="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"pillars1":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${r.value?"center bottom":"center top"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.right="0";break;case"pillars2":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${r.value?"center bottom":"center top"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.transformOrigin=`${r.value?"center top":"center bottom"}`,c.right="0";break;case"pillars3":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin="center",l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.right="0";break;case"bars1":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"center left":"center right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.bottom="0";break;case"bars2":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"center right":"center left"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},l.transformOrigin=`${r.value?"center left":"center right"}`,c.bottom="0";break;case"bars3":l.left="50%",l.right="0",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=` translateX(-50%) ${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.bottom="0";break}}return qe(()=>{h?.destroy()}),e({}),(m,y)=>($(),G("div",{ref_key:"wrap",ref:o,class:"wrap",style:Z({...a}),onClick:d},[w("div",{class:"before",style:Z({backgroundColor:s.coverColor,...$e(l)})},null,4),w("div",b0,[Xe(m.$slots,"default",{},void 0,!0)]),w("div",{class:"after",style:Z({backgroundColor:s.coverColor,...$e(c)})},null,4)],4))}}),[["styles",[`@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}
75
- `,`.wrap[data-v-d95eec19]{box-sizing:border-box;position:relative;display:inline-block;cursor:pointer;overflow:hidden}.before[data-v-d95eec19],.after[data-v-d95eec19]{position:absolute;z-index:0}.content[data-v-d95eec19]{position:relative;z-index:1}
76
- `]],["__scopeId","data-v-d95eec19"]]),w0=ue(ce({customOptions:{SVGDown:ro},inheritAttrs:!0,__name:"Accordion.ce",props:{initOpen:{type:Boolean,default:!1},height:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(Number.MAX_SAFE_INTEGER+"px"),r=M(),a=M(!0);let l;Ie(r,()=>{r.value&&(o.value=r.value.getBoundingClientRect().height+"px",l=new tt(r.value),l.on("resize",(h,d)=>{i("resize",h,d)}),a.value=s.initOpen)});function c(){a.value=!a.value,a.value?i("open"):i("close")}const u=M("rotate(0deg)");return fl(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),qe(()=>{l?.destroy()}),e({}),(h,d)=>($(),G("div",{class:"wrap",style:Z({background:s.bgColor,color:s.fontColor,borderRadius:s.borderRadius})},[w("div",{class:"title",onClick:c,style:Z({height:s.height,lineHeight:s.height,margin:`0 ${s.padding}`,transitionDelay:`${a.value?0:s.duration}ms`,borderBottom:`${a.value?1:0}px solid ${s.borderColor}`})},[Xe(h.$slots,"title",{},()=>[ut("title")],!0),Ee(ro,{class:"arrow",style:Z({transition:`transform ${s.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),w("div",{ref_key:"content",ref:r,class:"content",style:Z({margin:`0 ${s.padding}`,transition:`max-height ${s.duration}ms ease-in-out`,maxHeight:a.value?o.value:"0"})},[Xe(h.$slots,"content",{},void 0,!0)],4)],4))}}),[["styles",[`.wrap[data-v-68d65f8a]{font-size:1em;position:relative;overflow:hidden}.title[data-v-68d65f8a]{display:flex;justify-content:space-between;align-items:center;user-select:none;cursor:pointer}.content[data-v-68d65f8a]{word-break:break-all;overflow:hidden}
77
- `]],["__scopeId","data-v-68d65f8a"]]),C0=ce({__name:"ProgressBar",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(0);function r(){o.value=0}function a(l){const c=o.value,u=Math.min(Math.max(0,l),100);nt.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{o.value=h.width},onComplete:()=>{i("complete",o.value)}}).startAuto()}return e({start:r,goto:a}),(l,c)=>($(),G("div",{class:"wrap",style:Z({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[w("div",{class:"bar",style:Z({width:o.value+"%",backgroundColor:s.progressColor})},Oe(s.showText?o.value+"%":""),5)],4))}}),Y1="",uo=ue(C0,[["__scopeId","data-v-30de81f6"]]),E0=["width","height"],S0=["src","type"],k0={class:"bar-wrap"},Nu=ue(ce({customOptions:{ProgressBar:uo},inheritAttrs:!0,__name:"Video.ce",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(n,{expose:e,emit:t}){const s=n;function i(){nt.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{r.value?.start()},onUpdate:l=>{r.value?.goto(l.x)}}).startAuto(()=>this.currentTime)}const o=M(),r=M();Ie(o,()=>{o.value&&(o.value.addEventListener("play",i),s.autoplay&&zr.tryAutoPlayOrAutoPlayAfterClick(o.value))}),qe(()=>{o.value?.removeEventListener(i)});function a(){o.value?.play()}return e({play:a}),(l,c)=>($(),G("div",{class:"wrap",style:Z({width:s.width,height:s.height}),onClick:a},[w("video",{ref_key:"video",ref:o,width:s.width,height:s.height,preload:"metadata"},[w("source",{src:s.src,type:s.type},null,8,S0)],8,E0),w("div",k0,[Ee(uo,{ref_key:"bar",ref:r,width:s.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),[["styles",[`.wrap[data-v-0e47aeaa]{position:relative;overflow:hidden;background-color:#f5f5f5}.bar-wrap[data-v-0e47aeaa]{position:absolute;bottom:0;left:0}
78
- `]],["__scopeId","data-v-0e47aeaa"]]),T0=ce({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image.ce",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(),a=M(0),l=M(0),c=M(0),u=M(0),h=M(1),d=M(0),f=M(0);du(s.src).then(U=>{c.value=U.width,u.value=U.height,h.value=U.aspectRatio,k()});let m;Ie(o,()=>{o.value&&(m=new tt(o.value,!1),m.on("resize",(U,F)=>{a.value=U,l.value=F,k()}),m.start())});let y=!1;const _={x:0,y:0,width:0,height:0};let C;function k(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(d.value=a.value,f.value=d.value/h.value,f.value>l.value&&(f.value=l.value,d.value=f.value*h.value)):(f.value=l.value,d.value=f.value*h.value,d.value>a.value&&(d.value=a.value,f.value=d.value/h.value));break;case"aspectFill":h.value>=1?(f.value=l.value,d.value=f.value*h.value):(d.value=a.value,f.value=d.value/h.value);break;case"widthFix":d.value=a.value,f.value=d.value/h.value;break;case"heightFix":f.value=l.value,d.value=f.value*h.value;break;case"scaleToFill":default:d.value=a.value,f.value=l.value;break}yi(()=>{const U=r.value.getBoundingClientRect();i("settled",U.x,U.y,d.value,f.value),y&&C(_.x,_.y,_.width,_.height)})}}function P(U,F,H,ve){const be=(ye,Ne,Le,me,_e,re,V,J,Y)=>{if(!_e||!re||!V||!J){const de=De.vnode.el.getBoundingClientRect(),j=de.width,ee=de.height;let S=0,A=0;h.value>=1?(S=j,A=S/h.value,A>ee&&(A=ee,S=A*h.value)):(A=ee,S=A*h.value,S>j.value&&(S=j.value,A=S/h.value)),_e=(j-S)/2,re=(ee-A)/2,V=S,J=A}const Pe=200;nt.toTween({left:ye,top:Ne,width:Le,height:me},{left:_e,top:re,width:V,height:J},{duration:Pe,onStart(){},onUpdate(de){Ce.el.style.left=de.left+"px",Ce.el.style.top=de.top+"px",Ce.el.style.width=de.width+"px",Ce.el.style.height=de.height+"px"},onComplete(de){_.x=de.left,_.y=de.top,_.width=de.width,_.height=de.height,Y?.()}}).startAuto()},Ce=Ue("div",{style:`
68
+ `)});const i=D(!1),o=D(t.initIndex);Se(o,function(){s("change",o.value,t.options[o.value])});function r(){i.value=!i.value}function a(c){o.value=c,i.value=!1}const l=D("rotate(-180deg)");return Sl(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(A(),z("div",{class:"select-absolute",style:V({fontSize:t.fontSize,backgroundColor:t.bgColor})},[C("div",{class:"select-absolute-button",onClick:r},[Ue(c.$slots,"button",{selectedIndex:o.value},()=>[C("div",jg,[C("div",Bg,_e(c.options[o.value]),1),me(fo,{class:"icon-down",width:"20px",style:V({transition:`transform ${t.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),C("div",{class:"options",style:V({maxHeight:i.value?"200px":0,transition:`all ${t.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(A(!0),z(Me,null,Ct(c.options,(h,f)=>(A(),z("div",{onClick:d=>a(f),class:"option",key:f,value:f},[Ue(c.$slots,"default",{item:h,index:f},()=>[C("div",{class:"option-default",style:V({color:o.value==f?t.selectedColor:t.fontColor})},_e(h),5)],!0)],8,Hg))),128))],4)],4))}}),$u=le(Yg,[["styles",[`.select-absolute[data-v-fd6e278c]{display:block;position:relative;width:100%}.select-absolute-button[data-v-fd6e278c]{overflow:hidden}.button-default[data-v-fd6e278c]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 15px;height:44px;line-height:44px}.icon-down[data-v-fd6e278c]{flex:0 0 auto}.truncate[data-v-fd6e278c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.options[data-v-fd6e278c]{position:absolute;bottom:0;left:0;transform:translateY(100%);z-index:99;width:100%;overflow-y:scroll;box-sizing:border-box}.options[data-v-fd6e278c]::-webkit-scrollbar{-webkit-appearance:none}.options[data-v-fd6e278c]::-webkit-scrollbar:vertical{width:2px}.options[data-v-fd6e278c]::-webkit-scrollbar-track{background-color:var(--select-option-bg-color)}.options[data-v-fd6e278c]::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.option[data-v-fd6e278c]{cursor:pointer}.option-default[data-v-fd6e278c]{padding:14px 15px;line-height:1;background-color:var(--select-option-bg-color)}.option-default[data-v-fd6e278c]:hover{background-color:var(--select-option-bg-color-hover)}
69
+ `]],["__scopeId","data-v-fd6e278c"]]),Wg=oe({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:ee.colorPrimary},colorBgOn:{default:ee.colorGrayEF},colorBgOff:{default:ee.colorGrayF5}},emits:["change"],setup(n,{emit:e}){const t=n,s=ys(t.width),i=ys(t.height),o=ys(t.padding),r=i.number-o.number*2+i.suffix,a=t.padding,l=s.number-ys(a).number-ys(r).number+s.suffix,c=e,u=D(t.init);Se(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,d)=>(A(),z("div",{class:"switch",onClick:h,style:V(["width: "+t.width,"height: "+t.height,"background-color: "+(u.value?t.colorBgOn:t.colorBgOff)])},[C("span",{class:"round",style:V(["width: "+r,"height: "+r,"background-color: "+(u.value?t.colorPrimary:Te(Cn)(t.colorPrimary,30)),"transform: translate("+(u.value?l:Te(a))+", 0)"])},null,4)],4))}}),Ug=le(Wg,[["styles",[`.switch[data-v-3e04e7d9]{position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-3e04e7d9]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
70
+ `]],["__scopeId","data-v-3e04e7d9"]]),Xg=["onClick"],qg=["stroke","fill"],Kg=["stroke","fill"],Zg=["stroke"],Qg=oe({customOptions:{},__name:"RadioGroup.ce",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:ee.colorGrayFF},colorBgSelected:{default:ee.colorPrimary},colorBgDisabled:{default:ee.colorGrayCC},colorBorder:{default:ee.colorGrayCC},colorBorderSelected:{default:ee.colorPrimary},colorBorderDisabled:{default:ee.colorGrayCC},colorPath:{default:ee.colorGrayFF},colorPathDisabled:{default:ee.colorGrayFF},fontSize:{default:ee.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;let i=D(t.initIndex??0);Se(i,function(){s("change",t.options[i.value])});const o=function(r){t.disabledIndexs&&t.disabledIndexs.findIndex(a=>a==r)>=0||(i.value=r)};return(r,a)=>(A(!0),z(Me,null,Ct(r.options,(l,c)=>(A(),z("div",{class:kt(["radio",r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>o(c),style:V(["margin-left:"+(c>0?t.itemPadding:0)])},[Ue(r.$slots,"default",{label:l,index:c},()=>[(A(),z("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:V(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Ae("",!0):(A(),z("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBorderDisabled:Te(i)==c?r.colorBorderSelected:r.colorBorder,fill:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBgDisabled:Te(i)==c?r.colorBgSelected:r.colorBg},null,8,qg)),t.isRounded?(A(),z("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBorderDisabled:Te(i)==c?r.colorBorderSelected:r.colorBorder,fill:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBgDisabled:Te(i)==c?r.colorBgSelected:r.colorBg},null,8,Kg)):Ae("",!0),Te(i)==c?(A(),z("path",{key:2,d:"m7 13l3 3 7-7",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorPathDisabled:r.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Zg)):Ae("",!0)],4)),C("span",{style:V(["font-size:"+t.fontSize])},_e(l),5)],!0)],14,Xg))),128))}}),Jg=le(Qg,[["styles",[`.radio[data-v-c165166d]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.radio.disabled[data-v-c165166d]{cursor:not-allowed}.icon[data-v-c165166d]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
71
+ `]],["__scopeId","data-v-c165166d"]]),e0=["onClick"],t0=["stroke","fill"],n0=["stroke","fill"],s0=["stroke"],i0=oe({customOptions:{},__name:"CheckboxGroup.ce",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:ee.colorGrayFF},colorBgSelected:{default:ee.colorPrimary},colorBgDisabled:{default:ee.colorGrayCC},colorBorder:{default:ee.colorGrayCC},colorBorderSelected:{default:ee.colorPrimary},colorBorderDisabled:{default:ee.colorGrayCC},colorPath:{default:ee.colorGrayFF},colorPathDisabled:{default:ee.colorGrayFF},fontSize:{default:ee.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;let i=xt(t.initIndexs??[]);Se(i,function(){s("change",i.map(r=>t.options[r]))});const o=function(r){if(t.disabledIndexs&&t.disabledIndexs.findIndex(l=>l==r)>=0)return;const a=i.findIndex(l=>l===r);a>=0?i.splice(a,1):i.push(r)};return(r,a)=>(A(!0),z(Me,null,Ct(r.options,(l,c)=>(A(),z("div",{class:kt(["checkbox",r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>o(c),style:V(["margin-left:"+(c>0?t.itemPadding:0)])},[Ue(r.$slots,"default",{label:l,index:c},()=>[(A(),z("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:V(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Ae("",!0):(A(),z("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBorderDisabled:Te(i).findIndex(u=>u===c)>=0?r.colorBorderSelected:r.colorBorder,fill:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBgDisabled:Te(i).findIndex(u=>u===c)>=0?r.colorBgSelected:r.colorBg},null,8,t0)),t.isRounded?(A(),z("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBorderDisabled:Te(i).findIndex(u=>u===c)>=0?r.colorBorderSelected:r.colorBorder,fill:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorBgDisabled:Te(i).findIndex(u=>u===c)>=0?r.colorBgSelected:r.colorBg},null,8,n0)):Ae("",!0),Te(i).findIndex(u=>u===c)>=0?(A(),z("path",{key:2,d:"m7 13l3 3 7-7",stroke:r.disabledIndexs&&r.disabledIndexs.findIndex(u=>u===c)>=0?r.colorPathDisabled:r.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,s0)):Ae("",!0)],4)),C("span",{style:V(["font-size:"+t.fontSize])},_e(l),5)],!0)],14,e0))),128))}}),o0=le(i0,[["styles",[`.checkbox[data-v-1584b0b1]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.checkbox.disabled[data-v-1584b0b1]{cursor:not-allowed}.icon[data-v-1584b0b1]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
72
+ `]],["__scopeId","data-v-1584b0b1"]]),r0=["width","height"],a0=["fill"],l0=["fill"],c0=["fill"],u0=oe({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:ee.colorRed}},setup(n){const e=n;return(t,s)=>(A(),z("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12ZM19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5C15.866 5 19 8.13401 19 12Z",fill:e.color},null,8,a0),C("path",{d:"M12.5332 15.2001C12.5332 15.4946 12.2944 15.7334 11.9999 15.7334C11.7053 15.7334 11.4665 15.4946 11.4665 15.2001L11.4665 10.9334C11.4665 10.6388 11.7053 10.4001 11.9999 10.4001C12.2944 10.4001 12.5332 10.6388 12.5332 10.9334L12.5332 15.2001Z",fill:e.color},null,8,l0),C("path",{d:"M12.5332 8.80006C12.5332 9.09462 12.2944 9.3334 11.9999 9.3334C11.7053 9.3334 11.4665 9.09462 11.4665 8.80006C11.4665 8.50551 11.7053 8.26673 11.9999 8.26673C12.2944 8.26673 12.5332 8.50551 12.5332 8.80006Z",fill:e.color},null,8,c0)],8,r0))}}),fb="",Au=le(u0,[["__scopeId","data-v-41294f60"]]),h0={class:"wrap"},d0=["type","required"],f0={class:"ellipsis"},p0={key:1,style:{}},m0=oe({customOptions:{SVGPrompt:Au},inheritAttrs:!0,__name:"Input.ce",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:ee.colorPrimary},errorColor:{default:ee.colorRed},bgColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","ceFocus","blur","ceBlur","input","ceInput"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=s.placeholder.split(""),r=s.duration/o.length,a=D(!1),l=D(""),c=D("");function u(){a.value=!0,i("focus"),i("ceFocus")}function h(){a.value=!1,i("blur"),i("ceBlur"),d()}function f(m){c.value=m.target.value,d()}function d(){if(c.value&&s.validator){const m=s.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return je(()=>{}),e({}),(m,v)=>(A(),z("div",h0,[C("input",{type:s.type,required:s.required,autocomplete:"off",style:V({height:s.height,lineHeight:s.height,borderRadius:s.borderRadius,color:s.fontColor,borderColor:l.value?s.errorColor:a.value?s.focusColor:c.value?s.bgColor:"transparent",transition:s.duration+"ms"}),class:kt([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,d0),C("div",{class:"placeholder",style:V({lineHeight:a.value||c.value?1.3:s.height,color:s.placeholderColor,transition:s.placeholderJump?"":s.duration+"ms",transform:s.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(A(),z("div",{key:0,style:V({color:s.errorColor,transform:s.placeholderJump?"translateY(-100%)":""})},[me(Au,{class:"icon"}),C("div",f0,_e(l.value),1)],4)):Ae("",!0),!l.value&&!s.placeholderJump?(A(),z("div",p0,_e(s.placeholder),1)):Ae("",!0),!l.value&&s.placeholderJump?(A(!0),z(Me,{key:2},Ct(Te(o),(b,E)=>(A(),z("span",{key:E,style:V({transition:s.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${r*E}ms`,transform:a.value||c.value?`translateX(${100*E}%) translateY(-100%)`:`translateX(${100*E}%)`}),class:"single"},_e(b),5))),128)):Ae("",!0)],4),C("div",{class:"bg",style:V({transition:s.duration+"ms",backgroundColor:a.value||c.value?"transparent":s.bgColor,height:a.value||c.value?s.height:"2px",borderRadius:s.borderRadius})},null,4)]))}}),g0=le(m0,[["styles",[`.wrap[data-v-133a3bfb]{position:relative;box-sizing:border-box;font-size:1em}.input[data-v-133a3bfb]{display:block;box-sizing:border-box;position:relative;width:100%;background:transparent;outline:none;box-shadow:none;border:1px solid transparent;padding:.6em;z-index:10}.bg[data-v-133a3bfb]{position:absolute;left:0;bottom:0;width:100%;pointer-events:none;z-index:9}.placeholder[data-v-133a3bfb]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.focus~.placeholder[data-v-133a3bfb]{font-size:.75em}.placeholder>div[data-v-133a3bfb]{width:100%;display:flex;justify-content:flex-start;align-items:center}.icon[data-v-133a3bfb]{flex:0 0 auto}.ellipsis[data-v-133a3bfb]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.placeholder>span.single[data-v-133a3bfb]{position:absolute;left:0;top:0}
73
+ `]],["__scopeId","data-v-133a3bfb"]]),v0=["max","min","step","value","autofocus"],y0={class:"input-range-label"},b0=oe({customOptions:{},inheritAttrs:!0,__name:"InputRange.ce",props:{max:{default:100},min:{default:0},step:{default:1},defaultValue:{default:0},autofocus:{type:Boolean,default:!1},color:{default:ee.colorPrimary}},emits:["change"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(s.defaultValue),r=D(Mt((s.defaultValue-s.min)/(s.max-s.min),4)*100);function a(u){o.value=Mt(u.target.value,2),r.value=Mt((o.value-s.min)/(s.max-s.min),4)*100,i("change",o.value)}const l=`
74
+ :root {
75
+ --input-range-color: ${s.color}
76
+ }
77
+ :host {
78
+ --input-range-color: ${s.color}
79
+ }
80
+ `,c=D();return Se(c,()=>{c.value&&Z.setStyleSheet(l,c.value)}),je(()=>{}),e({}),(u,h)=>(A(),z("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[C("input",{type:"range",max:s.max,min:s.min,step:s.step,value:o.value,autofocus:s.autofocus,onInput:a,style:V({background:`linear-gradient(to right, ${s.color} 0%, ${s.color} ${r.value}%, #ffffff ${r.value}%, #ffffff)`})},null,44,v0),C("label",y0,_e(o.value),1)],512))}}),Mu=le(b0,[["styles",[`.input-range[data-v-f8fdc2f4]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.input-range-label[data-v-f8fdc2f4]{min-width:3em;text-align:right}input[type=range][data-v-f8fdc2f4]{flex:1 1 auto;-webkit-appearance:none;appearance:none;border-radius:9999px}input[type=range][data-v-f8fdc2f4]:focus{outline:none}input[type=range][data-v-f8fdc2f4]::-webkit-slider-runnable-track{height:4px;border-radius:9999px}input[type=range][data-v-f8fdc2f4]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;height:20px;width:20px;margin-top:-8px;background:var(--input-range-color);border-radius:50%;cursor:pointer}
81
+ `]],["__scopeId","data-v-f8fdc2f4"]]),_0=["width","height"],x0=["fill"],w0=oe({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[C("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,x0)],8,_0))}}),gb="",Ru=le(w0,[["__scopeId","data-v-4747d4a7"]]),C0=oe({customOptions:{SVGDelete:Ru},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:ee.colorGrayFF},deleteColor:{default:ee.colorRed},fontColor:{default:ee.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(!1),r=()=>{i("delete"),o.value=!1};let a;const l=D();return Se(l,()=>{l.value&&(a=new st(l.value),a.on("panLeft",()=>{o.value=!0}),a.on("panRight",()=>{o.value=!1}),a.on("tapOutSide",()=>{o.value=!1}))}),je(()=>{a?.destroy()}),e({}),(c,u)=>(A(),z("div",{class:"parent",ref_key:"item",ref:l,style:V({backgroundColor:s.bgColor,borderRadius:s.borderRadius})},[C("div",{class:"content",style:V({transition:"all ease-in "+s.transtionDuration,transform:o.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[Ue(c.$slots,"default",{},void 0,!0)],4),C("div",{class:"delete",onClick:r,style:V({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:o.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[me(Ru,{color:s.fontColor},null,8,["color"])],4)],4))}}),Vu=le(C0,[["styles",[`.parent[data-v-4ea80232]{position:relative;overflow:hidden;width:100%}.content[data-v-4ea80232]{width:100%;height:100%}.delete[data-v-4ea80232]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
82
+ `]],["__scopeId","data-v-4ea80232"]]),S0=n=>{const e={};for(const t of n.attributes)e[t.name]=t.value;return e},E0={class:"overlay-content",style:V(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},k0=oe({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Su(ee.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(n,{expose:e,emit:t}){const s=n,i=D();function o(r){s.isGlobal?r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&r&&(i.value.parentElement.style.overflow="hidden")}return Se(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,a)=>s.visible?(A(),z("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:V([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[C("div",E0,[Ue(r.$slots,"default",{},void 0,!0)])],4)):Ae("",!0)}}),yb="",Fn=le(k0,[["__scopeId","data-v-fbdcceee"]]),T0=(n=>(Zn("data-v-fb37ce89"),n=n(),Qn(),n))(()=>C("div",null,null,-1)),P0=oe({customOptions:{Overlay:Fn},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D();let r;const a=xt({}),l=xt({});function c(){switch(ss(a),ss(l),s.directionFrom){case"absolute":r="",a.display="block",l.width="100%",l.height="100%";break;case"top":r="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":r="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":r="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":r="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:r="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}Se(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new Be,h=(E=!0)=>{!r||!o.value||(E?(u.fromDOM(o.value),u.toCSS(r,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(r,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};Se(o,()=>{o.value&&h(!0)},{});const f=D(!1);function d(){f.value=!0}function m(){s.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function b(E){s.directionFrom=="absolute"?o.value&&o.value.children[0]&&!o.value.children[0].contains(E.target)&&s.closeWhenClickOverlay&&v():o.value&&!o.value.contains(E.target)&&s.closeWhenClickOverlay&&m()}return e({open:d,close:m}),(E,I)=>(A(),ht(Fn,{visible:f.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Ze(()=>[C("div",{class:"pop-parent",style:V([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:b},[C("div",{ref_key:"pop",ref:o,class:"pop",style:V([{position:"absolute","z-index":"3000"},l])},[Ue(E.$slots,"default",{},()=>[T0],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),_b="",Bt=le(P0,[["__scopeId","data-v-fb37ce89"]]),O0={class:"dialog-parent"},I0={key:0,class:"title"},D0={key:0,class:"title-inner truncate"},N0={class:"custom-content"},$0={class:"custom-content-default"},A0={key:1,class:"btns"},M0=oe({customOptions:{Overlay:Fn,Pop:Bt,Icon:an,Button:Qe},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(""),a=D(""),l=D(!1),c=D(""),u=D("");let h,f,d;function m(I){r.value=I?.title||"",a.value=I?.content||"",l.value=typeof I?.showClose=="boolean"?I?.showClose:!1,c.value=I?.cancelText||"",u.value=I?.confirmText||"",o.value.open(),h=I?.onClose,f=I?.onCancel,d=I?.onConfirm,i("open")}function v(){o.value.close(),h?.(),i("close")}function b(){v(),f?.(),i("cancel")}function E(){v(),d?.(),i("confirm")}return e({open:m,close:v}),(I,N)=>(A(),ht(Bt,{ref_key:"popRef",ref:o,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Ze(()=>[C("div",O0,[C("div",{class:"dialog",style:V({minWidth:s.minWidth,maxWidth:s.maxWidth})},[r.value||l.value?(A(),z("div",I0,[r.value?(A(),z("div",D0,_e(r.value),1)):Ae("",!0),l.value?(A(),z("div",{key:1,class:"close",onClick:v},[me(an,{icon:"ic:baseline-close",color:Te(ee).colorGrayCC},null,8,["color"])])):Ae("",!0)])):Ae("",!0),C("div",N0,[Ue(I.$slots,"default",{},()=>[C("div",$0,_e(a.value),1)],!0)]),c.value||u.value?(A(),z("div",A0,[c.value?(A(),ht(Qe,{key:0,onClick:b,class:"btn",bgColor:Te(ee).colorGrayE6,borderColor:Te(ee).colorGrayE6,fontColor:Te(ee).colorGray33,borderRadius:"0"},{default:Ze(()=>[dt(_e(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ae("",!0),u.value?(A(),ht(Qe,{key:1,onClick:E,class:"btn",borderRadius:"0"},{default:Ze(()=>[dt(_e(u.value),1)]),_:1})):Ae("",!0)])):Ae("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),xb="",po=le(M0,[["__scopeId","data-v-6bd255c9"]]),R0={class:"loading-8"},V0={viewBox:"25 25 50 50"},L0=oe({__name:"Loading8",props:{color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("div",R0,[(A(),z("svg",V0,[C("circle",{cx:"50",cy:"50",r:"20",style:V(["stroke: "+e.color])},null,4)]))]))}}),wb="",Lu=le(L0,[["__scopeId","data-v-e5e3cf4c"]]),aa=n=>(Zn("data-v-85491020"),n=n(),Qn(),n),F0=[aa(()=>C("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),aa(()=>C("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),aa(()=>C("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],z0=oe({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("svg",{style:V(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},F0,4))}}),kb="",la=le(z0,[["__scopeId","data-v-85491020"]]);function Es(n){let e=!1;return n=="123"&&(e=!0),{isValidated:e,msg:n+"不对!"}}function Tb(n){return n}document.getElementById("teleport")||document.documentElement;function ca(n,e){{const t=document.querySelector("yz-dialog-toast#globalDialogToast");t&&"_instance"in t&&t._instance.exposed.open(n,e)}}function G0(n){{const e=document.querySelector("yz-dialog-loading#globalDialogLoading");return e&&"_instance"in e&&e._instance.exposed.open(n),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function j0(n){{const e=document.querySelector("yz-dialog#globalDialog");return e&&"_instance"in e&&e._instance.exposed.open(n),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function ks(n,e="bottom"){let t;n instanceof HTMLElement?t=Xe(Bt,{directionFrom:e},()=>Xe("div",{...S0(n),innerHTML:n.innerHTML})):t=Xe(Bt,{directionFrom:e},()=>n),Ui(t,document.getElementById("teleport")||document.documentElement),t.component?.exposed?.open();const s=()=>{t.component?.exposed?.close()};return s.vnode=t,s}function Fu(n){return ks(n,"bottom")}function zu(n){return ks(n,"top")}function Gu(n){return ks(n,"left")}function ju(n){return ks(n,"right")}function Bu(n){return ks(n,"center")}function mo(n){return ks(n,"absolute")}const B0=()=>Fu(Xe("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},Xe("yz-input",{placeholder:"请输入姓名",validator:Es}))),H0=()=>zu(Xe("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},Xe("yz-input",{placeholder:"请输入姓名",validator:Es}))),Y0=()=>Gu(Xe("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},Xe("yz-input",{placeholder:"请输入姓名",validator:Es}))),W0=()=>ju(Xe("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},Xe("yz-input",{placeholder:"请输入姓名",validator:Es}))),U0=()=>Bu(Xe("div",{style:"width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},Xe("yz-input",{placeholder:"请输入姓名",validator:Es}))),X0=()=>mo(Xe("div",{style:"position:absolute;left: 100px;top: 100px;width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},Xe("yz-input",{placeholder:"请输入姓名",validator:Es})));let go;function Hu(n){{const e=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return e&&"_instance"in e&&(go&&e.removeEventListener("plates",go),go=t=>{"detail"in t&&n?.onPlates?.(t.detail[0])},e.addEventListener("plates",go),e.initPlates=n?.initPlates,e.completePlateLength=n?.completePlateLength,e._instance.exposed.open()),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}const q0={class:"content"},K0=le(oe({customOptions:{},inheritAttrs:!0,__name:"MouseOver.ce",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(!1),a=xt({});let l=xt({}),c=xt({}),u=1,h;Se(o,()=>{!o.value||h||(d(),h=new st(o.value,!1),h.on("resize",(m,v)=>{u=Math.max(m,v)/Math.min(m,v);const b=Math.min(m,v);c.width=l.width=b+"px",c.height=l.height=b+"px",d()}),h.on("mouseOver",()=>{i("mouseOver"),r.value=!0,d()}),h.on("mouseOut",()=>{i("mouseOut"),r.value=!1,d()}),h.start())});function f(){Z.copyToClipboard(Z.getInnerText(o.value)).then(()=>{ca("复制成功")}).catch(m=>{ca(m.toString())})}function d(){switch(s.coverDirection){case"bottomLeft":l.top="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"bottomRight":l.top="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topLeft":l.bottom="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, 50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topRight":l.bottom="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, 50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"center":l.top="50%",l.left="50%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"slideUp":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center bottom":"center top"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideDown":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center top":"center bottom"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideRight":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center left":"center right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideLeft":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center right":"center left"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"animationJelly":l.transform="scale(0)",a.animation=`${r.value?"jelly 0.5s":"none"}`;break;case"floatUp":l.transform="scale(0)",a.transform=`${r.value?"translateY(-4px)":"translateY(0)"}`,a.willChange="box-shadow, transform",a.transition=`transform ${s.timeGap}ms ease,box-shadow ${s.timeGap}ms ease `;break;case"underlineRight":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"bottom left":"bottom right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineRightInit":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"bottom right":"bottom left"}`,l.transform=`${r.value?"scaleX(0)":"scaleX(1)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineCenter":l.bottom="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"lineThrough":l.top="50%",l.left="0",l.right="0",l.width="100%",l.height="3px",l.transformOrigin=`${r.value?"center right":"center left"}`,l.transform=`${r.value?"scaleX(0)":"scaleX(1)"} translateY(-50%)`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineRight":l.top="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"bottom left":"bottom right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineCenter":l.top="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"pillars1":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${r.value?"center bottom":"center top"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.right="0";break;case"pillars2":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${r.value?"center bottom":"center top"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.transformOrigin=`${r.value?"center top":"center bottom"}`,c.right="0";break;case"pillars3":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin="center",l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.right="0";break;case"bars1":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"center left":"center right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.bottom="0";break;case"bars2":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"center right":"center left"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},l.transformOrigin=`${r.value?"center left":"center right"}`,c.bottom="0";break;case"bars3":l.left="50%",l.right="0",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=` translateX(-50%) ${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.bottom="0";break;case"circle":l.zIndex="2",l.backgroundColor="rgba(255,255,255,0)",l.borderRadius="100%",l.boxShadow=r.value?`
83
+ inset 0.5em 0 0 rgba(255, 0, 0, 0.5),
84
+ inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
85
+ inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
86
+ inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)`:`
87
+ inset ${l.width} 0 0 ${ls(s.coverColor,.2)},
88
+ inset 0 ${l.width} 0 ${ls(s.coverColor,.2)},
89
+ inset -${l.width} 0 0 ${ls(s.coverColor,.2)},
90
+ inset 0 -${l.width} 0 ${ls(s.coverColor,.2)}`,l.transition="box-shadow 0.75s";break}}return je(()=>{h?.destroy()}),e({}),(m,v)=>(A(),z("div",{ref_key:"mouseOverContainer",ref:o,class:"mouse-over",style:V(a),onClick:f},[C("div",{class:"before",style:V({backgroundColor:s.coverColor,...Te(l)})},null,4),C("div",q0,[Ue(m.$slots,"default",{},void 0,!0)]),C("div",{class:"after",style:V({backgroundColor:s.coverColor,...Te(c)})},null,4)],4))}}),[["styles",[`@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}
91
+ `,`.mouse-over[data-v-b82dcef4]{box-sizing:border-box;position:relative;display:inline-block;cursor:pointer;overflow:hidden}.before[data-v-b82dcef4],.after[data-v-b82dcef4]{position:absolute;z-index:0}.content[data-v-b82dcef4]{position:relative;z-index:1}
92
+ `]],["__scopeId","data-v-b82dcef4"]]),Z0=le(oe({customOptions:{SVGDown:fo},inheritAttrs:!0,__name:"Accordion.ce",props:{initOpen:{type:Boolean,default:!1},height:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(Number.MAX_SAFE_INTEGER+"px"),r=D(),a=D(!0);let l;Se(r,()=>{r.value&&(o.value=r.value.getBoundingClientRect().height+"px",l=new st(r.value),l.on("resize",(h,f)=>{i("resize",h,f)}),a.value=s.initOpen)});function c(){a.value=!a.value,a.value?i("open"):i("close")}const u=D("rotate(0deg)");return Sl(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),je(()=>{l?.destroy()}),e({}),(h,f)=>(A(),z("div",{class:"wrap",style:V({background:s.bgColor,color:s.fontColor,borderRadius:s.borderRadius})},[C("div",{class:"title",onClick:c,style:V({height:s.height,lineHeight:s.height,margin:`0 ${s.padding}`,transitionDelay:`${a.value?0:s.duration}ms`,borderBottom:`${a.value?1:0}px solid ${s.borderColor}`})},[Ue(h.$slots,"title",{},()=>[dt("title")],!0),me(fo,{class:"arrow",style:V({transition:`transform ${s.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),C("div",{ref_key:"content",ref:r,class:"content",style:V({margin:`0 ${s.padding}`,transition:`max-height ${s.duration}ms ease-in-out`,maxHeight:a.value?o.value:"0"})},[Ue(h.$slots,"content",{},void 0,!0)],4)],4))}}),[["styles",[`.wrap[data-v-68d65f8a]{font-size:1em;position:relative;overflow:hidden}.title[data-v-68d65f8a]{display:flex;justify-content:space-between;align-items:center;user-select:none;cursor:pointer}.content[data-v-68d65f8a]{word-break:break-all;overflow:hidden}
93
+ `]],["__scopeId","data-v-68d65f8a"]]),Q0=oe({__name:"ProgressBar",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(0);function r(){o.value=0}function a(l){const c=o.value,u=Math.min(Math.max(0,l),100);Be.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{o.value=h.width},onComplete:()=>{i("complete",o.value)}}).startAuto()}return e({start:r,goto:a}),(l,c)=>(A(),z("div",{class:"wrap",style:V({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[C("div",{class:"bar",style:V({width:o.value+"%",backgroundColor:s.progressColor})},_e(s.showText?o.value+"%":""),5)],4))}}),$b="",vo=le(Q0,[["__scopeId","data-v-30de81f6"]]),J0=["width","height"],ev=["src","type"],tv={class:"bar-wrap"},Yu=le(oe({customOptions:{ProgressBar:vo},inheritAttrs:!0,__name:"Video.ce",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(n,{expose:e,emit:t}){const s=n;function i(){Be.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{r.value?.start()},onUpdate:l=>{r.value?.goto(l.x)}}).startAuto(()=>this.currentTime)}const o=D(),r=D();Se(o,()=>{o.value&&(o.value.addEventListener("play",i),s.autoplay&&Wr.tryAutoPlayOrAutoPlayAfterClick(o.value))}),je(()=>{o.value?.removeEventListener(i)});function a(){o.value?.play()}return e({play:a}),(l,c)=>(A(),z("div",{class:"wrap",style:V({width:s.width,height:s.height}),onClick:a},[C("video",{ref_key:"video",ref:o,width:s.width,height:s.height,preload:"metadata"},[C("source",{src:s.src,type:s.type},null,8,ev)],8,J0),C("div",tv,[me(vo,{ref_key:"bar",ref:r,width:s.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),[["styles",[`.wrap[data-v-0e47aeaa]{position:relative;overflow:hidden;background-color:#f5f5f5}.bar-wrap[data-v-0e47aeaa]{position:absolute;bottom:0;left:0}
94
+ `]],["__scopeId","data-v-0e47aeaa"]]),nv=oe({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image.ce",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(),a=D(0),l=D(0),c=D(0),u=D(0),h=D(1),f=D(0),d=D(0);ku(s.src).then(B=>{c.value=B.width,u.value=B.height,h.value=B.aspectRatio,I()});let m;Se(o,()=>{o.value&&(m=new st(o.value,!1),m.on("resize",(B,R)=>{a.value=B,l.value=R,I()}),m.start())});let v=!1;const b={x:0,y:0,width:0,height:0};let E;function I(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(f.value=a.value,d.value=f.value/h.value,d.value>l.value&&(d.value=l.value,f.value=d.value*h.value)):(d.value=l.value,f.value=d.value*h.value,f.value>a.value&&(f.value=a.value,d.value=f.value/h.value));break;case"aspectFill":h.value>=1?(d.value=l.value,f.value=d.value*h.value):(f.value=a.value,d.value=f.value/h.value);break;case"widthFix":f.value=a.value,d.value=f.value/h.value;break;case"heightFix":d.value=l.value,f.value=d.value*h.value;break;case"scaleToFill":default:f.value=a.value,d.value=l.value;break}ki(()=>{const B=r.value.getBoundingClientRect();i("settled",B.x,B.y,f.value,d.value),v&&E(b.x,b.y,b.width,b.height)})}}function N(B,R,Y,fe){const be=(Oe,Le,Fe,He,Ie,ve,F,te,q)=>{if(!Ie||!ve||!F||!te){const re=Pe.vnode.el.getBoundingClientRect(),$e=re.width,Re=re.height;let ze=0,Je=0;h.value>=1?(ze=$e,Je=ze/h.value,Je>Re&&(Je=Re,ze=Je*h.value)):(Je=Re,ze=Je*h.value,ze>$e.value&&(ze=$e.value,Je=ze/h.value)),Ie=($e-ze)/2,ve=(Re-Je)/2,F=ze,te=Je}const Ee=200;Be.toTween({left:Oe,top:Le,width:Fe,height:He},{left:Ie,top:ve,width:F,height:te},{duration:Ee,onStart(){},onUpdate(re){ge.el.style.left=re.left+"px",ge.el.style.top=re.top+"px",ge.el.style.width=re.width+"px",ge.el.style.height=re.height+"px"},onComplete(re){b.x=re.left,b.y=re.top,b.width=re.width,b.height=re.height,q?.()}}).startAuto()},ge=Xe("div",{style:`
79
95
  position:absolute;
80
- left:${U}px;
81
- top:${F}px;
82
- width: ${H}px;
83
- height: ${ve}px;
96
+ left:${B}px;
97
+ top:${R}px;
98
+ width: ${Y}px;
99
+ height: ${fe}px;
84
100
  background-image: url(${s.src});
85
101
  background-repeat: no-repeat;
86
102
  background-position: center center;
87
- background-size: 100% 100%`,onVnodeMounted:()=>{be(U,F,H,ve)}}),De=lo(Ue("div",{style:`
103
+ background-size: 100% 100%`,onVnodeMounted:()=>{be(B,R,Y,fe)}}),Pe=mo(Xe("div",{style:`
88
104
  position:absolute;
89
105
  width: 100%;
90
106
  height: 100%;
@@ -92,17 +108,17 @@ Expected function or array of functions, received type ${typeof n}.`),ot)}functi
92
108
  display: flex;
93
109
  justify-content: center;
94
110
  align-items: center;
95
- `,onClick:()=>{const{x:ye,y:Ne,width:Le,height:me}=r.value.getBoundingClientRect();be(_.x,_.y,_.width,_.height,ye,Ne,Le,me,()=>{De(),y=!1})}},Ce));return be}function D(){if(!o.value||!s.openImageViewWhenClick)return;y=!0;const{x:U,y:F,width:H,height:ve}=r.value.getBoundingClientRect();C=P(U,F,H,ve)}return qe(()=>{m?.destroy()}),e({}),(U,F)=>($(),G("div",{ref_key:"imageOutterRef",ref:o,class:"image",style:Z({backgroundColor:s.bgColor}),onClick:D},[w("div",{ref_key:"imageInnerRef",ref:r,class:"image-inner",style:Z({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${d.value}px ${f.value}px`})},null,4)],4))}}),Du=ue(T0,[["styles",[`.image[data-v-9bb005e6]{box-sizing:border-box;position:relative;overflow:hidden;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.image-inner[data-v-9bb005e6]{background-repeat:no-repeat;background-position:center center}
96
- `]],["__scopeId","data-v-9bb005e6"]]),P0=ce({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M();let r=[],a;const l=new nt;let c=0,u=!1;const h={};function d(){switch(Zn(h),s.direction){case"none":a="",h.position="absolute",h.top="0",h.left="0";break;case"topToBottom":a="slideDown";break;case"leftToRight":a="slideRight";break;case"rightToLeft":a="slideLeft";break;case"bottomToTop":a="slideUp";break}}d();function f(){o.value&&(Fi(Ue("div",{class:"routes-inner-wrap",style:"height: 100%;"},r.map(F=>Ue("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},Ue(F.component,{...F.attributes,style:{...F.attributes.style||{},...h}})))),o.value),l?.fromDOM([...o.value.children[0].children]))}const m=F=>{if(!(!a||u||!r.length)){if(u=!0,F.push&&(c=r.length-1),F.pop){if(!r.length){u=!1;return}c=r.length-1}if(F.reset&&(c=0),F.forward){if(c>=r.length-1){u=!1;return}c++}if(F.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:s.easeName,dur:F?.dur??s.duration,direction:F.back||F.pop?"reverse":"normal",onComplete:()=>{(F.back||F.pop)&&c--,F.pop&&(r.pop(),f()),i("finish",c),u=!1,F?.onComplete?.()}},c)}};function y(F=[],H){r=[],F.forEach(ve=>r.push({component:ve.component,attributes:ve.attributes??{}})),f(),m({reset:!0,onComplete:H})}function _(F,H={}){r.push({component:F,attributes:H}),f(),m({push:!0})}function C(){m({pop:!0})}function k(){m({forward:!0})}function P(){m({back:!0})}function D(F,H){F>r.length-1||F<0||F==c||(H||(H=s.duration/Math.abs(F-c)),c<F?m({forward:!0,dur:H,onComplete:()=>{setTimeout(()=>{D(F,H)})}}):m({back:!0,dur:H,onComplete:()=>{setTimeout(()=>{D(F,H)})}}))}function U(){f(),m({resize:!0})}return kn(()=>{tt.page.on("resize",U)}),qe(()=>{tt.page.off("resize",U)}),e({reset:y,push:_,pop:C,forward:k,back:P,goto:D}),(F,H)=>($(),G("div",{ref_key:"routesContainerRef",ref:o,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),K1="",Mu=ue(P0,[["__scopeId","data-v-f06c01ec"]]),O0=ce({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(),a=M(0),l=M(0),c=M(0),u=M(0),h=M(1),d=M(0),f=M(0);du(s.src).then(U=>{c.value=U.width,u.value=U.height,h.value=U.aspectRatio,k()});let m;Ie(o,()=>{o.value&&(m=new tt(o.value,!1),m.on("resize",(U,F)=>{a.value=U,l.value=F,k()}),m.start())});let y=!1;const _={x:0,y:0,width:0,height:0};let C;function k(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(d.value=a.value,f.value=d.value/h.value,f.value>l.value&&(f.value=l.value,d.value=f.value*h.value)):(f.value=l.value,d.value=f.value*h.value,d.value>a.value&&(d.value=a.value,f.value=d.value/h.value));break;case"aspectFill":h.value>=1?(f.value=l.value,d.value=f.value*h.value):(d.value=a.value,f.value=d.value/h.value);break;case"widthFix":d.value=a.value,f.value=d.value/h.value;break;case"heightFix":f.value=l.value,d.value=f.value*h.value;break;case"scaleToFill":default:d.value=a.value,f.value=l.value;break}yi(()=>{const U=r.value.getBoundingClientRect();i("settled",U.x,U.y,d.value,f.value),y&&C(_.x,_.y,_.width,_.height)})}}function P(U,F,H,ve){const be=(ye,Ne,Le,me,_e,re,V,J,Y)=>{if(!_e||!re||!V||!J){const de=De.vnode.el.getBoundingClientRect(),j=de.width,ee=de.height;let S=0,A=0;h.value>=1?(S=j,A=S/h.value,A>ee&&(A=ee,S=A*h.value)):(A=ee,S=A*h.value,S>j.value&&(S=j.value,A=S/h.value)),_e=(j-S)/2,re=(ee-A)/2,V=S,J=A}const Pe=200;nt.toTween({left:ye,top:Ne,width:Le,height:me},{left:_e,top:re,width:V,height:J},{duration:Pe,onStart(){},onUpdate(de){Ce.el.style.left=de.left+"px",Ce.el.style.top=de.top+"px",Ce.el.style.width=de.width+"px",Ce.el.style.height=de.height+"px"},onComplete(de){_.x=de.left,_.y=de.top,_.width=de.width,_.height=de.height,Y?.()}}).startAuto()},Ce=Ue("div",{style:`
111
+ `,onClick:()=>{const{x:Oe,y:Le,width:Fe,height:He}=r.value.getBoundingClientRect();be(b.x,b.y,b.width,b.height,Oe,Le,Fe,He,()=>{Pe(),v=!1})}},ge));return be}function k(){if(!o.value||!s.openImageViewWhenClick)return;v=!0;const{x:B,y:R,width:Y,height:fe}=r.value.getBoundingClientRect();E=N(B,R,Y,fe)}return je(()=>{m?.destroy()}),e({}),(B,R)=>(A(),z("div",{ref_key:"imageOutterRef",ref:o,class:"image",style:V({backgroundColor:s.bgColor}),onClick:k},[C("div",{ref_key:"imageInnerRef",ref:r,class:"image-inner",style:V({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),Wu=le(nv,[["styles",[`.image[data-v-9bb005e6]{box-sizing:border-box;position:relative;overflow:hidden;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.image-inner[data-v-9bb005e6]{background-repeat:no-repeat;background-position:center center}
112
+ `]],["__scopeId","data-v-9bb005e6"]]),sv=oe({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D();let r=[],a;const l=new Be;let c=0,u=!1;const h={};function f(){switch(ss(h),s.direction){case"none":a="",h.position="absolute",h.top="0",h.left="0";break;case"topToBottom":a="slideDown";break;case"leftToRight":a="slideRight";break;case"rightToLeft":a="slideLeft";break;case"bottomToTop":a="slideUp";break}}f();function d(){o.value&&(Ui(Xe("div",{class:"routes-inner-wrap",style:"height: 100%;"},r.map(R=>Xe("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},Xe(R.component,{...R.attributes,style:{...R.attributes.style||{},...h}})))),o.value),l?.fromDOM([...o.value.children[0].children]))}const m=R=>{if(!(!a||u||!r.length)){if(u=!0,R.push&&(c=r.length-1),R.pop){if(!r.length){u=!1;return}c=r.length-1}if(R.reset&&(c=0),R.forward){if(c>=r.length-1){u=!1;return}c++}if(R.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:s.easeName,dur:R?.dur??s.duration,direction:R.back||R.pop?"reverse":"normal",onComplete:()=>{(R.back||R.pop)&&c--,R.pop&&(r.pop(),d()),i("finish",c),u=!1,R?.onComplete?.()}},c)}};function v(R=[],Y){r=[],R.forEach(fe=>r.push({component:fe.component,attributes:fe.attributes??{}})),d(),m({reset:!0,onComplete:Y})}function b(R,Y={}){r.push({component:R,attributes:Y}),d(),m({push:!0})}function E(){m({pop:!0})}function I(){m({forward:!0})}function N(){m({back:!0})}function k(R,Y){R>r.length-1||R<0||R==c||(Y||(Y=s.duration/Math.abs(R-c)),c<R?m({forward:!0,dur:Y,onComplete:()=>{setTimeout(()=>{k(R,Y)})}}):m({back:!0,dur:Y,onComplete:()=>{setTimeout(()=>{k(R,Y)})}}))}function B(){d(),m({resize:!0})}return $n(()=>{st.page.on("resize",B)}),je(()=>{st.page.off("resize",B)}),e({reset:v,push:b,pop:E,forward:I,back:N,goto:k}),(R,Y)=>(A(),z("div",{ref_key:"routesContainerRef",ref:o,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),Lb="",Uu=le(sv,[["__scopeId","data-v-f06c01ec"]]),iv=oe({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(),a=D(0),l=D(0),c=D(0),u=D(0),h=D(1),f=D(0),d=D(0);ku(s.src).then(B=>{c.value=B.width,u.value=B.height,h.value=B.aspectRatio,I()});let m;Se(o,()=>{o.value&&(m=new st(o.value,!1),m.on("resize",(B,R)=>{a.value=B,l.value=R,I()}),m.start())});let v=!1;const b={x:0,y:0,width:0,height:0};let E;function I(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(f.value=a.value,d.value=f.value/h.value,d.value>l.value&&(d.value=l.value,f.value=d.value*h.value)):(d.value=l.value,f.value=d.value*h.value,f.value>a.value&&(f.value=a.value,d.value=f.value/h.value));break;case"aspectFill":h.value>=1?(d.value=l.value,f.value=d.value*h.value):(f.value=a.value,d.value=f.value/h.value);break;case"widthFix":f.value=a.value,d.value=f.value/h.value;break;case"heightFix":d.value=l.value,f.value=d.value*h.value;break;case"scaleToFill":default:f.value=a.value,d.value=l.value;break}ki(()=>{const B=r.value.getBoundingClientRect();i("settled",B.x,B.y,f.value,d.value),v&&E(b.x,b.y,b.width,b.height)})}}function N(B,R,Y,fe){const be=(Oe,Le,Fe,He,Ie,ve,F,te,q)=>{if(!Ie||!ve||!F||!te){const re=Pe.vnode.el.getBoundingClientRect(),$e=re.width,Re=re.height;let ze=0,Je=0;h.value>=1?(ze=$e,Je=ze/h.value,Je>Re&&(Je=Re,ze=Je*h.value)):(Je=Re,ze=Je*h.value,ze>$e.value&&(ze=$e.value,Je=ze/h.value)),Ie=($e-ze)/2,ve=(Re-Je)/2,F=ze,te=Je}const Ee=200;Be.toTween({left:Oe,top:Le,width:Fe,height:He},{left:Ie,top:ve,width:F,height:te},{duration:Ee,onStart(){},onUpdate(re){ge.el.style.left=re.left+"px",ge.el.style.top=re.top+"px",ge.el.style.width=re.width+"px",ge.el.style.height=re.height+"px"},onComplete(re){b.x=re.left,b.y=re.top,b.width=re.width,b.height=re.height,q?.()}}).startAuto()},ge=Xe("div",{style:`
97
113
  position:absolute;
98
- left:${U}px;
99
- top:${F}px;
100
- width: ${H}px;
101
- height: ${ve}px;
114
+ left:${B}px;
115
+ top:${R}px;
116
+ width: ${Y}px;
117
+ height: ${fe}px;
102
118
  background-image: url(${s.src});
103
119
  background-repeat: no-repeat;
104
120
  background-position: center center;
105
- background-size: 100% 100%`,onVnodeMounted:()=>{be(U,F,H,ve)}}),De=lo(Ue("div",{style:`
121
+ background-size: 100% 100%`,onVnodeMounted:()=>{be(B,R,Y,fe)}}),Pe=mo(Xe("div",{style:`
106
122
  position:absolute;
107
123
  width: 100%;
108
124
  height: 100%;
@@ -110,33 +126,40 @@ Expected function or array of functions, received type ${typeof n}.`),ot)}functi
110
126
  display: flex;
111
127
  justify-content: center;
112
128
  align-items: center;
113
- `,onClick:()=>{const{x:ye,y:Ne,width:Le,height:me}=r.value.getBoundingClientRect();be(_.x,_.y,_.width,_.height,ye,Ne,Le,me,()=>{De(),y=!1})}},Ce));return be}function D(){if(!o.value||!s.openImageViewWhenClick)return;y=!0;const{x:U,y:F,width:H,height:ve}=r.value.getBoundingClientRect();C=P(U,F,H,ve)}return qe(()=>{m?.destroy()}),e({}),(U,F)=>($(),G("div",{ref_key:"imageOutterRef",ref:o,class:"image",style:Z({backgroundColor:s.bgColor}),onClick:D},[w("div",{ref_key:"imageInnerRef",ref:r,class:"image-inner",style:Z({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${d.value}px ${f.value}px`})},null,4)],4))}}),Q1="",$u=ue(O0,[["__scopeId","data-v-928690db"]]),I0={style:{position:"absolute",width:"100%",height:"100%"}},N0={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Au=ue(ce({customOptions:{Image:$u},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]}},setup(n,{expose:e,emit:t}){const s=n,i=M(),o=M(),r=M(),a=M(0);let l;function c(m){a.value=m}function u(){r.value?.forward()}function h(){r.value?.back()}Ie(o,()=>{o.value&&(l?.destroy(),l=new tt(o.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",f))}),Ie(r,()=>{r.value&&r.value.reset(s.urls.map(m=>({component:Ue("div",{style:"position:absolute;width:100%;height:100%"},Ue($u,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function d(){i.value?.open()}function f(){i.value?.close()}return qe(()=>{l?.destroy()}),e({open:d,close:f}),(m,y)=>($(),lt(At,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:Qe(()=>[w("div",I0,[s.urls.length>1?($(),G("div",N0,Oe(a.value+1)+" / "+Oe(s.urls.length),1)):Ge("",!0),w("div",{ref_key:"pageRef",ref:o,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[Ee(Mu,{ref_key:"routesRef",ref:r,direction:s.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),[["styles",[""]],["__scopeId","data-v-06f6e07e"]]),t_="",D0={class:"page"},M0={class:"header"},$0={class:"main"},A0={class:"main-scroll"},R0={class:"footer"},V0=ue(ce({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(n,{expose:e,emit:t}){return Pm(n.designWidth),e({}),(i,o)=>($(),G("div",D0,[w("header",M0,[Xe(i.$slots,"header",{},void 0,!0)]),w("div",$0,[w("div",A0,[Xe(i.$slots,"main",{},void 0,!0)])]),w("footer",R0,[Xe(i.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-20686fd2]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-20686fd2]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-20686fd2]{flex:1 1 auto;width:100%}.main-scroll[data-v-20686fd2]>:nth-child(1){min-height:100%}.header[data-v-20686fd2],.footer[data-v-20686fd2]{flex:0 0 auto}
114
- `]],["__scopeId","data-v-20686fd2"]]),L0=ue(ce({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(n,{expose:e,emit:t}){const s=n,i=gt({}),o=gt({});function r(){switch(Zn(i),Zn(o),s.type){case"table":i.display="table",o.display="table-cell",o.verticalAlign="middle",o.textAlign="center";break;case"transform":o.position="absolute",o.top="50%",o.left="50%",o.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",o.margin="auto"}}return r(),qe(()=>{}),e({}),(a,l)=>($(),G("div",{class:"layout-center",style:Z(i)},[w("div",{style:Z(o)},[Xe(a.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-db9c6bab]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
115
- `]],["__scopeId","data-v-db9c6bab"]]),F0={class:"overlay-content",style:Z(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},z0=ce({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean},bgColor:{default:uu(oe.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(n,{expose:e,emit:t}){const s=n,i=M();function o(r){s.isGlobal?r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&r&&(i.value.parentElement.style.overflow="hidden")}return Ie(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,a)=>s.visible?($(),G("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:Z([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[w("div",F0,[Xe(r.$slots,"default",{},void 0,!0)])],4)):Ge("",!0)}}),ho=ue(z0,[["styles",[""]],["__scopeId","data-v-7e175930"]]),G0=(n=>(Yn("data-v-7542fd44"),n=n(),Wn(),n))(()=>w("div",null,null,-1)),ts=ue(ce({customOptions:{Overlay:Dn},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M();let r;const a=gt({}),l=gt({});function c(){switch(Zn(a),Zn(l),s.directionFrom){case"absolute":r="",a.display="block",l.width="100%",l.height="100%";break;case"top":r="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":r="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":r="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":r="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:r="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}Ie(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new nt,h=(C=!0)=>{!r||!o.value||(C?(u.fromDOM(o.value),u.toCSS(r,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(r,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{y()}}))};Ie(o,()=>{o.value&&h(!0)},{});const d=M(!1);function f(){d.value=!0}function m(){s.directionFrom=="absolute"?y():h(!1)}function y(){d.value=!1,i("close")}function _(C){s.directionFrom=="absolute"?o.value&&o.value.children[0]&&!o.value.children[0].contains(C.target)&&s.closeWhenClickOverlay&&y():o.value&&!o.value.contains(C.target)&&s.closeWhenClickOverlay&&m()}return e({open:f,close:m}),(C,k)=>($(),lt(Dn,{visible:d.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Qe(()=>[w("div",{class:"pop-parent",style:Z([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:_},[w("div",{ref_key:"pop",ref:o,class:"pop",style:Z([{position:"absolute","z-index":"3000"},l])},[Xe(C.$slots,"default",{},()=>[G0],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),[["styles",[""]],["__scopeId","data-v-7542fd44"]]),j0=(n=>(Yn("data-v-8d198707"),n=n(),Wn(),n))(()=>w("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Ru=ue(ce({customOptions:{Pop:At,Button:Je},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(n){const e=n,t=M(),s=M(),i=M(),o=gt({left:"0",top:"0"});Ie(s,()=>{r()}),Ie(i,()=>{r()});function r(){if(!s.value||!i.value)return;const l=Ar(),c=s.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,d=u.height;let f=c.x+c.width+e.gap,m=c.y;f=Math.max(e.gap,Math.min(f,l.width-h-e.gap)),m=Math.max(e.gap,Math.min(m,l.height-d-e.gap)),o.left=`${f}px`,o.top=`${m}px`}function a(){t.value.open()}return(l,c)=>($(),G(ze,null,[w("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:a},[Xe(l.$slots,"button",{},()=>[Ee(Je,null,{default:Qe(()=>[ut("popover-default-button")]),_:1})],!0)],512),Ee(At,{ref_key:"popRef",ref:t,"direction-from":"absolute",isGlobal:e.isGlobal},{default:Qe(()=>[w("div",{ref_key:"popoverPanelRef",ref:i,style:Z([{display:"inline-block",position:"absolute"},o])},[Xe(l.$slots,"panel",{},()=>[j0],!0)],4)]),_:3},8,["isGlobal"])],64))}}),[["styles",[""]],["__scopeId","data-v-8d198707"]]),B0={class:"dialog-parent"},H0={key:0,class:"title"},Y0={key:0,class:"title-inner truncate"},W0={class:"custom-content"},X0={class:"custom-content-default"},U0={key:1,class:"btns"},fo=ue(ce({customOptions:{Overlay:Dn,Pop:At,Icon:Jt,Button:Je},inheritAttrs:!0,__name:"Dialog.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(""),a=M(""),l=M(!1),c=M(""),u=M("");let h,d,f;function m(k){r.value=k?.title||"",a.value=k?.content||"",l.value=typeof k?.showClose=="boolean"?k?.showClose:!1,c.value=k?.cancelText||"",u.value=k?.confirmText||"",o.value.open(),h=k?.onClose,d=k?.onCancel,f=k?.onConfirm,i("open")}function y(){o.value.close(),h?.(),i("close")}function _(){y(),d?.(),i("cancel")}function C(){y(),f?.(),i("confirm")}return e({open:m,close:y}),(k,P)=>($(),lt(At,{ref_key:"popRef",ref:o,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Qe(()=>[w("div",B0,[w("div",{class:"dialog",style:Z({minWidth:s.minWidth,maxWidth:s.maxWidth})},[r.value||l.value?($(),G("div",H0,[r.value?($(),G("div",Y0,Oe(r.value),1)):Ge("",!0),l.value?($(),G("div",{key:1,class:"close",onClick:y},[Ee(Jt,{icon:"ic:baseline-close",color:$e(oe).colorGrayCC},null,8,["color"])])):Ge("",!0)])):Ge("",!0),w("div",W0,[Xe(k.$slots,"default",{},()=>[w("div",X0,Oe(a.value),1)],!0)]),c.value||u.value?($(),G("div",U0,[c.value?($(),lt(Je,{key:0,onClick:_,class:"btn",bgColor:$e(oe).colorGrayE6,borderColor:$e(oe).colorGrayE6,fontColor:$e(oe).colorGray33,borderRadius:"0"},{default:Qe(()=>[ut(Oe(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ge("",!0),u.value?($(),lt(Je,{key:1,onClick:C,class:"btn",borderRadius:"0"},{default:Qe(()=>[ut(Oe(u.value),1)]),_:1})):Ge("",!0)])):Ge("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),[["styles",[`.dialog-parent[data-v-8c45bc83]{display:flex;justify-content:center;align-items:center}.dialog[data-v-8c45bc83]{border-radius:8px;background-color:#fff;overflow:hidden}.title[data-v-8c45bc83]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-8c45bc83]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-8c45bc83]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em;text-align:center}.custom-content[data-v-8c45bc83]{font-size:16px;word-break:break-all}.custom-content-default[data-v-8c45bc83]{padding:1em}.btns[data-v-8c45bc83]{display:flex;justify-content:center}.btn[data-v-8c45bc83]{flex:1 1 auto;border-radius:0}
116
- `]],["__scopeId","data-v-8c45bc83"]]),q0={class:"loading"},K0={class:"icon"},Z0={style:{width:"8em"}},Q0={key:0,class:"content"},Vu=ue(ce({customOptions:{Overlay:Dn,Pop:At,Dialog:ao,Loading8:Eu},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M("");function a(c){r.value=c||"",o.value.open(),i("open")}function l(){o.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>($(),lt(ao,{ref_key:"dialogRef",ref:o,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:Qe(()=>[w("div",q0,[w("div",K0,[Xe(c.$slots,"default",{},()=>[w("div",Z0,[Ee(Eu)])],!0)]),r.value?($(),G("div",Q0,Oe(r.value),1)):Ge("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.loading[data-v-8a5155ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1em}.icon[data-v-8a5155ef]{padding:2em 0;display:flex;justify-content:center;align-items:center}.content[data-v-8a5155ef]{font-size:1em;margin-top:-1em;margin-bottom:1em}
117
- `]],["__scopeId","data-v-8a5155ef"]]),J0={class:"toast"},ev={class:"content"},Lu=ue(ce({customOptions:{Overlay:Dn,Pop:At,Dialog:ao},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M("");function a(c,u=1500){r.value=c,o.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){o.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>($(),lt(ao,{ref_key:"dialogRef",ref:o,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:Qe(()=>[w("div",J0,[w("div",ev,Oe(r.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.toast[data-v-9b0eec22]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#333;color:#ccc;padding:1em}.content[data-v-9b0eec22]{font-size:1em}
118
- `]],["__scopeId","data-v-9b0eec22"]]),tv={class:"tabs"},nv=["onClick"],sv={class:"content"},iv=ue(ce({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(s.initIndex),r=gt([]),a=M(),l=M(0),c=M(0),u=M(0),h=M([]),d=[],f=Yd(),m=f.default&&f.default();m&&(Fs(r,m),C(o.value));const y=(P,D)=>{if(P){if(d.push({index:D,el:P}),d.length<r.length)return;h.value=d}};Ie([a,h],()=>{_()});function _(){if(a.value&&h.value.length){const P=a.value.getBoundingClientRect(),D=h.value[o.value].el.getBoundingClientRect();l.value=D.x-P.x,c.value=D.y-P.y+D.height-2,u.value=D.width}}function C(P){o.value=P,i("changedIndex",P),_(),k.value.goto(P)}const k=M();return Ie(k,()=>{k.value&&k.value.reset(s.pages,()=>{k.value.goto(s.initIndex)})}),e({}),(P,D)=>($(),G("div",tv,[w("div",{class:"header",ref_key:"headerRef",ref:a},[($(!0),G(ze,null,yt(s.labels,(U,F)=>($(),G("div",{key:U,class:xt(F==o.value?"active":""),onClick:H=>C(F)},[w("div",{ref_for:!0,ref:H=>y(H,F)},Oe(U),513)],10,nv))),128)),w("div",{class:"indicator",style:Z({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),w("div",sv,[Ee(Mu,{ref_key:"routesRef",ref:k,direction:"rightToLeft",duration:200},null,512)])]))}}),[["styles",[`.tabs[data-v-d151e665]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-d151e665]{flex:1 1 auto}.header[data-v-d151e665]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-d151e665]{color:#5a82f0}.header>div[data-v-d151e665]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-d151e665]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-d151e665]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
119
- `]],["__scopeId","data-v-d151e665"]]),ov=["width","height"],rv=ce({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(n,{expose:e,emit:t}){const s=n;let i=()=>{};const o=M();return Ie(o,()=>{if(!o.value)return;const r=new tt(o.value),a=new Zr(r);a.ctx.strokeStyle=s.brushColor,a.ctx.lineWidth=s.brushSize,a.drawMouseMoveLine("line"),i=()=>{hs.downloadFromSVGString(a.ctx.toRawSVG().raw,s.downloadFileName)}}),e({download:()=>i()}),(r,a)=>($(),G("canvas",{ref_key:"panelRef",ref:o,width:s.canvasWidth,height:s.canvasHeight,style:Z([`border: 1px solid ${r.borderColor}`])},null,12,ov))}}),ta=ue(ce({__name:"ProgressBar.ce",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(0);function r(){o.value=0}function a(l){const c=o.value,u=Math.min(Math.max(0,l),100);nt.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{o.value=h.width},onComplete:()=>{i("complete",o.value)}}).startAuto()}return e({start:r,goto:a}),(l,c)=>($(),G("div",{class:"wrap",style:Z({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[w("div",{class:"bar",style:Z({width:o.value+"%",backgroundColor:s.progressColor})},Oe(s.showText?o.value+"%":""),5)],4))}}),[["styles",[`.wrap[data-v-c0eb8856]{position:relative;overflow:hidden}.bar[data-v-c0eb8856]{position:absolute;top:0;left:0;width:0;height:100%;text-align:center;font-size:12px;display:flex;justify-content:center;align-items:center;color:#666}
120
- `]],["__scopeId","data-v-c0eb8856"]]),av={class:"wrap",style:{}},Fu=ue(ce({customOptions:{ProgressBar:uo},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar.ce",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=()=>{const a=wm();i("progress",a),o.value?.goto(a)};return tt.page.registerGlobalScrollChange(r),qe(()=>{tt.page.removeGlobalScrollChange(r)}),e({}),(a,l)=>($(),G("div",av,[Ee(uo,{ref_key:"bar",ref:o,width:"100%",height:"100%",bgColor:s.bgColor,progressColor:s.progressColor,borderColor:s.borderColor,borderRadius:s.borderRadius,duringTimeGap:s.duringTimeGap,showText:s.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),[["styles",[`.wrap[data-v-5084cdef]{position:relative;overflow:hidden;width:100%;height:100%}
121
- `]],["__scopeId","data-v-5084cdef"]]),lv=["fill"],cv=["fill"],uv=ce({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("svg",{style:Z(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,lv),w("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,cv)],4))}}),S_="",zu=ue(uv,[["__scopeId","data-v-987aed3d"]]),po=n=>(Yn("data-v-330c7adc"),n=n(),Wn(),n),hv=po(()=>w("div",{class:"title"},"车牌颜色",-1)),dv={class:"plate-types"},fv=["onClick"],pv=po(()=>w("div",{class:"title"},"车牌号码",-1)),mv={class:"plate-numbers"},gv=po(()=>w("div",{class:"dot"},"·",-1)),vv=["onClick"],yv=po(()=>w("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Gu=ue(ce({customOptions:{SVGCheck:zu},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],r=M(0),a=gt([]),l=M(-1);function c(){Iu({initPlates:a,completePlateLength:o[r.value].completePlateLength,onPlates:d=>{Fs(a,d),l.value=a.length,a.length===o[r.value].completePlateLength&&i("complete",o[r.value].name,a.join(""))}})}const u=d=>{r.value=d,l.value<=o[d].completePlateLength&&a.length<o[d].completePlateLength?(l.value=a.length,c(),i("clear")):Fs(a,a.slice(0,o[d].completePlateLength)),o[d].completePlateLength===a.length&&i("complete",o[r.value].name,a.join(""))},h=d=>{Fs(a,a.slice(0,d)),l.value=Math.min(Math.max(0,l.value),d),c(),i("clear")};return e({}),(d,f)=>($(),G("div",ur(d.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[hv,w("div",dv,[($(),G(ze,null,yt(o,(m,y)=>w("div",{key:y,class:xt(y==r.value?"checked":""),onClick:_=>u(y)},[w("div",{style:Z(m.style)},null,4),w("div",null,Oe(m.name),1),w("div",null,[Ee(zu,{color:"#ffffff",width:"0.14rem"})])],10,fv)),64))]),pv,w("div",mv,[w("div",{onClick:f[0]||(f[0]=m=>h(0)),class:xt(l.value==0?"current":"")},Oe(a[0]),3),w("div",{onClick:f[1]||(f[1]=m=>h(1)),class:xt(l.value==1?"current":"")},Oe(a[1]),3),gv,($(!0),G(ze,null,yt(o[r.value].completePlateLength-2,m=>($(),G("div",{key:m,class:xt(m+1==l.value?"current":""),onClick:y=>h(m+1)},Oe(a[m+1]),11,vv))),128))]),yv],16))}}),[["styles",[`.plate-mobile[data-v-330c7adc]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-330c7adc]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-330c7adc]{display:flex;justify-content:center}.plate-types>div[data-v-330c7adc]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-330c7adc]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-330c7adc]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-330c7adc]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-330c7adc]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-330c7adc]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-330c7adc]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-330c7adc]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-330c7adc]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-types>div.checked[data-v-330c7adc]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(3){display:block}.plate-numbers[data-v-330c7adc]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-330c7adc]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-330c7adc]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-numbers>div.dot[data-v-330c7adc]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-330c7adc]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
122
- `]],["__scopeId","data-v-330c7adc"]]),_v=["data-number"],bv=["data-number","data-unactive"],xv=["data-number"],wv=["data-number","data-unactive"],na=ue(ce({customOptions:{Pop:At,SVGCleanUp:Jr},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(0),a=gt([]);function l(){a.length==0?r.value=0:a.length==1?r.value=1:r.value=2,a.length>=s.completePlateLength&&u()}Ie(()=>[...s.initPlates],()=>{Fs(a,s.initPlates),l()},{immediate:!0});const c=()=>{o.value.open(),i("open")},u=()=>{o.value.close(),i("close")},h=()=>{a.pop(),l(),i("plates",a)},d=C=>{if(C.target.dataset.unactive||"")return;let P=C.target.dataset.number;P&&(a.push(P),l(),i("plates",a))};e({open:c,close:u});const f=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],y=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],_=["港","澳","学","警","使","领","挂","应","急"];return(C,k)=>($(),lt(At,{ref_key:"popRef",ref:o,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:Qe(()=>[w("div",{class:"popup-plate",style:Z({paddingBottom:$e(oe).safeAreaBottom})},[w("div",null,[w("div",{onClick:u},"关闭")]),w("div",{class:xt(["step",r.value==0?"":"hide"])},[($(),G(ze,null,yt(f,P=>w("div",{key:P,class:"popitem",onClick:d,"data-number":P},Oe(P),9,_v)),64)),w("div",{class:"popitem popitem-clear",onClick:h},[Ee(Jr,{width:"16px"})])],2),w("div",{class:xt(["step",r.value!=0?"":"hide"])},[($(),G(ze,null,yt(m,P=>w("div",{key:P,class:xt(["popitem",r.value!=2?"unactive":""]),onClick:d,"data-number":P,"data-unactive":r.value!=2?"unactive":""},Oe(P),11,bv)),64)),($(),G(ze,null,yt(y,P=>w("div",{key:P,class:"popitem",onClick:d,"data-number":P},Oe(P),9,xv)),64)),($(),G(ze,null,yt(_,P=>w("div",{key:P,class:xt(["popitem",r.value!=2?"unactive":""]),onClick:d,"data-number":P,"data-unactive":r.value!=2?"unactive":""},Oe(P),11,wv)),64)),w("div",{class:"popitem popitem-clear",onClick:h},[Ee(Jr,{width:"16px"})])],2)],4)]),_:1},512))}}),[["styles",[`.popup-plate[data-v-7fa8a410]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-7fa8a410]{display:none!important}.popup-plate>div[data-v-7fa8a410]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-7fa8a410]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-7fa8a410]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-7fa8a410]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-7fa8a410]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-7fa8a410]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-7fa8a410]{background-color:#eee;display:flex;justify-content:center;align-items:center}
123
- `]],["__scopeId","data-v-7fa8a410"]]),Cv={class:"parent"},Ev=ue(ce({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(n,{expose:e,emit:t}){const s=n,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function o(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function r(h){const d=i.filter(f=>f.name===h);return d.length?d[0]:r("未知")}const a=o(s.plate),l=M(r(s.plateType));let c=s.fontColor,u=s.fontSize;switch(s.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return e({}),(h,d)=>($(),G("div",Cv,[w("div",{class:xt(["leading",s.displayType]),style:Z(l.value.style)},Oe(l.value.name),7),w("div",{class:"text",style:Z({color:$e(c),"font-size":$e(u)})},Oe($e(a)),5)]))}}),[["styles",[`.parent[data-v-5a5145f8]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-5a5145f8]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:2px}.leading.chinese[data-v-5a5145f8]{padding:4px}.leading.dot[data-v-5a5145f8]{font-size:0;width:14px;height:14px;border-radius:50%}.text[data-v-5a5145f8]{margin-left:5px;margin-right:5px;line-height:1}
124
- `]],["__scopeId","data-v-5a5145f8"]]),Sv=`.resize-observer[data-v-16da9fc4]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-16da9fc4] object{position:absolute;top:0;left:0;height:100%;width:100%;display:block;overflow:hidden;pointer-events:none;z-index:-1}
125
- `,kv={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const n=document.createElement("object");this._resizeObject=n,n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex",-1),n.onload=this.addResizeHandlers,n.type="text/html",Rr&&this.$el.appendChild(n),n.data="about:blank",Rr||this.$el.appendChild(n)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Rr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Tv={class:"resize-observer",tabindex:"-1"};function Pv(n,e,t,s,i,o){return $(),G("div",Tv)}const Ov=ue(kv,[["render",Pv],["styles",[Sv]],["__scopeId","data-v-16da9fc4"]]),Iv=ue(ce({__name:"MapTianditu.ce",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(n,{expose:e,emit:t}){const s=n,i=M(s.mapWidth),o=M(s.mapHeight);let r;const a=M();return Ie(a,()=>{a.value&&(r=new tt(a.value,!1),r.on("resize",(l,c)=>{i.value=l+"px",o.value=c+"px"}),r.start())}),kn(()=>{Q.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new og(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},l=>{console.log("error",l)})}),qe(()=>{r.destroy()}),e({}),(l,c)=>($(),G("div",ur({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Xe(l.$slots,"default",{width:i.value,height:o.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-7b13fce1]{position:relative;width:100%;height:100%}
126
- `]],["__scopeId","data-v-7b13fce1"]]);var Js=function(){var n=0,e=document.createElement("div");e.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",function(u){u.preventDefault(),s(++n%e.children.length)},!1);function t(u){return e.appendChild(u.dom),u}function s(u){for(var h=0;h<e.children.length;h++)e.children[h].style.display=h===u?"block":"none";n=u}var i=(performance||Date).now(),o=i,r=0,a=t(new Js.Panel("FPS","#0ff","#002")),l=t(new Js.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=t(new Js.Panel("MB","#f08","#201"));return s(0),{REVISION:16,dom:e,addPanel:t,showPanel:s,begin:function(){i=(performance||Date).now()},end:function(){r++;var u=(performance||Date).now();if(l.update(u-i,200),u>o+1e3&&(a.update(r*1e3/(u-o),100),o=u,r=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:e,setMode:s}};Js.Panel=function(n,e,t){var s=1/0,i=0,o=Math.round,r=o(window.devicePixelRatio||1),a=80*r,l=48*r,c=3*r,u=2*r,h=3*r,d=15*r,f=74*r,m=30*r,y=document.createElement("canvas");y.width=a,y.height=l,y.style.cssText="width:80px;height:48px";var _=y.getContext("2d");return _.font="bold "+9*r+"px Helvetica,Arial,sans-serif",_.textBaseline="top",_.fillStyle=t,_.fillRect(0,0,a,l),_.fillStyle=e,_.fillText(n,c,u),_.fillRect(h,d,f,m),_.fillStyle=t,_.globalAlpha=.9,_.fillRect(h,d,f,m),{dom:y,update:function(C,k){s=Math.min(s,C),i=Math.max(i,C),_.fillStyle=t,_.globalAlpha=1,_.fillRect(0,0,a,d),_.fillStyle=e,_.fillText(o(C)+" "+n+" ("+o(s)+"-"+o(i)+")",c,u),_.drawImage(y,h+r,d,f-r,m,h,d,f-r,m),_.fillRect(h+f-r,d,r,m),_.fillStyle=t,_.globalAlpha=.9,_.fillRect(h+f-r,d,r,o((1-C/k)*m))}}};const Nv=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(n,{expose:e}){const t=M();return kn(()=>{const s=new Js,i=s.domElement.style;i.margin="1em",t.value.appendChild(s.domElement),Ye.run(()=>(s.update(),!0))}),e({}),(s,i)=>($(),G("div",{ref_key:"containerRef",ref:t},null,512))}}),Dv=["width","height"],Mv=ce({__name:"Canvas",props:{bgColor:{default:"#333333"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(),a=M(0),l=M(0);let c;Ie(o,()=>{o.value&&(c=new tt(o.value,!1),c.on("resize",(y,_)=>{const C=Ar();a.value=Math.min(y,C.width),l.value=Math.min(_,C.height),f()}),c.start())}),Ie(r,()=>{r.value&&f()});let u,h,d;function f(){u||!r.value||!a.value||!l.value||(u=new tt(r.value,!1),u.on("resize",(y,_)=>{i("resize",y,_),d?.(h)}),u.start(),h=new Zr(u),d?.(h))}function m(){return new Promise(y=>{if(h&&u.width&&u.height)return y(h);d=y})}return qe(()=>{u?.destroy(),c?.destroy()}),e({getCanvasElement:()=>r.value,getCanvas:m}),(y,_)=>($(),G("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:o},[w("canvas",{ref_key:"canvasRef",ref:r,width:a.value,height:l.value,style:Z({backgroundColor:s.bgColor})},null,12,Dv)],512))}}),A_="",en=ue(Mv,[["__scopeId","data-v-a940cf68"]]),$v={class:"ease-graph"},sa=ue(ce({customOptions:{Button:Je,Canvas:en},inheritAttrs:!0,__name:"EaseGraphDisplay.ce",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M();let r;Ie(o,()=>{o.value&&o.value.getCanvas().then(u=>{r=u,i("onMounted",s.easeName),r.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!r||a)return;a=!0,i("onStart",s.easeName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.lineWidth=.5,r.ctx.strokeStyle="rgb(230,230,230)",r.ctx.beginPath(),r.ctx.moveTo(0,s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),r.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),r.ctx.closePath(),r.ctx.stroke(),r.ctx.lineWidth=2,r.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let d=!1,f=!1;nt.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:pe.Easing.Linear.None,onComplete:()=>{d=!0,d&&f&&(i("onCompleted",s.easeName),a=!1)}}).startAuto(),nt.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{r.ctx.beginPath(),r.ctx.moveTo(h.x,h.y),r.ctx.lineTo(u.x,u.y),r.ctx.closePath(),r.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{f=!0,d&&f&&(i("onCompleted",s.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return qe(()=>{r.app.off("showInParent",l)}),e({start:l}),(u,h)=>($(),G("div",$v,[w("div",null,"缓动:"+Oe(u.easeName),1),w("div",null,[w("div",null,[Ee(Je,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Qe(()=>[ut(" 开始 ")]),_:1})]),w("div",null,[Ee(Je,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Qe(()=>[ut(" 选择 ")]),_:1},8,["stylePattern"])])]),w("div",{style:Z({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[Ee(en,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.ease-graph[data-v-57053b1d]{display:inline-block}.ease-graph>div[data-v-57053b1d]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-57053b1d]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div[data-v-57053b1d]{display:inline-block}.ease-graph>div:nth-child(2)>div+div[data-v-57053b1d]{margin-left:10px}
127
- `]],["__scopeId","data-v-57053b1d"]]),Av={class:"ease-graph"},Rv=ce({customOptions:{Button:Je,Canvas:en},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M();let r;Ie(o,()=>{o.value&&o.value.getCanvas().then(u=>{r=u,i("onMounted",s.easeName),r.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!r||a)return;a=!0,i("onStart",s.easeName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.lineWidth=.5,r.ctx.strokeStyle="rgb(230,230,230)",r.ctx.beginPath(),r.ctx.moveTo(0,s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),r.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),r.ctx.closePath(),r.ctx.stroke(),r.ctx.lineWidth=2,r.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let d=!1,f=!1;nt.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:pe.Easing.Linear.None,onComplete:()=>{d=!0,d&&f&&(i("onCompleted",s.easeName),a=!1)}}).startAuto(),nt.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{r.ctx.beginPath(),r.ctx.moveTo(h.x,h.y),r.ctx.lineTo(u.x,u.y),r.ctx.closePath(),r.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{f=!0,d&&f&&(i("onCompleted",s.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return qe(()=>{r.app.off("showInParent",l)}),e({start:l}),(u,h)=>($(),G("div",Av,[w("div",null,"缓动:"+Oe(u.easeName),1),w("div",null,[w("div",null,[Ee(Je,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Qe(()=>[ut(" 开始 ")]),_:1})]),w("div",null,[Ee(Je,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Qe(()=>[ut(" 选择 ")]),_:1},8,["stylePattern"])])]),w("div",{style:Z({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[Ee(en,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),L_="",ju=ue(Rv,[["__scopeId","data-v-a2b487d0"]]),Vv=2e3,Bu=ue(ce({customOptions:{EaseGraphDisplay:ju},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:pe.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:pe.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:pe.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:pe.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:pe.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:pe.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:pe.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:pe.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:pe.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:pe.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:pe.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:pe.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:pe.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:pe.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:pe.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:pe.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:pe.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:pe.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:pe.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:pe.Easing.Circular.In},{easeName:"CircularOut",easeFunction:pe.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:pe.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:pe.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:pe.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:pe.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:pe.Easing.Back.In},{easeName:"BackOut",easeFunction:pe.Easing.Back.Out},{easeName:"BackInOut",easeFunction:pe.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:pe.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:pe.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:pe.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:pe.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:pe.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:pe.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:pe.Easing.createStep(4)},{easeName:"8 steps",easeFunction:pe.Easing.createStep(8)},{easeName:"12 steps",easeFunction:pe.Easing.createStep(12)},{easeName:"16 steps",easeFunction:pe.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:pe.Easing.createNoisyEasing(pe.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:pe.Easing.createNoisyEasing(pe.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:pe.Easing.createNoisyEasing(pe.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:pe.Easing.swing},{easeName:"causeSeizures",easeFunction:pe.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(n,{expose:e,emit:t}){const s=n,i=t,o={};function r(d,f){d&&(o[f]={el:d})}const a=new xc(10);function l(d){a.addTask(()=>(o[d].el.start(),new Promise(f=>{o[d].resolve=f})))}function c(d){o[d].resolve?.()}const u=M("Linear");function h(d,f){u.value=d,i("selectedEaseFunction",d,f)}return h("Linear",pe.Easing.Linear.None),e({}),(d,f)=>($(),G("div",null,[($(!0),G(ze,null,yt(s.easeList,m=>($(),G("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?($(),lt(ju,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:Vv,isSelected:u.value==m.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:y=>r(y,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):Ge("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-b3ce4b26]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-b3ce4b26]{margin:10px}
128
- `]],["__scopeId","data-v-b3ce4b26"]]),Lv={class:"interpolation-graph"},Hu=1/6,Yu=5/6,ia=ue(ce({customOptions:{Button:Je,Canvas:en},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M();let r;Ie(o,()=>{o.value&&o.value.getCanvas().then(y=>{r=y,i("onMounted",s.interpolationName),r.app.on("showInParent",m)})});const a=s.canvasWidth*Hu,l=s.canvasHeight/2,c=[s.canvasWidth*Yu,s.canvasWidth/2],u=[s.canvasHeight*Hu,s.canvasHeight*Yu],h=[...c,a],d=[...u,l];let f=!1;const m=()=>{if(!r||f)return;f=!0,i("onStart",s.interpolationName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.fillStyle="rgb(200,200,200)",r.ctx.fillRect(a-3,l-3,6,6),r.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var y=0;y<c.length;y++)r.ctx.fillRect(c[y]-2,u[y]-2,4,4);let _=!1,C=!1;const k={x:a,y:l,old:{x:a,y:l}};nt.toTween(k,{x:c,y:u},{duration:s.easeDuration,easeFunction:pe.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:D=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.9)",r.ctx.beginPath(),r.ctx.moveTo(D.old.x,D.old.y),r.ctx.lineTo(D.x,D.y),r.ctx.closePath(),r.ctx.stroke(),D.old.x=D.x,D.old.y=D.y},onComplete:()=>{_=!0,_&&C&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto();const P={x:a,y:l,old:{x:a,y:l}};nt.toTween(P,{x:h,y:d},{duration:s.easeDuration,easeFunction:pe.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:D=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.5)",r.ctx.beginPath(),r.ctx.moveTo(D.old.x,D.old.y),r.ctx.lineTo(D.x,D.y),r.ctx.closePath(),r.ctx.stroke(),D.old.x=D.x,D.old.y=D.y},onComplete:()=>{C=!0,_&&C&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto()};return qe(()=>{r.app.off("showInParent",m)}),e({start:m}),(y,_)=>($(),G("div",Lv,[w("div",null,[ut(" 插值:"+Oe(y.interpolationName)+" ",1),Ee(Je,{stylePattern:"outline",height:"32px",onClick:m},{default:Qe(()=>[ut(" 开始 ")]),_:1})]),w("div",{style:Z({width:y.canvasWidth+"px",height:y.canvasHeight+"px"})},[Ee(en,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.interpolation-graph[data-v-8091299b]{display:inline-block}.interpolation-graph>div[data-v-8091299b]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
129
- `]],["__scopeId","data-v-8091299b"]]),Fv={class:"interpolation-graph"},Wu=1/6,Xu=5/6,zv=ce({customOptions:{Button:Je,Canvas:en},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M();let r;Ie(o,()=>{o.value&&o.value.getCanvas().then(y=>{r=y,i("onMounted",s.interpolationName),r.app.on("showInParent",m)})});const a=s.canvasWidth*Wu,l=s.canvasHeight/2,c=[s.canvasWidth*Xu,s.canvasWidth/2],u=[s.canvasHeight*Wu,s.canvasHeight*Xu],h=[...c,a],d=[...u,l];let f=!1;const m=()=>{if(!r||f)return;f=!0,i("onStart",s.interpolationName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.fillStyle="rgb(200,200,200)",r.ctx.fillRect(a-3,l-3,6,6),r.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var y=0;y<c.length;y++)r.ctx.fillRect(c[y]-2,u[y]-2,4,4);let _=!1,C=!1;const k={x:a,y:l,old:{x:a,y:l}};nt.toTween(k,{x:c,y:u},{duration:s.easeDuration,easeFunction:pe.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:D=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.9)",r.ctx.beginPath(),r.ctx.moveTo(D.old.x,D.old.y),r.ctx.lineTo(D.x,D.y),r.ctx.closePath(),r.ctx.stroke(),D.old.x=D.x,D.old.y=D.y},onComplete:()=>{_=!0,_&&C&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto();const P={x:a,y:l,old:{x:a,y:l}};nt.toTween(P,{x:h,y:d},{duration:s.easeDuration,easeFunction:pe.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:D=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.5)",r.ctx.beginPath(),r.ctx.moveTo(D.old.x,D.old.y),r.ctx.lineTo(D.x,D.y),r.ctx.closePath(),r.ctx.stroke(),D.old.x=D.x,D.old.y=D.y},onComplete:()=>{C=!0,_&&C&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto()};return qe(()=>{r.app.off("showInParent",m)}),e({start:m}),(y,_)=>($(),G("div",Fv,[w("div",null,[ut(" 插值:"+Oe(y.interpolationName)+" ",1),Ee(Je,{stylePattern:"outline",height:"32px",onClick:m},{default:Qe(()=>[ut(" 开始 ")]),_:1})]),w("div",{style:Z({width:y.canvasWidth+"px",height:y.canvasHeight+"px"})},[Ee(en,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),B_="",Uu=ue(zv,[["__scopeId","data-v-18aca8d5"]]),Gv=2e3,qu=ue(ce({customOptions:{InterpolationGraphDisplay:Uu},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:pe.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:pe.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:pe.Interpolation.CatmullRom}]}},setup(n,{expose:e,emit:t}){const s=n,i={};function o(c,u){c&&(i[u]={el:c})}const r=new xc(1);function a(c){r.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return e({}),(c,u)=>($(),G("div",null,[($(!0),G(ze,null,yt(s.interpolationList,h=>($(),G("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[Ee(Uu,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:Gv,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:d=>o(d,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
130
- `]],["__scopeId","data-v-7128e350"]]),jv=ue(ce({__name:"SVG.ce",props:{bgColor:{default:"#fefefe"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M();Ie(o,()=>{o.value&&c()});let r,a,l;function c(){r||!o.value||(r=new tt(o.value,!1),r.on("resize",(h,d)=>{i("resize",h,d),l?.(a)}),r.start(),a=new fu(r),l?.(a))}function u(){return new Promise(h=>{if(a&&r.width&&r.height)return h(a);l=h})}return qe(()=>{r?.destroy()}),e({getSVGElement:()=>o.value,getSVG:u}),(h,d)=>($(),G("div",{ref_key:"svgRef",ref:o,class:"svg",style:Z({backgroundColor:s.bgColor})},null,4))}}),[["styles",[`.svg[data-v-94b55b01]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
131
- `]],["__scopeId","data-v-94b55b01"]]),Bv=["width","height"],oa=ue(ce({__name:"Canvas.ce",props:{bgColor:{default:"#333333"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M(),r=M(),a=M(0),l=M(0);let c;Ie(o,()=>{o.value&&(c=new tt(o.value,!1),c.on("resize",(y,_)=>{const C=Ar();a.value=Math.min(y,C.width),l.value=Math.min(_,C.height),f()}),c.start())}),Ie(r,()=>{r.value&&f()});let u,h,d;function f(){u||!r.value||!a.value||!l.value||(u=new tt(r.value,!1),u.on("resize",(y,_)=>{i("resize",y,_),d?.(h)}),u.start(),h=new Zr(u),d?.(h))}function m(){return new Promise(y=>{if(h&&u.width&&u.height)return y(h);d=y})}return qe(()=>{u?.destroy(),c?.destroy()}),e({getCanvasElement:()=>r.value,getCanvas:m}),(y,_)=>($(),G("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:o},[w("canvas",{ref_key:"canvasRef",ref:r,width:a.value,height:l.value,style:Z({backgroundColor:s.bgColor})},null,12,Bv)],512))}}),[["styles",[`.canvas-wrap[data-v-206f56b3]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
132
- `]],["__scopeId","data-v-206f56b3"]]),Hv=ce({__name:"SVG",props:{bgColor:{default:"#fefefe"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=M();Ie(o,()=>{o.value&&c()});let r,a,l;function c(){r||!o.value||(r=new tt(o.value,!1),r.on("resize",(h,d)=>{i("resize",h,d),l?.(a)}),r.start(),a=new fu(r),l?.(a))}function u(){return new Promise(h=>{if(a&&r.width&&r.height)return h(a);l=h})}return qe(()=>{r?.destroy()}),e({getSVGElement:()=>o.value,getSVG:u}),(h,d)=>($(),G("div",{ref_key:"svgRef",ref:o,class:"svg",style:Z({backgroundColor:s.bgColor})},null,4))}}),K_="",Ku=ue(Hv,[["__scopeId","data-v-f2e10199"]]),Zu='<svg width="512" height="512" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd"><path d="M405.614 190.524c17.843 0 32.315-14.472 32.315-32.329s-14.472-32.329-32.315-32.329c-17.87 0-32.342 14.472-32.342 32.33 0 17.856 14.471 32.328 32.342 32.328zm21.479 7.867c-.528-.333-1.11-.569-1.665-.805a37.223 37.223 0 0 0-11.78-5.189l-8.034 8.103-7.811-8.2c-.028 0-.056.014-.084.014-4.135.985-8.2 2.747-11.821 5.133-.639.264-1.277.555-1.901.93-25.1 15.387-39.502 27.57-43.956 98.79-.43 6.924 4.842 12.876 11.738 13.306.278.014.541.028.805.028 6.577 0 12.099-5.12 12.529-11.766 1.512-24.045 3.927-39.627 7.437-50.38v43.47c0 3.386.652 6.535 1.804 9.421-.083.666-.167 1.319-.167 1.998l.028 120.172c0 8.186 6.618 14.832 14.819 14.832 8.2 0 14.832-6.646 14.832-14.832V320.283c.583.028 1.18.07 1.776.07.097 0 .222-.015.333-.015v103.078c0 8.2 6.632 14.832 14.832 14.832 8.2 0 14.833-6.632 14.833-14.832l.014-119.422c1.942-3.608 3.08-7.687 3.08-12.155v-43.11c3.427 10.74 5.827 26.238 7.312 50.02.416 6.646 5.952 11.766 12.515 11.766.25 0 .527 0 .791-.028 6.91-.43 12.168-6.396 11.752-13.306-4.454-71.234-18.87-83.403-43.97-98.79h-.041zm-21.41 66.087h-.152l-7.798-10.67 7.798-52.115h.152l7.798 52.115-7.798 10.67zM63.235 217.927c0 12.682 10.267 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.281-22.95-22.935-22.95c-12.696 0-22.963 10.282-22.963 22.95zm38.211 28.527c-.374-.222-.79-.402-1.179-.569a26.82 26.82 0 0 0-8.367-3.69l-5.702 5.757-5.564-5.827c-.014 0-.042.014-.056.014a26.862 26.862 0 0 0-8.394 3.649c-.458.194-.916.388-1.346.652-15.873 9.727-25.724 17.69-29.914 55.056h17.912c.985-8.366 2.276-14.68 3.857-19.564v19.564h46.981v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.899c-4.176-37.365-14.028-45.316-29.9-55.056v.014zM86.24 293.379h-.097l-5.536-7.576 5.536-36.99h.097l5.536 36.99-5.536 7.576zm67.432-75.452c0 12.682 10.281 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.267-22.95-22.935-22.95c-12.682 0-22.963 10.282-22.963 22.95zm38.212 28.527c-.375-.222-.791-.402-1.18-.569a26.54 26.54 0 0 0-8.366-3.69l-5.703 5.757-5.55-5.827c-.014 0-.042.014-.055.014a26.723 26.723 0 0 0-8.395 3.649c-.458.194-.916.388-1.36.652-15.873 9.727-25.724 17.69-29.914 55.056h17.926c.985-8.366 2.276-14.68 3.858-19.564v19.564h46.98v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.9c-4.191-37.365-14.042-45.316-29.915-55.056v.014zm-15.221 46.925h-.111l-5.536-7.576 5.536-36.99h.11l5.537 36.99-5.536 7.576zm-45.607-104.784c42.624 0 77.297-34.673 77.297-77.297C208.353 68.674 173.68 34 131.056 34c-42.624 0-77.298 34.674-77.298 77.298s34.674 77.297 77.298 77.297zm0-134.074c31.316 0 56.776 25.46 56.776 56.777 0 31.316-25.474 56.776-56.776 56.776-31.302 0-56.777-25.46-56.777-56.776 0-31.316 25.475-56.777 56.777-56.777z"/><path d="M170.918 103.084H139.27V69.908h-16.414v49.59h48.063zm30.137 305.277l-8.464-3.121a64.461 64.461 0 0 0-.707-18.732l8.172-3.774c5.106-2.345 7.354-8.422 4.995-13.528l-4.773-10.365c-2.345-5.106-8.408-7.353-13.514-4.995l-8.187 3.774a64.241 64.241 0 0 0-13.763-12.723l3.121-8.464c1.943-5.272-.763-11.155-6.035-13.098l-10.712-3.954c-5.106-1.873-11.21.944-13.098 6.036l-3.122 8.463a65.463 65.463 0 0 0-18.73.708l-3.775-8.186c-2.345-5.106-8.422-7.34-13.528-4.995L88.57 326.18c-5.106 2.358-7.353 8.436-4.995 13.528l3.774 8.172a64.996 64.996 0 0 0-12.723 13.778l-8.45-3.122c-5.106-1.9-11.21.916-13.112 6.022l-3.94 10.712a10.136 10.136 0 0 0 .305 7.797 10.124 10.124 0 0 0 5.73 5.287l8.464 3.135a64.95 64.95 0 0 0 .708 18.732l-8.187 3.774c-5.106 2.344-7.34 8.422-4.995 13.514l4.787 10.378c2.345 5.106 8.409 7.34 13.528 4.981l8.187-3.774a64.336 64.336 0 0 0 13.778 12.724l-3.122 8.464c-.958 2.553-.847 5.314.305 7.797a10.104 10.104 0 0 0 5.716 5.315l10.712 3.954c2.553.943 5.314.832 7.798-.305a10.034 10.034 0 0 0 5.286-5.73l3.136-8.464a64.931 64.931 0 0 0 18.731-.708l3.76 8.186c2.345 5.092 8.422 7.34 13.528 4.981l10.365-4.773c5.12-2.345 7.354-8.408 4.995-13.528l-3.774-8.172a64.24 64.24 0 0 0 12.71-13.778l8.463 3.136c2.567.957 5.328.832 7.812-.306 2.483-1.137 4.343-3.177 5.286-5.716l3.955-10.712c1.956-5.272-.736-11.141-6.022-13.084l-.014-.014zm-56.083 26.64c-5.342 2.456-11.017 3.705-16.858 3.705-15.693 0-30.08-9.213-36.644-23.463-9.296-20.202-.43-44.192 19.758-53.488a39.873 39.873 0 0 1 16.845-3.704c15.692 0 30.08 9.199 36.643 23.448 9.297 20.202.43 44.206-19.744 53.502zm142.635-185.578V76.458h-52.406V87.82h41.043v161.602H235.2v13.986h41.043v176.227H235.2v11.363h52.406V263.41h47.647l-.805-13.986z"/></g></svg>',Yv={class:"btns"},Wv={class:"btns sub-btns"},Xv={class:"btns sub-btns"},Uv={style:{height:"400px"}},qv={style:{height:"400px"}},Kv={style:{height:"400px"},class:"css-area"},Zv={class:"animate-to-css-group"},Qv={class:"animate-to-css-group"},Jv=ce({customOptions:{Button:Je,SVG:Ku,Canvas:en},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:pe.Easing.Linear.None}},setup(n,{expose:e}){const t=n,s=M(),i=M(),o=M(),r=M(),a=M(),l=M(),c=M(),u=M(),h=M(""),d=M("");function f(j){switch(d.value=j,h.value){case"AnimateToCSS":_e();break;case"AnimateToTweenCSS":J();break}}function m(){const j="PathDGroup";if(h.value==j||!s.value||!i.value)return;h.value=j;const ee=new Qt({svg:Zu,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"}}),S=new et({x:0,y:0,radius:6,attrs:{fill:"#ff0000"}}),A=new et({x:0,y:0,radius:3,attrs:{fill:"#00ff00"}});let O,q,E=0,L=ee.shapes[E].getTotalLength(),te=0;const fe=.01;s.value.getSVG().then(ae=>{ae.clear(),ae.path(ee);const v=ae.path(S),x=ae.path(A),N=ae.click(R=>{q&&ae.delete(q),O&&(O.restore(),ae.update(O)),O=R,R.save(),R.attrs.fill="pink",R.attrs.stroke="green",ae.update(R);const z=R.getBoundingClientRect();z.attrs.fill="none",z.attrs.strokeWidth="4",z.attrs.stroke="#0000ff",q=ae.path(z,{addToShapes:!1})});Ye.run(()=>{if(h.value!==j)return N(),!1;te>1&&(E++,te=0,E>ee.shapes.length-1&&(E=0),L=ee.shapes[E].getTotalLength());let{x:R,y:z}=ee.shapes[E].interpolate(te);v.x=R,v.y=z,ae.update(v);let{x:K,y:se}=ee.shapes[E].getPointAtLength(te*L);return x.x=K,x.y=se,ae.update(x),te+=fe,ae.update(ee),!0})}),i.value.getCanvas().then(ae=>{let v=[ee,S,A];ae.draw(v);const x=ae.click(N=>{ae.ctx.clearRect(),O&&O.restore(),O=N,N.save(),N.attrs.fill="pink",N.attrs.stroke="green",v=[ee,S,A];const R=N.getBoundingClientRect();R&&(R.attrs.fill="none",R.attrs.strokeWidth="4",R.attrs.stroke="#0000ff",v.push(R)),ae.draw(v)});Ye.run(()=>{if(h.value!==j)return x(),!1;te>1&&(E++,te=0,E>ee.shapes.length-1&&(E=0),L=ee.shapes[E].getTotalLength()),ae.ctx.clearRect();let{x:N,y:R}=ee.shapes[E].interpolate(te);S.x=N,S.y=R;let{x:z,y:K}=ee.shapes[E].getPointAtLength(te*L);return A.x=z,A.y=K,te+=fe,ae.draw(v),!0})})}function y(){const j="Shapes";if(h.value==j||!s.value||!i.value)return;h.value=j;const ee=new io({x:100,y:100,scaleOnOrigin:.5,attrs:{fill:"#5a82f0"},enableDrag:!0}),S=new Lt({width:100,height:60,x:200,y:40,borderRadius:10,attrs:{fill:"pink"},enableDrag:!0}),A=new Ur({x:400,y:100,scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)"},enableDrag:!0});s.value.getSVG().then(O=>{O.clear();const q=O.path(ee),E=O.path(S),L=O.path(A);Ye.run(()=>h.value!==j?!1:(O.update(q),O.update(E),O.update(L),!0))}),i.value.getCanvas().then(O=>{Ye.run(()=>h.value!==j?!1:(O.ctx.clearRect(),O.draw([ee,S,A]),!0))})}function _(){const j="Arrow";if(h.value==j||!s.value||!i.value)return;h.value=j;const ee=new io({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:"pink"}});s.value.getSVG().then(S=>{const A=new ct({x:S.app.width/2,y:S.app.height/2,attrs:{"stroke-width":"2",stroke:"pink"}});S.clear();const O=S.path(ee);S.path(A),Ye.run(()=>h.value!==j?!1:(S.update(O),A.fromX=O.x,A.fromY=O.y,S.update(A),!0))}),i.value.getCanvas().then(S=>{const A=new ct({x:S.app.width/2,y:S.app.height/2,attrs:{"stroke-width":"2",stroke:"pink"}});Ye.run(()=>h.value!=j?!1:(S.ctx.clearRect(),A.fromX=ee.x,A.fromY=ee.y,S.draw([A,ee]),!0))})}function C(){const j="PointEase";if(h.value==j)return;h.value=j;function ee(S,A){return new et({x:S,y:A,radius:30,attrs:{fill:eo()},targetToAfterDragFree:{targetX:S,targetY:A},enableDrag:!0})}s.value.getSVG().then(S=>{S.clear();const A=S.path(ee(S.app.width/2,S.app.height/2));Ye.run(()=>h.value!==j?!1:(S.update(A),!0))}),i.value.getCanvas().then(S=>{const A=ee(S.app.width/2,S.app.height/2);Ye.run(()=>h.value!=j?!1:(S.ctx.clearRect(),S.draw(A),!0))})}function k(){const j="Sector";if(h.value==j||!s.value||!i.value)return;h.value=j;const ee=new vu({x:200,y:100,radius:100,startDegree:90,endDegree:180,text:"左边的文字",enableDrag:!0,defaultShowText:!0,attrs:{fill:"pink",stroke:"#666666"}}),S=new vu({x:300,y:100,radius:100,startDegree:0,endDegree:90,text:"右边的文字",enableDrag:!0,attrs:{fill:"pink",stroke:"#666666"}});s.value.getSVG().then(A=>{A.clear(),A.path(ee),A.path(S),Ye.run(()=>h.value!==j?!1:(A.update(ee),A.update(S),!0))}),i.value.getCanvas().then(A=>{Ye.run(()=>h.value!=j?!1:(A.ctx.clearRect(),A.draw([ee,S]),!0))})}function P(){const j="RectGame";if(h.value==j)return;h.value=j;function ee(A){return new Lt({x:Math.random()*A,y:0,width:50,height:50,attrs:{fill:eo()},enableDrag:!0})}const S=.2;s.value.getSVG().then(A=>{A.clear();const O=[];function q(){const L=A.path(ee(A.app.width));return O.push(L),L}let E=q();Ye.run(()=>h.value!==j?!1:(A.isMouseDown?O.forEach(L=>{A.update(L)}):(E&&E.nextFrame({gravity:S}),E&&E.y+E.height>=A.app.height&&(E.y=A.app.height-E.height,E=q()),O.forEach(L=>{E&&E!==L&&E.isIntersectRect(L)&&(E.y=L.y-E.height,E.y>=E.height?E=q():E=null),A.update(L)})),!0))}),i.value.getCanvas().then(A=>{const O=[];function q(){const L=ee(A.app.width);return O.push(L),L}let E=q();Ye.run(()=>h.value!=j?!1:(A.ctx.clearRect(),A.isMouseDown?A.draw(O):(E&&E.nextFrame({gravity:S}),E&&E.y+E.height>=A.ctx.canvas.height&&(E.y=A.ctx.canvas.height-E.height,E=q()),A.draw(O.map(L=>(E&&E!==L&&E.isIntersectRect(L)&&(E.y=L.y-E.height,E.y>=E.height?E=q():E=null),L)))),!0))})}function D(){const j="PointWater";if(h.value==j)return;h.value=j;function ee(S,A){const O=[];for(let q=0;q<80;q++){const E=new et({x:S/2,y:A,radius:2,attrs:{fill:eo()}});E.vx=Math.random()*2-1,E.vy=Math.random()*-10-10,O.push(E)}return O}s.value.getSVG().then(S=>{S.clear();const A=ee(S.app.width,S.app.height).map(O=>S.path(O));Ye.run(()=>h.value!==j?!1:(A.forEach(O=>{O.nextFrame({gravity:.5}),(O.x-O.radius>S.app.width||O.x+O.radius<0||O.y-O.radius>S.app.height||O.y+O.radius<0)&&(O.x=S.app.width/2,O.y=S.app.height,O.vx=Math.random()*2-1,O.vy=Math.random()*-10-10),S.update(O)}),!0))}),i.value.getCanvas().then(S=>{const A=ee(S.app.width,S.app.height);Ye.run(()=>h.value!=j?!1:(S.ctx.clearRect(),S.draw(A.map(O=>(O.nextFrame({gravity:.5}),(O.x-O.radius>S.ctx.canvas.width||O.x+O.radius<0||O.y-O.radius>S.ctx.canvas.height||O.y+O.radius<0)&&(O.x=S.ctx.canvas.width/2,O.y=S.ctx.canvas.height,O.vx=Math.random()*2-1,O.vy=Math.random()*-10-10),O))),!0))})}function U(){const j="PointSpringChain";if(h.value==j)return;h.value=j;function ee(E,L){const te=[];for(let fe=0;fe<3;fe++)te.push(new et({x:E,y:L,radius:20,attrs:{fill:eo()}}));return te}function S(){const E=[];for(let L=0;L<3;L++)E.push(new ct({attrs:{"stroke-width":"1",stroke:"#666666"}}));return E}const A=.03,O=.9,q=2;s.value.getSVG().then(E=>{E.clear();const L=S();L.forEach(fe=>E.path(fe));const te=ee(E.app.width/2,E.app.height/2).map(fe=>E.path(fe));Ye.run(()=>h.value!==j?!1:(te.forEach((fe,ae)=>{if(ae===0)fe.nextFrameSpringTo(E.app.mousePoint,{spring:A,friction:O,gravity:q}),L[ae].fromX=E.app.mousePoint.x,L[ae].fromY=E.app.mousePoint.y,L[ae].x=fe.x,L[ae].y=fe.y;else{const v=te[ae-1];fe.nextFrameSpringTo(v,{spring:A,friction:O,gravity:q}),L[ae].fromX=v.x,L[ae].fromY=v.y,L[ae].x=fe.x,L[ae].y=fe.y}E.update(L[ae]),E.update(fe)}),!0))}),i.value.getCanvas().then(E=>{const L=ee(E.app.width/2,E.app.height/2),te=S();Ye.run(()=>h.value!=j?!1:(E.ctx.clearRect(),L.forEach((fe,ae)=>{if(ae===0)fe.nextFrameSpringTo(E.app.mousePoint,{spring:A,friction:O,gravity:q}),te[ae].fromX=E.app.mousePoint.x,te[ae].fromY=E.app.mousePoint.y,te[ae].x=fe.x,te[ae].y=fe.y;else{const v=L[ae-1];fe.nextFrameSpringTo(v,{spring:A,friction:O,gravity:q}),te[ae].fromX=v.x,te[ae].fromY=v.y,te[ae].x=fe.x,te[ae].y=fe.y}}),E.draw(te),E.draw(L),!0))})}function F(){const j="PointSpringMulti";if(h.value==j)return;h.value=j;function ee(A,O){const q=[];for(let E=0;E<3;E++)q.push(new et({x:Math.random()*A,y:Math.random()*O,radius:10,attrs:{fill:"#00ff00"},enableDrag:!0}));return q}function S(){return[new ct({attrs:{"stroke-width":"1",stroke:"#666666"}}),new ct({attrs:{"stroke-width":"1",stroke:"#666666"}}),new ct({attrs:{"stroke-width":"1",stroke:"#666666"}})]}s.value.getSVG().then(A=>{A.clear();const O=S();O.forEach(L=>A.path(L));const q=ee(A.app.width,A.app.height).map(L=>A.path(L)),E=A.path(new et({radius:20,attrs:{fill:"#ff0000"}}));Ye.run(()=>h.value!==j?!1:(E.nextFrameSpringTo(q,{spring:.03,friction:.9}),q.forEach((L,te)=>{O[te].fromX=E.x,O[te].fromY=E.y,O[te].x=L.x,O[te].y=L.y,A.update(O[te]),A.update(L)}),A.update(E),!0))}),i.value.getCanvas().then(A=>{const O=new et({radius:20,attrs:{fill:"#ff0000"}}),q=ee(A.app.width,A.app.height),E=S();Ye.run(()=>h.value!=j?!1:(A.ctx.clearRect(),O.nextFrameSpringTo(q,{spring:.03,friction:.9}),q.forEach((L,te)=>{E[te].fromX=O.x,E[te].fromY=O.y,E[te].x=L.x,E[te].y=L.y}),A.draw([...E,...q,O]),!0))})}function H(){const j="PointSpringConnect";if(h.value==j)return;h.value=j;function ee(O,q){const E=[];for(let L=0;L<3;L++)E.push(new et({x:Math.random()*O,y:Math.random()*q,radius:15,attrs:{fill:"#ff0000"},enableDrag:!0}));return E}function S(){return[new ct({attrs:{stroke:"#666666","stroke-width":"1"}}),new ct({attrs:{stroke:"#666666","stroke-width":"1"}}),new ct({attrs:{stroke:"#666666","stroke-width":"1"}})]}const A={springLength:120,spring:.03,friction:.9};s.value.getSVG().then(O=>{O.clear();const q=S();q.forEach(L=>O.path(L));const E=ee(O.app.width,O.app.height).map(L=>O.path(L));Ye.run(()=>h.value!==j?!1:(dt.nextFrameSpringConnect(E,A),E.forEach(L=>O.update(L)),q[0].x=E[0].x,q[0].y=E[0].y,q[0].fromX=E[1].x,q[0].fromY=E[1].y,q[1].x=E[1].x,q[1].y=E[1].y,q[1].fromX=E[2].x,q[1].fromY=E[2].y,q[2].x=E[2].x,q[2].y=E[2].y,q[2].fromX=E[0].x,q[2].fromY=E[0].y,q.forEach(L=>O.update(L)),!0))}),i.value.getCanvas().then(O=>{const q=ee(O.app.width,O.app.height),E=S();Ye.run(()=>h.value!=j?!1:(O.ctx.clearRect(),dt.nextFrameSpringConnect(q,A),E[0].x=q[0].x,E[0].y=q[0].y,E[0].fromX=q[1].x,E[0].fromY=q[1].y,E[1].x=q[1].x,E[1].y=q[1].y,E[1].fromX=q[2].x,E[1].fromY=q[2].y,E[2].x=q[2].x,E[2].y=q[2].y,E[2].fromX=q[0].x,E[2].fromY=q[0].y,O.draw([...E,...q]),!0))})}function ve(){const j="QuadraticBezierCurve";if(h.value==j)return;h.value=j;const ee=50;s.value.getSVG().then(S=>{S.clear();const A=new es({x:ee,y:S.app.height-ee,fromX:S.app.width-ee,fromY:S.app.height-ee,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),O=new es({x:ee,y:S.app.height-ee,fromX:S.app.width-ee,fromY:S.app.height-ee,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});S.path(A),S.path(O),Ye.run(()=>h.value!==j?!1:(O.cx=A.cx=S.app.mousePoint.x,O.cy=A.cy=S.app.mousePoint.y,S.update(A),S.update(O),!0))}),i.value.getCanvas().then(S=>{const A=new es({x:ee,y:S.ctx.canvas.height-ee,fromX:S.ctx.canvas.width-ee,fromY:S.ctx.canvas.height-ee,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),O=new es({x:ee,y:S.ctx.canvas.height-ee,fromX:S.ctx.canvas.width-ee,fromY:S.ctx.canvas.height-ee,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});Ye.run(()=>h.value!=j?!1:(S.ctx.clearRect(),O.cx=A.cx=S.app.mousePoint.x,O.cy=A.cy=S.app.mousePoint.y,S.draw([A,O]),!0))})}function be(){const j="PointsRandom";h.value=j;function ee(S,A){const O=[];for(let q=0;q<10;q++){const E=new et({x:Math.random()*S,y:Math.random()*A,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});O.push(E)}return O}s.value.getSVG().then(S=>{const A=ee(S.app.width,S.app.height),O=A.map((q,E)=>new Lt({x:q.x,y:q.y,width:6,height:6,attrs:{fill:E==0?"#ff0000":"#666666"}}));S.clear(),O.forEach(q=>{S.path(q)}),S.path(new fs(A)),i.value.getCanvas().then(q=>{q.ctx.clearRect(),q.draw([...O,new fs(A)])})})}function Ce(){const j="InterpolatePath";if(h.value==j||!s.value||!i.value)return;h.value=j;const ee=new io({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),S=new Lt({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),A=new Ur({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),O=fs.generatePoints(100,100,100,3),q=fs.generatePoints(100,100,100,6);O.attrs.stroke="#666666",q.attrs.stroke="#7EEDFF";const E=je.polymorph([je.fromShape(O),je.fromShape(q),je.fromShape(ee),je.fromShape(S),je.fromShape(A)]),L=E(0);L.enableDrag=!0,s.value.getSVG().then(te=>{te.clear(),te.path(L),i.value.getCanvas().then(fe=>{const ae=nt.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:v=>{E(v.t),te.update(L),fe.ctx.clearRect(),fe.draw(L)},onComplete:()=>{}});ae.tween.start(),Ye.run(()=>h.value!==j?!1:(ae.tween.update()||(te.update(L),fe.ctx.clearRect(),fe.draw(L)),!0))})})}function De(){const j="InterpolatePathGroup";if(h.value==j||!s.value||!i.value)return;h.value=j;const ee=new Qt({svg:Zu,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"}}),S=new io({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),A=new Lt({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),O=new Ur({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),q=Qt.polymorph([Qt.fromShape(S),Qt.fromShape(A),ee,Qt.fromShape(O)]),E=q(0);s.value.getSVG().then(L=>{L.clear(),L.path(E),i.value.getCanvas().then(te=>{nt.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:fe=>{q(fe.t),L.update(E),te.ctx.clearRect(),te.draw(E)},onComplete:()=>{}}).startAuto()})})}const ye=new nt,Ne=new nt;function Le(){const j="AnimateToCSS";h.value=j,ye.fromDOM([o.value,r.value,a.value]),Ne.fromDOM([l.value])}let me=0;function _e(){switch(d.value){case"slideLeft":ye.toCSS("slideLeft",{},++me%3),Ne.toCSS("slideLeft",{direction:me%2==0?"normal":"reverse"});break;case"slideRight":ye.toCSS("slideRight",{easeName:"ease",dur:1e3},--me%3),Ne.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":ye.toCSS("slideDown",{easeName:"ease-out",dur:500},++me%3),Ne.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":ye.toCSS("slideUp",{easeName:"ease-in",dur:500},++me%3),Ne.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":ye.toCSS("flipLeft",{easeName:"linear",dur:1e3},++me%3),Ne.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":ye.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++me%3),Ne.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":ye.toCSS("flipDown",{easeName:"ease",dur:1e3},++me%3),Ne.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":ye.toCSS("flipUp",{easeName:"ease",dur:1e3},++me%3),Ne.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":ye.toCSS("popIn",{easeName:"ease",dur:1e3},++me%3),Ne.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":ye.toCSS("popOut",{easeName:"ease",dur:1e3},++me%3),Ne.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":ye.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},++me%3),Ne.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let re;function V(){const j="AnimateToTweenCSS";h.value=j,Q.setStyle(u.value,{transform:""})}function J(){re||(re=new tt(c.value));const j=50,ee=0,S=0,A=0,O=re.width-j,q=re.height-j,E=re.height-j,L=re.width/2-j/2,te=re.height/2-j/2,fe={},ae={};switch(d.value){case"translateTo":Object.assign(fe,{translateTo:[ee,S]}),Object.assign(ae,{translateTo:[O,q]});break;case"translateXTo":Object.assign(fe,{translateXTo:ee}),Object.assign(ae,{translateXTo:O});break;case"translateYTo":Object.assign(fe,{translateYTo:S}),Object.assign(ae,{translateYTo:q});break;case"translateZTo":Object.assign(fe,{translateTo:[L,te],translateZTo:A}),Object.assign(ae,{translateTo:[L,te],translateZTo:E});break;case"translate3dTo":Object.assign(fe,{translate3dTo:[L-50,te-50,A]}),Object.assign(ae,{translate3dTo:[L+50,te+50,E]});break;case"rotateTo":Object.assign(fe,{translateTo:[L,te],rotateTo:0}),Object.assign(ae,{translateTo:[L,te],rotateTo:180});break;case"rotateXTo":Object.assign(fe,{translateTo:[L,te],rotateXTo:0}),Object.assign(ae,{translateTo:[L,te],rotateXTo:180});break;case"rotateYTo":Object.assign(fe,{translateTo:[L,te],rotateYTo:0}),Object.assign(ae,{translateTo:[L,te],rotateYTo:180});break;case"rotateZTo":Object.assign(fe,{translateTo:[L,te],rotateZTo:0}),Object.assign(ae,{translateTo:[L,te],rotateZTo:180});break;case"rotate3dTo":Object.assign(fe,{translateTo:[L,te],rotate3dTo:[0,0,0]}),Object.assign(ae,{translateTo:[L,te],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(fe,{translateTo:[L,te],scaleTo:1}),Object.assign(ae,{translateTo:[L,te],scaleTo:3});break;case"scaleXTo":Object.assign(fe,{translateTo:[L,te],scaleXTo:1}),Object.assign(ae,{translateTo:[L,te],scaleXTo:3});break;case"scaleYTo":Object.assign(fe,{translateTo:[L,te],scaleYTo:1}),Object.assign(ae,{translateTo:[L,te],scaleYTo:3});break;case"scaleZTo":Object.assign(fe,{translateTo:[L,te],scaleZTo:1}),Object.assign(ae,{translateTo:[L,te],scaleZTo:3});break;case"scale3dTo":Object.assign(fe,{translateTo:[L,te],scale3dTo:[1,1,1]}),Object.assign(ae,{translateTo:[L,te],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(fe,{translateTo:[L,te],skewTo:0}),Object.assign(ae,{translateTo:[L,te],skewTo:60});break;case"skewXTo":Object.assign(fe,{translateTo:[L,te],skewXTo:0}),Object.assign(ae,{translateTo:[L,te],skewXTo:60});break;case"skewYTo":Object.assign(fe,{translateTo:[L,te],skewYTo:0}),Object.assign(ae,{translateTo:[L,te],skewYTo:60});break}nt.toTweenCSS(u.value,fe,ae,{duration:2e3,easeFunction:t.easeFunction,onUpdate:v=>{console.log(v)}}).startAuto()}const Y=[{name:"PathDGroup",type:"PathDGroup",onClick:m},{name:"Shapes",type:"Shapes",onClick:y},{name:"Arrow",type:"Arrow",onClick:_},{name:"targetToAfterDragFree",type:"PointEase",onClick:C},{name:"扇形",type:"Sector",onClick:k},{name:"俄罗斯方块",type:"RectGame",onClick:P},{name:"喷泉",type:"PointWater",onClick:D},{name:"链式弹簧",type:"PointSpringChain",onClick:U},{name:"多点弹簧",type:"PointSpringMulti",onClick:F},{name:"连接弹簧",type:"PointSpringConnect",onClick:H},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:ve},{name:"Points - random",type:"PointsRandom",onClick:be},{name:"线条动画",type:"InterpolatePath",onClick:Ce},{name:"线条动画 group",type:"InterpolatePathGroup",onClick:De},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:Le},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:V}],Pe=[{type:"slideLeft",onClick:()=>f("slideLeft")},{type:"slideRight",onClick:()=>f("slideRight")},{type:"slideDown",onClick:()=>f("slideDown")},{type:"slideUp",onClick:()=>f("slideUp")},{type:"flipLeft",onClick:()=>f("flipLeft")},{type:"flipRight",onClick:()=>f("flipRight")},{type:"flipDown",onClick:()=>f("flipDown")},{type:"flipUp",onClick:()=>f("flipUp")},{type:"popIn",onClick:()=>f("popIn")},{type:"popOut",onClick:()=>f("popOut")},{type:"rotate",onClick:()=>f("rotate")}],de=[{type:"translateTo",onClick:()=>f("translateTo")},{type:"translateXTo",onClick:()=>f("translateXTo")},{type:"translateYTo",onClick:()=>f("translateYTo")},{type:"translateZTo",onClick:()=>f("translateZTo")},{type:"translate3dTo",onClick:()=>f("translate3dTo")},{type:"rotateTo",onClick:()=>f("rotateTo")},{type:"rotateXTo",onClick:()=>f("rotateXTo")},{type:"rotateYTo",onClick:()=>f("rotateYTo")},{type:"rotateZTo",onClick:()=>f("rotateZTo")},{type:"rotate3dTo",onClick:()=>f("rotate3dTo")},{type:"scaleTo",onClick:()=>f("scaleTo")},{type:"scaleXTo",onClick:()=>f("scaleXTo")},{type:"scaleYTo",onClick:()=>f("scaleYTo")},{type:"scaleZTo",onClick:()=>f("scaleZTo")},{type:"scale3dTo",onClick:()=>f("scale3dTo")},{type:"skewTo",onClick:()=>f("skewTo")},{type:"skewXTo",onClick:()=>f("skewXTo")},{type:"skewYTo",onClick:()=>f("skewYTo")}];return qe(()=>{}),e({}),(j,ee)=>($(),G(ze,null,[w("div",Yv,[($(),G(ze,null,yt(Y,S=>Ee(Je,{key:S.type,item:S,onClick:S.onClick,stylePattern:h.value==S.type?"fullfilled":"outline"},{default:Qe(()=>[ut(Oe(S.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Sn(w("div",Wv,[($(),G(ze,null,yt(Pe,S=>Ee(Je,{key:S.type,item:S,onClick:S.onClick,stylePattern:d.value==S.type?"fullfilled":"outline"},{default:Qe(()=>[ut(Oe(S.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[fn,h.value=="AnimateToCSS"]]),Sn(w("div",null," 当前缓动函数:"+Oe(t.easeName),513),[[fn,h.value=="AnimateToTweenCSS"]]),Sn(w("div",Xv,[($(),G(ze,null,yt(de,S=>Ee(Je,{key:S.type,item:S,onClick:S.onClick,stylePattern:d.value==S.type?"fullfilled":"outline"},{default:Qe(()=>[ut(Oe(S.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[fn,h.value=="AnimateToTweenCSS"]]),Sn(w("div",Uv,[Ee(Ku,{ref_key:"svgRef",ref:s},null,512)],512),[[fn,h.value!=="AnimateToCSS"&&h.value!=="AnimateToTweenCSS"]]),Sn(w("div",qv,[Ee(en,{ref_key:"canvasRef",ref:i},null,512)],512),[[fn,h.value!=="AnimateToCSS"&&h.value!=="AnimateToTweenCSS"]]),Sn(w("div",Kv,[w("div",Zv,[w("div",{ref_key:"divOneRef",ref:o},"1",512),w("div",{ref_key:"divTwoRef",ref:r},"2",512),w("div",{ref_key:"divThreeRef",ref:a},"3",512)]),w("div",Qv,[w("div",{ref_key:"divOneSingleRef",ref:l},"one",512)])],512),[[fn,h.value=="AnimateToCSS"]]),Sn(w("div",{ref_key:"tweenCSSContainerRef",ref:c,style:{height:"400px"},class:"css-area"},[w("div",{ref_key:"divTweenTargetRef",ref:u,class:"tween-css-target"},null,512)],512),[[fn,h.value=="AnimateToTweenCSS"]])],64))}}),Qu=ue(Jv,[["styles",[`.btns[data-v-d94eafeb]{display:flex;flex-wrap:wrap}.btns[data-v-d94eafeb]>*{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-d94eafeb]{padding-top:10px;background-color:#dbffff}.css-area[data-v-d94eafeb]{background-color:#fff}.animate-to-css-group[data-v-d94eafeb]{position:relative;width:160px;height:160px;margin:20px;overflow:hidden}.animate-to-css-group>div[data-v-d94eafeb]{width:160px;height:160px;line-height:160px;background-color:#efefef;border:1px solid #333333;text-align:center}.tween-css-target[data-v-d94eafeb]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
133
- `]],["__scopeId","data-v-d94eafeb"]]),ey=["fill"],ty=["fill"],ny=ce({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("svg",{style:Z(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,ey),w("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,ty)],4))}}),sy=ue(ny,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
134
- `]],["__scopeId","data-v-8fe3f9fd"]]),ra=n=>(Yn("data-v-7aebdea0"),n=n(),Wn(),n),iy=[ra(()=>w("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),ra(()=>w("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),ra(()=>w("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],oy=ce({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("svg",{style:Z(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},iy,4))}}),ry=ue(oy,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
135
- `]],["__scopeId","data-v-7aebdea0"]]),ay=["width","height"],ly=["fill"],cy=ce({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[w("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,ly)],8,ay))}}),uy=ue(cy,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
136
- `]],["__scopeId","data-v-8745630f"]]),hy=["width","height"],dy=["fill"],fy=ce({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:oe.colorGrayCC}},setup(n){const e=n;return(t,s)=>($(),G("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:e.color},null,8,dy)],8,hy))}}),py=ue(fy,[["styles",[`svg[data-v-0e77f86d]{transform-origin:center}
137
- `]],["__scopeId","data-v-0e77f86d"]]),my={class:"loading-1"},gy=ce({__name:"Loading1.ce",props:{color:{default:oe.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>($(),G("div",my,[w("div",{class:"rect1",style:t}),w("div",{class:"rect2",style:t}),w("div",{class:"rect3",style:t}),w("div",{class:"rect4",style:t}),w("div",{class:"rect5",style:t})]))}}),vy=ue(gy,[["styles",[`.loading-1[data-v-f7deb691]{position:relative;display:block;overflow:hidden;width:100%;height:100%;text-align:center}.loading-1>div[data-v-f7deb691]{width:6px;height:100%;margin:auto 2px;display:inline-block;animation:stretchdelay-f7deb691 1.2s infinite ease-in-out}.loading-1 .rect2[data-v-f7deb691]{animation-delay:-1.1s}.loading-1 .rect3[data-v-f7deb691]{animation-delay:-1s}.loading-1 .rect4[data-v-f7deb691]{animation-delay:-.9s}.loading-1 .rect5[data-v-f7deb691]{animation-delay:-.8s}@keyframes stretchdelay-f7deb691{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}
138
- `]],["__scopeId","data-v-f7deb691"]]),yy={class:"loading-2"},_y=ce({__name:"Loading2.ce",props:{color:{default:oe.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>($(),G("div",yy,[w("div",{class:"dot1",style:t}),w("div",{class:"dot2",style:t})]))}}),by=ue(_y,[["styles",[`.loading-2[data-v-945f5b2e]{position:relative;display:block;width:100%;height:100%;text-align:center;animation:rotate-945f5b2e 2s infinite linear}.dot1[data-v-945f5b2e],.dot2[data-v-945f5b2e]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:bounce-945f5b2e 2s infinite ease-in-out}.dot2[data-v-945f5b2e]{top:auto;bottom:0;animation-delay:-1s}@keyframes rotate-945f5b2e{to{transform:rotate(360deg)}}@keyframes bounce-945f5b2e{0%,to{transform:scale(0)}50%{transform:scale(1)}}
139
- `]],["__scopeId","data-v-945f5b2e"]]),xy=ce({__name:"Loading3.ce",props:{fromColor:{default:oe.colorPrimary},toColor:{default:oe.colorRed}},setup(n){const e=n,t=`
129
+ `,onClick:()=>{const{x:Oe,y:Le,width:Fe,height:He}=r.value.getBoundingClientRect();be(b.x,b.y,b.width,b.height,Oe,Le,Fe,He,()=>{Pe(),v=!1})}},ge));return be}function k(){if(!o.value||!s.openImageViewWhenClick)return;v=!0;const{x:B,y:R,width:Y,height:fe}=r.value.getBoundingClientRect();E=N(B,R,Y,fe)}return je(()=>{m?.destroy()}),e({}),(B,R)=>(A(),z("div",{ref_key:"imageOutterRef",ref:o,class:"image",style:V({backgroundColor:s.bgColor}),onClick:k},[C("div",{ref_key:"imageInnerRef",ref:r,class:"image-inner",style:V({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),zb="",Xu=le(iv,[["__scopeId","data-v-928690db"]]),ov={style:{position:"absolute",width:"100%",height:"100%"}},rv={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},qu=le(oe({customOptions:{Image:Xu},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]}},setup(n,{expose:e,emit:t}){const s=n,i=D(),o=D(),r=D(),a=D(0);let l;function c(m){a.value=m}function u(){r.value?.forward()}function h(){r.value?.back()}Se(o,()=>{o.value&&(l?.destroy(),l=new st(o.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),Se(r,()=>{r.value&&r.value.reset(s.urls.map(m=>({component:Xe("div",{style:"position:absolute;width:100%;height:100%"},Xe(Xu,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return je(()=>{l?.destroy()}),e({open:f,close:d}),(m,v)=>(A(),ht(Bt,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:Ze(()=>[C("div",ov,[s.urls.length>1?(A(),z("div",rv,_e(a.value+1)+" / "+_e(s.urls.length),1)):Ae("",!0),C("div",{ref_key:"pageRef",ref:o,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[me(Uu,{ref_key:"routesRef",ref:r,direction:s.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),[["styles",[""]],["__scopeId","data-v-06f6e07e"]]),Bb="",av={class:"page"},lv={class:"header"},cv={class:"main"},uv={class:"main-scroll"},hv={class:"footer"},dv=le(oe({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(n,{expose:e,emit:t}){return Gm(n.designWidth),e({}),(i,o)=>(A(),z("div",av,[C("header",lv,[Ue(i.$slots,"header",{},void 0,!0)]),C("div",cv,[C("div",uv,[Ue(i.$slots,"main",{},void 0,!0)])]),C("footer",hv,[Ue(i.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-20686fd2]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-20686fd2]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-20686fd2]{flex:1 1 auto;width:100%}.main-scroll[data-v-20686fd2]>:nth-child(1){min-height:100%}.header[data-v-20686fd2],.footer[data-v-20686fd2]{flex:0 0 auto}
130
+ `]],["__scopeId","data-v-20686fd2"]]),fv=le(oe({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(n,{expose:e,emit:t}){const s=n,i=xt({}),o=xt({});function r(){switch(ss(i),ss(o),s.type){case"table":i.display="table",o.display="table-cell",o.verticalAlign="middle",o.textAlign="center";break;case"transform":o.position="absolute",o.top="50%",o.left="50%",o.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",o.margin="auto"}}return r(),je(()=>{}),e({}),(a,l)=>(A(),z("div",{class:"layout-center",style:V(i)},[C("div",{style:V(o)},[Ue(a.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-db9c6bab]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
131
+ `]],["__scopeId","data-v-db9c6bab"]]),pv={class:"overlay-content",style:V(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},mv=oe({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean},bgColor:{default:Su(ee.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(n,{expose:e,emit:t}){const s=n,i=D();function o(r){s.isGlobal?r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&r&&(i.value.parentElement.style.overflow="hidden")}return Se(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,a)=>s.visible?(A(),z("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:V([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[C("div",pv,[Ue(r.$slots,"default",{},void 0,!0)])],4)):Ae("",!0)}}),yo=le(mv,[["styles",[""]],["__scopeId","data-v-c75aa932"]]),gv=(n=>(Zn("data-v-7542fd44"),n=n(),Qn(),n))(()=>C("div",null,null,-1)),hs=le(oe({customOptions:{Overlay:Fn},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D();let r;const a=xt({}),l=xt({});function c(){switch(ss(a),ss(l),s.directionFrom){case"absolute":r="",a.display="block",l.width="100%",l.height="100%";break;case"top":r="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":r="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":r="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":r="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:r="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}Se(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new Be,h=(E=!0)=>{!r||!o.value||(E?(u.fromDOM(o.value),u.toCSS(r,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(r,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};Se(o,()=>{o.value&&h(!0)},{});const f=D(!1);function d(){f.value=!0}function m(){s.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function b(E){s.directionFrom=="absolute"?o.value&&o.value.children[0]&&!o.value.children[0].contains(E.target)&&s.closeWhenClickOverlay&&v():o.value&&!o.value.contains(E.target)&&s.closeWhenClickOverlay&&m()}return e({open:d,close:m}),(E,I)=>(A(),ht(Fn,{visible:f.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Ze(()=>[C("div",{class:"pop-parent",style:V([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:b},[C("div",{ref_key:"pop",ref:o,class:"pop",style:V([{position:"absolute","z-index":"3000"},l])},[Ue(E.$slots,"default",{},()=>[gv],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),[["styles",[""]],["__scopeId","data-v-7542fd44"]]),vv=(n=>(Zn("data-v-8d198707"),n=n(),Qn(),n))(()=>C("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Ku=le(oe({customOptions:{Pop:Bt,Button:Qe},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(n){const e=n,t=D(),s=D(),i=D(),o=xt({left:"0",top:"0"});Se(s,()=>{r()}),Se(i,()=>{r()});function r(){if(!s.value||!i.value)return;const l=Gr(),c=s.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,f=u.height;let d=c.x+c.width+e.gap,m=c.y;d=Math.max(e.gap,Math.min(d,l.width-h-e.gap)),m=Math.max(e.gap,Math.min(m,l.height-f-e.gap)),o.left=`${d}px`,o.top=`${m}px`}function a(){t.value.open()}return(l,c)=>(A(),z(Me,null,[C("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:a},[Ue(l.$slots,"button",{},()=>[me(Qe,null,{default:Ze(()=>[dt("popover-default-button")]),_:1})],!0)],512),me(Bt,{ref_key:"popRef",ref:t,"direction-from":"absolute",isGlobal:e.isGlobal},{default:Ze(()=>[C("div",{ref_key:"popoverPanelRef",ref:i,style:V([{display:"inline-block",position:"absolute"},o])},[Ue(l.$slots,"panel",{},()=>[vv],!0)],4)]),_:3},8,["isGlobal"])],64))}}),[["styles",[""]],["__scopeId","data-v-8d198707"]]),yv={class:"dialog-parent"},bv={key:0,class:"title"},_v={key:0,class:"title-inner truncate"},xv={class:"custom-content"},wv={class:"custom-content-default"},Cv={key:1,class:"btns"},bo=le(oe({customOptions:{Overlay:Fn,Pop:Bt,Icon:an,Button:Qe},inheritAttrs:!0,__name:"Dialog.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(""),a=D(""),l=D(!1),c=D(""),u=D("");let h,f,d;function m(I){r.value=I?.title||"",a.value=I?.content||"",l.value=typeof I?.showClose=="boolean"?I?.showClose:!1,c.value=I?.cancelText||"",u.value=I?.confirmText||"",o.value.open(),h=I?.onClose,f=I?.onCancel,d=I?.onConfirm,i("open")}function v(){o.value.close(),h?.(),i("close")}function b(){v(),f?.(),i("cancel")}function E(){v(),d?.(),i("confirm")}return e({open:m,close:v}),(I,N)=>(A(),ht(Bt,{ref_key:"popRef",ref:o,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Ze(()=>[C("div",yv,[C("div",{class:"dialog",style:V({minWidth:s.minWidth,maxWidth:s.maxWidth})},[r.value||l.value?(A(),z("div",bv,[r.value?(A(),z("div",_v,_e(r.value),1)):Ae("",!0),l.value?(A(),z("div",{key:1,class:"close",onClick:v},[me(an,{icon:"ic:baseline-close",color:Te(ee).colorGrayCC},null,8,["color"])])):Ae("",!0)])):Ae("",!0),C("div",xv,[Ue(I.$slots,"default",{},()=>[C("div",wv,_e(a.value),1)],!0)]),c.value||u.value?(A(),z("div",Cv,[c.value?(A(),ht(Qe,{key:0,onClick:b,class:"btn",bgColor:Te(ee).colorGrayE6,borderColor:Te(ee).colorGrayE6,fontColor:Te(ee).colorGray33,borderRadius:"0"},{default:Ze(()=>[dt(_e(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ae("",!0),u.value?(A(),ht(Qe,{key:1,onClick:E,class:"btn",borderRadius:"0"},{default:Ze(()=>[dt(_e(u.value),1)]),_:1})):Ae("",!0)])):Ae("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),[["styles",[`.dialog-parent[data-v-8c45bc83]{display:flex;justify-content:center;align-items:center}.dialog[data-v-8c45bc83]{border-radius:8px;background-color:#fff;overflow:hidden}.title[data-v-8c45bc83]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-8c45bc83]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-8c45bc83]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em;text-align:center}.custom-content[data-v-8c45bc83]{font-size:16px;word-break:break-all}.custom-content-default[data-v-8c45bc83]{padding:1em}.btns[data-v-8c45bc83]{display:flex;justify-content:center}.btn[data-v-8c45bc83]{flex:1 1 auto;border-radius:0}
132
+ `]],["__scopeId","data-v-8c45bc83"]]),Sv={class:"loading"},Ev={class:"icon"},kv={style:{width:"8em"}},Tv={key:0,class:"content"},Zu=le(oe({customOptions:{Overlay:Fn,Pop:Bt,Dialog:po,Loading8:Lu},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D("");function a(c){r.value=c||"",o.value.open(),i("open")}function l(){o.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(A(),ht(po,{ref_key:"dialogRef",ref:o,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:Ze(()=>[C("div",Sv,[C("div",Ev,[Ue(c.$slots,"default",{},()=>[C("div",kv,[me(Lu)])],!0)]),r.value?(A(),z("div",Tv,_e(r.value),1)):Ae("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.loading[data-v-8a5155ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1em}.icon[data-v-8a5155ef]{padding:2em 0;display:flex;justify-content:center;align-items:center}.content[data-v-8a5155ef]{font-size:1em;margin-top:-1em;margin-bottom:1em}
133
+ `]],["__scopeId","data-v-8a5155ef"]]),Pv={class:"toast"},Ov={class:"content"},Qu=le(oe({customOptions:{Overlay:Fn,Pop:Bt,Dialog:po},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D("");function a(c,u=1500){r.value=c,o.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){o.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(A(),ht(po,{ref_key:"dialogRef",ref:o,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:Ze(()=>[C("div",Pv,[C("div",Ov,_e(r.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.toast[data-v-9b0eec22]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#333;color:#ccc;padding:1em}.content[data-v-9b0eec22]{font-size:1em}
134
+ `]],["__scopeId","data-v-9b0eec22"]]),Iv={class:"tabs"},Dv=["onClick"],Nv={class:"content"},$v=le(oe({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(s.initIndex),r=xt([]),a=D(),l=D(0),c=D(0),u=D(0),h=D([]),f=[],d=of(),m=d.default&&d.default();m&&(qs(r,m),E(o.value));const v=(N,k)=>{if(N){if(f.push({index:k,el:N}),f.length<r.length)return;h.value=f}};Se([a,h],()=>{b()});function b(){if(a.value&&h.value.length){const N=a.value.getBoundingClientRect(),k=h.value[o.value].el.getBoundingClientRect();l.value=k.x-N.x,c.value=k.y-N.y+k.height-2,u.value=k.width}}function E(N){o.value=N,i("changedIndex",N),b(),I.value.goto(N)}const I=D();return Se(I,()=>{I.value&&I.value.reset(s.pages,()=>{I.value.goto(s.initIndex)})}),e({}),(N,k)=>(A(),z("div",Iv,[C("div",{class:"header",ref_key:"headerRef",ref:a},[(A(!0),z(Me,null,Ct(s.labels,(B,R)=>(A(),z("div",{key:B,class:kt(R==o.value?"active":""),onClick:Y=>E(R)},[C("div",{ref_for:!0,ref:Y=>v(Y,R)},_e(B),513)],10,Dv))),128)),C("div",{class:"indicator",style:V({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),C("div",Nv,[me(Uu,{ref_key:"routesRef",ref:I,direction:"rightToLeft",duration:200},null,512)])]))}}),[["styles",[`.tabs[data-v-d151e665]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-d151e665]{flex:1 1 auto}.header[data-v-d151e665]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-d151e665]{color:#5a82f0}.header>div[data-v-d151e665]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-d151e665]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-d151e665]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
135
+ `]],["__scopeId","data-v-d151e665"]]),Av=["width","height"],Mv=oe({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(n,{expose:e,emit:t}){const s=n;let i=()=>{};const o=D();return Se(o,()=>{if(!o.value)return;const r=new st(o.value),a=new ra(r);a.ctx.strokeStyle=s.brushColor,a.ctx.lineWidth=s.brushSize,a.drawMouseMoveLine("line"),i=()=>{as.downloadFromSVGString(a.ctx.toRawSVG().raw,s.downloadFileName)}}),e({download:()=>i()}),(r,a)=>(A(),z("canvas",{ref_key:"panelRef",ref:o,width:s.canvasWidth,height:s.canvasHeight,style:V([`border: 1px solid ${r.borderColor}`])},null,12,Av))}}),ua=le(oe({__name:"ProgressBar.ce",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(0);function r(){o.value=0}function a(l){const c=o.value,u=Math.min(Math.max(0,l),100);Be.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{o.value=h.width},onComplete:()=>{i("complete",o.value)}}).startAuto()}return e({start:r,goto:a}),(l,c)=>(A(),z("div",{class:"wrap",style:V({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[C("div",{class:"bar",style:V({width:o.value+"%",backgroundColor:s.progressColor})},_e(s.showText?o.value+"%":""),5)],4))}}),[["styles",[`.wrap[data-v-c0eb8856]{position:relative;overflow:hidden}.bar[data-v-c0eb8856]{position:absolute;top:0;left:0;width:0;height:100%;text-align:center;font-size:12px;display:flex;justify-content:center;align-items:center;color:#666}
136
+ `]],["__scopeId","data-v-c0eb8856"]]),Rv={class:"wrap",style:{}},Ju=le(oe({customOptions:{ProgressBar:vo},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar.ce",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=()=>{const a=Mm();i("progress",a),o.value?.goto(a)};return st.page.registerGlobalScrollChange(r),je(()=>{st.page.removeGlobalScrollChange(r)}),e({}),(a,l)=>(A(),z("div",Rv,[me(vo,{ref_key:"bar",ref:o,width:"100%",height:"100%",bgColor:s.bgColor,progressColor:s.progressColor,borderColor:s.borderColor,borderRadius:s.borderRadius,duringTimeGap:s.duringTimeGap,showText:s.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),[["styles",[`.wrap[data-v-5084cdef]{position:relative;overflow:hidden;width:100%;height:100%}
137
+ `]],["__scopeId","data-v-5084cdef"]]),Vv=["fill"],Lv=["fill"],Fv=oe({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("svg",{style:V(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[C("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,Vv),C("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,Lv)],4))}}),f_="",eh=le(Fv,[["__scopeId","data-v-987aed3d"]]),_o=n=>(Zn("data-v-330c7adc"),n=n(),Qn(),n),zv=_o(()=>C("div",{class:"title"},"车牌颜色",-1)),Gv={class:"plate-types"},jv=["onClick"],Bv=_o(()=>C("div",{class:"title"},"车牌号码",-1)),Hv={class:"plate-numbers"},Yv=_o(()=>C("div",{class:"dot"},"·",-1)),Wv=["onClick"],Uv=_o(()=>C("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),th=le(oe({customOptions:{SVGCheck:eh},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],r=D(0),a=xt([]),l=D(-1);function c(){Hu({initPlates:a,completePlateLength:o[r.value].completePlateLength,onPlates:f=>{qs(a,f),l.value=a.length,a.length===o[r.value].completePlateLength&&i("complete",o[r.value].name,a.join(""))}})}const u=f=>{r.value=f,l.value<=o[f].completePlateLength&&a.length<o[f].completePlateLength?(l.value=a.length,c(),i("clear")):qs(a,a.slice(0,o[f].completePlateLength)),o[f].completePlateLength===a.length&&i("complete",o[r.value].name,a.join(""))},h=f=>{qs(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return e({}),(f,d)=>(A(),z("div",pr(f.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[zv,C("div",Gv,[(A(),z(Me,null,Ct(o,(m,v)=>C("div",{key:v,class:kt(v==r.value?"checked":""),onClick:b=>u(v)},[C("div",{style:V(m.style)},null,4),C("div",null,_e(m.name),1),C("div",null,[me(eh,{color:"#ffffff",width:"0.14rem"})])],10,jv)),64))]),Bv,C("div",Hv,[C("div",{onClick:d[0]||(d[0]=m=>h(0)),class:kt(l.value==0?"current":"")},_e(a[0]),3),C("div",{onClick:d[1]||(d[1]=m=>h(1)),class:kt(l.value==1?"current":"")},_e(a[1]),3),Yv,(A(!0),z(Me,null,Ct(o[r.value].completePlateLength-2,m=>(A(),z("div",{key:m,class:kt(m+1==l.value?"current":""),onClick:v=>h(m+1)},_e(a[m+1]),11,Wv))),128))]),Uv],16))}}),[["styles",[`.plate-mobile[data-v-330c7adc]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-330c7adc]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-330c7adc]{display:flex;justify-content:center}.plate-types>div[data-v-330c7adc]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-330c7adc]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-330c7adc]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-330c7adc]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-330c7adc]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-330c7adc]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-330c7adc]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-330c7adc]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-330c7adc]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-types>div.checked[data-v-330c7adc]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(3){display:block}.plate-numbers[data-v-330c7adc]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-330c7adc]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-330c7adc]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-numbers>div.dot[data-v-330c7adc]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-330c7adc]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
138
+ `]],["__scopeId","data-v-330c7adc"]]),Xv=["data-number"],qv=["data-number","data-unactive"],Kv=["data-number"],Zv=["data-number","data-unactive"],ha=le(oe({customOptions:{Pop:Bt,SVGCleanUp:la},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(0),a=xt([]);function l(){a.length==0?r.value=0:a.length==1?r.value=1:r.value=2,a.length>=s.completePlateLength&&u()}Se(()=>[...s.initPlates],()=>{qs(a,s.initPlates),l()},{immediate:!0});const c=()=>{o.value.open(),i("open")},u=()=>{o.value.close(),i("close")},h=()=>{a.pop(),l(),i("plates",a)},f=E=>{if(E.target.dataset.unactive||"")return;let N=E.target.dataset.number;N&&(a.push(N),l(),i("plates",a))};e({open:c,close:u});const d=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],v=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],b=["港","澳","学","警","使","领","挂","应","急"];return(E,I)=>(A(),ht(Bt,{ref_key:"popRef",ref:o,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:Ze(()=>[C("div",{class:"popup-plate",style:V({paddingBottom:Te(ee).safeAreaBottom})},[C("div",null,[C("div",{onClick:u},"关闭")]),C("div",{class:kt(["step",r.value==0?"":"hide"])},[(A(),z(Me,null,Ct(d,N=>C("div",{key:N,class:"popitem",onClick:f,"data-number":N},_e(N),9,Xv)),64)),C("div",{class:"popitem popitem-clear",onClick:h},[me(la,{width:"16px"})])],2),C("div",{class:kt(["step",r.value!=0?"":"hide"])},[(A(),z(Me,null,Ct(m,N=>C("div",{key:N,class:kt(["popitem",r.value!=2?"unactive":""]),onClick:f,"data-number":N,"data-unactive":r.value!=2?"unactive":""},_e(N),11,qv)),64)),(A(),z(Me,null,Ct(v,N=>C("div",{key:N,class:"popitem",onClick:f,"data-number":N},_e(N),9,Kv)),64)),(A(),z(Me,null,Ct(b,N=>C("div",{key:N,class:kt(["popitem",r.value!=2?"unactive":""]),onClick:f,"data-number":N,"data-unactive":r.value!=2?"unactive":""},_e(N),11,Zv)),64)),C("div",{class:"popitem popitem-clear",onClick:h},[me(la,{width:"16px"})])],2)],4)]),_:1},512))}}),[["styles",[`.popup-plate[data-v-7fa8a410]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-7fa8a410]{display:none!important}.popup-plate>div[data-v-7fa8a410]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-7fa8a410]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-7fa8a410]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-7fa8a410]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-7fa8a410]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-7fa8a410]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-7fa8a410]{background-color:#eee;display:flex;justify-content:center;align-items:center}
139
+ `]],["__scopeId","data-v-7fa8a410"]]),Qv={class:"parent"},Jv=le(oe({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(n,{expose:e,emit:t}){const s=n,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function o(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function r(h){const f=i.filter(d=>d.name===h);return f.length?f[0]:r("未知")}const a=o(s.plate),l=D(r(s.plateType));let c=s.fontColor,u=s.fontSize;switch(s.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return e({}),(h,f)=>(A(),z("div",Qv,[C("div",{class:kt(["leading",s.displayType]),style:V(l.value.style)},_e(l.value.name),7),C("div",{class:"text",style:V({color:Te(c),"font-size":Te(u)})},_e(Te(a)),5)]))}}),[["styles",[`.parent[data-v-5a5145f8]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-5a5145f8]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:2px}.leading.chinese[data-v-5a5145f8]{padding:4px}.leading.dot[data-v-5a5145f8]{font-size:0;width:14px;height:14px;border-radius:50%}.text[data-v-5a5145f8]{margin-left:5px;margin-right:5px;line-height:1}
140
+ `]],["__scopeId","data-v-5a5145f8"]]),ey=`.resize-observer[data-v-16da9fc4]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-16da9fc4] object{position:absolute;top:0;left:0;height:100%;width:100%;display:block;overflow:hidden;pointer-events:none;z-index:-1}
141
+ `,ty={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const n=document.createElement("object");this._resizeObject=n,n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex",-1),n.onload=this.addResizeHandlers,n.type="text/html",jr&&this.$el.appendChild(n),n.data="about:blank",jr||this.$el.appendChild(n)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!jr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},ny={class:"resize-observer",tabindex:"-1"};function sy(n,e,t,s,i,o){return A(),z("div",ny)}const iy=le(ty,[["render",sy],["styles",[ey]],["__scopeId","data-v-16da9fc4"]]),oy=le(oe({__name:"MapTianditu.ce",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(n,{expose:e,emit:t}){const s=n,i=D(s.mapWidth),o=D(s.mapHeight);let r;const a=D();return Se(a,()=>{a.value&&(r=new st(a.value,!1),r.on("resize",(l,c)=>{i.value=l+"px",o.value=c+"px"}),r.start())}),$n(()=>{Z.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new Sg(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},l=>{console.log("error",l)})}),je(()=>{r.destroy()}),e({}),(l,c)=>(A(),z("div",pr({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Ue(l.$slots,"default",{width:i.value,height:o.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-7b13fce1]{position:relative;width:100%;height:100%}
142
+ `]],["__scopeId","data-v-7b13fce1"]]);var ai=function(){var n=0,e=document.createElement("div");e.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",function(u){u.preventDefault(),s(++n%e.children.length)},!1);function t(u){return e.appendChild(u.dom),u}function s(u){for(var h=0;h<e.children.length;h++)e.children[h].style.display=h===u?"block":"none";n=u}var i=(performance||Date).now(),o=i,r=0,a=t(new ai.Panel("FPS","#0ff","#002")),l=t(new ai.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=t(new ai.Panel("MB","#f08","#201"));return s(0),{REVISION:16,dom:e,addPanel:t,showPanel:s,begin:function(){i=(performance||Date).now()},end:function(){r++;var u=(performance||Date).now();if(l.update(u-i,200),u>o+1e3&&(a.update(r*1e3/(u-o),100),o=u,r=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:e,setMode:s}};ai.Panel=function(n,e,t){var s=1/0,i=0,o=Math.round,r=o(window.devicePixelRatio||1),a=80*r,l=48*r,c=3*r,u=2*r,h=3*r,f=15*r,d=74*r,m=30*r,v=document.createElement("canvas");v.width=a,v.height=l,v.style.cssText="width:80px;height:48px";var b=v.getContext("2d");return b.font="bold "+9*r+"px Helvetica,Arial,sans-serif",b.textBaseline="top",b.fillStyle=t,b.fillRect(0,0,a,l),b.fillStyle=e,b.fillText(n,c,u),b.fillRect(h,f,d,m),b.fillStyle=t,b.globalAlpha=.9,b.fillRect(h,f,d,m),{dom:v,update:function(E,I){s=Math.min(s,E),i=Math.max(i,E),b.fillStyle=t,b.globalAlpha=1,b.fillRect(0,0,a,f),b.fillStyle=e,b.fillText(o(E)+" "+n+" ("+o(s)+"-"+o(i)+")",c,u),b.drawImage(v,h+r,f,d-r,m,h,f,d-r,m),b.fillRect(h+d-r,f,r,m),b.fillStyle=t,b.globalAlpha=.9,b.fillRect(h+d-r,f,r,o((1-E/I)*m))}}};const ry=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(n,{expose:e}){const t=D();return $n(()=>{const s=new ai,i=s.domElement.style;i.margin="1em",t.value.appendChild(s.domElement),it.run(()=>(s.update(),!0))}),e({}),(s,i)=>(A(),z("div",{ref_key:"containerRef",ref:t},null,512))}}),ay=["width","height"],ly=oe({__name:"Canvas",props:{bgColor:{default:"#333333"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(),a=D(0),l=D(0);let c;Se(o,()=>{o.value&&(c=new st(o.value,!1),c.on("resize",(v,b)=>{const E=Gr();a.value=Math.min(v,E.width),l.value=Math.min(b,E.height),d()}),c.start())}),Se(r,()=>{r.value&&d()});let u,h,f;function d(){u||!r.value||!a.value||!l.value||(u=new st(r.value,!1),u.on("resize",(v,b)=>{h=new ra(u),i("resize",v,b),f?.(h)}),u.start())}function m(){return new Promise(v=>{if(h&&u.width&&u.height)return v(h);f=v})}return je(()=>{u?.destroy(),c?.destroy()}),e({getCanvasElement:()=>r.value,getCanvas:m}),(v,b)=>(A(),z("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:o},[C("canvas",{ref_key:"canvasRef",ref:r,width:a.value,height:l.value,style:V({backgroundColor:s.bgColor})},null,12,ay)],512))}}),C_="",ln=le(ly,[["__scopeId","data-v-98a022ba"]]),cy={class:"ease-graph"},da=le(oe({customOptions:{Button:Qe,Canvas:ln},inheritAttrs:!0,__name:"EaseGraphDisplay.ce",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D();let r;Se(o,()=>{o.value&&o.value.getCanvas().then(u=>{r=u,i("onMounted",s.easeName),r.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!r||a)return;a=!0,i("onStart",s.easeName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.lineWidth=.5,r.ctx.strokeStyle="rgb(230,230,230)",r.ctx.beginPath(),r.ctx.moveTo(0,s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),r.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),r.ctx.closePath(),r.ctx.stroke(),r.ctx.lineWidth=2,r.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let f=!1,d=!1;Be.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:he.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",s.easeName),a=!1)}}).startAuto(),Be.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{r.ctx.beginPath(),r.ctx.moveTo(h.x,h.y),r.ctx.lineTo(u.x,u.y),r.ctx.closePath(),r.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{d=!0,f&&d&&(i("onCompleted",s.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return je(()=>{r.app.off("showInParent",l)}),e({start:l}),(u,h)=>(A(),z("div",cy,[C("div",null,"缓动:"+_e(u.easeName),1),C("div",null,[C("div",null,[me(Qe,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Ze(()=>[dt(" 开始 ")]),_:1})]),C("div",null,[me(Qe,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Ze(()=>[dt(" 选择 ")]),_:1},8,["stylePattern"])])]),C("div",{style:V({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[me(ln,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.ease-graph[data-v-57053b1d]{display:inline-block}.ease-graph>div[data-v-57053b1d]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-57053b1d]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div[data-v-57053b1d]{display:inline-block}.ease-graph>div:nth-child(2)>div+div[data-v-57053b1d]{margin-left:10px}
143
+ `]],["__scopeId","data-v-57053b1d"]]),uy={class:"ease-graph"},hy=oe({customOptions:{Button:Qe,Canvas:ln},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D();let r;Se(o,()=>{o.value&&o.value.getCanvas().then(u=>{r=u,i("onMounted",s.easeName),r.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!r||a)return;a=!0,i("onStart",s.easeName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.lineWidth=.5,r.ctx.strokeStyle="rgb(230,230,230)",r.ctx.beginPath(),r.ctx.moveTo(0,s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),r.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),r.ctx.closePath(),r.ctx.stroke(),r.ctx.lineWidth=2,r.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let f=!1,d=!1;Be.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:he.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",s.easeName),a=!1)}}).startAuto(),Be.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{r.ctx.beginPath(),r.ctx.moveTo(h.x,h.y),r.ctx.lineTo(u.x,u.y),r.ctx.closePath(),r.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{d=!0,f&&d&&(i("onCompleted",s.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return je(()=>{r.app.off("showInParent",l)}),e({start:l}),(u,h)=>(A(),z("div",uy,[C("div",null,"缓动:"+_e(u.easeName),1),C("div",null,[C("div",null,[me(Qe,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Ze(()=>[dt(" 开始 ")]),_:1})]),C("div",null,[me(Qe,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Ze(()=>[dt(" 选择 ")]),_:1},8,["stylePattern"])])]),C("div",{style:V({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[me(ln,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),k_="",nh=le(hy,[["__scopeId","data-v-a2b487d0"]]),dy=2e3,sh=le(oe({customOptions:{EaseGraphDisplay:nh},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:he.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:he.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:he.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:he.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:he.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:he.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:he.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:he.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:he.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:he.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:he.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:he.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:he.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:he.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:he.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:he.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:he.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:he.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:he.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:he.Easing.Circular.In},{easeName:"CircularOut",easeFunction:he.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:he.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:he.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:he.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:he.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:he.Easing.Back.In},{easeName:"BackOut",easeFunction:he.Easing.Back.Out},{easeName:"BackInOut",easeFunction:he.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:he.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:he.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:he.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:he.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:he.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:he.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:he.Easing.createStep(4)},{easeName:"8 steps",easeFunction:he.Easing.createStep(8)},{easeName:"12 steps",easeFunction:he.Easing.createStep(12)},{easeName:"16 steps",easeFunction:he.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:he.Easing.createNoisyEasing(he.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:he.Easing.createNoisyEasing(he.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:he.Easing.createNoisyEasing(he.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:he.Easing.swing},{easeName:"causeSeizures",easeFunction:he.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(n,{expose:e,emit:t}){const s=n,i=t,o={};function r(f,d){f&&(o[d]={el:f})}const a=new $c(10);function l(f){a.addTask(()=>(o[f].el.start(),new Promise(d=>{o[f].resolve=d})))}function c(f){o[f].resolve?.()}const u=D("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",he.Easing.Linear.None),e({}),(f,d)=>(A(),z("div",null,[(A(!0),z(Me,null,Ct(s.easeList,m=>(A(),z("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(A(),ht(nh,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:dy,isSelected:u.value==m.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:v=>r(v,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):Ae("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-b3ce4b26]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-b3ce4b26]{margin:10px}
144
+ `]],["__scopeId","data-v-b3ce4b26"]]),fy={class:"interpolation-graph"},ih=1/6,oh=5/6,fa=le(oe({customOptions:{Button:Qe,Canvas:ln},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D();let r;Se(o,()=>{o.value&&o.value.getCanvas().then(v=>{r=v,i("onMounted",s.interpolationName),r.app.on("showInParent",m)})});const a=s.canvasWidth*ih,l=s.canvasHeight/2,c=[s.canvasWidth*oh,s.canvasWidth/2],u=[s.canvasHeight*ih,s.canvasHeight*oh],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!r||d)return;d=!0,i("onStart",s.interpolationName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.fillStyle="rgb(200,200,200)",r.ctx.fillRect(a-3,l-3,6,6),r.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var v=0;v<c.length;v++)r.ctx.fillRect(c[v]-2,u[v]-2,4,4);let b=!1,E=!1;const I={x:a,y:l,old:{x:a,y:l}};Be.toTween(I,{x:c,y:u},{duration:s.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:k=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.9)",r.ctx.beginPath(),r.ctx.moveTo(k.old.x,k.old.y),r.ctx.lineTo(k.x,k.y),r.ctx.closePath(),r.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{b=!0,b&&E&&(i("onCompleted",s.interpolationName),d=!1)}}).startAuto();const N={x:a,y:l,old:{x:a,y:l}};Be.toTween(N,{x:h,y:f},{duration:s.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:k=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.5)",r.ctx.beginPath(),r.ctx.moveTo(k.old.x,k.old.y),r.ctx.lineTo(k.x,k.y),r.ctx.closePath(),r.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{E=!0,b&&E&&(i("onCompleted",s.interpolationName),d=!1)}}).startAuto()};return je(()=>{r.app.off("showInParent",m)}),e({start:m}),(v,b)=>(A(),z("div",fy,[C("div",null,[dt(" 插值:"+_e(v.interpolationName)+" ",1),me(Qe,{stylePattern:"outline",height:"32px",onClick:m},{default:Ze(()=>[dt(" 开始 ")]),_:1})]),C("div",{style:V({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[me(ln,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.interpolation-graph[data-v-8091299b]{display:inline-block}.interpolation-graph>div[data-v-8091299b]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
145
+ `]],["__scopeId","data-v-8091299b"]]),py={class:"interpolation-graph"},rh=1/6,ah=5/6,my=oe({customOptions:{Button:Qe,Canvas:ln},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D();let r;Se(o,()=>{o.value&&o.value.getCanvas().then(v=>{r=v,i("onMounted",s.interpolationName),r.app.on("showInParent",m)})});const a=s.canvasWidth*rh,l=s.canvasHeight/2,c=[s.canvasWidth*ah,s.canvasWidth/2],u=[s.canvasHeight*rh,s.canvasHeight*ah],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!r||d)return;d=!0,i("onStart",s.interpolationName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.fillStyle="rgb(200,200,200)",r.ctx.fillRect(a-3,l-3,6,6),r.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var v=0;v<c.length;v++)r.ctx.fillRect(c[v]-2,u[v]-2,4,4);let b=!1,E=!1;const I={x:a,y:l,old:{x:a,y:l}};Be.toTween(I,{x:c,y:u},{duration:s.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:k=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.9)",r.ctx.beginPath(),r.ctx.moveTo(k.old.x,k.old.y),r.ctx.lineTo(k.x,k.y),r.ctx.closePath(),r.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{b=!0,b&&E&&(i("onCompleted",s.interpolationName),d=!1)}}).startAuto();const N={x:a,y:l,old:{x:a,y:l}};Be.toTween(N,{x:h,y:f},{duration:s.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:k=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.5)",r.ctx.beginPath(),r.ctx.moveTo(k.old.x,k.old.y),r.ctx.lineTo(k.x,k.y),r.ctx.closePath(),r.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{E=!0,b&&E&&(i("onCompleted",s.interpolationName),d=!1)}}).startAuto()};return je(()=>{r.app.off("showInParent",m)}),e({start:m}),(v,b)=>(A(),z("div",py,[C("div",null,[dt(" 插值:"+_e(v.interpolationName)+" ",1),me(Qe,{stylePattern:"outline",height:"32px",onClick:m},{default:Ze(()=>[dt(" 开始 ")]),_:1})]),C("div",{style:V({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[me(ln,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),D_="",lh=le(my,[["__scopeId","data-v-18aca8d5"]]),gy=2e3,ch=le(oe({customOptions:{InterpolationGraphDisplay:lh},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:he.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:he.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:he.Interpolation.CatmullRom}]}},setup(n,{expose:e,emit:t}){const s=n,i={};function o(c,u){c&&(i[u]={el:c})}const r=new $c(1);function a(c){r.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return e({}),(c,u)=>(A(),z("div",null,[(A(!0),z(Me,null,Ct(s.interpolationList,h=>(A(),z("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[me(lh,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:gy,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>o(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
146
+ `]],["__scopeId","data-v-7128e350"]]),vy=le(oe({__name:"SVG.ce",props:{bgColor:{default:"#fefefe"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D();Se(o,()=>{o.value&&c()});let r,a,l;function c(){r||!o.value||(r=new st(o.value,!1),r.on("resize",(h,f)=>{a=new Ou(r),i("resize",h,f),l?.(a)}),r.start())}function u(){return new Promise(h=>{if(a&&r.width&&r.height)return h(a);l=h})}return je(()=>{r?.destroy()}),e({getSVGElement:()=>o.value,getSVG:u}),(h,f)=>(A(),z("div",{ref_key:"svgRef",ref:o,class:"svg",style:V({backgroundColor:s.bgColor})},null,4))}}),[["styles",[`.svg[data-v-10991674]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
147
+ `]],["__scopeId","data-v-10991674"]]),yy=["width","height"],pa=le(oe({__name:"Canvas.ce",props:{bgColor:{default:"#333333"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(),r=D(),a=D(0),l=D(0);let c;Se(o,()=>{o.value&&(c=new st(o.value,!1),c.on("resize",(v,b)=>{const E=Gr();a.value=Math.min(v,E.width),l.value=Math.min(b,E.height),d()}),c.start())}),Se(r,()=>{r.value&&d()});let u,h,f;function d(){u||!r.value||!a.value||!l.value||(u=new st(r.value,!1),u.on("resize",(v,b)=>{h=new ra(u),i("resize",v,b),f?.(h)}),u.start())}function m(){return new Promise(v=>{if(h&&u.width&&u.height)return v(h);f=v})}return je(()=>{u?.destroy(),c?.destroy()}),e({getCanvasElement:()=>r.value,getCanvas:m}),(v,b)=>(A(),z("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:o},[C("canvas",{ref_key:"canvasRef",ref:r,width:a.value,height:l.value,style:V({backgroundColor:s.bgColor})},null,12,yy)],512))}}),[["styles",[`.canvas-wrap[data-v-8c624790]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
148
+ `]],["__scopeId","data-v-8c624790"]]),by=["max","min","step","value","autofocus"],_y={class:"input-range-label"},xy=oe({customOptions:{},inheritAttrs:!0,__name:"InputRange",props:{max:{default:100},min:{default:0},step:{default:1},defaultValue:{default:0},autofocus:{type:Boolean,default:!1},color:{default:ee.colorPrimary}},emits:["change"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D(s.defaultValue),r=D(Mt((s.defaultValue-s.min)/(s.max-s.min),4)*100);function a(u){o.value=Mt(u.target.value,2),r.value=Mt((o.value-s.min)/(s.max-s.min),4)*100,i("change",o.value)}const l=`
149
+ :root {
150
+ --input-range-color: ${s.color}
151
+ }
152
+ :host {
153
+ --input-range-color: ${s.color}
154
+ }
155
+ `,c=D();return Se(c,()=>{c.value&&Z.setStyleSheet(l,c.value)}),je(()=>{}),e({}),(u,h)=>(A(),z("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[C("input",{type:"range",max:s.max,min:s.min,step:s.step,value:o.value,autofocus:s.autofocus,onInput:a,style:V({background:`linear-gradient(to right, ${s.color} 0%, ${s.color} ${r.value}%, #ffffff ${r.value}%, #ffffff)`})},null,44,by),C("label",_y,_e(o.value),1)],512))}}),L_="",ma=le(xy,[["__scopeId","data-v-ed564377"]]),wy=oe({__name:"SVG",props:{bgColor:{default:"#fefefe"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=D();Se(o,()=>{o.value&&c()});let r,a,l;function c(){r||!o.value||(r=new st(o.value,!1),r.on("resize",(h,f)=>{a=new Ou(r),i("resize",h,f),l?.(a)}),r.start())}function u(){return new Promise(h=>{if(a&&r.width&&r.height)return h(a);l=h})}return je(()=>{r?.destroy()}),e({getSVGElement:()=>o.value,getSVG:u}),(h,f)=>(A(),z("div",{ref_key:"svgRef",ref:o,class:"svg",style:V({backgroundColor:s.bgColor})},null,4))}}),F_="",uh=le(wy,[["__scopeId","data-v-60764462"]]),Cy='<svg width="512" height="512" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd"><path d="M405.614 190.524c17.843 0 32.315-14.472 32.315-32.329s-14.472-32.329-32.315-32.329c-17.87 0-32.342 14.472-32.342 32.33 0 17.856 14.471 32.328 32.342 32.328zm21.479 7.867c-.528-.333-1.11-.569-1.665-.805a37.223 37.223 0 0 0-11.78-5.189l-8.034 8.103-7.811-8.2c-.028 0-.056.014-.084.014-4.135.985-8.2 2.747-11.821 5.133-.639.264-1.277.555-1.901.93-25.1 15.387-39.502 27.57-43.956 98.79-.43 6.924 4.842 12.876 11.738 13.306.278.014.541.028.805.028 6.577 0 12.099-5.12 12.529-11.766 1.512-24.045 3.927-39.627 7.437-50.38v43.47c0 3.386.652 6.535 1.804 9.421-.083.666-.167 1.319-.167 1.998l.028 120.172c0 8.186 6.618 14.832 14.819 14.832 8.2 0 14.832-6.646 14.832-14.832V320.283c.583.028 1.18.07 1.776.07.097 0 .222-.015.333-.015v103.078c0 8.2 6.632 14.832 14.832 14.832 8.2 0 14.833-6.632 14.833-14.832l.014-119.422c1.942-3.608 3.08-7.687 3.08-12.155v-43.11c3.427 10.74 5.827 26.238 7.312 50.02.416 6.646 5.952 11.766 12.515 11.766.25 0 .527 0 .791-.028 6.91-.43 12.168-6.396 11.752-13.306-4.454-71.234-18.87-83.403-43.97-98.79h-.041zm-21.41 66.087h-.152l-7.798-10.67 7.798-52.115h.152l7.798 52.115-7.798 10.67zM63.235 217.927c0 12.682 10.267 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.281-22.95-22.935-22.95c-12.696 0-22.963 10.282-22.963 22.95zm38.211 28.527c-.374-.222-.79-.402-1.179-.569a26.82 26.82 0 0 0-8.367-3.69l-5.702 5.757-5.564-5.827c-.014 0-.042.014-.056.014a26.862 26.862 0 0 0-8.394 3.649c-.458.194-.916.388-1.346.652-15.873 9.727-25.724 17.69-29.914 55.056h17.912c.985-8.366 2.276-14.68 3.857-19.564v19.564h46.981v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.899c-4.176-37.365-14.028-45.316-29.9-55.056v.014zM86.24 293.379h-.097l-5.536-7.576 5.536-36.99h.097l5.536 36.99-5.536 7.576zm67.432-75.452c0 12.682 10.281 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.267-22.95-22.935-22.95c-12.682 0-22.963 10.282-22.963 22.95zm38.212 28.527c-.375-.222-.791-.402-1.18-.569a26.54 26.54 0 0 0-8.366-3.69l-5.703 5.757-5.55-5.827c-.014 0-.042.014-.055.014a26.723 26.723 0 0 0-8.395 3.649c-.458.194-.916.388-1.36.652-15.873 9.727-25.724 17.69-29.914 55.056h17.926c.985-8.366 2.276-14.68 3.858-19.564v19.564h46.98v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.9c-4.191-37.365-14.042-45.316-29.915-55.056v.014zm-15.221 46.925h-.111l-5.536-7.576 5.536-36.99h.11l5.537 36.99-5.536 7.576zm-45.607-104.784c42.624 0 77.297-34.673 77.297-77.297C208.353 68.674 173.68 34 131.056 34c-42.624 0-77.298 34.674-77.298 77.298s34.674 77.297 77.298 77.297zm0-134.074c31.316 0 56.776 25.46 56.776 56.777 0 31.316-25.474 56.776-56.776 56.776-31.302 0-56.777-25.46-56.777-56.776 0-31.316 25.475-56.777 56.777-56.777z"/><path d="M170.918 103.084H139.27V69.908h-16.414v49.59h48.063zm30.137 305.277l-8.464-3.121a64.461 64.461 0 0 0-.707-18.732l8.172-3.774c5.106-2.345 7.354-8.422 4.995-13.528l-4.773-10.365c-2.345-5.106-8.408-7.353-13.514-4.995l-8.187 3.774a64.241 64.241 0 0 0-13.763-12.723l3.121-8.464c1.943-5.272-.763-11.155-6.035-13.098l-10.712-3.954c-5.106-1.873-11.21.944-13.098 6.036l-3.122 8.463a65.463 65.463 0 0 0-18.73.708l-3.775-8.186c-2.345-5.106-8.422-7.34-13.528-4.995L88.57 326.18c-5.106 2.358-7.353 8.436-4.995 13.528l3.774 8.172a64.996 64.996 0 0 0-12.723 13.778l-8.45-3.122c-5.106-1.9-11.21.916-13.112 6.022l-3.94 10.712a10.136 10.136 0 0 0 .305 7.797 10.124 10.124 0 0 0 5.73 5.287l8.464 3.135a64.95 64.95 0 0 0 .708 18.732l-8.187 3.774c-5.106 2.344-7.34 8.422-4.995 13.514l4.787 10.378c2.345 5.106 8.409 7.34 13.528 4.981l8.187-3.774a64.336 64.336 0 0 0 13.778 12.724l-3.122 8.464c-.958 2.553-.847 5.314.305 7.797a10.104 10.104 0 0 0 5.716 5.315l10.712 3.954c2.553.943 5.314.832 7.798-.305a10.034 10.034 0 0 0 5.286-5.73l3.136-8.464a64.931 64.931 0 0 0 18.731-.708l3.76 8.186c2.345 5.092 8.422 7.34 13.528 4.981l10.365-4.773c5.12-2.345 7.354-8.408 4.995-13.528l-3.774-8.172a64.24 64.24 0 0 0 12.71-13.778l8.463 3.136c2.567.957 5.328.832 7.812-.306 2.483-1.137 4.343-3.177 5.286-5.716l3.955-10.712c1.956-5.272-.736-11.141-6.022-13.084l-.014-.014zm-56.083 26.64c-5.342 2.456-11.017 3.705-16.858 3.705-15.693 0-30.08-9.213-36.644-23.463-9.296-20.202-.43-44.192 19.758-53.488a39.873 39.873 0 0 1 16.845-3.704c15.692 0 30.08 9.199 36.643 23.448 9.297 20.202.43 44.206-19.744 53.502zm142.635-185.578V76.458h-52.406V87.82h41.043v161.602H235.2v13.986h41.043v176.227H235.2v11.363h52.406V263.41h47.647l-.805-13.986z"/></g></svg>',Sy={class:"btns"},Ey={class:"btns"},ky={class:"btns sub-btns"},Ty={class:"btns sub-btns"},Py={class:"btns sub-btns"},Oy={style:{width:"100%"}},Iy={style:{width:"100%"}},Dy={style:{height:"400px"}},Ny={style:{height:"400px"}},$y={style:{height:"400px"},class:"css-area"},Ay={class:"animate-to-css-group"},My={class:"animate-to-css-group"},Ry=oe({customOptions:{Button:Qe,InputRange:ma,SVG:uh,Canvas:ln},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:he.Easing.Linear.None}},setup(n,{expose:e}){const t=n,s=D();let i=0,o=0;Se(s,()=>{s.value&&s.value.getSVG().then(P=>{i=P.app.width,o=P.app.height,P.app.on("resize",(S,x)=>{i=S,o=x})})});const r=D(),a=D(),l=D(),c=D(),u=D(),h=D(),f=D(),d=D(""),m=D("");function v(P){switch(m.value=P,d.value){case"AnimateToCSS":$();break;case"AnimateToTweenCSS":Q();break}}const b=new Sn({svg:Cy,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"}});function E(P,S,x=30){return new yt({x:P,y:S,radius:x,attrs:{fill:zt()}})}function I(P,S,x=3){const M=[];for(let X=0;X<x;X++)M.push(new yt({x:Math.random()*P,y:Math.random()*S,radius:10,attrs:{fill:zt()},enableDrag:!0}));return M}function N(){return new uo({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:zt()}})}function k(P,S){return new jt({x:P,y:S,attrs:{"stroke-width":"1",stroke:"#666666"}})}const B=E(0,0,8),R=E(0,0,5);function Y(){const P="PathDGroup";if(d.value==P||!s.value||!r.value)return;d.value=P;let S=[b,B,R];s.value.getSVG().then(x=>{r.value.getCanvas().then(M=>{let X,G;const J=We=>{G&&x.delete(G),X&&X?.restore(),X=We,We.save(),We.attrs.fill="pink",We.attrs.stroke="green",S=[b,B,R],G=We.getBoundingClientRect(),G&&(G.attrs.fill="none",G.attrs.strokeWidth="4",G.attrs.stroke="#0000ff",x.path(G),S.push(G))},W=x.click(We=>{J(We)}),ue=M.click(We=>{J(We)});let pe=0,de=b.shapes[pe].getTotalLength(),Ke=0;const lt=.01;x.clear(),x.path(S),it.run(()=>{if(d.value!==P)return W(),ue(),X?.restore(),!1;Ke>1&&(pe++,Ke=0,pe>b.shapes.length-1&&(pe=0),de=b.shapes[pe].getTotalLength()),M.ctx.clearRect();let{x:We,y:Ts}=b.shapes[pe].interpolate(Ke);B.x=We,B.y=Ts;let{x:ba,y:xo}=b.shapes[pe].getPointAtLength(Ke*de);return R.x=ba,R.y=xo,x.update(S),M.draw(S),Ke+=lt,!0})})})}function fe(){const P="Shapes";if(d.value==P||!s.value||!r.value)return;d.value=P;const S=new uo({x:gt(0,i),y:gt(0,o),scaleOnOrigin:.5,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),x=new Ft({x:gt(0,i),y:gt(0,o),width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),M=new oa({x:gt(0,i),y:gt(0,o),scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),X=new yg({x:gt(0,i),y:gt(0,o),scaleOnOrigin:1,attrs:{fill:zt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),G=new bg({x:gt(0,i),y:gt(0,o),scaleOnOrigin:1,attrs:{fill:zt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),J=new _g({x:gt(0,i),y:gt(0,o),scaleOnOrigin:1,attrs:{fill:zt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),W=new xg({x:gt(0,i),y:gt(0,o),scaleOnOrigin:1,attrs:{fill:zt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),ue=new wg({x:gt(0,i),y:gt(0,o),scaleOnOrigin:1,attrs:{fill:zt()},enableDrag:!0}),pe=new Cg({x:gt(0,i),y:gt(0,o),attrs:{strokeWidth:"2",stroke:"#ff0000",fill:"none"},enableDrag:!0}),de=[S,x,M,X,G,J,W,ue,pe];s.value.getSVG().then(Ke=>{r.value.getCanvas().then(lt=>{Ke.clear(),Ke.path(de),it.run(()=>d.value!==P?!1:(Ke.update(de),lt.ctx.clearRect(),lt.draw(de),!0))})})}function be(){const P="Arrow";d.value==P||!s.value||!r.value||(d.value=P,s.value.getSVG().then(S=>{const x=N(),M=k(S.app.width/2,S.app.height/2);S.clear(),S.path(M),S.path(x),it.run(()=>d.value!==P?!1:(S.update(x),M.fromX=x.x,M.fromY=x.y,S.update(M),!0))}),r.value.getCanvas().then(S=>{const x=N(),M=k(S.app.width/2,S.app.height/2);it.run(()=>d.value!=P?!1:(S.ctx.clearRect(),M.fromX=x.x,M.fromY=x.y,S.draw([M,x]),!0))}))}function ge(){const P="PointEase";d.value!=P&&(d.value=P,s.value.getSVG().then(S=>{const x=E(S.app.width/2,S.app.height/2);S.clear(),S.path(x),x.enableDrag=!0,x.targetToAfterDragFree={targetX:S.app.width/2,targetY:S.app.height/2},it.run(()=>d.value!==P?!1:(S.update(x),!0))}),r.value.getCanvas().then(S=>{const x=E(S.app.width/2,S.app.height/2);x.enableDrag=!0,x.targetToAfterDragFree={targetX:S.app.width/2,targetY:S.app.height/2},it.run(()=>d.value!=P?!1:(S.ctx.clearRect(),S.draw(x),!0))}))}function Pe(){const P="BallCollision";d.value!=P&&(d.value=P,s.value.getSVG().then(S=>{const x=E(50,S.app.height/2);x.mass=2,x.vx=2;const M=E(S.app.width-50,S.app.height/2);M.mass=1,M.vx=-2,S.clear(),S.path([x,M]),r.value.getCanvas().then(X=>{it.run(()=>d.value!=P?!1:(x.nextFrameCollisionTo(M),x.nextFrame(),M.nextFrame(),S.update([x,M]),X.ctx.clearRect(),X.draw([x,M]),!0))})}))}function Oe(){const P="Sector";if(d.value==P||!s.value||!r.value)return;d.value=P;const S=new gg({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,attrs:{fill:"pink",stroke:"#666666"}});s.value.getSVG().then(x=>{x.clear(),x.path(S),r.value.getCanvas().then(M=>{it.run(()=>d.value!=P?!1:(x.update(S),M.ctx.clearRect(),M.draw(S),!0))})})}function Le(){const P="RectGame";if(d.value==P)return;d.value=P;function S(J){return new Ft({x:Math.random()*J,y:0,width:50,height:50,attrs:{fill:zt()},enableDrag:!0})}const x=.2,M=[];function X(){const J=S(i);return M.push(J),J}let G=X();s.value.getSVG().then(J=>{J.clear(),J.path(M),r.value.getCanvas().then(W=>{it.run(()=>d.value!=P?!1:(W.ctx.clearRect(),J.isMouseDown||W.isMouseDown?(J.update(M),W.draw(M)):(G&&G.nextFrame({gravity:x}),G&&G.y+G.height>=W.ctx.canvas.height&&(G.y=W.ctx.canvas.height-G.height,G=X(),J.path(G)),M.forEach(ue=>(G&&G!==ue&&G.isIntersectRect(ue)&&(G.y=ue.y-G.height,G.y>=G.height?(G=X(),J.path(G)):G=null),ue)),J.update(M),W.draw(M)),!0))})})}function Fe(){const P="PointWater";if(d.value==P)return;d.value=P;function S(x,M){const X=[];for(let G=0;G<80;G++){const J=new yt({x:x/2,y:M,radius:2,attrs:{fill:zt()}});J.vx=Math.random()*2-1,J.vy=Math.random()*-10-10,X.push(J)}return X}s.value.getSVG().then(x=>{const M=S(x.app.width,x.app.height);x.clear(),x.path(M),r.value.getCanvas().then(X=>{it.run(()=>d.value!=P?!1:(M.forEach(G=>{G.nextFrame({gravity:.5}),(G.x-G.radius>x.app.width||G.x+G.radius<0||G.y-G.radius>x.app.height||G.y+G.radius<0)&&(G.x=x.app.width/2,G.y=x.app.height,G.vx=Math.random()*2-1,G.vy=Math.random()*-10-10)}),x.update(M),X.ctx.clearRect(),X.draw(M),!0))})})}function He(){const P="PointSpringChain";if(d.value==P)return;d.value=P;function S(J,W){const ue=[];for(let pe=0;pe<3;pe++)ue.push(new yt({x:J,y:W,radius:20,attrs:{fill:zt()}}));return ue}function x(){const J=[];for(let W=0;W<3;W++)J.push(new jt({attrs:{"stroke-width":"1",stroke:"#666666"}}));return J}const M=.03,X=.9,G=2;s.value.getSVG().then(J=>{const W=x(),ue=S(J.app.width/2,J.app.height/2);J.clear(),J.path(W),J.path(ue),it.run(()=>d.value!==P?!1:(ue.forEach((pe,de)=>{if(de===0)pe.nextFrameSpringTo(J.app.mousePoint,{spring:M,friction:X,gravity:G}),W[de].fromX=J.app.mousePoint.x,W[de].fromY=J.app.mousePoint.y,W[de].x=pe.x,W[de].y=pe.y;else{const Ke=ue[de-1];pe.nextFrameSpringTo(Ke,{spring:M,friction:X,gravity:G}),W[de].fromX=Ke.x,W[de].fromY=Ke.y,W[de].x=pe.x,W[de].y=pe.y}J.update(W[de]),J.update(pe)}),!0))}),r.value.getCanvas().then(J=>{const W=x(),ue=S(J.app.width/2,J.app.height/2);it.run(()=>d.value!=P?!1:(J.ctx.clearRect(),ue.forEach((pe,de)=>{if(de===0)pe.nextFrameSpringTo(J.app.mousePoint,{spring:M,friction:X,gravity:G}),W[de].fromX=J.app.mousePoint.x,W[de].fromY=J.app.mousePoint.y,W[de].x=pe.x,W[de].y=pe.y;else{const Ke=ue[de-1];pe.nextFrameSpringTo(Ke,{spring:M,friction:X,gravity:G}),W[de].fromX=Ke.x,W[de].fromY=Ke.y,W[de].x=pe.x,W[de].y=pe.y}}),J.draw(W),J.draw(ue),!0))})}function Ie(){const P="PointSpringMulti";d.value!=P&&(d.value=P,s.value.getSVG().then(S=>{const x=[k(0,0),k(0,0),k(0,0)],M=I(S.app.width,S.app.height),X=new yt({radius:20,attrs:{fill:"#ff0000"}});S.clear(),S.path([...x,...M,X]),r.value.getCanvas().then(G=>{it.run(()=>d.value!=P?!1:(X.nextFrameSpringTo(M,{spring:.03,friction:.9}),M.forEach((J,W)=>{x[W].fromX=X.x,x[W].fromY=X.y,x[W].x=J.x,x[W].y=J.y}),S.update([...x,...M,X]),G.ctx.clearRect(),G.draw([...x,...M,X]),!0))})}))}function ve(){const P="PointSpringConnect";d.value!=P&&(d.value=P,s.value.getSVG().then(S=>{const x=[k(0,0),k(0,0),k(0,0)],M=I(S.app.width,S.app.height),X={springLength:120,spring:.03,friction:.9};S.clear(),S.path([...x,...M]),r.value.getCanvas().then(G=>{it.run(()=>d.value!=P?!1:(vt.nextFrameSpringConnect(M,X),x[0].x=M[0].x,x[0].y=M[0].y,x[0].fromX=M[1].x,x[0].fromY=M[1].y,x[1].x=M[1].x,x[1].y=M[1].y,x[1].fromX=M[2].x,x[1].fromY=M[2].y,x[2].x=M[2].x,x[2].y=M[2].y,x[2].fromX=M[0].x,x[2].fromY=M[0].y,S.update([...x,...M]),G.ctx.clearRect(),G.draw([...x,...M]),!0))})}))}function F(){const P="QuadraticBezierCurve";if(d.value==P)return;d.value=P;const S=50;s.value.getSVG().then(x=>{const M=new cs({x:S,y:x.app.height-S,fromX:x.app.width-S,fromY:x.app.height-S,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),X=new cs({x:S,y:x.app.height-S,fromX:x.app.width-S,fromY:x.app.height-S,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});x.clear(),x.path(M),x.path(X),it.run(()=>d.value!==P?!1:(X.cx=M.cx=x.app.mousePoint.x,X.cy=M.cy=x.app.mousePoint.y,x.update(M),x.update(X),!0))}),r.value.getCanvas().then(x=>{const M=new cs({x:S,y:x.ctx.canvas.height-S,fromX:x.ctx.canvas.width-S,fromY:x.ctx.canvas.height-S,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),X=new cs({x:S,y:x.ctx.canvas.height-S,fromX:x.ctx.canvas.width-S,fromY:x.ctx.canvas.height-S,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});it.run(()=>d.value!=P?!1:(x.ctx.clearRect(),X.cx=M.cx=x.app.mousePoint.x,X.cy=M.cy=x.app.mousePoint.y,x.draw([M,X]),!0))})}function te(){const P="PointsRandom";d.value=P;function S(x,M){const X=[];for(let G=0;G<10;G++){const J=new yt({x:Math.random()*x,y:Math.random()*M,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});X.push(J)}return X}s.value.getSVG().then(x=>{const M=S(x.app.width,x.app.height),X=M.map((G,J)=>new Ft({x:G.x,y:G.y,width:6,height:6,attrs:{fill:J==0?"#ff0000":"#666666"}}));x.clear(),x.path(X),x.path(new Ss(M)),r.value.getCanvas().then(G=>{G.ctx.clearRect(),G.draw([...X,new Ss(M)])})})}function q(){const P="InterpolatePath";if(d.value==P||!s.value||!r.value)return;d.value=P;const S=new uo({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),x=new Ft({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),M=new oa({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),X=Ss.generatePoints(100,100,100,3),G=Ss.generatePoints(100,100,100,6);X.attrs.stroke="#666666",G.attrs.stroke="#7EEDFF";const J=we.polymorph([we.fromShape(X),we.fromShape(G),we.fromShape(S),we.fromShape(x),we.fromShape(M)]),W=J(0);W.enableDrag=!0,s.value.getSVG().then(ue=>{ue.clear(),ue.path(W),r.value.getCanvas().then(pe=>{const de=Be.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:Ke=>{J(Ke.t),ue.update(W),pe.ctx.clearRect(),pe.draw(W)},onComplete:()=>{}});de.tween.start(),it.run(()=>d.value!==P?!1:(de.tween.update()||(ue.update(W),pe.ctx.clearRect(),pe.draw(W)),!0))})})}function Ee(){const P="InterpolatePathGroup";if(d.value==P||!s.value||!r.value)return;d.value=P;const S=new uo({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),x=new Ft({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),M=new oa({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),X=Sn.polymorph([Sn.fromShape(S),Sn.fromShape(x),b,Sn.fromShape(M)]),G=X(0);s.value.getSVG().then(J=>{J.clear(),J.path(G),r.value.getCanvas().then(W=>{Be.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:ue=>{X(ue.t),J.update(G),W.ctx.clearRect(),W.draw(G)},onComplete:()=>{}}).startAuto()})})}const re=we.fromSVGPathD("M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"),$e=+re.getTotalLength().toFixed(0),Re=D($e),ze=D(Math.floor($e/2));function Je(P){Re.value=P,re.setAttr("strokeDasharray",`${Re.value} ${Re.value}`),s.value.getSVG().then(S=>{S.update(re)}),r.value.getCanvas().then(S=>{S.ctx.clearRect(),S.draw(re)})}function Ye(P){ze.value=P,re.setAttr("strokeDashoffset",`${ze.value}`),s.value.getSVG().then(S=>{S.update(re)}),r.value.getCanvas().then(S=>{S.ctx.clearRect(),S.draw(re)})}function Rt(){const P="StrokeDash";d.value==P||!s.value||!r.value||(d.value=P,re.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${Re.value} ${Re.value}`,strokeDashoffset:`${ze.value}`}),s.value.getSVG().then(S=>{S.clear(),S.path(re)}),r.value.getCanvas().then(S=>{S.ctx.clearRect(),S.draw(re)}))}function qe(){const P="StrokeDashAuto";d.value==P||!s.value||!r.value||(d.value=P,re.setAttr({stroke:"#ff0000",strokeWidth:"4"}),s.value.getSVG().then(S=>{S.clear(),S.path(re),r.value.getCanvas().then(x=>{re.strokeDashToTween({duration:4e3,easeFunction:t.easeFunction,onUpdate:()=>{S.update(re),x.ctx.clearRect(),x.draw(re)}}).startAuto()})}))}function pt(){const P="StrokeDashGroupParallelAuto";d.value==P||!s.value||!r.value||(d.value=P,s.value.getSVG().then(S=>{S.clear(),b.setAttrs({stroke:"none"}),S.path(b),r.value.getCanvas().then(x=>{x.ctx.clearRect(),b.strokeDashToTween({type:"parallel",duration:4e3,easeFunction:t.easeFunction,precision:.05,onGroupStart:()=>{b.setAttrs({stroke:zt()})},onGroupUpdate:()=>{S.update(b),x.ctx.clearRect(),x.draw(b)}}).startAuto()})}))}function Ht(){const P="StrokeDashGroupSequenceAuto";d.value==P||!s.value||!r.value||(d.value=P,s.value.getSVG().then(S=>{S.clear(),b.setAttrs({stroke:"none"}),S.path(b),r.value.getCanvas().then(x=>{x.ctx.clearRect(),b.strokeDashToTween({type:"sequence",duration:1e3,easeFunction:t.easeFunction,precision:.05,onGroupStart:()=>{b.setAttrs({stroke:zt()})},onGroupUpdate:()=>{S.update(b),x.ctx.clearRect(),x.draw(b)}}).startAuto()})}))}const rt=new Be,at=new Be;function y(){const P="AnimateToCSS";d.value=P,rt.fromDOM([a.value,l.value,c.value]),at.fromDOM([u.value])}let w=0;function $(){switch(m.value){case"slideLeft":rt.toCSS("slideLeft",{},++w%3),at.toCSS("slideLeft",{direction:w%2==0?"normal":"reverse"});break;case"slideRight":rt.toCSS("slideRight",{easeName:"ease",dur:1e3},--w%3),at.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":rt.toCSS("slideDown",{easeName:"ease-out",dur:500},++w%3),at.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":rt.toCSS("slideUp",{easeName:"ease-in",dur:500},++w%3),at.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":rt.toCSS("flipLeft",{easeName:"linear",dur:1e3},++w%3),at.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":rt.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++w%3),at.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":rt.toCSS("flipDown",{easeName:"ease",dur:1e3},++w%3),at.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":rt.toCSS("flipUp",{easeName:"ease",dur:1e3},++w%3),at.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":rt.toCSS("popIn",{easeName:"ease",dur:1e3},++w%3),at.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":rt.toCSS("popOut",{easeName:"ease",dur:1e3},++w%3),at.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":rt.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},++w%3),at.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let L;function j(){const P="AnimateToTweenCSS";d.value=P,Z.setStyle(f.value,{transform:""})}function Q(){L||(L=new st(h.value));const P=50,S=0,x=0,M=0,X=L.width-P,G=L.height-P,J=L.height-P,W=L.width/2-P/2,ue=L.height/2-P/2,pe={},de={};switch(m.value){case"translateTo":Object.assign(pe,{translateTo:[S,x]}),Object.assign(de,{translateTo:[X,G]});break;case"translateXTo":Object.assign(pe,{translateXTo:S}),Object.assign(de,{translateXTo:X});break;case"translateYTo":Object.assign(pe,{translateYTo:x}),Object.assign(de,{translateYTo:G});break;case"translateZTo":Object.assign(pe,{translateTo:[W,ue],translateZTo:M}),Object.assign(de,{translateTo:[W,ue],translateZTo:J});break;case"translate3dTo":Object.assign(pe,{translate3dTo:[W-50,ue-50,M]}),Object.assign(de,{translate3dTo:[W+50,ue+50,J]});break;case"rotateTo":Object.assign(pe,{translateTo:[W,ue],rotateTo:0}),Object.assign(de,{translateTo:[W,ue],rotateTo:180});break;case"rotateXTo":Object.assign(pe,{translateTo:[W,ue],rotateXTo:0}),Object.assign(de,{translateTo:[W,ue],rotateXTo:180});break;case"rotateYTo":Object.assign(pe,{translateTo:[W,ue],rotateYTo:0}),Object.assign(de,{translateTo:[W,ue],rotateYTo:180});break;case"rotateZTo":Object.assign(pe,{translateTo:[W,ue],rotateZTo:0}),Object.assign(de,{translateTo:[W,ue],rotateZTo:180});break;case"rotate3dTo":Object.assign(pe,{translateTo:[W,ue],rotate3dTo:[0,0,0]}),Object.assign(de,{translateTo:[W,ue],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(pe,{translateTo:[W,ue],scaleTo:1}),Object.assign(de,{translateTo:[W,ue],scaleTo:3});break;case"scaleXTo":Object.assign(pe,{translateTo:[W,ue],scaleXTo:1}),Object.assign(de,{translateTo:[W,ue],scaleXTo:3});break;case"scaleYTo":Object.assign(pe,{translateTo:[W,ue],scaleYTo:1}),Object.assign(de,{translateTo:[W,ue],scaleYTo:3});break;case"scaleZTo":Object.assign(pe,{translateTo:[W,ue],scaleZTo:1}),Object.assign(de,{translateTo:[W,ue],scaleZTo:3});break;case"scale3dTo":Object.assign(pe,{translateTo:[W,ue],scale3dTo:[1,1,1]}),Object.assign(de,{translateTo:[W,ue],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(pe,{translateTo:[W,ue],skewTo:0}),Object.assign(de,{translateTo:[W,ue],skewTo:60});break;case"skewXTo":Object.assign(pe,{translateTo:[W,ue],skewXTo:0}),Object.assign(de,{translateTo:[W,ue],skewXTo:60});break;case"skewYTo":Object.assign(pe,{translateTo:[W,ue],skewYTo:0}),Object.assign(de,{translateTo:[W,ue],skewYTo:60});break}Be.toTweenCSS(f.value,pe,de,{duration:2e3,easeFunction:t.easeFunction,onUpdate:Ke=>{}}).startAuto()}function se(){const P="Rosetta";d.value==P||!s.value||!r.value||(d.value=P,s.value.getSVG().then(S=>{r.value.getCanvas().then(x=>{const M=we.generateRosetta(120,120,55,35,6);M.setAttr({stroke:"none",fill:"none"});const X=new Ft({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),G=new we({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});S.clear(),x.ctx.clearRect(),S.path([G,X]),Be.toTween({progress:0},{progress:1},{duration:15e3,onUpdate:J=>{const W=M.trailPath(G,J.progress);X.degree=W.alpha+90,X.x=W.x,X.y=W.y,S.update([G,X]),x.ctx.clearRect(),x.draw([G,X])}}).startAuto()})}))}const H=[{name:"PathDGroup",type:"PathDGroup",onClick:Y},{name:"Shapes",type:"Shapes",onClick:fe},{name:"Arrow",type:"Arrow",onClick:be},{name:"targetToAfterDragFree",type:"PointEase",onClick:ge},{name:"ballCollision",type:"BallCollision",onClick:Pe},{name:"俄罗斯方块",type:"RectGame",onClick:Le},{name:"喷泉",type:"PointWater",onClick:Fe},{name:"链式弹簧",type:"PointSpringChain",onClick:He},{name:"多点弹簧",type:"PointSpringMulti",onClick:Ie},{name:"连接弹簧",type:"PointSpringConnect",onClick:ve},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:F},{name:"Points - random",type:"PointsRandom",onClick:te},{name:"线条动画",type:"InterpolatePath",onClick:q},{name:"线条动画 pathDGroup",type:"InterpolatePathGroup",onClick:Ee},{name:"strokeDash",type:"StrokeDash",onClick:Rt},{name:"strokeDashAuto",type:"StrokeDashAuto",onClick:qe},{name:"strokeDashGroupParallelAuto",type:"StrokeDashGroupParallelAuto",onClick:pt},{name:"strokeDashGroupSequenceAuto",type:"StrokeDashGroupSequenceAuto",onClick:Ht},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:y},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:j},{name:"扇形",type:"Sector",onClick:Oe},{name:"rosetta",type:"Rosetta",onClick:se}],ne=[{type:"slideLeft",onClick:()=>v("slideLeft")},{type:"slideRight",onClick:()=>v("slideRight")},{type:"slideDown",onClick:()=>v("slideDown")},{type:"slideUp",onClick:()=>v("slideUp")},{type:"flipLeft",onClick:()=>v("flipLeft")},{type:"flipRight",onClick:()=>v("flipRight")},{type:"flipDown",onClick:()=>v("flipDown")},{type:"flipUp",onClick:()=>v("flipUp")},{type:"popIn",onClick:()=>v("popIn")},{type:"popOut",onClick:()=>v("popOut")},{type:"rotate",onClick:()=>v("rotate")}],U=[{type:"translateTo",onClick:()=>v("translateTo")},{type:"translateXTo",onClick:()=>v("translateXTo")},{type:"translateYTo",onClick:()=>v("translateYTo")},{type:"translateZTo",onClick:()=>v("translateZTo")},{type:"translate3dTo",onClick:()=>v("translate3dTo")},{type:"rotateTo",onClick:()=>v("rotateTo")},{type:"rotateXTo",onClick:()=>v("rotateXTo")},{type:"rotateYTo",onClick:()=>v("rotateYTo")},{type:"rotateZTo",onClick:()=>v("rotateZTo")},{type:"rotate3dTo",onClick:()=>v("rotate3dTo")},{type:"scaleTo",onClick:()=>v("scaleTo")},{type:"scaleXTo",onClick:()=>v("scaleXTo")},{type:"scaleYTo",onClick:()=>v("scaleYTo")},{type:"scaleZTo",onClick:()=>v("scaleZTo")},{type:"scale3dTo",onClick:()=>v("scale3dTo")},{type:"skewTo",onClick:()=>v("skewTo")},{type:"skewXTo",onClick:()=>v("skewXTo")},{type:"skewYTo",onClick:()=>v("skewYTo")}];function ae(){return new Promise(P=>{r.value.getCanvas().then(S=>{as.downloadFromSVGString(S.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{P()},3e3)})})})}return je(()=>{}),e({}),(P,S)=>(A(),z(Me,null,[C("div",Sy,[me(Qe,{asyncClick:ae},{default:Ze(()=>[dt(" downloadFromCanvasToSVG ")]),_:1})]),C("div",Ey,[(A(),z(Me,null,Ct(H,x=>me(Qe,{key:x.type,item:x,onClick:x.onClick,stylePattern:d.value==x.type?"fullfilled":"outline"},{default:Ze(()=>[dt(_e(x.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),vn(C("div",ky,[(A(),z(Me,null,Ct(ne,x=>me(Qe,{key:x.type,item:x,onClick:x.onClick,stylePattern:m.value==x.type?"fullfilled":"outline"},{default:Ze(()=>[dt(_e(x.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[rn,d.value=="AnimateToCSS"]]),vn(C("div",null," 当前缓动函数:"+_e(t.easeName),513),[[rn,d.value=="AnimateToTweenCSS"]]),vn(C("div",Ty,[(A(),z(Me,null,Ct(U,x=>me(Qe,{key:x.type,item:x,onClick:x.onClick,stylePattern:m.value==x.type?"fullfilled":"outline"},{default:Ze(()=>[dt(_e(x.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[rn,d.value=="AnimateToTweenCSS"]]),vn(C("div",Py,[C("div",Oy,[C("div",null,"stroke-dasharray: "+_e(Re.value)+","+_e(Re.value),1),me(ma,{max:988,defaultValue:Re.value,onChange:Je},null,8,["defaultValue"])]),C("div",Iy,[C("div",null,"stroke-dashoffset: "+_e(ze.value),1),me(ma,{max:988,defaultValue:ze.value,onChange:Ye},null,8,["defaultValue"])])],512),[[rn,d.value=="StrokeDash"]]),vn(C("div",Dy,[me(uh,{ref_key:"svgRef",ref:s},null,512)],512),[[rn,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),vn(C("div",Ny,[me(ln,{ref_key:"canvasRef",ref:r},null,512)],512),[[rn,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),vn(C("div",$y,[C("div",Ay,[C("div",{ref_key:"divOneRef",ref:a},"1",512),C("div",{ref_key:"divTwoRef",ref:l},"2",512),C("div",{ref_key:"divThreeRef",ref:c},"3",512)]),C("div",My,[C("div",{ref_key:"divOneSingleRef",ref:u},"one",512)])],512),[[rn,d.value=="AnimateToCSS"]]),vn(C("div",{ref_key:"tweenCSSContainerRef",ref:h,style:{height:"400px"},class:"css-area"},[C("div",{ref_key:"divTweenTargetRef",ref:f,class:"tween-css-target"},null,512)],512),[[rn,d.value=="AnimateToTweenCSS"]])],64))}}),hh=le(Ry,[["styles",[`.btns[data-v-f8421474]{display:flex;flex-wrap:wrap}.btns[data-v-f8421474]>*{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-f8421474]{padding-top:10px;background-color:#dbffff}.css-area[data-v-f8421474]{background-color:#fff}.animate-to-css-group[data-v-f8421474]{position:relative;width:160px;height:160px;margin:20px;overflow:hidden}.animate-to-css-group>div[data-v-f8421474]{width:160px;height:160px;line-height:160px;background-color:#efefef;border:1px solid #333333;text-align:center}.tween-css-target[data-v-f8421474]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
156
+ `]],["__scopeId","data-v-f8421474"]]),Vy=["fill"],Ly=["fill"],Fy=oe({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("svg",{style:V(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[C("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,Vy),C("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,Ly)],4))}}),zy=le(Fy,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
157
+ `]],["__scopeId","data-v-8fe3f9fd"]]),ga=n=>(Zn("data-v-7aebdea0"),n=n(),Qn(),n),Gy=[ga(()=>C("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),ga(()=>C("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),ga(()=>C("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],jy=oe({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("svg",{style:V(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Gy,4))}}),By=le(jy,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
158
+ `]],["__scopeId","data-v-7aebdea0"]]),Hy=["width","height"],Yy=["fill"],Wy=oe({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[C("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,Yy)],8,Hy))}}),Uy=le(Wy,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
159
+ `]],["__scopeId","data-v-8745630f"]]),Xy=["width","height"],qy=["fill"],Ky=oe({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:ee.colorGrayCC}},setup(n){const e=n;return(t,s)=>(A(),z("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[C("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:e.color},null,8,qy)],8,Xy))}}),Zy=le(Ky,[["styles",[`svg[data-v-0e77f86d]{transform-origin:center}
160
+ `]],["__scopeId","data-v-0e77f86d"]]),Qy={class:"loading-1"},Jy=oe({__name:"Loading1.ce",props:{color:{default:ee.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(A(),z("div",Qy,[C("div",{class:"rect1",style:t}),C("div",{class:"rect2",style:t}),C("div",{class:"rect3",style:t}),C("div",{class:"rect4",style:t}),C("div",{class:"rect5",style:t})]))}}),e1=le(Jy,[["styles",[`.loading-1[data-v-f7deb691]{position:relative;display:block;overflow:hidden;width:100%;height:100%;text-align:center}.loading-1>div[data-v-f7deb691]{width:6px;height:100%;margin:auto 2px;display:inline-block;animation:stretchdelay-f7deb691 1.2s infinite ease-in-out}.loading-1 .rect2[data-v-f7deb691]{animation-delay:-1.1s}.loading-1 .rect3[data-v-f7deb691]{animation-delay:-1s}.loading-1 .rect4[data-v-f7deb691]{animation-delay:-.9s}.loading-1 .rect5[data-v-f7deb691]{animation-delay:-.8s}@keyframes stretchdelay-f7deb691{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}
161
+ `]],["__scopeId","data-v-f7deb691"]]),t1={class:"loading-2"},n1=oe({__name:"Loading2.ce",props:{color:{default:ee.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(A(),z("div",t1,[C("div",{class:"dot1",style:t}),C("div",{class:"dot2",style:t})]))}}),s1=le(n1,[["styles",[`.loading-2[data-v-945f5b2e]{position:relative;display:block;width:100%;height:100%;text-align:center;animation:rotate-945f5b2e 2s infinite linear}.dot1[data-v-945f5b2e],.dot2[data-v-945f5b2e]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:bounce-945f5b2e 2s infinite ease-in-out}.dot2[data-v-945f5b2e]{top:auto;bottom:0;animation-delay:-1s}@keyframes rotate-945f5b2e{to{transform:rotate(360deg)}}@keyframes bounce-945f5b2e{0%,to{transform:scale(0)}50%{transform:scale(1)}}
162
+ `]],["__scopeId","data-v-945f5b2e"]]),i1=oe({__name:"Loading3.ce",props:{fromColor:{default:ee.colorPrimary},toColor:{default:ee.colorRed}},setup(n){const e=n,t=`
140
163
  @keyframes snake {
141
164
  0% {
142
165
  opacity: 0.3;
@@ -155,20 +178,21 @@ Expected function or array of functions, received type ${typeof n}.`),ot)}functi
155
178
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
156
179
  }
157
180
  }
158
- `,s={backgroundColor:e.fromColor,width:"20%"},i=M();return Ie(i,()=>{i.value&&Q.setStyleSheet(t,i.value)}),kn(()=>{}),qe(()=>{}),(o,r)=>($(),G("div",{class:"loading-3",ref_key:"loading3",ref:i},[w("div",{class:"dot",style:Z({...s,left:"0"})},null,4),w("div",{class:"dot",style:Z({...s,left:"20%"})},null,4),w("div",{class:"dot",style:Z({...s,left:"40%"})},null,4),w("div",{class:"dot",style:Z({...s,left:"60%"})},null,4),w("div",{class:"dot",style:Z({...s,left:"80%"})},null,4)],512))}}),wy=ue(xy,[["styles",[`.loading-3[data-v-47c42038]{position:relative;display:inline-block;width:100%;height:100%;text-align:center;animation:rotate 2s infinite linear}.dot[data-v-47c42038]{display:inline-block;top:50%;transform:translateY(-50%);position:absolute;aspect-ratio:1 / 1;opacity:.5;border-radius:100%;animation:snake 1s infinite ease-in-out}.loading-3 div[data-v-47c42038]:nth-child(1){animation-delay:0s}.loading-3 div[data-v-47c42038]:nth-child(2){animation-delay:.2s}.loading-3 div[data-v-47c42038]:nth-child(3){animation-delay:.4s}.loading-3 div[data-v-47c42038]:nth-child(4){animation-delay:.6s}.loading-3 div[data-v-47c42038]:nth-child(5){animation-delay:.8s}
159
- `]],["__scopeId","data-v-47c42038"]]),Cy={class:"loading-4"},Ey=ce({__name:"Loading4.ce",props:{color:{default:oe.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>($(),G("div",Cy,[w("div",{class:"rect",style:t})]))}}),Sy=ue(Ey,[["styles",[`.loading-4[data-v-b2b74418]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:120px}.rect[data-v-b2b74418]{width:40%;aspect-ratio:1 / 1;animation:rotateplane-b2b74418 1.2s infinite ease-in-out}@keyframes rotateplane-b2b74418{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-180deg)}}
160
- `]],["__scopeId","data-v-b2b74418"]]),ky={class:"loading-5"},Ty=ce({__name:"Loading5.ce",props:{color:{default:oe.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>($(),G("div",ky,[w("div",{class:"cube1",style:t}),w("div",{class:"cube2",style:t})]))}}),Py=ue(Ty,[["styles",[`.loading-5[data-v-2e49b1eb]{position:relative;display:block;width:100%;height:100%}.cube1[data-v-2e49b1eb],.cube2[data-v-2e49b1eb]{width:40%;aspect-ratio:1 / 1;display:inline-block;position:absolute;top:10%;left:10%;transform:translate(-10%,-10%);animation:cubemove-2e49b1eb 1.8s infinite ease-in-out;transform-origin:center}.cube2[data-v-2e49b1eb]{animation-delay:-.9s}@keyframes cubemove-2e49b1eb{25%{transform:translate(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}
161
- `]],["__scopeId","data-v-2e49b1eb"]]),Oy={class:"loading-6"},Iy=ce({__name:"Loading6.ce",props:{color:{default:oe.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>($(),G("div",Oy,[w("div",{style:t}),w("div",{style:t}),w("div",{style:t})]))}}),Ny=ue(Iy,[["styles",[`.loading-6[data-v-0e771b32]{position:relative;display:block;width:100%;height:100%}.loading-6>div[data-v-0e771b32]{border-radius:100%}.loading-6>div[data-v-0e771b32]:nth-child(2){animation-delay:-.4s}.loading-6>div[data-v-0e771b32]:nth-child(3){animation-delay:-.2s}.loading-6>div[data-v-0e771b32]{position:absolute;left:20%;top:20%;width:60%;aspect-ratio:1 / 1;opacity:0;margin:0;animation:loading-6-0e771b32 1s 0s linear infinite}@keyframes loading-6-0e771b32{0%{transform:scale(0);opacity:0}5%{opacity:1}to{transform:scale(1);opacity:0}}
162
- `]],["__scopeId","data-v-0e771b32"]]),Dy=[(n=>(Yn("data-v-aeb2a925"),n=n(),Wn(),n))(()=>w("div",null,null,-1))],My=ce({__name:"Loading7.ce",props:{color:{default:oe.colorPrimary}},setup(n){const e=n,t=`
181
+ `,s={backgroundColor:e.fromColor,width:"20%"},i=D();return Se(i,()=>{i.value&&Z.setStyleSheet(t,i.value)}),$n(()=>{}),je(()=>{}),(o,r)=>(A(),z("div",{class:"loading-3",ref_key:"loading3",ref:i},[C("div",{class:"dot",style:V({...s,left:"0"})},null,4),C("div",{class:"dot",style:V({...s,left:"20%"})},null,4),C("div",{class:"dot",style:V({...s,left:"40%"})},null,4),C("div",{class:"dot",style:V({...s,left:"60%"})},null,4),C("div",{class:"dot",style:V({...s,left:"80%"})},null,4)],512))}}),o1=le(i1,[["styles",[`.loading-3[data-v-47c42038]{position:relative;display:inline-block;width:100%;height:100%;text-align:center;animation:rotate 2s infinite linear}.dot[data-v-47c42038]{display:inline-block;top:50%;transform:translateY(-50%);position:absolute;aspect-ratio:1 / 1;opacity:.5;border-radius:100%;animation:snake 1s infinite ease-in-out}.loading-3 div[data-v-47c42038]:nth-child(1){animation-delay:0s}.loading-3 div[data-v-47c42038]:nth-child(2){animation-delay:.2s}.loading-3 div[data-v-47c42038]:nth-child(3){animation-delay:.4s}.loading-3 div[data-v-47c42038]:nth-child(4){animation-delay:.6s}.loading-3 div[data-v-47c42038]:nth-child(5){animation-delay:.8s}
182
+ `]],["__scopeId","data-v-47c42038"]]),r1={class:"loading-4"},a1=oe({__name:"Loading4.ce",props:{color:{default:ee.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(A(),z("div",r1,[C("div",{class:"rect",style:t})]))}}),l1=le(a1,[["styles",[`.loading-4[data-v-b2b74418]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:120px}.rect[data-v-b2b74418]{width:40%;aspect-ratio:1 / 1;animation:rotateplane-b2b74418 1.2s infinite ease-in-out}@keyframes rotateplane-b2b74418{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-180deg)}}
183
+ `]],["__scopeId","data-v-b2b74418"]]),c1={class:"loading-5"},u1=oe({__name:"Loading5.ce",props:{color:{default:ee.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(A(),z("div",c1,[C("div",{class:"cube1",style:t}),C("div",{class:"cube2",style:t})]))}}),h1=le(u1,[["styles",[`.loading-5[data-v-2e49b1eb]{position:relative;display:block;width:100%;height:100%}.cube1[data-v-2e49b1eb],.cube2[data-v-2e49b1eb]{width:40%;aspect-ratio:1 / 1;display:inline-block;position:absolute;top:10%;left:10%;transform:translate(-10%,-10%);animation:cubemove-2e49b1eb 1.8s infinite ease-in-out;transform-origin:center}.cube2[data-v-2e49b1eb]{animation-delay:-.9s}@keyframes cubemove-2e49b1eb{25%{transform:translate(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}
184
+ `]],["__scopeId","data-v-2e49b1eb"]]),d1={class:"loading-6"},f1=oe({__name:"Loading6.ce",props:{color:{default:ee.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(A(),z("div",d1,[C("div",{style:t}),C("div",{style:t}),C("div",{style:t})]))}}),p1=le(f1,[["styles",[`.loading-6[data-v-0e771b32]{position:relative;display:block;width:100%;height:100%}.loading-6>div[data-v-0e771b32]{border-radius:100%}.loading-6>div[data-v-0e771b32]:nth-child(2){animation-delay:-.4s}.loading-6>div[data-v-0e771b32]:nth-child(3){animation-delay:-.2s}.loading-6>div[data-v-0e771b32]{position:absolute;left:20%;top:20%;width:60%;aspect-ratio:1 / 1;opacity:0;margin:0;animation:loading-6-0e771b32 1s 0s linear infinite}@keyframes loading-6-0e771b32{0%{transform:scale(0);opacity:0}5%{opacity:1}to{transform:scale(1);opacity:0}}
185
+ `]],["__scopeId","data-v-0e771b32"]]),m1=[(n=>(Zn("data-v-c9759bdc"),n=n(),Qn(),n))(()=>C("div",null,null,-1))],g1=oe({__name:"Loading7.ce",props:{color:{default:ee.colorPrimary}},setup(n){const e=n,t=`
163
186
  :root {
164
187
  --loading-7-bg-color: ${e.color}
165
188
  }
166
189
  :host {
167
190
  --loading-7-bg-color: ${e.color}
168
191
  }
169
- `,s=M();return Ie(s,()=>{s.value&&Q.setStyleSheet(t,s.value)}),kn(()=>{}),qe(()=>{}),(i,o)=>($(),G("div",{class:"loading-7",ref_key:"loading7",ref:s},Dy,512))}}),$y=ue(My,[["styles",[`.loading-7[data-v-aeb2a925]{position:relative;display:block;width:100%;height:100%}.loading-7>div[data-v-aeb2a925]{width:50%;height:50%;margin:auto;position:absolute;inset:0}.loading-7>div[data-v-aeb2a925]:before{content:"";width:100%;height:5px;box-sizing:border-box;background:#000;opacity:.1;position:absolute;top:calc(100% + 5px);left:0;border-radius:50%;animation:shadow-aeb2a925 .5s linear infinite}.loading-7>div[data-v-aeb2a925]:after{content:"";width:100%;height:100%;animation:animate-aeb2a925 .5s linear infinite;position:absolute;inset:0;border-radius:3px;background-color:var(--loading-7-bg-color)}@keyframes animate-aeb2a925{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow-aeb2a925{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}
170
- `]],["__scopeId","data-v-aeb2a925"]]),Ay={class:"loading-8"},Ry={viewBox:"25 25 50 50"},Vy=ce({__name:"Loading8.ce",props:{color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("div",Ay,[($(),G("svg",Ry,[w("circle",{cx:"50",cy:"50",r:"20",style:Z(["stroke: "+e.color])},null,4)]))]))}}),Ju=ue(Vy,[["styles",[`.loading-8[data-v-51a259a7]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-8 svg[data-v-51a259a7]{transform-origin:center;animation:rotate-51a259a7 2s linear infinite;width:50%;aspect-ratio:1 / 1}.loading-8 circle[data-v-51a259a7]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-51a259a7 1.5s ease-in-out infinite}@keyframes rotate-51a259a7{to{transform:rotate(360deg)}}@keyframes dash-51a259a7{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
171
- `]],["__scopeId","data-v-51a259a7"]]),Ly={class:"loading-9"},Fy=ce({__name:"Loading9.ce",props:{color:{default:oe.colorPrimary}},setup(n){const t={borderTopColor:n.color};return(s,i)=>($(),G("div",Ly,[w("div",{style:t})]))}}),zy=ue(Fy,[["styles",[`.loading-9[data-v-ee782ac8]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-9 div[data-v-ee782ac8]{width:50%;aspect-ratio:1 / 1;border:3px solid rgba(0,0,0,.1);border-radius:50%;animation:spin-ee782ac8 1s linear infinite}@keyframes spin-ee782ac8{to{transform:rotate(360deg)}}
172
- `]],["__scopeId","data-v-ee782ac8"]]),Gy={class:"loading-10"},jy={viewBox:"0 0 50 50"},By=ce({__name:"Loading10.ce",props:{color:{default:oe.colorPrimary}},setup(n){const e=n;return(t,s)=>($(),G("div",Gy,[($(),G("svg",jy,[w("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:Z(["stroke: rgba(0,0,0,0.1)"])},null,4),w("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:Z(["fill: "+e.color])},null,4)]))]))}}),Hy=ue(By,[["styles",[`.loading-10[data-v-984ad184]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-10 svg[data-v-984ad184]{width:50%;aspect-ratio:1 / 1;transform-origin:center;animation:1.5s spin-984ad184 ease infinite}.ring[data-v-984ad184]{fill:none;stroke-width:2}.ball[data-v-984ad184]{stroke:none}@keyframes spin-984ad184{to{transform:rotate(360deg)}}
173
- `]],["__scopeId","data-v-984ad184"]]);class Yy extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(e=>{if(e.media){const t=()=>{(e.media===this.video.currentSrc||!this.previousSiblingIsPlaying(e,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:e.media,handler:t}),window.matchMedia(e.media).addEventListener("change",t)}})}unbindMediaListeners(){this.listenedMedia.forEach(e=>{window.matchMedia(e.media).removeEventListener("change",e.handler)})}previousSiblingIsPlaying(e,t){const s=e;for(;e.previousElementSibling;)if(s.src===t)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const e=this.video.currentTime,t=this.video.playState;this.video.load();const s=()=>{this.video.playState=t,this.video.currentTime=e.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",s)};this.video.addEventListener("loadeddata",s)}}const Wy=Yy;function Xy(n,e="style.css"){for(let t of n){const s=document.querySelector(t)?.shadowRoot;if(s){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),s.appendChild(i)}}}const aa={},la={},ft=(n,e,t=!0)=>{const s=n.__name;aa[s]=[];let i=[...n.styles||[]],o=0;for(let r in n.customOptions)aa[s].push(r),`${n.customOptions[r].__scopeId}`,i=[...(aa[r]||[]).reduce((a,l)=>(a.push(...(la[l]||[]).map(c=>vc(c))),a),[]),...(e[o++]?.styles||[]).map(a=>vc(a)),...i],la[r]=i;if(t)n.styles=i;else for(let r of n.styles){const a=document.createElement("style");a.innerHTML=r,document.head.insertBefore(a,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return la[s]=i,n},Uy=()=>{const n=Te(_u);customElements.define("yz-icon",n);const e=Te(ms);customElements.define("yz-button",e);const t=Te(V0);customElements.define("yz-layout-mobile",t);const s=Te(L0);customElements.define("yz-layout-center",s),customElements.define("yz-loading-1",Te(vy)),customElements.define("yz-loading-2",Te(by)),customElements.define("yz-loading-3",Te(wy)),customElements.define("yz-loading-4",Te(Sy)),customElements.define("yz-loading-5",Te(Py)),customElements.define("yz-loading-6",Te(Ny)),customElements.define("yz-loading-7",Te($y)),customElements.define("yz-loading-8",Te(Ju)),customElements.define("yz-loading-9",Te(zy)),customElements.define("yz-loading-10",Te(Hy)),ft(ts,[ho]);const i=Te(ts);customElements.define("yz-pop",i),ft(fo,[ho,ts,_u,ms]);const o=Te(fo);customElements.define("yz-dialog",o),ft(Vu,[ho,ts,fo,Ju]);const r=Te(Vu);customElements.define("yz-dialog-loading",r),ft(Lu,[ho,ts,fo]);const a=Te(Lu);customElements.define("yz-dialog-toast",a);const l=Te(dg);customElements.define("yz-select",l),ft(bu,[py]);const c=Te(bu);customElements.define("yz-select-absolute",c);const u=Te(xg);customElements.define("yz-switch",u);const h=Te(Tg);customElements.define("yz-radiogroup",h);const d=Te(Mg);customElements.define("yz-checkboxgroup",d),ft(Ru,[ts,ms]);const f=Te(Ru);customElements.define("yz-popover",f);const m=Te(Ov);customElements.define("yz-resize-observer",m);const y=Te(Iv);customElements.define("yz-map-tianditu",y),ft(na,[ts,ry]);const _=Te(na);customElements.define("yz-plate-keyboard",_),ft(Gu,[sy,na]);const C=Te(Gu);customElements.define("yz-plate-mobile",C),ft(Cu,[uy]);const k=Te(Cu);customElements.define("yz-slide-left-item",k);const P=Te(Ev);customElements.define("yz-plate-display",P);const D=Te(iv);customElements.define("yz-tabs",D);const U=Te(Nv);customElements.define("yz-fps-stats",U),ft(sa,[ms,oa]);const F=Te(sa);customElements.define("yz-ease-graph-display",F),ft(Bu,[sa]);const H=Te(Bu);customElements.define("yz-ease-group-graph-display",H),ft(ia,[ms,oa]);const ve=Te(ia);customElements.define("yz-interpolation-graph-display",ve),ft(qu,[ia]);const be=Te(qu);customElements.define("yz-interpolation-group-graph-display",be);const Ce=Te(ta);customElements.define("yz-progress-bar",Ce),ft(Fu,[ta]);const De=Te(Fu);customElements.define("yz-page-vertical-scroll-progress-bar",De),ft(Qu,[ms,jv,oa]);const ye=Te(Qu);customElements.define("yz-svg-and-canvas",ye),customElements.define("yz-hand-write-panel",Te(rv)),ft(Nu,[ta]);const Ne=Te(Nu);customElements.define("yz-video",Ne),customElements.define("yz-input",Te(Hg)),customElements.define("yz-accordion",Te(w0)),customElements.define("yz-image",Te(Du)),ft(Au,[Du]);const Le=Te(Au);customElements.define("yz-image-view",Le);const me=Te(x0);customElements.define("yz-mouse-over",me),customElements.define("yz-responsive-video",Wy);const _e=document.getElementById("teleport")||document.documentElement,re=document.createElement("yz-dialog-toast");re.id="globalDialogToast",_e?.appendChild(re);const V=document.createElement("yz-dialog-loading");V.id="globalDialogLoading",_e?.appendChild(V);const J=document.createElement("yz-dialog");J.id="globalDialog",_e?.appendChild(J);const Y=document.createElement("yz-plate-keyboard");Y.id="globalPlateKeyboard",_e?.appendChild(Y)};Ke.dialog=f0,Ke.install=Uy,Ke.linkChildrenComponentsStyles=Xy,Ke.loading=d0,Ke.mergeChildComponentCSS=ft,Ke.plateKeyboard=Iu,Ke.popAbsolute=lo,Ke.popAbsoluteSample=_0,Ke.popBottom=Su,Ke.popBottomSample=p0,Ke.popCenter=Ou,Ke.popCenterSample=y0,Ke.popLeft=Tu,Ke.popLeftSample=g0,Ke.popRight=Pu,Ke.popRightSample=v0,Ke.popTop=ku,Ke.popTopSample=m0,Ke.toast=ea,Object.defineProperty(Ke,Symbol.toStringTag,{value:"Module"})});
192
+ `,s=D();return Se(s,()=>{s.value&&Z.setStyleSheet(t,s.value)}),$n(()=>{}),je(()=>{}),(i,o)=>(A(),z("div",{class:"loading-7",ref_key:"loading7",ref:s},m1,512))}}),v1=le(g1,[["styles",[`.loading-7[data-v-c9759bdc]{position:relative;display:block;width:100%;height:100%}.loading-7>div[data-v-c9759bdc]{width:50%;height:50%;margin:auto;position:absolute;inset:0}.loading-7>div[data-v-c9759bdc]:before{content:"";width:100%;height:5px;box-sizing:border-box;background:#000;opacity:.1;position:absolute;top:calc(100% + 5px);left:0;border-radius:50%;animation:shadow-c9759bdc .5s linear infinite}.loading-7>div[data-v-c9759bdc]:after{content:"";width:100%;height:100%;animation:animate-c9759bdc .5s linear infinite;position:absolute;inset:0;border-radius:3px;background-color:var(--loading-7-bg-color)}@keyframes animate-c9759bdc{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow-c9759bdc{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}
193
+ `]],["__scopeId","data-v-c9759bdc"]]),y1={class:"loading-8"},b1={viewBox:"25 25 50 50"},_1=oe({__name:"Loading8.ce",props:{color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("div",y1,[(A(),z("svg",b1,[C("circle",{cx:"50",cy:"50",r:"20",style:V(["stroke: "+e.color])},null,4)]))]))}}),dh=le(_1,[["styles",[`.loading-8[data-v-51a259a7]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-8 svg[data-v-51a259a7]{transform-origin:center;animation:rotate-51a259a7 2s linear infinite;width:50%;aspect-ratio:1 / 1}.loading-8 circle[data-v-51a259a7]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-51a259a7 1.5s ease-in-out infinite}@keyframes rotate-51a259a7{to{transform:rotate(360deg)}}@keyframes dash-51a259a7{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
194
+ `]],["__scopeId","data-v-51a259a7"]]),x1={class:"loading-9"},w1=oe({__name:"Loading9.ce",props:{color:{default:ee.colorPrimary}},setup(n){const t={borderTopColor:n.color};return(s,i)=>(A(),z("div",x1,[C("div",{style:t})]))}}),C1=le(w1,[["styles",[`.loading-9[data-v-ee782ac8]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-9 div[data-v-ee782ac8]{width:50%;aspect-ratio:1 / 1;border:3px solid rgba(0,0,0,.1);border-radius:50%;animation:spin-ee782ac8 1s linear infinite}@keyframes spin-ee782ac8{to{transform:rotate(360deg)}}
195
+ `]],["__scopeId","data-v-ee782ac8"]]),S1={class:"loading-10"},E1={viewBox:"0 0 50 50"},k1=oe({__name:"Loading10.ce",props:{color:{default:ee.colorPrimary}},setup(n){const e=n;return(t,s)=>(A(),z("div",S1,[(A(),z("svg",E1,[C("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:V(["stroke: rgba(0,0,0,0.1)"])},null,4),C("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:V(["fill: "+e.color])},null,4)]))]))}}),T1=le(k1,[["styles",[`.loading-10[data-v-984ad184]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-10 svg[data-v-984ad184]{width:50%;aspect-ratio:1 / 1;transform-origin:center;animation:1.5s spin-984ad184 ease infinite}.ring[data-v-984ad184]{fill:none;stroke-width:2}.ball[data-v-984ad184]{stroke:none}@keyframes spin-984ad184{to{transform:rotate(360deg)}}
196
+ `]],["__scopeId","data-v-984ad184"]]),P1={class:"loading-11",ref:"loading11"},O1={class:"container container-1"},I1={class:"container container-2"},D1={class:"container container-3"},N1=oe({__name:"Loading11.ce",props:{color:{default:ee.colorPrimary},width:{default:"0.8em"}},setup(n){const e=n;return(t,s)=>(A(),z("div",P1,[C("div",{class:"loading-11-inner",style:V({width:e.width,height:e.width})},[C("div",O1,[C("div",{class:"dot dot-1",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-2",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-3",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-4",style:V({backgroundColor:e.color})},null,4)]),C("div",I1,[C("div",{class:"dot dot-1",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-2",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-3",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-4",style:V({backgroundColor:e.color})},null,4)]),C("div",D1,[C("div",{class:"dot dot-1",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-2",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-3",style:V({backgroundColor:e.color})},null,4),C("div",{class:"dot dot-4",style:V({backgroundColor:e.color})},null,4)])],4)],512))}}),fh=le(N1,[["styles",[`.loading-11[data-v-7fb118c9]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-11-inner[data-v-7fb118c9]{position:relative}.loading-11-inner .container[data-v-7fb118c9]{position:absolute;width:100%;height:100%}.loading-11-inner .container .dot[data-v-7fb118c9]{width:20%;height:20%;border-radius:100%;position:absolute;animation:bouncedelay-7fb118c9 1.2s infinite ease-in-out;animation-fill-mode:both}.loading-11-inner .container .dot-1[data-v-7fb118c9]{top:0;left:0}.loading-11-inner .container .dot-2[data-v-7fb118c9]{top:0;right:0}.loading-11-inner .container .dot-3[data-v-7fb118c9]{right:0;bottom:0}.loading-11-inner .container .dot-4[data-v-7fb118c9]{left:0;bottom:0}.loading-11-inner .container-1 .dot-2[data-v-7fb118c9]{animation-delay:-.9s}.loading-11-inner .container-1 .dot-3[data-v-7fb118c9]{animation-delay:-.6s}.loading-11-inner .container-1 .dot-4[data-v-7fb118c9]{animation-delay:-.3s}.loading-11-inner .container-2[data-v-7fb118c9]{transform:rotate(45deg)}.loading-11-inner .container-2 .dot-1[data-v-7fb118c9]{animation-delay:-1.1s}.loading-11-inner .container-2 .dot-2[data-v-7fb118c9]{animation-delay:-.8s}.loading-11-inner .container-2 .dot-3[data-v-7fb118c9]{animation-delay:-.5s}.loading-11-inner .container-2 .dot-4[data-v-7fb118c9]{animation-delay:-.2s}.loading-11-inner .container-3[data-v-7fb118c9]{transform:rotate(90deg)}.loading-11-inner .container-3 .dot-1[data-v-7fb118c9]{animation-delay:-1s}.loading-11-inner .container-3 .dot-2[data-v-7fb118c9]{animation-delay:-.7s}.loading-11-inner .container-3 .dot-3[data-v-7fb118c9]{animation-delay:-.4s}.loading-11-inner .container-3 .dot-4[data-v-7fb118c9]{animation-delay:-.1s}@keyframes bouncedelay-7fb118c9{0%,80%,to{transform:scale(.3)}40%{transform:scale(1)}}
197
+ `]],["__scopeId","data-v-7fb118c9"]]);class $1 extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(e=>{if(e.media){const t=()=>{(e.media===this.video.currentSrc||!this.previousSiblingIsPlaying(e,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:e.media,handler:t}),window.matchMedia(e.media).addEventListener("change",t)}})}unbindMediaListeners(){this.listenedMedia.forEach(e=>{window.matchMedia(e.media).removeEventListener("change",e.handler)})}previousSiblingIsPlaying(e,t){const s=e;for(;e.previousElementSibling;)if(s.src===t)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const e=this.video.currentTime,t=this.video.playState;this.video.load();const s=()=>{this.video.playState=t,this.video.currentTime=e.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",s)};this.video.addEventListener("loadeddata",s)}}const A1=$1;function M1(n,e="style.css"){for(let t of n){const s=document.querySelector(t)?.shadowRoot;if(s){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),s.appendChild(i)}}}const va={},ya={},ft=(n,e,t=!0)=>{const s=n.__name;va[s]=[];let i=[...n.styles||[]],o=0;for(let r in n.customOptions)va[s].push(r),`${n.customOptions[r].__scopeId}`,i=[...(va[r]||[]).reduce((a,l)=>(a.push(...(ya[l]||[]).map(c=>Pc(c))),a),[]),...(e[o++]?.styles||[]).map(a=>Pc(a)),...i],ya[r]=i;if(t)n.styles=i;else for(let r of n.styles){const a=document.createElement("style");a.innerHTML=r,document.head.insertBefore(a,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return ya[s]=i,n},R1=()=>{customElements.define("yz-loading-1",xe(e1)),customElements.define("yz-loading-2",xe(s1)),customElements.define("yz-loading-3",xe(o1)),customElements.define("yz-loading-4",xe(l1)),customElements.define("yz-loading-5",xe(h1)),customElements.define("yz-loading-6",xe(p1)),customElements.define("yz-loading-7",xe(v1)),customElements.define("yz-loading-8",xe(dh)),customElements.define("yz-loading-9",xe(C1)),customElements.define("yz-loading-10",xe(T1)),customElements.define("yz-loading-11",xe(fh));const n=xe(Nu);customElements.define("yz-icon",n),ft(us,[fh]);const e=xe(us);customElements.define("yz-button",e);const t=xe(dv);customElements.define("yz-layout-mobile",t);const s=xe(fv);customElements.define("yz-layout-center",s),ft(hs,[yo]);const i=xe(hs);customElements.define("yz-pop",i),ft(bo,[yo,hs,Nu,us]);const o=xe(bo);customElements.define("yz-dialog",o),ft(Zu,[yo,hs,bo,dh]);const r=xe(Zu);customElements.define("yz-dialog-loading",r),ft(Qu,[yo,hs,bo]);const a=xe(Qu);customElements.define("yz-dialog-toast",a);const l=xe(Lg);customElements.define("yz-select",l),ft($u,[Zy]);const c=xe($u);customElements.define("yz-select-absolute",c);const u=xe(Ug);customElements.define("yz-switch",u);const h=xe(Jg);customElements.define("yz-radiogroup",h);const f=xe(o0);customElements.define("yz-checkboxgroup",f),ft(Ku,[hs,us]);const d=xe(Ku);customElements.define("yz-popover",d);const m=xe(iy);customElements.define("yz-resize-observer",m);const v=xe(oy);customElements.define("yz-map-tianditu",v),ft(ha,[hs,By]);const b=xe(ha);customElements.define("yz-plate-keyboard",b),ft(th,[zy,ha]);const E=xe(th);customElements.define("yz-plate-mobile",E),ft(Vu,[Uy]);const I=xe(Vu);customElements.define("yz-slide-left-item",I);const N=xe(Jv);customElements.define("yz-plate-display",N);const k=xe($v);customElements.define("yz-tabs",k);const B=xe(ry);customElements.define("yz-fps-stats",B),ft(da,[us,pa]);const R=xe(da);customElements.define("yz-ease-graph-display",R),ft(sh,[da]);const Y=xe(sh);customElements.define("yz-ease-group-graph-display",Y),ft(fa,[us,pa]);const fe=xe(fa);customElements.define("yz-interpolation-graph-display",fe),ft(ch,[fa]);const be=xe(ch);customElements.define("yz-interpolation-group-graph-display",be);const ge=xe(ua);customElements.define("yz-progress-bar",ge),ft(Ju,[ua]);const Pe=xe(Ju);customElements.define("yz-page-vertical-scroll-progress-bar",Pe),ft(hh,[us,Mu,vy,pa]);const Oe=xe(hh);customElements.define("yz-svg-and-canvas",Oe),customElements.define("yz-hand-write-panel",xe(Mv)),ft(Yu,[ua]);const Le=xe(Yu);customElements.define("yz-video",Le),customElements.define("yz-input",xe(g0)),customElements.define("yz-input-range",xe(Mu)),customElements.define("yz-accordion",xe(Z0)),customElements.define("yz-image",xe(Wu)),ft(qu,[Wu]);const Fe=xe(qu);customElements.define("yz-image-view",Fe);const He=xe(K0);customElements.define("yz-mouse-over",He),customElements.define("yz-responsive-video",A1);const Ie=document.getElementById("teleport")||document.documentElement,ve=document.createElement("yz-dialog-toast");ve.id="globalDialogToast",Ie?.appendChild(ve);const F=document.createElement("yz-dialog-loading");F.id="globalDialogLoading",Ie?.appendChild(F);const te=document.createElement("yz-dialog");te.id="globalDialog",Ie?.appendChild(te);const q=document.createElement("yz-plate-keyboard");q.id="globalPlateKeyboard",Ie?.appendChild(q)};et.dialog=j0,et.install=R1,et.linkChildrenComponentsStyles=M1,et.loading=G0,et.mergeChildComponentCSS=ft,et.plateKeyboard=Hu,et.popAbsolute=mo,et.popAbsoluteSample=X0,et.popBottom=Fu,et.popBottomSample=B0,et.popCenter=Bu,et.popCenterSample=U0,et.popLeft=Gu,et.popLeftSample=Y0,et.popRight=ju,et.popRightSample=W0,et.popTop=zu,et.popTopSample=H0,et.toast=ca,Object.defineProperty(et,Symbol.toStringTag,{value:"Module"})});
174
198
  //# sourceMappingURL=yz_custom_element.umd.cjs.map