@zyzgroup/core-vue 0.0.16 → 0.0.18

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,34 +1,34 @@
1
- (function(Q,$t){typeof exports=="object"&&typeof module<"u"?$t(exports):typeof define=="function"&&define.amd?define(["exports"],$t):(Q=typeof globalThis<"u"?globalThis:Q||self,$t(Q.ZYZGroupCoreVue={}))})(this,function(Q){"use strict";/**
1
+ (function(he,Yt){typeof exports=="object"&&typeof module<"u"?Yt(exports):typeof define=="function"&&define.amd?define(["exports"],Yt):(he=typeof globalThis<"u"?globalThis:he||self,Yt(he.ZYZGroupCoreVue={}))})(this,function(he){"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 $t(t,e){const n=new Set(t.split(","));return e?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Se={}.NODE_ENV!=="production"?Object.freeze({}):{},Gn={}.NODE_ENV!=="production"?Object.freeze([]):[],Ge=()=>{},Du=()=>!1,Qn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Gs=t=>t.startsWith("onUpdate:"),Le=Object.assign,er=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Au=Object.prototype.hasOwnProperty,_e=(t,e)=>Au.call(t,e),re=Array.isArray,bn=t=>zs(t)==="[object Map]",sa=t=>zs(t)==="[object Set]",ae=t=>typeof t=="function",ze=t=>typeof t=="string",xn=t=>typeof t=="symbol",Ee=t=>t!==null&&typeof t=="object",tr=t=>(Ee(t)||ae(t))&&ae(t.then)&&ae(t.catch),ia=Object.prototype.toString,zs=t=>ia.call(t),nr=t=>zs(t).slice(8,-1),ra=t=>zs(t)==="[object Object]",sr=t=>ze(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Jn=$t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ru=$t("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),js=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},$u=/-(\w)/g,Lt=js(t=>t.replace($u,(e,n)=>n?n.toUpperCase():"")),Lu=/\B([A-Z])/g,an=js(t=>t.replace(Lu,"-$1").toLowerCase()),wn=js(t=>t.charAt(0).toUpperCase()+t.slice(1)),En=js(t=>t?`on${wn(t)}`:""),ln=(t,e)=>!Object.is(t,e),es=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},oa=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Fu=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let aa;const ir=()=>aa||(aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function q(t){if(re(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],i=ze(s)?ju(s):q(s);if(i)for(const r in i)e[r]=i[r]}return e}else if(ze(t)||Ee(t))return t}const Vu=/;(?![^(]*\))/g,Gu=/:([^]+)/,zu=/\/\*[^]*?\*\//g;function ju(t){const e={};return t.replace(zu,"").split(Vu).forEach(n=>{if(n){const s=n.split(Gu);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function vt(t){let e="";if(ze(t))e=t;else if(re(t))for(let n=0;n<t.length;n++){const s=vt(t[n]);s&&(e+=s+" ")}else if(Ee(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Hu=$t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function la(t){return!!t||t===""}const be=t=>ze(t)?t:t==null?"":re(t)||Ee(t)&&(t.toString===ia||!ae(t.toString))?JSON.stringify(t,ca,2):String(t),ca=(t,e)=>e&&e.__v_isRef?ca(t,e.value):bn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,i],r)=>(n[rr(s,r)+" =>"]=i,n),{})}:sa(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>rr(n))}:xn(e)?rr(e):Ee(e)&&!re(e)&&!ra(e)?String(e):e,rr=(t,e="")=>{var n;return xn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function Yt(n,e){const t=new Set(n.split(","));return e?s=>t.has(s.toLowerCase()):s=>t.has(s)}const ze={}.NODE_ENV!=="production"?Object.freeze({}):{},Zn={}.NODE_ENV!=="production"?Object.freeze([]):[],Ze=()=>{},Xu=()=>!1,ds=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),rr=n=>n.startsWith("onUpdate:"),Ue=Object.assign,_i=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},Uu=Object.prototype.hasOwnProperty,Ne=(n,e)=>Uu.call(n,e),ve=Array.isArray,In=n=>ir(n)==="[object Map]",_a=n=>ir(n)==="[object Set]",Ee=n=>typeof n=="function",Qe=n=>typeof n=="string",Nn=n=>typeof n=="symbol",je=n=>n!==null&&typeof n=="object",bi=n=>(je(n)||Ee(n))&&Ee(n.then)&&Ee(n.catch),ba=Object.prototype.toString,ir=n=>ba.call(n),xi=n=>ir(n).slice(8,-1),xa=n=>ir(n)==="[object Object]",wi=n=>Qe(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,ps=Yt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wu=Yt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),or=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},qu=/-(\w)/g,Xt=or(n=>n.replace(qu,(e,t)=>t?t.toUpperCase():"")),Ku=/\B([A-Z])/g,mn=or(n=>n.replace(Ku,"-$1").toLowerCase()),Dn=or(n=>n.charAt(0).toUpperCase()+n.slice(1)),Mn=or(n=>n?`on${Dn(n)}`:""),gn=(n,e)=>!Object.is(n,e),ms=(n,e)=>{for(let t=0;t<n.length;t++)n[t](e)},wa=(n,e,t)=>{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},Zu=n=>{const e=parseFloat(n);return isNaN(e)?n:e};let Ea;const Ei=()=>Ea||(Ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function oe(n){if(ve(n)){const e={};for(let t=0;t<n.length;t++){const s=n[t],r=Qe(s)?th(s):oe(s);if(r)for(const i in r)e[i]=r[i]}return e}else if(Qe(n)||je(n))return n}const Qu=/;(?![^(]*\))/g,Ju=/:([^]+)/,eh=/\/\*[^]*?\*\//g;function th(n){const e={};return n.replace(eh,"").split(Qu).forEach(t=>{if(t){const s=t.split(Ju);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function mt(n){let e="";if(Qe(n))e=n;else if(ve(n))for(let t=0;t<n.length;t++){const s=mt(n[t]);s&&(e+=s+" ")}else if(je(n))for(const t in n)n[t]&&(e+=t+" ");return e.trim()}const nh=Yt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Sa(n){return!!n||n===""}const Re=n=>Qe(n)?n:n==null?"":ve(n)||je(n)&&(n.toString===ba||!Ee(n.toString))?JSON.stringify(n,Ca,2):String(n),Ca=(n,e)=>e&&e.__v_isRef?Ca(n,e.value):In(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,r],i)=>(t[Si(s,i)+" =>"]=r,t),{})}:_a(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Si(t))}:Nn(e)?Si(e):je(e)&&!ve(e)&&!xa(e)?String(e):e,Si=(n,e="")=>{var t;return Nn(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 cn(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Nt;class Bu{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Nt,!e&&Nt&&(this.index=(Nt.scopes||(Nt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Nt;try{return Nt=this,e()}finally{Nt=n}}else({}).NODE_ENV!=="production"&&cn("cannot run an inactive effect scope.")}on(){Nt=this}off(){Nt=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].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 Uu(t,e=Nt){e&&e.active&&e.effects.push(t)}function Wu(){return Nt}let Cn;class or{constructor(e,n,s,i){this.fn=e,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Uu(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ut();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(Yu(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Wt()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=un,n=Cn;try{return un=!0,Cn=this,this._runnings++,ua(this),this.fn()}finally{ha(this),this._runnings--,Cn=n,un=e}}stop(){var e;this.active&&(ua(this),ha(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function Yu(t){return t.value}function ua(t){t._trackId++,t._depsLength=0}function ha(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)fa(t.deps[e],t);t.deps.length=t._depsLength}}function fa(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let un=!0,ar=0;const da=[];function Ut(){da.push(un),un=!1}function Wt(){const t=da.pop();un=t===void 0?!0:t}function lr(){ar++}function cr(){for(ar--;!ar&&ur.length;)ur.shift()()}function pa(t,e,n){var s;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const i=t.deps[t._depsLength];i!==e?(i&&fa(i,t),t.deps[t._depsLength++]=e):t._depsLength++,{}.NODE_ENV!=="production"&&((s=t.onTrack)==null||s.call(t,Le({effect:t},n)))}}const ur=[];function ma(t,e,n){var s;lr();for(const i of t.keys()){let r;i._dirtyLevel<e&&(r??(r=t.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(r??(r=t.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((s=i.onTrigger)==null||s.call(i,Le({effect:i},n))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&ur.push(i.scheduler)))}cr()}const ga=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},hr=new WeakMap,Tn=Symbol({}.NODE_ENV!=="production"?"iterate":""),fr=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function Ke(t,e,n){if(un&&Cn){let s=hr.get(t);s||hr.set(t,s=new Map);let i=s.get(n);i||s.set(n,i=ga(()=>s.delete(n))),pa(Cn,i,{}.NODE_ENV!=="production"?{target:t,type:e,key:n}:void 0)}}function Ft(t,e,n,s,i,r){const o=hr.get(t);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(n==="length"&&re(t)){const l=Number(s);o.forEach((c,u)=>{(u==="length"||!xn(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":re(t)?sr(n)&&a.push(o.get("length")):(a.push(o.get(Tn)),bn(t)&&a.push(o.get(fr)));break;case"delete":re(t)||(a.push(o.get(Tn)),bn(t)&&a.push(o.get(fr)));break;case"set":bn(t)&&a.push(o.get(Tn));break}lr();for(const l of a)l&&ma(l,4,{}.NODE_ENV!=="production"?{target:t,type:e,key:n,newValue:s,oldValue:i,oldTarget:r}:void 0);cr()}const Xu=$t("__proto__,__v_isRef,__isVue"),_a=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(xn)),va=qu();function qu(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=me(this);for(let r=0,o=this.length;r<o;r++)Ke(s,"get",r+"");const i=s[e](...n);return i===-1||i===!1?s[e](...n.map(me)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Ut(),lr();const s=me(this)[e].apply(this,n);return cr(),Wt(),s}}),t}function Ku(t){xn(t)||(t=String(t));const e=me(this);return Ke(e,"has",t),e.hasOwnProperty(t)}class ya{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?Oa:Na:r?Pa:ka).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=re(e);if(!i){if(o&&_e(va,n))return Reflect.get(va,n,s);if(n==="hasOwnProperty")return Ku}const a=Reflect.get(e,n,s);return(xn(n)?_a.has(n):Xu(n))||(i||Ke(e,"get",n),r)?a:Ze(a)?o&&sr(n)?a:a.value:Ee(a)?i?Ia(a):st(a):a}}class ba extends ya{constructor(e=!1){super(!1,e)}set(e,n,s,i){let r=e[n];if(!this._isShallow){const l=Sn(r);if(!kn(s)&&!Sn(s)&&(r=me(r),s=me(s)),!re(e)&&Ze(r)&&!Ze(s))return l?!1:(r.value=s,!0)}const o=re(e)&&sr(n)?Number(n)<e.length:_e(e,n),a=Reflect.set(e,n,s,i);return e===me(i)&&(o?ln(s,r)&&Ft(e,"set",n,s,r):Ft(e,"add",n,s)),a}deleteProperty(e,n){const s=_e(e,n),i=e[n],r=Reflect.deleteProperty(e,n);return r&&s&&Ft(e,"delete",n,void 0,i),r}has(e,n){const s=Reflect.has(e,n);return(!xn(n)||!_a.has(n))&&Ke(e,"has",n),s}ownKeys(e){return Ke(e,"iterate",re(e)?"length":Tn),Reflect.ownKeys(e)}}class xa extends ya{constructor(e=!1){super(!0,e)}set(e,n){return{}.NODE_ENV!=="production"&&cn(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return{}.NODE_ENV!=="production"&&cn(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const Zu=new ba,Qu=new xa,Ju=new ba(!0),eh=new xa(!0),dr=t=>t,Hs=t=>Reflect.getPrototypeOf(t);function Bs(t,e,n=!1,s=!1){t=t.__v_raw;const i=me(t),r=me(e);n||(ln(e,r)&&Ke(i,"get",e),Ke(i,"get",r));const{has:o}=Hs(i),a=s?dr:n?mr:ts;if(o.call(i,e))return a(t.get(e));if(o.call(i,r))return a(t.get(r));t!==i&&t.get(e)}function Us(t,e=!1){const n=this.__v_raw,s=me(n),i=me(t);return e||(ln(t,i)&&Ke(s,"has",t),Ke(s,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function Ws(t,e=!1){return t=t.__v_raw,!e&&Ke(me(t),"iterate",Tn),Reflect.get(t,"size",t)}function wa(t){t=me(t);const e=me(this);return Hs(e).has.call(e,t)||(e.add(t),Ft(e,"add",t,t)),this}function Ea(t,e){e=me(e);const n=me(this),{has:s,get:i}=Hs(n);let r=s.call(n,t);r?{}.NODE_ENV!=="production"&&Sa(n,s,t):(t=me(t),r=s.call(n,t));const o=i.call(n,t);return n.set(t,e),r?ln(e,o)&&Ft(n,"set",t,e,o):Ft(n,"add",t,e),this}function Ca(t){const e=me(this),{has:n,get:s}=Hs(e);let i=n.call(e,t);i?{}.NODE_ENV!=="production"&&Sa(e,n,t):(t=me(t),i=n.call(e,t));const r=s?s.call(e,t):void 0,o=e.delete(t);return i&&Ft(e,"delete",t,void 0,r),o}function Ta(){const t=me(this),e=t.size!==0,n={}.NODE_ENV!=="production"?bn(t)?new Map(t):new Set(t):void 0,s=t.clear();return e&&Ft(t,"clear",void 0,void 0,n),s}function Ys(t,e){return function(s,i){const r=this,o=r.__v_raw,a=me(o),l=e?dr:t?mr:ts;return!t&&Ke(a,"iterate",Tn),o.forEach((c,u)=>s.call(i,l(c),l(u),r))}}function Xs(t,e,n){return function(...s){const i=this.__v_raw,r=me(i),o=bn(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=i[t](...s),u=n?dr:e?mr:ts;return!e&&Ke(r,"iterate",l?fr:Tn),{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 hn(t){return function(...e){if({}.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";cn(`${wn(t)} operation ${n}failed: target is readonly.`,me(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function th(){const t={get(r){return Bs(this,r)},get size(){return Ws(this)},has:Us,add:wa,set:Ea,delete:Ca,clear:Ta,forEach:Ys(!1,!1)},e={get(r){return Bs(this,r,!1,!0)},get size(){return Ws(this)},has:Us,add:wa,set:Ea,delete:Ca,clear:Ta,forEach:Ys(!1,!0)},n={get(r){return Bs(this,r,!0)},get size(){return Ws(this,!0)},has(r){return Us.call(this,r,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:Ys(!0,!1)},s={get(r){return Bs(this,r,!0,!0)},get size(){return Ws(this,!0)},has(r){return Us.call(this,r,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:Ys(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=Xs(r,!1,!1),n[r]=Xs(r,!0,!1),e[r]=Xs(r,!1,!0),s[r]=Xs(r,!0,!0)}),[t,n,e,s]}const[nh,sh,ih,rh]=th();function qs(t,e){const n=e?t?rh:ih:t?sh:nh;return(s,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?s:Reflect.get(_e(n,i)&&i in s?n:s,i,r)}const oh={get:qs(!1,!1)},ah={get:qs(!1,!0)},lh={get:qs(!0,!1)},ch={get:qs(!0,!0)};function Sa(t,e,n){const s=me(n);if(s!==n&&e.call(t,s)){const i=nr(t);cn(`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 ka=new WeakMap,Pa=new WeakMap,Na=new WeakMap,Oa=new WeakMap;function uh(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hh(t){return t.__v_skip||!Object.isExtensible(t)?0:uh(nr(t))}function st(t){return Sn(t)?t:Ks(t,!1,Zu,oh,ka)}function fh(t){return Ks(t,!1,Ju,ah,Pa)}function Ia(t){return Ks(t,!0,Qu,lh,Na)}function Yt(t){return Ks(t,!0,eh,ch,Oa)}function Ks(t,e,n,s,i){if(!Ee(t))return{}.NODE_ENV!=="production"&&cn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const o=hh(t);if(o===0)return t;const a=new Proxy(t,o===2?s:n);return i.set(t,a),a}function zn(t){return Sn(t)?zn(t.__v_raw):!!(t&&t.__v_isReactive)}function Sn(t){return!!(t&&t.__v_isReadonly)}function kn(t){return!!(t&&t.__v_isShallow)}function pr(t){return t?!!t.__v_raw:!1}function me(t){const e=t&&t.__v_raw;return e?me(e):t}function dh(t){return Object.isExtensible(t)&&oa(t,"__v_skip",!0),t}const ts=t=>Ee(t)?st(t):t,mr=t=>Ee(t)?Ia(t):t,ph="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 Ma{constructor(e,n,s,i){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new or(()=>e(this._value),()=>Zs(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)&&ln(e._value,e._value=e.effect.run())&&Zs(e,4),Da(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&cn(ph,`
9
+ **/function vn(n,...e){console.warn(`[Vue warn] ${n}`,...e)}let Gt;class sh{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Gt,!e&&Gt&&(this.index=(Gt.scopes||(Gt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Gt;try{return Gt=this,e()}finally{Gt=t}}else({}).NODE_ENV!=="production"&&vn("cannot run an inactive effect scope.")}on(){Gt=this}off(){Gt=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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function rh(n,e=Gt){e&&e.active&&e.effects.push(n)}function ih(){return Gt}let An;class Ci{constructor(e,t,s,r){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,rh(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,en();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(oh(t.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),tn()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=yn,t=An;try{return yn=!0,An=this,this._runnings++,Ta(this),this.fn()}finally{ka(this),this._runnings--,An=t,yn=e}}stop(){var e;this.active&&(Ta(this),ka(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function oh(n){return n.value}function Ta(n){n._trackId++,n._depsLength=0}function ka(n){if(n.deps.length>n._depsLength){for(let e=n._depsLength;e<n.deps.length;e++)Oa(n.deps[e],n);n.deps.length=n._depsLength}}function Oa(n,e){const t=n.get(e);t!==void 0&&e._trackId!==t&&(n.delete(e),n.size===0&&n.cleanup())}let yn=!0,Ti=0;const Pa=[];function en(){Pa.push(yn),yn=!1}function tn(){const n=Pa.pop();yn=n===void 0?!0:n}function ki(){Ti++}function Oi(){for(Ti--;!Ti&&Pi.length;)Pi.shift()()}function Ia(n,e,t){var s;if(e.get(n)!==n._trackId){e.set(n,n._trackId);const r=n.deps[n._depsLength];r!==e?(r&&Oa(r,n),n.deps[n._depsLength++]=e):n._depsLength++,{}.NODE_ENV!=="production"&&((s=n.onTrack)==null||s.call(n,Ue({effect:n},t)))}}const Pi=[];function Na(n,e,t){var s;ki();for(const r of n.keys()){let i;r._dirtyLevel<e&&(i??(i=n.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=e),r._shouldSchedule&&(i??(i=n.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((s=r.onTrigger)==null||s.call(r,Ue({effect:r},t))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Pi.push(r.scheduler)))}Oi()}const Da=(n,e)=>{const t=new Map;return t.cleanup=n,t.computed=e,t},Ii=new WeakMap,Rn=Symbol({}.NODE_ENV!=="production"?"iterate":""),Ni=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function ct(n,e,t){if(yn&&An){let s=Ii.get(n);s||Ii.set(n,s=new Map);let r=s.get(t);r||s.set(t,r=Da(()=>s.delete(t))),Ia(An,r,{}.NODE_ENV!=="production"?{target:n,type:e,key:t}:void 0)}}function Ut(n,e,t,s,r,i){const o=Ii.get(n);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(t==="length"&&ve(n)){const l=Number(s);o.forEach((c,u)=>{(u==="length"||!Nn(u)&&u>=l)&&a.push(c)})}else switch(t!==void 0&&a.push(o.get(t)),e){case"add":ve(n)?wi(t)&&a.push(o.get("length")):(a.push(o.get(Rn)),In(n)&&a.push(o.get(Ni)));break;case"delete":ve(n)||(a.push(o.get(Rn)),In(n)&&a.push(o.get(Ni)));break;case"set":In(n)&&a.push(o.get(Rn));break}ki();for(const l of a)l&&Na(l,4,{}.NODE_ENV!=="production"?{target:n,type:e,key:t,newValue:s,oldValue:r,oldTarget:i}:void 0);Oi()}const ah=Yt("__proto__,__v_isRef,__isVue"),Ma=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Nn)),Aa=lh();function lh(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const s=Pe(this);for(let i=0,o=this.length;i<o;i++)ct(s,"get",i+"");const r=s[e](...t);return r===-1||r===!1?s[e](...t.map(Pe)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{n[e]=function(...t){en(),ki();const s=Pe(this)[e].apply(this,t);return Oi(),tn(),s}}),n}function ch(n){Nn(n)||(n=String(n));const e=Pe(this);return ct(e,"has",n),e.hasOwnProperty(n)}class Ra{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,s){const r=this._isReadonly,i=this._isShallow;if(t==="__v_isReactive")return!r;if(t==="__v_isReadonly")return r;if(t==="__v_isShallow")return i;if(t==="__v_raw")return s===(r?i?Xa:Ya:i?Ha:Ba).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=ve(e);if(!r){if(o&&Ne(Aa,t))return Reflect.get(Aa,t,s);if(t==="hasOwnProperty")return ch}const a=Reflect.get(e,t,s);return(Nn(t)?Ma.has(t):ah(t))||(r||ct(e,"get",t),i)?a:ut(a)?o&&wi(t)?a:a.value:je(a)?r?Ua(a):_t(a):a}}class $a extends Ra{constructor(e=!1){super(!1,e)}set(e,t,s,r){let i=e[t];if(!this._isShallow){const l=$n(i);if(!Ln(s)&&!$n(s)&&(i=Pe(i),s=Pe(s)),!ve(e)&&ut(i)&&!ut(s))return l?!1:(i.value=s,!0)}const o=ve(e)&&wi(t)?Number(t)<e.length:Ne(e,t),a=Reflect.set(e,t,s,r);return e===Pe(r)&&(o?gn(s,i)&&Ut(e,"set",t,s,i):Ut(e,"add",t,s)),a}deleteProperty(e,t){const s=Ne(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&s&&Ut(e,"delete",t,void 0,r),i}has(e,t){const s=Reflect.has(e,t);return(!Nn(t)||!Ma.has(t))&&ct(e,"has",t),s}ownKeys(e){return ct(e,"iterate",ve(e)?"length":Rn),Reflect.ownKeys(e)}}class La extends Ra{constructor(e=!1){super(!0,e)}set(e,t){return{}.NODE_ENV!=="production"&&vn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return{}.NODE_ENV!=="production"&&vn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const uh=new $a,hh=new La,fh=new $a(!0),dh=new La(!0),Di=n=>n,ar=n=>Reflect.getPrototypeOf(n);function lr(n,e,t=!1,s=!1){n=n.__v_raw;const r=Pe(n),i=Pe(e);t||(gn(e,i)&&ct(r,"get",e),ct(r,"get",i));const{has:o}=ar(r),a=s?Di:t?Ai:gs;if(o.call(r,e))return a(n.get(e));if(o.call(r,i))return a(n.get(i));n!==r&&n.get(e)}function cr(n,e=!1){const t=this.__v_raw,s=Pe(t),r=Pe(n);return e||(gn(n,r)&&ct(s,"has",n),ct(s,"has",r)),n===r?t.has(n):t.has(n)||t.has(r)}function ur(n,e=!1){return n=n.__v_raw,!e&&ct(Pe(n),"iterate",Rn),Reflect.get(n,"size",n)}function Va(n){n=Pe(n);const e=Pe(this);return ar(e).has.call(e,n)||(e.add(n),Ut(e,"add",n,n)),this}function Fa(n,e){e=Pe(e);const t=Pe(this),{has:s,get:r}=ar(t);let i=s.call(t,n);i?{}.NODE_ENV!=="production"&&za(t,s,n):(n=Pe(n),i=s.call(t,n));const o=r.call(t,n);return t.set(n,e),i?gn(e,o)&&Ut(t,"set",n,e,o):Ut(t,"add",n,e),this}function Ga(n){const e=Pe(this),{has:t,get:s}=ar(e);let r=t.call(e,n);r?{}.NODE_ENV!=="production"&&za(e,t,n):(n=Pe(n),r=t.call(e,n));const i=s?s.call(e,n):void 0,o=e.delete(n);return r&&Ut(e,"delete",n,void 0,i),o}function ja(){const n=Pe(this),e=n.size!==0,t={}.NODE_ENV!=="production"?In(n)?new Map(n):new Set(n):void 0,s=n.clear();return e&&Ut(n,"clear",void 0,void 0,t),s}function hr(n,e){return function(s,r){const i=this,o=i.__v_raw,a=Pe(o),l=e?Di:n?Ai:gs;return!n&&ct(a,"iterate",Rn),o.forEach((c,u)=>s.call(r,l(c),l(u),i))}}function fr(n,e,t){return function(...s){const r=this.__v_raw,i=Pe(r),o=In(i),a=n==="entries"||n===Symbol.iterator&&o,l=n==="keys"&&o,c=r[n](...s),u=t?Di:e?Ai:gs;return!e&&ct(i,"iterate",l?Ni:Rn),{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 _n(n){return function(...e){if({}.NODE_ENV!=="production"){const t=e[0]?`on key "${e[0]}" `:"";vn(`${Dn(n)} operation ${t}failed: target is readonly.`,Pe(this))}return n==="delete"?!1:n==="clear"?void 0:this}}function ph(){const n={get(i){return lr(this,i)},get size(){return ur(this)},has:cr,add:Va,set:Fa,delete:Ga,clear:ja,forEach:hr(!1,!1)},e={get(i){return lr(this,i,!1,!0)},get size(){return ur(this)},has:cr,add:Va,set:Fa,delete:Ga,clear:ja,forEach:hr(!1,!0)},t={get(i){return lr(this,i,!0)},get size(){return ur(this,!0)},has(i){return cr.call(this,i,!0)},add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear"),forEach:hr(!0,!1)},s={get(i){return lr(this,i,!0,!0)},get size(){return ur(this,!0)},has(i){return cr.call(this,i,!0)},add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear"),forEach:hr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=fr(i,!1,!1),t[i]=fr(i,!0,!1),e[i]=fr(i,!1,!0),s[i]=fr(i,!0,!0)}),[n,t,e,s]}const[mh,gh,vh,yh]=ph();function dr(n,e){const t=e?n?yh:vh:n?gh:mh;return(s,r,i)=>r==="__v_isReactive"?!n:r==="__v_isReadonly"?n:r==="__v_raw"?s:Reflect.get(Ne(t,r)&&r in s?t:s,r,i)}const _h={get:dr(!1,!1)},bh={get:dr(!1,!0)},xh={get:dr(!0,!1)},wh={get:dr(!0,!0)};function za(n,e,t){const s=Pe(t);if(s!==t&&e.call(n,s)){const r=xi(n);vn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="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,Xa=new WeakMap;function Eh(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sh(n){return n.__v_skip||!Object.isExtensible(n)?0:Eh(xi(n))}function _t(n){return $n(n)?n:pr(n,!1,uh,_h,Ba)}function Ch(n){return pr(n,!1,fh,bh,Ha)}function Ua(n){return pr(n,!0,hh,xh,Ya)}function nn(n){return pr(n,!0,dh,wh,Xa)}function pr(n,e,t,s,r){if(!je(n))return{}.NODE_ENV!=="production"&&vn(`value cannot be made reactive: ${String(n)}`),n;if(n.__v_raw&&!(e&&n.__v_isReactive))return n;const i=r.get(n);if(i)return i;const o=Sh(n);if(o===0)return n;const a=new Proxy(n,o===2?s:t);return r.set(n,a),a}function Qn(n){return $n(n)?Qn(n.__v_raw):!!(n&&n.__v_isReactive)}function $n(n){return!!(n&&n.__v_isReadonly)}function Ln(n){return!!(n&&n.__v_isShallow)}function Mi(n){return n?!!n.__v_raw:!1}function Pe(n){const e=n&&n.__v_raw;return e?Pe(e):n}function Th(n){return Object.isExtensible(n)&&wa(n,"__v_skip",!0),n}const gs=n=>je(n)?_t(n):n,Ai=n=>je(n)?Ua(n):n,kh="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 Wa{constructor(e,t,s,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ci(()=>e(this._value),()=>mr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const e=Pe(this);return(!e._cacheable||e.effect.dirty)&&gn(e._value,e._value=e.effect.run())&&mr(e,4),qa(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&vn(kh,`
10
10
 
11
- getter: `,this.getter),Zs(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function mh(t,e,n=!1){let s,i;const r=ae(t);r?(s=t,i={}.NODE_ENV!=="production"?()=>{cn("Write operation failed: computed value is readonly")}:Ge):(s=t.get,i=t.set);const o=new Ma(s,i,r||!i,n);return{}.NODE_ENV!=="production"&&e&&!n&&(o.effect.onTrack=e.onTrack,o.effect.onTrigger=e.onTrigger),o}function Da(t){var e;un&&Cn&&(t=me(t),pa(Cn,(e=t.dep)!=null?e:t.dep=ga(()=>t.dep=void 0,t instanceof Ma?t:void 0),{}.NODE_ENV!=="production"?{target:t,type:"get",key:"value"}:void 0))}function Zs(t,e=4,n){t=me(t);const s=t.dep;s&&ma(s,e,{}.NODE_ENV!=="production"?{target:t,type:"set",key:"value",newValue:n}:void 0)}function Ze(t){return!!(t&&t.__v_isRef===!0)}function G(t){return gh(t,!1)}function gh(t,e){return Ze(t)?t:new _h(t,e)}class _h{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:me(e),this._value=n?e:ts(e)}get value(){return Da(this),this._value}set value(e){const n=this.__v_isShallow||kn(e)||Sn(e);e=n?e:me(e),ln(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:ts(e),Zs(this,4,e))}}function Ce(t){return Ze(t)?t.value:t}const vh={get:(t,e,n)=>Ce(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return Ze(i)&&!Ze(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};function Aa(t){return zn(t)?t:new Proxy(t,vh)}/**
11
+ getter: `,this.getter),mr(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Oh(n,e,t=!1){let s,r;const i=Ee(n);i?(s=n,r={}.NODE_ENV!=="production"?()=>{vn("Write operation failed: computed value is readonly")}:Ze):(s=n.get,r=n.set);const o=new Wa(s,r,i||!r,t);return{}.NODE_ENV!=="production"&&e&&!t&&(o.effect.onTrack=e.onTrack,o.effect.onTrigger=e.onTrigger),o}function qa(n){var e;yn&&An&&(n=Pe(n),Ia(An,(e=n.dep)!=null?e:n.dep=Da(()=>n.dep=void 0,n instanceof Wa?n:void 0),{}.NODE_ENV!=="production"?{target:n,type:"get",key:"value"}:void 0))}function mr(n,e=4,t){n=Pe(n);const s=n.dep;s&&Na(s,e,{}.NODE_ENV!=="production"?{target:n,type:"set",key:"value",newValue:t}:void 0)}function ut(n){return!!(n&&n.__v_isRef===!0)}function B(n){return Ph(n,!1)}function Ph(n,e){return ut(n)?n:new Ih(n,e)}class Ih{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pe(e),this._value=t?e:gs(e)}get value(){return qa(this),this._value}set value(e){const t=this.__v_isShallow||Ln(e)||$n(e);e=t?e:Pe(e),gn(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:gs(e),mr(this,4,e))}}function Ve(n){return ut(n)?n.value:n}const Nh={get:(n,e,t)=>Ve(Reflect.get(n,e,t)),set:(n,e,t,s)=>{const r=n[e];return ut(r)&&!ut(t)?(r.value=t,!0):Reflect.set(n,e,t,s)}};function Ka(n){return Qn(n)?n:new Proxy(n,Nh)}/**
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 Pn=[];function Qs(t){Pn.push(t)}function Js(){Pn.pop()}function B(t,...e){Ut();const n=Pn.length?Pn[Pn.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=yh();if(s)Xt(s,n,11,[t+e.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${gi(n,r.type)}>`).join(`
16
- `),i]);else{const r=[`[Vue warn]: ${t}`,...e];i.length&&r.push(`
17
- `,...bh(i)),console.warn(...r)}Wt()}function yh(){let t=Pn[Pn.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const s=t.component&&t.component.parent;t=s&&s.vnode}return e}function bh(t){const e=[];return t.forEach((n,s)=>{e.push(...s===0?[]:[`
18
- `],...xh(n))}),e}function xh({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",s=t.component?t.component.parent==null:!1,i=` at <${gi(t.component,t.type,s)}`,r=">"+n;return t.props?[i,...wh(t.props),r]:[i+r]}function wh(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(s=>{e.push(...Ra(s,t[s]))}),n.length>3&&e.push(" ..."),e}function Ra(t,e,n){return ze(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Ze(e)?(e=Ra(t,me(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):ae(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=me(e),n?e:[`${t}=`,e])}const gr={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 Xt(t,e,n,s){try{return s?t(...s):t()}catch(i){ns(i,e,n)}}function Ot(t,e,n,s){if(ae(t)){const i=Xt(t,e,n,s);return i&&tr(i)&&i.catch(r=>{ns(r,e,n)}),i}if(re(t)){const i=[];for(let r=0;r<t.length;r++)i.push(Ot(t[r],e,n,s));return i}else({}).NODE_ENV!=="production"&&B(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function ns(t,e,n,s=!0){const i=e?e.vnode:null;if(e){let r=e.parent;const o=e.proxy,a={}.NODE_ENV!=="production"?gr[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,o,a)===!1)return}r=r.parent}const l=e.appContext.config.errorHandler;if(l){Ut(),Xt(l,null,10,[t,o,a]),Wt();return}}Eh(t,n,i,s)}function Eh(t,e,n,s=!0){if({}.NODE_ENV!=="production"){const i=gr[e];if(n&&Qs(n),B(`Unhandled error${i?` during execution of ${i}`:""}`),n&&Js(),s)throw t;console.error(t)}else console.error(t)}let ss=!1,_r=!1;const it=[];let Vt=0;const jn=[];let qt=null,fn=0;const $a=Promise.resolve();let vr=null;const Ch=100;function La(t){const e=vr||$a;return t?e.then(this?t.bind(this):t):e}function Th(t){let e=Vt+1,n=it.length;for(;e<n;){const s=e+n>>>1,i=it[s],r=is(i);r<t||r===t&&i.pre?e=s+1:n=s}return e}function ei(t){(!it.length||!it.includes(t,ss&&t.allowRecurse?Vt+1:Vt))&&(t.id==null?it.push(t):it.splice(Th(t.id),0,t),Fa())}function Fa(){!ss&&!_r&&(_r=!0,vr=$a.then(ja))}function Sh(t){const e=it.indexOf(t);e>Vt&&it.splice(e,1)}function Va(t){re(t)?jn.push(...t):(!qt||!qt.includes(t,t.allowRecurse?fn+1:fn))&&jn.push(t),Fa()}function Ga(t,e,n=ss?Vt+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);n<it.length;n++){const s=it[n];if(s&&s.pre){if(t&&s.id!==t.uid||{}.NODE_ENV!=="production"&&yr(e,s))continue;it.splice(n,1),n--,s()}}}function za(t){if(jn.length){const e=[...new Set(jn)].sort((n,s)=>is(n)-is(s));if(jn.length=0,qt){qt.push(...e);return}for(qt=e,{}.NODE_ENV!=="production"&&(t=t||new Map),fn=0;fn<qt.length;fn++)({}).NODE_ENV!=="production"&&yr(t,qt[fn])||qt[fn]();qt=null,fn=0}}const is=t=>t.id==null?1/0:t.id,kh=(t,e)=>{const n=is(t)-is(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function ja(t){_r=!1,ss=!0,{}.NODE_ENV!=="production"&&(t=t||new Map),it.sort(kh);const e={}.NODE_ENV!=="production"?n=>yr(t,n):Ge;try{for(Vt=0;Vt<it.length;Vt++){const n=it[Vt];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&e(n))continue;Xt(n,null,14)}}}finally{Vt=0,it.length=0,za(t),ss=!1,vr=null,(it.length||jn.length)&&ja(t)}}function yr(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>Ch){const s=e.ownerInstance,i=s&&Wr(s.type);return ns(`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 t.set(e,n+1)}}let Nn=!1;const Hn=new Set;({}).NODE_ENV!=="production"&&(ir().__VUE_HMR_RUNTIME__={createRecord:br(Ha),rerender:br(Oh),reload:br(Ih)});const On=new Map;function Ph(t){const e=t.type.__hmrId;let n=On.get(e);n||(Ha(e,t.type),n=On.get(e)),n.instances.add(t)}function Nh(t){On.get(t.type.__hmrId).instances.delete(t)}function Ha(t,e){return On.has(t)?!1:(On.set(t,{initialDef:rs(e),instances:new Set}),!0)}function rs(t){return Fl(t)?t.__vccOpts:t}function Oh(t,e){const n=On.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(s=>{e&&(s.render=e,rs(s.type).render=e),s.renderCache=[],Nn=!0,s.effect.dirty=!0,s.update(),Nn=!1}))}function Ih(t,e){const n=On.get(t);if(!n)return;e=rs(e),Ba(n.initialDef,e);const s=[...n.instances];for(const i of s){const r=rs(i.type);Hn.has(r)||(r!==n.initialDef&&Ba(r,e),Hn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Hn.add(r),i.ceReload(e.styles),Hn.delete(r)):i.parent?(i.parent.effect.dirty=!0,ei(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.")}Va(()=>{for(const i of s)Hn.delete(rs(i.type))})}function Ba(t,e){Le(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function br(t){return(e,n)=>{try{return t(e,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Gt,os=[],xr=!1;function as(t,...e){Gt?Gt.emit(t,...e):xr||os.push({event:t,args:e})}function Ua(t,e){var n,s;Gt=t,Gt?(Gt.enabled=!0,os.forEach(({event:i,args:r})=>Gt.emit(i,...r)),os=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Ua(r,e)}),setTimeout(()=>{Gt||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,xr=!0,os=[])},3e3)):(xr=!0,os=[])}function Mh(t,e){as("app:init",t,e,{Fragment:ke,Text:ps,Comment:bt,Static:hi})}function Dh(t){as("app:unmount",t)}const Ah=wr("component:added"),Wa=wr("component:updated"),Rh=wr("component:removed"),$h=t=>{Gt&&typeof Gt.cleanupBuffer=="function"&&!Gt.cleanupBuffer(t)&&Rh(t)};/*! #__NO_SIDE_EFFECTS__ */function wr(t){return e=>{as(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const Lh=Ya("perf:start"),Fh=Ya("perf:end");function Ya(t){return(e,n,s)=>{as(t,e.appContext.app,e.uid,e,n,s)}}function Vh(t,e,n){as("component:emit",t.appContext.app,t,e,n)}function Gh(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||Se;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=t;if(u)if(!(e in u))(!h||!(En(e)in h))&&B(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${En(e)}" prop.`);else{const f=u[e];ae(f)&&(f(...n)||B(`Invalid event arguments: event validation failed for event "${e}".`))}}let i=n;const r=e.startsWith("update:"),o=r&&e.slice(7);if(o&&o in s){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=s[u]||Se;f&&(i=n.map(d=>ze(d)?d.trim():d)),h&&(i=n.map(Fu))}if({}.NODE_ENV!=="production"&&Vh(t,e,i),{}.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&s[En(u)]&&B(`Event "${u}" is emitted in component ${gi(t,t.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 "${an(e)}" instead of "${e}".`)}let a,l=s[a=En(e)]||s[a=En(Lt(e))];!l&&r&&(l=s[a=En(an(e))]),l&&Ot(l,t,6,i);const c=s[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Ot(c,t,6,i)}}function Xa(t,e,n=!1){const s=e.emitsCache,i=s.get(t);if(i!==void 0)return i;const r=t.emits;let o={},a=!1;if(!ae(t)){const l=c=>{const u=Xa(c,e,!0);u&&(a=!0,Le(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(Ee(t)&&s.set(t,null),null):(re(r)?r.forEach(l=>o[l]=null):Le(o,r),Ee(t)&&s.set(t,o),o)}function ti(t,e){return!t||!Qn(e)?!1:(e=e.slice(2).replace(/Once$/,""),_e(t,e[0].toLowerCase()+e.slice(1))||_e(t,an(e))||_e(t,e))}let je=null,ni=null;function si(t){const e=je;return je=t,ni=t&&t.type.__scopeId||null,e}function ls(t){ni=t}function cs(){ni=null}function Pe(t,e=je,n){if(!e||t._n)return t;const s=(...i)=>{s._d&&Sl(-1);const r=si(e);let o;try{o=t(...i)}finally{si(r),s._d&&Sl(1)}return{}.NODE_ENV!=="production"&&Wa(e),o};return s._n=!0,s._c=!0,s._d=!0,s}let Er=!1;function ii(){Er=!0}function Cr(t){const{type:e,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:m,inheritAttrs:v}=t,y=si(t);let E,C;({}).NODE_ENV!=="production"&&(Er=!1);try{if(n.shapeFlag&4){const $=i||s,O={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy($,{get(R,le,ue){return B(`Property '${String(le)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(R,le,ue)}}):$;E=Mt(c.call(O,$,u,{}.NODE_ENV!=="production"?Yt(h):h,d,f,m)),C=a}else{const $=e;({}).NODE_ENV!=="production"&&a===h&&ii(),E=Mt($.length>1?$({}.NODE_ENV!=="production"?Yt(h):h,{}.NODE_ENV!=="production"?{get attrs(){return ii(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):$({}.NODE_ENV!=="production"?Yt(h):h,null)),C=e.props?a:zh(a)}}catch($){ms.length=0,ns($,t,1),E=oe(bt)}let w=E,S;if({}.NODE_ENV!=="production"&&E.patchFlag>0&&E.patchFlag&2048&&([w,S]=qa(E)),C&&v!==!1){const $=Object.keys(C),{shapeFlag:O}=w;if($.length){if(O&7)r&&$.some(Gs)&&(C=jh(C,r)),w=mn(w,C);else if({}.NODE_ENV!=="production"&&!Er&&w.type!==bt){const R=Object.keys(a),le=[],ue=[];for(let pe=0,De=R.length;pe<De;pe++){const Oe=R[pe];Qn(Oe)?Gs(Oe)||le.push(Oe[2].toLowerCase()+Oe.slice(3)):ue.push(Oe)}ue.length&&B(`Extraneous non-props attributes (${ue.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),le.length&&B(`Extraneous non-emits event listeners (${le.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 n.dirs&&({}.NODE_ENV!=="production"&&!Ka(w)&&B("Runtime directive used on component with non-element root node. The directives will not function as intended."),w=mn(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&({}.NODE_ENV!=="production"&&!Ka(w)&&B("Component inside <Transition> renders non-element root node that cannot be animated."),w.transition=n.transition),{}.NODE_ENV!=="production"&&S?S(w):E=w,si(y),E}const qa=t=>{const e=t.children,n=t.dynamicChildren,s=Tr(e,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return qa(s)}else return[t,void 0];const i=e.indexOf(s),r=n?n.indexOf(s):-1,o=a=>{e[i]=a,n&&(r>-1?n[r]=a:a.patchFlag>0&&(t.dynamicChildren=[...n,a]))};return[Mt(s),o]};function Tr(t,e=!0){let n;for(let s=0;s<t.length;s++){const i=t[s];if(Bn(i)){if(i.type!==bt||i.children==="v-if"){if(n)return;if(n=i,{}.NODE_ENV!=="production"&&e&&n.patchFlag>0&&n.patchFlag&2048)return Tr(n.children)}}else return}return n}const zh=t=>{let e;for(const n in t)(n==="class"||n==="style"||Qn(n))&&((e||(e={}))[n]=t[n]);return e},jh=(t,e)=>{const n={};for(const s in t)(!Gs(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n},Ka=t=>t.shapeFlag&7||t.type===bt;function Hh(t,e,n){const{props:s,children:i,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Nn||e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Za(s,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==s[f]&&!ti(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?Za(s,o,c):!0:!!o;return!1}function Za(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(e[r]!==t[r]&&!ti(n,r))return!0}return!1}function Bh({vnode:t,parent:e},n){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.el=t.el),s===t)(t=e.vnode).el=n,e=e.parent;else break}}const Sr="components";function Uh(t,e){return Yh(Sr,t,!0,e)||t}const Wh=Symbol.for("v-ndc");function Yh(t,e,n=!0,s=!1){const i=je||Ue;if(i){const r=i.type;if(t===Sr){const a=Wr(r,!1);if(a&&(a===e||a===Lt(e)||a===wn(Lt(e))))return r}const o=Qa(i[t]||r[t],e)||Qa(i.appContext[t],e);if(!o&&s)return r;if({}.NODE_ENV!=="production"&&n&&!o){const a=t===Sr?`
19
- If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";B(`Failed to resolve ${t.slice(0,-1)}: ${e}${a}`)}return o}else({}).NODE_ENV!=="production"&&B(`resolve${wn(t.slice(0,-1))} can only be used in render() or setup().`)}function Qa(t,e){return t&&(t[e]||t[Lt(e)]||t[wn(Lt(e))])}const Xh=t=>t.__isSuspense;function qh(t,e){e&&e.pendingBranch?re(t)?e.effects.push(...t):e.effects.push(t):Va(t)}const Kh=Symbol.for("v-scx"),Zh=()=>{{const t=li(Kh);return t||{}.NODE_ENV!=="production"&&B("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function Ja(t,e){return kr(t,null,e)}const ri={};function ve(t,e,n){return{}.NODE_ENV!=="production"&&!ae(e)&&B("`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."),kr(t,e,n)}function kr(t,e,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:a}=Se){if(e&&r){const R=e;e=(...le)=>{R(...le),O()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&B('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&&(n!==void 0&&B('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&B('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&B('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=R=>{B("Invalid watch source: ",R,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=Ue,u=R=>s===!0?R:In(R,s===!1?1:void 0);let h,f=!1,d=!1;if(Ze(t)?(h=()=>t.value,f=kn(t)):zn(t)?(h=()=>u(t),f=!0):re(t)?(d=!0,f=t.some(R=>zn(R)||kn(R)),h=()=>t.map(R=>{if(Ze(R))return R.value;if(zn(R))return u(R);if(ae(R))return Xt(R,c,2);({}).NODE_ENV!=="production"&&l(R)})):ae(t)?e?h=()=>Xt(t,c,2):h=()=>(m&&m(),Ot(t,c,3,[v])):(h=Ge,{}.NODE_ENV!=="production"&&l(t)),e&&s){const R=h;h=()=>In(R())}let m,v=R=>{m=S.onStop=()=>{Xt(R,c,4),m=S.onStop=void 0}},y;if(pi)if(v=Ge,e?n&&Ot(e,c,3,[h(),d?[]:void 0,v]):h(),i==="sync"){const R=Zh();y=R.__watcherHandles||(R.__watcherHandles=[])}else return Ge;let E=d?new Array(t.length).fill(ri):ri;const C=()=>{if(!(!S.active||!S.dirty))if(e){const R=S.run();(s||f||(d?R.some((le,ue)=>ln(le,E[ue])):ln(R,E)))&&(m&&m(),Ot(e,c,3,[R,E===ri?void 0:d&&E[0]===ri?[]:E,v]),E=R)}else S.run()};C.allowRecurse=!!e;let w;i==="sync"?w=C:i==="post"?w=()=>yt(C,c&&c.suspense):(C.pre=!0,c&&(C.id=c.uid),w=()=>ei(C));const S=new or(h,Ge,w),$=Wu(),O=()=>{S.stop(),$&&er($.effects,S)};return{}.NODE_ENV!=="production"&&(S.onTrack=o,S.onTrigger=a),e?n?C():E=S.run():i==="post"?yt(S.run.bind(S),c&&c.suspense):S.run(),y&&y.push(O),O}function Qh(t,e,n){const s=this.proxy,i=ze(t)?t.includes(".")?el(s,t):()=>s[t]:t.bind(s,s);let r;ae(e)?r=e:(r=e.handler,n=e);const o=vs(this),a=kr(i,r.bind(s),n);return o(),a}function el(t,e){const n=e.split(".");return()=>{let s=t;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function In(t,e,n=0,s){if(!Ee(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(s=s||new Set,s.has(t))return t;if(s.add(t),Ze(t))In(t.value,e,n,s);else if(re(t))for(let i=0;i<t.length;i++)In(t[i],e,n,s);else if(sa(t)||bn(t))t.forEach(i=>{In(i,e,n,s)});else if(ra(t))for(const i in t)In(t[i],e,n,s);return t}function tl(t){Ru(t)&&B("Do not use built-in directive ids as custom directive id: "+t)}function Pr(t,e){if(je===null)return{}.NODE_ENV!=="production"&&B("withDirectives can only be used inside render functions."),t;const n=mi(je)||je.proxy,s=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[r,o,a,l=Se]=e[i];r&&(ae(r)&&(r={mounted:r,updated:r}),r.deep&&In(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return t}function Mn(t,e,n,s){const i=t.dirs,r=e&&e.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&(Ut(),Ot(l,n,8,[t.el,a,t,e]),Wt())}}/*! #__NO_SIDE_EFFECTS__ */function J(t,e){return ae(t)?(()=>Le({name:t.name},e,{setup:t}))():t}const us=t=>!!t.type.__asyncLoader,Nr=t=>t.type.__isKeepAlive;function Jh(t,e){nl(t,"a",e)}function ef(t,e){nl(t,"da",e)}function nl(t,e,n=Ue){const s=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(oi(e,s,n),n){let i=n.parent;for(;i&&i.parent;)Nr(i.parent.vnode)&&tf(s,e,n,i),i=i.parent}}function tf(t,e,n,s){const i=oi(e,t,s,!0);Ve(()=>{er(s[e],i)},n)}function oi(t,e,n=Ue,s=!1){if(n){const i=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Ut();const a=vs(n),l=Ot(e,n,t,o);return a(),Wt(),l});return s?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=En(gr[t].replace(/ hook$/,""));B(`${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 Kt=t=>(e,n=Ue)=>(!pi||t==="sp")&&oi(t,(...s)=>e(...s),n),nf=Kt("bm"),dn=Kt("m"),sf=Kt("bu"),rf=Kt("u"),of=Kt("bum"),Ve=Kt("um"),af=Kt("sp"),lf=Kt("rtg"),cf=Kt("rtc");function uf(t,e=Ue){oi("ec",t,e)}function ct(t,e,n,s){let i;const r=n&&n[s];if(re(t)||ze(t)){i=new Array(t.length);for(let o=0,a=t.length;o<a;o++)i[o]=e(t[o],o,void 0,r&&r[o])}else if(typeof t=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(t)&&B(`The v-for range expect an integer value but got ${t}.`),i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,r&&r[o])}else if(Ee(t))if(t[Symbol.iterator])i=Array.from(t,(o,a)=>e(o,a,void 0,r&&r[a]));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=e(t[c],c,a,r&&r[a])}}else i=[];return n&&(n[s]=i),i}function Re(t,e,n={},s,i){if(je.isCE||je.parent&&us(je.parent)&&je.parent.isCE)return e!=="default"&&(n.name=e),oe("slot",n,s&&s());let r=t[e];({}).NODE_ENV!=="production"&&r&&r.length>1&&(B("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."),r=()=>[]),r&&r._c&&(r._d=!1),D();const o=r&&sl(r(n)),a=Qe(ke,{key:n.key||o&&o.key||`_${e}`},o||(s?s():[]),o&&t._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function sl(t){return t.some(e=>Bn(e)?!(e.type===bt||e.type===ke&&!sl(e.children)):!0)?t:null}const Or=t=>t?Dl(t)?mi(t)||t.proxy:Or(t.parent):null,Dn=Le(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>({}).NODE_ENV!=="production"?Yt(t.props):t.props,$attrs:t=>({}).NODE_ENV!=="production"?Yt(t.attrs):t.attrs,$slots:t=>({}).NODE_ENV!=="production"?Yt(t.slots):t.slots,$refs:t=>({}).NODE_ENV!=="production"?Yt(t.refs):t.refs,$parent:t=>Or(t.parent),$root:t=>Or(t.root),$emit:t=>t.emit,$options:t=>Ar(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,ei(t.update)}),$nextTick:t=>t.n||(t.n=La.bind(t.proxy)),$watch:t=>Qh.bind(t)}),Ir=t=>t==="_"||t==="$",Mr=(t,e)=>t!==Se&&!t.__isScriptSetup&&_e(t,e),il={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:l}=t;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return s[e];case 2:return i[e];case 4:return n[e];case 3:return r[e]}else{if(Mr(s,e))return o[e]=1,s[e];if(i!==Se&&_e(i,e))return o[e]=2,i[e];if((c=t.propsOptions[0])&&_e(c,e))return o[e]=3,r[e];if(n!==Se&&_e(n,e))return o[e]=4,n[e];Dr&&(o[e]=0)}}const u=Dn[e];let h,f;if(u)return e==="$attrs"?(Ke(t.attrs,"get",""),{}.NODE_ENV!=="production"&&ii()):{}.NODE_ENV!=="production"&&e==="$slots"&&Ke(t,"get",e),u(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==Se&&_e(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,_e(f,e))return f[e];({}).NODE_ENV!=="production"&&je&&(!ze(e)||e.indexOf("__v")!==0)&&(i!==Se&&Ir(e[0])&&_e(i,e)?B(`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.`):t===je&&B(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:s,setupState:i,ctx:r}=t;return Mr(i,e)?(i[e]=n,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&_e(i,e)?(B(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):s!==Se&&_e(s,e)?(s[e]=n,!0):_e(t.props,e)?({}.NODE_ENV!=="production"&&B(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?({}.NODE_ENV!=="production"&&B(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:n}):r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!n[o]||t!==Se&&_e(t,o)||Mr(e,o)||(a=r[0])&&_e(a,o)||_e(s,o)||_e(Dn,o)||_e(i.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:_e(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};({}).NODE_ENV!=="production"&&(il.ownKeys=t=>(B("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(t)));function hf(t){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>t}),Object.keys(Dn).forEach(n=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:()=>Dn[n](t),set:Ge})}),e}function ff(t){const{ctx:e,propsOptions:[n]}=t;n&&Object.keys(n).forEach(s=>{Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>t.props[s],set:Ge})})}function df(t){const{ctx:e,setupState:n}=t;Object.keys(me(n)).forEach(s=>{if(!n.__isScriptSetup){if(Ir(s[0])){B(`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:()=>n[s],set:Ge})}})}function pf(){return mf().slots}function mf(){const t=Il();return{}.NODE_ENV!=="production"&&!t&&B("useContext() called without active instance."),t.setupContext||(t.setupContext=Ll(t))}function rl(t){return re(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function gf(){const t=Object.create(null);return(e,n)=>{t[n]?B(`${e} property "${n}" is already defined in ${t[n]}.`):t[n]=e}}let Dr=!0;function _f(t){const e=Ar(t),n=t.proxy,s=t.ctx;Dr=!1,e.beforeCreate&&ol(e.beforeCreate,t,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:m,activated:v,deactivated:y,beforeDestroy:E,beforeUnmount:C,destroyed:w,unmounted:S,render:$,renderTracked:O,renderTriggered:R,errorCaptured:le,serverPrefetch:ue,expose:pe,inheritAttrs:De,components:Oe,directives:at,filters:lt}=e,We={}.NODE_ENV!=="production"?gf():null;if({}.NODE_ENV!=="production"){const[he]=t.propsOptions;if(he)for(const M in he)We("Props",M)}if(c&&vf(c,s,We),o)for(const he in o){const M=o[he];ae(M)?({}.NODE_ENV!=="production"?Object.defineProperty(s,he,{value:M.bind(n),configurable:!0,enumerable:!0,writable:!0}):s[he]=M.bind(n),{}.NODE_ENV!=="production"&&We("Methods",he)):{}.NODE_ENV!=="production"&&B(`Method "${he}" has type "${typeof M}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!ae(i)&&B("The data option must be a function. Plain object usage is no longer supported.");const he=i.call(n,n);if({}.NODE_ENV!=="production"&&tr(he)&&B("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ee(he))({}).NODE_ENV!=="production"&&B("data() should return an object.");else if(t.data=st(he),{}.NODE_ENV!=="production")for(const M in he)We("Data",M),Ir(M[0])||Object.defineProperty(s,M,{configurable:!0,enumerable:!0,get:()=>he[M],set:Ge})}if(Dr=!0,r)for(const he in r){const M=r[he],Y=ae(M)?M.bind(n,n):ae(M.get)?M.get.bind(n,n):Ge;({}).NODE_ENV!=="production"&&Y===Ge&&B(`Computed property "${he}" has no getter.`);const j=!ae(M)&&ae(M.set)?M.set.bind(n):{}.NODE_ENV!=="production"?()=>{B(`Write operation failed: computed property "${he}" is readonly.`)}:Ge,de=td({get:Y,set:j});Object.defineProperty(s,he,{enumerable:!0,configurable:!0,get:()=>de.value,set:fe=>de.value=fe}),{}.NODE_ENV!=="production"&&We("Computed",he)}if(a)for(const he in a)al(a[he],s,n,he);if(l){const he=ae(l)?l.call(n):l;Reflect.ownKeys(he).forEach(M=>{Cf(M,he[M])})}u&&ol(u,t,"c");function Te(he,M){re(M)?M.forEach(Y=>he(Y.bind(n))):M&&he(M.bind(n))}if(Te(nf,h),Te(dn,f),Te(sf,d),Te(rf,m),Te(Jh,v),Te(ef,y),Te(uf,le),Te(cf,O),Te(lf,R),Te(of,C),Te(Ve,S),Te(af,ue),re(pe))if(pe.length){const he=t.exposed||(t.exposed={});pe.forEach(M=>{Object.defineProperty(he,M,{get:()=>n[M],set:Y=>n[M]=Y})})}else t.exposed||(t.exposed={});$&&t.render===Ge&&(t.render=$),De!=null&&(t.inheritAttrs=De),Oe&&(t.components=Oe),at&&(t.directives=at)}function vf(t,e,n=Ge){re(t)&&(t=Rr(t));for(const s in t){const i=t[s];let r;Ee(i)?"default"in i?r=li(i.from||s,i.default,!0):r=li(i.from||s):r=li(i),Ze(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r,{}.NODE_ENV!=="production"&&n("Inject",s)}}function ol(t,e,n){Ot(re(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function al(t,e,n,s){const i=s.includes(".")?el(n,s):()=>n[s];if(ze(t)){const r=e[t];ae(r)?ve(i,r):{}.NODE_ENV!=="production"&&B(`Invalid watch handler specified by key "${t}"`,r)}else if(ae(t))ve(i,t.bind(n));else if(Ee(t))if(re(t))t.forEach(r=>al(r,e,n,s));else{const r=ae(t.handler)?t.handler.bind(n):e[t.handler];ae(r)?ve(i,r,t):{}.NODE_ENV!=="production"&&B(`Invalid watch handler specified by key "${t.handler}"`,r)}else({}).NODE_ENV!=="production"&&B(`Invalid watch option: "${s}"`,t)}function Ar(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!i.length&&!n&&!s?l=e:(l={},i.length&&i.forEach(c=>ai(l,c,o,!0)),ai(l,e,o)),Ee(e)&&r.set(e,l),l}function ai(t,e,n,s=!1){const{mixins:i,extends:r}=e;r&&ai(t,r,n,!0),i&&i.forEach(o=>ai(t,o,n,!0));for(const o in e)if(s&&o==="expose")({}).NODE_ENV!=="production"&&B('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=yf[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const yf={data:ll,props:cl,emits:cl,methods:hs,computed:hs,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:hs,directives:hs,watch:xf,provide:ll,inject:bf};function ll(t,e){return e?t?function(){return Le(ae(t)?t.call(this,this):t,ae(e)?e.call(this,this):e)}:e:t}function bf(t,e){return hs(Rr(t),Rr(e))}function Rr(t){if(re(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ut(t,e){return t?[...new Set([].concat(t,e))]:e}function hs(t,e){return t?Le(Object.create(null),t,e):e}function cl(t,e){return t?re(t)&&re(e)?[...new Set([...t,...e])]:Le(Object.create(null),rl(t),rl(e??{})):e}function xf(t,e){if(!t)return e;if(!e)return t;const n=Le(Object.create(null),t);for(const s in e)n[s]=ut(t[s],e[s]);return n}function ul(){return{app:null,config:{isNativeTag:Du,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 wf=0;function Ef(t,e){return function(s,i=null){ae(s)||(s=Le({},s)),i!=null&&!Ee(i)&&({}.NODE_ENV!=="production"&&B("root props passed to app.mount() must be an object."),i=null);const r=ul(),o=new WeakSet;let a=!1;const l=r.app={_uid:wf++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:Vl,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&B("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&B("Plugin has already been applied to target app."):c&&ae(c.install)?(o.add(c),c.install(l,...u)):ae(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&B('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return r.mixins.includes(c)?{}.NODE_ENV!=="production"&&B("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Br(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&B(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&tl(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&B(`Directive "${c}" has already been registered in target app.`),r.directives[c]=u,l):r.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&B("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__&&B("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=oe(s,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{t(mn(f),c,h)}),u&&e?e(f,c):t(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,Mh(l,Vl)),mi(f.component)||f.component.proxy}},unmount(){a?(t(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Dh(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&B("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&B(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=u,l},runWithContext(c){const u=fs;fs=l;try{return c()}finally{fs=u}}};return l}}let fs=null;function Cf(t,e){if(!Ue)({}).NODE_ENV!=="production"&&B("provide() can only be used inside setup().");else{let n=Ue.provides;const s=Ue.parent&&Ue.parent.provides;s===n&&(n=Ue.provides=Object.create(s)),n[t]=e}}function li(t,e,n=!1){const s=Ue||je;if(s||fs){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:fs._context.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&ae(e)?e.call(s&&s.proxy):e;({}).NODE_ENV!=="production"&&B(`injection "${String(t)}" not found.`)}else({}).NODE_ENV!=="production"&&B("inject() can only be used inside setup() or functional components.")}const hl={},fl=()=>Object.create(hl),dl=t=>Object.getPrototypeOf(t)===hl;function Tf(t,e,n,s=!1){const i={},r=fl();t.propsDefaults=Object.create(null),pl(t,e,i,r);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&yl(e||{},i,t),n?t.props=s?i:fh(i):t.type.props?t.props=i:t.props=r,t.attrs=r}function Sf(t){for(;t;){if(t.type.__hmrId)return!0;t=t.parent}}function kf(t,e,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=t,a=me(i),[l]=t.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Sf(t))&&(s||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(ti(t.emitsOptions,f))continue;const d=e[f];if(l)if(_e(r,f))d!==r[f]&&(r[f]=d,c=!0);else{const m=Lt(f);i[m]=$r(l,a,m,d,t,!1)}else d!==r[f]&&(r[f]=d,c=!0)}}}else{pl(t,e,i,r)&&(c=!0);let u;for(const h in a)(!e||!_e(e,h)&&((u=an(h))===h||!_e(e,u)))&&(l?n&&(n[h]!==void 0||n[u]!==void 0)&&(i[h]=$r(l,a,h,void 0,t,!0)):delete i[h]);if(r!==a)for(const h in r)(!e||!_e(e,h))&&(delete r[h],c=!0)}c&&Ft(t.attrs,"set",""),{}.NODE_ENV!=="production"&&yl(e||{},i,t)}function pl(t,e,n,s){const[i,r]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(Jn(l))continue;const c=e[l];let u;i&&_e(i,u=Lt(l))?!r||!r.includes(u)?n[u]=c:(a||(a={}))[u]=c:ti(t.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,o=!0)}if(r){const l=me(n),c=a||Se;for(let u=0;u<r.length;u++){const h=r[u];n[h]=$r(i,l,h,c[h],t,!_e(c,h))}}return o}function $r(t,e,n,s,i,r){const o=t[n];if(o!=null){const a=_e(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ae(l)){const{propsDefaults:c}=i;if(n in c)s=c[n];else{const u=vs(i);s=c[n]=l.call(null,e),u()}}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===an(n))&&(s=!0))}return s}function ml(t,e,n=!1){const s=e.propsCache,i=s.get(t);if(i)return i;const r=t.props,o={},a=[];let l=!1;if(!ae(t)){const u=h=>{l=!0;const[f,d]=ml(h,e,!0);Le(o,f),d&&a.push(...d)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!r&&!l)return Ee(t)&&s.set(t,Gn),Gn;if(re(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!ze(r[u])&&B("props must be strings when using array syntax.",r[u]);const h=Lt(r[u]);gl(h)&&(o[h]=Se)}else if(r){({}).NODE_ENV!=="production"&&!Ee(r)&&B("invalid props options",r);for(const u in r){const h=Lt(u);if(gl(h)){const f=r[u],d=o[h]=re(f)||ae(f)?{type:f}:Le({},f);if(d){const m=vl(Boolean,d.type),v=vl(String,d.type);d[0]=m>-1,d[1]=v<0||m<v,(m>-1||_e(d,"default"))&&a.push(h)}}}}const c=[o,a];return Ee(t)&&s.set(t,c),c}function gl(t){return t[0]!=="$"&&!Jn(t)?!0:({}.NODE_ENV!=="production"&&B(`Invalid prop name: "${t}" is a reserved property.`),!1)}function Lr(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function _l(t,e){return Lr(t)===Lr(e)}function vl(t,e){return re(e)?e.findIndex(n=>_l(n,t)):ae(e)&&_l(e,t)?0:-1}function yl(t,e,n){const s=me(e),i=n.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Pf(r,s[r],o,{}.NODE_ENV!=="production"?Yt(s):s,!_e(t,r)&&!_e(t,an(r)))}}function Pf(t,e,n,s,i){const{type:r,required:o,validator:a,skipCheck:l}=n;if(o&&i){B('Missing required prop: "'+t+'"');return}if(!(e==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=re(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=Of(e,u[f]);h.push(m||""),c=d}if(!c){B(If(t,e,h));return}}a&&!a(e,s)&&B('Invalid prop: custom validator check failed for prop "'+t+'".')}}const Nf=$t("String,Number,Boolean,Function,Symbol,BigInt");function Of(t,e){let n;const s=Lr(e);if(Nf(s)){const i=typeof t;n=i===s.toLowerCase(),!n&&i==="object"&&(n=t instanceof e)}else s==="Object"?n=Ee(t):s==="Array"?n=re(t):s==="null"?n=t===null:n=t instanceof e;return{valid:n,expectedType:s}}function If(t,e,n){if(n.length===0)return`Prop type [] for prop "${t}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${t}". Expected ${n.map(wn).join(" | ")}`;const i=n[0],r=nr(e),o=bl(e,i),a=bl(e,r);return n.length===1&&xl(i)&&!Mf(i,r)&&(s+=` with value ${o}`),s+=`, got ${r} `,xl(r)&&(s+=`with value ${a}.`),s}function bl(t,e){return e==="String"?`"${t}"`:e==="Number"?`${Number(t)}`:`${t}`}function xl(t){return["string","number","boolean"].some(n=>t.toLowerCase()===n)}function Mf(...t){return t.some(e=>e.toLowerCase()==="boolean")}const wl=t=>t[0]==="_"||t==="$stable",Fr=t=>re(t)?t.map(Mt):[Mt(t)],Df=(t,e,n)=>{if(e._n)return e;const s=Pe((...i)=>({}.NODE_ENV!=="production"&&Ue&&(!n||n.root===Ue.root)&&B(`Slot "${t}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Fr(e(...i))),n);return s._c=!1,s},El=(t,e,n)=>{const s=t._ctx;for(const i in t){if(wl(i))continue;const r=t[i];if(ae(r))e[i]=Df(i,r,s);else if(r!=null){({}).NODE_ENV!=="production"&&B(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Fr(r);e[i]=()=>o}}},Cl=(t,e)=>{({}).NODE_ENV!=="production"&&!Nr(t.vnode)&&B("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Fr(e);t.slots.default=()=>n},Af=(t,e)=>{const n=t.slots=fl();if(t.vnode.shapeFlag&32){const s=e._;s?(Le(n,e),oa(n,"_",s)):El(e,n)}else e&&Cl(t,e)},Rf=(t,e,n)=>{const{vnode:s,slots:i}=t;let r=!0,o=Se;if(s.shapeFlag&32){const a=e._;a?{}.NODE_ENV!=="production"&&Nn?(Le(i,e),Ft(t,"set","$slots")):n&&a===1?r=!1:(Le(i,e),!n&&a===1&&delete i._):(r=!e.$stable,El(e,i)),o=e}else e&&(Cl(t,e),o={default:1});if(r)for(const a in i)!wl(a)&&o[a]==null&&delete i[a]};function Vr(t,e,n,s,i=!1){if(re(t)){t.forEach((f,d)=>Vr(f,e&&(re(e)?e[d]:e),n,s,i));return}if(us(s)&&!i)return;const r=s.shapeFlag&4?mi(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=t;if({}.NODE_ENV!=="production"&&!a){B("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===Se?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(ze(c)?(u[c]=null,_e(h,c)&&(h[c]=null)):Ze(c)&&(c.value=null)),ae(l))Xt(l,a,12,[o,u]);else{const f=ze(l),d=Ze(l);if(f||d){const m=()=>{if(t.f){const v=f?_e(h,l)?h[l]:u[l]:l.value;i?re(v)&&er(v,r):re(v)?v.includes(r)||v.push(r):f?(u[l]=[r],_e(h,l)&&(h[l]=u[l])):(l.value=[r],t.k&&(u[t.k]=l.value))}else f?(u[l]=o,_e(h,l)&&(h[l]=o)):d?(l.value=o,t.k&&(u[t.k]=o)):{}.NODE_ENV!=="production"&&B("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,yt(m,n)):m()}else({}).NODE_ENV!=="production"&&B("Invalid template ref type:",l,`(${typeof l})`)}}let ds,pn;function Zt(t,e){t.appContext.config.performance&&ci()&&pn.mark(`vue-${e}-${t.uid}`),{}.NODE_ENV!=="production"&&Lh(t,e,ci()?pn.now():Date.now())}function Qt(t,e){if(t.appContext.config.performance&&ci()){const n=`vue-${e}-${t.uid}`,s=n+":end";pn.mark(s),pn.measure(`<${gi(t,t.type)}> ${e}`,n,s),pn.clearMarks(n),pn.clearMarks(s)}({}).NODE_ENV!=="production"&&Fh(t,e,ci()?pn.now():Date.now())}function ci(){return ds!==void 0||(typeof window<"u"&&window.performance?(ds=!0,pn=window.performance):ds=!1),ds}function $f(){const t=[];if({}.NODE_ENV!=="production"&&t.length){const e=t.length>1;console.warn(`Feature flag${e?"s":""} ${t.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.
15
+ **/const Vn=[];function gr(n){Vn.push(n)}function vr(){Vn.pop()}function ee(n,...e){en();const t=Vn.length?Vn[Vn.length-1].component:null,s=t&&t.appContext.config.warnHandler,r=Dh();if(s)sn(s,t,11,[n+e.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),t&&t.proxy,r.map(({vnode:i})=>`at <${Ar(t,i.type)}>`).join(`
16
+ `),r]);else{const i=[`[Vue warn]: ${n}`,...e];r.length&&i.push(`
17
+ `,...Mh(r)),console.warn(...i)}tn()}function Dh(){let n=Vn[Vn.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 Mh(n){const e=[];return n.forEach((t,s)=>{e.push(...s===0?[]:[`
18
+ `],...Ah(t))}),e}function Ah({vnode:n,recurseCount:e}){const t=e>0?`... (${e} recursive calls)`:"",s=n.component?n.component.parent==null:!1,r=` at <${Ar(n.component,n.type,s)}`,i=">"+t;return n.props?[r,...Rh(n.props),i]:[r+i]}function Rh(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 Qe(e)?(e=JSON.stringify(e),t?e:[`${n}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?t?e:[`${n}=${e}`]:ut(e)?(e=Za(n,Pe(e.value),!0),t?e:[`${n}=Ref<`,e,">"]):Ee(e)?[`${n}=fn${e.name?`<${e.name}>`:""}`]:(e=Pe(e),t?e:[`${n}=`,e])}const Ri={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 sn(n,e,t,s){try{return s?n(...s):n()}catch(r){vs(r,e,t)}}function jt(n,e,t,s){if(Ee(n)){const r=sn(n,e,t,s);return r&&bi(r)&&r.catch(i=>{vs(i,e,t)}),r}if(ve(n)){const r=[];for(let i=0;i<n.length;i++)r.push(jt(n[i],e,t,s));return r}else({}).NODE_ENV!=="production"&&ee(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof n}`)}function vs(n,e,t,s=!0){const r=e?e.vnode:null;if(e){let i=e.parent;const o=e.proxy,a={}.NODE_ENV!=="production"?Ri[t]:`https://vuejs.org/error-reference/#runtime-${t}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](n,o,a)===!1)return}i=i.parent}const l=e.appContext.config.errorHandler;if(l){en(),sn(l,null,10,[n,o,a]),tn();return}}$h(n,t,r,s)}function $h(n,e,t,s=!0){if({}.NODE_ENV!=="production"){const r=Ri[e];if(t&&gr(t),ee(`Unhandled error${r?` during execution of ${r}`:""}`),t&&vr(),s)throw n;console.error(n)}else console.error(n)}let ys=!1,$i=!1;const gt=[];let Wt=0;const Jn=[];let rn=null,bn=0;const Qa=Promise.resolve();let Li=null;const Lh=100;function Ja(n){const e=Li||Qa;return n?e.then(this?n.bind(this):n):e}function Vh(n){let e=Wt+1,t=gt.length;for(;e<t;){const s=e+t>>>1,r=gt[s],i=_s(r);i<n||i===n&&r.pre?e=s+1:t=s}return e}function yr(n){(!gt.length||!gt.includes(n,ys&&n.allowRecurse?Wt+1:Wt))&&(n.id==null?gt.push(n):gt.splice(Vh(n.id),0,n),el())}function el(){!ys&&!$i&&($i=!0,Li=Qa.then(rl))}function Fh(n){const e=gt.indexOf(n);e>Wt&&gt.splice(e,1)}function tl(n){ve(n)?Jn.push(...n):(!rn||!rn.includes(n,n.allowRecurse?bn+1:bn))&&Jn.push(n),el()}function nl(n,e,t=ys?Wt+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);t<gt.length;t++){const s=gt[t];if(s&&s.pre){if(n&&s.id!==n.uid||{}.NODE_ENV!=="production"&&Vi(e,s))continue;gt.splice(t,1),t--,s()}}}function sl(n){if(Jn.length){const e=[...new Set(Jn)].sort((t,s)=>_s(t)-_s(s));if(Jn.length=0,rn){rn.push(...e);return}for(rn=e,{}.NODE_ENV!=="production"&&(n=n||new Map),bn=0;bn<rn.length;bn++)({}).NODE_ENV!=="production"&&Vi(n,rn[bn])||rn[bn]();rn=null,bn=0}}const _s=n=>n.id==null?1/0:n.id,Gh=(n,e)=>{const t=_s(n)-_s(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function rl(n){$i=!1,ys=!0,{}.NODE_ENV!=="production"&&(n=n||new Map),gt.sort(Gh);const e={}.NODE_ENV!=="production"?t=>Vi(n,t):Ze;try{for(Wt=0;Wt<gt.length;Wt++){const t=gt[Wt];if(t&&t.active!==!1){if({}.NODE_ENV!=="production"&&e(t))continue;sn(t,null,14)}}}finally{Wt=0,gt.length=0,sl(n),ys=!1,Li=null,(gt.length||Jn.length)&&rl(n)}}function Vi(n,e){if(!n.has(e))n.set(e,1);else{const t=n.get(e);if(t>Lh){const s=e.ownerInstance,r=s&&uo(s.type);return vs(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. 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 Fn=!1;const es=new Set;({}).NODE_ENV!=="production"&&(Ei().__VUE_HMR_RUNTIME__={createRecord:Fi(il),rerender:Fi(Bh),reload:Fi(Hh)});const Gn=new Map;function jh(n){const e=n.type.__hmrId;let t=Gn.get(e);t||(il(e,n.type),t=Gn.get(e)),t.instances.add(n)}function zh(n){Gn.get(n.type.__hmrId).instances.delete(n)}function il(n,e){return Gn.has(n)?!1:(Gn.set(n,{initialDef:bs(e),instances:new Set}),!0)}function bs(n){return ec(n)?n.__vccOpts:n}function Bh(n,e){const t=Gn.get(n);t&&(t.initialDef.render=e,[...t.instances].forEach(s=>{e&&(s.render=e,bs(s.type).render=e),s.renderCache=[],Fn=!0,s.effect.dirty=!0,s.update(),Fn=!1}))}function Hh(n,e){const t=Gn.get(n);if(!t)return;e=bs(e),ol(t.initialDef,e);const s=[...t.instances];for(const r of s){const i=bs(r.type);es.has(i)||(i!==t.initialDef&&ol(i,e),es.add(i)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(es.add(i),r.ceReload(e.styles),es.delete(i)):r.parent?(r.parent.effect.dirty=!0,yr(r.parent.update)):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}tl(()=>{for(const r of s)es.delete(bs(r.type))})}function ol(n,e){Ue(n,e);for(const t in n)t!=="__file"&&!(t in e)&&delete n[t]}function Fi(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 qt,xs=[],Gi=!1;function ws(n,...e){qt?qt.emit(n,...e):Gi||xs.push({event:n,args:e})}function al(n,e){var t,s;qt=n,qt?(qt.enabled=!0,xs.forEach(({event:r,args:i})=>qt.emit(r,...i)),xs=[]):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(i=>{al(i,e)}),setTimeout(()=>{qt||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Gi=!0,xs=[])},3e3)):(Gi=!0,xs=[])}function Yh(n,e){ws("app:init",n,e,{Fragment:Fe,Text:Ps,Comment:Pt,Static:Pr})}function Xh(n){ws("app:unmount",n)}const Uh=ji("component:added"),ll=ji("component:updated"),Wh=ji("component:removed"),qh=n=>{qt&&typeof qt.cleanupBuffer=="function"&&!qt.cleanupBuffer(n)&&Wh(n)};/*! #__NO_SIDE_EFFECTS__ */function ji(n){return e=>{ws(n,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const Kh=cl("perf:start"),Zh=cl("perf:end");function cl(n){return(e,t,s)=>{ws(n,e.appContext.app,e.uid,e,t,s)}}function Qh(n,e,t){ws("component:emit",n.appContext.app,n,e,t)}function Jh(n,e,...t){if(n.isUnmounted)return;const s=n.vnode.props||ze;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=n;if(u)if(!(e in u))(!h||!(Mn(e)in h))&&ee(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${Mn(e)}" prop.`);else{const f=u[e];Ee(f)&&(f(...t)||ee(`Invalid event arguments: event validation failed for event "${e}".`))}}let r=t;const i=e.startsWith("update:"),o=i&&e.slice(7);if(o&&o in s){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=s[u]||ze;f&&(r=t.map(p=>Qe(p)?p.trim():p)),h&&(r=t.map(Zu))}if({}.NODE_ENV!=="production"&&Qh(n,e,r),{}.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&s[Mn(u)]&&ee(`Event "${u}" is emitted in component ${Ar(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 "${mn(e)}" instead of "${e}".`)}let a,l=s[a=Mn(e)]||s[a=Mn(Xt(e))];!l&&i&&(l=s[a=Mn(mn(e))]),l&&jt(l,n,6,r);const c=s[a+"Once"];if(c){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,jt(c,n,6,r)}}function ul(n,e,t=!1){const s=e.emitsCache,r=s.get(n);if(r!==void 0)return r;const i=n.emits;let o={},a=!1;if(!Ee(n)){const l=c=>{const u=ul(c,e,!0);u&&(a=!0,Ue(o,u))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!i&&!a?(je(n)&&s.set(n,null),null):(ve(i)?i.forEach(l=>o[l]=null):Ue(o,i),je(n)&&s.set(n,o),o)}function _r(n,e){return!n||!ds(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ne(n,e[0].toLowerCase()+e.slice(1))||Ne(n,mn(e))||Ne(n,e))}let Je=null,br=null;function xr(n){const e=Je;return Je=n,br=n&&n.type.__scopeId||null,e}function Es(n){br=n}function Ss(){br=null}function st(n,e=Je,t){if(!e||n._n)return n;const s=(...r)=>{s._d&&zl(-1);const i=xr(e);let o;try{o=n(...r)}finally{xr(i),s._d&&zl(1)}return{}.NODE_ENV!=="production"&&ll(e),o};return s._n=!0,s._c=!0,s._d=!0,s}let zi=!1;function wr(){zi=!0}function Bi(n){const{type:e,vnode:t,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:p,ctx:g,inheritAttrs:y}=n,b=xr(n);let O,D;({}).NODE_ENV!=="production"&&(zi=!1);try{if(t.shapeFlag&4){const se=r||s,V={}.NODE_ENV!=="production"&&p.__isScriptSetup?new Proxy(se,{get(U,be,xe){return ee(`Property '${String(be)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(U,be,xe)}}):se;O=Bt(c.call(V,se,u,{}.NODE_ENV!=="production"?nn(h):h,p,f,g)),D=a}else{const se=e;({}).NODE_ENV!=="production"&&a===h&&wr(),O=Bt(se.length>1?se({}.NODE_ENV!=="production"?nn(h):h,{}.NODE_ENV!=="production"?{get attrs(){return wr(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):se({}.NODE_ENV!=="production"?nn(h):h,null)),D=e.props?a:ef(a)}}catch(se){Is.length=0,vs(se,n,1),O=Oe(Pt)}let I=O,L;if({}.NODE_ENV!=="production"&&O.patchFlag>0&&O.patchFlag&2048&&([I,L]=hl(O)),D&&y!==!1){const se=Object.keys(D),{shapeFlag:V}=I;if(se.length){if(V&7)i&&se.some(rr)&&(D=tf(D,i)),I=Sn(I,D);else if({}.NODE_ENV!=="production"&&!zi&&I.type!==Pt){const U=Object.keys(a),be=[],xe=[];for(let Te=0,Ae=U.length;Te<Ae;Te++){const _e=U[Te];ds(_e)?rr(_e)||be.push(_e[2].toLowerCase()+_e.slice(3)):xe.push(_e)}xe.length&&ee(`Extraneous non-props attributes (${xe.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),be.length&&ee(`Extraneous non-emits event listeners (${be.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"&&!fl(I)&&ee("Runtime directive used on component with non-element root node. The directives will not function as intended."),I=Sn(I),I.dirs=I.dirs?I.dirs.concat(t.dirs):t.dirs),t.transition&&({}.NODE_ENV!=="production"&&!fl(I)&&ee("Component inside <Transition> renders non-element root node that cannot be animated."),I.transition=t.transition),{}.NODE_ENV!=="production"&&L?L(I):O=I,xr(b),O}const hl=n=>{const e=n.children,t=n.dynamicChildren,s=Hi(e,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return hl(s)}else return[n,void 0];const r=e.indexOf(s),i=t?t.indexOf(s):-1,o=a=>{e[r]=a,t&&(i>-1?t[i]=a:a.patchFlag>0&&(n.dynamicChildren=[...t,a]))};return[Bt(s),o]};function Hi(n,e=!0){let t;for(let s=0;s<n.length;s++){const r=n[s];if(ts(r)){if(r.type!==Pt||r.children==="v-if"){if(t)return;if(t=r,{}.NODE_ENV!=="production"&&e&&t.patchFlag>0&&t.patchFlag&2048)return Hi(t.children)}}else return}return t}const ef=n=>{let e;for(const t in n)(t==="class"||t==="style"||ds(t))&&((e||(e={}))[t]=n[t]);return e},tf=(n,e)=>{const t={};for(const s in n)(!rr(s)||!(s.slice(9)in e))&&(t[s]=n[s]);return t},fl=n=>n.shapeFlag&7||n.type===Pt;function nf(n,e,t){const{props:s,children:r,component:i}=n,{props:o,children:a,patchFlag:l}=e,c=i.emitsOptions;if({}.NODE_ENV!=="production"&&(r||a)&&Fn||e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return s?dl(s,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==s[f]&&!_r(c,f))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?dl(s,o,c):!0:!!o;return!1}function dl(n,e,t){const s=Object.keys(e);if(s.length!==Object.keys(n).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(e[i]!==n[i]&&!_r(t,i))return!0}return!1}function sf({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 Yi="components";function rf(n,e){return af(Yi,n,!0,e)||n}const of=Symbol.for("v-ndc");function af(n,e,t=!0,s=!1){const r=Je||rt;if(r){const i=r.type;if(n===Yi){const a=uo(i,!1);if(a&&(a===e||a===Xt(e)||a===Dn(Xt(e))))return i}const o=pl(r[n]||i[n],e)||pl(r.appContext[n],e);if(!o&&s)return i;if({}.NODE_ENV!=="production"&&t&&!o){const a=n===Yi?`
19
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";ee(`Failed to resolve ${n.slice(0,-1)}: ${e}${a}`)}return o}else({}).NODE_ENV!=="production"&&ee(`resolve${Dn(n.slice(0,-1))} can only be used in render() or setup().`)}function pl(n,e){return n&&(n[e]||n[Xt(e)]||n[Dn(Xt(e))])}const lf=n=>n.__isSuspense;function cf(n,e){e&&e.pendingBranch?ve(n)?e.effects.push(...n):e.effects.push(n):tl(n)}const uf=Symbol.for("v-scx"),hf=()=>{{const n=Tr(uf);return n||{}.NODE_ENV!=="production"&&ee("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),n}};function ml(n,e){return Xi(n,null,e)}const Er={};function $e(n,e,t){return{}.NODE_ENV!=="production"&&!Ee(e)&&ee("`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."),Xi(n,e,t)}function Xi(n,e,{immediate:t,deep:s,flush:r,once:i,onTrack:o,onTrigger:a}=ze){if(e&&i){const U=e;e=(...be)=>{U(...be),V()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&ee('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&&ee('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&ee('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&ee('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=U=>{ee("Invalid watch source: ",U,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=rt,u=U=>s===!0?U:jn(U,s===!1?1:void 0);let h,f=!1,p=!1;if(ut(n)?(h=()=>n.value,f=Ln(n)):Qn(n)?(h=()=>u(n),f=!0):ve(n)?(p=!0,f=n.some(U=>Qn(U)||Ln(U)),h=()=>n.map(U=>{if(ut(U))return U.value;if(Qn(U))return u(U);if(Ee(U))return sn(U,c,2);({}).NODE_ENV!=="production"&&l(U)})):Ee(n)?e?h=()=>sn(n,c,2):h=()=>(g&&g(),jt(n,c,3,[y])):(h=Ze,{}.NODE_ENV!=="production"&&l(n)),e&&s){const U=h;h=()=>jn(U())}let g,y=U=>{g=L.onStop=()=>{sn(U,c,4),g=L.onStop=void 0}},b;if(Dr)if(y=Ze,e?t&&jt(e,c,3,[h(),p?[]:void 0,y]):h(),r==="sync"){const U=hf();b=U.__watcherHandles||(U.__watcherHandles=[])}else return Ze;let O=p?new Array(n.length).fill(Er):Er;const D=()=>{if(!(!L.active||!L.dirty))if(e){const U=L.run();(s||f||(p?U.some((be,xe)=>gn(be,O[xe])):gn(U,O)))&&(g&&g(),jt(e,c,3,[U,O===Er?void 0:p&&O[0]===Er?[]:O,y]),O=U)}else L.run()};D.allowRecurse=!!e;let I;r==="sync"?I=D:r==="post"?I=()=>Ot(D,c&&c.suspense):(D.pre=!0,c&&(D.id=c.uid),I=()=>yr(D));const L=new Ci(h,Ze,I),se=ih(),V=()=>{L.stop(),se&&_i(se.effects,L)};return{}.NODE_ENV!=="production"&&(L.onTrack=o,L.onTrigger=a),e?t?D():O=L.run():r==="post"?Ot(L.run.bind(L),c&&c.suspense):L.run(),b&&b.push(V),V}function ff(n,e,t){const s=this.proxy,r=Qe(n)?n.includes(".")?gl(s,n):()=>s[n]:n.bind(s,s);let i;Ee(e)?i=e:(i=e.handler,t=e);const o=Ms(this),a=Xi(r,i.bind(s),t);return o(),a}function gl(n,e){const t=e.split(".");return()=>{let s=n;for(let r=0;r<t.length&&s;r++)s=s[t[r]];return s}}function jn(n,e,t=0,s){if(!je(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),ut(n))jn(n.value,e,t,s);else if(ve(n))for(let r=0;r<n.length;r++)jn(n[r],e,t,s);else if(_a(n)||In(n))n.forEach(r=>{jn(r,e,t,s)});else if(xa(n))for(const r in n)jn(n[r],e,t,s);return n}function vl(n){Wu(n)&&ee("Do not use built-in directive ids as custom directive id: "+n)}function xn(n,e){if(Je===null)return{}.NODE_ENV!=="production"&&ee("withDirectives can only be used inside render functions."),n;const t=Mr(Je)||Je.proxy,s=n.dirs||(n.dirs=[]);for(let r=0;r<e.length;r++){let[i,o,a,l=ze]=e[r];i&&(Ee(i)&&(i={mounted:i,updated:i}),i.deep&&jn(o),s.push({dir:i,instance:t,value:o,oldValue:void 0,arg:a,modifiers:l}))}return n}function zn(n,e,t,s){const r=n.dirs,i=e&&e.dirs;for(let o=0;o<r.length;o++){const a=r[o];i&&(a.oldValue=i[o].value);let l=a.dir[s];l&&(en(),jt(l,t,8,[n.el,a,n,e]),tn())}}/*! #__NO_SIDE_EFFECTS__ */function pe(n,e){return Ee(n)?(()=>Ue({name:n.name},e,{setup:n}))():n}const Cs=n=>!!n.type.__asyncLoader,Ui=n=>n.type.__isKeepAlive;function df(n,e){yl(n,"a",e)}function pf(n,e){yl(n,"da",e)}function yl(n,e,t=rt){const s=n.__wdc||(n.__wdc=()=>{let r=t;for(;r;){if(r.isDeactivated)return;r=r.parent}return n()});if(Sr(e,s,t),t){let r=t.parent;for(;r&&r.parent;)Ui(r.parent.vnode)&&mf(s,e,t,r),r=r.parent}}function mf(n,e,t,s){const r=Sr(e,n,s,!0);tt(()=>{_i(s[e],r)},t)}function Sr(n,e,t=rt,s=!1){if(t){const r=t[n]||(t[n]=[]),i=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;en();const a=Ms(t),l=jt(e,t,n,o);return a(),tn(),l});return s?r.unshift(i):r.push(i),i}else if({}.NODE_ENV!=="production"){const r=Mn(Ri[n].replace(/ hook$/,""));ee(`${r} 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 on=n=>(e,t=rt)=>(!Dr||n==="sp")&&Sr(n,(...s)=>e(...s),t),gf=on("bm"),wn=on("m"),vf=on("bu"),yf=on("u"),_f=on("bum"),tt=on("um"),bf=on("sp"),xf=on("rtg"),wf=on("rtc");function Ef(n,e=rt){Sr("ec",n,e)}function ht(n,e,t,s){let r;const i=t&&t[s];if(ve(n)||Qe(n)){r=new Array(n.length);for(let o=0,a=n.length;o<a;o++)r[o]=e(n[o],o,void 0,i&&i[o])}else if(typeof n=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(n)&&ee(`The v-for range expect an integer value but got ${n}.`),r=new Array(n);for(let o=0;o<n;o++)r[o]=e(o+1,o,void 0,i&&i[o])}else if(je(n))if(n[Symbol.iterator])r=Array.from(n,(o,a)=>e(o,a,void 0,i&&i[a]));else{const o=Object.keys(n);r=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];r[a]=e(n[c],c,a,i&&i[a])}}else r=[];return t&&(t[s]=r),r}function Xe(n,e,t={},s,r){if(Je.isCE||Je.parent&&Cs(Je.parent)&&Je.parent.isCE)return e!=="default"&&(t.name=e),Oe("slot",t,s&&s());let i=n[e];({}).NODE_ENV!=="production"&&i&&i.length>1&&(ee("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."),i=()=>[]),i&&i._c&&(i._d=!1),F();const o=i&&_l(i(t)),a=xt(Fe,{key:t.key||o&&o.key||`_${e}`},o||(s?s():[]),o&&n._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function _l(n){return n.some(e=>ts(e)?!(e.type===Pt||e.type===Fe&&!_l(e.children)):!0)?n:null}const Wi=n=>n?ql(n)?Mr(n)||n.proxy:Wi(n.parent):null,Bn=Ue(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>({}).NODE_ENV!=="production"?nn(n.props):n.props,$attrs:n=>({}).NODE_ENV!=="production"?nn(n.attrs):n.attrs,$slots:n=>({}).NODE_ENV!=="production"?nn(n.slots):n.slots,$refs:n=>({}).NODE_ENV!=="production"?nn(n.refs):n.refs,$parent:n=>Wi(n.parent),$root:n=>Wi(n.root),$emit:n=>n.emit,$options:n=>Qi(n),$forceUpdate:n=>n.f||(n.f=()=>{n.effect.dirty=!0,yr(n.update)}),$nextTick:n=>n.n||(n.n=Ja.bind(n.proxy)),$watch:n=>ff.bind(n)}),qi=n=>n==="_"||n==="$",Ki=(n,e)=>n!==ze&&!n.__isScriptSetup&&Ne(n,e),bl={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=n;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const p=o[e];if(p!==void 0)switch(p){case 1:return s[e];case 2:return r[e];case 4:return t[e];case 3:return i[e]}else{if(Ki(s,e))return o[e]=1,s[e];if(r!==ze&&Ne(r,e))return o[e]=2,r[e];if((c=n.propsOptions[0])&&Ne(c,e))return o[e]=3,i[e];if(t!==ze&&Ne(t,e))return o[e]=4,t[e];Zi&&(o[e]=0)}}const u=Bn[e];let h,f;if(u)return e==="$attrs"?(ct(n.attrs,"get",""),{}.NODE_ENV!=="production"&&wr()):{}.NODE_ENV!=="production"&&e==="$slots"&&ct(n,"get",e),u(n);if((h=a.__cssModules)&&(h=h[e]))return h;if(t!==ze&&Ne(t,e))return o[e]=4,t[e];if(f=l.config.globalProperties,Ne(f,e))return f[e];({}).NODE_ENV!=="production"&&Je&&(!Qe(e)||e.indexOf("__v")!==0)&&(r!==ze&&qi(e[0])&&Ne(r,e)?ee(`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===Je&&ee(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:n},e,t){const{data:s,setupState:r,ctx:i}=n;return Ki(r,e)?(r[e]=t,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&Ne(r,e)?(ee(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):s!==ze&&Ne(s,e)?(s[e]=t,!0):Ne(n.props,e)?({}.NODE_ENV!=="production"&&ee(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in n?({}.NODE_ENV!=="production"&&ee(`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(i,e,{enumerable:!0,configurable:!0,value:t}):i[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!t[o]||n!==ze&&Ne(n,o)||Ki(e,o)||(a=i[0])&&Ne(a,o)||Ne(s,o)||Ne(Bn,o)||Ne(r.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Ne(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};({}).NODE_ENV!=="production"&&(bl.ownKeys=n=>(ee("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 Sf(n){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>n}),Object.keys(Bn).forEach(t=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:()=>Bn[t](n),set:Ze})}),e}function Cf(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:Ze})})}function Tf(n){const{ctx:e,setupState:t}=n;Object.keys(Pe(t)).forEach(s=>{if(!t.__isScriptSetup){if(qi(s[0])){ee(`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:Ze})}})}function kf(){return Of().slots}function Of(){const n=Ul();return{}.NODE_ENV!=="production"&&!n&&ee("useContext() called without active instance."),n.setupContext||(n.setupContext=Jl(n))}function xl(n){return ve(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}function Pf(){const n=Object.create(null);return(e,t)=>{n[t]?ee(`${e} property "${t}" is already defined in ${n[t]}.`):n[t]=e}}let Zi=!0;function If(n){const e=Qi(n),t=n.proxy,s=n.ctx;Zi=!1,e.beforeCreate&&wl(e.beforeCreate,n,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:p,updated:g,activated:y,deactivated:b,beforeDestroy:O,beforeUnmount:D,destroyed:I,unmounted:L,render:se,renderTracked:V,renderTriggered:U,errorCaptured:be,serverPrefetch:xe,expose:Te,inheritAttrs:Ae,components:_e,directives:De,filters:Ye}=e,ye={}.NODE_ENV!=="production"?Pf():null;if({}.NODE_ENV!=="production"){const[re]=n.propsOptions;if(re)for(const A in re)ye("Props",A)}if(c&&Nf(c,s,ye),o)for(const re in o){const A=o[re];Ee(A)?({}.NODE_ENV!=="production"?Object.defineProperty(s,re,{value:A.bind(t),configurable:!0,enumerable:!0,writable:!0}):s[re]=A.bind(t),{}.NODE_ENV!=="production"&&ye("Methods",re)):{}.NODE_ENV!=="production"&&ee(`Method "${re}" has type "${typeof A}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!Ee(r)&&ee("The data option must be a function. Plain object usage is no longer supported.");const re=r.call(t,t);if({}.NODE_ENV!=="production"&&bi(re)&&ee("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!je(re))({}).NODE_ENV!=="production"&&ee("data() should return an object.");else if(n.data=_t(re),{}.NODE_ENV!=="production")for(const A in re)ye("Data",A),qi(A[0])||Object.defineProperty(s,A,{configurable:!0,enumerable:!0,get:()=>re[A],set:Ze})}if(Zi=!0,i)for(const re in i){const A=i[re],J=Ee(A)?A.bind(t,t):Ee(A.get)?A.get.bind(t,t):Ze;({}).NODE_ENV!=="production"&&J===Ze&&ee(`Computed property "${re}" has no getter.`);const Y=!Ee(A)&&Ee(A.set)?A.set.bind(t):{}.NODE_ENV!=="production"?()=>{ee(`Write operation failed: computed property "${re}" is readonly.`)}:Ze,ke=pd({get:J,set:Y});Object.defineProperty(s,re,{enumerable:!0,configurable:!0,get:()=>ke.value,set:we=>ke.value=we}),{}.NODE_ENV!=="production"&&ye("Computed",re)}if(a)for(const re in a)El(a[re],s,t,re);if(l){const re=Ee(l)?l.call(t):l;Reflect.ownKeys(re).forEach(A=>{Lf(A,re[A])})}u&&wl(u,n,"c");function Se(re,A){ve(A)?A.forEach(J=>re(J.bind(t))):A&&re(A.bind(t))}if(Se(gf,h),Se(wn,f),Se(vf,p),Se(yf,g),Se(df,y),Se(pf,b),Se(Ef,be),Se(wf,V),Se(xf,U),Se(_f,D),Se(tt,L),Se(bf,xe),ve(Te))if(Te.length){const re=n.exposed||(n.exposed={});Te.forEach(A=>{Object.defineProperty(re,A,{get:()=>t[A],set:J=>t[A]=J})})}else n.exposed||(n.exposed={});se&&n.render===Ze&&(n.render=se),Ae!=null&&(n.inheritAttrs=Ae),_e&&(n.components=_e),De&&(n.directives=De)}function Nf(n,e,t=Ze){ve(n)&&(n=Ji(n));for(const s in n){const r=n[s];let i;je(r)?"default"in r?i=Tr(r.from||s,r.default,!0):i=Tr(r.from||s):i=Tr(r),ut(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[s]=i,{}.NODE_ENV!=="production"&&t("Inject",s)}}function wl(n,e,t){jt(ve(n)?n.map(s=>s.bind(e.proxy)):n.bind(e.proxy),e,t)}function El(n,e,t,s){const r=s.includes(".")?gl(t,s):()=>t[s];if(Qe(n)){const i=e[n];Ee(i)?$e(r,i):{}.NODE_ENV!=="production"&&ee(`Invalid watch handler specified by key "${n}"`,i)}else if(Ee(n))$e(r,n.bind(t));else if(je(n))if(ve(n))n.forEach(i=>El(i,e,t,s));else{const i=Ee(n.handler)?n.handler.bind(t):e[n.handler];Ee(i)?$e(r,i,n):{}.NODE_ENV!=="production"&&ee(`Invalid watch handler specified by key "${n.handler}"`,i)}else({}).NODE_ENV!=="production"&&ee(`Invalid watch option: "${s}"`,n)}function Qi(n){const e=n.type,{mixins:t,extends:s}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=n.appContext,a=i.get(e);let l;return a?l=a:!r.length&&!t&&!s?l=e:(l={},r.length&&r.forEach(c=>Cr(l,c,o,!0)),Cr(l,e,o)),je(e)&&i.set(e,l),l}function Cr(n,e,t,s=!1){const{mixins:r,extends:i}=e;i&&Cr(n,i,t,!0),r&&r.forEach(o=>Cr(n,o,t,!0));for(const o in e)if(s&&o==="expose")({}).NODE_ENV!=="production"&&ee('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Df[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const Df={data:Sl,props:Cl,emits:Cl,methods:Ts,computed:Ts,beforeCreate:bt,created:bt,beforeMount:bt,mounted:bt,beforeUpdate:bt,updated:bt,beforeDestroy:bt,beforeUnmount:bt,destroyed:bt,unmounted:bt,activated:bt,deactivated:bt,errorCaptured:bt,serverPrefetch:bt,components:Ts,directives:Ts,watch:Af,provide:Sl,inject:Mf};function Sl(n,e){return e?n?function(){return Ue(Ee(n)?n.call(this,this):n,Ee(e)?e.call(this,this):e)}:e:n}function Mf(n,e){return Ts(Ji(n),Ji(e))}function Ji(n){if(ve(n)){const e={};for(let t=0;t<n.length;t++)e[n[t]]=n[t];return e}return n}function bt(n,e){return n?[...new Set([].concat(n,e))]:e}function Ts(n,e){return n?Ue(Object.create(null),n,e):e}function Cl(n,e){return n?ve(n)&&ve(e)?[...new Set([...n,...e])]:Ue(Object.create(null),xl(n),xl(e??{})):e}function Af(n,e){if(!n)return e;if(!e)return n;const t=Ue(Object.create(null),n);for(const s in e)t[s]=bt(n[s],e[s]);return t}function Tl(){return{app:null,config:{isNativeTag:Xu,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 Rf=0;function $f(n,e){return function(s,r=null){Ee(s)||(s=Ue({},s)),r!=null&&!je(r)&&({}.NODE_ENV!=="production"&&ee("root props passed to app.mount() must be an object."),r=null);const i=Tl(),o=new WeakSet;let a=!1;const l=i.app={_uid:Rf++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:tc,get config(){return i.config},set config(c){({}).NODE_ENV!=="production"&&ee("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&ee("Plugin has already been applied to target app."):c&&Ee(c.install)?(o.add(c),c.install(l,...u)):Ee(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&ee('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return i.mixins.includes(c)?{}.NODE_ENV!=="production"&&ee("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):i.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&lo(c,i.config),u?({}.NODE_ENV!=="production"&&i.components[c]&&ee(`Component "${c}" has already been registered in target app.`),i.components[c]=u,l):i.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&vl(c),u?({}.NODE_ENV!=="production"&&i.directives[c]&&ee(`Directive "${c}" has already been registered in target app.`),i.directives[c]=u,l):i.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&ee("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__&&ee("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=Oe(s,r);return f.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(i.reload=()=>{n(Sn(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,Yh(l,tc)),Mr(f.component)||f.component.proxy}},unmount(){a?(n(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Xh(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&ee("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in i.provides&&ee(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),i.provides[c]=u,l},runWithContext(c){const u=ks;ks=l;try{return c()}finally{ks=u}}};return l}}let ks=null;function Lf(n,e){if(!rt)({}).NODE_ENV!=="production"&&ee("provide() can only be used inside setup().");else{let t=rt.provides;const s=rt.parent&&rt.parent.provides;s===t&&(t=rt.provides=Object.create(s)),t[n]=e}}function Tr(n,e,t=!1){const s=rt||Je;if(s||ks){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:ks._context.provides;if(r&&n in r)return r[n];if(arguments.length>1)return t&&Ee(e)?e.call(s&&s.proxy):e;({}).NODE_ENV!=="production"&&ee(`injection "${String(n)}" not found.`)}else({}).NODE_ENV!=="production"&&ee("inject() can only be used inside setup() or functional components.")}const kl={},Ol=()=>Object.create(kl),Pl=n=>Object.getPrototypeOf(n)===kl;function Vf(n,e,t,s=!1){const r={},i=Ol();n.propsDefaults=Object.create(null),Il(n,e,r,i);for(const o in n.propsOptions[0])o in r||(r[o]=void 0);({}).NODE_ENV!=="production"&&Rl(e||{},r,n),t?n.props=s?r:Ch(r):n.type.props?n.props=r:n.props=i,n.attrs=i}function Ff(n){for(;n;){if(n.type.__hmrId)return!0;n=n.parent}}function Gf(n,e,t,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=n,a=Pe(r),[l]=n.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Ff(n))&&(s||o>0)&&!(o&16)){if(o&8){const u=n.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(_r(n.emitsOptions,f))continue;const p=e[f];if(l)if(Ne(i,f))p!==i[f]&&(i[f]=p,c=!0);else{const g=Xt(f);r[g]=eo(l,a,g,p,n,!1)}else p!==i[f]&&(i[f]=p,c=!0)}}}else{Il(n,e,r,i)&&(c=!0);let u;for(const h in a)(!e||!Ne(e,h)&&((u=mn(h))===h||!Ne(e,u)))&&(l?t&&(t[h]!==void 0||t[u]!==void 0)&&(r[h]=eo(l,a,h,void 0,n,!0)):delete r[h]);if(i!==a)for(const h in i)(!e||!Ne(e,h))&&(delete i[h],c=!0)}c&&Ut(n.attrs,"set",""),{}.NODE_ENV!=="production"&&Rl(e||{},r,n)}function Il(n,e,t,s){const[r,i]=n.propsOptions;let o=!1,a;if(e)for(let l in e){if(ps(l))continue;const c=e[l];let u;r&&Ne(r,u=Xt(l))?!i||!i.includes(u)?t[u]=c:(a||(a={}))[u]=c:_r(n.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,o=!0)}if(i){const l=Pe(t),c=a||ze;for(let u=0;u<i.length;u++){const h=i[u];t[h]=eo(r,l,h,c[h],n,!Ne(c,h))}}return o}function eo(n,e,t,s,r,i){const o=n[t];if(o!=null){const a=Ne(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Ee(l)){const{propsDefaults:c}=r;if(t in c)s=c[t];else{const u=Ms(r);s=c[t]=l.call(null,e),u()}}else s=l}o[0]&&(i&&!a?s=!1:o[1]&&(s===""||s===mn(t))&&(s=!0))}return s}function Nl(n,e,t=!1){const s=e.propsCache,r=s.get(n);if(r)return r;const i=n.props,o={},a=[];let l=!1;if(!Ee(n)){const u=h=>{l=!0;const[f,p]=Nl(h,e,!0);Ue(o,f),p&&a.push(...p)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!i&&!l)return je(n)&&s.set(n,Zn),Zn;if(ve(i))for(let u=0;u<i.length;u++){({}).NODE_ENV!=="production"&&!Qe(i[u])&&ee("props must be strings when using array syntax.",i[u]);const h=Xt(i[u]);Dl(h)&&(o[h]=ze)}else if(i){({}).NODE_ENV!=="production"&&!je(i)&&ee("invalid props options",i);for(const u in i){const h=Xt(u);if(Dl(h)){const f=i[u],p=o[h]=ve(f)||Ee(f)?{type:f}:Ue({},f);if(p){const g=Al(Boolean,p.type),y=Al(String,p.type);p[0]=g>-1,p[1]=y<0||g<y,(g>-1||Ne(p,"default"))&&a.push(h)}}}}const c=[o,a];return je(n)&&s.set(n,c),c}function Dl(n){return n[0]!=="$"&&!ps(n)?!0:({}.NODE_ENV!=="production"&&ee(`Invalid prop name: "${n}" is a reserved property.`),!1)}function to(n){return n===null?"null":typeof n=="function"?n.name||"":typeof n=="object"&&n.constructor&&n.constructor.name||""}function Ml(n,e){return to(n)===to(e)}function Al(n,e){return ve(e)?e.findIndex(t=>Ml(t,n)):Ee(e)&&Ml(e,n)?0:-1}function Rl(n,e,t){const s=Pe(e),r=t.propsOptions[0];for(const i in r){let o=r[i];o!=null&&jf(i,s[i],o,{}.NODE_ENV!=="production"?nn(s):s,!Ne(n,i)&&!Ne(n,mn(i)))}}function jf(n,e,t,s,r){const{type:i,required:o,validator:a,skipCheck:l}=t;if(o&&r){ee('Missing required prop: "'+n+'"');return}if(!(e==null&&!o)){if(i!=null&&i!==!0&&!l){let c=!1;const u=ve(i)?i:[i],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:p,expectedType:g}=Bf(e,u[f]);h.push(g||""),c=p}if(!c){ee(Hf(n,e,h));return}}a&&!a(e,s)&&ee('Invalid prop: custom validator check failed for prop "'+n+'".')}}const zf=Yt("String,Number,Boolean,Function,Symbol,BigInt");function Bf(n,e){let t;const s=to(e);if(zf(s)){const r=typeof n;t=r===s.toLowerCase(),!t&&r==="object"&&(t=n instanceof e)}else s==="Object"?t=je(n):s==="Array"?t=ve(n):s==="null"?t=n===null:t=n instanceof e;return{valid:t,expectedType:s}}function Hf(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(Dn).join(" | ")}`;const r=t[0],i=xi(e),o=$l(e,r),a=$l(e,i);return t.length===1&&Ll(r)&&!Yf(r,i)&&(s+=` with value ${o}`),s+=`, got ${i} `,Ll(i)&&(s+=`with value ${a}.`),s}function $l(n,e){return e==="String"?`"${n}"`:e==="Number"?`${Number(n)}`:`${n}`}function Ll(n){return["string","number","boolean"].some(t=>n.toLowerCase()===t)}function Yf(...n){return n.some(e=>e.toLowerCase()==="boolean")}const Vl=n=>n[0]==="_"||n==="$stable",no=n=>ve(n)?n.map(Bt):[Bt(n)],Xf=(n,e,t)=>{if(e._n)return e;const s=st((...r)=>({}.NODE_ENV!=="production"&&rt&&(!t||t.root===rt.root)&&ee(`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.`),no(e(...r))),t);return s._c=!1,s},Fl=(n,e,t)=>{const s=n._ctx;for(const r in n){if(Vl(r))continue;const i=n[r];if(Ee(i))e[r]=Xf(r,i,s);else if(i!=null){({}).NODE_ENV!=="production"&&ee(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const o=no(i);e[r]=()=>o}}},Gl=(n,e)=>{({}).NODE_ENV!=="production"&&!Ui(n.vnode)&&ee("Non-function value encountered for default slot. Prefer function slots for better performance.");const t=no(e);n.slots.default=()=>t},Uf=(n,e)=>{const t=n.slots=Ol();if(n.vnode.shapeFlag&32){const s=e._;s?(Ue(t,e),wa(t,"_",s)):Fl(e,t)}else e&&Gl(n,e)},Wf=(n,e,t)=>{const{vnode:s,slots:r}=n;let i=!0,o=ze;if(s.shapeFlag&32){const a=e._;a?{}.NODE_ENV!=="production"&&Fn?(Ue(r,e),Ut(n,"set","$slots")):t&&a===1?i=!1:(Ue(r,e),!t&&a===1&&delete r._):(i=!e.$stable,Fl(e,r)),o=e}else e&&(Gl(n,e),o={default:1});if(i)for(const a in r)!Vl(a)&&o[a]==null&&delete r[a]};function so(n,e,t,s,r=!1){if(ve(n)){n.forEach((f,p)=>so(f,e&&(ve(e)?e[p]:e),t,s,r));return}if(Cs(s)&&!r)return;const i=s.shapeFlag&4?Mr(s.component)||s.component.proxy:s.el,o=r?null:i,{i:a,r:l}=n;if({}.NODE_ENV!=="production"&&!a){ee("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===ze?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(Qe(c)?(u[c]=null,Ne(h,c)&&(h[c]=null)):ut(c)&&(c.value=null)),Ee(l))sn(l,a,12,[o,u]);else{const f=Qe(l),p=ut(l);if(f||p){const g=()=>{if(n.f){const y=f?Ne(h,l)?h[l]:u[l]:l.value;r?ve(y)&&_i(y,i):ve(y)?y.includes(i)||y.push(i):f?(u[l]=[i],Ne(h,l)&&(h[l]=u[l])):(l.value=[i],n.k&&(u[n.k]=l.value))}else f?(u[l]=o,Ne(h,l)&&(h[l]=o)):p?(l.value=o,n.k&&(u[n.k]=o)):{}.NODE_ENV!=="production"&&ee("Invalid template ref type:",l,`(${typeof l})`)};o?(g.id=-1,Ot(g,t)):g()}else({}).NODE_ENV!=="production"&&ee("Invalid template ref type:",l,`(${typeof l})`)}}let Os,En;function an(n,e){n.appContext.config.performance&&kr()&&En.mark(`vue-${e}-${n.uid}`),{}.NODE_ENV!=="production"&&Kh(n,e,kr()?En.now():Date.now())}function ln(n,e){if(n.appContext.config.performance&&kr()){const t=`vue-${e}-${n.uid}`,s=t+":end";En.mark(s),En.measure(`<${Ar(n,n.type)}> ${e}`,t,s),En.clearMarks(t),En.clearMarks(s)}({}).NODE_ENV!=="production"&&Zh(n,e,kr()?En.now():Date.now())}function kr(){return Os!==void 0||(typeof window<"u"&&window.performance?(Os=!0,En=window.performance):Os=!1),Os}function qf(){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.
20
20
 
21
- For more details, see https://link.vuejs.org/feature-flags.`)}}const yt=qh;function Lf(t){return Ff(t)}function Ff(t,e){$f();const n=ir();n.__VUE__=!0,{}.NODE_ENV!=="production"&&Ua(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=Ge,insertStaticContent:m}=t,v=(_,x,P,I=null,A=null,H=null,W=void 0,L=null,U={}.NODE_ENV!=="production"&&Nn?!1:!!x.dynamicChildren)=>{if(_===x)return;_&&!_s(_,x)&&(I=kt(_),Me(_,A,H,!0),_=null),x.patchFlag===-2&&(U=!1,x.dynamicChildren=null);const{type:F,ref:X,shapeFlag:ie}=x;switch(F){case ps:y(_,x,P,I);break;case bt:E(_,x,P,I);break;case hi:_==null?C(x,P,I,W):{}.NODE_ENV!=="production"&&w(_,x,P,W);break;case ke:at(_,x,P,I,A,H,W,L,U);break;default:ie&1?O(_,x,P,I,A,H,W,L,U):ie&6?lt(_,x,P,I,A,H,W,L,U):ie&64||ie&128?F.process(_,x,P,I,A,H,W,L,U,At):{}.NODE_ENV!=="production"&&B("Invalid VNode type:",F,`(${typeof F})`)}X!=null&&A&&Vr(X,_&&_.ref,H,x||_,!x)},y=(_,x,P,I)=>{if(_==null)s(x.el=a(x.children),P,I);else{const A=x.el=_.el;x.children!==_.children&&c(A,x.children)}},E=(_,x,P,I)=>{_==null?s(x.el=l(x.children||""),P,I):x.el=_.el},C=(_,x,P,I)=>{[_.el,_.anchor]=m(_.children,x,P,I,_.el,_.anchor)},w=(_,x,P,I)=>{if(x.children!==_.children){const A=f(_.anchor);$(_),[x.el,x.anchor]=m(x.children,P,A,I)}else x.el=_.el,x.anchor=_.anchor},S=({el:_,anchor:x},P,I)=>{let A;for(;_&&_!==x;)A=f(_),s(_,P,I),_=A;s(x,P,I)},$=({el:_,anchor:x})=>{let P;for(;_&&_!==x;)P=f(_),i(_),_=P;i(x)},O=(_,x,P,I,A,H,W,L,U)=>{x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),_==null?R(x,P,I,A,H,W,L,U):pe(_,x,A,H,W,L,U)},R=(_,x,P,I,A,H,W,L)=>{let U,F;const{props:X,shapeFlag:ie,transition:te,dirs:ce}=_;if(U=_.el=o(_.type,H,X&&X.is,X),ie&8?u(U,_.children):ie&16&&ue(_.children,U,null,I,A,Gr(_,H),W,L),ce&&Mn(_,null,I,"created"),le(U,_,_.scopeId,W,I),X){for(const we in X)we!=="value"&&!Jn(we)&&r(U,we,null,X[we],H,_.children,I,A,Ae);"value"in X&&r(U,"value",null,X.value,H),(F=X.onVnodeBeforeMount)&&zt(F,I,_)}({}).NODE_ENV!=="production"&&(Object.defineProperty(U,"__vnode",{value:_,enumerable:!1}),Object.defineProperty(U,"__vueParentComponent",{value:I,enumerable:!1})),ce&&Mn(_,null,I,"beforeMount");const ge=Vf(A,te);ge&&te.beforeEnter(U),s(U,x,P),((F=X&&X.onVnodeMounted)||ge||ce)&&yt(()=>{F&&zt(F,I,_),ge&&te.enter(U),ce&&Mn(_,null,I,"mounted")},A)},le=(_,x,P,I,A)=>{if(P&&d(_,P),I)for(let H=0;H<I.length;H++)d(_,I[H]);if(A){let H=A.subTree;if({}.NODE_ENV!=="production"&&H.patchFlag>0&&H.patchFlag&2048&&(H=Tr(H.children)||H),x===H){const W=A.vnode;le(_,W,W.scopeId,W.slotScopeIds,A.parent)}}},ue=(_,x,P,I,A,H,W,L,U=0)=>{for(let F=U;F<_.length;F++){const X=_[F]=L?gn(_[F]):Mt(_[F]);v(null,X,x,P,I,A,H,W,L)}},pe=(_,x,P,I,A,H,W)=>{const L=x.el=_.el;let{patchFlag:U,dynamicChildren:F,dirs:X}=x;U|=_.patchFlag&16;const ie=_.props||Se,te=x.props||Se;let ce;if(P&&An(P,!1),(ce=te.onVnodeBeforeUpdate)&&zt(ce,P,x,_),X&&Mn(x,_,P,"beforeUpdate"),P&&An(P,!0),{}.NODE_ENV!=="production"&&Nn&&(U=0,W=!1,F=null),F?(De(_.dynamicChildren,F,L,P,I,Gr(x,A),H),{}.NODE_ENV!=="production"&&ui(_,x)):W||Y(_,x,L,null,P,I,Gr(x,A),H,!1),U>0){if(U&16)Oe(L,x,ie,te,P,I,A);else if(U&2&&ie.class!==te.class&&r(L,"class",null,te.class,A),U&4&&r(L,"style",ie.style,te.style,A),U&8){const ge=x.dynamicProps;for(let we=0;we<ge.length;we++){const Ie=ge[we],Fe=ie[Ie],mt=te[Ie];(mt!==Fe||Ie==="value")&&r(L,Ie,Fe,mt,A,_.children,P,I,Ae)}}U&1&&_.children!==x.children&&u(L,x.children)}else!W&&F==null&&Oe(L,x,ie,te,P,I,A);((ce=te.onVnodeUpdated)||X)&&yt(()=>{ce&&zt(ce,P,x,_),X&&Mn(x,_,P,"updated")},I)},De=(_,x,P,I,A,H,W)=>{for(let L=0;L<x.length;L++){const U=_[L],F=x[L],X=U.el&&(U.type===ke||!_s(U,F)||U.shapeFlag&70)?h(U.el):P;v(U,F,X,null,I,A,H,W,!0)}},Oe=(_,x,P,I,A,H,W)=>{if(P!==I){if(P!==Se)for(const L in P)!Jn(L)&&!(L in I)&&r(_,L,P[L],null,W,x.children,A,H,Ae);for(const L in I){if(Jn(L))continue;const U=I[L],F=P[L];U!==F&&L!=="value"&&r(_,L,F,U,W,x.children,A,H,Ae)}"value"in I&&r(_,"value",P.value,I.value,W)}},at=(_,x,P,I,A,H,W,L,U)=>{const F=x.el=_?_.el:a(""),X=x.anchor=_?_.anchor:a("");let{patchFlag:ie,dynamicChildren:te,slotScopeIds:ce}=x;({}).NODE_ENV!=="production"&&(Nn||ie&2048)&&(ie=0,U=!1,te=null),ce&&(L=L?L.concat(ce):ce),_==null?(s(F,P,I),s(X,P,I),ue(x.children||[],P,X,A,H,W,L,U)):ie>0&&ie&64&&te&&_.dynamicChildren?(De(_.dynamicChildren,te,P,A,H,W,L),{}.NODE_ENV!=="production"?ui(_,x):(x.key!=null||A&&x===A.subTree)&&ui(_,x,!0)):Y(_,x,P,X,A,H,W,L,U)},lt=(_,x,P,I,A,H,W,L,U)=>{x.slotScopeIds=L,_==null?x.shapeFlag&512?A.ctx.activate(x,P,I,W,U):We(x,P,I,A,H,W,U):Te(_,x,U)},We=(_,x,P,I,A,H,W)=>{const L=_.component=Yf(_,I,A);if({}.NODE_ENV!=="production"&&L.type.__hmrId&&Ph(L),{}.NODE_ENV!=="production"&&(Qs(_),Zt(L,"mount")),Nr(_)&&(L.ctx.renderer=At),{}.NODE_ENV!=="production"&&Zt(L,"init"),qf(L),{}.NODE_ENV!=="production"&&Qt(L,"init"),L.asyncDep){if(A&&A.registerDep(L,he),!_.el){const U=L.subTree=oe(bt);E(null,U,x,P)}}else he(L,_,x,P,A,H,W);({}).NODE_ENV!=="production"&&(Js(),Qt(L,"mount"))},Te=(_,x,P)=>{const I=x.component=_.component;if(Hh(_,x,P))if(I.asyncDep&&!I.asyncResolved){({}).NODE_ENV!=="production"&&Qs(x),M(I,x,P),{}.NODE_ENV!=="production"&&Js();return}else I.next=x,Sh(I.update),I.effect.dirty=!0,I.update();else x.el=_.el,I.vnode=x},he=(_,x,P,I,A,H,W)=>{const L=()=>{if(_.isMounted){let{next:X,bu:ie,u:te,parent:ce,vnode:ge}=_;{const vn=Tl(_);if(vn){X&&(X.el=ge.el,M(_,X,W)),vn.asyncDep.then(()=>{_.isUnmounted||L()});return}}let we=X,Ie;({}).NODE_ENV!=="production"&&Qs(X||_.vnode),An(_,!1),X?(X.el=ge.el,M(_,X,W)):X=ge,ie&&es(ie),(Ie=X.props&&X.props.onVnodeBeforeUpdate)&&zt(Ie,ce,X,ge),An(_,!0),{}.NODE_ENV!=="production"&&Zt(_,"render");const Fe=Cr(_);({}).NODE_ENV!=="production"&&Qt(_,"render");const mt=_.subTree;_.subTree=Fe,{}.NODE_ENV!=="production"&&Zt(_,"patch"),v(mt,Fe,h(mt.el),kt(mt),_,A,H),{}.NODE_ENV!=="production"&&Qt(_,"patch"),X.el=Fe.el,we===null&&Bh(_,Fe.el),te&&yt(te,A),(Ie=X.props&&X.props.onVnodeUpdated)&&yt(()=>zt(Ie,ce,X,ge),A),{}.NODE_ENV!=="production"&&Wa(_),{}.NODE_ENV!=="production"&&Js()}else{let X;const{el:ie,props:te}=x,{bm:ce,m:ge,parent:we}=_,Ie=us(x);if(An(_,!1),ce&&es(ce),!Ie&&(X=te&&te.onVnodeBeforeMount)&&zt(X,we,x),An(_,!0),ie&&nn){const Fe=()=>{({}).NODE_ENV!=="production"&&Zt(_,"render"),_.subTree=Cr(_),{}.NODE_ENV!=="production"&&Qt(_,"render"),{}.NODE_ENV!=="production"&&Zt(_,"hydrate"),nn(ie,_.subTree,_,A,null),{}.NODE_ENV!=="production"&&Qt(_,"hydrate")};Ie?x.type.__asyncLoader().then(()=>!_.isUnmounted&&Fe()):Fe()}else{({}).NODE_ENV!=="production"&&Zt(_,"render");const Fe=_.subTree=Cr(_);({}).NODE_ENV!=="production"&&Qt(_,"render"),{}.NODE_ENV!=="production"&&Zt(_,"patch"),v(null,Fe,P,I,_,A,H),{}.NODE_ENV!=="production"&&Qt(_,"patch"),x.el=Fe.el}if(ge&&yt(ge,A),!Ie&&(X=te&&te.onVnodeMounted)){const Fe=x;yt(()=>zt(X,we,Fe),A)}(x.shapeFlag&256||we&&us(we.vnode)&&we.vnode.shapeFlag&256)&&_.a&&yt(_.a,A),_.isMounted=!0,{}.NODE_ENV!=="production"&&Ah(_),x=P=I=null}},U=_.effect=new or(L,Ge,()=>ei(F),_.scope),F=_.update=()=>{U.dirty&&U.run()};F.id=_.uid,An(_,!0),{}.NODE_ENV!=="production"&&(U.onTrack=_.rtc?X=>es(_.rtc,X):void 0,U.onTrigger=_.rtg?X=>es(_.rtg,X):void 0,F.ownerInstance=_),F()},M=(_,x,P)=>{x.component=_;const I=_.vnode.props;_.vnode=x,_.next=null,kf(_,x.props,I,P),Rf(_,x.children,P),Ut(),Ga(_),Wt()},Y=(_,x,P,I,A,H,W,L,U=!1)=>{const F=_&&_.children,X=_?_.shapeFlag:0,ie=x.children,{patchFlag:te,shapeFlag:ce}=x;if(te>0){if(te&128){de(F,ie,P,I,A,H,W,L,U);return}else if(te&256){j(F,ie,P,I,A,H,W,L,U);return}}ce&8?(X&16&&Ae(F,A,H),ie!==F&&u(P,ie)):X&16?ce&16?de(F,ie,P,I,A,H,W,L,U):Ae(F,A,H,!0):(X&8&&u(P,""),ce&16&&ue(ie,P,I,A,H,W,L,U))},j=(_,x,P,I,A,H,W,L,U)=>{_=_||Gn,x=x||Gn;const F=_.length,X=x.length,ie=Math.min(F,X);let te;for(te=0;te<ie;te++){const ce=x[te]=U?gn(x[te]):Mt(x[te]);v(_[te],ce,P,null,A,H,W,L,U)}F>X?Ae(_,A,H,!0,!1,ie):ue(x,P,I,A,H,W,L,U,ie)},de=(_,x,P,I,A,H,W,L,U)=>{let F=0;const X=x.length;let ie=_.length-1,te=X-1;for(;F<=ie&&F<=te;){const ce=_[F],ge=x[F]=U?gn(x[F]):Mt(x[F]);if(_s(ce,ge))v(ce,ge,P,null,A,H,W,L,U);else break;F++}for(;F<=ie&&F<=te;){const ce=_[ie],ge=x[te]=U?gn(x[te]):Mt(x[te]);if(_s(ce,ge))v(ce,ge,P,null,A,H,W,L,U);else break;ie--,te--}if(F>ie){if(F<=te){const ce=te+1,ge=ce<X?x[ce].el:I;for(;F<=te;)v(null,x[F]=U?gn(x[F]):Mt(x[F]),P,ge,A,H,W,L,U),F++}}else if(F>te)for(;F<=ie;)Me(_[F],A,H,!0),F++;else{const ce=F,ge=F,we=new Map;for(F=ge;F<=te;F++){const tt=x[F]=U?gn(x[F]):Mt(x[F]);tt.key!=null&&({}.NODE_ENV!=="production"&&we.has(tt.key)&&B("Duplicate keys found during update:",JSON.stringify(tt.key),"Make sure keys are unique."),we.set(tt.key,F))}let Ie,Fe=0;const mt=te-ge+1;let vn=!1,Ui=0;const Fn=new Array(mt);for(F=0;F<mt;F++)Fn[F]=0;for(F=ce;F<=ie;F++){const tt=_[F];if(Fe>=mt){Me(tt,A,H,!0);continue}let gt;if(tt.key!=null)gt=we.get(tt.key);else for(Ie=ge;Ie<=te;Ie++)if(Fn[Ie-ge]===0&&_s(tt,x[Ie])){gt=Ie;break}gt===void 0?Me(tt,A,H,!0):(Fn[gt-ge]=F+1,gt>=Ui?Ui=gt:vn=!0,v(tt,x[gt],P,null,A,H,W,L,U),Fe++)}const Wi=vn?Gf(Fn):Gn;for(Ie=Wi.length-1,F=mt-1;F>=0;F--){const tt=ge+F,gt=x[tt],Yi=tt+1<X?x[tt+1].el:I;Fn[F]===0?v(null,gt,P,Yi,A,H,W,L,U):vn&&(Ie<0||F!==Wi[Ie]?fe(gt,P,Yi,2):Ie--)}}},fe=(_,x,P,I,A=null)=>{const{el:H,type:W,transition:L,children:U,shapeFlag:F}=_;if(F&6){fe(_.component.subTree,x,P,I);return}if(F&128){_.suspense.move(x,P,I);return}if(F&64){W.move(_,x,P,At);return}if(W===ke){s(H,x,P);for(let ie=0;ie<U.length;ie++)fe(U[ie],x,P,I);s(_.anchor,x,P);return}if(W===hi){S(_,x,P);return}if(I!==2&&F&1&&L)if(I===0)L.beforeEnter(H),s(H,x,P),yt(()=>L.enter(H),A);else{const{leave:ie,delayLeave:te,afterLeave:ce}=L,ge=()=>s(H,x,P),we=()=>{ie(H,()=>{ge(),ce&&ce()})};te?te(H,ge,we):we()}else s(H,x,P)},Me=(_,x,P,I=!1,A=!1)=>{const{type:H,props:W,ref:L,children:U,dynamicChildren:F,shapeFlag:X,patchFlag:ie,dirs:te}=_;if(L!=null&&Vr(L,null,P,_,!0),X&256){x.ctx.deactivate(_);return}const ce=X&1&&te,ge=!us(_);let we;if(ge&&(we=W&&W.onVnodeBeforeUnmount)&&zt(we,x,_),X&6)Ct(_.component,P,I);else{if(X&128){_.suspense.unmount(P,I);return}ce&&Mn(_,null,x,"beforeUnmount"),X&64?_.type.remove(_,x,P,A,At,I):F&&(H!==ke||ie>0&&ie&64)?Ae(F,x,P,!1,!0):(H===ke&&ie&384||!A&&X&16)&&Ae(U,x,P),I&&Je(_)}(ge&&(we=W&&W.onVnodeUnmounted)||ce)&&yt(()=>{we&&zt(we,x,_),ce&&Mn(_,null,x,"unmounted")},P)},Je=_=>{const{type:x,el:P,anchor:I,transition:A}=_;if(x===ke){({}).NODE_ENV!=="production"&&_.patchFlag>0&&_.patchFlag&2048&&A&&!A.persisted?_.children.forEach(W=>{W.type===bt?i(W.el):Je(W)}):Et(P,I);return}if(x===hi){$(_);return}const H=()=>{i(P),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(_.shapeFlag&1&&A&&!A.persisted){const{leave:W,delayLeave:L}=A,U=()=>W(P,H);L?L(_.el,H,U):U()}else H()},Et=(_,x)=>{let P;for(;_!==x;)P=f(_),i(_),_=P;i(x)},Ct=(_,x,P)=>{({}).NODE_ENV!=="production"&&_.type.__hmrId&&Nh(_);const{bum:I,scope:A,update:H,subTree:W,um:L}=_;I&&es(I),A.stop(),H&&(H.active=!1,Me(W,_,x,P)),L&&yt(L,x),yt(()=>{_.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),{}.NODE_ENV!=="production"&&$h(_)},Ae=(_,x,P,I=!1,A=!1,H=0)=>{for(let W=H;W<_.length;W++)Me(_[W],x,P,I,A)},kt=_=>_.shapeFlag&6?kt(_.component.subTree):_.shapeFlag&128?_.suspense.next():f(_.anchor||_.el);let $e=!1;const et=(_,x,P)=>{_==null?x._vnode&&Me(x._vnode,null,null,!0):v(x._vnode||null,_,x,null,null,null,P),$e||($e=!0,Ga(),za(),$e=!1),x._vnode=_},At={p:v,um:Me,m:fe,r:Je,mt:We,mc:ue,pc:Y,pbc:De,n:kt,o:t};let tn,nn;return e&&([tn,nn]=e(At)),{render:et,hydrate:tn,createApp:Ef(et,tn)}}function Gr({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function An({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Vf(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ui(t,e,n=!1){const s=t.children,i=e.children;if(re(s)&&re(i))for(let r=0;r<s.length;r++){const o=s[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=gn(i[r]),a.el=o.el),n||ui(o,a)),a.type===ps&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===bt&&!a.el&&(a.el=o.el)}}function Gf(t){const e=t.slice(),n=[0];let s,i,r,o,a;const l=t.length;for(s=0;s<l;s++){const c=t[s];if(c!==0){if(i=n[n.length-1],t[i]<c){e[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,t[n[a]]<c?r=a+1:o=a;c<t[n[r]]&&(r>0&&(e[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=e[o];return n}function Tl(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Tl(e)}const zf=t=>t.__isTeleport,ke=Symbol.for("v-fgt"),ps=Symbol.for("v-txt"),bt=Symbol.for("v-cmt"),hi=Symbol.for("v-stc"),ms=[];let It=null;function D(t=!1){ms.push(It=t?null:[])}function jf(){ms.pop(),It=ms[ms.length-1]||null}let gs=1;function Sl(t){gs+=t}function kl(t){return t.dynamicChildren=gs>0?It||Gn:null,jf(),gs>0&&It&&It.push(t),t}function z(t,e,n,s,i,r){return kl(N(t,e,n,s,i,r,!0))}function Qe(t,e,n,s,i){return kl(oe(t,e,n,s,i,!0))}function Bn(t){return t?t.__v_isVNode===!0:!1}function _s(t,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&Hn.has(e.type)?(t.shapeFlag&=-257,e.shapeFlag&=-513,!1):t.type===e.type&&t.key===e.key}const Hf=(...t)=>Nl(...t),Pl=({key:t})=>t??null,fi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ze(t)||Ze(t)||ae(t)?{i:je,r:t,k:e,f:!!n}:t:null);function N(t,e=null,n=null,s=0,i=null,r=t===ke?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Pl(e),ref:e&&fi(e),scopeId:ni,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:je};return a?(zr(l,n),r&128&&t.normalize(l)):n&&(l.shapeFlag|=ze(n)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&B("VNode created with invalid key (NaN). VNode type:",l.type),gs>0&&!o&&It&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&It.push(l),l}const oe={}.NODE_ENV!=="production"?Hf:Nl;function Nl(t,e=null,n=null,s=0,i=null,r=!1){if((!t||t===Wh)&&({}.NODE_ENV!=="production"&&!t&&B(`Invalid vnode type when creating vnode: ${t}.`),t=bt),Bn(t)){const a=mn(t,e,!0);return n&&zr(a,n),gs>0&&!r&&It&&(a.shapeFlag&6?It[It.indexOf(t)]=a:It.push(a)),a.patchFlag|=-2,a}if(Fl(t)&&(t=t.__vccOpts),e){e=Bf(e);let{class:a,style:l}=e;a&&!ze(a)&&(e.class=vt(a)),Ee(l)&&(pr(l)&&!re(l)&&(l=Le({},l)),e.style=q(l))}const o=ze(t)?1:Xh(t)?128:zf(t)?64:Ee(t)?4:ae(t)?2:0;return{}.NODE_ENV!=="production"&&o&4&&pr(t)&&(t=me(t),B("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`.",`
22
- Component that was made reactive: `,t)),N(t,e,n,s,i,o,r,!0)}function Bf(t){return t?pr(t)||dl(t)?Le({},t):t:null}function mn(t,e,n=!1){const{props:s,ref:i,patchFlag:r,children:o}=t,a=e?jr(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Pl(a),ref:e&&e.ref?n&&i?re(i)?i.concat(fi(e)):[i,fi(e)]:fi(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&re(o)?o.map(Ol):o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ke?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&mn(t.ssContent),ssFallback:t.ssFallback&&mn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ol(t){const e=mn(t);return re(t.children)&&(e.children=t.children.map(Ol)),e}function He(t=" ",e=0){return oe(ps,null,t,e)}function Be(t="",e=!1){return e?(D(),Qe(bt,null,t)):oe(bt,null,t)}function Mt(t){return t==null||typeof t=="boolean"?oe(bt):re(t)?oe(ke,null,t.slice()):typeof t=="object"?gn(t):oe(ps,null,String(t))}function gn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:mn(t)}function zr(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(re(e))n=16;else if(typeof e=="object")if(s&65){const i=e.default;i&&(i._c&&(i._d=!1),zr(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!dl(e)?e._ctx=je:i===3&&je&&(je.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ae(e)?(e={default:e,_ctx:je},n=32):(e=String(e),s&64?(n=16,e=[He(e)]):n=8);t.children=e,t.shapeFlag|=n}function jr(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const i in s)if(i==="class")e.class!==s.class&&(e.class=vt([e.class,s.class]));else if(i==="style")e.style=q([e.style,s.style]);else if(Qn(i)){const r=e[i],o=s[i];o&&r!==o&&!(re(r)&&r.includes(o))&&(e[i]=r?[].concat(r,o):o)}else i!==""&&(e[i]=s[i])}return e}function zt(t,e,n,s=null){Ot(t,e,7,[n,s])}const Uf=ul();let Wf=0;function Yf(t,e,n){const s=t.type,i=(e?e.appContext:t.appContext)||Uf,r={uid:Wf++,vnode:t,type:s,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Bu(!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:ml(s,i),emitsOptions:Xa(s,i),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:s.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.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"?r.ctx=hf(r):r.ctx={_:r},r.root=e?e.root:r,r.emit=Gh.bind(null,r),t.ce&&t.ce(r),r}let Ue=null;const Il=()=>Ue||je;let di,Hr;{const t=ir(),e=(n,s)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};di=e("__VUE_INSTANCE_SETTERS__",n=>Ue=n),Hr=e("__VUE_SSR_SETTERS__",n=>pi=n)}const vs=t=>{const e=Ue;return di(t),t.scope.on(),()=>{t.scope.off(),di(e)}},Ml=()=>{Ue&&Ue.scope.off(),di(null)},Xf=$t("slot,component");function Br(t,{isNativeTag:e}){(Xf(t)||e(t))&&B("Do not use built-in or reserved HTML elements as component id: "+t)}function Dl(t){return t.vnode.shapeFlag&4}let pi=!1;function qf(t,e=!1){e&&Hr(e);const{props:n,children:s}=t.vnode,i=Dl(t);Tf(t,n,i,e),Af(t,s);const r=i?Kf(t,e):void 0;return e&&Hr(!1),r}function Kf(t,e){var n;const s=t.type;if({}.NODE_ENV!=="production"){if(s.name&&Br(s.name,t.appContext.config),s.components){const r=Object.keys(s.components);for(let o=0;o<r.length;o++)Br(r[o],t.appContext.config)}if(s.directives){const r=Object.keys(s.directives);for(let o=0;o<r.length;o++)tl(r[o])}s.compilerOptions&&Zf()&&B('"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.')}t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,il),{}.NODE_ENV!=="production"&&ff(t);const{setup:i}=s;if(i){const r=t.setupContext=i.length>1?Ll(t):null,o=vs(t);Ut();const a=Xt(i,t,0,[{}.NODE_ENV!=="production"?Yt(t.props):t.props,r]);if(Wt(),o(),tr(a)){if(a.then(Ml,Ml),e)return a.then(l=>{Al(t,l,e)}).catch(l=>{ns(l,t,0)});if(t.asyncDep=a,{}.NODE_ENV!=="production"&&!t.suspense){const l=(n=s.name)!=null?n:"Anonymous";B(`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 Al(t,a,e)}else Rl(t,e)}function Al(t,e,n){ae(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ee(e)?({}.NODE_ENV!=="production"&&Bn(e)&&B("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(t.devtoolsRawSetupState=e),t.setupState=Aa(e),{}.NODE_ENV!=="production"&&df(t)):{}.NODE_ENV!=="production"&&e!==void 0&&B(`setup() should return an object. Received: ${e===null?"null":typeof e}`),Rl(t,n)}let Ur;const Zf=()=>!Ur;function Rl(t,e,n){const s=t.type;if(!t.render){if(!e&&Ur&&!s.render){const i=s.template||Ar(t).template;if(i){({}).NODE_ENV!=="production"&&Zt(t,"compile");const{isCustomElement:r,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=s,c=Le(Le({isCustomElement:r,delimiters:a},o),l);s.render=Ur(i,c),{}.NODE_ENV!=="production"&&Qt(t,"compile")}}t.render=s.render||Ge}{const i=vs(t);Ut();try{_f(t)}finally{Wt(),i()}}({}).NODE_ENV!=="production"&&!s.render&&t.render===Ge&&!e&&(s.template?B('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".'):B("Component is missing template or render function."))}const $l={}.NODE_ENV!=="production"?{get(t,e){return ii(),Ke(t,"get",""),t[e]},set(){return B("setupContext.attrs is readonly."),!1},deleteProperty(){return B("setupContext.attrs is readonly."),!1}}:{get(t,e){return Ke(t,"get",""),t[e]}};function Qf(t){return t.slotsProxy||(t.slotsProxy=new Proxy(t.slots,{get(e,n){return Ke(t,"get","$slots"),e[n]}}))}function Ll(t){const e=n=>{if({}.NODE_ENV!=="production"&&(t.exposed&&B("expose() should be called only once per setup()."),n!=null)){let s=typeof n;s==="object"&&(re(n)?s="array":Ze(n)&&(s="ref")),s!=="object"&&B(`expose() should be passed a plain object, received ${s}.`)}t.exposed=n||{}};if({}.NODE_ENV!=="production"){let n;return Object.freeze({get attrs(){return n||(n=new Proxy(t.attrs,$l))},get slots(){return Qf(t)},get emit(){return(s,...i)=>t.emit(s,...i)},expose:e})}else return{attrs:new Proxy(t.attrs,$l),slots:t.slots,emit:t.emit,expose:e}}function mi(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Aa(dh(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Dn)return Dn[n](t)},has(e,n){return n in e||n in Dn}}))}const Jf=/(?:^|[-_])(\w)/g,ed=t=>t.replace(Jf,e=>e.toUpperCase()).replace(/[-_]/g,"");function Wr(t,e=!0){return ae(t)?t.displayName||t.name:t.name||e&&t.__name}function gi(t,e,n=!1){let s=Wr(e);if(!s&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&t&&t.parent){const i=r=>{for(const o in r)if(r[o]===e)return o};s=i(t.components||t.parent.type.components)||i(t.appContext.components)}return s?ed(s):n?"App":"Anonymous"}function Fl(t){return ae(t)&&"__vccOpts"in t}const td=(t,e)=>{const n=mh(t,e,pi);if({}.NODE_ENV!=="production"){const s=Il();s&&s.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function xt(t,e,n){const s=arguments.length;return s===2?Ee(e)&&!re(e)?Bn(e)?oe(t,null,[e]):oe(t,e):oe(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Bn(n)&&(n=[n]),oe(t,e,n))}function nd(){if({}.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(h){return Ee(h)?h.__isVue?["div",t,"VueInstance"]:Ze(h)?["div",{},["span",t,u(h)],"<",a(h.value),">"]:zn(h)?["div",{},["span",t,kn(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Sn(h)?" (readonly)":""}`]:Sn(h)?["div",{},["span",t,kn(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...r(h.$)]}};function r(h){const f=[];h.type.props&&h.props&&f.push(o("props",me(h.props))),h.setupState!==Se&&f.push(o("setup",h.setupState)),h.data!==Se&&f.push(o("data",me(h.data)));const d=l(h,"computed");d&&f.push(o("computed",d));const m=l(h,"inject");return m&&f.push(o("injected",m)),f.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=Le({},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",n,JSON.stringify(h)]:typeof h=="boolean"?["span",s,h]:Ee(h)?["object",{object:f?me(h):h}]:["span",n,String(h)]}function l(h,f){const d=h.type;if(ae(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(re(m)&&m.includes(f)||Ee(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 kn(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Vl="3.4.25",Yr={}.NODE_ENV!=="production"?B:Ge;/**
21
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const Ot=cf;function Kf(n){return Zf(n)}function Zf(n,e){qf();const t=Ei();t.__VUE__=!0,{}.NODE_ENV!=="production"&&al(t.__VUE_DEVTOOLS_GLOBAL_HOOK__,t);const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:p=Ze,insertStaticContent:g}=n,y=(v,x,k,N=null,$=null,W=null,ne=void 0,G=null,te={}.NODE_ENV!=="production"&&Fn?!1:!!x.dynamicChildren)=>{if(v===x)return;v&&!Ds(v,x)&&(N=X(v),j(v,$,W,!0),v=null),x.patchFlag===-2&&(te=!1,x.dynamicChildren=null);const{type:z,ref:ae,shapeFlag:ge}=x;switch(z){case Ps:b(v,x,k,N);break;case Pt:O(v,x,k,N);break;case Pr:v==null?D(x,k,N,ne):{}.NODE_ENV!=="production"&&I(v,x,k,ne);break;case Fe:De(v,x,k,N,$,W,ne,G,te);break;default:ge&1?V(v,x,k,N,$,W,ne,G,te):ge&6?Ye(v,x,k,N,$,W,ne,G,te):ge&64||ge&128?z.process(v,x,k,N,$,W,ne,G,te,Q):{}.NODE_ENV!=="production"&&ee("Invalid VNode type:",z,`(${typeof z})`)}ae!=null&&$&&so(ae,v&&v.ref,W,x||v,!x)},b=(v,x,k,N)=>{if(v==null)s(x.el=a(x.children),k,N);else{const $=x.el=v.el;x.children!==v.children&&c($,x.children)}},O=(v,x,k,N)=>{v==null?s(x.el=l(x.children||""),k,N):x.el=v.el},D=(v,x,k,N)=>{[v.el,v.anchor]=g(v.children,x,k,N,v.el,v.anchor)},I=(v,x,k,N)=>{if(x.children!==v.children){const $=f(v.anchor);se(v),[x.el,x.anchor]=g(x.children,k,$,N)}else x.el=v.el,x.anchor=v.anchor},L=({el:v,anchor:x},k,N)=>{let $;for(;v&&v!==x;)$=f(v),s(v,k,N),v=$;s(x,k,N)},se=({el:v,anchor:x})=>{let k;for(;v&&v!==x;)k=f(v),r(v),v=k;r(x)},V=(v,x,k,N,$,W,ne,G,te)=>{x.type==="svg"?ne="svg":x.type==="math"&&(ne="mathml"),v==null?U(x,k,N,$,W,ne,G,te):Te(v,x,$,W,ne,G,te)},U=(v,x,k,N,$,W,ne,G)=>{let te,z;const{props:ae,shapeFlag:ge,transition:de,dirs:Ce}=v;if(te=v.el=o(v.type,W,ae&&ae.is,ae),ge&8?u(te,v.children):ge&16&&xe(v.children,te,null,N,$,ro(v,W),ne,G),Ce&&zn(v,null,N,"created"),be(te,v,v.scopeId,ne,N),ae){for(const Le in ae)Le!=="value"&&!ps(Le)&&i(te,Le,null,ae[Le],W,v.children,N,$,S);"value"in ae&&i(te,"value",null,ae.value,W),(z=ae.onVnodeBeforeMount)&&Kt(z,N,v)}({}).NODE_ENV!=="production"&&(Object.defineProperty(te,"__vnode",{value:v,enumerable:!1}),Object.defineProperty(te,"__vueParentComponent",{value:N,enumerable:!1})),Ce&&zn(v,null,N,"beforeMount");const Ie=Qf($,de);Ie&&de.beforeEnter(te),s(te,x,k),((z=ae&&ae.onVnodeMounted)||Ie||Ce)&&Ot(()=>{z&&Kt(z,N,v),Ie&&de.enter(te),Ce&&zn(v,null,N,"mounted")},$)},be=(v,x,k,N,$)=>{if(k&&p(v,k),N)for(let W=0;W<N.length;W++)p(v,N[W]);if($){let W=$.subTree;if({}.NODE_ENV!=="production"&&W.patchFlag>0&&W.patchFlag&2048&&(W=Hi(W.children)||W),x===W){const ne=$.vnode;be(v,ne,ne.scopeId,ne.slotScopeIds,$.parent)}}},xe=(v,x,k,N,$,W,ne,G,te=0)=>{for(let z=te;z<v.length;z++){const ae=v[z]=G?Cn(v[z]):Bt(v[z]);y(null,ae,x,k,N,$,W,ne,G)}},Te=(v,x,k,N,$,W,ne)=>{const G=x.el=v.el;let{patchFlag:te,dynamicChildren:z,dirs:ae}=x;te|=v.patchFlag&16;const ge=v.props||ze,de=x.props||ze;let Ce;if(k&&Hn(k,!1),(Ce=de.onVnodeBeforeUpdate)&&Kt(Ce,k,x,v),ae&&zn(x,v,k,"beforeUpdate"),k&&Hn(k,!0),{}.NODE_ENV!=="production"&&Fn&&(te=0,ne=!1,z=null),z?(Ae(v.dynamicChildren,z,G,k,N,ro(x,$),W),{}.NODE_ENV!=="production"&&Or(v,x)):ne||J(v,x,G,null,k,N,ro(x,$),W,!1),te>0){if(te&16)_e(G,x,ge,de,k,N,$);else if(te&2&&ge.class!==de.class&&i(G,"class",null,de.class,$),te&4&&i(G,"style",ge.style,de.style,$),te&8){const Ie=x.dynamicProps;for(let Le=0;Le<Ie.length;Le++){const He=Ie[Le],qe=ge[He],Ct=de[He];(Ct!==qe||He==="value")&&i(G,He,qe,Ct,$,v.children,k,N,S)}}te&1&&v.children!==x.children&&u(G,x.children)}else!ne&&z==null&&_e(G,x,ge,de,k,N,$);((Ce=de.onVnodeUpdated)||ae)&&Ot(()=>{Ce&&Kt(Ce,k,x,v),ae&&zn(x,v,k,"updated")},N)},Ae=(v,x,k,N,$,W,ne)=>{for(let G=0;G<x.length;G++){const te=v[G],z=x[G],ae=te.el&&(te.type===Fe||!Ds(te,z)||te.shapeFlag&70)?h(te.el):k;y(te,z,ae,null,N,$,W,ne,!0)}},_e=(v,x,k,N,$,W,ne)=>{if(k!==N){if(k!==ze)for(const G in k)!ps(G)&&!(G in N)&&i(v,G,k[G],null,ne,x.children,$,W,S);for(const G in N){if(ps(G))continue;const te=N[G],z=k[G];te!==z&&G!=="value"&&i(v,G,z,te,ne,x.children,$,W,S)}"value"in N&&i(v,"value",k.value,N.value,ne)}},De=(v,x,k,N,$,W,ne,G,te)=>{const z=x.el=v?v.el:a(""),ae=x.anchor=v?v.anchor:a("");let{patchFlag:ge,dynamicChildren:de,slotScopeIds:Ce}=x;({}).NODE_ENV!=="production"&&(Fn||ge&2048)&&(ge=0,te=!1,de=null),Ce&&(G=G?G.concat(Ce):Ce),v==null?(s(z,k,N),s(ae,k,N),xe(x.children||[],k,ae,$,W,ne,G,te)):ge>0&&ge&64&&de&&v.dynamicChildren?(Ae(v.dynamicChildren,de,k,$,W,ne,G),{}.NODE_ENV!=="production"?Or(v,x):(x.key!=null||$&&x===$.subTree)&&Or(v,x,!0)):J(v,x,k,ae,$,W,ne,G,te)},Ye=(v,x,k,N,$,W,ne,G,te)=>{x.slotScopeIds=G,v==null?x.shapeFlag&512?$.ctx.activate(x,k,N,ne,te):ye(x,k,N,$,W,ne,te):Se(v,x,te)},ye=(v,x,k,N,$,W,ne)=>{const G=v.component=od(v,N,$);if({}.NODE_ENV!=="production"&&G.type.__hmrId&&jh(G),{}.NODE_ENV!=="production"&&(gr(v),an(G,"mount")),Ui(v)&&(G.ctx.renderer=Q),{}.NODE_ENV!=="production"&&an(G,"init"),ld(G),{}.NODE_ENV!=="production"&&ln(G,"init"),G.asyncDep){if($&&$.registerDep(G,re),!v.el){const te=G.subTree=Oe(Pt);O(null,te,x,k)}}else re(G,v,x,k,$,W,ne);({}).NODE_ENV!=="production"&&(vr(),ln(G,"mount"))},Se=(v,x,k)=>{const N=x.component=v.component;if(nf(v,x,k))if(N.asyncDep&&!N.asyncResolved){({}).NODE_ENV!=="production"&&gr(x),A(N,x,k),{}.NODE_ENV!=="production"&&vr();return}else N.next=x,Fh(N.update),N.effect.dirty=!0,N.update();else x.el=v.el,N.vnode=x},re=(v,x,k,N,$,W,ne)=>{const G=()=>{if(v.isMounted){let{next:ae,bu:ge,u:de,parent:Ce,vnode:Ie}=v;{const On=jl(v);if(On){ae&&(ae.el=Ie.el,A(v,ae,ne)),On.asyncDep.then(()=>{v.isUnmounted||G()});return}}let Le=ae,He;({}).NODE_ENV!=="production"&&gr(ae||v.vnode),Hn(v,!1),ae?(ae.el=Ie.el,A(v,ae,ne)):ae=Ie,ge&&ms(ge),(He=ae.props&&ae.props.onVnodeBeforeUpdate)&&Kt(He,Ce,ae,Ie),Hn(v,!0),{}.NODE_ENV!=="production"&&an(v,"render");const qe=Bi(v);({}).NODE_ENV!=="production"&&ln(v,"render");const Ct=v.subTree;v.subTree=qe,{}.NODE_ENV!=="production"&&an(v,"patch"),y(Ct,qe,h(Ct.el),X(Ct),v,$,W),{}.NODE_ENV!=="production"&&ln(v,"patch"),ae.el=qe.el,Le===null&&sf(v,qe.el),de&&Ot(de,$),(He=ae.props&&ae.props.onVnodeUpdated)&&Ot(()=>Kt(He,Ce,ae,Ie),$),{}.NODE_ENV!=="production"&&ll(v),{}.NODE_ENV!=="production"&&vr()}else{let ae;const{el:ge,props:de}=x,{bm:Ce,m:Ie,parent:Le}=v,He=Cs(x);if(Hn(v,!1),Ce&&ms(Ce),!He&&(ae=de&&de.onVnodeBeforeMount)&&Kt(ae,Le,x),Hn(v,!0),ge&&ie){const qe=()=>{({}).NODE_ENV!=="production"&&an(v,"render"),v.subTree=Bi(v),{}.NODE_ENV!=="production"&&ln(v,"render"),{}.NODE_ENV!=="production"&&an(v,"hydrate"),ie(ge,v.subTree,v,$,null),{}.NODE_ENV!=="production"&&ln(v,"hydrate")};He?x.type.__asyncLoader().then(()=>!v.isUnmounted&&qe()):qe()}else{({}).NODE_ENV!=="production"&&an(v,"render");const qe=v.subTree=Bi(v);({}).NODE_ENV!=="production"&&ln(v,"render"),{}.NODE_ENV!=="production"&&an(v,"patch"),y(null,qe,k,N,v,$,W),{}.NODE_ENV!=="production"&&ln(v,"patch"),x.el=qe.el}if(Ie&&Ot(Ie,$),!He&&(ae=de&&de.onVnodeMounted)){const qe=x;Ot(()=>Kt(ae,Le,qe),$)}(x.shapeFlag&256||Le&&Cs(Le.vnode)&&Le.vnode.shapeFlag&256)&&v.a&&Ot(v.a,$),v.isMounted=!0,{}.NODE_ENV!=="production"&&Uh(v),x=k=N=null}},te=v.effect=new Ci(G,Ze,()=>yr(z),v.scope),z=v.update=()=>{te.dirty&&te.run()};z.id=v.uid,Hn(v,!0),{}.NODE_ENV!=="production"&&(te.onTrack=v.rtc?ae=>ms(v.rtc,ae):void 0,te.onTrigger=v.rtg?ae=>ms(v.rtg,ae):void 0,z.ownerInstance=v),z()},A=(v,x,k)=>{x.component=v;const N=v.vnode.props;v.vnode=x,v.next=null,Gf(v,x.props,N,k),Wf(v,x.children,k),en(),nl(v),tn()},J=(v,x,k,N,$,W,ne,G,te=!1)=>{const z=v&&v.children,ae=v?v.shapeFlag:0,ge=x.children,{patchFlag:de,shapeFlag:Ce}=x;if(de>0){if(de&128){ke(z,ge,k,N,$,W,ne,G,te);return}else if(de&256){Y(z,ge,k,N,$,W,ne,G,te);return}}Ce&8?(ae&16&&S(z,$,W),ge!==z&&u(k,ge)):ae&16?Ce&16?ke(z,ge,k,N,$,W,ne,G,te):S(z,$,W,!0):(ae&8&&u(k,""),Ce&16&&xe(ge,k,N,$,W,ne,G,te))},Y=(v,x,k,N,$,W,ne,G,te)=>{v=v||Zn,x=x||Zn;const z=v.length,ae=x.length,ge=Math.min(z,ae);let de;for(de=0;de<ge;de++){const Ce=x[de]=te?Cn(x[de]):Bt(x[de]);y(v[de],Ce,k,null,$,W,ne,G,te)}z>ae?S(v,$,W,!0,!1,ge):xe(x,k,N,$,W,ne,G,te,ge)},ke=(v,x,k,N,$,W,ne,G,te)=>{let z=0;const ae=x.length;let ge=v.length-1,de=ae-1;for(;z<=ge&&z<=de;){const Ce=v[z],Ie=x[z]=te?Cn(x[z]):Bt(x[z]);if(Ds(Ce,Ie))y(Ce,Ie,k,null,$,W,ne,G,te);else break;z++}for(;z<=ge&&z<=de;){const Ce=v[ge],Ie=x[de]=te?Cn(x[de]):Bt(x[de]);if(Ds(Ce,Ie))y(Ce,Ie,k,null,$,W,ne,G,te);else break;ge--,de--}if(z>ge){if(z<=de){const Ce=de+1,Ie=Ce<ae?x[Ce].el:N;for(;z<=de;)y(null,x[z]=te?Cn(x[z]):Bt(x[z]),k,Ie,$,W,ne,G,te),z++}}else if(z>de)for(;z<=ge;)j(v[z],$,W,!0),z++;else{const Ce=z,Ie=z,Le=new Map;for(z=Ie;z<=de;z++){const dt=x[z]=te?Cn(x[z]):Bt(x[z]);dt.key!=null&&({}.NODE_ENV!=="production"&&Le.has(dt.key)&&ee("Duplicate keys found during update:",JSON.stringify(dt.key),"Make sure keys are unique."),Le.set(dt.key,z))}let He,qe=0;const Ct=de-Ie+1;let On=!1,ui=0;const qn=new Array(Ct);for(z=0;z<Ct;z++)qn[z]=0;for(z=Ce;z<=ge;z++){const dt=v[z];if(qe>=Ct){j(dt,$,W,!0);continue}let Tt;if(dt.key!=null)Tt=Le.get(dt.key);else for(He=Ie;He<=de;He++)if(qn[He-Ie]===0&&Ds(dt,x[He])){Tt=He;break}Tt===void 0?j(dt,$,W,!0):(qn[Tt-Ie]=z+1,Tt>=ui?ui=Tt:On=!0,y(dt,x[Tt],k,null,$,W,ne,G,te),qe++)}const hi=On?Jf(qn):Zn;for(He=hi.length-1,z=Ct-1;z>=0;z--){const dt=Ie+z,Tt=x[dt],fi=dt+1<ae?x[dt+1].el:N;qn[z]===0?y(null,Tt,k,fi,$,W,ne,G,te):On&&(He<0||z!==hi[He]?we(Tt,k,fi,2):He--)}}},we=(v,x,k,N,$=null)=>{const{el:W,type:ne,transition:G,children:te,shapeFlag:z}=v;if(z&6){we(v.component.subTree,x,k,N);return}if(z&128){v.suspense.move(x,k,N);return}if(z&64){ne.move(v,x,k,Q);return}if(ne===Fe){s(W,x,k);for(let ge=0;ge<te.length;ge++)we(te[ge],x,k,N);s(v.anchor,x,k);return}if(ne===Pr){L(v,x,k);return}if(N!==2&&z&1&&G)if(N===0)G.beforeEnter(W),s(W,x,k),Ot(()=>G.enter(W),$);else{const{leave:ge,delayLeave:de,afterLeave:Ce}=G,Ie=()=>s(W,x,k),Le=()=>{ge(W,()=>{Ie(),Ce&&Ce()})};de?de(W,Ie,Le):Le()}else s(W,x,k)},j=(v,x,k,N=!1,$=!1)=>{const{type:W,props:ne,ref:G,children:te,dynamicChildren:z,shapeFlag:ae,patchFlag:ge,dirs:de}=v;if(G!=null&&so(G,null,k,v,!0),ae&256){x.ctx.deactivate(v);return}const Ce=ae&1&&de,Ie=!Cs(v);let Le;if(Ie&&(Le=ne&&ne.onVnodeBeforeUnmount)&&Kt(Le,x,v),ae&6)R(v.component,k,N);else{if(ae&128){v.suspense.unmount(k,N);return}Ce&&zn(v,null,x,"beforeUnmount"),ae&64?v.type.remove(v,x,k,$,Q,N):z&&(W!==Fe||ge>0&&ge&64)?S(z,x,k,!1,!0):(W===Fe&&ge&384||!$&&ae&16)&&S(te,x,k),N&&Z(v)}(Ie&&(Le=ne&&ne.onVnodeUnmounted)||Ce)&&Ot(()=>{Le&&Kt(Le,x,v),Ce&&zn(v,null,x,"unmounted")},k)},Z=v=>{const{type:x,el:k,anchor:N,transition:$}=v;if(x===Fe){({}).NODE_ENV!=="production"&&v.patchFlag>0&&v.patchFlag&2048&&$&&!$.persisted?v.children.forEach(ne=>{ne.type===Pt?r(ne.el):Z(ne)}):E(k,N);return}if(x===Pr){se(v);return}const W=()=>{r(k),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(v.shapeFlag&1&&$&&!$.persisted){const{leave:ne,delayLeave:G}=$,te=()=>ne(k,W);G?G(v.el,W,te):te()}else W()},E=(v,x)=>{let k;for(;v!==x;)k=f(v),r(v),v=k;r(x)},R=(v,x,k)=>{({}).NODE_ENV!=="production"&&v.type.__hmrId&&zh(v);const{bum:N,scope:$,update:W,subTree:ne,um:G}=v;N&&ms(N),$.stop(),W&&(W.active=!1,j(ne,v,x,k)),G&&Ot(G,x),Ot(()=>{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"&&qh(v)},S=(v,x,k,N=!1,$=!1,W=0)=>{for(let ne=W;ne<v.length;ne++)j(v[ne],x,k,N,$)},X=v=>v.shapeFlag&6?X(v.component.subTree):v.shapeFlag&128?v.suspense.next():f(v.anchor||v.el);let w=!1;const M=(v,x,k)=>{v==null?x._vnode&&j(x._vnode,null,null,!0):y(x._vnode||null,v,x,null,null,null,k),w||(w=!0,nl(),sl(),w=!1),x._vnode=v},Q={p:y,um:j,m:we,r:Z,mt:ye,mc:xe,pc:J,pbc:Ae,n:X,o:n};let ue,ie;return e&&([ue,ie]=e(Q)),{render:M,hydrate:ue,createApp:$f(M,ue)}}function ro({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 Hn({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function Qf(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function Or(n,e,t=!1){const s=n.children,r=e.children;if(ve(s)&&ve(r))for(let i=0;i<s.length;i++){const o=s[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=Cn(r[i]),a.el=o.el),t||Or(o,a)),a.type===Ps&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Pt&&!a.el&&(a.el=o.el)}}function Jf(n){const e=n.slice(),t=[0];let s,r,i,o,a;const l=n.length;for(s=0;s<l;s++){const c=n[s];if(c!==0){if(r=t[t.length-1],n[r]<c){e[s]=r,t.push(s);continue}for(i=0,o=t.length-1;i<o;)a=i+o>>1,n[t[a]]<c?i=a+1:o=a;c<n[t[i]]&&(i>0&&(e[s]=t[i-1]),t[i]=s)}}for(i=t.length,o=t[i-1];i-- >0;)t[i]=o,o=e[o];return t}function jl(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:jl(e)}const ed=n=>n.__isTeleport,Fe=Symbol.for("v-fgt"),Ps=Symbol.for("v-txt"),Pt=Symbol.for("v-cmt"),Pr=Symbol.for("v-stc"),Is=[];let zt=null;function F(n=!1){Is.push(zt=n?null:[])}function td(){Is.pop(),zt=Is[Is.length-1]||null}let Ns=1;function zl(n){Ns+=n}function Bl(n){return n.dynamicChildren=Ns>0?zt||Zn:null,td(),Ns>0&&zt&&zt.push(n),n}function K(n,e,t,s,r,i){return Bl(P(n,e,t,s,r,i,!0))}function xt(n,e,t,s,r){return Bl(Oe(n,e,t,s,r,!0))}function ts(n){return n?n.__v_isVNode===!0:!1}function Ds(n,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&es.has(e.type)?(n.shapeFlag&=-257,e.shapeFlag&=-513,!1):n.type===e.type&&n.key===e.key}const nd=(...n)=>Yl(...n),Hl=({key:n})=>n??null,Ir=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?Qe(n)||ut(n)||Ee(n)?{i:Je,r:n,k:e,f:!!t}:n:null);function P(n,e=null,t=null,s=0,r=null,i=n===Fe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&Hl(e),ref:e&&Ir(e),scopeId:br,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Je};return a?(io(l,t),i&128&&n.normalize(l)):t&&(l.shapeFlag|=Qe(t)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&ee("VNode created with invalid key (NaN). VNode type:",l.type),Ns>0&&!o&&zt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&zt.push(l),l}const Oe={}.NODE_ENV!=="production"?nd:Yl;function Yl(n,e=null,t=null,s=0,r=null,i=!1){if((!n||n===of)&&({}.NODE_ENV!=="production"&&!n&&ee(`Invalid vnode type when creating vnode: ${n}.`),n=Pt),ts(n)){const a=Sn(n,e,!0);return t&&io(a,t),Ns>0&&!i&&zt&&(a.shapeFlag&6?zt[zt.indexOf(n)]=a:zt.push(a)),a.patchFlag|=-2,a}if(ec(n)&&(n=n.__vccOpts),e){e=sd(e);let{class:a,style:l}=e;a&&!Qe(a)&&(e.class=mt(a)),je(l)&&(Mi(l)&&!ve(l)&&(l=Ue({},l)),e.style=oe(l))}const o=Qe(n)?1:lf(n)?128:ed(n)?64:je(n)?4:Ee(n)?2:0;return{}.NODE_ENV!=="production"&&o&4&&Mi(n)&&(n=Pe(n),ee("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`.",`
22
+ Component that was made reactive: `,n)),P(n,e,t,s,r,o,i,!0)}function sd(n){return n?Mi(n)||Pl(n)?Ue({},n):n:null}function Sn(n,e,t=!1){const{props:s,ref:r,patchFlag:i,children:o}=n,a=e?oo(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&Hl(a),ref:e&&e.ref?t&&r?ve(r)?r.concat(Ir(e)):[r,Ir(e)]:Ir(e):r,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:{}.NODE_ENV!=="production"&&i===-1&&ve(o)?o.map(Xl):o,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==Fe?i===-1?16:i|16:i,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Sn(n.ssContent),ssFallback:n.ssFallback&&Sn(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function Xl(n){const e=Sn(n);return ve(n.children)&&(e.children=n.children.map(Xl)),e}function Dt(n=" ",e=0){return Oe(Ps,null,n,e)}function Ke(n="",e=!1){return e?(F(),xt(Pt,null,n)):Oe(Pt,null,n)}function Bt(n){return n==null||typeof n=="boolean"?Oe(Pt):ve(n)?Oe(Fe,null,n.slice()):typeof n=="object"?Cn(n):Oe(Ps,null,String(n))}function Cn(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Sn(n)}function io(n,e){let t=0;const{shapeFlag:s}=n;if(e==null)e=null;else if(ve(e))t=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),io(n,r()),r._c&&(r._d=!0));return}else{t=32;const r=e._;!r&&!Pl(e)?e._ctx=Je:r===3&&Je&&(Je.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else Ee(e)?(e={default:e,_ctx:Je},t=32):(e=String(e),s&64?(t=16,e=[Dt(e)]):t=8);n.children=e,n.shapeFlag|=t}function oo(...n){const e={};for(let t=0;t<n.length;t++){const s=n[t];for(const r in s)if(r==="class")e.class!==s.class&&(e.class=mt([e.class,s.class]));else if(r==="style")e.style=oe([e.style,s.style]);else if(ds(r)){const i=e[r],o=s[r];o&&i!==o&&!(ve(i)&&i.includes(o))&&(e[r]=i?[].concat(i,o):o)}else r!==""&&(e[r]=s[r])}return e}function Kt(n,e,t,s=null){jt(n,e,7,[t,s])}const rd=Tl();let id=0;function od(n,e,t){const s=n.type,r=(e?e.appContext:n.appContext)||rd,i={uid:id++,vnode:n,type:s,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new sh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Nl(s,r),emitsOptions:ul(s,r),emit:null,emitted:null,propsDefaults:ze,inheritAttrs:s.inheritAttrs,ctx:ze,data:ze,props:ze,attrs:ze,slots:ze,refs:ze,setupState:ze,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"?i.ctx=Sf(i):i.ctx={_:i},i.root=e?e.root:i,i.emit=Jh.bind(null,i),n.ce&&n.ce(i),i}let rt=null;const Ul=()=>rt||Je;let Nr,ao;{const n=Ei(),e=(t,s)=>{let r;return(r=n[t])||(r=n[t]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Nr=e("__VUE_INSTANCE_SETTERS__",t=>rt=t),ao=e("__VUE_SSR_SETTERS__",t=>Dr=t)}const Ms=n=>{const e=rt;return Nr(n),n.scope.on(),()=>{n.scope.off(),Nr(e)}},Wl=()=>{rt&&rt.scope.off(),Nr(null)},ad=Yt("slot,component");function lo(n,{isNativeTag:e}){(ad(n)||e(n))&&ee("Do not use built-in or reserved HTML elements as component id: "+n)}function ql(n){return n.vnode.shapeFlag&4}let Dr=!1;function ld(n,e=!1){e&&ao(e);const{props:t,children:s}=n.vnode,r=ql(n);Vf(n,t,r,e),Uf(n,s);const i=r?cd(n,e):void 0;return e&&ao(!1),i}function cd(n,e){var t;const s=n.type;if({}.NODE_ENV!=="production"){if(s.name&&lo(s.name,n.appContext.config),s.components){const i=Object.keys(s.components);for(let o=0;o<i.length;o++)lo(i[o],n.appContext.config)}if(s.directives){const i=Object.keys(s.directives);for(let o=0;o<i.length;o++)vl(i[o])}s.compilerOptions&&ud()&&ee('"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,bl),{}.NODE_ENV!=="production"&&Cf(n);const{setup:r}=s;if(r){const i=n.setupContext=r.length>1?Jl(n):null,o=Ms(n);en();const a=sn(r,n,0,[{}.NODE_ENV!=="production"?nn(n.props):n.props,i]);if(tn(),o(),bi(a)){if(a.then(Wl,Wl),e)return a.then(l=>{Kl(n,l,e)}).catch(l=>{vs(l,n,0)});if(n.asyncDep=a,{}.NODE_ENV!=="production"&&!n.suspense){const l=(t=s.name)!=null?t:"Anonymous";ee(`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 Kl(n,a,e)}else Zl(n,e)}function Kl(n,e,t){Ee(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:je(e)?({}.NODE_ENV!=="production"&&ts(e)&&ee("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(n.devtoolsRawSetupState=e),n.setupState=Ka(e),{}.NODE_ENV!=="production"&&Tf(n)):{}.NODE_ENV!=="production"&&e!==void 0&&ee(`setup() should return an object. Received: ${e===null?"null":typeof e}`),Zl(n,t)}let co;const ud=()=>!co;function Zl(n,e,t){const s=n.type;if(!n.render){if(!e&&co&&!s.render){const r=s.template||Qi(n).template;if(r){({}).NODE_ENV!=="production"&&an(n,"compile");const{isCustomElement:i,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:l}=s,c=Ue(Ue({isCustomElement:i,delimiters:a},o),l);s.render=co(r,c),{}.NODE_ENV!=="production"&&ln(n,"compile")}}n.render=s.render||Ze}{const r=Ms(n);en();try{If(n)}finally{tn(),r()}}({}).NODE_ENV!=="production"&&!s.render&&n.render===Ze&&!e&&(s.template?ee('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".'):ee("Component is missing template or render function."))}const Ql={}.NODE_ENV!=="production"?{get(n,e){return wr(),ct(n,"get",""),n[e]},set(){return ee("setupContext.attrs is readonly."),!1},deleteProperty(){return ee("setupContext.attrs is readonly."),!1}}:{get(n,e){return ct(n,"get",""),n[e]}};function hd(n){return n.slotsProxy||(n.slotsProxy=new Proxy(n.slots,{get(e,t){return ct(n,"get","$slots"),e[t]}}))}function Jl(n){const e=t=>{if({}.NODE_ENV!=="production"&&(n.exposed&&ee("expose() should be called only once per setup()."),t!=null)){let s=typeof t;s==="object"&&(ve(t)?s="array":ut(t)&&(s="ref")),s!=="object"&&ee(`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,Ql))},get slots(){return hd(n)},get emit(){return(s,...r)=>n.emit(s,...r)},expose:e})}else return{attrs:new Proxy(n.attrs,Ql),slots:n.slots,emit:n.emit,expose:e}}function Mr(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(Ka(Th(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in Bn)return Bn[t](n)},has(e,t){return t in e||t in Bn}}))}const fd=/(?:^|[-_])(\w)/g,dd=n=>n.replace(fd,e=>e.toUpperCase()).replace(/[-_]/g,"");function uo(n,e=!0){return Ee(n)?n.displayName||n.name:n.name||e&&n.__name}function Ar(n,e,t=!1){let s=uo(e);if(!s&&e.__file){const r=e.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&n&&n.parent){const r=i=>{for(const o in i)if(i[o]===e)return o};s=r(n.components||n.parent.type.components)||r(n.appContext.components)}return s?dd(s):t?"App":"Anonymous"}function ec(n){return Ee(n)&&"__vccOpts"in n}const pd=(n,e)=>{const t=Oh(n,e,Dr);if({}.NODE_ENV!=="production"){const s=Ul();s&&s.appContext.config.warnRecursiveComputed&&(t._warnRecursive=!0)}return t};function It(n,e,t){const s=arguments.length;return s===2?je(e)&&!ve(e)?ts(e)?Oe(n,null,[e]):Oe(n,e):Oe(n,null,e):(s>3?t=Array.prototype.slice.call(arguments,2):s===3&&ts(t)&&(t=[t]),Oe(n,e,t))}function md(){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"},r={header(h){return je(h)?h.__isVue?["div",n,"VueInstance"]:ut(h)?["div",{},["span",n,u(h)],"<",a(h.value),">"]:Qn(h)?["div",{},["span",n,Ln(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${$n(h)?" (readonly)":""}`]:$n(h)?["div",{},["span",n,Ln(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...i(h.$)]}};function i(h){const f=[];h.type.props&&h.props&&f.push(o("props",Pe(h.props))),h.setupState!==ze&&f.push(o("setup",h.setupState)),h.data!==ze&&f.push(o("data",Pe(h.data)));const p=l(h,"computed");p&&f.push(o("computed",p));const g=l(h,"inject");return g&&f.push(o("injected",g)),f.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=Ue({},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(p=>["div",{},["span",s,p+": "],a(f[p],!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]:je(h)?["object",{object:f?Pe(h):h}]:["span",t,String(h)]}function l(h,f){const p=h.type;if(Ee(p))return;const g={};for(const y in h.ctx)c(p,y,f)&&(g[y]=h.ctx[y]);return g}function c(h,f,p){const g=h[p];if(ve(g)&&g.includes(f)||je(g)&&f in g||h.extends&&c(h.extends,f,p)||h.mixins&&h.mixins.some(y=>c(y,f,p)))return!0}function u(h){return Ln(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const tc="3.4.25",ho={}.NODE_ENV!=="production"?ee:Ze;/**
23
23
  * @vue/runtime-dom v3.4.25
24
24
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
25
25
  * @license MIT
26
- **/const sd="http://www.w3.org/2000/svg",id="http://www.w3.org/1998/Math/MathML",_n=typeof document<"u"?document:null,Gl=_n&&_n.createElement("template"),rd={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const i=e==="svg"?_n.createElementNS(sd,t):e==="mathml"?_n.createElementNS(id,t):_n.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:t=>_n.createTextNode(t),createComment:t=>_n.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>_n.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,i,r){const o=n?n.previousSibling:e.lastChild;if(i&&(i===r||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Gl.innerHTML=s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t;const a=Gl.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},od=Symbol("_vtc");function ad(t,e,n){const s=t[od];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const _i=Symbol("_vod"),zl=Symbol("_vsh"),vi={beforeMount(t,{value:e},{transition:n}){t[_i]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ys(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),ys(t,!0),s.enter(t)):s.leave(t,()=>{ys(t,!1)}):ys(t,e))},beforeUnmount(t,{value:e}){ys(t,e)}};({}).NODE_ENV!=="production"&&(vi.name="show");function ys(t,e){t.style.display=e?t[_i]:"none",t[zl]=!e}const ld=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),cd=/(^|;)\s*display\s*:/;function ud(t,e,n){const s=t.style,i=ze(n);let r=!1;if(n&&!i){if(e)if(ze(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&yi(s,a,"")}else for(const o in e)n[o]==null&&yi(s,o,"");for(const o in n)o==="display"&&(r=!0),yi(s,o,n[o])}else if(i){if(e!==n){const o=s[ld];o&&(n+=";"+o),s.cssText=n,r=cd.test(n)}}else e&&t.removeAttribute("style");_i in t&&(t[_i]=r?s.display:"",t[zl]&&(s.display="none"))}const hd=/[^\\];\s*$/,jl=/\s*!important$/;function yi(t,e,n){if(re(n))n.forEach(s=>yi(t,e,s));else if(n==null&&(n=""),{}.NODE_ENV!=="production"&&hd.test(n)&&Yr(`Unexpected semicolon at the end of '${e}' style value: '${n}'`),e.startsWith("--"))t.setProperty(e,n);else{const s=fd(t,e);jl.test(n)?t.setProperty(an(s),n.replace(jl,""),"important"):t[s]=n}}const Hl=["Webkit","Moz","ms"],Xr={};function fd(t,e){const n=Xr[e];if(n)return n;let s=Lt(e);if(s!=="filter"&&s in t)return Xr[e]=s;s=wn(s);for(let i=0;i<Hl.length;i++){const r=Hl[i]+s;if(r in t)return Xr[e]=r}return e}const Bl="http://www.w3.org/1999/xlink";function dd(t,e,n,s,i){if(s&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Bl,e.slice(6,e.length)):t.setAttributeNS(Bl,e,n);else{const r=Hu(e);n==null||r&&!la(n)?t.removeAttribute(e):t.setAttribute(e,r?"":n)}}function pd(t,e,n,s,i,r,o){if(e==="innerHTML"||e==="textContent"){s&&o(s,i,r),t[e]=n??"";return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?t.getAttribute("value")||"":t.value,u=n??"";(c!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(e),t._value=n;return}let l=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=la(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{t[e]=n}catch(c){({}).NODE_ENV!=="production"&&!l&&Yr(`Failed setting prop "${e}" on <${a.toLowerCase()}>: value ${n} is invalid.`,c)}l&&t.removeAttribute(e)}function md(t,e,n,s){t.addEventListener(e,n,s)}function gd(t,e,n,s){t.removeEventListener(e,n,s)}const Ul=Symbol("_vei");function _d(t,e,n,s,i=null){const r=t[Ul]||(t[Ul]={}),o=r[e];if(s&&o)o.value={}.NODE_ENV!=="production"?Yl(s,e):s;else{const[a,l]=vd(e);if(s){const c=r[e]=xd({}.NODE_ENV!=="production"?Yl(s,e):s,i);md(t,a,c,l)}else o&&(gd(t,a,o,l),r[e]=void 0)}}const Wl=/(?:Once|Passive|Capture)$/;function vd(t){let e;if(Wl.test(t)){e={};let s;for(;s=t.match(Wl);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):an(t.slice(2)),e]}let qr=0;const yd=Promise.resolve(),bd=()=>qr||(yd.then(()=>qr=0),qr=Date.now());function xd(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ot(wd(s,n.value),e,5,[s])};return n.value=t,n.attached=bd(),n}function Yl(t,e){return ae(t)||re(t)?t:(Yr(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
27
- Expected function or array of functions, received type ${typeof t}.`),Ge)}function wd(t,e){if(re(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const Xl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Ed=(t,e,n,s,i,r,o,a,l)=>{const c=i==="svg";e==="class"?ad(t,s,c):e==="style"?ud(t,n,s):Qn(e)?Gs(e)||_d(t,e,n,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Cd(t,e,s,c))?pd(t,e,s,r,o,a,l):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),dd(t,e,s,c))};function Cd(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&Xl(e)&&ae(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Xl(e)&&ze(n)?!1:e in t}const Td=Le({patchProp:Ed},rd);let ql;function Sd(){return ql||(ql=Lf(Td))}const bi=(...t)=>{Sd().render(...t)};/**
26
+ **/const gd="http://www.w3.org/2000/svg",vd="http://www.w3.org/1998/Math/MathML",Tn=typeof document<"u"?document:null,nc=Tn&&Tn.createElement("template"),yd={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 r=e==="svg"?Tn.createElementNS(gd,n):e==="mathml"?Tn.createElementNS(vd,n):Tn.createElement(n,t?{is:t}:void 0);return n==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:n=>Tn.createTextNode(n),createComment:n=>Tn.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Tn.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,s,r,i){const o=t?t.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),t),!(r===i||!(r=r.nextSibling)););else{nc.innerHTML=s==="svg"?`<svg>${n}</svg>`:s==="mathml"?`<math>${n}</math>`:n;const a=nc.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[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},_d=Symbol("_vtc");function bd(n,e,t){const s=n[_d];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const Rr=Symbol("_vod"),sc=Symbol("_vsh"),cn={beforeMount(n,{value:e},{transition:t}){n[Rr]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):As(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),As(n,!0),s.enter(n)):s.leave(n,()=>{As(n,!1)}):As(n,e))},beforeUnmount(n,{value:e}){As(n,e)}};({}).NODE_ENV!=="production"&&(cn.name="show");function As(n,e){n.style.display=e?n[Rr]:"none",n[sc]=!e}const xd=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),wd=/(^|;)\s*display\s*:/;function Ed(n,e,t){const s=n.style,r=Qe(t);let i=!1;if(t&&!r){if(e)if(Qe(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&$r(s,a,"")}else for(const o in e)t[o]==null&&$r(s,o,"");for(const o in t)o==="display"&&(i=!0),$r(s,o,t[o])}else if(r){if(e!==t){const o=s[xd];o&&(t+=";"+o),s.cssText=t,i=wd.test(t)}}else e&&n.removeAttribute("style");Rr in n&&(n[Rr]=i?s.display:"",n[sc]&&(s.display="none"))}const Sd=/[^\\];\s*$/,rc=/\s*!important$/;function $r(n,e,t){if(ve(t))t.forEach(s=>$r(n,e,s));else if(t==null&&(t=""),{}.NODE_ENV!=="production"&&Sd.test(t)&&ho(`Unexpected semicolon at the end of '${e}' style value: '${t}'`),e.startsWith("--"))n.setProperty(e,t);else{const s=Cd(n,e);rc.test(t)?n.setProperty(mn(s),t.replace(rc,""),"important"):n[s]=t}}const ic=["Webkit","Moz","ms"],fo={};function Cd(n,e){const t=fo[e];if(t)return t;let s=Xt(e);if(s!=="filter"&&s in n)return fo[e]=s;s=Dn(s);for(let r=0;r<ic.length;r++){const i=ic[r]+s;if(i in n)return fo[e]=i}return e}const oc="http://www.w3.org/1999/xlink";function Td(n,e,t,s,r){if(s&&e.startsWith("xlink:"))t==null?n.removeAttributeNS(oc,e.slice(6,e.length)):n.setAttributeNS(oc,e,t);else{const i=nh(e);t==null||i&&!Sa(t)?n.removeAttribute(e):n.setAttribute(e,i?"":t)}}function kd(n,e,t,s,r,i,o){if(e==="innerHTML"||e==="textContent"){s&&o(s,r,i),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=Sa(t):t==null&&c==="string"?(t="",l=!0):c==="number"&&(t=0,l=!0)}try{n[e]=t}catch(c){({}).NODE_ENV!=="production"&&!l&&ho(`Failed setting prop "${e}" on <${a.toLowerCase()}>: value ${t} is invalid.`,c)}l&&n.removeAttribute(e)}function Od(n,e,t,s){n.addEventListener(e,t,s)}function Pd(n,e,t,s){n.removeEventListener(e,t,s)}const ac=Symbol("_vei");function Id(n,e,t,s,r=null){const i=n[ac]||(n[ac]={}),o=i[e];if(s&&o)o.value={}.NODE_ENV!=="production"?cc(s,e):s;else{const[a,l]=Nd(e);if(s){const c=i[e]=Ad({}.NODE_ENV!=="production"?cc(s,e):s,r);Od(n,a,c,l)}else o&&(Pd(n,a,o,l),i[e]=void 0)}}const lc=/(?:Once|Passive|Capture)$/;function Nd(n){let e;if(lc.test(n)){e={};let s;for(;s=n.match(lc);)n=n.slice(0,n.length-s[0].length),e[s[0].toLowerCase()]=!0}return[n[2]===":"?n.slice(3):mn(n.slice(2)),e]}let po=0;const Dd=Promise.resolve(),Md=()=>po||(Dd.then(()=>po=0),po=Date.now());function Ad(n,e){const t=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=t.attached)return;jt(Rd(s,t.value),e,5,[s])};return t.value=n,t.attached=Md(),t}function cc(n,e){return Ee(n)||ve(n)?n:(ho(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
27
+ Expected function or array of functions, received type ${typeof n}.`),Ze)}function Rd(n,e){if(ve(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const uc=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,$d=(n,e,t,s,r,i,o,a,l)=>{const c=r==="svg";e==="class"?bd(n,s,c):e==="style"?Ed(n,t,s):ds(e)?rr(e)||Id(n,e,t,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Ld(n,e,s,c))?kd(n,e,s,i,o,a,l):(e==="true-value"?n._trueValue=s:e==="false-value"&&(n._falseValue=s),Td(n,e,s,c))};function Ld(n,e,t,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in n&&uc(e)&&Ee(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 r=n.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return uc(e)&&Qe(t)?!1:e in n}const Vd=Ue({patchProp:$d},yd);let hc;function Fd(){return hc||(hc=Kf(Vd))}const Lr=(...n)=>{Fd().render(...n)};/**
28
28
  * vue v3.4.25
29
29
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
30
30
  * @license MIT
31
- **/function kd(){nd()}({}).NODE_ENV!=="production"&&kd();const bs=/^[a-z0-9]+(-[a-z0-9]+)*$/,xi=(t,e,n,s="")=>{const i=t.split(":");if(t.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&&!wi(c)?null:c}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:s,prefix:o.shift(),name:o.join("-")};return e&&!wi(a)?null:a}if(n&&s===""){const a={provider:s,prefix:"",name:r};return e&&!wi(a,n)?null:a}return null},wi=(t,e)=>t?!!((t.provider===""||t.provider.match(bs))&&(e&&t.prefix===""||t.prefix.match(bs))&&t.name.match(bs)):!1,Kl=Object.freeze({left:0,top:0,width:16,height:16}),Ei=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ci=Object.freeze({...Kl,...Ei}),Kr=Object.freeze({...Ci,body:"",hidden:!1});function Pd(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function Zl(t,e){const n=Pd(t,e);for(const s in Kr)s in Ei?s in t&&!(s in n)&&(n[s]=Ei[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function Nd(t,e){const n=t.icons,s=t.aliases||Object.create(null),i=Object.create(null);function r(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=s[o]&&s[o].parent,l=a&&r(a);l&&(i[o]=[a].concat(l))}return i[o]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(r),i}function Od(t,e,n){const s=t.icons,i=t.aliases||Object.create(null);let r={};function o(a){r=Zl(s[a]||i[a],r)}return o(e),n.forEach(o),Zl(t,r)}function Ql(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(i=>{e(i,null),n.push(i)});const s=Nd(t);for(const i in s){const r=s[i];r&&(e(i,Od(t,i,r)),n.push(i))}return n}const Id={provider:"",aliases:{},not_found:{},...Kl};function Zr(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Jl(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!Zr(t,Id))return null;const n=e.icons;for(const i in n){const r=n[i];if(!i.match(bs)||typeof r.body!="string"||!Zr(r,Kr))return null}const s=e.aliases||Object.create(null);for(const i in s){const r=s[i],o=r.parent;if(!i.match(bs)||typeof o!="string"||!n[o]&&!s[o]||!Zr(r,Kr))return null}return e}const ec=Object.create(null);function Md(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function Rn(t,e){const n=ec[t]||(ec[t]=Object.create(null));return n[e]||(n[e]=Md(t,e))}function Qr(t,e){return Jl(e)?Ql(e,(n,s)=>{s?t.icons[n]=s:t.missing.add(n)}):[]}function Dd(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}let xs=!1;function tc(t){return typeof t=="boolean"&&(xs=t),xs}function Ad(t){const e=typeof t=="string"?xi(t,!0,xs):t;if(e){const n=Rn(e.provider,e.prefix),s=e.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function Rd(t,e){const n=xi(t,!0,xs);if(!n)return!1;const s=Rn(n.provider,n.prefix);return Dd(s,n.name,e)}function $d(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),xs&&!e&&!t.prefix){let i=!1;return Jl(t)&&(t.prefix="",Ql(t,(r,o)=>{o&&Rd(r,o)&&(i=!0)})),i}const n=t.prefix;if(!wi({provider:e,prefix:n,name:"a"}))return!1;const s=Rn(e,n);return!!Qr(s,t)}const nc=Object.freeze({width:null,height:null}),sc=Object.freeze({...nc,...Ei}),Ld=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Fd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ic(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(Ld);if(s===null||!s.length)return t;const i=[];let r=s.shift(),o=Fd.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*e*n)/n)}else i.push(r);if(r=s.shift(),r===void 0)return i.join("");o=!o}}function Vd(t,e="defs"){let n="";const s=t.indexOf("<"+e);for(;s>=0;){const i=t.indexOf(">",s),r=t.indexOf("</"+e);if(i===-1||r===-1)break;const o=t.indexOf(">",r);if(o===-1)break;n+=t.slice(i+1,r).trim(),t=t.slice(0,s).trim()+t.slice(o+1)}return{defs:n,content:t}}function Gd(t,e){return t?"<defs>"+t+"</defs>"+e:e}function zd(t,e,n){const s=Vd(t);return Gd(s.defs,e+s.content+n)}const jd=t=>t==="unset"||t==="undefined"||t==="none";function Hd(t,e){const n={...Ci,...t},s={...sc,...e},i={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(v=>{const y=[],E=v.hFlip,C=v.vFlip;let w=v.rotate;E?C?w+=2:(y.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),y.push("scale(-1 1)"),i.top=i.left=0):C&&(y.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),y.push("scale(1 -1)"),i.top=i.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=i.height/2+i.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),y.length&&(r=zd(r,'<g transform="'+y.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,l=i.width,c=i.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=ic(h,l/c)):(u=o==="auto"?l:o,h=a===null?ic(u,c/l):a==="auto"?c:a);const f={},d=(v,y)=>{jd(y)||(f[v]=y.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:r}}const Bd=/\sid="(\S+)"/g,Ud="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Wd=0;function Yd(t,e=Ud){const n=[];let s;for(;s=Bd.exec(t);)n.push(s[1]);if(!n.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const o=typeof e=="function"?e(r):e+(Wd++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}const Jr=Object.create(null);function Xd(t,e){Jr[t]=e}function eo(t){return Jr[t]||Jr[""]}function to(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const no=Object.create(null),ws=["https://api.simplesvg.com","https://api.unisvg.com"],Ti=[];for(;ws.length>0;)ws.length===1||Math.random()>.5?Ti.push(ws.shift()):Ti.push(ws.pop());no[""]=to({resources:["https://api.iconify.design"].concat(Ti)});function qd(t,e){const n=to(e);return n===null?!1:(no[t]=n,!0)}function so(t){return no[t]}let rc=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Kd(t,e){const n=so(t);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const r=e+".json?icons=";s=n.maxURL-i-n.path.length-r.length}return s}function Zd(t){return t===404}const Qd=(t,e,n)=>{const s=[],i=Kd(t,e),r="icons";let o={type:r,provider:t,prefix:e,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(s.push(o),o={type:r,provider:t,prefix:e,icons:[]},a=l.length),o.icons.push(l)}),s.push(o),s};function Jd(t){if(typeof t=="string"){const e=so(t);if(e)return e.path}return"/"}const ep={prepare:Qd,send:(t,e,n)=>{if(!rc){n("abort",424);return}let s=Jd(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});s+=r+".json?"+l.toString();break}case"custom":{const r=e.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let i=503;rc(t+s).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{n(Zd(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",i)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",i)})}};function tp(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((i,r)=>i.provider!==r.provider?i.provider.localeCompare(r.provider):i.prefix!==r.prefix?i.prefix.localeCompare(r.prefix):i.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return t.forEach(i=>{if(s.name===i.name&&s.prefix===i.prefix&&s.provider===i.provider)return;s=i;const r=i.provider,o=i.prefix,a=i.name,l=n[r]||(n[r]=Object.create(null)),c=l[o]||(l[o]=Rn(r,o));let u;a in c.icons?u=e.loaded:o===""||c.missing.has(a)?u=e.missing:u=e.pending;const h={provider:r,prefix:o,name:a};u.push(h)}),e}function oc(t,e){t.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(i=>i.id!==e))})}function np(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const s=t.provider,i=t.prefix;e.forEach(r=>{const o=r.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(t.icons[c])o.loaded.push({provider:s,prefix:i,name:c});else if(t.missing.has(c))o.missing.push({provider:s,prefix:i,name:c});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||oc([t],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let sp=0;function ip(t,e,n){const s=sp++,i=oc.bind(null,n,s);if(!e.pending.length)return i;const r={id:s,icons:e,callback:t,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function rp(t,e=!0,n=!1){const s=[];return t.forEach(i=>{const r=typeof i=="string"?xi(i,e,n):i;r&&s.push(r)}),s}var op={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ap(t,e,n,s){const i=t.resources.length,r=t.random?Math.floor(Math.random()*i):t.index;let o;if(t.random){let O=t.resources.slice(0);for(o=[];O.length>1;){const R=Math.floor(Math.random()*O.length);o.push(O[R]),O=O.slice(0,R).concat(O.slice(R+1))}o=o.concat(O)}else o=t.resources.slice(r).concat(t.resources.slice(0,r));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(O=>{O.status==="pending"&&(O.status="aborted")}),f=[]}function y(O,R){R&&(d=[]),typeof O=="function"&&d.push(O)}function E(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:f.length,subscribe:y,abort:v}}function C(){l="failed",d.forEach(O=>{O(void 0,u)})}function w(){f.forEach(O=>{O.status==="pending"&&(O.status="aborted")}),f=[]}function S(O,R,le){const ue=R!=="success";switch(f=f.filter(pe=>pe!==O),l){case"pending":break;case"failed":if(ue||!t.dataAfterTimeout)return;break;default:return}if(R==="abort"){u=le,C();return}if(ue){u=le,f.length||(o.length?$():C());return}if(m(),w(),!t.random){const pe=t.resources.indexOf(O.resource);pe!==-1&&pe!==t.index&&(t.index=pe)}l="completed",d.forEach(pe=>{pe(le)})}function $(){if(l!=="pending")return;m();const O=o.shift();if(O===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&(w(),C())},t.timeout);return}C();return}const R={status:"pending",resource:O,callback:(le,ue)=>{S(R,le,ue)}};f.push(R),c++,h=setTimeout($,t.rotate),n(O,e,R.callback)}return setTimeout($),E}function ac(t){const e={...op,...t};let n=[];function s(){n=n.filter(a=>a().status==="pending")}function i(a,l,c){const u=ap(e,a,l,(h,f)=>{s(),c&&c(h,f)});return n.push(u),u}function r(a){return n.find(l=>a(l))||null}return{query:i,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function lc(){}const io=Object.create(null);function lp(t){if(!io[t]){const e=so(t);if(!e)return;const n=ac(e),s={config:e,redundancy:n};io[t]=s}return io[t]}function cp(t,e,n){let s,i;if(typeof t=="string"){const r=eo(t);if(!r)return n(void 0,424),lc;i=r.send;const o=lp(t);o&&(s=o.redundancy)}else{const r=to(t);if(r){s=ac(r);const o=t.resources?t.resources[0]:"",a=eo(o);a&&(i=a.send)}}return!s||!i?(n(void 0,424),lc):s.query(e,i,n)().abort}const cc="iconify2",Es="iconify",uc=Es+"-count",hc=Es+"-version",fc=36e5,up=168,hp=50;function ro(t,e){try{return t.getItem(e)}catch{}}function oo(t,e,n){try{return t.setItem(e,n),!0}catch{}}function dc(t,e){try{t.removeItem(e)}catch{}}function ao(t,e){return oo(t,uc,e.toString())}function lo(t){return parseInt(ro(t,uc))||0}const Si={local:!0,session:!0},pc={local:new Set,session:new Set};let co=!1;function fp(t){co=t}let ki=typeof window>"u"?{}:window;function mc(t){const e=t+"Storage";try{if(ki&&ki[e]&&typeof ki[e].length=="number")return ki[e]}catch{}Si[t]=!1}function gc(t,e){const n=mc(t);if(!n)return;const s=ro(n,hc);if(s!==cc){if(s){const a=lo(n);for(let l=0;l<a;l++)dc(n,Es+l.toString())}oo(n,hc,cc),ao(n,0);return}const i=Math.floor(Date.now()/fc)-up,r=a=>{const l=Es+a.toString(),c=ro(n,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{}dc(n,l)}};let o=lo(n);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,ao(n,o)):pc[t].add(a))}function _c(){if(!co){fp(!0);for(const t in Si)gc(t,e=>{const n=e.data,s=e.provider,i=n.prefix,r=Rn(s,i);if(!Qr(r,n).length)return!1;const o=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function dp(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const s in Si)gc(s,i=>{const r=i.data;return i.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===e});return!0}function pp(t,e){co||_c();function n(s){let i;if(!Si[s]||!(i=mc(s)))return;const r=pc[s];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=lo(i),o>=hp||!ao(i,o+1))return;const a={cached:Math.floor(Date.now()/fc),provider:t.provider,data:e};return oo(i,Es+o.toString(),JSON.stringify(a))}e.lastModified&&!dp(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function vc(){}function mp(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,np(t)}))}function gp(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:s}=t,i=t.iconsToLoad;delete t.iconsToLoad;let r;if(!i||!(r=eo(n)))return;r.prepare(n,s,i).forEach(a=>{cp(n,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{t.missing.add(c)});else try{const c=Qr(t,l);if(!c.length)return;const u=t.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),pp(t,l)}catch(c){console.error(c)}mp(t)})})}))}const _p=(t,e)=>{const n=rp(t,!0,tc()),s=tp(n);if(!s.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(s.loaded,s.missing,s.pending,vc)}),()=>{l=!1}}const i=Object.create(null),r=[];let o,a;return s.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,r.push(Rn(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=Rn(c,u),d=f.pendingIcons||(f.pendingIcons=new Set);d.has(h)||(d.add(h),i[c][u].push(h))}),r.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&gp(l,i[c][u])}),e?ip(e,s,r):vc};function vp(t,e){const n={...t};for(const s in e){const i=e[s],r=typeof i;s in nc?(i===null||i&&(r==="string"||r==="number"))&&(n[s]=i):r===typeof n[s]&&(n[s]=s==="rotate"?i%4:i)}return n}const yp=/[\s,]+/;function bp(t,e){e.split(yp).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function xp(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(t);return isNaN(i)?0:s(i)}else if(n!==t){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/i,r%1===0?s(r):0)}}return e}function wp(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)n+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Ep(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Cp(t){return"data:image/svg+xml,"+Ep(t)}function Tp(t){return'url("'+Cp(t)+'")'}const yc={...sc,inline:!1},Sp={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},kp={display:"inline-block"},uo={backgroundColor:"currentColor"},bc={backgroundColor:"transparent"},xc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},wc={webkitMask:uo,mask:uo,background:bc};for(const t in wc){const e=wc[t];for(const n in xc)e[t+n]=xc[n]}const Pi={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";Pi[t+"-flip"]=e,Pi[t.slice(0,1)+"-flip"]=e,Pi[t+"Flip"]=e});function Ec(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Cc=(t,e)=>{const n=vp(yc,e),s={...Sp},i=e.mode||"svg",r={},o=e.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in e){const y=e[v];if(y!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&bp(n,y);break;case"color":r.color=y;break;case"rotate":typeof y=="string"?n[v]=xp(y):typeof y=="number"&&(n[v]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete s["aria-hidden"];break;default:{const E=Pi[v];E?(y===!0||y==="true"||y===1)&&(n[E]=!0):yc[v]===void 0&&(s[v]=y)}}}const l=Hd(t,n),c=l.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),i==="svg"){s.style={...r,...a},Object.assign(s,c);let v=0,y=e.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),s.innerHTML=Yd(l.body,y?()=>y+"ID"+v++:"iconifyVue"),xt("svg",s)}const{body:u,width:h,height:f}=t,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=wp(u,{...c,width:h+"",height:f+""});return s.style={...r,"--svg":Tp(m),width:Ec(c.width),height:Ec(c.height),...kp,...d?uo:bc,...a},xt("span",s)};if(tc(!0),Xd("",ep),typeof document<"u"&&typeof window<"u"){_c();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="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"||!$d(s))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const s="IconifyProviders["+n+"] is invalid.";try{const i=e[n];if(typeof i!="object"||!i||i.resources===void 0)continue;qd(n,i)||console.error(s)}catch{console.error(s)}}}}const Pp={...Ci,body:""},Np=J({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(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=xi(t,!1,!0))===null)return this.abortLoading(),null;const s=Ad(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:t,abort:_p([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const i=["iconify"];return n.prefix!==""&&i.push("iconify--"+n.prefix),n.provider!==""&&i.push("iconify--"+n.provider),{data:s,classes:i}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!e)return Cc(Pp,t);let n=t;return e.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),Cc({...Ci,...e.data},n)}}),Tc=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const ho=t=>{let e=null;switch(t){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
+ **/function Gd(){md()}({}).NODE_ENV!=="production"&&Gd();const Rs=/^[a-z0-9]+(-[a-z0-9]+)*$/,Vr=(n,e,t,s="")=>{const r=n.split(":");if(n.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:s,prefix:l,name:a};return e&&!Fr(c)?null:c}const i=r[0],o=i.split("-");if(o.length>1){const a={provider:s,prefix:o.shift(),name:o.join("-")};return e&&!Fr(a)?null:a}if(t&&s===""){const a={provider:s,prefix:"",name:i};return e&&!Fr(a,t)?null:a}return null},Fr=(n,e)=>n?!!((n.provider===""||n.provider.match(Rs))&&(e&&n.prefix===""||n.prefix.match(Rs))&&n.name.match(Rs)):!1,fc=Object.freeze({left:0,top:0,width:16,height:16}),Gr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),jr=Object.freeze({...fc,...Gr}),mo=Object.freeze({...jr,body:"",hidden:!1});function jd(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 dc(n,e){const t=jd(n,e);for(const s in mo)s in Gr?s in n&&!(s in t)&&(t[s]=Gr[s]):s in e?t[s]=e[s]:s in n&&(t[s]=n[s]);return t}function zd(n,e){const t=n.icons,s=n.aliases||Object.create(null),r=Object.create(null);function i(o){if(t[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=s[o]&&s[o].parent,l=a&&i(a);l&&(r[o]=[a].concat(l))}return r[o]}return(e||Object.keys(t).concat(Object.keys(s))).forEach(i),r}function Bd(n,e,t){const s=n.icons,r=n.aliases||Object.create(null);let i={};function o(a){i=dc(s[a]||r[a],i)}return o(e),t.forEach(o),dc(n,i)}function pc(n,e){const t=[];if(typeof n!="object"||typeof n.icons!="object")return t;n.not_found instanceof Array&&n.not_found.forEach(r=>{e(r,null),t.push(r)});const s=zd(n);for(const r in s){const i=s[r];i&&(e(r,Bd(n,r,i)),t.push(r))}return t}const Hd={provider:"",aliases:{},not_found:{},...fc};function go(n,e){for(const t in e)if(t in n&&typeof n[t]!=typeof e[t])return!1;return!0}function mc(n){if(typeof n!="object"||n===null)return null;const e=n;if(typeof e.prefix!="string"||!n.icons||typeof n.icons!="object"||!go(n,Hd))return null;const t=e.icons;for(const r in t){const i=t[r];if(!r.match(Rs)||typeof i.body!="string"||!go(i,mo))return null}const s=e.aliases||Object.create(null);for(const r in s){const i=s[r],o=i.parent;if(!r.match(Rs)||typeof o!="string"||!t[o]&&!s[o]||!go(i,mo))return null}return e}const gc=Object.create(null);function Yd(n,e){return{provider:n,prefix:e,icons:Object.create(null),missing:new Set}}function Yn(n,e){const t=gc[n]||(gc[n]=Object.create(null));return t[e]||(t[e]=Yd(n,e))}function vo(n,e){return mc(e)?pc(e,(t,s)=>{s?n.icons[t]=s:n.missing.add(t)}):[]}function Xd(n,e,t){try{if(typeof t.body=="string")return n.icons[e]={...t},!0}catch{}return!1}let $s=!1;function vc(n){return typeof n=="boolean"&&($s=n),$s}function Ud(n){const e=typeof n=="string"?Vr(n,!0,$s):n;if(e){const t=Yn(e.provider,e.prefix),s=e.name;return t.icons[s]||(t.missing.has(s)?null:void 0)}}function Wd(n,e){const t=Vr(n,!0,$s);if(!t)return!1;const s=Yn(t.provider,t.prefix);return Xd(s,t.name,e)}function qd(n,e){if(typeof n!="object")return!1;if(typeof e!="string"&&(e=n.provider||""),$s&&!e&&!n.prefix){let r=!1;return mc(n)&&(n.prefix="",pc(n,(i,o)=>{o&&Wd(i,o)&&(r=!0)})),r}const t=n.prefix;if(!Fr({provider:e,prefix:t,name:"a"}))return!1;const s=Yn(e,t);return!!vo(s,n)}const yc=Object.freeze({width:null,height:null}),_c=Object.freeze({...yc,...Gr}),Kd=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zd=/^-?[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(Kd);if(s===null||!s.length)return n;const r=[];let i=s.shift(),o=Zd.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*e*t)/t)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function Qd(n,e="defs"){let t="";const s=n.indexOf("<"+e);for(;s>=0;){const r=n.indexOf(">",s),i=n.indexOf("</"+e);if(r===-1||i===-1)break;const o=n.indexOf(">",i);if(o===-1)break;t+=n.slice(r+1,i).trim(),n=n.slice(0,s).trim()+n.slice(o+1)}return{defs:t,content:n}}function Jd(n,e){return n?"<defs>"+n+"</defs>"+e:e}function ep(n,e,t){const s=Qd(n);return Jd(s.defs,e+s.content+t)}const tp=n=>n==="unset"||n==="undefined"||n==="none";function np(n,e){const t={...jr,...n},s={..._c,...e},r={left:t.left,top:t.top,width:t.width,height:t.height};let i=t.body;[t,s].forEach(y=>{const b=[],O=y.hFlip,D=y.vFlip;let I=y.rotate;O?D?I+=2:(b.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),b.push("scale(-1 1)"),r.top=r.left=0):D&&(b.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),b.push("scale(1 -1)"),r.top=r.left=0);let L;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:L=r.height/2+r.top,b.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:b.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:L=r.width/2+r.left,b.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}I%2===1&&(r.left!==r.top&&(L=r.left,r.left=r.top,r.top=L),r.width!==r.height&&(L=r.width,r.width=r.height,r.height=L)),b.length&&(i=ep(i,'<g transform="'+b.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,l=r.width,c=r.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=bc(h,l/c)):(u=o==="auto"?l:o,h=a===null?bc(u,c/l):a==="auto"?c:a);const f={},p=(y,b)=>{tp(b)||(f[y]=b.toString())};p("width",u),p("height",h);const g=[r.left,r.top,l,c];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:i}}const sp=/\sid="(\S+)"/g,rp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ip=0;function op(n,e=rp){const t=[];let s;for(;s=sp.exec(n);)t.push(s[1]);if(!t.length)return n;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(i=>{const o=typeof e=="function"?e(i):e+(ip++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")}),n=n.replace(new RegExp(r,"g"),""),n}const yo=Object.create(null);function ap(n,e){yo[n]=e}function _o(n){return yo[n]||yo[""]}function bo(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 xo=Object.create(null),Ls=["https://api.simplesvg.com","https://api.unisvg.com"],zr=[];for(;Ls.length>0;)Ls.length===1||Math.random()>.5?zr.push(Ls.shift()):zr.push(Ls.pop());xo[""]=bo({resources:["https://api.iconify.design"].concat(zr)});function lp(n,e){const t=bo(e);return t===null?!1:(xo[n]=t,!0)}function wo(n){return xo[n]}let xc=(()=>{let n;try{if(n=fetch,typeof n=="function")return n}catch{}})();function cp(n,e){const t=wo(n);if(!t)return 0;let s;if(!t.maxURL)s=0;else{let r=0;t.resources.forEach(o=>{r=Math.max(r,o.length)});const i=e+".json?icons=";s=t.maxURL-r-t.path.length-i.length}return s}function up(n){return n===404}const hp=(n,e,t)=>{const s=[],r=cp(n,e),i="icons";let o={type:i,provider:n,prefix:e,icons:[]},a=0;return t.forEach((l,c)=>{a+=l.length+1,a>=r&&c>0&&(s.push(o),o={type:i,provider:n,prefix:e,icons:[]},a=l.length),o.icons.push(l)}),s.push(o),s};function fp(n){if(typeof n=="string"){const e=wo(n);if(e)return e.path}return"/"}const dp={prepare:hp,send:(n,e,t)=>{if(!xc){t("abort",424);return}let s=fp(e.provider);switch(e.type){case"icons":{const i=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});s+=i+".json?"+l.toString();break}case"custom":{const i=e.uri;s+=i.slice(0,1)==="/"?i.slice(1):i;break}default:t("abort",400);return}let r=503;xc(n+s).then(i=>{const o=i.status;if(o!==200){setTimeout(()=>{t(up(o)?"abort":"next",o)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?t("abort",i):t("next",r)});return}setTimeout(()=>{t("success",i)})}).catch(()=>{t("next",r)})}};function pp(n){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);n.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let s={provider:"",prefix:"",name:""};return n.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const i=r.provider,o=r.prefix,a=r.name,l=t[i]||(t[i]=Object.create(null)),c=l[o]||(l[o]=Yn(i,o));let u;a in c.icons?u=e.loaded:o===""||c.missing.has(a)?u=e.missing:u=e.pending;const h={provider:i,prefix:o,name:a};u.push(h)}),e}function wc(n,e){n.forEach(t=>{const s=t.loaderCallbacks;s&&(t.loaderCallbacks=s.filter(r=>r.id!==e))})}function mp(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,r=n.prefix;e.forEach(i=>{const o=i.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(n.icons[c])o.loaded.push({provider:s,prefix:r,name:c});else if(n.missing.has(c))o.missing.push({provider:s,prefix:r,name:c});else return t=!0,!0;return!1}),o.pending.length!==a&&(t||wc([n],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}let gp=0;function vp(n,e,t){const s=gp++,r=wc.bind(null,t,s);if(!e.pending.length)return r;const i={id:s,icons:e,callback:n,abort:r};return t.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),r}function yp(n,e=!0,t=!1){const s=[];return n.forEach(r=>{const i=typeof r=="string"?Vr(r,e,t):r;i&&s.push(i)}),s}var _p={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function bp(n,e,t,s){const r=n.resources.length,i=n.random?Math.floor(Math.random()*r):n.index;let o;if(n.random){let V=n.resources.slice(0);for(o=[];V.length>1;){const U=Math.floor(Math.random()*V.length);o.push(V[U]),V=V.slice(0,U).concat(V.slice(U+1))}o=o.concat(V)}else o=n.resources.slice(i).concat(n.resources.slice(0,i));const a=Date.now();let l="pending",c=0,u,h=null,f=[],p=[];typeof s=="function"&&p.push(s);function g(){h&&(clearTimeout(h),h=null)}function y(){l==="pending"&&(l="aborted"),g(),f.forEach(V=>{V.status==="pending"&&(V.status="aborted")}),f=[]}function b(V,U){U&&(p=[]),typeof V=="function"&&p.push(V)}function O(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:f.length,subscribe:b,abort:y}}function D(){l="failed",p.forEach(V=>{V(void 0,u)})}function I(){f.forEach(V=>{V.status==="pending"&&(V.status="aborted")}),f=[]}function L(V,U,be){const xe=U!=="success";switch(f=f.filter(Te=>Te!==V),l){case"pending":break;case"failed":if(xe||!n.dataAfterTimeout)return;break;default:return}if(U==="abort"){u=be,D();return}if(xe){u=be,f.length||(o.length?se():D());return}if(g(),I(),!n.random){const Te=n.resources.indexOf(V.resource);Te!==-1&&Te!==n.index&&(n.index=Te)}l="completed",p.forEach(Te=>{Te(be)})}function se(){if(l!=="pending")return;g();const V=o.shift();if(V===void 0){if(f.length){h=setTimeout(()=>{g(),l==="pending"&&(I(),D())},n.timeout);return}D();return}const U={status:"pending",resource:V,callback:(be,xe)=>{L(U,be,xe)}};f.push(U),c++,h=setTimeout(se,n.rotate),t(V,e,U.callback)}return setTimeout(se),O}function Ec(n){const e={..._p,...n};let t=[];function s(){t=t.filter(a=>a().status==="pending")}function r(a,l,c){const u=bp(e,a,l,(h,f)=>{s(),c&&c(h,f)});return t.push(u),u}function i(a){return t.find(l=>a(l))||null}return{query:r,find:i,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function Sc(){}const Eo=Object.create(null);function xp(n){if(!Eo[n]){const e=wo(n);if(!e)return;const t=Ec(e),s={config:e,redundancy:t};Eo[n]=s}return Eo[n]}function wp(n,e,t){let s,r;if(typeof n=="string"){const i=_o(n);if(!i)return t(void 0,424),Sc;r=i.send;const o=xp(n);o&&(s=o.redundancy)}else{const i=bo(n);if(i){s=Ec(i);const o=n.resources?n.resources[0]:"",a=_o(o);a&&(r=a.send)}}return!s||!r?(t(void 0,424),Sc):s.query(e,r,t)().abort}const Cc="iconify2",Vs="iconify",Tc=Vs+"-count",kc=Vs+"-version",Oc=36e5,Ep=168,Sp=50;function So(n,e){try{return n.getItem(e)}catch{}}function Co(n,e,t){try{return n.setItem(e,t),!0}catch{}}function Pc(n,e){try{n.removeItem(e)}catch{}}function To(n,e){return Co(n,Tc,e.toString())}function ko(n){return parseInt(So(n,Tc))||0}const Br={local:!0,session:!0},Ic={local:new Set,session:new Set};let Oo=!1;function Cp(n){Oo=n}let Hr=typeof window>"u"?{}:window;function Nc(n){const e=n+"Storage";try{if(Hr&&Hr[e]&&typeof Hr[e].length=="number")return Hr[e]}catch{}Br[n]=!1}function Dc(n,e){const t=Nc(n);if(!t)return;const s=So(t,kc);if(s!==Cc){if(s){const a=ko(t);for(let l=0;l<a;l++)Pc(t,Vs+l.toString())}Co(t,kc,Cc),To(t,0);return}const r=Math.floor(Date.now()/Oc)-Ep,i=a=>{const l=Vs+a.toString(),c=So(t,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}Pc(t,l)}};let o=ko(t);for(let a=o-1;a>=0;a--)i(a)||(a===o-1?(o--,To(t,o)):Ic[n].add(a))}function Mc(){if(!Oo){Cp(!0);for(const n in Br)Dc(n,e=>{const t=e.data,s=e.provider,r=t.prefix,i=Yn(s,r);if(!vo(i,t).length)return!1;const o=t.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,o):o,!0})}}function Tp(n,e){const t=n.lastModifiedCached;if(t&&t>=e)return t===e;if(n.lastModifiedCached=e,t)for(const s in Br)Dc(s,r=>{const i=r.data;return r.provider!==n.provider||i.prefix!==n.prefix||i.lastModified===e});return!0}function kp(n,e){Oo||Mc();function t(s){let r;if(!Br[s]||!(r=Nc(s)))return;const i=Ic[s];let o;if(i.size)i.delete(o=Array.from(i).shift());else if(o=ko(r),o>=Sp||!To(r,o+1))return;const a={cached:Math.floor(Date.now()/Oc),provider:n.provider,data:e};return Co(r,Vs+o.toString(),JSON.stringify(a))}e.lastModified&&!Tp(n,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Ac(){}function Op(n){n.iconsLoaderFlag||(n.iconsLoaderFlag=!0,setTimeout(()=>{n.iconsLoaderFlag=!1,mp(n)}))}function Pp(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,r=n.iconsToLoad;delete n.iconsToLoad;let i;if(!r||!(i=_o(t)))return;i.prepare(t,s,r).forEach(a=>{wp(t,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{n.missing.add(c)});else try{const c=vo(n,l);if(!c.length)return;const u=n.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),kp(n,l)}catch(c){console.error(c)}Op(n)})})}))}const Ip=(n,e)=>{const t=yp(n,!0,vc()),s=pp(t);if(!s.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(s.loaded,s.missing,s.pending,Ac)}),()=>{l=!1}}const r=Object.create(null),i=[];let o,a;return s.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,i.push(Yn(c,u));const h=r[c]||(r[c]=Object.create(null));h[u]||(h[u]=[])}),s.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=Yn(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(h)||(p.add(h),r[c][u].push(h))}),i.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&Pp(l,r[c][u])}),e?vp(e,s,i):Ac};function Np(n,e){const t={...n};for(const s in e){const r=e[s],i=typeof r;s in yc?(r===null||r&&(i==="string"||i==="number"))&&(t[s]=r):i===typeof t[s]&&(t[s]=s==="rotate"?r%4:r)}return t}const Dp=/[\s,]+/;function Mp(n,e){e.split(Dp).forEach(t=>{switch(t.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0;break}})}function Ap(n,e=0){const t=n.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(t===""){const r=parseInt(n);return isNaN(r)?0:s(r)}else if(t!==n){let r=0;switch(t){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(n.slice(0,n.length-t.length));return isNaN(i)?0:(i=i/r,i%1===0?s(i):0)}}return e}function Rp(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 $p(n){return n.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Lp(n){return"data:image/svg+xml,"+$p(n)}function Vp(n){return'url("'+Lp(n)+'")'}const Rc={..._c,inline:!1},Fp={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Gp={display:"inline-block"},Po={backgroundColor:"currentColor"},$c={backgroundColor:"transparent"},Lc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Vc={webkitMask:Po,mask:Po,background:$c};for(const n in Vc){const e=Vc[n];for(const t in Lc)e[n+t]=Lc[t]}const Yr={};["horizontal","vertical"].forEach(n=>{const e=n.slice(0,1)+"Flip";Yr[n+"-flip"]=e,Yr[n.slice(0,1)+"-flip"]=e,Yr[n+"Flip"]=e});function Fc(n){return n+(n.match(/^[-0-9.]+$/)?"px":"")}const Gc=(n,e)=>{const t=Np(Rc,e),s={...Fp},r=e.mode||"svg",i={},o=e.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let y in e){const b=e[y];if(b!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":t[y]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&Mp(t,b);break;case"color":i.color=b;break;case"rotate":typeof b=="string"?t[y]=Ap(b):typeof b=="number"&&(t[y]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete s["aria-hidden"];break;default:{const O=Yr[y];O?(b===!0||b==="true"||b===1)&&(t[O]=!0):Rc[y]===void 0&&(s[y]=b)}}}const l=np(n,t),c=l.attributes;if(t.inline&&(i.verticalAlign="-0.125em"),r==="svg"){s.style={...i,...a},Object.assign(s,c);let y=0,b=e.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),s.innerHTML=op(l.body,b?()=>b+"ID"+y++:"iconifyVue"),It("svg",s)}const{body:u,width:h,height:f}=n,p=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=Rp(u,{...c,width:h+"",height:f+""});return s.style={...i,"--svg":Vp(g),width:Fc(c.width),height:Fc(c.height),...Gp,...p?Po:$c,...a},It("span",s)};if(vc(!0),ap("",dp),typeof document<"u"&&typeof window<"u"){Mc();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"||!qd(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 r=e[t];if(typeof r!="object"||!r||r.resources===void 0)continue;lp(t,r)||console.error(s)}catch{console.error(s)}}}}const jp={...jr,body:""},zp=pe({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=Vr(n,!1,!0))===null)return this.abortLoading(),null;const s=Ud(t);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==n)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:n,abort:Ip([t],()=>{this.counter++})})),null;this.abortLoading(),this._name!==n&&(this._name=n,e&&e(n));const r=["iconify"];return t.prefix!==""&&r.push("iconify--"+t.prefix),t.provider!==""&&r.push("iconify--"+t.provider),{data:s,classes:r}}},render(){this.counter;const n=this.$attrs,e=this.iconMounted||n.ssr?this.getIcon(n.icon,n.onLoad):null;if(!e)return Gc(jp,n);let t=n;return e.classes&&(t={...n,class:(typeof n.class=="string"?n.class+" ":"")+e.classes.join(" ")}),Gc({...jr,...e.data},t)}});typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function jc(n){this.message=n}jc.prototype=new Error,jc.prototype.name="InvalidCharacterError";const Io=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`
32
32
  [\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
33
33
  |[\u{4E00}-\u{9FCC}]
34
34
  |[\u{3400}-\u{4DB5}]
@@ -37,41 +37,42 @@ Expected function or array of functions, received type ${typeof t}.`),Ge)}functi
37
37
  |[\u{2B740}-\u{2B81D}]
38
38
  |[\u{2B820}-\u{2CEAF}]
39
39
  |[\u{2CEB0}-\u{2EBEF}]
40
- `.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},Jt=(t,e)=>(typeof t=="string"&&(t=ho(t)||new RegExp(t)),t.test(e)),Sc=(t,e)=>{typeof t=="string"&&(t=ho(t)||new RegExp(t));const n=e.match(t);return n?t.flags.toLowerCase().indexOf("g")>=0?n.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof n.index=="number"?n.index:-1,fullMatch:n[0],groupMatchs:n.slice(1)}:null},kc=(t,e)=>{typeof t=="string"&&(t=ho(t)||new RegExp(t));const n=[],s=e.matchAll(t);for(const i of s)n.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return n};function Op(t){const e=t.match(/[\s\S]/gu);return e?e.length:0}function Pc(t,e){const n=t.codePointAt(e);return n?String.fromCodePoint(n):void 0}function Ip(){let t=new Date().getTime();return"xxxxxxxx_xxxx_xxxx_yxxx_xxxxxxxxxxxx".replace(/[xy]/g,function(n){const s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n=="x"?s:s&3|8).toString(16)})}function Mp(t){return t.replace(/(^\w)/g,function(e){return e.toLowerCase()})}const Dp=(t,e="-")=>(t=t.replace(/([A-Z])/g,e+"$1").toLowerCase(),t.indexOf(e)==0?t.slice(1):t);function fo(t){return t.replace(/(^\w|[_-]\w)/g,function(e){return e.slice(-1).toUpperCase()})}function Nc(t){return Mp(fo(t))}function Oc(t){const e=typeof t;return e!=="object"?e:Object.prototype.toString.call(t).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function Ap(t){return Oc(t)==="array"}function Rp(t){return Oc(t)==="object"}function Un(t,e){const n=e||{};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s]);return n}function Ni(t,e=new WeakMap){if(t==null)return t;if(t.constructor===Date)return new Date(t);if(t.constructor===RegExp)return new RegExp(t);if(typeof t!="object")return t;if(e.has(t))return e.get(t);const n=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t));e.set(t,n);for(const s of Reflect.ownKeys(t))n[s]=Rp(t[s])?Ni(t[s],e):t[s];return n}function Ic(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&delete t[n];return t}function Cs(t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&delete t[e];return t}function Ts(t,e){const n=t.length,s=e.length;for(let r=0;r<s;r++)t[r]=e[r];let i=Math.max(0,n-s);for(;i>0;)t.pop(),i--}function po(t,e,n=Number.EPSILON*Math.pow(2,2)){return Math.abs(t-e)<n}const mo=(t,e,n)=>t<e?e:t>n?n:t;function Mc(t,e=12){return t.toPrecision(e)}function Ss(t){const e=Sc("number-single",t);return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?t.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?t.substring(e.matchIndex+e.fullMatch.length):""}}function $p(t){const e=Sc("number",t);return e?Array.isArray(e)?e.map(n=>Number(n.fullMatch)):[Number(e.fullMatch)]:[]}function Lp(t,e){let n=!0;return function(...s){n&&(n=!1,t.apply(this,s),setTimeout(()=>{n=!0},e))}}function Fp(t,e){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>{t.apply(this,s)},e)}}class Dc{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(e=1){this.concurrency=e,this.rs=new ReadableStream({start:async n=>{this.controller=n}})}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 n=await Promise.allSettled(e.map(s=>s()));this.results.push(...n),n.forEach(s=>{s.status=="fulfilled"?this.controller?.enqueue(s.value):s.status=="rejected"&&this.controller?.enqueue(new Error(s.reason))}),this.activeTaskCount-=n.length}}}class Ac{events;constructor(){this.events={}}on(e,n){return this.events[e]||(this.events[e]=[]),this.events[e].push(n),this}addListener(e,n){return this.on(e,n),this}prependListener(e,n){return this.events[e]||(this.events[e]=[]),this.events[e].unshift(n),this}removeListener(e,n){if(this.events[e])return this.events[e]=this.events[e].filter(s=>s!==n),this}off(e,n){return this.removeListener(e,n),this}removeAllListeners(e){return e?this.events[e]=[]:this.events={},this}emit(e,...n){return this.events[e]&&this.events[e].forEach(s=>{Reflect.apply(s,this,n)}),this}once(e,n){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,Reflect.apply(n,this,o),this.off(e,i))}})();return this.on(e,i),this}}var Rc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Vp(t,e={}){var n=1,s=1;function i(Y){var j=Y.match(/\n/g);j&&(n+=j.length);var de=Y.lastIndexOf(`
41
- `);s=~de?Y.length-de:s+Y.length}function r(){var Y={line:n,column:s};return function(j){return j.position=new o(Y),m(),j}}function o(Y){this.start=Y,this.end={line:n,column:s},this.source=e.source}o.prototype.content=t;var a=[];function l(Y){var j=new Error(e.source+":"+n+":"+s+": "+Y);if(j.reason=Y,j.filename=e.source,j.line=n,j.column=s,j.source=t,e.silent)a.push(j);else throw j}function c(){var Y=f();return{type:"stylesheet",stylesheet:{source:e.source,rules:Y,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var Y,j=[];for(m(),v(j);t.length&&t.charAt(0)!="}"&&(Y=he()||M());)Y!==!1&&(j.push(Y),v(j));return j}function d(Y){var j=Y.exec(t);if(j){var de=j[0];return i(de),t=t.slice(de.length),j}}function m(){d(/^\s*/)}function v(Y){var j;for(Y=Y||[];j=y();)j!==!1&&Y.push(j);return Y}function y(){var Y=r();if(!(t.charAt(0)!="/"||t.charAt(1)!="*")){for(var j=2;t.charAt(j)!=""&&(t.charAt(j)!="*"||t.charAt(j+1)!="/");)++j;if(j+=2,t.charAt(j-1)==="")return l("End of comment missing");var de=t.slice(2,j-2);return s+=2,i(de),t=t.slice(j),s+=2,Y({type:"comment",comment:de})}}function E(){var Y=d(/^([^{]+)/);if(Y)return en(Y[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(j){return j.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(j){return j.replace(/\u200C/g,",")})}function C(){var Y=r(),j=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(j){if(j=en(j[0]),!d(/^:\s*/))return l("property missing ':'");var de=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),fe=Y({type:"declaration",property:j.replace(Rc,""),value:de?en(de[0]).replace(Rc,""):""});return d(/^[;\s]*/),fe}}function w(){var Y=[];if(!u())return l("missing '{'");v(Y);for(var j;j=C();)j!==!1&&(Y.push(j),v(Y));return h()?Y:l("missing '}'")}function S(){for(var Y,j=[],de=r();Y=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)j.push(Y[1]),d(/^,\s*/);if(j.length)return de({type:"keyframe",values:j,declarations:w()})}function $(){var Y=r(),j=d(/^@([-\w]+)?keyframes\s*/);if(j){var de=j[1];if(j=d(/^([-\w]+)\s*/),!j)return l("@keyframes missing name");var fe=j[1];if(!u())return l("@keyframes missing '{'");for(var Me,Je=v();Me=S();)Je.push(Me),Je=Je.concat(v());return h()?Y({type:"keyframes",name:fe,vendor:de,keyframes:Je}):l("@keyframes missing '}'")}}function O(){var Y=r(),j=d(/^@supports *([^{]+)/);if(j){var de=en(j[1]);if(!u())return l("@supports missing '{'");var fe=v().concat(f());return h()?Y({type:"supports",supports:de,rules:fe}):l("@supports missing '}'")}}function R(){var Y=r(),j=d(/^@host\s*/);if(j){if(!u())return l("@host missing '{'");var de=v().concat(f());return h()?Y({type:"host",rules:de}):l("@host missing '}'")}}function le(){var Y=r(),j=d(/^@media *([^{]+)/);if(j){var de=en(j[1]);if(!u())return l("@media missing '{'");var fe=v().concat(f());return h()?Y({type:"media",media:de,rules:fe}):l("@media missing '}'")}}function ue(){var Y=r(),j=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(j)return Y({type:"custom-media",name:en(j[1]),media:en(j[2])})}function pe(){var Y=r(),j=d(/^@page */);if(j){var de=E()||[];if(!u())return l("@page missing '{'");for(var fe=v(),Me;Me=C();)fe.push(Me),fe=fe.concat(v());return h()?Y({type:"page",selectors:de,declarations:fe}):l("@page missing '}'")}}function De(){var Y=r(),j=d(/^@([-\w]+)?document *([^{]+)/);if(j){var de=en(j[1]),fe=en(j[2]);if(!u())return l("@document missing '{'");var Me=v().concat(f());return h()?Y({type:"document",document:fe,vendor:de,rules:Me}):l("@document missing '}'")}}function Oe(){var Y=r(),j=d(/^@font-face\s*/);if(j){if(!u())return l("@font-face missing '{'");for(var de=v(),fe;fe=C();)de.push(fe),de=de.concat(v());return h()?Y({type:"font-face",declarations:de}):l("@font-face missing '}'")}}var at=Te("import"),lt=Te("charset"),We=Te("namespace");function Te(Y){var j=new RegExp("^@"+Y+"\\s*([^;]+);");return function(){var de=r(),fe=d(j);if(fe){var Me={type:Y};return Me[Y]=fe[1].trim(),de(Me)}}}function he(){if(t[0]=="@")return $()||le()||ue()||O()||at()||lt()||We()||De()||pe()||R()||Oe()}function M(){var Y=r(),j=E();return j?(v(),Y({type:"rule",selectors:j,declarations:w()})):l("selector missing")}return go(c())}function en(t){return t?t.replace(/^\s+|\s+$/g,""):""}function go(t,e){var n=t&&typeof t.type=="string",s=n?t:e;for(var i in t){var r=t[i];Array.isArray(r)?r.forEach(function(o){go(o,s)}):r&&typeof r=="object"&&go(r,s)}return n&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:e||null}),t}const $c=(t,e="image/svg+xml",n="utf-8")=>new Blob([t],{type:`${e};charset=${n}`}),Gp=t=>new XMLSerializer().serializeToString(t),zp=(t,e="image/svg+xml",n="utf-8")=>$c(Gp(t),e,n),Lc=(t,e)=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=e,typeof t=="string"?n.href=t:n.href=window.URL.createObjectURL(t),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href)};function jp(t=["*"],e){return new Promise((n,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(t)&&t.length>0&&i.setAttribute("accept",t.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 r=()=>{if(i.removeEventListener("change",r),!i.files||i.files?.length===0)s(new Error("Cancel select"));else{const o=Array.from(i.files);!t.includes("*")&&o.some(a=>!t.includes(`.${Bp(a)}`))&&s(new Error(`Please select files in ${t} format`)),i.remove(),n(o)}};i.addEventListener("change",r),i.click()})}function Hp(t,e="text",n){return new Promise((s,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{n?.(o.loaded,o.total)}),r.addEventListener("load",o=>{s(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),e){case"dataURL":r.readAsDataURL(t);break;case"binaryString":r.readAsBinaryString(t);break;case"arrayBuffer":r.readAsArrayBuffer(t);break;default:r.readAsText(t)}})}const Bp=t=>{let e;return t instanceof File?e=t.name:e=t,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function Oi(){const t=document.documentElement;return{clientWidth:t.clientWidth,clientHeight:t.clientHeight,clientTop:t.clientTop,clientLeft:t.clientLeft,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,offsetTop:t.offsetTop,offsetLeft:t.offsetLeft,offsetParent:t.offsetParent,clientX:t.getBoundingClientRect().x,clientY:t.getBoundingClientRect().y}}function Fc(){const{clientWidth:t,clientHeight:e}=Oi();return{width:t||window.innerWidth,height:e||window.innerHeight}}function Up(t){const{top:e,left:n}=t.getBoundingClientRect(),{scrollLeft:s,scrollTop:i}=Oi();return{x:n+s,y:e+i}}function Wp(){const{clientHeight:t,scrollTop:e,scrollHeight:n}=Oi(),s=n-t;return s<=0?0:e/s*100}function Yp(t){if("center"in t)return t.center;if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const{scrollLeft:e,scrollTop:n}=Oi();return{x:t.clientX+e,y:t.clientY+n}}function Xp(t,e){const n=Yp(e),s=Up(t);return{x:n.x-s.x,y:n.y-s.y}}function Vc(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}const qp=()=>{const t=navigator.userAgent.toLowerCase();let e="Unknown";return/mac/i.test(t)?e="macOS":/win/i.test(t)?e="Windows":/android/i.test(t)?e="Android":/iphone|ipad|ipod/i.test(t)?e="iOS":/linux/i.test(t)?e="Linux":/bsd/i.test(t)&&(e="BSD"),e.toLowerCase()};function Kp(){return qp()==="macos"}function Zp(){const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}const s=t.indexOf("Edge/");return s>0?parseInt(t.substring(s+5,t.indexOf(".",s)),10):-1}const _o=Zp()!==-1;(()=>{const t=Vc();return!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL)})(),function(){if(!Vc().OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var s=e.transferToImageBitmap();try{n.createPattern(s,"no-repeat")}catch{return!1}return!0}();function Qp(t){const e=document.documentElement,n=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=n;let s=100;const i=function(){const r=Math.min(e.clientWidth,t);e.dataset.width=r,e.dataset.rem=s=Math.round(100*(r/t)),e.style.fontSize=s+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*s},window.px2rem=function(r){return r=parseFloat(r),r/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class Z{static onDocumentReady(e){let n=!1;function s(){document.readyState==="loading"||n||(n=!0,e(),document.removeEventListener("DOMContentLoaded",s))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",s),s())}static onBeforeUnload(e){function n(){e(),document.removeEventListener("beforeunload",n)}typeof document<"u"&&document.addEventListener("beforeunload",n)}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,n){document.documentElement.style.setProperty(e,n)}static getStyle(e,n,s){const i=e;if(getComputedStyle)if(n){n=Dp(n);const r=getComputedStyle(i,s).getPropertyPriority(n);return getComputedStyle(i,s).getPropertyValue(n).trim()+(r?"!"+r:"")}else{const r=[],o=getComputedStyle(i,"");for(let a=0;a<o.length;a++)r.push(o[a]+":"+o.getPropertyValue(o[a]));return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(e.currentStyle){if(n)return n=Nc(n),e.currentStyle[n];{const r=[],o=i.currentStyle;for(let a in o)r.push(a+":"+o[a]);return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(e,n,s){if(typeof n=="string"&&s){const i=String(s).toLowerCase().includes("!important")?"important":"";e.style.setProperty(n,s.replace(/!important/i,""),i)}else n instanceof Object&&Object.keys(n).forEach(i=>{const r=String(n[i]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(i,String(n[i]).replace(/!important/i,""),r)})}static setStyleSheet(e,n){let s;if(typeof n=="string"){const r=document.querySelector(n)?.shadowRoot;r?s=r:s=document.querySelector(n)}else s=n;const i=document.createElement("style");if(i.innerHTML=e,s)return s.appendChild(i),()=>{(s instanceof HTMLElement||s instanceof ShadowRoot)&&s.removeChild(i)};{const r=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(e,n,s="toggle"){n.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&e.classList[s](i.trim())})}static addClass(e,n){this.toggleClass(e,n,"add")}static removeClass(e,n){this.toggleClass(e,n,"remove")}static hasClass(e,n){return n.split(/[,\s]+/).every(s=>s.trim()!==""?Array.from(e.classList||[]).includes(s.trim()):!0)}static toggleDisplay(e,n){this.getStyle(e,"display")=="none"&&n===void 0||n===!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,n,s){if(s===void 0&&typeof n=="string")return e.getAttribute(n);let i={};typeof n=="object"?i=n:s!==void 0&&(i[n]=s),Object.entries(i).forEach(([r,o])=>{e.setAttribute(r,o)})}static removeAttribute(e,n){n.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&e.removeAttribute(s.trim())})}static fixProp(e){const n={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 n[e]?n[e]:e}static prop(e,n,s){if(s===void 0&&typeof n=="string")return e[n];{let i={};typeof n=="object"?i=n:typeof n=="string"&&s!==void 0&&(i[n]=s),Object.entries(i).forEach(([r,o])=>{const a=this.fixProp(r);e[a]=o,a=="innerHTML"&&this.scriptConvert(e)})}}static removeProp(e,n){n.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e[this.fixProp(s.trim())]})}static data(e,n,s){if(typeof n=="string"&&(n=Nc(n)),(typeof n=="string"||n===void 0)&&s===void 0){const i=Object.assign({},e.dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]??"")}catch{}}),typeof n=="string"?i[n]:i}else{let i={};typeof n=="object"?i=n:typeof n=="string"&&(i[n]=s),Object.entries(i).forEach(([r,o])=>{o!=null?e.dataset[r]=o instanceof Object?JSON.stringify(o):o:delete e.dataset[r]})}}static removeData(e,n){n.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e.dataset[s.trim()]})}static empty(e){this.html(e,"")}static html(e,n){n instanceof HTMLElement?this.insert(e,n,"replaceWith"):this.prop(e,"innerHTML",n)}static text(e,n){return this.prop(e,"textContent",n)}static value(e,n){return this.prop(e,"value",n)}static dispatchEvent(e,n,s){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof n=="string"?r.includes(n)?i=new MouseEvent(n,s):o.includes(n)?i=new KeyboardEvent(n,s):i=new Event(n,s):i=n,e.dispatchEvent(i)}static scriptConvert(e){const n=s=>{const r=s.ownerDocument.createElement("script");r.text=s.text;const o=s.attributes;for(let a=0;a<o.length;a++)r.setAttribute(o[a].name,o[a].value);return r};return e.tagName=="SCRIPT"&&(e=n(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(n(s),s)}),e}static fragment(e){const n=document.createElement("template");return n.innerHTML=e,n.content.childNodes.forEach(s=>{const i=this.scriptConvert(s);i!=s&&n.content.replaceChild(i,s)}),n.content}static insert(e,n,s="replaceWith"){return typeof n=="string"?e[s](this.fragment(n)):n instanceof HTMLElement&&e[s](n),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(n=>n!==e);static nextElementSibling(e){return e.nextElementSibling}static previousElementSibling(e){return e.previousElementSibling}static closest(e,n){return e.closest(n)}static shadowRoot(e){return e.shadowRoot}static parentElement=e=>e.parentElement;static changeSelectSelected(e,n){if(e instanceof HTMLSelectElement){const s=e.options;for(let i=0,r=s.length;i<r;i++)s[i].value==n?s[i].selected=!0:s[i].selected=!1}}static changeRadioChecked(e,n){e instanceof HTMLInputElement&&(e.value==n?e.checked=!0:e.checked=!1)}static entity2text(e){const n={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=n[e],s?String.fromCharCode(s):"&"+e}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const n=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length??0;const i=()=>s>=n.length?(e(),!0):!1;i()||n.forEach(r=>{r.onload=()=>{s+=1,i()}})});static loadScript(e,n=()=>{},s=(i,r,o,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=e,i.async=!1,i.onload=n,i.onerror=s,document.body.appendChild(i)}static runInSafe(e){const n=new Proxy(window,{get(s,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?n:Reflect.get(s,i,r)},set(s,i,r,o){return Reflect.set(s,i,r,o)}});new Function("window",`with(window) { ${e} }`)(n,null)}static dom=new Proxy({},{get(e,n){return function(s={},...i){const r=document.createElement(n);for(const o of Object.keys(s))r.setAttribute(o,s[o]);for(const o of i)typeof o=="string"?r.appendChild(document.createTextNode(o)):r.appendChild(o);return r}}});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){
40
+ `.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},un=(n,e)=>(typeof n=="string"&&(n=Io(n)||new RegExp(n)),n.test(e)),zc=(n,e)=>{typeof n=="string"&&(n=Io(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},Bc=(n,e)=>{typeof n=="string"&&(n=Io(n)||new RegExp(n));const t=[],s=e.matchAll(n);for(const r of s)t.push({matchIndex:typeof r.index=="number"?r.index:-1,fullMatch:r[0],groupMatchs:r.slice(1)});return t};function Hc(n){const e=n.match(/[\s\S]/gu);return e?e.length:0}function Yc(n,e){const t=n.codePointAt(e);return t?String.fromCodePoint(t):void 0}function Bp(){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 Hp(n){return n.replace(/(^\w)/g,function(e){return e.toLowerCase()})}const Mt=(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 No(n){return n.replace(/(^\w|[_-]\w)/g,function(e){return e.slice(-1).toUpperCase()})}function Xc(n){return Hp(No(n))}function Yp(n,e,t="0",s="left"){const r=Hc(n);if(e>r){const i=e-r;switch(s){case"left":n=Array(i+1).join(t)+n;break;case"right":n=n+Array(i+1).join(t);break;default:const o=Math.ceil(i/2),a=i-o;n=Array(a+1).join(t)+n+Array(o+1).join(t);break}}return n}function Uc(n){const e=typeof n;return e!=="object"?e:Object.prototype.toString.call(n).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function Xp(n){return Uc(n)==="array"}function Up(n){return Uc(n)==="object"}function Xr(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 Wp(n,e){const t=Object.getPrototypeOf(n),s=Object.getPrototypeOf(e);for(const r of Reflect.ownKeys(s))if(!Object.prototype.hasOwnProperty.call(t,r)){const i=Object.getOwnPropertyDescriptor(s,r);i&&Object.defineProperty(t,r,i)}}function Wc(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]=Up(n[s])?Wc(n[s],e):n[s];return e.set(n,t),t}function Fs(n){for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&delete n[e];return n}function Gs(n,e){const t=n.length,s=e.length;for(let i=0;i<s;i++)n[i]=e[i];let r=Math.max(0,t-s);for(;r>0;)n.pop(),r--}function js(n,e,t=Number.EPSILON*Math.pow(2,2)){return Math.abs(n-e)<t}const At=(n,e,t)=>n<e?e:n>t?t:n;function ns(n,e=12){return+n.toFixed(e)}function zs(n){const e=zc("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 qp(n){const e=zc("number",n);return e?Array.isArray(e)?e.map(t=>Number(t.fullMatch)):[Number(e.fullMatch)]:[]}function Kp(n,e){let t=!0;return function(...s){t&&(t=!1,n.apply(this,s),setTimeout(()=>{t=!0},e))}}function Zp(n,e){let t;return function(...s){clearTimeout(t),t=setTimeout(()=>{n.apply(this,s)},e)}}class qc{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 Kc{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 r=(()=>{let i=!1;return(...o)=>{i||(i=!0,Reflect.apply(t,this,o),this.off(e,r))}})();return this.on(e,r),this}}var Zc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Qp(n,e={}){var t=1,s=1;function r(J){var Y=J.match(/\n/g);Y&&(t+=Y.length);var ke=J.lastIndexOf(`
41
+ `);s=~ke?J.length-ke:s+J.length}function i(){var J={line:t,column:s};return function(Y){return Y.position=new o(J),g(),Y}}function o(J){this.start=J,this.end={line:t,column:s},this.source=e.source}o.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=f();return{type:"stylesheet",stylesheet:{source:e.source,rules:J,parsingErrors:a}}}function u(){return p(/^{\s*/)}function h(){return p(/^}/)}function f(){var J,Y=[];for(g(),y(Y);n.length&&n.charAt(0)!="}"&&(J=re()||A());)J!==!1&&(Y.push(J),y(Y));return Y}function p(J){var Y=J.exec(n);if(Y){var ke=Y[0];return r(ke),n=n.slice(ke.length),Y}}function g(){p(/^\s*/)}function y(J){var Y;for(J=J||[];Y=b();)Y!==!1&&J.push(Y);return J}function b(){var J=i();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 ke=n.slice(2,Y-2);return s+=2,r(ke),n=n.slice(Y),s+=2,J({type:"comment",comment:ke})}}function O(){var J=p(/^([^{]+)/);if(J)return hn(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 D(){var J=i(),Y=p(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(Y){if(Y=hn(Y[0]),!p(/^:\s*/))return l("property missing ':'");var ke=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),we=J({type:"declaration",property:Y.replace(Zc,""),value:ke?hn(ke[0]).replace(Zc,""):""});return p(/^[;\s]*/),we}}function I(){var J=[];if(!u())return l("missing '{'");y(J);for(var Y;Y=D();)Y!==!1&&(J.push(Y),y(J));return h()?J:l("missing '}'")}function L(){for(var J,Y=[],ke=i();J=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)Y.push(J[1]),p(/^,\s*/);if(Y.length)return ke({type:"keyframe",values:Y,declarations:I()})}function se(){var J=i(),Y=p(/^@([-\w]+)?keyframes\s*/);if(Y){var ke=Y[1];if(Y=p(/^([-\w]+)\s*/),!Y)return l("@keyframes missing name");var we=Y[1];if(!u())return l("@keyframes missing '{'");for(var j,Z=y();j=L();)Z.push(j),Z=Z.concat(y());return h()?J({type:"keyframes",name:we,vendor:ke,keyframes:Z}):l("@keyframes missing '}'")}}function V(){var J=i(),Y=p(/^@supports *([^{]+)/);if(Y){var ke=hn(Y[1]);if(!u())return l("@supports missing '{'");var we=y().concat(f());return h()?J({type:"supports",supports:ke,rules:we}):l("@supports missing '}'")}}function U(){var J=i(),Y=p(/^@host\s*/);if(Y){if(!u())return l("@host missing '{'");var ke=y().concat(f());return h()?J({type:"host",rules:ke}):l("@host missing '}'")}}function be(){var J=i(),Y=p(/^@media *([^{]+)/);if(Y){var ke=hn(Y[1]);if(!u())return l("@media missing '{'");var we=y().concat(f());return h()?J({type:"media",media:ke,rules:we}):l("@media missing '}'")}}function xe(){var J=i(),Y=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(Y)return J({type:"custom-media",name:hn(Y[1]),media:hn(Y[2])})}function Te(){var J=i(),Y=p(/^@page */);if(Y){var ke=O()||[];if(!u())return l("@page missing '{'");for(var we=y(),j;j=D();)we.push(j),we=we.concat(y());return h()?J({type:"page",selectors:ke,declarations:we}):l("@page missing '}'")}}function Ae(){var J=i(),Y=p(/^@([-\w]+)?document *([^{]+)/);if(Y){var ke=hn(Y[1]),we=hn(Y[2]);if(!u())return l("@document missing '{'");var j=y().concat(f());return h()?J({type:"document",document:we,vendor:ke,rules:j}):l("@document missing '}'")}}function _e(){var J=i(),Y=p(/^@font-face\s*/);if(Y){if(!u())return l("@font-face missing '{'");for(var ke=y(),we;we=D();)ke.push(we),ke=ke.concat(y());return h()?J({type:"font-face",declarations:ke}):l("@font-face missing '}'")}}var De=Se("import"),Ye=Se("charset"),ye=Se("namespace");function Se(J){var Y=new RegExp("^@"+J+"\\s*([^;]+);");return function(){var ke=i(),we=p(Y);if(we){var j={type:J};return j[J]=we[1].trim(),ke(j)}}}function re(){if(n[0]=="@")return se()||be()||xe()||V()||De()||Ye()||ye()||Ae()||Te()||U()||_e()}function A(){var J=i(),Y=O();return Y?(y(),J({type:"rule",selectors:Y,declarations:I()})):l("selector missing")}return Do(c())}function hn(n){return n?n.replace(/^\s+|\s+$/g,""):""}function Do(n,e){var t=n&&typeof n.type=="string",s=t?n:e;for(var r in n){var i=n[r];Array.isArray(i)?i.forEach(function(o){Do(o,s)}):i&&typeof i=="object"&&Do(i,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 Qc=(n,e="image/svg+xml",t="utf-8")=>t==="base64"?new Blob([n],{type:`${e};${t}`}):new Blob([n],{type:`${e};charset=${t}`}),Jc=n=>new XMLSerializer().serializeToString(n),Jp=(n,e="image/svg+xml",t="utf-8")=>Qc(Jc(n),e,t),eu=(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 em(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 r=globalThis.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("visibility","hidden"),Array.isArray(n)&&n.length>0&&r.setAttribute("accept",n.join(",")),e&&r.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!r.files||r.files?.length===0)&&s(new Error("Cancel select"))},1e3)},{once:!0});const i=()=>{if(r.removeEventListener("change",i),!r.files||r.files?.length===0)s(new Error("Cancel select"));else{const o=Array.from(r.files);!n.includes("*")&&o.some(a=>!n.includes(`.${nm(a)}`))&&s(new Error(`Please select files in ${n} format`)),r.remove(),t(o)}};r.addEventListener("change",i),r.click()})}function tm(n,e="text",t){return new Promise((s,r)=>{const i=new FileReader;switch(i.addEventListener("progress",o=>{t?.(o.loaded,o.total)}),i.addEventListener("load",o=>{s(o.target?.result)}),i.addEventListener("error",o=>{r(o)}),e){case"dataURL":i.readAsDataURL(n);break;case"binaryString":i.readAsBinaryString(n);break;case"arrayBuffer":i.readAsArrayBuffer(n);break;case"text":default:i.readAsText(n)}})}const nm=n=>{let e;return n instanceof File?e=n.name:e=n,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function Ur(){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 tu(){const{clientWidth:n,clientHeight:e}=Ur();return{width:n||window.innerWidth,height:e||window.innerHeight}}function sm(n){const{top:e,left:t}=n.getBoundingClientRect(),{scrollLeft:s,scrollTop:r}=Ur();return{x:t+s,y:e+r}}function rm(){const{clientHeight:n,scrollTop:e,scrollHeight:t}=Ur(),s=t-n;return s<=0?0:e/s*100}function im(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}=Ur();return{x:n.clientX+e,y:n.clientY+t}}function om(n,e){const t=im(e),s=sm(n);return{x:t.x-s.x,y:t.y-s.y}}function nu(){return typeof window<"u"?window:this||{}}const am=()=>{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 lm(){return am()==="macos"}function cm(){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 r=n.indexOf("rv:");return parseInt(n.substring(r+3,n.indexOf(".",r)),10)}const s=n.indexOf("Edge/");return s>0?parseInt(n.substring(s+5,n.indexOf(".",s)),10):-1}const Mo=cm()!==-1;(()=>{const n=nu();return!!(n.Worker&&n.Blob&&n.Promise&&n.OffscreenCanvas&&n.OffscreenCanvasRenderingContext2D&&n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype.transferControlToOffscreen&&n.URL&&n.URL.createObjectURL)})(),function(){if(!nu().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 um(n){const e=document.documentElement,t=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=t;let s=100;const r=function(){const i=Math.min(e.clientWidth,n);e.dataset.width=i,e.dataset.rem=s=Math.round(100*(i/n)),e.style.fontSize=s+"px"};r(),window.rem2px=function(i){return i=parseFloat(i),i*s},window.px2rem=function(i){return i=parseFloat(i),i/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}function wt(n){return n*Math.PI/180}function Et(n){return n*180/Math.PI}function hm(n,e,t=0){return Math.sqrt(n*n+e*e+t*t)}function su(n,e,t,s){const r=n-t,i=e-s;return hm(r,i)}function Ao(n,e,t,s){const r=t-n,i=s-e;let o=Math.atan2(i,r);return o<0&&(o+=Math.PI*2),o}function Xn(n,e){return{x:Math.cos(n)*e,y:Math.sin(n)*e}}const ru=[1,0,0,1,0,0],iu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class vt{value;matrix3d;isEverTo3d=!1;constructor(e=ru){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 ss(t)}unit(){return this.value=Array.from(ru),this.matrix3d=this.toMatrix3D(),this}transformPoint(e,t,s=0,r=0){const i=e-s,o=t-r;return e=this.m11*i+this.m21*o+this.m31,t=this.m12*i+this.m22*o+this.m32,[e+s,t+r]}fromString(e){const t=Bc("number",e);return t.length===6?t.forEach((s,r)=>{s.fullMatch&&(this.value[r]=parseFloat(s.fullMatch))}):this.unit(),this}clone(){return new vt(this.value)}multiply(e){const t=this.value;let s;e instanceof vt?s=e.value:s=e;const r=t[0]*s[0]+t[2]*s[1],i=t[1]*s[0]+t[3]*s[1],o=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]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=l,t[5]=c,this}inverse(){const e=new vt(this.value),t=e.value,s=1/(t[0]*t[3]-t[1]*t[2]),r=t[3]*s,i=-t[1]*s,o=-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]=r,t[1]=i,t[2]=o,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 r=wt(e),i=Math.cos(r),o=Math.sin(r);return this.multiply([i,o,-o,i,t,s]),this.translate(-t,-s),this.toMatrix3D(),this}rotateTo(e,t=0,s=0){const{rotateZ:r}=this.matrix3d.split();return this.rotate(e-r,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:r,rotateY:i,rotateZ:o}=this.matrix3d.split();return this.rotate3d(e-r,t-i,s-o),this}scale(e,t=e,s=0,r=0){return this.translate(s,r),this.multiply([e,0,0,t,0,0]),this.translate(-s,-r),this.toMatrix3D(),this}scaleTo(e,t=e,s=0,r=0){return this.scale(e/this.m11,t/this.m22,s,r)}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:r,scaleY:i,scaleZ:o}=this.matrix3d.split();return this.scale3d(e/r,t/i,s/o),this}skew(e,t=e){const s=Math.tan(wt(e)),r=Math.tan(wt(t));return this.multiply([1,r,s,1,0,0]),this.toMatrix3D(),this}skewTo(e,t=e){return this.skew(e-Et(this.m21),t-Et(this.m12))}skewX(e){return this.skew(e,Et(this.m12))}skewXTo(e){return this.skewTo(e,Et(this.m12))}skewY(e){return this.skew(Et(this.m21),e)}skewYTo(e){return this.skewTo(Et(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],r=this.value[2],i=this.value[3],o=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],p=e.value[5],g=l*h,y=c*u,b=(u*s-t*h)/(y-g),O=(l*s-t*c)/(g-y),D=(u*i-r*h)/(y-g),I=(l*i-r*c)/(g-y),L=(u*(a-p)+h*(f-o))/(y-g),se=(l*(a-p)+c*(f-o))/(g-y),V=[b,O,D,I,L,se];return new vt(V)}toString(){return this.isEverTo3d?this.matrix3d.toString():`matrix(${this.value.map(e=>ns(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 ss{value;constructor(e=iu){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(iu),this}fromString(e){const t=Bc("number",e);return t.length===16?t.forEach((s,r)=>{s.fullMatch&&(this.value[r]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(e){const{scaleX:t,scaleY:s,skewX:r,skewY:i,x:o,y:a}=this.split(),l=[t,i,r,s,o,a];return e?(e.value=l,e):new vt(l)}multiplyMatrix(e){const t=e.value[0],s=e.value[1],r=e.value[2],i=e.value[3],o=t*this.m11+s*this.m21+r*this.m31+i*this.m41,a=t*this.m12+s*this.m22+r*this.m32+i*this.m42,l=t*this.m13+s*this.m23+r*this.m33+i*this.m43,c=t*this.m14+s*this.m24+r*this.m34+i*this.m44;return new vt([o,a,l,c,0,0])}multiply(e){const t=new vt([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),s=new vt([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),r=new vt([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),i=new vt([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),o=this.multiplyMatrix(t),a=this.multiplyMatrix(s),l=this.multiplyMatrix(r),c=this.multiplyMatrix(i);return this.value[0]=o.value[0],this.value[1]=o.value[1],this.value[2]=o.value[2],this.value[3]=o.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 ss([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 ss([e,0,0,0,0,t,0,0,0,0,s,0,0,0,0,1]))}rotate(e,t){const s=wt(t),r=Math.sin,i=Math.cos;let o;switch(e){case"x":o=[1,0,0,0,0,i(s),r(s),0,0,-r(s),i(s),0,0,0,0,1];break;case"y":o=[i(s),0,-r(s),0,0,1,0,0,r(s),0,i(s),0,0,0,0,1];break;case"z":o=[i(s),r(s),0,0,-r(s),i(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new ss(o))}toString(){return`matrix3d(${this.value.map(e=>ns(e,6)).join(",")})`}split(){let e=Et(At(Math.asin(-this.m13),-1,1)),t=Et(Math.atan2(this.m23,this.m33)),s=Et(Math.atan2(this.m12,this.m11));return Math.cos(e)===0&&(t=Et(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:Et(this.m14),skewY:Et(this.m24),skewZ:Et(this.m34),skewW:this.m44}}inverse(){const e=[],t=this.m11,s=this.m12,r=this.m13,i=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,p=this.m34,g=this.m41,y=this.m42,b=this.m43,O=this.m44;e[0]=l*p*y-c*f*y+c*h*b-a*p*b-l*h*O+a*f*O,e[1]=i*f*y-r*p*y-i*h*b+s*p*b+r*h*O-s*f*O,e[2]=r*c*y-i*l*y+i*a*b-s*c*b-r*a*O+s*l*O,e[3]=i*l*h-r*c*h-i*a*f+s*c*f+r*a*p-s*l*p;const D=t*e[0]+o*e[1]+u*e[2]+g*e[3];if(D==0)return console.warn("Can't invert matrix, determinant is 0");e[4]=c*f*g-l*p*g-c*u*b+o*p*b+l*u*O-o*f*O,e[5]=r*p*g-i*f*g+i*u*b-t*p*b-r*u*O+t*f*O,e[6]=i*l*g-r*c*g-i*o*b+t*c*b+r*o*O-t*l*O,e[7]=r*c*u-i*l*u+i*o*f-t*c*f-r*o*p+t*l*p,e[8]=a*p*g-c*h*g+c*u*y-o*p*y-a*u*O+o*h*O,e[9]=i*h*g-s*p*g-i*u*y+t*p*y+s*u*O-t*h*O,e[10]=s*c*g-i*a*g+i*o*y-t*c*y-s*o*O+t*a*O,e[11]=i*a*u-s*c*u-i*o*h+t*c*h+s*o*p-t*a*p,e[12]=l*h*g-a*f*g-l*u*y+o*f*y+a*u*b-o*h*b,e[13]=s*f*g-r*h*g+r*u*y-t*f*y-s*u*b+t*h*b,e[14]=r*a*g-s*l*g-r*o*y+t*l*y+s*o*b-t*a*b,e[15]=s*l*u-r*a*u+r*o*h-t*l*h-s*o*f+t*a*f,this.value=e;const I=1/D;this.value.map(L=>L*I)}}function ou(n){const e=new vt;return n.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(t,s,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const i=[];for(let o=0,a=r.length;o<a;o++)r[o].trim()&&i.push(parseFloat(""+r[o]));switch(s.toLowerCase()){case"t":case"translate":e.translate(i[0],i[1]);break;case"translatex":e.translateX(i[0]);break;case"translatey":e.translateY(i[0]);break;case"translatez":e.translateZ(i[0]);break;case"translate3d":e.translate3d(i[0],i[1],i[2]);break;case"r":case"rotate":e.rotate(i[0],i[1]??0,i[2]??0);break;case"rotatex":e.rotateX(i[0]);break;case"rotatey":e.rotateY(i[0]);break;case"rotatez":e.rotateZ(i[0]);break;case"rotate3d":e.rotate3d(i[0],i[1],i[2]);break;case"s":case"scale":e.scale(i[0],i[1]??i[0]);break;case"scalex":e.scaleX(i[0]);break;case"scaley":e.scaleY(i[0]);break;case"scalez":e.scaleZ(i[0]);break;case"scale3d":e.scale3d(i[0],i[1],i[2]);break;case"skew":e.skew(i[0],i[1]??0);break;case"skewx":e.skewX(i[0]);break;case"skewy":e.skewY(i[0]);break;case"skewz":e.skewZ(i[0]);break;case"skew3d":e.skew3d(i[0],i[1],i[2]);break;case"m":case"matrix":e.multiply([i[0],i[1],i[2],i[3],i[4],i[5]]),e.toMatrix3D();break;case"matrix3d":e.matrix3d.multiply(new ss(i)),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 r=ou(s.transform),i={};for(let o in t){const a=t[o];switch(o){case"transform":break;case"translate":r.translate(a[0]||0,a[1]||0);break;case"translateTo":r.translateTo(a[0]||0,a[1]||0);break;case"translateX":r.translateX(a||0);break;case"translateXTo":r.translateXTo(a||0);break;case"translateY":r.translateY(a||0);break;case"translateYTo":r.translateYTo(a||0);break;case"translateZ":r.translateZ(a||0);break;case"translateZTo":r.translateZTo(a||0);break;case"translate3d":r.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":r.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?r.rotate(a||0):r.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?r.rotateTo(a||0):r.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":r.rotateX(a||0);break;case"rotateXTo":r.rotateXTo(a||0);break;case"rotateY":r.rotateY(a||0);break;case"rotateYTo":r.rotateYTo(a||0);break;case"rotateZ":r.rotateZ(a||0);break;case"rotateZTo":r.rotateZTo(a||0);break;case"rotate3d":r.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":r.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?r.scale(a||1):r.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?r.scaleTo(a||1):r.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":r.scaleX(a||1);break;case"scaleXTo":r.scaleXTo(a||1);break;case"scaleY":r.scaleY(a||1);break;case"scaleYTo":r.scaleYTo(a||1);break;case"scaleZ":r.scaleZ(a||1);break;case"scaleZTo":r.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?r.scale3d(a||1):r.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?r.scale3dTo(a||1):r.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?r.skew(a||0):r.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?r.skewTo(a||0):r.skewTo(a[0]||0,a[1]||0);break;case"skewX":r.skewX(a||0);break;case"skewXTo":r.skewXTo(a||0);break;case"skewY":r.skewY(a||0);break;case"skewYTo":r.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;default:s.hasOwnProperty(o)||(s[o]=q.getStyle(e,o)),Object.assign(i,{[o]:`${a}`});break}}return Object.assign(i,{transform:r.toString()}),i}static attrsToCanvas(e,t){for(const s in t){const r=t[s];switch(Mt(s)){case"fill":r!=="none"&&(e.fillStyle=r);break;case"stroke":r!=="none"&&(e.strokeStyle=r);break;case"stroke-width":e.lineWidth=Number(r);break;case"stroke-linecap":e.lineCap=r;break;case"stroke-linejoin":switch(r){case"round":case"bevel":case"miter":e.lineJoin=r;break;default:e.lineJoin="miter";break}break;case"stroke-miterlimit":e.miterLimit=Number(r);break;case"stroke-opacity":break;case"cursor":break;case"font":e.font=r;break;case"font-size":e.font+=` ${r}`;break;case"font-family":e.font+=` ${r}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(r){case"middle":e.textAlign="center";break;case"end":e.textAlign="end";break;case"start":e.textAlign="start";break}break;case"alignment-baseline":switch(r){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":e.textBaseline=r;break;default:e.textBaseline="alphabetic";break}break}}}static getStyle(e,t,s){const r=e;if(getComputedStyle)if(t){t=Mt(t);const i=getComputedStyle(r,s).getPropertyPriority(t);return getComputedStyle(r,s).getPropertyValue(t).trim()+(i?"!"+i:"")}else{const i=[],o=getComputedStyle(r,"");for(let a=0;a<o.length;a++)i.push(o[a]+":"+o.getPropertyValue(o[a]));return i.push(...(r.style.cssText||"").split(";")),Object.fromEntries(i.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(e.currentStyle){if(t)return t=Xc(t),e.currentStyle[t];{const i=[],o=r.currentStyle;for(let a in o)i.push(a+":"+o[a]);return i.push(...(r.style.cssText||"").split(";")),Object.fromEntries(i.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(e,t,s){if(typeof t=="string"&&s){const r=String(s).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Mt(t),s.replace(/!important/i,""),r)}else t instanceof Object&&Object.keys(t).forEach(r=>{const i=String(t[r]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Mt(r),String(t[r]).replace(/!important/i,""),i)})}static setStyleSheet(e,t){let s;if(typeof t=="string"){const i=document.querySelector(t)?.shadowRoot;i?s=i:s=document.querySelector(t)}else s=t;const r=document.createElement("style");if(r.innerHTML=e,s)return s.appendChild(r),()=>{(s instanceof HTMLElement||s instanceof ShadowRoot)&&s.removeChild(r)};{const i=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(i)}}}static toggleClass(e,t,s="toggle"){t.split(/[,\s]+/).forEach(r=>{r.trim()!==""&&e.classList[s](r.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 r={};if(t===void 0&&s===void 0){for(let i=0,o=e.attributes,a=o.length;i<a;i++){const l=o[i];l.nodeName&&l.nodeValue&&(r[l.nodeName]=l.nodeValue)}return r}if(typeof t=="string"&&s===void 0)return e.getAttribute(Mt(t));typeof t=="object"?r=t:typeof t=="string"&&s!==void 0&&(r[t]=s),Object.entries(r).forEach(([i,o])=>{e.setAttribute(Mt(i),o)})}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 r={};typeof t=="object"?r=t:typeof t=="string"&&s!==void 0&&(r[t]=s),Object.entries(r).forEach(([i,o])=>{const a=this.fixProp(i);e[a]=o,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=Xc(t)),(typeof t=="string"||t===void 0)&&s===void 0){const r=Object.assign({},e.dataset);return Object.keys(r).forEach(i=>{if(r[i]?.startsWith("[")||r[i]?.startsWith("{"))try{r[i]=JSON.parse(r[i]||"")}catch{}}),typeof t=="string"?r[t]:r}else{let r={};typeof t=="object"?r=t:typeof t=="string"&&(r[t]=s),Object.entries(r).forEach(([i,o])=>{o!=null?e.dataset[i]=o instanceof Object?JSON.stringify(o):o:delete e.dataset[i]})}}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 r;const i=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof t=="string"?i.includes(t)?r=new MouseEvent(t,s):o.includes(t)?r=new KeyboardEvent(t,s):r=new Event(t,s):r=t,e.dispatchEvent(r)}static scriptConvert(e){const t=s=>{const i=s.ownerDocument.createElement("script");i.text=s.text;const o=s.attributes;for(let a=0;a<o.length;a++)i.setAttribute(o[a].name,o[a].value);return i};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 r=this.scriptConvert(s);r!=s&&t.content.replaceChild(r,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 r=0,i=s.length;r<i;r++)s[r].value==t?s[r].selected=!0:s[r].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 r=()=>s>=t.length?(e(),!0):!1;r()||t.forEach(i=>{i.onload=()=>{s+=1,r()}})});static loadScript(e,t=()=>{},s=(r,i,o,a,l)=>{}){const r=document.createElement("script");r.type="text/javascript",r.src=e,r.async=!1,r.onload=t,r.onerror=s,document.body.appendChild(r)}static runInSafe(e){const t=new Proxy(window,{get(s,r,i){if(typeof r=="string"&&["open","location","document"].includes(r))throw new Error(`禁止访问 key: ${r}`);return r==="window"?t:Reflect.get(s,r,i)},set(s,r,i,o){return Reflect.set(s,r,i,o)}});new Function("window",`with(window) { ${e} }`)(t,null)}static dom=new Proxy({},{get(e,t){return function(s={},...r){const i=document.createElement(t);for(const o of Object.keys(s))i.setAttribute(o,s[o]);for(const o of r)typeof o=="string"?i.appendChild(document.createTextNode(o)):i.appendChild(o);return i}}});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){
42
42
  let output = "";
43
43
  function echo(html){
44
44
  output += html;
45
45
  }
46
46
  ${e}
47
47
  return output;
48
- })`}static encodeHTML(e,n="encode"){const s={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e=e.replace(new RegExp(n=="decode"?i:s[i],"g"),n=="decode"?s[i]:i));return e}static getInnerText=e=>{let n=e.innerText;if(!n){const s=e.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!n&&i<=s.length-1;)"innerText"in s[i]&&(n=s[i].innerText),i++}return n};static copyToClipboard=e=>new Promise((n,s)=>{if(navigator.clipboard)navigator.clipboard.writeText(e).then(n).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")?n():s()}catch(r){s(r)}document.body.removeChild(i)}});static scrollTo=(e,n)=>window.scrollTo(e,n);static setScrollRestoration(e){try{window.history.scrollRestoration=e}catch{}}static getLocation(){return new Promise((e,n)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(s=>{e(s.coords)}):n("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,n="http://test.com/localstorage.html"){const s=document.createElement("iframe");s.src=n,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(e,n)},4e3),setTimeout(function(){s.remove()},6e3)}static getTextWidth=(e,n=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=n>12?n+"px":"12px",i.style.fontWeight=s.toString(),i.innerText=e,document.body.appendChild(i);const r=i.offsetWidth;return document.body.removeChild(i),r};static getFixedWidthText=(e,n,s=12,i=400,r=!0)=>{let o="";if(!e||n<s)return o;const a=e.split(""),l="...";let c=r?Z.getTextWidth(l,s,i):0;for(let u=0,h=a.length;u<h;u++)if(c+=Z.getTextWidth(a[u],s,i),c>n){r&&(o+=l);break}else o+=a[u];return o}}function Jp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gc={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
48
+ })`}static escape(e,t="encode"){const s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e=e.replace(new RegExp(t=="encode"?r:s[r],"g"),t=="encode"?s[r]:r));return e}static getInnerText=e=>{let t=e.innerText;if(!t){const s=e.querySelector("slot")?.assignedNodes()||[];let r=0;for(;!t&&r<=s.length-1;)"innerText"in s[r]&&(t=s[r].innerText),r++}return t};static copyToClipboard=e=>new Promise((t,s)=>{if(navigator.clipboard)navigator.clipboard.writeText(e).then(t).catch(s);else{const r=document.createElement("textarea");r.value=e,r.style.opacity="0",r.style.top="0",r.style.left="0",r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")?t():s()}catch(i){s(i)}document.body.removeChild(r)}});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 r=document.createElement("span");r.style.visibility="hidden",r.style.padding="0",r.style.whiteSpace="nowrap",r.style.overflow="visible",r.style.fontSize=t>12?t+"px":"12px",r.style.fontWeight=s.toString(),r.innerText=e,document.body.appendChild(r);const i=r.offsetWidth;return document.body.removeChild(r),i};static getFixedWidthText=(e,t,s=12,r=400,i=!0)=>{let o="";if(!e||t<s)return o;const a=e.split(""),l="...";let c=i?q.measureText(l,s,r):0;for(let u=0,h=a.length;u<h;u++)if(c+=q.measureText(a[u],s,r),c>t){i&&(o+=l);break}else o+=a[u];return o}}function fm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var au={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
49
49
  * http://hammerjs.github.io/
50
50
  *
51
51
  * Copyright (c) 2016 Jorik Tangelder;
52
- * Licensed under the MIT license */(function(t){(function(e,n,s,i){var r=["","webkit","Moz","MS","ms","o"],o=n.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,g,b){return setTimeout(w(p,b),g)}function f(p,g,b){return Array.isArray(p)?(d(p,b[g],b),!0):!1}function d(p,g,b){var k;if(p)if(p.forEach)p.forEach(g,b);else if(p.length!==i)for(k=0;k<p.length;)g.call(b,p[k],k,p),k++;else for(k in p)p.hasOwnProperty(k)&&g.call(b,p[k],k,p)}function m(p,g,b){var k="DEPRECATED METHOD: "+g+`
53
- `+b+` AT
54
- `;return function(){var V=new Error("get-stack-trace"),K=V&&V.stack?V.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ye=e.console&&(e.console.warn||e.console.log);return ye&&ye.call(e.console,k,K),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 b=Object(g),k=1;k<arguments.length;k++){var V=arguments[k];if(V!==i&&V!==null)for(var K in V)V.hasOwnProperty(K)&&(b[K]=V[K])}return b}:v=Object.assign;var y=m(function(g,b,k){for(var V=Object.keys(b),K=0;K<V.length;)(!k||k&&g[V[K]]===i)&&(g[V[K]]=b[V[K]]),K++;return g},"extend","Use `assign`."),E=m(function(g,b){return y(g,b,!0)},"merge","Use `assign`.");function C(p,g,b){var k=g.prototype,V;V=p.prototype=Object.create(k),V.constructor=p,V._super=k,b&&v(V,b)}function w(p,g){return function(){return p.apply(g,arguments)}}function S(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function $(p,g){return p===i?g:p}function O(p,g,b){d(pe(g),function(k){p.addEventListener(k,b,!1)})}function R(p,g,b){d(pe(g),function(k){p.removeEventListener(k,b,!1)})}function le(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function ue(p,g){return p.indexOf(g)>-1}function pe(p){return p.trim().split(/\s+/g)}function De(p,g,b){if(p.indexOf&&!b)return p.indexOf(g);for(var k=0;k<p.length;){if(b&&p[k][b]==g||!b&&p[k]===g)return k;k++}return-1}function Oe(p){return Array.prototype.slice.call(p,0)}function at(p,g,b){for(var k=[],V=[],K=0;K<p.length;){var ye=g?p[K][g]:p[K];De(V,ye)<0&&k.push(p[K]),V[K]=ye,K++}return b&&(g?k=k.sort(function(nt,_t){return nt[g]>_t[g]}):k=k.sort()),k}function lt(p,g){for(var b,k,V=g[0].toUpperCase()+g.slice(1),K=0;K<r.length;){if(b=r[K],k=b?b+V:g,k in p)return k;K++}return i}var We=1;function Te(){return We++}function he(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||e}var M=/mobile|tablet|ip(ad|hone|od)|android/i,Y="ontouchstart"in e,j=lt(e,"PointerEvent")!==i,de=Y&&M.test(navigator.userAgent),fe="touch",Me="pen",Je="mouse",Et="kinect",Ct=25,Ae=1,kt=2,$e=4,et=8,At=1,tn=2,nn=4,_=8,x=16,P=tn|nn,I=_|x,A=P|I,H=["x","y"],W=["clientX","clientY"];function L(p,g){var b=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(k){S(p.options.enable,[p])&&b.handler(k)},this.init()}L.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(he(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(he(this.element),this.evWin,this.domHandler)}};function U(p){var g,b=p.options.inputClass;return b?g=b:j?g=Xo:de?g=Xi:Y?g=qo:g=gt,new g(p,F)}function F(p,g,b){var k=b.pointers.length,V=b.changedPointers.length,K=g&Ae&&k-V===0,ye=g&($e|et)&&k-V===0;b.isFirst=!!K,b.isFinal=!!ye,K&&(p.session={}),b.eventType=g,X(p,b),p.emit("hammer.input",b),p.recognize(b),p.session.prevInput=b}function X(p,g){var b=p.session,k=g.pointers,V=k.length;b.firstInput||(b.firstInput=ce(g)),V>1&&!b.firstMultiple?b.firstMultiple=ce(g):V===1&&(b.firstMultiple=!1);var K=b.firstInput,ye=b.firstMultiple,qe=ye?ye.center:K.center,nt=g.center=ge(k);g.timeStamp=u(),g.deltaTime=g.timeStamp-K.timeStamp,g.angle=mt(qe,nt),g.distance=Fe(qe,nt),ie(b,g),g.offsetDirection=Ie(g.deltaX,g.deltaY);var _t=we(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=_t.x,g.overallVelocityY=_t.y,g.overallVelocity=c(_t.x)>c(_t.y)?_t.x:_t.y,g.scale=ye?Ui(ye.pointers,k):1,g.rotation=ye?vn(ye.pointers,k):0,g.maxPointers=b.prevInput?g.pointers.length>b.prevInput.maxPointers?g.pointers.length:b.prevInput.maxPointers:g.pointers.length,te(b,g);var Bt=p.element;le(g.srcEvent.target,Bt)&&(Bt=g.srcEvent.target),g.target=Bt}function ie(p,g){var b=g.center,k=p.offsetDelta||{},V=p.prevDelta||{},K=p.prevInput||{};(g.eventType===Ae||K.eventType===$e)&&(V=p.prevDelta={x:K.deltaX||0,y:K.deltaY||0},k=p.offsetDelta={x:b.x,y:b.y}),g.deltaX=V.x+(b.x-k.x),g.deltaY=V.y+(b.y-k.y)}function te(p,g){var b=p.lastInterval||g,k=g.timeStamp-b.timeStamp,V,K,ye,qe;if(g.eventType!=et&&(k>Ct||b.velocity===i)){var nt=g.deltaX-b.deltaX,_t=g.deltaY-b.deltaY,Bt=we(k,nt,_t);K=Bt.x,ye=Bt.y,V=c(Bt.x)>c(Bt.y)?Bt.x:Bt.y,qe=Ie(nt,_t),p.lastInterval=g}else V=b.velocity,K=b.velocityX,ye=b.velocityY,qe=b.direction;g.velocity=V,g.velocityX=K,g.velocityY=ye,g.direction=qe}function ce(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:ge(g),deltaX:p.deltaX,deltaY:p.deltaY}}function ge(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var b=0,k=0,V=0;V<g;)b+=p[V].clientX,k+=p[V].clientY,V++;return{x:l(b/g),y:l(k/g)}}function we(p,g,b){return{x:g/p||0,y:b/p||0}}function Ie(p,g){return p===g?At:c(p)>=c(g)?p<0?tn:nn:g<0?_:x}function Fe(p,g,b){b||(b=H);var k=g[b[0]]-p[b[0]],V=g[b[1]]-p[b[1]];return Math.sqrt(k*k+V*V)}function mt(p,g,b){b||(b=H);var k=g[b[0]]-p[b[0]],V=g[b[1]]-p[b[1]];return Math.atan2(V,k)*180/Math.PI}function vn(p,g){return mt(g[1],g[0],W)+mt(p[1],p[0],W)}function Ui(p,g){return Fe(g[0],g[1],W)/Fe(p[0],p[1],W)}var Fn={mousedown:Ae,mousemove:kt,mouseup:$e},Wi="mousedown",tt="mousemove mouseup";function gt(){this.evEl=Wi,this.evWin=tt,this.pressed=!1,L.apply(this,arguments)}C(gt,L,{handler:function(g){var b=Fn[g.type];b&Ae&&g.button===0&&(this.pressed=!0),b&kt&&g.which!==1&&(b=$e),this.pressed&&(b&$e&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[g],changedPointers:[g],pointerType:Je,srcEvent:g}))}});var Yi={pointerdown:Ae,pointermove:kt,pointerup:$e,pointercancel:et,pointerout:et},Fv={2:fe,3:Me,4:Je,5:Et},bu="pointerdown",xu="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(bu="MSPointerDown",xu="MSPointerMove MSPointerUp MSPointerCancel");function Xo(){this.evEl=bu,this.evWin=xu,L.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}C(Xo,L,{handler:function(g){var b=this.store,k=!1,V=g.type.toLowerCase().replace("ms",""),K=Yi[V],ye=Fv[g.pointerType]||g.pointerType,qe=ye==fe,nt=De(b,g.pointerId,"pointerId");K&Ae&&(g.button===0||qe)?nt<0&&(b.push(g),nt=b.length-1):K&($e|et)&&(k=!0),!(nt<0)&&(b[nt]=g,this.callback(this.manager,K,{pointers:b,changedPointers:[g],pointerType:ye,srcEvent:g}),k&&b.splice(nt,1))}});var Vv={touchstart:Ae,touchmove:kt,touchend:$e,touchcancel:et},Gv="touchstart",zv="touchstart touchmove touchend touchcancel";function wu(){this.evTarget=Gv,this.evWin=zv,this.started=!1,L.apply(this,arguments)}C(wu,L,{handler:function(g){var b=Vv[g.type];if(b===Ae&&(this.started=!0),!!this.started){var k=jv.call(this,g,b);b&($e|et)&&k[0].length-k[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:k[0],changedPointers:k[1],pointerType:fe,srcEvent:g})}}});function jv(p,g){var b=Oe(p.touches),k=Oe(p.changedTouches);return g&($e|et)&&(b=at(b.concat(k),"identifier",!0)),[b,k]}var Hv={touchstart:Ae,touchmove:kt,touchend:$e,touchcancel:et},Bv="touchstart touchmove touchend touchcancel";function Xi(){this.evTarget=Bv,this.targetIds={},L.apply(this,arguments)}C(Xi,L,{handler:function(g){var b=Hv[g.type],k=Uv.call(this,g,b);k&&this.callback(this.manager,b,{pointers:k[0],changedPointers:k[1],pointerType:fe,srcEvent:g})}});function Uv(p,g){var b=Oe(p.touches),k=this.targetIds;if(g&(Ae|kt)&&b.length===1)return k[b[0].identifier]=!0,[b,b];var V,K,ye=Oe(p.changedTouches),qe=[],nt=this.target;if(K=b.filter(function(_t){return le(_t.target,nt)}),g===Ae)for(V=0;V<K.length;)k[K[V].identifier]=!0,V++;for(V=0;V<ye.length;)k[ye[V].identifier]&&qe.push(ye[V]),g&($e|et)&&delete k[ye[V].identifier],V++;if(qe.length)return[at(K.concat(qe),"identifier",!0),qe]}var Wv=2500,Eu=25;function qo(){L.apply(this,arguments);var p=w(this.handler,this);this.touch=new Xi(this.manager,p),this.mouse=new gt(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}C(qo,L,{handler:function(g,b,k){var V=k.pointerType==fe,K=k.pointerType==Je;if(!(K&&k.sourceCapabilities&&k.sourceCapabilities.firesTouchEvents)){if(V)Yv.call(this,b,k);else if(K&&Xv.call(this,k))return;this.callback(g,b,k)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Yv(p,g){p&Ae?(this.primaryTouch=g.changedPointers[0].identifier,Cu.call(this,g)):p&($e|et)&&Cu.call(this,g)}function Cu(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var b={x:g.clientX,y:g.clientY};this.lastTouches.push(b);var k=this.lastTouches,V=function(){var K=k.indexOf(b);K>-1&&k.splice(K,1)};setTimeout(V,Wv)}}function Xv(p){for(var g=p.srcEvent.clientX,b=p.srcEvent.clientY,k=0;k<this.lastTouches.length;k++){var V=this.lastTouches[k],K=Math.abs(g-V.x),ye=Math.abs(b-V.y);if(K<=Eu&&ye<=Eu)return!0}return!1}var Tu=lt(o.style,"touchAction"),Su=Tu!==i,ku="compute",Pu="auto",Ko="manipulation",Vn="none",Ls="pan-x",Fs="pan-y",qi=Kv();function Zo(p,g){this.manager=p,this.set(g)}Zo.prototype={set:function(p){p==ku&&(p=this.compute()),Su&&this.manager.element.style&&qi[p]&&(this.manager.element.style[Tu]=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){S(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),qv(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,b=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var k=this.actions,V=ue(k,Vn)&&!qi[Vn],K=ue(k,Fs)&&!qi[Fs],ye=ue(k,Ls)&&!qi[Ls];if(V){var qe=p.pointers.length===1,nt=p.distance<2,_t=p.deltaTime<250;if(qe&&nt&&_t)return}if(!(ye&&K)&&(V||K&&b&P||ye&&b&I))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function qv(p){if(ue(p,Vn))return Vn;var g=ue(p,Ls),b=ue(p,Fs);return g&&b?Vn:g||b?g?Ls:Fs:ue(p,Ko)?Ko:Pu}function Kv(){if(!Su)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 Ki=1,Pt=2,Zn=4,yn=8,sn=yn,Vs=16,Ht=32;function rn(p){this.options=v({},this.defaults,p||{}),this.id=Te(),this.manager=null,this.options.enable=$(this.options.enable,!0),this.state=Ki,this.simultaneous={},this.requireFail=[]}rn.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=Zi(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=Zi(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var g=this.requireFail;return p=Zi(p,this),De(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=Zi(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 k(V){g.manager.emit(V,p)}b<yn&&k(g.options.event+Nu(b)),k(g.options.event),p.additionalEvent&&k(p.additionalEvent),b>=yn&&k(g.options.event+Nu(b))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=Ht},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(Ht|Ki)))return!1;p++}return!0},recognize:function(p){var g=v({},p);if(!S(this.options.enable,[this,g])){this.reset(),this.state=Ht;return}this.state&(sn|Vs|Ht)&&(this.state=Ki),this.state=this.process(g),this.state&(Pt|Zn|yn|Vs)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Nu(p){return p&Vs?"cancel":p&yn?"end":p&Zn?"move":p&Pt?"start":""}function Ou(p){return p==x?"down":p==_?"up":p==tn?"left":p==nn?"right":""}function Zi(p,g){var b=g.manager;return b?b.get(p):p}function Rt(){rn.apply(this,arguments)}C(Rt,rn,{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,k=g&(Pt|Zn),V=this.attrTest(p);return k&&(b&et||!V)?g|Vs:k||V?b&$e?g|yn:g&Pt?g|Zn:Pt:Ht}});function Qi(){Rt.apply(this,arguments),this.pX=null,this.pY=null}C(Qi,Rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:A},getTouchAction:function(){var p=this.options.direction,g=[];return p&P&&g.push(Fs),p&I&&g.push(Ls),g},directionTest:function(p){var g=this.options,b=!0,k=p.distance,V=p.direction,K=p.deltaX,ye=p.deltaY;return V&g.direction||(g.direction&P?(V=K===0?At:K<0?tn:nn,b=K!=this.pX,k=Math.abs(p.deltaX)):(V=ye===0?At:ye<0?_:x,b=ye!=this.pY,k=Math.abs(p.deltaY))),p.direction=V,b&&k>g.threshold&&V&g.direction},attrTest:function(p){return Rt.prototype.attrTest.call(this,p)&&(this.state&Pt||!(this.state&Pt)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Ou(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Qo(){Rt.apply(this,arguments)}C(Qo,Rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Vn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&Pt)},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 Jo(){rn.apply(this,arguments),this._timer=null,this._input=null}C(Jo,rn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Pu]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,k=p.distance<g.threshold,V=p.deltaTime>g.time;if(this._input=p,!k||!b||p.eventType&($e|et)&&!V)this.reset();else if(p.eventType&Ae)this.reset(),this._timer=h(function(){this.state=sn,this.tryEmit()},g.time,this);else if(p.eventType&$e)return sn;return Ht},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===sn&&(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 ea(){Rt.apply(this,arguments)}C(ea,Rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Vn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&Pt)}});function ta(){Rt.apply(this,arguments)}C(ta,Rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:P|I,pointers:1},getTouchAction:function(){return Qi.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,b;return g&(P|I)?b=p.overallVelocity:g&P?b=p.overallVelocityX:g&I&&(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=Ou(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function Ji(){rn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}C(Ji,rn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ko]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,k=p.distance<g.threshold,V=p.deltaTime<g.time;if(this.reset(),p.eventType&Ae&&this.count===0)return this.failTimeout();if(k&&V&&b){if(p.eventType!=$e)return this.failTimeout();var K=this.pTime?p.timeStamp-this.pTime<g.interval:!0,ye=!this.pCenter||Fe(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!ye||!K?this.count=1:this.count+=1,this._input=p;var qe=this.count%g.taps;if(qe===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=sn,this.tryEmit()},g.interval,this),Pt):sn}return Ht},failTimeout:function(){return this._timer=h(function(){this.state=Ht},this.options.interval,this),Ht},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==sn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function on(p,g){return g=g||{},g.recognizers=$(g.recognizers,on.defaults.preset),new na(p,g)}on.VERSION="2.0.7",on.defaults={domEvents:!1,touchAction:ku,enable:!0,inputTarget:null,inputClass:null,preset:[[ea,{enable:!1}],[Qo,{enable:!1},["rotate"]],[ta,{direction:P}],[Qi,{direction:P},["swipe"]],[Ji],[Ji,{event:"doubletap",taps:2},["tap"]],[Jo]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Zv=1,Iu=2;function na(p,g){this.options=v({},on.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=U(this),this.touchAction=new Zo(this,this.options.touchAction),Mu(this,!0),d(this.options.recognizers,function(b){var k=this.add(new b[0](b[1]));b[2]&&k.recognizeWith(b[2]),b[3]&&k.requireFailure(b[3])},this)}na.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?Iu:Zv},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var b,k=this.recognizers,V=g.curRecognizer;(!V||V&&V.state&sn)&&(V=g.curRecognizer=null);for(var K=0;K<k.length;)b=k[K],g.stopped!==Iu&&(!V||b==V||b.canRecognizeWith(V))?b.recognize(p):b.reset(),!V&&b.state&(Pt|Zn|yn)&&(V=g.curRecognizer=b),K++}},get:function(p){if(p instanceof rn)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(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,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 d(pe(p),function(k){b[k]=b[k]||[],b[k].push(g)}),this}},off:function(p,g){if(p!==i){var b=this.handlers;return d(pe(p),function(k){g?b[k]&&b[k].splice(De(b[k],g),1):delete b[k]}),this}},emit:function(p,g){this.options.domEvents&&Qv(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 k=0;k<b.length;)b[k](g),k++}},destroy:function(){this.element&&Mu(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Mu(p,g){var b=p.element;if(b.style){var k;d(p.options.cssProps,function(V,K){k=lt(b.style,K),g?(p.oldCssProps[k]=b.style[k],b.style[k]=V):b.style[k]=p.oldCssProps[k]||""}),g||(p.oldCssProps={})}}function Qv(p,g){var b=n.createEvent("Event");b.initEvent(p,!0,!0),b.gesture=g,g.target.dispatchEvent(b)}v(on,{INPUT_START:Ae,INPUT_MOVE:kt,INPUT_END:$e,INPUT_CANCEL:et,STATE_POSSIBLE:Ki,STATE_BEGAN:Pt,STATE_CHANGED:Zn,STATE_ENDED:yn,STATE_RECOGNIZED:sn,STATE_CANCELLED:Vs,STATE_FAILED:Ht,DIRECTION_NONE:At,DIRECTION_LEFT:tn,DIRECTION_RIGHT:nn,DIRECTION_UP:_,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:P,DIRECTION_VERTICAL:I,DIRECTION_ALL:A,Manager:na,Input:L,TouchAction:Zo,TouchInput:Xi,MouseInput:gt,PointerEventInput:Xo,TouchMouseInput:qo,SingleTouchInput:wu,Recognizer:rn,AttrRecognizer:Rt,Tap:Ji,Pan:Qi,Swipe:ta,Pinch:Qo,Rotate:ea,Press:Jo,on:O,off:R,each:d,merge:E,extend:y,assign:v,inherit:C,bindFn:w,prefixed:lt});var Jv=typeof e<"u"?e:typeof self<"u"?self:{};Jv.Hammer=on,typeof i=="function"&&i.amd?i(function(){return on}):t.exports?t.exports=on:e[s]=on})(window,document,"Hammer")})(Gc);var em=Gc.exports;const tm=Jp(em);function zc(t){return t*Math.PI/180}function jc(t){return t*180/Math.PI}function Ii(t,e,n,s){const i=t-n,r=e-s;return Math.sqrt(i*i+r*r)}function Hc(t,e,n,s){const i=n-t,r=s-e;return Math.atan2(r,i)}function Bc(t,e){return{x:Math.cos(t)*e,y:Math.sin(t)*e}}function Uc(t,e){const n=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return{x:t/=n,y:e/=n}}const ks=Math.PI*2;function Wc(t,e,n,s){const i=t*s-e*n<0?-1:1;let r=t*n+e*s;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function nm(t,e,n,s,i,r,o,a,l,c){const u=c*(t-n)/2+l*(e-s)/2,h=-l*(t-n)/2+c*(e-s)/2,f=o*o,d=a*a,m=u*u,v=h*h;let y=f*d-f*v-d*m;y<0&&(y=0),y/=f*v+d*m,y=Math.sqrt(y)*(i===r?-1:1);const E=y*o/a*h,C=y*-a/o*u,w=c*E-l*C+(t+n)/2,S=l*E+c*C+(e+s)/2,$=(u-E)/o,O=(h-C)/a,R=(-u-E)/o,le=(-h-C)/a,ue=Wc(1,0,$,O);let pe=Wc($,O,R,le);return r===0&&pe>0&&(pe-=ks),r===1&&pe<0&&(pe+=ks),[w,S,ue,pe]}function sm(t,e){const n=1.3333333333333333*Math.tan(e/4),s=Math.cos(t),i=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[s,i,s-i*n,i+s*n,r+o*n,o-r*n,r,o]}function im(t,e,n,s,i,r,o,a,l){const c=Math.sin(l*ks/360),u=Math.cos(l*ks/360),h=u*(t-n)/2+c*(e-s)/2,f=-c*(t-n)/2+u*(e-s)/2;if(h===0&&f===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const d=h*h/(o*o)+f*f/(a*a);d>1&&(o*=Math.sqrt(d),a*=Math.sqrt(d));const m=nm(t,e,n,s,i,r,o,a,c,u),v=[];let y=m[2],E=m[3];const C=Math.max(Math.ceil(Math.abs(E)/(ks/4)),1);E/=C;for(let w=0;w<C;w++)v.push(sm(y,E)),y+=E;return v.map(w=>{for(let S=0;S<w.length;S+=2){let $=w[S+0],O=w[S+1];$*=o,O*=a;const R=u*$-c*O,le=c*$+u*O;w[S+0]=R+m[0],w[S+1]=le+m[1]}return w})}function Yc(t,e,n,s,i,r){return[t/3+2/3*n,e/3+2/3*s,i/3+2/3*n,r/3+2/3*s,i,r]}function Mi(t,e,n,s){return[t,e,n,s,n,s]}class ht{static createSVGElement(e="path"){return document.createElementNS.call(document,"http://www.w3.org/2000/svg",e)}static createSvgPath(e){const n=this.createSVGElement("path");return n.setAttribute("d",e),n}static downloadFromSVGElement(e,n="shape"){Lc(zp(e),`${n}.svg`)}static downloadFromSVGString(e,n="shape"){Lc($c(e),`${n}.svg`)}static SVGParsedPathArgsLength={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};static isSVGPath(e){return typeof e!="string"?!1:(e=e.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4)}static parseSVGPath(e){const n=[];return e.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,r)=>{let o=i.toLowerCase();const a=$p(r);for(o=="m"&&a.length>this.SVGParsedPathArgsLength[o]&&(n.push([i,...a.splice(0,this.SVGParsedPathArgsLength[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<this.SVGParsedPathArgsLength[o])throw new Error(`SVGPathD ! : ${s}`);n.push([i,...a.splice(0,this.SVGParsedPathArgsLength[o])])}return o=="z"&&n.push([i]),""}),n}static absolutizeSVGPath(e){let n=0,s=0,i=0,r=0;return e.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(l){case"Z":i=n,r=s;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=n=o[1],r=s=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(e){let n=0,s=0,i=0,r=0;return e.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let c=1;c<o.length;)o[c++]-=i,o[c++]-=r}switch(l){case"z":i=n,r=s;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],n+=o[1],s+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(e){let n=[],s=0,i=0,r=0,o=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 y=im(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!y.length)continue;y.forEach((w,S)=>{const[$,O,R,le,ue,pe,De,Oe]=w;m=["C",R,le,ue,pe,De,Oe],S<y.length-1&&n.push(m)});break;case"S":let E=r,C=o;(h=="C"||h=="S")&&(E+=E-c,C+=C-u),m=["C",E,C,m[1],m[2],m[3],m[4]];break;case"T":h=="Q"||h=="T"?(a=r*2-a,l=o*2-l):(a=r,l=o),m=["C",...Yc(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...Yc(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...Mi(r,o,m[1],m[2])];break;case"H":m=["C",...Mi(r,o,m[1],o)];break;case"V":m=["C",...Mi(r,o,r,m[1])];break;case"Z":m=["C",...Mi(r,o,s,i)];break}h=v,r=m[m.length-2],o=m[m.length-1],m.length>4?(c=m[m.length-4],u=m[m.length-3]):(c=r,u=o),n.push(m)}return n}static zvhToLSVGPath(e){let n=[],s=["L",0,0],i;for(let r=0,o=e.length;r<o;r++){let a=e[r];switch(a[0]){case"M":s=["L",a[1],a[2]],n.push(a);break;case"Z":n.push(s);break;case"H":i=n[n.length-1]||["L",0,0],n.push(["L",a[1],i[i.length-1]]);break;case"V":i=n[n.length-1]||["L",0,0],n.push(["L",i[i.length-2],a[1]]);break;default:n.push(a)}}return n}static longhandSVGPath(e){const n={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,i=0,r=0;for(let o=0,a=e.length;o<a;o++){const l=e[o],c=n[l[0]];c&&(l[0]=c.to,s&&(s[0]===c.to?(i=2*Number(s[c.x+2])-Number(s[c.x]),r=2*Number(s[c.x+3])-Number(s[c.x+1])):(i=Number(s[s.length-2]),r=Number(s[s.length-1]))),l.splice(1,0,i,r)),s=l}return e}static SVGPathDataToD(e){return e.map(n=>{switch(n[0].toLowerCase()){case"a":return`${n[0]} ${n[1]},${n[2]} ${n[3]} ${n[4]},${n[5]} ${n[6]},${n[7]}`;case"c":return`${n[0]} ${n[1]},${n[2]} ${n[3]},${n[4]} ${n[5]},${n[6]}`;case"s":case"q":return`${n[0]} ${n[1]},${n[2]} ${n[3]},${n[4]}`;default:return n[0]+" "+n.slice(1).join(",")}}).join(" ")}static absoluteSVGPathD(e){return this.SVGPathDataToD(this.absolutizeSVGPath(this.parseSVGPath(e)))}static walkSVGPathDCacheMap=new Map;static getWalkSVGPathD(e){if(this.walkSVGPathDCacheMap.has(e))return this.walkSVGPathDCacheMap.get(e);const n={at:s=>this.walkSVGPathD(e,s).pos,length:()=>this.walkSVGPathD(e).length};return this.walkSVGPathDCacheMap.set(e,n),n}static walkSVGPathD(e,n){const s=this.longhandSVGPath(this.zvhToLSVGPath(this.absolutizeSVGPath(this.parseSVGPath(e))));function i(f,d){return Math.pow(1-d,3)*u[0]+3*Math.pow(1-d,2)*d*f[1]+3*(1-d)*Math.pow(d,2)*f[3]+Math.pow(d,3)*f[5]}function r(f,d){return Math.pow(1-d,3)*u[1]+3*Math.pow(1-d,2)*d*f[2]+3*(1-d)*Math.pow(d,2)*f[4]+Math.pow(d,3)*f[6]}function o(f,d){return Math.pow(1-d,2)*u[0]+2*(1-d)*d*f[1]+Math.pow(d,2)*f[3]}function a(f,d){return Math.pow(1-d,2)*u[1]+2*(1-d)*d*f[2]+Math.pow(d,2)*f[4]}let l=[0,0],c=[0,0,0],u=[0,0],h=0;for(let f=0,d=s.length;f<d;f++){let m=s[f];if(m[0]==="M"){if(l[0]=m[1],l[1]=m[2],n===0)return{length:h,pos:l}}else if(m[0]==="C"){c[0]=u[0]=l[0],c[1]=u[1]=l[1],c[2]=h;let v=100;for(let y=0;y<=v;y++){let E=y/v,C=i(m,E),w=r(m,E);if(h+=Ii(l[0],l[1],C,w),l[0]=C,l[1]=w,typeof n=="number"&&h>=n){let S=(h-n)/(h-c[2]),$=[l[0]*(1-S)+c[0]*S,l[1]*(1-S)+c[1]*S];return{length:h,pos:$}}c[0]=l[0],c[1]=l[1],c[2]=h}}else if(m[0]==="Q"){c[0]=u[0]=l[0],c[1]=u[1]=l[1],c[2]=h;let v=100;for(let y=0;y<=v;y++){let E=y/v,C=o(m,E),w=a(m,E);if(h+=Ii(l[0],l[1],C,w),l[0]=C,l[1]=w,typeof n=="number"&&h>=n){let S=(h-n)/(h-c[2]),$=[l[0]*(1-S)+c[0]*S,l[1]*(1-S)+c[1]*S];return{length:h,pos:$}}c[0]=l[0],c[1]=l[1],c[2]=h}}else if(m[0]==="L"){if(c[0]=l[0],c[1]=l[1],c[2]=h,h+=Ii(l[0],l[1],m[1],m[2]),l[0]=m[1],l[1]=m[2],typeof n=="number"&&h>=n){let v=(h-n)/(h-c[2]),y=[l[0]*(1-v)+c[0]*v,l[1]*(1-v)+c[1]*v];return{length:h,pos:y}}c[0]=l[0],c[1]=l[1],c[2]=h}}return{length:h,pos:l}}static catmullRom2bezier(e){let n=[];for(let s=0,i=e.length;i-2>s;s+=2){let r;s==0?r=[{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?r=[{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]}]:r=[{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 o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];n.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return n}static findDotsAtSegment(e,n,s,i,r,o,a,l,c){let u=1-c,h=Math.pow(u,3),f=Math.pow(u,2),d=c*c,m=d*c,v=h*e+f*3*c*s+u*3*c*c*r+m*a,y=h*n+f*3*c*i+u*3*c*c*o+m*l,E=e+2*c*(s-e)+d*(r-2*s+e),C=n+2*c*(i-n)+d*(o-2*i+n),w=s+2*c*(r-s)+d*(a-2*r+s),S=i+2*c*(o-i)+d*(l-2*o+i),$=u*e+c*s,O=u*n+c*i,R=u*r+c*a,le=u*o+c*l,ue=90-Math.atan2(E-w,C-S)*180/Math.PI;return(E>w||C<S)&&(ue+=180),{x:v,y,m:{x:E,y:C},n:{x:w,y:S},start:{x:$,y:O},end:{x:R,y:le},alpha:ue}}static findDotAtSegment(e,n,s,i,r,o,a,l,c){const u=1-c;return{x:Math.pow(u,3)*e+Math.pow(u,2)*3*c*s+u*3*c*c*r+Math.pow(c,3)*a,y:Math.pow(u,3)*n+Math.pow(u,2)*3*c*i+u*3*c*c*o+Math.pow(c,3)*l}}static curveDim(e,n,s,i,r,o,a,l){const c=[],u=[[],[]];let h,f,d,m,v,y,E,C;for(let O=0;O<2;++O){if(O===0?(f=6*e-12*s+6*r,h=-3*e+9*s-9*r+3*a,d=3*s-3*e):(f=6*n-12*i+6*o,h=-3*n+9*i-9*o+3*l,d=3*i-3*n),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,C=Math.sqrt(E),!(E<0)&&(v=(-f+C)/(2*h),v>0&&v<1&&c.push(v),y=(-f-C)/(2*h),y>0&&y<1&&c.push(y))}let w=c.length,S;const $=w;for(;w--;)m=c[w],S=1-m,u[0][w]=S*S*S*e+3*S*S*m*s+3*S*m*m*r+m*m*m*a,u[1][w]=S*S*S*n+3*S*S*m*i+3*S*m*m*o+m*m*m*l;return u[0][$]=e,u[1][$]=n,u[0][$+1]=a,u[1][$+1]=l,u[0].length=u[1].length=$+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])}}}}class $n{id;x;y;rotate;scale;vx;vy;ax;ay;mass;XYIsShapeCenter=!1;path2d=new Path2D;isMouseInShape=!1;isDragging=!1;constructor(e){this.id=Ip(),this.x=e?.x||0,this.y=e?.y||0,this.rotate=e?.rotate||0,this.scale=e?.scale||1,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}getBoundingClientRect(){return null}toSVGPathD(){const e=[],n=this.toSVGPathData();return n[0]&&Array.isArray(n[0])?e.push(...n):e.push(n),ht.SVGPathDataToD(e)}distanceTo(e){return Ii(this.x,this.y,e.x,e.y)}angleTo(e){return this.rotate=Hc(this.x,this.y,e.x,e.y),this.rotate}velocityTo(e){return{vx:e.x-this.x,vy:e.y-this.y}}followTo(e,n=3){const s=this.angleTo(e),{x:i,y:r}=Bc(s,n);this.vx=i,this.vy=r,this.nextFrame()}followAccelerationTo(e,n=.05){const s=this.angleTo(e),{x:i,y:r}=Bc(s,n);this.ax=i,this.ay=r,this.nextFrame()}nextFrame(e){const n=e?.gravity??0,s=e?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=n,s>0){const i=Math.atan2(this.vy,this.vx);let r=Math.sqrt(this.vx*this.vx+this.vy*this.vy);r>s?r-=s:r=0,this.vx=Math.cos(i)*r,this.vy=Math.sin(i)*r}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,n){const s=n?.gravity??0,i=n?.friction??1,r=n?.easing??.05,o=e.x-this.x,a=e.y-this.y;this.vx=o*r,this.vy=a*r,this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,n){const s=n?.gravity??0,i=n?.friction??.95,r=n?.spring??.03;(Array.isArray(e)?e:[e]).forEach(a=>{const l=a.x-this.x,c=a.y-this.y,u=l*r,h=c*r;this.vx+=u,this.vy+=h}),this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(e,n){const s=n?.gravity??0,i=n?.friction??.95,r=n?.spring??.03,o=n?.springLength??100,a=this.angleTo(e);this.nextFrameSpringTo(new rt({x:e.x-Math.cos(a)*o,y:e.y-Math.sin(a)*o}),{spring:r,friction:i,gravity:s})}}class Dt extends $n{width;height;borderRadius;centerX;centerY;rMin;rMax;r;constructor(e){super(e),this.width=e.width,this.height=e.height,this.borderRadius=e.borderRadius||0,this.centerX=this.x+this.width/2,this.centerY=this.y+this.height/2,this.rMin=Math.min(this.width,this.height)/2,this.rMax=Math.max(this.width,this.height)/2,this.r=Math.sqrt(this.width*this.width+this.height*this.height)/2}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}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,n){return e>=this.x&&e<=this.x+this.width&&n>=this.y&&n<=this.y+this.height}clone(e){return new Dt({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]}}class rt extends $n{radius;constructor(e){super(e),this.XYIsShapeCenter=!0,this.radius=e?.radius||0}getBoundingClientRect(){return new Dt({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}toSVGPathData(){return["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]}setX(e){this.x=e}setY(e){this.y=e}setXY(e,n){this.x=e,this.y=n}eq(e){return this.x===e.x&&this.y===e.y}midPointBtw(e){return new rt({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}clone(e){return new rt({x:e.x,y:e.y,radius:e.radius})}nextFrameCollisionTo(e){const n=e.x-this.x,s=e.y-this.y;if(Math.sqrt(n*n+s*s)<this.radius+e.radius){const o=Math.atan2(s,n),a=Math.sin(o),l=Math.cos(o),c={x:0,y:0},u=r(n,s,a,l,!0),h=r(this.vx,this.vy,a,l,!0),f=r(e.vx,e.vy,a,l,!0),d=h.x-f.x;h.x=((this.mass-e.mass)*h.x+2*e.mass*f.x)/(this.mass+e.mass),f.x=d+h.x;const m=Math.abs(h.x)+Math.abs(f.x),v=this.radius+e.radius-Math.abs(c.x-u.x);c.x+=h.x/m*v,u.x+=f.x/m*v;const y=r(c.x,c.y,a,l,!1),E=r(u.x,u.y,a,l,!1);e.x=this.x+E.x,e.y=this.y+E.y,this.x=this.x+y.x,this.y=this.y+y.y;const C=r(h.x,h.y,a,l,!1),w=r(f.x,f.y,a,l,!1);this.vx=C.x,this.vy=C.y,e.vx=w.x,e.vy=w.y}function r(o,a,l,c,u=!1){return{x:u?o*c+a*l:o*c-a*l,y:u?a*c-o*l:a*c+o*l}}}nextFrameBounce(e,n){const s=e.x,i=e.y,r=e.x+e.width,o=e.y+e.height,a=n?.bounce??-1;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=a):this.x-this.radius<s&&(this.x=s+this.radius,this.vx*=a),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=a):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=a)}}class rm{constructor(){}static getFormatKeyNames(e){const n=Kp(),s=[];return e.ctrl&&s.push(n?"Cmd":"Ctrl"),e.shift&&s.push("Shift"),e.alt&&s.push("Alt"),typeof e.key=="string"?s.push(fo(e.key)):Array.isArray(e.key)&&(e.key.map(i=>fo(i)),s.push(...e.key)),s}static matchKeyScheme(e,n){const s=e.ctrl??!1,i=e.shift??!1,r=e.alt??!1;if(e.exact)return(s===n.metaKey||s===n.ctrlKey)&&i===n.shiftKey&&r===n.altKey;const o=[];return s&&o.push(s===n.metaKey||s===n.ctrlKey),i&&o.push(i===n.shiftKey),r&&o.push(r===n.altKey),o.every(a=>a)}static on(e,n){if(e?.key===void 0||e?.key===null)return n;const s=e?.target??window;let i=!1;const r=this.getFormatKeyNames(e),o=a=>{if(a.stopPropagation(),!i&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&r.find(l=>l.toLowerCase()===a.key.toLowerCase())&&this.matchKeyScheme(e,a)){a.preventDefault();const l=n(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),s.removeEventListener("keyup",c)};s.addEventListener("keyup",c)}};return n.title=e?.title??"",n.formatedKeyNames=r,n.pause=()=>i=!0,n.restart=()=>i=!1,n.removeListener=()=>s.removeEventListener("keydown",o),s.addEventListener("keydown",o),n}}class xe extends Ac{container;mousePoint;hammer;domEventRemoveListeners=[];constructor(e=document.documentElement,n=!0){super(),this.container=e,this.hammer=new tm(this.container),this.mousePoint=new rt({x:0,y:0}),n&&this.start()}_emitDebounce=Fp((e,...n)=>super.emit(e,...n),50);emit(e,...n){switch(e){case"panLeft":case"panRight":this._emitDebounce(e,...n);break;default:super.emit(e,...n);break}return this}static singleton;static globalScrollChangeCallbacks=[];static get page(){if(xe.singleton)return xe.singleton;xe.singleton=new xe,xe.singleton.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{jp().then(n=>Hp(n[0])).then(n=>{xe.singleton.emit("openFile",n)}).catch(n=>{xe.singleton.emit("openFileError",n)})}),xe.singleton.registerMatchMediaChange("(prefers-color-scheme: dark)");const e=()=>xe.globalScrollChangeCallbacks.forEach(n=>n());return xe.singleton.registerGlobalScrollChange=n=>{xe.globalScrollChangeCallbacks.push(n),xe.globalScrollChangeCallbacks.length==1&&document.addEventListener("scroll",e)},xe.singleton.removeGlobalScrollChange=n=>{const s=xe.globalScrollChangeCallbacks.findIndex(i=>i==n);s>=0&&(xe.globalScrollChangeCallbacks.splice(s,1),xe.globalScrollChangeCallbacks.length==0&&document.removeEventListener("scroll",e))},xe.singleton}start(){this.initMouseEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventRemoveListeners(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParentWhenScrollChange()}restart(){this.destroy(),this.start()}destroy(){this.domEventRemoveListeners.forEach(e=>e()),this.removeAllListeners()}addDOMEventRemoveListeners(e){this.domEventRemoveListeners.push(e)}setMousePoint(e){const n=Xp(this.container,e);return this.mousePoint.x=n.x,this.mousePoint.y=n.y,n}initMouseEventListeners(){const e=M=>{this.emit("mouseDown",M),this.container.style.userSelect="none"},n=M=>{this.emit("mouseUp",M),this.container.style.userSelect=""},s=M=>{this.emit("mouseMove",M)},i=M=>{this.emit("mouseOver",M)},r=M=>{this.emit("mouseOut",M),this.container.style.userSelect=""},o=M=>{this.emit("mouseClick",M)},a=M=>{this.emit("mouseDoubleClick",M)},l=M=>{this.emit("mouseWheel",M)},c=M=>{this.emit("mouseContextMenu",M)},u=M=>{this.emit("touchStart",M),this.container.style.userSelect="none"},h=M=>{this.emit("touchEnd",M),this.container.style.userSelect=""},f=M=>{this.emit("touchCancel",M),this.container.style.userSelect=""},d=M=>{this.emit("touchMove",M)},m=M=>{this.emit("pointerDown",M),this.container.style.userSelect="none"},v=M=>{this.emit("pointerUp",M),this.container.style.userSelect=""},y=M=>{this.emit("pointerCancel",M),this.container.style.userSelect=""},E=M=>{this.emit("pointerMove",M)},C=M=>{this.emit("pan",M)},w=M=>{this.emit("panStart",M),this.container.style.userSelect="none"},S=M=>{this.emit("panMove",M)},$=M=>{this.emit("panEnd",M),this.container.style.userSelect=""},O=M=>{this.emit("panCancel",M),this.container.style.userSelect=""},R=M=>{this.emit("panLeft",M)},le=M=>{this.emit("panRight",M)},ue=M=>{this.emit("panUp",M),this.container.style.userSelect=""},pe=M=>{this.emit("panDown",M),this.container.style.userSelect="none"},De=M=>{this.emit("pinch",M)},Oe=M=>{this.emit("press",M)},at=M=>{this.emit("rotate",M)},lt=M=>{this.emit("swipe",M)},We=M=>{this.emit("tap",M)},Te=M=>{!M.target||this.container==M.target||this.container.contains(M.target)||this.emit("tapOutSide",M)};this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",n),this.container.addEventListener("mousemove",s),this.container.addEventListener("mouseover",i),this.container.addEventListener("mouseout",r),this.container.addEventListener("click",o),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",y),this.container.addEventListener("pointermove",E),this.hammer.on("pan",C),this.hammer.on("panstart",w),this.hammer.on("panmove",S),this.hammer.on("panend",$),this.hammer.on("pancancel",O),this.hammer.on("panleft",R),this.hammer.on("panright",le),this.hammer.on("panup",ue),this.hammer.on("pandown",pe),this.hammer.on("pinch",De),this.hammer.on("press",Oe),this.hammer.on("rotate",at),this.hammer.on("swipe",lt),this.hammer.on("tap",We),document.addEventListener("pointerdown",Te,!1);const he=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",n),this.container.removeEventListener("mousemove",s),this.container.removeEventListener("mouseover",i),this.container.removeEventListener("mouseout",r),this.container.removeEventListener("click",o),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",y),this.container.removeEventListener("pointermove",E),this.hammer.off("pan",C),this.hammer.off("panstart",w),this.hammer.off("panmove",S),this.hammer.off("panend",$),this.hammer.off("pancancel",O),this.hammer.off("panleft",R),this.hammer.off("panright",le),this.hammer.off("panup",ue),this.hammer.off("pandown",pe),this.hammer.off("pinch",De),this.hammer.off("press",Oe),this.hammer.off("rotate",at),this.hammer.off("swipe",lt),this.hammer.off("tap",We),document.removeEventListener("pointerdown",Te,!1),document.removeEventListener("touchstart",Te,!1),document.removeEventListener("mousedown",Te,!1)};return this.addDOMEventRemoveListeners(he),he}registerKeyDown(e,n,s){const i=rm.on(e,o=>(n(o,i.formatedKeyNames,i.pause,i.restart),s)),r=()=>{i.removeListener?.()};return this.addDOMEventRemoveListeners(r),r}registerResizeObserver(){const e=new ResizeObserver(s=>{const{width:i,height:r}=s[0].contentRect;this.emit("resize",i,r)});e.observe(this.container);const n=()=>{e.unobserve(this.container)};return this.addDOMEventRemoveListeners(n),n}registerMatchMediaChange(e){let n="";switch(e){case"(prefers-color-scheme: dark)":n="matchMediaChangePrefersColorSchemeDark";break;default:n=e;break}const s=r=>{this.emit(n,r.matches)};window.matchMedia(e).addEventListener("change",s);const i=()=>{window.matchMedia(e).removeEventListener("change",s)};return this.addDOMEventRemoveListeners(i),i}registerElementDisplayInParentWhenScrollChange(e){const n={threshold:e?.threshold||.5,root:e?.parentElement},s=new IntersectionObserver((r,o)=>{let a=r[0];if(r.length>1){const c=r.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=n.threshold?this.emit("showInParent"):this.emit("showOffParent")},n);s.observe(this.container);const i=()=>{s.unobserve(this.container)};return this.addDOMEventRemoveListeners(i),i}registerPullDownRefresh(e){const n=e?.distance||50;let s=0,i=0;return this.captureMove({start:r=>{s=this.setMousePoint(r).y},move:()=>{i=this.mousePoint.y-s,i>0&&i<n&&this.emit("pullDownIng",i)},end:()=>{i>=n&&this.emit("pullDown")}})}registerPullUpLoading(e){const n=e?.distance||50;let s=0,i=0;return this.captureMove({start:r=>{s=this.setMousePoint(r).y},move:()=>{i=s-this.mousePoint.y,i>0&&i<n&&this.emit("pullUpIng",i)},end:()=>{i>=n&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(e){return this.captureMoveUsePointer(e)}captureMoveUsePointer(e){const n=o=>{this.container.setPointerCapture(o.pointerId),this.container.style.userSelect="none",e?.start?.(o)},s=o=>{this.container.style.userSelect="",e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("pointerDown",n),this.on("pointerUp",s),this.on("pointerCancel",s),this.on("pointerMove",i);const r=()=>{this.off("pointerDown",n),this.off("pointerUp",s),this.off("pointerCancel",s),this.off("pointerMove",i)};return this.addDOMEventRemoveListeners(r),r}captureMoveUseMouse(e){const n=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",s,!1),this.container.style.userSelect="none",e?.start?.(o)},s=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",s,!1),this.container.style.userSelect="",e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("mouseDown",n);const r=()=>{this.off("mouseDown",n)};return this.addDOMEventRemoveListeners(r),r}captureMoveUseTouch(e){const n=o=>{o.preventDefault(),e?.start?.(o)},s=o=>{e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("touchStart",n),this.on("touchEnd",s),this.on("touchCancel",s),this.on("touchMove",i);const r=()=>{this.off("touchStart",n),this.off("touchEnd",s),this.off("touchCancel",s),this.off("touchMove",i)};return this.addDOMEventRemoveListeners(r),r}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 vo{video;constructor(e){this.video=e}setSrcObject(e){this.video.addEventListener("loadedmetadata",n=>{n.target}),this.video.srcObject=e}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{this.setSrcObject(e)})}static async videoMediaChangeSupport(){return new Promise(e=>{const n=document.createElement("iframe"),s=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>e(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",s.append(i),n.width="5",n.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(n),n.contentDocument?.body.append(s),setTimeout(()=>{n.width="15"}),setTimeout(()=>{n.remove(),e(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(n=>{e.play().then(()=>{e.autoplay=!0,n(!0)}).catch(()=>{vo.setAutoPlayWhenClick(e),n(!1)})})}static setAutoPlayWhenClick(e){function n(){e.autoplay=!0,e.play(),document.removeEventListener("click",n),document.removeEventListener("touchend",n)}document.addEventListener("click",n),document.addEventListener("touchend",n)}}class om extends Ac{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(e){super(),this.source=e}parse(){const e=Op(this.source);if(e===0){this.emit("finish");return}let n,s,i=Pc(this.source,0);for(let r=1;r<e;r++)n=s,s=i,i=Pc(this.source,r),this.raw+=s,s&&this.step(s,i,n);i&&this.step(i,void 0,s),this.emit("finish")}step(e,n,s){e==`
55
- `&&this.emit("newline"),this.act(e,n,s)}act(e,n,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":Jt("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=="-"&&n=="-"){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=="]"&&n==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}e=="eof"&&(this.mode="cdata end",this.act(e,n,s)),this.textchunk+=e;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":n==">"||e=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":e=="-"&&s=="-"&&n==">"?(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=="?"&&n==">"){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(!Jt("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,n,s)}break;case"close tag name start":Jt("whitespace",e)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(e,n,s));break;case"close tag name":if(Jt("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(Jt("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+=n,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":Jt("whitespace",e)||(this.mode="attr",this.nodename="",this.act(e,n,s));break;case"attr":if(Jt("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(!Jt("whitespace",e)){if(this.mode="attr value",this.quote="",e=="'"||e=='"'){this.quote=e;return}this.act(e,n,s)}break;case"attr value":if(Jt("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 Xc(t,e){if(typeof e<"u")window.localStorage.setItem(t,e);else return window.localStorage.getItem(t)??void 0}xe.page.on("matchMediaChangePrefersColorSchemeDark",t=>{yo(t?"dark":"light")}),am();function yo(t){Xc("colorScheme",t),document.documentElement.classList.toggle("dark",t=="dark")}function am(){const t=Xc("colorScheme");if(t=="dark"||t=="light")return yo(t),t;{const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return yo(e),e}}const ne={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"},lm=()=>`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`,cm=function(t,e=1){const n=t>>16&255,s=t>>8&255,i=t&255,r=e<0?0:e>1?1:e;return r===1?"rgb("+n+","+s+","+i+")":"rgba("+n+","+s+","+i+","+r+")"},qc=function(t){return t[0]==="#"&&(t=t.slice(1)),parseInt(t,16)},um=function(t,e=1){const n=qc(t);return cm(n,e)};function Ps(t,e){let n=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16);n==0&&(n=32),s==0&&(s=32),i==0&&(i=32),n=n*(100+e)/100,s=s*(100+e)/100,i=i*(100+e)/100,n=n<255?n:255,s=s<255?s:255,i=i<255?i:255,n=Math.round(n),s=Math.round(s),i=Math.round(i);const r=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),o=s.toString(16).length==1?"0"+s.toString(16):s.toString(16),a=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+r+o+a}const Di=new Map;async function hm(t){return new Promise((e,n)=>{fm(t,(s,i)=>s?n(s):e({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const fm=(t,e)=>{if(Di.has(t))return e(null,Di.get(t));const n=new Image;n.onload=function(){Di.set(t,{width:n.naturalWidth||n.width,height:n.naturalHeight||n.height,element:n}),e(null,Di.get(t))},n.onerror=function(s){e(s,null)},n.src=t},Kc=[1,0,0,1,0,0],Zc=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class ot{value;matrix3d;isEverTo3d=!1;_prev_translate_z=0;_prev_rotate=0;_prev_rotate_x=0;_prev_rotate_y=0;_prev_rotate_z=0;_prev_scale_z=1;constructor(e=Kc){this.value=Array.from(e),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(Kc),this.matrix3d=this.toMatrix3D(),this}transformPoint(e,n,s=0,i=0){const r=e-s,o=n-i;return e=r*this.value[0]+o*this.value[2]+this.value[4],n=r*this.value[1]+o*this.value[3]+this.value[5],[e+s,n+i]}fromString(e){const n=kc("number",e);return n.length===6?n.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix3D(e=this.matrix3d){const n=[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=n,e):new Wn(n)}clone(){return new ot(this.value)}multiply(e){const n=this.value;let s;e instanceof ot?s=e.value:s=e;const i=n[0]*s[0]+n[2]*s[1],r=n[1]*s[0]+n[3]*s[1],o=n[0]*s[2]+n[2]*s[3],a=n[1]*s[2]+n[3]*s[3],l=n[0]*s[4]+n[2]*s[5]+n[4],c=n[1]*s[4]+n[3]*s[5]+n[5];return n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=l,n[5]=c,this}inverse(){const e=new ot(this.value),n=e.value,s=1/(n[0]*n[3]-n[1]*n[2]),i=n[3]*s,r=-n[1]*s,o=-n[2]*s,a=n[0]*s,l=s*(n[2]*n[5]-n[3]*n[4]),c=s*(n[1]*n[4]-n[0]*n[5]);return n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=l,n[5]=c,e}offset(e=0,n=0){return[e-this.value[4],n-this.value[5]]}translate(e,n){return this.matrix3d.translate(e,n,0),this.multiply([1,0,0,1,e,n])}translateTo(e,n){const s=this.offset(e,n);return this.translate(s[0],s[1])}translateX(e){return this.translate(e,0)}translateXTo(e){return this.translateTo(e,this.value[5])}translateY(e){return this.translate(0,e)}translateYTo(e){return this.translateTo(this.value[4],e)}translateZ(e){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,e)}translateZTo(e){return this.translateZ(e-this._prev_translate_z),this._prev_translate_z=e,this}translate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.translate(e,n,s)}translate3dTo(e,n,s){return this.translate3d(e-this.matrix3d.value[12],e-this.matrix3d.value[13],s-this._prev_translate_z),this._prev_translate_z=s,this}rotate(e,n=0,s=0){const i=zc(e),r=+Math.cos(i).toFixed(9),o=+Math.sin(i).toFixed(9);return this.multiply([r,o,-o,r,n,s]),this.translate(-n,-s),this}rotateTo(e,n=0,s=0){return this.rotate(e-this._prev_rotate,n,s),this._prev_rotate=e,this}rotateX(e){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e)}rotateXTo(e){return this.rotateX(e-this._prev_rotate_x),this._prev_rotate_x=e,this}rotateY(e){return this.isEverTo3d=!0,this.matrix3d.rotate("y",e)}rotateYTo(e){return this.rotateY(e-this._prev_rotate_y),this._prev_rotate_y=e,this}rotateZ(e){return this.isEverTo3d=!0,this.matrix3d.rotate("z",e)}rotateZTo(e){return this.rotateZ(e-this._prev_rotate_z),this._prev_rotate_z=e,this}rotate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e).rotate("y",n).rotate("z",s)}rotate3dTo(e,n,s){return this.rotate3d(e-this._prev_rotate_x,n-this._prev_rotate_y,s-this._prev_rotate_z),this._prev_rotate_x=e,this._prev_rotate_y=n,this._prev_rotate_z=s,this}scale(e,n=e,s=0,i=0){return this.matrix3d.scale(e,n,1),this.translate(s,i),this.multiply([e,0,0,n,0,0]),this.translate(-s,-i),this}scaleTo(e,n=e,s=0,i=0){return this.scale(e/this.value[0],n/this.value[3],s,i),this}scaleX(e){return this.scale(e,1)}scaleXTo(e){return this.scale(e/this.value[0],1)}scaleY(e){return this.scale(1,e)}scaleYTo(e){return this.scale(1,e/this.value[3])}scaleZ(e){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,e)}scaleZTo(e){return this.scaleZ(e/this._prev_scale_z),this._prev_scale_z=e,this}scale3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.scale(e,n,s)}scale3dTo(e,n,s){return this.scale3d(e/this.matrix3d.value[0],n/this.matrix3d.value[5],s/this._prev_scale_z),this._prev_scale_z=s,this}skew(e,n=e){const s=e*Math.PI/180,i=n*Math.PI/180,r=Math.tan(s),o=Math.tan(i);return this.multiply([1,o,r,1,0,0])}skewTo(e,n=e){return this.skew(e-this.value[2],n-this.value[1])}skewX(e){return this.skew(e,this.value[1])}skewXTo(e){return this.skewTo(e,this.value[1])}skewY(e){return this.skew(this.value[2],e)}skewYTo(e){return this.skewTo(this.value[2],e)}skewZ(e){return this}skewZTo(e){return this}skew3d(e,n,s){return this}skew3dTo(e,n,s){return this}split(){const e={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};e.dx=this.value[4],e.dy=this.value[5];const n=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];e.scalex=Math.sqrt(Math.pow(n[0][0],2)+Math.pow(n[0][1],2));let s=Uc(n[0][0],n[0][1]);n[0][0]=s.x,n[0][1]=s.y,e.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*e.shear,n[1][1]-n[0][1]*e.shear],e.scaley=Math.sqrt(Math.pow(n[1][0],2)+Math.pow(n[1][1],2)),s=Uc(n[1][0],n[1][1]),n[1][0]=s.x,n[1][1]=s.y,e.shear/=e.scaley;const i=-n[0][1],r=n[1][1];return r<0?(e.rotate=jc(Math.acos(r)),i<0&&(e.rotate=360-e.rotate)):e.rotate=jc(Math.asin(i)),e.isSimple=!+e.shear.toFixed(9)&&(e.scalex.toFixed(9)==e.scaley.toFixed(9)||!e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e}static split2(e){const n=Math.atan2(e[1],e[0]),s=Math.pow(e[0],2)+Math.pow(e[1],2),i=Math.sqrt(s),r=(e[0]*e[3]-e[2]*e[1])/i;return{rotation:n/(Math.PI/180),scaleX:i,scaleY:r,x:e[4],y:e[5]}}static getGroupCoords(e,n){const s=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],c=n[0],u=n[1],h=n[2],f=n[3],d=n[4],m=n[5],v=c*f,y=u*h,E=(h*i-s*f)/(y-v),C=(c*i-s*u)/(v-y),w=(h*o-r*f)/(y-v),S=(c*o-r*u)/(v-y),$=(h*(l-m)+f*(d-a))/(y-v),O=(c*(l-m)+u*(d-a))/(v-y),R=[E,C,w,S,$,O];return ot.split2(R)}toTransformString(){const e=this.split();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx&&e.dy?"t"+[e.dx,e.dy]:"")+(e.scalex!=1||e.scaley!=1?"s"+[e.scalex,e.scaley,0,0]:"")+(e.rotate?"r"+[e.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(e=>Mc(e,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}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 Wn{value;constructor(e=Zc){this.value=Array.from(e)}unit(){return this.value=Array.from(Zc),this}fromString(e){const n=kc("number",e);return n.length===16?n.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(e){const n=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return e?(e.value=n,e):new ot(n)}multiplyMatrix(e){const n=this.value[0],s=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=this.value[6],c=this.value[7],u=this.value[8],h=this.value[9],f=this.value[10],d=this.value[11],m=this.value[12],v=this.value[13],y=this.value[14],E=this.value[15],C=e.value[0],w=e.value[1],S=e.value[2],$=e.value[3],O=C*n+w*o+S*u+$*m,R=C*s+w*a+S*h+$*v,le=C*i+w*l+S*f+$*y,ue=C*r+w*c+S*d+$*E;return new ot([O,R,le,ue,0,0])}multiply(e){const n=new ot([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),s=new ot([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),i=new ot([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),r=new ot([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),o=this.multiplyMatrix(n),a=this.multiplyMatrix(s),l=this.multiplyMatrix(i),c=this.multiplyMatrix(r);return this.value[0]=o.value[0],this.value[1]=o.value[1],this.value[2]=o.value[2],this.value[3]=o.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,n=0,s=0){return this.multiply(new Wn([1,0,0,0,0,1,0,0,0,0,1,0,e,n,s,1]))}scale(e=1,n=1,s=1){return this.multiply(new Wn([e,0,0,0,0,n,0,0,0,0,s,0,0,0,0,1]))}rotate(e,n){const s=zc(n),i=Math.sin,r=Math.cos;let o;switch(e){case"x":o=[1,0,0,0,0,r(s),i(s),0,0,-i(s),r(s),0,0,0,0,1];break;case"y":o=[r(s),0,-i(s),0,0,1,0,0,i(s),0,r(s),0,0,0,0,1];break;case"z":o=[r(s),i(s),0,0,-i(s),r(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new Wn(o))}toString(){return`matrix3d(${this.value.map(e=>Mc(e,6)).join(",")})`}}function Ai(t){const e=new ot;return t.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(n,s,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const r=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&r.push(parseFloat(""+i[o]));switch(s.toLowerCase()){case"t":case"translate":e.translate(r[0],r[1]);break;case"translatex":e.translateX(r[0]);break;case"translatey":e.translateY(r[0]);break;case"translatez":e.translateZ(r[0]);break;case"translate3d":e.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":e.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":e.rotateX(r[0]);break;case"rotatey":e.rotateY(r[0]);break;case"rotatez":e.rotateZ(r[0]);break;case"rotate3d":e.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":e.scale(r[0],r[1]??r[0]);break;case"scalex":e.scaleX(r[0]);break;case"scaley":e.scaleY(r[0]);break;case"scalez":e.scaleZ(r[0]);break;case"scale3d":e.scale3d(r[0],r[1],r[2]);break;case"skew":e.skew(r[0],r[1]??0);break;case"skewx":e.skewX(r[0]);break;case"skewy":e.skewY(r[0]);break;case"skewz":e.skewZ(r[0]);break;case"skew3d":e.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":e.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]);break;case"matrix3d":e.matrix3d.multiply(new Wn(r));break}return""}),e}class dm extends om{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(e){super(e),this.on("tag",(n,s)=>{switch(this.text="",this.currentItem={type:n},n){case"g":this.groups.push(this.currentItem);break}this.processAttrs(n,s)}),this.on("text",n=>{if(this.currentItem.type=="style"){try{const s=Vp(n);for(let i of s.stylesheet.rules)for(let r of i.declarations)for(let o of i.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${r.property}:${r.value}`)}catch{console.error("CAN'T parse css text: "+n)}return}this.text+=n}),this.on("/tag",(n,s)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let r="",o="";for(let a in this.groups[i])a=="transform"?r=this.groups[i].transform:a=="class"&&this.globalStyles["."+this.groups[i][a]]?o=this.globalStyles["."+this.groups[i][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[i][a]]?o=this.globalStyles["#"+this.groups[i][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[i][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=r:this.currentItem.transform+=" "+r,typeof this.currentItem.style>"u"?this.currentItem.style=o:this.currentItem.style=o+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),xo(this.currentItem.style,this.currentItem,wo)}switch(this.processAttrs(n,s),n){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,n){let s=[],i;switch(e){case"svg":let r="",o="";if(n.width&&n.height)r=n.width,o=n.height;else if(n.viewBox){const a=n.viewBox.split(/\s+/gi);a.length==4&&(r=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}r&&o&&this.items.push({type:"viewbox",width:r,height:o});break;case"line":typeof n.x1=="number"&&typeof n.y1=="number"&&typeof n.x2=="number"&&typeof n.y2=="number"&&(this.currentItem.path="M"+[n.x1,n.y1,n.x2,n.y2]);break;case"stop":i={},n.style&&xo(n.style,i),i.offset=i.offset||n.offset,i.color=i["stop-color"]||n["stop-color"],i.opacity=i["stop-opacity"]||n["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+bo(parseFloat(n.x1),parseFloat(n.y1),parseFloat(n.x2),parseFloat(n.y2),parseFloat(n.x1)+100,parseFloat(n.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 r in n){const o=n[r];if(wo.includes(r)&&(this.currentItem[r]=o),r==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:r,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:r,stops:[]})),r==="style"&&xo(o,this.currentItem,wo),r==="transform"&&(this.currentItem.transform=o+(this.currentItem.transform||" ")),r==="fill"){const a=o.match(/url\(#([^)]+)\)/);if(a){const l=a[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}r==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+o+"z"),r==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=o),r==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=o)}}addToItems(){this.items.push(this.currentItem)}}function bo(t,e,n,s,i,r){if(typeof i>"u"||typeof r>"u"){const o=t-n,a=e-s;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return bo(t,e,i,r)-bo(n,s,i,r)}function xo(t,e,n){const s=(t+"").split(";"),i=/^\s+|\s+$/g;for(let r=0,o=s.length;r<o;r++){let a=s[r].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!n||n.includes(l))&&(e[l]=a[1].replace(i,""))}}const wo=["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"];class ft extends $n{fromX;fromY;constructor(e){super(e),this.fromX=e?.fromX||0,this.fromY=e?.fromY||0}static fromSVGPathData(e,n){if(e.length<3)throw new Error("Line 参数个数错误");if(e[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new ft({x:e[1],y:e[2],fromX:n?.x,fromY:n?.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=Hc(this.fromX,this.fromY,this.x,this.y);if(e===0){const n=Math.min(this.x,this.fromX),s=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),r=Math.max(this.y,this.fromY);return new Dt({x:n,y:s,width:i-n,height:r-s})}else{const n=Math.sin(e),s=Math.cos(e),i=s*this.fromX-n*this.fromY,r=s*this.x-n*this.y,o=s*this.fromY+n*this.fromX,a=s*this.y+n*this.x;return new Dt({x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)})}}}class Eo extends ft{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,n){if(e.length<7)throw new Error("CubicBezier 参数个数错误");if(e[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Eo({c1x:e[1],c1y:e[2],c2x:e[3],c2y:e[4],x:e[5],y:e[6],fromX:n?.x,fromY:n?.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=ht.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new Dt({x:e.min.x,y:e.min.y,width:e.max.x-e.min.x,height:e.max.y-e.min.y})}base3(e,n,s,i,r){const o=-3*n+9*s-9*i+3*r,a=e*o+6*n-12*s+6*i;return e*a-3*n+3*s}length(e=1){e=Math.max(0,Math.min(e,1));const n=e/2,s=12,i=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],r=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let o=0;for(let a=0;a<s;a++){const l=n*i[a]+n,c=this.base3(l,this.fromX,this.c1x,this.c2x,this.x),u=this.base3(l,this.fromY,this.c1y,this.c2y,this.y),h=c*c+u*u;o+=r[a]*Math.sqrt(h)}return n*o}}const Co=Eo;class To extends ft{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,n){if(e.length<8)throw new Error("Arc 参数个数错误");if(e[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new To({rx:e[1],ry:e[2],xAxisRotate:e[3],largeArcFlag:e[4],sweepFlag:e[5],x:e[6],y:e[7],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}}const Qc=To;class Ri{prevPoint;startPoint;isClosed=!1;lines=[];normalizedLines=[];constructor(){}setStartPoint(e,n){return this.startPoint=new rt({x:e,y:n}),this.prevPoint=this.startPoint,this}addLine(e){return this.lines.push(e),this}static fromSVGPathD(e,n){if(!ht.isSVGPath(e))throw new Error("Not an SVG path!");return this.fromSVGPathData(ht.parseSVGPath(e),n)}static fromSVGPathData(e,n){const s=new Ri,i=ht.normalizeSVGPath(ht.absolutizeSVGPath(e));for(let o=0,a=i.length;o<a;o++){const l=i[o],c=l[0];if(o==0&&c=="M"){s.setStartPoint(l[1],l[2]);continue}if(o==a-1&&c=="Z"){s.isClosed=!0;continue}s.addLine(new Co({c1x:l[1],c1y:l[2],c2x:l[3],c2y:l[4],x:l[5],y:l[6]}))}s.normalize();const r=Ai(n??"");return s.transform(r)}normalize(){this.normalizedLines=[];const e=ht.normalizeSVGPath(ht.absolutizeSVGPath(this.lines.map(n=>n.toSVGPathData())));for(let n=0,s=e.length;n<s;n++){const i=e[n];this.normalizedLines.push(Co.fromSVGPathData(i,this.prevPoint)),this.prevPoint=new rt({x:i[i.length-2],y:i[i.length-1]})}return this}toSVGPathData(){const e=[];this.startPoint&&e.push(this.startPoint.toSVGPathData());for(let n=0,s=this.normalizedLines.length;n<s;n++)e.push(this.normalizedLines[n].toSVGPathData());return this.isClosed&&e.push(["Z"]),e}toSVGPathD(){return ht.SVGPathDataToD(this.toSVGPathData())}transform(e){if(this.startPoint){const[n,s]=e.transformPoint(this.startPoint.x,this.startPoint.y);this.setStartPoint(n,s)}return this.normalizedLines=this.normalizedLines.map(n=>{const[s,...i]=n.toSVGPathData(),r=[s];for(let o=0,a=i.length;o<a;o+=2){const[l,c]=e.transformPoint(i[o],i[o+1]);r.push(l,c)}return Co.fromSVGPathData(r)}),this}translate(e,n){const s=new ot().translate(e,n);return this.transform(s)}rotate(e,n=0,s=0){const i=new ot().rotate(e,n,s);return this.transform(i)}scale(e,n=e,s=0,i=0){const r=new ot().scale(e,n,s,i);return this.transform(r)}skew(e,n=0){const s=new ot().skew(e,n);return this.transform(s)}trim(){const e=this.getBoundingClientRect();return this.translate(-e.x,-e.y),this}toCanvasContext(e){this.normalizedLines.length&&(this.startPoint&&(e.beginPath(),e.moveTo(this.startPoint.x,this.startPoint.y)),this.normalizedLines.forEach(n=>{const[s,...i]=n.toSVGPathData();e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}),this.isClosed&&e.closePath())}getBoundingClientRect(){let e=0,n=0,s=[],i=[];this.startPoint&&(e=this.startPoint.x,n=this.startPoint.y,s.push(e),i.push(n)),this.normalizedLines.forEach(c=>{const u=ht.curveDim(e,n,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,n=c.y});const r=Math.min.apply(0,s),o=Math.min.apply(0,i),a=Math.max.apply(0,s),l=Math.max.apply(0,i);return new Dt({x:r,y:o,width:a-r,height:l-o})}getTotalLength(){return Tc?ht.createSvgPath(this.toSVGPathD()).getTotalLength():ht.getWalkSVGPathD(this.toSVGPathD()).length()}getPointAtLength(e){if(Tc)return ht.createSvgPath(this.toSVGPathD()).getPointAtLength(e);{const n=ht.getWalkSVGPathD(this.toSVGPathD()),[s,i]=n.at(e);return{x:s,y:i}}}isPointInPath(e,n,s){return e.isPointInPath(new Path2D(this.toSVGPathD()),n,s)}isPointInStroke(e,n,s){return e.isPointInStroke(new Path2D(this.toSVGPathD()),n,s)}static generateRosetta(e,n,s,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=new Ri;o.setStartPoint(e,n);const a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=e+2*s*Math.cos(c),h=n+2*s*Math.sin(c);o.addLine(new Qc({x:u,y:h,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.addLine(new Qc({x:e,y:n,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o.normalize(),o}}class So extends $n{svgWidth=0;svgHeight=0;width=0;height=0;pgas=[];history=[];save(){this.history.push(Ni(this.pgas))}restore(){const e=this.history.pop();e&&(this.pgas=e)}current(){return Ni(this.pgas)}constructor(e){super(e),this.width=e.width;const n=new dm(e.svg).parse();for(let s=0,i=n.length;s<i;s++){const r=n[s];if(r.type=="viewbox"&&r.width&&r.height){this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height);const l=this.svgWidth/this.svgHeight;this.height=this.width/l;continue}if(r.type!="path")continue;const o={};for(const l in r)l==="type"||l==="path"||l==="transform"||(o[l]=r[l]);const a=Ri.fromSVGPathD(r.path,r.transform);this.width&&this.svgWidth&&a.scale(this.width/this.svgWidth),this.pgas.push({pg:a,attrs:o})}}getBoundingClientRect(){return new Dt({x:this.x,y:this.y,width:this.width,height:this.height})}toSVGPathData(){return this.pgas.map(e=>e.pg.toSVGPathData()).reduce((e,n)=>e.concat(n),[])}toCanvasContext(e){for(let n=0,s=this.pgas.length;n<s;n++){e.save();const i=this.pgas[n];this.SVGAttrsToCanvasAttrs(e,i.attrs),i.pg.toCanvasContext(e),i.attrs.stroke!=="none"&&e.stroke(),i.attrs.fill!=="none"&&e.fill(),e.restore()}}SVGAttrsToCanvasAttrs(e,n){for(const s in n){const i=n[s];switch(s){case"fill":e.fillStyle=i;break;case"stroke":e.strokeStyle=i;break;case"stroke-width":e.lineWidth=Number(i);break;case"stroke-linecap":e.lineCap=i;break;case"stroke-linejoin":e.lineJoin=i;break}}}}class ko extends $n{points;constructor(e=[]){if(!e.length)throw new Error("points can't be null");super(e[0]),this.points=e}toSVGPathData(){const e=[];for(let n=0,s=this.length;n<s;n++)e.push([n===0?"M":"L",this.points[n].x,this.points[n].y]);return e}toCanvasContext(e){const n=this.points.length;if(n<3)throw new Error("points length must >= 3");e.beginPath();const s=(this.points[0].x+this.points[n-1].x)/2,i=(this.points[0].y+this.points[n-1].y)/2;e.moveTo(s,i);let r=0;for(;r<n-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;e.quadraticCurveTo(this.points[r].x-this.x,this.points[r].y-this.y,o-this.x,a-this.y)}e.quadraticCurveTo(this.points[r].x-this.x,this.points[r].y-this.y,s-this.x,i-this.y)}get length(){return this.points.length}addPoint(e){this.points.push(e)}getPoint(e){return this.points[e]}isContainPoint(e,n){const s=this.length;let i=!1;const r=2e-10;for(let o=0,a=s-1;o<s;a=o,o++){const l=this.points[o].x,c=this.points[o].y,u=this.points[a].x,h=this.points[a].y;if(l===e&&c===n||u===e&&h===n||n===c&&n===h)return!0;if(n>=c&&n<h||n<c&&n>=h){const f=(u-l)/(h-c),d=l+f*(n-c);if(d===e||Math.abs(d-e)<r)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 generateInMultiplePoint(e,n,s,i,r=1){const o=new ko;for(let a=0;a<=r*s;a+=1){const l=Math.floor(a/r)/s*2*Math.PI,c=e+Math.cos(l)*i,u=n+Math.sin(l)*i;o.addPoint(new rt({x:c,y:u}))}return o}}class Po extends ft{cx;cy;constructor(e){super(e),this.cx=e.cx,this.cy=e.cy}static fromSVGPathData(e,n){if(e.length<5)throw new Error("QuadraticBezier 参数个数错误");if(e[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new Po({cx:e[1],cy:e[2],x:e[3],y:e[4],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(e,n){const s=typeof n?.isLineThrough=="boolean"?n?.isLineThrough:!0;if(e.beginPath(),e.moveTo(this.fromX,this.fromY),s){const i=this.cx*2-(this.fromX+this.x)/2,r=this.cy*2-(this.fromY+this.y)/2;e.quadraticCurveTo(i,r,this.x,this.y)}else e.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}}class Jc extends $n{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",-50,-25],["l",0,-25],["l",0,-50],["l",50,0],["l",0,50],["l",0,25],["l",-50,25],["l",-50,-25],["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 pm extends $n{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",4,24],["l",8,16],["l",14,10],["l",15,0],["l",9,-10],["l",2,0],["l",-2,0],["l",-9,-10],["l",-15,0],["l",-14,10],["l",-8,16],["l",-4,24],["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 t=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const n=new Date().getTime(),s=Math.max(0,16-(n-t)),i=window.setTimeout(function(){e(n+s)},s);return t=n+s,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const mm=t=>{let e=window.requestAnimationFrame(function n(s){e=window.requestAnimationFrame(n),t(s,e)});return()=>window.cancelAnimationFrame(e)};class gm{id=0;renders={};cancelFn;constructor(){}get length(){let e=0;for(let n in this.renders)e++;return e}register(e){const n=this.id++;this.renders[n]=e,this.run()}registerAccurateSetTimeout(e,n=0){let s;this.register(i=>(s||(s=i),i-s>=n?(e(),!1):!0))}run(){this.cancelFn||(this.cancelFn=mm((e,n)=>{const s=[];for(let i in this.renders)this.renders[i](e)===!1&&s.push(parseInt(i));for(let i of s)delete this.renders[i];!this.length&&this.cancelFn&&(this.cancelFn(),this.cancelFn=void 0)}))}}const dt=new gm;let Ns;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ns=function(){const t=process.hrtime();return t[0]*1e3+t[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ns=self.performance.now.bind(self.performance):Date.now!==void 0?Ns=Date.now:Ns=function(){return new Date().getTime()};const Yn=Ns;class Os{static _nextId=0;static nextId(){return Os._nextId++}}const $i={Linear:{None:function(t){return t}},Ease:{In:function(t){return Math.pow(t,1.7)}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}},Exponential:{In:function(t){return t===0?0:Math.pow(1024,t-1)},Out:function(t){return t===1?1:1-Math.pow(2,-10*t)},InOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return t===0?0:t===1?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return t===0?0:t===1?1:(t*=2,t<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1)}},Back:{In:function(t){return t===1?1:t*t*((1.70158+1)*t-1.70158)},Out:function(t){return t===0?0:--t*t*((1.70158+1)*t+1.70158)+1},InOut:function(t){const e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-$i.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?$i.Bounce.In(t*2)*.5:$i.Bounce.Out(t*2-1)*.5+.5}},generatePow:function(t=4){return t=t<Number.EPSILON?Number.EPSILON:t,t=t>1e4?1e4:t,{In:function(e){return e**t},Out:function(e){return 1-(1-e)**t},InOut:function(e){return e<.5?(e*2)**t/2:(1-(2-e*2)**t)/2+.5}}},random:function(t){return Math.random()},createStep:function(t){return function(e){return Math.floor(e*t)/t}},createNoisyEasing:function(t,e=.1){const n=1-e;return function(s){return e*Math.random()+n*t(s)}}},No=$i,Is={Utils:{Linear:function(t,e,n){return(e-t)*n+t},Factorial:function(){const t=[1];return function(e){let n=1;if(t[e])return t[e];for(let s=e;s>1;s--)n*=s;return t[e]=n,n}}(),Bernstein:function(t,e){const n=Is.Utils.Factorial;return n(t)/n(e)/n(t-e)},CatmullRom:function(t,e,n,s,i){const r=(n-t)*.5,o=(s-e)*.5,a=i*i,l=i*a;return(2*e-2*n+r+o)*l+(-3*e+3*n-2*r-o)*a+r*i+e}},Linear:function(t,e){const n=t.length-1,s=n*e,i=Math.floor(s),r=Is.Utils.Linear;return e<0?r(t[0],t[1],s):e>1?r(t[n],t[n-1],n-s):r(t[i],t[i+1>n?n:i+1],s-i)},Bezier:function(t,e){let n=0;const s=t.length-1,i=Math.pow,r=Is.Utils.Bernstein;for(let o=0;o<=s;o++)n+=i(1-e,s-o)*i(e,o)*t[o]*r(s,o);return n},CatmullRom:function(t,e){const n=t.length-1;let s=n*e,i=Math.floor(s);const r=Is.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(i=Math.floor(s=n*(1+e))),r(t[(i-1+n)%n],t[i],t[(i+1)%n],t[(i+2)%n],s-i)):e<0?t[0]-(r(t[0],t[0],t[1],t[1],-s)-t[0]):e>1?t[n]-(r(t[n],t[n],t[n-1],t[n-1],s-n)-t[n]):r(t[i?i-1:0],t[i],t[n<i+1?n:i+1],t[n<i+2?n:i+2],s-i)}},Oo=Is;class eu{_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=Yn(),n=!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 r=this._tweens[s[i]],o=!n;r&&r.update(e,o)===!1&&!n&&delete this._tweens[s[i]]}s=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const Tt=new eu;class _m{constructor(e,n=Tt){this._object=e,this._group=n}_id=Os.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=No.Linear.None;_interpolationFunction=Oo.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,n){return this._valuesEnd=Object.create(e),n!==void 0&&(this._durationTime=n),this}duration(e=1e3){return this._durationTime=e,this}start(e=Yn()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}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,n,s,i){for(const r in s){const o=e[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(s[r]);if(!(l==="undefined"||l==="function")){if(c){let u=s[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),s[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){n[r]=a?[]:{};for(const u in o)n[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,n[r],s[r],i[r])}else typeof n[r]>"u"&&(n[r]=o),a||(n[r]*=1),c?i[r]=s[r].slice().reverse():i[r]=n[r]||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=Yn()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=Yn()){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,n=this._chainedTweens.length;e<n;e++)this._chainedTweens[e].stop();return this}group(e=Tt){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=No.Linear.None){return this._easingFunction=e,this}interpolation(e=Oo.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=Yn(),n=!0){if(this._isPaused)return!0;let s,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>r)return!1;n&&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 o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),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,n,s,i){for(const r in s){if(n[r]===void 0)continue;const o=n[r]||0;let a=s[r];const l=Array.isArray(e[r]),c=Array.isArray(a);!l&&c?e[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(e[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(e[r]=o+(a-o)*i))}}_handleRelativeValue(e,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?e+parseFloat(n):parseFloat(n)}_swapEndStartRepeatValues(e){const n=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]=n}}const vm=_m,ym=Os.nextId,bm=Tt.getAll.bind(Tt),xm=Tt.removeAll.bind(Tt),wm=Tt.add.bind(Tt),Em=Tt.remove.bind(Tt),Cm=Tt.update.bind(Tt),se={now:Yn,Sequence:Os,Easing:No,Interpolation:Oo,Group:eu,Tween:vm,nextId:ym,getAll:bm,removeAll:xm,add:wm,remove:Em,update:Cm};function tu(t){switch(t){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 Tm={attributeName:["display"],values:[["block","block"]]},wt={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Ye{currentPredefinedAnimateName;currentPredefinedAnimateArgs;objects=[];currentObjects=[];isRunning=!1;constructor(){}destroy(){}hasObjects(){return this.objects.length>0}fromDOM(e){return Array.isArray(e)||(e=[e]),this.objects=[],e.forEach(n=>{this.objects.push({width:parseFloat(Z.getStyle(n,"width")),height:parseFloat(Z.getStyle(n,"height")),el:n,originCSSObject:{}})}),this}static isRunningGlobalTween=!1;static runGlobalTween(e){Ye.isRunningGlobalTween||dt.register(()=>(Ye.isRunningGlobalTween=se.update(e?.()),Ye.isRunningGlobalTween))}static toTween(e,n,s){const i=s?.onUpdate??(()=>{}),r=s?.onStart??(()=>{}),o=s?.onComplete??(()=>{}),a=s?.duration??1e3,l=s?.delay??0,c=s?.easeFunction??se.Easing.Linear.None,u=s?.repeat??0,h=s?.yoyo??!1,f=new se.Tween(e).to(n,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(r).onUpdate(function(d,m){i(d,m)}).onComplete(o);return s?.interpolationFunction&&f.interpolation(s.interpolationFunction),{tween:f,startAuto:d=>{f.start(d?.()),dt.register(()=>{const m=f.update(d?.());if(s?.precision){let v=!0;for(let y in e)po(e[y],n[y],s.precision)||(v=!1);return v?!1:m}return m})}}}static toTweenCSS(e,n,s,i){const r={_matrix:Ai(Z.getStyle(e,"transform")??"")},o=i?.onUpdate??(()=>{});return Ye.toTween(n,s,Object.assign(i??{},{onUpdate:(a,l)=>{for(let c in a)Ye.setCSSObjectTransformUseMatrix(c,a[c],r);e.style.transform=r.transform,o(a,l)}}))}static setCSSObjectTransformUseMatrix(e,n,s={},i){switch(e){case"translate":s._matrix.translate(n[0]??0,n[1]??0);break;case"translateTo":s._matrix.translateTo(n[0]??0,n[1]??0);break;case"translateX":s._matrix.translateX(n??0);break;case"translateXTo":s._matrix.translateXTo(n??0);break;case"translateY":s._matrix.translateY(n??0);break;case"translateYTo":s._matrix.translateYTo(n??0);break;case"translateZ":s._matrix.translateZ(n??0);break;case"translateZTo":s._matrix.translateZTo(n??0);break;case"translate3d":s._matrix.translate3d(n[0]??0,n[1]??0,n[2]??0);break;case"translate3dTo":s._matrix.translate3dTo(n[0]??0,n[1]??0,n[2]??0);break;case"rotate":typeof n=="number"?s._matrix.rotate(n??0):s._matrix.rotate(n[0]??0,n[1]??0,n[2]??0);break;case"rotateTo":typeof n=="number"?s._matrix.rotateTo(n??0):s._matrix.rotateTo(n[0]??0,n[1]??0,n[2]??0);break;case"rotateX":s._matrix.rotateX(n??0);break;case"rotateXTo":s._matrix.rotateXTo(n??0);break;case"rotateY":s._matrix.rotateY(n??0);break;case"rotateYTo":s._matrix.rotateYTo(n??0);break;case"rotateZ":s._matrix.rotateZ(n??0);break;case"rotateZTo":s._matrix.rotateZTo(n??0);break;case"rotate3d":s._matrix.rotate3d(n[0]??0,n[1]??0,n[2]??0);break;case"rotate3dTo":s._matrix.rotate3dTo(n[0]??0,n[1]??0,n[2]??0);break;case"scale":typeof n=="number"?s._matrix.scale(n??1):s._matrix.scale(n[0]??1,n[1]??1,n[2]??0,n[3]??0);break;case"scaleTo":typeof n=="number"?s._matrix.scaleTo(n??1):s._matrix.scaleTo(n[0]??1,n[1]??1,n[2]??0,n[3]??0);break;case"scaleX":s._matrix.scaleX(n??1);break;case"scaleXTo":s._matrix.scaleXTo(n??1);break;case"scaleY":s._matrix.scaleY(n??1);break;case"scaleYTo":s._matrix.scaleYTo(n??1);break;case"scaleZ":s._matrix.scaleZ(n??1);break;case"scaleZTo":s._matrix.scaleZTo(n??1);break;case"scale3d":s._matrix.scale3d(n??1);break;case"scale3dTo":s._matrix.scale3dTo(n??1);break;case"skew":typeof n=="number"?s._matrix.skew(n??0):s._matrix.skew(n[0]??0,n[1]??0);break;case"skewTo":typeof n=="number"?s._matrix.skewTo(n??0):s._matrix.skewTo(n[0]??0,n[1]??0);break;case"skewX":s._matrix.skewX(n??0);break;case"skewXTo":s._matrix.skewXTo(n??1);break;case"skewY":s._matrix.skewY(n??0);break;case"skewYTo":s._matrix.skewYTo(n??1);break;case"skewZ":case"skewZTo":case"skew3d":case"skew3dTo":break;default:i&&!Object.prototype.hasOwnProperty.call(i.originCSSObject,e)&&(i.originCSSObject[e]=Z.getStyle(i.el,e)),Object.assign(s,{[e]:`${n??""}`});break}return Object.assign(s,{transform:s._matrix.toString()}),s}_addCurrentObject(e=Tm,n=wt,s=0,i,r=!1){const o=n.keyTimes??[0,1],a=[];o.forEach((c,u)=>{u>0&&a.push(tu(n.easeName??"linear"))});const l=n.dur??300;return this.currentObjects=r?[]:this.currentObjects,this.currentObjects.push({objectIndex:s,sequenceType:i,attributeName:e.attributeName,values:e.values,immediate:e.immediate||!1,begin:n.begin??0,dur:l,keyTimes:o,realKeyTimes:o.map(c=>l*c),keySplines:a,repeatCount:n.repeatCount??1,direction:n.direction??"normal",fill:n.fill??"freeze",onComplete:n.onComplete}),this}_resetGroupCurrentObjects(e,n,s,i,r=wt,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=mo(o,0,h);let f=o-1;f=mo(f,0,h);let d=o+1;d=mo(d,0,h);const m=this.objects[o],v=this.objects[f],y=this.objects[d];if(v&&f!==o){const E=e(v);E&&(this._addCurrentObject(E,r,f,"prev",a),a=!1,l=!0)}if(m){const E=n(m);E&&(this._addCurrentObject(E,r,o,"current",a),a=!1,c=!0)}if(y&&d!==o){const E=s(y);E&&(this._addCurrentObject(E,r,d,"next",a),a=!1,u=!0)}this.objects.forEach((E,C)=>{if(!(C==f&&l||C==o&&c||C==d&&u)){const w=i(E);w&&(this._addCurrentObject(w,r,C,"other",a),a=!1)}})}toCSS(e,...n){if(!this.hasObjects()||this.isRunning)return;switch(this.currentPredefinedAnimateName=e,this.currentPredefinedAnimateArgs=n,this[e](...n),this.objects[0].el&&this.objects[0].el.parentElement&&(this.objects[0].el.parentElement.style.position=Z.getStyle(this.objects[0].el.parentElement,"transform")||"relative",this.objects[0].el.parentElement.style.perspective=Z.getStyle(this.objects[0].el.parentElement,"perspective")||"1000px"),e){default:this.objects.forEach((r,o)=>{Z.setStyle(r.el,Object.assign(r?.originCSSObject??{},{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"}))});break}let s=0;const i=()=>{this.isRunning=!0,this.currentObjects.forEach((r,o)=>{const a=this.objects[r.objectIndex];let l=[],c=[];Array.isArray(r.attributeName)?(l=r.attributeName,c=r.values):r.attributeName&&(l=[r.attributeName],c=[r.values]);const u=r.keyTimes.length;let h=r.begin;r.keyTimes.forEach((f,d)=>{if(d==0||r.immediate){const m={_matrix:Ai("")};l.forEach((v,y)=>{const E=c[y][r.direction=="reverse"?u-1-d:d];Ye.setCSSObjectTransformUseMatrix(v,E,m,a)}),Z.setStyle(a.el,Object.assign(m,{transition:"all 0ms!important"}))}else dt.registerAccurateSetTimeout(((m,v,y)=>()=>{const E={_matrix:Ai("")};l.forEach((C,w)=>{const S=c[w][v.direction=="reverse"?u-1-m:m];Ye.setCSSObjectTransformUseMatrix(C,S,E,y)}),Z.setStyle(y.el,Object.assign(E,{transition:`all ${v.realKeyTimes[m]}ms cubic-bezier(${v.keySplines[m-1].join(",")})`}))})(d,r,a),h+1),h+=r.realKeyTimes[d]}),dt.registerAccurateSetTimeout(((f,d)=>()=>{f.fill==="remove"&&Z.setStyle(a.el,a.originCSSObject??{}),d==this.currentObjects.length-1&&(f.onComplete?.(),this.isRunning=!1,(typeof f.repeatCount=="number"&&++s<f.repeatCount||f.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentPredefinedAnimateName===e&&i()}))})(r,o),r.begin+r.dur)})};i()}slideLeft(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[s.width,0],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[s.width,0],[s.width,0]]],immediate:!0}),e,n)}slideRight(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-s.width,0],[0,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-s.width,0],[-s.width,0]]],immediate:!0}),e,n)}slideDown(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-s.height],[0,-s.height]]],immediate:!0}),e,n)}slideUp(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,s.height],[0,s.height]]],immediate:!0}),e,n)}flipLeft(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(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,n)}flipRight(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(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,n)}flipDown(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(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,n)}flipUp(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(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,n)}popIn(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(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,n)}popOut(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(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,n)}rotate(e=wt,n=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const s=e.degree??360;this._resetGroupCurrentObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}static flipCSS(e,n,s=wt){const i=e.getBoundingClientRect(),r=n.getBoundingClientRect(),o=Z.getStyle(e,"backgroundColor"),a=Z.getStyle(n,"backgroundColor");n.style.transition="none",n.style.left=""+i.left,n.style.top=""+i.top,n.style.width=i.width+"px",n.style.height=i.height+"px",o&&(n.style.backgroundColor=o),dt.registerAccurateSetTimeout(()=>{n.style.transition=`all ${s.dur}ms cubic-bezier(${tu(s.easeName??"linear").join(",")})`,n.style.left=""+r.left,n.style.top=""+r.top,n.style.width=r.width+"px",n.style.height=r.height+"px",a&&(n.style.backgroundColor=a)},s.begin)}}const nu=Sm("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 Sm(t,e=10){const n={},s=t.split(",");for(let i=0;i<s.length;i+=2){const r="&"+s[i+1]+";",o=parseInt(s[i],e);n[r]="&#"+o+";"}return n["\\xa0"]="&#160;",n}function pt(t,e){const n=Object.keys(e);for(let s=0;s<n.length;s++)t=t.replace(new RegExp("{"+n[s]+"}","gi"),""+e[n[s]]);return t}function Li(t){let e,n;if(!t)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",n=0;n<12;n++)e+=s[Math.floor(Math.random()*s.length)];while(t[e]);return e}function km(t){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[t]||e.start}function Pm(t){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}const Ms={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 Io{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}addColorStop(e,n){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+e),n.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n);r&&(s.setAttribute("stop-color",pt("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),s.setAttribute("stop-opacity",r[4]))}else s.setAttribute("stop-color",n);this.__root.appendChild(s)}}class su{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}}class Fi{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:n=500,height:s=500,enableMirroring:i=!1}){this.enableMirroring=i,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=n,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(Ms);for(let n=0,s=e.length;n<s;n++){const i=e[n];this[i]=Ms[i].canvas}}__getStyleState(){const e={},n=Object.keys(Ms);for(let s=0,i=n.length;s<i;s++){const r=n[s];e[r]=this[r]}return e}__applyStyleState(e){const n=Object.keys(e);for(let s=0,i=n.length;s<i;s++){const r=n[s];this[r]=e[r]}}__createElement(e,n={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",e),r=Object.keys(n);s&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,n[a])}return i}__applyStyleToCurrentElement(e){let n=this.__currentElement;const s=this.__currentElementsToStyle;s&&(n.setAttribute(e,""),n=s.element,s.children.forEach(r=>{r.setAttribute(e,"")}));const i=Object.keys(Ms);for(let r=0;r<i.length;r++){const o=Ms[i[r]],a=this[i[r]];if(o.apply){if(a instanceof su){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])}n.setAttribute(o.apply,pt("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Io)n.setAttribute(o.apply,pt("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(e)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.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);n.setAttribute(o.svgAttr,pt("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),n.setAttribute(o.svgAttr+"-opacity",""+u)}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=e+"-"+o.svgAttr,n.getAttribute(l)))continue;l&&n.setAttribute(l,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let n=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(n)&&(n=n.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const i=Object.keys(nu);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=nu[a],c=new RegExp(a,"gi");c.test(n)&&(n=n.replace(c,l))}}return n}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),n=this.__closestGroupOrSvg();this.__groupStack.push(n),n.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 n=this.__styleStack.pop();n&&this.__applyStyleState(n)}__addTransform(e){const n=this.__closestGroupOrSvg();if(n.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:n,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");n.appendChild(i),this.__currentElement=i}let s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=e,this.__currentElement.setAttribute("transform",s)}scale(e,n){n===void 0&&(n=e),this.__addTransform(pt("scale({x},{y})",{x:e,y:n}))}rotate(e){const n=e*180/Math.PI;this.__addTransform(pt("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))}translate(e,n){this.__addTransform(pt("translate({x},{y})",{x:e,y:n}))}transform(e,n,s,i,r,o){this.__addTransform(pt("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:n,c:s,d:i,e:r,f:o}))}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,n){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:n},this.__addPathCommand(pt("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,n){this.__currentPosition={x:e,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(pt("L {x} {y}",this.__currentPosition)):this.__addPathCommand(pt("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,n,s,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(pt("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:n,cp2x:s,cp2y:i,x:r,y:o}))}quadraticCurveTo(e,n,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(pt("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:n,x:s,y:i}))}normalize(e){const n=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/n,e[1]/n]}arcTo(e,n,s,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===e&&a===n||e===s&&n===i||r===0){this.lineTo(e,n);return}const l=this.normalize([o-e,a-n]),c=this.normalize([s-e,i-n]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(e,n);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=r/Math.sin(h/2),m=e+d*f[0],v=n+d*f[1],y=[-l[1],l[0]],E=[c[1],-c[0]],C=function($){const O=$[0];return $[1]>=0?Math.acos(O):-Math.acos(O)},w=C(y),S=C(E);this.lineTo(m+y[0]*r,v+y[1]*r),this.arc(m,v,r,w,S)}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,n,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,n),this.lineTo(e+s,n),this.lineTo(e+s,n+i),this.lineTo(e,n+i),this.lineTo(e,n),this.closePath()}fillRect(e,n,s,i){const r=this.__createElement("rect",{x:e,y:n,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(e,n,s,i){const r=this.__createElement("rect",{x:e,y:n,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const n=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],i=s.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&s.removeChild(i[r]);this.__currentElement=s,this.__groupStack=[],n&&this.__addTransform(n)}clearRect(e,n,s,i){if(e===0&&n===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:e,y:n,width:s,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(e,n,s,i){const r=this.__createElement("linearGradient",{id:Li(this.__ids),x1:e+"px",x2:s+"px",y1:n+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new Io(r,this)}createRadialGradient(e,n,s,i,r,o){const a=this.__createElement("radialGradient",{id:Li(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:e+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Io(a,this)}__parseFont(){const n=/^\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:n[1]||"normal",size:n[4]||"10px",family:n[6]||"sans-serif",weight:n[3]||"normal",decoration:n[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(e,n){if(e.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),s.appendChild(n),s}return n}__applyText(e,n,s,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:n,y:s,"text-anchor":km(this.textAlign),"dominant-baseline":Pm(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(e,n,s){this.__applyText(e,n,s,"fill")}strokeText(e,n,s){this.__applyText(e,n,s,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,n,s,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=e+s*Math.cos(r),l=n+s*Math.sin(r),c=e+s*Math.cos(i),u=n+s*Math.sin(i),h=o?0:1;let f=0,d=r-i;d<0&&(d+=2*Math.PI),o?f=d>Math.PI?0:1:f=d>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(pt("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(),n=this.__createElement("clipPath"),s=Li(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),n.setAttribute("id",s),n.appendChild(this.__currentElement),this.__SVGdefs.appendChild(n),e.setAttribute("clip-path",pt("url(#{id})",{id:s})),e.appendChild(i),this.__currentElement=i}drawImage(...e){let n=e[0],s,i,r,o,a=0,l=0,c,u,h,f,d,m,v,y;if(e.length===3)s=e[1],i=e[2],c=n.width,u=n.height,r=c,o=u;else if(e.length===5)s=e[1],i=e[2],r=e[3],o=e[4],c=n.width,u=n.height;else if(e.length===9)a=e[1],l=e[2],c=e[3],u=e[4],s=e[5],i=e[6],r=e[7],o=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const E=this.__closestGroupOrSvg();this.__currentElement;const C="translate("+s+", "+i+")";if(n instanceof Fi){if(h=n.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)y=f.childNodes[0].getAttribute("id"),this.__ids[y]=y,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const w=d.getAttribute("transform");let S;w?S=w+" "+C:S=C,d.setAttribute("transform",S),E.appendChild(d)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==n.width||u!==n.height)&&(v=this.__document.createElement("canvas"),v.width=r,v.height=o,v.getContext("2d")?.drawImage(n,a,l,c,u,0,0,r,o),n=v),m.setAttribute("transform",C),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),E.appendChild(m))}createPattern(e,n){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Li(this.__ids);let r;return s.setAttribute("id",i),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+e.width),r.setAttribute("height",""+e.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),s.appendChild(r),this.__SVGdefs.appendChild(s)):e instanceof Fi&&(s.setAttribute("width",""+e.width),s.setAttribute("height",""+e.height),s.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new su(s,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Nm{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;matrixs=[];hasSetCustomLineWidth=!1;hasSetCustomFillStyle=!1;constructor(e){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),this.customContext=new Fi({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(e){this.hasSetCustomLineWidth=!0,this.context.lineWidth=e,this.customContext.lineWidth=e}get lineWidth(){return this.context.lineWidth}set lineCap(e){this.context.lineCap=e,this.customContext.lineCap=e}get lineCap(){return this.context.lineCap}set lineJoin(e){this.context.lineJoin=e,this.customContext.lineCap=e}get lineJoin(){return this.context.lineJoin}set lineDashOffset(e){this.context.lineDashOffset=e,this.customContext.lineDashOffset=e}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(e){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){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}fill(e){return e?this.context.fill(e):(this.context.fill(),this.customContext.fill()),this}fillRect(e,n,s,i){return this.context.fillRect(e,n,s,i),this.customContext.fillRect(e,n,s,i),this}fillText(e,n,s,i){return this.context.fillText(e,n,s,i),this.customContext.fillText(e,n,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,n,s,i){return this.context.strokeText(e,n,s,i),this.customContext.strokeText(e,n,s),this}strokeRect(e,n,s,i){return this.context.strokeRect(e,n,s,i),this.customContext.strokeRect(e,n,s,i),this}clearRect(e=0,n=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(e,n,s,i),this.customContext.clearRect(e,n,s,i),this}save(){return this.context.save(),this.customContext.save(),this.path2Ds.push(this.currentPath2D),this.matrixs.push(this.currentMatrix),this.currentPath2D=new Path2D,this.currentMatrix=new DOMMatrix,this}restore(){return this.context.restore(),this.customContext.restore(),this.hasSetCustomLineWidth=!1,this.hasSetCustomFillStyle=!1,this.currentPath2D=this.path2Ds.pop()||new Path2D,this.currentMatrix=this.matrixs.pop()||new DOMMatrix,this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this.currentPath2D.closePath(),this}addPath(e=this.currentPath2D,n=this.currentMatrix){const s=new Path2D;s.addPath(e,n),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,n){return this.context.translate(e,n),this.customContext.translate(e,n),this.currentMatrix.translate(e,n),this.addPath(),this}rotate(e){return this.context.rotate(e),this.customContext.rotate(e),this.currentMatrix.rotate(e),this.addPath(),this}scale(e,n=e){return this.context.scale(e,n),this.customContext.scale(e,n),this.currentMatrix.scale(e,n),this.addPath(),this}moveTo(e,n){return this.context.moveTo(e,n),this.customContext.moveTo(e,n),this.currentPath2D.moveTo(e,n),this}lineTo(e,n){return this.context.lineTo(e,n),this.customContext.lineTo(e,n),this.currentPath2D.lineTo(e,n),this}arc(e,n,s,i,r,o){return this.context.arc(e,n,s,i,r,o),this.customContext.arc(e,n,s,i,r,o?-1:1),this.currentPath2D.arc(e,n,s,i,r,o),this}arcTo(e,n,s,i,r){return this.context.arcTo(e,n,s,i,r),this.customContext.arcTo(e,n,s,i,r),this.currentPath2D.arcTo(e,n,s,i,r),this}ellipse(e,n,s,i,r,o,a,l){return this.context.ellipse(e,n,s,i,r,o,a,l),this.currentPath2D.ellipse(e,n,s,i,r,o,a,l),this}quadraticCurveTo(e,n,s,i){return this.context.quadraticCurveTo(e,n,s,i),this.customContext.quadraticCurveTo(e,n,s,i),this.currentPath2D.quadraticCurveTo(e,n,s,i),this}bezierCurveTo(e,n,s,i,r,o){return this.context.bezierCurveTo(e,n,s,i,r,o),this.customContext.bezierCurveTo(e,n,s,i,r,o),this.currentPath2D.bezierCurveTo(e,n,s,i,r,o),this}rect(e,n,s,i){return this.context.rect(e,n,s,i),this.customContext.rect(e,n,s,i),this.currentPath2D.rect(e,n,s,i),this}createLinearGradient(e,n,s,i,r){const o=this.context.createLinearGradient(e,n,s,i),a=this.customContext.createLinearGradient(e,n,s,i);return r&&Object.keys(r).forEach(l=>{const c=parseFloat(l);o.addColorStop(c,r[c]),a.addColorStop(c,r[c])}),{gradient:o,gradientCustom:a}}createRadialGradient(e,n,s,i,r,o,a){const l=this.context.createRadialGradient(e,n,s,i,r,o),c=this.customContext.createRadialGradient(e,n,s,i,r,o);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,...n){if(n.length===0)this.context.drawImage(e,0,0);else if(n.length===2){const s=n[0],i=n[1];this.context.drawImage(e,s,i)}else if(n.length===4){const s=n[0],i=n[1],r=n[2],o=n[3];this.context.drawImage(e,s,i,r,o)}else if(n.length===8){const s=n[0],i=n[1],r=n[2],o=n[3],a=n[4],l=n[5],c=n[6],u=n[7];this.context.drawImage(e,s,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+n.length);return this.customContext.drawImage(e,...n),this}getImageData(e=0,n=0,s=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(e,n,s,i,r)}putImageData(e,n=0,s=0){return this.context.putImageData(e,n,s)}toRawSVG(){const e=this.customContext.getSerializedSvg(!0),n=this.customContext.getSvg();return{raw:e,element:n}}}const Om=Nm;let iu=class{app;ctx;shapes=[];isMouseDown=!1;draggingShapeID="";removes=[];constructor(e){this.app=e,this.ctx=new Om(this.app.container),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.draggingShapeID="",this.setCursor()},move:()=>{this.setCursor()}})}setCursor(){this.draggingShapeID?this.app.container.style.cursor="grabbing":this.shapes.filter(e=>e.shape.isMouseInShape&&e.dragMouseMove).length?this.app.container.style.cursor="grab":this.app.container.style.cursor="default"}flushShapes(e=[]){return this.shapes=[],Ap(e)?this.shapes.push(...e):this.shapes.push(e),this}draw(){return this.removes.forEach(e=>e()),this.shapes.forEach(e=>{if(this.ctx.save(),e.followMouseMove&&(!po(e.shape.x,this.app.mousePoint.x,5)||!po(e.shape.y,this.app.mousePoint.y,5))&&(e.shape.angleTo(this.app.mousePoint),e.shape.followTo(this.app.mousePoint)),e.dragFreeEaseTo&&(this.isMouseDown||e.shape.nextFrameEaseTo(new rt({x:e.dragFreeEaseTo.targetX,y:e.dragFreeEaseTo.targetY}),{easing:e.dragFreeEaseTo?.easing??.05})),e.clickInPath&&e.shape instanceof So){const n=()=>{if(!(e.shape instanceof So))return;const s=e.shape.pgas.findIndex(i=>i.pg.isPointInPath(this.ctx,this.app.mousePoint.x,this.app.mousePoint.y));s>=0&&e.clickInPath?.(s)};this.app.on("tap",n),this.removes.push(()=>{this.app.off("tap",n)})}if(e.extra?.(this.ctx),e.shape instanceof ft||this.ctx.translate(e.shape.x,e.shape.y),this.ctx.rotate(e.shape.rotate),this.ctx.scale(e.shape.scale,e.shape.scale),e.shape.toCanvasContext(this.ctx,{isLineThrough:e.isLineThrough}),e.shape.path2d=this.ctx.currentPath2D,e.shape.isMouseInShape=e.shape.getBoundingClientRect()?.isContainPoint(this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInPath(e.shape.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1,this.ctx.hasSetCustomLineWidth&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),e.dragMouseMove&&!this.draggingShapeID&&this.isMouseDown&&e.shape.isMouseInShape&&(this.draggingShapeID=e.shape.id,e.shape.isDragging=!0,this.shapes.filter(n=>n.shape.id!=e.shape.id).forEach(n=>n.shape.isDragging=!1)),this.draggingShapeID==e.shape.id){e.shape.x=this.app.mousePoint.x,e.shape.y=this.app.mousePoint.y;const n=e.shape.getBoundingClientRect();n&&n.width&&n.height&&!e.shape.XYIsShapeCenter&&(e.shape.x-=n.width/2,e.shape.y-=n.height/2),e.shape instanceof ft||this.ctx.translate(e.shape.x,e.shape.y),e.shape.path2d=this.ctx.currentPath2D}this.ctx.restore()}),this}drawMouseMoveLine(e="line",n){switch(e){case"brush":const s=(n&&n.brushSize)??10,i=(n&&n.brushDensity)??50,r=(n&&n.brushColor)??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=qc(r);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*o.width)*4;a[m]=l>>16&255,a[m+1]=l>>8&255,a[m+2]=l&255,a[m+3]=255}this.ctx.putImageData(o)}}});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 Im{map;constructor(e,n=120.619585,s=31.299379,i=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(n,s),i)}}const Mm=J({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("span",{class:"icon",style:q(["color: "+n.color])},[oe(Ce(Np),{icon:e.icon,color:n.color},null,8,["icon","color"])],4))}}),sy="",ee=(t,e)=>{const n=t.__vccOpts||t;for(const[s,i]of e)n[s]=i;return n},Ln=ee(Mm,[["__scopeId","data-v-8789b4ce"]]),Dm=J({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(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(s.borderColor),a=G(s.bgColor),l=G(s.fontColor),c=G(s.borderColor),u=G(s.bgColor);function h(w){switch(w){case"outline":o.value=s.borderColor??ne.colorPrimary,a.value=s.bgColor??ne.colorGrayFF,l.value=s.fontColor??ne.colorPrimary,c.value=o.value,u.value=a.value;break;default:o.value=s.borderColor??ne.colorPrimary,a.value=s.bgColor??ne.colorPrimary,l.value=s.fontColor??ne.colorGrayFF,c.value=o.value,u.value=a.value;break}}ve(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const f=G(s.isDisabled?"0.6":"1"),d=G(s.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{s.isDisabled||(m=!0,o.value=Ps(c.value,10),a.value=Ps(u.value,10))},y=()=>{s.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},C=Lp(()=>{s.isDisabled||(o.value=Ps(c.value,-10),a.value=Ps(u.value,-10),setTimeout(()=>{m?v():y()},150),i("ceClick"),i("click"))},500);return e({wrapper:r}),(w,S)=>(D(),z("div",{ref_key:"wrapper",ref:r,class:"button",style:q([`opacity: ${f.value}`,`border: 1px solid ${o.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:y,onClick:S[0]||(S[0]=(...$)=>Ce(C)&&Ce(C)(...$))},[N("label",{class:"label truncate",style:q({padding:"0 "+w.padding,cursor:d.value})},[Re(w.$slots,"default",{},()=>[w.icon&&w.iconPosition==="left"?(D(),Qe(Ln,{key:0,icon:w.icon,color:l.value,style:q({marginRight:Ce(ne).gap4,cursor:d.value})},null,8,["icon","color","style"])):Be("",!0),N("span",{style:q({cursor:d.value})},be(w.label),5),w.icon&&w.iconPosition==="right"?(D(),Qe(Ln,{key:1,icon:w.icon,color:l.value,style:q({marginLeft:Ce(ne).gap4,cursor:d.value})},null,8,["icon","color","style"])):Be("",!0)],!0)],4)],36))}}),iy="",Ne=ee(Dm,[["__scopeId","data-v-ee116edd"]]),Am=["onClick","value"],Rm={class:"option-inner"},$m=J({customOptions:{Icon:Ln,Button:Ne},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;dn(()=>{Z.setStyleSheet(`
52
+ * Licensed under the MIT license */(function(n){(function(e,t,s,r){var i=["","webkit","Moz","MS","ms","o"],o=t.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(d,m,_){return setTimeout(I(d,_),m)}function f(d,m,_){return Array.isArray(d)?(p(d,_[m],_),!0):!1}function p(d,m,_){var C;if(d)if(d.forEach)d.forEach(m,_);else if(d.length!==r)for(C=0;C<d.length;)m.call(_,d[C],C,d),C++;else for(C in d)d.hasOwnProperty(C)&&m.call(_,d[C],C,d)}function g(d,m,_){var C="DEPRECATED METHOD: "+m+`
53
+ `+_+` AT
54
+ `;return function(){var H=new Error("get-stack-trace"),le=H&&H.stack?H.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Me=e.console&&(e.console.warn||e.console.log);return Me&&Me.call(e.console,C,le),d.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(m){if(m===r||m===null)throw new TypeError("Cannot convert undefined or null to object");for(var _=Object(m),C=1;C<arguments.length;C++){var H=arguments[C];if(H!==r&&H!==null)for(var le in H)H.hasOwnProperty(le)&&(_[le]=H[le])}return _}:y=Object.assign;var b=g(function(m,_,C){for(var H=Object.keys(_),le=0;le<H.length;)(!C||C&&m[H[le]]===r)&&(m[H[le]]=_[H[le]]),le++;return m},"extend","Use `assign`."),O=g(function(m,_){return b(m,_,!0)},"merge","Use `assign`.");function D(d,m,_){var C=m.prototype,H;H=d.prototype=Object.create(C),H.constructor=d,H._super=C,_&&y(H,_)}function I(d,m){return function(){return d.apply(m,arguments)}}function L(d,m){return typeof d==a?d.apply(m&&m[0]||r,m):d}function se(d,m){return d===r?m:d}function V(d,m,_){p(Te(m),function(C){d.addEventListener(C,_,!1)})}function U(d,m,_){p(Te(m),function(C){d.removeEventListener(C,_,!1)})}function be(d,m){for(;d;){if(d==m)return!0;d=d.parentNode}return!1}function xe(d,m){return d.indexOf(m)>-1}function Te(d){return d.trim().split(/\s+/g)}function Ae(d,m,_){if(d.indexOf&&!_)return d.indexOf(m);for(var C=0;C<d.length;){if(_&&d[C][_]==m||!_&&d[C]===m)return C;C++}return-1}function _e(d){return Array.prototype.slice.call(d,0)}function De(d,m,_){for(var C=[],H=[],le=0;le<d.length;){var Me=m?d[le][m]:d[le];Ae(H,Me)<0&&C.push(d[le]),H[le]=Me,le++}return _&&(m?C=C.sort(function(pt,kt){return pt[m]>kt[m]}):C=C.sort()),C}function Ye(d,m){for(var _,C,H=m[0].toUpperCase()+m.slice(1),le=0;le<i.length;){if(_=i[le],C=_?_+H:m,C in d)return C;le++}return r}var ye=1;function Se(){return ye++}function re(d){var m=d.ownerDocument||d;return m.defaultView||m.parentWindow||e}var A=/mobile|tablet|ip(ad|hone|od)|android/i,J="ontouchstart"in e,Y=Ye(e,"PointerEvent")!==r,ke=J&&A.test(navigator.userAgent),we="touch",j="pen",Z="mouse",E="kinect",R=25,S=1,X=2,w=4,M=8,Q=1,ue=2,ie=4,v=8,x=16,k=ue|ie,N=v|x,$=k|N,W=["x","y"],ne=["clientX","clientY"];function G(d,m){var _=this;this.manager=d,this.callback=m,this.element=d.element,this.target=d.options.inputTarget,this.domHandler=function(C){L(d.options.enable,[d])&&_.handler(C)},this.init()}G.prototype={handler:function(){},init:function(){this.evEl&&V(this.element,this.evEl,this.domHandler),this.evTarget&&V(this.target,this.evTarget,this.domHandler),this.evWin&&V(re(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&U(this.element,this.evEl,this.domHandler),this.evTarget&&U(this.target,this.evTarget,this.domHandler),this.evWin&&U(re(this.element),this.evWin,this.domHandler)}};function te(d){var m,_=d.options.inputClass;return _?m=_:Y?m=ua:ke?m=di:J?m=ha:m=Tt,new m(d,z)}function z(d,m,_){var C=_.pointers.length,H=_.changedPointers.length,le=m&S&&C-H===0,Me=m&(w|M)&&C-H===0;_.isFirst=!!le,_.isFinal=!!Me,le&&(d.session={}),_.eventType=m,ae(d,_),d.emit("hammer.input",_),d.recognize(_),d.session.prevInput=_}function ae(d,m){var _=d.session,C=m.pointers,H=C.length;_.firstInput||(_.firstInput=Ce(m)),H>1&&!_.firstMultiple?_.firstMultiple=Ce(m):H===1&&(_.firstMultiple=!1);var le=_.firstInput,Me=_.firstMultiple,lt=Me?Me.center:le.center,pt=m.center=Ie(C);m.timeStamp=u(),m.deltaTime=m.timeStamp-le.timeStamp,m.angle=Ct(lt,pt),m.distance=qe(lt,pt),ge(_,m),m.offsetDirection=He(m.deltaX,m.deltaY);var kt=Le(m.deltaTime,m.deltaX,m.deltaY);m.overallVelocityX=kt.x,m.overallVelocityY=kt.y,m.overallVelocity=c(kt.x)>c(kt.y)?kt.x:kt.y,m.scale=Me?ui(Me.pointers,C):1,m.rotation=Me?On(Me.pointers,C):0,m.maxPointers=_.prevInput?m.pointers.length>_.prevInput.maxPointers?m.pointers.length:_.prevInput.maxPointers:m.pointers.length,de(_,m);var Jt=d.element;be(m.srcEvent.target,Jt)&&(Jt=m.srcEvent.target),m.target=Jt}function ge(d,m){var _=m.center,C=d.offsetDelta||{},H=d.prevDelta||{},le=d.prevInput||{};(m.eventType===S||le.eventType===w)&&(H=d.prevDelta={x:le.deltaX||0,y:le.deltaY||0},C=d.offsetDelta={x:_.x,y:_.y}),m.deltaX=H.x+(_.x-C.x),m.deltaY=H.y+(_.y-C.y)}function de(d,m){var _=d.lastInterval||m,C=m.timeStamp-_.timeStamp,H,le,Me,lt;if(m.eventType!=M&&(C>R||_.velocity===r)){var pt=m.deltaX-_.deltaX,kt=m.deltaY-_.deltaY,Jt=Le(C,pt,kt);le=Jt.x,Me=Jt.y,H=c(Jt.x)>c(Jt.y)?Jt.x:Jt.y,lt=He(pt,kt),d.lastInterval=m}else H=_.velocity,le=_.velocityX,Me=_.velocityY,lt=_.direction;m.velocity=H,m.velocityX=le,m.velocityY=Me,m.direction=lt}function Ce(d){for(var m=[],_=0;_<d.pointers.length;)m[_]={clientX:l(d.pointers[_].clientX),clientY:l(d.pointers[_].clientY)},_++;return{timeStamp:u(),pointers:m,center:Ie(m),deltaX:d.deltaX,deltaY:d.deltaY}}function Ie(d){var m=d.length;if(m===1)return{x:l(d[0].clientX),y:l(d[0].clientY)};for(var _=0,C=0,H=0;H<m;)_+=d[H].clientX,C+=d[H].clientY,H++;return{x:l(_/m),y:l(C/m)}}function Le(d,m,_){return{x:m/d||0,y:_/d||0}}function He(d,m){return d===m?Q:c(d)>=c(m)?d<0?ue:ie:m<0?v:x}function qe(d,m,_){_||(_=W);var C=m[_[0]]-d[_[0]],H=m[_[1]]-d[_[1]];return Math.sqrt(C*C+H*H)}function Ct(d,m,_){_||(_=W);var C=m[_[0]]-d[_[0]],H=m[_[1]]-d[_[1]];return Math.atan2(H,C)*180/Math.PI}function On(d,m){return Ct(m[1],m[0],ne)+Ct(d[1],d[0],ne)}function ui(d,m){return qe(m[0],m[1],ne)/qe(d[0],d[1],ne)}var qn={mousedown:S,mousemove:X,mouseup:w},hi="mousedown",dt="mousemove mouseup";function Tt(){this.evEl=hi,this.evWin=dt,this.pressed=!1,G.apply(this,arguments)}D(Tt,G,{handler:function(m){var _=qn[m.type];_&S&&m.button===0&&(this.pressed=!0),_&X&&m.which!==1&&(_=w),this.pressed&&(_&w&&(this.pressed=!1),this.callback(this.manager,_,{pointers:[m],changedPointers:[m],pointerType:Z,srcEvent:m}))}});var fi={pointerdown:S,pointermove:X,pointerup:w,pointercancel:M,pointerout:M},By={2:we,3:j,4:Z,5:E},Mu="pointerdown",Au="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(Mu="MSPointerDown",Au="MSPointerMove MSPointerUp MSPointerCancel");function ua(){this.evEl=Mu,this.evWin=Au,G.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}D(ua,G,{handler:function(m){var _=this.store,C=!1,H=m.type.toLowerCase().replace("ms",""),le=fi[H],Me=By[m.pointerType]||m.pointerType,lt=Me==we,pt=Ae(_,m.pointerId,"pointerId");le&S&&(m.button===0||lt)?pt<0&&(_.push(m),pt=_.length-1):le&(w|M)&&(C=!0),!(pt<0)&&(_[pt]=m,this.callback(this.manager,le,{pointers:_,changedPointers:[m],pointerType:Me,srcEvent:m}),C&&_.splice(pt,1))}});var Hy={touchstart:S,touchmove:X,touchend:w,touchcancel:M},Yy="touchstart",Xy="touchstart touchmove touchend touchcancel";function Ru(){this.evTarget=Yy,this.evWin=Xy,this.started=!1,G.apply(this,arguments)}D(Ru,G,{handler:function(m){var _=Hy[m.type];if(_===S&&(this.started=!0),!!this.started){var C=Uy.call(this,m,_);_&(w|M)&&C[0].length-C[1].length===0&&(this.started=!1),this.callback(this.manager,_,{pointers:C[0],changedPointers:C[1],pointerType:we,srcEvent:m})}}});function Uy(d,m){var _=_e(d.touches),C=_e(d.changedTouches);return m&(w|M)&&(_=De(_.concat(C),"identifier",!0)),[_,C]}var Wy={touchstart:S,touchmove:X,touchend:w,touchcancel:M},qy="touchstart touchmove touchend touchcancel";function di(){this.evTarget=qy,this.targetIds={},G.apply(this,arguments)}D(di,G,{handler:function(m){var _=Wy[m.type],C=Ky.call(this,m,_);C&&this.callback(this.manager,_,{pointers:C[0],changedPointers:C[1],pointerType:we,srcEvent:m})}});function Ky(d,m){var _=_e(d.touches),C=this.targetIds;if(m&(S|X)&&_.length===1)return C[_[0].identifier]=!0,[_,_];var H,le,Me=_e(d.changedTouches),lt=[],pt=this.target;if(le=_.filter(function(kt){return be(kt.target,pt)}),m===S)for(H=0;H<le.length;)C[le[H].identifier]=!0,H++;for(H=0;H<Me.length;)C[Me[H].identifier]&&lt.push(Me[H]),m&(w|M)&&delete C[Me[H].identifier],H++;if(lt.length)return[De(le.concat(lt),"identifier",!0),lt]}var Zy=2500,$u=25;function ha(){G.apply(this,arguments);var d=I(this.handler,this);this.touch=new di(this.manager,d),this.mouse=new Tt(this.manager,d),this.primaryTouch=null,this.lastTouches=[]}D(ha,G,{handler:function(m,_,C){var H=C.pointerType==we,le=C.pointerType==Z;if(!(le&&C.sourceCapabilities&&C.sourceCapabilities.firesTouchEvents)){if(H)Qy.call(this,_,C);else if(le&&Jy.call(this,C))return;this.callback(m,_,C)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Qy(d,m){d&S?(this.primaryTouch=m.changedPointers[0].identifier,Lu.call(this,m)):d&(w|M)&&Lu.call(this,m)}function Lu(d){var m=d.changedPointers[0];if(m.identifier===this.primaryTouch){var _={x:m.clientX,y:m.clientY};this.lastTouches.push(_);var C=this.lastTouches,H=function(){var le=C.indexOf(_);le>-1&&C.splice(le,1)};setTimeout(H,Zy)}}function Jy(d){for(var m=d.srcEvent.clientX,_=d.srcEvent.clientY,C=0;C<this.lastTouches.length;C++){var H=this.lastTouches[C],le=Math.abs(m-H.x),Me=Math.abs(_-H.y);if(le<=$u&&Me<=$u)return!0}return!1}var Vu=Ye(o.style,"touchAction"),Fu=Vu!==r,Gu="compute",ju="auto",fa="manipulation",Kn="none",tr="pan-x",nr="pan-y",pi=t_();function da(d,m){this.manager=d,this.set(m)}da.prototype={set:function(d){d==Gu&&(d=this.compute()),Fu&&this.manager.element.style&&pi[d]&&(this.manager.element.style[Vu]=d),this.actions=d.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var d=[];return p(this.manager.recognizers,function(m){L(m.options.enable,[m])&&(d=d.concat(m.getTouchAction()))}),e_(d.join(" "))},preventDefaults:function(d){var m=d.srcEvent,_=d.offsetDirection;if(this.manager.session.prevented){m.preventDefault();return}var C=this.actions,H=xe(C,Kn)&&!pi[Kn],le=xe(C,nr)&&!pi[nr],Me=xe(C,tr)&&!pi[tr];if(H){var lt=d.pointers.length===1,pt=d.distance<2,kt=d.deltaTime<250;if(lt&&pt&&kt)return}if(!(Me&&le)&&(H||le&&_&k||Me&&_&N))return this.preventSrc(m)},preventSrc:function(d){this.manager.session.prevented=!0,d.preventDefault()}};function e_(d){if(xe(d,Kn))return Kn;var m=xe(d,tr),_=xe(d,nr);return m&&_?Kn:m||_?m?tr:nr:xe(d,fa)?fa:ju}function t_(){if(!Fu)return!1;var d={},m=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(_){d[_]=m?e.CSS.supports("touch-action",_):!0}),d}var mi=1,Ft=2,fs=4,Pn=8,fn=Pn,sr=16,Qt=32;function dn(d){this.options=y({},this.defaults,d||{}),this.id=Se(),this.manager=null,this.options.enable=se(this.options.enable,!0),this.state=mi,this.simultaneous={},this.requireFail=[]}dn.prototype={defaults:{},set:function(d){return y(this.options,d),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(d){if(f(d,"recognizeWith",this))return this;var m=this.simultaneous;return d=gi(d,this),m[d.id]||(m[d.id]=d,d.recognizeWith(this)),this},dropRecognizeWith:function(d){return f(d,"dropRecognizeWith",this)?this:(d=gi(d,this),delete this.simultaneous[d.id],this)},requireFailure:function(d){if(f(d,"requireFailure",this))return this;var m=this.requireFail;return d=gi(d,this),Ae(m,d)===-1&&(m.push(d),d.requireFailure(this)),this},dropRequireFailure:function(d){if(f(d,"dropRequireFailure",this))return this;d=gi(d,this);var m=Ae(this.requireFail,d);return m>-1&&this.requireFail.splice(m,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(d){return!!this.simultaneous[d.id]},emit:function(d){var m=this,_=this.state;function C(H){m.manager.emit(H,d)}_<Pn&&C(m.options.event+zu(_)),C(m.options.event),d.additionalEvent&&C(d.additionalEvent),_>=Pn&&C(m.options.event+zu(_))},tryEmit:function(d){if(this.canEmit())return this.emit(d);this.state=Qt},canEmit:function(){for(var d=0;d<this.requireFail.length;){if(!(this.requireFail[d].state&(Qt|mi)))return!1;d++}return!0},recognize:function(d){var m=y({},d);if(!L(this.options.enable,[this,m])){this.reset(),this.state=Qt;return}this.state&(fn|sr|Qt)&&(this.state=mi),this.state=this.process(m),this.state&(Ft|fs|Pn|sr)&&this.tryEmit(m)},process:function(d){},getTouchAction:function(){},reset:function(){}};function zu(d){return d&sr?"cancel":d&Pn?"end":d&fs?"move":d&Ft?"start":""}function Bu(d){return d==x?"down":d==v?"up":d==ue?"left":d==ie?"right":""}function gi(d,m){var _=m.manager;return _?_.get(d):d}function Ht(){dn.apply(this,arguments)}D(Ht,dn,{defaults:{pointers:1},attrTest:function(d){var m=this.options.pointers;return m===0||d.pointers.length===m},process:function(d){var m=this.state,_=d.eventType,C=m&(Ft|fs),H=this.attrTest(d);return C&&(_&M||!H)?m|sr:C||H?_&w?m|Pn:m&Ft?m|fs:Ft:Qt}});function vi(){Ht.apply(this,arguments),this.pX=null,this.pY=null}D(vi,Ht,{defaults:{event:"pan",threshold:10,pointers:1,direction:$},getTouchAction:function(){var d=this.options.direction,m=[];return d&k&&m.push(nr),d&N&&m.push(tr),m},directionTest:function(d){var m=this.options,_=!0,C=d.distance,H=d.direction,le=d.deltaX,Me=d.deltaY;return H&m.direction||(m.direction&k?(H=le===0?Q:le<0?ue:ie,_=le!=this.pX,C=Math.abs(d.deltaX)):(H=Me===0?Q:Me<0?v:x,_=Me!=this.pY,C=Math.abs(d.deltaY))),d.direction=H,_&&C>m.threshold&&H&m.direction},attrTest:function(d){return Ht.prototype.attrTest.call(this,d)&&(this.state&Ft||!(this.state&Ft)&&this.directionTest(d))},emit:function(d){this.pX=d.deltaX,this.pY=d.deltaY;var m=Bu(d.direction);m&&(d.additionalEvent=this.options.event+m),this._super.emit.call(this,d)}});function pa(){Ht.apply(this,arguments)}D(pa,Ht,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Kn]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.scale-1)>this.options.threshold||this.state&Ft)},emit:function(d){if(d.scale!==1){var m=d.scale<1?"in":"out";d.additionalEvent=this.options.event+m}this._super.emit.call(this,d)}});function ma(){dn.apply(this,arguments),this._timer=null,this._input=null}D(ma,dn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ju]},process:function(d){var m=this.options,_=d.pointers.length===m.pointers,C=d.distance<m.threshold,H=d.deltaTime>m.time;if(this._input=d,!C||!_||d.eventType&(w|M)&&!H)this.reset();else if(d.eventType&S)this.reset(),this._timer=h(function(){this.state=fn,this.tryEmit()},m.time,this);else if(d.eventType&w)return fn;return Qt},reset:function(){clearTimeout(this._timer)},emit:function(d){this.state===fn&&(d&&d.eventType&w?this.manager.emit(this.options.event+"up",d):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function ga(){Ht.apply(this,arguments)}D(ga,Ht,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Kn]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.rotation)>this.options.threshold||this.state&Ft)}});function va(){Ht.apply(this,arguments)}D(va,Ht,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:k|N,pointers:1},getTouchAction:function(){return vi.prototype.getTouchAction.call(this)},attrTest:function(d){var m=this.options.direction,_;return m&(k|N)?_=d.overallVelocity:m&k?_=d.overallVelocityX:m&N&&(_=d.overallVelocityY),this._super.attrTest.call(this,d)&&m&d.offsetDirection&&d.distance>this.options.threshold&&d.maxPointers==this.options.pointers&&c(_)>this.options.velocity&&d.eventType&w},emit:function(d){var m=Bu(d.offsetDirection);m&&this.manager.emit(this.options.event+m,d),this.manager.emit(this.options.event,d)}});function yi(){dn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}D(yi,dn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[fa]},process:function(d){var m=this.options,_=d.pointers.length===m.pointers,C=d.distance<m.threshold,H=d.deltaTime<m.time;if(this.reset(),d.eventType&S&&this.count===0)return this.failTimeout();if(C&&H&&_){if(d.eventType!=w)return this.failTimeout();var le=this.pTime?d.timeStamp-this.pTime<m.interval:!0,Me=!this.pCenter||qe(this.pCenter,d.center)<m.posThreshold;this.pTime=d.timeStamp,this.pCenter=d.center,!Me||!le?this.count=1:this.count+=1,this._input=d;var lt=this.count%m.taps;if(lt===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=fn,this.tryEmit()},m.interval,this),Ft):fn}return Qt},failTimeout:function(){return this._timer=h(function(){this.state=Qt},this.options.interval,this),Qt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==fn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function pn(d,m){return m=m||{},m.recognizers=se(m.recognizers,pn.defaults.preset),new ya(d,m)}pn.VERSION="2.0.7",pn.defaults={domEvents:!1,touchAction:Gu,enable:!0,inputTarget:null,inputClass:null,preset:[[ga,{enable:!1}],[pa,{enable:!1},["rotate"]],[va,{direction:k}],[vi,{direction:k},["swipe"]],[yi],[yi,{event:"doubletap",taps:2},["tap"]],[ma]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var n_=1,Hu=2;function ya(d,m){this.options=y({},pn.defaults,m||{}),this.options.inputTarget=this.options.inputTarget||d,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=d,this.input=te(this),this.touchAction=new da(this,this.options.touchAction),Yu(this,!0),p(this.options.recognizers,function(_){var C=this.add(new _[0](_[1]));_[2]&&C.recognizeWith(_[2]),_[3]&&C.requireFailure(_[3])},this)}ya.prototype={set:function(d){return y(this.options,d),d.touchAction&&this.touchAction.update(),d.inputTarget&&(this.input.destroy(),this.input.target=d.inputTarget,this.input.init()),this},stop:function(d){this.session.stopped=d?Hu:n_},recognize:function(d){var m=this.session;if(!m.stopped){this.touchAction.preventDefaults(d);var _,C=this.recognizers,H=m.curRecognizer;(!H||H&&H.state&fn)&&(H=m.curRecognizer=null);for(var le=0;le<C.length;)_=C[le],m.stopped!==Hu&&(!H||_==H||_.canRecognizeWith(H))?_.recognize(d):_.reset(),!H&&_.state&(Ft|fs|Pn)&&(H=m.curRecognizer=_),le++}},get:function(d){if(d instanceof dn)return d;for(var m=this.recognizers,_=0;_<m.length;_++)if(m[_].options.event==d)return m[_];return null},add:function(d){if(f(d,"add",this))return this;var m=this.get(d.options.event);return m&&this.remove(m),this.recognizers.push(d),d.manager=this,this.touchAction.update(),d},remove:function(d){if(f(d,"remove",this))return this;if(d=this.get(d),d){var m=this.recognizers,_=Ae(m,d);_!==-1&&(m.splice(_,1),this.touchAction.update())}return this},on:function(d,m){if(d!==r&&m!==r){var _=this.handlers;return p(Te(d),function(C){_[C]=_[C]||[],_[C].push(m)}),this}},off:function(d,m){if(d!==r){var _=this.handlers;return p(Te(d),function(C){m?_[C]&&_[C].splice(Ae(_[C],m),1):delete _[C]}),this}},emit:function(d,m){this.options.domEvents&&s_(d,m);var _=this.handlers[d]&&this.handlers[d].slice();if(!(!_||!_.length)){m.type=d,m.preventDefault=function(){m.srcEvent.preventDefault()};for(var C=0;C<_.length;)_[C](m),C++}},destroy:function(){this.element&&Yu(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Yu(d,m){var _=d.element;if(_.style){var C;p(d.options.cssProps,function(H,le){C=Ye(_.style,le),m?(d.oldCssProps[C]=_.style[C],_.style[C]=H):_.style[C]=d.oldCssProps[C]||""}),m||(d.oldCssProps={})}}function s_(d,m){var _=t.createEvent("Event");_.initEvent(d,!0,!0),_.gesture=m,m.target.dispatchEvent(_)}y(pn,{INPUT_START:S,INPUT_MOVE:X,INPUT_END:w,INPUT_CANCEL:M,STATE_POSSIBLE:mi,STATE_BEGAN:Ft,STATE_CHANGED:fs,STATE_ENDED:Pn,STATE_RECOGNIZED:fn,STATE_CANCELLED:sr,STATE_FAILED:Qt,DIRECTION_NONE:Q,DIRECTION_LEFT:ue,DIRECTION_RIGHT:ie,DIRECTION_UP:v,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:k,DIRECTION_VERTICAL:N,DIRECTION_ALL:$,Manager:ya,Input:G,TouchAction:da,TouchInput:di,MouseInput:Tt,PointerEventInput:ua,TouchMouseInput:ha,SingleTouchInput:Ru,Recognizer:dn,AttrRecognizer:Ht,Tap:yi,Pan:vi,Swipe:va,Pinch:pa,Rotate:ga,Press:ma,on:V,off:U,each:p,merge:O,extend:b,assign:y,inherit:D,bindFn:I,prefixed:Ye});var r_=typeof e<"u"?e:typeof self<"u"?self:{};r_.Hammer=pn,typeof r=="function"&&r.amd?r(function(){return pn}):n.exports?n.exports=pn:e[s]=pn})(window,document,"Hammer")})(au);var dm=au.exports;const pm=fm(dm);function Ro(n,e,t,s,r,i,o,a,l,c){let u=Math.PI*120/180,h=Math.PI/180*(+r||0),f=[],p,g=function(ye,Se,re){const A=ye*Math.cos(re)-Se*Math.sin(re),J=ye*Math.sin(re)+Se*Math.cos(re);return{x:A,y:J}},y,b,O,D;if(c)y=c[0],b=c[1],O=c[2],D=c[3];else{p=g(n,e,-h),n=p.x,e=p.y,p=g(a,l,-h),a=p.x,l=p.y;let ye=(n-a)/2,Se=(e-l)/2,re=ye*ye/(t*t)+Se*Se/(s*s);re>1&&(re=Math.sqrt(re),t=re*t,s=re*s);let A=t*t,J=s*s,Y=(i==o?-1:1)*Math.sqrt(Math.abs((A*J-A*Se*Se-J*ye*ye)/(A*Se*Se+J*ye*ye)));O=Y*t*Se/s+(n+a)/2,D=Y*-s*ye/t+(e+l)/2,y=Math.asin(Number(((e-D)/s).toFixed(9))),b=Math.asin(Number(((l-D)/s).toFixed(9))),y=n<O?Math.PI-y:y,b=a<O?Math.PI-b:b,y<0&&(y=Math.PI*2+y),b<0&&(b=Math.PI*2+b),o&&y>b&&(y=y-Math.PI*2),!o&&b>y&&(b=b-Math.PI*2)}let I=b-y;if(Math.abs(I)>u){let ye=b,Se=a,re=l;b=y+u*(o&&b>y?1:-1),a=O+t*Math.cos(b),l=D+s*Math.sin(b),f=Ro(a,l,t,s,r,0,o,Se,re,[b,ye,O,D])}I=b-y;let L=Math.cos(y),se=Math.sin(y),V=Math.cos(b),U=Math.sin(b),be=Math.tan(I/4),xe=4/3*t*be,Te=4/3*s*be,Ae=[n,e],_e=[n+xe*se,e-Te*L],De=[a+xe*U,l-Te*V],Ye=[a,l];return _e[0]=2*Ae[0]-_e[0],_e[1]=2*Ae[1]-_e[1],c?[[..._e,...De,...Ye]].concat(f):[[..._e,...De,...Ye]].concat(f).map(ye=>{const Se=[];for(let re=0,A=ye.length;re<A;re++)Se[re]=re%2?g(ye[re-1],ye[re],h).y:g(ye[re],ye[re+1],h).x;return Se})}function $o(n,e,t,s,r,i){return[n/3+2/3*t,e/3+2/3*s,r/3+2/3*t,i/3+2/3*s,r,i]}function Bs(n,e,t,s){return[n,e,t,s,t,s]}const Wr={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class rs{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 eu(Jp(e),`${t}.svg`)}static downloadFromSVGString(e,t="shape"){return eu(Qc(e),`${t}.svg`)}static getSVGRawStringFromElement(e){return Jc(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,r,i)=>{let o=r.toLowerCase();const a=qp(i);for(o=="m"&&a.length>Wr[o]&&(t.push([r,...a.splice(0,Wr[o])]),o="l",r=r=="m"?"l":"L");a.length;){if(a.length<Wr[o])throw new Error(`parseSVGPath substring:{ ${s} } command:{ ${r} } args:{ ${a} }`);t.push([r,...a.splice(0,Wr[o])])}return o=="z"&&t.push([r]),""}),t}static absolutizeSVGPath(e){let t=0,s=0,r=0,i=0;return e.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=r,o[7]+=i;break;case"v":o[1]+=i;break;case"h":o[1]+=r;break;default:for(let c=1;c<o.length;)o[c++]+=r,o[c++]+=i}switch(l){case"Z":r=t,i=s;break;case"H":r=o[1];break;case"V":i=o[1];break;case"M":r=t=o[1],i=s=o[2];break;default:r=o[o.length-2],i=o[o.length-1]}return o})}static relativeSVGPath(e){let t=0,s=0,r=0,i=0;return e.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=r,o[7]-=i;break;case"V":o[1]-=i;break;case"H":o[1]-=r;break;default:for(let c=1;c<o.length;)o[c++]-=r,o[c++]-=i}switch(l){case"z":r=t,i=s;break;case"h":r+=o[1];break;case"v":i+=o[1];break;case"m":r+=o[1],i+=o[2],t+=o[1],s+=o[2];break;default:r+=o[o.length-2],i+=o[o.length-1]}return o})}static normalizeSVGPath(e){let t=[],s=0,r=0,i=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,p=e.length;f<p;f++){let g=e[f];const y=g[0];switch(y){case"M":s=g[1],r=g[2];break;case"A":const b=Ro(i,o,g[1],g[2],g[3],g[4],g[5],g[6],g[7]);if(!b.length)continue;b.forEach((I,L)=>{const[se,V,U,be,xe,Te]=I;g=["C",se,V,U,be,xe,Te],L<b.length-1&&t.push(g)});break;case"S":let O=i,D=o;(h=="C"||h=="S")&&(O+=O-c,D+=D-u),g=["C",O,D,g[1],g[2],g[3],g[4]];break;case"T":h=="Q"||h=="T"?(a=i*2-a,l=o*2-l):(a=i,l=o),g=["C",...$o(i,o,a,l,g[1],g[2])];break;case"Q":a=g[1],l=g[2],g=["C",...$o(i,o,g[1],g[2],g[3],g[4])];break;case"L":g=["C",...Bs(i,o,g[1],g[2])];break;case"H":g=["C",...Bs(i,o,g[1],o)];break;case"V":g=["C",...Bs(i,o,i,g[1])];break;case"Z":g=["C",...Bs(i,o,s,r)];break}h=y,i=g[g.length-2],o=g[g.length-1],g.length>4?(c=g[g.length-4],u=g[g.length-3]):(c=i,u=o),t.push(g)}return t}static catmullRom2bezier(e){let t=[];for(let s=0,r=e.length;r-2>s;s+=2){let i;s==0?i=[{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]}]:r-4==s?i=[{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]}]:i=[{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 o=[{x:i[1].x,y:i[1].y},{x:(-i[0].x+6*i[1].x+i[2].x)/6,y:(-i[0].y+6*i[1].y+i[2].y)/6},{x:(i[1].x+6*i[2].x-i[3].x)/6,y:(i[1].y+6*i[2].y-i[3].y)/6},{x:i[2].x,y:i[2].y}];t.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return t}static zvhToLSVGPath(e){let t=[],s=["L",0,0],r;for(let i=0,o=e.length;i<o;i++){let a=e[i];switch(a[0]){case"M":s=["L",a[1],a[2]],t.push(a);break;case"Z":t.push(s);break;case"H":r=t[t.length-1]||["L",0,0],t.push(["L",a[1],r[r.length-1]]);break;case"V":r=t[t.length-1]||["L",0,0],t.push(["L",r[r.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,r=0,i=0;for(let o=0,a=e.length;o<a;o++){const l=e[o],c=t[l[0]];c&&(l[0]=c.to,s&&(s[0]===c.to?(r=2*Number(s[c.x+2])-Number(s[c.x]),i=2*Number(s[c.x+3])-Number(s[c.x+1])):(r=Number(s[s.length-2]),i=Number(s[s.length-1]))),l.splice(1,0,r,i)),s=l}return e}static curveDim(e,t,s,r,i,o,a,l){const c=[],u=[[],[]];let h,f,p,g,y,b,O,D;for(let V=0;V<2;++V){if(V===0?(f=6*e-12*s+6*i,h=-3*e+9*s-9*i+3*a,p=3*s-3*e):(f=6*t-12*r+6*o,h=-3*t+9*r-9*o+3*l,p=3*r-3*t),Math.abs(h)<1e-12){if(Math.abs(f)<1e-12)continue;g=-p/f,g>0&&g<1&&c.push(g);continue}O=f*f-4*p*h,D=Math.sqrt(O),!(O<0)&&(y=(-f+D)/(2*h),y>0&&y<1&&c.push(y),b=(-f-D)/(2*h),b>0&&b<1&&c.push(b))}let I=c.length,L;const se=I;for(;I--;)g=c[I],L=1-g,u[0][I]=L*L*L*e+3*L*L*g*s+3*L*g*g*i+g*g*g*a,u[1][I]=L*L*L*t+3*L*L*g*r+3*L*g*g*o+g*g*g*l;return u[0][se]=e,u[1][se]=t,u[0][se+1]=a,u[1][se+1]=l,u[0].length=u[1].length=se+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,r,i){const o=-3*t+9*s-9*r+3*i,a=e*o+6*t-12*s+6*r;return e*a-3*t+3*s}static bezlen(e,t,s,r,i,o,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],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let g=0;for(let y=0;y<h;y++){const b=u*f[y]+u,O=this.base3(b,e,s,i,a),D=this.base3(b,t,r,o,l),I=O*O+D*D;g+=p[y]*Math.sqrt(I)}return u*g}}const et=rs;class ot{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=Bp(),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(Wc(this))}restore(){const e=this.history.pop();e&&Xr(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),et.SVGPathDataToD(e)}distanceTo(e){return su(this.x,this.y,e.x,e.y)}angleTo(e){return this.degree=Et(Ao(this.x,this.y,e.x,e.y)),this.degree}followTo(e,t=3){const s=this.angleTo(e),{x:r,y:i}=Xn(wt(s),t);this.vx=r,this.vy=i,this.nextFrame()}followAccelerationTo(e,t=.05){const s=this.angleTo(e),{x:r,y:i}=Xn(wt(s),t);this.ax=r,this.ay=i,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 r=Math.atan2(this.vy,this.vx);let i=Math.sqrt(this.vx*this.vx+this.vy*this.vy);i>s?i-=s:i=0,this.vx=Math.cos(r)*i,this.vy=Math.sin(r)*i}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,t){const s=t?.gravity??0,r=t?.friction??1,i=t?.easing??.05,{dx:o,dy:a}=this.centerDiff,l=e.x-this.x-o,c=e.y-this.y-a;this.vx=l*i,this.vy=c*i,this.vy+=s,this.vx*=r,this.vy*=r,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,t){const s=t?.gravity??0,r=t?.friction??.95,i=t?.spring??.03,{dx:o,dy:a}=this.centerDiff;(Array.isArray(e)?e:[e]).forEach(c=>{const u=c.x-this.x-o,h=c.y-this.y-a,f=u*i,p=h*i;this.vx+=f,this.vy+=p}),this.vy+=s,this.vx*=r,this.vy*=r,this.x+=this.vx,this.y+=this.vy}static nextFrameSpringConnect(e,t){const s=t?.springLength??100,r=t?.spring??.03,i=t?.gravity??0,o=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 We({x:l.x-Math.cos(wt(c))*s,y:l.y-Math.sin(wt(c))*s}),{spring:r,gravity:i,friction:o})})})}}class Rt extends ot{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,r,i,o,a,l){const c=rs.curveDim(e,t,s,r,i,o,a,l);return new Rt({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 Rt({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 qr=Rt;class We extends ot{radius;constructor(e){super(e),this.radius=e?.radius||0}getBoundingClientRect(){return new Rt({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 We({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}clone(e){return new We({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),a=Math.sin(o),l=Math.cos(o),c={x:0,y:0},u=i(t,s,a,l,!0),h=i(this.vx,this.vy,a,l,!0),f=i(e.vx,e.vy,a,l,!0),p=h.x-f.x;h.x=((this.mass-e.mass)*h.x+2*e.mass*f.x)/(this.mass+e.mass),f.x=p+h.x;const g=Math.abs(h.x)+Math.abs(f.x),y=this.radius+e.radius-Math.abs(c.x-u.x);c.x+=h.x/g*y,u.x+=f.x/g*y;const b=i(c.x,c.y,a,l,!1),O=i(u.x,u.y,a,l,!1);e.x=this.x+O.x,e.y=this.y+O.y,this.x=this.x+b.x,this.y=this.y+b.y;const D=i(h.x,h.y,a,l,!1),I=i(f.x,f.y,a,l,!1);this.vx=D.x,this.vy=D.y,e.vx=I.x,e.vy=I.y}function i(o,a,l,c,u=!1){return{x:u?o*c+a*l:o*c-a*l,y:u?a*c-o*l:a*c+o*l}}}nextFrameBounce(e,t){const s=e.x,r=e.y,i=e.x+e.width,o=e.y+e.height,a=t?.bounce??-1;this.x+this.radius>i?(this.x=i-this.radius,this.vx*=a):this.x-this.radius<s&&(this.x=s+this.radius,this.vx*=a),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=a):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=a)}}class mm{constructor(){}static getFormatKeyNames(e){const t=lm(),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(No(e.key)):Array.isArray(e.key)&&(e.key.map(r=>No(r)),s.push(...e.key)),s}static matchKeyScheme(e,t){const s=e.ctrl??!1,r=e.shift??!1,i=e.alt??!1;if(e.exact)return(s===t.metaKey||s===t.ctrlKey)&&r===t.shiftKey&&i===t.altKey;const o=[];return s&&o.push(s===t.metaKey||s===t.ctrlKey),r&&o.push(r===t.shiftKey),i&&o.push(i===t.altKey),o.every(a=>a)}static on(e,t){if(e?.key===void 0||e?.key===null)return t;const s=e?.target??window;let r=!1;const i=this.getFormatKeyNames(e),o=a=>{if(a.stopPropagation(),!r&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&i.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=i,t.pause=()=>r=!0,t.restart=()=>r=!1,t.removeListener=()=>s.removeEventListener("keydown",o),s.addEventListener("keydown",o),t}}let $t;const is=[];class it extends Kc{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 pm(this.container),this.mousePoint=new We({x:0,y:0}),t&&this.start()}emitDebounce=Zp((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($t)return $t;$t=new it,window.addEventListener("hashchange",()=>{$t.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{$t.emit("popstate")}),$t.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{em().then(t=>tm(t[0])).then(t=>{$t.emit("openFile",t)}).catch(t=>{$t.emit("openFileError",t)})}),$t.registerMatchMediaChange("(prefers-color-scheme: dark)");const e=()=>is.forEach(t=>t());return $t.registerGlobalScrollChange=t=>{is.push(t),is.length==1&&document.addEventListener("scroll",e)},$t.removeGlobalScrollChange=t=>{const s=is.findIndex(r=>r==t);s>=0&&(is.splice(s,1),is.length==0&&document.removeEventListener("scroll",e))},$t}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=om(this.container,e);return this.mousePoint.x=t.x,this.mousePoint.y=t.y,t}registerMouseEventListeners(){const e=A=>{this.emit("mouseDown",A),this.container.style.userSelect="none"},t=A=>{this.emit("mouseUp",A),this.container.style.userSelect=""},s=A=>{this.emit("mouseMove",A)},r=A=>{this.emit("mouseOver",A)},i=A=>{this.emit("mouseOut",A),this.container.style.userSelect=""},o=A=>{this.emit("mouseClick",A)},a=A=>{this.emit("mouseDoubleClick",A)},l=A=>{this.emit("mouseWheel",A)},c=A=>{this.emit("mouseContextMenu",A)},u=A=>{this.emit("touchStart",A),this.container.style.userSelect="none"},h=A=>{this.emit("touchEnd",A),this.container.style.userSelect=""},f=A=>{this.emit("touchCancel",A),this.container.style.userSelect=""},p=A=>{this.emit("touchMove",A)},g=A=>{this.emit("pointerDown",A),this.container.style.userSelect="none"},y=A=>{this.emit("pointerUp",A),this.container.style.userSelect=""},b=A=>{this.emit("pointerCancel",A),this.container.style.userSelect=""},O=A=>{this.emit("pointerMove",A)},D=A=>{this.emit("pan",A)},I=A=>{this.emit("panStart",A),this.container.style.userSelect="none"},L=A=>{this.emit("panMove",A)},se=A=>{this.emit("panEnd",A),this.container.style.userSelect=""},V=A=>{this.emit("panCancel",A),this.container.style.userSelect=""},U=A=>{this.emit("panLeft",A)},be=A=>{this.emit("panRight",A)},xe=A=>{this.emit("panUp",A),this.container.style.userSelect=""},Te=A=>{this.emit("panDown",A),this.container.style.userSelect="none"},Ae=A=>{this.emit("pinch",A)},_e=A=>{this.emit("press",A)},De=A=>{this.emit("rotate",A)},Ye=A=>{this.emit("swipe",A)},ye=A=>{this.emit("tap",A)},Se=A=>{!A.target||this.container==A.target||this.container.contains(A.target)||this.emit("tapOutSide",A)};this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",t),this.container.addEventListener("mousemove",s),this.container.addEventListener("mouseover",r),this.container.addEventListener("mouseout",i),this.container.addEventListener("click",o),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",p),this.container.addEventListener("pointerdown",g),this.container.addEventListener("pointerup",y),this.container.addEventListener("pointercancel",b),this.container.addEventListener("pointermove",O),this.hammer.on("pan",D),this.hammer.on("panstart",I),this.hammer.on("panmove",L),this.hammer.on("panend",se),this.hammer.on("pancancel",V),this.hammer.on("panleft",U),this.hammer.on("panright",be),this.hammer.on("panup",xe),this.hammer.on("pandown",Te),this.hammer.on("pinch",Ae),this.hammer.on("press",_e),this.hammer.on("rotate",De),this.hammer.on("swipe",Ye),this.hammer.on("tap",ye),document.addEventListener("pointerdown",Se,!1);const re=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",t),this.container.removeEventListener("mousemove",s),this.container.removeEventListener("mouseover",r),this.container.removeEventListener("mouseout",i),this.container.removeEventListener("click",o),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",p),this.container.removeEventListener("pointerdown",g),this.container.removeEventListener("pointerup",y),this.container.removeEventListener("pointercancel",b),this.container.removeEventListener("pointermove",O),this.hammer.off("pan",D),this.hammer.off("panstart",I),this.hammer.off("panmove",L),this.hammer.off("panend",se),this.hammer.off("pancancel",V),this.hammer.off("panleft",U),this.hammer.off("panright",be),this.hammer.off("panup",xe),this.hammer.off("pandown",Te),this.hammer.off("pinch",Ae),this.hammer.off("press",_e),this.hammer.off("rotate",De),this.hammer.off("swipe",Ye),this.hammer.off("tap",ye),document.removeEventListener("pointerdown",Se,!1),document.removeEventListener("touchstart",Se,!1),document.removeEventListener("mousedown",Se,!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)},r=l=>{this.emit("dragenter",l)},i=l=>{this.emit("dragend",l)},o=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",r,!1),this.container.addEventListener("dragend",i,!1),this.container.addEventListener("drop",o,!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",r,!1),this.container.removeEventListener("dragend",i,!1),this.container.removeEventListener("drop",o,!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 r=mm.on(e,o=>(t(o,r.formatedKeyNames,r.pause,r.restart),s)),i=()=>{r.removeListener?.()};return this.addDOMEventBusRemoves(i),i}registerResizeObserver(){const e=new ResizeObserver(s=>{const{width:r,height:i}=s[0].contentRect;this.width=r,this.height=i,this.emit("resize",r,i)});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=i=>{this.emit(t,i.matches)};window.matchMedia(e).addEventListener("change",s);const r=()=>{window.matchMedia(e).removeEventListener("change",s)};return this.addDOMEventBusRemoves(r),r}registerElementDisplayInParentWhenScrollChange(e){const t={threshold:e?.threshold||.5,root:e?.parentElement},s=new IntersectionObserver((i,o)=>{let a=i[0];if(i.length>1){const c=i.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 r=()=>{s.unobserve(this.container)};return this.addDOMEventBusRemoves(r),r}registerPullDownRefresh(e){const t=e?.distance||50;let s=0,r=0;return this.captureMove({start:i=>{s=this.setMousePoint(i).y},move:()=>{r=this.mousePoint.y-s,r>0&&r<t&&this.emit("pullDownIng",r)},end:()=>{r>=t&&this.emit("pullDown")}})}registerPullUpLoading(e){const t=e?.distance||50;let s=0,r=0;return this.captureMove({start:i=>{s=this.setMousePoint(i).y},move:()=>{r=s-this.mousePoint.y,r>0&&r<t&&this.emit("pullUpIng",r)},end:()=>{r>=t&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(e){return this.captureMoveUsePointer(e)}captureMoveUsePointer(e){const t=o=>{this.container.setPointerCapture(o.pointerId),this.container.style.userSelect="none",e?.start?.(o)},s=o=>{this.container.style.userSelect="",e?.end?.(o)},r=o=>{e?.move?.(o)};this.on("pointerDown",t),this.on("pointerUp",s),this.on("pointerCancel",s),this.on("pointerMove",r);const i=()=>{this.off("pointerDown",t),this.off("pointerUp",s),this.off("pointerCancel",s),this.off("pointerMove",r)};return this.addDOMEventBusRemoves(i),i}captureMoveUseMouse(e){const t=o=>{document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",s,!1),this.container.style.userSelect="none",e?.start?.(o)},s=o=>{document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",s,!1),this.container.style.userSelect="",e?.end?.(o)},r=o=>{e?.move?.(o)};this.on("mouseDown",t);const i=()=>{this.off("mouseDown",t)};return this.addDOMEventBusRemoves(i),i}captureMoveUseTouch(e){const t=o=>{o.preventDefault(),e?.start?.(o)},s=o=>{e?.end?.(o)},r=o=>{e?.move?.(o)};this.on("touchStart",t),this.on("touchEnd",s),this.on("touchCancel",s),this.on("touchMove",r);const i=()=>{this.off("touchStart",t),this.off("touchEnd",s),this.off("touchCancel",s),this.off("touchMove",r)};return this.addDOMEventBusRemoves(i),i}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 Lo{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"),r=document.createElement("source"),i=new MediaSource;i.addEventListener("sourceopen",()=>e(!0)),r.src=URL.createObjectURL(i),r.media="(min-width:10px)",s.append(r),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(()=>{Lo.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 gm extends Kc{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(e){super(),this.source=e}parse(){const e=Hc(this.source);if(e===0){this.emit("finish");return}let t,s,r=Yc(this.source,0);for(let i=1;i<e;i++)t=s,s=r,r=Yc(this.source,i),this.raw+=s,s&&this.step(s,r,t);r&&this.step(r,void 0,s),this.emit("finish")}step(e,t,s){e==`
55
+ `&&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":un("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(!un("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":un("whitespace",e)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(e,t,s));break;case"close tag name":if(un("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(un("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":un("whitespace",e)||(this.mode="attr",this.nodename="",this.act(e,t,s));break;case"attr":if(un("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(!un("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(un("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 lu(n,e){if(typeof e<"u")window.localStorage.setItem(n,e);else return window.localStorage.getItem(n)??void 0}it.page.on("matchMediaChangePrefersColorSchemeDark",n=>{Vo(n?"dark":"light")}),vm();function Vo(n){lu("colorScheme",n),document.documentElement.classList.toggle("dark",n=="dark")}function vm(){const n=lu("colorScheme");if(n=="dark"||n=="light")return Vo(n),n;{const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return Vo(e),e}}const ce={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 Kr(n,e){if(n.hasOwnProperty("r")&&n.hasOwnProperty("g")&&n.hasOwnProperty("b"))return n.r=Math.round(At(n.r,0,255)),n.g=Math.round(At(n.g,0,255)),n.b=Math.round(At(n.b,0,255)),n.hasOwnProperty("a")?n.a=typeof e=="number"?e:n.a:n.a=typeof e=="number"?e:1,n.a=At(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 r=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(n);r&&(s=(parseInt(r[1])<<16)+(parseInt(r[2])<<8)+parseInt(r[3]),r[4]&&(t.a=parseFloat(r[4])))}else if(n[0]==="#")s=parseInt(n.slice(1,7),16),n.length>7&&(t.a=ns(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=At(t.a,0,1),t}function ym(n,e){const t=Kr(n,e);return t.a===1?`rgb(${t.r},${t.g},${t.b})`:`rgba(${t.r},${t.g},${t.b},${t.a})`}function Zr(n){return Yp(n.toString(16),2,"0","left")}function cu(n,e){const t=Kr(n,e);let s=`#${Zr(t.r)}${Zr(t.g)}${Zr(t.b)}`;return t.a===1?s:s+`${Zr(t.a)}`}const _m=()=>Math.random()*16777215,Qr=()=>cu(_m());function Hs(n,e){const t=Kr(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(At(t.r,0,255)),t.g=Math.round(At(t.g,0,255)),t.b=Math.round(At(t.b,0,255)),cu(t)}const Jr=new Map;async function bm(n){return new Promise((e,t)=>{xm(n,(s,r)=>s?t(s):e({width:r.width,height:r.height,aspectRatio:r.width/r.height}))})}const xm=(n,e)=>{if(Jr.has(n))return e(null,Jr.get(n));const t=new Image;t.onload=function(){Jr.set(n,{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height,element:t}),e(null,Jr.get(n))},t.onerror=function(s){e(s,null)},t.src=n};class Ys extends ot{shapes=[];constructor(e){super(e)}toSVGPathData(){return this.shapes.reduce((e,t,s)=>{const r=t.toSVGPathData();return Array.isArray(r[0])?e.push(...r):e.push(r),e},[])}toCanvasContext(e){}}const wm=Ys;class Em extends gm{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=Qp(t);for(let r of s.stylesheet.rules)for(let i of r.declarations)for(let o of r.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${i.property}:${i.value}`)}catch{console.error("CAN'T parse css text: "+t)}return}this.text+=t}),this.on("/tag",(t,s)=>{let r=this.groups.length;for(;r--;)if(this.groups[r]!=this.currentItem){let i="",o="";for(let a in this.groups[r])a=="transform"?i=this.groups[r].transform:a=="class"&&this.globalStyles["."+this.groups[r][a]]?o=this.globalStyles["."+this.groups[r][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[r][a]]?o=this.globalStyles["#"+this.groups[r][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[r][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=i:this.currentItem.transform+=" "+i,typeof this.currentItem.style>"u"?this.currentItem.style=o:this.currentItem.style=o+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),Go(this.currentItem.style,this.currentItem,jo)}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=[],r;switch(e){case"svg":let i="",o="";if(t.width&&t.height)i=t.width,o=t.height;else if(t.viewBox){const a=t.viewBox.split(/\s+/gi);a.length==4&&(i=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}i&&o&&this.items.push({type:"viewbox",width:i,height:o});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":r={},t.style&&Go(t.style,r),r.offset=r.offset||t.offset,r.color=r["stop-color"]||t["stop-color"],r.opacity=r["stop-opacity"]||t["stop-opacity"],~(r.offset+"").indexOf("%")?r.offset=parseFloat(r.offset):r.offset=parseFloat(r.offset)*100,r.offset=+r.offset.toFixed(2),this.grad.stops.push(r);break;case"linearGradient":this.grad.angle=(360+Fo(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++)r=this.grad.stops[a],a&&a!=l-1?s.push(r.color+":"+r.offset):s.push(r.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++)r=this.grad.stops[a],a&&a!=l-1?s.push(r.color+":"+r.offset):s.push(r.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 i in t){const o=t[i];if(jo.includes(i)&&(this.currentItem[i]=o),i==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:i,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:i,stops:[]})),i==="style"&&Go(o,this.currentItem,jo),i==="transform"&&(this.currentItem.transform=o+(this.currentItem.transform||" ")),i==="fill"){const a=o.match(/url\(#([^)]+)\)/);if(a){const l=a[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}i==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+o+"z"),i==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=o),i==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=o)}}addToItems(){this.items.push(this.currentItem)}}function Fo(n,e,t,s,r,i){if(typeof r>"u"||typeof i>"u"){const o=n-t,a=e-s;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return Fo(n,e,r,i)-Fo(t,s,r,i)}function Go(n,e,t){const s=(n+"").split(";"),r=/^\s+|\s+$/g;for(let i=0,o=s.length;i<o;i++){let a=s[i].split(":"),l=a[0].replace(r,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!t||t.includes(l))&&(e[l]=a[1].replace(r,""))}}const jo=["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 Sm=class{app;rootEl;shapes=[];allShapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e,t,s){this.app=e,this.rootEl=et.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 r=0,i=this.shapes.length;for(;r<i;r++){const o=this.shapes[r];if(!(o instanceof Ge))continue;const a=o.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1;if(a&&(this.currentMouseInShapeID=o.id),o.mouseMove&&o.mouseMove(a),a&&o.enableDrag){this.currentEnableDragMouseInShapeID=o.id;break}}r>=i&&(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 et.downloadFromSVGElement(this.rootEl)}attr(e,t,s){const r=e.el||e;if(!(r instanceof SVGElement))return this;if(t===void 0&&s===void 0)return q.attribute(r);if(typeof t=="string"&&s===void 0)return q.attribute(r,Mt(t))||"";if(typeof t=="object"){const i=q.attribute(r);if(q.attribute(r,t),e instanceof ot){e.attrs={...t};for(let o in t)Mt(o)===i[Mt(o)]&&delete i[Mt(o)];for(let o in i)o!=="d"&&o!=="fill"&&o!=="stroke"&&q.removeAttribute(r,o)}}else typeof t=="string"&&s!==void 0&&(q.attribute(r,Mt(t),s),e instanceof ot&&(e.attrs[Mt(t)]=s));return this}path(e,t){const s=typeof t?.addToShapes=="boolean"?t?.addToShapes:!0;if(e instanceof fu){e.el=this.text(e.text,e.x,e.y),this.attr(e.el,e.attrs),this.allShapes.push(e);return}if(e instanceof nt){const i=`M ${e.fromX} ${e.fromY} `+e.toSVGPathD();e.el=et.createSvgPath(i),q.insert(this.rootEl,e.el),this.update(e),this.allShapes.push(e),s&&this.shapes.push(e);return}if(e instanceof Zt){e.shapes.forEach(i=>{i.el=et.createSvgPath(i.toSVGPathD()),q.insert(this.rootEl,i.el),this.update(i),this.allShapes.push(i),s&&this.shapes.push(i)});return}if(e instanceof Ys){e.shapes.forEach(i=>this.path(i,t));return}let r;return e instanceof Ge?r=e:e instanceof ot?r=Ge.fromShape(e):(r=Ge.fromSVGPathD(e||"M0,0"),Xr(r,t||{})),r.el=et.createSvgPath(r.toSVGPathD()),q.insert(this.rootEl,r.el),this.update(r),this.allShapes.push(r),s&&this.shapes.push(r),r}update(e){if(!e)return;const t=[];e instanceof Ys?t.push(...e.shapes):t.push(e),t.forEach(s=>{if(s instanceof Ge){if(s.followMouse&&(!js(s.x,this.app.mousePoint.x,5)||!js(s.y,this.app.mousePoint.y,5))&&(s.angleTo(this.app.mousePoint),s.followTo(this.app.mousePoint)),s.targetToAfterDragFree&&(this.isMouseDown||s.nextFrameEaseTo(new We({x:s.targetToAfterDragFree.targetX,y:s.targetToAfterDragFree.targetY}),{easing:s.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==s.id){const{dx:r,dy:i}=s.centerDiff;s.x=this.app.mousePoint.x,s.y=this.app.mousePoint.y,s.x-=r,s.y-=i,s.isDragging=!0,this.shapes.filter(o=>o.id!=s.id).forEach(o=>{o instanceof ot&&(o.isDragging=!1)})}s.updateTransform()}(s instanceof nt||s instanceof Ge)&&(this.attr(s,"d",s instanceof nt?`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 Ge&&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,r,i){if(i==0)throw new Error("no dividing by zero, please");const o=new Ge({x:e,y:t}),a=360/i;for(let l=0;l<i;l+=1){const c=a*l*Math.PI/180,u=e+2*s*Math.cos(c),h=t+2*s*Math.sin(c);o.appendLine(new Us({x:u,y:h,rx:s,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.appendLine(new Us({x:e,y:t,rx:s,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return this.path(o),o}trailPath(e,t,s=0){const r=e.getTotalLength();return this.attr(t,"d",e.getSubpath(0,s*r).toSVGPathD()),e.getPointAtLength(s*r)}circle(e,t,s){return this.path(new We({x:e,y:t,radius:s}))}circleEl(e,t,s){const r=et.createSVGElement("circle",{cx:String(e),cy:String(t),r:String(s)});return q.insert(this.rootEl,r),r}ellipse(e,t,s,r){return this.path(new Im({x:e,y:t,rx:s,ry:r}))}ellipseEl(e,t,s,r){const i=et.createSVGElement("ellipse",{cx:String(e),cy:String(t),rx:String(s),ry:String(r)});return q.insert(this.rootEl,i),i}rect(e,t,s,r){return this.path(new Rt({x:e,y:t,width:s,height:r}))}rectEl(e,t,s,r){const i=et.createSVGElement("rect",{x:String(e),y:String(t),width:String(s),height:String(r)});return q.insert(this.rootEl,i),i}image(e,t,s,r,i){}text(e,t,s,r="1.2em"){const i=et.createSVGElement("text",{x:String(t),y:String(s)});return e.split(`
56
+ `).forEach((o,a)=>{if(o.trim()){const l=et.createSVGElement("tspan",{x:String(t),dy:a>0?r:"0"});q.html(l,o),q.insert(i,l),this.attr(l,{"alignment-baseline":"middle"})}}),q.insert(this.rootEl,i),i}};const uu=Cm("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 Cm(n,e=10){const t={},s=n.split(",");for(let r=0;r<s.length;r+=2){const i="&"+s[r+1]+";",o=parseInt(s[r],e);t[i]="&#"+o+";"}return t["\\xa0"]="&#160;",t}function St(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 ei(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 Tm(n){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[n]||e.start}function km(n){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[n]||e.alphabetic}const Xs={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 zo{__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 i=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(t);i&&(s.setAttribute("stop-color",St("rgb({r},{g},{b})",{r:i[1],g:i[2],b:i[3]})),s.setAttribute("stop-opacity",i[4]))}else s.setAttribute("stop-color",t);this.__root.appendChild(s)}}class hu{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}}class ti{__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(Xs);for(let t=0,s=e.length;t<s;t++){const r=e[t];this[r]=Xs[r].canvas}}__getStyleState(){const e={},t=Object.keys(Xs);for(let s=0,r=t.length;s<r;s++){const i=t[s];e[i]=this[i]}return e}__applyStyleState(e){const t=Object.keys(e);for(let s=0,r=t.length;s<r;s++){const i=t[s];this[i]=e[i]}}__createElement(e,t={},s=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",e),i=Object.keys(t);s&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let o=0;o<i.length;o++){const a=i[o];r.setAttribute(a,t[a])}return r}__applyStyleToCurrentElement(e){let t=this.__currentElement;const s=this.__currentElementsToStyle;s&&(t.setAttribute(e,""),t=s.element,s.children.forEach(i=>{i.setAttribute(e,"")}));const r=Object.keys(Xs);for(let i=0;i<r.length;i++){const o=Xs[r[i]],a=this[r[i]];if(o.apply){if(a instanceof hu){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(o.apply,St("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof zo)t.setAttribute(o.apply,St("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(e)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.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(o.svgAttr,St("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(o.svgAttr+"-opacity",""+u)}else{let l=o.svgAttr;if(r[i]==="globalAlpha"&&(l=e+"-"+o.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 r=Object.keys(uu);for(let i=0,o=r.length;i<o;i++){const a=r[i],l=uu[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 r=this.__createElement("g");t.appendChild(r),this.__currentElement=r}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(St("scale({x},{y})",{x:e,y:t}))}rotate(e){const t=e*180/Math.PI;this.__addTransform(St("rotate({angle},{cx},{cy})",{angle:t,cx:0,cy:0}))}translate(e,t){this.__addTransform(St("translate({x},{y})",{x:e,y:t}))}transform(e,t,s,r,i,o){this.__addTransform(St("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:t,c:s,d:r,e:i,f:o}))}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(St("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(St("L {x} {y}",this.__currentPosition)):this.__addPathCommand(St("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,t,s,r,i,o){this.__currentPosition={x:i,y:o},this.__addPathCommand(St("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:t,cp2x:s,cp2y:r,x:i,y:o}))}quadraticCurveTo(e,t,s,r){this.__currentPosition={x:s,y:r},this.__addPathCommand(St("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:t,x:s,y:r}))}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,r,i){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(i<0)throw new Error("IndexSizeError: The radius provided ("+i+") is negative.");if(o===e&&a===t||e===s&&t===r||i===0){this.lineTo(e,t);return}const l=this.normalize([o-e,a-t]),c=this.normalize([s-e,r-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]]),p=i/Math.sin(h/2),g=e+p*f[0],y=t+p*f[1],b=[-l[1],l[0]],O=[c[1],-c[0]],D=function(se){const V=se[0];return se[1]>=0?Math.acos(V):-Math.acos(V)},I=D(b),L=D(O);this.lineTo(g+b[0]*i,y+b[1]*i),this.arc(g,y,i,I,L)}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,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,t),this.lineTo(e+s,t),this.lineTo(e+s,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.closePath()}fillRect(e,t,s,r){const i=this.__createElement("rect",{x:e,y:t,width:s,height:r},!0);this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("fill")}strokeRect(e,t,s,r){const i=this.__createElement("rect",{x:e,y:t,width:s,height:r},!0);this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const t=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],r=s.childNodes;for(let i=r.length-1;i>=0;i--)r[i]&&s.removeChild(r[i]);this.__currentElement=s,this.__groupStack=[],t&&this.__addTransform(t)}clearRect(e,t,s,r){if(e===0&&t===0&&s===this.width&&r===this.height){this.__clearCanvas();return}const i=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:e,y:t,width:s,height:r,fill:"#FFFFFF"},!0);i.appendChild(o)}createLinearGradient(e,t,s,r){const i=this.__createElement("linearGradient",{id:ei(this.__ids),x1:e+"px",x2:s+"px",y1:t+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(i),new zo(i,this)}createRadialGradient(e,t,s,r,i,o){const a=this.__createElement("radialGradient",{id:ei(this.__ids),cx:r+"px",cy:i+"px",r:o+"px",fx:e+"px",fy:t+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new zo(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,r){const i=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":i.family,"font-size":i.size,"font-style":i.style,"font-weight":i.weight,"text-decoration":i.decoration,x:t,y:s,"text-anchor":Tm(this.textAlign),"dominant-baseline":km(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(r),o.appendChild(this.__wrapTextLink(i,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,r,i,o){if(r===i)return;r=r%(2*Math.PI),i=i%(2*Math.PI),r===i&&(i=(i+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=e+s*Math.cos(i),l=t+s*Math.sin(i),c=e+s*Math.cos(r),u=t+s*Math.sin(r),h=o?0:1;let f=0,p=i-r;p<0&&(p+=2*Math.PI),o?f=p>Math.PI?0:1:f=p>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(St("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=ei(this.__ids),r=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",St("url(#{id})",{id:s})),e.appendChild(r),this.__currentElement=r}drawImage(...e){let t=e[0],s,r,i,o,a=0,l=0,c,u,h,f,p,g,y,b;if(e.length===3)s=e[1],r=e[2],c=t.width,u=t.height,i=c,o=u;else if(e.length===5)s=e[1],r=e[2],i=e[3],o=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],r=e[6],i=e[7],o=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const O=this.__closestGroupOrSvg();this.__currentElement;const D="translate("+s+", "+r+")";if(t instanceof ti){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(p=h.childNodes[1],p){const I=p.getAttribute("transform");let L;I?L=I+" "+D:L=D,p.setAttribute("transform",L),O.appendChild(p)}}}else(t.nodeName==="CANVAS"||t.nodeName==="IMG")&&(g=this.__createElement("image"),g.setAttribute("width",i),g.setAttribute("height",o),g.setAttribute("preserveAspectRatio","none"),(a||l||c!==t.width||u!==t.height)&&(y=this.__document.createElement("canvas"),y.width=i,y.height=o,y.getContext("2d")?.drawImage(t,a,l,c,u,0,0,i,o),t=y),g.setAttribute("transform",D),g.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),O.appendChild(g))}createPattern(e,t){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=ei(this.__ids);let i;return s.setAttribute("id",r),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(i=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),i.setAttribute("width",""+e.width),i.setAttribute("height",""+e.height),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),s.appendChild(i),this.__SVGdefs.appendChild(s)):e instanceof ti&&(s.setAttribute("width",""+e.width),s.setAttribute("height",""+e.height),s.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new hu(s,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Bo{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 ti({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,r){return this.context.fillRect(e,t,s,r),this.customContext.fillRect(e,t,s,r),this}fillText(e,t,s,r){return this.context.fillText(e,t,s,r),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,r){return this.context.strokeText(e,t,s,r),this.customContext.strokeText(e,t,s),this}strokeRect(e,t,s,r){return this.context.strokeRect(e,t,s,r),this.customContext.strokeRect(e,t,s,r),this}measureText(e){return this.context.measureText(e)}clearRect(e=0,t=0,s=this.canvas.width,r=this.canvas.height){return this.context.clearRect(e,t,s,r),this.customContext.clearRect(e,t,s,r),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,r,i,o){return this.context.arc(e,t,s,r,i,o),this.customContext.arc(e,t,s,r,i,o?-1:1),this.currentPath2D.arc(e,t,s,r,i,o),this}arcTo(e,t,s,r,i){return this.context.arcTo(e,t,s,r,i),this.customContext.arcTo(e,t,s,r,i),this.currentPath2D.arcTo(e,t,s,r,i),this}ellipse(e,t,s,r,i,o,a,l){return this.context.ellipse(e,t,s,r,i,o,a,l),this.currentPath2D.ellipse(e,t,s,r,i,o,a,l),this}quadraticCurveTo(e,t,s,r){return this.context.quadraticCurveTo(e,t,s,r),this.customContext.quadraticCurveTo(e,t,s,r),this.currentPath2D.quadraticCurveTo(e,t,s,r),this}bezierCurveTo(e,t,s,r,i,o){return this.context.bezierCurveTo(e,t,s,r,i,o),this.customContext.bezierCurveTo(e,t,s,r,i,o),this.currentPath2D.bezierCurveTo(e,t,s,r,i,o),this}rect(e,t,s,r){return this.context.rect(e,t,s,r),this.customContext.rect(e,t,s,r),this.currentPath2D.rect(e,t,s,r),this}createLinearGradient(e,t,s,r,i){const o=this.context.createLinearGradient(e,t,s,r),a=this.customContext.createLinearGradient(e,t,s,r);return i&&Object.keys(i).forEach(l=>{const c=parseFloat(l);o.addColorStop(c,i[c]),a.addColorStop(c,i[c])}),{gradient:o,gradientCustom:a}}createRadialGradient(e,t,s,r,i,o,a){const l=this.context.createRadialGradient(e,t,s,r,i,o),c=this.customContext.createRadialGradient(e,t,s,r,i,o);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],r=t[1];this.context.drawImage(e,s,r)}else if(t.length===4){const s=t[0],r=t[1],i=t[2],o=t[3];this.context.drawImage(e,s,r,i,o)}else if(t.length===8){const s=t[0],r=t[1],i=t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7];this.context.drawImage(e,s,r,i,o,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,r=this.canvas.height,i){return this.context.getImageData(e,t,s,r,i)}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 Om=Bo;class nt extends ot{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 nt({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=Ao(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),r=Math.max(this.x,this.fromX),i=Math.max(this.y,this.fromY);return new qr({x:t,y:s,width:r-t,height:i-s})}else{const t=Math.sin(e),s=Math.cos(e),r=s*this.fromX-t*this.fromY,i=s*this.x-t*this.y,o=s*this.fromY+t*this.fromX,a=s*this.y+t*this.x;return new qr({x:Math.min(r,i),y:Math.min(o,a),width:Math.max(r,i)-Math.min(r,i),height:Math.max(o,a)-Math.min(o,a)})}}interpolate(e){return{x:this.fromX+e*(this.x-this.fromX),y:this.fromY+e*(this.y-this.fromY)}}}class Ho extends nt{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 Ho({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=et.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new qr({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 et.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,r=this.c1x,i=this.c1y,o=this.c2x,a=this.c2y,l=this.x,c=this.y;if(e<0||et.bezlen(t,s,r,i,o,a,l,c)<e)return 0;let u=1,h=u/2,f=u-h,p,g=.01;for(p=et.bezlen(t,s,r,i,o,a,l,c,f);Math.abs(p-e)>g;)h/=2,f+=(p<e?1:-1)*h,p=et.bezlen(t,s,r,i,o,a,l,c,f);return f}getPointAtSegmentLength(e){const t=this.getTatLen(e),s=this.fromX,r=this.fromY,i=this.c1x,o=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-t,f=Math.pow(h,3),p=Math.pow(h,2),g=t*t,y=g*t,b=f*s+p*3*t*i+h*3*t*t*a+y*c,O=f*r+p*3*t*o+h*3*t*t*l+y*u,D=s+2*t*(i-s)+g*(a-2*i+s),I=r+2*t*(o-r)+g*(l-2*o+r),L=i+2*t*(a-i)+g*(c-2*a+i),se=o+2*t*(l-o)+g*(u-2*l+o),V=h*s+t*i,U=h*r+t*o,be=h*a+t*c,xe=h*l+t*u,Te=90-Math.atan2(D-L,I-se)*180/Math.PI;return{x:b,y:O,m:{x:D,y:I},n:{x:L,y:se},start:{x:V,y:U},end:{x:be,y:xe},alpha:Te}}}const kn=Ho;class Un extends nt{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 Un({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 Pm=Un;class Us extends nt{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 Us({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,r,i,o,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,r,i,o,a,l,!this.sweepFlag)}convertSVGToCanvas(e,t,s,r,i,o,a,l,c){const u=a/180*Math.PI,h=(e-s)/2,f=(t-r)/2,p=Math.cos(u)*h+Math.sin(u)*f,g=-Math.sin(u)*h+Math.cos(u)*f,y=p*p/(i*i)+g*g/(o*o);if(y>1){const Ae=Math.sqrt(y);throw i=Ae*i,o=Ae*o,new Error(`Radii are too small to build an arc. Correcting them to ${i}/${o}.`)}const b=Math.sqrt((i*i*o*o-i*i*g*g-o*o*p*p)/(i*i*g*g+o*o*p*p)),O=l!=c?1:-1,D=O*b*i*g/o,I=O*b*-o*p/i,L=(e+s)/2,se=(t+r)/2,V=Math.cos(u)*D-Math.sin(u)*I+L,U=Math.sin(u)*D+Math.cos(u)*I+se,be=(Ae,_e,De,Ye)=>(Ae*Ye>=_e*De?1:-1)*Math.acos((Ae*De+_e*Ye)/(Math.sqrt(Ae*Ae+_e*_e)*Math.sqrt(De*De+Ye*Ye))),xe=be(1,0,e-V,t-U)-u,Te=be(e-V,t-U,s-V,r-U);return[V,U,i,o,u,xe,xe+Te]}}class Ge extends ot{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 Us){Ro(this.prevPathX,this.prevPathY,e.rx,e.ry,e.xAxisRotate,e.largeArcFlag,e.sweepFlag,e.x,e.y).forEach(c=>{const[u,h,f,p,g,y]=c;this.normalizedLines.push(new kn({c1x:u,c1y:h,c2x:f,c2y:p,x:g,y,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=g,this.prevPathY=y});return}let t,s,r,i,o,a;e instanceof kn?(t=e.c1x,s=e.c1y,r=e.c2x,i=e.c2y,o=e.x,a=e.y):e instanceof Pm?[t,s,r,i,o,a]=$o(this.prevPathX,this.prevPathY,e.cx,e.cy,e.x,e.y):[t,s,r,i,o,a]=Bs(this.prevPathX,this.prevPathY,e.x,e.y),this.normalizedLines.push(new kn({c1x:t,c1y:s,c2x:r,c2y:i,x:o,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=o,this.prevPathY=a}static fromShape(e){const t=Ge.fromSVGPathD(e.toSVGPathD());return Xr(t,e),Wp(t,e),t.prevDegree=0,t.prevScaleOnOrigin=1,t.prevSkewDegreeOnOrigin=0,t.updateTransform(),t}static fromSVGPathD(e,t){const s=new Ge;return s.updateFromSVGPathD(e,t),s}static fromSVGPathData(e,t){const s=new Ge;return s.updateFromSVGPathData(e,t),s}updateFromSVGPathD(e,t){if(!et.isSVGPath(e))throw new Error("Not a SVG path!");return this.updateFromSVGPathData(et.parseSVGPath(e),t)}updateFromSVGPathData(e,t){this.normalizedLines=[];const s=et.normalizeSVGPath(et.absolutizeSVGPath(e));for(let i=0,o=s.length;i<o;i++){const a=s[i];if(a[0]=="M"){this.prevPathX=this.startPathX=a[1],this.prevPathY=this.startPathY=a[2];continue}this.appendLine(new kn({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],x:a[5],y:a[6]}))}const r=ou(t??"");return this.transform(r)}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,...r]=t.toSVGPathData();e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[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 vt().translate(e,t);return this.transform(s),this.prevX=this.x,this.prevY=this.y,this}rotate(e,t=0,s=0){const r=new vt().rotate(e,t,s);return this.transform(r),this.prevDegree=this.degree,this}scale(e,t=e,s=0,r=0){const i=new vt().scale(e,t,s,r);return this.transform(i),this.prevScaleOnOrigin=this.scaleOnOrigin,this}skew(e,t=0){const s=new vt().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=[],r=[];e=this.startPathX,t=this.startPathY,s.push(e),r.push(t),this.normalizedLines.forEach(c=>{const u=et.curveDim(e,t,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);s=s.concat(u.min.x,u.max.x),r=r.concat(u.min.y,u.max.y),e=c.x,t=c.y});const i=Math.min.apply(0,s),o=Math.min.apply(0,r),a=Math.max.apply(0,s),l=Math.max.apply(0,r);return new qr({x:i,y:o,width:a-i,height:l-o})}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 r=1,i=this.normalizedLines.length;r<i&&(s=this.normalizedLines[r],t>1);r++)t-=1;return s.interpolate(t)}}getPointAtLength(e){let t={x:0,y:0,alpha:0},s=0;for(let r=0,i=this.normalizedLines.length;r<i;r++){const o=this.normalizedLines[r],a=o.length();if(s+a>e){t=o.getPointAtSegmentLength(e-s);break}s+=a}return t}getSubpathsAtLength(e,t,s){let r=null,i=0;const o=new Ge;o.prevPathX=o.startPathX=e.x,o.prevPathY=o.startPathY=e.y;for(let a=0,l=e.normalizedLines.length;a<l;a++){const c=e.normalizedLines[a],u=c.length();if(i+u>t&&!r){const h=c.getPointAtSegmentLength(t-i);if(o.appendLine(new kn({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),s)return o;r=o,o.prevPathX=h.x,o.prevPathY=h.y,o.appendLine(new kn({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),i+=u;continue}i+=u,o.appendLine(c)}return o}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 Bo)return s.isPointInPath(new Path2D(this.toSVGPathD()),e,t);let r;try{r=new SVGPoint(e,t)}catch{r=s.createSVGPoint(),r.x=e,r.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(r):!1}isPointInStroke(e,t,s){if(s instanceof Bo)return s.isPointInStroke(new Path2D(this.toSVGPathD()),e,t);let r;try{r=new SVGPoint(e,t)}catch{r=s.createSVGPoint(),r.x=e,r.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(r):!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 Ge({x:e[0],y:e[1]});for(let s=2;s+5<e.length;s+=6)t.appendLine(new kn({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],r=e[t-1],i=0;for(let o=0;o<t;o+=6)i+=su(e[o],e[o+1],s,r),s=e[o],r=e[o+1];return Math.floor(i)}fillPathD(e){const t=this.polymorphPoints,s=t.length;let r=e-s;const i=Math.ceil(e/s),o=[];o.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++],p=t[a++];o.push(["C",l,c,u,h,f,p]);let g=0;for(;g<i&&r>0;)o.push(["C",f,p,f,p,f,p]),r-=6,g++}return Ge.fromSVGPathData(o)}static mixPoints(e,t,s){const r=e.length,i=new Array(r);for(let o=0;o<r;o++)i[o]=ns(e[o]+(t[o]-e[o])*s,6);return i}static getPathInterpolator(e,t){return s=>Math.abs(s-0)<Number.EPSILON?e.toSVGPathD():Math.abs(s-1)<Number.EPSILON?t.toSVGPathD():Ge.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 i=0;i<t;i++){const o=Math.max(e[i].polymorphPoints.length,e[i+1].polymorphPoints.length);s[i]=this.getPathInterpolator(e[i].fillPathD(o),e[i+1].fillPathD(o))}const r=Ge.fromSVGPathD(s[0](0));return i=>{const o=ns(t*i,6),a=Math.min(Math.floor(o),t-1),l=ns(o-a,6);return r.updateFromSVGPathD(s[a](l)),r.attrs=e[a+1].attrs,r}}}class Zt extends wm{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(e){if(super(e),!e?.svg)return;const t=new Em(e.svg).parse();for(let s=0,r=t.length;s<r;s++){const i=t[s];if(i.type=="viewbox"&&i.width&&i.height){if(this.svgWidth=parseFloat(i.width),this.svgHeight=parseFloat(i.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(i.type!="path"||!rs.isSVGPath(i.path))continue;const o={};for(const u in i)u==="type"||u==="path"||u==="transform"||(o[u]=i[u]);const a=rs.absolutizeSVGPath(rs.parseSVGPath(i.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=Ge.fromSVGPathData(u,i.transform);Xr(h,e),h.attrs={...h.attrs,...o,...e.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.shapes.push(h)})}}static fromShape(e){const t=new Zt;return e instanceof ot?t.shapes.push(Ge.fromShape(e)):t.shapes.push(...e.map(s=>Ge.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 r=s;r<t;r++){const i=e.shapes[r].polymorphPoints,o=i[0],a=i[1],l=new Ge({x:o,y:a,attrs:e.shapes[r].attrs});for(let c=2;c+5<i.length;c+=6)l.appendLine(new kn({c1x:o,c1y:a,c2x:o,c2y:a,x:o,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 r=[];e.forEach((a,l)=>{a.shapes.forEach((c,u)=>{r[u]=r[u]||[],r[u][l]=c})});const i=[];r.forEach(a=>i.push(Ge.polymorph(a)));const o=new Zt;return i.forEach(a=>{o.shapes.push(a(0))}),a=>(i.forEach(l=>{l(a)}),o)}}class Im extends ot{rx;ry;constructor(e){super(e),this.rx=e?.rx||0,this.ry=e?.ry||0}getBoundingClientRect(){return new Rt({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 os extends ot{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 r=!1;const i=2e-10;for(let o=0,a=s-1;o<s;a=o,o++){const l=this.points[o].x,c=this.points[o].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),p=l+f*(t-c);if(p===e||Math.abs(p-e)<i)return!0;p>e&&(r=!r)}}return r}[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,r){const i=[];for(let o=0;o<r;o++){const a=o/r*2*Math.PI,{x:l,y:c}=Xn(a,s);i.push(new We({x:e+l,y:t+c}))}return new os(i)}}class fu extends ot{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 du extends Ys{radius;startDegree;endDegree;text="";defaultShowText;p1=new We;p1Offset=10;p2=new We;p2Offset=40;p3=new We;p3Offset=10;p4=new We;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:r}=Xn(wt(t),this.radius+this.p1Offset);this.p1.x=this.x+s,this.p1.y=this.y+r;const{x:i,y:o}=Xn(wt(t),this.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+i,this.p2.y=this.y+o,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 nt({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:a,isShow:this.defaultShowText}),c=new nt({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:a,isShow:this.defaultShowText}),u=new fu({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 Nm({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 Nm extends ot{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}=Xn(wt(this.startDegree),this.radius),{x:s,y:r}=Xn(wt(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+r],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(0,0),e.arc(0,0,this.radius,wt(this.startDegree),wt(this.endDegree),!1),e.closePath()}containPoint(e,t){const[s,r]=[e-this.x,t-this.y],i=Math.sqrt(s*s+r*r);let o=Ao(this.x,this.y,e,t);o<0&&(o+=Math.PI*2);const a=Et(o);return i<this.radius&&a>this.startDegree&&a<this.endDegree}}class ni extends ot{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 Yo extends ot{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)),r=window.setTimeout(function(){e(t+s)},s);return n=t+s,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const Dm=n=>{let e=window.requestAnimationFrame(function t(s){n(s),e=window.requestAnimationFrame(t)});return()=>window.cancelAnimationFrame(e)};class Mm{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=Dm(s=>{const r=[];for(let i in this.renders)this.renders[i](s)===!1&&r.push(parseInt(i));for(let i of r)delete this.renders[i];!this.length&&this.cancelAnimateInWeb&&(this.cancelAnimateInWeb(),this.cancelAnimateInWeb=void 0)}))}runAccurateSetTimeout(e,t=0){let s=!1,r;return this.run(i=>s?!1:(r||(r=i),i-r>=t?(e(),!1):!0)),()=>{s=!0}}}const Be=new Mm;let Ws;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ws=function(){const n=process.hrtime();return n[0]*1e3+n[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ws=self.performance.now.bind(self.performance):Date.now!==void 0?Ws=Date.now:Ws=function(){return new Date().getTime()};const as=Ws;class qs{static _nextId=0;static nextId(){return qs._nextId++}}const si={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-si.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?si.Bounce.In(n*2)*.5:si.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}},Xo=si,Ks={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=Ks.Utils.Factorial;return t(n)/t(e)/t(n-e)},CatmullRom:function(n,e,t,s,r){const i=(t-n)*.5,o=(s-e)*.5,a=r*r,l=r*a;return(2*e-2*t+i+o)*l+(-3*e+3*t-2*i-o)*a+i*r+e}},Linear:function(n,e){const t=n.length-1,s=t*e,r=Math.floor(s),i=Ks.Utils.Linear;return e<0?i(n[0],n[1],s):e>1?i(n[t],n[t-1],t-s):i(n[r],n[r+1>t?t:r+1],s-r)},Bezier:function(n,e){let t=0;const s=n.length-1,r=Math.pow,i=Ks.Utils.Bernstein;for(let o=0;o<=s;o++)t+=r(1-e,s-o)*r(e,o)*n[o]*i(s,o);return t},CatmullRom:function(n,e){const t=n.length-1;let s=t*e,r=Math.floor(s);const i=Ks.Utils.CatmullRom;return n[0]===n[t]?(e<0&&(r=Math.floor(s=t*(1+e))),i(n[(r-1+t)%t],n[r],n[(r+1)%t],n[(r+2)%t],s-r)):e<0?n[0]-(i(n[0],n[0],n[1],n[1],-s)-n[0]):e>1?n[t]-(i(n[t],n[t],n[t-1],n[t-1],s-t)-n[t]):i(n[r?r-1:0],n[r],n[t<r+1?t:r+1],n[t<r+2?t:r+2],s-r)}},Uo=Ks;class pu{_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=as(),t=!1){let s=Object.keys(this._tweens);if(s.length===0)return!1;for(;s.length>0;){this._tweensAddedDuringUpdate={};for(let r=0;r<s.length;r++){const i=this._tweens[s[r]],o=!t;i&&i.update(e,o)===!1&&!t&&delete this._tweens[s[r]]}s=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const Lt=new pu;class Am{constructor(e,t=Lt){this._object=e,this._group=t}_id=qs.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=Xo.Linear.None;_interpolationFunction=Uo.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=as()){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,r){for(const i in s){const o=e[i],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(s[i]);if(!(l==="undefined"||l==="function")){if(c){let u=s[i];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),s[i]=[o].concat(u)}if((l==="object"||a)&&o&&!c){t[i]=a?[]:{};for(const u in o)t[i][u]=o[u];r[i]=a?[]:{},this._setupProperties(o,t[i],s[i],r[i])}else typeof t[i]>"u"&&(t[i]=o),a||(t[i]*=1),c?r[i]=s[i].slice().reverse():r[i]=t[i]||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=as()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=as()){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=Lt){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=Xo.Linear.None){return this._easingFunction=e,this}interpolation(e=Uo.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=as(),t=!0){if(this._isPaused)return!0;let s,r;const i=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>i)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),r=(e-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const o=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===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,r){for(const i in s){if(t[i]===void 0)continue;const o=t[i]||0;let a=s[i];const l=Array.isArray(e[i]),c=Array.isArray(a);!l&&c?e[i]=this._interpolationFunction(a,r):typeof a=="object"&&a?this._updateProperties(e[i],o,a,r):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(e[i]=o+(a-o)*r))}}_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 Rm=Am,$m=qs.nextId,Lm=Lt.getAll.bind(Lt),Vm=Lt.removeAll.bind(Lt),Fm=Lt.add.bind(Lt),Gm=Lt.remove.bind(Lt),jm=Lt.update.bind(Lt),fe={now:as,Sequence:qs,Easing:Xo,Interpolation:Uo,Group:pu,Tween:Rm,nextId:$m,getAll:Lm,removeAll:Vm,add:Fm,remove:Gm,update:jm};function zm(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 Bm={attributeName:["display"],values:[["block","block"]],immediate:!1},Nt={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class yt{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 it(t),originAttrs:{}})}),this}static isRunningGlobalTween=!1;static runGlobalTween(e){this.isRunningGlobalTween||Be.run(()=>(this.isRunningGlobalTween=fe.update(e?.()),this.isRunningGlobalTween))}static toTween(e,t,s){const r=s?.onStart||(()=>{}),i=s?.onUpdate||(()=>{}),o=s?.onComplete||(()=>{}),a=s?.duration||1e3,l=s?.delay||0,c=s?.easeFunction||fe.Easing.Linear.None,u=s?.repeat||0,h=s?.yoyo||!1,f=new fe.Tween(e).to(t,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(r).onUpdate((p,g)=>{i(p,g)}).onComplete(o);return s?.interpolationFunction&&f.interpolation(s.interpolationFunction),{tween:f,startAuto:p=>{f.start(p?.()),Be.run(()=>{const g=f.update(p?.());if(s?.precision){let y=!0;for(let b in e)js(e[b],t[b],s.precision)||(y=!1);return y?!1:g}return g})}}}static toTweenCSS(e,t,s,r){q.add3DSupport(e);const i=r?.onUpdate||(()=>{});return yt.toTween(t,s,Object.assign(r||{},{onUpdate:(o,a)=>{const l=q.convertAttrs(e,o);q.setStyle(e,l),i(o,a)}}))}addAnimateObject(e=Bm,t=Nt,s=0,r=!1){const i=t.easeName||"linear",o=t.dur||300,a=t.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(zm(i))});const c=this.objects[s];return this.animateObjects=r?[]: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:i,begin:t.begin||0,dur:o,repeatCount:t.repeatCount||1,direction:t.direction||"normal",fill:t.fill||"freeze",keyTimes:a,realKeyTimes:a.map(u=>o*u),keySplines:l,calcMode:t.calcMode||"linear",onComplete:t.onComplete||(()=>{})}),this}resetAnimateObjects(e,t,s,r,i=Nt,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=At(o,0,h);let f=o-1;f=At(f,0,h);let p=o+1;p=At(p,0,h);const g=this.objects[o],y=this.objects[f],b=this.objects[p];if(y&&f!==o){const O=e(y);O&&(this.addAnimateObject(O,i,f,a),a=!1,l=!0)}if(g){const O=t(g);O&&(this.addAnimateObject(O,i,o,a),a=!1,c=!0)}if(b&&p!==o){const O=s(b);O&&(this.addAnimateObject(O,i,p,a),a=!1,u=!0)}this.objects.forEach((O,D)=>{if(!(D==f&&l||D==o&&c||D==p&&u)){const I=r(O);I&&(this.addAnimateObject(I,i,D,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((i,o)=>{q.setStyle(i.el,{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});let s=0;const r=()=>{this.animateObjects.forEach((i,o)=>{let a=[],l=[];Array.isArray(i.attributeName)?(a=i.attributeName,l=i.values):i.attributeName&&(a=[i.attributeName],l=[i.values]);const c=i.keyTimes.length;let u=i.begin;i.keyTimes.forEach((h,f)=>{if(f==0||i.immediate){const p={};a.forEach((y,b)=>{const O=l[b][i.direction=="reverse"?c-1-f:f];p[y]=O});const g=q.convertAttrs(i.el,p,i.originAttrs);q.setStyle(i.el,Object.assign(g,{transition:"none"}))}else Be.runAccurateSetTimeout(()=>{const p={};a.forEach((y,b)=>{const O=l[b][i.direction=="reverse"?c-1-f:f];p[y]=O});const g=q.convertAttrs(i.el,p,i.originAttrs);q.setStyle(i.el,Object.assign(g,{transition:`all ${i.realKeyTimes[f]}ms cubic-bezier(${i.keySplines[f-1].join(",")})`}))},u),u+=i.realKeyTimes[f]}),Be.runAccurateSetTimeout(()=>{i.fill==="remove"&&q.setStyle(i.el,i.originAttrs||{}),o==this.animateObjects.length-1&&(i.onComplete?.(),this.currentAnimateName==e&&(i.repeatCount=="infinite"||typeof i.repeatCount=="number"&&++s<i.repeatCount)&&r())},i.begin+i.dur)})};r()}slideLeft(e=Nt,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=Nt,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=Nt,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=Nt,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=Nt,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=Nt,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=Nt,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=Nt,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=Nt,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=Nt,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=Nt,t=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const s=e.degree||360;this.resetAnimateObjects(r=>{},r=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}}let mu=class{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e){this.app=e,this.ctx=new Om(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 r=this.shapes[t];this.ctx.save(),this.transformCtxBaseOnShape(r);const i=this.ctx.isPointInPath(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),i&&(this.currentMouseInShapeID=r.id),r.mouseMove&&r.mouseMove(i),i&&r.enableDrag){this.currentEnableDragMouseInShapeID=r.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 nt)&&!(e instanceof Ge)&&this.ctx.translate(e.x,e.y),this.ctx.rotate(wt(e.degree)),this.ctx.scale(e.scaleOnOrigin,e.scaleOnOrigin)}draw(e=[]){const t=[];Xp(e)?t.push(...e):t.push(e),this.shapes=[],t.forEach(s=>{s instanceof Ys?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&&(!js(s.x,this.app.mousePoint.x,5)||!js(s.y,this.app.mousePoint.y,5))&&(s.angleTo(this.app.mousePoint),s.followTo(this.app.mousePoint)),s.targetToAfterDragFree&&(this.isMouseDown||s.nextFrameEaseTo(new We({x:s.targetToAfterDragFree.targetX,y:s.targetToAfterDragFree.targetY}),{easing:s.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==s.id){const{dx:r,dy:i}=s.centerDiff;s.x=this.app.mousePoint.x,s.y=this.app.mousePoint.y,s.x-=r,s.y-=i,s.isDragging=!0,this.shapes.filter(o=>o.id!=s.id).forEach(o=>o.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 Ge&&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,r=t?.brushDensity??50,i=t?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=Kr(i);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<r;c++){const u=Math.random()*Math.PI*2,h=Math.random()*s,f=this.app.mousePoint.x+Math.cos(u)*h|0,p=this.app.mousePoint.y+Math.sin(u)*h|0,g=(f+p*o.width)*4;a[g]=l.r,a[g+1]=l.g,a[g+2]=l.b,a[g+3]=255}this.ctx.putImageData(o)}}});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 Hm{map;constructor(e,t=120.619585,s=31.299379,r=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(t,s),r)}}const Ym=pe({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ce.colorPrimary}},setup(n){const e=n;return(t,s)=>(F(),K("span",{class:"icon",style:oe(["color: "+t.color])},[Oe(Ve(zp),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),c_="",me=(n,e)=>{const t=n.__vccOpts||n;for(const[s,r]of e)t[s]=r;return t},Wn=me(Ym,[["__scopeId","data-v-8789b4ce"]]),Xm=pe({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,r=t,i=B(),o=B(s.borderColor),a=B(s.bgColor),l=B(s.fontColor),c=B(s.borderColor),u=B(s.bgColor);function h(I){switch(I){case"outline":o.value=s.borderColor??ce.colorPrimary,a.value=s.bgColor??ce.colorGrayFF,l.value=s.fontColor??ce.colorPrimary,c.value=o.value,u.value=a.value;break;default:o.value=s.borderColor??ce.colorPrimary,a.value=s.bgColor??ce.colorPrimary,l.value=s.fontColor??ce.colorGrayFF,c.value=o.value,u.value=a.value;break}}$e(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const f=B(s.isDisabled?"0.6":"1"),p=B(s.isDisabled?"not-allowed":"pointer");let g=!1;const y=()=>{s.isDisabled||(g=!0,o.value=Hs(c.value,10),a.value=Hs(u.value,10))},b=()=>{s.isDisabled||(g=!1,o.value=c.value,a.value=u.value)},D=Kp(()=>{s.isDisabled||(o.value=Hs(c.value,-10),a.value=Hs(u.value,-10),setTimeout(()=>{g?y():b()},150),r("ceClick"),r("click"))},500);return e({el:i}),(I,L)=>(F(),K("div",{ref_key:"el",ref:i,class:"button",style:oe([`opacity: ${f.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${p.value}`,"user-select: none"]),onMouseover:y,onMouseleave:b,onClick:L[0]||(L[0]=(...se)=>Ve(D)&&Ve(D)(...se))},[P("label",{class:"label truncate",style:oe({padding:"0 "+I.padding,cursor:p.value})},[Xe(I.$slots,"default",{},()=>[I.icon&&I.iconPosition==="left"?(F(),xt(Wn,{key:0,icon:I.icon,color:l.value,style:oe({marginRight:Ve(ce).gap4,cursor:p.value})},null,8,["icon","color","style"])):Ke("",!0),P("span",{style:oe({cursor:p.value})},Re(I.label),5),I.icon&&I.iconPosition==="right"?(F(),xt(Wn,{key:1,icon:I.icon,color:l.value,style:oe({marginLeft:Ve(ce).gap4,cursor:p.value})},null,8,["icon","color","style"])):Ke("",!0)],!0)],4)],36))}}),u_="",ft=me(Xm,[["__scopeId","data-v-7b86bde0"]]),Um=["onClick","value"],Wm={class:"option-inner"},qm=pe({customOptions:{Icon:Wn,Button:ft},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;wn(()=>{q.setStyleSheet(`
56
57
  :root {
57
- --select-option-bg-color: ${ne.colorGrayFF};
58
- --select-option-bg-color-hover: ${ne.colorGrayF5};
58
+ --select-option-bg-color: ${ce.colorGrayFF};
59
+ --select-option-bg-color-hover: ${ce.colorGrayF5};
59
60
  }
60
- `)});const i=G(!1),r=G(n.initIndex);ve(r,function(){s("change",r.value,n.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(D(),z("div",{class:"select",style:q(["font-size:"+l.fontSize])},[N("div",{onClick:o},[Re(l.$slots,"button",{selectedIndex:r.value},()=>[oe(Ne,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Pr(N("div",{class:"options",style:q({border:"1px solid "+Ce(ne).colorGrayCC})},[(D(!0),z(ke,null,ct(l.options,(u,h)=>(D(),z("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:q({borderTop:(h==0?"0":"1px")+" solid "+Ce(ne).colorGrayCC})},[N("div",Rm,[Re(l.$slots,"default",{item:u,index:h},()=>[N("span",null,be(u),1),h==r.value?(D(),Qe(Ln,{key:0,icon:"mingcute:check-fill",class:"icon"})):Be("",!0)],!0)])],12,Am))),128))],4),[[vi,i.value]])],4))}}),ry="",Lm=ee($m,[["__scopeId","data-v-8bb25be3"]]),Fm=["width","height"],Vm=["fill"],Gm=J({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:ne.colorGrayCC}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("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,Vm)],8,Fm))}}),oy="",Ds=ee(Gm,[["__scopeId","data-v-b1f2ae20"]]),zm={class:"button-default"},jm={class:"truncate"},Hm=["onClick","value"],Bm=J({customOptions:{SVGDown:Ds},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:ne.colorGrayFF},hoverColor:{default:ne.colorGrayF5},selectedColor:{default:ne.colorPrimary},fontColor:{default:ne.colorGray33},duration:{default:300}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;dn(()=>{Z.setStyleSheet(`
61
+ `)});const r=B(!1),i=B(t.initIndex);$e(i,function(){s("change",i.value,t.options[i.value])});function o(){r.value=!r.value}function a(l){i.value=l,r.value=!1}return(l,c)=>(F(),K("div",{class:"select",style:oe(["font-size:"+l.fontSize])},[P("div",{onClick:o},[Xe(l.$slots,"button",{selectedIndex:i.value},()=>[Oe(ft,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),xn(P("div",{class:"options",style:oe({border:"1px solid "+Ve(ce).colorGrayCC})},[(F(!0),K(Fe,null,ht(l.options,(u,h)=>(F(),K("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:oe({borderTop:(h==0?"0":"1px")+" solid "+Ve(ce).colorGrayCC})},[P("div",Wm,[Xe(l.$slots,"default",{item:u,index:h},()=>[P("span",null,Re(u),1),h==i.value?(F(),xt(Wn,{key:0,icon:"mingcute:check-fill",class:"icon"})):Ke("",!0)],!0)])],12,Um))),128))],4),[[cn,r.value]])],4))}}),h_="",Km=me(qm,[["__scopeId","data-v-8bb25be3"]]),Zm=["width","height"],Qm=["fill"],Jm=pe({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:ce.colorGrayCC}},setup(n){const e=n;return(t,s)=>(F(),K("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("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,Qm)],8,Zm))}}),f_="",Zs=me(Jm,[["__scopeId","data-v-b1f2ae20"]]),eg={class:"button-default"},tg={class:"truncate"},ng=["onClick","value"],sg=pe({customOptions:{SVGDown:Zs},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:ce.colorGrayFF},hoverColor:{default:ce.colorGrayF5},selectedColor:{default:ce.colorPrimary},fontColor:{default:ce.colorGray33},duration:{default:300}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;wn(()=>{q.setStyleSheet(`
61
62
  :root {
62
- --select-option-bg-color: ${n.bgColor};
63
- --select-option-bg-color-hover: ${n.hoverColor};
63
+ --select-option-bg-color: ${t.bgColor};
64
+ --select-option-bg-color-hover: ${t.hoverColor};
64
65
  }
65
- `)});const i=G(!1),r=G(n.initIndex);ve(r,function(){s("change",r.value,n.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=G("rotate(-180deg)");return Ja(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(D(),z("div",{class:"select-absolute",style:q({fontSize:n.fontSize,backgroundColor:n.bgColor})},[N("div",{class:"select-absolute-button",onClick:o},[Re(c.$slots,"button",{selectedIndex:r.value},()=>[N("div",zm,[N("div",jm,be(c.options[r.value]),1),oe(Ds,{class:"icon-down",width:"20px",style:q({transition:`transform ${n.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),N("div",{class:"options",style:q({maxHeight:i.value?"200px":0,transition:`all ${n.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(D(!0),z(ke,null,ct(c.options,(h,f)=>(D(),z("div",{onClick:d=>a(f),class:"option",key:f,value:f},[Re(c.$slots,"default",{item:h,index:f},()=>[N("div",{class:"option-default",style:q({color:r.value==f?n.selectedColor:n.fontColor})},be(h),5)],!0)],8,Hm))),128))],4)],4))}}),ay="",Um=ee(Bm,[["__scopeId","data-v-5096cb20"]]),Wm=J({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:ne.colorPrimary},colorBgOn:{default:ne.colorGrayEF},colorBgOff:{default:ne.colorGrayF5}},emits:["change"],setup(t,{emit:e}){const n=t,s=Ss(n.width),i=Ss(n.height),r=Ss(n.padding),o=i.number-r.number*2+i.suffix,a=n.padding,l=s.number-Ss(a).number-Ss(o).number+s.suffix,c=e,u=G(n.init);ve(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,d)=>(D(),z("div",{class:"switch",onClick:h,style:q(["width: "+n.width,"height: "+n.height,"background-color: "+(u.value?n.colorBgOn:n.colorBgOff)])},[N("span",{class:"round",style:q(["width: "+o,"height: "+o,"background-color: "+(u.value?n.colorPrimary:Ce(Ps)(n.colorPrimary,30)),"transform: translate("+(u.value?l:Ce(a))+", 0)"])},null,4)],4))}}),ly="",Ym=ee(Wm,[["__scopeId","data-v-8a5d8a64"]]),Xm={class:"wrap"},qm=["onClick"],Km=["stroke","fill"],Zm=["stroke","fill"],Qm=["stroke"],Jm=J({customOptions:{},__name:"RadioGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:ne.colorPrimary},colorBg:{default:ne.colorGrayFF},colorBorder:{default:ne.colorGrayCC},fontSize:{default:ne.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;let i=G(n.initIndexs??0);ve(i,function(){s("change",n.options[i.value])});const r=function(o){i.value=o};return(o,a)=>(D(),z("div",Xm,[(D(!0),z(ke,null,ct(o.options,(l,c)=>(D(),z("span",{class:"item",key:c,onClick:u=>r(c),style:q(["margin-left:"+(c>0?n.itemPadding:0)])},[Re(o.$slots,"default",{label:l,index:c},()=>[(D(),z("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:q(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?Be("",!0):(D(),z("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.isFullfilled&&Ce(i)===c?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Ce(i)===c?o.colorPath:o.colorBg,"fill-opacity":1},null,8,Km)),n.isRounded?(D(),z("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.isFullfilled&&Ce(i)===c?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Ce(i)===c?o.colorPath:o.colorBg,"fill-opacity":1},null,8,Zm)):Be("",!0),Pr(N("path",{d:"M7 13l3 3 7-7",stroke:o.isFullfilled?o.colorBg:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Qm),[[vi,Ce(i)===c]])],4)),N("span",{style:q(["font-size:"+n.fontSize])},be(l),5)],!0)],12,qm))),128))]))}}),cy="",eg=ee(Jm,[["__scopeId","data-v-7e2eff94"]]),tg={class:"wrap"},ng=["onClick"],sg=["stroke","fill"],ig=["stroke","fill"],rg=["stroke"],og=J({customOptions:{},__name:"CheckboxGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:ne.colorPrimary},colorBg:{default:ne.colorGrayFF},colorBorder:{default:ne.colorGrayCC},fontSize:{default:ne.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;let i=st(n.initIndexs??[0]);ve(i,function(){s("change",i.map(o=>n.options[o]))});const r=function(o){const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(D(),z("div",tg,[(D(!0),z(ke,null,ct(o.options,(l,c)=>(D(),z("span",{class:"item",key:c,onClick:u=>r(c),style:q(["margin-left:"+(c>0?n.itemPadding:0)])},[Re(o.$slots,"default",{label:l,index:c},()=>[(D(),z("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:q(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?Be("",!0):(D(),z("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.isFullfilled&&Ce(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Ce(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBg,"fill-opacity":1},null,8,sg)),n.isRounded?(D(),z("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.isFullfilled&&Ce(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Ce(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBg,"fill-opacity":1},null,8,ig)):Be("",!0),Pr(N("path",{d:"M7 13l3 3 7-7",stroke:o.isFullfilled?o.colorBg:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,rg),[[vi,Ce(i).findIndex(u=>u===c)>=0]])],4)),N("span",{style:q(["font-size:"+n.fontSize])},be(l),5)],!0)],12,ng))),128))]))}}),uy="",ag=ee(og,[["__scopeId","data-v-ae9d25d1"]]),lg=["width","height"],cg=["fill"],ug=["fill"],hg=["fill"],fg=J({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:ne.colorRed}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("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,cg),N("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,ug),N("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,hg)],8,lg))}}),hy="",ru=ee(fg,[["__scopeId","data-v-41294f60"]]),dg={class:"wrap"},pg=["type","required"],mg={class:"ellipsis"},gg={key:1,style:{}},_g=J({customOptions:{SVGPrompt:ru},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:ne.colorPrimary},errorColor:{default:ne.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(t,{expose:e,emit:n}){const s=t,i=n,r=s.placeholder.split(""),o=s.duration/r.length,a=G(!1),l=G(""),c=G("");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 Ve(()=>{}),e({}),(m,v)=>(D(),z("div",dg,[N("input",{type:s.type,required:s.required,autocomplete:"off",style:q({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:vt([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,pg),N("div",{class:"placeholder",style:q({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?(D(),z("div",{key:0,style:q({color:s.errorColor,transform:s.placeholderJump?"translateY(-100%)":""})},[oe(ru,{class:"icon"}),N("div",mg,be(l.value),1)],4)):Be("",!0),!l.value&&!s.placeholderJump?(D(),z("div",gg,be(s.placeholder),1)):Be("",!0),!l.value&&s.placeholderJump?(D(!0),z(ke,{key:2},ct(Ce(r),(y,E)=>(D(),z("span",{key:E,style:q({transition:s.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*E}ms`,transform:a.value||c.value?`translateX(${100*E}%) translateY(-100%)`:`translateX(${100*E}%)`}),class:"single"},be(y),5))),128)):Be("",!0)],4),N("div",{class:"bg",style:q({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)]))}}),fy="",vg=ee(_g,[["__scopeId","data-v-e02afc20"]]),yg=["width","height"],bg=["fill"],xg=J({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[N("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,bg)],8,yg))}}),dy="",Mo=ee(xg,[["__scopeId","data-v-4747d4a7"]]),wg=J({customOptions:{SVGDelete:Mo},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:ne.colorGrayFF},deleteColor:{default:ne.colorRed},fontColor:{default:ne.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(!1),o=()=>{i("delete"),r.value=!1};let a;const l=G();return ve(l,()=>{l.value&&(a=new xe(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),Ve(()=>{a?.destroy()}),e({}),(c,u)=>(D(),z("div",{class:"parent",ref_key:"item",ref:l,style:q({backgroundColor:s.bgColor,borderRadius:s.borderRadius})},[N("div",{class:"content",style:q({transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[Re(c.$slots,"default",{},void 0,!0)],4),N("div",{class:"delete",onClick:o,style:q({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[oe(Mo,{color:s.fontColor},null,8,["color"])],4)],4))}}),py="",Eg=ee(wg,[["__scopeId","data-v-244215c2"]]),Cg=t=>{const e={};for(const n of t.attributes)e[n.name]=n.value;return e},Tg={class:"overlay-content",style:q(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},Sg=J({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:um(ne.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(t,{expose:e,emit:n}){const s=t,i=G();function r(o){s.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&o&&(i.value.parentElement.style.overflow="hidden")}return ve(()=>s.visible,()=>{r(s.visible)},{immediate:!0}),e({}),(o,a)=>s.visible?(D(),z("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:q([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[N("div",Tg,[Re(o.$slots,"default",{},void 0,!0)])],4)):Be("",!0)}}),my="",Xn=ee(Sg,[["__scopeId","data-v-1972073d"]]),kg=(t=>(ls("data-v-ad23bc09"),t=t(),cs(),t))(()=>N("div",null,null,-1)),Pg=J({customOptions:{Overlay:Xn},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(t,{expose:e,emit:n}){const s=t,i=n,r=G();let o;const a=st({}),l=st({});function c(){switch(Cs(a),Cs(l),s.directionFrom){case"absolute":o="",a.display="block",l.width="100%",l.height="100%";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}ve(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new Ye,h=(E=!0)=>{!o||!r.value||(E?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};ve(r,()=>{r.value&&h(!0)},{});const f=G(!1);function d(){f.value=!0}function m(){s.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function y(E){s.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(E.target)&&s.closeWhenClickOverlay&&v():r.value&&!r.value.contains(E.target)&&s.closeWhenClickOverlay&&m()}return e({open:d,close:m}),(E,C)=>(D(),Qe(Xn,{visible:f.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Pe(()=>[N("div",{class:"pop-parent",style:q([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:y},[N("div",{ref_key:"pop",ref:r,class:"pop",style:q([{position:"absolute","z-index":"3000"},l])},[Re(E.$slots,"default",{},()=>[kg],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),_y="",St=ee(Pg,[["__scopeId","data-v-ad23bc09"]]),Ng={class:"dialog-parent"},Og={key:0,class:"title"},Ig={key:0,class:"title-inner truncate"},Mg={class:"custom-content"},Dg={class:"custom-content-default"},Ag={key:1,class:"btns"},Rg=J({customOptions:{Overlay:Xn,Pop:St,Icon:Ln,Button:Ne},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(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(""),a=G(""),l=G(!1),c=G(""),u=G("");let h,f,d;function m(C){o.value=C?.title||"",a.value=C?.content||"",l.value=typeof C?.showClose=="boolean"?C?.showClose:!1,c.value=C?.cancelText||"",u.value=C?.confirmText||"",r.value.open(),h=C?.onClose,f=C?.onCancel,d=C?.onConfirm,i("open")}function v(){r.value.close(),h?.(),i("close")}function y(){v(),f?.(),i("cancel")}function E(){v(),d?.(),i("confirm")}return e({open:m,close:v}),(C,w)=>(D(),Qe(St,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Pe(()=>[N("div",Ng,[N("div",{class:"dialog",style:q({minWidth:s.minWidth,maxWidth:s.maxWidth})},[o.value||l.value?(D(),z("div",Og,[o.value?(D(),z("div",Ig,be(o.value),1)):Be("",!0),l.value?(D(),z("div",{key:1,class:"close",onClick:v},[oe(Ln,{icon:"ic:baseline-close",color:Ce(ne).colorGrayCC},null,8,["color"])])):Be("",!0)])):Be("",!0),N("div",Mg,[Re(C.$slots,"default",{},()=>[N("div",Dg,be(a.value),1)],!0)]),c.value||u.value?(D(),z("div",Ag,[c.value?(D(),Qe(Ne,{key:0,onClick:y,class:"btn",bgColor:Ce(ne).colorGrayE6,borderColor:Ce(ne).colorGrayE6,fontColor:Ce(ne).colorGray33,borderRadius:"0"},{default:Pe(()=>[He(be(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Be("",!0),u.value?(D(),Qe(Ne,{key:1,onClick:E,class:"btn",borderRadius:"0"},{default:Pe(()=>[He(be(u.value),1)]),_:1})):Be("",!0)])):Be("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),vy="",As=ee(Rg,[["__scopeId","data-v-6bd255c9"]]),$g={class:"toast"},Lg={class:"content"},Fg=J({customOptions:{Overlay:Xn,Pop:St,Dialog:As},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G("");function a(c,u=1500){o.value=c,r.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){r.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(D(),Qe(As,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:Pe(()=>[N("div",$g,[N("div",Lg,be(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),yy="",ou=ee(Fg,[["__scopeId","data-v-50ed852e"]]),Vg={class:"loading-8"},Gg={viewBox:"25 25 50 50"},zg=J({__name:"Loading8",props:{color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("div",Vg,[(D(),z("svg",Gg,[N("circle",{cx:"50",cy:"50",r:"20",style:q(["stroke: "+e.color])},null,4)]))]))}}),by="",Do=ee(zg,[["__scopeId","data-v-e5e3cf4c"]]),jg={class:"loading"},Hg={class:"icon"},Bg={style:{width:"8em"}},Ug={key:0,class:"content"},Wg=J({customOptions:{Overlay:Xn,Pop:St,Dialog:As,Loading8:Do},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G("");function a(c){o.value=c||"",r.value.open(),i("open")}function l(){r.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(D(),Qe(As,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:Pe(()=>[N("div",jg,[N("div",Hg,[Re(c.$slots,"default",{},()=>[N("div",Bg,[oe(Do)])],!0)]),o.value?(D(),z("div",Ug,be(o.value),1)):Be("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),xy="",Yg=ee(Wg,[["__scopeId","data-v-cb469a6c"]]),Ao=t=>(ls("data-v-85491020"),t=t(),cs(),t),Xg=[Ao(()=>N("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)),Ao(()=>N("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)),Ao(()=>N("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))],qg=J({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{style:q(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Xg,4))}}),Ty="",Vi=ee(qg,[["__scopeId","data-v-85491020"]]),Kg=["data-number"],Zg=["data-number","data-unactive"],Qg=["data-number"],Jg=["data-number","data-unactive"],e0=J({customOptions:{Pop:St,SVGCleanUp:Vi},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(0),a=st([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=s.completePlateLength&&u()}ve(()=>[...s.initPlates],()=>{Ts(a,s.initPlates),l()},{immediate:!0});const c=()=>{r.value.open(),i("open")},u=()=>{r.value.close(),i("close")},h=()=>{a.pop(),l(),i("plates",a)},f=E=>{if(E.target.dataset.unactive||"")return;let w=E.target.dataset.number;w&&(a.push(w),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"],y=["港","澳","学","警","使","领","挂","应","急"];return(E,C)=>(D(),Qe(St,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:Pe(()=>[N("div",{class:"popup-plate",style:q({paddingBottom:Ce(ne).safeAreaBottom})},[N("div",null,[N("div",{onClick:u},"关闭")]),N("div",{class:vt(["step",o.value==0?"":"hide"])},[(D(),z(ke,null,ct(d,w=>N("div",{key:w,class:"popitem",onClick:f,"data-number":w},be(w),9,Kg)),64)),N("div",{class:"popitem popitem-clear",onClick:h},[oe(Vi,{width:"16px"})])],2),N("div",{class:vt(["step",o.value!=0?"":"hide"])},[(D(),z(ke,null,ct(m,w=>N("div",{key:w,class:vt(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":w,"data-unactive":o.value!=2?"unactive":""},be(w),11,Zg)),64)),(D(),z(ke,null,ct(v,w=>N("div",{key:w,class:"popitem",onClick:f,"data-number":w},be(w),9,Qg)),64)),(D(),z(ke,null,ct(y,w=>N("div",{key:w,class:vt(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":w,"data-unactive":o.value!=2?"unactive":""},be(w),11,Jg)),64)),N("div",{class:"popitem popitem-clear",onClick:h},[oe(Vi,{width:"16px"})])],2)],4)]),_:1},512))}}),Sy="",au=ee(e0,[["__scopeId","data-v-bade3529"]]),lu=document.getElementById("teleport")||document.documentElement;function cu(t,e){{const n=xt(ou,{});bi(n,lu),n.component?.exposed?.open(t,e)}}function t0(t,e="bottom"){let n;t instanceof HTMLElement?n=xt(St,{directionFrom:e},()=>xt("div",{...Cg(t),innerHTML:t.innerHTML})):n=xt(St,{directionFrom:e},()=>t),bi(n,document.getElementById("teleport")||document.documentElement),n.component?.exposed?.open();const s=()=>{n.component?.exposed?.close()};return s.vnode=n,s}function n0(t){return t0(t,"absolute")}function s0(t){{const e=xt(au,t);return bi(e,lu),e.component?.exposed?.open(),()=>{e.component?.exposed?.close()}}}const i0={class:"content"},r0=J({customOptions:{},inheritAttrs:!0,__name:"MouseOver",props:{coverColor:{default:"#3cefff"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(!1),a=st({}),l=st({}),c=st({});let u=1,h;ve(r,()=>{r.value&&(d(),h=new xe(r.value,!1),h.on("resize",(m,v)=>{u=Math.max(m,v)/Math.min(m,v);const y=Math.min(m,v);l.width=y+"px",l.height=y+"px",d()}),h.on("mouseOver",()=>{i("mouseOver"),o.value=!0,d()}),h.on("mouseOut",()=>{i("mouseOut"),o.value=!1,d()}),h.start())});function f(){Z.copyToClipboard(Z.getInnerText(r.value)).then(()=>{cu("复制成功")}).catch(m=>{cu(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) ${o.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) ${o.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) ${o.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) ${o.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) ${o.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=`${o.value?"center bottom":"center top"}`,l.transform=`${o.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=`${o.value?"center top":"center bottom"}`,l.transform=`${o.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=`${o.value?"center left":"center right"}`,l.transform=`${o.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=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"animationJelly":l.transform="scale(0)",a.animation=`${o.value?"jelly 0.5s":"none"}`;break;case"floatUp":l.transform="scale(0)",a.transform=`${o.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=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.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=`${o.value?"bottom right":"bottom left"}`,l.transform=`${o.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) ${o.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=`${o.value?"center right":"center left"}`,l.transform=`${o.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=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.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) ${o.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=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Un(l,c),c.right="0";break;case"pillars2":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Un(l,c),c.transformOrigin=`${o.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=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Un(l,c),c.right="0";break;case"bars1":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"center left":"center right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Un(l,c),c.bottom="0";break;case"bars2":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Un(l,c),l.transformOrigin=`${o.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%) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Un(l,c),c.bottom="0";break}}return Ve(()=>{h?.destroy()}),e({}),(m,v)=>(D(),z("div",{ref_key:"wrap",ref:r,class:"wrap",style:q({...a}),onClick:f},[N("div",{class:"before",style:q({backgroundColor:s.coverColor,...l})},null,4),N("div",i0,[Re(m.$slots,"default",{},void 0,!0)]),N("div",{class:"after",style:q({backgroundColor:s.coverColor,...c})},null,4)],4))}}),ky="",Py="",o0=ee(r0,[["__scopeId","data-v-faa28034"]]),a0=J({customOptions:{SVGDown:Ds},inheritAttrs:!0,__name:"Accordion",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(t,{expose:e,emit:n}){const s=t,i=n,r=G(Number.MAX_SAFE_INTEGER+"px"),o=G(),a=G(!0);let l;ve(o,()=>{o.value&&(r.value=o.value.getBoundingClientRect().height+"px",l=new xe(o.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=G("rotate(0deg)");return Ja(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),Ve(()=>{l?.destroy()}),e({}),(h,f)=>(D(),z("div",{class:"wrap",style:q({background:s.bgColor,color:s.fontColor,borderRadius:s.borderRadius})},[N("div",{class:"title",onClick:c,style:q({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}`})},[Re(h.$slots,"title",{},()=>[He("title")],!0),oe(Ds,{class:"arrow",style:q({transition:`transform ${s.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),N("div",{ref_key:"content",ref:o,class:"content",style:q({margin:`0 ${s.padding}`,transition:`max-height ${s.duration}ms ease-in-out`,maxHeight:a.value?r.value:"0"})},[Re(h.$slots,"content",{},void 0,!0)],4)],4))}}),Ny="",l0=ee(a0,[["__scopeId","data-v-9ced806f"]]),c0=J({__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(t,{expose:e,emit:n}){const s=t,i=n,r=G(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);Ye.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return e({start:o,goto:a}),(l,c)=>(D(),z("div",{class:"wrap",style:q({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[N("div",{class:"bar",style:q({width:r.value+"%",backgroundColor:s.progressColor})},be(s.showText?r.value+"%":""),5)],4))}}),Oy="",Rs=ee(c0,[["__scopeId","data-v-30de81f6"]]),u0=["width","height"],h0=["src","type"],f0={class:"bar-wrap"},d0=J({customOptions:{ProgressBar:Rs},inheritAttrs:!0,__name:"Video",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(t,{expose:e,emit:n}){const s=t;function i(){Ye.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{o.value?.start()},onUpdate:l=>{o.value?.goto(l.x)}}).startAuto(()=>this.currentTime)}const r=G(),o=G();ve(r,()=>{r.value&&(r.value.addEventListener("play",i),s.autoplay&&vo.tryAutoPlayOrAutoPlayAfterClick(r.value))}),Ve(()=>{r.value?.removeEventListener(i)});function a(){r.value?.play()}return e({play:a}),(l,c)=>(D(),z("div",{class:"wrap",style:q({width:s.width,height:s.height}),onClick:a},[N("video",{ref_key:"video",ref:r,width:s.width,height:s.height,preload:"metadata"},[N("source",{src:s.src,type:s.type},null,8,h0)],8,u0),N("div",f0,[oe(Rs,{ref_key:"bar",ref:o,width:s.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),Iy="",p0=ee(d0,[["__scopeId","data-v-edddb069"]]),m0=J({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(),a=G(0),l=G(0),c=G(0),u=G(0),h=G(1),f=G(0),d=G(0);hm(s.src).then($=>{c.value=$.width,u.value=$.height,h.value=$.aspectRatio,C()});let m;ve(r,()=>{r.value&&(m=new xe(r.value,!1),m.on("resize",($,O)=>{a.value=$,l.value=O,C()}),m.start())});let v=!1;const y={x:0,y:0,width:0,height:0};let E;function C(){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}La(()=>{const $=o.value.getBoundingClientRect();i("settled",$.x,$.y,f.value,d.value),v&&E(y.x,y.y,y.width,y.height)})}}function w($,O,R,le){const ue=(Oe,at,lt,We,Te,he,M,Y,j)=>{if(!Te||!he||!M||!Y){const fe=De.vnode.el.getBoundingClientRect(),Me=fe.width,Je=fe.height;let Et=0,Ct=0;h.value>=1?(Et=Me,Ct=Et/h.value,Ct>Je&&(Ct=Je,Et=Ct*h.value)):(Ct=Je,Et=Ct*h.value,Et>Me.value&&(Et=Me.value,Ct=Et/h.value)),Te=(Me-Et)/2,he=(Je-Ct)/2,M=Et,Y=Ct}const de=200;Ye.toTween({left:Oe,top:at,width:lt,height:We},{left:Te,top:he,width:M,height:Y},{duration:de,onStart(){},onUpdate(fe){pe.el.style.left=fe.left+"px",pe.el.style.top=fe.top+"px",pe.el.style.width=fe.width+"px",pe.el.style.height=fe.height+"px"},onComplete(fe){y.x=fe.left,y.y=fe.top,y.width=fe.width,y.height=fe.height,j?.()}}).startAuto()},pe=xt("div",{style:`
66
+ `)});const r=B(!1),i=B(t.initIndex);$e(i,function(){s("change",i.value,t.options[i.value])});function o(){r.value=!r.value}function a(c){i.value=c,r.value=!1}const l=B("rotate(-180deg)");return ml(()=>{l.value=r.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(F(),K("div",{class:"select-absolute",style:oe({fontSize:t.fontSize,backgroundColor:t.bgColor})},[P("div",{class:"select-absolute-button",onClick:o},[Xe(c.$slots,"button",{selectedIndex:i.value},()=>[P("div",eg,[P("div",tg,Re(c.options[i.value]),1),Oe(Zs,{class:"icon-down",width:"20px",style:oe({transition:`transform ${t.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),P("div",{class:"options",style:oe({maxHeight:r.value?"200px":0,transition:`all ${t.duration}ms ease-in-out`,borderTop:`${r.value?1:0}px solid #e6e6e6`})},[(F(!0),K(Fe,null,ht(c.options,(h,f)=>(F(),K("div",{onClick:p=>a(f),class:"option",key:f,value:f},[Xe(c.$slots,"default",{item:h,index:f},()=>[P("div",{class:"option-default",style:oe({color:i.value==f?t.selectedColor:t.fontColor})},Re(h),5)],!0)],8,ng))),128))],4)],4))}}),d_="",rg=me(sg,[["__scopeId","data-v-5096cb20"]]),ig=pe({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:ce.colorPrimary},colorBgOn:{default:ce.colorGrayEF},colorBgOff:{default:ce.colorGrayF5}},emits:["change"],setup(n,{emit:e}){const t=n,s=zs(t.width),r=zs(t.height),i=zs(t.padding),o=r.number-i.number*2+r.suffix,a=t.padding,l=s.number-zs(a).number-zs(o).number+s.suffix,c=e,u=B(t.init);$e(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,p)=>(F(),K("div",{class:"switch",onClick:h,style:oe(["width: "+t.width,"height: "+t.height,"background-color: "+(u.value?t.colorBgOn:t.colorBgOff)])},[P("span",{class:"round",style:oe(["width: "+o,"height: "+o,"background-color: "+(u.value?t.colorPrimary:Ve(Hs)(t.colorPrimary,30)),"transform: translate("+(u.value?l:Ve(a))+", 0)"])},null,4)],4))}}),p_="",og=me(ig,[["__scopeId","data-v-8a5d8a64"]]),ag=["onClick"],lg=["stroke","fill"],cg=["stroke","fill"],ug=["stroke"],hg=pe({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:ce.colorGrayFF},colorBgSelected:{default:ce.colorPrimary},colorBgDisabled:{default:ce.colorGrayCC},colorBorder:{default:ce.colorGrayCC},colorBorderSelected:{default:ce.colorPrimary},colorBorderDisabled:{default:ce.colorGrayCC},colorPath:{default:ce.colorGrayFF},colorPathDisabled:{default:ce.colorGrayFF},fontSize:{default:ce.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;let r=B(t.initIndex??0);$e(r,function(){s("change",t.options[r.value])});const i=function(o){t.disabledIndexs&&t.disabledIndexs.findIndex(a=>a==o)>=0||(r.value=o)};return(o,a)=>(F(!0),K(Fe,null,ht(o.options,(l,c)=>(F(),K("div",{class:mt(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>i(c),style:oe(["margin-left:"+(c>0?t.itemPadding:0)])},[Xe(o.$slots,"default",{label:l,index:c},()=>[(F(),K("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:oe(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Ke("",!0):(F(),K("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ve(r)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ve(r)==c?o.colorBgSelected:o.colorBg},null,8,lg)),t.isRounded?(F(),K("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ve(r)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ve(r)==c?o.colorBgSelected:o.colorBg},null,8,cg)):Ke("",!0),Ve(r)==c?(F(),K("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ug)):Ke("",!0)],4)),P("span",{style:oe(["font-size:"+t.fontSize])},Re(l),5)],!0)],14,ag))),128))}}),m_="",fg=me(hg,[["__scopeId","data-v-15ba52e8"]]),dg=["onClick"],pg=["stroke","fill"],mg=["stroke","fill"],gg=["stroke"],vg=pe({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:ce.colorGrayFF},colorBgSelected:{default:ce.colorPrimary},colorBgDisabled:{default:ce.colorGrayCC},colorBorder:{default:ce.colorGrayCC},colorBorderSelected:{default:ce.colorPrimary},colorBorderDisabled:{default:ce.colorGrayCC},colorPath:{default:ce.colorGrayFF},colorPathDisabled:{default:ce.colorGrayFF},fontSize:{default:ce.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;let r=_t(t.initIndexs??[]);$e(r,function(){s("change",r.map(o=>t.options[o]))});const i=function(o){if(t.disabledIndexs&&t.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=r.findIndex(l=>l===o);a>=0?r.splice(a,1):r.push(o)};return(o,a)=>(F(!0),K(Fe,null,ht(o.options,(l,c)=>(F(),K("div",{class:mt(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>i(c),style:oe(["margin-left:"+(c>0?t.itemPadding:0)])},[Xe(o.$slots,"default",{label:l,index:c},()=>[(F(),K("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:oe(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Ke("",!0):(F(),K("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ve(r).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ve(r).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,pg)),t.isRounded?(F(),K("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ve(r).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ve(r).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,mg)):Ke("",!0),Ve(r).findIndex(u=>u===c)>=0?(F(),K("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,gg)):Ke("",!0)],4)),P("span",{style:oe(["font-size:"+t.fontSize])},Re(l),5)],!0)],14,dg))),128))}}),g_="",yg=me(vg,[["__scopeId","data-v-96939a11"]]),_g=["width","height"],bg=["fill"],xg=["fill"],wg=["fill"],Eg=pe({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:ce.colorRed}},setup(n){const e=n;return(t,s)=>(F(),K("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("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,bg),P("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,xg),P("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,wg)],8,_g))}}),v_="",gu=me(Eg,[["__scopeId","data-v-41294f60"]]),Sg={class:"wrap"},Cg=["type","required"],Tg={class:"ellipsis"},kg={key:1,style:{}},Og=pe({customOptions:{SVGPrompt:gu},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:ce.colorPrimary},errorColor:{default:ce.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,r=t,i=s.placeholder.split(""),o=s.duration/i.length,a=B(!1),l=B(""),c=B("");function u(){a.value=!0,r("focus"),r("ceFocus")}function h(){a.value=!1,r("blur"),r("ceBlur"),p()}function f(g){c.value=g.target.value,p()}function p(){if(c.value&&s.validator){const g=s.validator(c.value);if(!g.isValidated){l.value=g.msg;return}}l.value="",c.value&&(r("input",c.value),r("ceInput",c.value))}return tt(()=>{}),e({}),(g,y)=>(F(),K("div",Sg,[P("input",{type:s.type,required:s.required,autocomplete:"off",style:oe({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:mt([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,Cg),P("div",{class:"placeholder",style:oe({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?(F(),K("div",{key:0,style:oe({color:s.errorColor,transform:s.placeholderJump?"translateY(-100%)":""})},[Oe(gu,{class:"icon"}),P("div",Tg,Re(l.value),1)],4)):Ke("",!0),!l.value&&!s.placeholderJump?(F(),K("div",kg,Re(s.placeholder),1)):Ke("",!0),!l.value&&s.placeholderJump?(F(!0),K(Fe,{key:2},ht(Ve(i),(b,O)=>(F(),K("span",{key:O,style:oe({transition:s.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*O}ms`,transform:a.value||c.value?`translateX(${100*O}%) translateY(-100%)`:`translateX(${100*O}%)`}),class:"single"},Re(b),5))),128)):Ke("",!0)],4),P("div",{class:"bg",style:oe({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)]))}}),y_="",Pg=me(Og,[["__scopeId","data-v-e02afc20"]]),Ig=["width","height"],Ng=["fill"],Dg=pe({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:ce.colorPrimary}},setup(n){const e=n;return(t,s)=>(F(),K("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[P("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,Ng)],8,Ig))}}),__="",Wo=me(Dg,[["__scopeId","data-v-4747d4a7"]]),Mg=pe({customOptions:{SVGDelete:Wo},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:ce.colorGrayFF},deleteColor:{default:ce.colorRed},fontColor:{default:ce.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(n,{expose:e,emit:t}){const s=n,r=t,i=B(!1),o=()=>{r("delete"),i.value=!1};let a;const l=B();return $e(l,()=>{l.value&&(a=new it(l.value),a.on("panLeft",()=>{i.value=!0}),a.on("panRight",()=>{i.value=!1}),a.on("tapOutSide",()=>{i.value=!1}))}),tt(()=>{a?.destroy()}),e({}),(c,u)=>(F(),K("div",{class:"parent",ref_key:"item",ref:l,style:oe({backgroundColor:s.bgColor,borderRadius:s.borderRadius})},[P("div",{class:"content",style:oe({transition:"all ease-in "+s.transtionDuration,transform:i.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[Xe(c.$slots,"default",{},void 0,!0)],4),P("div",{class:"delete",onClick:o,style:oe({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:i.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[Oe(Wo,{color:s.fontColor},null,8,["color"])],4)],4))}}),b_="",Ag=me(Mg,[["__scopeId","data-v-244215c2"]]),Rg=n=>{const e={};for(const t of n.attributes)e[t.name]=t.value;return e},$g={class:"overlay-content",style:oe(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},Lg=pe({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:ym(ce.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(n,{expose:e,emit:t}){const s=n,r=B();function i(o){s.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):r.value&&o&&(r.value.parentElement.style.overflow="hidden")}return $e(()=>s.visible,()=>{i(s.visible)},{immediate:!0}),e({}),(o,a)=>s.visible?(F(),K("div",{key:0,ref_key:"overlayRef",ref:r,class:"overlay",style:oe([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[P("div",$g,[Xe(o.$slots,"default",{},void 0,!0)])],4)):Ke("",!0)}}),x_="",ls=me(Lg,[["__scopeId","data-v-e23bcc53"]]),Vg=(n=>(Es("data-v-fb37ce89"),n=n(),Ss(),n))(()=>P("div",null,null,-1)),Fg=pe({customOptions:{Overlay:ls},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,r=t,i=B();let o;const a=_t({}),l=_t({});function c(){switch(Fs(a),Fs(l),s.directionFrom){case"absolute":o="",a.display="block",l.width="100%",l.height="100%";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}$e(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new yt,h=(O=!0)=>{!o||!i.value||(O?(u.fromDOM(i.value),u.toCSS(o,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{r("open")}})):u.toCSS(o,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{y()}}))};$e(i,()=>{i.value&&h(!0)},{});const f=B(!1);function p(){f.value=!0}function g(){s.directionFrom=="absolute"?y():h(!1)}function y(){f.value=!1,r("close")}function b(O){s.directionFrom=="absolute"?i.value&&i.value.children[0]&&!i.value.children[0].contains(O.target)&&s.closeWhenClickOverlay&&y():i.value&&!i.value.contains(O.target)&&s.closeWhenClickOverlay&&g()}return e({open:p,close:g}),(O,D)=>(F(),xt(ls,{visible:f.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:st(()=>[P("div",{class:"pop-parent",style:oe([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:b},[P("div",{ref_key:"pop",ref:i,class:"pop",style:oe([{position:"absolute","z-index":"3000"},l])},[Xe(O.$slots,"default",{},()=>[Vg],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),E_="",Vt=me(Fg,[["__scopeId","data-v-fb37ce89"]]),Gg={class:"dialog-parent"},jg={key:0,class:"title"},zg={key:0,class:"title-inner truncate"},Bg={class:"custom-content"},Hg={class:"custom-content-default"},Yg={key:1,class:"btns"},Xg=pe({customOptions:{Overlay:ls,Pop:Vt,Icon:Wn,Button:ft},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,r=t,i=B(),o=B(""),a=B(""),l=B(!1),c=B(""),u=B("");let h,f,p;function g(D){o.value=D?.title||"",a.value=D?.content||"",l.value=typeof D?.showClose=="boolean"?D?.showClose:!1,c.value=D?.cancelText||"",u.value=D?.confirmText||"",i.value.open(),h=D?.onClose,f=D?.onCancel,p=D?.onConfirm,r("open")}function y(){i.value.close(),h?.(),r("close")}function b(){y(),f?.(),r("cancel")}function O(){y(),p?.(),r("confirm")}return e({open:g,close:y}),(D,I)=>(F(),xt(Vt,{ref_key:"popRef",ref:i,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:st(()=>[P("div",Gg,[P("div",{class:"dialog",style:oe({minWidth:s.minWidth,maxWidth:s.maxWidth})},[o.value||l.value?(F(),K("div",jg,[o.value?(F(),K("div",zg,Re(o.value),1)):Ke("",!0),l.value?(F(),K("div",{key:1,class:"close",onClick:y},[Oe(Wn,{icon:"ic:baseline-close",color:Ve(ce).colorGrayCC},null,8,["color"])])):Ke("",!0)])):Ke("",!0),P("div",Bg,[Xe(D.$slots,"default",{},()=>[P("div",Hg,Re(a.value),1)],!0)]),c.value||u.value?(F(),K("div",Yg,[c.value?(F(),xt(ft,{key:0,onClick:b,class:"btn",bgColor:Ve(ce).colorGrayE6,borderColor:Ve(ce).colorGrayE6,fontColor:Ve(ce).colorGray33,borderRadius:"0"},{default:st(()=>[Dt(Re(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ke("",!0),u.value?(F(),xt(ft,{key:1,onClick:O,class:"btn",borderRadius:"0"},{default:st(()=>[Dt(Re(u.value),1)]),_:1})):Ke("",!0)])):Ke("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),S_="",Qs=me(Xg,[["__scopeId","data-v-6bd255c9"]]),Ug={class:"toast"},Wg={class:"content"},qg=pe({customOptions:{Overlay:ls,Pop:Vt,Dialog:Qs},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,r=t,i=B(),o=B("");function a(c,u=1500){o.value=c,i.value.open(),r("open"),setTimeout(()=>{l()},u)}function l(){i.value.close(),r("close")}return e({open:a,close:l}),(c,u)=>(F(),xt(Qs,{ref_key:"dialogRef",ref:i,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:st(()=>[P("div",Ug,[P("div",Wg,Re(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),C_="",vu=me(qg,[["__scopeId","data-v-50ed852e"]]),Kg={class:"loading-8"},Zg={viewBox:"25 25 50 50"},Qg=pe({__name:"Loading8",props:{color:{default:ce.colorPrimary}},setup(n){const e=n;return(t,s)=>(F(),K("div",Kg,[(F(),K("svg",Zg,[P("circle",{cx:"50",cy:"50",r:"20",style:oe(["stroke: "+e.color])},null,4)]))]))}}),T_="",qo=me(Qg,[["__scopeId","data-v-e5e3cf4c"]]),Jg={class:"loading"},e0={class:"icon"},t0={style:{width:"8em"}},n0={key:0,class:"content"},s0=pe({customOptions:{Overlay:ls,Pop:Vt,Dialog:Qs,Loading8:qo},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,r=t,i=B(),o=B("");function a(c){o.value=c||"",i.value.open(),r("open")}function l(){i.value.close(),r("close")}return e({open:a,close:l}),(c,u)=>(F(),xt(Qs,{ref_key:"dialogRef",ref:i,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:st(()=>[P("div",Jg,[P("div",e0,[Xe(c.$slots,"default",{},()=>[P("div",t0,[Oe(qo)])],!0)]),o.value?(F(),K("div",n0,Re(o.value),1)):Ke("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),k_="",r0=me(s0,[["__scopeId","data-v-cb469a6c"]]),Ko=n=>(Es("data-v-85491020"),n=n(),Ss(),n),i0=[Ko(()=>P("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)),Ko(()=>P("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)),Ko(()=>P("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))],o0=pe({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:ce.colorPrimary}},setup(n){const e=n;return(t,s)=>(F(),K("svg",{style:oe(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},i0,4))}}),N_="",ri=me(o0,[["__scopeId","data-v-85491020"]]),a0=["data-number"],l0=["data-number","data-unactive"],c0=["data-number"],u0=["data-number","data-unactive"],h0=pe({customOptions:{Pop:Vt,SVGCleanUp:ri},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(n,{expose:e,emit:t}){const s=n,r=t,i=B(),o=B(0),a=_t([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=s.completePlateLength&&u()}$e(()=>[...s.initPlates],()=>{Gs(a,s.initPlates),l()},{immediate:!0});const c=()=>{i.value.open(),r("open")},u=()=>{i.value.close(),r("close")},h=()=>{a.pop(),l(),r("plates",a)},f=O=>{if(O.target.dataset.unactive||"")return;let I=O.target.dataset.number;I&&(a.push(I),l(),r("plates",a))};e({open:c,close:u});const p=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],g=["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"],b=["港","澳","学","警","使","领","挂","应","急"];return(O,D)=>(F(),xt(Vt,{ref_key:"popRef",ref:i,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:st(()=>[P("div",{class:"popup-plate",style:oe({paddingBottom:Ve(ce).safeAreaBottom})},[P("div",null,[P("div",{onClick:u},"关闭")]),P("div",{class:mt(["step",o.value==0?"":"hide"])},[(F(),K(Fe,null,ht(p,I=>P("div",{key:I,class:"popitem",onClick:f,"data-number":I},Re(I),9,a0)),64)),P("div",{class:"popitem popitem-clear",onClick:h},[Oe(ri,{width:"16px"})])],2),P("div",{class:mt(["step",o.value!=0?"":"hide"])},[(F(),K(Fe,null,ht(g,I=>P("div",{key:I,class:mt(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":I,"data-unactive":o.value!=2?"unactive":""},Re(I),11,l0)),64)),(F(),K(Fe,null,ht(y,I=>P("div",{key:I,class:"popitem",onClick:f,"data-number":I},Re(I),9,c0)),64)),(F(),K(Fe,null,ht(b,I=>P("div",{key:I,class:mt(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":I,"data-unactive":o.value!=2?"unactive":""},Re(I),11,u0)),64)),P("div",{class:"popitem popitem-clear",onClick:h},[Oe(ri,{width:"16px"})])],2)],4)]),_:1},512))}}),D_="",yu=me(h0,[["__scopeId","data-v-bade3529"]]),_u=document.getElementById("teleport")||document.documentElement;function bu(n,e){{const t=It(vu,{});Lr(t,_u),t.component?.exposed?.open(n,e)}}function f0(n,e="bottom"){let t;n instanceof HTMLElement?t=It(Vt,{directionFrom:e},()=>It("div",{...Rg(n),innerHTML:n.innerHTML})):t=It(Vt,{directionFrom:e},()=>n),Lr(t,document.getElementById("teleport")||document.documentElement),t.component?.exposed?.open();const s=()=>{t.component?.exposed?.close()};return s.vnode=t,s}function d0(n){return f0(n,"absolute")}function p0(n){{const e=It(yu,n);return Lr(e,_u),e.component?.exposed?.open(),()=>{e.component?.exposed?.close()}}}const m0={class:"content"},g0=pe({customOptions:{},inheritAttrs:!0,__name:"MouseOver",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(n,{expose:e,emit:t}){const s=n,r=t,i=B(),o=B(!1),a=_t({});let l=_t({}),c=_t({}),u=1,h;$e(i,()=>{i.value&&(p(),h=new it(i.value,!1),h.on("resize",(g,y)=>{u=Math.max(g,y)/Math.min(g,y);const b=Math.min(g,y);l.width=b+"px",l.height=b+"px",p()}),h.on("mouseOver",()=>{r("mouseOver"),o.value=!0,p()}),h.on("mouseOut",()=>{r("mouseOut"),o.value=!1,p()}),h.start())});function f(){q.copyToClipboard(q.getInnerText(i.value)).then(()=>{bu("复制成功")}).catch(g=>{bu(g.toString())})}function p(){switch(s.coverDirection){case"bottomLeft":l.top="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, -50%, 0) ${o.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) ${o.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) ${o.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) ${o.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) ${o.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=`${o.value?"center bottom":"center top"}`,l.transform=`${o.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=`${o.value?"center top":"center bottom"}`,l.transform=`${o.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=`${o.value?"center left":"center right"}`,l.transform=`${o.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=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"animationJelly":l.transform="scale(0)",a.animation=`${o.value?"jelly 0.5s":"none"}`;break;case"floatUp":l.transform="scale(0)",a.transform=`${o.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=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.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=`${o.value?"bottom right":"bottom left"}`,l.transform=`${o.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) ${o.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=`${o.value?"center right":"center left"}`,l.transform=`${o.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=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.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) ${o.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=`${o.value?"center bottom":"center top"}`,l.transform=`${o.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=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.transformOrigin=`${o.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=`${o.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=`${o.value?"center left":"center right"}`,l.transform=`${o.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=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},l.transformOrigin=`${o.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%) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,c={...l},c.bottom="0";break}}return tt(()=>{h?.destroy()}),e({}),(g,y)=>(F(),K("div",{ref_key:"wrap",ref:i,class:"wrap",style:oe({...a}),onClick:f},[P("div",{class:"before",style:oe({backgroundColor:s.coverColor,...Ve(l)})},null,4),P("div",m0,[Xe(g.$slots,"default",{},void 0,!0)]),P("div",{class:"after",style:oe({backgroundColor:s.coverColor,...Ve(c)})},null,4)],4))}}),M_="",A_="",v0=me(g0,[["__scopeId","data-v-b6a30cc1"]]),y0=pe({customOptions:{SVGDown:Zs},inheritAttrs:!0,__name:"Accordion",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,r=t,i=B(Number.MAX_SAFE_INTEGER+"px"),o=B(),a=B(!0);let l;$e(o,()=>{o.value&&(i.value=o.value.getBoundingClientRect().height+"px",l=new it(o.value),l.on("resize",(h,f)=>{r("resize",h,f)}),a.value=s.initOpen)});function c(){a.value=!a.value,a.value?r("open"):r("close")}const u=B("rotate(0deg)");return ml(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),tt(()=>{l?.destroy()}),e({}),(h,f)=>(F(),K("div",{class:"wrap",style:oe({background:s.bgColor,color:s.fontColor,borderRadius:s.borderRadius})},[P("div",{class:"title",onClick:c,style:oe({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",{},()=>[Dt("title")],!0),Oe(Zs,{class:"arrow",style:oe({transition:`transform ${s.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),P("div",{ref_key:"content",ref:o,class:"content",style:oe({margin:`0 ${s.padding}`,transition:`max-height ${s.duration}ms ease-in-out`,maxHeight:a.value?i.value:"0"})},[Xe(h.$slots,"content",{},void 0,!0)],4)],4))}}),R_="",_0=me(y0,[["__scopeId","data-v-9ced806f"]]),b0=pe({__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,r=t,i=B(0);function o(){i.value=0}function a(l){const c=i.value,u=Math.min(Math.max(0,l),100);yt.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{i.value=h.width},onComplete:()=>{r("complete",i.value)}}).startAuto()}return e({start:o,goto:a}),(l,c)=>(F(),K("div",{class:"wrap",style:oe({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[P("div",{class:"bar",style:oe({width:i.value+"%",backgroundColor:s.progressColor})},Re(s.showText?i.value+"%":""),5)],4))}}),$_="",Js=me(b0,[["__scopeId","data-v-30de81f6"]]),x0=["width","height"],w0=["src","type"],E0={class:"bar-wrap"},S0=pe({customOptions:{ProgressBar:Js},inheritAttrs:!0,__name:"Video",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 r(){yt.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{o.value?.start()},onUpdate:l=>{o.value?.goto(l.x)}}).startAuto(()=>this.currentTime)}const i=B(),o=B();$e(i,()=>{i.value&&(i.value.addEventListener("play",r),s.autoplay&&Lo.tryAutoPlayOrAutoPlayAfterClick(i.value))}),tt(()=>{i.value?.removeEventListener(r)});function a(){i.value?.play()}return e({play:a}),(l,c)=>(F(),K("div",{class:"wrap",style:oe({width:s.width,height:s.height}),onClick:a},[P("video",{ref_key:"video",ref:i,width:s.width,height:s.height,preload:"metadata"},[P("source",{src:s.src,type:s.type},null,8,w0)],8,x0),P("div",E0,[Oe(Js,{ref_key:"bar",ref:o,width:s.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),L_="",C0=me(S0,[["__scopeId","data-v-edddb069"]]),T0=pe({...{},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,r=t,i=B(),o=B(),a=B(0),l=B(0),c=B(0),u=B(0),h=B(1),f=B(0),p=B(0);bm(s.src).then(se=>{c.value=se.width,u.value=se.height,h.value=se.aspectRatio,D()});let g;$e(i,()=>{i.value&&(g=new it(i.value,!1),g.on("resize",(se,V)=>{a.value=se,l.value=V,D()}),g.start())});let y=!1;const b={x:0,y:0,width:0,height:0};let O;function D(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(f.value=a.value,p.value=f.value/h.value,p.value>l.value&&(p.value=l.value,f.value=p.value*h.value)):(p.value=l.value,f.value=p.value*h.value,f.value>a.value&&(f.value=a.value,p.value=f.value/h.value));break;case"aspectFill":h.value>=1?(p.value=l.value,f.value=p.value*h.value):(f.value=a.value,p.value=f.value/h.value);break;case"widthFix":f.value=a.value,p.value=f.value/h.value;break;case"heightFix":p.value=l.value,f.value=p.value*h.value;break;case"scaleToFill":default:f.value=a.value,p.value=l.value;break}Ja(()=>{const se=o.value.getBoundingClientRect();r("settled",se.x,se.y,f.value,p.value),y&&O(b.x,b.y,b.width,b.height)})}}function I(se,V,U,be){const xe=(_e,De,Ye,ye,Se,re,A,J,Y)=>{if(!Se||!re||!A||!J){const we=Ae.vnode.el.getBoundingClientRect(),j=we.width,Z=we.height;let E=0,R=0;h.value>=1?(E=j,R=E/h.value,R>Z&&(R=Z,E=R*h.value)):(R=Z,E=R*h.value,E>j.value&&(E=j.value,R=E/h.value)),Se=(j-E)/2,re=(Z-R)/2,A=E,J=R}const ke=200;yt.toTween({left:_e,top:De,width:Ye,height:ye},{left:Se,top:re,width:A,height:J},{duration:ke,onStart(){},onUpdate(we){Te.el.style.left=we.left+"px",Te.el.style.top=we.top+"px",Te.el.style.width=we.width+"px",Te.el.style.height=we.height+"px"},onComplete(we){b.x=we.left,b.y=we.top,b.width=we.width,b.height=we.height,Y?.()}}).startAuto()},Te=It("div",{style:`
66
67
  position:absolute;
67
- left:${$}px;
68
- top:${O}px;
69
- width: ${R}px;
70
- height: ${le}px;
68
+ left:${se}px;
69
+ top:${V}px;
70
+ width: ${U}px;
71
+ height: ${be}px;
71
72
  background-image: url(${s.src});
72
73
  background-repeat: no-repeat;
73
74
  background-position: center center;
74
- background-size: 100% 100%`,onVnodeMounted:()=>{ue($,O,R,le)}}),De=n0(xt("div",{style:`
75
+ background-size: 100% 100%`,onVnodeMounted:()=>{xe(se,V,U,be)}}),Ae=d0(It("div",{style:`
75
76
  position:absolute;
76
77
  width: 100%;
77
78
  height: 100%;
@@ -79,7 +80,7 @@ Expected function or array of functions, received type ${typeof t}.`),Ge)}functi
79
80
  display: flex;
80
81
  justify-content: center;
81
82
  align-items: center;
82
- `,onClick:()=>{const{x:Oe,y:at,width:lt,height:We}=o.value.getBoundingClientRect();ue(y.x,y.y,y.width,y.height,Oe,at,lt,We,()=>{De(),v=!1})}},pe));return ue}function S(){if(!r.value||!s.openImageViewWhenClick)return;v=!0;const{x:$,y:O,width:R,height:le}=o.value.getBoundingClientRect();E=w($,O,R,le)}return Ve(()=>{m?.destroy()}),e({}),($,O)=>(D(),z("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:q({backgroundColor:s.bgColor}),onClick:S},[N("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:q({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),Dy="",Ro=ee(m0,[["__scopeId","data-v-928690db"]]),g0=J({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G();let o=[],a;const l=new Ye;let c=0,u=!1;const h={};function f(){switch(Cs(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(){r.value&&(bi(xt("div",{class:"routes-inner-wrap",style:""},o.map(O=>xt("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},xt(O.component,{...O.attributes,style:{...O.attributes.style||{},...h}})))),r.value),l?.fromDOM([...r.value.children[0].children]))}const m=O=>{if(!(!a||u||!o.length)){if(u=!0,O.push&&(c=o.length-1),O.pop){if(!o.length){u=!1;return}c=o.length-1}if(O.reset&&(c=0),O.forward){if(c>=o.length-1){u=!1;return}c++}if(O.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:s.easeName,dur:O?.dur??s.duration,direction:O.back||O.pop?"reverse":"normal",onComplete:()=>{(O.back||O.pop)&&c--,O.pop&&(o.pop(),d()),i("finish",c),u=!1,O?.onComplete?.()}},c)}};function v(O=[],R){o=[],O.forEach(le=>o.push({component:le.component,attributes:le.attributes??{}})),d(),m({reset:!0,onComplete:R})}function y(O,R={}){o.push({component:O,attributes:R}),d(),m({push:!0})}function E(){m({pop:!0})}function C(){m({forward:!0})}function w(){m({back:!0})}function S(O,R){O>o.length-1||O<0||O==c||(R||(R=s.duration/Math.abs(O-c)),c<O?m({forward:!0,dur:R,onComplete:()=>{setTimeout(()=>{S(O,R)})}}):m({back:!0,dur:R,onComplete:()=>{setTimeout(()=>{S(O,R)})}}))}function $(){d(),m({resize:!0})}return dn(()=>{xe.page.on("resize",$)}),Ve(()=>{l.destroy(),xe.page.off("resize",$)}),e({reset:v,push:y,pop:E,forward:C,back:w,goto:S}),(O,R)=>(D(),z("div",{ref_key:"routesContainerRef",ref:r,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),Ay="",uu=ee(g0,[["__scopeId","data-v-210d799a"]]),_0={style:{position:"absolute",width:"100%",height:"100%"}},v0={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},y0=J({customOptions:{Image:Ro},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]}},setup(t,{expose:e,emit:n}){const s=t,i=G(),r=G(),o=G(),a=G(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}ve(r,()=>{r.value&&(l?.destroy(),l=new xe(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),ve(o,()=>{o.value&&o.value.reset(s.urls.map(m=>({component:xt("div",{style:"position:absolute;width:100%;height:100%"},xt(Ro,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return Ve(()=>{l?.destroy()}),e({open:f,close:d}),(m,v)=>(D(),Qe(St,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:Pe(()=>[N("div",_0,[s.urls.length>1?(D(),z("div",v0,be(a.value+1)+" / "+be(s.urls.length),1)):Be("",!0),N("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[oe(uu,{ref_key:"routesRef",ref:o,direction:s.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),Ry="",b0=ee(y0,[["__scopeId","data-v-be51d205"]]),$y="",x0={class:"page"},w0={class:"header"},E0={class:"main"},C0={class:"main-scroll"},T0={class:"footer"},S0=J({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(t,{expose:e,emit:n}){return Qp(t.designWidth),e({}),(i,r)=>(D(),z("div",x0,[N("header",w0,[Re(i.$slots,"header",{},void 0,!0)]),N("div",E0,[N("div",C0,[Re(i.$slots,"main",{},void 0,!0)])]),N("footer",T0,[Re(i.$slots,"footer",{},void 0,!0)])]))}}),Ly="",k0=ee(S0,[["__scopeId","data-v-3904d6b5"]]),P0=J({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(t,{expose:e,emit:n}){const s=t,i=st({}),r=st({});function o(){switch(Cs(i),Cs(r),s.type){case"table":i.display="table",r.display="table-cell",r.verticalAlign="middle",r.textAlign="center";break;case"transform":r.position="absolute",r.top="50%",r.left="50%",r.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",r.margin="auto"}}return o(),Ve(()=>{}),e({}),(a,l)=>(D(),z("div",{class:"layout-center",style:q(i)},[N("div",{style:q(r)},[Re(a.$slots,"default",{},void 0,!0)],4)],4))}}),Fy="",N0=ee(P0,[["__scopeId","data-v-a768b36f"]]),O0=(t=>(ls("data-v-d02782ac"),t=t(),cs(),t))(()=>N("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),I0=J({customOptions:{Pop:St,Button:Ne},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(t){const e=t,n=G(),s=G(),i=G(),r=st({left:"0",top:"0"});ve(s,()=>{o()}),ve(i,()=>{o()});function o(){if(!s.value||!i.value)return;const l=Fc(),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)),r.left=`${d}px`,r.top=`${m}px`}function a(){n.value.open()}return(l,c)=>(D(),z(ke,null,[N("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:a},[Re(l.$slots,"button",{},()=>[oe(Ne,null,{default:Pe(()=>[He("popover-default-button")]),_:1})],!0)],512),oe(St,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:e.isGlobal},{default:Pe(()=>[N("div",{ref_key:"popoverPanelRef",ref:i,style:q([{display:"inline-block",position:"absolute"},r])},[Re(l.$slots,"panel",{},()=>[O0],!0)],4)]),_:3},8,["isGlobal"])],64))}}),Gy="",$o=ee(I0,[["__scopeId","data-v-d02782ac"]]),M0={class:"tab"},D0=J({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(t,{expose:e}){return e({}),(n,s)=>(D(),z("div",M0,[Re(n.$slots,"default",{},void 0,!0)]))}}),zy="",A0=ee(D0,[["__scopeId","data-v-6589e7fa"]]),R0={class:"tabs"},$0=["onClick"],L0={class:"content"},F0=J({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(s.initIndex),o=st([]),a=G(),l=G(0),c=G(0),u=G(0),h=G([]),f=[],d=pf(),m=d.default&&d.default();m&&(Ts(o,m),E(r.value));const v=(w,S)=>{if(w){if(f.push({index:S,el:w}),f.length<o.length)return;h.value=f}};ve([a,h],()=>{y()});function y(){if(a.value&&h.value.length){const w=a.value.getBoundingClientRect(),S=h.value[r.value].el.getBoundingClientRect();l.value=S.x-w.x,c.value=S.y-w.y+S.height-2,u.value=S.width}}function E(w){r.value=w,i("changedIndex",w),y(),C.value.goto(w)}const C=G();return ve(C,()=>{C.value&&C.value.reset(s.pages,()=>{C.value.goto(s.initIndex)})}),e({}),(w,S)=>(D(),z("div",R0,[N("div",{class:"header",ref_key:"headerRef",ref:a},[(D(!0),z(ke,null,ct(s.labels,($,O)=>(D(),z("div",{key:$,class:vt(O==r.value?"active":""),onClick:R=>E(O)},[N("div",{ref_for:!0,ref:R=>v(R,O)},be($),513)],10,$0))),128)),N("div",{class:"indicator",style:q({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),N("div",L0,[oe(uu,{ref_key:"routesRef",ref:C,direction:"rightToLeft",duration:200},null,512)])]))}}),jy="",V0=ee(F0,[["__scopeId","data-v-e74e266d"]]),G0=["width","height"],z0=J({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(t,{expose:e,emit:n}){const s=t;let i=()=>{};const r=G();return ve(r,()=>{if(!r.value)return;const o=new xe(r.value),a=new iu(o);a.ctx.strokeStyle=s.brushColor,a.ctx.lineWidth=s.brushSize,a.drawMouseMoveLine("line"),i=()=>{ht.downloadFromSVGString(a.ctx.toRawSVG().raw,s.downloadFileName)}}),e({download:()=>i()}),(o,a)=>(D(),z("canvas",{ref_key:"panelRef",ref:r,width:s.canvasWidth,height:s.canvasHeight,style:q([`border: 1px solid ${o.borderColor}`])},null,12,G0))}}),j0={class:"wrap",style:{}},H0=J({customOptions:{ProgressBar:Rs},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=()=>{const a=Wp();i("progress",a),r.value?.goto(a)};return xe.page.registerGlobalScrollChange(o),Ve(()=>{xe.page.removeGlobalScrollChange(o)}),e({}),(a,l)=>(D(),z("div",j0,[oe(Rs,{ref_key:"bar",ref:r,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"])]))}}),Hy="",B0=ee(H0,[["__scopeId","data-v-2e31cfe2"]]),U0=["fill"],W0=["fill"],Y0=J({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{style:q(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("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,U0),N("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,W0)],4))}}),By="",Lo=ee(Y0,[["__scopeId","data-v-987aed3d"]]),Gi=t=>(ls("data-v-5f064292"),t=t(),cs(),t),X0=Gi(()=>N("div",{class:"title"},"车牌颜色",-1)),q0={class:"plate-types"},K0=["onClick"],Z0=Gi(()=>N("div",{class:"title"},"车牌号码",-1)),Q0={class:"plate-numbers"},J0=Gi(()=>N("div",{class:"dot"},"·",-1)),e_=["onClick"],t_=Gi(()=>N("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),n_=J({customOptions:{SVGCheck:Lo},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=[{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}],o=G(0),a=st([]),l=G(-1);function c(){s0({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{Ts(a,f),l.value=a.length,a.length===r[o.value].completePlateLength&&i("complete",r[o.value].name,a.join(""))}})}const u=f=>{o.value=f,l.value<=r[f].completePlateLength&&a.length<r[f].completePlateLength?(l.value=a.length,c(),i("clear")):Ts(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{Ts(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return e({}),(f,d)=>(D(),z("div",jr(f.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[X0,N("div",q0,[(D(),z(ke,null,ct(r,(m,v)=>N("div",{key:v,class:vt(v==o.value?"checked":""),onClick:y=>u(v)},[N("div",{style:q(m.style)},null,4),N("div",null,be(m.name),1),N("div",null,[oe(Lo,{color:"#ffffff",width:"0.14rem"})])],10,K0)),64))]),Z0,N("div",Q0,[N("div",{onClick:d[0]||(d[0]=m=>h(0)),class:vt(l.value==0?"current":"")},be(a[0]),3),N("div",{onClick:d[1]||(d[1]=m=>h(1)),class:vt(l.value==1?"current":"")},be(a[1]),3),J0,(D(!0),z(ke,null,ct(r[o.value].completePlateLength-2,m=>(D(),z("div",{key:m,class:vt(m+1==l.value?"current":""),onClick:v=>h(m+1)},be(a[m+1]),11,e_))),128))]),t_],16))}}),Uy="",s_=ee(n_,[["__scopeId","data-v-5f064292"]]),i_={class:"parent"},r_=J({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(t,{expose:e,emit:n}){const s=t,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 r(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const f=i.filter(d=>d.name===h);return f.length?f[0]:o("未知")}const a=r(s.plate),l=G(o(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)=>(D(),z("div",i_,[N("div",{class:vt(["leading",s.displayType]),style:q(l.value.style)},be(l.value.name),7),N("div",{class:"text",style:q({color:Ce(c),"font-size":Ce(u)})},be(Ce(a)),5)]))}}),Wy="",o_=ee(r_,[["__scopeId","data-v-11a104c3"]]),qn=(t,e=0,n=1)=>t>n?n:t<e?e:t,Xe=(t,e=0,n=Math.pow(10,e))=>Math.round(n*t)/n,a_=t=>h_(Fo(t)),Fo=t=>(t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Xe(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?Xe(parseInt(t.substring(6,8),16)/255,2):1}),l_=t=>u_(c_(t)),hu=({h:t,s:e,v:n,a:s})=>{const i=(200-e)*n/100;return{h:Xe(t),s:Xe(i>0&&i<200?e*n/100/(i<=100?i:200-i)*100:0),l:Xe(i/2),a:Xe(s,2)}},Vo=t=>{const{h:e,s:n,l:s}=hu(t);return`hsl(${e}, ${n}%, ${s}%)`},Go=t=>{const{h:e,s:n,l:s,a:i}=hu(t);return`hsla(${e}, ${n}%, ${s}%, ${i})`},c_=({h:t,s:e,v:n,a:s})=>{t=t/360*6,e=e/100,n=n/100;const i=Math.floor(t),r=n*(1-e),o=n*(1-(t-i)*e),a=n*(1-(1-t+i)*e),l=i%6;return{r:Xe([n,o,r,r,a,n][l]*255),g:Xe([a,n,n,o,r,r][l]*255),b:Xe([r,r,a,n,n,o][l]*255),a:Xe(s,2)}},zi=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},u_=({r:t,g:e,b:n,a:s})=>{const i=s<1?zi(Xe(s*255)):"";return"#"+zi(t)+zi(e)+zi(n)+i},h_=({r:t,g:e,b:n,a:s})=>{const i=Math.max(t,e,n),r=i-Math.min(t,e,n),o=r?i===t?(e-n)/r:i===e?2+(n-t)/r:4+(t-e)/r:0;return{h:Xe(60*(o<0?o+6:o)),s:Xe(i?r/i*100:0),v:Xe(i/255*100),a:s}},fu=(t,e)=>{if(t===e)return!0;for(const n in t)if(t[n]!==e[n])return!1;return!0},f_=(t,e)=>t.toLowerCase()===e.toLowerCase()?!0:fu(Fo(t),Fo(e)),du={},pu=t=>{let e=du[t];return e||(e=document.createElement("template"),e.innerHTML=t,du[t]=e),e},zo=(t,e,n)=>{t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:n}))};let Kn=!1;const jo=t=>"touches"in t,d_=t=>Kn&&!jo(t)?!1:(Kn||(Kn=jo(t)),!0),mu=(t,e)=>{const n=jo(e)?e.touches[0]:e,s=t.el.getBoundingClientRect();zo(t.el,"move",t.getMove({x:qn((n.pageX-(s.left+window.pageXOffset))/s.width),y:qn((n.pageY-(s.top+window.pageYOffset))/s.height)}))},p_=(t,e)=>{const n=e.keyCode;n>40||t.xy&&n<37||n<33||(e.preventDefault(),zo(t.el,"move",t.getMove({x:n===39?.01:n===37?-.01:n===34?.05:n===33?-.05:n===35?1:n===36?-1:0,y:n===40?.01:n===38?-.01:0},!0)))};class Ho{constructor(e,n,s,i){const r=pu(`<div role="slider" tabindex="0" part="${n}" ${s}><div part="${n}-pointer"></div></div>`);e.appendChild(r.content.cloneNode(!0));const o=e.querySelector(`[part=${n}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=i,this.nodes=[o.firstChild,o]}set dragging(e){const n=e?document.addEventListener:document.removeEventListener;n(Kn?"touchmove":"mousemove",this),n(Kn?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!d_(e)||!Kn&&e.button!=0)return;this.el.focus(),mu(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),mu(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":p_(this,e);break}}style(e){e.forEach((n,s)=>{for(const i in n)this.nodes[s].style.setProperty(i,n[i])})}}class m_ extends Ho{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:`${e/360*100}%`,color:Vo({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Xe(e)}`)}getMove(e,n){return{h:n?qn(this.h+e.x*360,0,360):360*e.x}}}class g_ extends Ho{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:`${100-e.v}%`,left:`${e.s}%`,color:Vo(e)},{"background-color":Vo({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Xe(e.s)}%, Brightness ${Xe(e.v)}%`)}getMove(e,n){return{s:n?qn(this.hsva.s+e.x*100,0,100):e.x*100,v:n?qn(this.hsva.v-e.y*100,0,100):Math.round(100-e.y*100)}}}const __=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',v_="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",y_="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",ji=Symbol("same"),Bo=Symbol("color"),gu=Symbol("hsva"),Uo=Symbol("update"),_u=Symbol("parts"),Hi=Symbol("css"),Bi=Symbol("sliders");let b_=class extends HTMLElement{static get observedAttributes(){return["color"]}get[Hi](){return[__,v_,y_]}get[Bi](){return[g_,m_]}get color(){return this[Bo]}set color(e){if(!this[ji](e)){const n=this.colorModel.toHsva(e);this[Uo](n),this[Bo]=e}}constructor(){super();const e=pu(`<style>${this[Hi].join("")}</style>`),n=this.attachShadow({mode:"open"});n.appendChild(e.content.cloneNode(!0)),n.addEventListener("move",this),this[_u]=this[Bi].map(s=>new s(n))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this.color,this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,n,s){const i=this.colorModel.fromAttr(s);this[ji](i)||(this.color=i)}handleEvent(e){const n=this[gu],s={...n,...e.detail};this[Uo](s);let i;!fu(s,n)&&!this[ji](i=this.colorModel.fromHsva(s))&&(this[Bo]=i,zo(this,"color-changed",{value:i}))}[ji](e){return this.color&&this.colorModel.equal(e,this.color)}[Uo](e){this[gu]=e,this[_u].forEach(n=>n.update(e))}};class x_ extends Ho{constructor(e){super(e,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(e){this.hsva=e;const n=Go({...e,a:0}),s=Go({...e,a:1}),i=e.a*100;this.style([{left:`${i}%`,color:Go(e)},{"--gradient":`linear-gradient(90deg, ${n}, ${s}`}]);const r=Xe(i);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(e,n){return{a:n?qn(this.hsva.a+e.x):e.x}}}const w_=`[part=alpha]{flex:0 0 24px}[part=alpha]::after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background-image:var(--gradient);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part^=alpha]{background-color:#fff;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')}[part=alpha-pointer]{top:50%}`;class E_ extends b_{get[Hi](){return[...super[Hi],w_]}get[Bi](){return[...super[Bi],x_]}}const C_={defaultColor:"#0001",toHsva:a_,fromHsva:l_,equal:f_,fromAttr:t=>t};class T_ extends E_{get colorModel(){return C_}}class S_ extends T_{}customElements.define("hex-alpha-color-picker",S_);const k_=J({customOptions:{Popover:$o},__name:"ColorPicker",props:{color:{default:ne.colorPrimary}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,i=G(n.color);ve(i,(a,l)=>{a!==l&&s("change",a)});const r=G(),o=a=>{i.value=a.detail.value};return ve(r,()=>{r.value&&(r.value.removeEventListener("color-changed",o),r.value.addEventListener("color-changed",o))}),(a,l)=>{const c=Uh("hex-alpha-color-picker");return D(),Qe($o,null,{button:Pe(()=>[Re(a.$slots,"default",{},()=>[N("span",{class:"button",style:q({backgroundColor:i.value})},null,4)],!0)]),panel:Pe(()=>[oe(c,{ref_key:"colorPickerRef",ref:r,color:i.value},null,8,["color"])]),_:3})}}}),Yy="",P_=ee(k_,[["__scopeId","data-v-ac12603f"]]),Xy="",N_={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 t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",_o&&this.$el.appendChild(t),t.data="about:blank",_o||this.$el.appendChild(t)},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&&(!_o&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},O_={class:"resize-observer",tabindex:"-1"};function I_(t,e,n,s,i,r){return D(),z("div",O_)}const M_=ee(N_,[["render",I_],["__scopeId","data-v-d5987ae1"]]),D_=J({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(t,{expose:e,emit:n}){const s=t,i=G(s.mapWidth),r=G(s.mapHeight);let o;const a=G();return ve(a,()=>{a.value&&(o=new xe(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),dn(()=>{Z.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new Im(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},l=>{console.log("error",l)})}),Ve(()=>{o.destroy()}),e({}),(l,c)=>(D(),z("div",jr({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Re(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),qy="",A_=ee(D_,[["__scopeId","data-v-e5da8598"]]);var $s=function(){var t=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(++t%e.children.length)},!1);function n(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";t=u}var i=(performance||Date).now(),r=i,o=0,a=n(new $s.Panel("FPS","#0ff","#002")),l=n(new $s.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=n(new $s.Panel("MB","#f08","#201"));return s(0),{REVISION:16,dom:e,addPanel:n,showPanel:s,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=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}};$s.Panel=function(t,e,n){var s=1/0,i=0,r=Math.round,o=r(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,f=15*o,d=74*o,m=30*o,v=document.createElement("canvas");v.width=a,v.height=l,v.style.cssText="width:80px;height:48px";var y=v.getContext("2d");return y.font="bold "+9*o+"px Helvetica,Arial,sans-serif",y.textBaseline="top",y.fillStyle=n,y.fillRect(0,0,a,l),y.fillStyle=e,y.fillText(t,c,u),y.fillRect(h,f,d,m),y.fillStyle=n,y.globalAlpha=.9,y.fillRect(h,f,d,m),{dom:v,update:function(E,C){s=Math.min(s,E),i=Math.max(i,E),y.fillStyle=n,y.globalAlpha=1,y.fillRect(0,0,a,f),y.fillStyle=e,y.fillText(r(E)+" "+t+" ("+r(s)+"-"+r(i)+")",c,u),y.drawImage(v,h+o,f,d-o,m,h,f,d-o,m),y.fillRect(h+d-o,f,o,m),y.fillStyle=n,y.globalAlpha=.9,y.fillRect(h+d-o,f,o,r((1-E/C)*m))}}};const R_=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(t,{expose:e}){const n=G();return dn(()=>{const s=new $s,i=s.domElement.style;i.margin="1em",n.value.appendChild(s.domElement),dt.register(()=>(s.update(),!0))}),e({}),(s,i)=>(D(),z("div",{ref_key:"containerRef",ref:n},null,512))}}),$_=["width","height"],L_=J({__name:"Canvas",props:{bgColor:{default:"#333333"}},emits:["resize","complete"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(),a=G(0),l=G(0);let c;ve(r,()=>{r.value&&(c=new xe(r.value,!1),c.on("resize",(y,E)=>{const C=Fc();a.value=Math.min(y,C.width),l.value=Math.min(E,C.height),d()}),c.start())}),ve(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new xe(o.value,!1),u.on("resize",(y,E)=>{i("resize",y,E)}),u.start(),h=new iu(u),i("complete",h),f?.(h))}function m(){return new Promise(y=>{if(h)return y(h);f=y})}function v(y){u&&y(u)}return Ve(()=>{u?.destroy(),c?.destroy()}),e({draw:v,getCanvasElement:()=>o.value,getCanvas:m}),(y,E)=>(D(),z("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[N("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:q({backgroundColor:s.bgColor})},null,12,$_)],512))}}),Zy="",jt=ee(L_,[["__scopeId","data-v-7bda10ec"]]),F_={class:"ease-graph"},V_=J({customOptions:{Button:Ne,Canvas:jt},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(t,{expose:e,emit:n}){const s=t,i=n,r=G();let o;ve(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",s.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",s.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,s.graphVerticalGap),o.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),o.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),o.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.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;Ye.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:se.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",s.easeName),a=!1)}}).startAuto(),Ye.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.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 Ve(()=>{o.app.off("showInParent",l)}),e({start:l}),(u,h)=>(D(),z("div",F_,[N("div",null,"缓动:"+be(u.easeName),1),N("div",null,[N("div",null,[oe(Ne,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Pe(()=>[He(" 开始 ")]),_:1})]),N("div",null,[oe(Ne,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Pe(()=>[He(" 选择 ")]),_:1},8,["stylePattern"])])]),N("div",{style:q({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[oe(jt,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Qy="",Wo=ee(V_,[["__scopeId","data-v-a2b487d0"]]),G_=2e3,z_=J({customOptions:{EaseGraphDisplay:Wo},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:se.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:se.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:se.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:se.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:se.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:se.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:se.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:se.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:se.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:se.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:se.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:se.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:se.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:se.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:se.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:se.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:se.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:se.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:se.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:se.Easing.Circular.In},{easeName:"CircularOut",easeFunction:se.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:se.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:se.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:se.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:se.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:se.Easing.Back.In},{easeName:"BackOut",easeFunction:se.Easing.Back.Out},{easeName:"BackInOut",easeFunction:se.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:se.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:se.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:se.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:se.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:se.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:se.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:se.Easing.createStep(4)},{easeName:"8 steps",easeFunction:se.Easing.createStep(8)},{easeName:"12 steps",easeFunction:se.Easing.createStep(12)},{easeName:"16 steps",easeFunction:se.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:se.Easing.createNoisyEasing(se.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:se.Easing.createNoisyEasing(se.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:se.Easing.createNoisyEasing(se.Easing.Circular.InOut,.1)}]}},emits:["selectedEaseFunction"],setup(t,{expose:e,emit:n}){const s=t,i=n,r={};function o(f,d){f&&(r[d]={el:f})}const a=new Dc(10);function l(f){a.addTask(()=>(r[f].el.start(),new Promise(d=>{r[f].resolve=d})))}function c(f){r[f].resolve?.()}const u=G("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",se.Easing.Linear.None),e({}),(f,d)=>(D(),z("div",null,[(D(!0),z(ke,null,ct(s.easeList,m=>(D(),z("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(D(),Qe(Wo,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:G_,isSelected:u.value==m.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:v=>o(v,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):Be("",!0)]))),128))]))}}),Jy="",j_=ee(z_,[["__scopeId","data-v-7e8d1feb"]]),H_={class:"interpolation-graph"},vu=1/6,yu=5/6,B_=J({customOptions:{Button:Ne,Canvas:jt},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G();let o;ve(r,()=>{r.value&&r.value.getCanvas().then(v=>{o=v,i("onMounted",s.interpolationName),o.app.on("showInParent",m)})});const a=s.canvasWidth*vu,l=s.canvasHeight/2,c=[s.canvasWidth*yu,s.canvasWidth/2],u=[s.canvasHeight*vu,s.canvasHeight*yu],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!0,i("onStart",s.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var v=0;v<c.length;v++)o.ctx.fillRect(c[v]-2,u[v]-2,4,4);let y=!1,E=!1;const C={x:a,y:l,old:{x:a,y:l}};Ye.toTween(C,{x:c,y:u},{duration:s.easeDuration,easeFunction:se.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{y=!0,y&&E&&(i("onCompleted",s.interpolationName),d=!1)}}).startAuto();const w={x:a,y:l,old:{x:a,y:l}};Ye.toTween(w,{x:h,y:f},{duration:s.easeDuration,easeFunction:se.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{E=!0,y&&E&&(i("onCompleted",s.interpolationName),d=!1)}}).startAuto()};return Ve(()=>{o.app.off("showInParent",m)}),e({start:m}),(v,y)=>(D(),z("div",H_,[N("div",null,[He(" 插值:"+be(v.interpolationName)+" ",1),oe(Ne,{stylePattern:"outline",height:"32px",onClick:m},{default:Pe(()=>[He(" 开始 ")]),_:1})]),N("div",{style:q({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[oe(jt,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),e1="",Yo=ee(B_,[["__scopeId","data-v-18aca8d5"]]),U_=2e3,W_=J({customOptions:{InterpolationGraphDisplay:Yo},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:se.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:se.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:se.Interpolation.CatmullRom}]}},setup(t,{expose:e,emit:n}){const s=t,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Dc(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return e({}),(c,u)=>(D(),z("div",null,[(D(!0),z(ke,null,ct(s.interpolationList,h=>(D(),z("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[oe(Yo,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:U_,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),t1="",Y_=ee(W_,[["__scopeId","data-v-6e8312e3"]]),X_={class:"wrap"},q_={class:"btns"},K_={class:"tween-css",style:{width:"100%",height:"400px"}},Z_=J({customOptions:{Button:Ne},inheritAttrs:!0,__name:"TweenCSS",props:{easeFunction:{type:Function,default:se.Easing.Linear.None}},setup(t){const e=t,n=st({translateTo:{from:{translateTo:[0,0]},to:{translateTo:["150px","150px"]},selected:!1},translateXTo:{from:{translateXTo:0},to:{translateXTo:"150px"},selected:!1},translateYTo:{from:{translateYTo:0},to:{translateYTo:"150px"},selected:!1},translateZTo:{from:{translateZTo:0},to:{translateZTo:"150px"},selected:!1},translate3dTo:{from:{translate3dTo:[0,0,0]},to:{translate3dTo:["150px","150px","150px"]},selected:!1},rotateTo:{from:{rotateTo:0},to:{rotateTo:360},selected:!1},rotateXTo:{from:{rotateXTo:0},to:{rotateXTo:360},selected:!1},rotateYTo:{from:{rotateYTo:0},to:{rotateYTo:360},selected:!1},rotateZTo:{from:{rotateZTo:0},to:{rotateZTo:360},selected:!1},rotate3dTo:{from:{rotate3dTo:[0,0,0]},to:{rotate3dTo:[360,360,360]},selected:!1},scaleTo:{from:{scaleTo:1},to:{scaleTo:2},selected:!1},scaleXTo:{from:{scaleXTo:1},to:{scaleXTo:2},selected:!1},scaleYTo:{from:{scaleYTo:1},to:{scaleYTo:2},selected:!1},scaleZTo:{from:{scaleZTo:1},to:{scaleZTo:2},selected:!1},scale3dTo:{from:{scale3dTo:[1,1,1]},to:{scale3dTo:[2,2,2]},selected:!1},skewTo:{from:{skewTo:0},to:{skewTo:1},selected:!1},skewXTo:{from:{skewXTo:0},to:{skewXTo:1},selected:!1},skewYTo:{from:{skewYTo:0},to:{skewYTo:1},selected:!1}}),s=G();function i(r){if(!s.value)return;n[r].selected=!n[r].selected;const o={},a={};for(let l in n){const c=n[l];c.selected?(Object.assign(o,c.from),Object.assign(a,c.to)):(Ic(o,c.from),Ic(a,c.to))}s.value.style.transform="",Ye.toTweenCSS(s.value,o,a,{duration:2e3,easeFunction:e.easeFunction}).startAuto()}return Ve(()=>{}),(r,o)=>(D(),z("div",X_,[N("div",q_,[(D(!0),z(ke,null,ct(n,(a,l,c)=>(D(),Qe(Ne,{onClick:u=>i(l.toString()),key:l,stylePattern:a.selected?"fullfilled":"outline"},{default:Pe(()=>[He(be(l),1)]),_:2},1032,["onClick","stylePattern"]))),128))]),N("div",K_,[N("div",{class:"tween-css-target",ref_key:"tweenCSSTargetRef",ref:s},null,512)])]))}}),n1="",Q_=ee(Z_,[["__scopeId","data-v-44d0bbdc"]]),J_={class:"wrap"},ev={class:"btns"},tv={style:{height:"400px"}},nv=J({customOptions:{Button:Ne,Canvas:jt},inheritAttrs:!0,__name:"CanvasSport",setup(t){const e=G(),n=G("");function s(){const f="Arrow";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=new Jc({scale:.5}),v=new ft({x:d.ctx.canvas.width/2,y:d.ctx.canvas.height/2});dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),d.flushShapes([{shape:v,extra:y=>{v.fromX=m.x,v.fromY=m.y,y.lineWidth=2,y.strokeStyle="pink"}},{shape:m,followMouseMove:!0,extra:y=>{y.fillStyle=y.createLinearGradient(0,0,100,100,{0:"#ffffff",1:"#ff0000"})}}]).draw(),console.log(`distance: ${m.distanceTo(v)}`),!0))}))}function i(){const f="RectGame";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=[];function v(){const O=new Dt({x:Math.random()*d.ctx.canvas.width,y:0,width:50,height:50});return m.push(O),O}let y=v();const E=.2,C=()=>{y&&(y.ay=.2)},w=()=>{y&&(y.ay=-.2)},S=()=>{y&&(y.ay=0)},$=[];$.push(d.app.registerKeyDown({key:"ArrowDown"},C,S)),$.push(d.app.registerKeyDown({key:"ArrowRight"},C,S)),$.push(d.app.registerKeyDown({key:"ArrowUp"},w,S)),$.push(d.app.registerKeyDown({key:"ArrowLeft"},w,S)),dt.register(()=>n.value!=f?($.forEach(O=>O()),!1):(d.ctx.clearRect(),d.isMouseDown?d.flushShapes(m.map(O=>({shape:O,dragMouseMove:!0,extra:R=>{R.fillStyle="#ff0000"}}))).draw():(y&&y.nextFrame({gravity:E}),y&&y.y+y.height>=d.ctx.canvas.height&&(y.y=d.ctx.canvas.height-y.height,y=v()),d.flushShapes(m.map(O=>(y&&y!==O&&y.isIntersectRect(O)&&(y.y=O.y-y.height,y.y>=y.height?y=v():y=null),{shape:O,dragMouseMove:!0,extra:R=>{R.fillStyle="#ff0000"}}))).draw()),!0))}))}function r(){const f="PointWater";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=[];for(let v=0;v<80;v++){const y=new rt({x:d.ctx.canvas.width/2,y:d.ctx.canvas.height,radius:2});y.vx=Math.random()*2-1,y.vy=Math.random()*-10-10,m.push(y)}dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),d.flushShapes(m.map(v=>(v.nextFrame({gravity:.5}),(v.x-v.radius>d.ctx.canvas.width||v.x+v.radius<0||v.y-v.radius>d.ctx.canvas.height||v.y+v.radius<0)&&(v.x=d.ctx.canvas.width/2,v.y=d.ctx.canvas.height,v.vx=Math.random()*2-1,v.vy=Math.random()*-10-10),{shape:v,extra:y=>{y.fillStyle=lm()}}))).draw(),!0))}))}function o(){const f="PointEase";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=d.ctx.canvas.width/2,v=d.ctx.canvas.height/2,y=new rt({x:m,y:v,radius:30});dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),d.flushShapes([{shape:y,extra:E=>{E.fillStyle="#00ff00"},dragMouseMove:!0,dragFreeEaseTo:{targetX:m,targetY:v}}]).draw(),!0))}))}function a(){const f="PointSpringChain";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=d.ctx.canvas.width/2,v=d.ctx.canvas.height/2,y=[];for(let $=0;$<3;$++)y.push(new rt({x:m,y:v,radius:20}));const E=new ft,C=.03,w=.9,S=2;dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),y.forEach(($,O)=>{if(O===0)$.nextFrameSpringTo(d.app.mousePoint,{spring:C,friction:w,gravity:S}),E.fromX=d.app.mousePoint.x,E.fromY=d.app.mousePoint.y,E.x=$.x,E.y=$.y;else{const R=y[O-1];$.nextFrameSpringTo(R,{spring:C,friction:w,gravity:S}),E.fromX=R.x,E.fromY=R.y,E.x=$.x,E.y=$.y}d.flushShapes({shape:E,extra:R=>{R.lineWidth=1,R.strokeStyle="#eeeeee"}}).draw()}),d.flushShapes(y.map($=>({shape:$,extra:O=>{O.fillStyle="#0000ff"}}))).draw(),!0))}))}function l(){const f="PointSpringMulti";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=d.ctx.canvas.width/2,v=d.ctx.canvas.height/2,y=new rt({x:m,y:v,radius:20}),E=[];for(let w=0;w<3;w++)E.push(new rt({x:Math.random()*d.ctx.canvas.width,y:Math.random()*d.ctx.canvas.height,radius:10}));const C=[new ft,new ft,new ft];dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),y.nextFrameSpringTo(E,{spring:.03,friction:.9}),E.forEach((w,S)=>{C[S].fromX=y.x,C[S].fromY=y.y,C[S].x=w.x,C[S].y=w.y}),d.flushShapes([...C.map(w=>({shape:w,extra:S=>{S.lineWidth=1,S.strokeStyle="#eeeeee"}})),...E.map(w=>({shape:w,dragMouseMove:!0,extra:S=>{S.fillStyle="#00ff00"}})),{shape:y,extra:w=>{w.fillStyle="#ff0000"}}]).draw(),!0))}))}function c(){const f="PointSpringConnect";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=[];for(let E=0;E<3;E++)m.push(new rt({x:Math.random()*d.ctx.canvas.width,y:Math.random()*d.ctx.canvas.height,radius:15}));const v=[new ft,new ft,new ft],y={springLength:120,spring:.03,friction:.9};dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),m[0].isDragging||(m[0].nextFrameSpringConnect(m[1],y),m[0].nextFrameSpringConnect(m[2],y)),m[1].isDragging||(m[1].nextFrameSpringConnect(m[0],y),m[1].nextFrameSpringConnect(m[2],y)),m[2].isDragging||(m[2].nextFrameSpringConnect(m[0],y),m[2].nextFrameSpringConnect(m[1],y)),v[0].x=m[0].x,v[0].y=m[0].y,v[0].fromX=m[1].x,v[0].fromY=m[1].y,v[1].x=m[1].x,v[1].y=m[1].y,v[1].fromX=m[2].x,v[1].fromY=m[2].y,v[2].x=m[2].x,v[2].y=m[2].y,v[2].fromX=m[0].x,v[2].fromY=m[0].y,d.flushShapes([...v.map(E=>({shape:E,extra:C=>{C.strokeStyle="#eeeeee",C.lineWidth=1}})),...m.map(E=>({shape:E,dragMouseMove:!0,extra:C=>{C.fillStyle="#ff0000"}}))]).draw(),!0))}))}function u(){const f="QuadraticBezierCurve";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const v=new Po({x:50,y:d.ctx.canvas.height-50,fromX:d.ctx.canvas.width-50,fromY:d.ctx.canvas.height-50,cx:d.app.mousePoint.x,cy:d.app.mousePoint.y});dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),v.cx=d.app.mousePoint.x,v.cy=d.app.mousePoint.y,d.flushShapes([{shape:v,isLineThrough:!1,extra:y=>{y.lineWidth=2,y.strokeStyle="#ff0000"}},{shape:v,isLineThrough:!0,extra:y=>{y.lineWidth=2,y.strokeStyle="#00ff00"}}]).draw(),!0))}))}function h(){const f="PointsRandom";n.value=f,e.value.getCanvas().then(d=>{d.ctx.clearRect();const m=[];for(let v=0;v<10;v++){const y=new rt({x:Math.random()*d.ctx.canvas.width,y:Math.random()*d.ctx.canvas.height});m.push(y),d.flushShapes({shape:new Dt({x:y.x,y:y.y,width:6,height:6}),extra:E=>{E.fillStyle="#eeeeee"}}).draw()}d.flushShapes({shape:new ko(m),extra:v=>{v.lineWidth=2,v.strokeStyle="pink"}}).draw()})}return Ve(()=>{}),(f,d)=>(D(),z("div",J_,[N("div",ev,[oe(Ne,{onClick:s,stylePattern:n.value=="Arrow"?"fullfilled":"outline"},{default:Pe(()=>[He(" Arrow ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:i,stylePattern:n.value=="RectGame"?"fullfilled":"outline"},{default:Pe(()=>[He(" Rect - 俄罗斯方块 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:r,stylePattern:n.value=="PointWater"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - 喷泉 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:o,stylePattern:n.value=="PointEase"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - ease ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:a,stylePattern:n.value=="PointSpringChain"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - 链式弹簧 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:l,stylePattern:n.value=="PointSpringMulti"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - 多点弹簧 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:c,stylePattern:n.value=="PointSpringConnect"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - 连接弹簧 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:u,stylePattern:n.value=="QuadraticBezierCurve"?"fullfilled":"outline"},{default:Pe(()=>[He(" QuadraticBezier - curve ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:h,stylePattern:n.value=="PointsRandom"?"fullfilled":"outline"},{default:Pe(()=>[He(" Points - random ")]),_:1},8,["stylePattern"])]),N("div",tv,[oe(jt,{ref_key:"canvas",ref:e},null,512)])]))}}),s1="",sv=ee(nv,[["__scopeId","data-v-39cba7a8"]]),iv={class:"wrap"},rv={class:"btns"},ov={style:{height:"400px"}},av=J({customOptions:{Button:Ne,Canvas:jt},inheritAttrs:!0,__name:"CanvasShape",setup(t){const e=G();ve(e,()=>{if(!e.value)return;const s=new Dt({width:100,height:60,borderRadius:10}),i=new Jc({x:150,y:50,scale:.5}),r=new pm({x:250,y:50,scale:1});e.value.getCanvas().then(o=>{dt.register(()=>(o.ctx.clearRect(),o.flushShapes([{shape:s,dragMouseMove:!0,extra:a=>{a.fillStyle=a.createRadialGradient(10,10,0,10,10,20,{0:"#ffffff",1:"#ff0000"})}},{shape:i,dragMouseMove:!0,extra:a=>{a.fillStyle="#5a82f0"}},{shape:r,dragMouseMove:!0,extra:a=>{a.fillStyle="rgb(200,80,80)"}}]).draw(),!0))})});function n(){}return Ve(()=>{}),(s,i)=>(D(),z("div",iv,[N("div",rv,[oe(Ne,{onClick:n},{default:Pe(()=>[He("start")]),_:1})]),N("div",ov,[oe(jt,{ref_key:"canvas",ref:e},null,512)])]))}}),i1="",lv=ee(av,[["__scopeId","data-v-47eb1a02"]]),cv=J({customOptions:{Canvas:jt},inheritAttrs:!0,__name:"CanvasFromSVG",props:{raw:{},bgColor:{default:"#ffffff"}},setup(t,{expose:e}){const n=t,s=G();ve(s,()=>{s.value&&o()});let i;ve(()=>n.raw,(a,l)=>{a!=l&&(i=new So({svg:n.raw,width:300}),o())},{immediate:!0});function r(a,l){o()}function o(){if(!n.raw||!s.value)return;let a=-1,l;s.value.getCanvas().then(c=>{const u={shape:i,extra:h=>{h.lineWidth=4,h.strokeStyle="#ff0000"},clickInPath:h=>{a>=0&&(i.pgas[a]=l),a=h,l=Ni(i.pgas[h]),i.pgas[h].attrs.fill="pink",i.pgas[h].attrs.stroke="green",c.shapes=[u,{shape:i.pgas[h].pg.getBoundingClientRect(),extra:f=>{f.lineWidth=4,f.strokeStyle="#ff0000"}}],c.ctx.clearRect(),c.draw()}};c.flushShapes([u]).draw()})}return Ve(()=>{}),e({}),(a,l)=>(D(),Qe(jt,{ref_key:"canvasRef",ref:s,bgColor:n.bgColor,onResize:r},null,8,["bgColor"]))}}),r1="",uv=ee(cv,[["__scopeId","data-v-b80feebb"]]),hv={class:"loading-1"},fv=J({__name:"Loading1",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",hv,[N("div",{class:"rect1",style:n}),N("div",{class:"rect2",style:n}),N("div",{class:"rect3",style:n}),N("div",{class:"rect4",style:n}),N("div",{class:"rect5",style:n})]))}}),o1="",dv=ee(fv,[["__scopeId","data-v-48b10c9a"]]),pv={class:"loading-2"},mv=J({__name:"Loading2",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",pv,[N("div",{class:"dot1",style:n}),N("div",{class:"dot2",style:n})]))}}),a1="",gv=ee(mv,[["__scopeId","data-v-79f9930f"]]),_v=J({__name:"Loading3",props:{fromColor:{default:ne.colorPrimary},toColor:{default:ne.colorRed}},setup(t){const e=t,n=`
83
+ `,onClick:()=>{const{x:_e,y:De,width:Ye,height:ye}=o.value.getBoundingClientRect();xe(b.x,b.y,b.width,b.height,_e,De,Ye,ye,()=>{Ae(),y=!1})}},Te));return xe}function L(){if(!i.value||!s.openImageViewWhenClick)return;y=!0;const{x:se,y:V,width:U,height:be}=o.value.getBoundingClientRect();O=I(se,V,U,be)}return tt(()=>{g?.destroy()}),e({}),(se,V)=>(F(),K("div",{ref_key:"imageOutterRef",ref:i,class:"image",style:oe({backgroundColor:s.bgColor}),onClick:L},[P("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:oe({width:f.value+"px",height:p.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${f.value}px ${p.value}px`})},null,4)],4))}}),F_="",Zo=me(T0,[["__scopeId","data-v-928690db"]]),k0=pe({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,r=t,i=B();let o=[],a;const l=new yt;let c=0,u=!1;const h={};function f(){switch(Fs(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 p(){i.value&&(Lr(It("div",{class:"routes-inner-wrap",style:"height: 100%;"},o.map(V=>It("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},It(V.component,{...V.attributes,style:{...V.attributes.style||{},...h}})))),i.value),l?.fromDOM([...i.value.children[0].children]))}const g=V=>{if(!(!a||u||!o.length)){if(u=!0,V.push&&(c=o.length-1),V.pop){if(!o.length){u=!1;return}c=o.length-1}if(V.reset&&(c=0),V.forward){if(c>=o.length-1){u=!1;return}c++}if(V.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:s.easeName,dur:V?.dur??s.duration,direction:V.back||V.pop?"reverse":"normal",onComplete:()=>{(V.back||V.pop)&&c--,V.pop&&(o.pop(),p()),r("finish",c),u=!1,V?.onComplete?.()}},c)}};function y(V=[],U){o=[],V.forEach(be=>o.push({component:be.component,attributes:be.attributes??{}})),p(),g({reset:!0,onComplete:U})}function b(V,U={}){o.push({component:V,attributes:U}),p(),g({push:!0})}function O(){g({pop:!0})}function D(){g({forward:!0})}function I(){g({back:!0})}function L(V,U){V>o.length-1||V<0||V==c||(U||(U=s.duration/Math.abs(V-c)),c<V?g({forward:!0,dur:U,onComplete:()=>{setTimeout(()=>{L(V,U)})}}):g({back:!0,dur:U,onComplete:()=>{setTimeout(()=>{L(V,U)})}}))}function se(){p(),g({resize:!0})}return wn(()=>{it.page.on("resize",se)}),tt(()=>{it.page.off("resize",se)}),e({reset:y,push:b,pop:O,forward:D,back:I,goto:L}),(V,U)=>(F(),K("div",{ref_key:"routesContainerRef",ref:i,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),G_="",xu=me(k0,[["__scopeId","data-v-f06c01ec"]]),O0={style:{position:"absolute",width:"100%",height:"100%"}},P0={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},I0=pe({customOptions:{Image:Zo},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]}},setup(n,{expose:e,emit:t}){const s=n,r=B(),i=B(),o=B(),a=B(0);let l;function c(g){a.value=g}function u(){o.value?.forward()}function h(){o.value?.back()}$e(i,()=>{i.value&&(l?.destroy(),l=new it(i.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",p))}),$e(o,()=>{o.value&&o.value.reset(s.urls.map(g=>({component:It("div",{style:"position:absolute;width:100%;height:100%"},It(Zo,{mode:"aspectFit",src:g,openImageViewWhenClick:!1}))})))});function f(){r.value?.open()}function p(){r.value?.close()}return tt(()=>{l?.destroy()}),e({open:f,close:p}),(g,y)=>(F(),xt(Vt,{ref_key:"popRef",ref:r,directionFrom:"absolute"},{default:st(()=>[P("div",O0,[s.urls.length>1?(F(),K("div",P0,Re(a.value+1)+" / "+Re(s.urls.length),1)):Ke("",!0),P("div",{ref_key:"pageRef",ref:i,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[Oe(xu,{ref_key:"routesRef",ref:o,direction:s.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),j_="",N0=me(I0,[["__scopeId","data-v-be51d205"]]),z_="",D0={class:"page"},M0={class:"header"},A0={class:"main"},R0={class:"main-scroll"},$0={class:"footer"},L0=pe({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(n,{expose:e,emit:t}){return um(n.designWidth),e({}),(r,i)=>(F(),K("div",D0,[P("header",M0,[Xe(r.$slots,"header",{},void 0,!0)]),P("div",A0,[P("div",R0,[Xe(r.$slots,"main",{},void 0,!0)])]),P("footer",$0,[Xe(r.$slots,"footer",{},void 0,!0)])]))}}),B_="",V0=me(L0,[["__scopeId","data-v-3904d6b5"]]),F0=pe({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(n,{expose:e,emit:t}){const s=n,r=_t({}),i=_t({});function o(){switch(Fs(r),Fs(i),s.type){case"table":r.display="table",i.display="table-cell",i.verticalAlign="middle",i.textAlign="center";break;case"transform":i.position="absolute",i.top="50%",i.left="50%",i.transform="translate(-50%, -50%)";break;case"grid":r.display="grid",r.justifyContent="center",r.alignItems="center";break;case"flex":default:r.display="flex",i.margin="auto"}}return o(),tt(()=>{}),e({}),(a,l)=>(F(),K("div",{class:"layout-center",style:oe(r)},[P("div",{style:oe(i)},[Xe(a.$slots,"default",{},void 0,!0)],4)],4))}}),H_="",G0=me(F0,[["__scopeId","data-v-a768b36f"]]),j0=(n=>(Es("data-v-d02782ac"),n=n(),Ss(),n))(()=>P("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),z0=pe({customOptions:{Pop:Vt,Button:ft},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(n){const e=n,t=B(),s=B(),r=B(),i=_t({left:"0",top:"0"});$e(s,()=>{o()}),$e(r,()=>{o()});function o(){if(!s.value||!r.value)return;const l=tu(),c=s.value.getBoundingClientRect(),u=r.value.getBoundingClientRect(),h=u.width,f=u.height;let p=c.x+c.width+e.gap,g=c.y;p=Math.max(e.gap,Math.min(p,l.width-h-e.gap)),g=Math.max(e.gap,Math.min(g,l.height-f-e.gap)),i.left=`${p}px`,i.top=`${g}px`}function a(){t.value.open()}return(l,c)=>(F(),K(Fe,null,[P("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:a},[Xe(l.$slots,"button",{},()=>[Oe(ft,null,{default:st(()=>[Dt("popover-default-button")]),_:1})],!0)],512),Oe(Vt,{ref_key:"popRef",ref:t,"direction-from":"absolute",isGlobal:e.isGlobal},{default:st(()=>[P("div",{ref_key:"popoverPanelRef",ref:r,style:oe([{display:"inline-block",position:"absolute"},i])},[Xe(l.$slots,"panel",{},()=>[j0],!0)],4)]),_:3},8,["isGlobal"])],64))}}),X_="",Qo=me(z0,[["__scopeId","data-v-d02782ac"]]),B0={class:"tab"},H0=pe({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(n,{expose:e}){return e({}),(t,s)=>(F(),K("div",B0,[Xe(t.$slots,"default",{},void 0,!0)]))}}),U_="",Y0=me(H0,[["__scopeId","data-v-6589e7fa"]]),X0={class:"tabs"},U0=["onClick"],W0={class:"content"},q0=pe({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(n,{expose:e,emit:t}){const s=n,r=t,i=B(s.initIndex),o=_t([]),a=B(),l=B(0),c=B(0),u=B(0),h=B([]),f=[],p=kf(),g=p.default&&p.default();g&&(Gs(o,g),O(i.value));const y=(I,L)=>{if(I){if(f.push({index:L,el:I}),f.length<o.length)return;h.value=f}};$e([a,h],()=>{b()});function b(){if(a.value&&h.value.length){const I=a.value.getBoundingClientRect(),L=h.value[i.value].el.getBoundingClientRect();l.value=L.x-I.x,c.value=L.y-I.y+L.height-2,u.value=L.width}}function O(I){i.value=I,r("changedIndex",I),b(),D.value.goto(I)}const D=B();return $e(D,()=>{D.value&&D.value.reset(s.pages,()=>{D.value.goto(s.initIndex)})}),e({}),(I,L)=>(F(),K("div",X0,[P("div",{class:"header",ref_key:"headerRef",ref:a},[(F(!0),K(Fe,null,ht(s.labels,(se,V)=>(F(),K("div",{key:se,class:mt(V==i.value?"active":""),onClick:U=>O(V)},[P("div",{ref_for:!0,ref:U=>y(U,V)},Re(se),513)],10,U0))),128)),P("div",{class:"indicator",style:oe({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),P("div",W0,[Oe(xu,{ref_key:"routesRef",ref:D,direction:"rightToLeft",duration:200},null,512)])]))}}),W_="",K0=me(q0,[["__scopeId","data-v-e74e266d"]]),Z0=["width","height"],Q0=pe({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",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 r=()=>{};const i=B();return $e(i,()=>{if(!i.value)return;const o=new it(i.value),a=new mu(o);a.ctx.strokeStyle=s.brushColor,a.ctx.lineWidth=s.brushSize,a.drawMouseMoveLine("line"),r=()=>{rs.downloadFromSVGString(a.ctx.toRawSVG().raw,s.downloadFileName)}}),e({download:()=>r()}),(o,a)=>(F(),K("canvas",{ref_key:"panelRef",ref:i,width:s.canvasWidth,height:s.canvasHeight,style:oe([`border: 1px solid ${o.borderColor}`])},null,12,Z0))}}),J0={class:"wrap",style:{}},ev=pe({customOptions:{ProgressBar:Js},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",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,r=t,i=B(),o=()=>{const a=rm();r("progress",a),i.value?.goto(a)};return it.page.registerGlobalScrollChange(o),tt(()=>{it.page.removeGlobalScrollChange(o)}),e({}),(a,l)=>(F(),K("div",J0,[Oe(Js,{ref_key:"bar",ref:i,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"])]))}}),q_="",tv=me(ev,[["__scopeId","data-v-2e31cfe2"]]),nv=["fill"],sv=["fill"],rv=pe({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:ce.colorPrimary}},setup(n){const e=n;return(t,s)=>(F(),K("svg",{style:oe(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("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,nv),P("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,sv)],4))}}),K_="",Jo=me(rv,[["__scopeId","data-v-987aed3d"]]),ii=n=>(Es("data-v-5f064292"),n=n(),Ss(),n),iv=ii(()=>P("div",{class:"title"},"车牌颜色",-1)),ov={class:"plate-types"},av=["onClick"],lv=ii(()=>P("div",{class:"title"},"车牌号码",-1)),cv={class:"plate-numbers"},uv=ii(()=>P("div",{class:"dot"},"·",-1)),hv=["onClick"],fv=ii(()=>P("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),dv=pe({customOptions:{SVGCheck:Jo},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(n,{expose:e,emit:t}){const s=n,r=t,i=[{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}],o=B(0),a=_t([]),l=B(-1);function c(){p0({initPlates:a,completePlateLength:i[o.value].completePlateLength,onPlates:f=>{Gs(a,f),l.value=a.length,a.length===i[o.value].completePlateLength&&r("complete",i[o.value].name,a.join(""))}})}const u=f=>{o.value=f,l.value<=i[f].completePlateLength&&a.length<i[f].completePlateLength?(l.value=a.length,c(),r("clear")):Gs(a,a.slice(0,i[f].completePlateLength)),i[f].completePlateLength===a.length&&r("complete",i[o.value].name,a.join(""))},h=f=>{Gs(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),r("clear")};return e({}),(f,p)=>(F(),K("div",oo(f.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[iv,P("div",ov,[(F(),K(Fe,null,ht(i,(g,y)=>P("div",{key:y,class:mt(y==o.value?"checked":""),onClick:b=>u(y)},[P("div",{style:oe(g.style)},null,4),P("div",null,Re(g.name),1),P("div",null,[Oe(Jo,{color:"#ffffff",width:"0.14rem"})])],10,av)),64))]),lv,P("div",cv,[P("div",{onClick:p[0]||(p[0]=g=>h(0)),class:mt(l.value==0?"current":"")},Re(a[0]),3),P("div",{onClick:p[1]||(p[1]=g=>h(1)),class:mt(l.value==1?"current":"")},Re(a[1]),3),uv,(F(!0),K(Fe,null,ht(i[o.value].completePlateLength-2,g=>(F(),K("div",{key:g,class:mt(g+1==l.value?"current":""),onClick:y=>h(g+1)},Re(a[g+1]),11,hv))),128))]),fv],16))}}),Z_="",pv=me(dv,[["__scopeId","data-v-5f064292"]]),mv={class:"parent"},gv=pe({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(n,{expose:e,emit:t}){const s=n,r=[{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 i(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const f=r.filter(p=>p.name===h);return f.length?f[0]:o("未知")}const a=i(s.plate),l=B(o(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)=>(F(),K("div",mv,[P("div",{class:mt(["leading",s.displayType]),style:oe(l.value.style)},Re(l.value.name),7),P("div",{class:"text",style:oe({color:Ve(c),"font-size":Ve(u)})},Re(Ve(a)),5)]))}}),Q_="",vv=me(gv,[["__scopeId","data-v-11a104c3"]]),cs=(n,e=0,t=1)=>n>t?t:n<e?e:n,at=(n,e=0,t=Math.pow(10,e))=>Math.round(t*n)/t,yv=n=>wv(ea(n)),ea=n=>(n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?at(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?at(parseInt(n.substring(6,8),16)/255,2):1}),_v=n=>xv(bv(n)),wu=({h:n,s:e,v:t,a:s})=>{const r=(200-e)*t/100;return{h:at(n),s:at(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:at(r/2),a:at(s,2)}},ta=n=>{const{h:e,s:t,l:s}=wu(n);return`hsl(${e}, ${t}%, ${s}%)`},na=n=>{const{h:e,s:t,l:s,a:r}=wu(n);return`hsla(${e}, ${t}%, ${s}%, ${r})`},bv=({h:n,s:e,v:t,a:s})=>{n=n/360*6,e=e/100,t=t/100;const r=Math.floor(n),i=t*(1-e),o=t*(1-(n-r)*e),a=t*(1-(1-n+r)*e),l=r%6;return{r:at([t,o,i,i,a,t][l]*255),g:at([a,t,t,o,i,i][l]*255),b:at([i,i,a,t,t,o][l]*255),a:at(s,2)}},oi=n=>{const e=n.toString(16);return e.length<2?"0"+e:e},xv=({r:n,g:e,b:t,a:s})=>{const r=s<1?oi(at(s*255)):"";return"#"+oi(n)+oi(e)+oi(t)+r},wv=({r:n,g:e,b:t,a:s})=>{const r=Math.max(n,e,t),i=r-Math.min(n,e,t),o=i?r===n?(e-t)/i:r===e?2+(t-n)/i:4+(n-e)/i:0;return{h:at(60*(o<0?o+6:o)),s:at(r?i/r*100:0),v:at(r/255*100),a:s}},Eu=(n,e)=>{if(n===e)return!0;for(const t in n)if(n[t]!==e[t])return!1;return!0},Ev=(n,e)=>n.toLowerCase()===e.toLowerCase()?!0:Eu(ea(n),ea(e)),Su={},Cu=n=>{let e=Su[n];return e||(e=document.createElement("template"),e.innerHTML=n,Su[n]=e),e},sa=(n,e,t)=>{n.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:t}))};let us=!1;const ra=n=>"touches"in n,Sv=n=>us&&!ra(n)?!1:(us||(us=ra(n)),!0),Tu=(n,e)=>{const t=ra(e)?e.touches[0]:e,s=n.el.getBoundingClientRect();sa(n.el,"move",n.getMove({x:cs((t.pageX-(s.left+window.pageXOffset))/s.width),y:cs((t.pageY-(s.top+window.pageYOffset))/s.height)}))},Cv=(n,e)=>{const t=e.keyCode;t>40||n.xy&&t<37||t<33||(e.preventDefault(),sa(n.el,"move",n.getMove({x:t===39?.01:t===37?-.01:t===34?.05:t===33?-.05:t===35?1:t===36?-1:0,y:t===40?.01:t===38?-.01:0},!0)))};class ia{constructor(e,t,s,r){const i=Cu(`<div role="slider" tabindex="0" part="${t}" ${s}><div part="${t}-pointer"></div></div>`);e.appendChild(i.content.cloneNode(!0));const o=e.querySelector(`[part=${t}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=r,this.nodes=[o.firstChild,o]}set dragging(e){const t=e?document.addEventListener:document.removeEventListener;t(us?"touchmove":"mousemove",this),t(us?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!Sv(e)||!us&&e.button!=0)return;this.el.focus(),Tu(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),Tu(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":Cv(this,e);break}}style(e){e.forEach((t,s)=>{for(const r in t)this.nodes[s].style.setProperty(r,t[r])})}}class Tv extends ia{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:`${e/360*100}%`,color:ta({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${at(e)}`)}getMove(e,t){return{h:t?cs(this.h+e.x*360,0,360):360*e.x}}}class kv extends ia{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:`${100-e.v}%`,left:`${e.s}%`,color:ta(e)},{"background-color":ta({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${at(e.s)}%, Brightness ${at(e.v)}%`)}getMove(e,t){return{s:t?cs(this.hsva.s+e.x*100,0,100):e.x*100,v:t?cs(this.hsva.v-e.y*100,0,100):Math.round(100-e.y*100)}}}const Ov=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',Pv="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",Iv="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",ai=Symbol("same"),oa=Symbol("color"),ku=Symbol("hsva"),aa=Symbol("update"),Ou=Symbol("parts"),li=Symbol("css"),ci=Symbol("sliders");let Nv=class extends HTMLElement{static get observedAttributes(){return["color"]}get[li](){return[Ov,Pv,Iv]}get[ci](){return[kv,Tv]}get color(){return this[oa]}set color(e){if(!this[ai](e)){const t=this.colorModel.toHsva(e);this[aa](t),this[oa]=e}}constructor(){super();const e=Cu(`<style>${this[li].join("")}</style>`),t=this.attachShadow({mode:"open"});t.appendChild(e.content.cloneNode(!0)),t.addEventListener("move",this),this[Ou]=this[ci].map(s=>new s(t))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this.color,this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,t,s){const r=this.colorModel.fromAttr(s);this[ai](r)||(this.color=r)}handleEvent(e){const t=this[ku],s={...t,...e.detail};this[aa](s);let r;!Eu(s,t)&&!this[ai](r=this.colorModel.fromHsva(s))&&(this[oa]=r,sa(this,"color-changed",{value:r}))}[ai](e){return this.color&&this.colorModel.equal(e,this.color)}[aa](e){this[ku]=e,this[Ou].forEach(t=>t.update(e))}};class Dv extends ia{constructor(e){super(e,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(e){this.hsva=e;const t=na({...e,a:0}),s=na({...e,a:1}),r=e.a*100;this.style([{left:`${r}%`,color:na(e)},{"--gradient":`linear-gradient(90deg, ${t}, ${s}`}]);const i=at(r);this.el.setAttribute("aria-valuenow",`${i}`),this.el.setAttribute("aria-valuetext",`${i}%`)}getMove(e,t){return{a:t?cs(this.hsva.a+e.x):e.x}}}const Mv=`[part=alpha]{flex:0 0 24px}[part=alpha]::after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background-image:var(--gradient);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part^=alpha]{background-color:#fff;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')}[part=alpha-pointer]{top:50%}`;class Av extends Nv{get[li](){return[...super[li],Mv]}get[ci](){return[...super[ci],Dv]}}const Rv={defaultColor:"#0001",toHsva:yv,fromHsva:_v,equal:Ev,fromAttr:n=>n};class $v extends Av{get colorModel(){return Rv}}class Lv extends $v{}customElements.define("hex-alpha-color-picker",Lv);const Vv=pe({customOptions:{Popover:Qo},__name:"ColorPicker",props:{color:{default:ce.colorPrimary}},emits:["change"],setup(n,{emit:e}){const t=n,s=e,r=B(t.color);$e(r,(a,l)=>{a!==l&&s("change",a)});const i=B(),o=a=>{r.value=a.detail.value};return $e(i,()=>{i.value&&(i.value.removeEventListener("color-changed",o),i.value.addEventListener("color-changed",o))}),(a,l)=>{const c=rf("hex-alpha-color-picker");return F(),xt(Qo,null,{button:st(()=>[Xe(a.$slots,"default",{},()=>[P("span",{class:"button",style:oe({backgroundColor:r.value})},null,4)],!0)]),panel:st(()=>[Oe(c,{ref_key:"colorPickerRef",ref:i,color:r.value},null,8,["color"])]),_:3})}}}),J_="",Fv=me(Vv,[["__scopeId","data-v-ac12603f"]]),e1="",Gv={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",Mo&&this.$el.appendChild(n),n.data="about:blank",Mo||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&&(!Mo&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},jv={class:"resize-observer",tabindex:"-1"};function zv(n,e,t,s,r,i){return F(),K("div",jv)}const Bv=me(Gv,[["render",zv],["__scopeId","data-v-d5987ae1"]]),Hv=pe({__name:"MapTianditu",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,r=B(s.mapWidth),i=B(s.mapHeight);let o;const a=B();return $e(a,()=>{a.value&&(o=new it(a.value,!1),o.on("resize",(l,c)=>{r.value=l+"px",i.value=c+"px"}),o.start())}),wn(()=>{q.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new Hm(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},l=>{console.log("error",l)})}),tt(()=>{o.destroy()}),e({}),(l,c)=>(F(),K("div",oo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Xe(l.$slots,"default",{width:r.value,height:i.value},void 0,!0)],16))}}),t1="",Yv=me(Hv,[["__scopeId","data-v-e5da8598"]]);var er=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 r=(performance||Date).now(),i=r,o=0,a=t(new er.Panel("FPS","#0ff","#002")),l=t(new er.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=t(new er.Panel("MB","#f08","#201"));return s(0),{REVISION:16,dom:e,addPanel:t,showPanel:s,begin:function(){r=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-r,200),u>i+1e3&&(a.update(o*1e3/(u-i),100),i=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){r=this.end()},domElement:e,setMode:s}};er.Panel=function(n,e,t){var s=1/0,r=0,i=Math.round,o=i(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,f=15*o,p=74*o,g=30*o,y=document.createElement("canvas");y.width=a,y.height=l,y.style.cssText="width:80px;height:48px";var b=y.getContext("2d");return b.font="bold "+9*o+"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,p,g),b.fillStyle=t,b.globalAlpha=.9,b.fillRect(h,f,p,g),{dom:y,update:function(O,D){s=Math.min(s,O),r=Math.max(r,O),b.fillStyle=t,b.globalAlpha=1,b.fillRect(0,0,a,f),b.fillStyle=e,b.fillText(i(O)+" "+n+" ("+i(s)+"-"+i(r)+")",c,u),b.drawImage(y,h+o,f,p-o,g,h,f,p-o,g),b.fillRect(h+p-o,f,o,g),b.fillStyle=t,b.globalAlpha=.9,b.fillRect(h+p-o,f,o,i((1-O/D)*g))}}};const Xv=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(n,{expose:e}){const t=B();return wn(()=>{const s=new er,r=s.domElement.style;r.margin="1em",t.value.appendChild(s.domElement),Be.run(()=>(s.update(),!0))}),e({}),(s,r)=>(F(),K("div",{ref_key:"containerRef",ref:t},null,512))}}),Uv=["width","height"],Wv=pe({__name:"Canvas",props:{bgColor:{default:"#333333"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,r=t,i=B(),o=B(),a=B(0),l=B(0);let c;$e(i,()=>{i.value&&(c=new it(i.value,!1),c.on("resize",(y,b)=>{const O=tu();a.value=Math.min(y,O.width),l.value=Math.min(b,O.height),p()}),c.start())}),$e(o,()=>{o.value&&p()});let u,h,f;function p(){u||!o.value||!a.value||!l.value||(u=new it(o.value,!1),u.on("resize",(y,b)=>{r("resize",y,b),f?.(h)}),u.start(),h=new mu(u),f?.(h))}function g(){return new Promise(y=>{if(h&&u.width&&u.height)return y(h);f=y})}return tt(()=>{u?.destroy(),c?.destroy()}),e({getCanvasElement:()=>o.value,getCanvas:g}),(y,b)=>(F(),K("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:i},[P("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:oe({backgroundColor:s.bgColor})},null,12,Uv)],512))}}),s1="",hs=me(Wv,[["__scopeId","data-v-a940cf68"]]),qv={class:"ease-graph"},Kv=pe({customOptions:{Button:ft,Canvas:hs},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,r=t,i=B();let o;$e(i,()=>{i.value&&i.value.getCanvas().then(u=>{o=u,r("onMounted",s.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,r("onStart",s.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,s.graphVerticalGap),o.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),o.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),o.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.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,p=!1;yt.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:fe.Easing.Linear.None,onComplete:()=>{f=!0,f&&p&&(r("onCompleted",s.easeName),a=!1)}}).startAuto(),yt.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{p=!0,f&&p&&(r("onCompleted",s.easeName),a=!1)}}).startAuto()},c=()=>{r("onSelected",s.easeName,s.easeFunction)};return tt(()=>{o.app.off("showInParent",l)}),e({start:l}),(u,h)=>(F(),K("div",qv,[P("div",null,"缓动:"+Re(u.easeName),1),P("div",null,[P("div",null,[Oe(ft,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:st(()=>[Dt(" 开始 ")]),_:1})]),P("div",null,[Oe(ft,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:st(()=>[Dt(" 选择 ")]),_:1},8,["stylePattern"])])]),P("div",{style:oe({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[Oe(hs,{ref_key:"canvasRef",ref:i,bgColor:"#ffffff"},null,512)],4)]))}}),r1="",la=me(Kv,[["__scopeId","data-v-a2b487d0"]]),Zv=2e3,Qv=pe({customOptions:{EaseGraphDisplay:la},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:fe.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:fe.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:fe.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:fe.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:fe.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:fe.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:fe.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:fe.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:fe.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:fe.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:fe.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:fe.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:fe.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:fe.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:fe.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:fe.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:fe.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:fe.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:fe.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:fe.Easing.Circular.In},{easeName:"CircularOut",easeFunction:fe.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:fe.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:fe.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:fe.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:fe.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:fe.Easing.Back.In},{easeName:"BackOut",easeFunction:fe.Easing.Back.Out},{easeName:"BackInOut",easeFunction:fe.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:fe.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:fe.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:fe.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:fe.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:fe.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:fe.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:fe.Easing.createStep(4)},{easeName:"8 steps",easeFunction:fe.Easing.createStep(8)},{easeName:"12 steps",easeFunction:fe.Easing.createStep(12)},{easeName:"16 steps",easeFunction:fe.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:fe.Easing.createNoisyEasing(fe.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:fe.Easing.createNoisyEasing(fe.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:fe.Easing.createNoisyEasing(fe.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:fe.Easing.swing},{easeName:"causeSeizures",easeFunction:fe.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(n,{expose:e,emit:t}){const s=n,r=t,i={};function o(f,p){f&&(i[p]={el:f})}const a=new qc(10);function l(f){a.addTask(()=>(i[f].el.start(),new Promise(p=>{i[f].resolve=p})))}function c(f){i[f].resolve?.()}const u=B("Linear");function h(f,p){u.value=f,r("selectedEaseFunction",f,p)}return h("Linear",fe.Easing.Linear.None),e({}),(f,p)=>(F(),K("div",null,[(F(!0),K(Fe,null,ht(s.easeList,g=>(F(),K("div",{key:g.easeName,class:"ease-graph-wrap"},[g.easeFunction?(F(),xt(la,{key:0,easeName:g.easeName,easeFunction:g.easeFunction,easeDuration:Zv,isSelected:u.value==g.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:y=>o(y,g.easeName)},null,8,["easeName","easeFunction","isSelected"])):Ke("",!0)]))),128))]))}}),i1="",Jv=me(Qv,[["__scopeId","data-v-fa7ba01d"]]),ey={class:"interpolation-graph"},Pu=1/6,Iu=5/6,ty=pe({customOptions:{Button:ft,Canvas:hs},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,r=t,i=B();let o;$e(i,()=>{i.value&&i.value.getCanvas().then(y=>{o=y,r("onMounted",s.interpolationName),o.app.on("showInParent",g)})});const a=s.canvasWidth*Pu,l=s.canvasHeight/2,c=[s.canvasWidth*Iu,s.canvasWidth/2],u=[s.canvasHeight*Pu,s.canvasHeight*Iu],h=[...c,a],f=[...u,l];let p=!1;const g=()=>{if(!o||p)return;p=!0,r("onStart",s.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var y=0;y<c.length;y++)o.ctx.fillRect(c[y]-2,u[y]-2,4,4);let b=!1,O=!1;const D={x:a,y:l,old:{x:a,y:l}};yt.toTween(D,{x:c,y:u},{duration:s.easeDuration,easeFunction:fe.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:L=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(L.old.x,L.old.y),o.ctx.lineTo(L.x,L.y),o.ctx.closePath(),o.ctx.stroke(),L.old.x=L.x,L.old.y=L.y},onComplete:()=>{b=!0,b&&O&&(r("onCompleted",s.interpolationName),p=!1)}}).startAuto();const I={x:a,y:l,old:{x:a,y:l}};yt.toTween(I,{x:h,y:f},{duration:s.easeDuration,easeFunction:fe.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:L=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(L.old.x,L.old.y),o.ctx.lineTo(L.x,L.y),o.ctx.closePath(),o.ctx.stroke(),L.old.x=L.x,L.old.y=L.y},onComplete:()=>{O=!0,b&&O&&(r("onCompleted",s.interpolationName),p=!1)}}).startAuto()};return tt(()=>{o.app.off("showInParent",g)}),e({start:g}),(y,b)=>(F(),K("div",ey,[P("div",null,[Dt(" 插值:"+Re(y.interpolationName)+" ",1),Oe(ft,{stylePattern:"outline",height:"32px",onClick:g},{default:st(()=>[Dt(" 开始 ")]),_:1})]),P("div",{style:oe({width:y.canvasWidth+"px",height:y.canvasHeight+"px"})},[Oe(hs,{ref_key:"canvasRef",ref:i,bgColor:"#ffffff"},null,512)],4)]))}}),o1="",ca=me(ty,[["__scopeId","data-v-18aca8d5"]]),ny=2e3,sy=pe({customOptions:{InterpolationGraphDisplay:ca},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:fe.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:fe.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:fe.Interpolation.CatmullRom}]}},setup(n,{expose:e,emit:t}){const s=n,r={};function i(c,u){c&&(r[u]={el:c})}const o=new qc(1);function a(c){o.addTask(()=>(r[c].el.start(),new Promise(u=>{r[c].resolve=u})))}function l(c){r[c].resolve?.()}return e({}),(c,u)=>(F(),K("div",null,[(F(!0),K(Fe,null,ht(s.interpolationList,h=>(F(),K("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[Oe(ca,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:ny,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>i(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),a1="",ry=me(sy,[["__scopeId","data-v-6e8312e3"]]),iy=pe({__name:"SVG",props:{bgColor:{default:"#fefefe"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,r=t,i=B();$e(i,()=>{i.value&&c()});let o,a,l;function c(){o||!i.value||(o=new it(i.value,!1),o.on("resize",(h,f)=>{r("resize",h,f),l?.(a)}),o.start(),a=new Sm(o),l?.(a))}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return tt(()=>{o?.destroy()}),e({getSVGElement:()=>i.value,getSVG:u}),(h,f)=>(F(),K("div",{ref_key:"svgRef",ref:i,class:"svg",style:oe({backgroundColor:s.bgColor})},null,4))}}),l1="",Nu=me(iy,[["__scopeId","data-v-f2e10199"]]),Du='<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>',oy={class:"btns"},ay={class:"btns sub-btns"},ly={class:"btns sub-btns"},cy={style:{height:"400px"}},uy={style:{height:"400px"}},hy={style:{height:"400px"},class:"css-area"},fy={class:"animate-to-css-group"},dy={class:"animate-to-css-group"},py=pe({customOptions:{Button:ft,SVG:Nu,Canvas:hs},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:fe.Easing.Linear.None}},setup(n,{expose:e}){const t=n,s=B(),r=B(),i=B(),o=B(),a=B(),l=B(),c=B(),u=B(),h=B(""),f=B("");function p(j){switch(f.value=j,h.value){case"AnimateToCSS":Se();break;case"AnimateToTweenCSS":J();break}}function g(){const j="PathDGroup";if(h.value==j||!s.value||!r.value)return;h.value=j;const Z=new Zt({svg:Du,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"}}),E=new We({x:0,y:0,radius:6,attrs:{fill:"#ff0000"}}),R=new We({x:0,y:0,radius:3,attrs:{fill:"#00ff00"}});let S,X,w=0,M=Z.shapes[w].getTotalLength(),Q=0;const ue=.01;s.value.getSVG().then(ie=>{ie.clear(),ie.path(Z);const v=ie.path(E),x=ie.path(R),k=ie.click(N=>{X&&ie.delete(X),S&&(S.restore(),ie.update(S)),S=N,N.save(),N.attrs.fill="pink",N.attrs.stroke="green",ie.update(N);const $=N.getBoundingClientRect();$.attrs.fill="none",$.attrs.strokeWidth="4",$.attrs.stroke="#0000ff",X=ie.path($,{addToShapes:!1})});Be.run(()=>{if(h.value!==j)return k(),!1;Q>1&&(w++,Q=0,w>Z.shapes.length-1&&(w=0),M=Z.shapes[w].getTotalLength());let{x:N,y:$}=Z.shapes[w].interpolate(Q);v.x=N,v.y=$,ie.update(v);let{x:W,y:ne}=Z.shapes[w].getPointAtLength(Q*M);return x.x=W,x.y=ne,ie.update(x),Q+=ue,ie.update(Z),!0})}),r.value.getCanvas().then(ie=>{let v=[Z,E,R];ie.draw(v);const x=ie.click(k=>{ie.ctx.clearRect(),S&&S.restore(),S=k,k.save(),k.attrs.fill="pink",k.attrs.stroke="green",v=[Z,E,R];const N=k.getBoundingClientRect();N&&(N.attrs.fill="none",N.attrs.strokeWidth="4",N.attrs.stroke="#0000ff",v.push(N)),ie.draw(v)});Be.run(()=>{if(h.value!==j)return x(),!1;Q>1&&(w++,Q=0,w>Z.shapes.length-1&&(w=0),M=Z.shapes[w].getTotalLength()),ie.ctx.clearRect();let{x:k,y:N}=Z.shapes[w].interpolate(Q);E.x=k,E.y=N;let{x:$,y:W}=Z.shapes[w].getPointAtLength(Q*M);return R.x=$,R.y=W,Q+=ue,ie.draw(v),!0})})}function y(){const j="Shapes";if(h.value==j||!s.value||!r.value)return;h.value=j;const Z=new ni({x:100,y:100,scaleOnOrigin:.5,attrs:{fill:"#5a82f0"},enableDrag:!0}),E=new Rt({width:100,height:60,x:200,y:40,borderRadius:10,attrs:{fill:"pink"},enableDrag:!0}),R=new Yo({x:400,y:100,scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)"},enableDrag:!0});s.value.getSVG().then(S=>{S.clear();const X=S.path(Z),w=S.path(E),M=S.path(R);Be.run(()=>h.value!==j?!1:(S.update(X),S.update(w),S.update(M),!0))}),r.value.getCanvas().then(S=>{Be.run(()=>h.value!==j?!1:(S.ctx.clearRect(),S.draw([Z,E,R]),!0))})}function b(){const j="Arrow";if(h.value==j||!s.value||!r.value)return;h.value=j;const Z=new ni({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:"pink"}});s.value.getSVG().then(E=>{const R=new nt({x:E.app.width/2,y:E.app.height/2,attrs:{"stroke-width":"2",stroke:"pink"}});E.clear();const S=E.path(Z);E.path(R),Be.run(()=>h.value!==j?!1:(E.update(S),R.fromX=S.x,R.fromY=S.y,E.update(R),!0))}),r.value.getCanvas().then(E=>{const R=new nt({x:E.app.width/2,y:E.app.height/2,attrs:{"stroke-width":"2",stroke:"pink"}});Be.run(()=>h.value!=j?!1:(E.ctx.clearRect(),R.fromX=Z.x,R.fromY=Z.y,E.draw([R,Z]),!0))})}function O(){const j="PointEase";if(h.value==j)return;h.value=j;function Z(E,R){return new We({x:E,y:R,radius:30,attrs:{fill:Qr()},targetToAfterDragFree:{targetX:E,targetY:R},enableDrag:!0})}s.value.getSVG().then(E=>{E.clear();const R=E.path(Z(E.app.width/2,E.app.height/2));Be.run(()=>h.value!==j?!1:(E.update(R),!0))}),r.value.getCanvas().then(E=>{const R=Z(E.app.width/2,E.app.height/2);Be.run(()=>h.value!=j?!1:(E.ctx.clearRect(),E.draw(R),!0))})}function D(){const j="Sector";if(h.value==j||!s.value||!r.value)return;h.value=j;const Z=new du({x:200,y:100,radius:100,startDegree:90,endDegree:180,text:"左边的文字",enableDrag:!0,defaultShowText:!0,attrs:{fill:"pink",stroke:"#666666"}}),E=new du({x:300,y:100,radius:100,startDegree:0,endDegree:90,text:"右边的文字",enableDrag:!0,attrs:{fill:"pink",stroke:"#666666"}});s.value.getSVG().then(R=>{R.clear(),R.path(Z),R.path(E),Be.run(()=>h.value!==j?!1:(R.update(Z),R.update(E),!0))}),r.value.getCanvas().then(R=>{Be.run(()=>h.value!=j?!1:(R.ctx.clearRect(),R.draw([Z,E]),!0))})}function I(){const j="RectGame";if(h.value==j)return;h.value=j;function Z(R){return new Rt({x:Math.random()*R,y:0,width:50,height:50,attrs:{fill:Qr()},enableDrag:!0})}const E=.2;s.value.getSVG().then(R=>{R.clear();const S=[];function X(){const M=R.path(Z(R.app.width));return S.push(M),M}let w=X();Be.run(()=>h.value!==j?!1:(R.isMouseDown?S.forEach(M=>{R.update(M)}):(w&&w.nextFrame({gravity:E}),w&&w.y+w.height>=R.app.height&&(w.y=R.app.height-w.height,w=X()),S.forEach(M=>{w&&w!==M&&w.isIntersectRect(M)&&(w.y=M.y-w.height,w.y>=w.height?w=X():w=null),R.update(M)})),!0))}),r.value.getCanvas().then(R=>{const S=[];function X(){const M=Z(R.app.width);return S.push(M),M}let w=X();Be.run(()=>h.value!=j?!1:(R.ctx.clearRect(),R.isMouseDown?R.draw(S):(w&&w.nextFrame({gravity:E}),w&&w.y+w.height>=R.ctx.canvas.height&&(w.y=R.ctx.canvas.height-w.height,w=X()),R.draw(S.map(M=>(w&&w!==M&&w.isIntersectRect(M)&&(w.y=M.y-w.height,w.y>=w.height?w=X():w=null),M)))),!0))})}function L(){const j="PointWater";if(h.value==j)return;h.value=j;function Z(E,R){const S=[];for(let X=0;X<80;X++){const w=new We({x:E/2,y:R,radius:2,attrs:{fill:Qr()}});w.vx=Math.random()*2-1,w.vy=Math.random()*-10-10,S.push(w)}return S}s.value.getSVG().then(E=>{E.clear();const R=Z(E.app.width,E.app.height).map(S=>E.path(S));Be.run(()=>h.value!==j?!1:(R.forEach(S=>{S.nextFrame({gravity:.5}),(S.x-S.radius>E.app.width||S.x+S.radius<0||S.y-S.radius>E.app.height||S.y+S.radius<0)&&(S.x=E.app.width/2,S.y=E.app.height,S.vx=Math.random()*2-1,S.vy=Math.random()*-10-10),E.update(S)}),!0))}),r.value.getCanvas().then(E=>{const R=Z(E.app.width,E.app.height);Be.run(()=>h.value!=j?!1:(E.ctx.clearRect(),E.draw(R.map(S=>(S.nextFrame({gravity:.5}),(S.x-S.radius>E.ctx.canvas.width||S.x+S.radius<0||S.y-S.radius>E.ctx.canvas.height||S.y+S.radius<0)&&(S.x=E.ctx.canvas.width/2,S.y=E.ctx.canvas.height,S.vx=Math.random()*2-1,S.vy=Math.random()*-10-10),S))),!0))})}function se(){const j="PointSpringChain";if(h.value==j)return;h.value=j;function Z(w,M){const Q=[];for(let ue=0;ue<3;ue++)Q.push(new We({x:w,y:M,radius:20,attrs:{fill:Qr()}}));return Q}function E(){const w=[];for(let M=0;M<3;M++)w.push(new nt({attrs:{"stroke-width":"1",stroke:"#666666"}}));return w}const R=.03,S=.9,X=2;s.value.getSVG().then(w=>{w.clear();const M=E();M.forEach(ue=>w.path(ue));const Q=Z(w.app.width/2,w.app.height/2).map(ue=>w.path(ue));Be.run(()=>h.value!==j?!1:(Q.forEach((ue,ie)=>{if(ie===0)ue.nextFrameSpringTo(w.app.mousePoint,{spring:R,friction:S,gravity:X}),M[ie].fromX=w.app.mousePoint.x,M[ie].fromY=w.app.mousePoint.y,M[ie].x=ue.x,M[ie].y=ue.y;else{const v=Q[ie-1];ue.nextFrameSpringTo(v,{spring:R,friction:S,gravity:X}),M[ie].fromX=v.x,M[ie].fromY=v.y,M[ie].x=ue.x,M[ie].y=ue.y}w.update(M[ie]),w.update(ue)}),!0))}),r.value.getCanvas().then(w=>{const M=Z(w.app.width/2,w.app.height/2),Q=E();Be.run(()=>h.value!=j?!1:(w.ctx.clearRect(),M.forEach((ue,ie)=>{if(ie===0)ue.nextFrameSpringTo(w.app.mousePoint,{spring:R,friction:S,gravity:X}),Q[ie].fromX=w.app.mousePoint.x,Q[ie].fromY=w.app.mousePoint.y,Q[ie].x=ue.x,Q[ie].y=ue.y;else{const v=M[ie-1];ue.nextFrameSpringTo(v,{spring:R,friction:S,gravity:X}),Q[ie].fromX=v.x,Q[ie].fromY=v.y,Q[ie].x=ue.x,Q[ie].y=ue.y}}),w.draw(Q),w.draw(M),!0))})}function V(){const j="PointSpringMulti";if(h.value==j)return;h.value=j;function Z(R,S){const X=[];for(let w=0;w<3;w++)X.push(new We({x:Math.random()*R,y:Math.random()*S,radius:10,attrs:{fill:"#00ff00"},enableDrag:!0}));return X}function E(){return[new nt({attrs:{"stroke-width":"1",stroke:"#666666"}}),new nt({attrs:{"stroke-width":"1",stroke:"#666666"}}),new nt({attrs:{"stroke-width":"1",stroke:"#666666"}})]}s.value.getSVG().then(R=>{R.clear();const S=E();S.forEach(M=>R.path(M));const X=Z(R.app.width,R.app.height).map(M=>R.path(M)),w=R.path(new We({radius:20,attrs:{fill:"#ff0000"}}));Be.run(()=>h.value!==j?!1:(w.nextFrameSpringTo(X,{spring:.03,friction:.9}),X.forEach((M,Q)=>{S[Q].fromX=w.x,S[Q].fromY=w.y,S[Q].x=M.x,S[Q].y=M.y,R.update(S[Q]),R.update(M)}),R.update(w),!0))}),r.value.getCanvas().then(R=>{const S=new We({radius:20,attrs:{fill:"#ff0000"}}),X=Z(R.app.width,R.app.height),w=E();Be.run(()=>h.value!=j?!1:(R.ctx.clearRect(),S.nextFrameSpringTo(X,{spring:.03,friction:.9}),X.forEach((M,Q)=>{w[Q].fromX=S.x,w[Q].fromY=S.y,w[Q].x=M.x,w[Q].y=M.y}),R.draw([...w,...X,S]),!0))})}function U(){const j="PointSpringConnect";if(h.value==j)return;h.value=j;function Z(S,X){const w=[];for(let M=0;M<3;M++)w.push(new We({x:Math.random()*S,y:Math.random()*X,radius:15,attrs:{fill:"#ff0000"},enableDrag:!0}));return w}function E(){return[new nt({attrs:{stroke:"#666666","stroke-width":"1"}}),new nt({attrs:{stroke:"#666666","stroke-width":"1"}}),new nt({attrs:{stroke:"#666666","stroke-width":"1"}})]}const R={springLength:120,spring:.03,friction:.9};s.value.getSVG().then(S=>{S.clear();const X=E();X.forEach(M=>S.path(M));const w=Z(S.app.width,S.app.height).map(M=>S.path(M));Be.run(()=>h.value!==j?!1:(ot.nextFrameSpringConnect(w,R),w.forEach(M=>S.update(M)),X[0].x=w[0].x,X[0].y=w[0].y,X[0].fromX=w[1].x,X[0].fromY=w[1].y,X[1].x=w[1].x,X[1].y=w[1].y,X[1].fromX=w[2].x,X[1].fromY=w[2].y,X[2].x=w[2].x,X[2].y=w[2].y,X[2].fromX=w[0].x,X[2].fromY=w[0].y,X.forEach(M=>S.update(M)),!0))}),r.value.getCanvas().then(S=>{const X=Z(S.app.width,S.app.height),w=E();Be.run(()=>h.value!=j?!1:(S.ctx.clearRect(),ot.nextFrameSpringConnect(X,R),w[0].x=X[0].x,w[0].y=X[0].y,w[0].fromX=X[1].x,w[0].fromY=X[1].y,w[1].x=X[1].x,w[1].y=X[1].y,w[1].fromX=X[2].x,w[1].fromY=X[2].y,w[2].x=X[2].x,w[2].y=X[2].y,w[2].fromX=X[0].x,w[2].fromY=X[0].y,S.draw([...w,...X]),!0))})}function be(){const j="QuadraticBezierCurve";if(h.value==j)return;h.value=j;const Z=50;s.value.getSVG().then(E=>{E.clear();const R=new Un({x:Z,y:E.app.height-Z,fromX:E.app.width-Z,fromY:E.app.height-Z,cx:E.app.mousePoint.x,cy:E.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),S=new Un({x:Z,y:E.app.height-Z,fromX:E.app.width-Z,fromY:E.app.height-Z,cx:E.app.mousePoint.x,cy:E.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});E.path(R),E.path(S),Be.run(()=>h.value!==j?!1:(S.cx=R.cx=E.app.mousePoint.x,S.cy=R.cy=E.app.mousePoint.y,E.update(R),E.update(S),!0))}),r.value.getCanvas().then(E=>{const R=new Un({x:Z,y:E.ctx.canvas.height-Z,fromX:E.ctx.canvas.width-Z,fromY:E.ctx.canvas.height-Z,cx:E.app.mousePoint.x,cy:E.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),S=new Un({x:Z,y:E.ctx.canvas.height-Z,fromX:E.ctx.canvas.width-Z,fromY:E.ctx.canvas.height-Z,cx:E.app.mousePoint.x,cy:E.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});Be.run(()=>h.value!=j?!1:(E.ctx.clearRect(),S.cx=R.cx=E.app.mousePoint.x,S.cy=R.cy=E.app.mousePoint.y,E.draw([R,S]),!0))})}function xe(){const j="PointsRandom";h.value=j;function Z(E,R){const S=[];for(let X=0;X<10;X++){const w=new We({x:Math.random()*E,y:Math.random()*R,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});S.push(w)}return S}s.value.getSVG().then(E=>{const R=Z(E.app.width,E.app.height),S=R.map((X,w)=>new Rt({x:X.x,y:X.y,width:6,height:6,attrs:{fill:w==0?"#ff0000":"#666666"}}));E.clear(),S.forEach(X=>{E.path(X)}),E.path(new os(R)),r.value.getCanvas().then(X=>{X.ctx.clearRect(),X.draw([...S,new os(R)])})})}function Te(){const j="InterpolatePath";if(h.value==j||!s.value||!r.value)return;h.value=j;const Z=new ni({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),E=new Rt({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),R=new Yo({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),S=os.generatePoints(100,100,100,3),X=os.generatePoints(100,100,100,6);S.attrs.stroke="#666666",X.attrs.stroke="#7EEDFF";const w=Ge.polymorph([Ge.fromShape(S),Ge.fromShape(X),Ge.fromShape(Z),Ge.fromShape(E),Ge.fromShape(R)]),M=w(0);M.enableDrag=!0,s.value.getSVG().then(Q=>{Q.clear(),Q.path(M),r.value.getCanvas().then(ue=>{const ie=yt.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:v=>{w(v.t),Q.update(M),ue.ctx.clearRect(),ue.draw(M)},onComplete:()=>{}});ie.tween.start(),Be.run(()=>h.value!==j?!1:(ie.tween.update()||(Q.update(M),ue.ctx.clearRect(),ue.draw(M)),!0))})})}function Ae(){const j="InterpolatePathGroup";if(h.value==j||!s.value||!r.value)return;h.value=j;const Z=new Zt({svg:Du,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"}}),E=new ni({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),R=new Rt({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),S=new Yo({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),X=Zt.polymorph([Zt.fromShape(E),Zt.fromShape(R),Z,Zt.fromShape(S)]),w=X(0);s.value.getSVG().then(M=>{M.clear(),M.path(w),r.value.getCanvas().then(Q=>{yt.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:ue=>{X(ue.t),M.update(w),Q.ctx.clearRect(),Q.draw(w)},onComplete:()=>{}}).startAuto()})})}const _e=new yt,De=new yt;function Ye(){const j="AnimateToCSS";h.value=j,_e.fromDOM([i.value,o.value,a.value]),De.fromDOM([l.value])}let ye=0;function Se(){switch(f.value){case"slideLeft":_e.toCSS("slideLeft",{},++ye%3),De.toCSS("slideLeft",{direction:ye%2==0?"normal":"reverse"});break;case"slideRight":_e.toCSS("slideRight",{easeName:"ease",dur:1e3},--ye%3),De.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":_e.toCSS("slideDown",{easeName:"ease-out",dur:500},++ye%3),De.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":_e.toCSS("slideUp",{easeName:"ease-in",dur:500},++ye%3),De.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":_e.toCSS("flipLeft",{easeName:"linear",dur:1e3},++ye%3),De.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":_e.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++ye%3),De.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":_e.toCSS("flipDown",{easeName:"ease",dur:1e3},++ye%3),De.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":_e.toCSS("flipUp",{easeName:"ease",dur:1e3},++ye%3),De.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":_e.toCSS("popIn",{easeName:"ease",dur:1e3},++ye%3),De.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":_e.toCSS("popOut",{easeName:"ease",dur:1e3},++ye%3),De.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":_e.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},++ye%3),De.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let re;function A(){const j="AnimateToTweenCSS";h.value=j,q.setStyle(u.value,{transform:""})}function J(){re||(re=new it(c.value));const j=50,Z=0,E=0,R=0,S=re.width-j,X=re.height-j,w=re.height-j,M=re.width/2-j/2,Q=re.height/2-j/2,ue={},ie={};switch(f.value){case"translateTo":Object.assign(ue,{translateTo:[Z,E]}),Object.assign(ie,{translateTo:[S,X]});break;case"translateXTo":Object.assign(ue,{translateXTo:Z}),Object.assign(ie,{translateXTo:S});break;case"translateYTo":Object.assign(ue,{translateYTo:E}),Object.assign(ie,{translateYTo:X});break;case"translateZTo":Object.assign(ue,{translateTo:[M,Q],translateZTo:R}),Object.assign(ie,{translateTo:[M,Q],translateZTo:w});break;case"translate3dTo":Object.assign(ue,{translate3dTo:[M-50,Q-50,R]}),Object.assign(ie,{translate3dTo:[M+50,Q+50,w]});break;case"rotateTo":Object.assign(ue,{translateTo:[M,Q],rotateTo:0}),Object.assign(ie,{translateTo:[M,Q],rotateTo:180});break;case"rotateXTo":Object.assign(ue,{translateTo:[M,Q],rotateXTo:0}),Object.assign(ie,{translateTo:[M,Q],rotateXTo:180});break;case"rotateYTo":Object.assign(ue,{translateTo:[M,Q],rotateYTo:0}),Object.assign(ie,{translateTo:[M,Q],rotateYTo:180});break;case"rotateZTo":Object.assign(ue,{translateTo:[M,Q],rotateZTo:0}),Object.assign(ie,{translateTo:[M,Q],rotateZTo:180});break;case"rotate3dTo":Object.assign(ue,{translateTo:[M,Q],rotate3dTo:[0,0,0]}),Object.assign(ie,{translateTo:[M,Q],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(ue,{translateTo:[M,Q],scaleTo:1}),Object.assign(ie,{translateTo:[M,Q],scaleTo:3});break;case"scaleXTo":Object.assign(ue,{translateTo:[M,Q],scaleXTo:1}),Object.assign(ie,{translateTo:[M,Q],scaleXTo:3});break;case"scaleYTo":Object.assign(ue,{translateTo:[M,Q],scaleYTo:1}),Object.assign(ie,{translateTo:[M,Q],scaleYTo:3});break;case"scaleZTo":Object.assign(ue,{translateTo:[M,Q],scaleZTo:1}),Object.assign(ie,{translateTo:[M,Q],scaleZTo:3});break;case"scale3dTo":Object.assign(ue,{translateTo:[M,Q],scale3dTo:[1,1,1]}),Object.assign(ie,{translateTo:[M,Q],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(ue,{translateTo:[M,Q],skewTo:0}),Object.assign(ie,{translateTo:[M,Q],skewTo:60});break;case"skewXTo":Object.assign(ue,{translateTo:[M,Q],skewXTo:0}),Object.assign(ie,{translateTo:[M,Q],skewXTo:60});break;case"skewYTo":Object.assign(ue,{translateTo:[M,Q],skewYTo:0}),Object.assign(ie,{translateTo:[M,Q],skewYTo:60});break}yt.toTweenCSS(u.value,ue,ie,{duration:2e3,easeFunction:t.easeFunction,onUpdate:v=>{console.log(v)}}).startAuto()}const Y=[{name:"PathDGroup",type:"PathDGroup",onClick:g},{name:"Shapes",type:"Shapes",onClick:y},{name:"Arrow",type:"Arrow",onClick:b},{name:"targetToAfterDragFree",type:"PointEase",onClick:O},{name:"扇形",type:"Sector",onClick:D},{name:"俄罗斯方块",type:"RectGame",onClick:I},{name:"喷泉",type:"PointWater",onClick:L},{name:"链式弹簧",type:"PointSpringChain",onClick:se},{name:"多点弹簧",type:"PointSpringMulti",onClick:V},{name:"连接弹簧",type:"PointSpringConnect",onClick:U},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:be},{name:"Points - random",type:"PointsRandom",onClick:xe},{name:"线条动画",type:"InterpolatePath",onClick:Te},{name:"线条动画 group",type:"InterpolatePathGroup",onClick:Ae},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:Ye},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:A}],ke=[{type:"slideLeft",onClick:()=>p("slideLeft")},{type:"slideRight",onClick:()=>p("slideRight")},{type:"slideDown",onClick:()=>p("slideDown")},{type:"slideUp",onClick:()=>p("slideUp")},{type:"flipLeft",onClick:()=>p("flipLeft")},{type:"flipRight",onClick:()=>p("flipRight")},{type:"flipDown",onClick:()=>p("flipDown")},{type:"flipUp",onClick:()=>p("flipUp")},{type:"popIn",onClick:()=>p("popIn")},{type:"popOut",onClick:()=>p("popOut")},{type:"rotate",onClick:()=>p("rotate")}],we=[{type:"translateTo",onClick:()=>p("translateTo")},{type:"translateXTo",onClick:()=>p("translateXTo")},{type:"translateYTo",onClick:()=>p("translateYTo")},{type:"translateZTo",onClick:()=>p("translateZTo")},{type:"translate3dTo",onClick:()=>p("translate3dTo")},{type:"rotateTo",onClick:()=>p("rotateTo")},{type:"rotateXTo",onClick:()=>p("rotateXTo")},{type:"rotateYTo",onClick:()=>p("rotateYTo")},{type:"rotateZTo",onClick:()=>p("rotateZTo")},{type:"rotate3dTo",onClick:()=>p("rotate3dTo")},{type:"scaleTo",onClick:()=>p("scaleTo")},{type:"scaleXTo",onClick:()=>p("scaleXTo")},{type:"scaleYTo",onClick:()=>p("scaleYTo")},{type:"scaleZTo",onClick:()=>p("scaleZTo")},{type:"scale3dTo",onClick:()=>p("scale3dTo")},{type:"skewTo",onClick:()=>p("skewTo")},{type:"skewXTo",onClick:()=>p("skewXTo")},{type:"skewYTo",onClick:()=>p("skewYTo")}];return tt(()=>{}),e({}),(j,Z)=>(F(),K(Fe,null,[P("div",oy,[(F(),K(Fe,null,ht(Y,E=>Oe(ft,{key:E.type,item:E,onClick:E.onClick,stylePattern:h.value==E.type?"fullfilled":"outline"},{default:st(()=>[Dt(Re(E.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),xn(P("div",ay,[(F(),K(Fe,null,ht(ke,E=>Oe(ft,{key:E.type,item:E,onClick:E.onClick,stylePattern:f.value==E.type?"fullfilled":"outline"},{default:st(()=>[Dt(Re(E.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[cn,h.value=="AnimateToCSS"]]),xn(P("div",null," 当前缓动函数:"+Re(t.easeName),513),[[cn,h.value=="AnimateToTweenCSS"]]),xn(P("div",ly,[(F(),K(Fe,null,ht(we,E=>Oe(ft,{key:E.type,item:E,onClick:E.onClick,stylePattern:f.value==E.type?"fullfilled":"outline"},{default:st(()=>[Dt(Re(E.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[cn,h.value=="AnimateToTweenCSS"]]),xn(P("div",cy,[Oe(Nu,{ref_key:"svgRef",ref:s},null,512)],512),[[cn,h.value!=="AnimateToCSS"&&h.value!=="AnimateToTweenCSS"]]),xn(P("div",uy,[Oe(hs,{ref_key:"canvasRef",ref:r},null,512)],512),[[cn,h.value!=="AnimateToCSS"&&h.value!=="AnimateToTweenCSS"]]),xn(P("div",hy,[P("div",fy,[P("div",{ref_key:"divOneRef",ref:i},"1",512),P("div",{ref_key:"divTwoRef",ref:o},"2",512),P("div",{ref_key:"divThreeRef",ref:a},"3",512)]),P("div",dy,[P("div",{ref_key:"divOneSingleRef",ref:l},"one",512)])],512),[[cn,h.value=="AnimateToCSS"]]),xn(P("div",{ref_key:"tweenCSSContainerRef",ref:c,style:{height:"400px"},class:"css-area"},[P("div",{ref_key:"divTweenTargetRef",ref:u,class:"tween-css-target"},null,512)],512),[[cn,h.value=="AnimateToTweenCSS"]])],64))}}),c1="",my=me(py,[["__scopeId","data-v-2c8a4bf4"]]),gy={class:"loading-1"},vy=pe({__name:"Loading1",props:{color:{default:ce.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,r)=>(F(),K("div",gy,[P("div",{class:"rect1",style:t}),P("div",{class:"rect2",style:t}),P("div",{class:"rect3",style:t}),P("div",{class:"rect4",style:t}),P("div",{class:"rect5",style:t})]))}}),u1="",yy=me(vy,[["__scopeId","data-v-48b10c9a"]]),_y={class:"loading-2"},by=pe({__name:"Loading2",props:{color:{default:ce.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,r)=>(F(),K("div",_y,[P("div",{class:"dot1",style:t}),P("div",{class:"dot2",style:t})]))}}),h1="",xy=me(by,[["__scopeId","data-v-79f9930f"]]),wy=pe({__name:"Loading3",props:{fromColor:{default:ce.colorPrimary},toColor:{default:ce.colorRed}},setup(n){const e=n,t=`
83
84
  @keyframes snake {
84
85
  0% {
85
86
  opacity: 0.3;
@@ -98,12 +99,12 @@ Expected function or array of functions, received type ${typeof t}.`),Ge)}functi
98
99
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
99
100
  }
100
101
  }
101
- `,s={backgroundColor:e.fromColor,width:"20%"},i=G();return ve(i,()=>{i.value&&Z.setStyleSheet(n,i.value)}),dn(()=>{}),Ve(()=>{}),(r,o)=>(D(),z("div",{class:"loading-3",ref_key:"loading3",ref:i},[N("div",{class:"dot",style:q({...s,left:"0"})},null,4),N("div",{class:"dot",style:q({...s,left:"20%"})},null,4),N("div",{class:"dot",style:q({...s,left:"40%"})},null,4),N("div",{class:"dot",style:q({...s,left:"60%"})},null,4),N("div",{class:"dot",style:q({...s,left:"80%"})},null,4)],512))}}),l1="",vv=ee(_v,[["__scopeId","data-v-718133c0"]]),yv={class:"loading-4"},bv=J({__name:"Loading4",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",yv,[N("div",{class:"rect",style:n})]))}}),c1="",xv=ee(bv,[["__scopeId","data-v-9028c8cf"]]),wv={class:"loading-5"},Ev=J({__name:"Loading5",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",wv,[N("div",{class:"cube1",style:n}),N("div",{class:"cube2",style:n})]))}}),u1="",Cv=ee(Ev,[["__scopeId","data-v-6f68ee6f"]]),Tv={class:"loading-6"},Sv=J({__name:"Loading6",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",Tv,[N("div",{style:n}),N("div",{style:n}),N("div",{style:n})]))}}),h1="",kv=ee(Sv,[["__scopeId","data-v-e397194b"]]),Pv=[(t=>(ls("data-v-ef280c02"),t=t(),cs(),t))(()=>N("div",null,null,-1))],Nv=J({__name:"Loading7",props:{color:{default:ne.colorPrimary}},setup(t){const e=t,n=`
102
+ `,s={backgroundColor:e.fromColor,width:"20%"},r=B();return $e(r,()=>{r.value&&q.setStyleSheet(t,r.value)}),wn(()=>{}),tt(()=>{}),(i,o)=>(F(),K("div",{class:"loading-3",ref_key:"loading3",ref:r},[P("div",{class:"dot",style:oe({...s,left:"0"})},null,4),P("div",{class:"dot",style:oe({...s,left:"20%"})},null,4),P("div",{class:"dot",style:oe({...s,left:"40%"})},null,4),P("div",{class:"dot",style:oe({...s,left:"60%"})},null,4),P("div",{class:"dot",style:oe({...s,left:"80%"})},null,4)],512))}}),f1="",Ey=me(wy,[["__scopeId","data-v-718133c0"]]),Sy={class:"loading-4"},Cy=pe({__name:"Loading4",props:{color:{default:ce.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,r)=>(F(),K("div",Sy,[P("div",{class:"rect",style:t})]))}}),d1="",Ty=me(Cy,[["__scopeId","data-v-9028c8cf"]]),ky={class:"loading-5"},Oy=pe({__name:"Loading5",props:{color:{default:ce.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,r)=>(F(),K("div",ky,[P("div",{class:"cube1",style:t}),P("div",{class:"cube2",style:t})]))}}),p1="",Py=me(Oy,[["__scopeId","data-v-6f68ee6f"]]),Iy={class:"loading-6"},Ny=pe({__name:"Loading6",props:{color:{default:ce.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,r)=>(F(),K("div",Iy,[P("div",{style:t}),P("div",{style:t}),P("div",{style:t})]))}}),m1="",Dy=me(Ny,[["__scopeId","data-v-e397194b"]]),My=[(n=>(Es("data-v-ef280c02"),n=n(),Ss(),n))(()=>P("div",null,null,-1))],Ay=pe({__name:"Loading7",props:{color:{default:ce.colorPrimary}},setup(n){const e=n,t=`
102
103
  :root {
103
104
  --loading-7-bg-color: ${e.color}
104
105
  }
105
106
  :host {
106
107
  --loading-7-bg-color: ${e.color}
107
108
  }
108
- `,s=G();return ve(s,()=>{s.value&&Z.setStyleSheet(n,s.value)}),dn(()=>{}),Ve(()=>{}),(i,r)=>(D(),z("div",{class:"loading-7",ref_key:"loading7",ref:s},Pv,512))}}),p1="",Ov=ee(Nv,[["__scopeId","data-v-ef280c02"]]),Iv={class:"loading-9"},Mv=J({__name:"Loading9",props:{color:{default:ne.colorPrimary}},setup(t){const n={borderTopColor:t.color};return(s,i)=>(D(),z("div",Iv,[N("div",{style:n})]))}}),m1="",Dv=ee(Mv,[["__scopeId","data-v-a563aaa4"]]),Av={class:"loading-10"},Rv={viewBox:"0 0 50 50"},$v=J({__name:"Loading10",props:{color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("div",Av,[(D(),z("svg",Rv,[N("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:q(["stroke: rgba(0,0,0,0.1)"])},null,4),N("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:q(["fill: "+e.color])},null,4)]))]))}}),g1="",Lv=ee($v,[["__scopeId","data-v-361d898a"]]);Q.Accordion=l0,Q.Button=Ne,Q.CanvasFromSVG=uv,Q.CanvasShape=lv,Q.CanvasSport=sv,Q.CheckboxGroup=ag,Q.ColorPicker=P_,Q.Dialog=As,Q.DialogLoading=Yg,Q.DialogToast=ou,Q.EaseGraphDisplay=Wo,Q.EaseGroupGraphDisplay=j_,Q.FPSStats=R_,Q.HandWritePanel=z0,Q.Icon=Ln,Q.Image=Ro,Q.ImageView=b0,Q.Input=vg,Q.InterpolationGraphDisplay=Yo,Q.InterpolationGroupGraphDisplay=Y_,Q.LayoutCenter=N0,Q.LayoutMobile=k0,Q.Loading1=dv,Q.Loading10=Lv,Q.Loading2=gv,Q.Loading3=vv,Q.Loading4=xv,Q.Loading5=Cv,Q.Loading6=kv,Q.Loading7=Ov,Q.Loading8=Do,Q.Loading9=Dv,Q.MapTianditu=A_,Q.MouseOver=o0,Q.Overlay=Xn,Q.PageVerticalScrollProgressBar=B0,Q.PlateDisplay=o_,Q.PlateKeyboard=au,Q.PlateMobile=s_,Q.Pop=St,Q.Popover=$o,Q.ProgressBar=Rs,Q.RadioGroup=eg,Q.ResizeObserver=M_,Q.SVGCheck=Lo,Q.SVGCleanUp=Vi,Q.SVGDelete=Mo,Q.SVGDown=Ds,Q.Select=Lm,Q.SelectAbsolute=Um,Q.SlideLeftItem=Eg,Q.Switch=Ym,Q.Tab=A0,Q.Tabs=V0,Q.TweenCSS=Q_,Q.Video=p0,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
109
+ `,s=B();return $e(s,()=>{s.value&&q.setStyleSheet(t,s.value)}),wn(()=>{}),tt(()=>{}),(r,i)=>(F(),K("div",{class:"loading-7",ref_key:"loading7",ref:s},My,512))}}),y1="",Ry=me(Ay,[["__scopeId","data-v-ef280c02"]]),$y={class:"loading-9"},Ly=pe({__name:"Loading9",props:{color:{default:ce.colorPrimary}},setup(n){const t={borderTopColor:n.color};return(s,r)=>(F(),K("div",$y,[P("div",{style:t})]))}}),_1="",Vy=me(Ly,[["__scopeId","data-v-a563aaa4"]]),Fy={class:"loading-10"},Gy={viewBox:"0 0 50 50"},jy=pe({__name:"Loading10",props:{color:{default:ce.colorPrimary}},setup(n){const e=n;return(t,s)=>(F(),K("div",Fy,[(F(),K("svg",Gy,[P("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:oe(["stroke: rgba(0,0,0,0.1)"])},null,4),P("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:oe(["fill: "+e.color])},null,4)]))]))}}),b1="",zy=me(jy,[["__scopeId","data-v-361d898a"]]);he.Accordion=_0,he.Button=ft,he.CheckboxGroup=yg,he.ColorPicker=Fv,he.Dialog=Qs,he.DialogLoading=r0,he.DialogToast=vu,he.EaseGraphDisplay=la,he.EaseGroupGraphDisplay=Jv,he.FPSStats=Xv,he.HandWritePanel=Q0,he.Icon=Wn,he.Image=Zo,he.ImageView=N0,he.Input=Pg,he.InterpolationGraphDisplay=ca,he.InterpolationGroupGraphDisplay=ry,he.LayoutCenter=G0,he.LayoutMobile=V0,he.Loading1=yy,he.Loading10=zy,he.Loading2=xy,he.Loading3=Ey,he.Loading4=Ty,he.Loading5=Py,he.Loading6=Dy,he.Loading7=Ry,he.Loading8=qo,he.Loading9=Vy,he.MapTianditu=Yv,he.MouseOver=v0,he.Overlay=ls,he.PageVerticalScrollProgressBar=tv,he.PlateDisplay=vv,he.PlateKeyboard=yu,he.PlateMobile=pv,he.Pop=Vt,he.Popover=Qo,he.ProgressBar=Js,he.RadioGroup=fg,he.ResizeObserver=Bv,he.SVGAndCanvas=my,he.SVGCheck=Jo,he.SVGCleanUp=ri,he.SVGDelete=Wo,he.SVGDown=Zs,he.Select=Km,he.SelectAbsolute=rg,he.SlideLeftItem=Ag,he.Switch=og,he.Tab=Y0,he.Tabs=K0,he.Video=C0,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})});
109
110
  //# sourceMappingURL=zyzgroup_core_vue.umd.cjs.map